[AArch64] Add partial SVE vector modes
[gcc.git] / gcc / ChangeLog
1 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2
3 * genmodes.c (mode_data::order): New field.
4 (blank_mode): Update accordingly.
5 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6 (make_vector_modes): Likewise.
7 (VECTOR_MODES): Update use accordingly.
8 (cmp_modes): Sort by the new order field ahead of sorting by size.
9 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
10 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
11 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
12 (aarch64_classify_vector_mode): Handle the new partial modes.
13 (aarch64_vl_bytes): New function.
14 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
15 when counting the number of registers in an SVE mode.
16 (aarch64_class_max_nregs): Likewise.
17 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
18 in registers yet.
19 (aarch64_classify_address): Treat partial vectors analogously
20 to full vectors.
21 (aarch64_print_address_internal): Consolidate the printing of
22 MUL VL addresses, using aarch64_vl_bytes as the number of
23 bytes represented by "VL".
24 (aarch64_vector_mode_supported_p): Reject partial vector modes.
25
26 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
27
28 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
29 rather than known_lt when choosing frame layouts.
30
31 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
32
33 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
34 that all the adjustments add up to the full frame size.
35 Use crtl->outgoing_args_size directly as the final adjustment
36 where appropriate.
37
38 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
39
40 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
41 "frame" reference instead of always referring directly to
42 "cfun->machine->frame".
43
44 2019-10-16 Richard Biener <rguenther@suse.de>
45
46 PR tree-optimization/92119
47 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
48 against missing bswap lhs.
49
50 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
51
52 PR middle-end/92033
53 * poly-int.h (constant_lower_bound_with_limit): New function.
54 (constant_upper_bound_with_limit): Likewise.
55 * doc/poly-int.texi: Document them.
56 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
57 into the worst-case INTEGER_CST bounds.
58
59 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
60
61 PR ipa/91088
62 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
63 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
64 * ipa-predicat.h (struct expr_eval_op): New struct.
65 (expr_eval_ops): New typedef.
66 (struct condition): Add type and param_ops fields, remove size field.
67 (add_condition): Replace size parameter with type parameter, add
68 param_ops parameter.
69 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
70 (predicate::add_clause): Add comparisons on type and param_ops.
71 (dump_condition): Add debug dump for param_ops.
72 (remap_after_inlining): Adjust call arguments to add_condition.
73 (add_condition): Replace size parameter with type parameter, add
74 param_ops parameter. Unshare constant value used in conditions.
75 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
76 parameter expressions using param_ops.
77 (decompose_param_expr): New function.
78 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
79 to replace call to unmodified_parm_or_parm_agg_item.
80 (set_switch_stmt_execution_predicate): Likewise.
81 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
82 with type.
83 (inline_read_section): Read param_ops from summary stream.
84 (ipa_fn_summary_write): Write param_ops to summary stream.
85
86 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
87
88 PR rtl-optimization/92107
89 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
90 expression written.
91
92 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
93
94 * config/darwin.c: Update description of fix and continue.
95
96 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
97
98 * config/darwin.c (darwin_binds_local_p): Update to call
99 default_binds_local_p_3 () directly. amend comments.
100
101 2019-10-15 Richard Biener <rguenther@suse.de>
102
103 * lto-streamer-out.c (lto_variably_modified_type_p): New.
104 (tree_is_indexable): Use it.
105 * tree-streamer-out.c (pack_ts_type_common_value_fields):
106 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
107 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
108
109 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
110
111 * config/msp430/msp430.md (zero_extendqipsi2): New.
112 (zero_extendqisi2): Optimize case where src register and base dst
113 register are the same.
114 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
115 (zero_extendpsisi2): Optimize r->m case.
116 Add unnamed insn patterns to catch insns combine searches for when
117 optimizing pointer manipulation.
118
119 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
120
121 * config/msp430/msp430.md: Group zero_extend* insns together.
122
123 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
124
125 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
126 constraint.
127 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
128 POST_INC.
129 (msp430_subreg): Likewise.
130 (msp430_split_addsi): Likewise.
131 (msp430_print_operand_addr): Likewise.
132 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
133 (USE_STORE_POST_INCREMENT): Define.
134 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
135 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
136 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
137 (msp430_general_dst_operand): New.
138 (msp430_general_dst_nonv_operand): New.
139 (msp430_nonsubreg_operand): Remove.
140 (msp430_nonsubreg_dst_operand): New.
141 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
142 of defunct msp430_nonsubreg_operand.
143 (msp430_nonsubregnonpostinc_or_imm_operand): New.
144
145 2019-10-15 Richard Biener <rguenther@suse.de>
146
147 PR tree-optimization/91929
148 * tree-ssa-pre.c (pre_expr_d::loc): New member.
149 (get_or_alloc_expr_for_name): Initialize it.
150 (get_or_alloc_expr_for_constant): Likewise.
151 (phi_translate_1): Copy it.
152 (create_expression_by_pieces): Use the original location
153 of the expression for the inserted stmt.
154 (compute_avail): Record the location of the stmt for the
155 expressions created.
156
157 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
158
159 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
160 before using tree_to_uhwi.
161
162 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
163
164 * config/s390/s390.md: Run %a0:DI splitters only after reload.
165
166 2019-10-15 Richard Biener <rguenther@suse.de>
167
168 PR tree-optimization/92094
169 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
170 do not adjust the reduction definition def type.
171 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
172 defines the latch argument of the PHI.
173
174 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
175
176 PR target/92035
177 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
178 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
179 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
180 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
181 _mm_maskz_roundscale_round_sd): New intrinsics.
182 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
183 __builtin_ia32_rndscales?_mask_round builtins instead of
184 __builtin_ia32_rndscales?_round.
185 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
186 __builtin_ia32_rndscalesd_round): Remove.
187 (__builtin_ia32_rndscaless_mask_round,
188 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
189 * config/i386/sse.md
190 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
191 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
192 ... this, adjust and add subst atrributes to make it maskable.
193
194 2019-10-15 Richard Biener <rguenther@suse.de>
195
196 PR middle-end/92046
197 * common.opt (fallow-store-data-races): New.
198 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
199 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
200 * doc/invoke.texi (fallow-store-data-races): Document.
201 (--param allow-store-data-races): Remove docs.
202 * opts.c (default_options_table): Enable -fallow-store-data-races
203 at -Ofast.
204 (default_options_optimization): Do not enable --param
205 allow-store-data-races at -Ofast.
206 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
207 instead of PARAM_ALLOW_STORE_DATA_RACES.
208 * tree-ssa-loop-im.c (execute_sm): Likewise.
209
210 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
211
212 PR tree-optimization/92085
213 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
214 instead of calling it unconditionally after
215 delete_dead_or_redundant_assignment and fix indentation.
216
217 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
218
219 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
220 TARGET_VFP_DOUBLE.
221 (*fmsub<SDF:mode>4): Likewise.
222 *fnmsub<SDF:mode>4): Likewise.
223 (*fnmadd<SDF:mode>4): Likewise.
224
225 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
226
227 * doc/tree-ssa.texi: Update renamed macro name.
228
229 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
230
231 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
232 vector constants.
233
234 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
235
236 * config/darwin.c: Use unsigned ints for the picbase label
237 counters, initialise the vars explicitly.
238 (update_pic_label_number_if_needed): Move a variable declaration
239 to where it's needed.
240 (machopic_output_function_base_name): Use a more strict checking
241 assert, and and unsigned int for the picbase label counter.
242 (machopic_get_function_picbase): Likewise.
243
244 2019-10-14 Richard Biener <rguenther@suse.de>
245
246 PR middle-end/92046
247 * dse.c (scan_insn): Use param max_active_local_stores.
248 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
249 based on optimization level.
250 * loop-invariant.c (move_loop_invariants): Adjust
251 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
252 * opts.c (default_options_optimization): Do not adjust
253 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
254 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
255
256 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
257
258 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
259
260 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
261
262 * config/arm/arm.c (arm_option_override): Don't override sched
263 pressure algorithm.
264
265 2019-10-14 Richard Biener <rguenther@suse.de>
266
267 PR tree-optimization/92069
268 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
269 cycles do not set vect_nested_cycle on the latch definition.
270
271 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
272
273 * function-abi.h (expr_callee_abi): Declare.
274 * function-abi.cc (expr_callee_abi): New function.
275
276 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
277
278 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
279 into [1,MAX].
280 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
281 non-zero being represented as [1,MAX].
282
283 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
284
285 * tree-sra.c (dump_access): Add missing braces.
286
287 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
288
289 * config/darwin.c (machopic_indirection_name): Rework the
290 function to emit linker-visible symbols only for indirections
291 in the data section. Clean up the code and update comments.
292
293 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
294
295 * config/darwin.c (machopic_indirect_data_reference): Remove
296 redundant code.
297
298 2019-10-13 Nathan Sidwell <nathan@acm.org>
299
300 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
301
302 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
303
304 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
305 c99_runtime.
306
307 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
308
309 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
310 so non-virutal are before virutals.
311 (output_function): Avoid body modifications.
312
313 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
314
315 * config/pa/pa.c (pa_output_call): Load descriptor address to register
316 %r22. Load function address before global pointer.
317 (pa_attr_length_indirect_call): Adjust length of inline versions of
318 $$dyncall.
319 (pa_output_indirect_call): Remove fast inline version of $$dyncall
320 before normal cases. Update inline $$dyncall sequences to preserve
321 function descriptor address in register %r22.
322 (TRAMPOLINE_CODE_SIZE): Adjust.
323 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
324 register %r22 contains trampoline address.
325 (pa_trampoline_init): Adjust offsets.
326 (pa_trampoline_adjust_address): Likewise.
327 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
328
329 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
330
331 PR target/67183
332 * config/darwin.c (machopic_indirection): New field to flag
333 non-lazy-symbol-pointers in the data section.
334 (machopic_indirection_name): Compute if an indirection should
335 appear in the data section.
336 (machopic_output_data_section_indirection): New callback split
337 from machopic_output_indirection.
338 (machopic_output_stub_indirection): Likewise.
339 (machopic_output_indirection): Retain the code for non-lazy
340 symbol pointers in their regular section.
341 (machopic_finish): Use the new callbacks to order the indirection
342 output.
343
344 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
345
346 * config/darwin-protos.h (machopic_finish): Delete.
347 * config/darwin.c (machopic_finish): Make static.
348
349 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
350
351 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
352 sections when building kernel extension code.
353
354 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
355
356 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
357 later standard."
358
359 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
360
361 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
362 from warning.
363
364 2019-10-12 Jakub Jelinek <jakub@redhat.com>
365
366 PR middle-end/92063
367 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
368 <case VEC_COND_EXPR>: Return false with *handled = false.
369 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
370 recursing on the first operand.
371 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
372 instead of tree_could_trap_p.
373 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
374
375 2019-10-11 Jim Wilson <jimw@sifive.com>
376
377 PR rtl-optimization/91860
378 * combine.c (subst): If new_rtx is a constant, also check for
379 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
380
381 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
382
383 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
384 INTVAL when calling store_bit_field.
385
386 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
387
388 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
389 size.
390
391 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
392
393 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
394 vectorizable_live_operation.
395 (vectorizable_live_operation): Adjust parameters.
396 * tree-vect-stmts.c (vect_init_vector,
397 vect_gen_widened_results_half): Fix typo in function comment.
398 (can_vectorize_live_stmts): Adjust function comment.
399 Adjust parameters. Adjust call to vectorizable_live_operation.
400 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
401 (vect_transform_stmt): Adjust function comment. Adjust call to
402 can_vectorize_live_stmts.
403 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
404
405 2019-10-11 Richard Biener <rguenther@suse.de>
406
407 PR tree-optimization/90883
408 PR tree-optimization/91091
409 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
410 alias-sets both for recording VN table entries and continuing
411 walking after translating through copies. Handle same-sized
412 reads from SSA names by returning the plain SSA name.
413 (eliminate_dom_walker::eliminate_stmt): Properly handle
414 non-size precision stores in redundant store elimination.
415
416 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
417
418 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
419 (ggc_collect): Dump later to not interfere with release_page dump.
420 (ggc_trim): New function.
421 * ggc-none.c (ggc_trim): New.
422 * ggc.h (ggc_trim): Declare.
423
424 2019-10-11 Richard Biener <rguenther@suse.de>
425
426 PR tree-optimization/92066
427 PR tree-optimization/92046
428 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
429 Fix bogus cost model check.
430
431 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
432
433 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
434 (LANG_HOOKS_DECLS): Add it.
435 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
436 update comment for omp_is_optional_argument.
437 * omp-general.c (omp_is_allocatable_or_ptr): New.
438 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
439 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
440 Fortran's optional arguments and allocatable/pointer scalars
441 with use_device_addr.
442
443 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
444
445 PR target/77918
446 * config/s390/2827.md: Add new opcodes.
447 * config/s390/2964.md: Likewise.
448 * config/s390/3906.md: Likewise.
449 * config/s390/8561.md: Likewise.
450 * config/s390/s390-builtins.def (s390_vfchesb): Use
451 the new vec_cmpgev4sf_quiet_nocc.
452 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
453 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
454 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
455 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
456 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
457 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
458 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
459 * config/s390/s390-modes.def (CCSFPS): New mode.
460 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
461 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
462 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
463 (s390_expand_vec_compare): Use non-signaling patterns where
464 necessary.
465 (s390_reverse_condition): Support CCSFPS.
466 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
467 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
468 (asm_fcmp_op): Likewise.
469 (*smaxv2df3_vx): Use pattern for quiet comparison.
470 (*sminv2df3_vx): Likewise.
471 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
472 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
473 (vec_cmpgt<mode>_quiet_nocc): Likewise.
474 (vec_cmplt<mode>_quiet_nocc): New expander.
475 (vec_cmpge<mode>_quiet_nocc): New pattern.
476 (vec_cmple<mode>_quiet_nocc): New expander.
477 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
478 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
479 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
480 (*vec_cmpge<mode>_signaling_nocc): Likewise.
481 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
482 (vec_cmpungt<mode>): New expander.
483 (vec_cmpunge<mode>): Likewise.
484 (vec_cmpuneq<mode>): Use quiet patterns.
485 (vec_cmpltgt<mode>): Allow only on z14+.
486 (vec_cmpordered<mode>): Use quiet patterns.
487 (vec_cmpunordered<mode>): Likewise.
488 (VEC_CMP_EXPAND): Add ungt and unge.
489
490 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
491
492 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
493 parameter.
494 * lto-streamer-out.c: Include tree-dfa.h.
495 (output_cfg): Do not use cfun.
496 (lto_prepare_function_for_streaming): New.
497 (output_function): Do not push cfun; do not initialize loop optimizer.
498 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
499 * passes.c (ipa_write_summaries): Use it.
500 (ipa_write_optimization_summaries): Do not modify bodies.
501 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
502 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
503 * tree-ssa-dse.c (pass_dse::execute): Update use of
504 renumber_gimple_stmt_uids.
505 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
506
507 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
508
509 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
510 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
511
512 2019-10-10 Joseph Myers <joseph@codesourcery.com>
513
514 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
515 macros.
516 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
517 Also define DFP macros for these conditions.
518 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
519 DEC128_SUBNORMAL_MIN): Do not define.
520 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
521 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
522
523 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
524 Sandra Loosemore <sandra@codesourcery.com>
525
526 PR middle-end/26241
527 * doc/lto.texi (IPA): Reference to the IPA passes.
528 * doc/passes.texi (Pass manager): Add node IPA passes and
529 description for each IPA pass.
530
531 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
532
533 * ipa-reference.c: Do not include splay-tree.h
534 (reference_vars_to_consider): Turn to hash map.
535 (get_static_name, ipa_init, analyze_function, propagate,
536 stream_out_bitmap, ipa_reference_write_optimization_summary,
537 ipa_reference_write_optimization_summary): Update.
538
539 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
540
541 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
542
543 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
544
545 * config/darwin.c: Lookup Objective C metadata and force indirection
546 for IVAR refs.
547
548 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
549
550 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
551 addresses.
552 (mem_operand_gpr): Add check for prefixed addresses.
553 (mem_operand_ds_form): Add check for prefixed addresses.
554 (rs6000_legitimate_offset_address_p): If we support prefixed
555 addresses, check for a 34-bit offset instead of 16-bit.
556 (rs6000_legitimate_address_p): Add check for prefixed addresses.
557 Do not allow load/store with update if the address is prefixed.
558 (rs6000_mode_dependent_address): If we support prefixed
559 addresses, check for a 34-bit offset instead of 16-bit.
560
561 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
562
563 PR target/77918
564 * config/s390/vector.md (vcond_comparison_operator): New
565 predicate.
566 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
567
568 2019-10-10 David Malcolm <dmalcolm@redhat.com>
569
570 PR 87488
571 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
572 -D.
573 * configure.ac (--with-documentation-root-url): New option.
574 * configure: Regenerate.
575 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
576 option URL, add it as a new string field of the diagnostic option.
577 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
578 (print_option_information): If get_option_url is non-NULL, call
579 it, and if the result is non-NULL, potentially emit an escape
580 sequence to markup the option text with the resulting URL.
581 * diagnostic.h (diagnostic_context::get_option_url): New callback.
582 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
583 example of JSON output.
584 * opts-diagnostic.h (get_option_url): New decl.
585 * opts.c (get_option_url): New function.
586 * toplev.c (general_init): Initialize the get_option_url callback.
587
588 2019-10-10 David Malcolm <dmalcolm@redhat.com>
589
590 PR 87488
591 * common.opt (fdiagnostics-urls=): New option.
592 (diagnostic-url.h): Add SourceInclude.
593 (diagnostic_url_rule): New enum.
594 * diagnostic-color.c: Include "diagnostic-url.h".
595 (diagnostic_urls_enabled_p): New function.
596 * diagnostic-url.h: New file.
597 * diagnostic.c: Include "diagnostic-url.h".
598 (diagnostic_urls_init): New function.
599 * diagnostic.h (diagnostic_urls_init): New decl.
600 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
601 -fdiagnostics-urls to the list.
602 (-fdiagnostics-urls): New option.
603 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
604 (driver::global_initializations): Call diagnostic_urls_init.
605 * opts-global.c (init_options_once): Likewise.
606 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
607 * pretty-print.c (pretty_printer::pretty_printer): Initialize
608 show_urls.
609 (pp_begin_url): New function.
610 (pp_end_url): New function.
611 (selftest::test_urls): New selftest.
612 (selftest::pretty_print_c_tests): Call it.
613 * pretty-print.h (pretty_printer::show_urls): New field.
614 (pp_begin_url): New decl.
615 (pp_end_url): New decl.
616
617 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
618
619 PR target/92022
620 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
621
622 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
623
624 PR target/88630
625 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
626 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
627 also for TARGET_FPU_SH4_300.
628 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
629 TARGET_SH4_300.
630 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
631 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
632 (*negsf2_i): Split into ...
633 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
634 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
635 (**abssf2_i): Split into ...
636 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
637 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
638 (*negdf2_i): Split into ...
639 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
640 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
641 (**abssf2_i): Split into ...
642 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
643
644 2019-10-10 Richard Biener <rguenther@suse.de>
645
646 PR middle-end/92046
647 * opts.c (finish_options): Do not influence global --params
648 from options that are adjustable per function.
649 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
650 Apply --param adjustment based on active cost-model.
651 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
652 further store-sinking when vectorization or if-conversion
653 are not enabled.
654
655 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
656
657 PR middle-end/92037
658 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
659 rather than ggc_alloc_cleared to alloc symbol table.
660 * toplev.c (general_init): Likewise.
661 * cgraph.h (symbol_table): Explicitly construct every field.
662
663 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
664
665 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
666 (PF_Z15): ... this.
667 * config.gcc: Add z15 as option for --with-arch and --with-tune
668 configure switches.
669 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
670 error reporting for unsupported builtins.
671 * config/s390/s390-opts.h (enum processor_type): Rename
672 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
673 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
674 * config/s390/driver-native.c (s390_host_detect_local_cpu):
675 Likewise.
676 * config/s390/s390-builtins.def: Likewise.
677 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
678 (s390_expand_builtin): Add missing check for unsupported builtins.
679 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
680 (s390_rtx_costs): Likewise.
681 (s390_get_sched_attrmask): Rename arch13 to z15.
682 (s390_get_unit_mask): Likewise.
683 (s390_is_fpd): Likewise.
684 (s390_is_fxd): Likewise.
685 * config/s390/s390.h (enum processor_flags): Likewise.
686 * config/s390/s390.md: Likewise.
687 * config/s390/vector.md: Likewise.
688 * config/s390/vx-builtins.md: Likewise.
689 * config/s390/s390.opt: Add z15 to processor_type value.
690
691 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
692
693 PR target/91035
694 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
695 prototype.
696 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
697 ("split_stack_data", "split_stack_call")
698 ("split_stack_call_<mode>", "split_stack_cond_call")
699 ("split_stack_cond_call_<mode>"): Remove.
700 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
701 insn definition.
702 * config/s390/s390.c (s390_output_split_stack_data): New function.
703 (s390_expand_split_stack_prologue): Use the merged expander.
704
705 2019-10-09 Martin Sebor <msebor@redhat.com>
706
707 PR tree-optimization/90879
708 * builtins.c (check_access): Avoid using maxbound when null.
709 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
710 * doc/invoke.texi (-Wstring-compare): Document new warning option.
711 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
712 conditional.
713 (get_range_strlen): Overwrite initial maxbound when non-null.
714 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
715 changes.
716 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
717 (used_only_for_zero_equality): New function.
718 (handle_builtin_memcmp): Call it.
719 (determine_min_objsize): Return an integer instead of tree.
720 (get_len_or_size, strxcmp_eqz_result): New functions.
721 (maybe_warn_pointless_strcmp): New function.
722 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
723 between a longer string and a smaller array.
724 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
725
726 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
727
728 * config/darwin.c (darwin_override_options): Make the check for
729 Objective-C ABI version more specific for 64bit code.
730
731 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
732
733 * config/darwin.c (machopic_indirect_data_reference): Set flag to
734 indicate that the new symbol is an indirection.
735 (machopic_indirect_call_target): Likewise.
736 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
737 (MACHO_SYMBOL_INDIRECTION_P): New.
738 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
739
740 2019-10-08 Jason Merrill <jason@redhat.com>
741
742 * doc/invoke.texi: Document -fconcepts-ts.
743
744 2019-10-09 Richard Biener <rguenther@suse.de>
745
746 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
747 allow stmts other than GIMPLE_ASSIGN in nested cycles.
748
749 2019-10-08 Richard Biener <rguenther@suse.de>
750
751 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
752 (_stmt_vec_info::force_single_cycle): Likewise.
753 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
754 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
755 * tree-vect-loop.c (vectorizable_reduction): Set
756 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
757 (vect_transform_reduction): Use them to remove redundant code.
758 (vect_transform_cycle_phi): Likewise.
759
760 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
761
762 PR tree-optimization/90836
763 * gcc/match.pd (popcount): New pattern.
764
765 2019-10-08 Martin Sebor <msebor@redhat.com>
766
767 PR middle-end/92026
768 PR middle-end/92014
769 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
770 again once nbytes has been set. Set the access size when not yet set.
771
772 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
773
774 * config/darwin.c (machopic_select_section): Remove dead code for
775 old Objective-C section selection method, replace with unreachable.
776
777 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
778
779 * config/darwin.c (machopic_indirect_data_reference): Check for
780 required indirections before making direct access to defined
781 values.
782 (machopic_output_indirection): Place the indirected pointes for
783 required indirections into the non-lazy symbol pointers section.
784 (darwin_encode_section_info):
785 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
786 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
787
788 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
789
790 PR target/91994
791 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
792 instead of ALL_SSE_REG to check if function call preserves some
793 256-bit SSE registers.
794
795 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
796
797 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
798 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
799 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
800
801 2019-10-08 Richard Biener <rguenther@suse.de>
802
803 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
804 (_stmt_vec_info::is_reduc_info): Add.
805 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
806 (vectorizable_condition): Remove.
807 (vectorizable_shift): Likewise.
808 (vectorizable_reduction): Adjust.
809 (info_for_reduction): New.
810 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
811 (vect_analyze_scalar_cycles_1): ... here.
812 (vect_analyze_loop_operations): Adjust.
813 (needs_fold_left_reduction_p): Simplify for single caller.
814 (vect_is_simple_reduction): Likewise. Remove stmt restriction
815 for nested cycles not part of double reductions.
816 (vect_model_reduction_cost): Pass in the reduction type.
817 (info_for_reduction): New function.
818 (vect_create_epilog_for_reduction): Use it, access reduction
819 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
820 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
821 (vectorize_fold_left_reduction): Remove pointless assert.
822 (vectorizable_reduction): Analyze the full reduction when
823 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
824 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
825 stmt code-generation to vectorizable_* in most cases. Verify
826 code-generation only for cases handled by
827 vect_transform_reductuon.
828 (vect_transform_reduction): Use info_for_reduction to get at
829 reduction meta. Simplify.
830 (vect_transform_cycle_phi): Likewise.
831 (vectorizable_live_operation): Likewise.
832 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
833 at the PHI node for STMT_VINFO_REDUC_TYPE.
834 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
835 longer necessary code.
836 * tree-vect-stmts.c (vectorizable_shift): Make static again.
837 (vectorizable_condition): Likewise. Get at reduction related
838 info via info_for_reduction.
839 (vect_analyze_stmt): Adjust.
840 (vect_transform_stmt): Likewise.
841 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
842 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
843
844 2019-10-08 Joseph Myers <joseph@codesourcery.com>
845
846 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
847 -fno-fp-int-builtin-inexact default for C2X.
848
849 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
850 Richard Biener <rguenther@suse.de>
851
852 PR tree-optimization/91532
853 * tree-if-conv.c: Include tree-ssa-dse.h.
854 (ifcvt_local_dce): Change param from bb to loop,
855 and call dse_classify_store.
856 (tree_if_conversion): Pass loop instead of loop->header as arg
857 to ifcvt_local_dce.
858 * tree-ssa-dse.c: Include tree-ssa-dse.h.
859 (delete_dead_or_redundant_assignment): Remove static qualifier from
860 declaration, and add prototype in tree-ssa-dse.h.
861 (dse_store_status): Move to tree-ssa-dse.h.
862 (dse_classify_store): Remove static qualifier and add new tree param
863 stop_at_vuse, and add prototype in tree-ssa-dse.h.
864 * tree-ssa-dse.h: New header.
865
866 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
867
868 * config/darwin.c (machopic_output_indirection): Don't put
869 hidden symbol indirections into the .data section, use the
870 non-lazy symbol pointers section as normal.
871 (darwin_encode_section_info): Record if a symbol is hidden.
872 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
873 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
874
875 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
876
877 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
878 predicates instead of accessing bits directly.
879 (machopic_indirect_call_target): Likewise.
880 (machopic_output_indirection): Likewise.
881 (darwin_encode_section_info): Improve description. Use renamed
882 symbol flags. Use predicate macros for variables and functions.
883 * config/darwin.h:
884 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
885 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
886 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
887 (MACHO_SYMBOL_VARIABLE_P): New.
888 (MACHO_SYMBOL_DEFINED_P):New.
889 (MACHO_SYMBOL_STATIC_P): New.
890 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
891 (SYMBOL_FLAG_SUBT_DEP): New.
892 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
893
894 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
895
896 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
897 (msp430_expand_epilogue): Likewise.
898 * config/msp430/predicates.md: Likewise.
899 * config/msp430/msp430.md: Likewise.
900 Replace blocks of 8 spaces with tabs.
901
902 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
903
904 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
905 * config/msp430/msp430.c (msp430_split_addsi): New.
906 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
907 a block of C code for splitting addsi.
908
909 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
910
911 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
912 ix86_expand_rounddf_32): Reorder functions.
913 * config/i386/i386-protos.h: Update.
914
915 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
916
917 * config.in: Regenerate.
918 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
919 Add new "Yx" constraint.
920 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
921 function.
922 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
923 prototype.
924 * config/msp430/msp430.c (msp430_option_override): Allow the lower
925 code/data region to be selected in the small memory model.
926 (msp430_section_attr): Don't warn if the "section" and "lower"
927 attributes are used together.
928 (msp430_handle_generic_attribute): Likewise.
929 (msp430_var_in_low_mem): New function.
930 (TARGET_ENCODE_SECTION_INFO): Define.
931 (msp430_encode_section_info): New function.
932 (gen_prefix): Return early in the small memory model.
933 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
934 ".lower" prefix if -m{code,data}-region=lower have been passed.
935 (msp430_output_aligned_decl_common): Emit common symbols when
936 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
937 set.
938 (TARGET_ASM_FILE_END): Define.
939 (msp430_file_end): New function.
940 (msp430_do_not_relax_short_jumps): Allow relaxation when
941 function will be in the lower region.
942 (msp430_op_not_in_high_mem): New function.
943 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
944 the 'X' operand selector.
945 Clarify comment for 'x' operand selector.
946 * config/msp430/msp430.h (LINK_SPEC): Propagate
947 -m{code,data}-region to the linker via spec function
948 msp430_propagate_region_opt.
949 (msp430_propagate_region_opt): New prototype.
950 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
951 (SYMBOL_FLAG_LOW_MEM): Define.
952 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
953 selector.
954 (zero_extendqihi2): Fix operand number used by "%X" selector.
955 (zero_extendqisi2): Likewise.
956 (zero_extendhisi2): Likewise.
957 (movqi): Use "Yx" constraint in place of "%X" operand selector.
958 (movhi): Likewise.
959 (addqi3): Likewise.
960 (addhi3): Likewise.
961 (addsi3): Likewise.
962 (addhi3_cy): Likewise.
963 (addchi4_cy): Likewise.
964 (subqi3): Likewise.
965 (subhi3): Likewise.
966 (subsi3): Likewise.
967 (bic<mode>3): Likewise.
968 (and<mode>3): Likewise.
969 (ior<mode>3): Likewise.
970 (xor<mode>3): Likewise.
971 (slli_1): Add missing "%X" operand selector.
972 (slll_1): Likewise.
973 (slll_2): Likewise.
974 (srai_1): Likewise.
975 (sral_1): Likewise.
976 (sral_2): Likewise.
977 (srli_1): Likewise.
978 (srll_1): Likewise.
979 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
980 selector.
981 (cbranchhi4_real): Likewise.
982 (cbranchqi4_reversed): Likewise.
983 (cbranchhi4_reversed): Likewise.
984 (*bitbranch<mode>4): Likewise.
985 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
986 * config/msp430/msp430.opt (mcode-region=): Set default to
987 MSP430_REGION_LOWER. Improve docstring.
988 (mdata-region=): Likewise.
989 (muse-lower-region-prefix): New option.
990 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
991 mdata-region=none multilib.
992 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
993 mdata-region=none multilib.
994 MULTILIB_EXCEPTIONS: Remove.
995 MULTILIB_REQUIRED: Define.
996 * configure: Regenerate.
997 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
998 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
999 * doc/extend.texi: Clarify comment for {upper,lower,either}
1000 function attributes.
1001 Add separate description for "lower" variable attribute.
1002
1003 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1004
1005 PR target/77918
1006 * optabs-tree.c (vcond_icode_p): New function.
1007 (vcond_eq_icode_p): Likewise.
1008 (expand_vec_cond_expr_p): Use vcond_icode_p and
1009 vcond_eq_icode_p.
1010 * optabs.c (can_vcond_compare_p): New function.
1011 * optabs.h (can_vcond_compare_p): Likewise.
1012
1013 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1014
1015 PR target/77918
1016 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1017 caller passes a non-trapping condition.
1018 (is_gimple_condexpr): Allow trapping conditions.
1019 (is_gimple_condexpr_1): New helper function.
1020 (is_gimple_condexpr_for_cond): New function, acts like old
1021 is_gimple_condexpr.
1022 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1023 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1024 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1025 * gimplify.c (gimplify_cond_expr): Use
1026 is_gimple_condexpr_for_cond.
1027 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1028 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1029 VEC_COND_EXPR.
1030 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1031 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1032 is_gimple_condexpr_for_cond, remove pointless tmp check
1033 (forward_propagate_into_cond): Remove pointless tmp check.
1034
1035 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1036
1037 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1038 match that of other gsi_next_* functions. Adjust the comment.
1039 (gsi_start_nonvirtual_phis): New function.
1040 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1041 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1042
1043 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1044
1045 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1046 setjmp situation here. Fix a verb's ending: "the exact variables or
1047 elements for which there are warnings depends" -> "... depend".
1048
1049 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1050
1051 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1052
1053 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1054
1055 * ipa-prop.c (ipa_vr::nonzero_p): New.
1056 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1057 non-zero range.
1058 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1059 * tree-vrp.c (range_has_numeric_bounds_p): New.
1060 (range_int_cst_p): Use range_has_numeric_bounds_p.
1061 (get_range_op_handler): New.
1062 (supported_types_p): New.
1063 (defined_ranges_p): New.
1064 (drop_undefines_to_varying): New.
1065 (range_fold_binary_symbolics_p): New.
1066 (range_fold_unary_symbolics_p): New.
1067 (range_fold_unary_expr): Extract out into above functions.
1068 (range_fold_binary_expr): Same.
1069 (value_range_base::normalize_addresses): New.
1070 (value_range_base::normalize_symbolics): Normalize addresses.
1071 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1072
1073 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1074
1075 * tree-vrp.c (value_range_base::singleton_p): Use
1076 value_range_base::num_pairs instead of vrp_val_is* to check
1077 if a range has one sub-range.
1078
1079 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1080
1081 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1082 DEF is not a true earlyclobber but is tied to a specific input
1083 operand, and so is effectively earlyclobber wrt inputs that have
1084 different values.
1085 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1086
1087 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1088
1089 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1090 (pod_mode): Mark operators likewise.
1091 (scalar_int_mode): Mark non-default constructors and
1092 operators with CONSTEXPR.
1093 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1094 (fixed_size_mode): Likewise.
1095
1096 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1097
1098 PR target/91994
1099 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1100 and wrap the unspec_volatile in a parallel.
1101 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1102 the unspec_volatile.
1103 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1104 unspec_volatile to be wrapped in a parallel.
1105 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1106 (ix86_add_reg_usage_to_vzerouppers): New functions.
1107 (rest_of_handle_insert_vzeroupper): Use them to add register
1108 usage information to the vzeroupper instructions.
1109
1110 2019-10-07 Richard Biener <rguenther@suse.de>
1111
1112 PR tree-optimization/91975
1113 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1114 handle invariants.
1115
1116 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1117
1118 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1119 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1120
1121 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1122
1123 * config/darwin.c (darwin_override_options): Adjust objective-c
1124 ABI version error messages to avoid punctuation and contracted
1125 negations.
1126
1127 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1128
1129 * ipa-inline.c: Fix type; compute size rather than self_size
1130 for size of caller function.
1131
1132 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1133
1134 PR target/59888
1135 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1136 choose const_data section for constants with relocations.
1137 (machopic_select_section): Pass relocation flag to
1138 darwin_rodata_section ().
1139
1140 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1141
1142 PR tree-optimization/91734
1143 * generic-match-head.c: Include fold-const-call.h.
1144 * match.pd (sqrt(x) cmp c): Check the boundary value and
1145 in case inexact computation of c*c affects comparison of the boundary,
1146 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1147 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1148 for -frounding-math. For c2, try the next smaller or larger floating
1149 point constant depending on comparison code and if it has the same
1150 sqrt as c2, use it instead of c2.
1151
1152 2019-10-04 Martin Sebor <msebor@redhat.com>
1153
1154 PR middle-end/91977
1155 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1156 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1157 uninitialized objects.
1158
1159 2019-10-04 Martin Sebor <msebor@redhat.com>
1160
1161 * builtins.c (compute_objsize): Add an argument.
1162 * tree-object-size.c (addr_object_size): Same.
1163 (compute_builtin_object_size): Same.
1164 * tree-object-size.h (compute_builtin_object): Same.
1165
1166 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1167
1168 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1169
1170 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1171
1172 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1173
1174 2019-10-04 Martin Jambor <mjambor@suse.cz>
1175
1176 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1177 fntype when switching to calling memcpy instead of memset.
1178
1179 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1180
1181 * hash-table.h (hash_table::empty_slow): Don't assign
1182 size_t values to int variables.
1183
1184 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1185
1186 * expr.c (convert_mode_scalar): Remove shadowing local var.
1187 (emit_block_move): Rename local vars.
1188 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1189 (emit_push_insn): Rename local vars.
1190 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1191 shadowing local vars.
1192 (store_constructor): Remove shadowing local vars. Rename local var.
1193 (store_field, expand_cond_expr_using_cmove,
1194 expand_expr_real_2): Remove shadowing local vars.
1195 (expand_expr_real_1,
1196 do_store_flag): Remove shadowing local vars. Rename local vars.
1197
1198 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1199
1200 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1201
1202 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1203
1204 * genmatch.c (commutate): Rename local var.
1205 (lower_cond): Reuse local var.
1206 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1207 dt_operand::gen, dt_operand::gen_gimple_expr,
1208 dt_simplify::gen): Add a param. Rename generated vars.
1209 (decision_tree::insert_operand,
1210 (capture_info::walk_match, capture_info::walk_result,
1211 capture_info::walk_c_expr): Rename local vars.
1212 (expr::gen_transform): Rename generated vars.
1213 Use snprintf. Rename local vars.
1214 (capture::gen_transform, dt_operand::get_name,
1215 dt_operand::gen_opname): Rename generated vars.
1216 (write_predicate): Adjust call to gen_kids.
1217 (parser::get_internal_capture_id): Rename generated vars.
1218 (parser::parse_expr): Rename local vars.
1219 (parser::parse_if): Remove local var.
1220 (parser::parse_pattern, add_operator): Rename local vars.
1221
1222 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1223
1224 * builtins.def (DEF_C2X_BUILTIN): New macro.
1225 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1226 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1227 (strndup): Use DEF_C2X_BUILTIN.
1228 * coretypes.h (enum function_class): Add function_c2x_misc.
1229
1230 2019-10-04 Maya Rashish <coypu@sdf.org>
1231
1232 * ira-color.c (update_costs_from_allocno): Call
1233 ira_init_register_move_cost_if_necessary.
1234
1235 2019-10-04 Jeff Law <law@redhat.com>
1236
1237 * config/h8300/h8300.md (cpymemsi): Disable.
1238 (movmd, movmd_internal_<mode>, movstr, movsd):
1239 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1240 (movmd splitter, movsd splitter): Likewise.
1241
1242 * range-op.cc (range_tests): Avoid two tests when ints and
1243 shorts are the same size.
1244
1245 2019-10-04 Richard Biener <rguenther@suse.de>
1246
1247 PR lto/91968
1248 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1249 BLOCK_VARS.
1250
1251 2019-10-04 Richard Biener <rguenther@suse.de>
1252
1253 PR tree-optimization/91982
1254 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1255 against EXTRACT_LAST_REDUCTION.
1256 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1257
1258 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1259
1260 * range-op.o (value_range_from_overflowed_bounds): Rename from
1261 adjust_overflow_bound.
1262 (value_range_with_overflow): Rename from
1263 create_range_with_overflow.
1264 (create_possibly_reversed_range): Adjusted for above renames.
1265 (operator_*::wi_fold): Same.
1266 (cross_product_operator::wi_cross_productor): Same.
1267
1268 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1269
1270 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1271 -Wshadow=compatible-local): Fix description.
1272 Add an example where -Wshadow=compatible-local does not
1273 warn.
1274
1275 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1276
1277 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1278
1279 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1280 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1281
1282 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1283
1284 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1285 can_move_by_pieces issue.
1286
1287 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1288
1289 PR target/87243
1290 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1291 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1292 is available and the user has not set one on the command line.
1293
1294 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1295
1296 PR target/91769
1297 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1298 instead of REGNO equality check on addr.reg.
1299
1300 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1301
1302 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1303 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1304 * doc/invoke.texi (inline-heuristics-hint-percent,
1305 inline-heuristics-hint-percent-O2): Document.
1306 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1307 hint attribute.
1308 (can_inline_edge_by_limits_p): Use it.
1309
1310 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1311
1312 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1313 to print CONST_DOUBLEs.
1314
1315 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1316
1317 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1318 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1319 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1320
1321 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1322
1323 * Makefile.in (OBJS): Add range.o and range-op.o.
1324 Remove wide-int-range.o.
1325 * function-tests.c (test_ranges): New.
1326 (function_tests_c_tests): Call test_ranges.
1327 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1328 range_fold_unary_expr instead of extract_range_from_unary_expr.
1329 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1330 * range-op.cc: New file.
1331 * range-op.h: New file.
1332 * range.cc: New file.
1333 * range.h: New file.
1334 * selftest.h (range_tests): New prototype.
1335 * ssa.h: Include range.h.
1336 * tree-vrp.c (value_range_base::value_range_base): New
1337 constructors.
1338 (value_range_base::singleton_p): Do not call
1339 ranges_from_anti_range until sure we will need to.
1340 (value_range_base::type): Rename gcc_assert to
1341 gcc_checking_assert.
1342 (vrp_val_is_max): New argument.
1343 (vrp_val_is_min): Same.
1344 (wide_int_range_set_zero_nonzero_bits): Move from
1345 wide-int-range.cc.
1346 (extract_range_into_wide_ints): Remove.
1347 (extract_range_from_multiplicative_op): Remove.
1348 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1349 from extract_range_from_binary_expr.
1350 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1351 from extract_range_from_binary_expr.
1352 (extract_range_from_binary_expr): Remove.
1353 (normalize_for_range_ops): New.
1354 (range_fold_binary_expr): New.
1355 (range_fold_unary_expr): New.
1356 (value_range_base::num_pairs): New.
1357 (value_range_base::lower_bound): New.
1358 (value_range_base::upper_bound): New.
1359 (value_range_base::upper_bound): New.
1360 (value_range_base::contains_p): New.
1361 (value_range_base::invert): New.
1362 (value_range_base::union_): New.
1363 (value_range_base::intersect): New.
1364 (range_compatible_p): New.
1365 (value_range_base::operator==): New.
1366 (determine_value_range_1): Call range_fold_*expr instead of
1367 extract_range_from_*expr.
1368 * tree-vrp.h (class value_range_base): Add new constructors.
1369 Add methods for union_, intersect, operator==, contains_p,
1370 num_pairs, lower_bound, upper_bound, invert.
1371 (vrp_val_is_min): Add handle_pointers argument.
1372 (vrp_val_is_max): Same.
1373 (extract_range_from_unary_expr): Remove.
1374 (extract_range_from_binary_expr): Remove.
1375 (range_fold_unary_expr): New.
1376 (range_fold_binary_expr): New.
1377 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1378 range_fold_binary_expr instead of extract_range_from_binary_expr.
1379 (vr_values::extract_range_basic): Same.
1380 (vr_values::extract_range_from_unary_expr): Call
1381 range_fold_unary_expr instead of extract_range_from_unary_expr.
1382 * wide-int-range.cc: Remove.
1383 * wide-int-range.h: Remove.
1384
1385 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1386
1387 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1388 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1389 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1390 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1391 macro.
1392
1393 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1394
1395 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1396 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1397 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1398 * glimits.h: Likewise.
1399
1400 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1401
1402 PR rtl-optimization/91976
1403 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1404 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1405 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1406
1407 2019-10-02 Martin Sebor <msebor@redhat.com>
1408
1409 PR tree-optimization/80936
1410 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1411
1412 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1413
1414 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1415 instead of reg_class_contents[ALL_REGS].
1416
1417 2019-09-30 Jason Merrill <jason@redhat.com>
1418
1419 Add some hash_map_safe_* functions like vec_safe_*.
1420 * hash-map.h (default_hash_map_size): New variable.
1421 (create_ggc): Use it as default argument.
1422 (hash_map_maybe_create, hash_map_safe_get)
1423 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1424
1425 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1426
1427 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1428 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1429 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1430 (can_inline_edge_by_limits_p): Use it.
1431 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1432 (want_inline_small_function_p): Use O2 bounds.
1433 (edge_badness): LIkewise.
1434 * opts.c (default_options): Add OPT_finline_functions.
1435 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1436 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1437 New parameters.
1438 * doc/invoke.texi (-finline-functions): Update documentation.
1439 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1440 inline-min-speedup-O2): Document.
1441 (early-inlining-insns-O2): Simplify docs.
1442
1443 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1444
1445 PR rtl-optimization/87047
1446 * ifcvt.c (average_cost): New static function. Use it...
1447 (noce_process_if_block): ... here.
1448
1449 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1450
1451 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1452 * config/rs6000/rs6000-string.c (expand_block_move): Add
1453 might_overlap parm.
1454 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1455 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1456
1457 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1458
1459 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1460 (expand_builtin_memcpy): Use might_overlap parm.
1461 (expand_builtin_mempcpy_args): Use might_overlap parm.
1462 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1463 (expand_builtin_memory_copy_args): Add might_overlap parm.
1464 * expr.c (emit_block_move_via_cpymem): Rename to
1465 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1466 or movmem optab as appropriate.
1467 (emit_block_move_hints): Add might_overlap parm, do the right
1468 thing for might_overlap==true.
1469 * expr.h (emit_block_move_hints): Update prototype.
1470
1471 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1472
1473 * tree-eh.h (unsplit_eh_edges): Declare.
1474 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1475 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1476 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1477 (struct store_immediate_info): Add lp_nr field.
1478 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1479 initialize lp_nr with it.
1480 (struct merged_store_group): Add lp_nr and only_constants fields.
1481 (merged_store_group::merged_store_group): Initialize them.
1482 (merged_store_group::can_be_merged_into): Deal with them.
1483 (pass_store_merging): Rename terminate_and_release_chain into
1484 terminate_and_process_chain.
1485 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1486 renaming and remove useless assertions.
1487 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1488 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1489 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1490 instead of always recomputing it and compare lp_nr.
1491 (imm_store_chain_info::output_merged_store): If the group is in an
1492 active EH region, register new stores if they can throw. Moreover,
1493 if the insertion has created new basic blocks, adjust the PHI nodes
1494 of the post landing pad.
1495 (imm_store_chain_info::output_merged_stores): If the original stores
1496 are in an active EH region, deregister them.
1497 (lhs_valid_for_store_merging_p): Prettify.
1498 (adjust_bit_pos): New function extracted from...
1499 (mem_valid_for_store_merging): ...here. Use it for the base address
1500 and also for the offset if it is the addition of a constant.
1501 (lp_nr_for_store): New function.
1502 (pass_store_merging::process_store): Change return type to bool.
1503 Call lp_nr_for_store to initialize the store info. Propagate the
1504 return status of various called functions to the return value.
1505 (store_valid_for_store_merging_p): New predicate.
1506 (enum basic_block_status): New enumeration.
1507 (get_status_for_store_merging): New function.
1508 (pass_store_merging::execute): If the function can throw and catch
1509 non-call exceptions, unsplit the EH edges on entry and clean up the
1510 CFG on exit if something changed. Call get_status_for_store_merging
1511 for every basic block and keep the chains open across basic blocks
1512 when possible. Terminate and process open chains at the end, if any.
1513
1514 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1515
1516 * reginfo.c (globalize_reg): Fix shadowed variable in
1517 function_abis walk.
1518
1519 2019-10-02 Martin Jambor <mjambor@suse.cz>
1520
1521 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1522 do not compute some stuff when set.
1523 (cgraph_node::create_edge): Likewise.
1524 (cgraph_node::create_indirect_edge): Renamed last parameter to
1525 coning_p and flipped its meaning, don't even calculate
1526 inline_failed when set.
1527 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1528 (symbol_table::::create_edge): Likewise.
1529 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1530 the default value.
1531 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1532 call graph edge creating functions.
1533
1534 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1535
1536 PR c++/91222
1537 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1538 namespace types.
1539
1540 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1541
1542 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1543
1544 2019-10-02 Richard Biener <rguenther@suse.de>
1545
1546 * tree-vectorizer.h (vect_transform_reduction): Declare.
1547 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1548 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1549 stmt transform to ...
1550 (vect_transform_reduction): ... this.
1551
1552 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1553
1554 * omp-low.c (lower_omp_target): Dereference optional argument
1555 to work with the right pointer.
1556
1557 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1558
1559 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1560 false.
1561 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1562 * langhooks.h (omp_is_optional_argument): New hook.
1563 * omp-general.c (omp_is_optional_argument): New.
1564 * omp-general.h (omp_is_optional_argument): New declaration.
1565 * omp-low.c (lower_omp_target): Create temporary for received value
1566 and take the address for new_var if the original variable was a
1567 DECL_BY_REFERENCE. Use size of referenced object when a
1568 pass-by-reference optional argument used as argument to firstprivate.
1569
1570 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1571
1572 PR tree-optimization/91940
1573 * tree-vect-patterns.c: Include tree-vector-builder.h and
1574 vec-perm-indices.h.
1575 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1576 unpromoting the argument back to uint16_t, or by converting into a
1577 rotate, or into shifts plus ior.
1578
1579 2019-10-02 Richard Biener <rguenther@suse.de>
1580
1581 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1582 New.
1583 (vect_transform_cycle_phi): Declare.
1584 * tree-vect-stmts.c (vect_transform_stmt): Call
1585 vect_transform_cycle_phi.
1586 * tree-vect-loop.c (vectorizable_reduction): Split out
1587 PHI transformation stage to ...
1588 (vect_transform_cycle_phi): ... here.
1589
1590 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1591
1592 PR middle-end/91957
1593 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1594 eliminable registers.
1595 (make_hard_regno_live): Likewise, and don't make them live.
1596
1597 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1598
1599 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1600 Call pp_emit_prefix.
1601 (layout::print_source_line): Likewise.
1602 (layout::start_annotation_line): Likewise.
1603 (diagnostic_show_locus): Remove call to temporarily clear the
1604 prefix.
1605 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1606 interaction of pp_set_prefix with rulers and fix-it hints.
1607 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1608 prefix when calling diagnostic_show_locus, rather than destroying
1609 it afterwards.
1610 (print_parseable_fixits): Temporarily clear prefix.
1611 * pretty-print.c (pp_format): Save and restore line_length, rather
1612 than assuming it is zero.
1613 (pp_output_formatted_text): Remove assertion that line_length is
1614 zero.
1615
1616 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1617
1618 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1619 Rename to ...
1620 (nonoverlapping_refs_since_match_p): ... this; handle also
1621 ARRAY_REFs.
1622 (alias_stats): Update stats.
1623 (dump_alias_stats): Likewise.
1624 (cheap_array_ref_low_bound): New function.
1625 (aliasing_matching_component_refs_p): Add partial_overlap
1626 argument;
1627 pass it to nonoverlapping_refs_since_match_p.
1628 (aliasing_component_refs_walk): Update call of
1629 aliasing_matching_component_refs_p
1630 (nonoverlapping_array_refs_p): New function.
1631 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1632 indirect_refs_may_alias_p): Update calls of
1633 nonoverlapping_refs_since_match_p.
1634
1635 2019-10-01 Maya Rashish <coypu@sdf.org>
1636
1637 PR target/85401
1638 * ira-color.c (allocno_copy_cost_saving): Call
1639 ira_init_register_move_cost_if_necessary.
1640
1641 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1642
1643 * Makefile.in (gnat_install_lib): New variable.
1644 * configure.ac: Substitute it.
1645 * configure: Regenerate.
1646
1647 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1648
1649 PR lto/91222
1650 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1651 is matched with non-C++ type
1652
1653 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1654
1655 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1656 after local CSE.
1657
1658 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1659
1660 * doc/invoke.texi (early-inlining-insns-O2): Document.
1661 (early-inlining-insns): Update.
1662 * params.def (early-inlining-insns-O2): New bound.
1663 (early-inlining-insns): Update docs.
1664 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1665
1666 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1667
1668 PR target/88562
1669 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1670 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1671 a memory access insn.
1672
1673 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1674
1675 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1676 vpmsumd.
1677
1678 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1679
1680 PR target/77918
1681 * config/s390/s390.c (s390_expand_vec_compare): Use
1682 gen_vec_cmpordered and gen_vec_cmpunordered.
1683 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1684 vec_unordered): Delete.
1685 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1686 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1687 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1688 (vec_cmp<code>): Generic dispatcher.
1689
1690 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1691
1692 PR target/77918
1693 * config/s390/vector.md (V_HW): Add V1TI in order to make
1694 vcond$a$b generate vcondv1tiv1tf.
1695
1696 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1697
1698 PR rtl-optimization/91948
1699 * ira-build.c (ira_create_allocno): Initialize
1700 ALLOCNO_CROSSED_CALLS_ABIS.
1701 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1702 than regno to ira_need_caller_save_p.
1703
1704 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1705
1706 * config/i386/i386-options.c
1707 (ix86_recompute_optlev_based_flags): New, moved out of...
1708 (ix86_option_override_internal): ... this. Call it.
1709 (ix86_override_options_after_change): Call it here too.
1710
1711 PR debug/91507
1712 * dwarf2out.c (override_type_for_decl_p): New.
1713 (gen_variable_die): Use it.
1714
1715 2019-10-01 Richard Biener <rguenther@suse.de>
1716
1717 * tree-vect-loop.c (vectorizable_reduction): Move variables
1718 to where they are used.
1719
1720 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1721
1722 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1723 (build_def_use): Use PC instead of CC0 in a comment.
1724
1725 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 * rtl.def (CLOBBER_HIGH): Delete.
1728 * doc/rtl.texi (clobber_high): Remove documentation.
1729 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1730 (reg_is_clobbered_by_clobber_high): Delete.
1731 (gen_hard_reg_clobber_high): Likewise.
1732 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1733 * cfgexpand.c (expand_gimple_stmt): Likewise.
1734 * combine-stack-adj.c (single_set_for_csa): Likewise.
1735 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1736 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1737 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1738 * cse.c (invalidate_reg): Remove clobber_high parameter.
1739 (invalidate): Update call accordingly.
1740 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1741 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1742 (count_reg_usage, insn_live_p): Likewise.
1743 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1744 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1745 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1746 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1747 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1748 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1749 (mark_nonreg_stores_2): Likewise.
1750 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1751 (df_get_call_refs): Likewise.
1752 * dwarf2out.c (mem_loc_descriptor): Likewise.
1753 * emit-rtl.c (verify_rtx_sharing): Likewise.
1754 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1755 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1756 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1757 * genemit.c (gen_exp, gen_insn): Likewise.
1758 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1759 * haifa-sched.c (haifa_classify_rtx): Likewise.
1760 * ira-build.c (create_insn_allocnos): Likewise.
1761 * ira-costs.c (scan_one_insn): Likewise.
1762 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1763 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1764 * jump.c (mark_jump_label_1): Likewise.
1765 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1766 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1767 handling.
1768 (mark_not_eliminable): Likewise.
1769 * lra-lives.c (process_bb_lives): Likewise.
1770 * lra.c (new_insn_reg): Remove clobber_high parameter.
1771 (collect_non_operand_hard_regs): Likewise. Update call to new
1772 insn_reg. Remove CLOBBER_HIGH handling.
1773 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1774 to collect_non_operand_hard_regs.
1775 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1776 Update call to new_insn_reg.
1777 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1778 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1779 (move2add_note_store): Likewise.
1780 * print-rtl.c (print_pattern): Likewise.
1781 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1782 (if_test_bypass_p): Likewise.
1783 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1784 * reginfo.c (reg_scan_mark_refs): Likewise.
1785 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1786 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1787 (forget_old_reloads_1): Likewise.
1788 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1789 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1790 (dbr_schedule): Likewise.
1791 * resource.c (update_live_status, mark_referenced_resources)
1792 (mark_set_resources): Likewise.
1793 * rtl.c (copy_rtx): Likewise.
1794 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1795 (note_pattern_stores): Likewise.
1796 (reg_is_clobbered_by_clobber_high): Delete.
1797 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1798 CLOBBER_HIGH handling.
1799
1800 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1801
1802 PR target/91452
1803 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1804 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1805 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1806 Handle ARM_PCS_TLSDESC.
1807 (aarch64_tlsdesc_abi_id): New function.
1808 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1809 rtx instead of a list of clobbers and clobber_highs.
1810 (tlsdesc_small_<mode>): Update accordingly.
1811
1812 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1813
1814 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1815 extra callee_abi argument.
1816 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1817 Insert a CALLEE_ABI unspec into the call pattern as the second
1818 element in the PARALLEL.
1819 (aarch64_simd_call_p): Delete.
1820 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1821 the new CALLEE_ABI element of the PARALLEL.
1822 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1823 from the function type, if given.
1824 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1825 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1826 when passed the function_arg_info end marker.
1827 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1828 final argument of gen_sibcall.
1829 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1830 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1831 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1832 pattern.
1833 (call_value): Likewise operand 3.
1834 (sibcall): Likewise operand 2. Place the unspec before rather than
1835 after the return.
1836 (sibcall_value): Likewise operand 3.
1837 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1838 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1839 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1840 constraint strings.
1841 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1842
1843 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1844
1845 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1846 choose_hard_reg_mode.
1847 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1848
1849 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1850
1851 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1852 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1853 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1854
1855 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1856
1857 * diagnostic-show-locus.c (line_label::line_label): Initialize
1858 m_has_vbar.
1859 (line_label::comparator): Reverse the sort order by m_state_idx,
1860 so that when the list is walked backwards the labels appear in
1861 order of insertion into the rich_location.
1862 (line_label::m_has_vbar): New field.
1863 (layout::print_any_labels): When dealing with multiple labels at
1864 the same line and column, only print vertical bars for the one
1865 with the highest label_line.
1866 (selftest::test_one_liner_labels): Update test for multiple labels
1867 to expect the labels to be in the order of insertion into the
1868 rich_location. Add a test for many such labels, where the column
1869 numbers are out-of-order relative to the insertion order.
1870
1871 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1872
1873 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1874 (ix86_frame::expensive_count): Likewise.
1875 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1876 of use_fast_prologue_epilogue robust against incidental changes
1877 in function size.
1878
1879 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1880
1881 PR target/77918
1882 * config/s390/vector.md (vec_unordered<mode>): Call
1883 gen_vec_ordered<mode>.
1884
1885 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1886
1887 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1888 New pattern for ASRD.
1889 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1890 * internal-fn.def (IFN_DIV_POW2): New internal function.
1891 * optabs.def (sdiv_pow2_optab): New optab.
1892 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1893 Modify pattern to support new operation.
1894 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1895 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1896 Document new target selector.
1897
1898 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1899
1900 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1901 to test whether we're compiling a vector PCS function and to test
1902 whether the function needs to save a particular register.
1903 Remove the vector PCS handling of df_set_regs_ever_live.
1904 (aarch64_components_for_bb): Use crtl->abi to test whether
1905 the function needs to save a particular register.
1906 (aarch64_process_components): Use crtl->abi to test whether
1907 we're compiling a vector PCS function.
1908 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1909 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1910
1911 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1912
1913 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1914 Delete.
1915 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1916 whether the block calls a function that clobbers more registers
1917 than the current function is allowed to.
1918 (aarch64_use_simple_return_insn_p): Delete.
1919 * config/aarch64/aarch64.md (simple_return): Remove condition.
1920
1921 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1922
1923 * function-abi.h (function_abi_aggregator): New class.
1924 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1925 function.
1926 * ira.c (update_equiv_regs_prescan): New function. Call
1927 set_paradoxical_subreg here rather than...
1928 (update_equiv_regs): ...here.
1929 (ira): Call update_equiv_regs_prescan.
1930
1931 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1932
1933 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1934 IN_TARGET_CODE.
1935 (call_used_or_fixed_regs): Likewise.
1936 (call_used_or_fixed_reg_p): Likewise.
1937 * reginfo.c (regs_invalidated_by_call): New macro.
1938
1939 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1940
1941 * shrink-wrap.c: Include function-abi.h.
1942 (requires_stack_frame_p): Use crtl->abi to test whether the
1943 current function can use a register without saving it first.
1944
1945 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1946
1947 * sel-sched-ir.h (_def::crosses_call): Replace with...
1948 (_def::crossed_call_abis): ..this new field.
1949 (def_list_add): Take a mask of ABIs instead of a crosses_call
1950 boolean.
1951 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1952 of _def accordingly.
1953 * sel-sched.c: Include function-abi.h.
1954 (hard_regs_data::regs_for_call_clobbered): Delete.
1955 (reg_rename::crosses_call): Replace with...
1956 (reg_rename::crossed_call_abis): ...this new field.
1957 (fur_static_params::crosses_call): Replace with...
1958 (fur_static_params::crossed_call_abis): ...this new field.
1959 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1960 (init_hard_regs_data): Use crtl->abi to test which registers the
1961 current function would need to save before it uses them.
1962 (mark_unavailable_hard_regs): Update handling of call-clobbered
1963 registers, using call_clobbers_in_region to find out which registers
1964 might be call-clobbered (but without taking -fipa-ra into account
1965 for now). Remove separate handling of partially call-clobbered
1966 registers.
1967 (verify_target_availability): Use crossed_call_abis instead of
1968 crosses_call.
1969 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1970 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1971
1972 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1973
1974 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1975 function to test whether a register is fully or partly clobbered.
1976
1977 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1978
1979 * rtlanal.c: Include function-abi.h.
1980 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1981 function and clobbers_reg_p to test whether the register
1982 is call-clobbered.
1983 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1984 to get the ABI of the called function and full_reg_clobbers to
1985 get the set of fully call-clobbered registers. Warn about the
1986 pitfalls of using this mode.
1987
1988 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * reload.c: Include function-abi.h.
1991 (find_equiv_reg): Use clobbers_reg_p to test whether either
1992 of the equivalent registers is clobbered by a call.
1993 * reload1.c: Include function-abi.h.
1994 (reg_reloaded_call_part_clobbered): Delete.
1995 (reload): Use crtl->abi to test which registers would need
1996 saving in the prologue before use.
1997 (find_reg): Likewise.
1998 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1999 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2000 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2001
2002 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2003
2004 * regrename.h (du_head::call_clobber_mask): New field.
2005 (du_head::need_caller_save_reg): Replace with...
2006 (du_head::call_abis): ...this new field.
2007 * regrename.c: Include function-abi.h.
2008 (call_clobbered_in_chain_p): New function.
2009 (check_new_reg_p): Use crtl->abi when deciding whether a register
2010 is free for use after RA. Use call_clobbered_in_chain_p to test
2011 whether a candidate register would be clobbered by a call.
2012 (find_rename_reg): Don't add call-clobber conflicts here.
2013 (rename_chains): Check call_abis instead of need_caller_save_reg.
2014 (merge_chains): Update for changes to du_head.
2015 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2016 target. Record the ABI identifier in call_abis and the set of
2017 fully or partially clobbered registers in call_clobber_mask.
2018 Add fully-clobbered registers to hard_conflicts here rather
2019 than in find_rename_reg.
2020 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2021 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2022 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2023 function-abi.h.
2024 * config/c6x/c6x.c: Likewise.
2025
2026 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2027
2028 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2029 mode of the register when deciding whether it is no longer
2030 available after a call.
2031
2032 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2033
2034 * recog.c: Include function-abi.h.
2035 (peep2_find_free_register): Use crtl->abi when deciding whether
2036 a register is free for use after RA.
2037
2038 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2039
2040 * postreload-gcse.c: Include regs.h and function-abi.h.
2041 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2042 call insn target. Conservatively assume that partially-clobbered
2043 registers are altered.
2044
2045 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2046
2047 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2048 when deciding whether a register is free for use after RA.
2049 (reload_combine): Remove unnecessary use of fixed_reg_set.
2050 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2051 call insn target. Use reg_mode when testing whether a register
2052 is no longer available.
2053
2054 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2055
2056 * target.def (return_call_with_max_clobbers): Delete.
2057 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2058 * doc/tm.texi: Regenerate.
2059 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2060 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2061 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2062 (lra_reg::call_insn): Delete.
2063 * lra.c: Include function-abi.h.
2064 (initialize_lra_reg_info_element): Don't initialize the fields above.
2065 (lra): Use crtl->abi to test whether the current function needs to
2066 save a register in the prologue. Remove special pre-inheritance
2067 lra_create_live_ranges pass for flag_ipa_ra.
2068 * lra-assigns.c: Include function-abi.h
2069 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2070 function needs to save a register in the prologue.
2071 (lra_assign): Assert that registers aren't allocated to a
2072 conflicting register, rather than checking only for overlaps
2073 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2074 and for registers that are not live across a call.
2075 * lra-constraints.c (last_call_for_abi): New variable.
2076 (full_and_partial_call_clobbers): Likewise.
2077 (setup_next_usage_insn): Remove the register from
2078 full_and_partial_call_clobbers.
2079 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2080 whether the register needs a caller save.
2081 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2082 of call_used_or_fixed_regs.
2083 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2084 full_and_partial_call_clobbers.
2085 * lra-lives.c (check_pseudos_live_through_calls): Replace
2086 last_call_used_reg_set and call_insn arguments with an abi argument.
2087 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2088 as the set of conflicting registers.
2089 (calls_have_same_clobbers_p): Delete.
2090 (process_bb_lives): Track the ABI of the last call instead of an
2091 insn/HARD_REG_SET pair. Update calls to
2092 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2093 the set of registers that could be clobbered by an EH edge.
2094 Include partially-clobbered as well as fully-clobbered registers.
2095 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2096 * lra-remat.c: Include function-abi.h.
2097 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2098 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2099 registers and bitmap_view to combine them into dead_regs.
2100 (call_used_input_regno_present_p): Take a function_abi argument
2101 and use it to test whether a register is call-clobbered.
2102 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2103 call insn target. Update tje call to call_used_input_regno_present_p.
2104 (do_remat): Likewise.
2105 (lra_remat): Remove the initialization of call_used_regs_arr_len
2106 and call_used_regs_arr.
2107
2108 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2109
2110 * loop-iv.c: Include regs.h and function-abi.h.
2111 (simplify_using_initial_values): Use insn_callee_abi to get the
2112 ABI of the call insn target. Conservatively assume that
2113 partially-clobbered registers are altered.
2114
2115 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2116
2117 * function-abi.h (call_clobbers_in_region): Declare.
2118 (call_clobbered_in_region_p): New function.
2119 * function-abi.cc (call_clobbers_in_region): Likewise.
2120 * ira-int.h: Include function-abi.h.
2121 (ira_allocno::crossed_calls_abis): New field.
2122 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2123 (ira_need_caller_save_regs): New function.
2124 (ira_need_caller_save_p): Likewise.
2125 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2126 of call_used_or_fixed_regs.
2127 (do_reload): Use crtl->abi to test whether the current function
2128 needs to save a register in the prologue. Count registers that
2129 need to be saved rather than registers that don't.
2130 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2131 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2132 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2133 (propagate_some_info_from_allocno): Likewise.
2134 (copy_info_to_removed_store_destinations): Likewise.
2135 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2136 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2137 (ira_build): Use ira_need_caller_save_regs instead of
2138 call_used_or_fixed_regs.
2139 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2140 whether the current function would need to save a register
2141 before using it.
2142 (calculate_spill_cost): Likewise.
2143 (allocno_reload_assign): Use ira_need_caller_save_regs and
2144 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2145 * ira-conflicts.c (ira_build_conflicts): Use
2146 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2147 as the set of call-clobbered registers. Remove the
2148 call_used_or_fixed_regs mask from the calculation of
2149 temp_hard_reg_set and mask its use instead. Remove special
2150 handling of partially-clobbered registers.
2151 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2152 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2153 calculate the set of conflicting registers for calls that
2154 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2155 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2156 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2157 Use eh_edge_abi to calculate the set of registers that could
2158 be clobbered by an EH edge. Include partially-clobbered as
2159 well as fully-clobbered registers.
2160
2161 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2162
2163 * haifa-sched.c: Include function-abi.h.
2164 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2165 the function would need to save a register before using it.
2166
2167 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * gcse.c: Include function-abi.h.
2170 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2171 the call insn target. Invalidate partially call-clobbered
2172 registers as well as fully call-clobbered ones.
2173
2174 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2175
2176 * function.c (aggregate_value_p): Work out which ABI the
2177 function is using before testing which registers are at least
2178 partly preserved by a call.
2179
2180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2181
2182 * early-remat.c: Include regs.h and function-abi.h.
2183 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2184 registers here.
2185 (early_remat::restrict_remat_for_unavail_regs): New function.
2186 (early_remat::restrict_remat_for_call): Likewise.
2187 (early_remat::process_block): Before calling emit_remat_insns
2188 for a previous call in the block, invalidate any candidates
2189 that would clobber call-preserved registers.
2190 (early_remat::emit_remat_insns_for_block): Likewise for the
2191 final call in a block. Do the same thing for live-in registers
2192 when calling emit_remat_insns at the head of a block.
2193
2194 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2195
2196 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2197 whether the current function needs to save at least part of a
2198 register before using it.
2199 (df_get_exit_block_use_set): Likewise for epilogue restores.
2200
2201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 * df-problems.c: Include regs.h and function-abi.h.
2204 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2205 sparse_invalidated_by_eh and dense_invalidated_by_call to
2206 dense_invalidated_by_eh.
2207 (df_print_bb_index): Update accordingly.
2208 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2209 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2210 that are clobbered by an EH edge. Clobber partially-clobbered
2211 registers as well as fully-clobbered ones.
2212 (df_md_confluence_n): Likewise.
2213 (df_rd_local_compute): Likewise. Update for changes to
2214 df_rd_problem_data.
2215 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2216 of registers that are clobbered by an EH edge. Includde partially-
2217 clobbered registers as well as fully-clobbered ones.
2218
2219 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2220
2221 * cselib.c (cselib_process_insn): If we know what mode a
2222 register was set in, check whether it is clobbered in that
2223 mode by a call. Only fall back to reg_raw_mode if that fails.
2224
2225 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2226
2227 * cse.c: Include regs.h and function-abi.h.
2228 (invalidate_for_call): Take the call insn as an argument.
2229 Use insn_callee_abi to get the ABI of the call and invalidate
2230 partially clobbered registers as well as fully clobbered ones.
2231 (cse_insn): Update call accordingly.
2232
2233 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2234
2235 * combine.c: Include function-abi.h.
2236 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2237 of the target of call insns. Invalidate partially-clobbered
2238 registers as well as fully-clobbered ones.
2239
2240 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2241
2242 * cfgloopanal.c: Include regs.h and function-abi.h.
2243 (init_set_costs): Use default_function_abi to test whether
2244 a general register is call-clobbered.
2245
2246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2247
2248 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2249 instead of the call-clobbered sets.
2250
2251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2252
2253 * caller-save.c (setup_save_areas): Remove redundant |s of
2254 fixed_reg_set.
2255 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2256 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2257 value is useful.
2258
2259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2260
2261 * rtl.h (predefined_function_abi): Declare.
2262 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2263 instead of a boolean call_save flag.
2264 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2265 accordingly.
2266 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2267 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2268 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2269 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2270 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2271 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2272 * reginfo.c (init_reg_modes_target): Likewise.
2273 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2274 instead of a boolean call_save flag.
2275 * targhooks.c: Include function-abi.h.
2276 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2277 using eh_edge_abi to choose the mode.
2278
2279 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2280
2281 * target.def (hard_regno_call_part_clobbered): Take an ABI
2282 identifier instead of an rtx_insn.
2283 * doc/tm.texi: Regenerate.
2284 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2285 (hook_bool_uint_uint_mode_false): New function.
2286 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2287 (hook_bool_uint_uint_mode_false): New function.
2288 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2289 Take an ABI identifier instead of an rtx_insn.
2290 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2291 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2292 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2293 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2294 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2295 Likewise.
2296 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2297 * cselib.c: Include function-abi.h.
2298 (cselib_process_insn): Update call to
2299 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2300 to get the appropriate ABI identifier.
2301 * function-abi.cc (predefined_function_abi::initialize): Update call
2302 to targetm.hard_regno_call_part_clobbered.
2303 * ira-conflicts.c (ira_build_conflicts): Likewise.
2304 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2305 * lra-constraints.c: Include function-abi.h.
2306 (need_for_call_save_p): Update call to
2307 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2308 to get the appropriate ABI identifier.
2309 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2310 * regcprop.c (copyprop_hardreg_forward_1): Update call
2311 to targetm.hard_regno_call_part_clobbered.
2312 * reginfo.c (choose_hard_reg_mode): Likewise.
2313 * regrename.c (check_new_reg_p): Likewise.
2314 * reload.c (find_equiv_reg): Likewise.
2315 * reload1.c (emit_reload_insns): Likewise.
2316 * sched-deps.c: Include function-abi.h.
2317 (deps_analyze_insn): Update call to
2318 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2319 to get the appropriate ABI identifier.
2320 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2321 call to targetm.hard_regno_call_part_clobbered.
2322 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2323
2324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2325
2326 * config/i386/i386.c: Include function-abi.h.
2327 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2328 if they preserve some 256-bit or 512-bit SSE registers.
2329
2330 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2331
2332 * target.def (insn_callee_abi): New hook.
2333 (remove_extra_call_preserved_regs): Delete.
2334 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2335 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2336 * doc/tm.texi: Regenerate.
2337 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2338 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2339 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2340 insn argument.
2341 (aarch64_remove_extra_call_preserved_regs): Delete.
2342 (aarch64_insn_callee_abi): New function.
2343 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2344 (TARGET_INSN_CALLEE_ABI): New macro.
2345 * rtl.h (get_call_fndecl): Declare.
2346 (cgraph_rtl_info): Fix formatting. Tweak comment for
2347 function_used_regs. Remove function_used_regs_valid.
2348 * rtlanal.c (get_call_fndecl): Moved from final.c
2349 * function-abi.h (insn_callee_abi): Declare.
2350 (target_function_abi_info): Mention insn_callee_abi.
2351 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2352 way to get_call_reg_set_usage did.
2353 (insn_callee_abi): New function.
2354 * regs.h (get_call_reg_set_usage): Delete.
2355 * final.c: Include function-abi.h.
2356 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2357 function_used_regs before the main loop rather than afterwards.
2358 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2359 if function_used_regs ends up not being useful.
2360 (get_call_fndecl): Move to rtlanal.c
2361 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2362 * caller-save.c: Include function-abi.h.
2363 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2364 instead of get_call_reg_set_usage.
2365 * cfgcleanup.c: Include function-abi.h.
2366 (old_insns_match_p): Use insn_callee_abi instead of
2367 get_call_reg_set_usage.
2368 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2369 a tree.
2370 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2371 function_used_regs.
2372 * df-scan.c: Include function-abi.h.
2373 (df_get_call_refs): Use insn_callee_abi instead of
2374 get_call_reg_set_usage.
2375 * ira-lives.c: Include function-abi.h.
2376 (process_bb_node_lives): Use insn_callee_abi instead of
2377 get_call_reg_set_usage.
2378 * lra-lives.c: Include function-abi.h.
2379 (process_bb_lives): Use insn_callee_abi instead of
2380 get_call_reg_set_usage.
2381 * postreload.c: Include function-abi.h.
2382 (reload_combine): Use insn_callee_abi instead of
2383 get_call_reg_set_usage.
2384 * regcprop.c: Include function-abi.h.
2385 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2386 get_call_reg_set_usage.
2387 * resource.c: Include function-abi.h.
2388 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2389 instead of get_call_reg_set_usage.
2390 * var-tracking.c: Include function-abi.h.
2391 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2392 get_call_reg_set_usage.
2393
2394 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2395
2396 * target.def (fntype_abi): New target hook.
2397 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2398 * doc/tm.texi: Regenerate.
2399 * target.h (predefined_function_abi): Declare.
2400 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2401 if defined.
2402 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2403 * config/aarch64/aarch64.c: Include function-abi.h.
2404 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2405 (TARGET_FNTYPE_ABI): Define.
2406
2407 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2408
2409 * Makefile.in (OBJS): Add function-abi.o.
2410 (GTFILES): Add function-abi.h.
2411 * function-abi.cc: New file.
2412 * function-abi.h: Likewise.
2413 * emit-rtl.h (rtl_data::abi): New field.
2414 * function.c: Include function-abi.h.
2415 (prepare_function_start): Initialize crtl->abi.
2416 * read-rtl-function.c: Include regs.h and function-abi.h.
2417 (read_rtl_function_body): Initialize crtl->abi.
2418 (read_rtl_function_body_from_file_range): Likewise.
2419 * reginfo.c: Include function-abi.h.
2420 (init_reg_sets_1): Initialize default_function_abi.
2421 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2422 when making a register global.
2423 * target-globals.h (this_target_function_abi_info): Declare.
2424 (target_globals::function_abi_info): New field.
2425 (restore_target_globals): Copy it.
2426 * target-globals.c: Include function-abi.h.
2427 (default_target_globals): Initialize the function_abi_info field.
2428 (target_globals): Allocate it.
2429 (save_target_globals): Free it.
2430
2431 2019-09-30 Nick Clifton <nickc@redhat.com>
2432
2433 PR target/85978
2434 * config/frv/frv.c (frv_register_move_cost): Add break statements
2435 to avoid falling through to the wrong cases. Tidy code.
2436
2437 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2438
2439 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2440 For multi-registers modes, test how big each register part is.
2441
2442 2019-09-30 Nick Clifton <nickc@redhat.com>
2443
2444 PR target/59205
2445 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2446 (TARGET_ASM_SELECT_SECTION): Remove definition.
2447 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2448
2449 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2450
2451 * emit-rtl.c (init_raw_REG): New function.
2452 (gen_raw_REG): Use init_raw_REG.
2453 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2454 macros.
2455 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2456 * rtl.h (rtx_init): New function.
2457 (rtx_alloca): New function.
2458 (init_raw_REG): New function.
2459 (alloca_raw_REG): New macro.
2460
2461 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2462
2463 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2464 (pcrel_local_address): Replace pcrel_address predicate, use the
2465 new function address_to_insn_form.
2466 (pcrel_external_address): Replace with new implementation using
2467 address_to_insn_form..
2468 (prefixed_mem_operand): Delete predicate which is now unused.
2469 (pcrel_external_mem_operand): Delete predicate which is now
2470 unused.
2471 * config/rs6000/rs6000-protos.h (enum insn_form): New
2472 enumeration.
2473 (enum non_prefixed_form): New enumeration.
2474 (address_to_insn_form): New declaration.
2475 (prefixed_load_p): New declaration.
2476 (prefixed_store_p): New declaration.
2477 (prefixed_paddi_p): New declaration.
2478 (rs6000_asm_output_opcode): New declaration.
2479 (rs6000_final_prescan_insn): Move declaration and update calling
2480 signature.
2481 (address_is_prefixed): New helper inline function.
2482 * config/rs6000/rs6000.c(print_operand_address): Check for either
2483 PC-relative local symbols or PC-relative external symbols.
2484 (rs6000_emit_move): Support loading PC-relative addresses.
2485 (mode_supports_prefixed_address_p): Delete, no longer used.
2486 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2487 (address_to_insn_form): New function to decode an address format.
2488 (reg_to_non_prefixed): New function to identify what the
2489 non-prefixed memory instruction format is for a register.
2490 (prefixed_load_p): New function to identify prefixed loads.
2491 (prefixed_store_p): New function to identify prefixed stores.
2492 (prefixed_paddi_p): New function to identify prefixed load
2493 immediates.
2494 (next_insn_prefixed_p): New static state variable.
2495 (rs6000_final_prescan_insn): New function to determine if an insn
2496 uses a prefixed instruction.
2497 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2498 prefixed instruction.
2499 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2500 (ASM_OUTPUT_OPCODE): New target hook.
2501 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2502 prefixed instructions.
2503 (prefixed_length): New insn attribute for the size of prefixed
2504 instructions.
2505 (non_prefixed_length): New insn attribute for the size of
2506 non-prefixed instructions.
2507 (pcrel_local_addr): New insn to load up a local PC-relative
2508 address.
2509 (pcrel_extern_addr): New insn to load up an external PC-relative
2510 address.
2511 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2512 GPR and loading a 128-bit floating point type to a GPR.
2513
2514 2019-09-30 Richard Biener <rguenther@suse.de>
2515
2516 * gimple.c (gimple_get_lhs): For PHIs return the result.
2517 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2518 SLP instance as argument.
2519 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2520 double-reduction PHIs with vectorizable_lc_phi.
2521 (vect_analyze_loop_operations): Adjust.
2522 (vect_create_epilog_for_reduction): Remove all code not dealing
2523 with reduction LC PHI or epilogue generation.
2524 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2525 for live stmts of reductions.
2526 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2527 do not handle defs that are not vect_internal_def.
2528 (can_vectorize_live_stmts): Adjust.
2529 (vect_analyze_stmt): When the vectorized stmt defined a value
2530 used on backedges adjust the backedge uses of vectorized PHIs.
2531
2532 2019-09-30 Martin Jambor <mjambor@suse.cz>
2533
2534 PR ipa/91853
2535 * tree-inline.c (force_value_to_type): New function.
2536 (setup_one_parameter): Use force_value_to_type to convert type.
2537 * tree-inline.c (force_value_to_type): Declare.
2538 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2539 with register type mismatches.
2540
2541 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2542
2543 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2544 32-bit PowerPC.
2545 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2546 * config/rs6000/t-freebsd64: Make use of the above define and build
2547 the 32-bit libraries with secure-plt.
2548
2549 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR target/91931
2552 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2553 gen_int_mode instead of GEN_INT.
2554
2555 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2556
2557 * config/darwin.c (gen_macho_low): Amend to include the mode
2558 argument.
2559 (machopic_indirect_data_reference): Amend gen_macho_low call
2560 to include mode argument
2561 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2562 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2563 the macho_high expander and two define_insn entries.
2564
2565 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2566
2567 PR bootstrap/90543
2568 * optc-save-gen.awk: Fix up printing string option differences.
2569
2570 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2571
2572 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2573 vec_perm cost to 1 for non-Power7 VSX architectures.
2574
2575 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2576
2577 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2578 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2579 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2580
2581 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2582
2583 * config/darwin.c (gen_macho_high): Amend to include the mode
2584 argument.
2585 (machopic_indirect_data_reference): Amend gen_macho_high call
2586 to include mode argument.
2587 (machopic_legitimize_pic_address): Likewise.
2588 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2589 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2590 the macho_high expander and two define_insn entries.
2591
2592 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2593
2594 PR target/86805
2595 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2596
2597 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2598
2599 PR target/80672
2600 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2601 std::string::compare instead of std::string::find.
2602
2603 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2604
2605 * configure: Regenerate.
2606
2607 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2608
2609 PR middle-end/91920
2610 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2611 variables as shared.
2612
2613 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2614
2615 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2616 replaces the expander and two define_insn entries.
2617 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2618 call.
2619 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2620
2621 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2622
2623 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2624 (fibonacci_heap::nodes): Likewise.
2625 (fibonacci_heap::min_key): Likewise.
2626 (fibonacci_heap::min): Likewise.
2627
2628 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2629
2630 * cgraph.c (cgraph_node::get_fun): Make const.
2631 * cgraph.h (cgraph_node::get_fun): Likewise.
2632
2633 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2634
2635 PR target/91919
2636 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2637 of SImode MULT.
2638
2639 2019-09-27 Richard Biener <rguenther@suse.de>
2640
2641 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2642 (STMT_VINFO_REDUC_FN): Likewise.
2643 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2644 STMT_VINFO_REDUC_FN.
2645 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2646 for condition reductions.
2647 (vect_create_epilog_for_reduction): Compute all required state
2648 from the stmt to be vectorized.
2649 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2650 invocation and remove then dead code. For single def-use chains
2651 record only a single vector stmt.
2652
2653 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2654
2655 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2656 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2657 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2658 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2659 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2660 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2661 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2662 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2663 (aarch64_general_builtin_rsqrt): Declare.
2664 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2665 New function.
2666 (aarch64_mangle_builtin_type): Rename to...
2667 (aarch64_general_mangle_builtin_type): ...this.
2668 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2669 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2670 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2671 aarch64_general_add_builtin instead of add_builtin_function.
2672 (aarch64_init_builtins): Rename to...
2673 (aarch64_general_init_builtins): ...this. Use
2674 aarch64_general_add_builtin instead of add_builtin_function.
2675 (aarch64_builtin_decl): Rename to...
2676 (aarch64_general_builtin_decl): ...this and remove the unused
2677 arguments.
2678 (aarch64_expand_builtin): Rename to...
2679 (aarch64_general_expand_builtin): ...this and remove the unused
2680 arguments.
2681 (aarch64_builtin_rsqrt): Rename to...
2682 (aarch64_general_builtin_rsqrt): ...this.
2683 (aarch64_fold_builtin): Rename to...
2684 (aarch64_general_fold_builtin): ...this. Take the function subcode
2685 and return type as arguments. Remove the "ignored" argument.
2686 (aarch64_gimple_fold_builtin): Rename to...
2687 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2688 subcode and gcall as arguments, and return the new function call.
2689 * config/aarch64/aarch64.c (aarch64_init_builtins)
2690 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2691 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2692 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2693 instead of aarch64_builtin_rsqrt.
2694 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2695 instead of aarch64_mangle_builtin_type.
2696
2697 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2698
2699 * target.def (check_builtin_call): New target hook.
2700 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2701 * doc/tm.texi: Regenerate.
2702
2703 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2704
2705 PR tree-optimization/91909
2706 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2707 reduc_index parameter. When handling COND_REDUCTION, make sure
2708 that the reduction phi operand is in the correct arm of the
2709 VEC_COND_EXPR.
2710 (vectorizable_reduction): Pass reduc_index to the above.
2711
2712 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2713
2714 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2715 New combine pattern.
2716
2717 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2718
2719 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2720 loop instruction into new basic block before the loop when basic
2721 block that precedes the loop is empty.
2722
2723 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2724
2725 * function.c (gimplify_parameters): Use build_clobber function.
2726 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2727 * tree-inline.c (expand_call_inline): Likewise.
2728 * tree-sra.c (clobber_subtree): Likewise.
2729 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2730 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2731 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2732 lower_omp_target): Likewise.
2733 * omp-expand.c (expand_omp_for_generic): Likewise.
2734 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2735
2736 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2737
2738 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2739 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2740 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2741 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2742 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2743 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2744 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2745 LD_ELEMREV_V16QI): Use the PURE attribute.
2746
2747 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2748
2749 * config/rs6000/darwin.md: Replace the expanders for
2750 load_macho_picbase and reload_macho_picbase with use of '@'
2751 and <mode> in their respective define_insns.
2752 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2753 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2754 Pmode to gen_load_macho_picbase.
2755 * config/rs6000/rs6000.md: Likewise.
2756
2757 2019-09-25 Richard Biener <rguenther@suse.de>
2758
2759 PR tree-optimization/91896
2760 * tree-vect-loop.c (vectorizable_reduction): The single
2761 def-use cycle optimization cannot apply when there's more
2762 than one pattern stmt involved.
2763
2764 2019-09-26 Richard Biener <rguenther@suse.de>
2765
2766 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2767 loop-closed PHIs that are vect_internal_def.
2768 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2769 Simplify.
2770 (vectorizable_lc_phi): New.
2771 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2772 (vect_transform_stmt): Likewise.
2773 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2774 (vectorizable_lc_phi): Declare.
2775
2776 2019-09-26 Richard Biener <rguenther@suse.de>
2777
2778 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2779 vectorizable_reduction for vect_double_reduction_def.
2780 (vect_transform_loop): Likewise.
2781 (vect_create_epilog_for_reduction): Move double-reduction
2782 PHI creation and preheader argument setting of PHIs ...
2783 (vectorizable_reduction): ... here. Also process
2784 vect_double_reduction_def PHIs, creating the vectorized
2785 PHI nodes, remembering the scalar adjustment computed for
2786 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2787 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2788 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2789 Initialize STMT_VINFO_REDUC_CODE.
2790 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2791 (_stmt_vec_info::reduc_code): Likewise.
2792 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2793 (STMT_VINFO_REDUC_CODE): Likewise.
2794
2795 2019-09-26 Matt Turner <mattst88@gmail.com>
2796
2797 PR driver/69471
2798 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2799 (mtune=): Add Negative(mtune=).
2800 (mcpu=): Add Negative(mcpu=).
2801 * config/arm/arm.opt: Likewise.
2802
2803 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2804
2805 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2806 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2807 Define.
2808 * config/arm/arm_acle.h: Define builtins for the above.
2809 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2810 (simd32_op): Handle the above.
2811 * config/arm/unspecs.md: Define unspecs for the above.
2812
2813 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2814
2815 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2816 (arm_<sup>xtb16): Likewise.
2817 (arm_usada8): Likewise.
2818 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2819 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2820 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2821 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2822 __sxtb16, __uxtab16, __uxtb16): Define.
2823 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2824 * config/arm/unspecs.md: Define unspecs for the above.
2825 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2826 (USXTB16): Likewise.
2827 (simd32_op): New int_attribute.
2828 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2829 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2830
2831 2019-09-26 Martin Jambor <mjambor@suse.cz>
2832
2833 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2834 internal_error.
2835
2836 2019-09-26 Martin Jambor <mjambor@suse.cz>
2837
2838 * ipa-sra.c (process_scan_results): Fix continue condition.
2839
2840 2019-09-26 Martin Liska <mliska@suse.cz>
2841
2842 PR tree-optimization/91885
2843 * tree-vectorizer.c (try_vectorize_loop_1): Add
2844 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2845
2846 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2847
2848 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2849 aarch64_plus_immediate rather than aarch64_uimm12_shift
2850 to test for valid PLUS immediates.
2851
2852 2019-09-25 Martin Jambor <mjambor@suse.cz>
2853
2854 * tree-sra.c (no_accesses_p): Remove.
2855 (no_accesses_representant): Likewise.
2856
2857 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2858
2859 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2860 consistenly.
2861 (vaba_s16): Likewise.
2862 (vaba_s32): Likewise.
2863 (vaba_u8): Likewise.
2864 (vaba_u16): Likewise.
2865 (vaba_u32): Likewise.
2866 (vabal_high_s8): Likewise.
2867 (vabal_high_s16): Likewise.
2868 (vabal_high_s32): Likewise.
2869 (vabal_high_u8): Likewise.
2870 (vabal_high_u16): Likewise.
2871 (vabal_high_u32): Likewise.
2872 (vabal_s8): Likewise.
2873 (vabal_s16): Likewise.
2874 (vabal_s32): Likewise.
2875 (vabal_u8): Likewise.
2876 (vabal_u16): Likewise.
2877 (vabal_u32): Likewise.
2878 (vabaq_s8): Likewise.
2879 (vabaq_s16): Likewise.
2880 (vabaq_s32): Likewise.
2881 (vabaq_u8): Likewise.
2882 (vabaq_u16): Likewise.
2883 (vabaq_u32): Likewise.
2884 (vabd_s8): Likewise.
2885 (vabd_s16): Likewise.
2886 (vabd_s32): Likewise.
2887 (vabd_u8): Likewise.
2888 (vabd_u16): Likewise.
2889 (vabd_u32): Likewise.
2890 (vabdl_high_s8): Likewise.
2891 (vabdl_high_s16): Likewise.
2892 (vabdl_high_s32): Likewise.
2893 (vabdl_high_u8): Likewise.
2894 (vabdl_high_u16): Likewise.
2895 (vabdl_high_u32): Likewise.
2896 (vabdl_s8): Likewise.
2897 (vabdl_s16): Likewise.
2898 (vabdl_s32): Likewise.
2899 (vabdl_u8): Likewise.
2900 (vabdl_u16): Likewise.
2901 (vabdl_u32): Likewise.
2902 (vabdq_s8): Likewise.
2903 (vabdq_s16): Likewise.
2904 (vabdq_s32): Likewise.
2905 (vabdq_u8): Likewise.
2906 (vabdq_u16): Likewise.
2907 (vabdq_u32): Likewise.
2908 (vaddlv_s8): Likewise.
2909 (vaddlv_s16): Likewise.
2910 (vaddlv_u8): Likewise.
2911 (vaddlv_u16): Likewise.
2912 (vaddlvq_s8): Likewise.
2913 (vaddlvq_s16): Likewise.
2914 (vaddlvq_s32): Likewise.
2915 (vaddlvq_u8): Likewise.
2916 (vaddlvq_u16): Likewise.
2917 (vaddlvq_u32): Likewise.
2918 (vcvtx_f32_f64): Likewise.
2919 (vcvtx_high_f32_f64): Likewise.
2920 (vcvtxd_f32_f64): Likewise.
2921 (vmla_n_f32): Likewise.
2922 (vmla_n_s16): Likewise.
2923 (vmla_n_s32): Likewise.
2924 (vmla_n_u16): Likewise.
2925 (vmla_n_u32): Likewise.
2926 (vmla_s8): Likewise.
2927 (vmla_s16): Likewise.
2928 (vmla_s32): Likewise.
2929 (vmla_u8): Likewise.
2930 (vmla_u16): Likewise.
2931 (vmla_u32): Likewise.
2932 (vmlal_high_n_s16): Likewise.
2933 (vmlal_high_n_s32): Likewise.
2934 (vmlal_high_n_u16): Likewise.
2935 (vmlal_high_n_u32): Likewise.
2936 (vmlal_high_s8): Likewise.
2937 (vmlal_high_s16): Likewise.
2938 (vmlal_high_s32): Likewise.
2939 (vmlal_high_u8): Likewise.
2940 (vmlal_high_u16): Likewise.
2941 (vmlal_high_u32): Likewise.
2942 (vmlal_n_s16): Likewise.
2943 (vmlal_n_s32): Likewise.
2944 (vmlal_n_u16): Likewise.
2945 (vmlal_n_u32): Likewise.
2946 (vmlal_s8): Likewise.
2947 (vmlal_s16): Likewise.
2948 (vmlal_s32): Likewise.
2949 (vmlal_u8): Likewise.
2950 (vmlal_u16): Likewise.
2951 (vmlal_u32): Likewise.
2952 (vmlaq_n_f32): Likewise.
2953 (vmlaq_n_s16): Likewise.
2954 (vmlaq_n_s32): Likewise.
2955 (vmlaq_n_u16): Likewise.
2956 (vmlaq_n_u32): Likewise.
2957 (vmlaq_s8): Likewise.
2958 (vmlaq_s16): Likewise.
2959 (vmlaq_s32): Likewise.
2960 (vmlaq_u8): Likewise.
2961 (vmlaq_u16): Likewise.
2962 (vmlaq_u32): Likewise.
2963 (vmls_n_f32): Likewise.
2964 (vmls_n_s16): Likewise.
2965 (vmls_n_s32): Likewise.
2966 (vmls_n_u16): Likewise.
2967 (vmls_n_u32): Likewise.
2968 (vmls_s8): Likewise.
2969 (vmls_s16): Likewise.
2970 (vmls_s32): Likewise.
2971 (vmls_u8): Likewise.
2972 (vmls_u16): Likewise.
2973 (vmls_u32): Likewise.
2974 (vmlsl_high_n_s16): Likewise.
2975 (vmlsl_high_n_s32): Likewise.
2976 (vmlsl_high_n_u16): Likewise.
2977 (vmlsl_high_n_u32): Likewise.
2978 (vmlsl_high_s8): Likewise.
2979 (vmlsl_high_s16): Likewise.
2980 (vmlsl_high_s32): Likewise.
2981 (vmlsl_high_u8): Likewise.
2982 (vmlsl_high_u16): Likewise.
2983 (vmlsl_high_u32): Likewise.
2984 (vmlsl_n_s16): Likewise.
2985 (vmlsl_n_s32): Likewise.
2986 (vmlsl_n_u16): Likewise.
2987 (vmlsl_n_u32): Likewise.
2988 (vmlsl_s8): Likewise.
2989 (vmlsl_s16): Likewise.
2990 (vmlsl_s32): Likewise.
2991 (vmlsl_u8): Likewise.
2992 (vmlsl_u16): Likewise.
2993 (vmlsl_u32): Likewise.
2994 (vmlsq_n_f32): Likewise.
2995 (vmlsq_n_s16): Likewise.
2996 (vmlsq_n_s32): Likewise.
2997 (vmlsq_n_u16): Likewise.
2998 (vmlsq_n_u32): Likewise.
2999 (vmlsq_s8): Likewise.
3000 (vmlsq_s16): Likewise.
3001 (vmlsq_s32): Likewise.
3002 (vmlsq_u8): Likewise.
3003 (vmlsq_u16): Likewise.
3004 (vmlsq_u32): Likewise.
3005 (vmovl_high_s8): Likewise.
3006 (vmovl_high_s16): Likewise.
3007 (vmovl_high_s32): Likewise.
3008 (vmovl_high_u8): Likewise.
3009 (vmovl_high_u16): Likewise.
3010 (vmovl_high_u32): Likewise.
3011 (vmovl_s8): Likewise.
3012 (vmovl_s16): Likewise.
3013 (vmovl_s32): Likewise.
3014 (vmovl_u8): Likewise.
3015 (vmovl_u16): Likewise.
3016 (vmovl_u32): Likewise.
3017 (vmovn_high_s16): Likewise.
3018 (vmovn_high_s32): Likewise.
3019 (vmovn_high_s64): Likewise.
3020 (vmovn_high_u16): Likewise.
3021 (vmovn_high_u32): Likewise.
3022 (vmovn_high_u64): Likewise.
3023 (vmovn_s16): Likewise.
3024 (vmovn_s32): Likewise.
3025 (vmovn_s64): Likewise.
3026 (vmovn_u16): Likewise.
3027 (vmovn_u32): Likewise.
3028 (vmovn_u64): Likewise.
3029 (vmull_high_n_s16): Likewise.
3030 (vmull_high_n_s32): Likewise.
3031 (vmull_high_n_u16): Likewise.
3032 (vmull_high_n_u32): Likewise.
3033 (vmull_high_p8): Likewise.
3034 (vmull_high_s8): Likewise.
3035 (vmull_high_s16): Likewise.
3036 (vmull_high_s32): Likewise.
3037 (vmull_high_u8): Likewise.
3038 (vmull_high_u16): Likewise.
3039 (vmull_high_u32): Likewise.
3040 (vmull_n_s16): Likewise.
3041 (vmull_n_s32): Likewise.
3042 (vmull_n_u16): Likewise.
3043 (vmull_n_u32): Likewise.
3044 (vmull_p8): Likewise.
3045 (vmull_s8): Likewise.
3046 (vmull_s16): Likewise.
3047 (vmull_s32): Likewise.
3048 (vmull_u8): Likewise.
3049 (vmull_u16): Likewise.
3050 (vmull_u32): Likewise.
3051 (vpadal_s8): Likewise.
3052 (vpadal_s16): Likewise.
3053 (vpadal_s32): Likewise.
3054 (vpadal_u8): Likewise.
3055 (vpadal_u16): Likewise.
3056 (vpadal_u32): Likewise.
3057 (vpadalq_s8): Likewise.
3058 (vpadalq_s16): Likewise.
3059 (vpadalq_s32): Likewise.
3060 (vpadalq_u8): Likewise.
3061 (vpadalq_u16): Likewise.
3062 (vpadalq_u32): Likewise.
3063 (vpaddl_s8): Likewise.
3064 (vpaddl_s16): Likewise.
3065 (vpaddl_s32): Likewise.
3066 (vpaddl_u8): Likewise.
3067 (vpaddl_u16): Likewise.
3068 (vpaddl_u32): Likewise.
3069 (vpaddlq_s8): Likewise.
3070 (vpaddlq_s16): Likewise.
3071 (vpaddlq_s32): Likewise.
3072 (vpaddlq_u8): Likewise.
3073 (vpaddlq_u16): Likewise.
3074 (vpaddlq_u32): Likewise.
3075 (vpaddq_s8): Likewise.
3076 (vpaddq_s16): Likewise.
3077 (vpaddq_s32): Likewise.
3078 (vpaddq_s64): Likewise.
3079 (vpaddq_u8): Likewise.
3080 (vpaddq_u16): Likewise.
3081 (vpaddq_u32): Likewise.
3082 (vpaddq_u64): Likewise.
3083 (vqdmulh_n_s16): Likewise.
3084 (vqdmulh_n_s32): Likewise.
3085 (vqdmulhq_n_s16): Likewise.
3086 (vqdmulhq_n_s32): Likewise.
3087 (vqmovn_high_s16): Likewise.
3088 (vqmovn_high_s32): Likewise.
3089 (vqmovn_high_s64): Likewise.
3090 (vqmovn_high_u16): Likewise.
3091 (vqmovn_high_u32): Likewise.
3092 (vqmovn_high_u64): Likewise.
3093 (vqmovun_high_s16): Likewise.
3094 (vqmovun_high_s32): Likewise.
3095 (vqmovun_high_s64): Likewise.
3096 (vqrdmulh_n_s16): Likewise.
3097 (vqrdmulh_n_s32): Likewise.
3098 (vqrdmulhq_n_s16): Likewise.
3099 (vqrdmulhq_n_s32): Likewise.
3100 (vrsqrte_u32): Likewise.
3101 (vrsqrteq_u32): Likewise.
3102 (vtst_p8): Likewise.
3103 (vtst_p16): Likewise.
3104 (vtst_p64): Likewise.
3105 (vtstq_p8): Likewise.
3106 (vtstq_p16): Likewise.
3107 (vtstq_p64): Likewise.
3108 (vaddlv_s32): Likewise.
3109 (vaddlv_u32): Likewise.
3110 (vqtbl1_p8): Likewise.
3111 (vqtbl1_s8): Likewise.
3112 (vqtbl1_u8): Likewise.
3113 (vqtbl1q_p8): Likewise.
3114 (vqtbl1q_s8): Likewise.
3115 (vqtbl1q_u8): Likewise.
3116 (vqtbx1_s8): Likewise.
3117 (vqtbx1_u8): Likewise.
3118 (vqtbx1_p8): Likewise.
3119 (vqtbx1q_s8): Likewise.
3120 (vqtbx1q_u8): Likewise.
3121 (vqtbx1q_p8): Likewise.
3122 (vtbl1_s8): Likewise.
3123 (vtbl1_u8): Likewise.
3124 (vtbl1_p8): Likewise.
3125 (vtbl2_s8): Likewise.
3126 (vtbl2_u8): Likewise.
3127 (vtbl2_p8): Likewise.
3128 (vtbl3_s8): Likewise.
3129 (vtbl3_u8): Likewise.
3130 (vtbl3_p8): Likewise.
3131 (vtbl4_s8): Likewise.
3132 (vtbl4_u8): Likewise.
3133 (vtbl4_p8): Likewise.
3134 (vtbx2_s8): Likewise.
3135 (vtbx2_u8): Likewise.
3136 (vtbx2_p8): Likewise.
3137 (vld1_f32): Likewise.
3138 (vld1_f64): Likewise.
3139 (vld1_p8): Likewise.
3140 (vld1_p16): Likewise.
3141 (vld1_p64): Likewise.
3142 (vld1_s8): Likewise.
3143 (vld1_s16): Likewise.
3144 (vld1_s32): Likewise.
3145 (vld1_s64): Likewise.
3146 (vld1_u8): Likewise.
3147 (vld1_u16): Likewise.
3148 (vld1_u32): Likewise.
3149 (vld1_u64): Likewise.
3150 (vld1q_f32): Likewise.
3151 (vld1q_f64): Likewise.
3152 (vld1q_p8): Likewise.
3153 (vld1q_p16): Likewise.
3154 (vld1q_p64): Likewise.
3155 (vld1q_s8): Likewise.
3156 (vld1q_s16): Likewise.
3157 (vld1q_s32): Likewise.
3158 (vld1q_s64): Likewise.
3159 (vld1q_u8): Likewise.
3160 (vld1q_u16): Likewise.
3161 (vld1q_u32): Likewise.
3162 (vld1q_u64): Likewise.
3163 (vpmax_s8): Likewise.
3164 (vpmax_s16): Likewise.
3165 (vpmax_s32): Likewise.
3166 (vpmax_u8): Likewise.
3167 (vpmax_u16): Likewise.
3168 (vpmax_u32): Likewise.
3169 (vpmaxq_s8): Likewise.
3170 (vpmaxq_s16): Likewise.
3171 (vpmaxq_s32): Likewise.
3172 (vpmaxq_u8): Likewise.
3173 (vpmaxq_u16): Likewise.
3174 (vpmaxq_u32): Likewise.
3175 (vpmax_f32): Likewise.
3176 (vpmaxq_f32): Likewise.
3177 (vpmaxq_f64): Likewise.
3178 (vpmaxqd_f64): Likewise.
3179 (vpmaxs_f32): Likewise.
3180 (vpmaxnm_f32): Likewise.
3181 (vpmaxnmq_f32): Likewise.
3182 (vpmaxnmq_f64): Likewise.
3183 (vpmaxnmqd_f64): Likewise.
3184 (vpmaxnms_f32): Likewise.
3185 (vpmin_s8): Likewise.
3186 (vpmin_s16): Likewise.
3187 (vpmin_s32): Likewise.
3188 (vpmin_u8): Likewise.
3189 (vpmin_u16): Likewise.
3190 (vpmin_u32): Likewise.
3191 (vpminq_s8): Likewise.
3192 (vpminq_s16): Likewise.
3193 (vpminq_s32): Likewise.
3194 (vpminq_u8): Likewise.
3195 (vpminq_u16): Likewise.
3196 (vpminq_u32): Likewise.
3197 (vpmin_f32): Likewise.
3198 (vpminq_f32): Likewise.
3199 (vpminq_f64): Likewise.
3200 (vpminqd_f64): Likewise.
3201 (vpmins_f32): Likewise.
3202 (vpminnm_f32): Likewise.
3203 (vpminnmq_f32): Likewise.
3204 (vpminnmq_f64): Likewise.
3205 (vpminnmqd_f64): Likewise.
3206 (vpminnms_f32): Likewise.
3207 (vmla_f32): Likewise.
3208 (vmlaq_f32): Likewise.
3209 (vmlaq_f64): Likewise.
3210 (vmls_f32): Likewise.
3211 (vmlsq_f32): Likewise.
3212 (vmlsq_f64): Likewise.
3213 (vqtbl2_s8): Likewise.
3214 (vqtbl2_u8): Likewise.
3215 (vqtbl2_p8): Likewise.
3216 (vqtbl2q_s8): Likewise.
3217 (vqtbl2q_u8): Likewise.
3218 (vqtbl2q_p8): Likewise.
3219 (vqtbl3_s8): Likewise.
3220 (vqtbl3_u8): Likewise.
3221 (vqtbl3_p8): Likewise.
3222 (vqtbl3q_s8): Likewise.
3223 (vqtbl3q_u8): Likewise.
3224 (vqtbl3q_p8): Likewise.
3225 (vqtbl4_s8): Likewise.
3226 (vqtbl4_u8): Likewise.
3227 (vqtbl4_p8): Likewise.
3228 (vqtbl4q_s8): Likewise.
3229 (vqtbl4q_u8): Likewise.
3230 (vqtbl4q_p8): Likewise.
3231 (vqtbx2_s8): Likewise.
3232 (vqtbx2_u8): Likewise.
3233 (vqtbx2_p8): Likewise.
3234 (vqtbx2q_s8): Likewise.
3235 (vqtbx2q_u8): Likewise.
3236 (vqtbx2q_p8): Likewise.
3237 (vqtbx3_s8): Likewise.
3238 (vqtbx3_u8): Likewise.
3239 (vqtbx3_p8): Likewise.
3240 (vqtbx3q_s8): Likewise.
3241 (vqtbx3q_u8): Likewise.
3242 (vqtbx3q_p8): Likewise.
3243 (vqtbx4_s8): Likewise.
3244 (vqtbx4_u8): Likewise.
3245 (vqtbx4_p8): Likewise.
3246 (vqtbx4q_s8): Likewise.
3247 (vqtbx4q_u8): Likewise.
3248 (vqtbx4q_p8): Likewise.
3249 (vrev16_p8): Likewise.
3250 (vrev16_s8): Likewise.
3251 (vrev16_u8): Likewise.
3252 (vrev16q_p8): Likewise.
3253 (vrev16q_s8): Likewise.
3254 (vrev16q_u8): Likewise.
3255 (vrev32_p8): Likewise.
3256 (vrev32_p16): Likewise.
3257 (vrev32_s8): Likewise.
3258 (vrev32_s16): Likewise.
3259 (vrev32_u8): Likewise.
3260 (vrev32_u16): Likewise.
3261 (vrev32q_p8): Likewise.
3262 (vrev32q_p16): Likewise.
3263 (vrev32q_s8): Likewise.
3264 (vrev32q_s16): Likewise.
3265 (vrev32q_u8): Likewise.
3266 (vrev32q_u16): Likewise.
3267 (vrev64_f32): Likewise.
3268 (vrev64_p8): Likewise.
3269 (vrev64_p16): Likewise.
3270 (vrev64_s8): Likewise.
3271 (vrev64_s16): Likewise.
3272 (vrev64_s32): Likewise.
3273 (vrev64_u8): Likewise.
3274 (vrev64_u16): Likewise.
3275 (vrev64_u32): Likewise.
3276 (vrev64q_f32): Likewise.
3277 (vrev64q_p8): Likewise.
3278 (vrev64q_p16): Likewise.
3279 (vrev64q_s8): Likewise.
3280 (vrev64q_s16): Likewise.
3281 (vrev64q_s32): Likewise.
3282 (vrev64q_u8): Likewise.
3283 (vrev64q_u16): Likewise.
3284 (vrev64q_u32): Likewise.
3285 (vsha1cq_u32): Likewise.
3286 (vsha1mq_u32): Likewise.
3287 (vsha1pq_u32): Likewise.
3288 (vsha1h_u32): Likewise.
3289 (vsha1su0q_u32): Likewise.
3290 (vsha1su1q_u32): Likewise.
3291 (vsha256hq_u32): Likewise.
3292 (vsha256h2q_u32): Likewise.
3293 (vsha256su0q_u32): Likewise.
3294 (vsha256su1q_u32): Likewise.
3295 (vmull_p64): Likewise.
3296 (vmull_high_p64): Likewise.
3297 (vsqrt_f32): Likewise.
3298 (vsqrtq_f32): Likewise.
3299 (vsqrt_f64): Likewise.
3300 (vsqrtq_f64): Likewise.
3301 (vst1_f32): Likewise.
3302 (vst1_f64): Likewise.
3303 (vst1_p8): Likewise.
3304 (vst1_p16): Likewise.
3305 (vst1_p64): Likewise.
3306 (vst1_s8): Likewise.
3307 (vst1_s16): Likewise.
3308 (vst1_s32): Likewise.
3309 (vst1_s64): Likewise.
3310 (vst1_u8): Likewise.
3311 (vst1_u16): Likewise.
3312 (vst1_u32): Likewise.
3313 (vst1_u64): Likewise.
3314 (vst1q_f32): Likewise.
3315 (vst1q_f64): Likewise.
3316 (vst1q_p8): Likewise.
3317 (vst1q_p16): Likewise.
3318 (vst1q_p64): Likewise.
3319 (vst1q_s8): Likewise.
3320 (vst1q_s16): Likewise.
3321 (vst1q_s32): Likewise.
3322 (vst1q_s64): Likewise.
3323 (vst1q_u8): Likewise.
3324 (vst1q_u16): Likewise.
3325 (vst1q_u32): Likewise.
3326 (vst1q_u64): Likewise.
3327 (vst1_s64_x2): Likewise.
3328 (vst1_u64_x2): Likewise.
3329 (vst1_f64_x2): Likewise.
3330 (vst1_s8_x2): Likewise.
3331 (vst1_p8_x2): Likewise.
3332 (vst1_s16_x2): Likewise.
3333 (vst1_p16_x2): Likewise.
3334 (vst1_s32_x2): Likewise.
3335 (vst1_u8_x2): Likewise.
3336 (vst1_u16_x2): Likewise.
3337 (vst1_u32_x2): Likewise.
3338 (vst1_f16_x2): Likewise.
3339 (vst1_f32_x2): Likewise.
3340 (vst1_p64_x2): Likewise.
3341 (vst1q_s8_x2): Likewise.
3342 (vst1q_p8_x2): Likewise.
3343 (vst1q_s16_x2): Likewise.
3344 (vst1q_p16_x2): Likewise.
3345 (vst1q_s32_x2): Likewise.
3346 (vst1q_s64_x2): Likewise.
3347 (vst1q_u8_x2): Likewise.
3348 (vst1q_u16_x2): Likewise.
3349 (vst1q_u32_x2): Likewise.
3350 (vst1q_u64_x2): Likewise.
3351 (vst1q_f16_x2): Likewise.
3352 (vst1q_f32_x2): Likewise.
3353 (vst1q_f64_x2): Likewise.
3354 (vst1q_p64_x2): Likewise.
3355 (vst1_s64_x3): Likewise.
3356 (vst1_u64_x3): Likewise.
3357 (vst1_f64_x3): Likewise.
3358 (vst1_s8_x3): Likewise.
3359 (vst1_p8_x3): Likewise.
3360 (vst1_s16_x3): Likewise.
3361 (vst1_p16_x3): Likewise.
3362 (vst1_s32_x3): Likewise.
3363 (vst1_u8_x3): Likewise.
3364 (vst1_u16_x3): Likewise.
3365 (vst1_u32_x3): Likewise.
3366 (vst1_f16_x3): Likewise.
3367 (vst1_f32_x3): Likewise.
3368 (vst1_p64_x3): Likewise.
3369 (vst1q_s8_x3): Likewise.
3370 (vst1q_p8_x3): Likewise.
3371 (vst1q_s16_x3): Likewise.
3372 (vst1q_p16_x3): Likewise.
3373 (vst1q_s32_x3): Likewise.
3374 (vst1q_s64_x3): Likewise.
3375 (vst1q_u8_x3): Likewise.
3376 (vst1q_u16_x3): Likewise.
3377 (vst1q_u32_x3): Likewise.
3378 (vst1q_u64_x3): Likewise.
3379 (vst1q_f16_x3): Likewise.
3380 (vst1q_f32_x3): Likewise.
3381 (vst1q_f64_x3): Likewise.
3382 (vst1q_p64_x3): Likewise.
3383 (vst2_s64): Likewise.
3384 (vst2_u64): Likewise.
3385 (vst2_f64): Likewise.
3386 (vst2_s8): Likewise.
3387 (vst2_p8): Likewise.
3388 (vst2_s16): Likewise.
3389 (vst2_p16): Likewise.
3390 (vst2_s32): Likewise.
3391 (vst2_u8): Likewise.
3392 (vst2_u16): Likewise.
3393 (vst2_u32): Likewise.
3394 (vst2_f16): Likewise.
3395 (vst2_f32): Likewise.
3396 (vst2_p64): Likewise.
3397 (vst2q_s8): Likewise.
3398 (vst2q_p8): Likewise.
3399 (vst2q_s16): Likewise.
3400 (vst2q_p16): Likewise.
3401 (vst2q_s32): Likewise.
3402 (vst2q_s64): Likewise.
3403 (vst2q_u8): Likewise.
3404 (vst2q_u16): Likewise.
3405 (vst2q_u32): Likewise.
3406 (vst2q_u64): Likewise.
3407 (vst2q_f16): Likewise.
3408 (vst2q_f32): Likewise.
3409 (vst2q_f64): Likewise.
3410 (vst2q_p64): Likewise.
3411 (vst3_s64): Likewise.
3412 (vst3_u64): Likewise.
3413 (vst3_f64): Likewise.
3414 (vst3_s8): Likewise.
3415 (vst3_p8): Likewise.
3416 (vst3_s16): Likewise.
3417 (vst3_p16): Likewise.
3418 (vst3_s32): Likewise.
3419 (vst3_u8): Likewise.
3420 (vst3_u16): Likewise.
3421 (vst3_u32): Likewise.
3422 (vst3_f16): Likewise.
3423 (vst3_f32): Likewise.
3424 (vst3_p64): Likewise.
3425 (vst3q_s8): Likewise.
3426 (vst3q_p8): Likewise.
3427 (vst3q_s16): Likewise.
3428 (vst3q_p16): Likewise.
3429 (vst3q_s32): Likewise.
3430 (vst3q_s64): Likewise.
3431 (vst3q_u8): Likewise.
3432 (vst3q_u16): Likewise.
3433 (vst3q_u32): Likewise.
3434 (vst3q_u64): Likewise.
3435 (vst3q_f16): Likewise.
3436 (vst3q_f32): Likewise.
3437 (vst3q_f64): Likewise.
3438 (vst3q_p64): Likewise.
3439 (vst4_s64): Likewise.
3440 (vst4_u64): Likewise.
3441 (vst4_f64): Likewise.
3442 (vst4_s8): Likewise.
3443 (vst4_p8): Likewise.
3444 (vst4_s16): Likewise.
3445 (vst4_p16): Likewise.
3446 (vst4_s32): Likewise.
3447 (vst4_u8): Likewise.
3448 (vst4_u16): Likewise.
3449 (vst4_u32): Likewise.
3450 (vst4_f16): Likewise.
3451 (vst4_f32): Likewise.
3452 (vst4_p64): Likewise.
3453 (vst4q_s8): Likewise.
3454 (vst4q_p8): Likewise.
3455 (vst4q_s16): Likewise.
3456 (vst4q_p16): Likewise.
3457 (vst4q_s32): Likewise.
3458 (vst4q_s64): Likewise.
3459 (vst4q_u8): Likewise.
3460 (vst4q_u16): Likewise.
3461 (vst4q_u32): Likewise.
3462 (vst4q_u64): Likewise.
3463 (vst4q_f16): Likewise.
3464 (vst4q_f32): Likewise.
3465 (vst4q_f64): Likewise.
3466 (vst4q_p64): Likewise.
3467 (vtbx4_s8): Likewise.
3468 (vtbx4_u8): Likewise.
3469 (vtbx4_p8): Likewise.
3470 (vtrn_f32): Likewise.
3471 (vtrn_p8): Likewise.
3472 (vtrn_p16): Likewise.
3473 (vtrn_s8): Likewise.
3474 (vtrn_s16): Likewise.
3475 (vtrn_s32): Likewise.
3476 (vtrn_u8): Likewise.
3477 (vtrn_u16): Likewise.
3478 (vtrn_u32): Likewise.
3479 (vtrnq_f32): Likewise.
3480 (vtrnq_p8): Likewise.
3481 (vtrnq_p16): Likewise.
3482 (vtrnq_s8): Likewise.
3483 (vtrnq_s16): Likewise.
3484 (vtrnq_s32): Likewise.
3485 (vtrnq_u8): Likewise.
3486 (vtrnq_u16): Likewise.
3487 (vtrnq_u32): Likewise.
3488 (vrsqrte_f16): Likewise.
3489 (vrsqrteq_f16): Likewise.
3490 (vsqrt_f16): Likewise.
3491 (vsqrtq_f16): Likewise.
3492 (vabd_f16): Likewise.
3493 (vabdq_f16): Likewise.
3494 (vpadd_f16): Likewise.
3495 (vpaddq_f16): Likewise.
3496 (vpmax_f16): Likewise.
3497 (vpmaxq_f16): Likewise.
3498 (vpmaxnm_f16): Likewise.
3499 (vpmaxnmq_f16): Likewise.
3500 (vpmin_f16): Likewise.
3501 (vpminq_f16): Likewise.
3502 (vpminnm_f16): Likewise.
3503 (vpminnmq_f16): Likewise.
3504 (vrsqrts_f16): Likewise.
3505 (vrsqrtsq_f16): Likewise.
3506
3507 2019-09-25 Richard Biener <rguenther@suse.de>
3508
3509 PR tree-optimization/91896
3510 * tree-vect-loop.c (vectorizable_reduction): The single
3511 def-use cycle optimization cannot apply when there's more
3512 than one pattern stmt involved.
3513
3514 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3515
3516 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3517 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3518 (reload_macho_picbase_<mode>): Likewise.
3519
3520 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3521
3522 * config/rs6000/rs6000.md: Move darwin.md include until
3523 after the definition of the mode iterators.
3524
3525 2019-09-23 Martin Sebor <msebor@redhat.com>
3526
3527 PR tree-optimization/91570
3528 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3529 non-constant minlen, maxlen and maxbound.
3530
3531 2019-09-24 Richard Biener <rguenther@suse.de>
3532
3533 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3534 Rename to...
3535 (_stmt_vec_info::cond_reduc_code): ... this.
3536 (_stmt_vec_info::induc_cond_initial_val): Add.
3537 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3538 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3539 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3540 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3541 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3542 the reduction code.
3543 (vect_create_epilog_for_reduction): Drop special
3544 induction condition reduction params, pass in reduction code
3545 and simplify.
3546 (vectorizable_reduction): Perform condition reduction kind
3547 selection only at analysis time. Adjust passing on state.
3548
3549 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3550
3551 * config/aarch64/aarch64.md (mov<mode>): Don't call
3552 aarch64_split_dimode_const_store on volatile MEM.
3553
3554 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3555
3556 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3557 Update hwcap string for fp16fml.
3558
3559 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR middle-end/91866
3562 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3563 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3564
3565 2019-09-24 Martin Liska <mliska@suse.cz>
3566
3567 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3568 instead of if-elseif-elseif-...
3569 * gimple-expr.c (extract_ops_from_tree): Likewise.
3570 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3571 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3572
3573 2019-09-24 Martin Jambor <mjambor@suse.cz>
3574
3575 PR ipa/91831
3576 * ipa-param-manipulation.c (carry_over_param): Make a method of
3577 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3578 in case of a context mismatch.
3579 (ipa_param_body_adjustments::common_initialization): Adjust call to
3580 carry_over_param.
3581 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3582 private method carry_over_param.
3583
3584 2019-09-24 Martin Jambor <mjambor@suse.cz>
3585
3586 PR ipa/91832
3587 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3588
3589 2019-09-24 Richard Biener <rguenther@suse.de>
3590
3591 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3592 base.
3593
3594 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3595
3596 * config/arm/t-arm (arm-builtins.o): Add dependency on
3597 arm_acle_builtins.def.
3598
3599 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3600
3601 PR target/91823
3602 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3603 canonical CONST_INTs. Use gen_rtvec.
3604
3605 2019-09-23 Richard Biener <rguenther@suse.de>
3606
3607 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3608 avoid adjusting by + 0 or * 1.
3609 (vect_create_epilog_for_reduction): Get reduction code only
3610 when necessary. Deal with adjustment_def only when necessary.
3611
3612 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3613
3614 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3615 memmodel index.
3616
3617 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3618
3619 PR ipa/91835
3620 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3621 "ipa-sra".
3622
3623 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3624
3625 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3626 code. Merge code blocks with common conditionals. Use declared
3627 macro instead of a magic number for PIC level.
3628
3629 2019-09-21 Martin Sebor <msebor@redhat.com>
3630
3631 PR middle-end/91830
3632 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3633 Simplify computation of the offset of the referenced subobject.
3634
3635 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3636
3637 * config/darwin.c (machopic_legitimize_pic_address): Check
3638 for lra not reload.
3639
3640 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3641
3642 * ira-conflicts.c (can_use_same_reg_p): New function.
3643 (process_reg_shuffles): Take an insn parameter. Ignore cases
3644 in which input operand op_num could seemingly never be allocated
3645 to the same register as the destination.
3646 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3647
3648 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3649
3650 * simplify-rtx.c (neg_const_int): Replace with...
3651 (neg_poly_int_rtx): ...this new function.
3652 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3653 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3654 (simplify_plus_minus): Likewise for constant terms here.
3655
3656 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3657
3658 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3659 HOST_WIDE_PRINT_UNSIGNED.
3660
3661 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3662
3663 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3664 character.
3665
3666 2019-09-20 Maya Rashish <coypu@sdf.org>
3667
3668 PR target/86811
3669 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3670 Define to speculation_safe_value_not_needed.
3671
3672 2019-09-20 Richard Biener <rguenther@suse.de>
3673 Uros Bizjak <ubizjak@gmail.com>
3674
3675 PR target/91814
3676 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3677 previous change.
3678 (general_scalar_chain::convert_op): Force not suitable memory
3679 operands to a register.
3680
3681 2019-09-20 Richard Biener <rguenther@suse.de>
3682
3683 PR tree-optimization/91821
3684 * tree-vect-loop.c (check_reduction_path): Check we can compute
3685 reduc_idx.
3686 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3687 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3688 operands in canonical order.
3689 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3690 STMT_VINFO_REDUC_IDX.
3691 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3692 (STMT_VINFO_REDUC_IDX): Likewise.
3693
3694 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3695
3696 PR target/91269
3697 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3698
3699 2019-09-20 Richard Biener <rguenther@suse.de>
3700
3701 PR tree-optimization/91822
3702 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3703 parameter.
3704 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3705 for reduc_index in nested cycles, adjust vectorizable_condition
3706 calls.
3707 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3708 parameter.
3709 (vect_analyze_stmt): Adjust.
3710 (vect_transform_stmt): Likewise.
3711
3712 2019-09-20 Richard Biener <rguenther@suse.de>
3713
3714 PR target/91767
3715 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3716 Ensure there's a sequence point between allocating the new register
3717 and passing a reference to a reg via regno_reg_rtx.
3718
3719 2019-09-20 Martin Jambor <mjambor@suse.cz>
3720
3721 * coretypes.h (cgraph_edge): Declare.
3722 * ipa-param-manipulation.c: Rewrite.
3723 * ipa-param-manipulation.h: Likewise.
3724 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3725 (OBJS): Added ipa-sra.o.
3726 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3727 and ref_p, added fields param_adjustments and performed_splits.
3728 (struct cgraph_clone_info): Remove ags_to_skip and
3729 combined_args_to_skip, new field param_adjustments.
3730 (cgraph_node::create_clone): Changed parameters to use
3731 ipa_param_adjustments.
3732 (cgraph_node::create_virtual_clone): Likewise.
3733 (cgraph_node::create_virtual_clone_with_body): Likewise.
3734 (tree_function_versioning): Likewise.
3735 (cgraph_build_function_type_skip_args): Removed.
3736 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3737 using ipa_param_adjustments.
3738 (clone_of_p): Likewise.
3739 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3740 (build_function_decl_skip_args): Likewise.
3741 (duplicate_thunk_for_node): Adjust parameters using
3742 ipa_param_body_adjustments, copy param_adjustments instead of
3743 args_to_skip.
3744 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3745 (cgraph_node::create_virtual_clone): Likewise.
3746 (cgraph_node::create_version_clone_with_body): Likewise.
3747 (cgraph_materialize_clone): Likewise.
3748 (symbol_table::materialize_all_clones): Likewise.
3749 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3750 ipa_replace_map check.
3751 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3752 (initialize_node_lattices): Make aware that some parameters might have
3753 already been removed.
3754 (want_remove_some_param_p): New function.
3755 (create_specialized_node): Convert to using ipa_param_adjustments and
3756 deal with possibly pre-existing adjustments.
3757 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3758 (output_node_opt_summary): Do not stream removed fields. Stream
3759 parameter adjustments instead of argumetns to skip.
3760 (input_node_opt_summary): Likewise.
3761 (input_node_opt_summary): Likewise.
3762 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3763 * lto-streamer.h (lto_section_type): Likewise.
3764 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3765 param_body_adjs.
3766 (copy_decl_to_var): Declare.
3767 * tree-inline.c (update_clone_info): Do not remap old_tree.
3768 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3769 statements, walk all extra generated statements and remap their
3770 operands.
3771 (redirect_all_calls): Add killed SSA names to a hash set.
3772 (remap_ssa_name): Do not remap killed SSA names.
3773 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3774 half of functionality moved to ipa_param_body_adjustments.
3775 (copy_decl_to_var): Make exported.
3776 (copy_body): Destroy killed_new_ssa_names hash set.
3777 (expand_call_inline): Remap performed splits.
3778 (update_clone_info): Likewise.
3779 (tree_function_versioning): Simplify tree_map processing. Updated to
3780 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3781 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3782 for the new interface.
3783 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3784 (simd_clone_compute_base_data_type): Likewise.
3785 (simd_clone_init_simd_arrays): Adjust for the new interface.
3786 (simd_clone_adjust_argument_types): Likewise.
3787 (struct modify_stmt_info): Likewise.
3788 (ipa_simd_modify_stmt_ops): Likewise.
3789 (ipa_simd_modify_function_body): Likewise.
3790 (simd_clone_adjust): Likewise.
3791 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3792 (type_internals_preclude_sra_p): Make public.
3793 * tree-sra.h: New file.
3794 * ipa-inline-transform.c (save_inline_function_body): Update to
3795 refelct new tree_function_versioning signature.
3796 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3797 ipa_param_adjustments to get current parameter indices.
3798 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3799 (ipcp_update_bits): Likewise.
3800 (ipcp_update_vr): Likewise.
3801 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3802 * ipa-sra.c: New file.
3803 * multiple_target.c (create_target_clone): Update to reflet new type
3804 of create_version_clone_with_body.
3805 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3806 tree_function_versioning.
3807 (modify_function): Update to reflect new type of
3808 tree_function_versioning.
3809 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3810 * passes.def: Remove old IPA-SRA and add new one.
3811 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3812 (make_pass_ipa_sra): Declare.
3813 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3814 ipa_sra_retvalues.
3815 * doc/invoke.texi (ipa-sra-max-replacements): New.
3816
3817 2019-09-19 Martin Sebor <msebor@redhat.com>
3818
3819 PR middle-end/91631
3820 * builtins.c (component_size): Correct trailing array computation,
3821 rename to component_ref_size and move...
3822 (compute_objsize): Adjust.
3823 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3824 (builtin_access::strict): Do not consider memmove.
3825 (builtin_access::write_off): New function.
3826 (builtin_memref::builtin_memref): Initialize refsize.
3827 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3828 refsize.
3829 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3830 Handle refsize.
3831 (builtin_access::builtin_access): Initialize dstoff to destination
3832 refeence offset here instead of in maybe_diag_overlap. Adjust
3833 referencess even to unrelated objects. Adjust sizrange of bounded
3834 string functions to reflect bound. For strcat, adjust destination
3835 sizrange by that of source.
3836 (builtin_access::strcat_overlap): Adjust offsets and sizes
3837 to reflect the increase in destination sizrange above.
3838 (builtin_access::overlap): Do not set dstoff here but instead
3839 in builtin_access::builtin_access.
3840 (check_bounds_or_overlap): Use builtin_access::write_off.
3841 (maybe_diag_access_bounds): Add argument. Add informational notes.
3842 (dump_builtin_memref, dump_builtin_access): New functions.
3843 * tree.c (component_ref_size): ...to here.
3844 * tree.h (component_ref_size): Declare.
3845 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3846 nul in the size of the source string.
3847
3848 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3849
3850 PR c/67224
3851 * doc/cpp.texi: Document support for extended characters in
3852 identifiers.
3853 * doc/cppopts.texi: Likewise.
3854
3855 2019-09-19 Richard Biener <rguenther@suse.de>
3856
3857 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3858 (check_reduction_path): New overload having the path as result.
3859 (vect_is_simple_reduction): From the detected reduction
3860 path build a SLP reduction chain if possible.
3861
3862 2019-09-19 Richard Biener <rguenther@suse.de>
3863
3864 PR target/91814
3865 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3866 Force operand to a register if it isn't nonimmediate_operand.
3867
3868 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3869
3870 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3871 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3872 (logical_op): Remove code attribute.
3873 (logical_OP): Likewise.
3874
3875 2019-09-19 Martin Liska <mliska@suse.cz>
3876
3877 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3878 Use proper casting.
3879
3880 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3881
3882 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3883 registers with %R.
3884
3885 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3886 for NE comparison of TImode values.
3887 (aarch64_emit_load_exclusive): Add support for TImode.
3888 (aarch64_emit_store_exclusive): Likewise.
3889 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3890 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3891 Change iterator from ALLI to ALLI_TI.
3892 (@atomic_compare_and_swap<JUST_TI>): New.
3893 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3894 (aarch64_load_exclusive_pair): New.
3895 (aarch64_store_exclusive_pair): New.
3896 * config/aarch64/iterators.md (JUST_TI): New.
3897
3898 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3899 strong_zero_p for aarch64_track_speculation; unify some code paths;
3900 use aarch64_gen_compare_reg instead of open-coding.
3901
3902 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3903 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3904 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3905 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3906 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3907 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3908 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3909 (atomic_<atomic_op><ALLI>): Likewise.
3910 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3911 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3912 * doc/invoke.texi: Document -moutline-atomics.
3913
3914 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3915
3916 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3917 trivial predicate for condition branch.
3918 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3919 for switch case.
3920 (compute_bb_predicates): Update predicate based on post-dominating
3921 relationship.
3922 (analyze_function_body): Calculate post-dominating information.
3923
3924 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3925
3926 * tree-vectorizer.h (vectorizable_condition): Take an int
3927 reduction index instead of a boolean flag.
3928 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3929 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3930 reductions if the reduction accumulator is the "then" rather
3931 than the "else" value.
3932 (vect_analyze_stmt): Update call accordingly.
3933 (vect_transform_stmt): Likewise.
3934 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3935 asserting that the index is > 0.
3936
3937 2019-09-19 Martin Liska <mliska@suse.cz>
3938
3939 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3940 (sort_congruence_classes_by_decl_uid): Likewise.
3941 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3942 easier sorting.
3943 (sem_item_optimizer::merge_classes): Likewise.
3944
3945 2019-09-19 Richard Biener <rguenther@suse.de>
3946
3947 PR tree-optimization/91812
3948 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3949 volatile loads.
3950
3951 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3952
3953 * defaults.h (TARGET_UNIT): New macro.
3954 (target_unit): New type.
3955 * rtl.h (native_encode_rtx, native_decode_rtx)
3956 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3957 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3958 * rtlanal.c (subreg_lsb_1): Delete.
3959 (subreg_size_lsb): New function.
3960 * simplify-rtx.c: Include rtx-vector-builder.h
3961 (simplify_immed_subreg): Delete.
3962 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3963 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3964 functions.
3965 (simplify_subreg): Use them.
3966 (test_vector_subregs_modes, test_vector_subregs_repeating)
3967 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3968 (test_vector_subregs): New functions.
3969 (test_vector_ops): Call test_vector_subregs for integer vector
3970 modes with at least 2 elements.
3971
3972 2019-09-19 Richard Biener <rguenther@suse.de>
3973
3974 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3975 LOOP_VINFO_OPERANDS_SWAPPED.
3976 (parloops_is_simple_reduction): Likewise.
3977 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3978 initialize operands_swapped.
3979 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3980 (vect_is_slp_reduction): Do not swap operands.
3981 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3982 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3983
3984 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3985
3986 PR target/87007
3987 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3988 Add avx_partial_xmm_update.
3989
3990 2019-09-18 Jim Wilson <jimw@sifive.com>
3991
3992 PR target/91683
3993 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3994 (riscv_move_integer): Likewise.
3995 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3996 riscv_move_integer arg.
3997 (riscv_legitimize_move): Likewise.
3998 (riscv_force_temporary): New parameter in_splitter. Don't call
3999 force_reg if true.
4000 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4001 arg.
4002 (riscv_add_offset): Likewise.
4003 (riscv_split_symbol): New parameter in_splitter. Pass to
4004 riscv_force_temporary.
4005 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4006 arg.
4007 (riscv_move_integer): New parameter in_splitter. New local
4008 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4009 in_splitter TRUE.
4010 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4011 riscv_split_symbol, and riscv_force_temporary args.
4012 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4013 riscv_move_integer arg.
4014 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4015
4016 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4017
4018 PR target/90878
4019 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4020 hard register store cost to 6.
4021
4022 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4023
4024 PR target/91446
4025 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4026 pseudo register store cost from 3 to 6 to make it the same as
4027 QImode and HImode.
4028
4029 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4030
4031 PR target/91738
4032 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4033 (one_cmpldi2): Likewise.
4034 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4035 of the constant parts is simple.
4036 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4037 (logical_op): Add new code attribute.
4038 (logical_OP): Likewise.
4039 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4040 (arm_iordi_operand): Add predicate.
4041 (arm_xordi_operand): Add predicate.
4042
4043 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4044
4045 * config/arm/arm.md (maddsidi4): Remove expander.
4046 (mulsidi3adddi): Remove pattern.
4047 (mulsidi3adddi_v6): Likewise.
4048 (mulsidi3_nov6): Likewise.
4049 (mulsidi3_v6): Likewise.
4050 (umulsidi3): Remove expander.
4051 (umulsidi3_nov6): Remove pattern.
4052 (umulsidi3_v6): Likewise.
4053 (umulsidi3adddi): Likewise.
4054 (umulsidi3adddi_v6): Likewise.
4055 (<Us>mulsidi3): Add combined expander.
4056 (<Us>maddsidi4): Likewise.
4057 (<US>mull): Add combined umull and smull pattern.
4058 (<US>mlal): Likewise.
4059 * config/arm/iterators.md (Us): Add new iterator.
4060
4061 2019-09-18 Richard Biener <rguenther@suse.de>
4062
4063 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4064 swapping.
4065 (vectorize_fold_left_reduction): Remove assert.
4066 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4067 operand in position 2. Remove assert.
4068
4069 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4070
4071 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4072 (smulsi3_highpart_nov6): Remove pattern.
4073 (smulsi3_highpart_v6): Likewise.
4074 (umulsi3_highpart): Likewise.
4075 (umulsi3_highpart_nov6): Likewise.
4076 (umulsi3_highpart_v6): Likewise.
4077 (<US>mull_high): Add new combined multiply pattern.
4078
4079 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4080
4081 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4082 (arm_mulsi3_v6): Likewise.
4083 (mulsi3addsi_v6): Likewise.
4084 (mulsi3subsi): Likewise.
4085 (mul): Add new multiply pattern.
4086 (mla): Likewise.
4087 (mls): Likewise.
4088
4089 2019-09-18 Richard Biener <rguenther@suse.de>
4090
4091 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4092 (parloops_valid_reduction_input_p): Copy from
4093 valid_reduction_input_p.
4094 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4095 (parloops_needs_fold_left_reduction_p): Copy from
4096 needs_fold_left_reduction_p.
4097 (parloops_is_simple_reduction): Copy from
4098 vect_is_simple_reduction.
4099 (parloops_force_simple_reduction): Copy from
4100 vect_force_simple_reduction.
4101 (gather_scalar_reductions): Adjust.
4102 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4103 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4104
4105 2019-09-18 Richard Biener <rguenther@suse.de>
4106
4107 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4108 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4109 static.
4110 (vect_create_epilog_for_reduction): Remove dead code.
4111
4112 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4113
4114 * varasm.c (assemble_real): Generate canonical const_ints.
4115
4116 2019-09-18 Richard Biener <rguenther@suse.de>
4117
4118 PR lto/91763
4119 * lto-streamer-in.c (input_eh_regions): Move EH init to
4120 lto_materialize_function.
4121 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4122 Likewise.
4123
4124 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4125
4126 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4127 are INTEGER_CSTs.
4128
4129 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4130
4131 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4132 of checking specifically for INTEGER_CST.
4133
4134 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4135
4136 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4137 sizes instead of uhwi sizes.
4138
4139 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4140
4141 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4142 (add_const_value_attribute): Handle CONST_POLY_INT.
4143
4144 2019-09-18 Martin Liska <mliska@suse.cz>
4145
4146 * dbgcnt.def (store_merging): New counter.
4147 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4148 Use it in store merging.
4149
4150 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4151
4152 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4153 function.
4154 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4155 * config/arm/arm.c (arm_sched_variable_issue): New function.
4156 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4157
4158 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4159
4160 * config/arm/types.md (no_reservation): New reservation.
4161 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4162 no_insn here.
4163 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4164 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4165 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4166 * config/arm/arm1020e.md (1020alu_op): Likewise.
4167 * config/arm/arm1026ejs.md (alu_op): Likewise.
4168 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4169 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4170 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4171 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4172 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4173 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4174 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4175 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4176 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4177 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4178 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4179 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4180 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4181 * config/arm/fa526.md (526_alu_op): Likewise.
4182 * config/arm/fa606te.md (606te_alu_op): Likewise.
4183 * config/arm/fa626te.md (626te_alu_op): Likewise.
4184 * config/arm/fa726te.md (726te_alu_op): Likewise.
4185 * config/arm/xgene1.md (xgene1_nop): Likewise.
4186
4187 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4188
4189 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4190 "no_insn" to "branch".
4191
4192 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4193
4194 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4195
4196 2019-09-17 Richard Biener <rguenther@suse.de>
4197
4198 PR debug/91772
4199 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4200 was missing generate locations only once.
4201
4202 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4203
4204 PR ipa/91089
4205 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4206 option.
4207 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4208 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4209 for switch default case using range analysis information.
4210
4211 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4212
4213 PR target/91749
4214 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4215 mode attributed is supported by FDPIC.
4216
4217 2019-09-17 Richard Biener <rguenther@suse.de>
4218
4219 PR tree-optimization/91790
4220 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4221 use the correct DR for setting up realignment.
4222
4223 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4224
4225 PR target/91719
4226 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4227 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4228 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4229 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4230
4231 2019-09-16 Jason Merrill <jason@redhat.com>
4232
4233 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4234
4235 2019-09-16 Martin Liska <mliska@suse.cz>
4236
4237 * gimple-fold.c (or_comparisons_1): Remove rules moved
4238 to ...
4239 * match.pd: ... here.
4240
4241 2019-09-16 Martin Liska <mliska@suse.cz>
4242
4243 * gimple-fold.c (or_comparisons_1): Remove rules
4244 moved to ...
4245 * match.pd: ... here.
4246
4247 2019-09-16 Martin Liska <mliska@suse.cz>
4248
4249 * genmatch.c (dt_node::append_simplify): Do not print
4250 warning when we have duplicate patterns belonging
4251 to a same simplify rule.
4252 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4253 (maybe_fold_comparisons_from_match_pd): Handle
4254 tcc_comparison as a results.
4255 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4256
4257 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4258 Qi Feng <ffengqi@linux.ibm.com>
4259
4260 PR middle-end/88784
4261 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4262 (x > y && x == XXX_MIN): Optimize into 'false'.
4263 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4264 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4265 (x < y && x == XXX_MAX): Optimize into 'false'.
4266 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4267 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4268 (x <= y || x != XXX_MIN): Optimize into 'true'.
4269 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4270 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4271 (x >= y || x != XXX_MAX): Optimize into 'true'.
4272 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4273
4274 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4275 Martin Liska <mliska@suse.cz>
4276
4277 * gimple-fold.c (and_comparisons_1): Add type as first
4278 argument.
4279 (and_var_with_comparison): Likewise.
4280 (and_var_with_comparison_1): Likewise.
4281 (or_comparisons_1): Likewise.
4282 (or_var_with_comparison): Likewise.
4283 (or_var_with_comparison_1): Likewise.
4284 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4285 (maybe_fold_or_comparisons): Likewise.
4286 (maybe_fold_comparisons_from_match_pd): New.
4287 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4288 (maybe_fold_or_comparisons): Likewise.
4289 * gimple.c (gimple_size): Make it public and add num_ops argument.
4290 (gimple_init): New function.
4291 (gimple_alloc): Call gimple_init.
4292 * gimple.h (gimple_size): New.
4293 (gimple_init): Likewise.
4294 * tree-if-conv.c (fold_or_predicates): Pass type.
4295 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4296 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4297 (optimize_vec_cond_expr): Likewise.
4298 (ovce_extract_ops): Return type of conditional expression.
4299 * tree-ssanames.c (init_ssa_name_imm_use): New.
4300 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4301 * tree-ssanames.h (init_ssa_name_imm_use): New.
4302
4303 2019-09-16 Richard Biener <rguenther@suse.de>
4304
4305 PR tree-optimization/91756
4306 PR tree-optimization/87132
4307 * tree-ssa-alias.h (enum translate_flags): New.
4308 (get_continuation_for_phi): Use it instead of simple bool flag.
4309 (walk_non_aliased_vuses): Likewise.
4310 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4311 (get_continuation_for_phi): When looking across backedges only
4312 disallow valueization.
4313 (walk_non_aliased_vuses): Adjust.
4314 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4315 if requested.
4316
4317 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4318
4319 PR middle-end/80791
4320 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4321 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4322 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4323 * target.def (have_count_reg_decr_p): New hook.
4324 (doloop_cost_for_generic): Likewise.
4325 (doloop_cost_for_address): Likewise.
4326 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4327 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4328 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4329 * doc/tm.texi: Regenerate.
4330 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4331 addend.
4332 (record_group): Init doloop_p.
4333 (add_candidate_1): Add optional argument doloop, change the handlings
4334 accordingly.
4335 (add_candidate): Likewise.
4336 (generic_predict_doloop_p): Update attribute.
4337 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4338 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4339 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4340 MIN_EXPR.
4341 (get_computation_cost): Update for doloop IV cand extra cost.
4342 (determine_group_iv_cost_cond): Update for doloop IV cand.
4343 (determine_iv_cost): Likewise.
4344 (ivopts_estimate_reg_pressure): Likewise.
4345 (may_eliminate_iv): Update handlings for doloop IV cand.
4346 (add_iv_candidate_for_doloop): New function.
4347 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4348 (iv_ca_set_no_cp): Update for doloop IV cand.
4349 (iv_ca_set_cp): Likewise.
4350 (iv_ca_dump): Dump register cost.
4351 (find_doloop_use): New function.
4352 (analyze_and_mark_doloop_use): Likewise.
4353 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4354
4355 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4356
4357 PR middle-end/91708
4358 * cse.c (cse_insn): Do not replace anything with a
4359 MEM.
4360
4361 2019-09-13 Ian Lance Taylor <iant@golang.org>
4362
4363 * doc/invoke.texi (Optimize Options): Fix typo.
4364
4365 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4366
4367 PR tree-optimization/89386
4368 * config/i386/sse.md (smulhrs<mode>3): New expander.
4369 (smulhrsv4hi3): Ditto.
4370
4371 2019-09-12 Richard Biener <rguenther@suse.de>
4372
4373 PR tree-optimization/91750
4374 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4375 in the type of the evolution.
4376
4377 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4378
4379 PR tree-optimization/89386
4380 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4381 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4382 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4383 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4384 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4385 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4386 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4387 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4388 (su, r): Handle the unspecs above.
4389 (bt): New int attribute.
4390 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4391 * internal-fn.c (first_commutative_argument): Commutativity info for
4392 above.
4393 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4394 (umulhrs_optab): New optabs.
4395 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4396 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4397 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4398 function.
4399 (vect_vect_recog_func_ptrs): Add it.
4400
4401 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4402
4403 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4404 code.
4405
4406 2019-09-11 Nathan Sidwell <nathan@acm.org>
4407
4408 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4409 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4410
4411 2019-09-11 Richard Biener <rguenther@suse.de>
4412
4413 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4414 * lto-wrapper.c (merge_and_complain): Pick up -g.
4415 (append_compiler_options): Likewise.
4416 (run_gcc): Re-instantiate handling -g0 at link-time.
4417 * doc/invoke.texi (flto): Document debug info generation.
4418
4419 2019-09-11 Richard Biener <rguenther@suse.de>
4420
4421 PR tree-optimization/90387
4422 * vr-values.c (vr_values::extract_range_basic): After inlining
4423 simplify non-constant __builtin_constant_p to false.
4424
4425 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4426
4427 PR rtl-optimization/89795
4428 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4429 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4430
4431 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4432
4433 PR tree-optimization/91723
4434 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4435 instead of pointer equality when checking if argument vectypes are
4436 the same.
4437
4438 PR middle-end/91725
4439 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4440 of get_nonzero_bits, only call it for integral types.
4441
4442 2019-09-11 Richard Biener <rguenther@suse.de>
4443
4444 Revert
4445 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4446
4447 * match.pd: Add flag_unsafe_math_optimizations check
4448 before deciding on the widest type in a binary math operation.
4449
4450 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4451
4452 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4453 and CALL_REALLY_USED_REGISTERS must be defined, and that
4454 CALL_REALLY_USED_REGISTERS is preferred.
4455 * doc/tm.texi: Regenerate.
4456 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4457 (call_really_used_regs): Likewise.
4458 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4459 CALL_REALLY_USED_REGISTERS are defined.
4460 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4461 initial value if defined.
4462 (initial_call_really_used_regs): Delete.
4463 (saved_call_really_used_regs): Likewise.
4464 (CALL_REALLY_USED_REGNO_P): Likewise.
4465 (init_reg_sets): Remove handling of call_really_used_regs.
4466 (save_register_info, restore_register_info, globalize_reg): Likewise.
4467 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4468 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4469 outside operand_reg_set.
4470 (fix_register): Don't change call_used_regs if
4471 CALL_REALLY_USED_REGISTERS is defined.
4472 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4473 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4474 instead of call_really_used_regs.
4475 (csky_conditional_register_usage): Remove the old handling of
4476 call_used_regs and change the handling of call_really_used_regs
4477 to use call_used_regs instead.
4478 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4479 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4480 making a register fixed.
4481 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4482 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4483 instead of call_really_used_regs.
4484 (m32r_conditional_register_usage): Don't set call_used_regs when
4485 making a register fixed.
4486 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4487 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4488 instead of call_really_used_regs.
4489 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4490 (mips_cfun_call_saved_reg_p): Likewise.
4491 (mips_swap_registers): Remove the old handling of call_used_regs
4492 and change the handling of call_really_used_regs to use call_used_regs
4493 instead.
4494 (mips_conditional_register_usage): Likewise.
4495 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4496 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4497 instead of call_really_used_regs.
4498 (mn10300_get_live_callee_saved_regs): Likewise.
4499 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4500 (mn10300_conditional_register_usage): Don't set call_used_regs when
4501 making a register fixed.
4502 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4503 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4504 Remove the old handling of call_used_regs and change the handling
4505 of call_really_used_regs to use call_used_regs instead.
4506 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4507 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4508 instead of call_really_used_regs.
4509 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4510 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4511 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4512 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4513 (s390_conditional_register_usage): Remove the old handling of
4514 call_used_regs and change the handling of call_really_used_regs
4515 to use call_used_regs instead.
4516 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4517 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4518 (sh_fix_range, reg_unused_after): Likewise.
4519 (sh_conditional_register_usage): Remove the old handling of
4520 call_used_regs and change the handling of call_really_used_regs
4521 to use call_used_regs instead.
4522 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4523 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4524 call_used_regs when making a register fixed.
4525 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4526 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4527 call_used_regs when making a register fixed.
4528 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4529 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4530 set call_used_regs when making a register fixed.
4531 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4532 * config/visium/visium.c (visium_conditional_register_usage): Remove
4533 the old handling of call_used_regs and change the handling of
4534 call_really_used_regs to use call_used_regs instead.
4535
4536 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4537
4538 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4539 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4540 * reginfo.c (call_used_regs): New macro.
4541
4542 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4543
4544 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4545 fixed_regs test.
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): Likewise.
4549 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4550 (ft32_expand_epilogue): Likewise.
4551 * config/i386/i386.c (ix86_save_reg): Likewise.
4552 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4553 (moxie_expand_epilogue): Likewise.
4554 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4555 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4556 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4557
4558 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4559
4560 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4561 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4562 instead of testing call_used_regs directly.
4563 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4564 (aarch64_components_for_bb): Likewise.
4565 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4566 * config/arc/arc.c (arc_must_save_register): Likewise.
4567 (arc_epilogue_uses): Likewise.
4568 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4569 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4570 (arm_compute_save_reg0_reg12_mask): Likewise.
4571 (arm_compute_save_core_reg_mask): Likewise.
4572 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4573 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4574 (cmse_nonsecure_entry_clear_before_return): Likewise.
4575 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4576 (arm_expand_epilogue): Likewise.
4577 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4578 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4579 (_reg_unused_after): Likewise.
4580 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4581 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4582 (add_to_reg, hwloop_optimize): Likewise.
4583 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4584 (bpf_expand_epilogue): Likewise.
4585 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4586 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4587 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4588 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4589 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4590 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4591 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4592 * config/frv/frv.c (frv_stack_info): Likewise.
4593 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4594 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4595 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4596 (move_callee_saved_registers): Likewise.
4597 * config/h8300/h8300.c (byte_reg): Likewise.
4598 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4599 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4600 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4601 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4602 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4603 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4604 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4605 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4606 * config/m32c/m32c.c (need_to_save): Likewise.
4607 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4608 * config/mcore/mcore.c (calc_live_regs): Likewise.
4609 * config/microblaze/microblaze.c (microblaze_must_save_register):
4610 Likewise.
4611 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4612 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4613 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4614 (mmix_expand_epilogue): Likewise.
4615 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4616 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4617 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4618 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4619 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4620 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4621 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4622 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4623 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4624 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4625 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4626 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4627 * config/rl78/rl78.c (need_to_save): Likewise.
4628 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4629 (rs6000_stack_info, generate_set_vrsave): Likewise.
4630 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4631 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4632 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4633 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4634 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4635 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4636 (save_local_or_in_reg_p): Likewise.
4637 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4638 (xstormy16_epilogue_uses): Likewise.
4639 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4640 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4641 * config/v850/v850.c (compute_register_save_size): Likewise.
4642 * config/vax/vax.c (vax_expand_prologue): Likewise.
4643 * config/visium/visium.c (visium_save_reg_p): Likewise.
4644 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4645 * cselib.c (cselib_process_insn): Likewise.
4646 * df-scan.c (df_get_entry_block_def_set): Likewise.
4647 * function.c (aggregate_value_p): Likewise.
4648 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4649 * ira-lives.c (process_bb_node_lives): Likewise.
4650 * ira.c (do_reload): Likewise.
4651 * lra-lives.c (process_bb_lives): Likewise.
4652 * lra-remat.c (lra_remat): Likewise.
4653 * lra.c (lra): Likewise.
4654 * postreload.c (reload_combine_recognize_pattern): Likewise.
4655 (reload_cse_move2add): Likewise.
4656 * recog.c (peep2_find_free_register): Likewise.
4657 * regrename.c (check_new_reg_p): Likewise.
4658 * reload.c (find_equiv_reg): Likewise.
4659 * reload1.c (reload, find_reg): Likewise.
4660 * sel-sched.c (init_hard_regs_data): Likewise.
4661
4662 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4663
4664 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4665 regs_invalidated_by_call & ~fixed_reg_set instead of
4666 call_used_or_fixed_regs & ~fixed_reg_set.
4667 * config/sh/sh.c (output_stack_adjust): Likewise.
4668
4669 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4670
4671 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4672 (call_used_reg_set): Delete.
4673 (call_used_or_fixed_regs): New macro.
4674 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4675 of call_used_reg_set.
4676 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4677 instead of call_used_regs.
4678 (save_call_clobbered_regs): Likewise.
4679 * cfgcleanup.c (old_insns_match_p): Likewise.
4680 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4681 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4682 Likewise.
4683 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4684 * config/sh/sh.c (output_stack_adjust): Likewise.
4685 * final.c (collect_fn_hard_reg_usage): Likewise.
4686 * ira-build.c (ira_build): Likewise.
4687 * ira-color.c (calculate_saved_nregs): Likewise.
4688 (allocno_reload_assign, calculate_spill_cost): Likewise.
4689 * ira-conflicts.c (ira_build_conflicts): Likewise.
4690 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4691 * ira-lives.c (process_bb_node_lives): Likewise.
4692 * ira.c (setup_reg_renumber): Likewise.
4693 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4694 * lra-constraints.c (need_for_call_save_p): Likewise.
4695 (need_for_split_p, inherit_in_ebb): Likewise.
4696 * lra-lives.c (process_bb_lives): Likewise.
4697 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4698 * postreload.c (reload_combine): Likewise.
4699 * regrename.c (find_rename_reg): Likewise.
4700 * reload1.c (reload_as_needed): Likewise.
4701 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4702 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4703 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4704
4705 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4706
4707 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4708 (no_caller_save_reg_set): Delete.
4709 * caller-save.c (init_caller_save): Don't initialize it.
4710 * ira-conflicts.c (ira_build_conflicts): Calculate
4711 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4712
4713 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4714
4715 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4716 (target_hard_regs::x_savable_regs): New field.
4717 (call_fixed_reg_set): Delete.
4718 (savable_regs): New macro,
4719 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4720 (init_reg_sets_1): Likewise. Initialize savable_regs.
4721 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4722 for all registers. Set savable_regs instead of call_fixed_reg_set.
4723 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4724 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4725 * config/sh/sh.c (output_stack_adjust): Likewise.
4726
4727 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4728
4729 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4730 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4731 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4732
4733 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4734
4735 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4736 * rtlanal.c (get_call_rtx_from): Likewise.
4737 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4738 than the pattern to get_call_rtx_from.
4739 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4740 an rtx_insn * instead of an rtx.
4741 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4742
4743 2019-09-10 Martin Liska <mliska@suse.cz>
4744
4745 * common.opt: Use newly added WarnRemoved.
4746 * config/aarch64/aarch64.opt: Likewise.
4747 * config/arm/arm.opt: Likewise.
4748 * config/i386/i386.opt: Likewise.
4749 * config/ia64/ia64.opt: Likewise.
4750 * config/rs6000/rs6000.opt: Likewise.
4751 * doc/options.texi: Document WarnRemoved properly.
4752 * dwarf2out.c (gen_producer_string): Handle renamed
4753 OPT_SPECIAL_warn_removed.
4754 * lto-opts.c (lto_write_options): Likewise.
4755 * lto-wrapper.c (merge_and_complain): Likewise.
4756 * opts-common.c (decode_cmdline_option): Likewise.
4757 (prune_options): Likewise.
4758 (read_cmdline_option): Likewise.
4759 (control_warning_option): Likewise.
4760 * opts.c (print_filtered_help): Likewise.
4761 * optc-gen.awk: Parse for WarnRemoved and make usage
4762 of Deprecated an error.
4763 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4764
4765 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4766
4767 * doc/install.texi: Fix syntax for html generation.
4768
4769 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4770
4771 PR middle-end/91680
4772 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4773 the shift type to type.
4774
4775 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4776
4777 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4778 FDPIC mode.
4779 (stack_protect_combined_test_insn): Likewise.
4780
4781 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4782 Mickaël Guêné <mickael.guene@st.com>
4783
4784 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4785 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4786 (load_tp_soft_fdpic): New pattern.
4787 (load_tp_soft): Disable in FDPIC mode.
4788
4789 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4790 Mickaël Guêné <mickael.guene@st.com>
4791
4792 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4793 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4794 (arm_call_tls_get_addr): Add FDPIC support.
4795 (legitimize_tls_address): Likewise.
4796 (arm_emit_tls_decoration): Likewise.
4797
4798 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4799 Mickaël Guêné <mickael.guene@st.com>
4800
4801 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4802 support.
4803 (arm_trampoline_init): Likewise.
4804 (arm_trampoline_adjust_address): Likewise.
4805 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4806
4807 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4808 Mickaël Guêné <mickael.guene@st.com>
4809
4810 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4811 (legitimize_pic_address): Enforce binding rules on function
4812 pointers in FDPIC mode.
4813 (arm_assemble_integer): Likewise.
4814
4815 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4816 Mickaël Guêné <mickael.guene@st.com>
4817
4818 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4819 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4820 FDPIC.
4821
4822 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4823 Mickaël Guêné <mickael.guene@st.com>
4824
4825 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4826 field.
4827
4828 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4829 Mickaël Guêné <mickael.guene@st.com>
4830
4831 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4832 in FDPIC mode.
4833 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4834 new function.
4835 * config/arm/arm.c (arm_option_override): Define pic register to
4836 FDPIC_REGNUM.
4837 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4838 have no decl or go through PLT.
4839 (calculate_pic_address_constant): New function.
4840 (legitimize_pic_address): Call calculate_pic_address_constant.
4841 (arm_load_pic_register): Handle TARGET_FDPIC.
4842 (arm_is_segment_info_known): New function.
4843 (arm_pic_static_addr): Add support for FDPIC.
4844 (arm_load_function_descriptor): New function.
4845 (arm_emit_call_insn): Add support for FDPIC.
4846 (arm_assemble_integer): Add support for FDPIC.
4847 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4848 Define. (FDPIC_REGNUM): New define.
4849 * config/arm/arm.md (call): Add support for FDPIC.
4850 (call_value): Likewise.
4851 (restore_pic_register_after_call): New pattern.
4852 (untyped_call): Disable if FDPIC.
4853 (untyped_return): Likewise.
4854 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4855
4856 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4857 Mickaël Guêné <mickael.guene@st.com>
4858
4859 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4860 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4861 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4862 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4863 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4864 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4865 * config/arm/uclinuxfdpiceabi.h: New file.
4866
4867 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4868
4869 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4870
4871 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4872 Mickaël Guêné <mickael.guene@st.com>
4873
4874 * config/arm/arm.opt: Add -mfdpic option.
4875 * doc/invoke.texi: Add documentation for -mfdpic.
4876
4877 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4878
4879 * expmed.c (extract_bit_field): Update function comment
4880 regarding alt_rtl.
4881 * expr.c (expand_expr_real): Update function comment
4882 regarding alt_rtl.
4883 (expand_misaligned_mem_ref): New helper function.
4884 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4885 Remove duplicate assignment to "base" at case MEM_REF.
4886 Remove a shadowed variable "unsignedp" at case VCE.
4887
4888 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4889
4890 * regset.h (regs_invalidated_by_call_regset): Delete.
4891 (fixed_reg_set_regset): Likewise.
4892 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4893 (fixed_reg_set_regset, persistent_obstack): Likewise.
4894 (init_reg_sets_1, globalize_reg): Update accordingly.
4895 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4896 instead of a bitmap.
4897 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4898 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4899 instead of regs_invalidated_by_call_regset.
4900 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4901 * df-scan.c (df_scan_start_dump): Likewise.
4902 * dse.c (copy_fixed_regs): Likewise.
4903 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4904
4905 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4906
4907 * array-traits.h: New file.
4908 * coretypes.h (array_traits, bitmap_view): New types.
4909 * bitmap.h: Include "array-traits.h"
4910 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4911 (base_bitmap_view, bitmap_view): New classes.
4912 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4913 * hard-reg-set.h: Include array-traits.h.
4914 (array_traits<HARD_REG_SET>): New struct.
4915 * regset.h (IOR_REG_SET_HRS): New macro.
4916 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4917 rather than iterating over each hard register.
4918 * sched-deps.c (sched_analyze_insn): Likewise.
4919 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4920
4921 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4922
4923 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4924 instead of a HARD_REG_SET *.
4925 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4926 (ira_build): Update call accordingly.
4927 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4928
4929 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4930
4931 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4932 (HARD_REG_SET::operator!=): Likewise.
4933 (hard_reg_set_equal_p): Delete.
4934 * cfgcleanup.c (old_insns_match_p): Use == instead of
4935 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4936 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4937 (add_allocno_hard_regs_to_forest): Likewise.
4938 (setup_allocno_available_regs_num): Likewise.
4939 * ira.c (setup_pressure_classes): Likewise.
4940 (setup_allocno_and_important_classes): Likewise.
4941 (setup_reg_class_relations): Likewise.
4942 * lra-lives.c (process_bb_lives): Likewise.
4943 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4944
4945 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4946
4947 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4948 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4949 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4950 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4951 Likewise.
4952 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4953 * ira.c (setup_reg_renumber): Likewise.
4954 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4955 * regrename.c (regrename_find_superclass): Likewise.
4956 * reload1.c (find_reg): Likewise.
4957
4958 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4959
4960 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4961 * caller-save.c (setup_save_areas): Use "&~" instead of
4962 AND_COMPL_HARD_REG_SET.
4963 (save_call_clobbered_regs): Likewise.
4964 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4965 Likewise.
4966 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4967 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4968 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4969 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4970 (mips_conditional_register_usage): Likewise.
4971 * config/sh/sh.c (output_stack_adjust): Likewise.
4972 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4973 (setup_profitable_hard_regs): Likewise.
4974 (get_conflict_and_start_profitable_regs): Likewise.
4975 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4976 (ira_build_conflicts): Likewise.
4977 * ira-costs.c (restrict_cost_classes): Likewise.
4978 (setup_regno_cost_classes_by_aclass): Likewise.
4979 * ira-lives.c (process_bb_node_lives): Likewise.
4980 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4981 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4982 (setup_allocno_and_important_classes, setup_class_translate_array)
4983 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4984 Likewise.
4985 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4986 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4987 (process_alt_operands, inherit_in_ebb): Likewise.
4988 * lra-eliminations.c (update_reg_eliminate): Likewise.
4989 * lra-lives.c (process_bb_lives): Likewise.
4990 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4991 * resource.c (find_dead_or_set_registers): Likewise.
4992 (mark_target_live_regs): Likewise.
4993 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4994 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4995 (implicit_clobber_conflict_p): Likewise.
4996 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4997 (try_shrink_wrapping): Likewise.
4998
4999 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5000
5001 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5002 (HARD_REG_SET::operator|=): Likewise.
5003 (IOR_HARD_REG_SET): Delete.
5004 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5005 IOR_HARD_REG_SET.
5006 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5007 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5008 * final.c (collect_fn_hard_reg_usage): Likewise.
5009 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5010 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5011 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5012 (propagate_some_info_from_allocno): Likewise.
5013 (copy_info_to_removed_store_destinations): Likewise.
5014 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5015 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5016 (fast_allocation): Likewise.
5017 * ira-conflicts.c (ira_build_conflicts): Likewise.
5018 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5019 (process_bb_node_lives): Likewise.
5020 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5021 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5022 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5023 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5024 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5025 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5026 (process_bb_lives): Likewise.
5027 * lra-spills.c (assign_spill_hard_regs): Likewise.
5028 * postreload.c (reload_combine): Likewise.
5029 * reginfo.c (init_reg_sets_1): Likewise.
5030 * regrename.c (merge_overlapping_regs, find_rename_reg)
5031 (merge_chains): Likewise.
5032 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5033 (find_reload_regs, finish_spills, choose_reload_regs_init)
5034 (emit_reload_insns): Likewise.
5035 * reorg.c (redundant_insn): Likewise.
5036 * resource.c (find_dead_or_set_registers, mark_set_resources)
5037 (mark_target_live_regs): Likewise.
5038 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5039 * sched-deps.c (sched_analyze_insn): Likewise.
5040 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5041 (find_best_reg_for_expr): Likewise.
5042 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5043
5044 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5045
5046 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5047 (HARD_REG_SET::operator&): Likewise.
5048 (AND_HARD_REG_SET): Delete.
5049 * caller-save.c (setup_save_areas): Use "&" instead of
5050 AND_HARD_REG_SET.
5051 (save_call_clobbered_regs): Likewise.
5052 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5053 * config/m32c/m32c.c (reduce_class): Likewise.
5054 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5055 * final.c (get_call_reg_set_usage): Likewise.
5056 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5057 (setup_left_conflict_sizes_p): Likewise.
5058 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5059 (ira_build_conflicts): Likewise.
5060 * ira-costs.c (restrict_cost_classes): Likewise.
5061 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5062 (setup_reg_class_relations): Likewise.
5063 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5064 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5065 * resource.c (find_dead_or_set_registers): Likewise.
5066 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5067
5068 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5069
5070 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5071 (COMPL_HARD_REG_SET): Delete.
5072 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5073 of COMPL_HARD_REG_SET.
5074 (try_rename_operands): Likewise.
5075 * config/sh/sh.c (push_regs): Likewise.
5076 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5077 * lra-constraints.c (contains_reg_p): Likewise.
5078 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5079
5080 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5081
5082 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5083 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5084 of COPY_HARD_REG_SET.
5085 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5086 (epiphany_conditional_register_usage): Likewise.
5087 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5088 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5089 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5090 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5091 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5092 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5093 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5094 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5095 * config/sh/sh.c (output_stack_adjust): Likewise.
5096 * final.c (collect_fn_hard_reg_usage): Likewise.
5097 (get_call_reg_set_usage): Likewise.
5098 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5099 (ira_flattening): Likewise.
5100 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5101 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5102 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5103 (ira_reassign_pseudos): Likewise.
5104 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5105 (ira_build_conflicts): Likewise.
5106 * ira-costs.c (restrict_cost_classes): Likewise.
5107 (setup_regno_cost_classes_by_aclass): Likewise.
5108 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5109 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5110 (setup_stack_reg_pressure_class, setup_pressure_classes)
5111 (setup_allocno_and_important_classes, setup_class_translate_array)
5112 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5113 (ira_setup_eliminable_regset): Likewise.
5114 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5115 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5116 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5117 (process_alt_operands, inherit_in_ebb): Likewise.
5118 * lra-lives.c (process_bb_lives): Likewise.
5119 * lra-spills.c (assign_spill_hard_regs): Likewise.
5120 * lra.c (lra): Likewise.
5121 * mode-switching.c (new_seginfo): Likewise.
5122 * postreload.c (reload_combine): Likewise.
5123 * reg-stack.c (straighten_stack): Likewise.
5124 * reginfo.c (save_register_info, restore_register_info): Likewise.
5125 (init_reg_sets_1, record_subregs_of_mode): Likewise
5126 * regrename.c (create_new_chain, rename_chains): Likewise.
5127 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5128 (find_reload_regs): Likewise.
5129 * resource.c (find_dead_or_set_registers): Likewise.
5130 (mark_target_live_regs): Likewise.
5131 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5132
5133 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5134
5135 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5136 (note_pattern_stores): Declare.
5137 (note_stores): Take an rtx_insn *.
5138 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5139 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5140 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5141 (note_stores): Take an rtx_insn * as argument and process
5142 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5143 (note_pattern_stores): ...this.
5144 (find_first_parameter_load): Pass the insn rather than
5145 its pattern to note_stores.
5146 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5147 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5148 (insert_one_insn): Likewise.
5149 * combine.c (combine_instructions): Likewise.
5150 (likely_spilled_retval_p): Likewise.
5151 (try_combine): Use note_pattern_stores instead of note_stores.
5152 (record_dead_and_set_regs): Pass the insn rather than its pattern
5153 to note_stores.
5154 (reg_dead_at_p): Likewise.
5155 * config/bfin/bfin.c (workaround_speculation): Likewise.
5156 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5157 rather than an rtx.
5158 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5159 instead of note_stores.
5160 (frv_optimize_membar_local): Pass the insn rather than its pattern
5161 to note_stores.
5162 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5163 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5164 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5165 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5166 (mips_reorg_process_insns): Likewise.
5167 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5168 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5169 rather than rtxes.
5170 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5171 its pattern to note_stores.
5172 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5173 of note_stores.
5174 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5175 the insn to note_stores.
5176 (prescan_insns_for_dce): Update call accordingly.
5177 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5178 to note_stores.
5179 * df-problems.c (can_move_insns_across): Likewise.
5180 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5181 * function.c (assign_parm_setup_reg): Likewise.
5182 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5183 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5184 (single_set_gcse): Likewise.
5185 * ira.c (validate_equiv_mem): Likewise.
5186 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5187 for no_equiv.
5188 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5189 pattern to note_stores.
5190 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5191 * loop-iv.c (simplify_using_initial_values): Likewise.
5192 * mode-switching.c (optimize_mode_switching): Likewise.
5193 * optabs.c (emit_libcall_block_1): Likewise.
5194 (expand_atomic_compare_and_swap): Likewise.
5195 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5196 (record_opr_changes): Likewise. Remove explicit handling of
5197 CALL_INSN_FUNCTION_USAGE.
5198 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5199 * regcprop.c (kill_clobbered_values): Likewise.
5200 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5201 to note_stores.
5202 * regrename.c (build_def_use): Likewise.
5203 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5204 for mark_not_eliminable.
5205 (reload_as_needed): Pass the insn rather than its pattern
5206 to note_stores.
5207 (emit_output_reload_insns): Likewise.
5208 * resource.c (mark_target_live_regs): Likewise.
5209 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5210 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5211 instead of note_stores.
5212 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5213 its pattern to note_stores.
5214 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5215 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5216
5217 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5218
5219 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5220 than a #define. Use a structure rather than an array as the
5221 fallback definition. Remove special cases for low array sizes.
5222 (const_hard_reg_set): New typedef.
5223 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5224 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5225 (hard_reg_set_empty_p): Likewise.
5226 (SET_HARD_REG_BIT): Use a function rather than a macro to
5227 handle the case in which HARD_REG_SET is a structure.
5228 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5229 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5230 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5231 (IOR_COMPL_HARD_REG_SET): Likewise.
5232 (hard_reg_set_iterator::pset): Constify the pointer target.
5233 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5234 of a "const HARD_REG_SET". Update the handling of non-integer
5235 HARD_REG_SETs.
5236 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5237 * reload.h: Likewise.
5238 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5239 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5240 of a "const HARD_REG_SET".
5241 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5242 (range_in_hard_reg_set_p): Likewise.
5243 * ira-costs.c (restrict_cost_classes): Likewise.
5244 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5245 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5246 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5247 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5248 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5249 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5250 take an unsigned int and open-code the HARD_REG_SET operations.
5251
5252 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5253
5254 * Makefile.in (OBJS): Remove bt-load.o.
5255 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5256 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5257 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5258 document that the option no longer does anything.
5259 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5260 * target.def (branch_target_register_class): Delete.
5261 (branch_target_register_callee_saved): Likewise.
5262 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5263 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5264 * doc/tm.texi: Regenerate.
5265 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5266 (make_pass_branch_target_load_optimize2): Likewise.
5267 * passes.def (pass_branch_target_load_optimize1): Likewise.
5268 (pass_branch_target_load_optimize2): Likewise.
5269 * targhooks.h (default_branch_target_register_class): Likewise.
5270 * targhooks.c (default_branch_target_register_class): Likewise.
5271 * opt-suggestions.c (test_completion_valid_options): Remove
5272 -fbtr-bb-exclusive from the list of test options.
5273 * bt-load.c: Remove.
5274
5275 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5276
5277 * match.pd: Add flag_unsafe_math_optimizations check
5278 before deciding on the widest type in a binary math operation.
5279
5280 2019-09-09 Martin Liska <mliska@suse.cz>
5281
5282 * config/i386/i386.opt: Update comment of removed
5283 options that are preserved only for backward
5284 compatibility.
5285
5286 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5287
5288 PR target/87853
5289 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5290 instead of __v16qs.
5291
5292 PR target/91704
5293 * config/i386/avxintrin.h (__v32qs): New typedef.
5294 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5295 instead of __v32qi.
5296
5297 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5298
5299 * doc/invoke.texi (Option Summary): Cover eBPF.
5300 (eBPF Options): New section.
5301 * doc/extend.texi (BPF Built-in Functions): Likewise.
5302 (BPF Kernel Helpers): Likewise.
5303
5304 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5305
5306 * config.gcc: Support for bpf-*-* targets.
5307 * common/config/bpf/bpf-common.c: New file.
5308 * config/bpf/t-bpf: Likewise.
5309 * config/bpf/predicates.md: Likewise.
5310 * config/bpf/constraints.md: Likewise.
5311 * config/bpf/bpf.opt: Likewise.
5312 * config/bpf/bpf.md: Likewise.
5313 * config/bpf/bpf.h: Likewise.
5314 * config/bpf/bpf.c: Likewise.
5315 * config/bpf/bpf-protos.h: Likewise.
5316 * config/bpf/bpf-opts.h: Likewise.
5317 * config/bpf/bpf-helpers.h: Likewise.
5318 * config/bpf/bpf-helpers.def: Likewise.
5319
5320 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5321
5322 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5323 indirect_calls.
5324
5325 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5326
5327 * opt-functions.awk (integer_range_info): Make sure values are in
5328 numeric context before operating with them.
5329
5330 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5331
5332 * genemit.c (gen_split): Print the filename and line number where the
5333 splitter (or peephole2) was defined, to the dump file.
5334
5335 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5336
5337 PR tree-optimization/91665
5338 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5339 incompatible with the type of PHI result.
5340
5341 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5342
5343 PR target/91684
5344 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5345 gen_unaligned_storedi for 4-byte aligned addresses.
5346
5347 2019-09-06 Jim Wilson <jimw@sifive.com>
5348
5349 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5350 change.
5351
5352 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5353
5354 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5355
5356 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5357
5358 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5359 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5360
5361 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5362
5363 PR target/91654
5364 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5365 cost of SSE->integer and integer->SSE moves from 2 to 6.
5366 (core_cost): Ditto.
5367
5368 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5369
5370 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5371 before testing TYPE_TRANSPARENT_AGGR.
5372 * calls.c (initialize_argument_information, load_register_parameters):
5373 Likewise.
5374
5375 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5376
5377 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5378 high regs.
5379 (cmp_ior): Likewise.
5380
5381 2019-09-06 Martin Liska <mliska@suse.cz>
5382
5383 * doc/match-and-simplify.texi: Separate tuples with ;.
5384
5385 2019-09-06 Martin Liska <mliska@suse.cz>
5386
5387 PR c++/91125
5388 * Makefile.in: Remove tlink.o.
5389 * collect2.c (do_link): New function isolated
5390 from do_tlink.
5391 (main): Use.
5392 * collect2.h (do_tlink): Remove declaration of do_tlink.
5393 * doc/extend.texi: Remove documentation of -frepo.
5394 * doc/invoke.texi: Likewise.
5395 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5396 * tlink.c: Remove.
5397
5398 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5399 Jim Wilson <jimw@sifive.com>
5400
5401 PR target/91635
5402 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5403 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5404 paradoxical_subreg_p (operands[0]).
5405 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5406 use as intermediate value.
5407
5408 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5409
5410 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5411 (sync_compare_and_swap<mode>_insn): Likewise.
5412
5413 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5414
5415 PR middle-end/91615
5416 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5417 without movmisalign optab.
5418
5419 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5420
5421 PR middle-end/91001
5422 PR middle-end/91105
5423 PR middle-end/91106
5424 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5425 types, use type of their first field instead of type of
5426 args[i].tree_value.
5427
5428 2019-09-05 Richard Biener <rguenther@suse.de>
5429
5430 PR rtl-optimization/91656
5431 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5432 of early out.
5433
5434 2019-09-05 Richard Biener <rguenther@suse.de>
5435
5436 PR middle-end/90501
5437 * tree-inline.c (declare_return_variable): Mark the return
5438 slot as addressable after building an address of it.
5439
5440 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5441
5442 * doc/install.texi: Update and clarify requirements to build GNAT.
5443
5444 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5445
5446 PR middle-end/91577
5447 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5448 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5449 call to be in memory.
5450 (pass_expand::execute): Call discover_nonconstant_array_refs before
5451 setting currently_expanding_to_rtl.
5452
5453 2019-09-04 Caroline Tice <cmtice@google.com>
5454
5455 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5456 specified together.
5457
5458 2019-09-04 Marek Polacek <polacek@redhat.com>
5459
5460 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5461
5462 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5463
5464 PR target/32413
5465 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5466 for QI and HImode moves between SSE and general registers.
5467
5468 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5469
5470 PR c/78736
5471 * doc/invoke.texi: Document -Wenum-conversion.
5472
5473 2019-09-04 Richard Biener <rguenther@suse.de>
5474
5475 PR rtl-optimization/36262
5476 * postreload-gcse.c: Include intl.h and gcse.h.
5477 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5478 to avoid linear list walk.
5479 (record_last_mem_set_info): Gate off if not computing transparentness.
5480 (get_bb_avail_insn): If transparentness isn't computed give up
5481 early.
5482 (gcse_after_reload_main): Skip compute_transp and extended PRE
5483 if gcse_or_cprop_is_too_expensive says so.
5484
5485 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5486
5487 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5488 noinit section.
5489 (msp430_select_section): Handle decls with the "noinit" attribute with
5490 default_elf_select_section.
5491 Handle SECCAT_RODATA_MERGE_* section types with
5492 default_elf_select_section.
5493 Add comments about handling of unsupported section types.
5494 (msp430_section_type_flags): Remove handling of the noinit section.
5495
5496 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5497
5498 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5499 conflicting msp430-specific attributes.
5500 (msp430_section_attr): Likewise.
5501 Add warnings about conflicts with generic "noinit" and "section"
5502 attributes.
5503 Fix grammar in -mlarge error message.
5504 (msp430_data_attr): Rename to msp430_persist_attr.
5505 Add warnings about conflicts with generic "noinit" and "section"
5506 attributes.
5507 Add warning for when variable is not initialized.
5508 Chain conditionals which prevent the attribute being added.
5509 (ATTR_EXCL): New helper.
5510 (attr_reent_exclusions): New exclusion table.
5511 (attr_naked_exclusions): Likewise.
5512 (attr_crit_exclusions): Likewise.
5513 (attr_lower_exclusions): Likewise.
5514 (attr_upper_exclusions): Likewise.
5515 (attr_either_exclusions): Likewise.
5516 (attr_persist_exclusions): Likewise.
5517 (msp430_attribute_table): Update with exclusion rules.
5518 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5519 has a section.
5520
5521 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5522
5523 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5524 (msp430_handle_generic_attribute): New function.
5525 * doc/tm.texi: Regenerate.
5526 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5527 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5528 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5529 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5530
5531 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5532
5533 PR tree-optimization/91504
5534 * match.pd: Add ((~a & b) ^a) --> (a | b).
5535
5536 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5537
5538 PR target/91604
5539 * config/i386/i386-expand.c (split_double_mode): If there is more than
5540 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5541 already split matching MEM operand instead of calling adjust_address
5542 again.
5543
5544 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5545
5546 * config.gcc: Obsolete spu target. Remove references to spu.
5547 * configure.ac: Remove references to spu.
5548 * configure: Regenerate.
5549 * config/spu/: Remove directory.
5550 * common/config/spu/: Remove directory.
5551
5552 * doc/extend.texi: Remove references to spu.
5553 * doc/invoke.texi: Likewise.
5554 * doc/md.texi: Likewise.
5555 * doc/sourcebuild.texi: Likewise.
5556
5557 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5558
5559 PR middle-end/91603
5560 PR middle-end/91612
5561 PR middle-end/91613
5562 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5563 and SSA_NAME referring to CONSTANT_P correctly.
5564
5565 2019-09-03 Richard Biener <rguenther@suse.de>
5566
5567 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5568 (vn_nary_op_insert): Likewise.
5569 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5570 (vn_nary_op_lookup): Likewise.
5571 (vn_nary_op_insert): Likewise.
5572
5573 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5574
5575 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5576 (*op0, 1) instead of XEXP (*op1, 0).
5577
5578 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5579
5580 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5581 (aarch64_fjcvtzs): New define_insn.
5582 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5583 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5584 Add AARCH64_JSCVT.
5585 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5586 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5587 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5588 __ARM_FEATURE_JCVT where appropriate.
5589 * config/aarch64/arm_acle.h (__jcvt): Define.
5590
5591 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5592
5593 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5594 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5595 (aarch64_<frintnzs_op><mode>): New define_insn.
5596 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5597 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5598 __ARM_FEATURE_FRINT when appropriate.
5599 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5600 frint32x, frint64z, frint64x.
5601 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5602 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5603 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5604 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5605 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5606 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5607 * config/aarch64/iterators.md (VSFDF): Define.
5608 (FRINTNZX): Likewise.
5609 (frintnzs_op): Likewise.
5610
5611 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5612
5613 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5614 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5615 Cortex-A34.
5616 * config/aarch64/aarch64-tune.md: Regenerated.
5617 * doc/invoke.texi: Document the new processors.
5618
5619 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5620
5621 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5622 string.
5623 (ssbs): Likewise.
5624 (sve2): Likewise.
5625 (sve2-sm4): Likewise.
5626 (sveaes): Likewise.
5627 (svesha3): Likewise.
5628 (svebitperm): Likewise.
5629
5630 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5631 Richard Biener <rguenther@suse.de>
5632
5633 PR tree-optimization/91597
5634 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5635 BIT_AND_EXPR optimization for pointers, even if both operand
5636 ranges don't include NULL, the result can be NULL.
5637
5638 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5639
5640 PR middle-end/91605
5641 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5642 (non_mem_decl_p): ...this.
5643 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5644 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5645 unconditionally as before.
5646
5647 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5648
5649 PR target/91323
5650 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5651 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5652 * tree.def (LTGT_EXPR): Likewise.
5653 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5654
5655 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5656
5657 PR go/91617
5658 * fold-const.c (range_check_type): For enumeral and boolean
5659 type, pass 1 to type_for_size langhook instead of
5660 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5661 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5662 (build_range_check): Don't call unsigned_type_for for pointer types.
5663 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5664 range_check_type result.
5665
5666 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5667
5668 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5669 (replace_ref): Do not replace a chain of only two candidates which are
5670 valid memory references.
5671
5672 2019-09-02 Martin Liska <mliska@suse.cz>
5673
5674 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5675 Bail out when we'll end up with the same number of clusters as
5676 at the beginning.
5677 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5678 (jump_table_cluster::can_be_handled): Remove the guard
5679 as it's already handled in ::is_enabled. Allocate output
5680 after early bail out.
5681
5682 2019-09-02 Martin Liska <mliska@suse.cz>
5683
5684 PR gcov-profile/91601
5685 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5686 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5687 also negative edges.
5688 (circuit): Handle also negative edges as they can happen
5689 in some situations.
5690
5691 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5692
5693 PR target/91472
5694 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5695 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5696 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5697
5698 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR middle-end/91623
5701 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5702 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5703 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5704 zero vector.
5705
5706 PR lto/91572
5707 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5708 GIMPLE_ASM TREE_LIST operands.
5709
5710 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5711
5712 * doc/generic.texi (Unary and Binary Expressions): Mark up
5713 an instance of TYPE_MIN.
5714
5715 2019-08-31 Stafford Horne <shorne@gmail.com>
5716
5717 * config/or1k/constraints.md (t): New constraint.
5718 * config/or1k/or1k.h (GOT_REGS): New register class.
5719 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5720
5721 2019-08-30 Jim Wilson <jimw@sifive.com>
5722
5723 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5724 and -fpic and -mplt then disable -msave-restore and warn.
5725
5726 2019-08-30 Martin Sebor <msebor@redhat.com>
5727
5728 PR middle-end/91599
5729 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5730 the statement doesn't have one.
5731 * gimple-pretty-print.c (percent_G_format): Same.
5732
5733 PR middle-end/91584
5734 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5735 before using them to validate MEM_REF offset.
5736
5737 2019-08-30 Marek Polacek <polacek@redhat.com>
5738
5739 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5740
5741 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5742
5743 * config/arm/arm.md (unaligned_loaddi,
5744 unaligned_storedi): New unspec insn patterns.
5745 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5746 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5747 and unaligned_storedi for 4-byte aligned memory.
5748 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5749 4-byte aligned memory.
5750
5751 2019-08-30 Martin Jambor <mjambor@suse.cz>
5752
5753 tree-optimization/91579
5754 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5755 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5756 appropriate.
5757 (arg_needs_copy_p): Removed.
5758 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5759 arg_needs_copy_p.
5760 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5761
5762 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5763
5764 * config/i386/i386-features.c
5765 (general_scalar_chain::compute_convert_gain):
5766 Correct cost for double-word shifts.
5767 (general_scalar_to_vector_candidate_p): Reject count operands
5768 greater or equal to mode bitsize.
5769
5770 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5771
5772 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5773 for moves between SSE and non-general registers and between
5774 mask and non-general registers.
5775 (ix86_register_move_cost): Remove stalled comment.
5776
5777 2019-08-29 Richard Biener <rguenther@suse.de>
5778
5779 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5780 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5781
5782 2019-08-29 Richard Biener <rguenther@suse.de>
5783
5784 PR bootstrap/91580
5785 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5786 Do not emit scalar copies for debug-insns, instead replace
5787 their uses with the reg copy used in the chain or reset them
5788 if there is a reaching definition outside of the chain as well.
5789
5790 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5791
5792 PR target/91560
5793 * config/i386/i386-expand.c (expand_vec_perm_movs,
5794 expand_vec_perm_blend, expand_vec_perm_vpermil,
5795 expand_vec_perm_pshufb, expand_vec_perm_1,
5796 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5797 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5798 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5799 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5800 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5801 comments - replace ix86_expand_vec_perm_builtin_1 with
5802 ix86_expand_vec_perm_const_1.
5803 (expand_vec_perm2_vperm2f128_vblend): New function.
5804 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5805 expand_vec_perm2_vperm2f128_vblend as last resort.
5806 (canonicalize_perm): Formatting fix.
5807
5808 PR tree-optimization/91351
5809 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5810 unsigned_type_for.
5811 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5812 range_check_type returns NULL.
5813 * tree-switch-conversion.c (switch_conversion::build_one_array):
5814 Use range_check_type instead of unsigned_type_for, don't perform
5815 linear opt if it returns NULL.
5816 (bit_test_cluster::find_bit_tests): Formatting fix.
5817 (bit_test_cluster::emit): Use range_check_type instead of
5818 unsigned_type_for.
5819 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5820 returns NULL.
5821
5822 2019-08-29 Richard Biener <rguenther@suse.de>
5823
5824 PR tree-optimization/91568
5825 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5826 (vect_update_max_nunits): Add overload for poly_uint64.
5827 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5828 (vect_build_slp_tree): Record max_nunits into the subtree
5829 and merge it upwards.
5830 (vect_print_slp_tree): Print max_nunits.
5831
5832 2019-08-28 Marek Polacek <polacek@redhat.com>
5833
5834 Implement P1152R4: Deprecating some uses of volatile.
5835 PR c++/91361
5836 * doc/invoke.texi: Document -Wvolatile.
5837
5838 2019-08-28 Marek Polacek <polacek@redhat.com>
5839
5840 PR c++/91360 - Implement C++20 P1143R2: constinit.
5841 * doc/invoke.texi: Document -Wc++20-compat.
5842
5843 2019-08-28 Martin Sebor <msebor@redhat.com>
5844
5845 PR tree-optimization/91457
5846 * builtins.c (component_size): New function.
5847 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5848 * builtins.h (compute_objsize): Add argument.
5849 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5850 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5851 (vrp_prop::check_mem_ref): Same.
5852 (vrp_prop::search_for_addr_array): Set no-warning bit.
5853 (check_array_bounds): Same.
5854
5855 2019-08-28 Martin Sebor <msebor@redhat.com>
5856
5857 PR driver/80545
5858 * opts-common.c (option_enabled): Correct checking for language
5859 options.
5860
5861 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5862
5863 * config/i386/i386.c (ix86_register_move_cost): Do not
5864 limit the cost of moves to/from XMM register to minimum 8.
5865
5866 2019-08-28 Martin Jambor <mjambor@suse.cz>
5867
5868 PR ipa/91468
5869 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5870 checking assert a normal assert to test it really is redundant.
5871 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5872 redundant test.
5873 (update_jump_functions_after_inlining): Removed combining unary
5874 arithmetic operations with an ancestor jump function.
5875 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5876 instead of t.
5877
5878 2019-08-28 Richard Biener <rguenther@suse.de>
5879
5880 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5881 add the MD problem.
5882
5883 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5884 Richard Biener <rguenther@suse.de>
5885
5886 * expr.c (expand_assignment): Handle misaligned DECLs.
5887 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5888 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5889 too.
5890 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5891 * varasm.c (build_constant_desc): Align constants of misaligned types.
5892 * config/arm/predicates.md (aligned_operand): New predicate.
5893 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5894 aligned_operand to check restrictions on memory addresses.
5895 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5896 * config/arm/vec-common.md (mov<VALL>): Likewise.
5897
5898 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5899
5900 PR libgomp/91530
5901 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5902 V_128 iterator instead of VI_128.
5903
5904 2019-08-28 Martin Liska <mliska@suse.cz>
5905
5906 PR tree-optimization/90970
5907 * builtins.c (check_access): Remove assignment to maxread
5908 as it hasn't been used since when it was introduced in r255755.
5909
5910 2019-08-27 Martin Sebor <msebor@redhat.com>
5911
5912 PR tree-optimization/91567
5913 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5914 of unknown strings.
5915 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5916 to PTRDIFF_MAX - 2.
5917
5918 2019-08-27 Jeff Law <law@redhat.com>
5919
5920 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5921 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5922
5923 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5924
5925 PR target/91528
5926 * config/i386/i386-features.c (convert_scalars_to_vector):
5927 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5928 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5929 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5930 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5931
5932 2019-08-27 Richard Biener <rguenther@suse.de>
5933
5934 * config/i386/i386-features.h
5935 (general_scalar_chain::~general_scalar_chain): Add.
5936 (general_scalar_chain::insns_conv): New bitmap.
5937 (general_scalar_chain::n_sse_to_integer): New.
5938 (general_scalar_chain::n_integer_to_sse): Likewise.
5939 (general_scalar_chain::make_vector_copies): Adjust signature.
5940 * config/i386/i386-features.c
5941 (general_scalar_chain::general_scalar_chain): Outline,
5942 initialize new members.
5943 (general_scalar_chain::~general_scalar_chain): New.
5944 (general_scalar_chain::mark_dual_mode_def): Record insns
5945 we need to insert conversions at and count them.
5946 (general_scalar_chain::compute_convert_gain): Account
5947 for conversion instructions at chain boundary.
5948 (general_scalar_chain::make_vector_copies): Generate a single
5949 copy for a def by a specific insn.
5950 (general_scalar_chain::convert_registers): First populate
5951 defs_map, then make copies at out-of chain insns.
5952
5953 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5954
5955 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5956 comment.
5957 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5958
5959 2019-08-27 Martin Liska <mliska@suse.cz>
5960
5961 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5962 loop.
5963 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5964 Enclose in anonymous namespace.
5965 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5966 hard_register initialization in braces.
5967 * tree-vrp.h (value_range_base::supports_type_p): Return false
5968 for function with boolean return type.
5969
5970 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5971
5972 * config/i386/i386.c (emit_i387_cw_initialization)
5973 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5974
5975 2019-08-26 Martin Sebor <msebor@redhat.com>
5976
5977 PR c++/83431
5978 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5979 (sprintf_dom_walker): Remove class.
5980 (get_int_range): Make argument const.
5981 (directive::fmtfunc, directive::set_precision): Same.
5982 (format_none): Same.
5983 (build_intmax_type_nodes): Same.
5984 (adjust_range_for_overflow): Same.
5985 (format_floating): Same.
5986 (format_character): Same.
5987 (format_string): Same.
5988 (format_plain): Same.
5989 (get_int_range): Cast away constness.
5990 (format_integer): Same.
5991 (get_string_length): Call get_range_strlen_dynamic. Handle
5992 null lendata.maxbound.
5993 (should_warn_p): Adjust argument scope qualifier.
5994 (maybe_warn): Same.
5995 (format_directive): Same.
5996 (parse_directive): Same.
5997 (is_call_safe): Same.
5998 (try_substitute_return_value): Same.
5999 (sprintf_dom_walker::handle_printf_call): Rename...
6000 (handle_printf_call): ...to this. Initialize target to host charmap
6001 here instead of in pass_sprintf_length::execute.
6002 (struct call_info): Make global.
6003 (sprintf_dom_walker::compute_format_length): Make global.
6004 (sprintf_dom_walker::handle_gimple_call): Same.
6005 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6006 * print-rtl.c (print_pattern): Reduce the number of spaces to
6007 avoid -Wformat-truncation.
6008 * tree-pass.h (make_pass_warn_printf): New function.
6009 * tree-ssa-strlen.c (strlen_optimize): New variable.
6010 (get_string_length): Add comments.
6011 (get_range_strlen_dynamic): New function.
6012 (check_and_optimize_call): New function.
6013 (handle_integral_assign): New function.
6014 (strlen_check_and_optimize_stmt): Factor code out into
6015 strlen_check_and_optimize_call and handle_integral_assign.
6016 (strlen_dom_walker::evrp): New member.
6017 (strlen_dom_walker::before_dom_children): Use evrp member.
6018 (strlen_dom_walker::after_dom_children): Use evrp member.
6019 (printf_strlen_execute): New function.
6020 (pass_strlen::gate): Update to handle printf calls.
6021 (dump_strlen_info): New function.
6022 (pass_data_warn_printf): New variable.
6023 (pass_warn_printf): New class.
6024 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6025 (handle_printf_call): Same.
6026 * tree-vrp.c (value_range_base::type): Adjust assertion.
6027 * vr-values.c (vr_values::update_value_range): Use type of the first
6028 argument rather than the second.
6029
6030 2019-08-26 Richard Biener <rguenther@suse.de>
6031
6032 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6033 Remove.
6034 (convert_scalars_to_vector): Do not call it.
6035
6036 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6037 Uros Bizjak <ubizjak@gmail.com>
6038
6039 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6040 CASE_MATHFN_FLOATN for roundeven.
6041 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6042 I387_ROUNDEVEN.
6043 (ix86_mode_needed): Likewise.
6044 (ix86_mode_after): Likewise.
6045 (ix86_mode_entry): Likewise.
6046 (ix86_mode_exit): Likewise.
6047 (ix86_emit_mode_set): Likewise.
6048 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6049 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6050 (ix86_entity): Add I387_ROUNDEVEN.
6051 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6052 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6053 (define_int_iterator): Likewise.
6054 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6055 (define_constant): Define ROUND_ROUNDEVEN mode.
6056 (define_attr): Add roundeven mode for i387_cw.
6057 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6058 * internal-fn.def (ROUNDEVEN): New builtin function.
6059 * optabs.def (roundeven_optab): New optab.
6060
6061 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6062
6063 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6064 for ROUNDEVEN.
6065 * builtins.def: Added function definitions for roundeven function
6066 variants.
6067 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6068 function call. Adjust condition for floor, ceil, trunc and round.
6069 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6070 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6071 (integer_valued_real_call_p): Added case for roundeven function.
6072 * real.c (is_even): New function. Returns true if real number is even,
6073 otherwise returns false.
6074 (is_halfway_below): New function. Returns true if real number is
6075 halfway between two integers, else return false.
6076 (real_roundeven): New function. Round real number to nearest integer,
6077 rounding halfway cases towards even.
6078 * real.h (real_value): Added descriptive comments. Added function
6079 declaration for roundeven function.
6080 * doc/extend.texi (Other Builtins): List roundeven variants among
6081 functions which can be handled as builtins.
6082
6083 2019-08-26 Richard Biener <rguenther@suse.de>
6084
6085 PR target/91522
6086 PR target/91527
6087 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6088 New member.
6089 (general_scalar_chain::replace_with_subreg): Remove.
6090 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6091 (general_scalar_chain::convert_reg): Adjust signature.
6092 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6093 iterate over all defs of a reg.
6094 (general_scalar_chain::replace_with_subreg): Remove.
6095 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6096 (general_scalar_chain::make_vector_copies): Populate defs_map,
6097 place copy only after defs that are used as vectors in the chain.
6098 (general_scalar_chain::convert_reg): Emit a copy for a specific
6099 def in a specific instruction.
6100 (general_scalar_chain::convert_op): All reg uses are converted here.
6101 (general_scalar_chain::convert_insn): Emit copies for scalar
6102 uses of defs here. Replace uses with the copies we created.
6103 Replace and convert the def. Adjust REG_DEAD notes, remove
6104 REG_EQUIV/EQUAL notes.
6105 (general_scalar_chain::convert_registers): Only handle copies
6106 into the chain here.
6107
6108 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6109
6110 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6111
6112 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6113
6114 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6115 Add nop_convert case.
6116 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6117 Fold all statements if requested.
6118 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6119 Allow to fold all statements.
6120 * tree-vrp.c (class vrp_folder):
6121 Let substitute_and_fold_engine fold all statements.
6122
6123 2019-08-26 Richard Biener <rguenther@suse.de>
6124
6125 PR tree-optimization/91526
6126 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6127 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6128 TODO_update_address_taken.
6129
6130 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6131
6132 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6133 __STDC_HOSTED__.
6134
6135 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6136
6137 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6138 machine mode for unspec_volatile operand.
6139
6140 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6141
6142 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6143 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6144 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6145 (prefer_neon_for_64bits): Remove.
6146 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6147 (tune_params): Remove PREF_NEON_64_FALSE uses.
6148 (arm_option_override): Remove prefer_neon selection code.
6149 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6150 * gcc/config/arm/arm-protos.h (tune_params): Remove
6151 prefer_neon_for_64bits.
6152 (prefer_neon_for_64bits): Remove.
6153
6154 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6155
6156 PR pch/61250
6157 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6158 and issue any diagnostics needed before collecting the pre-PCH
6159 state.
6160
6161 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6162
6163 PR middle-end/91283
6164 * common.opt (fexcess-precision=): Add Optimization flag. Use
6165 flag_excess_precision variable instead of
6166 flag_excess_precision_cmdline.
6167 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6168 member.
6169 (flag_excess_precision): Don't define.
6170 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6171 flag_excess_precision_cmdline. Remove comment.
6172 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6173 and x_flag_excess_precision instead of
6174 frontend_set_flag_excess_precision_cmdline and
6175 x_flag_excess_precision_cmdline.
6176 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6177 x_flag_excess_precision_cmdline.
6178 * toplev.c (init_excess_precision): Remove.
6179 (lang_dependent_init_target): Don't call it.
6180
6181 2019-08-23 Martin Liska <mliska@suse.cz>
6182
6183 * lto-wrapper.c (run_gcc): When setting jobserver
6184 set also parallel to 1. This was done so before r273908.
6185
6186 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6187
6188 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6189 (cortex-a76ae): Likewise.
6190 (cortex-a77): Likewise
6191 * config/arm/arm-tables.opt: Regenerate.
6192 * config/arm/arm-tune.md: Likewise.
6193 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6194 cortex-a77 CPU options.
6195
6196 2019-08-23 Martin Liska <mliska@suse.cz>
6197
6198 * profile.c (instrument_values): Do not set
6199 0 as last argument.
6200 * tree-profile.c (gimple_gen_interval_profiler): Remove
6201 last argument.
6202 (gimple_gen_pow2_profiler): Likewise.
6203 (gimple_gen_topn_values_profiler): Likewise.
6204 (gimple_gen_ic_profiler): Likewise.
6205 (gimple_gen_time_profiler): Likewise.
6206 (gimple_gen_average_profiler): Likewise.
6207 (gimple_gen_ior_profiler): Likewise.
6208 * value-prof.c (dump_histogram_value): Use default
6209 in switch statement instead of HIST_TYPE_MAX.
6210 (stream_in_histogram_value): Likewise.
6211 (gimple_duplicate_stmt_histograms): Do not
6212 use NULL for implicitly set arguments.
6213 (gimple_divmod_values_to_profile): Do not use
6214 reserve+quick_push.
6215 (gimple_indirect_call_to_profile): Likewise.
6216 (gimple_find_values_to_profile): Use implicit
6217 function call arguments.
6218 * value-prof.h (gimple_alloc_histogram_value):
6219 Set default values.
6220 (gimple_gen_interval_profiler): Remove last argument.
6221 (gimple_gen_pow2_profiler): Likewise.
6222 (gimple_gen_topn_values_profiler): Likewise.
6223 (gimple_gen_ic_profiler): Likewise.
6224 (gimple_gen_time_profiler): Likewise.
6225 (gimple_gen_average_profiler): Likewise.
6226 (gimple_gen_ior_profiler): Likewise.
6227
6228 2019-08-22 Martin Sebor <msebor@redhat.com>
6229
6230 PR middle-end/91490
6231 * builtins.c (c_strlen): Rename argument and introduce new local.
6232 Set no-warning bit on original argument.
6233 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6234 Fold empty and zero constructors into empty strings.
6235 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6236 for missing initializers.
6237 * tree.c (build_string_literal): Handle optional argument.
6238 * tree.h (build_string_literal): Add defaulted argument.
6239 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6240 no-warning bit on original expression.
6241
6242 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6243
6244 PR target/91481
6245 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6246 and UNSPEC_DARN_RAW.
6247 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6248 UNSPECV_DARN_RAW.
6249 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6250 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6251 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6252
6253 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6254
6255 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6256 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6257 * config/rs6000/rs6000.md (unspec): ... here.
6258 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6259 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6260 cmpeqb, *cmpeqb_internal): Delete, move to...
6261 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6262 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6263 cmpeqb, *cmpeqb_internal): ... here.
6264
6265 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6266
6267 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6268 intrinsics if __ARM_FP.
6269 Use __ARM_FEATURE_CRC32 ifdef guard.
6270
6271 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6272
6273 * config/arm/arm.md (neon_for_64bits): Remove.
6274 (avoid_neon_for_64bits): Remove.
6275 (arm_adddi3): Always split early.
6276 (arm_subdi3): Always split early.
6277 (negdi2): Remove Neon expansion.
6278 (split zero_extend): Split before reload.
6279 (split sign_extend): Split before reload.
6280
6281 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6282
6283 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6284 (qhs_extenddi_cstr): Likewise.
6285 * config/arm/arm.md (ashldi3): Always expand early.
6286 (ashlsi3): Likewise.
6287 (ashrsi3): Likewise.
6288 (zero_extend<mode>di2): Remove Neon variants.
6289 (extend<mode>di2): Likewise.
6290 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6291 (signed_shift_di3_neon): Likewise.
6292 (unsigned_shift_di3_neon): Likewise.
6293 (ashrdi3_neon_imm_noclobber): Likewise.
6294 (lshrdi3_neon_imm_noclobber): Likewise.
6295 (<shift>di3_neon): Likewise.
6296 (split extend): Remove DI extend split patterns.
6297
6298 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6299
6300 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6301 (split not): Add DImode not splitter.
6302 (anddi3): Remove pattern.
6303 (anddi3_insn): Likewise.
6304 (anddi_zesidi_di): Likewise.
6305 (anddi_sesdi_di): Likewise.
6306 (anddi_notdi_di): Likewise.
6307 (anddi_notzesidi_di): Likewise.
6308 (anddi_notsesidi_di): Likewise.
6309 (iordi3): Likewise.
6310 (iordi3_insn): Likewise.
6311 (iordi_zesidi_di): Likewise.
6312 (iordi_sesidi_di): Likewise.
6313 (xordi3): Likewise.
6314 (xordi3_insn): Likewise.
6315 (xordi_sesidi_di): Likewise.
6316 (xordi_zesidi_di): Likewise.
6317 (one_cmpldi2): Likewise.
6318 (one_cmpldi2_insn): Likewise.
6319 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6320 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6321 alternative.
6322 (iwmmxt_xordi3): Likewise.
6323 (iwmmxt_anddi3): Likewise.
6324 * config/arm/neon.md (orndi3_neon): Remove pattern.
6325 (anddi_notdi_di): Likewise.
6326 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6327 (arm_iordi_operand_neon): Likewise.
6328 (arm_xordi_operand_neon): Likewise.
6329 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6330 (iordi_notzesidi_di): Likewise.
6331 (iordi_notdi_zesidi): Likewise.
6332 (iordi_notsesidi_di): Likewise.
6333
6334 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6335
6336 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6337 insn.
6338 (iorsi3_compare0_scratch): Likewise.
6339
6340 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6341
6342 * config/aarch64/aarch64-simd-builtins.def:
6343 (ld1x4): New.
6344 (st1x4): Likewise.
6345 * config/aarch64/aarch64-simd.md:
6346 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6347 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6348 (aarch64_ld1_x4_<mode>): Likewise.
6349 (aarch64_st1_x4_<mode>): Likewise.
6350 * config/aarch64/arm_neon.h:
6351 (vld1_s8_x4): New function.
6352 (vld1q_s8_x4): Likewise.
6353 (vld1_s16_x4): Likewise.
6354 (vld1q_s16_x4): Likewise.
6355 (vld1_s32_x4): Likewise.
6356 (vld1q_s32_x4): Likewise.
6357 (vld1_u8_x4): Likewise.
6358 (vld1q_u8_x4): Likewise.
6359 (vld1_u16_x4): Likewise.
6360 (vld1q_u16_x4): Likewise.
6361 (vld1_u32_x4): Likewise.
6362 (vld1q_u32_x4): Likewise.
6363 (vld1_f16_x4): Likewise.
6364 (vld1q_f16_x4): Likewise.
6365 (vld1_f32_x4): Likewise.
6366 (vld1q_f32_x4): Likewise.
6367 (vld1_p8_x4): Likewise.
6368 (vld1q_p8_x4): Likewise.
6369 (vld1_p16_x4): Likewise.
6370 (vld1q_p16_x4): Likewise.
6371 (vld1_s64_x4): Likewise.
6372 (vld1_u64_x4): Likewise.
6373 (vld1_p64_x4): Likewise.
6374 (vld1q_s64_x4): Likewise.
6375 (vld1q_u64_x4): Likewise.
6376 (vld1q_p64_x4): Likewise.
6377 (vld1_f64_x4): Likewise.
6378 (vld1q_f64_x4): Likewise.
6379 (vst1_s8_x4): Likewise.
6380 (vst1q_s8_x4): Likewise.
6381 (vst1_s16_x4): Likewise.
6382 (vst1q_s16_x4): Likewise.
6383 (vst1_s32_x4): Likewise.
6384 (vst1q_s32_x4): Likewise.
6385 (vst1_u8_x4): Likewise.
6386 (vst1q_u8_x4): Likewise.
6387 (vst1_u16_x4): Likewise.
6388 (vst1q_u16_x4): Likewise.
6389 (vst1_u32_x4): Likewise.
6390 (vst1q_u32_x4): Likewise.
6391 (vst1_f16_x4): Likewise.
6392 (vst1q_f16_x4): Likewise.
6393 (vst1_f32_x4): Likewise.
6394 (vst1q_f32_x4): Likewise.
6395 (vst1_p8_x4): Likewise.
6396 (vst1q_p8_x4): Likewise.
6397 (vst1_p16_x4): Likewise.
6398 (vst1q_p16_x4): Likewise.
6399 (vst1_s64_x4): Likewise.
6400 (vst1_u64_x4): Likewise.
6401 (vst1_p64_x4): Likewise.
6402 (vst1q_s64_x4): Likewise.
6403 (vst1q_u64_x4): Likewise.
6404 (vst1q_p64_x4): Likewise.
6405 (vst1_f64_x4): Likewise.
6406 (vst1q_f64_x4): Likewise.
6407
6408 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6409
6410 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6411
6412 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6413 Richard Sandiford <richard.sandiford@arm.com>
6414
6415 PR target/88839
6416 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6417 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6418
6419 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6420
6421 PR target/90724
6422 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6423 in reg if it fails aarch64_plus_operand predicate.
6424
6425 2019-08-21 Richard Biener <rguenther@suse.de>
6426
6427 PR tree-optimization/91482
6428 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6429 BUILT_IN_ASSUME_ALIGNED calls.
6430
6431 2019-08-21 Richard Biener <rguenther@suse.de>
6432
6433 PR target/91498
6434 PR target/91503
6435 * config/i386/i386-features.c
6436 (general_scalar_chain::make_vector_copies): Copy stack temporary
6437 rtx when using it multiple times.
6438 (general_scalar_chain::convert_reg): Likewise.
6439
6440 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6441
6442 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6443
6444 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6445
6446 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6447 catch more redundant zero initialization cases.
6448 (dse_dom_walker::dse_optimize_stmt): Likewise.
6449
6450 2019-08-20 Richard Biener <rguenther@suse.de>
6451
6452 PR lto/91307
6453 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6454 by collect2 when targetm.have_ctors_dtors which avoids dragging
6455 in temporary filenames from LTO input objects.
6456
6457 2019-08-20 Richard Biener <rguenther@suse.de>
6458
6459 PR tree-optimization/37242
6460 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6461 to (T)a + (T)b if we know that a + b does not overflow.
6462
6463 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6464
6465 PR rtl-optimization/91347
6466 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6467 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6468
6469 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6470
6471 * calls.h (function_arg_info): Add a pass_by_reference field,
6472 defaulting to false.
6473 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6474 when applying pass-by-reference semantics.
6475 (initialize_argument_information): Likewise.
6476 (emit_library_call_value_1): Likewise.
6477 * function.c (assign_parm_data_one): Remove passed_pointer field.
6478 (assign_parm_find_data_types): Don't set it.
6479 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6480 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6481 arg.pass_by_reference instead of passed_pointer.
6482
6483 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6484
6485 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6486 into a single function_arg_info, updating its fields when we
6487 apply pass-by-reference and promotion semantics. Use the
6488 function_arg_info to track the mode rather than keeping it in
6489 a separate local variable.
6490 (initialize_argument_information): Likewise. Base the final
6491 arg_to_skip on this new function_arg_info rather than creating
6492 a new one from scratch.
6493
6494 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6495
6496 * function.c (assign_parm_data_one): Replace passed_type,
6497 promoted_mode and named_arg with a function_arg_info field.
6498 (assign_parm_find_data_types): Remove local variables and
6499 assign directly to "data". Make data->passed_mode shadow
6500 data->arg.mode until promotion, then assign the promoted
6501 mode to data->arg.mode.
6502 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6503 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6504 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6505 (assign_parm_setup_block, assign_parm_setup_reg)
6506 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6507 arg.mode instead of promoted_mode, arg.type instead of passed_type
6508 and arg.named instead of named_arg. Use data->arg for
6509 function_arg_info structures that had the field values passed_type,
6510 promoted_mode and named_arg. Base other function_arg_infos on
6511 data->arg, changing the necessary properties.
6512
6513 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6514
6515 * calls.h (apply_pass_by_reference_rules): Declare.
6516 * calls.c (apply_pass_by_reference_rules): New function.
6517 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6518 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6519 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6520 * function.c (assign_parm_find_data_types): Likewise.
6521 * var-tracking.c (prepare_call_arguments): Likewise.
6522
6523 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6524
6525 * target.def (must_pass_in_stack): Take a function_arg_info instead
6526 of a mode and a type.
6527 * doc/tm.texi: Regenerate.
6528 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6529 instead of a mode and a type.
6530 (must_pass_in_stack_var_size_or_pad): Likewise.
6531 * calls.c (must_pass_in_stack_var_size): Likewise.
6532 (must_pass_in_stack_var_size_or_pad): Likewise.
6533 (initialize_argument_information): Update call to
6534 targetm.calls.must_pass_in_stack.
6535 (must_pass_va_arg_on_stack): Likewise.
6536 * function.c (assign_parm_find_entry_rtl): Likewise.
6537 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6538 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6539 (alpha_function_arg_advance): Likewise.
6540 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6541 (cr16_function_arg_advance): Likewise.
6542 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6543 (cris_arg_partial_bytes): Likewise.
6544 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6545 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6546 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6547 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6548 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6549 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6550 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6551 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6552 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6553 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6554 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6555 instead of a mode and a type.
6556 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6557 (fr30_num_arg_regs): Likewise.
6558 (fr30_setup_incoming_varargs): Update calls accordingly.
6559 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6560 (fr30_function_arg_advance): Likewise.
6561 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6562 instead of a mode and a type.
6563 * config/gcn/gcn.c (num_arg_regs): Likewise.
6564 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6565 num_arg_regs and targetm.calls.must_pass_in_stack.
6566 (gcn_arg_partial_bytes): Likewise.
6567 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6568 function_arg_info instead of a mode and a type.
6569 (classify_argument): Update call accordingly.
6570 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6571 function_arg_info instead of a mode and a type.
6572 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6573 Likewise.
6574 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6575 (rs6000_parm_needs_stack): Update call accordingly.
6576 (setup_incoming_varargs): Likewise.
6577
6578 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6579
6580 * target.def (callee_copies): Take a function_arg_info instead
6581 of a mode, type and named flag.
6582 * doc/tm.texi: Regenerate.
6583 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6584 instead of a mode, type and named flag.
6585 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6586 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6587 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6588 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6589 instead of a mode, type and named flag.
6590 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6591 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6592 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6593 * calls.h (reference_callee_copied): Take a function_arg_info
6594 instead of a mode, type and named flag.
6595 * calls.c (reference_callee_copied): Likewise.
6596 (initialize_argument_information): Update call accordingly.
6597 (emit_library_call_value_1): Likewise.
6598 * function.c (gimplify_parameters): Likewise.
6599 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6600 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6601 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6602 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6603 (TARGET_CALLEE_COPIES): Define to
6604 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6605 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6606 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6607 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6608 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6609 instead of a mode, type and named flag.
6610 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6611 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6612 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6613 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6614 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6615 (TARGET_CALLEE_COPIES): Define to
6616 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6617 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6618 instead of a mode, type and named flag.
6619 * config/sh/sh.c (sh_callee_copies): Likewise.
6620 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6621 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6622 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6623
6624 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6625
6626 * target.def (function_arg_advance): Take a function_arg_info instead
6627 of a mode, type and named flag.
6628 * doc/tm.texi: Regenerate.
6629 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6630 instead of a mode, type and named flag.
6631 * targhooks.c (default_function_arg_advance): Likewise.
6632 * calls.c (initialize_argument_information): Update call to
6633 targetm.calls.function_arg_advance.
6634 (emit_library_call_value_1): Likewise.
6635 * dse.c (get_call_args): Likewise.
6636 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6637 * function.c (assign_parms, gimplify_parameters): Likewise.
6638 * var-tracking.c (prepare_call_arguments): Likewise.
6639 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6640 function_arg_info instead of a mode, type and named flag.
6641 (aarch64_setup_incoming_varargs): Update call accordingly.
6642 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6643 function_arg_info instead of a mode, type and named flag.
6644 (alpha_setup_incoming_varargs): Update call accordingly.
6645 * config/arc/arc.c (arc_function_arg_advance): Take a
6646 function_arg_info instead of a mode, type and named flag.
6647 (arc_setup_incoming_varargs): Update call accordingly.
6648 * config/arm/arm.c (arm_function_arg_advance): Take a
6649 function_arg_info instead of a mode, type and named flag.
6650 (cmse_func_args_or_return_in_stack): Update call accordingly.
6651 (arm_function_ok_for_sibcall): Likewise.
6652 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6653 * config/avr/avr.c (avr_function_arg_advance): Take a
6654 function_arg_info instead of a mode, type and named flag.
6655 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6656 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6657 (c6x_call_saved_register_used): Update call accordingly.
6658 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6659 function_arg_info instead of a mode, type and named flag.
6660 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6661 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6662 (csky_setup_incoming_varargs): Update call accordingly.
6663 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6664 function_arg_info instead of a mode, type and named flag.
6665 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6666 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6667 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6668 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6669 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6670 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6671 (ix86_setup_incoming_varargs): Update call accordingly.
6672 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6673 function_arg_info instead of a mode, type and named flag.
6674 (ia64_setup_incoming_varargs): Update call accordingly.
6675 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6676 function_arg_info instead of a mode, type and named flag.
6677 (iq2000_expand_prologue): Update call accordingly.
6678 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6679 function_arg_info instead of a mode, type and named flag.
6680 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6681 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6682 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6683 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6684 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6685 Likewise.
6686 (microblaze_expand_prologue): Update call accordingly.
6687 * config/mips/mips.c (mips_function_arg_advance): Take a
6688 function_arg_info instead of a mode, type and named flag.
6689 (mips_setup_incoming_varargs): Update call accordingly.
6690 (mips_output_args_xfer): Likewise.
6691 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6692 function_arg_info instead of a mode, type and named flag.
6693 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6694 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6695 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6696 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6697 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6698 (nios2_setup_incoming_varargs): Update call accordingly.
6699 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6700 function_arg_info instead of a mode, type and named flag.
6701 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6702 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6703 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6704 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6705 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6706 (riscv_setup_incoming_varargs): Update call accordingly.
6707 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6708 function_arg_info instead of a mode, type and named flag.
6709 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6710 Likewise.
6711 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6712 (rs6000_parm_needs_stack): Update call accordingly.
6713 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6714 instead of a mode, type and named flag.
6715 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6716 (s390_call_saved_register_used): Update call accordingly.
6717 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6718 instead of a mode, type and named flag.
6719 (sh_output_mi_thunk): Update call accordingly.
6720 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6721 function_arg_info instead of a mode, type and named flag.
6722 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6723 (spu_setup_incoming_varargs): Update call accordingly.
6724 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6725 function_arg_info instead of a mode, type and named flag.
6726 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6727 (tilegx_setup_incoming_varargs): Update call accordingly.
6728 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6729 function_arg_info instead of a mode, type and named flag.
6730 (tilegx_setup_incoming_varargs): Update call accordingly.
6731 * config/v850/v850.c (v850_function_arg_advance): Take a
6732 function_arg_info instead of a mode, type and named flag.
6733 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6734 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6735 (visium_setup_incoming_varargs): Update call accordingly.
6736 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6737 function_arg_info instead of a mode, type and named flag.
6738
6739 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6740
6741 * target.def (function_arg, function_incoming_arg): Take a
6742 function_arg_info instead of a mode, tree and named flag.
6743 * doc/tm.texi: Regenerate.
6744 * targhooks.h (default_function_arg): Take a function_arg_info
6745 instead of a mode, tree and named flag.
6746 (default_function_incoming_arg): Likewise.
6747 * targhooks.c (default_function_arg): Likewise.
6748 (default_function_incoming_arg): Likewise.
6749 * calls.h (function_arg_info::end_marker_p): New function.
6750 (function_arg_info::end_marker): Likewise.
6751 * calls.c (prepare_call_address, initialize_argument_information)
6752 (expand_call, emit_library_call_value_1): Update calls to
6753 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6754 * dse.c: Include calls.h.
6755 (get_call_args): Update call to targetm.calls.function_arg.
6756 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6757 * var-tracking.c (prepare_call_arguments): Likewise.
6758 * function.c (assign_parm_find_entry_rtl): Update call to
6759 targetm.calls.function_incoming_arg.
6760 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6761 function_arg_info instead of a mode, tree and named flag.
6762 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6763 * config/arc/arc.c (arc_function_arg): Likewise.
6764 * config/arm/arm.c (arm_function_arg): Likewise.
6765 (cmse_func_args_or_return_in_stack): Update call accordingly.
6766 (arm_function_ok_for_sibcall): Likewise.
6767 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6768 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6769 instead of a mode, tree and named flag.
6770 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6771 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6772 (c6x_call_saved_register_used): Update call accordingly.
6773 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6774 instead of a mode, tree and named flag.
6775 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6776 (cris_function_arg_1): Likewise.
6777 * config/csky/csky.c (csky_function_arg): Likewise.
6778 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6779 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6780 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6781 (frv_function_arg_1): Likewise.
6782 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6783 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6784 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6785 * config/i386/i386.c (ix86_function_arg): Likewise.
6786 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6787 (ia64_function_arg_1): Likewise.
6788 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6789 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6790 accordingly.
6791 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6792 instead of a mode, tree and named flag.
6793 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6794 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6795 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6796 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6797 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6798 (microblaze_expand_prologue): Update call accordingly.
6799 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6800 instead of a mode, tree and named flag.
6801 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6802 (mmix_function_arg_1): Likewise.
6803 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6804 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6805 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6806 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6807 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6808 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6809 (nvptx_function_incoming_arg): Likewise.
6810 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6811 * config/pa/pa.c (pa_function_arg): Likewise.
6812 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6813 * config/pru/pru.c (pru_function_arg): Likewise.
6814 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6815 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6816 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6817 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6818 (rs6000_parm_needs_stack): Update call accordingly.
6819 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6820 instead of a mode, tree and named flag.
6821 * config/s390/s390.c (s390_function_arg): Likewise.
6822 (s390_call_saved_register_used): Update call accordingly.
6823 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6824 instead of a mode, tree and named flag.
6825 (sh_output_mi_thunk): Update call accordingly.
6826 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6827 (sparc_function_incoming_arg): Take a function_arg_info instead of
6828 a mode, tree and named flag.
6829 * config/spu/spu.c (spu_function_arg): Likewise.
6830 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6831 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6832 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6833 * config/v850/v850.c (v850_function_arg): Likewise.
6834 * config/vax/vax.c (vax_function_arg): Likewise.
6835 * config/visium/visium.c (visium_function_arg): Likewise.
6836 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6837 (xtensa_function_incoming_arg): Likewise.
6838
6839 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6840
6841 * target.def (setup_incoming_varargs): Take a function_arg_info
6842 instead of a mode and tree.
6843 * doc/tm.texi: Regenerate.
6844 * targhooks.h (default_setup_incoming_varargs): Take a
6845 function_arg_info instead of a mode and tree.
6846 * targhooks.c (default_setup_incoming_varargs): Likewise.
6847 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6848 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6849 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6850 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6851 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6852 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6853 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6854 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6855 Likewise.
6856 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6857 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6858 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6859 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6860 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6861 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6862 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6863 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6864 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6865 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6866 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6867 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6868 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6869 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6870 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6871 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6872 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6873 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6874 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6875 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6876 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6877 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6878 * function.c (assign_parms_setup_varargs): Update call to
6879 targetm.calls.setup_incoming_varargs.
6880
6881 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6882
6883 * target.def (pass_by_reference): Take a function_arg_info instead
6884 of a mode, type and named flag.
6885 * doc/tm.texi: Regenerate.
6886 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6887 accordingly.
6888 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6889 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6890 function_arg_info instead of a mode, type and named flag.
6891 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6892 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6893 mode, type and named flag.
6894 * calls.c (pass_by_reference): Likewise.
6895 (pass_va_arg_by_reference): Update call accordingly.
6896 (initialize_argument_information): Likewise.
6897 (emit_library_call_value_1): Likewise.
6898 * function.c (assign_parm_find_data_types): Likewise.
6899 * var-tracking.c (prepare_call_arguments): Likewise.
6900 * stor-layout.c: Include calls.h.
6901 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6902 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6903 function_arg_info instead of a mode, type and named flag.
6904 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6905 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6906 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6907 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6908 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6909 (c6x_call_saved_register_used): Update call to pass_by_reference.
6910 * config/cris/cris.c (cris_pass_by_reference): Take a
6911 function_arg_info instead of a mode, type and named flag.
6912 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6913 function_arg_info instead of a mode, type and named flag.
6914 (epiphany_arg_partial_bytes): Update call accordingly.
6915 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6916 function_arg_info instead of a mode, type and named flag.
6917 (ft32_arg_partial_bytes): Update call accordingly.
6918 * config/i386/i386.c (ix86_pass_by_reference): Take a
6919 function_arg_info instead of a mode, type and named flag.
6920 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6921 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6922 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6923 (m32r_return_in_memory): Update call accordingly.
6924 * config/mips/mips.c (mips_pass_by_reference): Take a
6925 function_arg_info instead of a mode, type and named flag.
6926 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6927 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6928 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6929 (moxie_arg_partial_bytes): Update call accordingly.
6930 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6931 function_arg_info instead of a mode, type and named flag.
6932 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6933 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6934 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6935 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6936 (riscv_return_in_memory): Update call accordingly.
6937 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6938 function_arg_info instead of a mode, type and named flag.
6939 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6940 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6941 * config/s390/s390.c (s390_pass_by_reference): Take a
6942 function_arg_info instead of a mode, type and named flag.
6943 (s390_call_saved_register_used): Update call accordingly.
6944 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6945 instead of a mode, type and named flag.
6946 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6947 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6948 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6949 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6950 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6951 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6952
6953 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6954
6955 * target.def (arg_partial_bytes): Take a function_arg_info instead
6956 of a mode, type and named flag.
6957 * doc/tm.texi: Regenerate.
6958 * target.h (function_arg_info): Declare.
6959 * calls.h (function_arg_info): New class.
6960 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6961 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6962 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6963 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6964 * calls.c (initialize_argument_information): Update call to
6965 targetm.calls.partial_bytes.
6966 (emit_library_call_value_1): Likewise.
6967 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6968 * function.c (assign_parm_find_entry_rtl): Likewise.
6969 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6970 function_arg_info instead of a mode, type and named flag.
6971 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6972 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6973 (cmse_func_args_or_return_in_stack): Update accordingly.
6974 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6975 function_arg_info instead of a mode, type and named flag.
6976 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6977 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6978 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6979 * config/fr30/fr30.c: Include calls.h.
6980 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6981 type and named flag.
6982 * config/frv/frv.c: Include calls.h.
6983 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6984 type and named flag.
6985 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6986 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6987 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6988 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6989 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6990 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6991 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6992 Likewise.
6993 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6994 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6995 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6996 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6997 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6998 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6999 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7000 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7001 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7002 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7003 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7004 (rs6000_parm_needs_stack): Update call accordingly.
7005 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7006 function_arg_info instead of a mode, type and named flag.
7007 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7008 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7009
7010 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7011
7012 * calls.h (must_pass_va_arg_in_stack): Declare.
7013 * calls.c (must_pass_va_arg_in_stack): New function.
7014 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7015 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7016 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7017 Likewise.
7018 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7019
7020 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7021
7022 * calls.h (pass_va_arg_by_reference): Declare.
7023 * calls.c (pass_va_arg_by_reference): New function.
7024 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7025 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7026 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7027 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7028 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7029 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7030 (mips_gimplify_va_arg_expr): Likewise.
7031 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7032 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7033 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7034 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7035 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7036 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7037 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7038 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7039 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7040 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7041 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7042
7043 2019-08-20 Richard Biener <rguenther@suse.de>
7044
7045 PR target/91498
7046 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7047 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7048 (convert_scalars_to_vector): Add timode_p parameter and use it
7049 to guard TImode-only operation.
7050 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7051 (pass_stv::execute): Pass down timode_p.
7052
7053 2019-08-20 Lili Cui <lili.cui@intel.com>
7054
7055 * common/config/i386/i386-common.c
7056 (processor_names): Add tigerlake and cooperlake.
7057 (processor_alias_table): Add tigerlake and cooperlake.
7058 * config.gcc: Add -march=tigerlake and cooperlake.
7059 * config/i386/driver-i386.c
7060 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7061 Add "has_avx" to classify processor.
7062 * config/i386/i386-builtins.c (processor_model) :
7063 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7064 (arch_names_table): Add tigerlake and cooperlake.
7065 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7066 and PROCESSOR_COOPERLAKE.
7067 * config/i386/i386-c.c
7068 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7069 * config/i386/i386-options.c
7070 (m_TIGERLAKE) : Define.
7071 (m_COOPERLAKE) : Ditto.
7072 (m_CORE_AVX512): Ditto.
7073 (processor_cost_table): Add cascadelake.
7074 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7075 * config/i386/i386.h
7076 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7077 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7078 (PTA_MOVDIRI): Ditto.
7079 (PTA_MOVDIR64B): Ditto.
7080 (PTA_COOPERLAKE) : Ditto.
7081 (PTA_TIGERLAKE) : Ditto.
7082 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7083 * doc/extend.texi: Add tigerlake and cooperlake.
7084 * doc/invoke.texi: Add tigerlake and cooperlake.
7085
7086 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7087
7088 * doc/install.texi (Specific, alpha): Remove note to use
7089 binutils 2.11.2 or later.
7090
7091 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7092
7093 PR middle-end/89544
7094 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7095 when possible.
7096
7097 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7098
7099 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7100 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7101 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7102 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7103 * config/aarch64/constraints.md (Dt): New constraint
7104 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7105
7106 2019-08-19 Richard Biener <rguenther@suse.de>
7107
7108 PR tree-optimization/91403
7109 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7110 cases we can handle with tail-recursion...
7111 (follow_ssa_edge_expr): ... here. Do so.
7112
7113 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7114
7115 PR target/91441
7116 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7117 implemented for -fsanitize=kernel-address, and merge check logic
7118 with -fsanitize=address.
7119
7120 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7121
7122 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7123 for cpu and machine. Factor 64/32b builtins.
7124
7125 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7126
7127 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7128 gone, point to sourceforge.net.
7129
7130 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7131
7132 * doc/ux.texi (User Experience Guidelines): Update reference.
7133
7134 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7135
7136 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7137 not LGPL".
7138
7139 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7140
7141 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7142 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7143
7144 2019-08-16 Martin Sebor <msebor@redhat.com>
7145
7146 * tree.def (TYPE_SIZE): Clarify.
7147 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7148
7149 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7150
7151 PR tree-optimization/91109
7152 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7153 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7154 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7155
7156 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7157
7158 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7159 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7160 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7161 (uavg<mode>3_ceil): New expander.
7162 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7163 mode iterator when creating CONST1_RTX.
7164 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7165 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7166 mode iterator for const1_operand predicate.
7167
7168 2019-08-16 Richard Biener <rguenther@suse.de>
7169
7170 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7171 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7172 follow_ssa_edge.
7173 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7174 (analyze_evolution_in_loop): Likewise.
7175 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7176 (follow_ssa_edge_expr): ... here. Refactor code.
7177
7178 2019-08-16 Richard Biener <rguenther@suse.de>
7179
7180 PR target/91469
7181 * config/i386/i386-features.c
7182 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7183
7184 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7185
7186 PR other/91255
7187 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7188 only if subst_name matches curr_attr string.
7189
7190 2019-08-16 Richard Biener <rguenther@suse.de>
7191
7192 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7193 stmt at gsi_p, instead replace it with a NOP removed later.
7194 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7195 that became dead because of that.
7196
7197 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7198
7199 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7200 for which we can't represent a range.
7201 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7202 set_varying.
7203 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7204 Set VR_UNDEFINED if type is not supported.
7205 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7206 * tree-vrp.c (value_range_base::check): Assert that a varying has
7207 min/max set.
7208 (value_range_base::equal_p): Early bail for undefines.
7209 (value_range_base::set_varying): Accept a type.
7210 (value_range::set_varying): Same.
7211 (value_range_base::type): VARYING can have a type, while UNDEFINE
7212 is typeless.
7213 (value_range_base::dump): Print type for VARYING nodes.
7214 (value_range_base::set): Add type to VARYING.
7215 (extract_range_from_multiplicative_op): Pass type to set_varying.
7216 (extract_range_from_binary_expr): Same.
7217 (value_range_base::intersect_helper): Same.
7218 (value_range_base::union_helper): Same.
7219 (value_range_base::normalize_symbolics): Same.
7220 (determine_value_range_1): Same.
7221 * tree-vrp.h (class value_range_base): Add type to set_varying.
7222 Add prototype for dump(void).
7223 Add prototype for supports_type_p.
7224 (class value_range): Add type to set_varying.
7225 Add prototype for dump(void).
7226 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7227 set_varying.
7228 (vr_values::get_lattice_entry): Set varying even if propagation
7229 finished.
7230 Pass type to set_varying.
7231 (vr_values::get_value_range): Remove vr_const_varying.
7232 Reallocate the lattice if needed.
7233 (vr_values::update_value_range): Pass type to set_varying.
7234 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7235 (vr_values::extract_range_from_binary_expr): Same.
7236 (vr_values::extract_range_from_unary_expr): Same.
7237 (vr_values::extract_range_from_cond_expr): Same.
7238 (vr_values::check_for_binary_op_overflow): Same.
7239 (vr_values::extract_range_basic): Same.
7240 (vr_values::extract_range_from_assignment): Same.
7241 (vr_values::vr_values): Increase size of num_vr_values.
7242 (vr_values::extract_range_from_phi_node): Pass type to
7243 set_varying.
7244
7245 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7246
7247 PR target/90878
7248 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7249 for costs of hard register moves.
7250 (ix86_register_move_cost): Likewise.
7251 * config/i386/i386.h (processor_costs): Move costs of hard
7252 register moves to hard_register. Add int_load, int_store,
7253 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7254 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7255 for costs of RTL expressions.
7256 * config/i386/x86-tune-costs.h: Move costs of hard register
7257 moves to hard_register. Duplicate int_load, int_store,
7258 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7259 sse_load, sse_store for costs of RTL expressions.
7260
7261 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7262
7263 * target.def (setup_incoming_vararg_bounds): Remove.
7264 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7265 * doc/tm.texi: Regenerate.
7266 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7267 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7268 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7269 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7270
7271 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7272
7273 MSP430: Fix lines over 80 characters long in
7274 config/msp430/*.{c,h} files
7275
7276 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7277 specifier in string.
7278 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7279 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7280 redundant old comment.
7281 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7282 Split line more than 80 characters long.
7283 * config/msp430/msp430.c (msp430_option_override): Likewise.
7284 (msp430_return_in_memory): Likewise.
7285 (msp430_gimplify_va_arg_expr): Likewise.
7286 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7287 (msp430_legitimate_constant): Likewise.
7288 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7289 (msp430_attr): Likewise.
7290 (msp430_data_attr): Likewise.
7291 (msp430_start_function): Likewise.
7292 (gen_prefix): Likewise.
7293 (msp430_init_sections): Likewise.
7294 (msp430_select_section): Likewise.
7295 (msp430_function_section): Likewise.
7296 (msp430_unique_section): Likewise.
7297 (msp430_output_aligned_decl_common): Likewise.
7298 (msp430_do_not_relax_short_jumps): Likewise.
7299 (msp430_init_builtins): Likewise.
7300 (msp430_expand_delay_cycles): Likewise.
7301 (msp430_expand_prologue): Likewise.
7302 (msp430_expand_epilogue): Likewise.
7303 (msp430_expand_helper): Likewise.
7304 (msp430_split_movsi): Likewise.
7305 (msp430_print_operand): Likewise.
7306 (msp430_return_addr_rtx): Likewise.
7307 (msp430x_extendhisi): Likewise.
7308 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7309 (ASM_SPEC): Likewise.
7310 Remove very obvious comments.
7311 (LIB_SPEC): Split line more than 80 characters long.
7312 (EH_RETURN_HANDLER_RTX): Likewise.
7313 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7314
7315 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7316
7317 MSP430: Fix whitespace errors and incorrect indentation in
7318 config/msp430/*.{c,h} files
7319
7320 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7321 (msp430_select_hwmult_lib): Likewise.
7322 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7323 (msp430_extract_mcu_data): Likewise.
7324 (struct t_msp430_mcu_data): Likewise.
7325 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7326 before left square bracket.
7327 (msp430_option_override): Fix indentation.
7328 (msp430_hard_regno_nregs_with_padding): Likewise.
7329 (msp430_initial_elimination_offset): Likewise.
7330 (msp430_special_register_convention_p): Remove whitespace before left
7331 square bracket and after exclamation mark.
7332 (msp430_evaluate_arg): Likewise.
7333 (msp430_callee_copies): Fix indentation.
7334 (msp430_gimplify_va_arg_expr): Likewise.
7335 (msp430_function_arg_advance): Remove whitespace before left square
7336 bracket.
7337 (reg_ok_for_addr): Likewise.
7338 (msp430_preserve_reg_p): Likewise.
7339 (msp430_compute_frame_info): Likewise.
7340 (msp430_asm_output_addr_const_extra): Add space between function name
7341 and open parenthesis.
7342 (has_section_name): Fix indentation.
7343 (msp430_attr): Remove trailing whitespace.
7344 (msp430_section_attr): Likewise.
7345 (msp430_data_attr): Likewise.
7346 (struct msp430_attribute_table): Fix comment and whitespace.
7347 (msp430_start_function): Remove whitespace before left square bracket.
7348 Add space between function name and open parenthesis.
7349 (msp430_select_section): Remove trailing whitespace.
7350 (msp430_section_type_flags): Remove trailing whitespace.
7351 (msp430_unique_section): Remove space before closing parenthesis.
7352 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7353 (msp430_builtins): Remove whitespace before left square bracket.
7354 (msp430_init_builtins): Fix indentation.
7355 (msp430_expand_prologue): Remove whitespace before left square bracket.
7356 Remove space before closing parenthesis.
7357 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7358 (msp430_split_movsi): Remove space before closing parenthesis.
7359 (helper_function_name_mappings): Fix indentation.
7360 (msp430_use_f5_series_hwmult): Fix whitespace.
7361 (use_32bit_hwmult): Likewise.
7362 (msp430_no_hwmult): Likewise.
7363 (msp430_output_labelref): Remove whitespace before left square bracket.
7364 (msp430_print_operand_raw): Likewise.
7365 (msp430_print_operand_addr): Likewise.
7366 (msp430_print_operand): Add two spaces after '.' in comment.
7367 Fix trailing whitespace.
7368 (msp430x_extendhisi): Fix indentation.
7369 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7370 tab.
7371 (PC_REGNUM): Likewise.
7372 (STACK_POINTER_REGNUM): Likewise.
7373 (CC_REGNUM): Likewise.
7374
7375 2019-08-15 Richard Biener <rguenther@suse.de>
7376
7377 PR target/91454
7378 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7379 helper.
7380 (general_scalar_chain::make_vector_copies): Use it.
7381
7382 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7383
7384 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7385
7386 2019-08-15 Martin Liska <mliska@suse.cz>
7387
7388 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7389 operators with no arguments.
7390 (eliminate_unnecessary_stmts): Likewise here.
7391
7392 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7393
7394 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7395 <case COMPARE>: Revert 2019-08-14 change.
7396 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7397 for (TARGET_64BIT || mode != DImode).
7398
7399 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7400
7401 * tree-vrp.c (value_range_base::set): Merge in code from
7402 value_range_base::set_and_canonicalize.
7403 Enforce canonicalization at set time.
7404 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7405 (value_range_base::set_undefined): Inline call to set().
7406 (value_range_base::set_varying): Same.
7407 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7408 (vrp_val_max): New argument handle_pointers.
7409 (vrp_val_min): Same.
7410 (ranges_from_anti_range): Same.
7411 (extract_range_into_wide_ints): Use tree argument instead of sign
7412 and precision.
7413 (extract_range_from_multiplicative_op): Take in tree type instead
7414 of precision and sign. Adapt function for canonicalized ranges.
7415 (extract_range_from_binary_expr): Pass type to
7416 extract_range_from_multiplicative_op.
7417 Adapt for canonicalized ranges.
7418 (extract_range_from_unary_expr): Same.
7419 (value_range_base::intersect_helper): Adjust for canonicalized
7420 ranges.
7421 (value_range_base::union_helper): Same.
7422 (value_range_base::normalize_symbolics): New.
7423 * tree-vrp.h (class value_range_base): Remove
7424 set_and_canonicalize.
7425 New prototype for normalize_symbolics.
7426 (class value_range): Remove set_and_canonicalize.
7427 (vrp_val_min): Adjust prototype.
7428 (vrp_val_max): Same.
7429 * vr-values.c
7430 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7431 instead of set_and_canonicalize.
7432
7433 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7434
7435 PR middle-end/91444
7436 * tree-vect-stmts.c (vectorizable_call): Check that the function
7437 is a BUILT_IN_MD function before passing it to
7438 targetm.vectorize.builtin_md_vectorized_function.
7439
7440 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7441
7442 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7443 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7444 (aarch64_select_early_remat_modes): Use it.
7445
7446 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7447
7448 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7449 16 for SVE predicates even if they are fixed-length.
7450
7451 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7452
7453 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7454 operand order match the MOV /Z alias.
7455
7456 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7457
7458 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7459 the vector pattern as an aarch64_svpattern argument. Update the
7460 overloaded caller accordingly.
7461 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7462 (aarch64_output_sve_vector_inc_dec): Likewise.
7463
7464 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7465
7466 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7467 multiplication case, try to compute VG * (lowest set bit) directly
7468 rather than always basing the multiplication on VG. Use
7469 expand_mult for the multiplication if we can.
7470
7471 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7472
7473 * config/aarch64/aarch64-protos.h
7474 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7475 (aarch64_sve_inc_dec_immediate_p): Rename to...
7476 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7477 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7478 (aarch64_output_sve_scalar_inc_dec): Declare.
7479 (aarch64_output_sve_inc_dec_immediate): Rename to...
7480 (aarch64_output_sve_vector_inc_dec): ...this.
7481 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7482 (aarch64_output_sve_scalar_inc_dec): New functions.
7483 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7484 arguments. Only handle true ADDVL and ADDPL instructions;
7485 don't emit an INC or DEC.
7486 (aarch64_sve_inc_dec_immediate_p): Rename to...
7487 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7488 (aarch64_output_sve_inc_dec_immediate): Rename to...
7489 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7490 aarch64_sve_vector_inc_dec_immediate_p.
7491 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7492 (aarch64_sve_plus_immediate): New predicates.
7493 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7494 rather than aarch64_sve_addvl_addpl_immediate.
7495 (aarch64_sve_inc_dec_immediate): Rename to...
7496 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7497 aarch64_sve_vector_inc_dec_immediate_p.
7498 (aarch64_sve_add_operand): Update accordingly.
7499 * config/aarch64/constraints.md (Uai): New constraint.
7500 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7501 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7502 operand into a register if it satisfies aarch64_sve_plus_immediate.
7503 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7504 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7505 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7506 aarch64_output_sve_vector_inc_dec instead of
7507 aarch64_output_sve_inc_dec_immediate.
7508
7509 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7510
7511 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7512 (UNSPEC_REVW): New constants.
7513 (elem_bits): New mode attribute.
7514 (SVE_INT_UNARY): New int iterator.
7515 (optab): Handle UNSPEC_REV[BHW].
7516 (sve_int_op): New int attribute.
7517 (min_elem_bits): Handle VNx16QI and the predicate modes.
7518 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7519 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7520 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7521 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7522 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7523 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7524 unspecs based on the total width of the reversed data.
7525 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7526 reinterpret followed by a subreg on big-endian targets.
7527
7528 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7529 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7530
7531 * config/aarch64/aarch64-sve.md
7532 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7533 alternatives in which one of the inputs is in the same register
7534 as the output.
7535
7536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7539 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7540
7541 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7542
7543 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7544 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7545
7546 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7547 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7548
7549 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7550 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7551 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7552
7553 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7554 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7555
7556 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7557 Add an alternative that uses reversed shifts.
7558
7559 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7560
7561 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7562 struct.
7563
7564 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7565
7566 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7567 a commutativity marker.
7568
7569 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7570 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7571
7572 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7573 (aarch64_prepare_sve_cond_int_fma): Declare.
7574 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7575 (aarch64_prepare_sve_int_fma): New functions.
7576 (aarch64_prepare_sve_cond_int_fma): Likewise.
7577 * config/aarch64/aarch64-sve.md
7578 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7579 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7580 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7581 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7582 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7583 (*madd<mode>): Rename to...
7584 (*fma<mode>4): ...this.
7585 (*msub<mode>): Rename to...
7586 (*fnma<mode>4): ...this.
7587
7588 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7589 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7590
7591 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7592 Print 2.0 naturally.
7593 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7594 * config/aarch64/predicates.md
7595 (aarch64_sve_float_negated_arith_immediate): New predicate,
7596 renamed from aarch64_sve_float_arith_with_sub_immediate.
7597 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7598 positive and negative constants.
7599 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7600 or an aarch64_sve_float_arith_with_sub_immediate.
7601 * config/aarch64/constraints.md (vsN): Use
7602 aarch64_sve_float_negated_arith_immediate.
7603 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7604 iterator.
7605 (sve_pred_fp_rhs2_immediate): New int attribute.
7606 * config/aarch64/aarch64-sve.md
7607 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7608 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7609 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7610 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7611 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7612 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7613
7614 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7615 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7616
7617 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7618 (*aarch64_cond_abd<SVE_F:mode>_3)
7619 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7620
7621 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7622 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7623
7624 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7625 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7626
7627 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7628 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7629
7630 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7631 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7632 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7633 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7634 optabs.
7635 * optabs.h (create_convert_operand_from): Expand comment.
7636 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7637 when mapping scalar rtxes to vector operands.
7638 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7639 ashiftrt and lshiftrt.
7640 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7641 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7642 (*cond_<optab><mode>_any_const): New patterns.
7643
7644 2019-08-15 Martin Liska <mliska@suse.cz>
7645
7646 PR ipa/91438
7647 * cgraph.c (cgraph_node::remove): When setting
7648 n->origin = NULL for all nested functions, reset
7649 also next_nested.
7650
7651 2019-08-15 Martin Liska <mliska@suse.cz>
7652
7653 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7654 and next_nested.
7655
7656 2019-08-15 Martin Liska <mliska@suse.cz>
7657
7658 PR ipa/91404
7659 * passes.c (order): Remove.
7660 (uid_hash_t): Likewise).
7661 (remove_cgraph_node_from_order): Remove from set
7662 of pointers (cgraph_node *).
7663 (insert_cgraph_node_to_order): New.
7664 (duplicate_cgraph_node_to_order): New.
7665 (do_per_function_toporder): Register all 3 cgraph hooks.
7666 Skip removed_nodes now as we know about all of them.
7667
7668 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7669
7670 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7671 <case E_V8QImode>: Use vector_set path for
7672 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7673 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7674 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7675
7676 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7677
7678 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7679
7680 2019-08-14 Martin Sebor <msebor@redhat.com>
7681
7682 PR tree-optimization/91294
7683 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7684 source length as exact.
7685
7686 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7687
7688 * doc/extend.texi: Add "noinit" attribute documentation.
7689 * doc/sourcebuild.texi: Add noinit effective target documentation.
7690 * varasm.c (default_section_type_flags): Add support for "noinit"
7691 section.
7692 (default_elf_select_section): Add support for "noinit" attribute.
7693 * config/msp430/msp430.c (msp430_attribute_table): Remove
7694 "noinit" entry.
7695
7696 2019-08-14 Richard Biener <rguenther@suse.de>
7697 Uroš Bizjak <ubizjak@gmail.com>
7698
7699 PR target/91154
7700 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7701 mode arguments.
7702 (scalar_chain::smode): New member.
7703 (scalar_chain::vmode): Likewise.
7704 (dimode_scalar_chain): Rename to...
7705 (general_scalar_chain): ... this.
7706 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7707 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7708 base with TImode and V1TImode.
7709 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7710 (general_scalar_chain::vector_const_cost): Adjust for SImode
7711 chains.
7712 (general_scalar_chain::compute_convert_gain): Likewise. Add
7713 {S,U}{MIN,MAX} support.
7714 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7715 (general_scalar_chain::make_vector_copies): Likewise. Handle
7716 non-DImode chains appropriately.
7717 (general_scalar_chain::convert_reg): Likewise.
7718 (general_scalar_chain::convert_op): Likewise.
7719 (general_scalar_chain::convert_insn): Likewise. Add
7720 fatal_insn_not_found if the result is not recognized.
7721 (convertible_comparison_p): Pass in the scalar mode and use that.
7722 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7723 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7724 (scalar_to_vector_candidate_p): Remove by inlining into single
7725 caller.
7726 (general_remove_non_convertible_regs): Rename from
7727 dimode_remove_non_convertible_regs.
7728 (remove_non_convertible_regs): Remove by inlining into single caller.
7729 (convert_scalars_to_vector): Handle SImode and DImode chains
7730 in addition to TImode chains.
7731 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7732 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7733 (*<maxmin>di3_doubleword): Likewise.
7734
7735 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7736 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7737
7738 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7739 (*cond_bic<mode>_any): New patterns.
7740
7741 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7742
7743 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7744 take the equivalent mask, as well as a bit count.
7745 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7746 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7747 (aarch64_sve_pred_and_operand): New predicates.
7748 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7749 code attribute.
7750 * config/aarch64/aarch64-sve.md
7751 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7752 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7753
7754 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7755
7756 * config/aarch64/aarch64-sve.md
7757 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7758 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7759 New patterns.
7760
7761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7762 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7763
7764 * config/aarch64/aarch64-sve.md
7765 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7766 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7767
7768 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7769 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7770
7771 * config/aarch64/aarch64-sve.md
7772 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7773 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7774
7775 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7776
7777 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7778 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7779 New pattern.
7780
7781 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7782 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7783
7784 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7785
7786 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7787 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7788
7789 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7790 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7791 (aarch64_print_operand): Add support for %I.
7792 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7793 Bitcast floating-point constants to the corresponding integer constant.
7794 (aarch64_float_const_representable_p): Handle vectors as well
7795 as scalars.
7796 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7797 for the new vcond_mask_<mode><vpred> expander.
7798 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7799 test aarch64_float_const_representable_p.
7800 (aarch64_sve_reg_or_dup_imm): New predicate.
7801 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7802 gen_vcond_mask_<mode><vpred> instead of
7803 gen_aarch64_sve_dup<mode>_const.
7804 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7805 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7806 for operands 1 and 2 respectively. Force operand 2 into a
7807 register if operand 1 is a register. Fold old define_insn...
7808 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7809 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7810 floating-point constants that can be moved as integers. Add
7811 alternatives for MOV /M and FMOV /M.
7812 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7813 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7814 1 and 2 respectively.
7815 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7816 as scalars.
7817 (vss): New constraint.
7818
7819 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7820
7821 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7822 (aarch64_sve_float_maxmin_operand): New predicates.
7823 * config/aarch64/constraints.md (vsB): New constraint.
7824 (vsM): Fix typo.
7825 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7826 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7827 UNSPEC_COND_FMINNM.
7828 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7829 Use aarch64_sve_float_maxmin_operand for operand 2.
7830 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7831 Add alternatives for the constant forms.
7832
7833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7834
7835 * config/aarch64/constraints.md (vsb): New constraint.
7836 (vsm): Generalize description.
7837 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7838 iterator.
7839 (sve_imm_con): Handle smax, smin, umax and umin.
7840 (sve_imm_prefix): New code attribute.
7841 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7842 (aarch64_sve_vsb_operand): New predicates.
7843 (aarch64_sve_mul_immediate): Rename to...
7844 (aarch64_sve_vsm_immediate): ...this.
7845 (aarch64_sve_mul_operand): Rename to...
7846 (aarch64_sve_vsm_operand): ...this.
7847 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7848 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7849 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7850 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7851 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7852 add movprfx support for the immediate alternatives.
7853 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7854 of the above.
7855 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7856 for operand 3.
7857
7858 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7859
7860 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7861 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7862 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7863
7864 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7865
7866 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7867 (optab, sve_int_op): Handle them.
7868 * config/aarch64/aarch64-sve.md: Expand comment.
7869
7870 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7871
7872 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7873 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7874 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7875
7876 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7879 (aarch64_expand_sve_const_pred_trn): New functions.
7880 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7881 use the above functions when the parameter is true.
7882 (aarch64_expand_sve_const_pred): Update call accordingly.
7883 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7884 Rename to...
7885 (@aarch64_sve_<perm_insn><mode>): ...this.
7886
7887 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7888
7889 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7890 Declare.
7891 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7892 (aarch64_sve_emit_int_cmp): New functions.
7893 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7894 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7895 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7896 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7897 (UNSPEC_PRED_Z): New unspec.
7898 (set_clobber_cc_nzc): Delete.
7899 * config/aarch64/aarch64-sve.md: Add a block comment about
7900 UNSPEC_PRED_Z.
7901 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7902 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7903 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7904 UNSPEC_MERGE_PTRUE.
7905 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7906 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7907 check for compatible predicates.
7908 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7909 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7910 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7911 comparisons above.
7912
7913 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7914
7915 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7916 * config/aarch64/aarch64-sve.md: Add a section describing it.
7917 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7918 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7919 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7920 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7921 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7922 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7923 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7924 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7925 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7926 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7927 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7928 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7929 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7930 (aarch64_evpc_rev_local): Update accordingly.
7931
7932 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7933
7934 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7935 iterators.
7936 (SVE_BHSI, SVE_SDI): Tweak comment.
7937 (SVE_HSDI): Likewise. Fix definition.
7938 (SVE_SDF): New mode iterator.
7939 (elem_bits): New mode attribute.
7940 (SVE_COND_FCVT): New int iterator.
7941 * config/aarch64/aarch64-sve.md
7942 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7943 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7944 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7945 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7946 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7947 ...these new patterns.
7948 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7949 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7950 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7951 Merge into...
7952 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7953 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7954 ...these new patterns.
7955 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7956 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7957 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7958 ...this new pattern.
7959 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7960 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7961 ...this new pattern.
7962 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7963
7964 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7965
7966 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7967 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7968 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7969 unspecs.
7970 (optab, su): Handle them.
7971 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7972 * config/aarch64/aarch64-sve.md
7973 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7974 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7975 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7976 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7977 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7978 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7979 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7980 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7981 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7982 FIXUORS.
7983 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7984 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7985 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7986 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7987 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7988 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7989 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7990 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7991 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7992 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7993 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7994 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7995 of UNSPEC_FLOAT_CONVERT.
7996 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7997 aarch64_sve_extend<mode><Vwide>2.
7998
7999 2019-08-14 Richard Biener <rguenther@suse.de>
8000
8001 PR target/91154
8002 * config/i386/i386-features.c
8003 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8004 individual instruction gain. Fix reg-reg copy GRP cost. Use
8005 ix86_cost->sse_op for vector instruction costs.
8006
8007 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8008
8009 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8010 (cmp_op): Handle it.
8011 (SVE_COND_FP_CMP): Rename to...
8012 (SVE_COND_FP_CMP_I0): ...this.
8013 (SVE_FP_CMP): Remove.
8014 * config/aarch64/aarch64-sve.md
8015 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8016 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8017 using unspecs to represent the comparison.
8018 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8019 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8020 accordingly.
8021 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8022 (aarch64_unspec_cond_code): Move after integer code. Handle
8023 UNORDERED.
8024 (aarch64_emit_sve_predicated_cond): Replace with...
8025 (aarch64_emit_sve_fp_cond): ...this new function.
8026 (aarch64_emit_sve_or_conds): Replace with...
8027 (aarch64_emit_sve_or_fp_conds): ...this new function.
8028 (aarch64_emit_sve_inverted_cond): Replace with...
8029 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8030 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8031
8032 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8033
8034 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8035 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8036 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8037 SVE_HSD instead of SVE_SD.
8038
8039 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8040 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8041
8042 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8043 iterator.
8044 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8045 attributes.
8046 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8047 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8048 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8049 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8050 (*div<SVE_F:mode>3): Generalize to...
8051 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8052
8053 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8054 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8055
8056 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8057 constants.
8058 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8059 predicate.
8060 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8061 Declare.
8062 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8063 function.
8064 * config/aarch64/aarch64-sve.md: Add a block comment about the
8065 handling of predicated FP operations.
8066 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8067 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8068 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8069 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8070 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8071 operand.
8072 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8073 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8074 operand.
8075 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8076 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8077 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8078 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8079 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8080 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8081 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8082 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8083 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8084 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8085 strictness operands. Use aarch64_sve_pred_dominates_p to check
8086 whether the predicate on the conditional operation is suitable
8087 for merging. Split patterns into the canonical equal-predicate form.
8088 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8089 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8090
8091 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8092 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8093
8094 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8095 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8096 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8097 rtx codes.
8098 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8099 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8100 unspecs.
8101
8102 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8103 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8104
8105 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8106 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8107 actually has, rather than relying on REG_EQUAL notes.
8108 Make the insn operand order match the SVE operand order.
8109 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8110 the SVE operand order.
8111
8112 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8113
8114 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8115 (aarch64_emit_set_immediate): Likewise.
8116 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8117 (aarch64_pfalse_reg): Likewise.
8118 (aarch64_convert_sve_data_to_pred): New function.
8119 (aarch64_sve_move_pred_via_while): Take an optional target register
8120 and the required register mode.
8121 (aarch64_expand_sve_const_pred_1): New function.
8122 (aarch64_expand_sve_const_pred): Likewise.
8123 (aarch64_expand_mov_immediate): Build an all-true predicate
8124 if the significant bits of the immediate are all true. Use
8125 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8126 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8127 before register allocation.
8128 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8129 a VNx16BI PTRUE when splitting the memory alternative.
8130 (vec_duplicate<mode>): Update accordingly.
8131 (*pred_cmp<cmp_op><mode>): Rename to...
8132 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8133
8134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8135
8136 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8137 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8138 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8139 (UNSPEC_PTEST): New unspec.
8140 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8141 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8142 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8143 * config/aarch64/aarch64-sve.md: Add a new section describing the
8144 handling of UNSPEC_PTEST.
8145 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8146 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8147 (ptest_ptrue<mode>): Replace with...
8148 (aarch64_ptest<mode>): ...this new pattern.
8149 (cbranch<mode>4): Update after above changes.
8150 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8151 UNSPEC_PTEST_PTRUE.
8152 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8153 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8154 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8155
8156 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8157
8158 PR lto/91287
8159 * builtins.c (builtin_with_linkage_p): New function.
8160 * builtins.h (builtin_with_linkage_p): New function.
8161 * symtab.c (write_symbol): Remove redundant assert.
8162 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8163 Remove FIXME and use builtin_with_linkage_p.
8164
8165 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8166
8167 PR middle-end/91421
8168 * tree-core.h (function_decl::function_code): Change type to
8169 unsigned int.
8170 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8171 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8172 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8173 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8174 is BUILT_IN_NORMAL.
8175 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8176 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8177 (fndecl_built_in_p): Change the type of the "name" argument to
8178 unsigned int.
8179 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8180 after check for DECL_BUILT_IN_CLASS.
8181 * cgraphclones.c (build_function_decl_skip_args): Use
8182 set_decl_built_in_function.
8183 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8184 * ipa-split.c (split_function): Likewise.
8185 * langhooks.c (add_builtin_function_common): Likewise.
8186 * omp-simd-clone.c (simd_clone_create): Likewise.
8187 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8188 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8189 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8190 DECL_FUNCTION_CODE.
8191 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8192 instead of DECL_FUNCTION_CODE.
8193 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8194 instead of DECL_FUNCTION_CODE.
8195 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8196 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8197 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8198 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8199 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8200 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8201 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8202 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8203 (alpha_gimple_fold_builtin): Likewise.
8204 * config/arc/arc.c (arc_expand_builtin): Likewise.
8205 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8206 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8207 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8208 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8209 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8210 * config/frv/frv.c (frv_expand_builtin): Likewise.
8211 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8212 (gcn_expand_builtin): Likewise.
8213 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8214 (fold_builtin_cpu): Likewise.
8215 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8216 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8217 (ix86_gimple_fold_builtin): Likewise.
8218 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8219 (ia64_expand_builtin): Likewise.
8220 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8221 * config/mips/mips.c (mips_expand_builtin): Likewise.
8222 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8223 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8224 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8225 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8226 * config/pa/pa.c (pa_expand_builtin): Likewise.
8227 * config/pru/pru.c (pru_expand_builtin): Likewise.
8228 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8229 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8230 Likewise.
8231 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8232 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8233 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8234 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8235 (rs6000_builtin_reciprocal): Likewise.
8236 * config/rx/rx.c (rx_expand_builtin): Likewise.
8237 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8238 * config/s390/s390.c (s390_expand_builtin): Likewise.
8239 * config/sh/sh.c (sh_expand_builtin): Likewise.
8240 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8241 (sparc_fold_builtin): Likewise.
8242 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8243 * config/spu/spu.c (spu_expand_builtin): Likewise.
8244 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8245 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8246 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8247 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8248 (xtensa_expand_builtin): Likewise.
8249
8250 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8251
8252 PR middle-end/91421
8253 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8254 before the DECL_FUNCTION_CODE.
8255 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8256 to check for a BUILT_IN_ALLOCA call.
8257 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8258 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8259 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8260 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8261 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8262 for BUILT_IN_NORMAL functions.
8263 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8264 test for BUILT_IN_TM_ABORT.
8265 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8266 to check for a BUILT_IN_STACK_RESTORE call.
8267 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8268 * tree-ssa-threadedge.c
8269 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8270 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8271 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8272 test for a BUILT_IN_NORMAL call instead of a negative test for
8273 an internal function call.
8274
8275 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8276
8277 * tree.h (build_vector_a_then_b): Declare.
8278 * tree.c (build_vector_a_then_b): New function.
8279 * fold-const-call.c (fold_while_ult): Likewise.
8280 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8281 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8282 (aarch64_svpattern): New enum.
8283 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8284 constants through aarch64_expand_mov_immediate.
8285 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8286 than general_operand as the predicate for operand 1.
8287 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8288 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8289 insn_type.
8290 (simd_immediate_info::simd_immediate_info): New overload that
8291 takes a scalar_int_mode and an svpattern.
8292 (simd_immediate_info::u): Add a "pattern" field.
8293 (svpattern_token): New function.
8294 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8295 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8296 (aarch64_sve_move_pred_via_while): New functions.
8297 (aarch64_expand_mov_immediate): Try using
8298 aarch64_sve_move_pred_via_while for predicates that contain N ones
8299 followed by M zeros but that do not correspond to a VLnnn pattern.
8300 (aarch64_sve_pred_valid_immediate): New function.
8301 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8302 with PTRUE and PFALSE.
8303 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8304 forms.
8305
8306 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8307
8308 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8309 flag.
8310 (darwin_override_options): Likewise.
8311 * config/darwin.h: Likewise.
8312 * config/darwin.opt: Likewise.
8313 * config/i386/i386.c (output_pic_addr_const): Likewise.
8314 * config/rs6000/darwin.h: Likewise.
8315 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8316 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8317 ... this TARGET_MACHO_SYMBOL_STUBS.
8318 (FUNCTION_PROFILER):Likewise.
8319 * config/i386/i386.h: Likewise.
8320
8321 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8322
8323 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8324 <case E_V2SImode>: Use vec_extr path for
8325 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8326 <case E_V8QImode>: Ditto.
8327 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8328 Use SWI48 mode iterator. Use %k to output operand 0.
8329 (*mmx_pextrw): New insn pattern.
8330 (*mmx_pextrb): Ditto.
8331 (*mmx_pextrb_zext): Ditto.
8332
8333 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8334
8335 * target.def (libc_has_function, libc_has_fast_function): Improve
8336 documentation strings.
8337 * doc/tm.texi: Regenerate.
8338
8339 2019-08-13 Caroline Tice <cmtice@google.com>
8340
8341 PR other/91396
8342 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8343 vtv_end.o or vtv_end_preinit.o files if !static.
8344
8345 2019-08-13 Olivier Hainque <hainque@adacore.com>
8346
8347 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8348
8349 2019-08-13 Olivier Hainque <hainque@adacore.com>
8350
8351 * rtlanal.c (tablejump_casesi_pattern): New function, to
8352 determine if a tablejump insn is a casesi dispatcher. Extracted
8353 from patch_jump_insn.
8354 * rtl.h (tablejump_casesi_pattern): Declare.
8355 * cfgrtl.c (patch_jump_insn): Use it.
8356 * dwarf2cfi.c (create_trace_edges): Use it.
8357
8358 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8359
8360 PR target/81800
8361 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8362 operand is larger than a long int.
8363
8364 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8365
8366 * machmode.h (opt_mode::else_mode): New function.
8367 (opt_mode::else_blk): Use it.
8368 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8369 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8370 (aarch64_gen_stepped_int_parallel): Likewise.
8371 (aarch64_stepped_int_parallel_p): Likewise.
8372 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8373 argument.
8374 * config/aarch64/aarch64.c
8375 (aarch64_expand_sve_widened_duplicate): Delete.
8376 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8377 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8378 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8379 argument. Use early returns in the !CONST_INT_P handling.
8380 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8381 than handling some inline.
8382 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8383 from...
8384 (aarch64_simd_container_mode): ...here.
8385 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8386 (aarch64_sve_ld1rq_operand_p): New functions.
8387 * config/aarch64/predicates.md (descending_int_parallel)
8388 (aarch64_sve_ld1rq_operand): New predicates.
8389 * config/aarch64/constraints.md (UtQ): New constraint.
8390 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8391 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8392 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8393 (@aarch64_sve_reinterpret<mode>): New expander.
8394 (*aarch64_sve_reinterpret<mode>): New pattern.
8395 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8396 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8397 (*sve_ld1rq<Vesize>): Replace with...
8398 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8399
8400 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8401
8402 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8403 16:12.
8404
8405 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8406
8407 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8408 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8409 (msp430_check_path_for_devices): New.
8410 (parse_devices_csv_1): New.
8411 (parse_devices_csv): New.
8412 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8413 MCU data in devices.csv before using the hard-coded data.
8414 Warn if devices.csv isn't found and the MCU wasn't found in the
8415 hard-coded data either.
8416 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8417 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8418 Search for devices.csv on -I and -L paths.
8419 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8420 msp430_set_driver_var.
8421 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8422 -mdevices-csv-loc=.
8423 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8424 searched for devices.csv.
8425 (mwarn-devices-csv): Document option.
8426
8427 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8428
8429 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8430 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8431 Use a single Dn alternative instead of separate Dz and Dm
8432 alternatives. Use aarch64_output_sve_move_immediate.
8433 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8434 function.
8435 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8436 for predicates too.
8437 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8438 (aarch64_output_ptrue): Delete.
8439
8440 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8441
8442 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8443 INDEX.
8444 (simd_immediate_info::value, simd_immediate_info::step)
8445 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8446 with...
8447 (simd_immediate_info::u): ...this new union.
8448 (simd_immediate_info::simd_immediate_info): Update accordingly.
8449 (aarch64_output_simd_mov_immediate): Likewise.
8450 (aarch64_output_sve_mov_immediate): Likewise.
8451
8452 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8453
8454 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8455 extra_gcc_objs.
8456 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8457 (msp430_select_cpu): New spec function.
8458 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8459 MCU data.
8460 * config/msp430/msp430-devices.c: New file.
8461 * config/msp430/msp430-devices.h: New file.
8462 * config/msp430/msp430.c: Remove msp430_mcu_data.
8463 (msp430_option_override): Use msp430_extract_mcu_data to extract
8464 MCU data.
8465 (msp430_use_f5_series_hwmult): Likewise.
8466 (use_32bit_hwmult): Likewise.
8467 (msp430_no_hwmult): Likewise.
8468 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8469 assembler.
8470 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8471 and -mcpu option.
8472 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8473 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8474 Remove hard-coded MCU multilib data.
8475
8476 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8477
8478 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8479 based on the mode instead of testing properties of it.
8480
8481 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8482
8483 * doc/md.texi: Document the x and y constraints for AArch64.
8484 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8485 (FP_LO8_REGS): New reg_class.
8486 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8487 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8488 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8489 * config/aarch64/predicates.md (aarch64_simd_register): Use
8490 FP_REGNUM_P instead of checking the classes manually.
8491 * config/aarch64/constraints.md (y): New constraint.
8492
8493 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8494
8495 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8496 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8497 * config/aarch64/aarch64-simd.md
8498 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8499 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8500 from the asm template.
8501 * config/aarch64/aarch64-sve.md
8502 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8503 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8504 from the asm template.
8505 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8506 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8507 from the asm template.
8508 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8509
8510 2019-08-13 Martin Liska <mliska@suse.cz>
8511
8512 * value-prof.c (gimple_ic_transform): Add new line.
8513 Print details with MSG_NOTE.
8514
8515 2019-08-13 Martin Liska <mliska@suse.cz>
8516
8517 * doc/invoke.texi: Document automatic detection of jobserver.
8518 * lto-wrapper.c (run_gcc): Detect jobserver always.
8519
8520 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8521
8522 * config/i386/i386-expand.c (ix86_expand_vector_set)
8523 <case E_V2SImode>: Use vec_merge path for
8524 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8525 <case E_V8QImode>: Ditto.
8526 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8527 (*mmx_pinsrb): Ditto.
8528
8529 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8530
8531 PR target/83250
8532 PR target/91340
8533 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8534 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8535 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8536 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8537 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8538
8539 2019-08-12 Richard Biener <rguenther@suse.de>
8540
8541 PR lto/91375
8542 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8543 flag_devirtualize.
8544
8545 2019-08-12 Richard Biener <rguenther@suse.de>
8546
8547 PR driver/91130
8548 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8549 lang_mask option, always use CL_DRIVER.
8550 (get_options_from_collect_gcc_options): Adjust.
8551 (find_and_merge_options): Likewise.
8552 (run_gcc): Likewise.
8553
8554 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8555
8556 * ipa-predicate.c (add_condition): Restore inverted test.
8557
8558 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8559
8560 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8561 (enum omp_clause_device_type_kind): New enum.
8562 (struct tree_omp_clause): Add subcode.device_type_kind.
8563 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8564 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8565 for device_type clause.
8566 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8567 * tree-pretty-print.c (dump_omp_clause): Likewise.
8568
8569 PR target/91408
8570 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8571 vector_operand.
8572
8573 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8574
8575 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8576 handling spilled pseudos.
8577
8578 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8579
8580 PR target/91386
8581 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8582 to preserve the contents of the original insns.
8583
8584 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8585
8586 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8587 (addsi3_compare_op2): Likewise.
8588
8589 2019-08-09 Martin Liska <mliska@suse.cz>
8590
8591 * alias.c (alias_ptr_types_compatible_p): Strengten
8592 type comparison in LTO mode.
8593
8594 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8595
8596 PR middle-end/90313
8597 * tree-tailcall.c (find_tail_calls): Reject calls that might
8598 read from an escaped RESULT_DECL.
8599
8600 2019-08-09 Martin Liska <mliska@suse.cz>
8601
8602 * doc/invoke.texi: Document the option value.
8603 * lto-wrapper.c (run_gcc): Set auto_parallel
8604 only with -flto=auto.
8605
8606 2019-08-09 Martin Liska <mliska@suse.cz>
8607
8608 * opts.c (common_handle_option): Error for an invalid argument
8609 to -flto=.
8610
8611 2019-08-09 Martin Liska <mliska@suse.cz>
8612
8613 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8614 use dump_printf to report optimization.
8615 (sem_variable::merge): Likwise.
8616 (sem_item_optimizer::merge_classes): Use dump_printf to report
8617 ICF hits.
8618
8619 2019-08-09 Martin Liska <mliska@suse.cz>
8620
8621 * value-prof.c (gimple_divmod_fixed_value_transform):
8622 Use dump_printf_loc.
8623 (gimple_mod_pow2_value_transform): Likewise.
8624 (gimple_mod_subtract_transform): Likewise.
8625 (init_node_map): Likewise.
8626 (gimple_ic_transform): Likewise.
8627 (gimple_stringops_transform): Likewise.
8628
8629 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8630
8631 * doc/extend.texi: Add const qualifier to ld intrinsics.
8632
8633 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8634
8635 * config/rs6000/dfp.md (D64_D128): Rename to ...
8636 (DDTD): ... this, throughout.
8637 (dfp_suffix): Rename to ...
8638 (q): ... this, throughout.
8639
8640 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8641
8642 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8643 (dfp_suffix): Ditto.
8644 (adddd3, addtd3): Merge to ...
8645 (add<mode>3 for D64_D128): ... this.
8646 (subdd3, subtd3): Merge to ...
8647 (sub<mode>3 for D64_D128): ... this.
8648 (muldd3, multd3): Merge to ...
8649 (mul<mode>3 for D64_D128): ... this.
8650 (divdd3, divtd3): Merge to ...
8651 (div<mode>3 for D64_D128): ... this.
8652 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8653 (*cmp<mode>_internal1 for D64_D128): ... this.
8654 (ftruncdd2, ftrunctd2): Merge to ...
8655 (ftrunc<mode>2 for D64_D128): ... this.
8656 (fixdddi2, fixtddi2): Merge to ...
8657 (fix<mode>di2 for D64_D128): ... this.
8658
8659 2019-08-08 Jim Wilson <jimw@sifive.com>
8660
8661 PR target/91229
8662 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8663 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8664 Pass into recursive call.
8665 (riscv_flatten_aggregate_argument): New arg. Pass to
8666 riscv_flatten_aggregate_field.
8667 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8668 riscv_flatten_aggregate_argument twice, with false and true as last
8669 arg. Process result twice. Compare results and warn if different.
8670 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8671
8672 2019-08-08 Martin Liska <mliska@suse.cz>
8673
8674 PR bootstrap/91352
8675 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8676 * lto-wrapper.c (jobserver_active_p): Likewise.
8677
8678 2019-08-08 Martin Liska <mliska@suse.cz>
8679
8680 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8681 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8682 (create_version_clone_with_body): Likewise.
8683
8684 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8685
8686 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8687 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8688 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8689 GOVD_EXPLICIT flags.
8690 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8691 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8692 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8693 call install_var_field with mask 11 instead of 3.
8694 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8695 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8696
8697 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8698
8699 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8700 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8701
8702 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8703
8704 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8705 MOVPRFX alternatives. Make the GPR alternatives more expensive
8706 than the FPR ones.
8707
8708 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8709
8710 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8711 Disparage the GPR alternative relative to the FPR one.
8712 Fix handling of 8-bit and 16-bit FPR values.
8713
8714 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8715
8716 * config/aarch64/iterators.md (BITWISEV): Delete.
8717 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8718 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8719 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8720 UNSPEC_FMINNMV, UNSPEC_FMINV.
8721 (bit_reduc_op): Delete.
8722 (sve_int_op): New int attribute.
8723 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8724 UNSPEC_FMINNMV, UNSPEC_FMINV.
8725 * config/aarch64/aarch64-sve.md
8726 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8727 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8728 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8729 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8730 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8731 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8732 new patterns.
8733 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8734 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8735 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8736 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8737 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8738 new patterns.
8739
8740 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8741
8742 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8743 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8744 (fms<mode>4, *fms<mode>4): Replace with...
8745 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8746 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8747 Use unspecs instead of rtx codes.
8748 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8749 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8750
8751 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8752
8753 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8754 int iterator.
8755 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8756 * config/aarch64/aarch64-sve.md
8757 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8758 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8759 use a single unspec for the rhs.
8760 (*<su><maxmin><mode>3): Delete.
8761 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8762
8763 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8764
8765 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8766 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8767 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8768 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8769 (optab, sve_fp_op): Handle them.
8770 (SVE_FP_UNARY): Delete.
8771 (optab): Remove sqrt entry.
8772 (sve_fp_op): Remove neg, abs and sqrt entries.
8773 (SVE_COND_FP_UNARY): New int iterator.
8774 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8775 (*<frint_pattern><mode>2): Delete.
8776 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8777 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8778 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8779 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8780
8781 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8782
8783 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8784
8785 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8786
8787 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8788 (UNSPEC_COND_FADD): ...this.
8789 (UNSPEC_COND_SUB): Rename to...
8790 (UNSPEC_COND_FSUB): ...this.
8791 (UNSPEC_COND_MUL): Rename to...
8792 (UNSPEC_COND_FMUL): ...this.
8793 (UNSPEC_COND_DIV): Rename to...
8794 (UNSPEC_COND_FDIV): ...this.
8795 (UNSPEC_COND_MAX): Rename to...
8796 (UNSPEC_COND_FMAXNM): ...this.
8797 (UNSPEC_COND_MIN): Rename to...
8798 (UNSPEC_COND_FMINNM): ...this.
8799 (UNSPEC_COND_LT): Rename to...
8800 (UNSPEC_COND_FCMLT): ...this.
8801 (UNSPEC_COND_LE): Rename to...
8802 (UNSPEC_COND_FCMLE): ...this.
8803 (UNSPEC_COND_EQ): Rename to...
8804 (UNSPEC_COND_FCMEQ): ...this.
8805 (UNSPEC_COND_NE): Rename to...
8806 (UNSPEC_COND_FCMNE): ...this.
8807 (UNSPEC_COND_GE): Rename to...
8808 (UNSPEC_COND_FCMGE): ...this.
8809 (UNSPEC_COND_GT): Rename to...
8810 (UNSPEC_COND_FCMGT): ...this.
8811 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8812 (sve_fp_op_rev): Update accordingly.
8813 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8814
8815 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8816
8817 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8818 banner comments.
8819 * config/aarch64/check-sve-md.awk: New file.
8820 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8821 (insn-conditions.md): Depend on it.
8822
8823 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8824
8825 PR target/91385
8826 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8827 (*negsi2_cmpz_zext): Ditto.
8828
8829 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8830
8831 * config/aarch64/iterators.md (commutative): Remove.
8832
8833 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8834
8835 PR driver/91130
8836 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8837 processing COLLECT_GCC_OPTIONS.
8838 (run_gcc): Likewise.
8839
8840 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8841
8842 PR tree-optimization/91109
8843 * lra-remat.c (update_scratch_ops): Remove assignment of the
8844 hard register.
8845
8846 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8847
8848 * data-streamer.h (streamer_write_poly_uint64): Declare.
8849 (streamer_read_poly_uint64): Likewise.
8850 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8851 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8852 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8853 (add_condition): Take a poly_int64 size.
8854 * ipa-predicate.c (add_condition): Likewise.
8855 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8856 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8857 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8858 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8859 condition::size as a poly_int64.
8860 (unmodified_parm_1): Take a poly_int64 size pointer.
8861 (unmodified_parm): Likewise.
8862 (unmodified_parm_or_parm_agg_item): Likewise.
8863 (set_cond_stmt_execution_predicate): Update accordingly.
8864 (set_switch_stmt_execution_predicate): Likewise.
8865 (will_be_nonconstant_expr_predicate): Likewise.
8866 (will_be_nonconstant_predicate): Likewise.
8867 (inline_read_section): Stream condition::size as a poly_int.
8868 (ipa_fn_summary_write): Likewise.
8869
8870 2019-08-07 Martin Liska <mliska@suse.cz>
8871
8872 * fold-const.c (twoval_comparison_p): Replace int
8873 with bool as a return type.
8874 (simple_operand_p): Likewise.
8875 (operand_equal_p): Replace int with bool as a return type.
8876 * fold-const.h (operand_equal_p): Likewise.
8877
8878 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8879
8880 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8881 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8882 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8883 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8884 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8885 * tree-pretty-print.c (dump_omp_clause): Likewise.
8886 * tree-nested.c (convert_nonlocal_omp_clauses,
8887 convert_local_omp_clauses): Likewise.
8888 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8889 Likewise.
8890 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8891 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8892 clause with array or reference to array types, no matter what type
8893 except for reference it has.
8894
8895 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8896
8897 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8898
8899 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8900
8901 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8902 (arch_canonicalize): Support rv32g and rv64g and fix error
8903 handling.
8904
8905 2019-08-06 Martin Liska <mliska@suse.cz>
8906
8907 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8908 and DECL_IS_OPERATOR_DELETE_P.
8909
8910 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8911
8912 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8913 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8914 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8915 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8916 (gimplify_omp_for): Don't do C++ random access iterator clause
8917 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8918 don't predetermine the artificial iterator in case of C++ random
8919 access iterators as lastprivate, but private. For OMP_LOOP, force
8920 bind expr around simd body and force for_pre_body before the
8921 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8922 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8923 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8924 diff var of C++ random access iterators. Handle
8925 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8926 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8927 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8928 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8929 * omp-low.c (lower_rec_input_clauses): For
8930 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8931 variables instead of default constructing them.
8932 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8933 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8934 is_taskloop_ctx check from the assert to the guarding condition.
8935
8936 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8937
8938 * config/riscv/multilib-generator: (canonical_order): New.
8939 (arch_canonicalize): Dito.
8940 Apply arch_canonicalize for alts.
8941
8942 2019-08-05 Martin Sebor <msebor@redhat.com>
8943
8944 * doc/extend.texi (Common Variable Attributes): Document alias
8945 attribute.
8946
8947 2019-08-05 Marek Polacek <polacek@redhat.com>
8948
8949 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8950 * doc/invoke.texi: Document -Wcomma-subscript.
8951
8952 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8953
8954 * tree-core.h (tree_function_decl): Make function_code an
8955 independent field. Group the remaining bitfields into bytes
8956 and move decl_type so that it contines to be at a byte boundary.
8957 Leave 12 bits for future expansion.
8958
8959 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8960
8961 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8962 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8963 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8964 IFN_MASK_STORE.
8965
8966 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8967
8968 * gimple.h (gimple_move_vops): Declare.
8969 * gimple.c (gimple_move_vops): New function
8970 * gimple-fold.c (replace_call_with_call_and_fold)
8971 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8972 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8973 (gimple_fold_call): Use it.
8974 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8975 * tree-call-cdce.c (use_internal_fn): Likewise.
8976 * tree-if-conv.c (predicate_load_or_store): Likewise.
8977 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8978 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8979 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8980 (update_call_from_tree): Likewise.
8981 * tree-vect-stmts.c (vectorizable_load): Likewise.
8982 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8983
8984 2019-08-05 Martin Liska <mliska@suse.cz>
8985
8986 PR c++/91334
8987 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8988 with not arguments.
8989 (eliminate_unnecessary_stmts): Likewise.
8990
8991 2019-08-05 Richard Biener <rguenther@suse.de>
8992
8993 PR middle-end/91169
8994 * fold-const.c (get_array_ctor_element_at_index): Create
8995 offset_ints according to the sign of the index type and treat
8996 that as signed if it is obviously so.
8997
8998 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8999
9000 PR target/91341
9001 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9002 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9003 _mm256_storeu2_m128i): New function.
9004
9005 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9006
9007 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9008 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9009
9010 2019-08-05 Alan Modra <amodra@gmail.com>
9011
9012 PR target/91349
9013 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9014 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9015
9016 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9017
9018 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9019 bug that was fixed in Tcl 8.6.1.
9020
9021 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9022
9023 * config/rs6000/future.md: New file.
9024 * config/rs6000/rs6000.md: Include future.md.
9025 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9026
9027 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9028
9029 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9030 check to use targetm.slow_unaligned_access instead.
9031
9032 * function.c (assign_param_data_one): Remove unused data members.
9033
9034 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9035
9036 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9037 build_distinct_type_copy.
9038 (simd_clone_adjust_argument_types): Ditto.
9039 (simd_clone_adjust): Call build_distinct_type_copy here.
9040 (expand_simd_clones): Ditto.
9041
9042 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9043
9044 PR target/91201
9045 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9046
9047 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9048
9049 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9050 from 'const void *'.
9051 (sort_locs_in_loop_postorder_cmp): Likewise.
9052
9053 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9054
9055 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9056 (hot-bb-count-ws-permille): Likewise.
9057 (hot-bb-frequency-fraction): Likewise.
9058 (unlikely-bb-count-fraction): Likewise.
9059 * params.def (hot-bb-count-fraction): Rework description.
9060 (hot-bb-count-ws-permille): Likewise.
9061 (hot-bb-frequency-fraction): Likewise.
9062 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9063 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9064
9065 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9066
9067 PR target/91323
9068 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9069 Return false.
9070
9071 2019-08-02 Richard Biener <rguenther@suse.de>
9072
9073 * vec.h (vec::sort): Add gcc_qsort_r support.
9074 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9075 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9076 to gcc_qsort_r style callback.
9077 (sort_locs_in_loop_postorder_cmp): Likewise.
9078 (analyze_memory_references): Use gcc_sort_r interfaces.
9079 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9080
9081 2019-08-02 Martin Liska <mliska@suse.cz>
9082
9083 PR lto/91313
9084 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9085 to detect working job server.
9086 (driver::detect_jobserver): Test whether jobserver
9087 is active from GCC driver. That will prevent situation where
9088 GCC is invoked from a LD plugin and the linker already uses
9089 file descriptors suggested by make. That leads to a wrong
9090 detection.
9091 * gcc.h (driver): Add detect_jobserver.
9092 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9093 not scanning for --jobserver-auth prefix.
9094
9095 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9096
9097 PR tree-optimization/91201
9098 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9099 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9100 extraction.
9101
9102 2019-08-01 Martin Sebor <msebor@redhat.com>
9103
9104 PR c++/90947
9105 * tree.c (type_initializer_zero_p): Define.
9106 * tree.h (type_initializer_zero_p): New function.
9107
9108 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9109
9110 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9111
9112 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9113
9114 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9115 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9116 * predict.c (maybe_hot_count_p): Likewise.
9117 (maybe_hot_bb_p): Tweak comment.
9118 (maybe_hot_edge_p): Likewise.
9119 (probably_never_executed): Likewise. Minor tweak.
9120 (probably_never_executed_bb_p): Likewise.
9121 (unlikely_executed_edge_p): Likewise.
9122 (probably_never_executed_edge_p): Likewise.
9123 (optimize_function_for_size_p): Likewise.
9124 (optimize_function_for_speed_p): Likewise.
9125 (function_optimization_type): Likewise.
9126 (optimize_bb_for_size_p): Likewise.
9127 (optimize_bb_for_speed_p): Likewise.
9128 (bb_optimization_type): Likewise.
9129 (optimize_edge_for_size_p): Likewise.
9130 (optimize_edge_for_speed_p): Likewise.
9131 (optimize_insn_for_size_p): Likewise.
9132 (optimize_insn_for_speed_p): Likewise.
9133 (optimize_loop_for_size_p): Likewise.
9134 (optimize_loop_for_speed_p): Likewise.
9135 (optimize_loop_nest_for_speed_p): Likewise.
9136 (optimize_loop_nest_for_size_p): Likewise.
9137 (predictable_edge_p): Likewise.
9138 (handle_missing_profiles): Minor tweak.
9139
9140 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9141
9142 * config/rs6000/predicates.md (pcrel_external_address): Update
9143 comment.
9144
9145 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9146
9147 PR target/85693
9148 * config/i386/mmx.md (usadv8qi): New expander.
9149
9150 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9151
9152 PR c++/90590
9153 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9154 with reserved names that are in a system header.
9155
9156 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9157
9158 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9159 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9160 (*vec_extractv2si_0_zext): Ditto.
9161 (*vec_extractv2si_1): Add (rm,x) alternative.
9162 (*vec_extractv2si_1_zext): New insn pattern.
9163 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9164 insn constraint.
9165
9166 2019-08-01 Richard Biener <rguenther@suse.de>
9167
9168 * domwalk.c (bb_postorder): Remove static variable.
9169 (cmp_bb_postorder): Adjust.
9170 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9171 (dom_walker::walk): Adjust.
9172
9173 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9174
9175 * sort.cc (sort_r_ctx): New struct.
9176 (reorder23): Make templated on context type.
9177 (reorder45): Ditto.
9178 (cmp1): Ditto. Adjust signature.
9179 (netsort): Ditto.
9180 (mergesort): Ditto.
9181 [CHECKING_P] (cmp2to3): New static function. Use it...
9182 (gcc_qsort) [CHECKING_P]: ...here.
9183 (gcc_sort_r): New function.
9184 * system.h (sort_r_cmp_fn): New function typedef.
9185 (qsort_chk): Adjust signature.
9186 (gcc_sort_r): Declare.
9187 * vec.c (qsort_chk_error): Adjust.
9188 (qsort_chk): Adjust.
9189
9190 2019-08-01 Richard Biener <rguenther@suse.de>
9191
9192 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9193 (compute_antic): Localize it here.
9194
9195 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9196
9197 * common/config/riscv/riscv-common.c: Check -march string ends
9198 with null.
9199
9200 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9201
9202 * ipa-devirt.c (type_warning_cmp): Make static.
9203 (decl_warning_cmp): Ditto.
9204
9205 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9206
9207 PR target/91050
9208 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9210 use of deleted rs6000_dejagnu_cpu_index variable.
9211 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9212 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9213 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9214 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9215 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9216 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9217
9218 2019-07-31 Richard Biener <rguenther@suse.de>
9219
9220 PR tree-optimization/91280
9221 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9222 Decompose MEM_REF manually for offset handling.
9223
9224 2019-07-31 Richard Biener <rguenther@suse.de>
9225
9226 PR tree-optimization/91293
9227 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9228 of reduction stmts.
9229
9230 2019-07-31 Matt Thomas <matt@3am-software.com>
9231 Nick Hudson <nick@nthcliff.demon.co.uk>
9232 Matthew Green <mrg@eterna.com.au>
9233 Maya Rashish <coypu@sdf.org>
9234
9235 * config.gcc (hppa*-*-netbsd*): New target.
9236 * config/pa/pa-netbsd.h: New file.
9237 * config/pa/pa32-netbsd.h: New file.
9238
9239 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9240
9241 PR tree-optimization/91201
9242 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9243
9244 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9245
9246 * config/gcn/gcn-valu.md
9247 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9248 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9249 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9250 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9251 struct ilist. Add nops for delayeduse insns.
9252 * config/gcn/gcn.md (delayeduse): New attribute.
9253 (*movbi): Remove s_waitcnt from stores.
9254 (*mov<mode>_insn): Likewise.
9255 (*movti_insn): Likewise. Add delayeduse attribute.
9256 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9257 (atomic_store<mode>): Remove or adjust s_waitcnt.
9258
9259 2019-07-31 Richard Biener <rguenther@suse.de>
9260
9261 * vr-values.h (vr_values::swap_vr_value): New.
9262 (vr_values::free_value_range): likewise.
9263 * vr-values.c (vr_values::swap_vr_value): Implement.
9264 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9265 Do not return a range or take a var.
9266 (evrp_range_analyzer::stack): Change back to recording a non-const
9267 value_range *.
9268 * gimple-ssa-evrp-analyze.c
9269 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9270 value-range.
9271 (evrp_range_analyzer::pop_to_marker): Adjust.
9272 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9273 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9274 no longer needed value-range.
9275
9276 2019-07-31 Martin Liska <mliska@suse.cz>
9277
9278 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9279 have size and (or) alignment as 2nd and later arguments.
9280 Mark all of them as necessary.
9281
9282 2019-07-31 Richard Biener <rguenther@suse.de>
9283
9284 PR tree-optimization/91178
9285 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9286 Use tail-recursion.
9287
9288 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9289
9290 PR tree-optimization/91201
9291 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9292 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9293 TARGET_AVX512F.
9294 (reduc_plus_scal_<mode>): Improve formatting by introducing
9295 a temporary.
9296
9297 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9298
9299 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9300 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9301 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9302 (aarch64_init_tme_builtins): New.
9303 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9304 (aarch64_expand_builtin_tme): New.
9305 (aarch64_expand_builtin): Handle TME builtins.
9306 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9307 __ARM_FEATURE_TME when enabled.
9308 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9309 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9310 (TARGET_TME): New.
9311 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9312 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9313 UNSPECV_TCANCEL.
9314 (tstart, ttest, tcommit, tcancel): New instructions.
9315 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9316 (__tcancel, __ttest): New.
9317 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9318 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9319 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9320 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9321 * config/arm/types.md: Add new tme type attr.
9322 * doc/invoke.texi: Document "tme".
9323
9324 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9325
9326 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9327 warn_unused_result attribute.
9328 (cmse_check_address_range): Add warn_unused_result attribute.
9329
9330 2019-07-31 Richard Biener <rguenther@suse.de>
9331
9332 PR tree-optimization/91257
9333 * tree-vrp.c (union_ranges): Unify equality and less tests
9334 by using compare_values. Re-order cheap tests first.
9335
9336 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9337
9338 PR middle-end/91301
9339 * gimplify.c (gimplify_omp_for): If for class iterator on
9340 distribute parallel for there is no data sharing clause
9341 on inner_for_stmt, look for private clause on combined
9342 parallel too and if found, move it to inner_for_stmt.
9343
9344 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9345
9346 * lra-int.h (lra_operand_data): Remove early_clobber field.
9347 (lra_insn_reg): Likewise.
9348 * lra.c (debug_operand_data): Update accordingly.
9349 (setup_operand_alternative): Likewise.
9350 (new_insn_reg): Likewise. Remove early_clobber parameter.
9351 (collect_non_operand_hard_regs): Update call accordingly.
9352 Don't assign to lra_insn_reg::early_clobber.
9353 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9354 and update calls to new_insn_reg.
9355 (lra_update_insn_regno_info): Update calls accordingly.
9356 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9357 alternative number as a parameter and test whether the operand
9358 is earlyclobbered in that particular alternative.
9359 (process_alt_operands): Update call accordingly. Use per-alternative
9360 checks for earyclobber here too.
9361 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9362 against zero for IRA_UNKNOWN_ALT.
9363
9364 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9365
9366 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9367
9368 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9369
9370 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9371 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9372
9373 2019-07-30 Martin Liska <mliska@suse.cz>
9374
9375 PR ipa/89330
9376 * cgraph.c (cgraph_edge::make_direct): Use
9377 edge->indirect_unknown_callee as edge->resolve_speculation can
9378 deallocate edge which is this pointer.
9379
9380 2019-07-30 Richard Biener <rguenther@suse.de>
9381
9382 PR tree-optimization/91257
9383 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9384
9385 2019-07-30 Martin Liska <mliska@suse.cz>
9386
9387 * doc/invoke.texi: Document new behavior.
9388 * lto-wrapper.c (cpuset_popcount): New function
9389 is a copy of libgomp/config/linux/proc.c.
9390 (init_num_threads): Likewise.
9391 (run_gcc): Automatically detect core count for -flto.
9392 (jobserver_active_p): New function.
9393
9394 2019-07-30 Richard Biener <rguenther@suse.de>
9395
9396 PR tree-optimization/91257
9397 * bitmap.h (bitmap_ior_into_and_free): Declare.
9398 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9399 whether to add the unliked element to the freelist.
9400 (bitmap_list_insert_element_after): Add defaulted param for
9401 an already allocated element.
9402 (bitmap_ior_into_and_free): New function.
9403 * tree-ssa-structalias.c (condense_visit): Reduce the
9404 ponts-to and edge bitmaps of the SCC members in a
9405 logarithmic fashion rather than all to one.
9406
9407 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9408
9409 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9410 parameter. When nonnull, make sure that the addition or subtraction
9411 has the same condition.
9412 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9413 for CFN_COND_MUL too.
9414
9415 2019-07-30 Richard Biener <rguenther@suse.de>
9416
9417 PR tree-optimization/91291
9418 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9419 constant values.
9420
9421 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9422
9423 PR middle-end/91216
9424 * omp-low.c (global_nonaddressable_vars): New variable.
9425 (use_pointer_for_field): For global decls, if they are non-addressable,
9426 remember it in the global_nonaddressable_vars bitmap, if they are
9427 addressable and in the global_nonaddressable_vars bitmap, ignore their
9428 TREE_ADDRESSABLE bit.
9429 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9430 vars in global_nonaddressable_vars bitmap.
9431 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9432
9433 PR target/91150
9434 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9435 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9436 comparison to unsigned HOST_WIDE_INT before shifting it left.
9437
9438 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9439
9440 * config/i386/i386.md (movstrict<mode>): Use register_operand
9441 predicate for operand 0. Add expander condition. Assert that
9442 operand 0 is a SUBREG RTX.
9443 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9444 Update operand constraints and insn condition.
9445 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9446 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9447 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9448 Update operand 0 constraints.
9449 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9450
9451 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9452
9453 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9454 when -m{code,data}-region are used without -mlarge.
9455 * config/msp430/msp430.c (msp430_option_override): Error when a
9456 non-default code or data region is used without -mlarge.
9457 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9458 attributes when they are used without -mlarge.
9459
9460 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9461
9462 PR target/70320
9463 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9464
9465 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9466
9467 PR middle-end/91242
9468 * wide-int.h (generic_wide_int::sext_elt): New function.
9469 * inchash.h (hash::add_wide_int): Use it instead of elt.
9470
9471 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9472
9473 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9474 CODE_FOR_arm_##.
9475 * config/arm/arm.md (<crc_variant>): Rename to...
9476 (arm_<crc_variant>): ... This.
9477 (<cdp>): Rename to...
9478 (arm_<cdp>): ... This.
9479 (<ldc>): Rename to...
9480 (arm_<ldc>): ... This.
9481 (<stc>): Rename to...
9482 (arm_<stc>): ... This.
9483 (<mcr>): Rename to...
9484 (arm_<mcr>): ... This.
9485 (<mrc>): Rename to...
9486 (arm_<mrc>): ... This.
9487 (<mcrr>): Rename to...
9488 (arm_<mcrr>): ... This.
9489 (<mrrc>): Rename to...
9490 (arm_<mrrc>): ... This.
9491
9492 2019-07-29 Richard Biener <rguenther@suse.de>
9493
9494 PR tree-optimization/91257
9495 * tree-ssa-sccvn.h (struct vn_avail): New.
9496 (struct vn_ssa_aux): Add avail member.
9497 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9498 member, add m_avail_freelist one.
9499 (rpo_elim::~rpo_elim): Remove.
9500 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9501 data structure.
9502 (rpo_elim::eliminate_push_avail): Likewise.
9503 (do_unwind): Likewise.
9504 (do_rpo_vn): Likewise.
9505
9506 2019-07-29 Richard Biener <rguenther@suse.de>
9507
9508 PR tree-optimization/91257
9509 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9510 most cases, instead call compare_values which handles the
9511 symbolic ranges we handle specially.
9512 (compare_values_warnv): Do not call operand_less_p but open-code
9513 the effective fold calls. Avoid converting so much.
9514
9515 2019-07-29 Martin Liska <mliska@suse.cz>
9516
9517 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9518 remove LHS of operator new call. It's handled latter.
9519
9520 2019-07-29 Richard Biener <rguenther@suse.de>
9521
9522 PR tree-optimization/91267
9523 * vr-values.c (vr_values::update_value_range): Add early return
9524 for effectively VARYING lattice entry.
9525
9526 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9527
9528 PR debug/86638
9529 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9530 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9531 necessary if keep_all_vdefs_p is true.
9532 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9533 that keep_all_vdefs_p is false.
9534 (mark_all_reaching_defs_necessary): Likewise.
9535 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9536
9537 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9538
9539 * common.opt (Og): Change the initial value of flag_dse to 0.
9540 * opts.c (default_options_table): Move OPT_ftree_dse from
9541 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9542 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9543 entry before the OPT_ftree_sra entry.
9544 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9545 of flags disabled by Og.
9546
9547 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9548
9549 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9550 variables for -Og.
9551
9552 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9553
9554 * doc/sourcebuild.texi (check-function-bodies): Document.
9555
9556 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9557
9558 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9559 VEC_DUPLICATE of a fixed-length vector even if the result
9560 is variable-length. Likewise fold a duplicate of a
9561 variable-length vector if the variable-length vector is
9562 itself a duplicate of a fixed-length sequence.
9563 (test_vector_ops_duplicate): Test more cases.
9564
9565 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9566
9567 * vector-builder.h (vector_builder): Add a shape template parameter.
9568 (vector_builder::new_unary_operation): New function, generalizing
9569 the old tree_vector_builder function.
9570 (vector_builder::new_binary_operation): Likewise.
9571 (vector_builder::binary_encoded_nelts): Likewise.
9572 * int-vector-builder.h (int_vector_builder): Update template
9573 parameters to vector_builder.
9574 (int_vector_builder::shape_nelts): New function.
9575 * rtx-vector-builder.h (rtx_vector_builder): Update template
9576 parameters to vector_builder.
9577 (rtx_vector_builder::shape_nelts): New function.
9578 (rtx_vector_builder::nelts_of): Likewise.
9579 (rtx_vector_builder::npatterns_of): Likewise.
9580 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9581 * tree-vector-builder.h (tree_vector_builder): Update template
9582 parameters to vector_builder.
9583 (tree_vector_builder::shape_nelts): New function.
9584 (tree_vector_builder::nelts_of): Likewise.
9585 (tree_vector_builder::npatterns_of): Likewise.
9586 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9587 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9588 (tree_vector_builder::new_binary_operation): Delete.
9589 (tree_vector_builder::binary_encoded_nelts): Likewise.
9590 * simplify-rtx.c: Include rtx-vector-builder.h.
9591 (distributes_over_addition_p): New function.
9592 (simplify_const_unary_operation)
9593 (simplify_const_binary_operation): Generalize handling of vector
9594 constants to include variable-length vectors.
9595 (test_vector_ops_series): Add more tests.
9596
9597 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9598
9599 PR lto/91222
9600 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9601 than INDENTIFIER_POINTER.
9602
9603 2019-07-28 Martin Liska <mliska@suse.cz>
9604
9605 PR ipa/89330
9606 * cgraph.c (symbol_table::create_edge): Always allocate
9607 a cgraph_edge.
9608 (symbol_table::free_edge): Store summary_id to
9609 edge_released_summary_ids if != -1;
9610 * cgraph.h (NEXT_FREE_NODE): Remove.
9611 (SET_NEXT_FREE_NODE): Likewise.
9612 (NEXT_FREE_EDGE): Likewise.
9613 (symbol_table::release_symbol): Store summary_id to
9614 cgraph_released_summary_ids if != -1;
9615 (symbol_table::allocate_cgraph_symbol): Always allocate
9616 a cgraph_node.
9617
9618 2019-07-28 Alan Modra <amodra@gmail.com>
9619
9620 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9621 gen_sibcall.
9622
9623 2019-07-28 Alan Modra <amodra@gmail.com>
9624
9625 PR target/91135
9626 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9627 define.
9628 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9629 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9630 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9631
9632 2019-07-28 Alan Modra <amodra@gmail.com>
9633
9634 PR target/91050
9635 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9636 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9637 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9638 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9639 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9640 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9641 in asm_default spec.
9642 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9643 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9644
9645 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9646
9647 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9648
9649 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9650
9651 PR target/89517
9652 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9653 * config/aarch64/aarch64-option-extensions.def: Add new comments
9654 and restore easier to read options.
9655
9656 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9657
9658 * convert.c (convert_to_real_1): Move part of conversion code...
9659 * match.pd: ...To here.
9660
9661 2019-07-26 Martin Jambor <mjambor@suse.cz>
9662
9663 PR ipa/89330
9664 * ipa-inline-transform.c (check_speculations_1): New function.
9665 (push_all_edges_in_set_to_vec): Likewise.
9666 (check_speculations): Use check_speculations_1, new parameter
9667 new_edges.
9668 (inline_call): Pass new_edges to check_speculations.
9669 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9670 NULL.
9671 (speculation_useful_p): Early return true if edge is inlined, remove
9672 later checks for inline_failed.
9673
9674 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9675
9676 PR rtl-optimization/91223
9677 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9678 matching with INOUT operand.
9679
9680 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9681
9682 * stmt.c (expand_case): Try to narrow the index type if it's larger
9683 than a word. Tidy up.
9684
9685 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9686
9687 * cif-code.def (NEVER_CALL): New code.
9688 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9689 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9690
9691 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9692
9693 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9694 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9695
9696 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9697
9698 * ipa-devirt.c (add_type_duplicate): Fix return value.
9699
9700 2019-07-25 Richard Biener <rguenther@suse.de>
9701
9702 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9703 type parameter and use it instead of guessing expression
9704 type from the first operand.
9705 (extract_range_from_binary_expr): Pass expr_type down.
9706
9707 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9708
9709 * config/arm/arm.md (SATrev): Change to code attribute.
9710 (*satsi_<SAT:code>): Adjust for the above.
9711 (*satsi_<SAT:code>_shift): Likewise.
9712
9713 2019-07-25 Richard Biener <rguenther@suse.de>
9714
9715 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9716 Make value_range * temporary const.
9717 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9718 Likewise.
9719 (evrp_range_analyzer::record_ranges_from_): Likewise.
9720 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9721 deal with having recorded a const one.
9722 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9723 Return a const value_range *.
9724 (evrp_range_analyzer::pop_value_range): Likewise.
9725 (evrp_range_analyzer::stack): Record const value_range *s.
9726 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9727 Adjust.
9728 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9729 (format_integer): Likewise.
9730 (sprintf_dom_walker::handle_gimple_call): Likewise.
9731 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9732 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9733 (vrp_prop::get_value_range): Adjust.
9734 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9735 modifying the lattice in-place.
9736 (vrp_prop::visit_stmt): Likewise.
9737 * vr-values.c (vr_values::get_lattice_entry): New private method.
9738 (vr_values::get_value_range): Wrap it and return a const
9739 value_range *.
9740 (vr_values::set_def_to_varying): New.
9741 (vr_values::set_defs_to_varying): Use it.
9742 (vr_values::update_value_range): Likewise.
9743 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9744 (values::op_with_constant_singleton_va): Likewise.
9745 (vr_values::extract_range_for_var_from_co): Likewise.
9746 (vr_values::extract_range_from_ssa_name): Likewise.
9747 (vr_values::extract_range_from_cond_expr): Likewise.
9748 (vr_values::extract_range_basic): Likewise.
9749 (compare_ranges): Take const value_range *, adjust.
9750 (compare_range_with_value): Likewise.
9751 (vrp_valueize): Adjust.
9752 (vrp_valueize_1): Likewise.
9753 (vr_values::get_vr_for_comparison): Return a const value_range *.
9754 (vr_values::compare_name_with_value): Adjust.
9755 (vr_values::compare_names): Likewise.
9756 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9757 Likewise.
9758 (vr_values::vrp_evaluate_conditional): Likewise.
9759 (find_case_label_ranges): Take a const value_range *.
9760 (vr_values::vrp_visit_switch_stmt): Adjust.
9761 (vr_values::extract_range_from_phi_node): Likewise.
9762 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9763 (vr_values::simplify_abs_using_ranges): Likewise.
9764 (test_for_singularity): Take a const value_range *.
9765 (range_fits_type_p): Likewise.
9766 (vr_values::simplify_cond_using_ranges_1): Adjust.
9767 (vr_values::simplify_cond_using_ranges_2): Likewise.
9768 (vr_values::simplify_switch_using_ranges): Likewise.
9769 (vr_values::simplify_float_conversion_usi): Likewise.
9770 (vr_values::two_valued_val_range_p): Likewise.
9771 * vr-values.h (vr_values::get_value_range): Return a const
9772 value_range *.
9773 (vr_values::set_def_to_varying): New.
9774 (vr_values::get_lattice_entry): New private method.
9775 (vr_values::get_vr_for_comparison): Return a const value_range *.
9776
9777 2019-07-25 Martin Liska <mliska@suse.cz>
9778 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9779
9780 PR c++/23383
9781 * common.opt: Add -fallocation-dce
9782 * gimple.c (gimple_call_operator_delete_p): New.
9783 * gimple.h (gimple_call_operator_delete_p): Likewise.
9784 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9785 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9786 DECL_IS_OPERATOR_DELETE_P.
9787 (mark_all_reaching_defs_necessary_1): Likewise.
9788 (propagate_necessity): Likewise.
9789 (eliminate_unnecessary_stmts): Handle
9790 gimple_call_operator_delete_p.
9791 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9792 Add packing of OPERATOR_DELETE.
9793 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9794 Similarly here.
9795 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9796 (DECL_SET_IS_OPERATOR_DELETE): New.
9797 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9798
9799 2019-07-25 Martin Liska <mliska@suse.cz>
9800
9801 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9802 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9803 * coverage.c (coverage_begin_function): Likewise.
9804 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9805 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9806 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9807 (sem_item::hash_referenced_symbol_properties): Likewise.
9808 * lto-streamer-out.c (hash_tree): Likewise.
9809 * predict.c (expr_expected_value_1): Likewise.
9810 * tree-inline.c (expand_call_inline): Likewise.
9811 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9812 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9813 * tree-core.h (enum function_decl_type): New enum.
9814 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9815 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9816 (set_function_decl_type): Likewise.
9817 (DECL_IS_OPERATOR_NEW_P): New.
9818 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9819 (DECL_LAMBDA_FUNCTION): Likewise.
9820 (DECL_LAMBDA_FUNCTION_P): Likewise.
9821 (DECL_IS_OPERATOR_NEW): Remove.
9822 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9823
9824 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9825
9826 * ipa-profile.c (get_most_common_single_value): Use
9827 get_nth_most_common_value.
9828 * profile.c (sort_hist_value): New function.
9829 (compute_value_histograms): Call sort_hist_value to sort the
9830 values after loading from disk.
9831 * value-prof.c (get_most_common_single_value): Rename to ...
9832 get_nth_most_common_value. Add input params n, return
9833 the n_th value and count.
9834 (gimple_divmod_fixed_value_transform): Use
9835 get_nth_most_common_value.
9836 (gimple_ic_transform): Likewise.
9837 (gimple_stringops_transform): Likewise.
9838 * value-prof.h (get_most_common_single_value): Add input params
9839 n, default to 0.
9840
9841 2019-07-25 Richard Biener <rguenther@suse.de>
9842
9843 PR tree-optimization/91236
9844 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9845 size of CONSTRUCTOR write. Fix buffer size we pass to
9846 native_encode_expr.
9847
9848 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9849
9850 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9851 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9852 r273773.
9853
9854 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9855
9856 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9857 explicitly disabled with --disable-initfini-array.
9858
9859 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9860
9861 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9862 if-exists.
9863
9864 2019-07-24 Martin Sebor <msebor@redhat.com>
9865
9866 PR tree-optimization/91183
9867 PR tree-optimization/86688
9868 * builtins.c (compute_objsize): Handle MEM_REF.
9869 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9870 (get_min_string_length): Remove.
9871 (count_nonzero_bytes): New function.
9872 (handle_char_store): Rename...
9873 (handle_store): to this. Handle multibyte stores via integer types.
9874 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9875 function name.
9876
9877 2019-07-24 Martin Sebor <msebor@redhat.com>
9878
9879 PR driver/80545
9880 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9881 (diagnostic_report_diagnostic): Same.
9882 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9883 (diagnostic_context::lang_mask): New data member.
9884 * ipa-pure-const.c (suggest_attribute): Use
9885 lang_hooks.option_lang_mask ().
9886 * opts-common.c (option_enabled): Handle new argument.
9887 (get_option_state): Pass an additional argument.
9888 * opts.c (print_filtered_help): Print supported languages for
9889 unsupported options. Adjust printing of current state.
9890 * opts.h (option_enabled): Add argument.
9891 * toplev.c (print_switch_values): Use lang_mask.
9892 (general_init): Set global_dc->lang_mask.
9893
9894 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9895
9896 PR bootstrap/87030
9897 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9898
9899 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9900
9901 * cgraphunit.c (symbol_table::compile): Start and stop
9902 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9903 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9904
9905 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9906
9907 * gimplify.c (flag_instrument_functions_exclude_p): Include
9908 namespace/class information in the printable name.
9909 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9910 to tokens entered into the vector.
9911
9912 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9913
9914 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9915 (get_static_chain): Call it instead of build_simple_mem_ref.
9916 (get_frame_field): Likewise.
9917 (get_nonlocal_debug_decl): Likewise.
9918 (convert_nonlocal_reference_op): Likewise.
9919
9920 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9921
9922 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9923 declaration.
9924 (arc_compute_frame_size): Millicode is disabled when compiling
9925 ISR.
9926 (arc_return_address_register): Likewise.
9927 (arc_compute_function_type): Likewise.
9928 (arc_compute_frame_size): Likewise.
9929 (secondary_reload_info): Likewise.
9930 (arc_get_unalign): Likewise.
9931 (arc_can_use_return_insn): Declare.
9932 * config/arc/arc.c (AUX_LP_START): Define
9933 (AUX_LP_END): Likewise.
9934 (arc_frame_info): Update gmask member to 64-bit datum.
9935 (GMASK_LEN): Update.
9936 (arc_compute_function_type): Make it static, move it forward.
9937 (arc_must_save_register): Update, consider the extra regs.
9938 (arc_compute_millicode_save_restore_regs): Update to use the 64
9939 bit gmask.
9940 (arc_compute_frame_size): Likewise.
9941 (arc_enter_leave_p): Likewise.
9942 (arc_save_callee_saves): Likewise.
9943 (arc_restore_callee_saves): Likewise.
9944 (arc_save_callee_enter): Likewise.
9945 (arc_restore_callee_leave): Likewise.
9946 (arc_save_callee_milli): Likewise.
9947 (arc_restore_callee_milli): Likewise.
9948 (arc_expand_prologue): Add new interrupt handling.
9949 (arc_return_address_register): Make it static, move it forward.
9950 (arc_expand_epilogue): Add new interrupt handling.
9951 (arc_get_unalign): Delete.
9952 (arc_epilogue_uses): Make sure we do not remove the extra
9953 saved/restored registers when interrupt.
9954 (arc_can_use_return_insn): New function.
9955 (push_reg): Likewise.
9956 (pop_reg): Likewise.
9957 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9958 procedures.
9959 (arc_restore_callee_saves): Likewise, but restoring.
9960 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9961 (R33_REG): Likewise.
9962 (R34_REG): Likewise.
9963 (R35_REG): Likewise.
9964 (R36_REG): Likewise.
9965 (R37_REG): Likewise.
9966 (R38_REG): Likewise.
9967 (R39_REG): Likewise.
9968 (R45_REG): Likewise.
9969 (R46_REG): Likewise.
9970 (R47_REG): Likewise.
9971 (R48_REG): Likewise.
9972 (R49_REG): Likewise.
9973 (R50_REG): Likewise.
9974 (R51_REG): Likewise.
9975 (R52_REG): Likewise.
9976 (R53_REG): Likewise.
9977 (R54_REG): Likewise.
9978 (R55_REG): Likewise.
9979 (R56_REG): Likewise.
9980 (R58_REG): Likewise.
9981 (type): Add rtie attribute.
9982 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9983 (movsi_insn): Accept moves to lp_count.
9984 (rtie): Update pattern.
9985 (simple_return): Simplify it, don't use this pattern as a return
9986 from an interrupt.
9987 (arc600_rtie): New pattern.
9988 (p_return_i): Clean up.
9989 (return): Likewise.
9990 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9991 family CPUs.
9992 * config/arc/predicates.md (move_src_operand): Consider lp_count
9993 as a register.
9994
9995 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9996
9997 * config/s390/predicates.md (addv_const_operand): New predicate.
9998 * config/s390/s390-modes.def (CCO): New condition code mode.
9999 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10000 (s390_branch_condition_mask): Likewise.
10001 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10002 ("mulv<mode>4"): New expanders.
10003 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10004 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10005 pattern definitions.
10006
10007 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10008
10009 PR middle-end/91166
10010 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10011 (define_predicates): Add entry for uniform_vector_p.
10012 (vec_same_elem_p): New match pattern.
10013
10014 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10015
10016 PR bootstrap/87030
10017 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10018 * config/i386/darwin32-biarch.h .. to here.
10019 * config/i386/darwin64-biarch.h: Adjust comments.
10020 * config/rs6000/darwin32-biarch.h: Likewise.
10021 * config/rs6000/darwin64-biarch.h: Likewise.
10022 * config.gcc: Missed commit from r273746
10023 (*-*-darwin*): Don't include CPU t-darwin here.
10024 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10025 an error message if i686-darwin configuration is attempted for
10026 Darwin >= 18.
10027
10028 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10029
10030 PR bootstrap/87030
10031 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10032 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10033 an error message if i686-darwin configuration is attempted for
10034 Darwin >= 18.
10035 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10036 (powerpc-*-darwin*): Use biarch files where needed.
10037 (powerpc64-*-darwin*): Likewise.
10038 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10039 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10040 arch case.
10041 * config/i386/darwin32-biarch.h: New.
10042 * config/i386/darwin64.h: Rename.
10043 * config/i386/darwin64-biarch.h: To this.
10044 * config/i386/t-darwin: Rename.
10045 * config/i386/t-darwin32-biarch: To this.
10046 * config/i386/t-darwin64: Rename.
10047 * config/i386/t-darwin64-biarch: To this.
10048 * config/rs6000/darwin32-biarch.h: New.
10049 * config/rs6000/darwin64.h: Rename.
10050 * config/rs6000/darwin64-biarch.h: To this.
10051 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10052 arch case.
10053 * config/rs6000/t-darwin8: Rename.
10054 * config/rs6000/t-darwin32-biarch: To this.
10055 * config/rs6000/t-darwin64 Rename.
10056 * config/rs6000/t-darwin64-biarch: To this.
10057
10058 2019-07-23 Martin Sebor <msebor@redhat.com>
10059
10060 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10061
10062 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10063
10064 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10065 (rh): New alias for it.
10066
10067 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10068
10069 * gdbhooks.py: Pass replace=True to
10070 gdb.printing.register_pretty_printer.
10071
10072 2019-07-23 Richard Biener <rguenther@suse.de>
10073
10074 PR debug/91231
10075 * lto-streamer-in.c (input_function): Drop inline-entry markers
10076 that ended up with an unknown location block.
10077
10078 2019-07-23 Richard Biener <rguenther@suse.de>
10079
10080 PR tree-optimization/83518
10081 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10082 init from a constant even when partial defs are already recorded.
10083
10084 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10085
10086 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10087 * config/i386/znver1.md: Enable patterns for znver2 and add store
10088 variants which use extra AGU unit.
10089
10090 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10091
10092 * config/i386/i386-options.c (ix86_option_override_internal): Default
10093 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10094 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10095 for ZNVER2.
10096
10097 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10098
10099 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10100 (znver2_costs): Update 256 bit SSE costs and multiplication.
10101
10102 2019-07-23 Jan Beulich <jbeulich@suse.com>
10103
10104 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10105 Require only AVX512F.
10106 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10107 alternative expanding to vpternlog.
10108
10109 2019-07-23 Martin Liska <mliska@suse.cz>
10110
10111 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10112 to -flto in dwarf producer string.
10113
10114 2019-07-23 Richard Biener <rguenther@suse.de>
10115
10116 * tree-cfg.c (label_for_bb): Remove global var.
10117 (main_block_label): Take label_for_bb as argument.
10118 (cleanup_dead_labels_eh): Likewise, adjust.
10119 (cleanup_dead_labels): Adjust.
10120
10121 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10122
10123 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10124 Configurations): Add documentation for __builtin_mtfsf.
10125
10126 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10127
10128 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10129 * config/riscv/riscv.c (riscv_constant_alignment): Use
10130 riscv_align_data_type.
10131 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10132 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10133 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10134 * config/riscv/riscv.opt (malign-data): New.
10135 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10136
10137 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10138
10139 * cgraph.c (dump_graphviz): New function.
10140 * cgraph.h (dump_graphviz): New function.
10141 * symtab.c (dump_graphviz): New function.
10142
10143 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10144
10145 * config/aarch64/aarch64-simd.md
10146 (*aarch64_simd_sra<mode>): New.
10147 * config/aarch64/iterators.md
10148 (SHIFTRT): New iterator.
10149 (sra_op): New attribute.
10150
10151 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10152
10153 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10154 callee-saved regs R4->R10 in an interrupt function that calls another
10155 function.
10156
10157 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10158
10159 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10160 (_mm_blendv_epi8): New.
10161
10162 2019-07-22 Richard Biener <rguenther@suse.de>
10163
10164 PR tree-optimization/91221
10165 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10166 restrict partial-def handling of empty constructors and
10167 memset to refs with known offset.
10168
10169 2019-07-22 Jan Beulich <jbeulich@suse.com>
10170
10171 * config/i386/sse.md (ternlogsuffix): New.
10172 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10173 AVX512F is in use.
10174 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10175
10176 2019-07-22 Martin Liska <mliska@suse.cz>
10177
10178 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10179 comment.
10180 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10181
10182 2019-07-22 Martin Liska <mliska@suse.cz>
10183
10184 * lto-section-in.c (lto_get_section_data):
10185 Use new function get_compression.
10186 * lto-streamer-out.c (produce_lto_section): Use
10187 set_compression to encode compression algorithm.
10188 * lto-streamer.h (struct lto_section): Do not
10189 use bitfields in the format.
10190
10191 2019-07-22 Martin Liska <mliska@suse.cz>
10192
10193 PR driver/91172
10194 * opts-common.c (decode_cmdline_option): Decode
10195 argument of -Werror and check it for a wrong language.
10196 * opts-global.c (complain_wrong_lang): Remove such case.
10197
10198 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10199
10200 * config/arc/arc.c (prepare_move_operands): Always use an
10201 intermediate register when storing a TLS symbols.
10202
10203 2019-07-22 Stafford Horne <shorne@gmail.com>
10204
10205 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10206 force_reg.
10207
10208 2019-07-22 Stafford Horne <shorne@gmail.com>
10209
10210 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10211 and munordered-float validations.
10212 * config/or1k/constraints.md (d): New register constraint.
10213 * config/or1k/predicates.md (fp_comparison_operator): New.
10214 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10215 operands.
10216 (or1k_expand_compare): Normalize unordered comparisons.
10217 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10218 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10219 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10220 * config/or1k/or1k.md (type): Add fpu.
10221 (fpu): New instruction reservation.
10222 (F, f, fr, fi, FI, FOP, fop): New.
10223 (<fop><F:mode>3): New ALU instruction definition.
10224 (float<fi><F:mode>2): New conversion instruction definition.
10225 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10226 (fpcmpcc): New code iterator.
10227 (*sf_fp_insn): New instruction definition.
10228 (cstore<F:mode>4): New expand definition.
10229 (cbranch<F:mode>4): New expand definition.
10230 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10231 munordered-float): New options.
10232 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10233 munordered-float.
10234
10235 2019-07-22 Stafford Horne <shorne@gmail.com>
10236
10237 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10238 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10239 documenation to be more clear.
10240 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10241 more clear.
10242 * config/or1k/or1k.opt (mrori): New option.
10243 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10244 msfimm, mshftimm): Rewrite documentation to be more clear.
10245 * config/or1k/or1k.md (insn_support): Add ror and rori.
10246 (enabled): Add conditions for ror and rori.
10247 (rotrsi3): Replace condition for shftimm with ror and rori.
10248
10249 2019-07-22 Stafford Horne <shorne@gmail.com>
10250
10251 PR target/90363
10252 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10253 (extend<mode>si2): Update predicate.
10254 * config/or1k/predicates.md (volatile_mem_operand): New.
10255 (reg_or_mem_operand): New.
10256
10257 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10258
10259 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10260 * config/rs6000/rs6000-call.c: ... to here.
10261
10262 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10263
10264 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10265 memory.
10266
10267 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10268
10269 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10270
10271 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10272
10273 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10274
10275 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10276
10277 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10278 (any_memory_operand): New predicate.
10279 (reg_or_mem_operand): Use it.
10280
10281 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10282
10283 PR target/91204
10284 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10285
10286 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10287
10288 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10289 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10290
10291 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10292
10293 * tree.def (OMP_LOOP): New tree code.
10294 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10295 (enum omp_clause_bind_kind): New enum.
10296 (struct tree_omp_clause): Add subcode.bind_kind.
10297 * tree.h (OMP_LOOP_CHECK): Rename to ...
10298 (OMP_LOOPING_CHECK): ... this.
10299 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10300 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10301 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10302 (OMP_CLAUSE_BIND_KIND): Define.
10303 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10304 bind clause entries.
10305 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10306 * tree-pretty-print.c (dump_omp_clause): Likewise.
10307 (dump_generic_node): Handle OMP_LOOP.
10308 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10309 (in_omp_construct): New variable.
10310 (is_gimple_stmt): Handle OMP_LOOP.
10311 (gimplify_scan_omp_clauses): For lastprivate don't set
10312 check_non_private if code == OMP_LOOP. For reduction clause
10313 on OMP_LOOP combined with parallel or teams propagate as shared
10314 on the combined construct. Handle OMP_CLAUSE_BIND.
10315 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10316 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10317 for constructs from a loop construct to gimplify_scan_omp_clauses.
10318 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10319 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10320 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10321 to match the implicit ORT_TARGET construct around whole body.
10322 Temporarily clear in_omp_construct when processing body.
10323 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10324 etc. temporarily set in_omp_construct when processing body.
10325 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10326 * omp-low.c (struct omp_context): Add loop_p.
10327 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10328 in that the original var might be private.
10329 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10330 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10331 addition of loop construct.
10332 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10333
10334 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10335 lastprivate non-addressable iterator of a collapse(1) simd.
10336
10337 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10338
10339 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10340 as in rs6000.c.
10341
10342 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10343
10344 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10345 refer to default conditions. Warn for the 'y' spec which is ignored
10346 by current linkers.
10347
10348 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10349
10350 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10351 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10352 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10353 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10354 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10355 init_cumulative_args, rs6000_promote_function_mode,
10356 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10357 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10358 rs6000_function_arg_boundary, rs6000_parm_offset,
10359 rs6000_parm_start, rs6000_arg_size,
10360 rs6000_darwin64_record_arg_advance_flush,
10361 rs6000_darwin64_record_arg_advance_recurse,
10362 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10363 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10364 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10365 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10366 rs6000_finish_function_arg, rs6000_function_arg,
10367 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10368 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10369 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10370 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10371 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10372 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10373 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10374 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10375 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10376 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10377 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10378 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10379 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10380 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10381 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10382 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10383 get_element_number, altivec_expand_vec_set_builtin,
10384 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10385 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10386 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10387 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10388 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10389 rs6000_expand_builtin, rs6000_vector_type,
10390 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10391 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10392 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10393 to rs6000-call.c.
10394 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10395 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10396 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10397 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10398 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10399 init_cumulative_args, rs6000_promote_function_mode,
10400 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10401 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10402 rs6000_function_arg_boundary, rs6000_parm_offset,
10403 rs6000_parm_start, rs6000_arg_size,
10404 rs6000_darwin64_record_arg_advance_flush,
10405 rs6000_darwin64_record_arg_advance_recurse,
10406 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10407 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10408 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10409 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10410 rs6000_finish_function_arg, rs6000_function_arg,
10411 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10412 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10413 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10414 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10415 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10416 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10417 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10418 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10419 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10420 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10421 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10422 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10423 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10424 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10425 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10426 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10427 get_element_number, altivec_expand_vec_set_builtin,
10428 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10429 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10430 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10431 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10432 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10433 rs6000_expand_builtin, rs6000_vector_type,
10434 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10435 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10436 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10437 to here from rs6000.c.
10438 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10439 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10440 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10441 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10442 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10443 rs6000_return_in_memory, rs6000_return_in_msb,
10444 rs6000_pass_by_reference, setup_incoming_varargs,
10445 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10446 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10447 rs6000_function_arg_padding, rs6000_function_arg,
10448 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10449 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10450 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10451 rs6000_passes_long_double, rs6000_passes_vector,
10452 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10453 altivec_builtin_mask_for_load) Add declarations.
10454 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10455 * config/config.gcc: Add new source file rs6000-call.c to garbage
10456 collector and extra_objs.
10457
10458 2019-07-19 Jeff Law <law@redhat.com>
10459
10460 PR tree-optimization/86061
10461 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10462 strncpy. Drop some trivial dead code.
10463 (maybe_trim_memstar_call): Handle strncpy.
10464
10465 2019-07-19 Richard Biener <rguenther@suse.de>
10466
10467 PR tree-optimization/91211
10468 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10469 memset encoding size.
10470
10471 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10472
10473 PR target/91204
10474 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10475
10476 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10477
10478 PR ipa/91194
10479 * ipa-inline.c (recursive_inlining): Fix limits check.
10480
10481 2019-07-19 Richard Biener <rguenther@suse.de>
10482
10483 PR tree-optimization/91200
10484 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10485 no PHI nodes in middle-bb.
10486
10487 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10488
10489 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10490 to +sve-bitperm.
10491 * config/aarch64/aarch64-option-extensions.def: Likewise.
10492
10493 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10494
10495 PR middle-end/91190
10496 * function.c (insert_temp_slot_address): Store into the hash table
10497 a copy of address to avoid RTL sharing issues.
10498
10499 2019-07-19 Richard Biener <rguenther@suse.de>
10500
10501 PR tree-optimization/91207
10502 Revert
10503 2019-07-17 Richard Biener <rguenther@suse.de>
10504
10505 PR tree-optimization/91178
10506 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10507 loads with a gap larger than the vector size always use
10508 VMAT_STRIDED_SLP.
10509 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10510 avoid loading vectors that are only contained in the gap
10511 and thus are not needed.
10512
10513 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10514
10515 * config/i386/i386.md (*addqi_2_slp): Remove.
10516 (*<code>qi_2_slp): Ditto.
10517
10518 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10519
10520 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10521 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10522 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10523 Rename function from rs6000_prefixed_address.
10524 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10525 TARGET_HAS_TOC.
10526 (TARGET_TOC): Likewise.
10527 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10528 rs6000.h.
10529 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10530 TARGET_HAS_TOC.
10531 (TARGET_TOC): Likewise.
10532 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10533 rs6000.h.
10534 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10535 TARGET_HAS_TOC.
10536 (TARGET_TOC): Likewise.
10537 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10538 check to require -mcmodel=medium for pc-relative addressing.
10539 (create_TOC_reference): Add assertion for TARGET_TOC.
10540 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10541 TARGET_NO_TOC.
10542 (rs6000_emit_move): Likewise.
10543 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10544 to 'TOC_alias_set'.
10545 (get_TOC_alias_set): Likewise.
10546 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10547 TARGET_NO_TOC.
10548 (rs6000_can_eliminate): Likewise.
10549 (rs6000_prefixed_address_mode_p): Rename function from
10550 rs6000_prefixed_address.
10551 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10552 TARGET_HAS_TOC and not pc-relative.
10553 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10554 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10555 TARGET_HAS_TOC.
10556 (TARGET_TOC): Likewise.
10557 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10558 rs6000.h.
10559
10560 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10561
10562 PR target/91188
10563 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10564 for operand 0. Do not use (match_dup) to match operand 1 with
10565 operand 0. Add check in insn constraint that either input operand
10566 matches operand 0. Use SWI12 mode iterator to also handle
10567 HImode operands.
10568 (*and<mode>_1_slp): Ditto.
10569 (*<code>qi_1_slp): Ditto.
10570 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10571 Do not use (match_dup) to match operand 1 with operand 0. Add
10572 check in insn constraint that operand 1 matches operand 0.
10573 Use SWI12 mode iterator to also handle HImode operands.
10574 (*ashl<mode>3_1_slp): Ditto.
10575 (*<shift_insn><mode>3_1_slp): Ditto.
10576 (*<rotate_insn><mode>3_1_slp): Ditto.
10577
10578 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10579
10580 * config/arm/arm-builtins.c
10581 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10582 (arm_expand_unop_builtin): Likewise.
10583 * config/arm/crypto.md
10584 (crypto_sha1h): Convert from define_insn to define_expand.
10585 (crypto_<crypto_pattern>): Likewise.
10586 (crypto_sha1h_lb): New define_insn.
10587 (crypto_<crypto_pattern>_lb): Likewise.
10588
10589 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10590
10591 PR target/90317
10592 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10593 (vsha1cq_u32): Likewise.
10594 (vsha1pq_u32): Likewise.
10595 (vsha1mq_u32): Likewise.
10596 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10597 vec select.
10598 (crypto_sha1c): Correct vec select.
10599 (crypto_sha1m): Likewise.
10600 (crypto_sha1p): Likewise.
10601
10602 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10603
10604 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10605 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10606 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10607 (subdi_zesidi_zesidi): Likewise.
10608 (negdi2_compare, negdi2_insn): Likewise.
10609 (negdi_extensidi): Likewise.
10610 (negdi_zero_extendsidi): Likewise.
10611 (arm_cmpdi_insn): Likewise.
10612 (subsi3_carryin): Use arm_borrow_operation.
10613 (subsi3_carryin_const): Likewise.
10614 (subsi3_carryin_const0): Likewise.
10615 (subsi3_carryin_compare): Likewise.
10616 (subsi3_carryin_compare_const): Likewise.
10617 (subsi3_carryin_compare_const0): Likewise.
10618 (subsi3_carryin_shift): Likewise.
10619 (rsbsi3_carryin_shift): Likewise.
10620 (negsi2_carryin_compare): Likewise.
10621
10622 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10623
10624 PR tree-optimization/91137
10625 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10626 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10627 Init, use and fini the above new field.
10628 (determine_base_object_1): New function.
10629 (determine_base_object): Reimplement using walk_tree.
10630
10631 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10632
10633 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10634 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10635 CLEANUP_FORCE_FAST_DCE is set.
10636 * ifcvt.c (rest_of_handle_if_conversion): Pass
10637 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10638 if-conversion succeeded.
10639
10640 2019-07-18 Richard Biener <rguenther@suse.de>
10641
10642 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10643 branches to make code less indented.
10644
10645 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10646
10647 PR middle-end/81824
10648 * attribs.c (decls_mismatched_attributes): Simplify the logic
10649 that avoids duplicates and false positives.
10650
10651 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10652
10653 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10654 data into data section when generating PIC code.
10655 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10656 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10657 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10658 return 2 for SOM and 0 for other targets.
10659
10660 2019-07-17 Jeff Law <law@redhat.com>
10661
10662 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10663 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10664 avoid unexpected switch statement fallthru.
10665
10666 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10667
10668 * config/i386/i386.md (*add<dwi>3_doubleword):
10669 Remove redundant constraints.
10670 (*add<mode>_1): Ditto.
10671 (*addhi_1): Ditto.
10672 (*addqi_1): Ditto.
10673 (*addqi_1_slp): Ditto.
10674 (*add<mode>_2): Ditto.
10675 (*addv<mode>4): Ditto.
10676 (*sub<dwi>3_doubleword): Ditto.
10677 (*sub<mode>_1): Ditto.
10678 (*subqi_1_slp): Ditto.
10679 (*sub<mode>_2): Ditto.
10680 (*subv<mode>4): Ditto.
10681 (*sub<mode>_3): Ditto.
10682 (@add<mode>3_carry): Ditto.
10683 (@sub<mode>3_carry): Ditto.
10684 (*add<mode>3_cc_overflow_1): Ditto.
10685 (*add<mode>3_zext_cc_overflow_2): Ditto.
10686 (*anddi_1): Ditto.
10687 (*and<mode>_1): Ditto.
10688 (*andqi_1): Ditto.
10689 (*andqi_1_slp): Ditto.
10690 (*anddi_2): Ditto.
10691 (*andqi_2_maybe_si): Ditto.
10692 (*and<mode>_2): Ditto.
10693 (*andqi_2_slp): Ditto.
10694 (*<code><mode>_1): Ditto.
10695 (*<code>qi_1): Ditto.
10696 (*<code>qi_1_slp): Ditto.
10697 (*<code><mode>_2): Ditto.
10698 (*<code>qi_2_slp): Ditto.
10699
10700 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10701
10702 * alias.c (record_component_aliases): Do not simplify pointed-to
10703 types of ODR types.
10704
10705 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10706
10707 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10708 partial reg stall on alternative 2.
10709
10710 2019-07-17 Richard Biener <rguenther@suse.de>
10711
10712 PR tree-optimization/91178
10713 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10714 lower SSA names to avoid quadratic behavior in the common case.
10715 * tree-data-ref.c (split_constant_offset): Add limit argument
10716 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10717 (split_constant_offset_1): Add limit argument and use it to
10718 limit SSA def walking. Optimize the common plus/minus case.
10719
10720 2019-07-17 Richard Biener <rguenther@suse.de>
10721
10722 PR tree-optimization/91178
10723 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10724 loads with a gap larger than the vector size always use
10725 VMAT_STRIDED_SLP.
10726 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10727 avoid loading vectors that are only contained in the gap
10728 and thus are not needed.
10729
10730 2019-07-17 Richard Biener <rguenther@suse.de>
10731
10732 PR tree-optimization/91180
10733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10734 computation for memset partial defs.
10735
10736 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10737
10738 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10739 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10740 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10741 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10742 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10743 * omp-grid.c (grid_process_grid_body,
10744 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10745 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10746 == GF_OMP_FOR_KIND_SIMD.
10747 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10748 check_omp_nesting_restrictions, scan_omp_1_stmt,
10749 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10750 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10751 omp_find_scan): Likewise.
10752 * omp-expand.c (expand_omp_for): Likewise.
10753 * omp-general.c (omp_extract_for_data): Likewise.
10754
10755 PR tree-optimization/91157
10756 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10757 a vector boolean with scalar mode.
10758 (expand_vector_condition): Handle first operand being a vector boolean
10759 with scalar mode.
10760 (expand_vector_operations_1): For comparisons, don't bail out early
10761 if the return type is vector boolean with scalar mode, but comparison
10762 operand type is not.
10763
10764 2019-07-17 Richard Biener <rguenther@suse.de>
10765
10766 PR tree-optimization/91181
10767 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10768 IFN_LOADs as calls.
10769
10770 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10771
10772 * config/i386/i386.md (*testdi_1): Match CCZmode for
10773 constants that might have the SImode sign bit set.
10774 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10775 Use correct constraints for pentium pairing.
10776 (*test<mode>_1): Ditto.
10777
10778 2019-07-16 Jeff Law <law@redhat.com>
10779
10780 PR rtl-optimization/91173
10781 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10782 SSA_NAME with a constant value, fold its value into the offset
10783 and clear the base before calling gen_addr_rtx.
10784
10785 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10786
10787 PR rtl-optimization/91164
10788 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10789 invalidate dominance info.
10790
10791 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10792
10793 * read-md.h (md_reader::record_potential_iterator_use): Add a
10794 file_location parameter.
10795 * read-rtl.c (attribute_use::loc): New field.
10796 (map_attr_string): Take a file_location parameter. Report cases
10797 in which attributes map to multiple distinct values.
10798 (apply_attribute_uses): Update call accordingly.
10799 (md_reader::handle_overloaded_name): Likewise.
10800 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10801 nonnull strings.
10802 (record_attribute_use): Take a file_location parameter.
10803 Initialize attribute_use::loc.
10804 (md_reader::record_potential_iterator_use): Take a file_location
10805 parameter. Update call to record_attribute_use.
10806 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10807 (rtx_reader::read_rtx_code): Likewise.
10808 (rtx_reader::read_rtx_operand): Likewise. Record a location
10809 for implicitly-expanded empty strings.
10810
10811 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10812
10813 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10814 Use file_location instead of separate fields.
10815 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10816 separate filename and line number.
10817 * read-md.c (ptr_loc): As above.
10818 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10819 (md_reader::fprint_md_ptr_loc): Likewise.
10820 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10821 instead of a separate filename and line number.
10822 (md_reader::read_string): Update call accordingly.
10823
10824 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10825
10826 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10827 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10828 leaving the choice between SFDF and P implicit.
10829 (*mov<mode>_update2): Likewise.
10830 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10831 rather than leaving the choice betweem IBM128 and GPR implicit.
10832 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10833 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10834 QHSI implicit.
10835 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10836 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10837 * config/rs6000/vsx.md
10838 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10839 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10840 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10841 and VSX_EXTRACT_I implicit.
10842
10843 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10844
10845 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10846 Explicitly use <MOVEP1:MODE> for the mode attribute.
10847
10848 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10849
10850 PR bootstrap/91176
10851 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10852
10853 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10854
10855 PR target/91050
10856 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10857 .machine directive.
10858
10859 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10860
10861 * config/i386/i386.md (@test<mode>_ccno_1):
10862 Rename from test<mode>_ccno_1.
10863 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10864 (*testqi_1_maybe_si): Remove modrm attribute.
10865 (*test<mode>_1): Ditto.
10866 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10867 gen_test_ccno_1 and gen_extend_insn.
10868
10869 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10870
10871 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10872 to 0.
10873
10874 2019-07-15 Richard Biener <rguenther@suse.de>
10875
10876 PR middle-end/91162
10877 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10878 node make sure to replace all uses with something valid.
10879
10880 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10881
10882 PR tree-optimization/88497
10883 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10884 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10885 function undistribute_bitref_for_vector.
10886 (undistribute_bitref_for_vector): New function.
10887 (cleanup_vinfo_map): Likewise.
10888 (sort_by_mach_mode): Likewise.
10889
10890 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10891
10892 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10893 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10894 and testdi_ccno_1 using SWI48 mode attribute.
10895 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10896 x86_64_szext_general_operand.
10897 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10898 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10899 instead of genera_operand mode attribute.
10900
10901 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10902
10903 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10904 fopen and fclose to their respective types.
10905 (DotFn.invoke): Ditto.
10906
10907 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10908
10909 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10910 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10911 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10912 (array_index_predicate): Remove.
10913 (analyze_function_body): Account cost for variable ofsetted array
10914 indexing.
10915 (estimate_node_size_and_time): Do not compute array index hint.
10916 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10917 (inline_read_section): Do not read array index hint.
10918 (ipa_fn_summary_write): Do not write array index hint.
10919 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10920 * ipa-cp.c (hint_time_bonus): Remove.
10921 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10922 (ipa_fnsummary): Remove array_index.
10923 * ipa-inline.c (want_inline_small_function_p): Do not use
10924 array_index.
10925 (edge_badness): Likewise.
10926 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10927
10928 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10929
10930 PR target/91148
10931 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10932 superfluous "builtin function" phrasing.
10933
10934 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10935
10936 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10937 Break out from ...
10938 (aliasing_component_refs_walk): Break out from ...
10939 (aliasing_component_refs_p): ... here.
10940
10941 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10942
10943 PR target/91148
10944 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10945 "builtin function" phrasing.
10946
10947 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10948
10949 PR target/90723
10950 * recog.h (temporary_volatile_ok): New class.
10951 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10952 volatile_ok temporarily to true using temporary_volatile_ok.
10953 * expr.c (emit_block_move_via_cpymem): Likewise.
10954 * optabs.c (maybe_legitimize_operand): Likewise.
10955
10956 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10957
10958 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10959 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10960 uses inside of order(concurrent) constructs.
10961 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10962 OMP_CLAUSE_ORDER is seen.
10963 * omp-low.c (struct omp_context): Add order_concurrent member.
10964 (scan_sharing_clauses): Set ctx->order_concurrent if
10965 OMP_CLAUSE_ORDER is seen.
10966 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10967 of simd order(concurrent). Diagnose constructs not allowed inside of
10968 for order(concurrent).
10969 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10970 complaining about static double setjmp (double); or class static
10971 methods or non-global namespace setjmps.
10972 (omp_runtime_api_call): New function.
10973 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10974 order(concurrent) loops.
10975
10976 2019-07-12 Martin Sebor <msebor@redhat.com>
10977
10978 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10979 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10980 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10981 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10982
10983 2019-07-12 Jan Hubicka <jh@suse.cz>
10984
10985 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10986 (indirect_refs_may_alias_p): ... here.
10987 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10988 mem refs in the access paths.
10989
10990 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10991
10992 PR tree-optimization/89430
10993 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10994 store elimination for local variable without address escape.
10995
10996 2019-07-12 Jeff Law <law@redhat.com>
10997
10998 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10999 for the ".far" section.
11000
11001 2019-07-12 Richard Biener <rguenther@suse.de>
11002
11003 PR tree-optimization/91145
11004 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11005 chain check.
11006
11007 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11008
11009 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11010 rather than this_state as the lowering context for the ELSE
11011 seq in a GIMPLE_EH_ELSE.
11012
11013 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11014
11015 * vector-builder.h (vector_builder::elt): Allow already-supplied
11016 elements to be read back before building is complete.
11017
11018 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11019
11020 PR rtl-optimization/91136
11021 * df-core.c (ACCESSING REFS): Fix typos in comment.
11022 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11023 the beginning of the block to the initial set of live registers.
11024
11025 2019-07-12 Richard Biener <rguenther@suse.de>
11026
11027 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11028 * fold-const.c (get_array_ctor_element_at_index): Add
11029 ctor_idx output parameter informing the caller where in
11030 the constructor the element was (not) found. Add early exit
11031 for when the ctor is sorted.
11032 * gimple-fold.c (fold_array_ctor_reference): Support constant
11033 folding across multiple array elements.
11034
11035 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11036
11037 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11038 doesn't have location, set the current location to the function's end.
11039
11040 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11041
11042 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11043 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11044 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11045 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11046 * config/aarch64/aarch64-simd.md
11047 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11048 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11049 * config/aarch64/aarch64-sve.md
11050 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11051 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11052
11053 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11054
11055 * doc/md.texi: Document that @ patterns can have different
11056 numbers of operands.
11057 * genemit.c (handle_overloaded_gen): Handle this case.
11058 * genopinit.c (handle_overloaded_gen): Likewise.
11059 * gensupport.c (replace_operands_with_dups): Iterate over
11060 the new rtx's format rather than the old one's.
11061
11062 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11063
11064 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11065 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11066 order clause entries.
11067 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11068 * tree-pretty-print.c (dump_omp_clause): Likewise.
11069 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11070 Likewise.
11071 * omp-low.c (scan_sharing_clauses): Likewise.
11072 * tree-nested.c (convert_nonlocal_omp_clauses,
11073 convert_local_omp_clauses): Likewise.
11074
11075 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11076
11077 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11078 fallthrough target of current basic block isn't the placed
11079 right next.
11080
11081 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11082
11083 PR target/90980
11084 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11085 (_mm512_storeu_epi64): Likewise.
11086 (_mm512_loadu_epi32): Likewise.
11087 (_mm512_storeu_epi32): Likewise.
11088 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11089 (_mm_storeu_epi64): Likewise.
11090 (_mm256_storeu_epi32): Likewise.
11091 (_mm_storeu_epi32): Likewise.
11092
11093 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11094
11095 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11096
11097 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11098
11099 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11100 Handle Modula-2.
11101
11102 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11103
11104 PR target/91124
11105 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11106 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11107 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11108 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11109 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11110 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11111 define_insns.
11112 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11113 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11114 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11115 define_insns.
11116 (sse2_cvttpd2dq<mask_name>): Change into ...
11117 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11118 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11119 (*sse2_cvtpd2dq<mask_name>): Change into ...
11120 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11121 Add "C" constraint to const0_operand.
11122 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11123 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11124 changes.
11125
11126 PR target/91124
11127 * config/i386/i386-builtin-types.def
11128 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11129 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11130 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11131 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11132 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11133 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11134 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11135 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11136 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11137 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11138 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11139 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11140 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11141 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11142 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11143 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11144 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11145 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11146 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11147 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11148 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11149 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11150 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11151 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11152 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11153 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11154 __builtin_ia32_vpdpbusd_v4si_maskz,
11155 __builtin_ia32_vpdpbusds_v16si_mask,
11156 __builtin_ia32_vpdpbusds_v16si_maskz,
11157 __builtin_ia32_vpdpbusds_v8si_mask,
11158 __builtin_ia32_vpdpbusds_v8si_maskz,
11159 __builtin_ia32_vpdpbusds_v4si_mask,
11160 __builtin_ia32_vpdpbusds_v4si_maskz,
11161 __builtin_ia32_vpdpwssd_v16si_mask,
11162 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11163 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11164 __builtin_ia32_vpdpwssd_v4si_maskz,
11165 __builtin_ia32_vpdpwssds_v16si_mask,
11166 __builtin_ia32_vpdpwssds_v16si_maskz,
11167 __builtin_ia32_vpdpwssds_v8si_mask,
11168 __builtin_ia32_vpdpwssds_v8si_maskz,
11169 __builtin_ia32_vpdpwssds_v4si_mask,
11170 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11171 suffixed types rather than *_INT.
11172 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11173 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11174 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11175 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11176 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11177 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11178
11179 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11180
11181 * tree-vrp.c (intersect_ranges): If we know the intersection is
11182 empty, there is no need to conservatively add anything else to
11183 the set.
11184
11185 2019-07-11 Richard Biener <rguenther@suse.de>
11186
11187 PR middle-end/91131
11188 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11189 when the object is volatile and we have not cleared it even though
11190 there are no nonzero elements.
11191
11192 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11193
11194 * config/rs6000/predicates.md (cint34_operand): Update
11195 SIGNED_34BIT_OFFSET_P call.
11196 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11197 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11198 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11199 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11200 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11201 argument.
11202 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11203 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11204 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11205 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11206 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11207
11208 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11209
11210 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11211 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11212 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11213 (DEF_MIN_OSX_VERSION): New.
11214
11215 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11216
11217 * fold-const.c (fold_relational_const): Fix folding of
11218 vector-to-scalar NE_EXPRs.
11219 (test_vector_folding): Add more tests.
11220
11221 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11222
11223 PR target/91060
11224 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11225 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11226 (vec_setv2di_internal): Reexpress as...
11227 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11228 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11229 rather than gen_neon_vset_lane<mode>.
11230
11231 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11232
11233 PR target/91102
11234 * lra-constraints.c (process_alt_operands): Don't match user
11235 defined regs only if they are early clobbers.
11236
11237 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11238
11239 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11240
11241 2019-07-10 Richard Biener <rguenther@suse.de>
11242
11243 PR tree-optimization/91126
11244 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11245 native encoding offset for BYTES_BIG_ENDIAN.
11246 (vn_reference_lookup_3): Likewise.
11247
11248 2019-07-10 Richard Biener <rguenther@suse.de>
11249
11250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11251 LHS whenever possible.
11252
11253 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11254
11255 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11256 from ...; work also on duplicated types.
11257 (nonoverlapping_component_refs_since_match): ... here
11258 (ncr_type_uid): Break out from ...
11259 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11260 available.
11261 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11262 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11263
11264 2019-07-09 Martin Sebor <msebor@redhat.com>
11265
11266 PR tree-optimization/90989
11267 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11268 optimization to just single character stores.
11269
11270 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11271
11272 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11273 Swap operands only once.
11274
11275 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11276
11277 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11278 for both call instructions.
11279
11280 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11281
11282 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11283 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11284
11285 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11286
11287 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11288 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11289 function from rs6000-logue.c back to rs6000.c.
11290 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11291
11292 2019-07-09 Martin Sebor <msebor@redhat.com>
11293
11294 PR c++/61339
11295 * auto-profile.c: Change class-key of PODs to struct and others
11296 to class.
11297 * basic-block.h: Same.
11298 * bitmap.c (bitmap_alloc): Same.
11299 * bitmap.h: Same.
11300 * builtins.c (expand_builtin_prefetch): Same.
11301 (expand_builtin_interclass_mathfn): Same.
11302 (expand_builtin_strlen): Same.
11303 (expand_builtin_mempcpy_args): Same.
11304 (expand_cmpstr): Same.
11305 (expand_builtin___clear_cache): Same.
11306 (expand_ifn_atomic_bit_test_and): Same.
11307 (expand_builtin_thread_pointer): Same.
11308 (expand_builtin_set_thread_pointer): Same.
11309 * caller-save.c (setup_save_areas): Same.
11310 (replace_reg_with_saved_mem): Same.
11311 (insert_restore): Same.
11312 (insert_save): Same.
11313 (add_used_regs): Same.
11314 * cfg.c (get_bb_copy): Same.
11315 (set_loop_copy): Same.
11316 * cfg.h: Same.
11317 * cfganal.h: Same.
11318 * cfgexpand.c (alloc_stack_frame_space): Same.
11319 (add_stack_var): Same.
11320 (add_stack_var_conflict): Same.
11321 (add_scope_conflicts_1): Same.
11322 (update_alias_info_with_stack_vars): Same.
11323 (expand_used_vars): Same.
11324 * cfghooks.c (redirect_edge_and_branch_force): Same.
11325 (delete_basic_block): Same.
11326 (split_edge): Same.
11327 (make_forwarder_block): Same.
11328 (force_nonfallthru): Same.
11329 (duplicate_block): Same.
11330 (lv_flush_pending_stmts): Same.
11331 * cfghooks.h: Same.
11332 * cfgloop.c (flow_loops_cfg_dump): Same.
11333 (flow_loop_nested_p): Same.
11334 (superloop_at_depth): Same.
11335 (get_loop_latch_edges): Same.
11336 (flow_loop_dump): Same.
11337 (flow_loops_dump): Same.
11338 (flow_loops_free): Same.
11339 (flow_loop_nodes_find): Same.
11340 (establish_preds): Same.
11341 (flow_loop_tree_node_add): Same.
11342 (flow_loop_tree_node_remove): Same.
11343 (flow_loops_find): Same.
11344 (find_subloop_latch_edge_by_profile): Same.
11345 (find_subloop_latch_edge_by_ivs): Same.
11346 (mfb_redirect_edges_in_set): Same.
11347 (form_subloop): Same.
11348 (merge_latch_edges): Same.
11349 (disambiguate_multiple_latches): Same.
11350 (disambiguate_loops_with_multiple_latches): Same.
11351 (flow_bb_inside_loop_p): Same.
11352 (glb_enum_p): Same.
11353 (get_loop_body_with_size): Same.
11354 (get_loop_body): Same.
11355 (fill_sons_in_loop): Same.
11356 (get_loop_body_in_dom_order): Same.
11357 (get_loop_body_in_custom_order): Same.
11358 (release_recorded_exits): Same.
11359 (get_loop_exit_edges): Same.
11360 (num_loop_branches): Same.
11361 (remove_bb_from_loops): Same.
11362 (find_common_loop): Same.
11363 (delete_loop): Same.
11364 (cancel_loop): Same.
11365 (verify_loop_structure): Same.
11366 (loop_preheader_edge): Same.
11367 (loop_exit_edge_p): Same.
11368 (single_exit): Same.
11369 (loop_exits_to_bb_p): Same.
11370 (loop_exits_from_bb_p): Same.
11371 (get_loop_location): Same.
11372 (record_niter_bound): Same.
11373 (get_estimated_loop_iterations_int): Same.
11374 (max_stmt_executions_int): Same.
11375 (likely_max_stmt_executions_int): Same.
11376 (get_estimated_loop_iterations): Same.
11377 (get_max_loop_iterations): Same.
11378 (get_max_loop_iterations_int): Same.
11379 (get_likely_max_loop_iterations): Same.
11380 * cfgloop.h (simple_loop_desc): Same.
11381 (get_loop): Same.
11382 (loop_depth): Same.
11383 (loop_outer): Same.
11384 (loop_iterator::next): Same.
11385 (loop_outermost): Same.
11386 * cfgloopanal.c (mark_irreducible_loops): Same.
11387 (num_loop_insns): Same.
11388 (average_num_loop_insns): Same.
11389 (expected_loop_iterations_unbounded): Same.
11390 (expected_loop_iterations): Same.
11391 (mark_loop_exit_edges): Same.
11392 (single_likely_exit): Same.
11393 * cfgloopmanip.c (fix_bb_placement): Same.
11394 (fix_bb_placements): Same.
11395 (remove_path): Same.
11396 (place_new_loop): Same.
11397 (add_loop): Same.
11398 (scale_loop_frequencies): Same.
11399 (scale_loop_profile): Same.
11400 (create_empty_if_region_on_edge): Same.
11401 (create_empty_loop_on_edge): Same.
11402 (loopify): Same.
11403 (unloop): Same.
11404 (fix_loop_placements): Same.
11405 (copy_loop_info): Same.
11406 (duplicate_loop): Same.
11407 (duplicate_subloops): Same.
11408 (loop_redirect_edge): Same.
11409 (can_duplicate_loop_p): Same.
11410 (duplicate_loop_to_header_edge): Same.
11411 (mfb_keep_just): Same.
11412 (has_preds_from_loop): Same.
11413 (create_preheader): Same.
11414 (create_preheaders): Same.
11415 (lv_adjust_loop_entry_edge): Same.
11416 (loop_version): Same.
11417 * cfgloopmanip.h: Same.
11418 * cgraph.h: Same.
11419 * cgraphbuild.c: Same.
11420 * combine.c (make_extraction): Same.
11421 * config/i386/i386-features.c: Same.
11422 * config/i386/i386-features.h: Same.
11423 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11424 (ix86_emit_outlined_ms2sysv_restore): Same.
11425 (ix86_noce_conversion_profitable_p): Same.
11426 (ix86_init_cost): Same.
11427 (ix86_simd_clone_usable): Same.
11428 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11429 Wstruct-not-pod.
11430 * coretypes.h: Same.
11431 * data-streamer-in.c (string_for_index): Change class-key of PODs
11432 to struct and others to class.
11433 (streamer_read_indexed_string): Same.
11434 (streamer_read_string): Same.
11435 (bp_unpack_indexed_string): Same.
11436 (bp_unpack_string): Same.
11437 (streamer_read_uhwi): Same.
11438 (streamer_read_hwi): Same.
11439 (streamer_read_gcov_count): Same.
11440 (streamer_read_wide_int): Same.
11441 * data-streamer.h (streamer_write_bitpack): Same.
11442 (bp_unpack_value): Same.
11443 (streamer_write_char_stream): Same.
11444 (streamer_write_hwi_in_range): Same.
11445 (streamer_write_record_start): Same.
11446 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11447 (add_cross_iteration_register_deps): Same.
11448 (build_intra_loop_deps): Same.
11449 * df-core.c (df_analyze): Same.
11450 (loop_post_order_compute): Same.
11451 (loop_inverted_post_order_compute): Same.
11452 * df-problems.c (df_rd_alloc): Same.
11453 (df_rd_simulate_one_insn): Same.
11454 (df_rd_local_compute): Same.
11455 (df_rd_init_solution): Same.
11456 (df_rd_confluence_n): Same.
11457 (df_rd_transfer_function): Same.
11458 (df_rd_free): Same.
11459 (df_rd_dump_defs_set): Same.
11460 (df_rd_top_dump): Same.
11461 (df_lr_alloc): Same.
11462 (df_lr_reset): Same.
11463 (df_lr_local_compute): Same.
11464 (df_lr_init): Same.
11465 (df_lr_confluence_n): Same.
11466 (df_lr_free): Same.
11467 (df_lr_top_dump): Same.
11468 (df_lr_verify_transfer_functions): Same.
11469 (df_live_alloc): Same.
11470 (df_live_reset): Same.
11471 (df_live_init): Same.
11472 (df_live_confluence_n): Same.
11473 (df_live_finalize): Same.
11474 (df_live_free): Same.
11475 (df_live_top_dump): Same.
11476 (df_live_verify_transfer_functions): Same.
11477 (df_mir_alloc): Same.
11478 (df_mir_reset): Same.
11479 (df_mir_init): Same.
11480 (df_mir_confluence_n): Same.
11481 (df_mir_free): Same.
11482 (df_mir_top_dump): Same.
11483 (df_word_lr_alloc): Same.
11484 (df_word_lr_reset): Same.
11485 (df_word_lr_init): Same.
11486 (df_word_lr_confluence_n): Same.
11487 (df_word_lr_free): Same.
11488 (df_word_lr_top_dump): Same.
11489 (df_md_alloc): Same.
11490 (df_md_simulate_one_insn): Same.
11491 (df_md_reset): Same.
11492 (df_md_init): Same.
11493 (df_md_free): Same.
11494 (df_md_top_dump): Same.
11495 * df-scan.c (df_insn_delete): Same.
11496 (df_insn_rescan): Same.
11497 (df_notes_rescan): Same.
11498 (df_sort_and_compress_mws): Same.
11499 (df_install_mws): Same.
11500 (df_refs_add_to_chains): Same.
11501 (df_ref_create_structure): Same.
11502 (df_ref_record): Same.
11503 (df_def_record_1): Same.
11504 (df_find_hard_reg_defs): Same.
11505 (df_uses_record): Same.
11506 (df_get_conditional_uses): Same.
11507 (df_get_call_refs): Same.
11508 (df_recompute_luids): Same.
11509 (df_get_entry_block_def_set): Same.
11510 (df_entry_block_defs_collect): Same.
11511 (df_get_exit_block_use_set): Same.
11512 (df_exit_block_uses_collect): Same.
11513 (df_mws_verify): Same.
11514 (df_bb_verify): Same.
11515 * df.h (df_scan_get_bb_info): Same.
11516 * doc/tm.texi: Same.
11517 * dse.c (record_store): Same.
11518 * dumpfile.h: Same.
11519 * emit-rtl.c (const_fixed_hasher::equal): Same.
11520 (set_mem_attributes_minus_bitpos): Same.
11521 (change_address): Same.
11522 (adjust_address_1): Same.
11523 (offset_address): Same.
11524 * emit-rtl.h: Same.
11525 * except.c (dw2_build_landing_pads): Same.
11526 (sjlj_emit_dispatch_table): Same.
11527 * explow.c (allocate_dynamic_stack_space): Same.
11528 (emit_stack_probe): Same.
11529 (probe_stack_range): Same.
11530 * expmed.c (store_bit_field_using_insv): Same.
11531 (store_bit_field_1): Same.
11532 (store_integral_bit_field): Same.
11533 (extract_bit_field_using_extv): Same.
11534 (extract_bit_field_1): Same.
11535 (emit_cstore): Same.
11536 * expr.c (emit_block_move_via_cpymem): Same.
11537 (expand_cmpstrn_or_cmpmem): Same.
11538 (set_storage_via_setmem): Same.
11539 (emit_single_push_insn_1): Same.
11540 (expand_assignment): Same.
11541 (store_constructor): Same.
11542 (expand_expr_real_2): Same.
11543 (expand_expr_real_1): Same.
11544 (try_casesi): Same.
11545 * flags.h: Same.
11546 * function.c (try_fit_stack_local): Same.
11547 (assign_stack_local_1): Same.
11548 (assign_stack_local): Same.
11549 (cut_slot_from_list): Same.
11550 (insert_slot_to_list): Same.
11551 (max_slot_level): Same.
11552 (move_slot_to_level): Same.
11553 (temp_address_hasher::equal): Same.
11554 (remove_unused_temp_slot_addresses): Same.
11555 (assign_temp): Same.
11556 (combine_temp_slots): Same.
11557 (update_temp_slot_address): Same.
11558 (preserve_temp_slots): Same.
11559 * function.h: Same.
11560 * fwprop.c: Same.
11561 * gcc-rich-location.h: Same.
11562 * gcov.c: Same.
11563 * genattrtab.c (check_attr_test): Same.
11564 (check_attr_value): Same.
11565 (convert_set_attr_alternative): Same.
11566 (convert_set_attr): Same.
11567 (check_defs): Same.
11568 (copy_boolean): Same.
11569 (get_attr_value): Same.
11570 (expand_delays): Same.
11571 (make_length_attrs): Same.
11572 (min_fn): Same.
11573 (make_alternative_compare): Same.
11574 (simplify_test_exp): Same.
11575 (tests_attr_p): Same.
11576 (get_attr_order): Same.
11577 (clear_struct_flag): Same.
11578 (gen_attr): Same.
11579 (compares_alternatives_p): Same.
11580 (gen_insn): Same.
11581 (gen_delay): Same.
11582 (find_attrs_to_cache): Same.
11583 (write_test_expr): Same.
11584 (walk_attr_value): Same.
11585 (write_attr_get): Same.
11586 (eliminate_known_true): Same.
11587 (write_insn_cases): Same.
11588 (write_attr_case): Same.
11589 (write_attr_valueq): Same.
11590 (write_attr_value): Same.
11591 (write_dummy_eligible_delay): Same.
11592 (next_comma_elt): Same.
11593 (find_attr): Same.
11594 (make_internal_attr): Same.
11595 (copy_rtx_unchanging): Same.
11596 (gen_insn_reserv): Same.
11597 (check_tune_attr): Same.
11598 (make_automaton_attrs): Same.
11599 (handle_arg): Same.
11600 * genextract.c (gen_insn): Same.
11601 (VEC_char_to_string): Same.
11602 * genmatch.c (print_operand): Same.
11603 (lower): Same.
11604 (parser::parse_operation): Same.
11605 (parser::parse_capture): Same.
11606 (parser::parse_c_expr): Same.
11607 (parser::parse_simplify): Same.
11608 (main): Same.
11609 * genoutput.c (output_operand_data): Same.
11610 (output_get_insn_name): Same.
11611 (compare_operands): Same.
11612 (place_operands): Same.
11613 (process_template): Same.
11614 (validate_insn_alternatives): Same.
11615 (validate_insn_operands): Same.
11616 (gen_expand): Same.
11617 (note_constraint): Same.
11618 * genpreds.c (write_one_predicate_function): Same.
11619 (add_constraint): Same.
11620 (process_define_register_constraint): Same.
11621 (write_lookup_constraint_1): Same.
11622 (write_lookup_constraint_array): Same.
11623 (write_insn_constraint_len): Same.
11624 (write_reg_class_for_constraint_1): Same.
11625 (write_constraint_satisfied_p_array): Same.
11626 * genrecog.c (optimize_subroutine_group): Same.
11627 * gensupport.c (process_define_predicate): Same.
11628 (queue_pattern): Same.
11629 (remove_from_queue): Same.
11630 (process_rtx): Same.
11631 (is_predicable): Same.
11632 (change_subst_attribute): Same.
11633 (subst_pattern_match): Same.
11634 (alter_constraints): Same.
11635 (alter_attrs_for_insn): Same.
11636 (shift_output_template): Same.
11637 (alter_output_for_subst_insn): Same.
11638 (process_one_cond_exec): Same.
11639 (subst_dup): Same.
11640 (process_define_cond_exec): Same.
11641 (mnemonic_htab_callback): Same.
11642 (gen_mnemonic_attr): Same.
11643 (read_md_rtx): Same.
11644 * ggc-page.c: Same.
11645 * gimple-loop-interchange.cc (dump_reduction): Same.
11646 (dump_induction): Same.
11647 (loop_cand::~loop_cand): Same.
11648 (free_data_refs_with_aux): Same.
11649 (tree_loop_interchange::interchange_loops): Same.
11650 (tree_loop_interchange::map_inductions_to_loop): Same.
11651 (tree_loop_interchange::move_code_to_inner_loop): Same.
11652 (compute_access_stride): Same.
11653 (compute_access_strides): Same.
11654 (proper_loop_form_for_interchange): Same.
11655 (tree_loop_interchange_compute_ddrs): Same.
11656 (prune_datarefs_not_in_loop): Same.
11657 (prepare_data_references): Same.
11658 (pass_linterchange::execute): Same.
11659 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11660 (unroll_jam_possible_p): Same.
11661 (fuse_loops): Same.
11662 (adjust_unroll_factor): Same.
11663 (tree_loop_unroll_and_jam): Same.
11664 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11665 (loop_versioning::expensive_stmt_p): Same.
11666 (loop_versioning::version_for_unity): Same.
11667 (loop_versioning::dump_inner_likelihood): Same.
11668 (loop_versioning::find_per_loop_multiplication): Same.
11669 (loop_versioning::analyze_term_using_scevs): Same.
11670 (loop_versioning::record_address_fragment): Same.
11671 (loop_versioning::analyze_expr): Same.
11672 (loop_versioning::analyze_blocks): Same.
11673 (loop_versioning::prune_conditions): Same.
11674 (loop_versioning::merge_loop_info): Same.
11675 (loop_versioning::add_loop_to_queue): Same.
11676 (loop_versioning::decide_whether_loop_is_versionable): Same.
11677 (loop_versioning::make_versioning_decisions): Same.
11678 (loop_versioning::implement_versioning_decisions): Same.
11679 * gimple-ssa-evrp-analyze.c
11680 (evrp_range_analyzer::record_ranges_from_phis): Same.
11681 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11682 (count_multiple_uses): Same.
11683 (split_group): Same.
11684 (imm_store_chain_info::output_merged_store): Same.
11685 (pass_store_merging::process_store): Same.
11686 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11687 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11688 (is_max): Same.
11689 (alloca_call_type): Same.
11690 (pass_walloca::execute): Same.
11691 * gimple-streamer-in.c (input_phi): Same.
11692 (input_gimple_stmt): Same.
11693 * gimple-streamer.h: Same.
11694 * godump.c (go_force_record_alignment): Same.
11695 (go_format_type): Same.
11696 (go_output_type): Same.
11697 (go_output_fndecl): Same.
11698 (go_output_typedef): Same.
11699 (keyword_hash_init): Same.
11700 (find_dummy_types): Same.
11701 * graph.c (draw_cfg_nodes_no_loops): Same.
11702 (draw_cfg_nodes_for_loop): Same.
11703 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11704 * hsa-brig.c: Same.
11705 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11706 * hsa-dump.c (dump_hsa_cfun): Same.
11707 * hsa-gen.c (gen_function_def_parameters): Same.
11708 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11709 * input.c (dump_line_table_statistics): Same.
11710 (test_lexer): Same.
11711 * input.h: Same.
11712 * internal-fn.c (get_multi_vector_move): Same.
11713 (expand_load_lanes_optab_fn): Same.
11714 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11715 (expand_GOMP_SIMT_EXIT): Same.
11716 (expand_GOMP_SIMT_LAST_LANE): Same.
11717 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11718 (expand_GOMP_SIMT_VOTE_ANY): Same.
11719 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11720 (expand_GOMP_SIMT_XCHG_IDX): Same.
11721 (expand_addsub_overflow): Same.
11722 (expand_neg_overflow): Same.
11723 (expand_mul_overflow): Same.
11724 (expand_call_mem_ref): Same.
11725 (expand_mask_load_optab_fn): Same.
11726 (expand_scatter_store_optab_fn): Same.
11727 (expand_gather_load_optab_fn): Same.
11728 * ipa-cp.c (ipa_get_parm_lattices): Same.
11729 (print_all_lattices): Same.
11730 (ignore_edge_p): Same.
11731 (build_toporder_info): Same.
11732 (free_toporder_info): Same.
11733 (push_node_to_stack): Same.
11734 (ipcp_lattice<valtype>::set_contains_variable): Same.
11735 (set_agg_lats_to_bottom): Same.
11736 (ipcp_bits_lattice::meet_with): Same.
11737 (set_single_call_flag): Same.
11738 (initialize_node_lattices): Same.
11739 (ipa_get_jf_ancestor_result): Same.
11740 (ipcp_verify_propagated_values): Same.
11741 (propagate_scalar_across_jump_function): Same.
11742 (propagate_context_across_jump_function): Same.
11743 (propagate_bits_across_jump_function): Same.
11744 (ipa_vr_operation_and_type_effects): Same.
11745 (propagate_vr_across_jump_function): Same.
11746 (set_check_aggs_by_ref): Same.
11747 (set_chain_of_aglats_contains_variable): Same.
11748 (merge_aggregate_lattices): Same.
11749 (agg_pass_through_permissible_p): Same.
11750 (propagate_aggs_across_jump_function): Same.
11751 (call_passes_through_thunk_p): Same.
11752 (propagate_constants_across_call): Same.
11753 (devirtualization_time_bonus): Same.
11754 (good_cloning_opportunity_p): Same.
11755 (context_independent_aggregate_values): Same.
11756 (gather_context_independent_values): Same.
11757 (perform_estimation_of_a_value): Same.
11758 (estimate_local_effects): Same.
11759 (value_topo_info<valtype>::add_val): Same.
11760 (add_all_node_vals_to_toposort): Same.
11761 (value_topo_info<valtype>::propagate_effects): Same.
11762 (ipcp_propagate_stage): Same.
11763 (ipcp_discover_new_direct_edges): Same.
11764 (same_node_or_its_all_contexts_clone_p): Same.
11765 (cgraph_edge_brings_value_p): Same.
11766 (gather_edges_for_value): Same.
11767 (create_specialized_node): Same.
11768 (find_more_scalar_values_for_callers_subset): Same.
11769 (find_more_contexts_for_caller_subset): Same.
11770 (copy_plats_to_inter): Same.
11771 (intersect_aggregates_with_edge): Same.
11772 (find_aggregate_values_for_callers_subset): Same.
11773 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11774 (decide_about_value): Same.
11775 (decide_whether_version_node): Same.
11776 (spread_undeadness): Same.
11777 (identify_dead_nodes): Same.
11778 (ipcp_store_vr_results): Same.
11779 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11780 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11781 (redirect_to_unreachable): Same.
11782 (edge_set_predicate): Same.
11783 (evaluate_conditions_for_known_args): Same.
11784 (evaluate_properties_for_edge): Same.
11785 (ipa_fn_summary_t::duplicate): Same.
11786 (ipa_call_summary_t::duplicate): Same.
11787 (dump_ipa_call_summary): Same.
11788 (ipa_dump_fn_summary): Same.
11789 (eliminated_by_inlining_prob): Same.
11790 (set_cond_stmt_execution_predicate): Same.
11791 (set_switch_stmt_execution_predicate): Same.
11792 (compute_bb_predicates): Same.
11793 (will_be_nonconstant_expr_predicate): Same.
11794 (phi_result_unknown_predicate): Same.
11795 (analyze_function_body): Same.
11796 (compute_fn_summary): Same.
11797 (estimate_edge_devirt_benefit): Same.
11798 (estimate_edge_size_and_time): Same.
11799 (estimate_calls_size_and_time): Same.
11800 (estimate_node_size_and_time): Same.
11801 (remap_edge_change_prob): Same.
11802 (remap_edge_summaries): Same.
11803 (ipa_merge_fn_summary_after_inlining): Same.
11804 (ipa_fn_summary_generate): Same.
11805 (inline_read_section): Same.
11806 (ipa_fn_summary_read): Same.
11807 (ipa_fn_summary_write): Same.
11808 * ipa-fnsummary.h: Same.
11809 * ipa-hsa.c (ipa_hsa_read_section): Same.
11810 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11811 * ipa-icf.c (sem_function::param_used_p): Same.
11812 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11813 * ipa-inline.c (edge_badness): Same.
11814 (inline_small_functions): Same.
11815 * ipa-polymorphic-call.c
11816 (ipa_polymorphic_call_context::stream_out): Same.
11817 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11818 (predicate::remap_after_inlining): Same.
11819 (predicate::stream_out): Same.
11820 * ipa-predicate.h: Same.
11821 * ipa-profile.c (ipa_profile_read_summary): Same.
11822 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11823 (count_formal_params): Same.
11824 (ipa_dump_param): Same.
11825 (ipa_alloc_node_params): Same.
11826 (ipa_print_node_jump_functions_for_edge): Same.
11827 (ipa_print_node_jump_functions): Same.
11828 (ipa_load_from_parm_agg): Same.
11829 (get_ancestor_addr_info): Same.
11830 (ipa_compute_jump_functions_for_edge): Same.
11831 (ipa_analyze_virtual_call_uses): Same.
11832 (ipa_analyze_stmt_uses): Same.
11833 (ipa_analyze_params_uses_in_bb): Same.
11834 (update_jump_functions_after_inlining): Same.
11835 (try_decrement_rdesc_refcount): Same.
11836 (ipa_impossible_devirt_target): Same.
11837 (update_indirect_edges_after_inlining): Same.
11838 (combine_controlled_uses_counters): Same.
11839 (ipa_edge_args_sum_t::duplicate): Same.
11840 (ipa_write_jump_function): Same.
11841 (ipa_write_indirect_edge_info): Same.
11842 (ipa_write_node_info): Same.
11843 (ipa_read_edge_info): Same.
11844 (ipa_prop_read_section): Same.
11845 (read_replacements_section): Same.
11846 * ipa-prop.h (ipa_get_param_count): Same.
11847 (ipa_get_param): Same.
11848 (ipa_get_type): Same.
11849 (ipa_get_param_move_cost): Same.
11850 (ipa_set_param_used): Same.
11851 (ipa_get_controlled_uses): Same.
11852 (ipa_set_controlled_uses): Same.
11853 (ipa_get_cs_argument_count): Same.
11854 * ipa-pure-const.c (analyze_function): Same.
11855 (pure_const_read_summary): Same.
11856 * ipa-ref.h: Same.
11857 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11858 * ipa-split.c (test_nonssa_use): Same.
11859 (dump_split_point): Same.
11860 (dominated_by_forbidden): Same.
11861 (split_part_set_ssa_name_p): Same.
11862 (find_split_points): Same.
11863 * ira-build.c (finish_loop_tree_nodes): Same.
11864 (low_pressure_loop_node_p): Same.
11865 * ira-color.c (ira_reuse_stack_slot): Same.
11866 * ira-int.h: Same.
11867 * ira.c (setup_reg_equiv): Same.
11868 (print_insn_chain): Same.
11869 (ira): Same.
11870 * loop-doloop.c (doloop_condition_get): Same.
11871 (add_test): Same.
11872 (record_reg_sets): Same.
11873 (doloop_optimize): Same.
11874 * loop-init.c (loop_optimizer_init): Same.
11875 (fix_loop_structure): Same.
11876 * loop-invariant.c (merge_identical_invariants): Same.
11877 (compute_always_reached): Same.
11878 (find_exits): Same.
11879 (may_assign_reg_p): Same.
11880 (find_invariants_bb): Same.
11881 (find_invariants_body): Same.
11882 (replace_uses): Same.
11883 (can_move_invariant_reg): Same.
11884 (free_inv_motion_data): Same.
11885 (move_single_loop_invariants): Same.
11886 (change_pressure): Same.
11887 (mark_ref_regs): Same.
11888 (calculate_loop_reg_pressure): Same.
11889 * loop-iv.c (biv_entry_hasher::equal): Same.
11890 (iv_extend_to_rtx_code): Same.
11891 (check_iv_ref_table_size): Same.
11892 (clear_iv_info): Same.
11893 (latch_dominating_def): Same.
11894 (iv_get_reaching_def): Same.
11895 (iv_constant): Same.
11896 (iv_subreg): Same.
11897 (iv_extend): Same.
11898 (iv_neg): Same.
11899 (iv_add): Same.
11900 (iv_mult): Same.
11901 (get_biv_step): Same.
11902 (record_iv): Same.
11903 (analyzed_for_bivness_p): Same.
11904 (record_biv): Same.
11905 (iv_analyze_biv): Same.
11906 (iv_analyze_expr): Same.
11907 (iv_analyze_def): Same.
11908 (iv_analyze_op): Same.
11909 (iv_analyze): Same.
11910 (iv_analyze_result): Same.
11911 (biv_p): Same.
11912 (eliminate_implied_conditions): Same.
11913 (simplify_using_initial_values): Same.
11914 (shorten_into_mode): Same.
11915 (canonicalize_iv_subregs): Same.
11916 (determine_max_iter): Same.
11917 (check_simple_exit): Same.
11918 (find_simple_exit): Same.
11919 (get_simple_loop_desc): Same.
11920 * loop-unroll.c (report_unroll): Same.
11921 (decide_unrolling): Same.
11922 (unroll_loops): Same.
11923 (loop_exit_at_end_p): Same.
11924 (decide_unroll_constant_iterations): Same.
11925 (unroll_loop_constant_iterations): Same.
11926 (compare_and_jump_seq): Same.
11927 (unroll_loop_runtime_iterations): Same.
11928 (decide_unroll_stupid): Same.
11929 (unroll_loop_stupid): Same.
11930 (referenced_in_one_insn_in_loop_p): Same.
11931 (reset_debug_uses_in_loop): Same.
11932 (analyze_iv_to_split_insn): Same.
11933 * lra-eliminations.c (lra_debug_elim_table): Same.
11934 (setup_can_eliminate): Same.
11935 (form_sum): Same.
11936 (lra_get_elimination_hard_regno): Same.
11937 (lra_eliminate_regs_1): Same.
11938 (eliminate_regs_in_insn): Same.
11939 (update_reg_eliminate): Same.
11940 (init_elimination): Same.
11941 (lra_eliminate): Same.
11942 * lra-int.h: Same.
11943 * lra-lives.c (initiate_live_solver): Same.
11944 * lra-remat.c (create_remat_bb_data): Same.
11945 * lra-spills.c (lra_spill): Same.
11946 * lra.c (lra_set_insn_recog_data): Same.
11947 (lra_set_used_insn_alternative_by_uid): Same.
11948 (init_reg_info): Same.
11949 (expand_reg_info): Same.
11950 * lto-cgraph.c (output_symtab): Same.
11951 (read_identifier): Same.
11952 (get_alias_symbol): Same.
11953 (input_node): Same.
11954 (input_varpool_node): Same.
11955 (input_ref): Same.
11956 (input_edge): Same.
11957 (input_cgraph_1): Same.
11958 (input_refs): Same.
11959 (input_symtab): Same.
11960 (input_offload_tables): Same.
11961 (output_cgraph_opt_summary): Same.
11962 (input_edge_opt_summary): Same.
11963 (input_cgraph_opt_section): Same.
11964 * lto-section-in.c (lto_free_raw_section_data): Same.
11965 (lto_create_simple_input_block): Same.
11966 (lto_free_function_in_decl_state_for_node): Same.
11967 * lto-streamer-in.c (lto_tag_check_set): Same.
11968 (lto_location_cache::revert_location_cache): Same.
11969 (lto_location_cache::input_location): Same.
11970 (lto_input_location): Same.
11971 (stream_input_location_now): Same.
11972 (lto_input_tree_ref): Same.
11973 (lto_input_eh_catch_list): Same.
11974 (input_eh_region): Same.
11975 (lto_init_eh): Same.
11976 (make_new_block): Same.
11977 (input_cfg): Same.
11978 (fixup_call_stmt_edges): Same.
11979 (input_struct_function_base): Same.
11980 (input_function): Same.
11981 (lto_read_body_or_constructor): Same.
11982 (lto_read_tree_1): Same.
11983 (lto_read_tree): Same.
11984 (lto_input_scc): Same.
11985 (lto_input_tree_1): Same.
11986 (lto_input_toplevel_asms): Same.
11987 (lto_input_mode_table): Same.
11988 (lto_reader_init): Same.
11989 (lto_data_in_create): Same.
11990 * lto-streamer-out.c (output_cfg): Same.
11991 * lto-streamer.h: Same.
11992 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11993 (generate_prolog_epilog): Same.
11994 (mark_loop_unsched): Same.
11995 (dump_insn_location): Same.
11996 (loop_canon_p): Same.
11997 (sms_schedule): Same.
11998 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11999 (expand_omp_for_generic): Same.
12000 (expand_omp_for_static_nochunk): Same.
12001 (expand_omp_for_static_chunk): Same.
12002 (expand_omp_simd): Same.
12003 (expand_omp_taskloop_for_inner): Same.
12004 (expand_oacc_for): Same.
12005 (expand_omp_atomic_pipeline): Same.
12006 (mark_loops_in_oacc_kernels_region): Same.
12007 * omp-offload.c (oacc_xform_loop): Same.
12008 * omp-simd-clone.c (simd_clone_adjust): Same.
12009 * optabs-query.c (get_traditional_extraction_insn): Same.
12010 * optabs.c (expand_vector_broadcast): Same.
12011 (expand_binop_directly): Same.
12012 (expand_twoval_unop): Same.
12013 (expand_twoval_binop): Same.
12014 (expand_unop_direct): Same.
12015 (emit_indirect_jump): Same.
12016 (emit_conditional_move): Same.
12017 (emit_conditional_neg_or_complement): Same.
12018 (emit_conditional_add): Same.
12019 (vector_compare_rtx): Same.
12020 (expand_vec_perm_1): Same.
12021 (expand_vec_perm_const): Same.
12022 (expand_vec_cond_expr): Same.
12023 (expand_vec_series_expr): Same.
12024 (maybe_emit_atomic_exchange): Same.
12025 (maybe_emit_sync_lock_test_and_set): Same.
12026 (expand_atomic_compare_and_swap): Same.
12027 (expand_atomic_load): Same.
12028 (expand_atomic_store): Same.
12029 (maybe_emit_op): Same.
12030 (valid_multiword_target_p): Same.
12031 (create_integer_operand): Same.
12032 (maybe_legitimize_operand_same_code): Same.
12033 (maybe_legitimize_operand): Same.
12034 (create_convert_operand_from_type): Same.
12035 (can_reuse_operands_p): Same.
12036 (maybe_legitimize_operands): Same.
12037 (maybe_gen_insn): Same.
12038 (maybe_expand_insn): Same.
12039 (maybe_expand_jump_insn): Same.
12040 (expand_insn): Same.
12041 * optabs.h (create_expand_operand): Same.
12042 (create_fixed_operand): Same.
12043 (create_output_operand): Same.
12044 (create_input_operand): Same.
12045 (create_convert_operand_to): Same.
12046 (create_convert_operand_from): Same.
12047 * optinfo.h: Same.
12048 * poly-int.h: Same.
12049 * predict.c (optimize_insn_for_speed_p): Same.
12050 (optimize_loop_for_size_p): Same.
12051 (optimize_loop_for_speed_p): Same.
12052 (optimize_loop_nest_for_speed_p): Same.
12053 (get_base_value): Same.
12054 (predicted_by_loop_heuristics_p): Same.
12055 (predict_extra_loop_exits): Same.
12056 (predict_loops): Same.
12057 (predict_paths_for_bb): Same.
12058 (predict_paths_leading_to): Same.
12059 (propagate_freq): Same.
12060 (pass_profile::execute): Same.
12061 * predict.h: Same.
12062 * profile-count.c (profile_count::differs_from_p): Same.
12063 (profile_probability::differs_lot_from_p): Same.
12064 * profile-count.h: Same.
12065 * profile.c (branch_prob): Same.
12066 * regrename.c (free_chain_data): Same.
12067 (mark_conflict): Same.
12068 (create_new_chain): Same.
12069 (merge_overlapping_regs): Same.
12070 (init_rename_info): Same.
12071 (merge_chains): Same.
12072 (regrename_analyze): Same.
12073 (regrename_do_replace): Same.
12074 (scan_rtx_reg): Same.
12075 (record_out_operands): Same.
12076 (build_def_use): Same.
12077 * regrename.h: Same.
12078 * reload.h: Same.
12079 * reload1.c (init_reload): Same.
12080 (maybe_fix_stack_asms): Same.
12081 (copy_reloads): Same.
12082 (count_pseudo): Same.
12083 (count_spilled_pseudo): Same.
12084 (find_reg): Same.
12085 (find_reload_regs): Same.
12086 (select_reload_regs): Same.
12087 (spill_hard_reg): Same.
12088 (fixup_eh_region_note): Same.
12089 (set_reload_reg): Same.
12090 (allocate_reload_reg): Same.
12091 (compute_reload_subreg_offset): Same.
12092 (reload_adjust_reg_for_icode): Same.
12093 (emit_input_reload_insns): Same.
12094 (emit_output_reload_insns): Same.
12095 (do_input_reload): Same.
12096 (inherit_piecemeal_p): Same.
12097 * rtl.h: Same.
12098 * sanopt.c (maybe_get_dominating_check): Same.
12099 (maybe_optimize_ubsan_ptr_ifn): Same.
12100 (can_remove_asan_check): Same.
12101 (maybe_optimize_asan_check_ifn): Same.
12102 (sanopt_optimize_walker): Same.
12103 * sched-deps.c (add_dependence_list): Same.
12104 (chain_to_prev_insn): Same.
12105 (add_insn_mem_dependence): Same.
12106 (create_insn_reg_set): Same.
12107 (maybe_extend_reg_info_p): Same.
12108 (sched_analyze_reg): Same.
12109 (sched_analyze_1): Same.
12110 (get_implicit_reg_pending_clobbers): Same.
12111 (chain_to_prev_insn_p): Same.
12112 (deps_analyze_insn): Same.
12113 (deps_start_bb): Same.
12114 (sched_free_deps): Same.
12115 (init_deps): Same.
12116 (init_deps_reg_last): Same.
12117 (free_deps): Same.
12118 * sched-ebb.c: Same.
12119 * sched-int.h: Same.
12120 * sched-rgn.c (add_branch_dependences): Same.
12121 (concat_insn_mem_list): Same.
12122 (deps_join): Same.
12123 (sched_rgn_compute_dependencies): Same.
12124 * sel-sched-ir.c (reset_target_context): Same.
12125 (copy_deps_context): Same.
12126 (init_id_from_df): Same.
12127 (has_dependence_p): Same.
12128 (change_loops_latches): Same.
12129 (bb_top_order_comparator): Same.
12130 (make_region_from_loop_preheader): Same.
12131 (sel_init_pipelining): Same.
12132 (get_loop_nest_for_rgn): Same.
12133 (make_regions_from_the_rest): Same.
12134 (sel_is_loop_preheader_p): Same.
12135 * sel-sched-ir.h (inner_loop_header_p): Same.
12136 (get_all_loop_exits): Same.
12137 * selftest.h: Same.
12138 * sese.c (sese_build_liveouts): Same.
12139 (sese_insert_phis_for_liveouts): Same.
12140 * sese.h (defined_in_sese_p): Same.
12141 * sreal.c (sreal::stream_out): Same.
12142 * sreal.h: Same.
12143 * streamer-hooks.h: Same.
12144 * target-globals.c (save_target_globals): Same.
12145 * target-globals.h: Same.
12146 * target.def: Same.
12147 * target.h: Same.
12148 * targhooks.c (default_has_ifunc_p): Same.
12149 (default_empty_mask_is_expensive): Same.
12150 (default_init_cost): Same.
12151 * targhooks.h: Same.
12152 * toplev.c: Same.
12153 * tree-affine.c (aff_combination_mult): Same.
12154 (aff_combination_expand): Same.
12155 (aff_combination_constant_multiple_p): Same.
12156 * tree-affine.h: Same.
12157 * tree-cfg.c (build_gimple_cfg): Same.
12158 (replace_loop_annotate_in_block): Same.
12159 (replace_uses_by): Same.
12160 (remove_bb): Same.
12161 (dump_cfg_stats): Same.
12162 (gimple_duplicate_sese_region): Same.
12163 (gimple_duplicate_sese_tail): Same.
12164 (move_block_to_fn): Same.
12165 (replace_block_vars_by_duplicates): Same.
12166 (move_sese_region_to_fn): Same.
12167 (print_loops_bb): Same.
12168 (print_loop): Same.
12169 (print_loops): Same.
12170 (debug): Same.
12171 (debug_loops): Same.
12172 * tree-cfg.h: Same.
12173 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12174 (chrec_fold_multiply_poly_poly): Same.
12175 (chrec_evaluate): Same.
12176 (chrec_component_in_loop_num): Same.
12177 (reset_evolution_in_loop): Same.
12178 (is_multivariate_chrec): Same.
12179 (chrec_contains_symbols): Same.
12180 (nb_vars_in_chrec): Same.
12181 (chrec_convert_1): Same.
12182 (chrec_convert_aggressive): Same.
12183 * tree-chrec.h: Same.
12184 * tree-core.h: Same.
12185 * tree-data-ref.c (dump_data_dependence_relation): Same.
12186 (canonicalize_base_object_address): Same.
12187 (data_ref_compare_tree): Same.
12188 (prune_runtime_alias_test_list): Same.
12189 (get_segment_min_max): Same.
12190 (create_intersect_range_checks): Same.
12191 (conflict_fn_no_dependence): Same.
12192 (object_address_invariant_in_loop_p): Same.
12193 (analyze_ziv_subscript): Same.
12194 (analyze_siv_subscript_cst_affine): Same.
12195 (analyze_miv_subscript): Same.
12196 (analyze_overlapping_iterations): Same.
12197 (build_classic_dist_vector_1): Same.
12198 (add_other_self_distances): Same.
12199 (same_access_functions): Same.
12200 (build_classic_dir_vector): Same.
12201 (subscript_dependence_tester_1): Same.
12202 (subscript_dependence_tester): Same.
12203 (access_functions_are_affine_or_constant_p): Same.
12204 (get_references_in_stmt): Same.
12205 (loop_nest_has_data_refs): Same.
12206 (graphite_find_data_references_in_stmt): Same.
12207 (find_data_references_in_bb): Same.
12208 (get_base_for_alignment): Same.
12209 (find_loop_nest_1): Same.
12210 (find_loop_nest): Same.
12211 * tree-data-ref.h (dr_alignment): Same.
12212 (ddr_dependence_level): Same.
12213 * tree-if-conv.c (fold_build_cond_expr): Same.
12214 (add_to_predicate_list): Same.
12215 (add_to_dst_predicate_list): Same.
12216 (phi_convertible_by_degenerating_args): Same.
12217 (idx_within_array_bound): Same.
12218 (all_preds_critical_p): Same.
12219 (pred_blocks_visited_p): Same.
12220 (predicate_bbs): Same.
12221 (build_region): Same.
12222 (if_convertible_loop_p_1): Same.
12223 (is_cond_scalar_reduction): Same.
12224 (predicate_scalar_phi): Same.
12225 (remove_conditions_and_labels): Same.
12226 (combine_blocks): Same.
12227 (version_loop_for_if_conversion): Same.
12228 (versionable_outer_loop_p): Same.
12229 (ifcvt_local_dce): Same.
12230 (tree_if_conversion): Same.
12231 (pass_if_conversion::gate): Same.
12232 * tree-if-conv.h: Same.
12233 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12234 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12235 (free_rdg): Same.
12236 (stmt_has_scalar_dependences_outside_loop): Same.
12237 (copy_loop_before): Same.
12238 (create_bb_after_loop): Same.
12239 (const_with_all_bytes_same): Same.
12240 (generate_memset_builtin): Same.
12241 (generate_memcpy_builtin): Same.
12242 (destroy_loop): Same.
12243 (build_rdg_partition_for_vertex): Same.
12244 (compute_access_range): Same.
12245 (data_ref_segment_size): Same.
12246 (latch_dominated_by_data_ref): Same.
12247 (compute_alias_check_pairs): Same.
12248 (fuse_memset_builtins): Same.
12249 (finalize_partitions): Same.
12250 (find_seed_stmts_for_distribution): Same.
12251 (prepare_perfect_loop_nest): Same.
12252 * tree-parloops.c (lambda_transform_legal_p): Same.
12253 (loop_parallel_p): Same.
12254 (reduc_stmt_res): Same.
12255 (add_field_for_name): Same.
12256 (create_call_for_reduction_1): Same.
12257 (replace_uses_in_bb_by): Same.
12258 (transform_to_exit_first_loop_alt): Same.
12259 (try_transform_to_exit_first_loop_alt): Same.
12260 (transform_to_exit_first_loop): Same.
12261 (num_phis): Same.
12262 (gen_parallel_loop): Same.
12263 (gather_scalar_reductions): Same.
12264 (get_omp_data_i_param): Same.
12265 (try_create_reduction_list): Same.
12266 (oacc_entry_exit_single_gang): Same.
12267 (parallelize_loops): Same.
12268 * tree-pass.h: Same.
12269 * tree-predcom.c (determine_offset): Same.
12270 (last_always_executed_block): Same.
12271 (split_data_refs_to_components): Same.
12272 (suitable_component_p): Same.
12273 (valid_initializer_p): Same.
12274 (find_looparound_phi): Same.
12275 (insert_looparound_copy): Same.
12276 (add_looparound_copies): Same.
12277 (determine_roots_comp): Same.
12278 (predcom_tmp_var): Same.
12279 (initialize_root_vars): Same.
12280 (initialize_root_vars_store_elim_1): Same.
12281 (initialize_root_vars_store_elim_2): Same.
12282 (finalize_eliminated_stores): Same.
12283 (initialize_root_vars_lm): Same.
12284 (remove_stmt): Same.
12285 (determine_unroll_factor): Same.
12286 (execute_pred_commoning_cbck): Same.
12287 (base_names_in_chain_on): Same.
12288 (combine_chains): Same.
12289 (pcom_stmt_dominates_stmt_p): Same.
12290 (try_combine_chains): Same.
12291 (prepare_initializers_chain_store_elim): Same.
12292 (prepare_initializers_chain): Same.
12293 (prepare_initializers): Same.
12294 (prepare_finalizers_chain): Same.
12295 (prepare_finalizers): Same.
12296 (insert_init_seqs): Same.
12297 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12298 (compute_overall_effect_of_inner_loop): Same.
12299 (add_to_evolution_1): Same.
12300 (add_to_evolution): Same.
12301 (follow_ssa_edge_binary): Same.
12302 (follow_ssa_edge_expr): Same.
12303 (backedge_phi_arg_p): Same.
12304 (follow_ssa_edge_in_condition_phi_branch): Same.
12305 (follow_ssa_edge_in_condition_phi): Same.
12306 (follow_ssa_edge_inner_loop_phi): Same.
12307 (follow_ssa_edge): Same.
12308 (analyze_evolution_in_loop): Same.
12309 (analyze_initial_condition): Same.
12310 (interpret_loop_phi): Same.
12311 (interpret_condition_phi): Same.
12312 (interpret_rhs_expr): Same.
12313 (interpret_expr): Same.
12314 (interpret_gimple_assign): Same.
12315 (analyze_scalar_evolution_1): Same.
12316 (analyze_scalar_evolution): Same.
12317 (analyze_scalar_evolution_for_address_of): Same.
12318 (get_instantiated_value_entry): Same.
12319 (loop_closed_phi_def): Same.
12320 (instantiate_scev_name): Same.
12321 (instantiate_scev_poly): Same.
12322 (instantiate_scev_binary): Same.
12323 (instantiate_scev_convert): Same.
12324 (instantiate_scev_not): Same.
12325 (instantiate_scev_r): Same.
12326 (instantiate_scev): Same.
12327 (resolve_mixers): Same.
12328 (initialize_scalar_evolutions_analyzer): Same.
12329 (scev_reset_htab): Same.
12330 (scev_reset): Same.
12331 (derive_simple_iv_with_niters): Same.
12332 (simple_iv_with_niters): Same.
12333 (expression_expensive_p): Same.
12334 (final_value_replacement_loop): Same.
12335 * tree-scalar-evolution.h (block_before_loop): Same.
12336 * tree-ssa-address.h: Same.
12337 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12338 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12339 (record_edge_info): Same.
12340 * tree-ssa-live.c (var_map_base_fini): Same.
12341 (remove_unused_locals): Same.
12342 * tree-ssa-live.h: Same.
12343 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12344 (pass_ch_vect::execute): Same.
12345 (pass_ch::process_loop_p): Same.
12346 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12347 (movement_possibility): Same.
12348 (outermost_invariant_loop): Same.
12349 (stmt_cost): Same.
12350 (determine_max_movement): Same.
12351 (invariantness_dom_walker::before_dom_children): Same.
12352 (move_computations): Same.
12353 (may_move_till): Same.
12354 (force_move_till_op): Same.
12355 (force_move_till): Same.
12356 (memref_free): Same.
12357 (record_mem_ref_loc): Same.
12358 (set_ref_stored_in_loop): Same.
12359 (mark_ref_stored): Same.
12360 (sort_bbs_in_loop_postorder_cmp): Same.
12361 (sort_locs_in_loop_postorder_cmp): Same.
12362 (analyze_memory_references): Same.
12363 (mem_refs_may_alias_p): Same.
12364 (find_ref_loc_in_loop_cmp): Same.
12365 (rewrite_mem_ref_loc::operator): Same.
12366 (first_mem_ref_loc_1::operator): Same.
12367 (sm_set_flag_if_changed::operator): Same.
12368 (execute_sm_if_changed_flag_set): Same.
12369 (execute_sm): Same.
12370 (hoist_memory_references): Same.
12371 (ref_always_accessed::operator): Same.
12372 (refs_independent_p): Same.
12373 (record_dep_loop): Same.
12374 (ref_indep_loop_p_1): Same.
12375 (ref_indep_loop_p): Same.
12376 (can_sm_ref_p): Same.
12377 (find_refs_for_sm): Same.
12378 (loop_suitable_for_sm): Same.
12379 (store_motion_loop): Same.
12380 (store_motion): Same.
12381 (fill_always_executed_in): Same.
12382 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12383 (estimated_unrolled_size): Same.
12384 (loop_edge_to_cancel): Same.
12385 (remove_exits_and_undefined_stmts): Same.
12386 (remove_redundant_iv_tests): Same.
12387 (unloop_loops): Same.
12388 (estimated_peeled_sequence_size): Same.
12389 (try_peel_loop): Same.
12390 (canonicalize_loop_induction_variables): Same.
12391 (canonicalize_induction_variables): Same.
12392 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12393 (name_info): Same.
12394 (stmt_after_inc_pos): Same.
12395 (contains_abnormal_ssa_name_p): Same.
12396 (niter_for_exit): Same.
12397 (find_bivs): Same.
12398 (mark_bivs): Same.
12399 (find_givs_in_bb): Same.
12400 (find_induction_variables): Same.
12401 (find_interesting_uses_cond): Same.
12402 (outermost_invariant_loop_for_expr): Same.
12403 (idx_find_step): Same.
12404 (add_candidate_1): Same.
12405 (add_iv_candidate_derived_from_uses): Same.
12406 (alloc_use_cost_map): Same.
12407 (prepare_decl_rtl): Same.
12408 (generic_predict_doloop_p): Same.
12409 (computation_cost): Same.
12410 (determine_common_wider_type): Same.
12411 (get_computation_aff_1): Same.
12412 (get_use_type): Same.
12413 (determine_group_iv_cost_address): Same.
12414 (iv_period): Same.
12415 (difference_cannot_overflow_p): Same.
12416 (may_eliminate_iv): Same.
12417 (determine_set_costs): Same.
12418 (cheaper_cost_pair): Same.
12419 (compare_cost_pair): Same.
12420 (iv_ca_cand_for_group): Same.
12421 (iv_ca_recount_cost): Same.
12422 (iv_ca_set_remove_invs): Same.
12423 (iv_ca_set_no_cp): Same.
12424 (iv_ca_set_add_invs): Same.
12425 (iv_ca_set_cp): Same.
12426 (iv_ca_add_group): Same.
12427 (iv_ca_cost): Same.
12428 (iv_ca_compare_deps): Same.
12429 (iv_ca_delta_reverse): Same.
12430 (iv_ca_delta_commit): Same.
12431 (iv_ca_cand_used_p): Same.
12432 (iv_ca_delta_free): Same.
12433 (iv_ca_new): Same.
12434 (iv_ca_free): Same.
12435 (iv_ca_dump): Same.
12436 (iv_ca_extend): Same.
12437 (iv_ca_narrow): Same.
12438 (iv_ca_prune): Same.
12439 (cheaper_cost_with_cand): Same.
12440 (iv_ca_replace): Same.
12441 (try_add_cand_for): Same.
12442 (get_initial_solution): Same.
12443 (try_improve_iv_set): Same.
12444 (find_optimal_iv_set_1): Same.
12445 (create_new_iv): Same.
12446 (rewrite_use_compare): Same.
12447 (remove_unused_ivs): Same.
12448 (determine_scaling_factor): Same.
12449 * tree-ssa-loop-ivopts.h: Same.
12450 * tree-ssa-loop-manip.c (create_iv): Same.
12451 (compute_live_loop_exits): Same.
12452 (add_exit_phi): Same.
12453 (add_exit_phis): Same.
12454 (find_uses_to_rename_use): Same.
12455 (find_uses_to_rename_def): Same.
12456 (find_uses_to_rename_in_loop): Same.
12457 (rewrite_into_loop_closed_ssa): Same.
12458 (check_loop_closed_ssa_bb): Same.
12459 (split_loop_exit_edge): Same.
12460 (ip_end_pos): Same.
12461 (ip_normal_pos): Same.
12462 (copy_phi_node_args): Same.
12463 (gimple_duplicate_loop_to_header_edge): Same.
12464 (can_unroll_loop_p): Same.
12465 (determine_exit_conditions): Same.
12466 (scale_dominated_blocks_in_loop): Same.
12467 (niter_for_unrolled_loop): Same.
12468 (tree_transform_and_unroll_loop): Same.
12469 (rewrite_all_phi_nodes_with_iv): Same.
12470 * tree-ssa-loop-manip.h: Same.
12471 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12472 (number_of_iterations_ne): Same.
12473 (assert_no_overflow_lt): Same.
12474 (assert_loop_rolls_lt): Same.
12475 (number_of_iterations_lt): Same.
12476 (adjust_cond_for_loop_until_wrap): Same.
12477 (tree_simplify_using_condition): Same.
12478 (simplify_using_initial_conditions): Same.
12479 (simplify_using_outer_evolutions): Same.
12480 (loop_only_exit_p): Same.
12481 (ssa_defined_by_minus_one_stmt_p): Same.
12482 (number_of_iterations_popcount): Same.
12483 (number_of_iterations_exit): Same.
12484 (find_loop_niter): Same.
12485 (finite_loop_p): Same.
12486 (chain_of_csts_start): Same.
12487 (get_val_for): Same.
12488 (loop_niter_by_eval): Same.
12489 (derive_constant_upper_bound_ops): Same.
12490 (do_warn_aggressive_loop_optimizations): Same.
12491 (record_estimate): Same.
12492 (get_cst_init_from_scev): Same.
12493 (record_nonwrapping_iv): Same.
12494 (idx_infer_loop_bounds): Same.
12495 (infer_loop_bounds_from_ref): Same.
12496 (infer_loop_bounds_from_array): Same.
12497 (infer_loop_bounds_from_pointer_arith): Same.
12498 (infer_loop_bounds_from_signedness): Same.
12499 (bound_index): Same.
12500 (discover_iteration_bound_by_body_walk): Same.
12501 (maybe_lower_iteration_bound): Same.
12502 (estimate_numbers_of_iterations): Same.
12503 (estimated_loop_iterations): Same.
12504 (estimated_loop_iterations_int): Same.
12505 (max_loop_iterations): Same.
12506 (max_loop_iterations_int): Same.
12507 (likely_max_loop_iterations): Same.
12508 (likely_max_loop_iterations_int): Same.
12509 (estimated_stmt_executions_int): Same.
12510 (max_stmt_executions): Same.
12511 (likely_max_stmt_executions): Same.
12512 (estimated_stmt_executions): Same.
12513 (stmt_dominates_stmt_p): Same.
12514 (nowrap_type_p): Same.
12515 (loop_exits_before_overflow): Same.
12516 (scev_var_range_cant_overflow): Same.
12517 (scev_probably_wraps_p): Same.
12518 (free_numbers_of_iterations_estimates): Same.
12519 * tree-ssa-loop-niter.h: Same.
12520 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12521 (idx_analyze_ref): Same.
12522 (analyze_ref): Same.
12523 (gather_memory_references_ref): Same.
12524 (mark_nontemporal_store): Same.
12525 (emit_mfence_after_loop): Same.
12526 (may_use_storent_in_loop_p): Same.
12527 (mark_nontemporal_stores): Same.
12528 (should_unroll_loop_p): Same.
12529 (volume_of_dist_vector): Same.
12530 (add_subscript_strides): Same.
12531 (self_reuse_distance): Same.
12532 (insn_to_prefetch_ratio_too_small_p): Same.
12533 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12534 (patch_loop_exit): Same.
12535 (find_or_create_guard_phi): Same.
12536 (easy_exit_values): Same.
12537 (connect_loop_phis): Same.
12538 (connect_loops): Same.
12539 (compute_new_first_bound): Same.
12540 (split_loop): Same.
12541 (tree_ssa_split_loops): Same.
12542 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12543 (is_maybe_undefined): Same.
12544 (tree_may_unswitch_on): Same.
12545 (simplify_using_entry_checks): Same.
12546 (tree_unswitch_single_loop): Same.
12547 (tree_unswitch_loop): Same.
12548 (tree_unswitch_outer_loop): Same.
12549 (empty_bb_without_guard_p): Same.
12550 (used_outside_loop_p): Same.
12551 (get_vop_from_header): Same.
12552 (hoist_guard): Same.
12553 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12554 (get_lsm_tmp_name): Same.
12555 * tree-ssa-loop.h: Same.
12556 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12557 (build_and_add_sum): Same.
12558 (no_side_effect_bb): Same.
12559 (get_ops): Same.
12560 (linearize_expr): Same.
12561 (should_break_up_subtract): Same.
12562 (linearize_expr_tree): Same.
12563 * tree-ssa-scopedtables.c: Same.
12564 * tree-ssa-scopedtables.h: Same.
12565 * tree-ssa-structalias.c (condense_visit): Same.
12566 (label_visit): Same.
12567 (dump_pred_graph): Same.
12568 (perform_var_substitution): Same.
12569 (move_complex_constraints): Same.
12570 (remove_preds_and_fake_succs): Same.
12571 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12572 (determine_bb_domination_status): Same.
12573 (duplicate_thread_path): Same.
12574 (thread_through_all_blocks): Same.
12575 * tree-ssa-threadupdate.h: Same.
12576 * tree-streamer-in.c (streamer_read_string_cst): Same.
12577 (input_identifier): Same.
12578 (unpack_ts_type_common_value_fields): Same.
12579 (unpack_ts_block_value_fields): Same.
12580 (unpack_ts_translation_unit_decl_value_fields): Same.
12581 (unpack_ts_omp_clause_value_fields): Same.
12582 (streamer_read_tree_bitfields): Same.
12583 (streamer_alloc_tree): Same.
12584 (lto_input_ts_common_tree_pointers): Same.
12585 (lto_input_ts_vector_tree_pointers): Same.
12586 (lto_input_ts_poly_tree_pointers): Same.
12587 (lto_input_ts_complex_tree_pointers): Same.
12588 (lto_input_ts_decl_minimal_tree_pointers): Same.
12589 (lto_input_ts_decl_common_tree_pointers): Same.
12590 (lto_input_ts_decl_non_common_tree_pointers): Same.
12591 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12592 (lto_input_ts_field_decl_tree_pointers): Same.
12593 (lto_input_ts_function_decl_tree_pointers): Same.
12594 (lto_input_ts_type_common_tree_pointers): Same.
12595 (lto_input_ts_type_non_common_tree_pointers): Same.
12596 (lto_input_ts_list_tree_pointers): Same.
12597 (lto_input_ts_vec_tree_pointers): Same.
12598 (lto_input_ts_exp_tree_pointers): Same.
12599 (lto_input_ts_block_tree_pointers): Same.
12600 (lto_input_ts_binfo_tree_pointers): Same.
12601 (lto_input_ts_constructor_tree_pointers): Same.
12602 (lto_input_ts_omp_clause_tree_pointers): Same.
12603 (streamer_read_tree_body): Same.
12604 * tree-streamer.h: Same.
12605 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12606 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12607 (vect_analyze_possibly_independent_ddr): Same.
12608 (vect_analyze_data_ref_dependence): Same.
12609 (vect_compute_data_ref_alignment): Same.
12610 (vect_enhance_data_refs_alignment): Same.
12611 (vect_analyze_data_ref_access): Same.
12612 (vect_check_gather_scatter): Same.
12613 (vect_find_stmt_data_reference): Same.
12614 (vect_create_addr_base_for_vector_ref): Same.
12615 (vect_setup_realignment): Same.
12616 (vect_supportable_dr_alignment): Same.
12617 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12618 (adjust_phi_and_debug_stmts): Same.
12619 (vect_set_loop_mask): Same.
12620 (add_preheader_seq): Same.
12621 (vect_maybe_permute_loop_masks): Same.
12622 (vect_set_loop_masks_directly): Same.
12623 (vect_set_loop_condition_masked): Same.
12624 (vect_set_loop_condition_unmasked): Same.
12625 (slpeel_duplicate_current_defs_from_edges): Same.
12626 (slpeel_add_loop_guard): Same.
12627 (slpeel_can_duplicate_loop_p): Same.
12628 (create_lcssa_for_virtual_phi): Same.
12629 (iv_phi_p): Same.
12630 (vect_update_ivs_after_vectorizer): Same.
12631 (vect_gen_vector_loop_niters_mult_vf): Same.
12632 (slpeel_update_phi_nodes_for_loops): Same.
12633 (slpeel_update_phi_nodes_for_guard1): Same.
12634 (find_guard_arg): Same.
12635 (slpeel_update_phi_nodes_for_guard2): Same.
12636 (slpeel_update_phi_nodes_for_lcssa): Same.
12637 (vect_do_peeling): Same.
12638 (vect_create_cond_for_alias_checks): Same.
12639 (vect_loop_versioning): Same.
12640 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12641 (vect_inner_phi_in_double_reduction_p): Same.
12642 (vect_analyze_scalar_cycles_1): Same.
12643 (vect_fixup_scalar_cycles_with_patterns): Same.
12644 (vect_get_loop_niters): Same.
12645 (bb_in_loop_p): Same.
12646 (vect_get_max_nscalars_per_iter): Same.
12647 (vect_verify_full_masking): Same.
12648 (vect_compute_single_scalar_iteration_cost): Same.
12649 (vect_analyze_loop_form_1): Same.
12650 (vect_analyze_loop_form): Same.
12651 (vect_active_double_reduction_p): Same.
12652 (vect_analyze_loop_operations): Same.
12653 (neutral_op_for_slp_reduction): Same.
12654 (vect_is_simple_reduction): Same.
12655 (vect_model_reduction_cost): Same.
12656 (get_initial_def_for_reduction): Same.
12657 (get_initial_defs_for_reduction): Same.
12658 (vect_create_epilog_for_reduction): Same.
12659 (vectorize_fold_left_reduction): Same.
12660 (vectorizable_reduction): Same.
12661 (vectorizable_induction): Same.
12662 (vectorizable_live_operation): Same.
12663 (loop_niters_no_overflow): Same.
12664 (vect_get_loop_mask): Same.
12665 (vect_transform_loop_stmt): Same.
12666 (vect_transform_loop): Same.
12667 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12668 (vect_determine_precisions): Same.
12669 (vect_pattern_recog_1): Same.
12670 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12671 * tree-vect-stmts.c (stmt_vectype): Same.
12672 (process_use): Same.
12673 (vect_init_vector_1): Same.
12674 (vect_truncate_gather_scatter_offset): Same.
12675 (get_group_load_store_type): Same.
12676 (vect_build_gather_load_calls): Same.
12677 (vect_get_strided_load_store_ops): Same.
12678 (vectorizable_simd_clone_call): Same.
12679 (vectorizable_store): Same.
12680 (permute_vec_elements): Same.
12681 (vectorizable_load): Same.
12682 (vect_transform_stmt): Same.
12683 (supportable_widening_operation): Same.
12684 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12685 (vec_info::free_stmt_vec_info): Same.
12686 (vect_free_loop_info_assumptions): Same.
12687 (vect_loop_vectorized_call): Same.
12688 (set_uid_loop_bbs): Same.
12689 (vectorize_loops): Same.
12690 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12691 * tree.c (add_tree_to_fld_list): Same.
12692 (fld_type_variant_equal_p): Same.
12693 (fld_decl_context): Same.
12694 (fld_incomplete_type_of): Same.
12695 (free_lang_data_in_binfo): Same.
12696 (need_assembler_name_p): Same.
12697 (find_decls_types_r): Same.
12698 (get_eh_types_for_runtime): Same.
12699 (find_decls_types_in_eh_region): Same.
12700 (find_decls_types_in_node): Same.
12701 (assign_assembler_name_if_needed): Same.
12702 * value-prof.c (stream_out_histogram_value): Same.
12703 * value-prof.h: Same.
12704 * var-tracking.c (use_narrower_mode): Same.
12705 (prepare_call_arguments): Same.
12706 (vt_expand_loc_callback): Same.
12707 (resolve_expansions_pending_recursion): Same.
12708 (vt_expand_loc): Same.
12709 * varasm.c (const_hash_1): Same.
12710 (compare_constant): Same.
12711 (tree_output_constant_def): Same.
12712 (simplify_subtraction): Same.
12713 (get_pool_constant): Same.
12714 (output_constant_pool_2): Same.
12715 (output_constant_pool_1): Same.
12716 (mark_constants_in_pattern): Same.
12717 (mark_constant_pool): Same.
12718 (get_section_anchor): Same.
12719 * vr-values.c (compare_range_with_value): Same.
12720 (vr_values::extract_range_from_phi_node): Same.
12721 * vr-values.h: Same.
12722 * web.c (unionfind_union): Same.
12723 * wide-int.h: Same.
12724
12725 2019-07-09 Martin Sebor <msebor@redhat.com>
12726
12727 PR c++/61339
12728 * align.h: Change class-key from class to struct and vice versa
12729 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12730 * alloc-pool.h: Same.
12731 * asan.c (shadow_mem_size): Same.
12732 * auto-profile.c: Same.
12733 * basic-block.h: Same.
12734 * bitmap.h: Same.
12735 * cfgexpand.c (set_rtl): Same.
12736 (expand_one_stack_var_at): Same.
12737 * cfghooks.h: Same.
12738 * cfgloop.h: Same.
12739 * cgraph.h: Same.
12740 * config/i386/i386.h: Same.
12741 * df-problems.c (df_print_bb_index): Same.
12742 * df-scan.c: Same.
12743 * df.h (df_single_use): Same.
12744 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12745 (layout::annotation_line_showed_range_p): Same.
12746 (get_printed_columns): Same.
12747 (correction::ensure_terminated): Same.
12748 (line_corrections::~line_corrections): Same.
12749 * dojump.h: Same.
12750 * dse.c: Same.
12751 * dump-context.h: Same.
12752 * dumpfile.h: Same.
12753 * dwarf2out.c: Same.
12754 * edit-context.c: Same.
12755 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12756 * flags.h: Same.
12757 * function.c (assign_stack_local): Same.
12758 * function.h: Same.
12759 * gcc.c: Same.
12760 * gcov.c (block_info::block_info): Same.
12761 * genattrtab.c: Same.
12762 * genextract.c: Same.
12763 * genmatch.c (comparison_code_p): Same.
12764 (id_base::id_base): Same.
12765 (decision_tree::print): Same.
12766 * genoutput.c: Same.
12767 * genpreds.c (write_one_predicate_function): Same.
12768 * genrecog.c (validate_pattern): Same.
12769 (find_operand_positions): Same.
12770 (optimize_subroutine_group): Same.
12771 (merge_pattern_transition::merge_pattern_transition): Same.
12772 (merge_pattern_info::merge_pattern_info): Same.
12773 (merge_state_result::merge_state_result): Same.
12774 (merge_into_state): Same.
12775 * gensupport.c: Same.
12776 * gensupport.h: Same.
12777 * ggc-common.c (init_ggc_heuristics): Same.
12778 * ggc-tests.c (test_union): Same.
12779 * gimple-loop-interchange.cc (dump_induction): Same.
12780 * gimple-loop-versioning.cc: Same.
12781 * gimple-match.h (gimple_match_cond::any_else): Same.
12782 * gimple-ssa-backprop.c: Same.
12783 * gimple-ssa-sprintf.c: Same.
12784 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12785 Same.
12786 (store_immediate_info::store_immediate_info): Same.
12787 (merged_store_group::apply_stores): Same.
12788 (get_location_for_stmts): Same.
12789 * gimple-ssa-strength-reduction.c: Same.
12790 * gimple-ssa-warn-alloca.c: Same.
12791 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12792 * godump.c (go_type_decl): Same.
12793 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12794 * hash-map.h: Same.
12795 * hash-set-tests.c (test_set_of_strings): Same.
12796 * hsa-brig.c: Same.
12797 * hsa-common.h: Same.
12798 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12799 * input.c (assert_loceq): Same.
12800 * input.h: Same.
12801 * ipa-cp.c: Same.
12802 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12803 * ipa-fnsummary.h: Same.
12804 * ipa-inline.h: Same.
12805 * ipa-prop.h: Same.
12806 * ipa-split.c (visit_bb): Same.
12807 * ira-int.h (minmax_set_iter_next): Same.
12808 * loop-invariant.c: Same.
12809 * loop-iv.c: Same.
12810 * lra-eliminations.c: Same.
12811 * lra-int.h: Same.
12812 * lra-lives.c (mark_regno_dead): Same.
12813 * lra-remat.c: Same.
12814 * lra-spills.c: Same.
12815 * lto-streamer.h: Same.
12816 * mem-stats.h: Same.
12817 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12818 * omp-low.c (omp_clause_aligned_alignment): Same.
12819 * optabs-query.h (get_vcond_eq_icode): Same.
12820 * optabs.h: Same.
12821 * opts.c (wrap_help): Same.
12822 * poly-int.h: Same.
12823 * predict.c (predict_paths_leading_to_edge): Same.
12824 * pretty-print.h: Same.
12825 * profile-count.h: Same.
12826 * read-md.h: Same.
12827 * read-rtl-function.c: Same.
12828 * ree.c: Same.
12829 * reginfo.c: Same.
12830 * regrename.c: Same.
12831 * regrename.h: Same.
12832 * reload.h: Same.
12833 * rtl-iter.h: Same.
12834 * rtl.h (costs_add_n_insns): Same.
12835 * sanopt.c: Same.
12836 * sched-int.h: Same.
12837 * sel-sched-ir.h: Same.
12838 * selftest.h: Same.
12839 * sese.h (vec_find): Same.
12840 * stmt.c: Same.
12841 * target-globals.h: Same.
12842 * tree-affine.c (aff_combination_find_elt): Same.
12843 * tree-affine.h: Same.
12844 * tree-data-ref.h: Same.
12845 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12846 * tree-predcom.c: Same.
12847 * tree-scalar-evolution.c (find_var_scev_info): Same.
12848 * tree-ssa-alias.h: Same.
12849 * tree-ssa-ccp.c: Same.
12850 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12851 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12852 (rewrite_mem_refs): Same.
12853 (execute_sm_if_changed): Same.
12854 (hoist_memory_references): Same.
12855 * tree-ssa-loop-ivopts.c (operator<=): Same.
12856 * tree-ssa-loop.h: Same.
12857 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12858 * tree-ssa-structalias.c: Same.
12859 * tree-switch-conversion.h (cluster::cluster): Same.
12860 (simple_cluster::simple_cluster): Same.
12861 * tree-vect-patterns.c (type_conversion_p): Same.
12862 * tree-vectorizer.c (dump_stmt_cost): Same.
12863 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12864 * tree.c (protected_set_expr_location): Same.
12865 * tree.h (desired_pro_or_demotion_p): Same.
12866 (fndecl_built_in_p): Same.
12867 * unique-ptr-tests.cc: Same.
12868 * var-tracking.c (delete_variable_part): Same.
12869 * varasm.c (assemble_real): Same.
12870 (tree_output_constant_def): Same.
12871 * vec.c: Same.
12872 * wide-int-bitmask.h: Same.
12873 * wide-int.h (decompose): Same.
12874
12875 2019-07-09 Richard Biener <rguenther@suse.de>
12876
12877 PR tree-optimization/91114
12878 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12879 find a vector type isn't fatal.
12880
12881 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12882
12883 * config/aarch64/aarch64-simd.md
12884 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12885 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12886 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12887 (*aarch64_crypto_aese_fused,
12888 *aarch64_crypto_aesd_fused): Update to new definition.
12889 * config/aarch64/aarch64.c
12890 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12891
12892 2019-07-09 Richard Biener <rguenther@suse.de>
12893
12894 * gimple-match.h (gimple_match_op::resimplify): New.
12895 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12896 gimple_resimplify4, gimple_resimplify5): Remove.
12897 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12898 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12899 Make static.
12900 (gimple_match_op::resimplify): New.
12901 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12902 according to availability. Use gimple_match_op::resimplify.
12903
12904 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12905
12906 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12907
12908 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12909
12910 * config/arm/crypto.md:
12911 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12912 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12913 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12914 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12915 * config/arm/arm.c
12916 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12917 * config/arm/aarch-common-protos.h
12918 (aarch_crypto_can_dual_issue): Remove.
12919 * config/arm/aarch-common.c
12920 (aarch_crypto_can_dual_issue): Likewise.
12921 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12922 * config/arm/cortex-a53.md: Likewise.
12923 * config/arm/cortex-a57.md: Likewise.
12924 * config/arm/iterators.md:
12925 (CRYPTO_BINARY): Redefine.
12926 (CRYPTO_UNARY): Removed.
12927 (CRYPTO_AES, CRYPTO_AESMC): New.
12928
12929 2019-07-09 Richard Biener <rguenther@suse.de>
12930
12931 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12932 (vn_reference_lookup_3): If the main ref has no access path recorded
12933 but orig_ref has use it to do access-path based disambiguation.
12934 (vn_reference_lookup_pieces): Adjust.
12935 (vn_reference_lookup): Pass down original ref if we valueized.
12936
12937 2019-07-09 Martin Liska <mliska@suse.cz>
12938
12939 * doc/extend.texi: Document influence on loop
12940 optimizers.
12941
12942 2019-07-09 Martin Liska <mliska@suse.cz>
12943
12944 * lto-compress.c (lto_normalized_zstd_level): Do not use
12945 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12946 of libzstd. One can use 0 as a default compression level.
12947
12948 2019-07-09 Martin Liska <mliska@suse.cz>
12949
12950 * doc/invoke.texi: Add link from -fprofile-dir option.
12951 Use better wording for 'gcno filename'.
12952
12953 2019-07-08 Martin Sebor <msebor@redhat.com>
12954
12955 PR middle-end/71924
12956 PR middle-end/90549
12957 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12958 comment.
12959 (args_loc_t): New type.
12960 (args_loc_t, locmap_t): same.
12961 (diag_returned_locals): New function.
12962 (is_addr_local): Same.
12963 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12964 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12965 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12966
12967 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12968
12969 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12970 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12971 and casts in offset when different, both through gimple stmts
12972 and through trees. Rewritten using loops to minimize code duplication
12973 for each operand.
12974
12975 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12976
12977 * emit-rtl.c (set_insn_locations): New function moved from...
12978 * function.c (set_insn_locations): ...here.
12979 * ira-emit.c (emit_moves): Propagate location of the first instruction
12980 to the inserted move instructions.
12981 * reg-stack.c (compensate_edge): Set the location if the sequence is
12982 inserted on the edge.
12983 * rtl.h (set_insn_locations): Declare.
12984
12985 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12986
12987 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12988 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12989 .machine string.
12990
12991 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12992
12993 PR rtl-optimization/88233
12994 * common.opt (fsplit-wide-types-early): New option.
12995 * common/config/rs6000/rs6000-common.c
12996 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12997 OPT_LEVELS_ALL.
12998 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12999 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13000 flag_split_wide_types_early.
13001 (pass_data_lower_subreg3): New.
13002 (pass_lower_subreg3): New.
13003 (make_pass_lower_subreg3): New.
13004 * passes.def (pass_lower_subreg2): Move after the loop passes.
13005 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13006 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13007 the pass pipeline; its previous place is taken by ...
13008 (make_pass_lower_subreg3): ... this.
13009
13010 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13011
13012 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13013 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13014
13015 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13016
13017 * config/s390/constraints.md: Add new jsc constraint.
13018 * config/s390/predicates.md: New predicates.
13019 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13020 * config/s390/s390.c (s390_valid_shift_count): New function.
13021 (print_shift_count_operand): Use s390_valid_shift_count.
13022 (print_operand): Likewise.
13023 * config/s390/s390.md: Use new predicate.
13024 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13025 * config/s390/vector.md: Use new predicate.
13026
13027 2019-07-08 Andrew Waterman <andrew@sifive.com>
13028 Jim Wilson <jimw@sifive.com>
13029
13030 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13031 bitsize instead of BITS_PER_WORD.
13032
13033 2019-07-08 Martin Liska <mliska@suse.cz>
13034
13035 * collect2.c (defined): Revert to before r254460.
13036 (scan_prog_file): Revert to before r254460.
13037
13038 2019-07-08 Richard Biener <rguenther@suse.de>
13039
13040 PR tree-optimization/83518
13041 * tree-ssa-sccvn.c: Include splay-tree.h.
13042 (struct pd_range, struct pd_data): New.
13043 (struct vn_walk_cb_data): Add data to track partial definitions.
13044 (vn_walk_cb_data::~vn_walk_cb_data): New.
13045 (vn_walk_cb_data::push_partial_def): New.
13046 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13047 (vn_reference_lookup_2): When partial defs are registered give up.
13048 (vn_reference_lookup_3): Track partial defs for memset and
13049 constructor zeroing and for defs from constants.
13050
13051 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 * doc/install.texi (bootstrap-Og): Document.
13054
13055 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13056
13057 * config/riscv/pic.md (*local_pic_load_s<mode>)
13058 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13059 referenced by <mode>, giving...
13060 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13061 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13062 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13063 use <X:MODE> for the mode attribute.
13064
13065 2019-07-07 Jeff Law <law@redhat.com>
13066
13067 PR tree-optimization/91090
13068 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13069 in handling of ranges to simplify switch statements.
13070
13071 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13072
13073 * config/darwin.c (darwin_override_options): Make a final check on PIC
13074 options.
13075
13076 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13077
13078 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13079 on for kernel code.
13080
13081 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13082
13083 PR target/91068
13084 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13085 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13086 instead of matching them to "l" output operands.
13087
13088 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13089
13090 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13091 and check whether addr.reg is nonnull before using it.
13092
13093 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13094
13095 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13096 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13097 variable(s). For conditional lastprivate look through outer
13098 GIMPLE_OMP_SCAN context.
13099 (lower_omp_1): For conditional lastprivate look through outer
13100 GIMPLE_OMP_SCAN context.
13101
13102 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13103 member to combined_into_simd_safelen1.
13104 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13105 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13106 clauses if ctx->combined_into_simd_safelen1 put statements after the
13107 predicate conditionalized block rather than into it.
13108
13109 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13110
13111 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13112 operand 1.
13113 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13114 Make the choice of <mode> explicit, giving...
13115 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13116
13117 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13118
13119 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13120 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13121 of .md attributes.
13122 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13123 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13124 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13125 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13126 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13127 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13128 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13129 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13130 (*avx512f_scatterdi<mode>): Likewise.
13131 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13132
13133 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13134
13135 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13136 specify the mode iterator referenced by <mode>, giving...
13137 (*push1_h8300hs_<QHI:mode>): ...this.
13138
13139 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13140
13141 * config/gcn/gcn-valu.md
13142 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13143 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13144 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13145 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13146 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13147 but using the _exec comparison patterns.
13148 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13149 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13150 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13151 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13152 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13153 but using the _exec comparison patterns.
13154
13155 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13156
13157 * config/arm/sync.md
13158 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13159 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13160 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13161 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13162 <SIDI:cas_cmp_str>.
13163
13164 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13165
13166 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13167 (maybe_lookup_ctx): Add forward declaration.
13168 (omp_find_scan): Likewise. Walk into body of simd if composited
13169 with worksharing loop.
13170 (scan_omp_simd_scan): New function.
13171 (scan_omp_1_stmt): Call it.
13172 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13173 ctx->for_simd_scan_phase.
13174 (lower_rec_input_clauses): Do much less work for inscan reductions
13175 in ctx->for_simd_scan_phase is_simd regions.
13176 (lower_omp_scan): Set is_simd also on simd constructs composited
13177 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13178 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13179 emit their body after in simd constructs composited with worksharing
13180 loop.
13181 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13182
13183 * omp-low.c (omp_find_scan): Make static.
13184 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13185 the second loop, var2 represents the first partial sum and so needs
13186 to go before rprivb[ivar].
13187
13188 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13189
13190 * config/rs6000/rs6000-logue.c: Remove unused code.
13191
13192 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13193
13194 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13195
13196 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13197
13198 PR target/90712
13199 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13200 check with a frame laid out check.
13201
13202 2019-07-05 Richard Biener <rguenther@suse.de>
13203
13204 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13205 when comparing against a store with possibly the same value.
13206
13207 2019-07-05 Richard Biener <rguenther@suse.de>
13208
13209 PR tree-optimization/91091
13210 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13211 (walk_non_aliased_vuses): Likewise.
13212 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13213 (get_continuation_for_phi): New tbaa_p parameter and pass
13214 it down.
13215 (walk_non_aliased_vuses): Likewise.
13216 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13217 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13218 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13219 Likewise.
13220 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13221 (adjust_offsets_for_equal_base_address): New function.
13222 (vn_reference_lookup_3): Use it to catch more base equivalences.
13223 Handle and pass down tbaa_p flag.
13224 (vn_reference_lookup_pieces): Adjust.
13225 (vn_reference_lookup): Remove alias-set altering, instead pass
13226 down false as tbaa_p.
13227
13228 2019-07-05 Richard Biener <rguenther@suse.de>
13229
13230 PR tree-optimization/91091
13231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13232 accesses can happen with -fno-strict-aliasing.
13233
13234 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13235
13236 * tree-ssa-alias.c (alias_stats): Add
13237 nonoverlapping_component_refs_since_match_p_must_overlap.
13238 (dump_alias_stats): Print it.
13239 (nonoverlapping_component_refs_since_match_p): Add early exit.
13240 (nonoverlapping_component_refs_p): Do not account early exit.
13241
13242 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13243
13244 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13245 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13246 (emit_eh_dispatch): Delete.
13247 (lower_catch): Emit the eh_dispatch manually and set the location of
13248 the first catch statement onto it.
13249 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13250 (lower_eh_dispatch): Propagate location.
13251 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13252 (eliminate_build): Likewise.
13253
13254 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13255
13256 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13257 phi nodes if possible.
13258 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13259 location info on the newly created statement.
13260 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13261 newly created increment if needed.
13262
13263 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13264
13265 PR middle-end/78884
13266 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13267 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13268 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13269 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13270 ctx->add_safelen1 is set.
13271
13272 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13273 GOMP_loop_start at the start of second worksharing loop in a scan.
13274 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13275 worksharing loop in a scan even if there are conditional lastprivates,
13276 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13277
13278 2019-07-04 Jan Hubicka <jh@suse.cz>
13279
13280 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13281 Fix check for match in the ref walk.
13282
13283 2019-07-04 Martin Liska <mliska@suse.cz>
13284
13285 * tree-ssa-loop-niter.c
13286 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13287 (estimate_numbers_of_iterations):
13288 Support __builtin_expect_with_probability for analysis
13289 of # of loop iterations.
13290
13291 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13292
13293 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13294 * except.c: Likewise.
13295 * expr.c (expand_expr_real_1): Reject it.
13296 * gimplify.c (gimplify_expr): Gimplify it, within
13297 TRY_FINALLY_EXPR.
13298 * tree-dump.c (dequeue_and_dump): Dump it.
13299 * tree-pretty-print.c (dump_generic_node): Likewise.
13300 * tree.c (block_may_fallthru): Handle it.
13301 * tree.def (EH_ELSE_EXPR): Introduce it.
13302 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13303 with GIMPLE_EH_ELSE as try/finally/else.
13304
13305 2019-07-04 Richard Biener <rguenther@suse.de>
13306
13307 PR ipa/91062
13308 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13309 parameter whether to disable GC collection.
13310 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13311 honor it.
13312 (execute_all_ipa_transforms): Likewise and pass it down.
13313 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13314 collection from applying IPA transforms.
13315 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13316 from applying IPA transforms.
13317
13318 2019-07-04 Richard Biener <rguenther@suse.de>
13319
13320 PR tree-optimization/90911
13321 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13322 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13323 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13324 scalar_loop_scaling.
13325 (vect_transform_loop): Scale scalar loop profile if needed.
13326 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13327 the loop copy from if-conversion adjust edge probabilities
13328 and scale the vectorized loop body profile, queue the scalar
13329 profile for updating after peeling.
13330
13331 2019-07-04 Jan Hubicka <jh@suse.cz>
13332
13333 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13334 parameters; return early for must-alias.
13335 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13336 outer types match, try nonoverlapping_component_refs
13337 if must-alias is not obvious.
13338 (indirect_refs_may_alias_p): Likewise.
13339 (refs_may_alias_p_2): Likewise.
13340
13341 2019-07-04 Richard Biener <rguenther@suse.de>
13342
13343 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13344 argument.
13345 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13346 globals into...
13347 (struct vn_walk_cb_data): New callback data struct.
13348 (vn_reference_lookup_2): Adjust.
13349 (vn_reference_lookup_3): Likewise.
13350 (vn_reference_lookup_pieces): Likewise.
13351 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13352 (visit_reference_op_load): Adjust.
13353
13354 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13355
13356 PR tree-optimization/91063
13357 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13358 stmt from stmts sequence before calling vect_init_vector_1.
13359 Formatting fix.
13360
13361 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13362
13363 PR target/88833
13364 * fwprop.c (reg_single_def_p): New function.
13365 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13366 (forward_propagate_into): New parameter reg_prop_only
13367 with default value false.
13368 Propagate def's src into loop only if SET_SRC and SET_DEST
13369 of def_set have single definitions.
13370 Likewise if reg_prop_only is set to true.
13371 (fwprop): New param fwprop_addr_p.
13372 Integrate fwprop_addr into fwprop.
13373 (fwprop_addr): Remove.
13374 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13375 to true.
13376 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13377 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13378 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13379
13380 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13381
13382 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13383 in worksharing loop scans.
13384
13385 PR tree-optimization/91074
13386 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13387 temporary.
13388
13389 PR rtl-optimization/90756
13390 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13391 for VECTOR_TYPE_P.
13392
13393 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13394
13395 * config/aarch64/aarch64.md: Remove redundant constraints from
13396 define_expand but keep some patterns untouched if they are
13397 specially selected by TARGET_SECONDARY_RELOAD hook.
13398 * config/aarch64/aarch64-sve.md: Likewise.
13399 * config/aarch64/atomics.md: Remove redundant constraints from
13400 define_expand.
13401 * config/aarch64/aarch64-simd.md: Likewise.
13402
13403 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13404
13405 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13406 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13407 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13408 clauses.
13409 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13410 DARWIN_NOPIE_SPEC.
13411
13412 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13413
13414 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13415 (STARTFILE_SPEC): Split crt3 into a separate spec.
13416 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13417 (DARWIN_CRT2_SPEC): New.
13418 (DARWIN_CRT3_SPEC): New.
13419 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13420 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13421 (DARWIN_CRT3_SPEC): New.
13422
13423 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13424
13425 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13426 Change the RTL attribute "length" from "4" to "*" to allow the
13427 length attribute to be adjusted automatically for prefixed load,
13428 store, and add immediate instructions.
13429 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13430 Likewise.
13431 (extendsi<mode>2, EXTSI iterator): Likewise.
13432 (movsi_internal1): Likewise.
13433 (movsi_from_sf): Likewise.
13434 (movdi_from_sf_zero_ext): Likewise.
13435 (mov<mode>_internal): Likewise.
13436 (movcc_internal1, QHI iterator): Likewise.
13437 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13438 (movsf_from_si): Likewise.
13439 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13440 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13441 (mov<mode>, FMOVE128 iterator): Likewise.
13442 (movdi_internal64): Likewise.
13443 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13444 Likewise.
13445 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13446 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13447 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13448 (vsx_splat_v4sf): Likewise.
13449
13450 2019-07-03 Mark Wielaard <mark@klomp.org>
13451
13452 PR debug/90981
13453 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13454 DW_AT_addr_base if there is actually a .debug_addr section with
13455 addresses.
13456 (output_addr_table): Add DWARF5 table header generation here after
13457 checking there are actually any addresses from...
13458 (dwarf2out_finish): ...here.
13459
13460 2019-07-03 Richard Biener <rguenther@suse.de>
13461
13462 PR middle-end/91069
13463 * match.pd (vec_perm -> bit_insert): Fix element read from
13464 first vector.
13465
13466 2019-07-03 Martin Liska <mliska@suse.cz>
13467
13468 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13469 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13470 condition.
13471 * generic-match-head.c: Include dbgcnt.h.
13472 * gimple-match-head.c: Likewise.
13473
13474 2019-07-03 Martin Liska <mliska@suse.cz>
13475
13476 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13477 (GCOV_COUNTER_V_TOPN): New.
13478 (GCOV_COUNTER_V_INDIR): Use _topn.
13479 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13480 (GCOV_TOPN_VALUES): New.
13481 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13482 (GCOV_TOPN_VALUES_COUNTERS): New.
13483 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13484 * tree-profile.c:
13485 (gimple_init_gcov_profiler): Rename variables from one_value
13486 to topn_values.
13487 (gimple_gen_one_value_profiler): Remove.
13488 (gimple_gen_topn_values_profiler): New function.
13489 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13490 names instead of SINGLE_VALUE.
13491 (stream_out_histogram_value): Likewise.
13492 (stream_in_histogram_value): Likewise.
13493 (get_most_common_single_value): Likewise.
13494 (gimple_divmod_fixed_value_transform): Likewise.
13495 (gimple_stringops_transform): Likewise.
13496 (gimple_divmod_values_to_profile): Likewise.
13497 (gimple_stringops_values_to_profile): Likewise.
13498 (gimple_find_values_to_profile): Likewise.
13499 * value-prof.h (enum hist_type): Rename to TOPN.
13500 (gimple_gen_one_value_profiler): Remove.
13501 (gimple_gen_topn_values_profiler): New.
13502
13503 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13504
13505 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13506 if it has the DW_AT_data_member_location attribute.
13507
13508 2019-07-03 Richard Biener <rguenther@suse.de>
13509
13510 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13511 dumping.
13512
13513 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13514
13515 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13516 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13517 (tlsdesc_small_sve_<mode>): Likewise.
13518
13519 2019-07-03 Martin Liska <mliska@suse.cz>
13520
13521 * Makefile.in: Define ZSTD_LIB.
13522 * common.opt: Adjust compression level
13523 to support also zstd levels.
13524 * config.in: Regenerate.
13525 * configure: Likewise.
13526 * configure.ac: Add --with-zstd and --with-zstd-include options
13527 and detect ZSTD.
13528 * doc/install.texi: Mention zstd dependency.
13529 * gcc.c: Print supported LTO compression algorithms.
13530 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13531 (lto_compression_zstd): Likewise.
13532 (lto_uncompression_zstd): Likewise.
13533 (lto_end_compression): Dispatch in between zlib and zstd.
13534 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13535 (lto_uncompression_zlib): Make it static.
13536 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13537 * lto-section-in.c (lto_get_section_data): Pass info
13538 about used compression.
13539 * lto-streamer-out.c: By default use zstd when possible.
13540 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13541 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13542
13543 2019-07-03 Martin Liska <mliska@suse.cz>
13544
13545 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13546 * lto-section-out.c (lto_destroy_simple_output_block): Never
13547 compress LTO_section_lto section.
13548 * lto-streamer-out.c (produce_asm): Do not set major_version
13549 and minor_version.
13550 (lto_output_toplevel_asms): Likewise.
13551 (produce_lto_section): New function.
13552 (lto_output): Call produce_lto_section.
13553 (lto_write_mode_table): Do not set major_version and
13554 minor_version.
13555 (produce_asm_for_decls): Likewise.
13556 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13557 type.
13558 (struct lto_header): Remove.
13559 (struct lto_section): New struct.
13560 (struct lto_simple_header): Do not inherit from lto_header.
13561 (struct lto_file_decl_data): Add lto_section_header field.
13562
13563 2019-07-03 Martin Liska <mliska@suse.cz>
13564
13565 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13566 dead assignemts.
13567 * reg-stack.c (check_asm_stack_operands): Likewise.
13568 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13569 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13570 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13571 force_expand_binop.
13572
13573 2019-07-03 Martin Liska <mliska@suse.cz>
13574
13575 PR tree-optimization/90892
13576 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13577 in string constants.
13578
13579 2019-07-03 Martin Liska <mliska@suse.cz>
13580
13581 PR middle-end/90899
13582 * multiple_target.c (create_dispatcher_calls): Add to comdat
13583 group only if set for ifunc.
13584
13585 2019-07-03 Martin Liska <mliska@suse.cz>
13586
13587 PR target/88056
13588 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13589 Define local_object_name in outer scope in order to handle
13590 use-after-scope issue.
13591
13592 2019-07-03 Martin Liska <mliska@suse.cz>
13593
13594 * common.opt: Add fprofile-note.
13595 * coverage.c (coverage_init): Append the option
13596 to bbg_file_name.
13597 * doc/invoke.texi: Document -fprofile-note.
13598
13599 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13600
13601 PR tree-optimization/91033
13602 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13603 vect_analyze_data_refs): Add bool * arguments.
13604 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13605 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13606 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13607 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13608 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13609 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13610 vect_analyze_data_refs caller.
13611
13612 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13613 clause.
13614 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13615 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13616 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13617 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13618 OMP_CLAUSE__SCANTEMP_ entry.
13619 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13620 * tree-pretty-print.c (dump_omp_clause): Likewise.
13621 * tree-nested.c (convert_nonlocal_omp_clauses,
13622 convert_local_omp_clauses): Likewise.
13623 * omp-general.h (struct omp_for_data): Add have_scantemp and
13624 have_nonctrl_scantemp members.
13625 * omp-general.c (omp_extract_for_data): Initialize them.
13626 * omp-low.c (struct omp_context): Add scan_exclusive member.
13627 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13628 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13629 ctx->scan_exclusive.
13630 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13631 of !ctx->scan_inclusive.
13632 (lower_rec_input_clauses): Simplify gimplification of dtors using
13633 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13634 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13635 loops. Don't add barrier for reduction_omp_orig_ref if
13636 ctx->scan_??xclusive.
13637 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13638 (lower_omp_scan): Use ctx->scan_exclusive instead
13639 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13640 reductions. Use new_vard != new_var instead of repeated
13641 omp_is_reference calls.
13642 (omp_find_scan, lower_omp_for_scan): New functions.
13643 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13644 inscan reductions.
13645 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13646 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13647 and fd->have_scantemp.
13648
13649 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13650 on worksharing loop propagate it as shared clause to containing
13651 combined parallel.
13652
13653 * omp-expand.c (expand_omp_for_static_nochunk,
13654 expand_omp_for_static_chunk): For nowait worksharing loop with
13655 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13656 at the end.
13657
13658 2019-07-02 qing zhao <qing.zhao@oracle.com>
13659
13660 PR preprocessor/90581
13661 * doc/cppopts.texi: Add document for -fmax-include-depth.
13662 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13663
13664 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13665
13666 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13667 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13668 (mmx_packssdw): Ditto.
13669 (mmx_punpckhbw): Ditto.
13670 (mmx_punpcklbw): Ditto.
13671 (mmx_punpckhwd): Ditto.
13672 (mmx_punpcklwd): Ditto.
13673 (mmx_punpckhdq): Ditto.
13674 (mmx_punpckldq): Ditto.
13675 (*vec_dupv4hi): Ditto.
13676 (*vec_dupv2si): Ditto.
13677 (mmx_pmovmskb): Ditto.
13678 * config/i386/sse.md (sse_cvtpi2ps): Use
13679 TARGET_SSE2 && SSE_REG_P in split condition.
13680 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13681 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13682 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13683 (ssse3_pshufbv8qi3): Ditto.
13684 (ssse3_palignrdi): Ditto.
13685
13686 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13687
13688 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13689 with inlined save and restore.
13690
13691 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13692
13693 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13694 to be inserted on single successor edge of the entry block. Then call
13695 commit_edge_insertions instead of inserting the instructions manually.
13696 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13697 RTL expansion and rebuild jump labels chain.
13698
13699 2019-07-02 Richard Biener <rguenther@suse.de>
13700
13701 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13702 TI_CHREC_KNOWN.
13703 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13704 Define here.
13705 * tree.c (build_common_tree_nodes): Initialize them.
13706 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13707 Make declarations comments.
13708 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13709 chrec_known): Remove definitions.
13710 (initialize_scalar_evolutions_analyzer): Remove.
13711 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13712 * tree-streamer.c (preload_common_nodes): Do not preload
13713 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13714
13715 2019-07-02 Jan Hubicka <jh@suse.cz>
13716
13717 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13718 sanity check.
13719
13720 2019-07-02 Jan Hubicka <jh@suse.cz>
13721
13722 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13723 to ..
13724 (nonoverlapping_component_refs_since_match_p): ... this one;
13725 handle also non-decl bases; return -1 if search gave up.
13726 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13727 nonoverlapping_component_refs_of_decl_p_no_alias to
13728 nonoverlapping_component_refs_since_match_p_may_alias,
13729 nonoverlapping_component_refs_since_match_p_no_alias.
13730 (dump_alias_stats): Update dumping.
13731 (aliasing_matching_component_refs_p): Break out from ...;
13732 dispatch to nonoverlapping_component_refs_for_decl_p
13733 and nonoverlapping_component_refs_since_match_p.
13734 (aliasing_component_refs_p): ... here; call
13735 nonoverlapping_component_refs_p in scenarios where we can not
13736 precisely determine base match.
13737 (decl_refs_may_alias_p): Use
13738 nonoverlapping_component_refs_since_match_p.
13739 (indirect_ref_may_alias_decl_p): Do not call
13740 nonoverlapping_component_refs_p.
13741 (indirect_refs_may_alias_p): Likewise.
13742
13743 2019-07-02 Jan Hubicka <jh@suse.cz>
13744
13745 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13746 to clobber of return value.
13747
13748 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13749
13750 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13751 for is_neon_type instructions that have not already been categorized.
13752
13753 2019-07-02 Richard Biener <rguenther@suse.de>
13754
13755 PR tree-optimization/58483
13756 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13757 for MEM_REF base hashing.
13758 (equal_mem_array_ref_p): Likewise for base comparison.
13759
13760 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13761
13762 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13763 parameterized name.
13764 (signbit<mode>2): Use that name. Simplify.
13765
13766 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13767
13768 PR middle-end/66726
13769 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13770 Tune heuristic from PR71016 to allow MIN / MAX.
13771
13772 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13773
13774 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13775 parameterized name.
13776 (abs<mode>2): Use that name. Simplify.
13777
13778 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13779
13780 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13781 parameterized name.
13782 (neg<mode>2): Use that name. Simplify.
13783
13784 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13785
13786 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13787 name.
13788 (abs<mode>2): Use that name. Simplify.
13789
13790 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13791
13792 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13793 name.
13794 (neg<mode>2): Use that name. Simplify.
13795
13796 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13797
13798 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13799 ("enabled" attribute): Handle sse_noavx isa attribute.
13800 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13801 Use TARGET_SSE && SSE_REGNO_P in split condition.
13802 (*vec_dupv2sf): Ditto.
13803
13804 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13805
13806 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13807 name.
13808 (floatsi<mode>2): Use that name. Simplify.
13809
13810 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13811
13812 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13813 parameterized name.
13814 (extenddf<mode>2_vsx): Make this a parameterized name.
13815 (extenddf<mode>2): Use those names. Simplify.
13816
13817 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13818
13819 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13820 name.
13821 (eh_return): Use that name. Simplify.
13822
13823 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13824
13825 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13826 (doloop_end): Use that name. Simplify.
13827
13828 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13829
13830 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13831 parameterized name.
13832 (indirect_jump): Use that name. Simplify.
13833
13834 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13835
13836 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13837 parameterized name.
13838 (abs<mode>2): Use that name. Simplify.
13839
13840 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13841
13842 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13843 parameterized name.
13844 (fix_trunc<mode>si2): Use that name. Simplify.
13845
13846 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13847
13848 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13849 (allocate_stack): Use that name. Simplify.
13850
13851 2019-07-01 Martin Sebor <msebor@redhat.com>
13852
13853 PR middle-end/90923
13854 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13855 (hash_map::get_or_insert): Same. Reformat comment.
13856 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13857 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13858 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13859 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13860 (hash_table::hash_table (const hash_table&)): Use copy ctor
13861 instead of assignment to copy elements.
13862
13863 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13864 John David Anglin <danglin@gcc.gnu.org>
13865
13866 PR target/90963
13867 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13868 using saved frame pointer.
13869
13870 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13871
13872 PR middle-end/64242
13873 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13874 Add frame clobber and schedule blockage.
13875
13876 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13877
13878 * doc/invoke.texi (Link Options): Further editorial changes to
13879 -flinker-output docs.
13880
13881 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13882
13883 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13884 Load both operands of a PLUS into registers separately.
13885
13886 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13887
13888 * config/s390/vector.md: Fix shift count operand printing.
13889
13890 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13891
13892 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13893
13894 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13895
13896 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13897 Use recog_data to test for an output operand.
13898
13899 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13900
13901 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13902 exclude any others that are disparaged or that are bound to need
13903 a reload or spill.
13904 (ira_get_dup_out_num): Expand comment.
13905
13906 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13907
13908 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13909 constraint string for each operand/alternative combo. Only handle
13910 '%' at the start of constraint strings, and look for it outside
13911 the main loop.
13912
13913 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13914
13915 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13916 alternative_mask instead of HARD_REG_SET to represent a
13917 bitmask of alternatives.
13918 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13919 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13920
13921 2019-07-01 Martin Liska <mliska@suse.cz>
13922
13923 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13924 use () for a constructor call.
13925 (test_applying_fixits_line_out_of_range): Likewise.
13926 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13927 argument.
13928 (free_page): Likewise.
13929
13930 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13931
13932 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13933 parameter names to match usage (no functional change).
13934 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13935
13936 2019-07-01 Richard Biener <rguenther@suse.de>
13937
13938 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13939 pass parameter.
13940 (pass_fre::execute): Honor it.
13941 * passes.def: Adjust pass_fre invocations to allow iterating,
13942 add non-iterating pass_fre before late threading/dom.
13943
13944 2019-07-01 Richard Biener <rguenther@suse.de>
13945
13946 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13947 TARGET_MEM_REF handling to also handle address-taken ones.
13948
13949 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13950
13951 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13952 hardware attributes): Document avx512vp2intersect.
13953
13954 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13955
13956 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13957 (abs<mode>2): New expander.
13958 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13959 Use CODE_FOR_ssse3_absv8qi2.
13960 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13961 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13962
13963 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13964
13965 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13966 to sse, sse_noavx and avx. Update all uses.
13967
13968 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13969
13970 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13971 (*mmx_<plusminus_insn><mode>3): Ditto.
13972 (*mmx_mulv4hi3"): Ditto.
13973 (*mmx_smulv4hi3_highpart): Ditto.
13974 (*mmx_umulv4hi3_highpart): Ditto.
13975 (*mmx_pmaddwd): Ditto.
13976 (*sse2_umulv1siv1di3): Ditto.
13977 (*mmx_<code>v4hi3): Ditto.
13978 (*mmx_<code>v8qi3): Ditto.
13979 (mmx_ashr<mode>3): Ditto.
13980 ("mmx_<shift_insn><mode>3): Ditto.
13981 (*mmx_eq<mode>3): Ditto.
13982 (mmx_gt<mode>3): Ditto.
13983 (mmx_andnot<mode>3): Ditto.
13984 (*mmx_<code><mode>3): Ditto.
13985 (*mmx_pinsrw): Ditto.
13986 (*mmx_pextrw): Ditto.
13987 (mmx_pshufw_1): Ditto.
13988 (*mmx_uavgv8qi3): Ditto.
13989 (*mmx_uavgv4hi3): Ditto.
13990 ("mmx_psadbw): Ditto.
13991 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13992 (sse_cvttps2pi): Ditto.
13993 (ssse3_pmaddubsw): Ditto.
13994 (*ssse3_pmulhrswv4hi3): Ditto.
13995 (ssse3_psign<mode>3): Ditto.
13996
13997 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13998
13999 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14000 adjustment for bit-fields to all aggregate types.
14001
14002 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14003
14004 * config/rs6000/predicates.md (pcrel_address): Use
14005 SYMBOL_REF_LOCAL_P to determine if a label is local.
14006 (pcrel_external_address): New predicate.
14007 (non_prefixed_mem_operand): Delete, predicate not used.
14008 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14009 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14010 addressing.
14011 (SYMBOL_REF_PCREL_P): Likewise.
14012
14013 PR target/91009
14014 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14015 alternative.
14016 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14017 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14018 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14019
14020 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14021
14022 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14023 override on extra_headers.
14024
14025 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14026
14027 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14028 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14029 from warning.
14030 (darwin_driver_init): Likewise.
14031
14032 2019-06-28 Jan Beulich <jbeulich@suse.com>
14033
14034 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14035 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14036 Eliminate redundant alternative.
14037
14038 2019-06-28 Jan Beulich <jbeulich@suse.com>
14039
14040 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14041 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14042 Use vector_operand.
14043
14044 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14045
14046 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14047 having a lower cost regardless of the speed option.
14048
14049 2019-06-28 Jan Beulich <jbeulich@suse.com>
14050
14051 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14052 vector_operand plus, on both alternatives, "Bm" constraint.
14053
14054 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14055
14056 * config/arm/arm.md: Remove redundant constraints from
14057 define_expand but leave reload_inm and reload_outm patterns
14058 untouched since they need special constraints to work.
14059 * config/arm/arm-fixed.md: Remove redundant constraints from
14060 define_expand.
14061 * config/arm/iwmmxt.md: Likewise.
14062 * config/arm/neon.md: Likewise.
14063 * config/arm/sync.md: Likewise.
14064 * config/arm/thumb1.md: Likewise.
14065 * config/arm/vec-common.md: Likewise.
14066
14067 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14068
14069 * doc/install.texi: Document --disable-tm-clone-registry.
14070
14071 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14072
14073 PR c++/91024
14074 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14075 statements.
14076
14077 PR tree-optimization/91010
14078 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14079 return true. Otherwise, don't call operand_equal_p if offset1 or
14080 offset2 is NULL and just return false.
14081
14082 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14083
14084 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14085 user-specified float mode choice for kernel mode code.
14086
14087 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14088
14089 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14090 spec.
14091
14092 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14093
14094 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14095 use longcall for 64b code.
14096
14097 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14098
14099 * builtins.c (get_memory_rtx): Fix comment.
14100 * optabs.def (movmem_optab): Change to cpymem_optab.
14101 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14102 (emit_block_move_hints): Change movmem to cpymem.
14103 * defaults.h: Change movmem to cpymem.
14104 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14105 (default_use_by_pieces_infrastructure_p): Ditto.
14106 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14107 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14108 to cpymem.
14109 * config/aarch64/aarch64.h: Change movmem to cpymem.
14110 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14111 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14112 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14113 movmem to cpymem.
14114 * config/arc/arc-protos.h: Change movmem to cpymem.
14115 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14116 * config/arc/arc.h: Change movmem to cpymem in comment.
14117 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14118 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14119 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14120 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14121 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14122 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14123 * config/avr/avr-protos.h: Change movmem to cpymem.
14124 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14125 avr_out_movmem): Change movmem to cpymem.
14126 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14127 Change movmem to cpymem.
14128 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14129 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14130 Change movmem to cpymem.
14131 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14132 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14133 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14134 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14135 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14136 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14137 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14138 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14139 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14140 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14141 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14142 expand_small_cpymem_or_setmem,
14143 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14144 expand_set_or_cpymem_constant_prologue,
14145 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14146 * config/i386/i386-protos.h: Change movmem to cpymem.
14147 * config/i386/i386.h: Change movmem to cpymem in comment.
14148 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14149 (setmem<mode>): Change expansion function name.
14150 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14151 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14152 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14153 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14154 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14155 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14156 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14157 to cpymem.
14158 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14159 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14160 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14161 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14162 Change movmem to cpymem.
14163 * config/mips/mips.h: Change movmem to cpymem.
14164 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14165 * config/nds32/nds32-memory-manipulation.c
14166 (nds32_expand_movmemsi_loop_unknown_size,
14167 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14168 nds32_expand_movmemsi_unroll,
14169 nds32_expand_movmemsi): Change movmem to cpymem.
14170 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14171 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14172 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14173 (pa_adjust_insn_length): Change call to compute_movmem_length.
14174 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14175 movmemdi, movmemdi_prereload,
14176 movmemdi_postreload): Change movmem to cpymem.
14177 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14178 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14179 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14180 * config/riscv/riscv.h: Change movmem to cpymem.
14181 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14182 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14183 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14184 movmem to cpymem.
14185 * config/s390/s390-protos.h: Change movmem to cpymem.
14186 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14187 s390_expand_insv): Change movmem to cpymem.
14188 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14189 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14190 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14191 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14192 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14193 for nonexistent function.
14194 * config/vax/vax.h: Change movmem to cpymem in comment.
14195 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14196 * config/visium/visium.h: Change movmem to cpymem in comment.
14197 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14198 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14199 * doc/md.texi: Change movmem to cpymem and update description to match.
14200 * doc/rtl.texi: Change movmem to cpymem.
14201 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14202 * doc/tm.texi: Regenerate.
14203
14204 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14205
14206 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14207 -fvariable-expansion-in-unroller by default.
14208 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14209 default for Power.
14210
14211 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14212
14213 Revert
14214 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14215 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14216
14217 * config.gcc(rs6000-*-*): Define target_gtfiles.
14218
14219 2019-06-27 Jan Hubicka <jh@suse.cz>
14220
14221 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14222 (add_type_duplicate): When odr hash is not allocated, to nothing.
14223 (odr_based_tbaa_p): New function.
14224 (set_type_canonical_for_odr_type): New function.
14225 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14226 set_type_canonical_for_odr_type): New.
14227 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14228 ODR based TBAA are not equivalent to non-ODR types.
14229
14230 2019-06-27 Martin Liska <mliska@suse.cz>
14231
14232 PR tree-optimization/90974
14233 PR rtl-optimization/90975
14234 PR rtl-optimization/90976
14235 PR target/91016
14236 PR tree-optimization/91017
14237 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14238 unused tmp.
14239 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14240 initial commit of IRA.
14241 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14242 of op0 and op1.
14243 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14244 Remove unused mode1.
14245 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14246 to new_stmt_info.
14247
14248 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14249
14250 PR target/90991
14251 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14252 instead of register_operand for operands[1], add m to its constraints
14253 if operands[2] uses "C" constraint. Ensure in condition that if
14254 operands[2] is not 0, then operands[1] is not a MEM. For last two
14255 alternatives, use unaligned loads instead of aligned if operands[1] is
14256 misaligned_operand.
14257
14258 2019-06-27 Martin Liska <mliska@suse.cz>
14259
14260 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14261 dead assignments.
14262 * bt-load.c (move_btr_def): Likewise.
14263 * builtins.c (expand_builtin_apply_args_1): Likewise.
14264 (expand_builtin_apply): Likewise.
14265 * cfgexpand.c (expand_asm_stmt): Likewise.
14266 (construct_init_block): Likewise.
14267 * cfghooks.c (verify_flow_info): Likewise.
14268 * cfgloopmanip.c (remove_path): Likewise.
14269 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14270 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14271 * combine.c (simplify_if_then_else): Likewise.
14272 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14273 (choose_basereg): Likewise.
14274 (ix86_expand_prologue): Likewise.
14275 (ix86_preferred_output_reload_class): Likewise.
14276 * cselib.c (cselib_record_sets): Likewise.
14277 * df-scan.c (df_scan_alloc): Likewise.
14278 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14279 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14280 * emit-rtl.c (try_split): Likewise.
14281 * graphite-scop-detection.c (assign_parameter_index_in_region):
14282 Likewise.
14283 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14284 * ira-color.c (setup_profitable_hard_regs): Likewise.
14285 * ira.c (rtx_moveable_p): Likewise.
14286 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14287 * read-rtl.c (read_subst_mapping): Likewise.
14288 * regrename.c (scan_rtx): Likewise.
14289 * reorg.c (fill_slots_from_thread): Likewise.
14290 * tree-inline.c (tree_function_versioning): Likewise.
14291 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14292 * tree-ssa-sink.c (statement_sink_location): Likewise.
14293 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14294 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14295 (vect_create_epilog_for_reduction): Likewise.
14296 * tree.c (build_nonstandard_integer_type): Likewise.
14297
14298 2019-06-27 Richard Biener <rguenther@suse.de>
14299
14300 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14301
14302 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14303
14304 PR tree-optimization/89772
14305 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14306 out-of-bound accesses checking.
14307
14308 2019-06-27 Martin Liska <mliska@suse.cz>
14309
14310 PR tree-optimization/91014
14311 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14312 when LHS is NULL_TREE.
14313
14314 2019-06-27 Martin Liska <mliska@suse.cz>
14315
14316 * symbol-summary.h (traverse): Pass
14317 argument a to the call of callback.
14318 (gt_ggc_mx): Mark arguments as unused.
14319 (gt_pch_nx): Likewise.
14320
14321 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14322
14323 PR target/62147
14324 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14325 finiteness.
14326
14327 2019-06-26 Jeff Law <law@redhat.com>
14328
14329 PR tree-optimization/90883
14330 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14331 (delete_dead_or_redundant_assignment): Likewise.
14332
14333 PR tree-optimization/90883
14334 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14335 * tree-ssa-dse.c: Update various comments to distinguish between
14336 dead and redundant stores.
14337 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14338 (dse_optimize_redundant_stores): New function.
14339 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14340 Distinguish between dead and redundant calls in dump output. All
14341 callers updated.
14342 (delete_dead_or_redundant_assignment): Similarly for assignments.
14343 (dse_optimize_stmt): Handle _CHK variants. For statements which
14344 store 0 into multiple memory locations, try to prove a subsequent
14345 store is redundant.
14346
14347 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14348
14349 PR target/89021
14350 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14351 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14352
14353 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14354
14355 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14356 (branch_islands): New extern.
14357 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14358 * config/rs6000/rs6000.c: .. here.
14359
14360 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14361
14362 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14363 (powerpc*-*-*) ... to here.
14364
14365 2019-06-26 Jeff Law <law@redhat.com>
14366
14367 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14368 memcpy, memmove and memset builtins.
14369 (maybe_trim_memstar_call): Likewise.
14370
14371 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14372
14373 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14374
14375 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14376
14377 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14378
14379 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14380
14381 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14382 declaration.
14383 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14384 "static".
14385 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14386 declaration.
14387
14388 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14389
14390 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14391
14392 2019-06-26 Richard Biener <rguenther@suse.de>
14393
14394 PR ipa/90982
14395 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14396
14397 2019-06-26 Richard Biener <rguenther@suse.de>
14398
14399 * lto-streamer.h (lto_bitmap_alloc): Remove.
14400 (lto_bitmap_free): Likewise.
14401 * lto-streamer.c (lto_bitmap_alloc): Remove.
14402 (lto_bitmap_free): Likewise.
14403 (lto_obstack): Likewise.
14404 (lto_obstack_initialized): Likewise.
14405 * lto-streamer-out.c (lto_output): Use own obstack for local
14406 bitmap, free it consistently.
14407
14408 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14409
14410 PR target/90991
14411 * config/i386/sse.md
14412 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14413 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14414 insns if operands[2] is misaligned_operand.
14415
14416 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14417
14418 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14419 TARGET_POWERPC64.
14420 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14421 to GPR.
14422
14423 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14424
14425 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14426
14427 2019-06-26 Martin Liska <mliska@suse.cz>
14428
14429 PR tree-optimization/90973
14430 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14431 epilogue_cost_vec instead of prologue_cost_vec for
14432 a epilogue cost.
14433
14434 2019-06-26 Martin Liska <mliska@suse.cz>
14435
14436 * bb-reorder.c (connect_better_edge_p): Add missing else
14437 statement in the middle of if-else statements.
14438
14439 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14440 H.J. Lu <hongjiu.lu@intel.com>
14441 Olga Makhotina <olga.makhotina@intel.com>
14442
14443 * common/config/i386/i386-common.c
14444 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14445 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14446 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14447 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14448 (ix86_handle_option): Handle -mavx512vp2intersect.
14449 * config/i386/avx512vp2intersectintrin.h: New.
14450 * config/i386/avx512vp2intersectvlintrin.h: New.
14451 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14452 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14453 AVX512VP2INTERSECT.
14454 * config/i386/i386-builtin-types.def: Add new types.
14455 * config/i386/i386-builtin.def: Add new builtins.
14456 * config/i386/i386-builtins.c: (enum processor_features): Add
14457 F_AVX512VP2INTERSECT.
14458 (static const _isa_names_table isa_names_table): Ditto.
14459 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14460 __AVX512VP2INTERSECT__.
14461 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14462 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14463 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14464 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14465 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14466 * config/i386/i386-options.c (ix86_target_string): Add
14467 -mavx512vp2intersect.
14468 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14469 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14470 P2HImode and P2QImode.
14471 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14472 number for P2QImode and P2HImode.
14473 (ix86_regmode_natural_size): New function.
14474 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14475 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14476 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14477 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14478 * config/i386/i386.opt: Add -mavx512vp2intersect.
14479 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14480 avx512vp2intersectvlintrin.h.
14481 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14482 (define_mode_iterator VI48_AVX512VP2VL): New.
14483 (avx512vp2intersect_2intersect<mode>,
14484 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14485 * config.gcc: Add avx512vp2intersectvlintrin.h and
14486 avx512vp2intersectintrin.h to extra_headers.
14487 * doc/invoke.texi: Document -mavx512vp2intersect.
14488
14489 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14490
14491 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14492
14493 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14494
14495 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14496 savres_routine_syms, savres_routine_name, morestack_ref,
14497 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14498 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14499 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14500 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14501 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14502 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14503 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14504 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14505 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14506 get_stack_clash_protection_probe_interval,
14507 get_stack_clash_protection_guard_size,
14508 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14509 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14510 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14511 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14512 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14513 gen_frame_mem_offset, rs6000_savres_routine_name,
14514 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14515 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14516 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14517 rs6000_global_entry_point_prologue_needed_p,
14518 rs6000_get_separate_components, rs6000_components_for_bb,
14519 rs6000_disqualify_components, rs6000_emit_prologue_components,
14520 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14521 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14522 rs6000_output_savres_externs, rs6000_output_function_prologue,
14523 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14524 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14525 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14526 rs6000_output_function_epilogue, gen_add3_const,
14527 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14528 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14529 to rs6000-logue.c.
14530 (machine_function): Moved to rs6000.h.
14531 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14532 rs6000-internal.h.
14533 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14534 savres_routine_syms, savres_routine_name, morestack_ref,
14535 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14536 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14537 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14538 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14539 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14540 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14541 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14542 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14543 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14544 get_stack_clash_protection_probe_interval,
14545 get_stack_clash_protection_guard_size,
14546 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14547 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14548 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14549 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14550 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14551 gen_frame_mem_offset, rs6000_savres_routine_name,
14552 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14553 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14554 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14555 rs6000_global_entry_point_prologue_needed_p,
14556 rs6000_get_separate_components, rs6000_components_for_bb,
14557 rs6000_disqualify_components, rs6000_emit_prologue_components,
14558 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14559 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14560 rs6000_output_savres_externs, rs6000_output_function_prologue,
14561 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14562 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14563 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14564 rs6000_output_function_epilogue, gen_add3_const,
14565 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14566 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14567 to here from rs6000.c.
14568 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14569 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14570 quad_address_offset_p) Moved to here from rs6000.c.
14571 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14572 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14573 collector.
14574
14575 2019-06-25 Martin Liska <mliska@suse.cz>
14576
14577 * hash-table.c (hashtab_chk_error): Move here from ...
14578 * hash-table.h (hashtab_chk_error): ... here.
14579
14580 2019-06-25 Martin Liska <mliska@suse.cz>
14581
14582 PR tree-optimization/90978
14583 * df-scan.c (df_update_entry_block_defs): Remove dead else
14584 branch.
14585 (df_update_exit_block_uses): Likewise.
14586
14587 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14588 Andrew Stubbs <ams@codesourcery.com>
14589
14590 * config.gcc (thread_file): Set to gcn for AMD GCN.
14591 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14592 (TARGET_EMUTLS_VAR_INIT): New hook.
14593
14594 2019-06-25 Martin Jambor <mjambor@suse.cz>
14595
14596 PR ipa/90939
14597 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14598
14599 2019-06-25 Richard Biener <rguenther@suse.de>
14600
14601 PR tree-optimization/90930
14602 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14603 into parallel form in the last pass instance.
14604
14605 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14606
14607 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14608 (arc_legitimize_pic_address): Simplify and cleanup the function.
14609 (SYMBOLIC_CONST): Remove.
14610 (prepare_pic_move): Likewise.
14611 (prepare_move_operands): Handle complex mov cases here.
14612 (arc_legitimize_address_0): Remove call to
14613 arc_legitimize_pic_address.
14614 (arc_legitimize_address): Remove call to
14615 arc_legitimize_tls_address.
14616 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14617 (movhi_insn): Likewise.
14618
14619 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14620
14621 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14622 PTRDIFF_TYPE.
14623 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14624 format of "__intN" types for UINTMAX_TYPE.
14625 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14626 format of "__intN" types for SIZETYPE.
14627 * tree.c (build_common_tree_nodes): Accept "__intN__"
14628 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14629 * doc/invoke.texi: Document that __intN__ disables pedantic
14630 warnings.
14631
14632 2019-06-25 Jan Hubicka <jh@suse.cz>
14633
14634 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14635 base2_alias_set is non-zero before doing TBAA based disambiguation.
14636
14637 2019-06-25 Martin Liska <mliska@suse.cz>
14638
14639 PR tree-optimization/90973
14640 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14641 of prologue and epilogue.
14642
14643 2019-06-24 Jan Hubicka <jh@suse.cz>
14644
14645 * ipa-utils.h (type_with_linkage_p): Verify that type is
14646 CXX_ODR_P.
14647 (odr_type_p): Remove extra return.
14648 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14649 hash STRING_FLAG only for arrays and integers.
14650 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14651 Update analogously.
14652 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14653 Likewise.
14654 * print-tree.c (print_node): Print cxx-odr-p
14655 and string-flag.
14656 * tree.c (need_assembler_name_p): Also check that type
14657 is CXX_ODR_TYPE_P
14658 (verify_type_variant): Update verification of SRING_FLAG;
14659 also check CXX_ODR_P.
14660 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14661 (TYPE_STRING_FLAG): Use it.
14662 (TYPE_CXX_ODR_P): New macro.
14663 * dwarf2out.c (gen_array_type_die): First check that type
14664 is an array and then test string flag.
14665
14666 2019-06-24 Richard Biener <rguenther@suse.de>
14667
14668 PR tree-optimization/90972
14669 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14670 in common code, dealing with STRING_CST properly.
14671
14672 2019-06-24 Richard Biener <rguenther@suse.de>
14673
14674 PR tree-optimization/90930
14675 PR tree-optimization/90316
14676 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14677 decrement of limit.
14678
14679 2019-06-24 Martin Sebor <msebor@redhat.com>
14680
14681 * tree-pretty-print.h: Remove unnecessary punctuation characters
14682 from a diagnostic.
14683 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14684
14685 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14686
14687 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14688 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14689 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14690
14691 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14692
14693 * config/rs6000/darwin.h: Handle GCC target pragma.
14694
14695 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14696
14697 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14698
14699 2019-06-22 Jeff Law <law@redhat.com>
14700
14701 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14702
14703 2019-06-22 Jan Hubicka <jh@suse.cz>
14704
14705 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14706 give up on bitfields; continue searching for different refs
14707 appearing later.
14708
14709 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14710
14711 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14712 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14713 containing the offset as possible simd lane access. Look through
14714 widening conversion. Move the
14715 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14716
14717 2019-06-21 Richard Biener <rguenther@suse.de>
14718
14719 PR tree-optimization/90930
14720 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14721 flag on new stmts to avoid re-processing them.
14722
14723 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14724
14725 PR c++/90875 - added -Wswitch-outside-range option
14726 * doc/invoke.texi (Wswitch-outside-range): Document.
14727
14728 2019-06-21 Jeff Law <law@redhat.com>
14729
14730 PR tree-optimization/90949
14731 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14732 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14733
14734 2019-06-21 Richard Biener <rguenther@suse.de>
14735
14736 PR debug/90914
14737 * dwarf2out.c (prune_unused_types_walk): Always consider
14738 function-local extern declarations as used.
14739
14740 2019-06-21 Richard Biener <rguenther@suse.de>
14741
14742 PR tree-optimization/90913
14743 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14744 the scalar variant of if-conversion versioning.
14745
14746 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14747
14748 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14749 create another "omp scan inscan exclusive" array if
14750 !ctx->scan_inclusive.
14751 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14752 (lower_omp_scan): Likewise.
14753 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14754 2-bit bitfield for simd_lane_access_p member.
14755 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14756 aux == (void *)-4 as simd lane access.
14757 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14758 comment with permutations to show the canonical permutation order.
14759 (vectorizable_scan_store): Handle exclusive scan.
14760 (vectorizable_store): Call vectorizable_scan_store even for
14761 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14762
14763 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14764 "omp simd array" arrays with one byte elements.
14765
14766 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14767
14768 * config/alpha/alpha.md (@unaligned_store<mode>):
14769 Rename from unaligned_store<mode>.
14770 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14771 * config/alpha/sync.md (@load_locked_<mode>): Rename
14772 from load_locked_<mode>.
14773 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14774 (@atomic_compare_and_swap<mode>_1): Rename
14775 from atomic_compare_and_swap<mode>_1.
14776 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14777 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14778 Use gen_reload_in_aligned and gen_unaligned_store.
14779 (emit_load_locked): Remove.
14780 (emit_store_conditional): Ditto.
14781 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14782 (alpha_split_compare_and_swap): Ditto.
14783 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14784 (alpha_split_compare_and_swap_12): Use gen_load_locked
14785 and gen_store_conditional.
14786 (alpha_split_atomic_exchange): Ditto.
14787 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14788 (alpha_split_atomic_exchange_12): Use gen_load_locked
14789 and gen_store_conditional.
14790
14791 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14792
14793 * config/aarch64/aarch64-errata.h: New file.
14794 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14795 (CA53_ERR_843419_SPEC): Delete.
14796 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14797 * config/aarch64/aarch64-linux.h: Likewise.
14798 * config/aarch64/aarch64-netbsd.h: Likewise.
14799 * config/aarch64/aarch64-freebsd.h: Likewise.
14800
14801 2019-06-20 Marek Polacek <polacek@redhat.com>
14802
14803 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14804
14805 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14806
14807 * config/rs6000/rs6000.md (isa attribute): Add support for
14808 for a future processor.
14809
14810 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14811
14812 PR target/54855
14813 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14814 standard scalar operation pattern for V2DF.
14815 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14816 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14817 (*ieee_<ieee_maxmin><mode>3): Likewise.
14818 (vec_setv2df_0): Likewise.
14819
14820 2019-06-20 Jan Hubicka <jh@suse.cz>
14821
14822 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14823 parameter; it has no use in gimple memory model.
14824 (indirect_ref_may_alias_decl_p): Update.
14825
14826 2019-06-20 Martin Liska <mliska@suse.cz>
14827
14828 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14829 to 10.
14830
14831 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14832
14833 * tree-vect-stmts.c (enum scan_store_kind): New type.
14834 (scan_store_can_perm_p): Change last argument from int * to
14835 vec<enum scan_store_kind> *, record precisely which permutations
14836 need whole vector left shift or that plus VEC_COND_EXPR.
14837 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14838 and additional VEC_COND_EXPR only for those iterations that need it.
14839
14840 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14841
14842 * config.gcc: Fix ARM --with-fpu checking and error message.
14843
14844 2019-06-19 Marek Polacek <polacek@redhat.com>
14845
14846 PR c++/60364 - noreturn after first decl not diagnosed.
14847 * attribs.c (get_attribute_namespace): No longer static.
14848 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14849 attributes.
14850 (attr_noreturn_exclusions): Make it extern.
14851 * attribs.h (get_attribute_namespace): Declare.
14852 * tree-inline.c (function_attribute_inlinable_p): Use
14853 get_attribute_name.
14854
14855 2019-06-19 Martin Sebor <msebor@redhat.com>
14856
14857 PR tree-optimization/90626
14858 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14859
14860 PR tree-optimization/90626
14861 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14862 (handle_builtin_string_cmp): Call it.
14863
14864 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14865
14866 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14867 and DARWIN_NOPIE_SPEC.
14868 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14869 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14870 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14871 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14872 (DARWIN_EXPORT_DYNAMIC): Delete.
14873 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14874 and pie options processing to darwin.h.
14875 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14876
14877 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14878
14879 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14880 in computing the number of options to be moved.
14881
14882 2019-06-19 Maya Rashish <coypu@sdf.org>
14883
14884 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14885 (CLEAR_INSN_CACHE) Use it.
14886
14887 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14888
14889 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14890
14891 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14892
14893 PR middle-end/84521
14894 * builtins.c (expand_builtin_setjmp_setup): Save
14895 hard_frame_pointer_rtx.
14896 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14897 restore fp.
14898 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14899 non-local goto.
14900 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14901 elimination code.
14902 (remove_reg_equal_offset_note): Remove unused function.
14903 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14904 code.
14905 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14906 (arc_builtin_setjmp_frame_value): Remove function.
14907 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14908 (avr_builtin_setjmp_frame_value): Remove function.
14909 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14910 (ix86_builtin_setjmp_frame_value): Remove function.
14911 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14912 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14913 (sparc_builtin_setjmp_frame_value): Remove function.
14914 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14915 (vax_builtin_setjmp_frame_value): Remove function.
14916 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14917 pointer if has_nonlocal_label.
14918
14919 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14920
14921 * doc/md.texi: Document vec_shl_<mode> pattern.
14922 * optabs.def (vec_shl_optab): New optab.
14923 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14924 argument, if == vec_shl_optab, check for left whole vector shift
14925 pattern rather than right shift.
14926 (expand_vec_perm_const): Add vec_shl_optab support.
14927 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14928 in the comment.
14929 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14930 can be handled by vec_shl_optab.
14931 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14932 (check_scan_store): Use it.
14933 (vectorizable_scan_store): If target can't do normal permutations,
14934 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14935 after it.
14936 * config/i386/sse.md (vec_shl_<mode>): New expander.
14937
14938 * omp-low.c (lower_rec_input_clauses): Handle references properly
14939 in inscan clauses.
14940 (lower_omp_scan): Likewise.
14941
14942 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14943
14944 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14945 mem_mode is BLKmode.
14946
14947 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14948
14949 PR target/90922
14950 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14951 pointer adjustment for the case of no callee-saved registers and
14952 stack frame bigger than 128 bytes.
14953
14954 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14955
14956 PR middle-end/90862
14957 * omp-low.c (check_omp_nesting_restrictions): Handle
14958 GF_OMP_TARGET_KIND_OACC_DECLARE.
14959
14960 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14961
14962 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14963 (@add<mode>3_carry): Rename from add<mode>3_carry.
14964 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14965 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14966 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14967 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14968 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14969 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14970 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14971 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14972 (cmpstrnsi): Use gen_cmp_1.
14973 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14974 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14975 (@umonitor_<mode>): Rename from umonitor_<mode>.
14976 * config/i386/i386-expand.c (ix86_expand_copysign):
14977 Use gen_copysign3_const and gen_copysign3_var.
14978 (ix86_expand_xorsign): Use gen_xorsign3_1.
14979 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14980 gen_sub3_carry_ccgz and gen_cmp1.
14981 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14982 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14983 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14984 (ix86_split_lshr): Ditto.
14985 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14986
14987 2019-06-18 Jason Merrill <jason@redhat.com>
14988
14989 * tree.c (build_constructor): Add MEM_STAT_DECL.
14990
14991 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14992
14993 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14994 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14995 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14996 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14997 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14998 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14999 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15000 Use CC_NZC instead of CC.
15001 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15002 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15003 (aarch64_print_operand): Handle E_CC_NZCmode.
15004 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15005 of gen_set_clobber_cc.
15006
15007 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15008
15009 * config/aarch64/aarch64-sve.md: Tabify file.
15010
15011 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15012
15013 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15014 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15015 * config/aarch64/aarch64-sve.md: Use it.
15016
15017 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15018
15019 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15020 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15021 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15022 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15023 (aarch64_expand_sve_vec_cmp_int): Use it.
15024 (aarch64_expand_sve_vec_cmp_float): Likewise.
15025 * config/aarch64/aarch64-sve.md: Likewise throughout.
15026
15027 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15028 Kugan Vivekanandarajah <kuganv@linaro.org>
15029
15030 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15031 (*cond_<optab><mode>_z): Fold into...
15032 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15033 operand 4 can be tied to operand 0 (either inherently or via RA).
15034
15035 2019-06-18 Richard Biener <rguenther@suse.de>
15036
15037 PR debug/90900
15038 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15039 as if optimized away.
15040
15041 2019-06-18 Tom de Vries <tdevries@suse.de>
15042
15043 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15044 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15045 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15046 Rename to ...
15047 (define_insn "@set_softstack_<mode>"): ... this.
15048 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15049 (define_insn "@omp_simt_enter_<mode>"): ... this.
15050 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15051 (define_insn "@omp_simt_exit_<mode>"): ... this.
15052
15053 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15054
15055 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15056 vf parameter. Restore the previous iv step of nscalars_step,
15057 but give it iv_type rather than compare_type. Tweak code order
15058 to match the comments.
15059 (vect_set_loop_condition_masked): Update accordingly.
15060 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15061 for iv_precision. Tweak comment formatting.
15062
15063 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15064
15065 * config/darwin.c: Strip trailing whitespace.
15066
15067 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15068
15069 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15070 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15071
15072 2019-06-18 Martin Jambor <mjambor@suse.cz>
15073
15074 PR ipa/90889
15075 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15076 caller does not have flag_ipa_cp set.
15077
15078 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15079
15080 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15081 from "*fold_left_plus_<mode>", updated operands order.
15082 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15083 * internal-fn.c (mask_fold_left_direct): New define.
15084 (expand_mask_fold_left_optab_fn): Likewise.
15085 (direct_mask_fold_left_optab_supported_p): Likewise.
15086 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15087 * optabs.def (mask_fold_left_plus_optab): New optab.
15088 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15089 masked internal_fn for a reduction ifn.
15090 (vectorize_fold_left_reduction): Add support for masking reductions.
15091
15092 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15093
15094 PR middle-end/80791
15095 * target.def (predict_doloop_p): New hook.
15096 * targhooks.h (default_predict_doloop_p): New declaration.
15097 * targhooks.c (default_predict_doloop_p): New function.
15098 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15099 * doc/tm.texi: Regenerate.
15100 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15101 (TARGET_PREDICT_DOLOOP_P): New macro.
15102 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15103
15104 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15105
15106 * omp-low.c (struct omp_context): Add scan_inclusive field.
15107 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15108 if inclusive scan.
15109 (struct omplow_simd_context): Add lastlane member.
15110 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15111 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15112 1 or 2 argument.
15113 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15114 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15115 (lower_omp_scan): New function.
15116 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15117 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15118 check 3rd argument if present rather than 2nd.
15119 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15120 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15121 2-bit bitfield.
15122 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15123 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15124 than 2nd.
15125 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15126 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15127 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15128 init.
15129 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15130 IFN_GOMP_SIMD_LANE argument.
15131 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15132 encoded ->aux value.
15133 * tree-vect-stmts.c: Include attribs.h.
15134 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15135 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15136 functions.
15137 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15138 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15139
15140 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15141
15142 PR target/62055
15143 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15144 (*nabs<mode>2_1): Ditto.
15145 (nabs sse-reg splitter): New splitter.
15146 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15147
15148 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15149
15150 PR bootstrap/90873.
15151 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15152 TMR index check.
15153
15154 2019-06-17 Tom de Vries <tdevries@suse.de>
15155
15156 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15157 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15158 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15159 ...
15160 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15161 match_operand 0.
15162 (define_insn "omp_simt_enter_insn"): Rename to ...
15163 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15164 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15165 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15166 gen_omp_simt_enter_si.
15167 (define_expand "omp_simt_exit"): New.
15168 (define_insn "omp_simt_exit"): Rename to ...
15169 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15170 match_operand 0.
15171
15172 2019-06-17 Matthew Green <mrg@eterna.com.au>
15173 Maya Rashish <coypu@sdf.org>
15174
15175 * config.gcc (aarch64*-*-netbsd*): New target.
15176 * config/aarch64/aarch64-netbsd.h: New file.
15177 * config/aarch64/t-aarch64-netbsd: Likewise.
15178
15179 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15180
15181 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15182 the access path from base to first VIEW_CONVERT_EXPR or
15183 BIT_FIELD_REF.
15184
15185 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15186
15187 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15188 access path on BIT_FIELD_REFs.
15189
15190 2019-06-17 Martin Liska <mliska@suse.cz>
15191
15192 PR ipa/90874
15193 * ipa-utils.h (odr_type_p): Remove dead code.
15194
15195 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15196
15197 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15198 alternative Solaris 11.4 format.
15199 * configure: Regenerate.
15200
15201 2019-06-17 Tom de Vries <tdevries@suse.de>
15202
15203 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15204 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15205 match_operand 0.
15206 (define_insn "call_value_insn"): Rename to ...
15207 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15208 match_operand 0.
15209 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15210 DI.
15211
15212 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15213
15214 PR middle-end/64242
15215 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15216 frame clobbers and schedule block.
15217 (builtin_longjmp): Likewise.
15218
15219 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15220
15221 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15222 describe how to perform MSPABI compliant 64-bit shift.
15223 * config/msp430/msp430.md (ashldi3): New define_expand.
15224 (ashrdi3): New define_expand.
15225 (lshrdi3): New define_expand.
15226
15227 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15228
15229 * doc/sourcebuild.texi: Document new effective target keyword
15230 longlong64.
15231
15232 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15233
15234 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15235 indirect_refs_may_alias_p): Revert accidental commits.
15236
15237 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15238 at the end of structures.
15239
15240 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15241
15242 * config/darwin.c (machopic_indirect_call_target): Use renamed
15243 darwin_picsymbol_stubs to decide on output.
15244 (darwin_override_options): Handle darwin_picsymbol_stubs.
15245 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15246 (LD64_VERSION): Revise default.
15247 * config/darwin.opt: (mpic-symbol-stubs): New option.
15248 (darwin_picsymbol_stubs): New variable.
15249 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15250 rename to TARGET_MACHO_PICSYM_STUBS.
15251 * config/i386/i386.c (output_pic_addr_const): Likewise.
15252 * config/i386/i386.h Likewise.
15253 * config/rs6000/darwin.h: Likewise.
15254 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15255 darwin_picsymbol_stubs.
15256
15257 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15258
15259 * config/darwin.opt (prebind, noprebind, seglinkedit,
15260 noseglinkedit): Add RejectNegative.
15261
15262 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15263
15264 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15265 in my previous patch.
15266
15267 2019-06-16 Tom de Vries <tdevries@suse.de>
15268
15269 PR tree-optimization/89376
15270 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15271
15272 2019-06-15 Maya Rashish <coypu@sdf.org>
15273
15274 * doc/invoke.texi (Spec Files): Update location of the
15275 Fortran spec file.
15276
15277 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15278
15279 * doc/extend.texi (Common Function Attributes): Clarify
15280 no_sanitize. Fix grammar.
15281
15282 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15283
15284 * tree-ssa-alias.c (alias_stats): Add
15285 nonoverlapping_component_refs_p_may_alias,
15286 nonoverlapping_component_refs_p_no_alias,
15287 nonoverlapping_component_refs_of_decl_p_may_alias,
15288 nonoverlapping_component_refs_of_decl_p_no_alias.
15289 (dump_alias_stats): Dump them.
15290 (nonoverlapping_component_refs_of_decl_p): Add stats.
15291 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15292 ARRAY_REF.
15293
15294 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15295
15296 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15297 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15298 only.
15299 (*anddi3_doubleword): Split before reload. Merge with
15300 anddi->zext pre-reload splitter.
15301 (*andndi3_doubleword): Split before reload.
15302 (*<code>di3_doubleword): Ditto.
15303 (*one_cmpldi2_doubleword): Ditto.
15304
15305 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15306
15307 PR middle-end/90779
15308 * gimplify.c: Include omp-offload.h and context.h.
15309 (gimplify_bind_expr): Add "omp declare target" attributes
15310 to static block scope variables inside of target region or target
15311 functions.
15312
15313 2019-06-15 Tom de Vries <tdevries@suse.de>
15314
15315 PR tree-optimization/90009
15316 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15317 Return NULL if bb contains IFN_UNIQUE.
15318
15319 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15320
15321 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15322 (un): New define_mode_attr.
15323 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15324 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15325 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15326 merge into ...
15327 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15328
15329 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15330
15331 * config/darwin.opt: Add RejectNegative where needed, reorder
15332 and add minimal functional descriptions.
15333
15334 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15335
15336 PR rtl-optimization/90765
15337 * calls.c (update_stack_alignment_for_call): New function.
15338 (expand_call): Call update_stack_alignment_for_call when
15339 outgoing parameter is passed in the stack.
15340 (emit_library_call_value_1): Likewise.
15341 * function.c (locate_and_pad_parm): Don't update
15342 stack_alignment_needed and preferred_stack_boundary.
15343
15344 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15345
15346 PR target/90877
15347 * config/i386/i386-features.c
15348 (dimode_scalar_chain::compute_convert_gain): Replace
15349 mmxsse_to_integer with sse_to_integer.
15350 * config/i386/i386.c (ix86_register_move_cost): Verify that
15351 moves between MMX and non-MMX units require secondary memory.
15352 Correct costs of moves between SSE and integer units.
15353 * config/i386/i386.h (processor_costs): Rename cost of moving
15354 SSE register to integer to sse_to_integer. Rename cost of
15355
15356 2019-06-14 Matt Thomas <matt@3am-software.com>
15357 Matthew Green <mrg@eterna.com.au>
15358 Nick Hudson <skrll@netbsd.org>
15359 Maya Rashish <coypu@sdf.org>
15360 Richard Earnshaw <rearnsha@arm.com>
15361
15362 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15363 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15364 * config/arm/netbsd-eabi.h: New file.
15365 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15366 redefining.
15367 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15368 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15369 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15370 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15371
15372 2019-06-14 Richard Biener <rguenther@suse.de>
15373
15374 * tree-loop-distribution.c (classify_partition): Return
15375 whether a reduction appeared in all partitions and do not
15376 stop builtin detection because of this.
15377 (distribute_loop): Sort a non-builtin partition last if
15378 there's a reduction in all partitions and make sure the
15379 partition prevailing as last is not a builtin.
15380
15381 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15382
15383 PR ipa/90401
15384 * ipa-prop.c (add_to_agg_contents_list): New function.
15385 (clobber_by_agg_contents_list_p): Likewise.
15386 (extract_mem_content): Likewise.
15387 (get_place_in_agg_contents_list): Delete.
15388 (determine_known_aggregate_parts): Renamed from
15389 determine_locally_known_aggregate_parts. New parameter
15390 aa_walk_budget_p.
15391
15392 2019-06-13 Martin Sebor <msebor@redhat.com>
15393
15394 PR tree-optimization/90662
15395 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15396 to the same type.
15397
15398 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15399
15400 PR bootstrap/90873
15401 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15402 dbase is not TARGET_MEM_REF.
15403
15404 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15405
15406 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15407 Update all uses.
15408 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15409 Do not generate DImode extends for 32bit targets.
15410 (and->zext post-reload splitter): Use gen_extend_insn
15411 instead of indirect functions.
15412 (anddi->zext pre-reload splitter): New.
15413 (*zext<mode>_doubleword_and): Remove.
15414 (*zext<mode>_doubleword): Ditto.
15415 (*zextsi_doubleword): Dittto.
15416
15417 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15418
15419 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15420 Use gen_sub3_insn instead of indirect function.
15421 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15422 indirect function.
15423 (ix86_adjust_counter): Ditto.
15424
15425 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15426 Lijia He <helijia@linux.ibm.com>
15427
15428 PR tree-optimization/77820
15429 * tree-ssa-threadedge.c
15430 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15431 function.
15432 (thread_across_edge): Add call to
15433 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15434
15435 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15436
15437 * config/darwin-driver.c (validate_macosx_version_min): New.
15438 (darwin_default_min_version): Cleanup and validate supplied version.
15439 (darwin_driver_init): Likewise and push cleaned version into opts.
15440
15441 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15442
15443 PR tree-optimization/90869
15444 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15445 converts in MEM_REF referencing decl rather than view converts
15446 from decl type to MEM_REF type.
15447
15448 2019-06-13 Richard Biener <rguenther@suse.de>
15449
15450 PR tree-optimization/90856
15451 * tree-sra.c (build_ref_for_model): Only use
15452 build_reconstructed_reference when address-spaces are the same.
15453
15454 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15455
15456 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15457 wrap ei variable name in the declaration in ()s.
15458 (nvptx_single): Actually use mode_label variable. Formatting fix.
15459
15460 2019-06-13 Richard Biener <rguenther@suse.de>
15461
15462 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15463 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15464 also return the condition stmt.
15465 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15466 loop we can version and version that, reusing the loop version
15467 created by if-conversion instead of versioning again.
15468
15469 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15470
15471 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15472 may_contain_p.
15473 * tree-vrp (value_range_base::may_contain_p): Call into
15474 value_inside_range.
15475 (value_inside_range): Make private inside value_range_base class.
15476 Take min/max from *this.
15477 (range_includes_p): Remove.
15478 * tree-vrp.h (value_range_base): Add value_inside_range.
15479 (range_includes_p): Remove.
15480 (range_includes_zero_p): Call may_contain_p.
15481 * vr-values.c (compare_range_with_value): Same.
15482
15483 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15484
15485 * doc/extend.texi (ARC Function Attributes): Update info.
15486
15487 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15488
15489 PR tree-optimization/89713
15490 * doc/invoke.texi (-ffinite-loops): Document new option.
15491 * common.opt (-ffinite-loops): New option.
15492 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15493 IFN_GOACC_LOOP calls as necessary.
15494 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15495 is finite.
15496 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15497 IFN_GOACC_LOOP call is not used.
15498 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15499
15500 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15501
15502 PR target/88838
15503 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15504 compare_type is not with Pmode size, we will create an IV with
15505 Pmode size with truncated use (i.e. converted to the correct type).
15506 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15507 (vect_iv_limit_for_full_masking): New. Factored out of
15508 vect_set_loop_condition_masked.
15509 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15510 (vect_iv_limit_for_full_masking): Declare.
15511
15512 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15513
15514 PR target/88834
15515 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15516 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15517 (get_alias_ptr_type_for_ptr_address): Likewise.
15518 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15519 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15520 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15521 allow_reg_index_p.
15522
15523 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15524
15525 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15526
15527 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15528
15529 * common/config/pru/pru-common.c: New file.
15530 * config.gcc: Add PRU target.
15531 * config/pru/alu-zext.md: New file.
15532 * config/pru/constraints.md: New file.
15533 * config/pru/predicates.md: New file.
15534 * config/pru/pru-opts.h: New file.
15535 * config/pru/pru-passes.c: New file.
15536 * config/pru/pru-pragma.c: New file.
15537 * config/pru/pru-protos.h: New file.
15538 * config/pru/pru.c: New file.
15539 * config/pru/pru.h: New file.
15540 * config/pru/pru.md: New file.
15541 * config/pru/pru.opt: New file.
15542 * config/pru/t-pru: New file.
15543 * doc/extend.texi: Document PRU pragmas.
15544 * doc/invoke.texi: Document PRU-specific options.
15545 * doc/md.texi: Document PRU asm constraints.
15546
15547 2019-06-12 Martin Sebor <msebor@redhat.com>
15548
15549 PR middle-end/90676
15550 * tree-pretty-print.c (dump_mem_ref): New function. Include
15551 MEM_REF type in output when different size than operand.
15552 (dump_generic_node): Move code to dump_mem_ref and call it.
15553
15554 2019-06-12 Martin Sebor <msebor@redhat.com>
15555
15556 PR tree-optimization/90662
15557 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15558 to arrays.
15559
15560 2019-06-12 Tom de Vries <tdevries@suse.de>
15561
15562 PR tree-optimization/90009
15563 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15564
15565 2019-06-12 Martin Liska <mliska@suse.cz>
15566
15567 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15568 the created map.
15569 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15570 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15571 Do not sanitize created maps.
15572
15573 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15574
15575 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15576 value_range::singleton_p.
15577 * tree-vrp.c (value_range_constant_singleton): Remove.
15578 * tree-vrp.h (value_range_constant_singleton): Remove.
15579 * vr-values.c (vr_values::singleton): Use
15580 value_range::singleton_p.
15581
15582 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15583
15584 PR target/90811
15585 * cfgexpand.c (align_local_variable): Add really_expand argument,
15586 don't SET_DECL_ALIGN if it is false.
15587 (add_stack_var): Add really_expand argument, pass it through to
15588 align_local_variable.
15589 (expand_one_stack_var_1): Pass true as really_expand to
15590 align_local_variable.
15591 (expand_one_ssa_partition): Pass true as really_expand to
15592 add_stack_var.
15593 (expand_one_var): Pass really_expand through to add_stack_var.
15594
15595 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15596
15597 * config/arm/iterators.md (VABAL): New int iterator.
15598 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15599 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15600 UNSPEC_VABAL_U values.
15601
15602 2019-06-12 Martin Liska <mliska@suse.cz>
15603
15604 * value-prof.c (stream_out_histogram_value): Only first value
15605 can't be negative.
15606
15607 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15608
15609 PR c/90760
15610 * symtab.c (symtab_node::set_section): Allow being called on aliases
15611 as long as they aren't analyzed yet.
15612
15613 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15614
15615 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15616 to `mips_set_text_contents_type' to indicate whether a
15617 non-debug insn follows.
15618
15619 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15620
15621 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15622 enabling -mpcrel by default.
15623 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15624 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15625 that the test against -mcpu=future is done first. Then test if
15626 -mprefixed-addr is on for -mpcrel.
15627 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15628
15629 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15630
15631 PR target/90811
15632 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15633 instead of and.u%d.
15634
15635 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15636
15637 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15638
15639 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15640
15641 PR c++/90449 - add -Winaccessible-base option.
15642 * doc/invoke.texi (Winaccessible-base): Document.
15643
15644 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15645
15646 PR tree-optimization/62041
15647 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15648
15649 2019-06-11 Jason Merrill <jason@redhat.com>
15650
15651 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15652 * tree.c (get_tree_code_name): Likewise.
15653 * print-tree.c (print_node): Only briefly print a node with an
15654 invalid code.
15655
15656 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15657
15658 PR bootstrap/90819
15659 * trans-mem.c (tm_memopt_compute_available): Add assertion
15660 that blocks is not empty. Formatting fix.
15661
15662 2019-06-11 Martin Liska <mliska@suse.cz>
15663
15664 PR c++/87847
15665 * hash-table.h: Extend create_gcc, add one parameter
15666 that is passed into hash_table::hash_table.
15667
15668 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15669
15670 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15671 New prototype.
15672 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15673 Emit clobber also for non-sse operations.
15674 (ix86_split_fp_absneg_operator): New function.
15675 * config/i386/i386.md (SSEMODEF): New mode iterator.
15676 (ssevecmodef): New mode attribute.
15677 (<code>tf2): Use absneg code iterator.
15678 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15679 Add three-operand AVX alternatives.
15680 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15681 Use absneg code iterator and X87MODEF mode iterator.
15682 (absneg fp_reg non-sse splitter): Call absneg code iterator
15683 and X87MODEF mode iterator.
15684 (absneg general_reg non-sse splitter): Use absneg code iterator
15685 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15686 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15687 code iterator. Add three-operand AVX alternative.
15688 (absneg sse_reg splitter): Use absneg code iterator
15689 and SSEMODEF mode iterator. Handle AVX operands.
15690 (absneg fp_reg splitter): Use absneg code iterator
15691 and MODEF mode iterator.
15692 (absneg general_reg splitter): Merge splitters using MODEF mode
15693 iterator. Use absneg code iterator. Call
15694 ix86_split_fp_absneg_operator.
15695 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15696 Do not enable for non-sse modes before reload.
15697 (CSGNMODE): Remove.
15698 (CSGNVMODE): Ditto.
15699 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15700 ssevecmodef mode attribute instaed of CSGNVMODE.
15701 (copysign<mode>3_const): Ditto.
15702 (copysign<mode>3_var): Ditto.
15703 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15704 Use absneg code iterator. Simplify code using std::swap.
15705 * config/i386/predicates.md (absneg_operator): Remove.
15706
15707 2019-06-10 Martin Sebor <msebor@redhat.com>
15708
15709 * gimple-fold.c (get_range_strlen): Update comment that didn't
15710 make it into r267503 or related commits.
15711
15712 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15713
15714 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15715 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15716
15717 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15718
15719 * tree.def (OMP_SCAN): New tree code.
15720 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15721 OMP_CLAUSE_EXCLUSIVE.
15722 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15723 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15724 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15725 OMP_CLAUSE_{IN,EX}CLUSIVE.
15726 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15727 * tree-nested.c (convert_nonlocal_reference_stmt,
15728 convert_local_reference_stmt, convert_gimple_call): Handle
15729 GIMPLE_OMP_SCAN.
15730 * tree-pretty-print.c (dump_omp_clause): Handle
15731 OMP_CLAUSE_{IN,EX}CLUSIVE.
15732 (dump_generic_node): Handle OMP_SCAN.
15733 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15734 * gimple.h (gomp_scan): New type.
15735 (is_a_helper <gomp_scan *>::test,
15736 is_a_helper <const gomp_scan *>::test): New templates.
15737 (gimple_build_omp_scan): Declare.
15738 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15739 gimple_omp_scan_set_clauses): New inline functions.
15740 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15741 * gimple.c (gimple_build_omp_scan): New function.
15742 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15743 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15744 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15745 GIMPLE_OMP_TASKGROUP.
15746 (dump_gimple_omp_scan): New function.
15747 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15748 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15749 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15750 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15751 (is_gimple_stmt): Handle OMP_SCAN.
15752 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15753 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15754 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15755 mentioned in nested #pragma omp scan. Handle
15756 OMP_CLAUSE_{IN,EX}CLUSIVE.
15757 (gimplify_expr): Handle OMP_SCAN.
15758 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15759 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15760 simd constructs.
15761 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15762 GIMPLE_OMP_SCAN.
15763
15764 2019-06-10 Martin Liska <mliska@suse.cz>
15765
15766 * ipa-cp.c (ignore_edge_p): New function.
15767 (build_toporder_info): Use it.
15768 * ipa-inline.c (ignore_edge_p): New function.
15769 (inline_small_functions): Use it.
15770 * ipa-pure-const.c (ignore_edge_for_nothrow):
15771 Verify opt_for_fn for caller and callee.
15772 (ignore_edge_for_pure_const): Likewise.
15773 * ipa-reference.c (ignore_edge_p): Extend to check
15774 for opt_for_fn.
15775 * ipa-utils.c (searchc): Refactor.
15776 * ipa-utils.h: Fix coding style.
15777
15778 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15779
15780 * config/arc/arc.c (arc_rtx_costs): Update costs.
15781
15782 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15783
15784 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15785 (arc_split_ior): Likewise.
15786 (arc_check_mov_const): Likewise.
15787 (arc_split_mov_const): Likewise.
15788 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15789 (arc_rtx_costs): Replace check Crr with Cax constraint.
15790 (prepare_move_operands): Cleanup, remove unused code.
15791 (arc_split_ior): New function.
15792 (arc_check_ior_const): Likewise.
15793 (arc_split_mov_const): Likewise.
15794 (arc_check_mov_const): Likewise.
15795 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15796 in define_insn_and_split pattern.
15797 (iorsi3): Likewise.
15798 (mulsi3_v2): Add new matching variant.
15799 (andsi3_i): Cleanup pattern.
15800 (rotrsi3_cnt1): Update pattern.
15801 (rotrsi3_cnt8): New pattern.
15802 (ashlsi2_cnt8): Likewise.
15803 (ashlsi2_cnt16): Likewise.
15804 * config/arc/constraints.md (C0p): Update constraint.
15805 (Crr): Remove it.
15806 (C0x): New pattern.
15807 (Cax): New pattern.
15808
15809 2019-06-10 Martin Liska <mliska@suse.cz>
15810
15811 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15812 Update coding style.
15813 (sem_item_optimizer::dump_cong_classes):
15814 Print how many items are in a non-singular class. Improve
15815 coding style.
15816
15817 2019-06-10 Martin Liska <mliska@suse.cz>
15818
15819 * value-prof.c (dump_histogram_value): Change dump format.
15820 (gimple_mod_subtract_transform): Remove legacy comment.
15821
15822 2019-06-10 Martin Liska <mliska@suse.cz>
15823
15824 * value-prof.c (dump_histogram_value): Print histogram values
15825 only if present.
15826
15827 2019-06-10 Martin Liska <mliska@suse.cz>
15828
15829 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15830 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15831 * ipa-profile.c (ipa_profile_generate_summary):
15832 Use get_most_common_single_value.
15833 * tree-profile.c (gimple_init_gcov_profiler):
15834 Instrument with __gcov_one_value_profiler_v2
15835 and __gcov_indirect_call_profiler_v4.
15836 * value-prof.c (dump_histogram_value):
15837 Print all values for HIST_TYPE_SINGLE_VALUE.
15838 (stream_out_histogram_value): Update assert for
15839 N values.
15840 (stream_in_histogram_value): Set number of
15841 counters for HIST_TYPE_SINGLE_VALUE.
15842 (get_most_common_single_value): New.
15843 (gimple_divmod_fixed_value_transform):
15844 Use get_most_common_single_value.
15845 (gimple_ic_transform): Likewise.
15846 (gimple_stringops_transform): Likewise.
15847 (gimple_find_values_to_profile): Set number
15848 of counters for HIST_TYPE_SINGLE_VALUE.
15849 * value-prof.h (get_most_common_single_value): New.
15850
15851 2019-06-10 Martin Liska <mliska@suse.cz>
15852
15853 * hash-map.h: Pass default value to hash_table ctor.
15854 * hash-table.h: Add default value to call of a ctor.
15855
15856 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15857
15858 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15859 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15860
15861 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15862
15863 PR target/90751
15864 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15865 Call pa_output_function_label.
15866 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15867 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15868 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15869 to declaration.
15870 (pa_linux_output_function_prologue): Declare.
15871 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15872 (pa_output_function_label): New.
15873 (pa_output_function_prologue): Revise to use pa_output_function_label.
15874 (pa_linux_output_function_prologue): New.
15875 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15876
15877 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15878
15879 * tree-vrp.h (value_range_base::intersect): New.
15880 (value_range::intersect_helper): Move from here...
15881 (value_range_base::intersect_helper): ...to here.
15882 * tree-vrp.c (value_range::intersect_helper): Rename to...
15883 (value_range_base::intersect_helper): ...this, and rewrite to
15884 return a value instead of modifying THIS in place.
15885 Also, move equivalence handling...
15886 (value_range::intersect): ...here, while calling intersect_helper.
15887 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15888 calling intersect.
15889 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15890 Same.
15891 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15892
15893 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15894
15895 * Makefile.in (genprogerr): Add condmd.
15896 (genprog): Remove it here.
15897
15898 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15899
15900 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15901
15902 2019-06-07 Richard Biener <rguenther@suse.de>
15903
15904 PR debug/90574
15905 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15906 that appear after user labels.
15907
15908 2019-06-07 Martin Liska <mliska@suse.cz>
15909
15910 * cselib.c (cselib_init): Disable hash table
15911 sanitization.
15912 * hash-set.h: Pass new default argument to m_table.
15913 * hash-table.c: Add global variable with hash table
15914 sanitization limit.
15915 * hash-table.h (Allocator>::hash_table): Add new argument
15916 to ctor.
15917 (hashtab_chk_error): New.
15918 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15919 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15920 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15921
15922 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15923
15924 * common.opt (flto-odr-type-merging): Ignore.
15925 * invoke.texi (-flto-odr-type-merging): Remove.
15926 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15927 (can_be_vtable_hashed_p): Remove.
15928 (hash_odr_vtable): Remove.
15929 (odr_vtable_hasher::hash): Remove.
15930 (types_same_for_odr): Remove.
15931 (types_odr_comparable): Remove.
15932 (odr_vtable_hasher::equal): Remove.
15933 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15934 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15935 (get_odr_type): Do not use vtable hash.
15936 (dump_odr_type): Remove commented out code.
15937 (build_type_inheritance_graph): Do not allocate vtable hash.
15938 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15939 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15940 (odr_type_p): Likewise.
15941 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15942 test.
15943
15944 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15945
15946 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15947 immediately after same_types_for_tbaa_p returns -1 and continue
15948 looking for possible exact match; if matching types are arrays
15949 watch for partial overlaps.
15950 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15951 (indirect_refs_may_alias_p): Do type based disambiguation first;
15952 update comment.
15953
15954 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15955
15956 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15957
15958 2019-06-07 Martin Liska <mliska@suse.cz>
15959
15960 * doc/invoke.texi: Remove param.
15961 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15962 Remove.
15963 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15964 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15965 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15966 * profile.c (instrument_values): Remove
15967 HIST_TYPE_INDIR_CALL_TOPN.
15968 * tree-profile.c (init_ic_make_global_vars):
15969 Always build __gcov_indirect_call only.
15970 (gimple_init_gcov_profiler): Remove usage
15971 of PARAM_INDIR_CALL_TOPN_PROFILE.
15972 (gimple_gen_ic_profiler): Likewise.
15973 * value-prof.c (dump_histogram_value): Likewise.
15974 (stream_in_histogram_value): Likewise.
15975 (gimple_indirect_call_to_profile): Likewise.
15976 (gimple_find_values_to_profile): Likewise.
15977 * value-prof.h (enum hist_type): Likewise.
15978
15979 2019-06-07 Martin Liska <mliska@suse.cz>
15980
15981 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15982 function.
15983
15984 2019-06-07 Martin Liska <mliska@suse.cz>
15985
15986 PR tree-optimization/78902
15987 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15988 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15989 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15990 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15991 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15992 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15993 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15994 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15995 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15996 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15997 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15998 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15999 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16000 New.
16001 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16002 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16003 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16004 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16005 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16006 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16007 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16008 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16009 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16010 warn_unused_result attribute.
16011 (BUILT_IN_STRDUP): Likewise.
16012 (BUILT_IN_STRNDUP): Likewise.
16013 (BUILT_IN_ALLOCA): Likewise.
16014 (BUILT_IN_CALLOC): Likewise.
16015 (BUILT_IN_MALLOC): Likewise.
16016 (BUILT_IN_REALLOC): Likewise.
16017
16018 2019-06-06 Jim Wilson <jimw@sifive.com>
16019
16020 PR target/89955
16021 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16022 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16023 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16024
16025 2019-06-06 Martin Sebor <msebor@redhat.com>
16026
16027 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16028 (handle_builtin_malloc): Remove trailing spaces.
16029 (handle_builtin_memset): Same.
16030 (handle_builtin_memcmp): Same.
16031 (compute_string_length): Same.
16032 (determine_min_objsize): Same.
16033 (handle_builtin_string_cmp): Same.
16034 (handle_char_store): Same. Break up excessively long line.
16035
16036 2019-06-06 Martin Jambor <mjambor@suse.cz>
16037
16038 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16039 check.
16040
16041 2019-06-06 Martin Jambor <mjambor@suse.cz>
16042
16043 * tree-sra.c (struct access): New field grp_same_access_path.
16044 (dump_access): Dump it.
16045 (build_reconstructed_reference): New function.
16046 (build_ref_for_model): Use it if possible.
16047 (path_comparable_for_same_access): New function.
16048 (same_access_path_p): Likewise.
16049 (sort_and_splice_var_accesses): Set the new flag.
16050 (analyze_access_subtree): Likewise.
16051 (propagate_subaccesses_across_link): Propagate zero value of the new
16052 flag down the access tree.
16053
16054 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16055
16056 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16057 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16058 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16059 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16060 Add gfx906.
16061
16062 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16063
16064 PR tree-optimization/90332
16065 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16066 Handle VALS containing two vectors.
16067 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16068 to...
16069 (@aarch64_combinez<mode>): ... This.
16070 (*aarch64_combinez_be<mode>): Rename to...
16071 (@aarch64_combinez_be<mode>): ... This.
16072 (vec_init<mode><Vhalf>): New define_expand.
16073 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16074
16075 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16076
16077 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16078 library functions only when not optimizing for size.
16079 (ashlsi3): Likewise.
16080 (ashrhi3): Likewise.
16081 (ashrsi3): Likewise.
16082 (lshrhi3): Likewise.
16083 (lshrsi3): Likewise.
16084
16085 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16086
16087 PR rtl-optimization/88751
16088 * ira.c (ira): Use the number of the actually referenced registers
16089 when calculating the threshold.
16090
16091 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16092
16093 * configure: Regenerate.
16094
16095 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16096
16097 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16098 register if it is in memory, so the shift can be emulated with a rotate
16099 instruction.
16100 (ashrhi3): Likewise.
16101 (lshrhi3): Likewise.
16102
16103 2019-06-06 Martin Liska <mliska@suse.cz>
16104
16105 PR tree-optimization/87954
16106 * match.pd: Simplify mult where both arguments are 0 or 1.
16107
16108 2019-06-06 Richard Biener <rguenther@suse.de>
16109
16110 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16111 put equivalences on UNDEFINED ranges.
16112 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16113 Make sure to drop defs of stmts added during simplification
16114 to VARYING.
16115
16116 2019-06-06 Richard Biener <rguenther@suse.de>
16117
16118 * tree-ssa-structalias.c: Include tree-cfg.h.
16119 (make_heapvar): Do not make heap vars artificial.
16120 (find_func_aliases_for_builtin_call): Handle stack allocation
16121 functions.
16122 (find_func_aliases): Delay processing of simple enough returns
16123 in non-IPA mode.
16124 (set_uids_in_ptset): Adjust.
16125 (find_what_var_points_to): Likewise.
16126 (solve_constraints): Do not dump points-to sets here.
16127 (compute_points_to_sets): Post-process return statements,
16128 amending the escaped solution. Dump points-to sets afterwards.
16129 (ipa_pta_execute): Dump points-to sets.
16130
16131 2019-06-06 Martin Liska <mliska@suse.cz>
16132
16133 PR web/87933
16134 * doc/install.texi: Fix HTML headers and
16135 titles for 'Installing GCC' pages.
16136
16137 2019-06-06 Martin Liska <mliska@suse.cz>
16138
16139 * ipa-icf-gimple.h (dump_message_1): Remove.
16140 (dump_message): Likewise.
16141 (return_false_with_message_1): Print also file.
16142 (return_false_with_msg): Likewise.
16143 (return_with_result): Likewise.
16144 (return_with_debug): Likewise.
16145 * ipa-icf.c (sem_function::equals_private): Remove call
16146 to dump_message.
16147
16148 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16149
16150 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16151 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16152 memory operand for it.
16153 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16154
16155 2019-06-05 Martin Sebor <msebor@redhat.com>
16156
16157 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16158 Adjust quoting and hyphenation.
16159 * convert.c (convert_to_real_1): Same.
16160 * gcc.c (driver_wrong_lang_callback): Same.
16161 (driver::handle_unrecognized_options): Same.
16162 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16163 * opts-common.c (cmdline_handle_error): Same.
16164 (read_cmdline_option): Same.
16165 * opts-global.c (complain_wrong_lang): Same.
16166 (print_ignored_options): Same.
16167 (handle_common_deferred_options): Same.
16168 * pretty-print.h: Same.
16169 * print-rtl.c (debug_bb_n_slim): Same.
16170 * sched-rgn.c (make_pass_sched_fusion): Same.
16171 * tree-cfg.c (verify_gimple_assign_unary): Same.
16172 (verify_gimple_label): Same.
16173 * tree-ssa-operands.c (verify_ssa_operands): Same.
16174 * varasm.c (do_assemble_alias): Same.
16175 (assemble_alias): Same.
16176
16177 2019-06-05 Richard Henderson <rth@twiddle.net>
16178
16179 * config/alpha/alpha.c (direct_return): Move down after
16180 struct machine_function definition; use saved frame_size;
16181 return bool.
16182 (struct machine_function): Add sa_mask, sa_size, frame_size.
16183 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16184 (alpha_compute_frame_layout): ... new function.
16185 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16186 (alpha_initial_elimination_offset): Use saved sa_size.
16187 (alpha_vms_initial_elimination_offset): Likewise.
16188 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16189 (alpha_expand_prologue): Use saved frame data. Merge integer
16190 and fp register save loops.
16191 (alpha_expand_epilogue): Likewise.
16192 (alpha_start_function): Use saved frame data.
16193 * config/alpha/alpha-protos.h (direct_return): Update.
16194 (alpha_sa_size): Remove.
16195
16196 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16197
16198 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16199 multiplication by a power-of-two value.
16200 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16201 and turn the modulo operation into a masking operation.
16202
16203 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16204
16205 PR debug/90733
16206 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16207 with VOIDmode inner operands.
16208
16209 2019-06-05 Richard Biener <rguenther@suse.de>
16210
16211 PR middle-end/90726
16212 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16213 turn an expression graph into a tree.
16214
16215 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16216
16217 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16218 member.
16219 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16220 treat it like explicit monotonic schedule modifier.
16221 (expand_omp_for): Initialize has_lastprivate_conditional.
16222 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16223 schedule modifier.
16224
16225 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16226 references, lookup in in hash map MEM_REF operand instead of the
16227 MEM_REF itself.
16228 (lower_omp_1): When looking for lastprivate conditional assignments,
16229 handle MEM_REFs with REFERENCE_TYPE operands.
16230
16231 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16232 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16233 and references a VLA. Handle references to non-VLAs if is_simd
16234 all privatization clauses like reductions.
16235 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16236 If omp_is_reference, use always omp simd arrays and set
16237 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16238 fails, emit reference initialization.
16239
16240 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16241
16242 PR target/89803
16243 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16244 _mm_mask_fpclass_sd_mask): New intrinsics.
16245 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16246 * config/i386/i386-builtin.def
16247 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16248 New builtins.
16249 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16250 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16251 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16252 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16253 case QI_FTYPE_V2SF_INT): Ditto.
16254 * config/i386/sse.md
16255 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16256 Extended to insnstructions with mask operands.
16257
16258 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16259
16260 * config/rs6000/constraints.md (define_register_constraint "wp"):
16261 Delete.
16262 (define_register_constraint "wq"): Delete.
16263 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16264 (rs6000_init_hard_regno_mode_ok): Adjust.
16265 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16266 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16267 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16268 (define_mode_attr VSa): Delete.
16269 (define_mode_attr VSisa): New.
16270 (rest of file): Adjust.
16271 * doc/md.texi (Machine Constraints): Adjust.
16272
16273 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16274
16275 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16276 (define_attr "enabled"): Handle those new isa values.
16277
16278 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16279
16280 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16281 (define_mode_attr VSr5): Delete.
16282 (define_mode_attr VStype_sqrt): Delete.
16283 (define_mode_iterator VSX_SPDP): Delete.
16284 (define_mode_attr VS_spdp_res): Delete.
16285 (define_mode_attr VS_spdp_insn): Delete.
16286 (define_mode_attr VS_spdp_type): Delete.
16287 (*vsx_sqrt<mode>2): Adjust.
16288 (vsx_<VS_spdp_insn>): Delete, split to...
16289 (vsx_xscvdpsp): ... this. New. And...
16290 (vsx_xvcvspdp): ... this. New. And...
16291 (vsx_xvcvdpsp): ... this. New.
16292
16293 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16294
16295 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16296 and V2DF.
16297 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16298 (rest of file): Adjust.
16299
16300 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16301
16302 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16303 (vsx_extract_<mode>_var): Ditto.
16304
16305 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16306
16307 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16308 with just "wa".
16309
16310 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16311
16312 * config/rs6000/constraints.md (define_register_constraint "ww"):
16313 Delete.
16314 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16315 (rs6000_init_hard_regno_mode_ok): Adjust.
16316 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16317 RS6000_CONSTRAINT_ww.
16318 * config/rs6000/rs6000.md: Adjust.
16319 * config/rs6000/vsx.md: Adjust.
16320 * doc/md.texi (Machine Constraints): Adjust.
16321
16322 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16323
16324 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16325 (define_mode_attr sd): New.
16326 (define_mode_attr s): New.
16327 (define_mode_attr Ftrad): Delete.
16328 (define_mode_attr Fvsx): Delete.
16329 (define_mode_attr Fs): Delete.
16330 (rest of file): Use the new mode attributes.
16331 * config.rs6000/vsx.md: Use the new mode attributes.
16332
16333 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16334
16335 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16336 with just "wa".
16337
16338 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16339
16340 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16341 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16342 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16343
16344 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16345
16346 PR target/78263
16347 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16348 C++ with strict ANSI requirements.
16349
16350 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16351
16352 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16353 computations when step is 1.
16354
16355 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16356
16357 * config/rs6000/constraints.md (define_register_constraint "wf"):
16358 Delete.
16359 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16360 (rs6000_init_hard_regno_mode_ok): Adjust.
16361 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16362 RS6000_CONSTRAINT_wf.
16363 * config/rs6000/rs6000.md: Adjust.
16364 * config/rs6000/vsx.md: Adjust.
16365 * doc/md.texi (Machine Constraints): Adjust.
16366
16367 2019-06-04 Andrew Pinski <apinski@marvell.com>
16368
16369 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16370 Fix ILP32 value.
16371
16372 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16373
16374 * config/rs6000/constraints.md (define_register_constraint "wd"):
16375 Delete.
16376 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16377 (rs6000_init_hard_regno_mode_ok): Adjust.
16378 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16379 RS6000_CONSTRAINT_wd.
16380 * config/rs6000/rs6000.md: Adjust.
16381 * config/rs6000/vsx.md: Adjust.
16382 * doc/md.texi (Machine Constraints): Adjust.
16383
16384 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16385
16386 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16387 (rest of file): Adjust.
16388
16389 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16390
16391 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16392 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16393 (vsx_splat_<mode>_reg): Adjust.
16394
16395 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16396
16397 * config/rs6000/constraints.md (define_register_constraint "ws"):
16398 Delete.
16399 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16400 (rs6000_init_hard_regno_mode_ok): Adjust.
16401 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16402 RS6000_CONSTRAINT_ws.
16403 * config/rs6000/rs6000.md: Adjust.
16404 * config/rs6000/vsx.md: Adjust.
16405 * doc/md.texi (Machine Constraints): Adjust.
16406
16407 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16408
16409 * config/rs6000/constraints.md (define_register_constraint "wv"):
16410 Delete.
16411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16412 (rs6000_init_hard_regno_mode_ok): Adjust.
16413 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16414 RS6000_CONSTRAINT_wv.
16415 * config/rs6000/rs6000.md: Adjust.
16416 * config/rs6000/vsx.md: Adjust.
16417 * doc/md.texi (Machine Constraints): Adjust.
16418
16419 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16420
16421 * config/rs6000/constraints.md (define_register_constraint "wi"):
16422 Delete.
16423 (define_register_constraint "wt"): Delete.
16424 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16425 (rs6000_init_hard_regno_mode_ok): Adjust.
16426 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16427 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16428 * config/rs6000/rs6000.md: Adjust.
16429 * config/rs6000/vsx.md: Adjust.
16430 * doc/md.texi (Machine Constraints): Adjust.
16431
16432 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16433
16434 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16435 const.
16436 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16437 default_elf_asm_output_external.
16438
16439 2019-06-04 Martin Liska <mliska@suse.cz>
16440
16441 * ipa-icf.c (INCLUDE_LIST): Remove.
16442 (sem_item_optimizer::execute): Remove call to init_wpa.
16443 * ipa-icf.h (init_wpa): Remove.
16444
16445 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16446
16447 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16448 conditional on combined for simd.
16449 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16450 member.
16451 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16452 constructs, don't remove lastprivate_conditional_map, but instead set
16453 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16454 to parent construct temporaries.
16455 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16456 like !ctx->lastprivate_conditional_map.
16457 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16458 use up->outer context instead of up.
16459 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16460 gimple_omp_for_combined_p.
16461 (expand_omp_for_static_nochunk): Likewise.
16462 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16463 probably moved over into expand_omp_for_generic rather than being copied
16464 there.
16465
16466 2019-06-04 Martin Liska <mliska@suse.cz>
16467
16468 * value-prof.c (dump_histogram_value): Fix typo.
16469 (gimple_mod_subtract_transform): Likewise.
16470
16471 2019-06-04 Richard Biener <rguenther@suse.de>
16472
16473 PR middle-end/90726
16474 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16475 (tree_contains_chrecs): Likewise.
16476 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16477 exponential behaivor from ...
16478 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16479 ... here.
16480 (expression_expensive_p): Avoid exponential behavior and compute
16481 expanded size, rejecting any expansion.
16482 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16483 (idx_contains_abnormal_ssa_name_p): Likewise.
16484 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16485 (contains_abnormal_ssa_name_p): Simplify and use
16486 walk_tree_without_duplicates.
16487
16488 2019-06-04 Richard Biener <rguenther@suse.de>
16489
16490 PR tree-optimization/90738
16491 Revert
16492 2019-06-03 Richard Biener <rguenther@suse.de>
16493
16494 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16495 full reference tree and record in ref->ref.
16496 (vn_reference_lookup_3): Pass in original ref to
16497 ao_ref_init_from_vn_reference.
16498 (vn_reference_lookup): Likewise.
16499 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16500 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16501 Handle non-decl bases in the original reference.
16502
16503 2019-06-04 Martin Liska <mliska@suse.cz>
16504
16505 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16506 number of references.
16507 (sem_item_optimizer::do_congruence_step):
16508 (sem_item_optimizer::worklist_push): Dump how references
16509 a class has.
16510 (sem_item_optimizer::worklist_pop): Use heap.
16511 (sem_item_optimizer::process_cong_reduction): Likewise.
16512 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16513
16514 2019-06-04 Martin Liska <mliska@suse.cz>
16515
16516 * ipa-icf.h (struct sem_usage_pair_hash): New.
16517 (sem_usage_pair_hash::hash): Likewise.
16518 (sem_usage_pair_hash::equal): Likewise.
16519 (struct sem_usage_hash): Likewise.
16520 * ipa-icf.c (sem_item::sem_item): Initialize
16521 referenced_by_count.
16522 (sem_item::add_reference): Register a reference
16523 in ref_map and not in target->usages.
16524 (sem_item::setup): Remove initialization of
16525 dead vectors.
16526 (sem_item::~sem_item): Remove usage of dead vectors.
16527 (sem_item::dump): Remove dump of references.
16528 (sem_item_optimizer::sem_item_optimizer): Initialize
16529 m_references.
16530 (sem_item_optimizer::read_section): Remove useless
16531 dump.
16532 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16533 (sem_item_optimizer::build_graph): Pass m_references
16534 to ::add_reference.
16535 (sem_item_optimizer::verify_classes): Remove usage of dead
16536 vectors.
16537 (sem_item_optimizer::traverse_congruence_split): Return true
16538 when a class is split.
16539 (sem_item_optimizer::do_congruence_step_for_index): Use
16540 hash_map for look up of (sem_item *, index). That brings
16541 significant speed up.
16542 (sem_item_optimizer::do_congruence_step): Return true
16543 when a split is done.
16544 (congruence_class::is_class_used): Use referenced_by_count.
16545
16546 2019-06-04 Alan Modra <amodra@gmail.com>
16547
16548 PR target/90689
16549 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16550 error.
16551
16552 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16553
16554 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16555 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16556 (rs6000_secondary_reload_simple_move): Adjust.
16557 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16558 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16559 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16560 comment.
16561 (power6x): Adjust.
16562 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16563 (floatunssi<mode>2_lfiwzx): Adjust.
16564 (fix_trunc<mode>si2_stfiwx): Adjust.
16565 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16566 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16567 (mfpgpr): Mark as deprecated.
16568 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16569 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16570 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16571
16572 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16573
16574 * config/rs6000/constraints.md (define_register_constraint "wg"):
16575 Delete.
16576 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16577 RS6000_CONSTRAINT_wg.
16578 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16579 (rs6000_init_hard_regno_mode_ok): Adjust.
16580 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16581 Delete "wg" alternatives.
16582 * doc/md.texi (Machine Constraints): Adjust.
16583
16584 2019-06-03 Alan Modra <amodra@gmail.com>
16585
16586 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16587 (get_uncond_jump_length): Assert length less than INT_MAX and
16588 non-negative.
16589
16590 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16591
16592 PR middle-end/64242
16593 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16594 block.
16595 (expand_builtin_nonlocal_goto): Likewise.
16596
16597 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16598
16599 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16600 (aarch64_asm_output_external): Declare.
16601 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16602 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16603 (aarch64_asm_output_alias): New.
16604 (aarch64_asm_output_external): New.
16605 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16606 (ASM_OUTPUT_EXTERNAL): Define.
16607
16608 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16609 * tree-vrp.h (value_range_base::nonzero_p): New.
16610 (value_range_base::set_nonnull): Rename to...
16611 (value_range_base::set_nonzero): ...this.
16612 (value_range_base::set_null): Rename to...
16613 (value_range_base::set_zero): ...this.
16614 (value_range::set_nonnull): Remove.
16615 (value_range::set_null): Remove.
16616 * tree-vrp.c (range_is_null): Remove.
16617 (range_is_nonnull): Remove.
16618 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16619 instead of range_is_*null.
16620 (extract_range_from_unary_expr): Same.
16621 (value_range_base::set_nonnull): Rename to...
16622 (value_range_base::set_nonzero): ...this.
16623 (value_range::set_nonnull): Remove.
16624 (value_range_base::set_null): Rename to...
16625 (value_range_base::set_zero): ...this.
16626 (value_range::set_null): Remove.
16627 (extract_range_from_binary_expr): Rename set_*null uses to
16628 set_*zero.
16629 (extract_range_from_unary_expr): Same.
16630 (union_helper): Same.
16631 * vr-values.c (get_value_range): Use set_*zero instead of
16632 set_*null.
16633 (vr_values::extract_range_from_binary_expr): Same.
16634 (vr_values::extract_range_basic): Same.
16635
16636 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16637
16638 PR driver/90684
16639 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16640
16641 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16642
16643 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16644 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16645 Rename to...
16646 (aarch64_<su>abd<mode>_3): ... This.
16647 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16648
16649 2019-06-03 Richard Biener <rguenther@suse.de>
16650
16651 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16652 full reference tree and record in ref->ref.
16653 (vn_reference_lookup_3): Pass in original ref to
16654 ao_ref_init_from_vn_reference.
16655 (vn_reference_lookup): Likewise.
16656 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16657 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16658 Handle non-decl bases in the original reference.
16659
16660 2019-06-03 Martin Liska <mliska@suse.cz>
16661
16662 * doc/generic.texi: Remove Java Trees.
16663
16664 2019-06-03 Martin Liska <mliska@suse.cz>
16665
16666 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16667 returns 0 when operands are equal.
16668
16669 2019-06-03 Richard Biener <rguenther@suse.de>
16670
16671 PR tree-optimization/90716
16672 * tree-loop-distribution.c (destroy_loop): Process blocks in
16673 correct order.
16674
16675 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16676
16677 PR target/88837
16678 * vector-builder.h (vector_builder::count_dups): New method.
16679 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16680 Declare prototype.
16681 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16682 (vec_init<mode><Vel>): New pattern.
16683 * config/aarch64/aarch64.c (emit_insr): New function.
16684 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16685 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16686 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16687 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16688
16689 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16690
16691 PR tree-optimization/90681
16692 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16693 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16694 special case for SLP, but fail on non-groupped loads.
16695
16696 2019-06-03 Martin Liska <mliska@suse.cz>
16697
16698 * cfg.c (debug): Use TDF_DETAILS for debug and
16699 print edge info only once.
16700
16701 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16702
16703 PR fortran/90539
16704 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16705
16706 2019-06-01 Martin Sebor <msebor@redhat.com>
16707
16708 PR middle-end/90694
16709 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16710
16711 2019-05-31 Jan Hubicka <jh@suse.cz>
16712
16713 * alias.c: Include ipa-utils.h.
16714 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16715 * ipa-devirt.c (prevailing_odr_type): New.
16716 * ipa-utils.h (previaling_odr_type): Declare.
16717
16718 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16719 Hongtao Liu <hongtao.liu@intel.com>
16720
16721 PR target/89355
16722 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16723 NOTE_INSN_DELETED_LABEL check.
16724
16725 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16726 Robert Suchanek <robert.suchanek@mips.com>
16727
16728 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16729 and 3rd operands of the fmadd/fmsub/maddv builtin.
16730
16731 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16732
16733 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16734 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16735 on OMP_SIMD if not nested inside of worksharing loop that also has
16736 lastprivate conditional clause for the same decl.
16737 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16738 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16739 on simd.
16740 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16741 on simd construct.
16742 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16743 on simd construct.
16744 (lower_lastprivate_clauses): Likewise.
16745 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16746 calling lower_rec_input_clauses.
16747 (lower_omp_for): Likewise.
16748 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16749 clause on simd construct.
16750 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16751 OMP_CLAUSE__CONDTEMP_ clause is present.
16752
16753 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16754 ivar and lvar.
16755
16756 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16757
16758 PR c/43673
16759 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16760 TEX_D32, TEX_D64 or TEX_D128.
16761
16762 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16763
16764 * match.pd (~(vec?cst1:cst2)): New transformation.
16765
16766 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16767
16768 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16769 ((size_t)(A /[ex] B) CMP C): New transformation.
16770
16771 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16772
16773 * doc/md.texi: Document define_insn_and_rewrite.
16774 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16775 * gensupport.c (queue_elem): Update comment.
16776 (replace_operands_with_dups): New function.
16777 (gen_rewrite_sequence): Likewise.
16778 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16779 * read-rtl.c (apply_subst_iterator): Likewise.
16780 (add_condition_to_rtx, named_rtx_p): Likewise.
16781 (rtx_reader::read_rtx_operand): Likewise.
16782 * config/aarch64/aarch64-sve.md
16783 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16784 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16785 define_insn_and_rewrite.
16786 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16787 Remove separate define_split.
16788
16789 2019-05-31 Jan Hubicka <jh@suse.cz>
16790
16791 * tree-ssa-alias.c (type_has_components_p): New function.
16792 (aliasing_component_refs_p): Use it.
16793
16794 2019-05-31 Martin Liska <mliska@suse.cz>
16795
16796 * gdbhooks.py: Add const_tree to TreePrinter.
16797
16798 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16799
16800 PR debug/86964
16801 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16802 * doc/invoke.texi (Debugging Options): Document new default of
16803 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16804
16805 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16806
16807 PR tree-optimization/90671
16808 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16809 template_block used to be empty on the first call, don't use
16810 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16811 seq with bb_seq and set it with set_bb_seq.
16812
16813 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16814
16815 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16816
16817 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16818 Michael Meissner <meissner@linux.ibm.com>
16819
16820 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16821 (prefixed_mem_operand): Likewise.
16822 (non_prefixed_mem_operand): Likewise.
16823 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16824 prototype.
16825 * config/rs6000/rs6000.c (print_operand_address): Handle
16826 PC-relative addresses.
16827 (mode_supports_prefixed_address_p): New function.
16828 (rs6000_prefixed_address): New function.
16829 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16830 (SYMBOL_REF_PCREL_P): Likewise.
16831
16832 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16833
16834 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16835 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16836 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16837 is nested inside of parallel region, add _condtemp_ clause to both.
16838 * tree-nested.c (convert_nonlocal_omp_clauses,
16839 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16840 assertion failure.
16841 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16842 member.
16843 * omp-general.c (omp_extract_for_data): Compute it.
16844 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16845 (lower_rec_input_clauses): Likewise.
16846 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16847 clause is already present, just add one further one after it.
16848 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16849 (lower_send_shared_vars): Clear _condtemp_ vars.
16850 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16851 or section or taskgroup.
16852 * omp-expand.c (determine_parallel_type): Disallow combining only if
16853 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16854 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16855 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16856 expand_omp_for_static_chunk, expand_omp_for): Use
16857 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16858 determine if a special set of API routines are needed and if condtemp
16859 needs to be initialized, while always initialize cond_var if
16860 fd->lastprivate_conditional is non-zero.
16861
16862 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16863 Michael Meissner <meissner@linux.ibm.com>
16864
16865 * config/rs6000/constraints.md (eI): New constraint.
16866 * config/rs6000/predicates.md (cint34_operand): New predicate.
16867 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16868 (SIGNED_34BIT_OFFSET_P): Likewise.
16869 * doc/md.texi (eI): Document constraint.
16870
16871 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16872
16873 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16874
16875 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16876 Michael Meissner <meissner@linux.ibm.com>
16877
16878 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16879 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16880 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16881 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16882 (OTHER_FUTURE_MASKS): Likewise.
16883 (POWERPC_MASKS): Likewise.
16884 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16885 specified without -mprefixed-addr or -mcpu=future. Error if
16886 -mprefixed-addr is specified without -mcpu=future.
16887 (rs6000_opt_masks): Add entry for prefixed-addr.
16888 * rs6000.opt (mprefixed-addr): New option.
16889
16890 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16891
16892 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16893 cfun->is_thunk check.
16894
16895 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16896
16897 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16898 to length.
16899
16900 2019-05-30 Martin Liska <mliska@suse.cz>
16901
16902 * gdbinit.in: Fix 'ptc' command. Add trt
16903 that prints TREE_TYPE($).
16904
16905 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16906 Alan Modra <amodra@gmail.com>
16907
16908 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16909 calls here...
16910 (rs6000_indirect_call_template_1): ...and here.
16911 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16912 plt16_ha, plt16_lo, mtctr indirect calls. Use
16913 rs6000_pltseq_enum.
16914 (rs6000_decl_ok_for_sibcall): New function.
16915 (rs6000_function_ok_for_sibcall): Refactor.
16916 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16917 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16918 when pcrel. Reorganize.
16919 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16920 * rs6000.h (rs6000_pltseq_enum): New enum.
16921 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16922 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16923 (*pltseq_plt16_ha): Likewise.
16924 (*pltseq_plt16_lo): Likewise.
16925 (*pltseq_mtctr): Likewise.
16926 (*pltseq_plt_pcrel): New insn.
16927 (*call_local_aix): Handle @notoc calls.
16928 (*call_value_local_aix): Likewise.
16929 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16930 (*call_value_nonlocal_aix): Likewise.
16931 (*call_indirect_pcrel): New insn.
16932 (*call_value_indirect_pcrel): Likewise.
16933
16934 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16935
16936 * config/i386/sse.md (*save_multiple<mode>): Rename from
16937 save_multiple<mode>.
16938 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16939 (*restore_multiple_and_return<mode>): Rename from
16940 restore_multiple_and_return<mode>.
16941 (*restore_multiple_leave_return<mode>): Rename from
16942 restore_multiple_leave_return<mode>.
16943
16944 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16945
16946 * config.gcc (rx-*-linux*): New target.
16947 * config/rx/elf.opt: New file.
16948 * config/rx/linux.h: Likewise.
16949 * config/rx/t-linux: Likewise.
16950 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16951 make it zero.
16952 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16953 (ASM_APP_OFF): Likewise.
16954 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16955 moved elsewhere.
16956
16957 2019-05-29 Jan Hubicka <jh@suse.cz>
16958
16959 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16960 variants are pointer equivalent.
16961
16962 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16963
16964 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16965 * config/aarch64/aarch64-sve2.md: New file.
16966 (<u>avg<mode>3_floor): New pattern.
16967 (<u>avg<mode>3_ceil): Likewise.
16968 (*<sur>h<addsub><mode>): Likewise.
16969 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16970 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16971
16972 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16973
16974 PR bootstrap/90543
16975 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16976 for var_opt_string printing. In cl_optimization_print_diff, print
16977 (null) instead of invoking undefined behavior if one of the
16978 var_opt_string pointers is NULL and use && instead of first || in the
16979 guarding condition. For var_target_other options, handle const char *
16980 target variables similarly to const char * optimize node variables.
16981
16982 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16983
16984 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16985 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16986 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16987 Add autib1716 and pacib1716 initialisation.
16988 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16989 for autib1716 and pacib1716.
16990 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16991 aarch64_post_cfi_startproc): Define.
16992 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16993 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16994 aarch64_handle_pac_ret_protection): Set default sign key to A.
16995 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16996 aarch64_expand_prologue): Add check for b-key.
16997 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16998 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16999 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17000 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17001 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17002 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17003 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17004 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17005 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17006 pauth_hint_num_a with pauth_hint_num.
17007 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17008 pauth_hint_num_a with pauth_hint_num.
17009 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17010 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17011 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17012 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17013 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17014 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17015 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17016 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17017 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17018 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17019 UNSPEC_AUTIA1716 respectively.
17020 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17021 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17022 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17023 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17024 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17025 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17026
17027 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17028
17029 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17030 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17031 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17032 explicit clause on combined parallel into implicit shared clause.
17033 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17034 and firstprivate if the decl has one too from combined parallel to
17035 the worksharing construct.
17036
17037 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17038 Michael Meissner <meissner@linux.ibm.com>
17039
17040 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17041
17042 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17043
17044 * rtl.h (LABEL_REF_P): New #define.
17045
17046 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17047
17048 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17049
17050 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17051
17052 * internal-fn.c: Marked mask_load_direct as vectorizable.
17053 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17054 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17055 combined even if masks different with allow_slp_p param.
17056 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17057 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17058 dissolve SLP-only vectorizable groups when SLP has been discarded.
17059 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17060 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17061 masks.
17062 (vect_build_slp_tree_1): Fixed comment typo.
17063 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17064 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17065 loads for SLP only.
17066 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17067 vectorizable.
17068 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17069
17070 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17071
17072 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17073 Remove obsolete use_thunk reference.
17074 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17075 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17076 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17077 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17078 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17079 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17080 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17081 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17082 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17083
17084 2019-05-28 Nathan Sidwell <nathan@acm.org>
17085
17086 * tree.h (IDENTIFIER_ANON_P): New.
17087 (anon_aggrname_format, anon_aggname_p): Don't declare.
17088 (make_anon_name): Declare.
17089 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17090 (hash_tree): Likewise.
17091 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17092 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17093 (anon_cnt, make_anon_name): New.
17094
17095 2019-05-28 Martin Liska <mliska@suse.cz>
17096
17097 PR other/90315
17098 * opts-global.c (decode_options): Print help for all
17099 help_option_arguments.
17100 * opts.c (print_help): Add new argument.
17101 (common_handle_option): Remember all values into
17102 help_option_arguments.
17103 * opts.h (print_help): Add new argument.
17104
17105 2019-05-28 Martin Liska <mliska@suse.cz>
17106
17107 PR ipa/90555
17108 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17109 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17110 (func_checker::compare_bb): Call compare_loops.
17111
17112 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17113
17114 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17115 on sections construct.
17116 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17117 construct.
17118 (lower_omp_sections): Handle lastprivate conditional.
17119 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17120 lastprivate_conditional_map.
17121 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17122
17123 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17124 critical, taskgroup and section regions when looking for a region
17125 with non-NULL lastprivate_conditional_map.
17126
17127 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17128
17129 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17130 (*ix86_gen_sub3): Ditto.
17131 (*ix86_gen_sub3_carry): Ditto.
17132 (*ix86_gen_one_cmpl2): Ditto.
17133 (*ix86_gen_andsp): Ditto.
17134 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17135 (gen_and2_insn): New static function.
17136 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17137 Use gen_add3_insn instead of ix86_gen_add3.
17138 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17139 instead of ix86_gen_add3.
17140 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17141 Use gen_sub3_insn instead of ix86_gen_sub3.
17142 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17143 instead of ix86_gen_add3.
17144 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17145 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17146 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17147 * config/i386/i386-options.c (ix86_option_override_internal):
17148 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17149 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17150
17151 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17152
17153 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17154 and DW_OP_GNU_const_index opcodes.
17155
17156 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17157
17158 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17159
17160 2019-05-27 Richard Biener <rguenther@suse.de>
17161
17162 PR tree-optimization/90637
17163 * tree-ssa-sink.c (statement_sink_location): Honor the
17164 computed sink location for single-uses.
17165
17166 2019-05-27 Richard Biener <rguenther@suse.de>
17167
17168 PR middle-end/90610
17169 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17170 a bit-insert.
17171
17172 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17173
17174 * config/i386/i386.md (@sub<mode>3_carry): Rename
17175 from sub<mode>3_carry.
17176 (@leave_<mode>): New expander.
17177 (*leave): Rename from leave.
17178 (*leave_rex64): Rename from leave_rex64.
17179 (@monitorx_<mode>): Rename from monitorx_<mode>.
17180 (@clzero_<mode>): Rename from clzero_<mode>.
17181 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17182 from sse3_monitor_<mode>.
17183 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17184 (*ix86_gen_leave): Ditto.
17185 (*ix86_gen_monitor): Ditto.
17186 (*ix86_gen_monitorx): Ditto.
17187 (*ix86_gen_clzero): Ditto.
17188 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17189 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17190 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17191 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17192 Use gen_sse3_monitor instead of ix86_gen_monitor.
17193 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17194 instead of ix86_gen_monitorx.
17195 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17196 instead of ix86_gen_clzero.
17197 * config/i386/i386-options.c (ix86_option_override_internal):
17198 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17199 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17200
17201 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17202
17203 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17204 Rename from tls_global_dynamic_64_<mode>.
17205 (@tls_local_dynamic_base_64_<mode>): Rename from
17206 tls_local_dynamic_base_64_<mode>.
17207 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17208 Remove indirect function.
17209 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17210 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17211 instead of ix86_gen_tls_global_dynamic_64.
17212 Use gen_tls_local_dynamic_base_64 instead of
17213 ix86_gen_tls_local_dynamic_base_64.
17214 * config/i386/i386-options.c (ix86_option_override_internal):
17215 Do not initialize ix86_gen_tls_global_dynamic_64 and
17216 ix86_gen_tls_local_dynamic_base_64.
17217
17218 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17219
17220 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17221 Rename from pro_epilogue_adjust_stack_<mode>_add.
17222 (@pro_epilogue_adjust_stack_sub_<mode>)
17223 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17224 (@allocate_stack_worker_probe_<mode>):
17225 Rename from allocate_stack_worker_probe_<mode>.
17226 (allocate_stack): Use gen_allocate_stack_worker_probe.
17227 (probe_stack): Use gen_probe_stack_1.
17228 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17229 (@adjust_stack_and_probe_<mode>): Rename from
17230 adjust_stack_and_probe<mode>.
17231 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17232 (stack_protect_set): Use gen_stack_protect_set_1.
17233 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17234 (stack_protect_test): Use gen_stack_protect_test_1.
17235 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17236 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17237 Remove indirect function.
17238 (*ix86_gen_adjust_stack_and_probe): Ditto.
17239 (*ix86_gen_probe_stack_range): Ditto.
17240 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17241 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17242 (ix86_adjust_stack_and_probe_stack_clash): Use
17243 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17244 (ix86_adjust_stack_and_probe): Ditto.
17245 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17246 of ix86_gen_probe_stack_range.
17247 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17248 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17249 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17250 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17251 CODE_FOR_stack_protect_test_{si,di}.
17252 * config/i386/i386-options.c (ix86_option_override_internal):
17253 Do not initialize ix86_gen_allocate_stack_worker,
17254 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17255
17256 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17257
17258 * doc/invoke.texi (Link Options): Many editorial changes around
17259 -flinker-output.
17260
17261 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17262
17263 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17264 pre-Solaris 11 referene and most Studio compiler details.
17265
17266 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17267
17268 PR target/90530
17269 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17270 DImode to SImode in floating-point registers on 64-bit target.
17271 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17272 register_operand in xmpyu patterns.
17273
17274 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17275
17276 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17277 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17278 OMP_CLAUSE__REDUCTEMP_.
17279 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17280 OMP_CLAUSE__CONDTEMP_.
17281 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17282 * tree-pretty-print.c (dump_omp_clause): Likewise.
17283 * tree-nested.c (convert_nonlocal_omp_clauses,
17284 convert_local_omp_clauses): Likewise.
17285 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17286 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17287 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17288 on OMP_FOR.
17289 (gimplify_omp_for): Warn and disable conditional modifier from
17290 lastprivate on loop iterators.
17291 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17292 member.
17293 * omp-general.c (omp_extract_for_data): Initialize it.
17294 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17295 member.
17296 (delete_omp_context): Delete it.
17297 (lower_lastprivate_conditional_clauses): New function.
17298 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17299 handle lastprivate conditional clauses.
17300 (lower_reduction_clauses): Add CLIST argument, emit it into
17301 the critical section if any.
17302 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17303 lower_reduction_clauses callers.
17304 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17305 to lower_lastprivate_clauses.
17306 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17307 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17308 clist into a critical section if not emitted there already by
17309 lower_reduction_clauses.
17310 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17311 callers.
17312 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17313 conditional variables.
17314 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17315 clause is present.
17316 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17317 expand_omp_for_static_chunk): Handle lastprivate conditional.
17318 (expand_omp_for): Handle fd.lastprivate_conditional like
17319 fd.have_reductemp.
17320
17321 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17322
17323 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17324 kernel does not exit cleanly.
17325 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17326
17327 2019-05-24 Jason Merrill <jason@redhat.com>
17328
17329 Revert:
17330 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17331
17332 2019-05-24 Richard Biener <rguenther@suse.de>
17333
17334 PR testsuite/90607
17335 * tree-loop-distribution.c (struct partition): Add location
17336 member.
17337 (partition_alloc): Initialize all fields.
17338 (generate_memset_builtin): Use the location recorded in the
17339 partition for the generated call.
17340 (generate_memcpy_builtin): Likewise.
17341 (classify_partition): Record the location of a single store
17342 as location for the partition.
17343
17344 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17345
17346 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17347 for lo-part.
17348
17349 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17350
17351 PR target/90588
17352 * common/config/aarch64/aarch64-common.c
17353 (aarch64_rewrite_selected_cpu): Change local temporary variable
17354 type from unsigned long to uint64_t.
17355 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17356 aarch64_get_extension_string_for_isa_flags): Change declaration to
17357 match new definition by replacing unsigned long with uint64_t.
17358
17359 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17360
17361 PR target/90568
17362 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17363 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17364 Handle stack_protect_test_<mode> codegen similarly to corresponding
17365 sub instruction.
17366
17367 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17368
17369 * config/i386/darwin.h: Reject -mfentry*.
17370 * doc/sourcebuild.texi: Document mfentry target support.
17371
17372 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17373
17374 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17375 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17376 false for PC-relative functions.
17377 (rs6000_output_function_prologue): Change called function name to
17378 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17379 name,1" for PC-relative functions.
17380 (rs6000_elf_declare_function_name): Change called function name to
17381 rs6000_global_entry_point_prologue_needed_p.
17382
17383 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17384
17385 PR target/90552
17386 * config/i386/i386.c (gen_rtx_cost):
17387 Use ix86_tune_cost instead of ix86_cost.
17388
17389 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17390 Michael Meissner <meissner@linux.ibm.com>
17391 Segher Boessenkool <segher@kernel.crashing.org>
17392
17393 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17394 OPTION_MASK_PCREL.
17395 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17396 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17397 (rs6000_fndecl_pcrel_p): Likewise.
17398 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17399 error if -mpcrel is requested without -mcpu=future.
17400 (rs6000_opt_masks): Add entry for pcrel.
17401 (rs6000_fndecl_pcrel_p): New function.
17402 (rs6000_pcrel_p): Likewise.
17403 * config/rs6000/rs6000.opt (mpcrel): New option.
17404 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17405
17406 2019-05-23 Jan Hubicka <jh@suse.cz>
17407 Martin Liska <mliska@suse.cz>
17408
17409 PR tree-optimization/90576
17410 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17411 poly_int_tree_p.
17412 (aliasing_component_refs_p): Fix three way size compare conditional;
17413 give up earlier in case we can not decide on equivalence.
17414
17415 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17416 Michael Meissner <meissner@linux.ibm.com>
17417 Segher Boessenkool <segher@kernel.crashing.org>
17418
17419 * config.gcc: Add future cpu.
17420 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17421 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17422 #define.
17423 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17424 (RS6000_CPU): New instantiation for future cpu.
17425 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17426 PROCESSOR_FUTURE.
17427 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17428 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17429 * config/rs6000/rs6000-tables.opt: Regenerate.
17430 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17431 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17432 (rs6000_machine_from_flags): Handle future cpu.
17433 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17434 PROCESSOR_POWER9 for now.
17435 (rs6000_adjust_cost): Likewise.
17436 (rs6000_issue_rate): Likewise.
17437 (rs6000_register_move_cost): Likewise.
17438 (rs6000_opt_masks): Add entry for future.
17439 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17440 (MASK_FUTURE): New #define.
17441 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17442 * config/rs6000/rs6000.opt (mfuture): New target option.
17443 * doc/invoke.texi (mcpu): Add future cpu.
17444
17445 2019-05-23 Martin Liska <mliska@suse.cz>
17446
17447 PR c++/90587
17448 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17449 operation points to a temporary (pointed via tree_to_wide_ref)
17450 that is out of scope after the &.
17451
17452 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17453
17454 PR c++/90592
17455 * doc/extend.texi (Function Names): Add missing word.
17456
17457 2019-05-23 Richard Biener <rguenther@suse.de>
17458
17459 PR tree-optimization/88440
17460 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17461 at -O[2s]+.
17462 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17463 generated call.
17464 (generate_memcpy_builtin): Likewise.
17465 (distribute_loop): Pass in whether to only distribute patterns.
17466 (prepare_perfect_loop_nest): Also allow size optimization.
17467 (pass_loop_distribution::execute): When optimizing a loop
17468 nest for size allow pattern replacement.
17469
17470 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17471
17472 PR target/90568
17473 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17474 of xor.
17475
17476 2019-05-23 Martin Liska <mliska@suse.cz>
17477
17478 PR sanitizer/90570
17479 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17480 expression similarly to gimplify_decl_expr.
17481
17482 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17483
17484 * cse.c (cse_dump_path): s/dump_file/f.
17485
17486 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17487
17488 PR c++/90462
17489 * diagnostic-format-json.cc: Include "selftest.h".
17490 (json_from_expanded_location): Only add "file" key for non-NULL
17491 file strings.
17492 (json_from_location_range): Don't add "start" and "finish"
17493 children if they are UNKNOWN_LOCATION.
17494 (selftest::test_unknown_location): New selftest.
17495 (selftest::test_bad_endpoints): New selftest.
17496 (selftest::diagnostic_format_json_cc_tests): New function.
17497 * json.cc (json::object::get): New function.
17498 (selftest::test_object_get): New selftest.
17499 (selftest::json_cc_tests): Call it.
17500 * json.h (json::object::get): New decl.
17501 * selftest-run-tests.c (selftest::run_tests): Call
17502 selftest::diagnostic_format_json_cc_tests.
17503 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17504 decl.
17505
17506 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17507 Andrew Stubbs <amd@codesourcery.com>
17508
17509 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17510 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17511 (kernel): Rename to...
17512 (main_kernel): ... this.
17513 (load_image): Load _init_array and _fini_array kernels.
17514 (run): Add argument for kernel to run.
17515 (main): Run init_array_kernel before main_kernel, and
17516 fini_array_kernel after.
17517 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17518 amdgpu_hsa_kernel attribute on functions.
17519 (gcn_disable_constructors): Delete.
17520 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17521 * config/gcn/crt0.c (size_t): Define.
17522 (_init_array, _fini_array): New.
17523 (__preinit_array_start, __preinit_array_end,
17524 __init_array_start, __init_array_end,
17525 __fini_array_start, __fini_array_end): Declare weak references.
17526
17527 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17528
17529 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17530
17531 2019-05-22 Jason Merrill <jason@redhat.com>
17532
17533 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17534
17535 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17536
17537 PR target/88483
17538 * config/i386/i386-options.c (ix86_init_machine_status): Set
17539 stack_frame_required to true.
17540 * config/i386/i386.c (ix86_get_frame_size): New function.
17541 (ix86_frame_pointer_required): Replace get_frame_size with
17542 ix86_get_frame_size.
17543 (ix86_compute_frame_layout): Likewise.
17544 (ix86_find_max_used_stack_alignment): Changed to void. Set
17545 stack_frame_required.
17546 (ix86_finalize_stack_frame_flags): Always call
17547 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17548 ix86_get_frame_size.
17549 * config/i386/i386.h (machine_function): Add stack_frame_required.
17550
17551 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17552
17553 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17554
17555 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17556
17557 * common/config/aarch64/aarch64-common.c
17558 (struct aarch64_option_extension, struct processor_name_to_arch,
17559 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17560 aarch64_contains_opt,
17561 aarch64_get_extension_string_for_isa_flags): Change type of
17562 variables storing flags to uint64_t.
17563 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17564 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17565 * config/aarch64/aarch64.c (struct processor,
17566 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17567 aarch64_validate_march, aarch64_override_options,
17568 aarch64_option_print, aarch64_handle_attr_isa_flags,
17569 aarch64_declare_function_name, aarch64_start_file): Make flag
17570 variables uint64_t.
17571 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17572 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17573 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17574 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17575 * config/aarch64/driver-aarch64.c
17576 (struct aarch64_arch_extension, struct aarch64_core_data,
17577 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17578 flag variables uint64_t.
17579 * doc/invoke.texi: Add documentation for new arguments.
17580
17581 2019-05-22 Richard Biener <rguenther@suse.de>
17582
17583 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17584 rewrite ...
17585 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17586
17587 2019-05-22 Martin Liska <mliska@suse.cz>
17588
17589 PR lto/90500
17590 * doc/extend.texi: Document the change.
17591
17592 2019-05-22 Richard Biener <rguenther@suse.de>
17593
17594 PR tree-optimization/90450
17595 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17596 (mem_ref_hasher::equal): Check it.
17597 (mem_ref_alloc): Initialize it.
17598 (gather_mem_refs_stmt): Set it.
17599
17600 2019-05-22 Richard Biener <rguenther@suse.de>
17601
17602 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17603 Add ABS_EXPR.
17604 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17605 as ABSU_EXPR.
17606
17607 2019-05-22 Alan Modra <amodra@gmail.com>
17608
17609 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17610 (ASM_CPU_SPEC): Conditionally add -many.
17611 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17612 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17613 (rs6000_file_start): ..extracted from here, and modified to
17614 test all ISA bits.
17615 (rs6000_output_function_prologue): Emit .machine as necessary.
17616
17617 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17618
17619 PR middle-end/90553
17620 * ira-lives.c (process_bb_node_lives): Consider defs
17621 for a call insn to be die before the call, not after.
17622
17623 * function.c (assign_parm_setup_block): Raise alignment of
17624 stacked parameter only for STRICT_ALIGNMENT targets.
17625
17626 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17627
17628 * config/rs6000/constraints.md (define_register_constraint "wz"):
17629 Delete.
17630 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17631 RS6000_CONSTRAINT_wz.
17632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17633 (rs6000_init_hard_regno_mode_ok): Adjust.
17634 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17635 * doc/md.texi (Machine Constraints): Adjust.
17636
17637 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17638
17639 * config/rs6000/constraints.md (define_register_constraint "wl"):
17640 Delete.
17641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17642 RS6000_CONSTRAINT_wl.
17643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17644 (rs6000_init_hard_regno_mode_ok): Adjust.
17645 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17646 * doc/md.texi (Machine Constraints): Adjust.
17647
17648 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17649
17650 * config/rs6000/constraints.md (define_register_constraint "wm"):
17651 Delete.
17652 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17653 RS6000_CONSTRAINT_wm.
17654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17655 (rs6000_init_hard_regno_mode_ok): Adjust.
17656 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17657 * doc/md.texi (Machine Constraints): Adjust.
17658
17659 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17660
17661 * config/rs6000/constraints.md (define_register_constraint "wk"):
17662 Delete.
17663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17664 RS6000_CONSTRAINT_wk.
17665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17666 (rs6000_init_hard_regno_mode_ok): Adjust.
17667 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17668 * doc/md.texi (Machine Constraints): Adjust.
17669
17670 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17671
17672 * config/rs6000/constraints.md (define_register_constraint "wj"):
17673 Delete.
17674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17675 RS6000_CONSTRAINT_wj.
17676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17677 (rs6000_init_hard_regno_mode_ok): Adjust.
17678 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17679 (VS_64dm): Delete.
17680 * config/rs6000/vsx.md: Ditto.
17681 * doc/md.texi (Machine Constraints): Adjust.
17682
17683 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17684
17685 * config/rs6000/constraints.md (define_register_constraint "wh"):
17686 Delete.
17687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17688 RS6000_CONSTRAINT_wh.
17689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17690 (rs6000_init_hard_regno_mode_ok): Adjust.
17691 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17692 * doc/md.texi (Machine Constraints): Adjust.
17693
17694 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17695
17696 PR target/90547
17697 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17698 Avoid calling gen_lowpart with CONST operand.
17699
17700 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17701
17702 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17703 field template_last_to_copy.
17704 (ssa_create_duplicates): Set it, and use it. Attempt to
17705 preserve more debug stmts.
17706
17707 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17708
17709 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17710 (signbit<mode>2): New expander
17711
17712 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17713
17714 PR bootstrap/87338
17715 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17716 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17717
17718 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17719
17720 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17721 %ebx and %ecx bafore calling cpuid with leaf 1 or
17722 non-constant leaf argument.
17723
17724 2019-05-21 Alan Modra <amodra@gmail.com>
17725
17726 PR target/90545
17727 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17728 power9 direct move cost.
17729
17730 2019-05-21 Richard Biener <rguenther@suse.de>
17731
17732 PR middle-end/90510
17733 * fold-const.c (fold_read_from_vector): New function.
17734 * fold-const.h (fold_read_from_vector): Declare.
17735 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17736 single-element insert permutations. Canonicalize selector
17737 further and fix issue with last commit.
17738
17739 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17740
17741 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17742 parameter with default value false to declaration.
17743 (split_edges_for_insertion): New inline function. Wrapper for
17744 split_critical_edges with for_edge_insertion_p = true.
17745 * tree-cfg.c (split_critical_edges): Don't split non-critical
17746 edges if for_edge_insertion_p is false. Fix whitespace.
17747 * tree-ssa-pre.c (pass_pre::execute): Call
17748 split_edges_for_insertion instead of split_critical_edges.
17749 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17750 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17751 (pass_data_sink_code): Update function name in the comment.
17752
17753 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17754
17755 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17756 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17757 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17758 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17759 positives.
17760
17761 2019-05-21 Martin Liska <mliska@suse.cz>
17762
17763 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17764 an extra newline.
17765 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17766 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17767 vec_lvsr.
17768 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17769 Quote a C type.
17770 (rs6000_function_arg): Likewise.
17771 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17772 (rs6000_expand_ternop_builtin): Use interval syntax.
17773 (get_element_number): Likewise.
17774 (altivec_expand_builtin): Likewise.
17775 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17776
17777 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17778
17779 PR c++/59813
17780 PR target/90418
17781 * function.h (struct function): Add calls_eh_return member.
17782 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17783 gimplifying __builtin_eh_return call.
17784 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17785 to cfun.
17786 (expand_call_inline): Or in src_cfun->calls_eh_return into
17787 dst_cfun->calls_eh_return.
17788 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17789 cfun->calls_eh_return.
17790 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17791 * lto-streamer-out.c (output_struct_function_base): Write
17792 calls_eh_return.
17793
17794 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17795
17796 PR rtl-optimization/43147
17797 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17798 IX86_BUILTIN_SHUFPD.
17799
17800 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17801
17802 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17803 (refs_may_alias_p_1): ... here; update stats.
17804 (refs_may_alias_p): Do not update stats here.
17805
17806 2019-05-20 Richard Biener <rguenther@suse.de>
17807
17808 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17809 doesn't produce pointers.
17810 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17811 the first operand points to.
17812
17813 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17814
17815 * tree-ssa-alias.c (compare_sizes): New function.
17816 (sompare_type_sizes): New function
17817 (aliasing_component_refs_p): Use it.
17818 (indirect_ref_may_alias_decl_p): Likewise.
17819
17820 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17821
17822 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17823
17824 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17825
17826 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17827 (LIBLSAN_EARLY_SPEC): Likewise.
17828 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17829
17830 2019-05-20 Martin Liska <mliska@suse.cz>
17831
17832 * config/i386/i386.c (ix86_libc_has_fast_function):
17833 Add ATTRIBUTE_UNUSED for the argument.
17834
17835 2019-05-20 Richard Biener <rguenther@suse.de>
17836
17837 * gimple-match-head.c: Include vec-perm-indices.h.
17838 * generic-match-head.c: Likewise.
17839 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17840 is included.
17841 * fold-const.c (fold_vec_perm): Export.
17842 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17843 (match.pd): ...here.
17844
17845 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17846
17847 * cfgloop.h (struct loop): Add simdlen member.
17848 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17849 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17850 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17851 as new argument to autovectorize_vector_sizes target hook. If
17852 loop->simdlen, pick up vector size where the vectorization factor
17853 is equal to loop->simd, and if there is none, fall back to the first
17854 successful one.
17855 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17856 caller.
17857 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17858 * omp-general.c (omp_max_vf): Likewise.
17859 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17860 * tree-vect-slp.c (vect_slp_bb): Likewise.
17861 * target.def (autovectorize_vector_sizes): Add ALL argument and
17862 document it.
17863 * doc/tm.texi: Adjust documentation.
17864 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17865 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17866 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17867 bool argument.
17868 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17869 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17870 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17871 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17872 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17873 preferred vector size is not 512-bit or 256-bit, just put those
17874 unpreferred ones last.
17875
17876 2019-05-20 Martin Liska <mliska@suse.cz>
17877
17878 * targhooks.c (default_libc_has_fast_function): New function.
17879 * targhooks.h (default_libc_has_fast_function): Likewise.
17880
17881 2019-05-20 Martin Liska <mliska@suse.cz>
17882
17883 PR middle-end/90263
17884 * builtins.c (expand_builtin_memory_copy_args): When having a
17885 target with fast mempcpy implementation do now use memcpy.
17886 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17887 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17888 * doc/tm.texi: Likewise.
17889 * doc/tm.texi.in: Likewise.
17890 * target.def:
17891 * expr.c (emit_block_move_hints): Add 2 new arguments.
17892 * expr.h (emit_block_move_hints): Bail out when libcall
17893 to memcpy would be used.
17894
17895 2019-05-20 Martin Liska <mliska@suse.cz>
17896
17897 * profile-count.c: Add vertical spacing in order
17898 to separate functions.
17899 * profile-count.h: Likewise.
17900
17901 2019-05-20 Martin Liska <mliska@suse.cz>
17902
17903 * profile-count.h: Do not use full qualified
17904 names if possible.
17905 * profile-count.c (profile_count::to_frequency): Likewise.
17906
17907 2019-05-20 Martin Liska <mliska@suse.cz>
17908
17909 * profile-count.h (enum profile_quality): Use capital letters
17910 for enum value names. Use the adjusted names.
17911 * profile-count.c: Use the adjusted names.
17912
17913 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17914
17915 * config/rs6000/constraints.md (define_register_constraint "wH"):
17916 Delete.
17917 (define_register_constraint "wI"): Delete.
17918 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17919 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17921 (rs6000_init_hard_regno_mode_ok): Adjust.
17922 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17923 resp. "d", or with "wa" as appropriate, all with "p8v".
17924 * config/rs6000/vsx.md: Ditto.
17925 * doc/md.texi (Machine Constraints): Adjust.
17926
17927 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17928
17929 * config/rs6000/constraints.md (define_register_constraint "wy"):
17930 Delete.
17931 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17932 RS6000_CONSTRAINT_wy.
17933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17934 (rs6000_init_hard_regno_mode_ok): Adjust.
17935 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17936 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17937 (define_mode_attr Fisa): New.
17938 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17939 * doc/md.texi (Machine Constraints): Adjust.
17940
17941 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17942
17943 * config/rs6000/constraints.md (define_register_constraint "wu"):
17944 Delete.
17945 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17946 RS6000_CONSTRAINT_wu.
17947 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17948 (rs6000_init_hard_regno_mode_ok): Adjust.
17949 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17950 both with "p8v".
17951 (define_mode_attr Fa): Delete.
17952 * config/rs6000/vsx.md: Ditto.
17953 * doc/md.texi (Machine Constraints): Adjust.
17954
17955 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17956
17957 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17958 Delete.
17959 (define_register_constraint "wK"): Delete.
17960 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17961 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17963 (rs6000_init_hard_regno_mode_ok): Adjust.
17964 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17965 Replace "wK" constraint by "wH" with "p9v".
17966 * config/rs6000/vsx.md: Ditto.
17967 * doc/md.texi (Machine Constraints): Adjust.
17968
17969 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17970
17971 * config/rs6000/constraints.md (define_register_constraint "wb"):
17972 Delete.
17973 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17974 RS6000_CONSTRAINT_wb.
17975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17976 (rs6000_init_hard_regno_mode_ok): Adjust.
17977 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17978 * config/rs6000/vsx.md: Ditto.
17979 * doc/md.texi (Machine Constraints): Adjust.
17980
17981 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17982
17983 * config/rs6000/constraints.md (define_register_constraint "wo"):
17984 Delete.
17985 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17986 RS6000_CONSTRAINT_wo.
17987 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17988 (rs6000_init_hard_regno_mode_ok): Adjust.
17989 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17990 * config/rs6000/altivec.md: Ditto.
17991 * doc/md.texi (Machine Constraints): Adjust.
17992
17993 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17994
17995 * config/darwin-c.c (darwin_register_objc_includes): Do not
17996 prepend the sysroot when building gnu-runtime header search
17997 paths.
17998
17999 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18000
18001 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18002 instead of direct output of the asm.
18003
18004 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18005
18006 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18007 argument to be type bool (was int before).
18008 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18009 at first use. Use type bool for some variables. Fix a theoretical
18010 eh_return bug for svr4.
18011
18012 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18013
18014 * config/rs6000/rs6000.md (isa): New attribute.
18015 (enabled): New attribute.
18016
18017 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18018
18019 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18020 assemble_start_function and assemble_end_function.
18021
18022 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18023
18024 PR middle-end/89433
18025 * omp-general.c (oacc_verify_routine_clauses): Change formal
18026 parameters. Add checking if already marked with an OpenACC
18027 'routine' directive. Adjust all users.
18028
18029 PR middle-end/89433
18030 * omp-general.c (oacc_build_routine_dims): Move some of its
18031 processing into...
18032 (oacc_verify_routine_clauses): ... this new function.
18033 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18034
18035 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18036
18037 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18038 formating of picbase labels to match other ports.
18039
18040 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18041
18042 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18043 in the generated code.
18044
18045 2019-05-16 Martin Sebor <msebor@redhat.com>
18046
18047 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18048 identifiers, keywords, operators, and types in diagnostics. Correct
18049 quoting, spelling, and sentence capitalization issues.
18050 (expand_builtin_atomic_is_lock_free): Same.
18051 (fold_builtin_next_arg): Same.
18052 * cfgexpand.c (expand_one_var): Same.
18053 (tree_conflicts_with_clobbers_p): Same.
18054 (expand_asm_stmt): Same.
18055 (verify_loop_structure): Same.
18056 * cgraphunit.c (process_function_and_variable_attributes): Same.
18057 * collect-utils.c (collect_execute): Same.
18058 * collect2.c (maybe_run_lto_and_relink): Same.
18059 (is_lto_object_file): Same.
18060 (scan_prog_file): Same.
18061 * convert.c (convert_to_real_1): Same.
18062 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18063 * except.c (verify_eh_tree): Same.
18064 * gcc.c (execute): Same.
18065 (eval_spec_function): Same.
18066 (run_attempt): Same.
18067 (driver::set_up_specs): Same.
18068 (compare_debug_auxbase_opt_spec_function): Same.
18069 * gcov-tool.c (unlink_gcda_file): Same.
18070 (do_merge): Same.
18071 (do_rewrite): Same.
18072 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18073 * gimplify.c (gimplify_asm_expr): Same.
18074 (gimplify_adjust_omp_clauses): Same.
18075 * hsa-gen.c (gen_hsa_addr_insns): Same.
18076 (gen_hsa_insns_for_load): Same.
18077 (gen_hsa_cmp_insn_from_gimple): Same.
18078 (gen_hsa_insns_for_operation_assignment): Same.
18079 (gen_get_level): Same.
18080 (gen_hsa_alloca): Same.
18081 (omp_simple_builtin::generate): Same.
18082 (gen_hsa_atomic_for_builtin): Same.
18083 (gen_hsa_insns_for_call): Same.
18084 * input.c (dump_location_info): Same.
18085 * ipa-devirt.c (compare_virtual_tables): Same.
18086 * ira.c (ira_setup_eliminable_regset): Same.
18087 * lra-assigns.c (lra_assign): Same.
18088 * lra-constraints.c (lra_constraints): Same.
18089 * lto-streamer-in.c (lto_input_mode_table): Same.
18090 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18091 (merge_and_complain): Same.
18092 (compile_offload_image): Same.
18093 (compile_images_for_offload_targets): Same.
18094 (debug_objcopy): Same.
18095 (run_gcc): Same.
18096 (main): Same.
18097 * opts.c (print_specific_help): Same.
18098 (parse_no_sanitize_attribute): Same.
18099 (print_help): Same.
18100 (handle_param): Same.
18101 * plugin.c (add_new_plugin): Same.
18102 (parse_plugin_arg_opt): Same.
18103 (try_init_one_plugin): Same.
18104 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18105 operators, and types in diagnostics. Correct quoting and spelling
18106 issues.
18107 * read-rtl-function.c (parse_edge_flag_token): Same.
18108 (function_reader::parse_enum_value): Same.
18109 * reg-stack.c (check_asm_stack_operands): Same.
18110 * regcprop.c (validate_value_data): Same.
18111 * sched-rgn.c (make_pass_sched_fusion): Same.
18112 * stmt.c (check_unique_operand_names): Same.
18113 * targhooks.c (default_target_option_pragma_parse): Same.
18114 * tlink.c (recompile_files): Same.
18115 * toplev.c (process_options): Same.
18116 (do_compile): Same.
18117 * trans-mem.c (diagnose_tm_1): Same.
18118 (ipa_tm_scan_irr_block): Same.
18119 (ipa_tm_diagnose_transaction): Same.
18120 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18121 format a tree code name in a diagnostic.
18122 (verify_types_in_gimple_min_lval): Same.
18123 (verify_types_in_gimple_reference): Same.
18124 (verify_gimple_call): Same.
18125 (verify_gimple_assign_unary): Same.
18126 (verify_gimple_assign_binary): Same.
18127 (verify_gimple_assign_ternary): Same.
18128 (verify_gimple_assign_single): Same.
18129 (verify_gimple_switch): Same.
18130 (verify_gimple_label): Same.
18131 (verify_gimple_phi): Same.
18132 (verify_gimple_in_seq): Same.
18133 (verify_eh_throw_stmt_node): Same.
18134 (collect_subblocks): Same.
18135 (gimple_verify_flow_info): Same.
18136 (do_warn_unused_result): Same.
18137 * tree-inline.c (expand_call_inline): Same.
18138 * tree-into-ssa.c (update_ssa): Same.
18139 * tree.c (tree_int_cst_elt_check_failed): Same.
18140 (tree_vec_elt_check_failed): Same.
18141 (omp_clause_operand_check_failed): Same.
18142 (verify_type_variant): Same.
18143 (verify_type): Same.
18144 * value-prof.c (verify_histograms): Same.
18145 * varasm.c (assemble_start_function): Same.
18146
18147 2019-05-16 Martin Sebor <msebor@redhat.com>
18148
18149 * config/i386/i386-expand.c (get_element_number): Quote keywords
18150 and other internal names in diagnostics. Adjust other diagnostic
18151 formatting issues noted by -Wformat-diag.
18152 * config/i386/i386-features.c
18153 (ix86_mangle_function_version_assembler_name): Same.
18154 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18155 * config/i386/i386.c (ix86_function_type_abi): Same.
18156 (ix86_function_ms_hook_prologue): Same.
18157 (classify_argument): Same.
18158 (ix86_expand_prologue): Same.
18159 (ix86_md_asm_adjust): Same.
18160 (ix86_memmodel_check): Same.
18161
18162 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18163
18164 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18165 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18166 and fpxx modes.
18167
18168 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18169
18170 PR target/90497
18171 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18172 intrinsics without SSE/SSE2/SSSE3.
18173 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18174 check.
18175 (*mmx_uavgv8qi3): Likewise.
18176
18177 2019-05-17 Richard Biener <rguenther@suse.de>
18178
18179 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18180 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18181
18182 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18183
18184 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18185 vec_sldw insn pattern.
18186
18187 2019-05-17 Richard Biener <rguenther@suse.de>
18188
18189 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18190
18191 2019-05-17 Martin Liska <mliska@suse.cz>
18192
18193 PR driver/90496
18194 * toplev.c (output_stack_usage): With LTO and sanitizer it
18195 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18196 has no file location.
18197
18198 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18199
18200 PR c++/90484
18201 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18202 sz0 is equal to sz1, instead return false in that case.
18203
18204 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18205 has non-constant expression, force sctx.lane and use two
18206 argument IFN_GOMP_SIMD_LANE instead of single argument.
18207 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18208 two argument IFN_GOMP_SIMD_LANE without lhs.
18209 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18210 member.
18211 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18212 Define.
18213 (LOOP_REQUIRES_VERSIONING): Or in
18214 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18215 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18216 simd_if_cond.
18217 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18218 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18219 from simd if clause if needed.
18220
18221 2019-05-16 Richard Biener <rguenther@suse.de>
18222
18223 * tree-affine.c (expr_to_aff_combination): New function split
18224 out from...
18225 (tree_to_aff_combination): ... here.
18226 (aff_combination_expand): Avoid building a GENERIC tree.
18227
18228 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18229
18230 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18231 assemble_start_function and assemble_end_function calls.
18232 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18233 assemble_start_function and assemble_end_function.
18234 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18235 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18236 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18237 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18238 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18239 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18240 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18241 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18242 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18243 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18244 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18245 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18246 Likewise.
18247 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18248 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18249 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18250 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18251 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18252 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18253 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18254 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18255 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18256 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18257 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18258 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18259 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18260 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18261 Likewise.
18262 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18263 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18264 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18265
18266 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18267
18268 * tree-ssa-alias.c (alias_stats): Add
18269 aliasing_component_refs_p_may_alias and
18270 aliasing_component_refs_p_no_alias.
18271 (dump_alias_stats): Print aliasing_component_refs_p stats.
18272 (aliasing_component_refs_p): Update stats.
18273
18274 2019-05-16 Martin Liska <mliska@suse.cz>
18275
18276 PR lto/90500
18277 * multiple_target.c (expand_target_clones): Do not allow
18278 target_clones being used with a symbol that is an alias.
18279
18280 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18281
18282 PR tree-optimization/90394
18283 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18284 positives rather than ICE for cases where (code2 == NE_EXPR
18285 && code1 == BIT_AND_EXPR).
18286
18287 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18288
18289 PR fortran/90329
18290 * tree-core.h (struct tree_decl_common): Document
18291 decl_nonshareable_flag for PARM_DECLs.
18292 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18293 * calls.c (expand_call): Don't try tail call if caller
18294 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18295 passed on the stack and callee needs to pass any arguments on the
18296 stack.
18297 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18298 else if instead of series of mutually exclusive ifs. Handle
18299 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18300 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18301
18302 * lto-streamer.h (LTO_major_version): Bump to 9.
18303
18304 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18305
18306 PR tree-optimization/90106
18307 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18308 new parameter as new internal function call, also move it to new
18309 basic block.
18310 (use_internal_fn): Pass internal function call to
18311 shrink_wrap_one_built_in_call_with_conds.
18312
18313 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18314
18315 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18316 max_vf to 1.
18317 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18318 safelen_int and set loop->dont_vectorize.
18319
18320 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18321
18322 PR target/89021
18323 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18324 SSE/SSE2/SSSE3.
18325 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18326 Likewise.
18327 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18328 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18329 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18330 is defined.
18331
18332 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18333
18334 PR target/89021
18335 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18336 define_insn_and_split to support SSE emulation.
18337 (*vec_extractv2sf_0): Likewise.
18338 (*vec_extractv2sf_1): Likewise.
18339 (*vec_extractv2si_0): Likewise.
18340 (*vec_extractv2si_1): Likewise.
18341 (*vec_extractv2si_zext_mem): Likewise.
18342 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18343 (vec_extractv2sf_1 splitter): Likewise.
18344 (vec_extractv2sfsf): Likewise.
18345 (vec_setv2si): Likewise.
18346 (vec_extractv2si_1 splitter): Likewise.
18347 (vec_extractv2sisi): Likewise.
18348 (vec_setv4hi): Likewise.
18349 (vec_extractv4hihi): Likewise.
18350 (vec_setv8qi): Likewise.
18351 (vec_extractv8qiqi): Likewise.
18352 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18353 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18354 (vec_extractv2sisi): Likewise.
18355 (vec_extractv4hihi): Likewise.
18356 (vec_extractv8qiqi): Likewise.
18357 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18358 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18359 (vec_initv2sisi): Likewise.
18360 (vec_initv4hihi): Likewise.
18361 (vec_initv8qiqi): Likewise.
18362 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18363 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18364 (vec_setv4hi): Likewise.
18365 (vec_setv8qi): Likewise.
18366
18367 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18368
18369 PR target/89021
18370 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18371 TARGET_MMX_WITH_SSE.
18372 (MMXMODE:*mov<mode>_internal): Likewise.
18373 (MMXMODE:movmisalign<mode>): Likewise.
18374
18375 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18376
18377 PR target/89021
18378 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18379 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18380 (sse2_cvtpd2pi): Ditto.
18381 (sse2_cvttpd2pi): Ditto.
18382 (*vec_concatv2sf_sse4_1): Ditto.
18383 (*vec_concatv2sf_sse): Ditto.
18384 (*vec_concatv2si_sse4_1): Ditto.
18385 (*vec_concatv2si): Ditto.
18386 (*vec_concatv4si_0): Ditto.
18387 (*vec_concatv2di_0): Ditto.
18388
18389 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18390
18391 PR target/89021
18392 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18393
18394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18395
18396 PR target/89021
18397 * config/i386/sse.md (ssse3_palignrdi): Changed to
18398 define_insn_and_split to support SSE emulation.
18399
18400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18401
18402 PR target/89021
18403 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18404
18405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18406
18407 PR target/89021
18408 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18409 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18410 SSE emulation.
18411
18412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18413
18414 PR target/89021
18415 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18416 or TARGET_MMX_WITH_SSE.
18417 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18418
18419 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18420
18421 PR target/89021
18422 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18423
18424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18425
18426 PR target/89021
18427 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18428 Changed to define_insn_and_split to support SSE emulation.
18429
18430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18431
18432 PR target/89021
18433 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18434 Changed to define_insn_and_split to support SSE emulation.
18435
18436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18437
18438 PR target/89021
18439 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18440 (*mmx_<emms>): This.
18441 (mmx_<emms>): New expander.
18442
18443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18444
18445 PR target/89021
18446 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18447 support.
18448 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18449
18450 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18451
18452 PR target/89021
18453 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18454
18455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18456
18457 PR target/89021
18458 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18459
18460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18461
18462 PR target/89021
18463 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18464 TARGET_MMX_WITH_SSE.
18465 (*mmx_uavgv4hi3): Add SSE emulation.
18466
18467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18468
18469 PR target/89021
18470 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18471 and TARGET_MMX_WITH_SSE.
18472 (*mmx_uavgv8qi3): Add SSE emulation.
18473
18474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18475
18476 PR target/89021
18477 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18478 maskmovdqu for __MMX_WITH_SSE__.
18479
18480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18481
18482 PR target/89021
18483 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18484 TARGET_MMX and TARGET_MMX_WITH_SSE.
18485 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18486
18487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18488
18489 PR target/89021
18490 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18491 define_insn_and_split to support SSE emulation.
18492
18493 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18494
18495 PR target/89021
18496 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18497 and TARGET_MMX_WITH_SSE.
18498 (mmx_<code>v8qi3): Likewise.
18499 (smaxmin:<code>v4hi3): New.
18500 (umaxmin:<code>v8qi3): Likewise.
18501 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18502 (umaxmin:*mmx_<code>v8qi3): Likewise.
18503
18504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18505
18506 PR target/89021
18507 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18508 TARGET_MMX_WITH_SSE.
18509 (*mmx_pinsrw): Add SSE emulation.
18510
18511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18512
18513 PR target/89021
18514 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18515
18516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18517
18518 PR target/89021
18519 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18520 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18521 SSE emulation.
18522
18523 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18524
18525 PR target/89021
18526 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18527 (sse_cvttps2pi): Likewise.
18528
18529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18530
18531 PR target/89021
18532 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18533 TARGET_MMX_WITH_SSE.
18534 (mmx_pshufw_1): Add SSE emulation.
18535 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18536 TARGET_MMX_WITH_SSE to support SSE emulation.
18537
18538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18539
18540 PR target/89021
18541 * config/i386/constraints.md (Yw): New constraint.
18542 * config/i386/mmx.md (*vec_dupv2si): Changed to
18543 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18544 support SSE emulation.
18545
18546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18547
18548 PR target/89021
18549 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18550 TARGET_MMX_WITH_SSE.
18551 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18552 support.
18553 (mmx_gt<mode>3): Likewise.
18554
18555 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18556
18557 PR target/89021
18558 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18559 TARGET_MMX_WITH_SSE. Add SSE support.
18560
18561 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18562
18563 PR target/89021
18564 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18565 TARGET_MMX_WITH_SSE.
18566 (any_logic:<code><mode>3): New.
18567 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18568 Add SSE support.
18569
18570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18571
18572 PR target/89021
18573 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18574 TARGET_MMX_WITH_SSE. Add SSE emulation.
18575 (mmx_<shift_insn><mode>3): Likewise.
18576 (ashr<mode>3): New.
18577 (<shift_insn><mode>3): Likewise.
18578
18579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18580
18581 PR target/89021
18582 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18583 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18584
18585 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18586
18587 PR target/89021
18588 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18589 TARGET_MMX_WITH_SSE.
18590 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18591 SSE support.
18592
18593 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18594
18595 PR target/89021
18596 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18597 TARGET_MMX_WITH_SSE.
18598 (mulv4hi3): New.
18599 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18600 support.
18601
18602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18603
18604 PR target/89021
18605 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18606 (plusminus:mmx_<plusminus_insn><mode>3): Check
18607 TARGET_MMX_WITH_SSE.
18608 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18609 (<plusminus_insn><mode>3): New.
18610 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18611 (*mmx_<plusminus_insn><mode>3): Likewise.
18612
18613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18614
18615 PR target/89021
18616 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18617 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18618 prototype.
18619 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18620 define_insn_and_split to support SSE emulation.
18621 (mmx_punpcklbw): Likewise.
18622 (mmx_punpckhwd): Likewise.
18623 (mmx_punpcklwd): Likewise.
18624 (mmx_punpckhdq): Likewise.
18625 (mmx_punpckldq): Likewise.
18626
18627 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18628 Uros Bizjak <ubizjak@gmail.com>
18629
18630 PR target/89021
18631 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18632 New function.
18633 (ix86_split_mmx_pack): Likewise.
18634 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18635 New prototype.
18636 (ix86_split_mmx_pack): Likewise.
18637 * config/i386/i386.md (mmx_isa): New.
18638 (enabled): Also check mmx_isa.
18639 * config/i386/mmx.md (any_s_truncate): New code iterator.
18640 (s_trunsuffix): New code attr.
18641 (mmx_packsswb): Removed.
18642 (mmx_packssdw): Likewise.
18643 (mmx_packuswb): Likewise.
18644 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18645 MMX packsswb/packuswb with SSE2.
18646 (mmx_packssdw): Likewise.
18647 * config/i386/predicates.md (register_mmxmem_operand): New.
18648
18649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18650
18651 PR target/89021
18652 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18653 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18654 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18655 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18656 (ix86_vector_mode_supported_p): Likewise.
18657 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18658
18659 2019-05-15 Martin Liska <mliska@suse.cz>
18660
18661 PR middle-end/90478
18662 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18663 Check for overflow.
18664
18665 2019-05-15 Richard Biener <rguenther@suse.de>
18666
18667 * tree-into-ssa.c (pass_build_ssa::execute): Run
18668 update_address_taken before going into SSA.
18669
18670 2019-05-15 Richard Biener <rguenther@suse.de>
18671
18672 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18673 as __BIT_FIELD_REF with type with -gimple.
18674
18675 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18676
18677 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18678 semantically equivalent branches (left over after prior refactorings).
18679
18680 2019-05-15 Richard Biener <rguenther@suse.de>
18681
18682 PR tree-optimization/88828
18683 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18684 bogus check.
18685
18686 2019-05-14 Richard Biener <rguenther@suse.de>
18687
18688 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18689 as __VIEW_CONVERT with -gimple.
18690
18691 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18692
18693 PR target/82920
18694 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18695 Darwin.
18696
18697 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18698
18699 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18700 define_split to become a define_insn_and_split.
18701
18702 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18703
18704 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18705 arguments.
18706 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18707 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18708 (sibcall_epilogue): Adjust.
18709 (epilogue): Adjust.
18710
18711 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18712
18713 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18714 to unsupported ones.
18715 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18716 * config.host: Likewise.
18717 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18718 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18719 __svr4__]: Remove "brand" fallback.
18720 [!KSTAT_DATA_STRING]: Remove.
18721 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18722 to *-*-solaris2*.
18723 (comdat_group): Likewise.
18724 (set_have_as_tls): Likewise.
18725 (gcc_cv_target_dl_iterate_phdr): Likewise.
18726 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18727 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18728 * configure: Regenerate.
18729 * doc/install.texi: Simplify Solaris target triplets.
18730 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18731 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18732 Remove Solaris 10 references.
18733 Remove obsolete Solaris bug reference.
18734 (Specific, sparc-sun-solaris2.10): Remove.
18735
18736 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18737
18738 * config/i386/i386.md (any_div): New code iterator.
18739 (paired_mod): New code attribute.
18740 (sgnprefix): Handle DIV and UDIV RTXes.
18741 (u): Ditto.
18742 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18743 and udivmod<mode>4 patterns using any_div code iterator.
18744 (divmod splitters): Macroize splitters using any_div code iterator.
18745 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18746 (*udivmodsi4_pow2_zext_2): Ditto.
18747 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18748 and *udivmod<mode>4_noext patterns using any_div code iterator.
18749 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18750 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18751 patterns using any_div code iterator.
18752 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18753 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18754 patterns using any_div code iterator.
18755 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18756 udivmodhiqi3 patterns using any_extend code iterator.
18757
18758 2019-05-14 Richard Biener <rguenther@suse.de>
18759 H.J. Lu <hongjiu.lu@intel.com>
18760
18761 PR tree-optimization/88828
18762 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18763 permuting in a single non-constant element not extracted
18764 from a vector.
18765
18766 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18767
18768 * internal-fn.def (SIGNBIT): New.
18769 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18770 defined.
18771 (signbitv4sf2): Likewise.
18772
18773 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18774
18775 PR target/90357
18776 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18777 next insn when the SRC reg is dead.
18778
18779 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18780
18781 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18782 (alloc_cand_and_find_basis): Ditto.
18783 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18784 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18785 (create_add_imm_cand, slsr_process_cast): Ditto.
18786 (slsr_process_copy, replace_mult_candidate): Ditto.
18787 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18788 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18789 (pass_strength_reduction::execute): Init the first NULL element.
18790
18791 2019-05-13 Nathan Sidwell <nathan@acm.org>
18792
18793 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18794 (run_attempt): Reformat line break.
18795
18796 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18797
18798 PR target/90418
18799 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18800 data registers in sibcall epilogues.
18801 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18802
18803 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18804
18805 PR target/89221
18806 * configure.ac (--enable-frame-pointer):
18807 Disable by default for cygwin and mingw.
18808 * configure: Regenerate.
18809
18810 2019-05-13 Nathan Sidwell <nathan@acm.org>
18811
18812 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18813 piece of code.
18814 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18815 (gen_member_die): Move abstract origin check earlier. Only VARs
18816 can be static_inline_p. Simplify splicing control flow.
18817
18818 2019-05-13 Richard Biener <rguenther@suse.de>
18819
18820 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18821 VIEW_CONVERT_EXPR.
18822 (vect_build_slp_tree_1): Likewise.
18823
18824 2019-05-13 Richard Biener <rguenther@suse.de>
18825
18826 PR tree-optimization/90402
18827 * tree-if-conv.c (tree_if_conversion): Value number only
18828 the loop body by making the latch an exit of the region
18829 as well.
18830 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18831 processing PHIs.
18832 (do_rpo_vn): Deal with multiple edges into the entry block
18833 that are not backedges inside the region by skipping PHIs
18834 of the entry block.
18835
18836 2019-05-13 Richard Biener <rguenther@suse.de>
18837
18838 PR tree-optimization/90316
18839 * tree-ssa-pre.c (insert_aux): Fold into ...
18840 (insert): ... this function. Use a RPO walk to reduce the
18841 number of required iterations.
18842
18843 2019-05-13 Martin Liska <mliska@suse.cz>
18844
18845 PR tree-optimization/90416
18846 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18847 string instead of passing the second part as va_arg argument.
18848
18849 2019-05-13 Martin Liska <mliska@suse.cz>
18850
18851 PR gcov-profile/90380
18852 * gcov.c (handle_cycle): Do not support zero cycle count,
18853 it should not be possible.
18854 (path_contains_zero_cycle_arc): New function.
18855 (circuit): Ignore zero cycle arc counts.
18856
18857 2019-05-13 Martin Liska <mliska@suse.cz>
18858
18859 PR gcov-profile/90380
18860 * gcov.c (enum loop_type): Remove the enum and
18861 the operator.
18862 (handle_cycle): Assert that we should not reach
18863 a negative count.
18864 (circuit): Use loop_found instead of a tri-state loop_type.
18865 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18866 happen.
18867
18868 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18869
18870 PR target/82920
18871 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18872 (ix86_output_indirect_branch_via_reg): Use output mechanism
18873 accounting for __USER_LABEL_PREFIX__.
18874 (ix86_output_indirect_branch_via_push): Likewise.
18875 (ix86_output_function_return): Likewise.
18876 (ix86_output_indirect_function_return): Likewise.
18877
18878 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18879
18880 * doc/md.texi: Document use of code attributes in rtx patterns.
18881 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18882 * read-rtl.c (find_code): Split out search loops into...
18883 (maybe_find_code): ...this new function.
18884 (check_code_iterator): Make the error message more informative.
18885 (check_code_attribute): New function.
18886 (rtx_reader::rtx_alloc_for_name): Likewise.
18887 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18888 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18889 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18890 <max_opp> directly as an rtx code instead of via a match_operator.
18891 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18892 (<su>abd<mode>_3): Update accordingly.
18893
18894 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18895
18896 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18897 is given, print the state of the EH "save world" computation for
18898 Darwin.
18899
18900 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18901
18902 PR c++/59813
18903 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18904 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18905
18906 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18907
18908 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18909 Use pinsrd for TARGET_SSE4_1.
18910 * config/i386/sse.md (movdi_to_sse): Ditto.
18911
18912 2019-05-10 Richard Biener <rguenther@suse.de>
18913
18914 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18915 (do_rpo_vn): Initialize next_value_id.
18916
18917 2019-05-10 Martin Liska <mliska@suse.cz>
18918
18919 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18920 Fix plural form.
18921
18922 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18923
18924 PR tree-optimization/90385
18925 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18926 arguments of the exit phis.
18927
18928 PR c++/90383
18929 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18930 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18931 id->do_not_fold.
18932 (copy_tree_body_r): Likewise.
18933 (copy_fn): Set id.do_not_fold to true.
18934
18935 2019-05-10 Martin Liska <mliska@suse.cz>
18936
18937 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18938 Reapply changes from r269790.
18939
18940 2019-05-10 Martin Liska <mliska@suse.cz>
18941
18942 PR middle-end/90340
18943 * doc/invoke.texi: New params.
18944 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18945 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18946 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18947 Use it.
18948 * tree-switch-conversion.h (struct jump_table_cluster):
18949 Likewise.
18950
18951 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18952
18953 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18954
18955 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18956
18957 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18958
18959 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18960
18961 PR rtl-optimization/88879
18962 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18963
18964 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18965
18966 PR target/90405
18967 * config/arm/arm.c (callee_saved_reg_p): Move before
18968 thumb_find_work_register.
18969 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18970 thumb_find_work_register. Only call df_get_live_out once.
18971 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18972 (thumb_find_work_register): Use
18973 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18974 algorithms to locate a spare call clobbered reg.
18975
18976 2019-05-09 Martin Liska <mliska@suse.cz>
18977
18978 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18979 and MAX_EXPR in GIMPLE FE format.
18980
18981 2019-05-09 Martin Liska <mliska@suse.cz>
18982
18983 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18984 * gimple-pretty-print.c (dump_gimple_bb_header):
18985 Dump BB count.
18986 (pp_cfg_jump): Dump edge probability.
18987 * profile-count.c (profile_quality_as_string): Simplify
18988 with a static array.
18989 (parse_profile_quality): New function.
18990 (profile_count::dump): Simplify with a static array.
18991 (profile_count::from_gcov_type): Add new argument.
18992 * profile-count.h (parse_profile_quality): Likewise.
18993 * predict.h (set_hot_bb_threshold): New.
18994 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18995 New param.
18996 * predict.c (get_hot_bb_threshold): Set from the new param.
18997 (set_hot_bb_threshold): New.
18998
18999 2019-05-09 Richard Biener <rguenther@suse.de>
19000
19001 PR tree-optimization/90395
19002 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19003 rewrite vector stores that throw internally.
19004
19005 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19006
19007 * cif-code.def (CHKP): Remove.
19008
19009 PR target/89221
19010 * configure.ac (--enable-frame-pointer): Disable by default for
19011 GNU systems.
19012 * configure: Regenerate.
19013
19014 2019-05-09 Alan Modra <amodra@gmail.com>
19015
19016 PR target/89271
19017 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19018 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19019 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19020 cost for general <-> vsx when direct moves are available.
19021 Cost union classes at minimal cost for any reg in the class.
19022 Correct calculation for moves between vsx, float, and altivec.
19023 Don't return a low cost for moves between special regs. Don't
19024 use hard coded register numbers.
19025 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19026 (rs6000_ira_change_pseudo_allocno_class): New function.
19027 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19028 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19029 alternatives.
19030 (movsi_internal1): Don't disparage vector alternatives.
19031 (mov<mode>_internal): Likewise, excepting alternative that
19032 will be split.
19033 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19034 we <- b alternative.
19035
19036 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19037
19038 PR c++/59813
19039 PR tree-optimization/89060
19040 * tree-ssa-live.h (live_vars_map): New typedef.
19041 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19042 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19043 (struct compute_live_vars_data): New type.
19044 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19045 live_vars_at_stmt, destroy_live_vars): New functions.
19046 * tree-tailcall.c: Include tree-ssa-live.h.
19047 (live_vars, live_vars_vec): New global variables.
19048 (find_tail_calls): Perform variable life analysis before punting.
19049 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19050 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19051 member.
19052 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19053 Perform variable life analysis to select variables that really need
19054 clobbers added.
19055 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19056 instead set id->eh_landing_pad_dest and assert it is the same.
19057 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19058
19059 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19060 Richard Earnshaw <rearnsha@arm.com>
19061
19062 PR target/88167
19063 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19064 function.
19065 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19066 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19067 register if both the epilogue and prologue can use call-clobbered
19068 regs.
19069 (thumb1_unexpanded_epilogue): Use
19070 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19071 picking temporaries for restoring high regs to match that of the
19072 prologue where possible.
19073 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19074 the list of work registers. Detect if the return address is still live
19075 at the end of the prologue and avoid using it for a work register if so.
19076 If the return address is not live, add LR to the list of pushable regs
19077 after the first pass.
19078
19079 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19080
19081 PR tree-optimization/90078
19082 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19083 (INFTY): Increase the value for infinite cost.
19084 (struct comp_cost): Promote type of members to int64_t.
19085 (infinite_cost): Don't set complexity in initialization.
19086 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19087 overflows to infinite_cost.
19088 (adjust_setup_cost): Promote type of parameter and cost computation
19089 to int64_t.
19090 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19091 int64_t.
19092 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19093 cost computation to int64_t.
19094 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19095 int64_t's format specifier in dump.
19096
19097 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19098
19099 PR tree-optimization/90240
19100 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19101 with respect to scaling factor pre-computed for each basic block.
19102 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19103 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19104 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19105 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19106 live range for array of loop's basic blocks. Cleanup aux field of
19107 loop's basic blocks.
19108
19109 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19110
19111 PR tree-optimization/90356
19112 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19113
19114 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19115
19116 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19117 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19118 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19119 (ix86_handle_option): Handle -mavx512bf16.
19120 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19121 to extra_headers.
19122 * config/i386/avx512bf16vlintrin.h: New.
19123 * config/i386/avx512bf16intrin.h: New.
19124 * config/i386/cpuid.h (bit_AVX512BF16): New.
19125 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19126 * config/i386/i386-builtin-types.def: Add new types.
19127 * config/i386/i386-builtin.def: Add new builtins.
19128 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19129 __AVX512BF16__.
19130 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19131 (ix86_option_override_internal): Handle BF16.
19132 (ix86_valid_target_attribute_inner_p): Ditto.
19133 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19134 * config/i386/i386-builtin.c (enum processor_features): Add
19135 F_AVX512BF16.
19136 (static const _isa_names_table isa_names_table): Ditto.
19137 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19138 (PTA_AVX512BF16): Ditto.
19139 * config/i386/i386.opt: Add -mavx512bf16.
19140 * config/i386/immintrin.h: Include avx512bf16intrin.h
19141 and avx512bf16vlintrin.h.
19142 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19143 avx512f_cvtneps2bf16_<mode><mask_name>,
19144 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19145 * config/i386/subst.md (mask_half): Add new subst.
19146 * doc/invoke.texi: Document -mavx512bf16.
19147
19148 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19149
19150 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19151 Delete declaration.
19152 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19153 (rs6000_debug_legitimize_reload_address): Delete.
19154 (rs6000_legitimize_reload_address_ptr): Delete.
19155 (rs6000_option_override_internal): Adjust.
19156 (mem_operand_gpr): Adjust comment.
19157 (legitimate_lo_sum_address_p): Ditto.
19158 (rs6000_legitimize_reload_address): Delete.
19159 (rs6000_debug_legitimize_reload_address): Delete.
19160 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19161
19162 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19163
19164 PR target/89765
19165 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19166 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19167 to compute vector element selector for both constant and variable
19168 operands.
19169
19170 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19171
19172 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19173 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19174 ashrdi3_cvt using SWI48 mode iterator.
19175
19176 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19177
19178 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19179 (aarch64_<su>abd<mode>_3): Likewise.
19180 (*aarch64_<su>abd<mode>_3): New define_insn.
19181 (<sur>sad<vsi2qi>): New define_expand.
19182 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19183 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19184 (build_vect_cond_expr): Likewise.
19185
19186 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19187
19188 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19189 clobbers outside of accessible_reg_set.
19190 * config/i386/i386.c (ix86_conditional_register_usage):
19191 Disable register sets by clearing corresponding bits in
19192 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19193 call_used_regs and don't clear corresponding reg_names array members.
19194
19195 2019-05-07 Richard Biener <rguenther@suse.de>
19196
19197 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19198 not specified still compute a comp_vectype for invariant
19199 compares.
19200
19201 2019-05-07 Richard Biener <rguenther@suse.de>
19202
19203 PR tree-optimization/90316
19204 * tree-ssa-pre.c (translate_vuse_through_block): When
19205 same_valid is NULL do not bother to search for a virtual
19206 PHI continuation.
19207 (phi_translate_1): When operands changed we cannot keep
19208 the same value-number so do not bother to ask whether
19209 that's possible from translate_vuse_through_block.
19210
19211 2019-05-07 Martin Liska <mliska@suse.cz>
19212
19213 * bitmap.c (bitmap_register): Come up with
19214 alloc_descriptor_max_uid and assign it for
19215 a new bitmap.
19216 (register_overhead): Use get_descriptor as
19217 a descriptor.
19218 (release_overhead): New.
19219 (bitmap_elem_to_freelist): Call it.
19220 (bitmap_elt_clear_from): Likewise.
19221 (bitmap_obstack_free): Likewise.
19222 (bitmap_move): Sensitively release memory.
19223 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19224 (bitmap_initialize): Initialize alloc_descriptor to zero.
19225 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19226
19227 2019-05-07 Richard Biener <rguenther@suse.de>
19228
19229 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19230 we build a SLP node. Remove max_size and limiting.
19231 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19232
19233 2019-05-07 Richard Biener <rguenther@suse.de>
19234
19235 PR tree-optimization/90316
19236 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19237 limit by reference.
19238 (walk_non_aliased_vuses): Take walking limit argument.
19239 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19240 walking if it is reached instead of just counting.
19241 (get_continuation_for_phi): Likewise.
19242 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19243 limiting to the callback.
19244 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19245 (vn_reference_lookup_3): Likewise.
19246 (vn_reference_lookup_pieces): Likewise.
19247 (vn_reference_lookup): Likewise.
19248 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19249 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19250 (avail_exprs_stack::lookup_avail_expr): Likewise.
19251
19252 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19253
19254 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19255 for comparaible types in the second direction even if first one
19256 hits incomparable type.
19257
19258 2019-05-07 Richard Biener <rguenther@suse.de>
19259
19260 PR lto/90369
19261 * lto-wrapper.c (debug_objcopy): Use the original filename
19262 including archive offset for the filename used for -save-temps.
19263
19264 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19265
19266 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19267 detection.
19268
19269 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19270 Hongtao Liu <hongtao.liu@intel.com>
19271
19272 PR target/89750
19273 PR target/86444
19274 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19275 Modified, original implementation isn't correct.
19276
19277 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19278
19279 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19280 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19281 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19282 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19283 (FRAME_POINTER_REGNUM): Change numbering.
19284 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19285 (alt_reg_names): Adjust.
19286 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19287 fixed.
19288 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19289 (DWARF_FRAME_REGISTERS): Delete.
19290 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19291 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19292 Adjust.
19293 (REG_ALLOC_ORDER): Adjust.
19294 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19295 (REG_CLASS_CONTENTS): Adjust.
19296 (RETURN_ADDR_RTX): Change comment.
19297 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19298 instead of 67.
19299 (REGISTER_NAMES): Adjust.
19300 (ADDITIONAL_REGISTER_NAMES): Adjust.
19301 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19302
19303 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19304
19305 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19306 Delete.
19307 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19308 (DWARF_FRAME_REGISTERS): Adjust.
19309 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19310 Adjust.
19311 (REG_ALLOC_ORDER): Adjust.
19312 (enum reg_class): Delete SPR_REGS.
19313 (REG_CLASS_NAMES): Delete SPR_REGS.
19314 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19315 (REGISTER_NAMES): Adjust.
19316 (ADDITIONAL_REGISTER_NAMES): Adjust.
19317 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19318 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19319 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19320 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19321 (htm_spr_regno): Delete.
19322 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19323 argument.
19324 (rs6000_dbx_register_number): Adjust.
19325
19326 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19327
19328 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19329
19330 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19331
19332 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19333 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19334
19335 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19336
19337 PR tree-optimization/88709
19338 PR tree-optimization/90271
19339 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19340 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19341 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19342 variable.
19343 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19344 of the store merging group is larger than
19345 PARAM_STORE_MERGING_MAX_SIZE parameter.
19346 (split_group): Add bzero_first argument. If set, always emit first
19347 the first store which must be = {} of the whole area and then for the
19348 rest of the stores consider all zero bytes as paddings.
19349 (imm_store_chain_info::output_merged_store): Check if first store
19350 is = {} of the whole area and if yes, determine which setting of
19351 bzero_first for split_group gives smaller number of stores. Adjust
19352 split_group callers.
19353 (lhs_valid_for_store_merging_p): Allow decls.
19354 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19355 no elts.
19356 (pass_store_merging::process_store): Likewise.
19357
19358 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19359
19360 PR target/89424
19361 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19362 handling of V1TImode.
19363
19364 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19365
19366 PR target/89221
19367 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19368 and enable_frame_pointer ...
19369 * configure.ac: ... here. Update help strings for
19370 --enable-frame-pointer.
19371 * configure: Regenerate.
19372 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19373 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19374 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19375 (USE_X86_64_FRAME_POINTER): Ditto.
19376
19377 2019-05-06 Martin Liska <mliska@suse.cz>
19378
19379 * config.gcc: Append to target_gtfiles and fix indentation.
19380
19381 2019-05-06 Richard Biener <rguenther@suse.de>
19382
19383 PR tree-optimization/90358
19384 * tree-vect-stmts.c (get_group_load_store_type): Properly
19385 detect unused upper half of load.
19386 (vectorizable_load): Likewise.
19387
19388 2019-05-06 Richard Biener <rguenther@suse.de>
19389
19390 PR tree-optimization/88828
19391 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19392 (simplify_vector_constructor): ...here. Handle constants in
19393 the constructor.
19394
19395 2019-05-06 Richard Biener <rguenther@suse.de>
19396
19397 PR tree-optimization/90328
19398 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19399 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19400 is valid in the loop nest before using it.
19401 (initialize_data_dependence_relation): Adjust.
19402 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19403 loop as loop-nest to dr_may_alias_p.
19404
19405 2019-05-06 Richard Biener <rguenther@suse.de>
19406
19407 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19408
19409 2019-05-06 Richard Biener <rguenther@suse.de>
19410
19411 PR tree-optimization/90316
19412 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19413 compute target on demand.
19414 (get_continuation_for_phi): Remove code walking stmts to
19415 get to a target virtual operand which could end up being
19416 quadratic.
19417
19418 2019-05-06 Martin Liska <mliska@suse.cz>
19419
19420 PR sanitizer/90312
19421 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19422 when -mabi is selected to a non-default version.
19423
19424 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19425 Martin Liska <mliska@suse.cz>
19426
19427 * Makefile.in: Add lto-dump.texi.
19428 * cgraph.h: Add new functions get_visibility_string and
19429 get_symtab_type_string.
19430 * doc/gcc.texi: Include lto-dump section.
19431 * doc/lto-dump.texi: New file.
19432 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19433 (parse_dump_option): Factor out this function.
19434 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19435 (parse_dump_option): Export the function.
19436 * symtab.c (symtab_node::get_visibility_string): New function.
19437 (symtab_node::get_symtab_type_string): Likewise.
19438
19439 2019-05-06 Martin Liska <mliska@suse.cz>
19440
19441 * config/i386/i386-builtins.c: New file.
19442 * config/i386/i386-builtins.h: New file.
19443 * config/i386/i386-expand.c: New file.
19444 * config/i386/i386-expand.h: New file.
19445 * config/i386/i386-features.c: New file.
19446 * config/i386/i386-features.h: New file.
19447 * config/i386/i386-options.c: New file.
19448 * config/i386/i386-options.h: New file.
19449 * config.gcc: Add new files into extra_objs and
19450 target_gtfiles.
19451 * config/i386/i386.c: Split content of the file
19452 into newly introduced files.
19453 * config/i386/i386.h: Declare common variables
19454 and macros.
19455 * config/i386/t-i386: Define dependencies for new files.
19456
19457 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19458
19459 PR target/89400
19460 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19461 Restrict 'all' variant to 32-bit configurations.
19462 (unaligned_loadhiu): Likewise.
19463 (unaligned_storehi): Likewise.
19464 (unaligned_storesi): Likewise.
19465 (unaligned_loadhis): Disable when compiling for thumb1.
19466
19467 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19468
19469 PR tree-optimization/90269
19470 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19471 Ignore clobbers.
19472
19473 2019-05-03 Martin Liska <mliska@suse.cz>
19474
19475 * hash-map.h: Add is_empty function.
19476 * hash-set.h: Likewise.
19477 * hash-table.h: Likewise.
19478 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19479 elements () == 0 (and similar usages).
19480 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19481 * gimplify.c (gimplify_bind_expr): Likewise.
19482 (gimplify_switch_expr): Likewise.
19483 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19484 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19485 * postreload-gcse.c (dump_hash_table): Likewise.
19486 (gcse_after_reload_main): Likewise.
19487 * predict.c (combine_predictions_for_bb): Likewise.
19488 * tree-parloops.c (reduction_phi): Likewise.
19489 (separate_decls_in_region): Likewise.
19490 (transform_to_exit_first_loop): Likewise.
19491 (gen_parallel_loop): Likewise.
19492 (gather_scalar_reductions): Likewise.
19493 (try_create_reduction_list): Likewise.
19494 * var-tracking.c (dump_vars): Likewise.
19495 (emit_notes_for_changes): Likewise.
19496 (vt_emit_notes): Likewise.
19497
19498 2019-05-03 Richard Biener <rguenther@suse.de>
19499
19500 PR tree-optimization/90316
19501 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19502 before running VN.
19503
19504 2019-05-03 Richard Biener <rguenther@suse.de>
19505
19506 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19507 peeling for gaps by loading only lower halves of vectors
19508 if possible.
19509 (vectorizable_load): Likewise.
19510
19511 2019-05-03 Richard Biener <rguenther@suse.de>
19512
19513 PR middle-end/89518
19514 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19515
19516 2019-05-03 Richard Biener <rguenther@suse.de>
19517
19518 PR middle-end/87314
19519 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19520 Handle STRING_CST vs DECL or STRING_CST.
19521
19522 2019-05-03 Richard Biener <rguenther@suse.de>
19523
19524 PR tree-optimization/88963
19525 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19526 vector loads feeding only BIT_FIELD_REFs to component
19527 loads. Rewrite stores fed by CONSTRUCTORs to component
19528 stores.
19529
19530 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19531
19532 * opts.h (finish_options): Remove lang_mask argument.
19533 (print_help, help_option_argument): Declare.
19534 * opts.c (print_help): Remove forward declaration, no longer static.
19535 (finish_options): Remove lang_mask argument, don't call print_help
19536 here.
19537 * opts-global.c (decode_options): Adjust finish_option caller, call
19538 print_help here.
19539
19540 PR tree-optimization/90303
19541 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19542 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19543
19544 2019-05-03 Richard Biener <rguenther@suse.de>
19545
19546 PR tree-optimization/89698
19547 * gimple-fold.c (canonicalize_constructor_val): Early out
19548 for constants, handle unfolded INTEGER_CSTs as they appear in
19549 C++ virtual table ctors.
19550
19551 2019-05-03 Richard Biener <rguenther@suse.de>
19552
19553 * passes.c (execute_function_todo): Remove dead code.
19554
19555 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19556
19557 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19558 the internal register number, for any "real" register.
19559
19560 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19561
19562 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19563 correct numbers for TFHAR, TFIAR, TEXASR.
19564
19565 2019-05-02 Richard Biener <rguenther@suse.de>
19566
19567 PR tree-optimization/89653
19568 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19569 update-address-taken before the pass.
19570 * passes.def (pass_tree_loop_init): Put comment before it.
19571
19572 2019-05-02 Richard Biener <rguenther@suse.de>
19573
19574 PR tree-optimization/89509
19575 * tree-ssa-structalias.c (compute_dependence_clique): Look
19576 at the first subvar when determining whether it is restrict.
19577
19578 2019-05-02 Richard Biener <rguenther@suse.de>
19579
19580 PR tree-optimization/90273
19581 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19582 useless debug stmts.
19583
19584 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19585
19586 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19587 ACLE branch.
19588 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19589 SVE ACLE branch.
19590 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19591 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19592 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19593 (vectorizable_reduction): Use the functions above to vectorize in a
19594 fully masked loop codes that don't have a conditional internal
19595 function.
19596
19597 2019-05-02 Martin Liska <mliska@suse.cz>
19598
19599 * cgraphclones.c: Call valid_attribute_p with 1 for
19600 target_clone.
19601 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19602 it's for target attribute.
19603 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19604 Add new boolean argument.
19605 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19606 Likewise.
19607 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19608 to ix86_valid_target_attribute_inner_p.
19609 (ix86_valid_target_attribute_p): Pass flags argument to
19610 ix86_valid_target_attribute_inner_p.
19611 (get_builtin_code_for_version): Use 0 as it's target attribute.
19612
19613 2019-05-02 Martin Liska <mliska@suse.cz>
19614
19615 * gcc.c (process_command): Add dummy file only
19616 if n_infiles == 0.
19617 * opts-global.c (decode_options): Pass lang_mask.
19618 * opts.c (print_help): New function.
19619 (finish_options): Print --help if help_option_argument
19620 is set.
19621 (common_handle_option): Factor out content of OPT__help_
19622 into print_help.
19623 * opts.h (finish_options): Add new argument.
19624
19625 2019-05-02 Martin Liska <mliska@suse.cz>
19626
19627 PR target/88809
19628 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19629 With -minline-all-stringops use inline expansion using 4B loop.
19630 * doc/invoke.texi: Document the change of
19631 -minline-all-stringops.
19632
19633 2019-05-01 Jeff Law <law@redhat.com>
19634
19635 PR tree-optimization/88797
19636 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19637 PHI feeds a conditional on the RHS of an assignment.
19638
19639 2019-04-30 Andrew Waterman <andrew@sifive.com>
19640 Jim Wilson <jimw@sifive.com>
19641
19642 * config/riscv/constraints.md (L): New.
19643 * config/riscv/predicates.md (lui_operand): New.
19644 (sfb_alu_operand): New.
19645 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19646 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19647 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19648 * config/riscv/risc.md (type): Add sfb_alu.
19649 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19650 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19651 (branch_zero<mode>): Delete.
19652 (mov<mode>cc): New.
19653 (mov<GPR:mode><X:mode>cc): Likewise.
19654 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19655
19656 2019-04-30 Nathan Sidwell <nathan@acm.org>
19657
19658 * tree.h (MARK_TS_EXP): New.
19659
19660 2019-04-30 Martin Liska <mliska@suse.cz>
19661
19662 * opts.c (enable_warning_as_error): Provide hints
19663 for unknown options.
19664
19665 2019-04-30 Martin Liska <mliska@suse.cz>
19666
19667 PR debug/90288
19668 * doc/invoke.texi: Add missing dash for gas-locview-support
19669 and gno-as-locview-support.
19670
19671 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19672
19673 PR target/89093
19674 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19675 whitespace at the start of target attribute string.
19676
19677 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19678
19679 PR target/86538
19680 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19681 Define __ARM_FEATURE_ATOMICS.
19682
19683 2019-04-30 Martin Liska <mliska@suse.cz>
19684
19685 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19686 into built_in_function enum. Remove code for endp == 2 and
19687 use BUILT_IN_* constants.
19688 (gimple_fold_builtin): Call the function with fcode.
19689
19690 2019-04-30 Martin Liska <mliska@suse.cz>
19691
19692 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19693 DECL_FUNCTION_CODE into ix86_builtins enum before
19694 the switch statement.
19695
19696 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19697
19698 PR tree-optimization/89475
19699 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19700 calls.
19701
19702 2019-04-30 Martin Liska <mliska@suse.cz>
19703
19704 PR translation/90274
19705 * opts.c (print_filtered_help): Wrap string in _(...).
19706
19707 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19708
19709 PR tree-optimization/90240
19710 Revert:
19711 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19712
19713 PR tree-optimization/90078
19714 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19715 checks for infinite_cost overflow.
19716
19717 2019-04-29 Jeff Law <law@redhat.com>
19718
19719 * passes.def: Move -Wrestrict pass after copy propagation.
19720
19721 2019-04-29 Maya Rashish <coypu@sdf.org>
19722
19723 * config.gcc (default_gnu_indirect_function): Default to yes
19724 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19725 sparc*-*-netbsd*, x86_64-*-netbsd*.
19726
19727 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19728
19729 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19730 where cond2 is NE_EXPR.
19731 (is_value_included_in): Update comment.
19732
19733 2019-04-29 Richard Biener <rguenther@suse.de>
19734
19735 PR tree-optimization/90278
19736 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19737 EH on comparison simplification.
19738
19739 2019-04-29 Jason Merrill <jason@redhat.com>
19740
19741 PR c++/82081 - tail call optimization breaks noexcept
19742 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19743 nothrow function to a might-throw function into a tail call.
19744
19745 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19746
19747 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19748 (DDR_INNER_LOOP): Likewise.
19749 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19750 (initialize_data_dependence_relation): Likewise.
19751 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19752
19753 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19754
19755 PR rtl-optimization/90257
19756 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19757 return value.
19758
19759 Revert the revert:
19760 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19761
19762 PR target/90178
19763 Revert:
19764 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19765
19766 Revert the revert:
19767 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19768
19769 Revert:
19770 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19771
19772 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19773
19774 2019-04-29 Richard Biener <rguenther@suse.de>
19775
19776 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19777 rhs issue a reset.
19778
19779 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19780
19781 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19782 varasm.h, and netbsd-protos.h.
19783
19784 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19785
19786 PR target/89261
19787 * config/i386/i386-protos.h (ix86_data_alignment): Change
19788 the second argument type to unsigned int.
19789 * config/i386/i386.c (ix86_data_alignment): Change "align"
19790 argument type to unsigned int.
19791
19792 2019-04-27 Martin Liska <mliska@suse.cz>
19793
19794 PR middle-end/90258
19795 * opt-suggestions.c (option_proposer::build_option_suggestions):
19796 When get_valid_option_values returns empty values, add the
19797 misspelling candidate.
19798
19799 2019-04-26 Jim Wilson <jimw@sifive.com>
19800
19801 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19802 parameter.
19803 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19804 Pass orig_mode to riscv_build_integer.
19805 (riscv_split_integer): Pass mode to riscv_move_integer.
19806 (riscv_legitimize_const_move): Likewise.
19807 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19808 promoted_mode. Replace force_reg call with code to load constant into
19809 promoted reg and then subreg it for the store.
19810 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19811 riscv_move_integer.
19812
19813 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19814
19815 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19816 corrupt codes.
19817
19818 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19819
19820 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19821 commentary about the encoding of precision.
19822
19823 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19824
19825 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19826 * config/i386/t-freebsd64: New file.
19827 * config.gcc: Add the t-freebsd64 for multilib support.
19828
19829 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19830
19831 * doc/extend.texi (vector_size): Add missing comma after @xref.
19832
19833 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19834
19835 * BASE-VER: Set to 10.0.0.
19836
19837 2019-04-25 Richard Biener <rguenther@suse.de>
19838
19839 PR middle-end/89765
19840 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19841 VIEW_CONVERT_EXPR into one operating on an rvalue.
19842
19843 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19844
19845 PR target/89929
19846 * config/i386/i386.c (feature_priority): Moved to file scope.
19847 (processor_features): Likewise.
19848 (processor_model): Likewise.
19849 (_arch_names_table): Likewise.
19850 (arch_names_table): Likewise.
19851 (_feature_list): Removed.
19852 (feature_list): Likewise.
19853 (_isa_names_table): Moved to file scope. Add priority.
19854 (isa_names_table): Likewise.
19855 (get_builtin_code_for_version): Replace feature_list with
19856 isa_names_table. Update error message for P_ZERO priority.
19857
19858 2019-04-25 Richard Biener <rguenther@suse.de>
19859
19860 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19861 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19862
19863 2019-04-24 Jeff Law <law@redhat.com>
19864
19865 PR tree-optimization/90037
19866 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19867 * passes.def: Replace all instance of phi-only cprop with the
19868 lattice propagator. Move propagation pass from after erroneous
19869 path isolation to before erroneous path isolation.
19870 * tree-ssa-phionlycprop.c: Remove.
19871
19872 2019-04-24 Richard Biener <rguenther@suse.de>
19873
19874 PR middle-end/90213
19875 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19876 by size and BITS_PER_UNIT on poly-wide-ints.
19877
19878 2019-04-25 Richard Biener <rguenther@suse.de>
19879
19880 PR middle-end/90194
19881 * match.pd: Add pattern to simplify view-conversion of an
19882 empty constructor.
19883
19884 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19885
19886 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19887 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19888 for Go on 32 bit AIX.
19889 * config/rs6000/aix72.h: Likewise.
19890
19891 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19892
19893 PR target/90193
19894 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19895 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19896
19897 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19898
19899 PR target/89952
19900 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19901 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19902 for restored hard frame pointer.
19903 (s390_sched_dependencies_evaluation): Implement new target hook.
19904 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19905
19906 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19907
19908 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19909 * config/arc/arc.c (arc_init): Cleanup warning message.
19910 (arc_override_options): Likewise.
19911
19912 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19913
19914 PR target/90187
19915 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19916 a register if both if_true and if_false are MEMs.
19917
19918 PR tree-optimization/90208
19919 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19920 after labels of new_bb, not before them.
19921
19922 PR tree-optimization/90211
19923 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19924 which are not SSA_NAMEs.
19925
19926 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19927
19928 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19929 AArch64.
19930 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19931
19932 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19933
19934 PR rtl-optimization/87979
19935 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19936 not equal zero.
19937
19938 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19939
19940 PR rtl-optimization/84032
19941 * modulo-sched.c (ps_insn_find_column): Change condition so that
19942 branch will always be the last insn in a row inside partial
19943 schedule.
19944
19945 2019-04-23 Richard Biener <rguenther@suse.de>
19946
19947 PR debug/90131
19948 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19949 dest_single_pred_p argument.
19950 (remove_forwarder_block): Adjust.
19951 (remove_forwarder_block_with_phi): Likewise.
19952
19953 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19954 Bernd Edlinger <bernd.edlinger@hotmail.de>
19955 Jakub Jelinek <jakub@redhat.com>
19956
19957 PR target/89093
19958 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19959 if used with general-regs-only.
19960 (arm_conditional_register_usage): Don't add non-general regs if
19961 general-regs-only.
19962 (arm_valid_target_attribute_rec): Handle general-regs-only.
19963 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19964 general-regs-only.
19965 (TARGET_HARD_FLOAT_SUB): Define.
19966 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19967 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19968 (TARGET_REALLY_IWMMXT2): Likewise.
19969 * config/arm/arm.opt: Add -mgeneral-regs-only.
19970 * doc/extend.texi: Document ARM general-regs-only target.
19971 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19972
19973 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19974
19975 PR tree-optimization/90078
19976 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19977 checks for infinite_cost overflow.
19978
19979 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19980
19981 PR tree-optimization/90021
19982 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19983 and check univariate against it.
19984 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19985 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19986
19987 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19988
19989 PR target/90178
19990 Revert:
19991 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19992
19993 Revert the revert:
19994 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19995
19996 Revert:
19997 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19998
19999 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20000
20001 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20002
20003 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20004 names using operand format, rather than hard-wired.
20005 (speculation_barrier): Likewise.
20006
20007 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20008
20009 PR tree-optimization/88055
20010 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20011 (gen_one_condition): Use it if !HONOR_NANS.
20012
20013 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20014
20015 PR middle-end/90139
20016 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20017 assign_temp instead of gen_reg_rtx.
20018
20019 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20020
20021 PR translation/90118
20022 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20023 Add missing space before %<.
20024
20025 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20026
20027 PR rtl-optimization/87871
20028 * ira-lives.c (make_object_dead): Don't add conflicts to
20029 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20030
20031 2019-04-18 Martin Sebor <msebor@redhat.com>
20032
20033 PR middle-end/89797
20034 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20035 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20036 assuming type size fits in SHWI.
20037
20038 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20039
20040 PR ipa/85051
20041 * ipa-inline.c (flatten_function): New parameter UPDATE.
20042 (ipa_inline, early_inliner): Use it.
20043
20044 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20045
20046 * fold-const.c (int_const_binop): Return early on failure.
20047
20048 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20049
20050 PR middle-end/85164
20051 * combine.c (force_int_to_mode): Cast the argument rather than
20052 the result of known_alignment.
20053 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20054
20055 2019-04-18 Richard Biener <rguenther@suse.de>
20056
20057 PR debug/90131
20058 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20059 out from ...
20060 (remove_forwarder_block): ... here.
20061 (remove_forwarder_block_with_phi): Also move debug stmts here.
20062
20063 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20064
20065 PR translation/79183
20066 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20067 inform where appropriate.
20068
20069 2019-04-18 Richard Biener <rguenther@suse.de>
20070
20071 * tree.c (get_qualified_type): Put found type variants at the
20072 head of the variant list.
20073
20074 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20075
20076 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20077
20078 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20079
20080 PR target/90125
20081 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20082 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20083 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20084 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20085 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20086
20087 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20088
20089 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20090 even for allocno's with no conflicts.
20091 (print_conflicts): Print an extra newline.
20092
20093 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20094
20095 * auto-inc-dec.c (attempt_change): Set the alignment of the
20096 temporary memory to that of the original.
20097
20098 2019-04-17 Joao Moreira <jmoreira@suse.de>
20099
20100 * targhooks.c (default_print_patchable_function_entry): Emit
20101 __patchable_function_entries section with writable flags to allow
20102 relocation resolution.
20103
20104 2019-04-17 Jonny Grant <jg@jguk.org>
20105
20106 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20107
20108 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20109
20110 PR middle-end/90095
20111 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20112 on lowpart SUBREGs.
20113
20114 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20115
20116 * config/arc/arc.c (arc_init): Format diagnostic string.
20117 (arc_override_options): Likewise.
20118 (check_if_valid_regno_const): Likewise.
20119 (arc_reorg): Likewise.
20120
20121 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20122
20123 PR target/17108
20124 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20125 name.
20126 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20127 name.
20128 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20129 (*movdi_update1): Use Pmode.
20130 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20131 (movdi_<mode>_update_stack): Rename to ...
20132 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20133 use Pmode.
20134 (*movsi_update1): Use Pmode.
20135 (*movsi_update2): Use Pmode.
20136 (movsi_update): Rename to ...
20137 (movsi_<mode>_update): ... this. Use Pmode.
20138 (movsi_update_stack): Fix condition.
20139 (*movhi_update1): Use Pmode. Fix argument to
20140 avoiding_indexed_address_p.
20141 (*movhi_update2): Ditto.
20142 (*movhi_update3): Ditto.
20143 (*movhi_update4): Ditto.
20144 (*movqi_update1): Ditto.
20145 (*movqi_update2): Ditto.
20146 (*movqi_update3): Ditto.
20147 (*movsf_update1, *movdf_update1): Merge, rename to...
20148 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20149 avoiding_indexed_address_p. Add "size" attribute.
20150 (*movsf_update2, *movdf_update2): Merge, rename to...
20151 (*mov<mode>_update2): This. Ditto.
20152 (*movsf_update3): Use Pmode. Fix argument to
20153 avoiding_indexed_address_p.
20154 (*movsf_update4): Ditto.
20155 (allocate_stack): Simplify condition. Adjust pattern names.
20156
20157 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20158
20159 PR target/89093
20160 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20161 whitespace at the start of target attribute string.
20162
20163 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20164
20165 PR target/84369
20166 * config/rs6000/power9.md: Add store forwarding bypass.
20167
20168 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20169
20170 PR debug/89528
20171 * valtrack.c (dead_debug_insert_temp): Reset debug references
20172 to the return value of a call being removed.
20173
20174 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20175
20176 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20177 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20178 implement target hook.
20179 (arc_memory_move_cost): New function.
20180 (TARGET_REGISTER_MOVE_COST): Define.
20181 (TARGET_MEMORY_MOVE_COST): Likewise.
20182 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20183 (MEMORY_MOVE_COST): Likewise.
20184
20185 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20186
20187 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20188 (sibcall_value_insn): Likewise.
20189 * config/arc/constraints.md (Rs5): Remove.
20190
20191 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20192
20193 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20194 for last two fake registers.
20195 (arc_conditional_register_usage): Make sure fake frame and arg
20196 pointer regs are in general regs class.
20197 (FRAME_POINTER_MASK): Remove.
20198 (RETURN_ADDR_MASK): Remove.
20199 (arc_must_save_register): Use hard frame regnum.
20200 (frame_restore_reg): Use hard_frame_pointer_rtx.
20201 (arc_save_callee_saves): Likewise.
20202 (arc_restore_callee_saves): Likewise.
20203 (arc_save_callee_enter): Likewise.
20204 (arc_restore_callee_leave): Likewise.
20205 (arc_save_callee_milli): Likewise.
20206 (arc_eh_return_address_location): Likewise.
20207 (arc_check_multi): Use hard frame regnum.
20208 (arc_can_eliminate): Likewise.
20209 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20210 for register allocator.
20211 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20212 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20213 (FRAME_POINTER_REGNUM): Change it to a fake register.
20214 (HARD_FRAME_POINTER_REGNUM): Defined.
20215 (ARG_POINTER_REGNUM): Change it to a new fake register.
20216 (ELIMINABLE_REGS): Update.
20217 (REGISTER_NAMES): Update names.
20218 * config/arc/arc.md (LP_START): Remove.
20219 (LP_END): Likewise.
20220 (shift_si3_loop): Update pattern.
20221
20222 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20223
20224 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20225 to avoid delay slot scheduling.
20226 (arc_must_save_register): Don't save SP.
20227 * config/arc/arc.md (stack_tie): Remove.
20228 (UNSPEC_ARC_STKTIE): Likewise.
20229
20230 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20231 Shiva Chen <shiva0217@gmail.com>
20232
20233 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20234 code gen with large shift amount.
20235
20236 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20237
20238 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20239 subreg.
20240
20241 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20242
20243 PR target/90096
20244 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20245 print -m64/-mx32/-m32 if it is true.
20246 (ix86_debug_options, ix86_function_specific_print): Pass true as
20247 ADD_ABI_P to ix86_target_string.
20248 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20249 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20250 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20251
20252 PR rtl-optimization/90082
20253 * dce.c (can_delete_call): New function.
20254 (deletable_insn_p, mark_insn): Use it.
20255
20256 PR tree-optimization/90090
20257 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20258 throw internally.
20259 (is_division_by_square): Likewise. Formatting fix.
20260
20261 2019-04-16 Richard Biener <rguenther@suse.de>
20262
20263 PR tree-optimization/56049
20264 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20265 equality check if alias-set zero will prevail.
20266
20267 2019-04-15 Jeff Law <law@redhat.com>
20268
20269 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20270 size and alignment as unsigned.
20271
20272 2019-04-15 Richard Biener <rguenther@suse.de>
20273
20274 PR debug/90074
20275 * tree-loop-distribution.c (destroy_loop): Preserve correct
20276 debug info.
20277
20278 2019-04-15 Richard Biener <rguenther@suse.de>
20279
20280 PR tree-optimization/90071
20281 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20282 abnormal operands from def stmts.
20283
20284 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20285
20286 PR rtl-optimization/89794
20287 * combine.c (count_auto_inc): New function.
20288 (try_combine): Count how many auto_inc expressions there were in the
20289 original instructions. Ensure we have the same number in the new
20290 instructions. Remove the code that tried to ensure auto_inc side
20291 effects on i1 and i0 are not lost.
20292
20293 2019-04-15 Richard Biener <rguenther@suse.de>
20294
20295 PR ipa/88936
20296 * tree.h (auto_var_p): Declare.
20297 * tree.c (auto_var_p): New function, split out from ...
20298 (auto_var_in_fn_p): ... here.
20299 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20300 member.
20301 (new_var_info): Initialize it.
20302 (set_uids_in_ptset): Also set the shadow variable uid if required.
20303 (ipa_pta_execute): Postprocess points-to solutions assigning
20304 shadow variable uids for locals that may reach their containing
20305 function recursively.
20306 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20307 assert but instead check whether the points-to solution is
20308 a singleton.
20309
20310 2019-04-15 Martin Jambor <mjambor@suse.cz>
20311
20312 PR ipa/pr89693
20313 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20314 the thunk chain.
20315
20316 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20317
20318 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20319
20320 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20321 Kito Cheng <kito.cheng@gmail.com>
20322 Shiva Chen <shiva0217@gmail.com>
20323
20324 * config/nds32/nds32-md-auxiliary.c
20325 (nds32_legitimize_pic_address): Use new PIC pattern.
20326 (nds32_legitimize_tls_address): Use new TLS pattern.
20327 (nds32_output_symrel): New.
20328 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20329 (nds32_alloc_relax_group_id): Ditto.
20330 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20331 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20332 relax_group_id.
20333 (nds32_group_tls_insn): Ditto.
20334 (nds32_group_float_insns): Ditto.
20335 * config/nds32/nds32.md (tls_le): New.
20336 (sym_got): Ditto.
20337
20338 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20339
20340 * configure: Add nds32 target for dwarf2 debug_line checking.
20341 * configure.ac: Regenerated.
20342
20343 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20344
20345 PR lto/89358
20346 * ipa-devirt.c (skip_in_fields_list_p): New.
20347 (odr_types_equivalent_p): Use it.
20348
20349 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20350
20351 PR target/89093
20352 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20353 instead of strncmp when checking for thumb and arm. Formatting fixes.
20354
20355 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20356
20357 * doc/install.texi: Document --with-target-system-zlib.
20358
20359 2019-04-12 Martin Sebor <msebor@redhat.com>
20360
20361 PR c/88383
20362 PR c/89288
20363 PR c/89798
20364 PR c/89797
20365 * targhooks.c (default_vector_alignment): Avoid assuming
20366 argument fits in SHWI.
20367 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20368 a shift expression.
20369 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20370
20371 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20372
20373 PR rtl-optimization/89965
20374 * dce.c: Include rtl-iter.h.
20375 (struct check_argument_load_data): New type.
20376 (check_argument_load): New function.
20377 (find_call_stack_args): Check for loads from stack slots still tracked
20378 in sp_bytes and punt if any is found.
20379
20380 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20381
20382 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20383
20384 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20385 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20386
20387 2019-04-12 Martin Liska <mliska@suse.cz>
20388
20389 PR middle-end/89970
20390 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20391 in error message.
20392 (separate_attrs): Handle multiple 'default's.
20393 (expand_target_clones): Rework error handling code.
20394
20395 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20396
20397 PR target/87532
20398 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20399 mode of vector rather than mode of destination for move instruction.
20400 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20401 Use QI inner mode with V16QI vector mode.
20402
20403 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20404
20405 PR target/52726
20406 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20407 "invalid %%t operand" in output_operand_lossage message.
20408
20409 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20410
20411 * config/s390/predicates.md (permute_pattern_operand): New
20412 predicate.
20413 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20414 operand for the permute pattern.
20415 ("*vec_perm<mode>"): New insn definition.
20416 ("bswap<mode>"): Generate the permute pattern operand in the
20417 expander and perform the operand reloads for pre arch13 level
20418 already.
20419 ("*bswap<mode>_emu"): Rename to ...
20420 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20421 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20422 Add the USE operand for the permute pattern.
20423 ("*vec_set_bswap_vec<mode>"): Likewise.
20424
20425 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20426
20427 PR c/89946
20428 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20429 and gcc_unreachable if it fails, just call tree_to_uhwi which
20430 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20431 Start warning message with a lower-case letter. Formatting fixes.
20432
20433 PR rtl-optimization/90026
20434 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20435 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20436 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20437 in cfglayout mode, use emit_barrier_after_bb.
20438
20439 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20440
20441 PR rtl-optimization/87763
20442 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20443 New Instruction.
20444
20445 2019-04-11 Tom de Vries <tdevries@suse.de>
20446
20447 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20448 max macro using statement expression.
20449
20450 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20451
20452 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20453 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20454 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20455 read_only_private_data_section using xcoff_private_rodata_section_name.
20456 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20457
20458 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20459
20460 PR target/90016
20461 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20462
20463 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20464
20465 PR rtl-optimization/89965
20466 * dce.c (sp_based_mem_offset): New function.
20467 (find_call_stack_args): Use sp_based_mem_offset.
20468
20469 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20470
20471 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20472
20473 2019-04-11 Richard Biener <rguenther@suse.de>
20474
20475 PR tree-optimization/90020
20476 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20477 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20478 * tree-ssa-pre.c (compute_avail): Use it to not put
20479 possibly trapping references after a call that might not
20480 return into EXP_GEN.
20481 * gcse.c (compute_hash_table_work): Do not elide
20482 marking a block containing a call if the call might not
20483 return.
20484
20485 2019-04-11 Richard Biener <rguenther@suse.de>
20486
20487 PR tree-optimization/90018
20488 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20489 Test both SLP and interleaving variants.
20490
20491 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20492
20493 * config/s390/8561.md: New file.
20494 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20495 Add arch13 cpu model.
20496 * config/s390/s390-opts.h (enum processor_type): Likewise.
20497 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20498 (s390_get_unit_mask): Likewise.
20499 (s390_is_fpd): Likewise.
20500 (s390_is_fxd): Likewise.
20501 * config/s390/s390.h (s390_tune_attr): Likewise.
20502 * config/s390/s390.md: Include arch13 pipeline description.
20503 * config/s390/s390.opt: Add arch13.
20504
20505 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20506
20507 PR rtl-optimization/87763
20508 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20509 New prototype.
20510 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20511 New function.
20512 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20513 New instruction.
20514 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20515 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20516 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20517 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20518
20519 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20520
20521 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20522 "Although" in -fipa-icf documentation.
20523
20524 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20525 of using multiple -g options.
20526
20527 2019-04-10 Martin Liska <mliska@suse.cz>
20528
20529 PR gcov-profile/89959
20530 * doc/gcov.texi: Make documentation of -x option
20531 more precise.
20532
20533 2019-04-10 Richard Biener <rguenther@suse.de>
20534
20535 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20536 member.
20537 (DR_GROUP_SAME_DR_STMT): Remove.
20538 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20539 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20540 replace with assert.
20541 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20542 (vect_record_grouped_load_vectors): Remove unreachable code.
20543
20544 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20545
20546 PR target/90016
20547 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20548 obsolete reference to N.
20549
20550 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20551
20552 PR middle-end/90025
20553 * expr.c (store_expr): Set properly size on the MEM passed to
20554 clear_storage.
20555
20556 PR c++/90010
20557 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20558 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20559 translation is needed, and when translation is needed, only append
20560 ... if the string length is hostsz or more bytes long. Avoid using
20561 strncpy or strcat.
20562
20563 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20564
20565 PR target/90024
20566 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20567 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20568 into three.
20569 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20570 differences directly.
20571 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20572
20573 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20574
20575 PR translation/90011
20576 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20577 from diagnostics.
20578 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20579 diagnostics.
20580 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20581 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20582 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20583 trailing space from -gsplit-dwarf diagnostics.
20584
20585 PR tree-optimization/89998
20586 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20587 instead of integer_type_node if possible, don't add ranges if return
20588 type is not compatible with int.
20589 * gimple-fold.c (gimple_fold_builtin_sprintf,
20590 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20591 integer_type_node.
20592
20593 2019-04-09 Martin Liska <mliska@suse.cz>
20594
20595 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20596 * doc/install.texi: Document the new config.
20597
20598 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20599
20600 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20601 use gimple_expr_type for load and store calls. Skip over the
20602 condition argument in a conditional internal function.
20603 Protect use of TREE_INT_CST_LOW.
20604
20605 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20606
20607 PR target/90015
20608 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20609 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20610 trailing period from it too.
20611
20612 2019-04-08 wu yuan <wuyuan5@huawei.com>
20613
20614 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20615 * config/aarch64/aarch64.md : Add "tsv110.md"
20616 * config/aarch64/tsv110.md: New file.
20617
20618 2019-04-08 Richard Biener <rguenther@suse.de>
20619
20620 PR tree-optimization/90006
20621 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20622 calls like lrint.
20623
20624 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20625
20626 PR target/83033
20627 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20628 construction.
20629 (fma_root_node): Likewise.
20630 (func_fma_steering): Likewise.
20631
20632 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20633
20634 PR rtl-optimization/89865
20635 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20636
20637 PR rtl-optimization/89865
20638 * config/i386/i386.md
20639 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20640 numbers not to clash with the additional operands[4].
20641 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20642 with extra register copy in the middle.
20643
20644 2019-04-08 Martin Liska <mliska@suse.cz>
20645
20646 PR gcov-profile/89961
20647 * doc/gcov.texi: Document data_file.
20648 * gcov.c (generate_results): Add data_info into JSON output.
20649
20650 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20651
20652 PR tree-optimization/89725
20653 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20654 loop's chrec as invariant symbol.
20655 * tree-chrec.h (chrec_contains_symbols): New parameter.
20656 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20657 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20658 function of loops not in DDR's loop_nest.
20659 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20660
20661 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20662
20663 PR target/89623
20664 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20665 Mask.
20666
20667 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20668
20669 PR target/89945
20670 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20671 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20672
20673 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20674
20675 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20676 targetm.fixed_condition_code_regs.
20677
20678 2019-04-05 Richard Biener <rguenther@suse.de>
20679
20680 PR debug/89892
20681 PR debug/89905
20682 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20683 debug bind stmts but reset them if they are not valid at the
20684 destination.
20685
20686 2019-04-05 Martin Liska <mliska@suse.cz>
20687
20688 PR translation/89936
20689 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20690 order to wrap keywords or arguments.
20691 * collect2.c (main): Likewise.
20692 (scan_prog_file): Likewise.
20693 (scan_libraries): Likewise.
20694 * common/config/riscv/riscv-common.c
20695 (riscv_subset_list::parsing_subset_version): Likewise.
20696 (riscv_subset_list::parse_std_ext): Likewise.
20697 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20698 Likewise.
20699 * config/arm/arm.c (arm_option_override): Likewise.
20700 * config/cris/cris.c (cris_print_operand): Likewise.
20701 * config/darwin-c.c (darwin_pragma_options): Likewise.
20702 (darwin_pragma_unused): Likewise.
20703 (darwin_pragma_ms_struct): Likewise.
20704 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20705 * config/i386/i386.c (print_reg): Likewise.
20706 (ix86_print_operand): Likewise.
20707 * config/i386/xm-djgpp.h: Likewise.
20708 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20709 * config/m32c/m32c.c (m32c_option_override): Likewise.
20710 * config/msp430/msp430.c (msp430_option_override): Likewise.
20711 * config/nds32/nds32.c (nds32_option_override): Likewise.
20712 * config/nvptx/mkoffload.c (main): Likewise.
20713 * config/rx/rx.c (rx_print_operand): Likewise.
20714 (valid_psw_flag): Likewise.
20715 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20716 (vms_pragma_nomember_alignment): Likewise.
20717 (vms_pragma_extern_model): Likewise.
20718 * lto-wrapper.c (compile_offload_image): Likewise.
20719 * omp-offload.c (oacc_parse_default_dims): Likewise.
20720 * symtab.c (symtab_node::verify_base): Likewise.
20721 * tlink.c (recompile_files): Likewise.
20722 (start_tweaking): Likewise.
20723 * tree-profile.c (parse_profile_filter): Likewise.
20724
20725 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20726
20727 PR tree-optimization/89956
20728 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20729 multiple negates of the same value.
20730
20731 2019-04-04 Martin Sebor <msebor@redhat.com>
20732
20733 PR middle-end/89957
20734 PR middle-end/89911
20735 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20736 have the same precision since the function crashes otherwise.
20737 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20738 has non-zero arguments.
20739
20740 2019-04-04 Martin Sebor <msebor@redhat.com>
20741
20742 PR middle-end/89934
20743 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20744 out if the number of arguments is less than expected.
20745
20746 2019-04-04 Jeff Law <law@redhat.com>
20747
20748 PR rtl-optimization/89399
20749 * ree.c (combine_set_extension): Use single_set rather than
20750 digging into PATTERN for items on the candidate list.
20751 (combine_reaching_defs): Likewise.
20752
20753 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20754
20755 PR rtl-optimization/46590
20756 * loop-invariant.c (find_defs): Move df_remove_problem and
20757 df_process_deferred_rescans to move_invariants.
20758 Move df_live_add_problem and df_live_set_all_dirty calls
20759 to move_invariants.
20760 (move_invariants): Likewise.
20761 (move_loop_invariants): Likewise, making the df_live calls
20762 conditional on -O. Remove the problem again if we added it
20763 locally.
20764
20765 2019-04-03 qing zhao <qing.zhao@oracle.com>
20766
20767 PR tree-optimization/89730
20768 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20769 -flive-patching=inline-only-static.
20770 (can_inline_edge_by_limits_p): Add the checking for
20771 -flive-patching=inline-only-static and grant always_inline
20772 even when -flive-patching=inline-only-static is specified.
20773
20774 2019-04-03 Jeff Law <law@redhat.com>
20775
20776 PR rtl-optimization/81025
20777 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20778
20779 2019-04-03 Richard Biener <rguenther@suse.de>
20780
20781 PR tree-optimization/84101
20782 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20783 regs.h for hard_regno_nregs.
20784 (cfun_returns): New helper.
20785 (vect_model_store_cost): When vectorizing a store to a decl
20786 we return and the function ABI returns in a multi-reg location
20787 account for the possible spilling that will happen.
20788
20789 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20790
20791 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20792 displacement addresses for vector mode operands.
20793
20794 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20795
20796 * config/arc/arc.c (GMASK_LEN): Define.
20797 (arc_restore_callee_saves): Restore first blink when
20798 !optimize_size.
20799
20800 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20801
20802 * doc/extend.texi: Add deprecated comment on sign-return-address
20803 function attribute and add mbranch-protection.
20804 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20805
20806 2019-04-03 Richard Biener <rguenther@suse.de>
20807
20808 PR lto/89896
20809 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20810 the all target phony.
20811
20812 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20813
20814 PR target/89902
20815 PR target/89903
20816 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20817 Return false for variable DImode shifts.
20818 (dimode_scalar_chain::compute_convert_gain): Do not handle
20819 register count operand in variable DImode shifts.
20820 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20821 count argument of a variable shift instruction to a vector register.
20822 (dimode_scalar_chain::convert_reg): Remove support to convert
20823 count argument of a variable shift instruction.
20824
20825 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20826
20827 PR rtl-optimization/84206
20828 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20829 iterating over loop headers.
20830
20831 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20832
20833 PR rtl-optimization/85876
20834 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20835 beyond the original fence.
20836
20837 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20838
20839 * config.gcc: Mark spu* targets as deprecated/obsolete.
20840
20841 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20842
20843 * config/s390/s390-builtin-types.def: New builtin function type
20844 definitions. Remove unused types.
20845 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20846 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20847 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20848 overloaded builtins.
20849 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20850 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20851 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20852 (vec_double, vec_signed, vec_unsigned): Define to use the new
20853 overloaded builtins.
20854 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20855 Remove expanders.
20856
20857 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20858
20859 * config/s390/s390-builtin-types.def: New builtin function type
20860 definitions.
20861 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20862 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20863 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20864 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20865 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20866 constant definitions.
20867 * config/s390/vecintrin.h (vec_search_string_cc)
20868 (vec_search_string_until_zero_cc): New builtin name definitions.
20869 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20870 expanders.
20871 ("vec_vstrs<mode>"): New insn definition.
20872
20873 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20874
20875 * config/s390/s390-builtin-types.def: Add new builtin function
20876 types.
20877 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20878 New overloaded builtins.
20879 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20880 s390_vsrd.
20881 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20882 (UNSPEC_VEC_SLDBYTE): ... this.
20883 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20884 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20885 definitions.
20886 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20887 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20888 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20889
20890 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20891
20892 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20893 New insn definition.
20894 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20895 * config/s390/vector.md (V_HW_HSD): ... here.
20896
20897 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20898
20899 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20900 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20901 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20902 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20903 New insn definitions.
20904
20905 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20906
20907 * config/s390/s390-builtin-types.def: Add new builtin function type.
20908 * config/s390/s390-builtins.def: Add overloaded builtin
20909 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20910 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20911 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20912 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20913 ("eltswap<mode>"): New expander.
20914 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20915 insn definitions.
20916
20917 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20918
20919 * config/s390/s390-builtin-types.def: Add new builtin function types.
20920 * config/s390/s390-builtins.def: Add overloaded builtin
20921 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20922 instructions.
20923 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20924 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20925 ("bswap<mode>"): New expander.
20926 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20927
20928 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20929
20930 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20931 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20932 vector builtin version number in __VEC__.
20933
20934 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20935
20936 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20937 iterators.
20938 (SFSI): New mode attribute.
20939 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20940 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20941 rename to ...
20942 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20943 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20944 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20945 ("floatsi<mode>2"): Add wcefb instruction.
20946
20947 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20948
20949 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20950 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20951 mode iterators.
20952 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20953 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20954 support 32 bit fp-int conversions. Rename to ...
20955 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20956 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20957 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20958 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20959 ... to these.
20960
20961 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20962
20963 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20964 if-then-else constructs if we can use the select instruction.
20965 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20966
20967 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20968
20969 * config/s390/s390.md ("*popcountdi_arch13_cc")
20970 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20971 definition.
20972 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20973 Append _z196 to make it ...
20974 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20975 ("popcounthi2_z196"): ... this.
20976 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20977 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20978
20979 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20980
20981 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20982 certain compares for arch13 in order to make use of the condition
20983 code result produced by the new instructions.
20984 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20985 nxrk, and nxgrk instruction patterns.
20986 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20987 (inv_no): Add new code iterator together with some attributes.
20988 ("*andc_split_<mode>"): Disable splitter for arch13.
20989 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20990 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20991 ("*<ANDOR:bitops_name>c<GPR:mode>")
20992 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20993 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20994 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20995 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20996
20997 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20998
20999 * common/config/s390/s390-common.c (processor_flags_table): New
21000 entry for arch13.
21001 * config.gcc: Support arch13 with the --with-arch= configure flag.
21002 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21003 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21004 * config/s390/s390.c (s390_get_sched_attrmask)
21005 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21006 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21007 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21008 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21009 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21010 definitions.
21011 * config/s390/s390.opt: Support arch13 as processor type in
21012 command line options.
21013
21014 2019-04-02 Martin Liska <mliska@suse.cz>
21015
21016 PR translation/89912
21017 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21018 Fix param description of graphite-max-arrays-per-scop.
21019
21020 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21021
21022 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21023 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21024 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21025
21026 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21027
21028 PR rtl-optimization/85412
21029 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21030 sel_sched_region_1, not after.
21031
21032 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21033
21034 PR rtl-optimization/86928
21035 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21036 compute_live if necessary.
21037 (sel_redirect_edge_and_branch): Likewise.
21038
21039 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21040
21041 PR rtl-optimization/89865
21042 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21043 register if it is a part of small class.
21044
21045 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21046
21047 PR rtl-optimization/87273
21048 * sel-sched-ir.c (merge_fences): Remove assert.
21049
21050 2019-04-01 Richard Biener <rguenther@suse.de>
21051
21052 PR tree-optimization/46590
21053 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21054 (dom_walker::m_reachability): Add in place of...
21055 (dom_walker::m_skip_unreachable_blocks): ...this.
21056 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21057 Move complex initialization ...
21058 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21059 lazily and initialize edge flags on each invocation.
21060 (dom_walker::bb_reachable): Use m_reachability.
21061
21062 2019-04-01 Martin Liska <mliska@suse.cz>
21063
21064 PR driver/89861
21065 * opt-suggestions.c (option_proposer::build_option_suggestions):
21066 Add variant without any argument in order to provide better
21067 hints.
21068
21069 2019-04-01 Richard Biener <rguenther@suse.de>
21070
21071 PR c/71598
21072 * gimple.c: Include langhooks.h.
21073 (gimple_get_alias_set): Treat enumeral types as the underlying
21074 integer type.
21075
21076 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21077 Eric Botcazou <ebotcazou@adacore.com>
21078
21079 PR rtl-optimization/89862
21080 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21081 that operates on the full registers for WORD_REGISTER_OPERATIONS
21082 architectures.
21083
21084 2019-03-29 Jim Wilson <jimw@sifive.com>
21085
21086 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21087 Clear MASK_RVC and then set if C subset supported.
21088
21089 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21090
21091 PR c/89872
21092 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21093 non-addressable complit into its initializer if it is volatile.
21094
21095 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21096
21097 * opts-common.c (integral_argument): Set errno properly in one case.
21098
21099 2019-03-29 Martin Liska <mliska@suse.cz>
21100
21101 * doc/invoke.texi: Remove -Wchkp from documentation.
21102
21103 2019-03-29 Martin Liska <mliska@suse.cz>
21104
21105 * dbgcnt.c (print_limit_reach): New function.
21106 (dbg_cnt): Use it.
21107
21108 2019-03-29 Martin Liska <mliska@suse.cz>
21109
21110 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21111 (dbg_cnt_process_opt): Parse first tokens aas
21112 dbg_cnt_process_single_pair is also using strtok.
21113
21114 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21115
21116 PR rtl-optimization/87485
21117 * function.c (expand_function_end): Move stack_protect_epilogue
21118 before loading of return value into hard register(s).
21119
21120 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21121
21122 PR middle-end/89621
21123 * tree-inline.h (struct copy_body_data): Add
21124 dont_remap_vla_if_no_change flag.
21125 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21126 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21127 and remap_type_2 returns false.
21128 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21129 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21130 only from where it is copied to nested contexts.
21131
21132 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21133
21134 PR target/89865
21135 * config/i386/i386.md (RMW operation with LEA peephole):
21136 Use LEAMODE mode attribute instead of SWI mode iterator for
21137 LEA pattern.
21138
21139 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21140
21141 PR target/89848
21142 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21143 Also process XEXP (src, 0) of a shift insn.
21144
21145 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21146
21147 PR middle-end/89725
21148 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21149 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21150
21151 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21152
21153 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21154 test.
21155 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21156 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21157 immediately after first one with df_analyze in between, but rather
21158 process all bbs, queueing ones that need second pass in a worklist,
21159 df_analyze, process queued debug insn changes and if second pass is
21160 needed, process bbs from worklist, df_analyze, process queued debug
21161 insns again.
21162
21163 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21164 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21165 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21166
21167 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21168
21169 PR c/79022
21170 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21171 definition.
21172
21173 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21174
21175 PR target/85667
21176 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21177 function for 32-bit MS_ABI.
21178 (function_value_ms_32): New function.
21179
21180 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21181
21182 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21183 (movdi): Call gen_movdi_symbol_save_scc.
21184 (gen_movdi_symbol_save_scc): New insn and split.
21185
21186 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21187
21188 PR rtl-optimization/89313
21189 * function.c (matching_constraint_num): New static function.
21190 (match_asm_constraints_1): Use it. Fixup white space and comment.
21191 Don't replace inputs with non-matching constraints which conflict
21192 with early clobber outputs.
21193
21194 2019-03-27 Jeff Law <law@redhat.com>
21195
21196 PR rtl-optimization/87761
21197 PR rtl-optimization/89826
21198 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21199 slightly later.
21200 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21201 note problem to get REG_DEAD/REG_UNUSED notes updated.
21202
21203 2019-03-27 Richard Biener <rguenther@suse.de>
21204
21205 PR tree-optimization/89463
21206 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21207 queue edges to remove.
21208 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21209 dead stmts. Delay edge removal until PHIs are removed to
21210 make debug-stmt creation not confused by seemingly degenerate
21211 PHIs.
21212
21213 2019-03-27 Alan Modra <amodra@gmail.com>
21214
21215 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21216 throughout file.
21217 * config/rs6000/darwin.h: Likewise.
21218 * config/rs6000/rs6000.c: Likewise.
21219
21220 2019-03-27 Alan Modra <amodra@gmail.com>
21221
21222 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21223 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21224
21225 2019-03-26 Andrew Waterman <andrew@sifive.com>
21226 Jim Wilson <jimw@sifive.com>
21227
21228 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21229 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21230 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21231 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21232 (generic_alu): Add auipc to type list.
21233 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21234 (riscv_microarchitecture): Declare.
21235 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21236 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21237 field.
21238 (riscv_microarchitecture): New.
21239 (sifive_7_tune_info): New.
21240 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21241 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21242 entries.
21243 (riscv_store_data_bypass_p): New.
21244 (riscv_option_override): Set riscv_microarchitecture from
21245 cpu->microarchitecture.
21246 * config/riscv/riscv.md: Include sifive-7.md.
21247 (type): Add auipc.
21248 (tune): New.
21249 (auipc<mode>): Change type to auipc.
21250 (restore_stack_nonlocal): New.
21251 * config/riscv/sifive-7.md: New.
21252 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21253
21254 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21255
21256 PR target/89827
21257 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21258 Also process XEXP (src, 0) of a shift insn.
21259
21260 2019-03-26 Richard Biener <rguenther@suse.de>
21261
21262 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21263 (copy_debug_stmt): Likewise.
21264 (expand_call_inline): Likewise.
21265 (copy_bb): Avoid redundant lookup & set of gimple_block.
21266 * gimple-low.c (lower_gimple_return): Likewise.
21267 (lower_builtin_setjmp): Likewise.
21268
21269 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21270
21271 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21272 is constant 0, turn into static const data member initialized to false.
21273 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21274 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21275
21276 2019-03-26 Jason Merrill <jason@redhat.com>
21277 Jakub Jelinek <jakub@redhat.com>
21278
21279 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21280 method.
21281 (mem_alloc_description::release_object_overhead): Fix comment typos.
21282 * hash-table.h (hash_table::~hash_table): Call
21283 release_instance_overhead only if m_entries is non-NULL, otherwise
21284 call unregister_descriptor.
21285
21286 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21287
21288 PR tree-optimization/81740
21289 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21290 In case of outer loop vectorization, check for backward dependence
21291 at the inner loop if outer loop dependence is reversed.
21292
21293 2019-03-26 Alan Modra <amodra@gmail.com>
21294
21295 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21296 rs6000_vector_mem init. Correct wI and wJ comment.
21297
21298 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21299
21300 PR rtl-optimization/88347
21301 PR rtl-optimization/88423
21302 * sched-deps.c (sched_analyze_insn): Take into account that for
21303 tablejumps the barrier appears after a label and a jump_table_data.
21304
21305 2019-03-25 Martin Sebor <msebor@redhat.com>
21306
21307 PR c/89812
21308 * c-common.c (check_user_alignment): Rename local. Correct maximum
21309 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21310 convert it to UHWI when it fits.
21311
21312 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21313
21314 PR debug/86964
21315 * dwarf2out.c (premark_used_variables): New function.
21316 (prune_unused_types_walk): Do not mark not premarked external
21317 variables.
21318 (prune_unused_types): Call premark_used_variables.
21319
21320 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21321
21322 PR rtl-optimization/89676
21323 * lra-constraints.c (curr_insn_transform): Do match reload for
21324 early clobbers when the match was successful only for different
21325 registers.
21326
21327 2019-03-25 Martin Sebor <msebor@redhat.com>
21328
21329 * doc/extend.texi (Common Type Attributes): Document vector_size.
21330 (Common Variable Attributes): Mention size constraint. Correct
21331 quoting and typos.
21332 (Vector Extensions): Use @dfn when defining bas type. Clarify
21333 base type and size constraints.
21334
21335 2019-03-25 Richard Biener <rguenther@suse.de>
21336
21337 PR tree-optimization/89789
21338 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21339 changes from non-undefined back to undefined.
21340
21341 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21342
21343 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21344 heap string and a gc string, but since this variable is unknown to
21345 ggc the gc string might get reused and corrupted. Fixed by always
21346 using a heap string.
21347
21348 2019-03-25 Richard Biener <rguenther@suse.de>
21349
21350 PR tree-optimization/89779
21351 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21352 to remove IV defs, delay actual removal.
21353 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21354 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21355 very end, properly also reset loop control IV information.
21356
21357 2019-03-25 Richard Biener <rguenther@suse.de>
21358
21359 PR tree-optimization/89802
21360 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21361 move EH data to folded stmt.
21362
21363 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21364
21365 * config/s390/s390-builtin-types.def: Remove few unused types and
21366 fix sort order for others.
21367
21368 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21369
21370 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21371 expected and found types with -mdebug during builtin matching.
21372
21373 2019-03-25 Richard Biener <rguenther@suse.de>
21374
21375 PR middle-end/89790
21376 * fold-const.c (operand_equal_p): Revert last change with
21377 updated comment.
21378
21379 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21380
21381 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21382 notes for the result of the __tls_get_addr calls.
21383 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21384
21385 2019-03-24 Jeff Law <law@redhat.com>
21386
21387 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21388
21389 PR rtl-optimization/87761
21390 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21391 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21392 as needed.
21393 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21394 rescans. Reprocess blocks as needed, calling df_analyze before
21395 reprocessing. Always call df_analyze before fixing up debug bind
21396 insns.
21397
21398 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21399
21400 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21401 big endian.
21402
21403 2019-03-22 Andrew Pinski <apinski@marvell.com>
21404
21405 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21406 attrribute for uxtw.
21407
21408 2019-03-26 Jeff Law <law@redhat.com>
21409
21410 PR rtl-optimization/87761
21411 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21412 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21413 (mips_split_move): Accept new INSN argument. Try to forward SRC
21414 into the next instruction.
21415 (mips_split_move_insn): Pass INSN through to mips_split_move.
21416
21417 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21418
21419 PR rtl-optimization/89676
21420 * lra-constraints.c (curr_insn_transform): Do match reload for
21421 early clobbers even if the match was successful.
21422
21423 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21424
21425 PR c++/87481
21426 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21427
21428 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21429
21430 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21431
21432 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21433
21434 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21435 <avx512>_fmsub_<mode>_mask3<round_name>,
21436 <avx512>_fnmadd_<mode>_mask3<round_name>,
21437 <avx512>_fnmsub_<mode>_mask3<round_name>,
21438 avx512f_vmfmadd_<mode>_mask3<round_name>,
21439 avx512f_vmfmsub_<mode>_mask3<round_name>,
21440 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21441 instead of register_operand and %v instead of v for match_operand 1.
21442 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21443 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21444 <round_nimm_predicate> instead of register_operand and %v instead of v
21445 for match_operand 1.
21446
21447 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21448 <avx512>_fmadd_<mode>_mask3<round_name>,
21449 <avx512>_fmsub_<mode>_mask<round_name>,
21450 <avx512>_fmsub_<mode>_mask3<round_name>,
21451 <avx512>_fnmadd_<mode>_mask<round_name>,
21452 <avx512>_fnmadd_<mode>_mask3<round_name>,
21453 <avx512>_fnmsub_<mode>_mask<round_name>,
21454 <avx512>_fnmsub_<mode>_mask3<round_name>,
21455 <avx512>_fmaddsub_<mode>_mask<round_name>,
21456 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21457 <avx512>_fmsubadd_<mode>_mask<round_name>,
21458 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21459 <round_nimm_predicate> instead of nonimmediate_operand.
21460 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21461 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21462 Use register_operand instead of <round_nimm_predicate> for the
21463 operand that needs to match output.
21464 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21465 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21466 Likewise. Formatting fixes.
21467
21468 PR target/89784
21469 * config/i386/i386.c (enum ix86_builtins): Remove
21470 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21471 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21472 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21473 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21474 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21475 __builtin_ia32_vfmsubss3_mask3): New builtins.
21476 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21477 avx512f_vmfmadd_<mode>_mask3<round_name>,
21478 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21479 *avx512f_vmfmsub_<mode>_mask<round_name>,
21480 avx512f_vmfmsub_<mode>_mask3<round_name>,
21481 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21482 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21483 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21484 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21485 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21486 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21487 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21488 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21489 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21490 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21491 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21492 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21493 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21494 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21495 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21496 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21497 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21498 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21499 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21500 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21501 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21502 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21503 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21504 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21505 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21506 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21507 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21508 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21509
21510 2019-03-21 Martin Sebor <msebor@redhat.com>
21511
21512 PR tree-optimization/89350
21513 * builtins.c (compute_objsize): Also ignore offsets whose upper
21514 bound is negative.
21515 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21516 (builtin_memref::builtin_memref): Initialize new member.
21517 Allow EXPR to be null.
21518 (builtin_memref::extend_offset_range): Replace local with a member.
21519 Avoid assuming pointer offsets are unsigned.
21520 (builtin_memref::set_base_and_offset): Determine base object
21521 before computing offset range.
21522 (builtin_access::builtin_access): Handle memset.
21523 (builtin_access::generic_overlap): Replace local with a member.
21524 (builtin_access::strcat_overlap): Same.
21525 (builtin_access::overlap): Same.
21526 (maybe_diag_overlap): Same.
21527 (maybe_diag_access_bounds): Same.
21528 (wrestrict_dom_walker::check_call): Handle memset.
21529 (check_bounds_or_overlap): Same.
21530
21531 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21532 Jakub Jelinek <jakub@redhat.com>
21533
21534 PR lto/89692
21535 * tree.c (fld_type_variant, fld_incomplete_type_of,
21536 fld_process_array_type): Call fld->pset.add and don't call
21537 add_tree_to_fld_list if it returns true.
21538 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21539 non-marked types from TYPE_NEXT_VARIANT list.
21540 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21541
21542 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21543
21544 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21545 to false, if true, don't alloc_entries during construction, but defer
21546 it to the first method that needs m_entries allocated.
21547 (hash_table::hash_table, hash_table::~hash_table,
21548 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21549 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21550 hash_table::clear_slot, hash_table::traverse_noresize,
21551 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21552 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21553 false.
21554 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21555 NO_INSERT instead of find_with_hash.
21556 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21557 hash_set::m_table): Add Lazy to template params of hash_table.
21558 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21559 * attribs.c (test_attribute_exclusions): Likewise.
21560 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21561 hash_set. Add tests for hash_set with Lazy = true.
21562
21563 2019-03-21 Richard Biener <rguenther@suse.de>
21564
21565 PR tree-optimization/89779
21566 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21567 checks with respect to released SSA names now having error_mark_node
21568 type.
21569 * fold-const.c (operand_equal_p): Likewise.
21570
21571 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21572
21573 PR target/89775
21574 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21575 available to ...
21576 (s390_optimize_register_info): Use global_not_special_regno_p to
21577 check for global regs.
21578
21579 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21580
21581 PR target/89752
21582 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21583 update this_alternative nor this_alternative_set.
21584
21585 2019-03-19 Jim Wilson <jimw@sifive.com>
21586
21587 PR target/89411
21588 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21589 align, size, offset. Use them to handle a BLKmode reference. Update
21590 comment.
21591 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21592
21593 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21594
21595 PR rtl-optimization/89768
21596 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21597 instead of GEN_INT.
21598 (unroll_loop_runtime_iterations): Likewise.
21599
21600 2019-03-19 Martin Sebor <msebor@redhat.com>
21601
21602 PR tree-optimization/89644
21603 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21604 rather than endptr as an indicator of nul-termination.
21605
21606 PR tree-optimization/89644
21607 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21608 arrays in determining sequence sizes in strncpy and stpncpy.
21609
21610 2019-03-19 Martin Liska <mliska@suse.cz>
21611
21612 PR middle-end/89737
21613 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21614 unlikely_edges if there's an edge that belongs to both these sets.
21615
21616 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21617
21618 PR target/89746
21619 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21620 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21621 go via a stack temporary.
21622
21623 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21624
21625 PR target/89378
21626 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21627 instead of gen_rtx_SUBREG.
21628 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21629
21630 2019-03-19 Richard Biener <rguenther@suse.de>
21631
21632 PR debug/88389
21633 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21634
21635 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21636
21637 PR lto/87809
21638 PR lto/89335
21639 * tree.c (free_lang_data_in_decl): Do not free context of C++
21640 destrutors.
21641
21642 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21643
21644 PR target/89506
21645 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21646 subs for the first alternative except when operands[3] is 1.
21647
21648 PR target/89752
21649 * gimplify.c (gimplify_asm_expr): For output argument with
21650 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21651 diagnose error.
21652
21653 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21654
21655 PR rtl-optimization/89753
21656 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21657 explicit unrolling factor even more robust.
21658
21659 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21660
21661 PR target/89726
21662 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21663 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21664 signed zeros, do another copysign after the compensation.
21665
21666 2019-03-18 Martin Sebor <msebor@redhat.com>
21667
21668 PR tree-optimization/89720
21669 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21670 more conservatively, the same as anti-range.
21671
21672 2019-03-18 Richard Biener <rguenther@suse.de>
21673
21674 PR middle-end/88945
21675 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21676 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21677 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21678 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21679
21680 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21681
21682 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21683 Extend queue to 1024 entries.
21684 Add "consumed" field.
21685 (gomp_print_output): Remove print_index parameter.
21686 Add final parameter.
21687 Change limit to unsigned.
21688 Use consumed field to implement circular buffer.
21689 Detect interrupted print in final pass.
21690 Flush output at the end.
21691 (run): Update gomp_print_output usage.
21692 (main): Initialize kernargs->output_data.consumed.
21693
21694 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21695
21696 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21697 calculation of the minimum number of scalar iterations for
21698 fully-predicated loops.
21699
21700 2019-03-18 Martin Jambor <mjambor@suse.cz>
21701
21702 PR tree-optimization/89546
21703 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21704 any propagation to its children took place.
21705
21706 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21707
21708 PR target/89627
21709 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21710 parameter, and make use of it.
21711 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21712
21713 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21714
21715 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21716 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21717 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21718 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21719 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21720 match what the ops is doing.
21721 (push_multi_fp_blink): Likewise.
21722 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21723 compiling for size and elf target.
21724 (arc_save_callee_enter): Adjust note to match what enter/leave
21725 operation does.
21726
21727 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21728
21729 * config/arc/arc.md (tst_movb): Fix constraint.
21730
21731 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21732
21733 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21734
21735 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21736
21737 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21738 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21739 reg_alloc_order references.
21740 (size_alloc_order): Define.
21741 (arc_adjust_reg_alloc_order): New function.
21742 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21743 order.
21744 (ADJUST_REG_ALLOC_ORDER): Define.
21745 (HONOR_REG_ALLOC_ORDER): Likewise.
21746
21747 2019-03-18 Richard Biener <rguenther@suse.de>
21748
21749 PR target/87561
21750 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21751 loads and stores a bit more.
21752
21753 2019-03-18 Richard Biener <rguenther@suse.de>
21754
21755 PR target/87561
21756 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21757 load pessimization to stores as well.
21758
21759 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21760
21761 PR middle-end/86979
21762 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21763 successor, use NULL as its av set.
21764
21765 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21766
21767 PR rtl-optimization/89721
21768 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21769
21770 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21771
21772 PR target/87532
21773 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21774 When handling vec_extract, use modular arithmetic to allow
21775 constant selectors greater than vector length.
21776 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21777 V1TImode vectors to have constant selector values greater than 0.
21778 Use modular arithmetic to compute vector index.
21779 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21780 index for in-memory vectors. Correct code generation for
21781 in-register vectors.
21782 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21783 compute index.
21784
21785 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21786
21787 PR c++/88534
21788 PR c++/88537
21789 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21790 VAR_DECL args.
21791
21792 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21793
21794 PR c++/89709
21795 * tree.c (inchash::add_expr): Strip any location wrappers.
21796 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21797 after hash verification.
21798
21799 PR debug/89704
21800 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21801 SIGN_EXTEND and ZERO_EXTEND.
21802
21803 2019-03-14 Jason Merrill <jason@redhat.com>
21804 Jakub Jelinek <jakub@redhat.com>
21805
21806 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21807 than if is_empty (*slot).
21808 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21809 existing elt and for elt removal.
21810 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21811 of already removed elt.
21812
21813 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21814
21815 PR target/89650
21816 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21817 REG_EH_REGION note.
21818
21819 2019-03-14 Martin Liska <mliska@suse.cz>
21820
21821 PR other/89712
21822 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21823
21824 2019-03-14 Richard Biener <rguenther@suse.de>
21825
21826 PR target/89711
21827 * config/i386/i386.c (make_resolver_func): Properly set
21828 DECL_CONTEXT on the RESULT_DECL.
21829 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21830
21831 2019-03-14 Richard Biener <rguenther@suse.de>
21832
21833 * gimple-pretty-print.c: Include cfgloop.h.
21834 (dump_gimple_phi): Adjust.
21835 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21836 (pp_cfg_jump): Adjust.
21837 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21838 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21839 (lower_phi_internal_fn): Remove.
21840 (verify_gimple_call): Remove IFN_PHI special-casing.
21841 (dump_function_to_file): Dump IL state.
21842 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21843 done to deal with PHI nodes being present in non-SSA state.
21844
21845 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21846
21847 PR ipa/89684
21848 * multiple_target.c (create_dispatcher_calls): Change
21849 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21850 In the node->iterate_referring loop, push *ref rather than ref, call
21851 ref->remove_reference () and always pass 0 to iterate_referring.
21852
21853 PR rtl-optimization/89679
21854 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21855 would contain a paradoxical SUBREG.
21856
21857 2019-03-14 Richard Biener <rguenther@suse.de>
21858
21859 PR tree-optimization/89710
21860 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21861 safe_dyn_cast.
21862
21863 2019-03-14 Martin Liska <mliska@suse.cz>
21864
21865 * coverage.c (coverage_begin_function): Stream also
21866 end_column.
21867 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21868 documentation about function declaration location.
21869 * gcov-dump.c (tag_function): Print whole range
21870 of function declaration.
21871 * gcov.c (struct function_info): Add end_column field.
21872 (function_info::function_info): Initialize it.
21873 (output_json_intermediate_file): Output {start,end}_column
21874 fields.
21875 (read_graph_file): Read end_column.
21876
21877 2019-03-14 Richard Biener <rguenther@suse.de>
21878
21879 PR middle-end/89698
21880 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21881 that the access types are similar.
21882
21883 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21884
21885 PR tree-optimization/89703
21886 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21887 aren't compatible also with builtin_decl_explicit. Check pure
21888 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21889 and BUILT_IN_STPNCPY{,_CHK}.
21890
21891 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21892
21893 PR target/89523
21894 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21895 addr32 prefix to VSIB address for X32.
21896 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21897 "%M2" to opcode.
21898 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21899 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21900 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21901 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21902 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21903 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21904 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21905 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21906 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21907 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21908 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21909 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21910 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21911 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21912 (*avx512f_scatterdi<mode>): Likewise.
21913
21914 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21915
21916 PR target/85860
21917 * lra-constraints.c (inherit_in_ebb): Update
21918 potential_reload_hard_regs along with live_hard_regs.
21919
21920 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21921
21922 PR debug/89498
21923 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21924 DWARF_OFFSET_SIZE.
21925 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21926
21927 2019-03-13 Martin Sebor <msebor@redhat.com>
21928
21929 PR tree-optimization/89662
21930 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21931 has a size.
21932
21933 2019-03-13 Richard Biener <rguenther@suse.de>
21934
21935 PR middle-end/89677
21936 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21937 throw FP expressions at tree-affine.
21938
21939 2019-03-14 Richard Biener <rguenther@suse.de>
21940
21941 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21942 dump negative integer constants using _Literal (type) -num.
21943
21944 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21945
21946 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21947 nonlocal_value member.
21948
21949 PR middle-end/88588
21950 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21951 (ipa_simd_modify_function_body): Handle PHIs.
21952
21953 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21954
21955 * config/s390/s390.c (s390_option_override_internal): Use more
21956 aggressive inlining parameters.
21957
21958 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21959
21960 * config/s390/3906.md: New file.
21961 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21962 (LONGRUNNING_THRESHOLD): Remove.
21963 (MAX_SCHED_MIX_SCORE): Decrease.
21964 (MAX_SCHED_MIX_DISTANCE): Decrease.
21965 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21966 (struct s390_sched_state): New struct to hold scheduling state.
21967 (S390_SCHED_STATE_NORMAL): Remove.
21968 (S390_SCHED_STATE_CRACKED): Remove.
21969 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21970 (s390_get_sched_attrmask): Use new attribute.
21971 (s390_get_unit_mask): Use new units.
21972 (s390_is_fpd): New function.
21973 (s390_is_fxd): New function.
21974 (s390_is_longrunning): New function.
21975 (s390_sched_score): Use new functions.
21976 (s390_sched_reorder): Likewise.
21977 (s390_sched_variable_issue): Rework and use new functions.
21978 (s390_sched_init): Use new functions.
21979 * config/s390/s390.h (s390_tune_attr): Add z14.
21980 * config/s390/s390.md: Add z14.
21981
21982 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21983
21984 * config/s390/2964.md: Update pipeline description.
21985 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21986 (LONGRUNNING_THRESHOLD): Remove.
21987 (LATENCY_FACTOR): Remove.
21988 (s390_get_unit_mask): Add unit.
21989 (s390_sched_score): Use fxd/fpd.
21990 (s390_sched_variable_issue): Use fxd/fpd.
21991
21992 2019-03-12 Martin Liska <mliska@suse.cz>
21993
21994 * config/i386/i386.c: Reword an error message.
21995
21996 2019-03-12 Martin Jambor <mjambor@suse.cz>
21997
21998 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21999 terminate with newline.
22000
22001 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22002
22003 PR target/52726
22004 * config/s390/s390.md (tabort): Use %wd instead of
22005 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22006 letters and periods.
22007 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22008 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22009 's with %< and %>.
22010
22011 PR middle-end/89663
22012 * builtins.c (expand_builtin_int_roundingfn,
22013 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22014 gcc_unreachable if validate_arglist fails.
22015
22016 2019-03-12 Richard Biener <rguenther@suse.de>
22017
22018 PR tree-optimization/89664
22019 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22020 free the occurance tree after the early out.
22021
22022 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22023
22024 PR middle-end/89655
22025 PR bootstrap/89656
22026 * vr-values.c (vr_values::update_value_range): If
22027 old_vr->varying_p (), don't update it, make new_vr also VARYING
22028 and return false.
22029
22030 2019-03-11 Martin Liska <mliska@suse.cz>
22031
22032 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22033 Fix double string quoting.
22034
22035 2019-03-11 Martin Liska <mliska@suse.cz>
22036
22037 * collect-utils.c (collect_wait): Wrap apostrophes
22038 in gcc internal format with %'.
22039 * collect2.c (main): Likewise.
22040 (scan_prog_file): Likewise.
22041 (scan_libraries): Likewise.
22042 * config/i386/i386.c (ix86_expand_call): Likewise.
22043 (ix86_handle_interrupt_attribute): Likewise.
22044 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22045 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22046 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22047 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22048 * symtab.c (symtab_node::verify_base): Likewise.
22049 * tree-cfg.c (verify_gimple_label): Likewise.
22050 * tree.c (verify_type_variant): Likewise.
22051
22052 2019-03-11 Martin Liska <mliska@suse.cz>
22053
22054 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22055 in a string format message and fix GNU coding style.
22056 (expand_builtin_set_thread_pointer): Likewise.
22057 * common/config/aarch64/aarch64-common.c
22058 (aarch64_rewrite_selected_cpu): Likewise.
22059 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22060 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22061 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22062 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22063 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22064 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22065 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22066 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22067 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22068 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22069 Likewise.
22070 * common/config/riscv/riscv-common.c
22071 (riscv_subset_list::parsing_subset_version): Likewise.
22072 (riscv_subset_list::parse_std_ext): Likewise.
22073 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22074 (riscv_subset_list::parse): Likewise.
22075 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22076 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22077 (aarch64_override_options_internal): Likewise.
22078 (aarch64_validate_mcpu): Likewise.
22079 (aarch64_validate_march): Likewise.
22080 (aarch64_validate_mtune): Likewise.
22081 (aarch64_override_options): Likewise.
22082 * config/alpha/alpha.c (alpha_option_override): Likewise.
22083 * config/arc/arc.c (arc_init): Likewise.
22084 (parse_mrgf_banked_regs_option): Likewise.
22085 (arc_override_options): Likewise.
22086 (arc_expand_builtin_aligned): Likewise.
22087 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22088 (arm_expand_builtin): Likewise.
22089 * config/arm/arm.c (arm_option_check_internal): Likewise.
22090 (arm_configure_build_target): Likewise.
22091 (arm_option_override): Likewise.
22092 (arm_options_perform_arch_sanity_checks): Likewise.
22093 (arm_handle_cmse_nonsecure_entry): Likewise.
22094 (arm_handle_cmse_nonsecure_call): Likewise.
22095 (arm_tls_referenced_p): Likewise.
22096 (thumb1_expand_prologue): Likewise.
22097 * config/avr/avr.c (avr_option_override): Likewise.
22098 * config/bfin/bfin.c (bfin_option_override): Likewise.
22099 * config/c6x/c6x.c (c6x_option_override): Likewise.
22100 * config/cr16/cr16.c (cr16_override_options): Likewise.
22101 * config/cris/cris.c (cris_option_override): Likewise.
22102 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22103 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22104 * config/darwin.c (darwin_override_options): Likewise.
22105 * config/frv/frv.c (frv_expand_builtin): Likewise.
22106 * config/h8300/h8300.c (h8300_option_override): Likewise.
22107 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22108 (ix86_option_override_internal): Likewise.
22109 (warn_once_call_ms2sysv_xlogues): Likewise.
22110 (ix86_expand_prologue): Likewise.
22111 (split_stack_prologue_scratch_regno): Likewise.
22112 (ix86_warn_parameter_passing_abi): Likewise.
22113 * config/ia64/ia64.c (fix_range): Likewise.
22114 * config/m68k/m68k.c (m68k_option_override): Likewise.
22115 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22116 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22117 (mips_set_compression_mode): Likewise.
22118 * config/mmix/mmix.c (mmix_option_override): Likewise.
22119 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22120 * config/msp430/msp430.c (msp430_option_override): Likewise.
22121 * config/nds32/nds32.c (nds32_option_override): Likewise.
22122 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22123 (nios2_option_override): Likewise.
22124 (nios2_expand_custom_builtin): Likewise.
22125 * config/nvptx/mkoffload.c (main): Likewise.
22126 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22127 * config/pa/pa.c (fix_range): Likewise.
22128 (pa_option_override): Likewise.
22129 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22130 (riscv_option_override): Likewise.
22131 * config/rl78/rl78.c (rl78_option_override): Likewise.
22132 * config/rs6000/aix61.h: Likewise.
22133 * config/rs6000/aix71.h: Likewise.
22134 * config/rs6000/aix72.h: Likewise.
22135 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22136 * config/rs6000/freebsd64.h: Likewise.
22137 * config/rs6000/linux64.h: Likewise.
22138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22139 (rs6000_expand_zeroop_builtin): Likewise.
22140 (rs6000_expand_mtfsb_builtin): Likewise.
22141 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22142 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22143 (rs6000_invalid_builtin): Likewise.
22144 (rs6000_expand_split_stack_prologue): Likewise.
22145 * config/rs6000/rtems.h: Likewise.
22146 * config/rx/rx.c (valid_psw_flag): Likewise.
22147 (rx_expand_builtin): Likewise.
22148 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22149 * config/s390/s390.c (s390_expand_builtin): Likewise.
22150 (s390_function_profiler): Likewise.
22151 (s390_option_override_internal): Likewise.
22152 (s390_option_override): Likewise.
22153 * config/sh/sh.c (sh_option_override): Likewise.
22154 (sh_builtin_saveregs): Likewise.
22155 (sh_fix_range): Likewise.
22156 * config/sh/vxworks.h: Likewise.
22157 * config/sparc/sparc.c (sparc_option_override): Likewise.
22158 * config/spu/spu.c (spu_option_override): Likewise.
22159 (fix_range): Likewise.
22160 * config/visium/visium.c (visium_option_override): Likewise.
22161 (visium_handle_interrupt_attr): Likewise.
22162 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22163 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22164 (dbg_cnt_process_opt): Likewise.
22165 * dwarf2out.c (output_dwarf_version): Likewise.
22166 * except.c (expand_eh_return): Likewise.
22167 * gcc.c (defined): Likewise.
22168 (driver_handle_option): Likewise.
22169 (process_command): Likewise.
22170 (compare_files): Likewise.
22171 (driver::prepare_infiles): Likewise.
22172 (driver::do_spec_on_infiles): Likewise.
22173 (driver::maybe_run_linker): Likewise.
22174 * omp-offload.c (oacc_parse_default_dims): Likewise.
22175 * opts-global.c (handle_common_deferred_options): Likewise.
22176 * opts.c (parse_sanitizer_options): Likewise.
22177 (common_handle_option): Likewise.
22178 (enable_warning_as_error): Likewise.
22179 * passes.c (enable_disable_pass): Likewise.
22180 * plugin.c (parse_plugin_arg_opt): Likewise.
22181 (default_plugin_dir_name): Likewise.
22182 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22183 (default_pch_valid_p): Likewise.
22184 * toplev.c (init_asm_output): Likewise.
22185 (process_options): Likewise.
22186 (toplev::run_self_tests): Likewise.
22187 * tree-cfg.c (verify_gimple_call): Likewise.
22188 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22189 (tree_inlinable_function_p): Likewise.
22190 * var-tracking.c (vt_find_locations): Likewise.
22191
22192 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22193
22194 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22195 only on the else branch.
22196
22197 2019-03-11 Martin Liska <mliska@suse.cz>
22198
22199 * gcov.c (output_intermediate_json_line): Print function
22200 name of each line.
22201 (output_json_intermediate_file): Add new argument.
22202 * doc/gcov.texi: Document the change.
22203
22204 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22205
22206 PR rtl-optimization/89588
22207 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22208 explicit unrolling factor more robust.
22209
22210 2019-03-11 Richard Biener <rguenther@suse.de>
22211
22212 PR tree-optimization/89649
22213 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22214 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22215 on the prolog and epilog loops.
22216 (vect_loop_versioning): Return copy of loop.
22217 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22218 on the non-vectorized version of the loop.
22219
22220 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22221
22222 PR target/68924
22223 * config/i386/sse.md (*vec_extractv2di_0_sse):
22224 Add (=r,x) alternative and corresponding splitter.
22225
22226 2019-03-10 Martin Jambor <mjambor@suse.cz>
22227
22228 PR tree-optimization/85762
22229 PR tree-optimization/87008
22230 PR tree-optimization/85459
22231 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22232 it points to if there is a type changing MEM_REF. Adjust all callers.
22233 (build_accesses_from_assign): Disable total scalarization if
22234 contains_vce_or_bfcref_p returns true through the new parameter, for
22235 both rhs and lhs.
22236
22237 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR c/88568
22240 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22241 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22242
22243 PR target/79645
22244 * common.opt (fdiagnostics-show-labels,
22245 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22246 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22247 gas-locview-support, ginline-points, ginternal-reset-location-views):
22248 Terminate description text with a dot.
22249 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22250 * config/mcore/mcore.opt (m210, m340): Likewise.
22251 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22252 mnops=): Start description text with a capital letter.
22253 * config/arc/arc.opt (msize-level=): Likewise.
22254 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22255 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22256 mnewlib): Likewise.
22257 * config/ft32/ft32.opt (msim): Likewise.
22258 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22259 (mnodiv, mnopm): Terminate description text with a dot.
22260 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22261 a colon.
22262 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22263 Likewise.
22264 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22265 text.
22266
22267 PR rtl-optimization/89634
22268 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22269 are modified in BB_END (e->src) instruction.
22270
22271 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22272
22273 PR target/79926
22274 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22275 messages more amenable to translation, and improve wording.
22276
22277 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22278
22279 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22280 ud- and du-chains between phases.
22281
22282 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22283
22284 PR debug/89631
22285 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22286 instead of POLY_INT_CST.
22287
22288 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22289
22290 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22291 requirement.
22292
22293 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22294
22295 PR target/68924
22296 PR target/78782
22297 PR target/87558
22298 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22299 (_mm_storeu_si64): Ditto.
22300
22301 2019-03-08 Martin Liska <mliska@suse.cz>
22302
22303 PR target/86952
22304 * config/i386/i386.c (ix86_option_override_internal): Disable
22305 jump tables when retpolines are used.
22306
22307 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22308
22309 PR go/63560
22310 * ipa-split.c (execute_split_functions): Do not split
22311 'noinline' or 'section' function.
22312
22313 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22314
22315 PR target/79846
22316 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22317 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22318 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22319
22320 PR ipa/80000
22321 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22322 from diagnostics. Formatting fixes.
22323
22324 PR target/85665
22325 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22326 warn_odr diagnostics.
22327
22328 PR other/80058
22329 * lra-constraints.c (process_alt_operands): Avoid one space before
22330 " at the end of line and another after " on another line in a string
22331 literal.
22332 * attribs.c (handle_dll_attribute): Likewise.
22333 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22334
22335 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22336 warning_at or inform messages in G_() if there is no ?:.
22337
22338 PR tree-optimization/89550
22339 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22340 returned true. Formatting fixes.
22341 (expand_builtin_strnlen): Formatting fixes.
22342 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22343 if warning_at returned true.
22344 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22345
22346 2019-03-08 Richard Biener <rguenther@suse.de>
22347
22348 PR middle-end/89578
22349 * cfgloop.h (struct loop): Add owned_clique field.
22350 * cfgloopmanip.c (copy_loop_info): Copy it.
22351 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22352 cliques.
22353 * tree-inline.c (copy_loops): Remap owned_clique.
22354 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22355 * lto-streamer-out.c (output_cfg): Likewise.
22356
22357 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22358
22359 PR target/80190
22360 * config/darwin.c: Include intl.h.
22361 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22362 composing the message out of two separate parts.
22363
22364 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22365
22366 PR target/80003
22367 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22368 doesn't start with a capital letter and doesn't end with a dot.
22369 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22370 with a capital letter.
22371 (ix86_mangle_function_version_assembler_name): Likewise.
22372 (ix86_generate_version_dispatcher_body): Likewise.
22373 (fold_builtin_cpu): Likewise.
22374 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22375 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22376 translators, wrap full type name in %qs.
22377
22378 PR translation/79999
22379 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22380 depend clause with source (or sink) modifier.
22381 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22382
22383 PR target/89602
22384 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22385 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22386 (avx512f_load<mode>_mask): New define_expand.
22387 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22388 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22389 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22390 __builtin_ia32_movess_mask): New builtins.
22391 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22392 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22393 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22394 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22395
22396 2019-03-07 Martin Jambor <mjambor@suse.cz>
22397
22398 PR lto/87525
22399 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22400 for extern inline functions.
22401
22402 2019-03-07 Martin Jambor <mjambor@suse.cz>
22403
22404 PR ipa/88235
22405 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22406 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22407 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22408 have multiple callees. At the end check if declarations match as
22409 opposed to cgraph_nodes.
22410
22411 2019-03-07 Martin Liska <mliska@suse.cz>
22412
22413 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22414 which is equivalent to searching for this in clones chain.
22415 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22416 names with a neighbour and special case first node in a chain.
22417
22418 2019-01-25 Jason Merrill <jason@redhat.com>
22419
22420 PR c++/80916 - spurious "static but not defined" warning.
22421 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22422 for an internal symbol with DECL_EXTERNAL.
22423
22424 2019-04-07 Richard Biener <rguenther@suse.de>
22425
22426 PR middle-end/89618
22427 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22428 * tree-inline.c (copy_loops): Simplify.
22429
22430 2019-03-07 Martin Liska <mliska@suse.cz>
22431
22432 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22433
22434 2019-03-07 Richard Biener <rguenther@suse.de>
22435
22436 PR tree-optimization/89595
22437 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22438 stmt iterator as reference, take boolean output parameter to
22439 indicate whether the stmt was removed and thus the iterator
22440 already advanced.
22441 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22442 stmts created by folding.
22443
22444 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22445
22446 PR c++/89585
22447 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22448 at toplevel.
22449
22450 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22451
22452 PR rtl-optimization/88845
22453 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22454 LRA.
22455 * lra.c (remove_scratches_1): New function.
22456 (remove_scratches): Use it.
22457 (lra_emit_move): Likewise.
22458
22459 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22460
22461 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22462 unaligned_access variable.
22463 * config/arc/arc.c (arc_override_options): Set unaligned access
22464 default on for HS CPUs.
22465 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22466
22467 2019-03-06 Martin Liska <mliska@suse.cz>
22468
22469 PR gcov-profile/89577
22470 * doc/gcov.texi: Prefer to use --coverage.
22471 * doc/sourcebuild.texi: Likewise.
22472
22473 2019-03-02 Jason Merrill <jason@redhat.com>
22474
22475 PR c++/86485 - -Wmaybe-unused with empty class ?:
22476 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22477
22478 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22479
22480 PR target/89587
22481 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22482 if_multiarch.
22483
22484 PR middle-end/89590
22485 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22486 exactly one argument.
22487
22488 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22489 Richard Sandiford <richard.sandiford@arm.com>
22490
22491 PR tree-optimization/89570
22492 * match.pd (vec_cond into cond_op simplification): Don't use
22493 get_conditional_internal_fn, use as_internal_fn (cond_op).
22494
22495 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22496
22497 PR target/89222
22498 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22499 to decide when to split off a non-zero offset from a symbol.
22500 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22501 in function symbols.
22502
22503 2019-03-05 Richard Biener <rguenther@suse.de>
22504
22505 PR tree-optimization/89594
22506 * tree-if-conv.c (pass_if_conversion::execute): Handle
22507 case where .LOOP_VECTORIZED_FUNCTION was removed.
22508
22509 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22510
22511 PR bootstrap/89560
22512 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22513 instead alloca it only when needed with the needed size.
22514
22515 PR tree-optimization/89570
22516 * match.pd (vec_cond into cond_op simplification): Guard with
22517 vectorized_internal_fn_supported_p test and #if GIMPLE.
22518
22519 PR tree-optimization/89566
22520 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22521 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22522 Punt if get_user_idx_format succeeds, but idx_format argument is
22523 not provided or doesn't have pointer type, or if idx_args is above
22524 number of provided arguments.
22525
22526 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22527
22528 PR tree-optimization/89437
22529 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22530
22531 2019-03-04 Richard Biener <rguenther@suse.de>
22532
22533 PR middle-end/89572
22534 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22535 safe_dyn_cast.
22536
22537 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22538
22539 PR tree-optimization/89487
22540 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22541 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22542 (distribute_loop): Don't do runtime alias check if there is non-
22543 addressable data reference.
22544 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22545 is a register variable.
22546
22547 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22548
22549 PR target/89506
22550 * config/arm/arm.md (cmpsi2_addneg): Use
22551 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22552 If operands[2] is 0 or INT_MIN, force use of subs.
22553 (*compare_scc splitter): Use gen_int_mode.
22554 (*negscc): Likewise.
22555 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22556
22557 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22558 Monk Chiang <sh.chiang04@gmail.com>
22559
22560 * common/config/riscv/riscv-common.c: Include sstream.
22561 (riscv_subset_list::to_string): New.
22562 (riscv_arch_str): Likewise.
22563 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22564 * config.in: Regen.
22565 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22566 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22567 (riscv_emit_attribute): New.
22568 (riscv_file_start): Emit attribute if needed.
22569 (riscv_option_override): Init riscv_emit_attribute_p.
22570 * config/riscv/riscv.opt (mriscv-attribute): New option.
22571 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22572 * configure: Regen.
22573 * doc/install.texi: Document --with-riscv-attribute.
22574 * doc/invoke.texi: Document -mriscv-attribute.
22575
22576 * common/config/riscv/riscv-common.c:
22577 Include config/riscv/riscv-protos.h.
22578 (INCLUDE_STRING): Defined.
22579 (RISCV_DONT_CARE_VERSION): Defined.
22580 (riscv_subset_t): Declare.
22581 (riscv_subset_t::riscv_subset_t): New.
22582 (riscv_subset_list): Declare.
22583 (riscv_subset_list::riscv_subset_list): New.
22584 (riscv_subset_list::~riscv_subset_list): Likewise.
22585 (riscv_subset_list::parsing_subset_version): Likewise.
22586 (riscv_subset_list::parse_std_ext): Likewise.
22587 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22588 (riscv_subset_list::add): Likewise.
22589 (riscv_subset_list::lookup): Likewise.
22590 (riscv_subset_list::xlen): Likewise.
22591 (riscv_subset_list::parse): Likewise.
22592 (riscv_supported_std_ext): Likewise.
22593 (current_subset_list): Likewise.
22594 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22595 parse.
22596
22597 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22598
22599 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22600 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22601 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22602
22603 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22604
22605 PR rtl-optimization/85899
22606 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22607 fallthru edges leading to the exit block.
22608
22609 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22610
22611 PR target/89517
22612 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22613 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22614
22615 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22616
22617 PR tree-optimization/89535
22618 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22619 for each operand. Calculate the fallback choice for mask operands
22620 and pass it to vect_get_vec_def_for_operand.
22621
22622 2019-03-01 Richard Biener <rguenther@suse.de>
22623
22624 PR middle-end/89541
22625 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22626 get virtual operands.
22627 (get_expr_operands): Handle CONST_DECL like other decls.
22628
22629 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22630
22631 PR middle-end/89503
22632 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22633 on DECL_P and EXPR_P.
22634
22635 2019-03-01 Richard Biener <rguenther@suse.de>
22636
22637 PR middle-end/89497
22638 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22639 argument, defaulted to zero.
22640 * passes.c (execute_function_todo): Pass down SSA update flags
22641 to cleanup_tree_cfg.
22642 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22643 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22644 form if requested.
22645 (cleanup_tree_cfg): Get and pass down SSA update flags.
22646
22647 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22648
22649 PR bootstrap/89539
22650 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22651 early_lto_debug argument.
22652
22653 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22654
22655 PR tree-optimization/89536
22656 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22657 only whether bit #0 of the value is 0 instead of the entire value.
22658
22659 2019-02-28 Marek Polacek <polacek@redhat.com>
22660
22661 PR c++/87068 - missing diagnostic with fallthrough statement.
22662 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22663 at the end of a seq, save its location to walk_stmt_info.
22664 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22665 a switch.
22666
22667 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22668
22669 PR lto/88585
22670 * tree.c (find_atomic_core_type): Move ahead in file.
22671 (check_base_type): Correctly compare alignments of atomic types.
22672
22673 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22674
22675 PR target/89455
22676 * config/i386/i386.c (get_builtin_code_for_version): Identify
22677 Westmere from PCLMUL, instead of AES.
22678
22679 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22680
22681 PR target/89434
22682 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22683 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22684 -UINTVAL (...).
22685
22686 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22687
22688 PR target/88530
22689 * config/aarch64/aarch64-option-extensions.def: Document it.
22690 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22691 if empty hwcaps.
22692
22693 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22694
22695 PR c/89520
22696 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22697 builtins if they don't have a single scalar floating point argument.
22698 Formatting fixes.
22699
22700 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22701
22702 PR rtl-optimization/89490
22703 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22704 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22705 block section is not mergeable.
22706
22707 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22708
22709 PR target/70341
22710 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22711 old define_insn to ...
22712 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22713 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22714 Rename old define_insn to ...
22715 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22716 (thumb2_casesi_internal_pic): New define_expand. Rename old
22717 define_insn to ...
22718 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22719 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22720 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22721
22722 2019-02-27 Richard Biener <rguenther@suse.de>
22723
22724 PR debug/88878
22725 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22726
22727 2019-02-27 Richard Biener <rguenther@suse.de>
22728
22729 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22730 building.
22731
22732 2019-02-27 Richard Biener <rguenther@suse.de>
22733
22734 PR debug/88878
22735 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22736 parameter, prefix section name with .gnu.debuglto_ if true.
22737 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22738 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22739
22740 2019-02-27 Richard Biener <rguenther@suse.de>
22741
22742 PR debug/89514
22743 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22744 rather than on use_debug_types, doing what output_die does.
22745 (value_format): Likewise.
22746
22747 2019-02-27 Martin Jambor <mjambor@suse.cz>
22748 Martin Sebor <msebor@redhat.com>
22749
22750 * doc/invoke.texi (Warning Options): Reword description of
22751 -Wno-absolute-value.
22752
22753 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22754
22755 PR tree-optimization/89280
22756 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22757 builtin_setjmp_setup_bb): New functions.
22758 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22759 When visiting __builtin_setjmp_setup block, queue in special
22760 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22761 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22762 from visited after the loop if they don't have any visited successor
22763 blocks.
22764
22765 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22766
22767 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22768 New function.
22769 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22770
22771 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22772
22773 PR c++/89507
22774 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22775 with types other than sizetype/ssizetype.
22776
22777 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22778
22779 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22780 (enum sparc_processor_type): ...this.
22781 (enum sparc_code_model_type): New enumeration type.
22782 (enum sparc_memory_model_type): Tweak comments.
22783 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22784 (mtune): Likewise.
22785 (mcmodel): Use sparc_code_model enumeration and variable.
22786 (sparc_code_model): New enumeration.
22787 (mdebug): Add Undocumented marker.
22788 * config/sparc/sparc.h (enum cmodel): Delete.
22789 (sparc_cmodel): Likewise.
22790 (TARGET_CM_MEDLOW): Adjust to above renaming.
22791 (TARGET_CM_MEDMID): Likewise.
22792 (TARGET_CM_MEDANY): Likewise.
22793 (TARGET_CM_EMBMEDANY): Likewise.
22794 * config/sparc/sparc.c (sparc_cmodel): Delete.
22795 (sparc_option_override): Remove string/value mapping support for the
22796 code model. Move code and memory model support to after the handling
22797 of target flags. Do private machine setup last.
22798 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22799 (sparc_legitimize_reload_address): Likewise.
22800 (sparc_output_mi_thunk): Likewise.
22801 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22802
22803 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22804
22805 PR tree-optimization/89500
22806 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22807 (handle_builtin_strlen): Remove noncst_bound variable. Always
22808 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22809 cst if the first cst bytes starting at x are known to be non-zero,
22810 even if the string is not zero terminated. Don't try to modify
22811 *si for strnlen. Update strlen_to_stridx only for strlen or if
22812 we can prove strnlen returns the same value as strlen would.
22813
22814 2019-02-26 Martin Liska <mliska@suse.cz>
22815
22816 * alloc-pool.h (struct pool_usage): Remove extra
22817 print_dash_line.
22818 * bitmap.h (struct bitmap_usage): Likewise.
22819 * ggc-common.c (struct ggc_usage): Likewise.
22820 * mem-stats.h (struct mem_usage): Likewise.
22821 (mem_alloc_description::dump): Print dash lines
22822 here and repeat header at the end of a table report.
22823 It's then more readable.
22824 * tree-phinodes.c (phinodes_print_statistics): Make
22825 horizontal alignment.
22826 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22827 * vec.c (struct vec_usage): Remove extra print_dash_line.
22828 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22829
22830 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22831
22832 * doc/extend.texi (__builtin_object_size):
22833 Use @pxref instead of @xref inside parenthesis.
22834 (__builtin_has_attribute): Add missing comma after @xref.
22835 (__builtin_object_size): Ditto.
22836 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22837
22838 2019-02-26 Jeff Law <law@redhat.com>
22839
22840 PR rtl-optimization/87761
22841 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22842 detect obviously dead insns and delete them.
22843
22844 2019-02-26 Richard Biener <rguenther@suse.de>
22845
22846 PR tree-optimization/89505
22847 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22848 to handle restrict pointed-to vars with multiple subvars
22849 correctly.
22850
22851 2019-02-26 Richard Biener <rguenther@suse.de>
22852
22853 PR tree-optimization/89489
22854 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22855
22856 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22857
22858 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22859 and move around comment.
22860 <BIT_AND_EXPR>: Likewise.
22861 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22862
22863 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22864
22865 PR target/89474
22866 * config/i386/i386.c (remove_partial_avx_dependency): Call
22867 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22868 after changing possibly many instructions to use that pseudo. Fix up
22869 insertion of v4sf_const0 setter at the start of bb.
22870
22871 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22872
22873 PR c/80409
22874 * doc/extend.texi (Variadic Pointer Args): New section.
22875
22876 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22877 Martin Sebor <msebor@gmail.com>
22878
22879 * common.opt (Wattribute-alias): Likewise.
22880 * doc/invoke.texi (Option Summary): List general form of
22881 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22882 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22883 Add cross-references.
22884 (-Wattribute-alias): Rewrite and correct default. Mention
22885 considered attributes (same as for -Wmissing-attributes).
22886
22887 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22888
22889 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22890 (_mm_cvtpd_ps): Likewise.
22891 (_mm_cvttpd_epi32): Likewise.
22892
22893 PR target/89338
22894 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22895 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22896
22897 PR target/89339
22898 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22899
22900 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22901
22902 PR target/88530
22903 * common/config/aarch64/aarch64-common.c
22904 (struct aarch64_option_extension): Add is_synthetic.
22905 (all_extensions): Use it.
22906 (TARGET_OPTION_INIT_STRUCT): Define hook.
22907 (struct gcc_targetm_common): Moved to end.
22908 (all_extensions_by_on): New.
22909 (opt_ext_cmp, typedef opt_ext): New.
22910 (aarch64_option_init_struct): New.
22911 (aarch64_contains_opt): New.
22912 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22913 * config/aarch64/aarch64-option-extensions.def
22914 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22915 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22916 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22917 Set is_synthetic to false.
22918 (crypto): Set is_synthetic to true.
22919 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22920 SYNTHETIC.
22921
22922 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22923
22924 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22925 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22926 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22927 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22928 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22929 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22930 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22931 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22932 Rename ...
22933 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22934 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22935 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22936 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22937 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22938 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22939 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22940 vfmlsl_laneq_high_f16): ... To this.
22941 * config/arm/neon.md: Update comments.
22942
22943 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22944
22945 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22946 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22947 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22948 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22949 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22950 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22951 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22952 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22953 Rename ...
22954 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22955 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22956 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22957 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22958 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22959 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22960 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22961 vfmlslq_laneq_high_f16): ... To this.
22962
22963 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22964
22965 PR rtl-optimization/86096
22966 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22967 comparing mw_order values.
22968
22969 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22970
22971 PR target/89434
22972 * config/arm/arm.md (*subsi3_carryin_const): Use
22973 arm_neg_immediate_operand predicate instead of
22974 arm_not_immediate_operand, "L" constraint instead of "K" and
22975 print it using %n2 instead of %B2.
22976 (*subsi3_carryin_const0): New define_insn.
22977 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22978 instead of arm_not_operand and "I" constraint instead of "K" and
22979 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22980 another match_operand and in the condition check that it is negation
22981 of operands[2].
22982 (*subsi3_carryin_compare_const0): New define_ins.
22983 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22984 *subsi3_carryin_const.
22985 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22986 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22987
22988 PR target/89438
22989 * config/arm.vfp.md (*negdf2_vfp): Use
22990 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22991 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22992
22993 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22994
22995 PR rtl-optimization/89445
22996 * simplify-rtx.c (simplify_ternary_operation): Don't use
22997 simplify_merge_mask on operands that may trap.
22998 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22999 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23000 second operand is CONST_VECTOR, check if any element could be zero.
23001 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23002 their operands can trap.
23003
23004 2019-02-23 Martin Sebor <msebor@redhat.com>
23005
23006 * gimple-ssa-sprintf.c (target_strtol): Rename...
23007 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23008 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23009 check for range error.
23010
23011 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23012
23013 PR driver/69471
23014 * opts-common.c (prune_options): Also prune joined switches
23015 with Negative and RejectNegative.
23016 * config/i386/i386.opt (march=): Add Negative(march=).
23017 (mtune=): Add Negative(mtune=).
23018 * doc/options.texi: Document Negative used together with Joined
23019 and RejectNegative.
23020
23021 2019-02-22 Martin Sebor <msebor@redhat.com>
23022
23023 * doc/extend.texi (Other Builtins): Add
23024 __builtin_is_constant_evaluated.
23025
23026 2019-02-22 Richard Biener <rguenther@suse.de>
23027
23028 PR tree-optimization/87609
23029 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23030
23031 2019-02-22 Jeff Law <law@redhat.com>
23032
23033 PR rtl-optimization/87761
23034 * config/mips/mips.md: Add new combiner pattern to recognize
23035 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23036
23037 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23038
23039 PR target/89324
23040 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23041 destination register in peepholes generating patterns for ADDS/SUBS.
23042 (add<mode>3_compare0,
23043 *addsi3_compare0_uxtw, add<mode>3_compareC,
23044 add<mode>3_compareV_imm, add<mode>3_compareV,
23045 *adds_<optab><ALLX:mode>_<GPI:mode>,
23046 *subs_<optab><ALLX:mode>_<GPI:mode>,
23047 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23048 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23049 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23050 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23051 sub<mode>3_compare1): Allow stack pointer for source register.
23052 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23053
23054 2019-02-22 Martin Sebor <msebor@redhat.com>
23055
23056 PR tree-optimization/88993
23057 PR tree-optimization/88853
23058 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23059 New helper.
23060 (sprintf_dom_walker::call_info::is_string_func): New helper.
23061 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23062 for formatted string functions.
23063 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23064
23065 2019-02-22 Martin Sebor <msebor@redhat.com>
23066
23067 PR c/89425
23068 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23069 unreachable subexpressions.
23070
23071 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23072 Hongtao Liu <hongtao.liu@intel.com>
23073 Sunil K Pandey <sunil.k.pandey@intel.com>
23074
23075 PR target/87007
23076 * config/i386/i386-passes.def: Add
23077 pass_remove_partial_avx_dependency.
23078 * config/i386/i386-protos.h
23079 (make_pass_remove_partial_avx_dependency): New.
23080 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23081 New function.
23082 (pass_data_remove_partial_avx_dependency): New.
23083 (pass_remove_partial_avx_dependency): Likewise.
23084 (make_pass_remove_partial_avx_dependency): Likewise.
23085 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23086 (*extendsfdf2): Add avx_partial_xmm_update.
23087 (truncdfsf2): Likewise.
23088 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23089 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23090
23091 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23092
23093 PR middle-end/85598
23094 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23095 analysis for pass.
23096
23097 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23098
23099 PR target/89444
23100 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23101 (PTA_SKYLAKE): Add PTA_AES.
23102 (PTA_GOLDMONT): Likewise.
23103
23104 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23105
23106 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23107 instruction if enabled.
23108 (aarch64_override_options): Remove reference to return address key.
23109
23110 2019-02-22 Richard Biener <rguenther@suse.de>
23111
23112 PR tree-optimization/89440
23113 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23114 not necessary assert.
23115
23116 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23117
23118 PR fortran/72741
23119 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23120 (oacc_replace_fn_attrib_attr): ... this new function.
23121 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23122 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23123
23124 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23125
23126 * config/arm/arm-cpus.in (ares): Rename to...
23127 (neoverse-n1): ... This. Add ares as alias.
23128 * config/arm/arm-tables.opt: Regenerate.
23129 * config/arm/arm-tune.md: Likewise.
23130 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23131
23132 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23133
23134 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23135 * config/aarch64/aarch64-tune.md: Regenerate.
23136 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23137
23138 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23139
23140 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23141 (neoversen1_tunings): ... This.
23142 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23143 (neoverse-n1): New CPU.
23144 * config/aarch64/aarch64-tune.md: Regenerate.
23145 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23146
23147 2019-02-22 Richard Biener <rguenther@suse.de>
23148
23149 PR middle-end/87609
23150 * cfghooks.h (dependence_hash): New typedef.
23151 (struct copy_bb_data): New type.
23152 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23153 (duplicate_block): Likewise.
23154 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23155 (copy_bbs): Create and pass down copy_bb_data.
23156 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23157 (rtl_duplicate_bb): Likewise.
23158 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23159 remap dependence info.
23160
23161 2019-02-22 Richard Biener <rguenther@suse.de>
23162
23163 PR tree-optimization/87609
23164 * tree-core.h (tree_base): Document special clique values.
23165 * tree-inline.c (remap_dependence_clique): Do not use the
23166 special clique value of one.
23167 (maybe_set_dependence_info): Use clique one.
23168 (clear_dependence_clique): New callback.
23169 (compute_dependence_clique): Clear clique one from all refs
23170 before assigning it (again).
23171
23172 2019-02-21 Martin Sebor <msebor@redhat.com>
23173
23174 * doc/extend.texi (__clear_cache): Correct signature.
23175
23176 2019-02-21 Ian Lance Taylor <iant@golang.org>
23177
23178 PR go/89170
23179 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23180 than output_constant_def.
23181 (add_constant_to_table): New static function.
23182 (output_constant_def): Call add_constant_to_table.
23183 (tree_output_constant_def): Likewise.
23184
23185 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23186
23187 PR c++/89285
23188 * builtins.c (fold_builtin_arith_overflow): If first two args are
23189 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23190 to ifn.
23191
23192 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23193
23194 PR target/87412
23195 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23196 error for -mindirect-branch/-mfunction-return with incompatible
23197 -fcf-protection.
23198
23199 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23200
23201 PR bootstrap/88714
23202 * constraints.md (q): Remove.
23203 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23204 instead of q.
23205
23206 2019-02-21 Martin Jambor <mjambor@suse.cz>
23207
23208 PR hsa/89302
23209 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23210 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23211 (omp_adjust_for_condition): ...here. Added necessary parameters.
23212 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23213 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23214 proper values to new parameters of omp_adjust_for_condition.
23215
23216 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23217
23218 PR middle-end/89412
23219 * expr.c (expand_assignment): If result is a MEM, use change_address
23220 instead of simplify_gen_subreg.
23221
23222 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23223 David Malcolm <dmalcolm@redhat.com>
23224
23225 PR middle-end/89091
23226 * fold-const.c (decode_field_reference): Return NULL_TREE if
23227 lang_hooks.types.type_for_size returns NULL. Check it before
23228 overwriting *exp_. Use return NULL_TREE instead of return 0.
23229
23230 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23231
23232 PR middle-end/88074
23233 PR middle-end/89415
23234 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23235 buggy mpc_norm.
23236
23237 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23238
23239 PR target/89397
23240 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23241 TARGET_SSE in addition to TARGET_SSE_MATH.
23242
23243 (ix86_excess_precision): Ditto.
23244 (ix86_float_exceptions_rounding_supported_p): Ditto.
23245 (use_rsqrt_p): Ditto.
23246 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23247
23248 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23249
23250 PR c/89410
23251 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23252 linenum_arith_t when determining if two adjacent line spans are
23253 close enough to merge.
23254 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23255 lines within each line_span.
23256
23257 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23258
23259 PR target/86487
23260 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23261 paradoxical SUBREGS.
23262
23263 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23264
23265 PR target/88100
23266 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23267 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23268 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23269 range checking it.
23270
23271 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23272
23273 * config/gcn/gcn.c (print_operand): Fix typo.
23274
23275 2019-02-19 Richard Biener <rguenther@suse.de>
23276
23277 PR middle-end/88074
23278 * toplev.c (do_compile): Initialize mpfr's exponent range
23279 based on available float modes.
23280
23281 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23282
23283 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23284 as long as the epilogue isn't completed.
23285
23286 2019-02-18 Martin Sebor <msebor@redhat.com>
23287
23288 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23289 __has_cpp_attribute, and __has_include.
23290
23291 2019-02-18 Martin Sebor <msebor@redhat.com>
23292
23293 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23294
23295 2019-02-18 Martin Sebor <msebor@redhat.com>
23296
23297 PR middle-end/89294
23298 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23299 expression.
23300 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23301
23302 2019-02-18 Richard Biener <rguenther@suse.de>
23303
23304 PR tree-optimization/89296
23305 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23306 of no-warning flag to cases that might emit the bogus warning.
23307
23308 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23309
23310 PR bootstrap/88714
23311 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23312 "q" constraint.
23313 * config/arm/vfp.md (*movdi_vfp): Likewise.
23314 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23315 "q" constraint for operands[0].
23316
23317 PR target/89369
23318 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23319 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23320 pattern in a temporary buffer.
23321 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23322 than 64-operands[2].
23323
23324 PR target/89361
23325 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23326 s390_indirect_branch_settings): Define unconditionally.
23327 (s390_set_current_function): Likewise, but guard the whole body except
23328 the s390_indirect_branch_settings call with
23329 #if S390_USE_TARGET_ATTRIBUTE.
23330 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23331
23332 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23333 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23334 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23335 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23336 HOST_WIDE_INT_1U instead of 1ULL.
23337 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23338 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23339 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23340 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23341 instead of 1UL.
23342 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23343 instead of 1ul.
23344
23345 2019-02-18 Martin Jambor <mjambor@suse.cz>
23346
23347 PR tree-optimization/89209
23348 * tree-sra.c (create_access_replacement): New optional parameter
23349 reg_tree. Use it as a type if non-NULL and access type is not of
23350 a register type.
23351 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23352 to create_access_replacement.
23353 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23354 Check lacc is non-NULL before attempting to re-create it on the RHS.
23355
23356 2019-02-18 Martin Liska <mliska@suse.cz>
23357
23358 PR ipa/89306
23359 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23360 by default.
23361 (symbol_table::free_edge): Recycle m_summary_id.
23362 * cgraph.h (get_summary_id): New.
23363 (symbol_table::release_symbol): Set m_summary_id to -1
23364 by default.
23365 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23366 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23367 function_summary to fast_function_summary.
23368 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23369 * ipa-pure-const.c (class funct_state_summary_t):
23370 Switch from function_summary to fast_function_summary.
23371 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23372 (class ipa_ref_opt_summary_t): Switch from function_summary
23373 to fast_function_summary.
23374 * symbol-summary.h (class function_summary_base): New class
23375 that is created from base of former function_summary.
23376 (function_summary_base::unregister_hooks): New.
23377 (class function_summary): Inherit from function_summary_base.
23378 (class call_summary_base): New class
23379 that is created from base of former call_summary.
23380 (class call_summary): Inherit from call_summary_base.
23381 (struct is_same): New.
23382 (class fast_function_summary): New summary class.
23383 (class fast_call_summary): New summary class.
23384 * vec.h (vec_safe_grow_cleared): New function.
23385
23386 2019-02-18 Martin Liska <mliska@suse.cz>
23387
23388 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23389 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23390 * doc/tm.texi: Document new target hook.
23391 * doc/tm.texi.in: Likewise.
23392 * target.def: Add new target macro.
23393 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23394 suffixes.
23395
23396 2019-02-17 Alan Modra <amodra@gmail.com>
23397
23398 PR target/89271
23399 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23400 output reg on add insn.
23401 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23402
23403 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23404
23405 PR target/89372
23406 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23407 (PMULHRSW): Likewise.
23408 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23409 TARGET_AVX2.
23410 (ssse3_pmulhrswv4hi3): New expander.
23411
23412 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23413
23414 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23415 MMX. Add isa attribute.
23416
23417 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23418
23419 PR rtl-optimization/66152
23420 * builtins.h (c_readstr): Declare.
23421 * builtins.c (c_readstr): Remove forward declaration. Add
23422 null_terminated_p argument, if false, read all bytes from the
23423 string instead of stopping after '\0'.
23424 * expr.c (string_cst_read_str): New function.
23425 (store_expr): Use string_cst_read_str instead of
23426 builtin_strncpy_read_str. Try to store by pieces the whole
23427 exp_len first, and only if that fails, split it up into
23428 store by pieces followed by clear_storage. Formatting fix.
23429
23430 * config/i386/i386.md (*movqi_internal): Remove static from
23431 buf variable. Use output_asm_insn (buf, operands); return "";
23432 instead of return buf;.
23433 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23434 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23435 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23436
23437 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23438
23439 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23440 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23441 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23442 (CC1_SPEC): Likewise.
23443 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23444
23445 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23446
23447 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23448 the base address on 64-bit strict-alignment platforms.
23449
23450 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23451
23452 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23453
23454 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23455
23456 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23457
23458 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23459
23460 PR rtl-optimization/88308
23461 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23462 on copied instruction.
23463
23464 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23465
23466 * final.c (insn_current_reference_address): Replace test on JUMP_P
23467 with test on jump_to_label_p.
23468 * config/visium/visium-passes.def: New file.
23469 * config/visium/t-visium (PASSES_EXTRA): Define.
23470 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23471 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23472 (TRAMPOLINE_ALIGNMENT): Define.
23473 * config/visium/visium.c (visium_option_override): Do not register
23474 the machine-specific reorg pass here.
23475 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23476 for the GR6.
23477 (output_branch): Adjust threshold for long branch instruction.
23478 * config/visium/visium.md (cpu): Move around.
23479 (length): Adjust for the GR6.
23480
23481 2019-02-15 Richard Biener <rguenther@suse.de>
23482 Jakub Jelinek <jakub@redhat.com>
23483
23484 PR tree-optimization/89278
23485 * tree-loop-distribution.c: Include tree-eh.h.
23486 (generate_memset_builtin, generate_memcpy_builtin): Call
23487 rewrite_to_non_trapping_overflow on builtin->size before passing it
23488 to force_gimple_operand_gsi.
23489
23490 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23491
23492 PR other/89342
23493 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23494 optimize_debug.
23495 * opth-gen.awk: Likewise.
23496
23497 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23498
23499 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23500 Enable MMX, SSE and SSE2 by default.
23501 * config/i386/i386.c (ix86_option_override_internal): Do not
23502 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23503
23504 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23505
23506 PR rtl-optimization/89354
23507 * combine.c (make_extraction): Punt if extraction_mode is narrower
23508 than len bits.
23509
23510 2019-02-14 Maya Rashish <coypu@sdf.org>
23511
23512 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23513 * config/netbsd-d.c: New file.
23514 * config/t-netbsd: Add netbsd-d.o
23515
23516 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23517
23518 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23519 affects_type_identity to true for aarch64_vector_pcs.
23520 (aarch64_comp_type_attributes): New function.
23521 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23522
23523 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23524
23525 PR target/88850
23526 * config/arm/iterators.md (ANY64): Add V4HF.
23527
23528 2019-02-14 Martin Liska <mliska@suse.cz>
23529
23530 PR rtl-optimization/89242
23531 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23532 process a transformation.
23533
23534 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23535
23536 PR tree-optimization/89314
23537 * fold-const.c (fold_binary_loc): Cast strlen argument to
23538 const char * before dereferencing it. Formatting fixes.
23539
23540 PR middle-end/89284
23541 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23542
23543 2019-02-13 Ian Lance Taylor <iant@golang.org>
23544
23545 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23546 and set current index for other optimizations.
23547
23548 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23549
23550 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23551 nonimmediate_operand as operand 2 predicate.
23552 (vec_set<VF2_512_256:mode>_0): Ditto.
23553 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23554 (*vec_concatv2si): Remove alternative 2.
23555 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23556 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23557 (vec_concatv2di): Split alternatives 4,5,6 to ...
23558 (*vec_concatv2di_0) ... new pattern.
23559
23560 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23561
23562 PR target/89190
23563 * config/arm/arm.c (ldm_stm_operation_p) Set
23564 addr_reg_in_reglist correctly for first register.
23565 (load_multiple_sequence): Remove dead base check.
23566 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23567
23568 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23569
23570 PR target/88847
23571 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23572 Expose as @aarch64_pred_mov.
23573 * config/aarch64/aarch64.c (aarch64_classify_address):
23574 Use expand_insn which legitimizes operands.
23575
23576 2019-02-13 Martin Liska <mliska@suse.cz>
23577
23578 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23579 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23580 and pointer_offset fields.
23581 (initialize_argument_information): Remove usage of dead
23582 fields.
23583 * cgraph.h (struct cgraph_thunk_info): Remove
23584 add_pointer_bounds_args.
23585 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23586 fields.
23587 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23588 fields.
23589 * config/i386/i386.c (ix86_function_arg_advance): Remove
23590 unrelated comment.
23591 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23592 (def_builtin): Remove usage of dead fields.
23593 (ix86_add_new_builtins): Likewise.
23594 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23595 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23596 (sem_function::init): Likewise.
23597 (sem_variable::merge): Likewise.
23598 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23599 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23600 * lto-cgraph.c (lto_output_node): Likewise.
23601 (lto_output_varpool_node): Likewise.
23602 (input_node): Likewise.
23603 (input_varpool_node): Likewise.
23604 * lto-streamer-out.c (lto_output): Likewise.
23605 * tree-inline.c (expand_call_inline): Remove usage of
23606 assign_stmts.
23607 * tree-inline.h (struct copy_body_data): Likewise.
23608 * varpool.c (varpool_node::dump): Likewise.
23609
23610 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23611
23612 PR middle-end/89303
23613 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23614 into pt->vars_contains_escaped_heap instead of setting
23615 pt->vars_contains_escaped_heap to it.
23616
23617 PR middle-end/89281
23618 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23619 INTVAL (size), compare it to GET_MODE_MASK instead of
23620 1 << GET_MODE_BITSIZE.
23621
23622 PR target/89290
23623 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23624 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23625 -mcmodel=large.
23626
23627 2019-02-13 Martin Liska <mliska@suse.cz>
23628
23629 PR lto/88858
23630 * cfgrtl.c (remove_barriers_from_footer): New function.
23631 (try_redirect_by_replacing_jump): Use it.
23632 (cfg_layout_redirect_edge_and_branch): Likewise.
23633
23634 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23635
23636 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23637 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23638 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23639 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23640 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23641 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23642 New BU_CRYPTO_2.
23643 * config/rs6000/rs6000.c (builtin_function_type)
23644 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23645 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23646 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23647 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23648 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23649
23650 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23651
23652 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23653 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23654
23655 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23656
23657 PR target/89229
23658 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23659 268678 and revision 268657.
23660 (*movti_internal): Likewise.
23661
23662 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23663
23664 PR target/89233
23665 * config/s390/s390.c (s390_decompose_address): Update comment.
23666 (s390_check_qrst_address): Reject invalid address forms after
23667 LRA.
23668
23669 2019-02-12 Martin Liska <mliska@suse.cz>
23670
23671 PR lto/88876
23672 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23673 we need default values of funct_state for a function that
23674 is not optimized.
23675
23676 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23677
23678 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23679 the object to pick the size of stores on strict-alignment platforms.
23680
23681 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23682 (*movdi_insn_sp32): Likewise.
23683 (*movdi_insn_sp64): Likewise.
23684
23685 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23686
23687 PR lto/88677
23688 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23689 types that needs constructiong.
23690 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23691
23692 2019-02-12 Richard Biener <rguenther@suse.de>
23693
23694 PR tree-optimization/89253
23695 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23696 duplicate the loop.
23697
23698 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23699
23700 PR lto/88147
23701 * input.c (selftest::test_line_offset_overflow): New selftest.
23702 (selftest::input_c_tests): Call it.
23703
23704 2019-02-11 Martin Sebor <msebor@redhat.com>
23705
23706 PR tree-optimization/88771
23707 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23708 when -Wstringop-overflow is set.
23709 (builtin_memref::builtin_memref): Adjust excessive upper bound
23710 only when lower bound is not excessive.
23711 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23712 -Wstringop-ovefflow.
23713 (maybe_diag_offset_bounds): Rename...
23714 (maybe_diag_access_bounds): ...to this.
23715 (check_bounds_or_overlap): Adjust for name change above.
23716
23717 2019-02-11 Martin Sebor <msebor@redhat.com>
23718
23719 PR c++/87996
23720 * builtins.c (max_object_size): Move from here...
23721 * builtins.h (max_object_size): ...and here...
23722 * tree.c (max_object_size): ...to here...
23723 * tree.h (max_object_size): ...and here.
23724
23725 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23726
23727 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23728 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23729 for correct semantics.
23730
23731 2019-02-11 Alan Modra <amodra@gmail.com>
23732
23733 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23734 -mlongcall and -mpltseq.
23735 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23736 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23737 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23738 * config/rs6000/sysv4.opt (mpltseq): New option.
23739 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23740 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23741 support is lacking. Don't allow -mpltseq with -mbss-plt.
23742 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23743 -mpltseq given for ELFv1.
23744 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23745 Only use UNSPEC_PLTSEQ for inline PLT calls.
23746 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23747 use UNSPEC_PLTSEQ for inline PLT calls.
23748 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23749 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23750 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23751 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23752 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23753 (pltseq_mtctr_<mode>): Likewise.
23754
23755 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23756
23757 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23758 Solaris ld.
23759 * configure: Regenerate.
23760
23761 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23762
23763 PR bootstrap/88714
23764 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23765 instead of r.
23766
23767 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23768
23769 * function.c (assign_parm_setup_block): Use the stored
23770 size, not the passed size, when allocating stack-space,
23771 also for a parameter with alignment larger than
23772 MAX_SUPPORTED_STACK_ALIGNMENT.
23773
23774 2019-02-11 Martin Liska <mliska@suse.cz>
23775
23776 PR ipa/89009
23777 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23778 * ipa-inline.c (inline_small_functions): Likewise.
23779 * ipa-pure-const.c (propagate_pure_const): Likewise.
23780 (propagate_nothrow): Likewise.
23781 * ipa-reference.c (propagate): Likewise.
23782 * ipa-utils.c (struct searchc_env): Remove unused field.
23783 (searchc): Always search across AVAIL_INTERPOSABLE.
23784 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23785 the only called IPA pure const can properly not propagate
23786 across interposable boundary.
23787 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23788
23789 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23790
23791 * config/nds32/nds32.md (call_internal, call_value_internal,
23792 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23793
23794 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23795
23796 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23797 typo.
23798
23799 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23800
23801 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23802 in comments
23803
23804 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23805
23806 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23807
23808 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23809
23810 PR tree-optimization/89268
23811 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23812 if preds is non-NULL.
23813
23814 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23815
23816 PR lto/89272
23817 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23818 polymorphic types.
23819
23820 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23821
23822 * config/nds32/nds32.md (trap): New pattern.
23823
23824 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23825
23826 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23827 dwarf span.
23828
23829 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23830
23831 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23832 to split POST_INC.
23833
23834 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23835
23836 * ipa-visibility.c (localize_node): Also do not localize
23837 LDPR_PREVAILING_DEF_IRONLY_EXP.
23838
23839 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23840
23841 PR lto/87957
23842 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23843 instead of type_with_linkage.
23844
23845 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23846
23847 PR ipa/88755
23848 * params.def (uninlined-function-insns, uninlined-function-time,
23849 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23850 bound so we don't get overflows.
23851
23852 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23853
23854 * config/rs6000/rs6000-string.c (expand_compare_loop,
23855 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23856 memcmp/strncmp.
23857
23858 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23859
23860 PR middle-end/89246
23861 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23862 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23863 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23864
23865 2019-02-09 Alan Modra <amodra@gmail.com>
23866
23867 PR target/88343
23868 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23869 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23870 setup.
23871
23872 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23873
23874 PR middle-end/88560
23875 * lra-constraints.c (process_alt_operands): Don't increase reject
23876 for memory when offset memory is required.
23877
23878 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23879
23880 * config/s390/vector.md: Implement vector copysign.
23881
23882 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23883
23884 * expr.c (expand_constructor): Correct indentations.
23885
23886 2019-02-08 Richard Biener <rguenther@suse.de>
23887
23888 PR tree-optimization/89247
23889 * tree-if-conv.c: Include tree-cfgcleanup.h.
23890 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23891 (tree_if_conversion): Pass through predicate vector.
23892 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23893 inline, see if any if-converted loops we refrece in
23894 LOOP_VECTORIZED calls vanished and fixup.
23895 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23896
23897 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23898
23899 * config/s390/constraints.md (jdd): New constraint.
23900
23901 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23902
23903 PR target/89229
23904 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23905 upper 16 vector registers without TARGET_AVX512VL.
23906 (*movti_internal): Likewise.
23907
23908 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23909
23910 PR rtl-optimization/89234
23911 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23912 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23913 (copy_reg_eh_region_note_backward): Likewise.
23914
23915 2019-02-08 Richard Biener <rguenther@suse.de>
23916
23917 PR middle-end/89223
23918 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23919 doesn't fit in HWI.
23920 (analyze_subscript_affine_affine): Handle failure from
23921 initialize_matrix_A.
23922
23923 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23924
23925 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23926 cfun everywhere.
23927
23928 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23929
23930 PR tree-optimization/86637
23931 PR tree-optimization/89235
23932 * tree-vect-loop.c (optimize_mask_stores): Add an
23933 auto_purge_vect_location sentinel to ensure that vect_location is
23934 purged on exit.
23935 * tree-vectorizer.c
23936 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23937 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23938 to ensure that vect_location is purged on exit.
23939 (pass_slp_vectorize::execute): Likewise, replacing the manual
23940 reset.
23941 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23942
23943 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23944
23945 * config/aarch64/iterators.md (max_opp): New code_attr.
23946 (USMAX): New code iterator.
23947 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23948 (aarch64_smax): Likewise.
23949 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23950 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23951 MINUS (MAX MIN).
23952
23953 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23954
23955 PR target/89229
23956 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23957 for TARGET_AVX512VL.
23958 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23959
23960 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23961
23962 * config/s390/s390-builtin-types.def: Add new types.
23963 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23964 (s390_vec_xlw4): Make the memory operand into a const pointer.
23965 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23966 float.
23967 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23968 a new vector type with the alignment of the scalar memory operand.
23969
23970 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23971 Jakub Jelinek <jakub@redhat.com>
23972
23973 PR bootstrap/88714
23974 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23975 arm_count_ldrdstrd_insns): New declarations.
23976 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23977 MINUS.
23978 (valid_operands_ldrd_strd): New function.
23979 (arm_count_ldrdstrd_insns): New function.
23980 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23981 sets instead of single DImode set and define new insns to match this.
23982
23983 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23984
23985 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23986 Make it a C initializer.
23987
23988 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23989
23990 PR/target 88850
23991 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23992
23993 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23994
23995 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23996 Use neon_dot<q> for type.
23997 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23998
23999 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24000
24001 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24002 Use neon_dot<q> for type.
24003 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24004 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24005
24006 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24007
24008 PR rtl-optimization/89225
24009 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24010 sizes check.
24011
24012 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24013
24014 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24015 after restoring registers saved to allocate the frame on Windows.
24016
24017 2019-02-06 Richard Biener <rguenther@suse.de>
24018
24019 PR tree-optimization/89182
24020 * graphite.h (cached_scalar_evolution_in_region): Declare.
24021 * graphite.c (struct seir_cache_key): New.
24022 (struct sese_scev_hash): Likewise.
24023 (seir_cache): New global.
24024 (cached_scalar_evolution_in_region): New function.
24025 (graphite_transform_loops): Allocate and release seir_cache.
24026 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24027 cached_scalar_evolution_in_region.
24028 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24029 Simplify.
24030 (scop_detection::graphite_can_represent_expr: Use
24031 cached_scalar_evolution_in_region.
24032 (scop_detection::stmt_simple_for_scop_p): Likewise.
24033 (find_params_in_bb): Likewise.
24034 (gather_bbs::before_dom_children): Likewise.
24035 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24036 (add_loop_constraints): Likewise.
24037
24038 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24039
24040 PR middle-end/89210
24041 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24042 operand to new_unary_operation only if both element types are integral
24043 and it isn't a widening conversion. Return NULL_TREE if
24044 new_unary_operation failed.
24045
24046 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24047
24048 PR target/88856
24049 * config/s390/s390.md: Remove load and test FP splitter.
24050
24051 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24052
24053 PR target/89112
24054 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24055 expand_compare_loop, expand_block_compare_gpr,
24056 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24057 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24058 #include "profile-count.h" and "predict.h" for types and functions
24059 needed to work with REG_BR_PROB notes.
24060
24061 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24062
24063 PR target/89112
24064 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24065 for the long branch case.
24066
24067 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24068
24069 PR target/89188
24070 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24071 can throw, non-call exceptions are enabled and we can't delete
24072 dead exceptions or alter cfg. Set must_clean if
24073 delete_insn_and_edges returns true, don't set it blindly for calls.
24074 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24075
24076 PR rtl-optimization/89195
24077 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24078 of the original MEM.
24079
24080 2019-02-05 Martin Liska <mliska@suse.cz>
24081
24082 PR gcov-profile/89000
24083 * gcov.c (function_summary): Remove argument.
24084 (file_summary): New function.
24085 (print_usage): Replace tabs with spaces.
24086 (generate_results): Use new function file_summary.
24087
24088 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24089
24090 PR target/89186
24091 * optabs.c (prepare_cmp_insn): Pass x and y to
24092 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24093
24094 2019-02-05 Richard Biener <rguenther@suse.de>
24095
24096 PR middle-end/89150
24097 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24098 (struct bitmap_element): Drop chain_prev so we properly recurse on
24099 the prev member, supporting tree views.
24100 (struct bitmap_head): GTY skip the obstack member.
24101
24102 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24103
24104 PR c/88698
24105 * doc/extend.texi (Vector Extensions): Add an example of using vector
24106 types together with x86 intrinsics.
24107
24108 2019-02-04 Alan Modra <amodra@gmail.com>
24109
24110 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24111 str[] size to 160, and comment.
24112
24113 2019-02-04 Alan Modra <amodra@gmail.com>
24114
24115 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24116 (rs6000_pltseq_template): Guard output of TLS markers with
24117 TARGET_TLS_MARKERS.
24118 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24119 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24120 to use inline PLT sequences.
24121 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24122 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24123 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24124
24125 2019-02-04 Martin Liska <mliska@suse.cz>
24126
24127 PR ipa/88985
24128 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24129 out when ipa_fn_summaries does not contain entry for callee.
24130
24131 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24132
24133 * config/sparc/sparc.h: Remove superfluous blank lines.
24134 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24135 (got_register_rtx): ...this.
24136 (sparc_got): Adjust to above renaming.
24137 (sparc_tls_got): Likewise.
24138 (sparc_delegitimize_address): Likewise.
24139 (sparc_output_mi_thunk): Likewise.
24140 (sparc_init_pic_reg): Likewise.
24141 (save_local_or_in_reg_p): Fix test on the GOT register.
24142 (USE_HIDDEN_LINKONCE): Move around.
24143 (get_pc_thunk_name): Likewise.
24144 (gen_load_pcrel_sym): Likewise.
24145 (load_got_register): Likewise.
24146
24147 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24148
24149 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24150 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24151
24152 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24153
24154 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24155 into consideration.
24156
24157 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24158
24159 * config.gcc (with_nds32_lib, glibc):
24160 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24161 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24162 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24163
24164 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24165
24166 PR target/89071
24167 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24168 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24169 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24170 (*rcpsf2_sse): Ditto.
24171 (*rsqrtsf2_sse): Ditto.
24172 (sse4_1_round<mode<2): Ditto.
24173
24174 2019-02-03 Richard Biener <rguenther@suse.de>
24175
24176 PR debug/87295
24177 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24178 orig.
24179
24180 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24181
24182 PR middle-end/87887
24183 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24184 Punt with warning on aggregate return or argument types. Ignore
24185 type/mode checking for uniform arguments.
24186
24187 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24188
24189 * combine.c (try_combine): Do not print "Can't combine" messages unless
24190 printing failed combination attempts.
24191
24192 2019-02-01 Martin Jambor <mjambor@suse.cz>
24193
24194 PR hsa/87863
24195 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24196 segment and global segment variables before making them static.
24197
24198 2019-02-01 Martin Jambor <mjambor@suse.cz>
24199
24200 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24201 missed optimization dump with dump_enabled_p.
24202
24203 2019-02-01 Richard Biener <rguenther@suse.de>
24204
24205 PR middle-end/88597
24206 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24207 the instantiate cache.
24208 (instantiate_scev_binary): Elide second operand procesing
24209 if equal to the first.
24210 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24211 (chrec_contains_undetermined): Likewise.
24212 (tree_contains_chrecs): Likewise.
24213
24214 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24215
24216 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24217
24218 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24219
24220 PR tree-optimization/89143
24221 * wide-int-range.h (wide_int_range_absu): Declare.
24222 * wide-int-range.cc (wide_int_range_absu): New function.
24223 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24224
24225 PR tree-optimization/88107
24226 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24227 instead of assertion that eh_region_outermost is non-NULL, if it
24228 is NULL, set *ALL to true and return NULL.
24229 (move_sese_region_to_fn): Adjust caller, if all is set, call
24230 duplicate_eh_regions with NULL region.
24231
24232 2019-02-01 Richard Biener <rguenth@suse.de>
24233
24234 PR rtl-optimization/88593
24235 * mode-switching.c (optimize_mode_switching): Free dominators before
24236 calling cleanup_cfg.
24237
24238 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24239
24240 PR tree-optimization/88932
24241 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24242
24243 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24244
24245 PR middle-end/89137
24246 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24247 bogus clang warning.
24248
24249 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24250
24251 PR target/89071
24252 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24253 alternative to avoid partial SSE register stall for TARGET_AVX.
24254 (truncdfsf2): Ditto.
24255 (sse4_1_round<mode>2): Ditto.
24256
24257 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24258
24259 PR tree-optimization/89008
24260 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24261 process anything of the form X * 0.
24262
24263 2019-01-31 Richard Biener <rguenther@suse.de>
24264
24265 PR tree-optimization/89135
24266 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24267 with abnormal preds.
24268
24269 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24270
24271 PR sanitizer/89124
24272 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24273 always_inline callees into no_sanitize_address callers.
24274
24275 2019-01-31 Richard Biener <rguenther@suse.de>
24276
24277 PR rtl-optimization/89115
24278 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24279
24280 2019-01-30 Martin Sebor <msebor@redhat.com>
24281
24282 PR other/89106
24283 * doc/extend.texi (cast to a union): Correct and expand.
24284
24285 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24286
24287 PR rtl-optimization/87246
24288 * lra-constraints.c (simplify_operand_subreg): Reload memory
24289 in subreg if the address became invalid.
24290
24291 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24292
24293 PR target/87064
24294 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24295 Disable for little-endian.
24296
24297 2019-01-30 Richard Biener <rguenther@suse.de>
24298
24299 PR rtl-optimization/89115
24300 * opts.c (default_options_optimization): Reduce
24301 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24302 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24303 to the default.
24304
24305 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24306
24307 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24308 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24309 type of vector element when vec_extract is implemented by direct
24310 move.
24311
24312 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24313
24314 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24315
24316 2019-01-30 Richard Biener <rguenther@suse.de>
24317
24318 PR tree-optimization/89111
24319 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24320 canonicalization to appropriately sized access types.
24321
24322 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24323
24324 PR c++/89105
24325 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24326 for arguments to functions that are TU-local and shouldn't be
24327 referenced by assembly.
24328
24329 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24330
24331 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24332 after '='.
24333
24334 2019-01-29 Martin Sebor <msebor@redhat.com>
24335
24336 PR c/88956
24337 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24338
24339 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24340
24341 PR c++/66676
24342 PR ipa/89104
24343 * omp-simd-clone.c (simd_clone_clauses_extract)
24344 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24345 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24346
24347 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24348
24349 * config.gcc: Force .init_array for ARC.
24350
24351 2019-01-29 Richard Biener <rguenther@suse.de>
24352
24353 PR debug/87295
24354 * dwarf2out.c (collect_skeleton_dies): New helper.
24355 (copy_decls_for_unworthy_types): Call it.
24356 (build_abbrev_table): Assert we do not try to replace
24357 DW_AT_signature refs with local refs.
24358
24359 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24360
24361 PR middle-end/89002
24362 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24363 for lastprivate/linear IV, push gimplify context around gimplify_assign
24364 and, if it needed any temporaries, pop it into a gimple bind around the
24365 sequence.
24366
24367 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24368
24369 * common.opt (-Wattribute-alias): Remove "no-" from name.
24370 Make -Wattribute-alias command line option and
24371 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24372
24373 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24374
24375 PR target/89073
24376 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24377 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24378 x86 ISA options.
24379 (bmi2): Add missing @opindex.
24380 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24381 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24382 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24383 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24384 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24385 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24386 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24387 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24388 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24389 xsavec, xsaveopt and xsaves options.
24390
24391 2019-01-28 Richard Biener <rguenther@suse.de>
24392
24393 PR debug/89076
24394 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24395 support removal.
24396
24397 2019-01-28 Richard Biener <rguenther@suse.de>
24398
24399 PR tree-optimization/88739
24400 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24401 BIT_FIELD_REFs only are applied to mode-precision operands
24402 when they are integral.
24403 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24404 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24405 BIT_FIELD_REFs of non-mode-precision integral operands.
24406
24407 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24408
24409 PR target/87214
24410 * config/i386/sse.md
24411 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24412 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24413 first constants in pairs are multiples of 2. Formatting fixes.
24414 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24415 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24416 first constants in each quadruple are multiples of 4. Formatting fixes.
24417
24418 2019-01-26 Martin Jambor <mjambor@suse.cz>
24419
24420 PR ipa/88933
24421 * tree-inline.c: Include tree-cfgcleanup.h.
24422 (delete_unreachable_blocks_update_callgraph): Move...
24423 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24424 ...here, make externally visible, make second argument bool, adjust
24425 all callers.
24426 * tree-cfgcleanup.c: Include cgraph.h.
24427 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24428 Declare.
24429 * ipa-prop.c: Include tree-cfgcleanup.h.
24430 (ipcp_transform_function): Call
24431 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24432
24433 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24434
24435 PR rtl-optimization/88846
24436 * ira.c (process_set_for_memref_referenced_p): New.
24437 (memref_referenced_p): Add new param. Use
24438 process_set_for_memref_referenced_p. Add new switch cases.
24439 (memref_used_between_p): Pass new arg to memref_referenced_p.
24440
24441 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24442
24443 PR target/88469
24444 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24445 argument ABI_BREAK. Set to true if the calculated alignment has
24446 changed in gcc-9. Check bit-fields for their base type alignment.
24447 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24448 (aarch64_function_arg_boundary): Likewise.
24449 (aarch64_gimplify_va_arg_expr): Likewise.
24450
24451 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24452
24453 PR middle-end/89037
24454 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24455 instead of accessing TREE_INT_CST_ELT directly.
24456
24457 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24458
24459 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24460 fenv_exceptions description.
24461
24462 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24463
24464 PR rtl-optimization/87763
24465 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24466 Allow SUBREG when matching CC_NZmode compare.
24467
24468 2019-01-25 Richard Biener <rguenther@suse.de>
24469
24470 PR tree-optimization/89049
24471 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24472 Look at the pattern stmt to determine if the stmt is vectorized.
24473
24474 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24475
24476 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24477 (pred_mov<mode>): Handle all-register forms using both a new
24478 alternative and a split.
24479
24480 2019-01-25 Richard Biener <rguenther@suse.de>
24481
24482 PR tree-optimization/86865
24483 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24484 Reject non-do-while loops.
24485
24486 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24487
24488 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24489 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24490 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24491 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24492 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24493 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24494 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24495 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24496 vlogical_operand, gpc_reg_operand, int_reg_operand,
24497 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24498 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24499 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24500 (save_world_operation, restore_world_operation, lmw_operation,
24501 stmw_operation): Use MEM_P and REG_P.
24502 (tie_operand): Use MEM_P.
24503 (vrsave_operation, crsave_operation): Use REG_P.
24504 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24505 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24506 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24507 (call_operand): Use HARD_REGISTER_P.
24508 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24509 Use CONST_INT_P.
24510 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24511 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24512 quad_aligned_load_p, replace_swapped_aligned_store,
24513 recombine_lvx_pattern, replace_swapped_aligned_load,
24514 recombine_stvx_pattern): Use MEM_P.
24515 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24516 Use MEM_P and SYMBOL_REF_P.
24517 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24518 (insn_is_swappable_p): Use REG_P and MEM_P.
24519 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24520 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24521 Use CONST_INT_P.
24522 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24523 Use CONST_DOUBLE_P.
24524 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24525 CONST_WIDE_INT_P.
24526 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24527 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24528 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24529 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24530 reg_or_subregno:
24531 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24532 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24533 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24534 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24535 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24536 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24537 rs6000_split_logical_di): Use CONST_INT_P.
24538 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24539 REG_P and SYMBOL_REF_P.
24540 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24541 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24542 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24543 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24544 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24545 (small_data_operand, print_operand_address): Use CONST_INT_P and
24546 SYMBOL_REF_P.
24547 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24548 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24549 Use HARD_REGISTER_NUM_P.
24550 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24551 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24552 SUBREG_P and SYMBOL_REF_P.
24553 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24554 and HARD_REGISTER_NUM_P.
24555 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24556 reg_or_subregno.
24557 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24558 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24559 MEM_P and REG_P.
24560 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24561 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24562 find_addr_reg): Use REG_P.
24563 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24564 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24565 (offsettable_ok_by_alignment, constant_pool_expr_p,
24566 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24567 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24568 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24569 rs6000_assemble_integer, create_TOC_reference,
24570 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24571 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24572 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24573 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24574 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24575 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24576 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24577 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24578 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24579 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24580 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24581 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24582 and cbranch<mode>4): Use CONST_INT_P.
24583 (multiple define_splits): Use REG_P and SUBREG_P.
24584 (define_expands call, call_value): Use MEM_P.
24585 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24586 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24587 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24588 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24589 and HARD_REGISTER_NUM_P.
24590 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24591
24592 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24593
24594 PR rtl-optimization/88948
24595 * rtl.h (prepare_copy_insn): New prototype.
24596 * gcse.c (prepare_copy_insn): New function, split out from
24597 process_insert_insn.
24598 (process_insert_insn): Use prepare_copy_insn.
24599 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24600 instead of gen_move_insn.
24601
24602 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24603
24604 PR debug/89006
24605 * config/i386/i386.c (ix86_pic_register_p): Return true for
24606 UNSPEC_SET_GOT too.
24607
24608 PR tree-optimization/88964
24609 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24610 punt if HONOR_SNANS (chrec).
24611
24612 PR middle-end/89015
24613 * tree-nested.c (convert_nonlocal_reference_stmt,
24614 convert_local_reference_stmt, convert_tramp_reference_stmt,
24615 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24616 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24617 or GIMPLE_OMP_TASK.
24618
24619 PR tree-optimization/89027
24620 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24621 for "omp simd array" variables.
24622
24623 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24624
24625 PR target/88469
24626 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24627 force the alignment of m_val.
24628
24629 2019-01-24 Richard Biener <rguenther@suse.de>
24630
24631 PR lto/87187
24632 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24633 When in "legacy" debug mode make sure to reset self-origins.
24634
24635 2019-01-24 Martin Liska <mliska@suse.cz>
24636
24637 PR gcov-profile/88994
24638 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24639 result will be always smaller or equal to the original.
24640 * gcov.c (mangle_name): Fix else branch where we should
24641 also copy to PTR and shift the pointer.
24642
24643 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24644
24645 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24646 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24647
24648 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24649
24650 * common/config/i386/i386-common.c
24651 (OPTION_MASK_ISA_ENQCMD_SET,
24652 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24653 (ix86_handle_option): Handle -menqcmd.
24654 * config.gcc (enqcmdintrin.h): New header file.
24655 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24656 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24657 -menqcmd.
24658 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24659 function type.
24660 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24661 __builtin_ia32_enqcmds): New builtins.
24662 * config/i386/i386-c.c (__ENQCMD__): New macro.
24663 * config/i386/i386-option.c (ix86_target_string): Add
24664 -menqcmd.
24665 (ix86_valid_target_attribute_inner_p): Likewise.
24666 * config/i386/i386-expand.c
24667 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24668 IX86_BUILTIN_ENQCMDS.
24669 * config/i386/i386.h (TARGET_ENQCMD): New.
24670 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24671 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24672 (movdir64b_<mode>): Parameterize to enable share expansion code
24673 with ENQCMD in function ix86_expand_builtin.
24674 * config/i386/i386.opt: Add -menqcmd.
24675 * config/i386/immintrin.h: Include enqcmdintrin.h.
24676 * config/i386/enqcmdintrin.h: New intrinsic file.
24677 * doc/invoke.texi: Add -menqcmd.
24678
24679 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24680 Steve Ellcey <sellcey@marvell.com>
24681
24682 PR target/85711
24683 * recog.c (address_operand): Return false on wrong mode for address.
24684 (constrain_operands): Check for mode with 'p' constraint.
24685
24686 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24687
24688 PR target/88998
24689 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24690 Disparage MMX alternative.
24691 (sse2_cvtpd2pi): Ditto.
24692 (sse2_cvttpd2pi): Ditto.
24693
24694 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24695
24696 PR driver/89014
24697 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24698 use-after-free of the result of
24699 aarch64_get_extension_string_for_isa_flags.
24700
24701 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24702
24703 PR c/44715
24704 * doc/extend.texi: Document break and continue behavior in
24705 statement expressions.
24706
24707 2019-01-23 Richard Biener <rguenther@suse.de>
24708
24709 PR tree-optimization/89008
24710 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24711 not leave another stray operand.
24712
24713 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24714
24715 * BASE-VER: Bump to 9.0.1.
24716
24717 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24718
24719 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24720 thunk that returns by reference, use the type of the return object
24721 of the thunk instead of that of the alias to build the dereference.
24722
24723 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24724
24725 * config/arc/atomic.md: Add operand to DMB instruction.
24726
24727 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24728
24729 PR tree-optimization/88964
24730 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24731 build_zero_cst instead of build_int_cst. Return false for loop
24732 invariants which honor signed zeros.
24733
24734 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24735
24736 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24737
24738 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24739
24740 PR target/88965
24741 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24742 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24743 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24744
24745 PR middle-end/88968
24746 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24747 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24748
24749 PR target/87064
24750 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24751 Disable for little endian.
24752
24753 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24754
24755 PR target/88469
24756 * config/arm/arm.c (arm_needs_double_word_align): Check
24757 DECL_BIT_FIELD_TYPE.
24758
24759 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24760 H.J. Lu <hongjiu.lu@intel.com>
24761
24762 PR target/88909
24763 * config/i386/i386-builtin.def: Add mask2 to all builtin
24764 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24765 SPECIAL_ARGS.
24766 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24767 (BDESC_FIRST): Likewise.
24768 (define_builtin): Add an argument for mask2. Updated to handle
24769 both ix86_isa_flags and ix86_isa_flags2.
24770 (define_builtin_const): Likewise.
24771 (define_builtin_pure): Likewise.
24772 (define_builtin2): Deleted.
24773 (define_builtin_const2): Likewise.
24774 (builtin_description): Add a member, mask2.
24775 (bdesc_*): Add mask2 to builtin initializations.
24776 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24777 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24778 support.
24779 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24780
24781 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24782
24783 PR target/88954
24784 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24785 noplt attribute.
24786
24787 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24788
24789 PR target/88469
24790 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24791 alignment is dominated by a bitfield with 64-bit aligned base type.
24792 (arm_function_arg): Emit a warning if the alignment has changed since
24793 earlier GCC releases.
24794 (arm_function_arg_boundary): Likewise.
24795 (arm_setup_incoming_varargs): Likewise.
24796
24797 2019-01-22 Richard Biener <rguenther@suse.de>
24798
24799 PR tree-optimization/88862
24800 * graphite-scop-detection.c
24801 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24802
24803 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24804
24805 * doc/extend.tex (AMD GCN Function Attributes): New section.
24806 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24807 * doc/invoke.texi (AMD GCN Options): New section.
24808 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24809
24810 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24811
24812 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24813 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24814
24815 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24816
24817 PR tree-optimization/88044
24818 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24819 is false in the first iteration, but !every_iteration, return false
24820 instead of true with niter->niter zero.
24821
24822 PR rtl-optimization/88904
24823 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24824 any nonequal registers before processing BB_END (b).
24825
24826 PR target/88905
24827 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24828 GET_MODE (op0).
24829 (expand_binop_directly, expand_doubleword_clz,
24830 expand_doubleword_popcount, expand_ctz, expand_ffs,
24831 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24832
24833 PR rtl-optimization/49429
24834 PR target/49454
24835 PR rtl-optimization/86334
24836 PR target/88906
24837 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24838 addressable from here...
24839 (emit_block_op_via_libcall): ... to here.
24840
24841 2019-01-22 Richard Biener <rguenther@suse.de>
24842
24843 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24844 auto_vec for cost vector to fix memleak.
24845 (vectorize_fold_left_reduction): Properly gather SLP defs.
24846 (vectorizable_comparison): Do not swap operands to properly
24847 gather SLP defs.
24848
24849 2019-01-22 Alan Modra <amodra@gmail.com>
24850
24851 PR target/88614
24852 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24853 stays a reg. Allow a const_int.
24854 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24855 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24856 (IS_NOMARK_TLSGETADDR): Define.
24857 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24858 (rs6000_output_tlsargs): New function.
24859 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24860 __tls_get_addr call takes an arg.
24861 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24862 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24863 delete split..
24864 (call_value_nonlocal_sysv): ..or here, delete split.
24865 (tls_gdld_nomark): Delete.
24866 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24867 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24868 (call_value_nonlocal_sysv): Likewise.
24869 (call_value_nonlocal_sysv_secure): Likewise.
24870 (call_value_nonlocal_aix): Likewise.
24871 (call_value_indirect_aix): Likewise.
24872 (call_value_indirect_elfv2): Likewise.
24873 (call_value_local32, call_value_local64): Disable for no-mark tls.
24874 (call_value_local_aix): Likewise.
24875
24876 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24877
24878 PR target/88938
24879 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24880 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24881
24882 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24883
24884 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24885 string contents as hash_map keys.
24886
24887 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24888
24889 PR c/88928
24890 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24891 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24892 instead of TYPE_ALIGN.
24893 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24894 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24895 pointer from TYPE_STUB_DECL.
24896
24897 2019-01-21 Richard Biener <rguenther@suse.de>
24898
24899 PR tree-optimization/88934
24900 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24901 at the possibly non-constant operand.
24902 (vect_get_constant_vectors): Adjust.
24903
24904 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24905
24906 PR target/71659
24907 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24908 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24909 instead of _X86INTRIN_H_INCLUDED.
24910 * onfig/i386/clwbintrin.h: Likewise.
24911 * config/i386/pkuintrin.h: Likewise.
24912 * config/i386/prfchwintrin.h: Likewise.
24913 * config/i386/rdseedintrin.h: Likewise.
24914 * config/i386/wbnoinvdintrin.h: Likewise.
24915 * config/i386/xsavecintrin.h: Likewise.
24916 * config/i386/xsavesintrin.h: Likewise.
24917 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24918 * config/i386/xsaveintrin.h: Likewise.
24919 * config/i386/xsaveoptintrin.h: Likewise.
24920 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24921 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24922 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24923 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24924 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24925 * config/i386/immintrin.h: Here.
24926
24927 2019-01-20 Martin Jambor <mjambor@suse.cz>
24928
24929 PR ipa/87615
24930 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24931 with aa_walk_budget.
24932 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24933 aa_walk_budget_p parameter.
24934 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24935 walk. Updated all callers.
24936 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24937 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24938 unmodified_parm.
24939 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24940 parameter info. Extract info from fbi. Pass fbi to recursive calls
24941 and to unmodified_parm.
24942 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24943 info, updated call to will_be_nonconstant_expr_predicate.
24944 (param_change_prob): New parameter fbi, limit AA walking.
24945 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24946 calls to various above functions.
24947 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24948 parameter. Use it to limit AA walking.
24949 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24950 fbi, limit AA walk.
24951 (detect_type_change): New parameter fbi, pass it on to
24952 detect_type_change_from_memory_writes.
24953 (detect_type_change_ssa): Likewise.
24954 (aa_overwalked): Removed.
24955 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24956 accordingly, adjust to the neew AA limiting scheme.
24957 (parm_ref_data_preserved_p): Likewise.
24958 (ipa_compute_jump_functions_for_edge): Adjust call to
24959 get_dynamic_type.
24960 (ipa_analyze_call_uses): Likewise.
24961 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24962 (ipa_analyze_node): Initialize aa_walk_budget.
24963 (ipcp_transform_function): Likewise.
24964 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24965 to get_dynamic_type.
24966
24967 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24968
24969 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24970 outside of #if CHECKING_P code.
24971
24972 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24973
24974 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24975 New function, split out from...
24976 (loop_versioning::analyze_stride): ...here.
24977 (loop_versioning::find_per_loop_multiplication): Use gassign.
24978 (loop_versioning::analyze_term_using_scevs): Return a success code.
24979 (loop_versioning::analyze_arbitrary_term): New function.
24980 (loop_versioning::analyze_address_fragment): Use
24981 analyze_arbitrary_term if all else fails.
24982
24983 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24984
24985 PR target/88892
24986 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24987 operands.
24988
24989 2019-01-18 Richard Biener <rguenther@suse.de>
24990
24991 PR tree-optimization/88903
24992 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24993 scalar stmts a SLP shift amount is composed of when detecting
24994 shifts by scalars.
24995
24996 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24997
24998 PR target/88799
24999 * config/arm/arm-cpus.in (mp): New feature.
25000 (sec): New feature.
25001 (fgroup ARMv7ve): Add mp and sec features.
25002 (arch armv7-a): Add options to allow mp and sec extensions.
25003 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25004 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25005 extenstions to the base architecture.
25006 (cpu cortex-a8): Add sec extension to the base architecture.
25007 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25008 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25009 variants down to the base v7-a varaint.
25010 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25011 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25012 of permitted extensions for -march=armv7-a and for
25013 -mcpu=generic-armv7-a.
25014
25015 2019-01-18 Martin Liska <mliska@suse.cz>
25016
25017 * params.def: Fix comment.
25018 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25019 name.
25020 (gimple_gen_ic_func_profiler): Likewise.
25021
25022 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25023
25024 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25025 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25026 and put in error checks for stack protector guard options.
25027 (aarch64_stack_protect_guard): New.
25028 (TARGET_STACK_PROTECT_GUARD): Define.
25029 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25030 (reg_stack_protect_address<mode>): New.
25031 (stack_protect_set): Adjust for SSP_GLOBAL.
25032 (stack_protect_test): Likewise.
25033 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25034 (-mstack-protector-guard): Likewise.
25035 (-mstack-protector-guard-offset): Likewise.
25036
25037 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25038
25039 PR tree-optimization/86214
25040 * tree-inline.h (struct copy_body_data): Add
25041 add_clobbers_to_eh_landing_pads member.
25042 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25043 (copy_edges_for_bb): Call it if EH edge destination is <
25044 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25045 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25046 if flag_stack_reuse != SR_NONE and clear it afterwards.
25047
25048 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25049
25050 PR target/85596
25051 * doc/install.texi (with-multilib-list): Document for aarch64.
25052
25053 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25054
25055 PR target/88734
25056 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25057 (("..."))) with ("...").
25058
25059 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25060
25061 * doc/extend.texi (Built-in Functions for Memory Model Aware
25062 Atomic Operations): Document atomic fetch and nand.
25063
25064 2019-01-18 Martin Liska <mliska@suse.cz>
25065 Richard Biener <rguenther@suse.de>
25066
25067 PR middle-end/88587
25068 * cgraph.h (create_version_clone_with_body): Add new argument
25069 with attributes.
25070 * cgraphclones.c (cgraph_node::create_version_clone): Add
25071 DECL_ATTRIBUTES to a newly created decl. And call
25072 valid_attribute_p so that proper cl_target_optimization_node
25073 is set for the newly created declaration.
25074 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25075 for declaration.
25076 (expand_target_clones): Do not call valid_attribute_p, it must
25077 be already done.
25078 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25079 vector types.
25080
25081 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25082
25083 PR target/88734
25084 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25085 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25086 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25087
25088 2019-01-17 Martin Sebor <msebor@redhat.com>
25089
25090 PR middle-end/88273
25091 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25092 Handle anti-ranges the same as no range at all.
25093
25094 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25095
25096 * config/aarch64/aarch64.c (cgraph.h): New include.
25097 (intl.h): New include.
25098 (supported_simd_type): New function.
25099 (currently_supported_simd_type): Ditto.
25100 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25101 (aarch64_simd_clone_adjust): Ditto.
25102 (aarch64_simd_clone_usable): Ditto.
25103 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25104 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25105 (TARGET_SIMD_CLONE_USABLE): Ditto.
25106 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25107 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25108 call.
25109
25110 2019-01-17 Martin Sebor <msebor@redhat.com>
25111
25112 PR tree-optimization/88800
25113 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25114 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25115 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25116 redundant argument. Add new argument and issue diagnostics under
25117 its control. Detect out-of-bounds access even with warnings
25118 disabled.
25119 (check_bounds_or_overlap): Change return type. Add argument.
25120 (wrestrict_dom_walker::check_call): Adjust.
25121 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25122 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25123 check_bounds_or_overlap's return value.
25124 (handle_builtin_stxncpy): Same.
25125 (handle_builtin_strcat): Same.
25126
25127 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25128 Kwok Cheung Yeung <kcy@codesourcery.com>
25129 Julian Brown <julian@codesourcery.com>
25130 Tom de Vries <tom@codesourcery.com>
25131
25132 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25133
25134 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25135
25136 * doc/sourcebuild.texi: Document dg-require-effective-target
25137 llvm_binutils and offload_gcn.
25138
25139 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25140 Kwok Cheung Yeung <kcy@codesourcery.com>
25141 Julian Brown <julian@codesourcery.com>
25142 Tom de Vries <tom@codesourcery.com>
25143
25144 * doc/sourcebuild.texi: Document dg-required-effective-target
25145 exceptions.
25146
25147 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25148 Kwok Cheung Yeung <kcy@codesourcery.com>
25149 Julian Brown <julian@codesourcery.com>
25150 Tom de Vries <tom@codesourcery.com>
25151 Jan Hubicka <hubicka@ucw.cz>
25152 Martin Jambor <mjambor@suse.cz>
25153
25154 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25155 * configure.ac: Check for dlopen.
25156 * configure: Regenerate.
25157
25158 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25159 Kwok Cheung Yeung <kcy@codesourcery.com>
25160 Julian Brown <julian@codesourcery.com>
25161 Tom de Vries <tom@codesourcery.com>
25162 Jan Hubicka <hubicka@ucw.cz>
25163 Martin Jambor <mjambor@suse.cz>
25164
25165 * common/config/gcn/gcn-common.c: New file.
25166 * config/gcn/driver-gcn.c: New file.
25167 * config/gcn/gcn-builtins.def: New file.
25168 * config/gcn/gcn-hsa.h: New file.
25169 * config/gcn/gcn-modes.def: New file.
25170 * config/gcn/gcn-opts.h: New file.
25171 * config/gcn/gcn-passes.def: New file.
25172 * config/gcn/gcn-protos.h: New file.
25173 * config/gcn/gcn-run.c: New file.
25174 * config/gcn/gcn-tree.c: New file.
25175 * config/gcn/gcn.c: New file.
25176 * config/gcn/gcn.h: New file.
25177 * config/gcn/gcn.opt: New file.
25178 * config/gcn/t-gcn-hsa: New file.
25179
25180 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25181 Kwok Cheung Yeung <kcy@codesourcery.com>
25182 Julian Brown <julian@codesourcery.com>
25183 Tom de Vries <tom@codesourcery.com>
25184 Jan Hubicka <hubicka@ucw.cz>
25185 Martin Jambor <mjambor@suse.cz>
25186
25187 * config/gcn/constraints.md: New file.
25188 * config/gcn/gcn-valu.md: New file.
25189 * config/gcn/gcn.md: New file.
25190 * config/gcn/predicates.md: New file.
25191
25192 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25193
25194 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25195 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25196 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25197 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25198
25199 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25200
25201 PR target/88851
25202 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25203 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25204 it and document registers.
25205
25206 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25207
25208 * config/aarch64/aarch64.c (ares_tunings): Define.
25209 * config/aarch64/aarch64-cores.def (ares): Use the above.
25210
25211 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25212
25213 PR target/88794
25214 Revert:
25215 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25216
25217 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25218 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25219 (_mm512_maskz_fixupimm_round_pd): Ditto.
25220 (_mm512_fixupimm_round_ps): Ditto.
25221 (_mm512_maskz_fixupimm_round_ps): Ditto.
25222 (_mm_fixupimm_round_sd): Ditto.
25223 (_mm_maskz_fixupimm_round_sd): Ditto.
25224 (_mm_fixupimm_round_ss): Ditto.
25225 (_mm_maskz_fixupimm_round_ss): Ditto.
25226 (_mm512_fixupimm_pd): Ditto.
25227 (_mm512_maskz_fixupimm_pd): Ditto.
25228 (_mm512_fixupimm_ps): Ditto.
25229 (_mm512_maskz_fixupimm_ps): Ditto.
25230 (_mm_fixupimm_sd): Ditto.
25231 (_mm_maskz_fixupimm_sd): Ditto.
25232 (_mm_fixupimm_ss): Ditto.
25233 (_mm_maskz_fixupimm_ss): Ditto.
25234 (_mm512_mask_fixupimm_round_pd): Update builtin.
25235 (_mm512_mask_fixupimm_round_ps): Ditto.
25236 (_mm_mask_fixupimm_round_sd): Ditto.
25237 (_mm_mask_fixupimm_round_ss): Ditto.
25238 (_mm512_mask_fixupimm_pd): Ditto.
25239 (_mm512_mask_fixupimm_ps): Ditto.
25240 (_mm_mask_fixupimm_sd): Ditto.
25241 (_mm_mask_fixupimm_ss): Ditto.
25242 * config/i386/avx512vlintrin.h:
25243 (_mm256_fixupimm_pd): Update parameters and builtin.
25244 (_mm256_maskz_fixupimm_pd): Ditto.
25245 (_mm256_fixupimm_ps): Ditto.
25246 (_mm256_maskz_fixupimm_ps): Ditto.
25247 (_mm_fixupimm_pd): Ditto.
25248 (_mm_maskz_fixupimm_pd): Ditto.
25249 (_mm_fixupimm_ps): Ditto.
25250 (_mm_maskz_fixupimm_ps): Ditto.
25251 (_mm256_mask_fixupimm_pd): Update builtin.
25252 (_mm256_mask_fixupimm_ps): Ditto.
25253 (_mm_mask_fixupimm_pd): Ditto.
25254 (_mm_mask_fixupimm_ps): Ditto.
25255 * config/i386/i386-builtin-types.def: Add new types and remove
25256 useless ones.
25257 * config/i386/i386-builtin.def: Update builtin definitions.
25258 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25259 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25260 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25261 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25262 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25263 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25264 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25265 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25266 * config/i386/subst.md:
25267 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25268 (round_saeonly_sd_mask_op4): Ditto.
25269 (round_saeonly_expand_operand5): Ditto.
25270 (round_saeonly_expand): Update.
25271
25272 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25273
25274 PR target/88794
25275 Revert:
25276 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25277
25278 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25279 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25280 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25281 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25282 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25283 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25284 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25285
25286 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25287
25288 PR target/88794
25289 Revert:
25290 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25291
25292 PR target/88489
25293 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25294 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25295 instead of UNSPEC_FIXUPIMM.
25296
25297 2019-01-17 Richard Biener <rguenther@suse.de>
25298
25299 PR lto/86736
25300 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25301 and friends for the LTO part of debug info.
25302
25303 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25304
25305 PR tree-optimization/86214
25306 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25307 if x == y.
25308
25309 PR rtl-optimization/88870
25310 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25311 throw if we can't alter the cfg or delete dead exceptions.
25312 (mark_insn): Don't call find_call_stack_args for such calls.
25313
25314 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25315
25316 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25317 prototypes for vec_st.
25318 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25319 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25320 mainly on signed/unsigned long long and double.
25321
25322 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25323
25324 PR target/88861
25325 * combine.c (delete_noop_moves): Convert to "bool" return,
25326 returning true if any edges are eliminated.
25327 (combine_instructions): Also return true if delete_noop_moves
25328 returns true.
25329
25330 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25331
25332 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25333 correct max nunits for endian swap.
25334 (aarch64_expand_fcmla_builtin): Correct subreg code.
25335 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25336 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25337 lane endianness.
25338
25339 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25340
25341 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25342 Handle split indirect COMPLEX_TYPE arguments.
25343
25344 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25345
25346 PR target/86891
25347 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25348 bit is set by add and compare.
25349 (CC_ADC): New CC_MODE.
25350 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25351 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25352 comparison. Add detection for CC_ADCmode.
25353 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25354 CC_ADCmode.
25355 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25356 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25357 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25358 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25359 to eliminate the need for zero-extending the operands.
25360 (add<mode>3_compareC_imm): Delete. Merge into ...
25361 (add<mode>3_compareC): ... this. Restructure the comparison to
25362 eliminate the need for zero-extending the operands.
25363 (add<mode>3_carryin): Use LTU for the overflow detection.
25364 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25365 Reexpress comparison for overflow.
25366 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25367 (add<mode>3_carryinC): Likewise.
25368 (add<mode>3_carryinV): Use LTU for carry between partials.
25369 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25370 handling of CC_Cmode and add CC_ADCmode.
25371 (aarch64_borrow_operation): Likewise.
25372
25373 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25374
25375 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25376 Remove patternmode.
25377 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25378 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25379 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25380 Remove endianness conversion.
25381
25382 2019-01-16 Martin Liska <mliska@suse.cz>
25383
25384 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25385 for GCC driver.
25386 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25387 a new argument.
25388 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25389 (path_prefix_reset): Move up in the source file.
25390 (find_fortran_preinclude_file): Make complex search for the
25391 fortran header files.
25392
25393 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25394
25395 * godump.c (go_output_typedef): When outputting a typedef, refer
25396 to the underlying type by its name and not its structure.
25397
25398 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25399
25400 PR c++/88795
25401 * tree.c (build_function_type): Assert that arg_types is not
25402 error_mark_node.
25403
25404 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25405
25406 PR inline-asm/52813
25407 * doc/extend.texi: Document that listing the stack pointer in the
25408 clobber list of an asm is a deprecated feature.
25409 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25410 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25411 warning instead of an error for clobbers of the stack pointer.
25412 Add a note explaining why.
25413
25414 2019-01-15 Richard Biener <rguenther@suse.de>
25415
25416 PR debug/88046
25417 * dwarf2out.c (gen_member_die): Do not generate inheritance
25418 DIEs late.
25419
25420 2019-01-15 Richard Biener <rguenther@suse.de>
25421
25422 PR tree-optimization/88855
25423 * tree-if-conv.c (combine_blocks): Collect
25424 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25425
25426 2019-01-15 Tom de Vries <tdevries@suse.de>
25427
25428 PR target/80547
25429 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25430 lhs == NULL_TREE for gang-level reduction.
25431
25432 2019-01-15 Richard Biener <rguenther@suse.de>
25433 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25434
25435 PR ipa/88788
25436 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25437 return true if SSA_NAME is already marked in visited bitmap.
25438 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25439
25440 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25441
25442 PR tree-optimization/88775
25443 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25444 equal == 0 equality pointer comparisons some more if compared in
25445 integral types and either one points to an automatic var and the
25446 other to a global, or we can prove at least one points to the middle
25447 or both point to start or both point to end.
25448
25449 2019-01-14 Andi Kleen <ak@linux.intel.com>
25450
25451 * Makefile.in: Lower autofdo sampling rate by 10x.
25452 * Makefile.tpl: Dito.
25453
25454 2019-01-14 Tom Honermann <tom@honermann.net>
25455
25456 * defaults.h: Define CHAR8_TYPE.
25457
25458 2019-01-14 Martin Sebor <msebor@redhat.com>
25459
25460 PR target/88638
25461 * doc/extend.texi (Darwin Format Checks): Clarify.
25462
25463 2019-01-14 Richard Biener <rguenther@suse.de>
25464
25465 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25466 whether we are in (simplify ...) or (match ...) context.
25467
25468 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25469
25470 PR rtl-optimization/88796
25471 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25472 * cfgexpand.c (stack_protect_prologue): Initialize
25473 crtl->stack_protect_guard_decl.
25474 * function.c (stack_protect_epilogue): Use it instead of calling
25475 targetm.stack_protect_guard again.
25476 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25477 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25478 crtl->stack_protect_guard_decl.
25479 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25480 on the returned MEM_EXPR.
25481
25482 2019-01-12 Tom de Vries <tdevries@suse.de>
25483
25484 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25485 vector length using -fopenacc-dim.
25486
25487 2019-01-12 Tom de Vries <tdevries@suse.de>
25488
25489 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25490 lengths into account.
25491
25492 2019-01-12 Svante Signell <svante.signell@gmail.com>
25493
25494 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25495 (TARGET_CAN_SPLIT_STACK): Define.
25496 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25497
25498 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25499
25500 * params.def (inline-unit-growth): Set to 40.
25501
25502 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25503
25504 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25505
25506 2019-01-12 Tom de Vries <tdevries@suse.de>
25507
25508 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25509 region calling vector-partitionable routine, set default_vector_length
25510 to WARP_SIZE.
25511
25512 2019-01-12 Tom de Vries <tdevries@suse.de>
25513
25514 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25515 variable default_vector_length.
25516
25517 2019-01-12 Tom de Vries <tdevries@suse.de>
25518
25519 PR middle-end/88703
25520 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25521 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25522 dimensions limits.
25523
25524 2019-01-12 Tom de Vries <tdevries@suse.de>
25525
25526 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25527 (nvptx_goacc_validate_dims): Add used parameter.
25528 * doc/tm.texi: Regenerate.
25529 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25530 argument to call to targetm.goacc.validate_dims.
25531 (default_goacc_validate_dims): Add used
25532 parameter.
25533 * target.def (validate_dims): Add used parameter in DEFHOOK.
25534 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25535
25536 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25537
25538 PR middle-end/85956
25539 PR lto/88733
25540 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25541 field.
25542 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25543 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25544 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25545 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25546
25547 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25548
25549 PR rtl-optimization/87305
25550 * lra-assigns.c
25551 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25552 for little endian pseudos used as paradoxical subreg.
25553
25554 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25555
25556 PR tree-optimization/88693
25557 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25558 for STRING_CSTs that don't contain any NUL characters in the first
25559 TREE_STRING_LENGTH bytes.
25560
25561 2019-01-11 Alan Modra <amodra@gmail.com>
25562
25563 PR 88777
25564 PR 88614
25565 * genattrtab.c (min_fn): Don't translate values.
25566 (min_attr_value): Return INT_MAX when the value can't be calculated.
25567 Return minimum among any values that can be calculated.
25568 (max_attr_value): Adjust.
25569
25570 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25571
25572 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25573
25574 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25575
25576 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25577 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25578 (aarch64_return_call_with_max_clobbers): New function.
25579 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25580 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25581 argument.
25582 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25583 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25584 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25585 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25586 * cselib.c (cselib_process_insn): Add argument to
25587 targetm.hard_regno_call_part_clobbered call.
25588 * ira-conflicts.c (ira_build_conflicts): Ditto.
25589 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25590 * lra-constraints.c (inherit_reload_reg): Ditto.
25591 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25592 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25593 argument. Call targetm.return_call_with_max_clobbers.
25594 Add argument to targetm.hard_regno_call_part_clobbered call.
25595 (calls_have_same_clobbers_p): New function.
25596 (process_bb_lives): Add call_insn and last_call_insn variables.
25597 Pass call_insn to check_pseudos_live_through_calls.
25598 Modify if stmt to check targetm.return_call_with_max_clobbers.
25599 Update setting of flush variable.
25600 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25601 to false.
25602 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25603 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25604 targetm.hard_regno_call_part_clobbered call.
25605 * reginfo.c (choose_hard_reg_mode): Ditto.
25606 * regrename.c (check_new_reg_p): Ditto.
25607 * reload.c (find_equiv_reg): Ditto.
25608 * reload1.c (emit_reload_insns): Ditto.
25609 * sched-deps.c (deps_analyze_insn): Ditto.
25610 * sel-sched.c (init_regs_for_mode): Ditto.
25611 (mark_unavailable_hard_regs): Ditto.
25612 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25613 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25614 (return_call_with_max_clobbers): New target function.
25615 * doc/tm.texi: Regenerate.
25616 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25617 * hooks.c (hook_bool_uint_mode_false): Change to
25618 hook_bool_insn_uint_mode_false.
25619 * hooks.h (hook_bool_uint_mode_false): Ditto.
25620
25621 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25622
25623 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25624 (aarch64_remove_extra_call_preserved_regs): New function.
25625 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25626 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25627 * doc/tm.texi: Regenerate.
25628 * final.c (get_call_reg_set_usage): Call new hook.
25629 * target.def (remove_extra_call_preserved_regs): New hook.
25630 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25631 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25632
25633 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25634
25635 PR bootstrap/88714
25636 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25637 inside of pass_combine_1 dump rather than pass_profile_1.
25638
25639 2019-01-11 Tom de Vries <tdevries@suse.de>
25640
25641 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25642 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25643 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25644 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25645 num_workers 16.
25646
25647 2019-01-11 Tom de Vries <tdevries@suse.de>
25648
25649 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25650
25651 2019-01-11 Jan Beulich <jbeulich@suse.com>
25652
25653 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25654 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25655 sse2_cvtsi2sd): Add {l}.
25656 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25657 syntax.
25658
25659 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25660
25661 PR target/88785
25662 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25663 define_expand.
25664 (*float<floatunssuffix>v2div2sf2): New define_insn.
25665 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25666 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25667 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25668 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25669 match_operands with "const0_operand" "C".
25670
25671 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25672
25673 * config/aarch64/aarch64-builtins.c
25674 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25675 (aarch64_init_simd_builtins): ...Here
25676
25677 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25678
25679 PR rtl-optimization/87305
25680 * lra-assigns.c
25681 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25682 allocation for big endian pseudos used as paradoxical subregs and
25683 spill them if it is wrong.
25684 * lra-constraints.c (lra_constraints): Add a comment.
25685
25686 2019-01-10 Richard Biener <rguenther@suse.de>
25687
25688 PR tree-optimization/88792
25689 * tree-ssa-pre.c (get_representative_for): Do not return a
25690 value-number here.
25691
25692 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25693
25694 PR middle-end/84877
25695 PR bootstrap/88450
25696 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25697 (assign_parm_setup_block): Do the argument slot realignment here
25698 instead.
25699
25700 2019-01-10 Stefan Agner <stefan@agner.ch>
25701
25702 PR target/88648
25703 * config/arm/arm.c (arm_option_override_internal): Force
25704 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25705
25706 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25707
25708 PR c/88568
25709 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25710 DECL_EXTERNAL.
25711
25712 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25713
25714 * config/arm/arm-builtins.c
25715 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25716 (MAC_LANE_PAIR_QUALIFIERS): New.
25717 (arm_expand_builtin_args): Use it.
25718 (arm_expand_builtin_1): Likewise.
25719 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25720 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25721 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25722 * config/arm/arm_neon.h:
25723 (vcadd_rot90_f16): New.
25724 (vcaddq_rot90_f16): New.
25725 (vcadd_rot270_f16): New.
25726 (vcaddq_rot270_f16): New.
25727 (vcmla_f16): New.
25728 (vcmlaq_f16): New.
25729 (vcmla_lane_f16): New.
25730 (vcmla_laneq_f16): New.
25731 (vcmlaq_lane_f16): New.
25732 (vcmlaq_laneq_f16): New.
25733 (vcmla_rot90_f16): New.
25734 (vcmlaq_rot90_f16): New.
25735 (vcmla_rot90_lane_f16): New.
25736 (vcmla_rot90_laneq_f16): New.
25737 (vcmlaq_rot90_lane_f16): New.
25738 (vcmlaq_rot90_laneq_f16): New.
25739 (vcmla_rot180_f16): New.
25740 (vcmlaq_rot180_f16): New.
25741 (vcmla_rot180_lane_f16): New.
25742 (vcmla_rot180_laneq_f16): New.
25743 (vcmlaq_rot180_lane_f16): New.
25744 (vcmlaq_rot180_laneq_f16): New.
25745 (vcmla_rot270_f16): New.
25746 (vcmlaq_rot270_f16): New.
25747 (vcmla_rot270_lane_f16): New.
25748 (vcmla_rot270_laneq_f16): New.
25749 (vcmlaq_rot270_lane_f16): New.
25750 (vcmlaq_rot270_laneq_f16): New.
25751 (vcadd_rot90_f32): New.
25752 (vcaddq_rot90_f32): New.
25753 (vcadd_rot270_f32): New.
25754 (vcaddq_rot270_f32): New.
25755 (vcmla_f32): New.
25756 (vcmlaq_f32): New.
25757 (vcmla_lane_f32): New.
25758 (vcmla_laneq_f32): New.
25759 (vcmlaq_lane_f32): New.
25760 (vcmlaq_laneq_f32): New.
25761 (vcmla_rot90_f32): New.
25762 (vcmlaq_rot90_f32): New.
25763 (vcmla_rot90_lane_f32): New.
25764 (vcmla_rot90_laneq_f32): New.
25765 (vcmlaq_rot90_lane_f32): New.
25766 (vcmlaq_rot90_laneq_f32): New.
25767 (vcmla_rot180_f32): New.
25768 (vcmlaq_rot180_f32): New.
25769 (vcmla_rot180_lane_f32): New.
25770 (vcmla_rot180_laneq_f32): New.
25771 (vcmlaq_rot180_lane_f32): New.
25772 (vcmlaq_rot180_laneq_f32): New.
25773 (vcmla_rot270_f32): New.
25774 (vcmlaq_rot270_f32): New.
25775 (vcmla_rot270_lane_f32): New.
25776 (vcmla_rot270_laneq_f32): New.
25777 (vcmlaq_rot270_lane_f32): New.
25778 (vcmlaq_rot270_laneq_f32): New.
25779 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25780 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25781 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25782 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25783 vcmlaq_lane270): New.
25784 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25785 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25786 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25787 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25788 (arm_option_reconfigure_globals): Use them.
25789 * config/arm/iterators.md (VDF, VQ_HSF): New.
25790 (VCADD, VCMLA): New.
25791 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25792 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25793 New.
25794 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25795 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25796
25797 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25798
25799 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25800 Add qualifier_lane_pair_index.
25801 (emit-rtl.h): Include.
25802 (TYPES_QUADOP_LANE_PAIR): New.
25803 (aarch64_simd_expand_args): Use it.
25804 (aarch64_simd_expand_builtin): Likewise.
25805 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25806 New.
25807 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25808 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25809 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25810 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25811 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25812 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25813 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25814 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25815 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25816 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25817 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25818 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25819 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25820 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25821 Add __ARM_FEATURE_COMPLEX.
25822 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25823 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25824 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25825 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25826 fcmlaq_lane270): New.
25827 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25828 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25829 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25830 * config/aarch64/arm_neon.h:
25831 (vcadd_rot90_f16): New.
25832 (vcaddq_rot90_f16): New.
25833 (vcadd_rot270_f16): New.
25834 (vcaddq_rot270_f16): New.
25835 (vcmla_f16): New.
25836 (vcmlaq_f16): New.
25837 (vcmla_lane_f16): New.
25838 (vcmla_laneq_f16): New.
25839 (vcmlaq_lane_f16): New.
25840 (vcmlaq_rot90_lane_f16): New.
25841 (vcmla_rot90_laneq_f16): New.
25842 (vcmla_rot90_lane_f16): New.
25843 (vcmlaq_rot90_f16): New.
25844 (vcmla_rot90_f16): New.
25845 (vcmlaq_laneq_f16): New.
25846 (vcmla_rot180_laneq_f16): New.
25847 (vcmla_rot180_lane_f16): New.
25848 (vcmlaq_rot180_f16): New.
25849 (vcmla_rot180_f16): New.
25850 (vcmlaq_rot90_laneq_f16): New.
25851 (vcmlaq_rot270_laneq_f16): New.
25852 (vcmlaq_rot270_lane_f16): New.
25853 (vcmla_rot270_laneq_f16): New.
25854 (vcmlaq_rot270_f16): New.
25855 (vcmla_rot270_f16): New.
25856 (vcmlaq_rot180_laneq_f16): New.
25857 (vcmlaq_rot180_lane_f16): New.
25858 (vcmla_rot270_lane_f16): New.
25859 (vcadd_rot90_f32): New.
25860 (vcaddq_rot90_f32): New.
25861 (vcaddq_rot90_f64): New.
25862 (vcadd_rot270_f32): New.
25863 (vcaddq_rot270_f32): New.
25864 (vcaddq_rot270_f64): New.
25865 (vcmla_f32): New.
25866 (vcmlaq_f32): New.
25867 (vcmlaq_f64): New.
25868 (vcmla_lane_f32): New.
25869 (vcmla_laneq_f32): New.
25870 (vcmlaq_lane_f32): New.
25871 (vcmlaq_laneq_f32): New.
25872 (vcmla_rot90_f32): New.
25873 (vcmlaq_rot90_f32): New.
25874 (vcmlaq_rot90_f64): New.
25875 (vcmla_rot90_lane_f32): New.
25876 (vcmla_rot90_laneq_f32): New.
25877 (vcmlaq_rot90_lane_f32): New.
25878 (vcmlaq_rot90_laneq_f32): New.
25879 (vcmla_rot180_f32): New.
25880 (vcmlaq_rot180_f32): New.
25881 (vcmlaq_rot180_f64): New.
25882 (vcmla_rot180_lane_f32): New.
25883 (vcmla_rot180_laneq_f32): New.
25884 (vcmlaq_rot180_lane_f32): New.
25885 (vcmlaq_rot180_laneq_f32): New.
25886 (vcmla_rot270_f32): New.
25887 (vcmlaq_rot270_f32): New.
25888 (vcmlaq_rot270_f64): New.
25889 (vcmla_rot270_lane_f32): New.
25890 (vcmla_rot270_laneq_f32): New.
25891 (vcmlaq_rot270_lane_f32): New.
25892 (vcmlaq_rot270_laneq_f32): New.
25893 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25894 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25895 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25896 (FCADD, FCMLA): New.
25897 (rot): New.
25898 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25899
25900 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25901
25902 PR other/16615
25903
25904 * config/pa/pa.c: Change "can not" to "cannot".
25905 * gimple-ssa-evrp-analyze.c: Likewise.
25906 * ipa-icf.c: Likewise.
25907 * ipa-polymorphic-call.c: Likewise.
25908 * ipa-pure-const.c: Likewise.
25909 * lra-constraints.c: Likewise.
25910 * lra-remat.c: Likewise.
25911 * reload1.c: Likewise.
25912 * reorg.c: Likewise.
25913 * tree-ssa-uninit.c: Likewise.
25914
25915 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25916
25917 PR other/16615
25918
25919 * Makefile.in: Mechanically replace "can not" with "cannot".
25920 * alias.c: Likewise.
25921 * builtins.c: Likewise.
25922 * calls.c: Likewise.
25923 * cgraph.c: Likewise.
25924 * cgraph.h: Likewise.
25925 * cgraphclones.c: Likewise.
25926 * cgraphunit.c: Likewise.
25927 * combine-stack-adj.c: Likewise.
25928 * combine.c: Likewise.
25929 * common/config/i386/i386-common.c: Likewise.
25930 * config/aarch64/aarch64.c: Likewise.
25931 * config/alpha/sync.md: Likewise.
25932 * config/arc/arc.c: Likewise.
25933 * config/arc/predicates.md: Likewise.
25934 * config/arm/arm-c.c: Likewise.
25935 * config/arm/arm.c: Likewise.
25936 * config/arm/arm.h: Likewise.
25937 * config/arm/arm.md: Likewise.
25938 * config/arm/cortex-r4f.md: Likewise.
25939 * config/csky/csky.c: Likewise.
25940 * config/csky/csky.h: Likewise.
25941 * config/darwin-f.c: Likewise.
25942 * config/epiphany/epiphany.md: Likewise.
25943 * config/i386/i386.c: Likewise.
25944 * config/i386/sol2.h: Likewise.
25945 * config/m68k/m68k.c: Likewise.
25946 * config/mcore/mcore.h: Likewise.
25947 * config/microblaze/microblaze.md: Likewise.
25948 * config/mips/20kc.md: Likewise.
25949 * config/mips/sb1.md: Likewise.
25950 * config/nds32/nds32.c: Likewise.
25951 * config/nds32/predicates.md: Likewise.
25952 * config/pa/pa.c: Likewise.
25953 * config/rs6000/e300c2c3.md: Likewise.
25954 * config/rs6000/rs6000.c: Likewise.
25955 * config/s390/s390.h: Likewise.
25956 * config/sh/sh.c: Likewise.
25957 * config/sh/sh.md: Likewise.
25958 * config/spu/vmx2spu.h: Likewise.
25959 * cprop.c: Likewise.
25960 * dbxout.c: Likewise.
25961 * df-scan.c: Likewise.
25962 * doc/cfg.texi: Likewise.
25963 * doc/extend.texi: Likewise.
25964 * doc/fragments.texi: Likewise.
25965 * doc/gty.texi: Likewise.
25966 * doc/invoke.texi: Likewise.
25967 * doc/lto.texi: Likewise.
25968 * doc/md.texi: Likewise.
25969 * doc/objc.texi: Likewise.
25970 * doc/rtl.texi: Likewise.
25971 * doc/tm.texi: Likewise.
25972 * dse.c: Likewise.
25973 * emit-rtl.c: Likewise.
25974 * emit-rtl.h: Likewise.
25975 * except.c: Likewise.
25976 * expmed.c: Likewise.
25977 * expr.c: Likewise.
25978 * fold-const.c: Likewise.
25979 * genautomata.c: Likewise.
25980 * gimple-fold.c: Likewise.
25981 * hard-reg-set.h: Likewise.
25982 * ifcvt.c: Likewise.
25983 * ipa-comdats.c: Likewise.
25984 * ipa-cp.c: Likewise.
25985 * ipa-devirt.c: Likewise.
25986 * ipa-fnsummary.c: Likewise.
25987 * ipa-icf.c: Likewise.
25988 * ipa-inline-transform.c: Likewise.
25989 * ipa-inline.c: Likewise.
25990 * ipa-polymorphic-call.c: Likewise.
25991 * ipa-profile.c: Likewise.
25992 * ipa-prop.c: Likewise.
25993 * ipa-pure-const.c: Likewise.
25994 * ipa-reference.c: Likewise.
25995 * ipa-split.c: Likewise.
25996 * ipa-visibility.c: Likewise.
25997 * ipa.c: Likewise.
25998 * ira-build.c: Likewise.
25999 * ira-color.c: Likewise.
26000 * ira-conflicts.c: Likewise.
26001 * ira-costs.c: Likewise.
26002 * ira-int.h: Likewise.
26003 * ira-lives.c: Likewise.
26004 * ira.c: Likewise.
26005 * ira.h: Likewise.
26006 * loop-invariant.c: Likewise.
26007 * loop-unroll.c: Likewise.
26008 * lower-subreg.c: Likewise.
26009 * lra-assigns.c: Likewise.
26010 * lra-constraints.c: Likewise.
26011 * lra-eliminations.c: Likewise.
26012 * lra-lives.c: Likewise.
26013 * lra-remat.c: Likewise.
26014 * lra-spills.c: Likewise.
26015 * lra.c: Likewise.
26016 * lto-cgraph.c: Likewise.
26017 * lto-streamer-out.c: Likewise.
26018 * postreload-gcse.c: Likewise.
26019 * predict.c: Likewise.
26020 * profile-count.h: Likewise.
26021 * profile.c: Likewise.
26022 * recog.c: Likewise.
26023 * ree.c: Likewise.
26024 * reload.c: Likewise.
26025 * reload1.c: Likewise.
26026 * reorg.c: Likewise.
26027 * resource.c: Likewise.
26028 * rtl.def: Likewise.
26029 * rtl.h: Likewise.
26030 * rtlanal.c: Likewise.
26031 * sched-deps.c: Likewise.
26032 * sched-ebb.c: Likewise.
26033 * sched-rgn.c: Likewise.
26034 * sel-sched-ir.c: Likewise.
26035 * sel-sched.c: Likewise.
26036 * shrink-wrap.c: Likewise.
26037 * simplify-rtx.c: Likewise.
26038 * symtab.c: Likewise.
26039 * target.def: Likewise.
26040 * toplev.c: Likewise.
26041 * tree-call-cdce.c: Likewise.
26042 * tree-cfg.c: Likewise.
26043 * tree-complex.c: Likewise.
26044 * tree-core.h: Likewise.
26045 * tree-eh.c: Likewise.
26046 * tree-inline.c: Likewise.
26047 * tree-loop-distribution.c: Likewise.
26048 * tree-nrv.c: Likewise.
26049 * tree-profile.c: Likewise.
26050 * tree-sra.c: Likewise.
26051 * tree-ssa-alias.c: Likewise.
26052 * tree-ssa-dce.c: Likewise.
26053 * tree-ssa-dom.c: Likewise.
26054 * tree-ssa-forwprop.c: Likewise.
26055 * tree-ssa-loop-im.c: Likewise.
26056 * tree-ssa-loop-ivcanon.c: Likewise.
26057 * tree-ssa-loop-ivopts.c: Likewise.
26058 * tree-ssa-loop-niter.c: Likewise.
26059 * tree-ssa-phionlycprop.c: Likewise.
26060 * tree-ssa-phiopt.c: Likewise.
26061 * tree-ssa-propagate.c: Likewise.
26062 * tree-ssa-threadedge.c: Likewise.
26063 * tree-ssa-threadupdate.c: Likewise.
26064 * tree-ssa-uninit.c: Likewise.
26065 * tree-ssanames.c: Likewise.
26066 * tree-streamer-out.c: Likewise.
26067 * tree.c: Likewise.
26068 * tree.h: Likewise.
26069 * vr-values.c: Likewise.
26070
26071 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26072
26073 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26074 (ix86_split_xorsign): Ditto.
26075 * config/i386/i386.c (ix86_expand_xorsign): New function.
26076 (ix86_split_xorsign): Ditto.
26077 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26078 (xorsign<mode>3): New expander.
26079 (xorsign<mode>3_1): New insn_and_split pattern.
26080 * config/i386/sse.md (xorsign<mode>3): New expander.
26081
26082 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26083
26084 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26085 (*tablejump_sp64): Likewise.
26086 (*tablejump<P:mode>): ...this.
26087 (*call_address_sp32): Merge into...
26088 (*call_address_sp64): Likewise.
26089 (*call_address<P:mode>): ...this.
26090 (*call_symbolic_sp32): Merge into...
26091 (*call_symbolic_sp64): Likewise.
26092 (*call_symbolic<P:mode>): ...this.
26093 (call_value): Remove constraint and add predicate.
26094 (*call_value_address_sp32): Merge into...
26095 (*call_value_address_sp64): Likewise.
26096 (*call_value_address<P:mode>): ...this.
26097 (*call_value_symbolic_sp32): Merge into...
26098 (*call_value_symbolic_sp64): Likewise.
26099 (*call_value_symbolic<P:mode>): ...this.
26100 (*sibcall_symbolic_sp32): Merge into...
26101 (*sibcall_symbolic_sp64): Likewise.
26102 (*sibcall_symbolic<P:mode>): ...this.
26103 (sibcall_value): Remove constraint and add predicate.
26104 (*sibcall_value_symbolic_sp32): Merge into...
26105 (*sibcall_value_symbolic_sp64): Likewise.
26106 (*sibcall_value_symbolic<P:mode>): ...this.
26107 (window_save): Minor tweak.
26108 (*branch_sp32): Merge into...
26109 (*branch_sp64): Likewise.
26110 (*branch<P:mode>): ...this.
26111
26112 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26113 James Clarke <jrtc27@jrtc27.com>
26114
26115 PR target/84010
26116 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26117 consistently in TLS address generation and adjust code to the renaming
26118 of patterns. Mark calls to __tls_get_addr as const.
26119 * config/sparc/sparc.md (tgd_hi22): Turn into...
26120 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26121 (tgd_lo10): Turn into...
26122 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26123 (tgd_add32): Merge into...
26124 (tgd_add64): Likewise.
26125 (tgd_add<P:mode>): ...this and use Pmode throughout.
26126 (tldm_hi22): Turn into...
26127 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26128 (tldm_lo10): Turn into...
26129 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26130 (tldm_add32): Merge into...
26131 (tldm_add64): Likewise.
26132 (tldm_add<P:mode>): ...this and use Pmode throughout.
26133 (tldm_call32): Merge into...
26134 (tldm_call64): Likewise.
26135 (tldm_call<P:mode>): ...this and use Pmode throughout.
26136 (tldo_hix22): Turn into...
26137 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26138 (tldo_lox10): Turn into...
26139 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26140 (tldo_add32): Merge into...
26141 (tldo_add64): Likewise.
26142 (tldo_add<P:mode>): ...this and use Pmode throughout.
26143 (tie_hi22): Turn into...
26144 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26145 (tie_lo10): Turn into...
26146 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26147 (tie_ld64): Use DImode throughout.
26148 (tie_add32): Merge into...
26149 (tie_add64): Likewise.
26150 (tie_add<P:mode>): ...this and use Pmode throughout.
26151 (tle_hix22_sp32): Merge into...
26152 (tle_hix22_sp64): Likewise.
26153 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26154 (tle_lox22_sp32): Merge into...
26155 (tle_lox22_sp64): Likewise.
26156 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26157 (*tldo_ldub_sp32): Merge into...
26158 (*tldo_ldub_sp64): Likewise.
26159 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26160 (*tldo_ldub1_sp32): Merge into...
26161 (*tldo_ldub1_sp64): Likewise.
26162 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26163 (*tldo_ldub2_sp32): Merge into...
26164 (*tldo_ldub2_sp64): Likewise.
26165 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26166 (*tldo_ldsb1_sp32): Merge into...
26167 (*tldo_ldsb1_sp64): Likewise.
26168 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26169 (*tldo_ldsb2_sp32): Merge into...
26170 (*tldo_ldsb2_sp64): Likewise.
26171 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26172 (*tldo_ldub3_sp64): Use DImode throughout.
26173 (*tldo_ldsb3_sp64): Likewise.
26174 (*tldo_lduh_sp32): Merge into...
26175 (*tldo_lduh_sp64): Likewise.
26176 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26177 (*tldo_lduh1_sp32): Merge into...
26178 (*tldo_lduh1_sp64): Likewise.
26179 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26180 (*tldo_ldsh1_sp32): Merge into...
26181 (*tldo_ldsh1_sp64): Likewise.
26182 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26183 (*tldo_lduh2_sp64): Use DImode throughout.
26184 (*tldo_ldsh2_sp64): Likewise.
26185 (*tldo_lduw_sp32): Merge into...
26186 (*tldo_lduw_sp64): Likewise.
26187 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26188 (*tldo_lduw1_sp64): Use DImode throughout.
26189 (*tldo_ldsw1_sp64): Likewise.
26190 (*tldo_ldx_sp64): Likewise.
26191 (*tldo_stb_sp32): Merge into...
26192 (*tldo_stb_sp64): Likewise.
26193 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26194 (*tldo_sth_sp32): Merge into...
26195 (*tldo_sth_sp64): Likewise.
26196 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26197 (*tldo_stw_sp32): Merge into...
26198 (*tldo_stw_sp64): Likewise.
26199 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26200 (*tldo_stx_sp64): Use DImode throughout.
26201
26202 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26203
26204 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26205 check configure option to set BTI and Return Address Signing.
26206 * configure.ac: Add --enable-standard-branch-protection and
26207 --disable-standard-branch-protection.
26208 * configure: Regenerated.
26209 * doc/install.texi: Document the same.
26210
26211 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26212 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26213
26214 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26215 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26216 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26217 if bti is enabled.
26218 * config/aarch64/aarch64-bti-insert.c: New file.
26219 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26220 pass.
26221 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26222 new bti pass.
26223 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26224 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26225 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26226 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26227
26228 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26229
26230 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26231 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26232 Disable bti for -mbranch-protection=none.
26233 (aarch64_handle_standard_branch_protection): Enable bti for
26234 -mbranch-protection=standard.
26235 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26236 -mbranch-protection.
26237 (aarch64_bti_enabled): Check if bti is enabled.
26238 * config/aarch64/aarch64.opt: Declare target variable.
26239 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26240
26241 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26242
26243 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26244 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26245 (aarch64_expand_epilogue): Likewise.
26246 (aarch64_output_mi_thunk): Likewise.
26247 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26248 TAILCALL_ADDR_REGS to x16 and x17.
26249 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26250
26251 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26252
26253 * config/aarch64/aarch64-option-extensions.def: Define
26254 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26255 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26256 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26257 (AARCH64_FL_PREDRES): New.
26258 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26259 AARCH64_FL_PREDRES by default.
26260 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26261
26262 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26263
26264 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26265 ARMv8.5-A.
26266 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26267 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26268 * doc/invoke.texi: Document ARMv8.5-A.
26269
26270 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26271
26272 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26273 (xorsign<mode>3): Likewise.
26274
26275 2019-01-09 Jelinek <jakub@redhat.com>
26276
26277 PR middle-end/88758
26278 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26279 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26280
26281 PR rtl-optimization/88331
26282 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26283 not currently_expanding_to_rtl.
26284
26285 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26286
26287 * doc/invoke.texi (-Os): Remove trailing spaces.
26288 (-finline-functions): Remove reference to -O2.
26289
26290 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26291
26292 PR rtl-optimization/79593
26293 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26294
26295 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26296 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26297
26298 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26299
26300 PR bootstrap/88721
26301 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26302 to -1 on entry.
26303
26304 PR debug/88723
26305 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26306 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26307
26308 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26309
26310 PR target/88717
26311 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26312 ix86_avx_u128_mode_entry.
26313
26314 2019-01-08 Martin Liska <mliska@suse.cz>
26315
26316 PR tree-optimization/88753
26317 * tree-switch-conversion.c (switch_conversion::build_one_array):
26318 Come up with local variable constructor. Convert first to
26319 type of constructor values.
26320
26321 2019-01-08 Richard Biener <rguenther@suse.de>
26322
26323 PR tree-optimization/86554
26324 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26325 rpo_avail): Move earlier.
26326 (visit_nary_op): When value-numbering to expressions
26327 with different overflow behavior make sure there's an
26328 available expression on the path.
26329
26330 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26331
26332 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26333 aarch64_parse_branch_protection,
26334 struct aarch64_branch_protect_type,
26335 aarch64_handle_no_branch_protection,
26336 aarch64_handle_standard_branch_protection,
26337 aarch64_validate_mbranch_protection,
26338 aarch64_handle_pac_ret_protection,
26339 aarch64_handle_attr_branch_protection,
26340 accepted_branch_protection_string,
26341 aarch64_pac_ret_subtypes,
26342 aarch64_branch_protect_types,
26343 aarch64_handle_pac_ret_leaf): Define.
26344 (aarch64_override_options_after_change_1, aarch64_override_options):
26345 Add check for accepted_branch_protection_string.
26346 (aarch64_option_save): Save accepted_branch_protection_string.
26347 (aarch64_option_restore): Save accepted_branch_protection_string.
26348 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26349 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26350 msign-return-address.
26351 * doc/invoke.texi: Add mbranch-protection.
26352
26353 2019-01-08 Alan Modra <amodra@gmail.com>
26354
26355 PR target/88614
26356 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26357 Delete "unknownp" parameter. Adjust callers. Handle
26358 CONST_INT, PLUS, MINUS, and MULT.
26359 (attr_value_aligned): Renamed from or_attr_value.
26360 (min_attr_value): Return INT_MIN for unhandled rtl case..
26361 (min_fn): ..and translate to INT_MAX here.
26362 (write_length_unit_log): Modify to cope without "unknown".
26363 (write_attr_value): Handle IF_THEN_ELSE.
26364
26365 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26366
26367 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26368 optimization for masked stores.
26369
26370 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26371
26372 PR middle-end/88567
26373 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26374 output vector directly to duplicate_and_interleave instead of
26375 going through a temporary. Postpone insertion of ctor_seq to
26376 the end of the loop.
26377
26378 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26379
26380 PR target/86891
26381 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26382 unsigned_p. Handle signed and unsigned overflow correction as
26383 required.
26384 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26385 prototype.
26386 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26387 for operand 2.
26388 (add<mode>3_compareV_imm): Make this callable for expanding.
26389 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26390 aarch64_plus_operand for operand 2.
26391 (subv<GPI:mode>_insn): New insn pattern.
26392 (subv<GPI:mode>_imm): Likewise.
26393 (negv<GPI:mode>3): New expand pattern.
26394 (negv<GPI:mode>_insn): New insn pattern.
26395 (negv<GPI:mode>_cmp_only): Likewise.
26396 (cmpv<GPI:mode>_insn): Likewise.
26397 (subvti4): Use register_operand for operand 1. Update call to
26398 aarch64_expand_subvti.
26399 (usubvti4): Likewise.
26400 (negvti3): New expand pattern.
26401 (negdi_carryout): New insn pattern.
26402 (negvdi_carryinV): New insn pattern.
26403 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26404 version the named version.
26405 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26406 operands.
26407 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26408 patterns.
26409 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26410 patterns.
26411 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26412 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26413 (sub<mode>3_carryinCV): Delete.
26414 (sub<GPI:mode>3_carryinV): New expand pattern.
26415 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26416
26417 2019-01-07 Richard Biener <rguenther@suse.de>
26418
26419 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26420 of tree_operand_hash.
26421
26422 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26423
26424 PR tree-optimization/88598
26425 * tree.h (single_nonzero_element): Declare.
26426 * tree.c (single_nonzero_element): New function.
26427 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26428 if I is the only nonzero element of CST.
26429
26430 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26431
26432 PR tree-optimization/88598
26433 * tree.h (initializer_each_zero_or_onep): Declare.
26434 * tree.c (initializer_each_zero_or_onep): New function.
26435 (signed_or_unsigned_type_for): Handle float types too.
26436 (unsigned_type_for, signed_type_for): Update comments accordingly.
26437 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26438 x & { 0 or -1, 0 or -1, ... }.
26439
26440 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26441
26442 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26443 with x86_64-pc-linux-gnu.
26444
26445 2019-01-07 Tom de Vries <tdevries@suse.de>
26446
26447 PR target/85486
26448 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26449 function.
26450 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26451 routines.
26452
26453 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26454
26455 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26456 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26457 TARGET_AVX512F as condition.
26458
26459 PR debug/88723
26460 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26461 const_not_ok_for_debug_p target hook.
26462 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26463 on UNSPEC and subexpressions thereof if all subexpressions of the
26464 UNSPEC are CONSTANT_P.
26465
26466 PR tree-optimization/88676
26467 * tree-ssa-phiopt.c (two_value_replacement): New function.
26468 (tree_ssa_phiopt_worker): Call it.
26469
26470 PR sanitizer/88619
26471 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26472 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26473
26474 PR c++/85052
26475 * tree-vect-generic.c: Include insn-config.h and recog.h.
26476 (expand_vector_piecewise): Add defaulted ret_type argument,
26477 if non-NULL, use that in preference to type for the result type.
26478 (expand_vector_parallel): Formatting fix.
26479 (do_vec_conversion, do_vec_narrowing_conversion,
26480 expand_vector_conversion): New functions.
26481 (expand_vector_operations_1): Call expand_vector_conversion
26482 for VEC_CONVERT ifn calls.
26483 * internal-fn.def (VEC_CONVERT): New internal function.
26484 * internal-fn.c (expand_VEC_CONVERT): New function.
26485 * fold-const-call.c (fold_const_vec_convert): New function.
26486 (fold_const_call): Use it for CFN_VEC_CONVERT.
26487 * doc/extend.texi (__builtin_convertvector): Document.
26488
26489 2019-01-07 Tom de Vries <tdevries@suse.de>
26490
26491 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26492 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26493 vector_red_partition, vector_red_sym): New global variables.
26494 (nvptx_option_override): Initialize vector_red_sym.
26495 (nvptx_declare_function_name): Restore red_partition register.
26496 (nvptx_file_end): Emit code to declare the vector reduction variables.
26497 (nvptx_output_red_partition): New function.
26498 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26499 large vector reductions.
26500 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26501 (nvptx_init_builtins): Add VECTOR_ADDR.
26502 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26503 Handle nvptx_expand_shared_addr.
26504 (nvptx_get_shared_red_addr): Add vector argument and handle large
26505 vectors.
26506 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26507 large vectors.
26508 (nvptx_goacc_reduction_init): Likewise.
26509 (nvptx_goacc_reduction_fini): Likewise.
26510 (nvptx_goacc_reduction_teardown): Likewise.
26511 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26512 init,fini,teardown}.
26513 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26514 (nvptx_set_current_function): Init vector_red_partition.
26515 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26516 (nvptx_red_partition): New insn.
26517 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26518
26519 2019-01-07 Tom de Vries <tdevries@suse.de>
26520
26521 PR target/85381
26522 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26523 empty loops.
26524
26525 2019-01-07 Tom de Vries <tdevries@suse.de>
26526
26527 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26528 (nvptx_option_override): Init oacc_bcast_partition.
26529 (nvptx_init_oacc_workers): New function.
26530 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26531 (nvptx_needs_shared_bcast): New function.
26532 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26533 to propagate state.
26534 (nvptx_shared_propagate): Initialize vector bcast partition and
26535 synchronization state.
26536 (nvptx_single): Generalize to enable vectors to use shared-memory
26537 to propagate state.
26538 (nvptx_process_pars): Likewise.
26539 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26540 * config/nvptx/nvptx.h (struct machine_function): Add
26541 bcast_partition and sync_bar members.
26542
26543 2019-01-07 Tom de Vries <tdevries@suse.de>
26544
26545 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26546 (nvptx_apply_dim_limits): New function.
26547 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26548 PTX_WARP_SIZE.
26549
26550 2019-01-07 Tom de Vries <tdevries@suse.de>
26551
26552 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26553 as late as possible.
26554
26555 2019-01-07 Tom de Vries <tdevries@suse.de>
26556
26557 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26558 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26559 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26560 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26561 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26562
26563 2019-01-07 Tom de Vries <tdevries@suse.de>
26564
26565 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26566
26567 2019-01-07 Tom de Vries <tdevries@suse.de>
26568
26569 * omp-offload.c (oacc_get_min_dim): New function.
26570 * omp-offload.h (oacc_get_min_dim): Declare.
26571
26572 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26573
26574 PR target/88521
26575 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26576 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26577
26578 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26579
26580 PR tree-opt/86020
26581 Revert:
26582 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26583
26584 * ipa-inline.c (edge_badness): Use inlined_time instead of
26585 inline_summaries->get.
26586
26587 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26588
26589 * opts.c (enable_fdo_optimizations): Enable
26590 version-loops-for-strides, loop-interchange, unrol-and-jam
26591 and tree-loop-distribution.
26592 * invoke.texi: Document newly enabled options.
26593
26594 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26595
26596 * doc/invoke.texi (max-inline-insns-small): New parameters.
26597 * ipa-inline.c (want_early_inline_function_p): simplify.
26598 (want_inline_small_function_p): Fix pasto from previous patch;
26599 use max-inline-insns-small bound.
26600 * params.def (max-inline-insns-small): New param.
26601 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26602 variables correctly.
26603
26604 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26605
26606 * doc/invoke.texi: Document max-inline-insns-size,
26607 uninlined-function-insns, uninlined-function-time,
26608 uninlined-thunk-insns and uninlined-thunk-time.
26609 * params.def: Add max-inline-insns-size,
26610 uninlined-function-insns, uninlined-function-time,
26611 uninlined-thunk-insns and uninlined-thunk-time.
26612 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26613 new parameters.
26614 * ipa-inline.c (can_inline_edge_by_limits_p,
26615 want_inline_small_function_p): Use new parameters.
26616
26617 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26618
26619 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26620
26621 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26622
26623 PR middle-end/82564
26624 PR target/88620
26625 * expr.c (expand_assignment): For calls returning VLA structures
26626 if to_rtx is not a MEM, force it into a stack temporary.
26627
26628 PR debug/88635
26629 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26630 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26631 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26632 subexpressions of both operands.
26633 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26634 subrtxes are CONSTANT_P.
26635 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26636 2018-11-09 changes.
26637
26638 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26639
26640 * params.def (hot-bb-count-ws-permille): Set to 990.
26641
26642 2019-01-04 Martin Sebor <msebor@redhat.com>
26643
26644 PR c/88546
26645 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26646 leaf.
26647
26648 2019-01-04 Martin Sebor <msebor@redhat.com>
26649
26650 PR c/88363
26651 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26652
26653 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26654
26655 * gdbinit.in: Turn off pagination for the skip commands, restore
26656 it to previous state afterwards.
26657
26658 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26659
26660 PR target/88594
26661 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26662 of GET_MODE (opN) as modes of the libcall arguments.
26663
26664 2019-01-04 Jan Beulich <jbeulich@suse.com>
26665
26666 * config/i386/sse.md
26667 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26668 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26669 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26670 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26671 avx512f_vmcmp<mode>3<round_saeonly_name>,
26672 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26673 avx512f_maskcmp<mode>3,
26674 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26675 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26676 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26677 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26678 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26679 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26680 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26681 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26682 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26683 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26684 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26685 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26686 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26687 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26688 avx512cd_maskb_vec_dup<mode>,
26689 avx512cd_maskw_vec_dup<mode>,
26690 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26691 avx512dq_vmfpclass<mode>,
26692 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26693 instead of =Yk.
26694
26695 2019-01-03 Martin Sebor <msebor@redhat.com>
26696
26697 PR tree-optimization/88659
26698 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26699
26700 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26701
26702 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26703 unaligned vsx and avoid lxvd2x/stxvd2x.
26704 (gen_lvx_v4si_move): New function.
26705
26706 2019-01-03 Tom de Vries <tdevries@suse.de>
26707
26708 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26709 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26710 function.
26711 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26712
26713 2019-01-03 Tom de Vries <tdevries@suse.de>
26714
26715 * config/nvptx/nvptx.c (struct offload_attrs): New.
26716 (populate_offload_attrs): New function. Factor mask extraction out of
26717 nvptx_reorg. Add extraction of dimensions.
26718 (nvptx_reorg): Use populate_offload_attrs.
26719
26720 2019-01-03 Tom de Vries <tdevries@suse.de>
26721
26722 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26723 cases for oacc_min_dims_p and routine_p. Add asserts for
26724 oacc_default_dims_p and offload_region_p.
26725
26726 2019-01-03 Tom de Vries <tdevries@suse.de>
26727
26728 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26729 factored out of ...
26730 (nvptx_goacc_validate_dims): ... here.
26731
26732 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26733
26734 PR tree-optimization/85574
26735 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26736 structure.
26737 (struct ssa_equip_hash_traits): Declare.
26738 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26739
26740 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26741
26742 PR debug/88644
26743 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26744 change it to qualified_type.
26745
26746 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26747
26748 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26749 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26750
26751 2019-01-02 Martin Sebor <msebor@redhat.com>
26752 Jeff Law <law@redhat.com>
26753
26754 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26755 (get_range_strlen_tree): Update appropriately.
26756 (get_range_strlen)
26757 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26758
26759 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26760 rather than set_range_info.
26761 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26762 maybe_set_strlen_range. Handle potentially boundary crossing
26763 cases more conservatively.
26764 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26765 Call set_strlen_range.
26766 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26767
26768 PR middle-end/88663
26769 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26770 need the flexp argument.
26771 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26772 from calls to get_range_strlen. Update comments. Just update
26773 VAL for an unterminated const char array and let the reset of the
26774 code handle it normally. No longer try to set *flexp. Adjust
26775 return value.
26776 (get_range_strlen): Update for the new get_range_strlen API.
26777 (get_maxval_strlen): Similarly.
26778 (gimple_fold_builtin_strlen): Handle update meaning of return value
26779 from get_range_strlen.
26780 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26781 get_range_strlen API.
26782
26783 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26784
26785 PR lto/88130
26786 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26787 false at WPA time when body was removed.
26788
26789 2019-01-02 Martin Liska <mliska@suse.cz>
26790
26791 PR tree-optimization/88650
26792 * predict.c (set_even_probabilities): Calculate probability
26793 remainer only when really used.
26794
26795 2019-01-02 Richard Biener <rguenther@suse.de>
26796
26797 PR middle-end/88651
26798 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26799 widest_ints when mangling max_stmt_execution results.
26800
26801 2019-01-02 Richard Biener <rguenther@suse.de>
26802
26803 PR tree-optimization/88621
26804 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26805 bitfields when canoncalizing.
26806
26807 2019-01-02 Richard Biener <rguenther@suse.de>
26808
26809 PR target/87545
26810 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26811 cost of cheap SSE instruction.
26812
26813 2019-01-02 Richard Biener <rguenther@suse.de>
26814
26815 PR ipa/85574
26816 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26817 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26818 function.
26819 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26820 set after UIDs before splitting them.
26821
26822 2019-01-01 Martin Sebor <msebor@redhat.com>
26823 Jeff Law <law@redhat.com>
26824
26825 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26826 length is optimistic. If it is, then arrange to compute the
26827 conservative length as well.
26828
26829 * gimple-fold.h (get_range_strlen): Update prototype.
26830 * builtins.c (check_access): Update call to get_range_strlen to use
26831 c_strlen_data pointer. Change various variable accesses to instead
26832 pull data from the c_strlen_data structure.
26833 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26834 * calls.c (maybe_warn_nonstring_arg): Likewise.
26835 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26836 minimum length if maximum lengh is unknown.
26837 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26838 that used c_strlen, it's no longer needed. Restructure slightly.
26839 (format_string): Set unlikely range appropriately.
26840 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26841 formatting issues.
26842 (get_range_strlen): Accept c_strlen_data pointer for external
26843 call sites as well. Pass through to call to internal get_range_strlen.
26844 Adjust minlen, maxlen and maxbound as needed.
26845 (get_maxval_strlen): Update comments.
26846 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26847 to use c_strlen_data pointer. Change variable accesses to instead
26848 use c_strlen_data data members.
26849
26850 * gimple-fold.c (get_range_strlen): Update prototype.
26851 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26852 local variables. Use pdata to return information to caller.
26853 Update calls to get_range_strlen. Update pdata->maxbound.
26854 (get_range_strlen -- static version): Similarly.
26855 (get_range_strlen -- extern version): Update for internal
26856 get_range_strlen API change. Convert to external data format.
26857 (get_maxval_strlen): Similarly.
26858
26859 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26860
26861 * coverage.c (get_coverage_counts): Use current_function_decl.
26862 * profile.c (read_thunk_profile): New function.
26863 (branch_prob): Add THUNK parameter.
26864 * tree-profile.c (tree_profiling): Handle thunks.
26865 * value-prof.c (init_node_map): Handle thunks.
26866 * value-prof.h (branch_prob): Upate prototype.
26867 (read_thunk_profile): Declare.
26868
26869 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26870
26871 Update copyright years.
26872
26873 * gcc.c (process_command): Update copyright notice dates.
26874 * gcov-dump.c (print_version): Ditto.
26875 * gcov.c (print_version): Ditto.
26876 * gcov-tool.c (print_version): Ditto.
26877 * gengtype.c (create_file): Ditto.
26878 * doc/cpp.texi: Bump @copying's copyright year.
26879 * doc/cppinternals.texi: Ditto.
26880 * doc/gcc.texi: Ditto.
26881 * doc/gccint.texi: Ditto.
26882 * doc/gcov.texi: Ditto.
26883 * doc/install.texi: Ditto.
26884 * doc/invoke.texi: Ditto.
26885 \f
26886 Copyright (C) 2019 Free Software Foundation, Inc.
26887
26888 Copying and distribution of this file, with or without modification,
26889 are permitted in any medium without royalty provided the copyright
26890 notice and this notice are preserved.