]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
1c96b17631f1324f3846e92980aa7f20f09f3dbc
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
4 operand 2.
5
6 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7
8 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
9 to match canonical form.
10
11 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
12
13 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
14 (extend<mode>di2): Likewise.
15
16 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
17
18 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
19 * config/arm/arm.c (arm_decompose_di_binop): New function.
20 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
21 If not generating Thumb-1 code, decompose the operation into 32-bit
22 pieces.
23 * add0si_carryin_<optab>: New pattern.
24
25 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
26
27 * arm.md (adddi3): Only accept register operands.
28 (arm_adddi3): Convert to simple insn with no split. Do not accept
29 constants.
30 (adddi_sesidi_di): Delete patern.
31 (adddi_zesidi_di): Likewise.
32 (uaddv<mode>4): Use LTU as condition for branch.
33 (adddi3_compareV): Convert to simple insn with no split.
34 (addsi3_compareV_upper): Delete pattern.
35 (adddi3_compareC): Convert to simple insn with no split. Correct
36 flags setting expression.
37 (addsi3_compareC_upper): Delete pattern.
38 (addsi3_compareC): Correct flags setting expression.
39 (subdi3_compare1): Convert to simple insn with no split.
40 (subsi3_carryin_compare): Delete pattern.
41 (arm_subdi3): Convert to simple insn with no split.
42 (subdi_zesidi): Delete pattern.
43 (subdi_di_sesidi): Delete pattern.
44 (subdi_zesidi_di): Delete pattern.
45 (subdi_sesidi_di): Delete pattern.
46 (subdi_zesidi_zesidi): Delete pattern.
47 (negvdi3): Use s_register_operand.
48 (negdi2_compare): Convert to simple insn with no split.
49 (negdi2_insn): Likewise.
50 (negsi2_carryin_compare): Delete pattern.
51 (negdi_zero_extendsidi): Delete pattern.
52 (arm_cmpdi_insn): Convert to simple insn with no split.
53 (negdi2): Don't call gen_negdi2_neon.
54 * config/arm/neon.md (adddi3_neon): Delete pattern.
55 (subdi3_neon): Delete pattern.
56 (negdi2_neon): Delete pattern.
57 (splits for negdi2_neon): Delete splits.
58
59 2019-10-18 Jakub Jelinek <jakub@redhat.com>
60
61 PR middle-end/92153
62 * ggc-page.c (release_pages): Read g->alloc_size before free rather
63 than after it.
64
65 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
66
67 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
68 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
69 new multilib variants and new mappings.
70
71 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
72
73 PR target/86040
74 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
75
76 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
77 Richard Sandiford <richard.sandiford@arm.com>
78
79 PR target/86753
80 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
81 and define hashmap traits for it.
82 (loop_vec_info::scalar_cond_masked_set): New member.
83 (vect_record_loop_mask): Adjust prototype.
84 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
85 Implement method.
86 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
87 vect_record_loop_mask.
88 (vectorizable_live_operation): Likewise.
89 (vect_record_loop_mask): New param scalar_mask. Add entry
90 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
91 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
92 Pass it as last arg to vect_record_loop_mask.
93 (vectorizable_call): Pass scalar_mask as last arg to
94 vect_record_loop_mask.
95 (vectorizable_store): Likewise.
96 (vectorizable_load): Likewise.
97 (vectorizable_condition): Check if another part of vectorized code
98 applies loop_mask to condition or to it's inverse, and if yes,
99 apply loop_mask to result of vector comparison.
100
101 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
102
103 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
104
105 2019-10-18 Jakub Jelinek <jakub@redhat.com>
106
107 PR tree-optimization/92056
108 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
109 before calling compute_builtin_object_size.
110
111 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
112
113 PR target/65342
114 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
115 (movdi_low_st): Delete.
116 * config/rs6000/rs6000.c
117 (darwin_rs6000_legitimate_lo_sum_const_p): New.
118 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
119 * config/rs6000/rs6000.md (movsi_low): Delete.
120
121 2019-10-17 Jason Merrill <jason@redhat.com>
122
123 * gimplify.h (get_initialized_tmp_var): Add default argument to
124 post_p.
125 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
126 NULL post_p argument.
127 * targhooks (std_gimplify_va_arg_expr): Likewise.
128
129 2019-10-17 Richard Biener <rguenther@suse.de>
130
131 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
132 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
133 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
134 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
135 * tree-vect-loop.c (vect_is_simple_reduction): Set
136 STMT_VINFO_REDUC_CODE.
137 (vectorizable_reduction): Remove dead and redundant code, use
138 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
139
140 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
141
142 Fix breakage introduced by r276985.
143
144 * config/avr/avr.c (avr_option_override): Remove set of
145 PARAM_ALLOW_STORE_DATA_RACES.
146 * common/config/avr/avr-common.c (avr_option_optimization_table)
147 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
148
149 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
150
151 * config/i386/i386.h (processor_costs): Add clear_ratio.
152 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
153 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
154 of 6 and move_ratio in all cost models.
155
156 2019-10-17 Richard Biener <rguenther@suse.de>
157
158 * tree-vect-loop.c (check_reduction_path): Compute reduction
159 operation here.
160 (vect_is_simple_reduction): Remove special-case of single-stmt
161 reduction path detection.
162
163 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
164
165 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
166
167 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
168
169 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
170 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
171 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
172 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
173 New combine patterns.
174 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
175 above.
176 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
177
178 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
179
180 * tree-vrp.c (value_range_base::dump): Display +INF for both
181 pointers and integers when appropriate.
182
183 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
184
185 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
186 when to use versioning threshold.
187
188 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
189
190 * tree-vect-loop.c (determine_peel_for_niter): New function contained
191 outlined code from ...
192 (vect_analyze_loop_2): ... here.
193
194 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
195
196 * tree-vect-loop.c (vect_transform_loop): Move code from here...
197 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
198 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
199
200 2019-10-17 Richard Biener <rguenther@suse.de>
201
202 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
203 (vect_is_simple_reduction): Move all validity checks ...
204 (vectorizable_reduction): ... here. Compute whether we
205 need a fold-left reduction here.
206 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
207 both overloads, check needs_fold_left_reduction_p directly.
208 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
209
210 2019-10-17 Richard Biener <rguenther@suse.de>
211
212 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
213 TARGET_MEM_REF creation.
214
215 2019-10-17 Richard Biener <rguenther@suse.de>
216
217 PR tree-optimization/92129
218 * tree-vect-loop.c (vectorizable_reduction): Also fail
219 on GIMPLE_SINGLE_RHS.
220
221 2019-10-17 Jakub Jelinek <jakub@redhat.com>
222
223 PR tree-optimization/92056
224 * tree-object-size.c (cond_expr_object_size): Return early if then_
225 processing resulted in unknown size.
226
227 PR tree-optimization/92115
228 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
229 temporary if it could trap.
230
231 2019-10-17 Richard Biener <rguenther@suse.de>
232
233 PR debug/91887
234 * dwarf2out.c (gen_formal_parameter_die): Also try to match
235 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
236
237 2019-10-16 Jakub Jelinek <jakub@redhat.com>
238
239 * tree-ssa-strlen.c (maybe_invalidate): Use
240 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
241
242 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
243 Jim Wilson <jimw@sifive.com>
244
245 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
246 regs to SIBCALL_REGS.
247 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
248 passing regs to SIBCALL_REGS.
249
250 2019-10-16 Martin Sebor <msebor@redhat.com>
251
252 PR tree-optimization/83821
253 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
254 the length of a string when available.
255 (handle_builtin_memset) Add argument.
256 (handle_store, strlen_check_and_optimize_call): Same.
257 (check_and_optimize_stmt): Same. Pass it to callees.
258
259 2019-10-16 Martin Sebor <msebor@redhat.com>
260
261 PR tree-optimization/91996
262 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
263 information.
264 (compare_nonzero_chars): Add an overload.
265 (count_nonzero_bytes): Add an argument. Call overload above.
266 Handle non-constant lengths in some range.
267 (handle_store): Add an argument.
268 (check_and_optimize_stmt): Pass an argument to handle_store.
269
270 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
271
272 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
273
274 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
275
276 * config/mips/mips.c (mips_expand_builtin_insn): Force the
277 operands which correspond to the same input-output register to
278 have the same pseudo assigned to them.
279
280 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
281
282 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
283
284 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
285
286 * config/aarch64/aarch64.c (aarch64_classify_symbol):
287 Apply reasonable limit to symbol offsets.
288
289 2019-10-16 Richard Biener <rguenther@suse.de>
290
291 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
292 (vect_is_simple_reduction): Delay checking to
293 vectorizable_reduction and relax the checking.
294 (vectorizable_reduction): Check we have a simple use. Check
295 for bogus condition reductions.
296 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
297 are looking at the last stmt in a pattern sequence when
298 filling in backedge PHI values.
299
300 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
301 Jiufu Guo <guojiufu@linux.ibm.com>
302
303 PR target/70010
304 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
305 the callee explicitly disables some isa_flags the caller is using.
306
307 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
308
309 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
310
311 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
312
313 * genmodes.c (mode_data::order): New field.
314 (blank_mode): Update accordingly.
315 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
316 (make_vector_modes): Likewise.
317 (VECTOR_MODES): Update use accordingly.
318 (cmp_modes): Sort by the new order field ahead of sorting by size.
319 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
320 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
321 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
322 (aarch64_classify_vector_mode): Handle the new partial modes.
323 (aarch64_vl_bytes): New function.
324 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
325 when counting the number of registers in an SVE mode.
326 (aarch64_class_max_nregs): Likewise.
327 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
328 in registers yet.
329 (aarch64_classify_address): Treat partial vectors analogously
330 to full vectors.
331 (aarch64_print_address_internal): Consolidate the printing of
332 MUL VL addresses, using aarch64_vl_bytes as the number of
333 bytes represented by "VL".
334 (aarch64_vector_mode_supported_p): Reject partial vector modes.
335
336 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
337
338 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
339 rather than known_lt when choosing frame layouts.
340
341 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
342
343 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
344 that all the adjustments add up to the full frame size.
345 Use crtl->outgoing_args_size directly as the final adjustment
346 where appropriate.
347
348 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
349
350 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
351 "frame" reference instead of always referring directly to
352 "cfun->machine->frame".
353
354 2019-10-16 Richard Biener <rguenther@suse.de>
355
356 PR tree-optimization/92119
357 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
358 against missing bswap lhs.
359
360 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
361
362 PR middle-end/92033
363 * poly-int.h (constant_lower_bound_with_limit): New function.
364 (constant_upper_bound_with_limit): Likewise.
365 * doc/poly-int.texi: Document them.
366 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
367 into the worst-case INTEGER_CST bounds.
368
369 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
370
371 PR ipa/91088
372 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
373 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
374 * ipa-predicat.h (struct expr_eval_op): New struct.
375 (expr_eval_ops): New typedef.
376 (struct condition): Add type and param_ops fields, remove size field.
377 (add_condition): Replace size parameter with type parameter, add
378 param_ops parameter.
379 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
380 (predicate::add_clause): Add comparisons on type and param_ops.
381 (dump_condition): Add debug dump for param_ops.
382 (remap_after_inlining): Adjust call arguments to add_condition.
383 (add_condition): Replace size parameter with type parameter, add
384 param_ops parameter. Unshare constant value used in conditions.
385 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
386 parameter expressions using param_ops.
387 (decompose_param_expr): New function.
388 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
389 to replace call to unmodified_parm_or_parm_agg_item.
390 (set_switch_stmt_execution_predicate): Likewise.
391 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
392 with type.
393 (inline_read_section): Read param_ops from summary stream.
394 (ipa_fn_summary_write): Write param_ops to summary stream.
395
396 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
397
398 PR rtl-optimization/92107
399 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
400 expression written.
401
402 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
403
404 * config/darwin.c: Update description of fix and continue.
405
406 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
407
408 * config/darwin.c (darwin_binds_local_p): Update to call
409 default_binds_local_p_3 () directly. amend comments.
410
411 2019-10-15 Richard Biener <rguenther@suse.de>
412
413 * lto-streamer-out.c (lto_variably_modified_type_p): New.
414 (tree_is_indexable): Use it.
415 * tree-streamer-out.c (pack_ts_type_common_value_fields):
416 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
417 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
418
419 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
420
421 * config/msp430/msp430.md (zero_extendqipsi2): New.
422 (zero_extendqisi2): Optimize case where src register and base dst
423 register are the same.
424 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
425 (zero_extendpsisi2): Optimize r->m case.
426 Add unnamed insn patterns to catch insns combine searches for when
427 optimizing pointer manipulation.
428
429 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
430
431 * config/msp430/msp430.md: Group zero_extend* insns together.
432
433 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
434
435 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
436 constraint.
437 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
438 POST_INC.
439 (msp430_subreg): Likewise.
440 (msp430_split_addsi): Likewise.
441 (msp430_print_operand_addr): Likewise.
442 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
443 (USE_STORE_POST_INCREMENT): Define.
444 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
445 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
446 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
447 (msp430_general_dst_operand): New.
448 (msp430_general_dst_nonv_operand): New.
449 (msp430_nonsubreg_operand): Remove.
450 (msp430_nonsubreg_dst_operand): New.
451 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
452 of defunct msp430_nonsubreg_operand.
453 (msp430_nonsubregnonpostinc_or_imm_operand): New.
454
455 2019-10-15 Richard Biener <rguenther@suse.de>
456
457 PR tree-optimization/91929
458 * tree-ssa-pre.c (pre_expr_d::loc): New member.
459 (get_or_alloc_expr_for_name): Initialize it.
460 (get_or_alloc_expr_for_constant): Likewise.
461 (phi_translate_1): Copy it.
462 (create_expression_by_pieces): Use the original location
463 of the expression for the inserted stmt.
464 (compute_avail): Record the location of the stmt for the
465 expressions created.
466
467 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
468
469 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
470 before using tree_to_uhwi.
471
472 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
473
474 * config/s390/s390.md: Run %a0:DI splitters only after reload.
475
476 2019-10-15 Richard Biener <rguenther@suse.de>
477
478 PR tree-optimization/92094
479 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
480 do not adjust the reduction definition def type.
481 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
482 defines the latch argument of the PHI.
483
484 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
485
486 PR target/92035
487 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
488 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
489 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
490 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
491 _mm_maskz_roundscale_round_sd): New intrinsics.
492 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
493 __builtin_ia32_rndscales?_mask_round builtins instead of
494 __builtin_ia32_rndscales?_round.
495 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
496 __builtin_ia32_rndscalesd_round): Remove.
497 (__builtin_ia32_rndscaless_mask_round,
498 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
499 * config/i386/sse.md
500 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
501 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
502 ... this, adjust and add subst atrributes to make it maskable.
503
504 2019-10-15 Richard Biener <rguenther@suse.de>
505
506 PR middle-end/92046
507 * common.opt (fallow-store-data-races): New.
508 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
509 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
510 * doc/invoke.texi (fallow-store-data-races): Document.
511 (--param allow-store-data-races): Remove docs.
512 * opts.c (default_options_table): Enable -fallow-store-data-races
513 at -Ofast.
514 (default_options_optimization): Do not enable --param
515 allow-store-data-races at -Ofast.
516 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
517 instead of PARAM_ALLOW_STORE_DATA_RACES.
518 * tree-ssa-loop-im.c (execute_sm): Likewise.
519
520 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
521
522 PR tree-optimization/92085
523 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
524 instead of calling it unconditionally after
525 delete_dead_or_redundant_assignment and fix indentation.
526
527 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
528
529 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
530 TARGET_VFP_DOUBLE.
531 (*fmsub<SDF:mode>4): Likewise.
532 *fnmsub<SDF:mode>4): Likewise.
533 (*fnmadd<SDF:mode>4): Likewise.
534
535 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
536
537 * doc/tree-ssa.texi: Update renamed macro name.
538
539 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
540
541 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
542 vector constants.
543
544 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
545
546 * config/darwin.c: Use unsigned ints for the picbase label
547 counters, initialise the vars explicitly.
548 (update_pic_label_number_if_needed): Move a variable declaration
549 to where it's needed.
550 (machopic_output_function_base_name): Use a more strict checking
551 assert, and and unsigned int for the picbase label counter.
552 (machopic_get_function_picbase): Likewise.
553
554 2019-10-14 Richard Biener <rguenther@suse.de>
555
556 PR middle-end/92046
557 * dse.c (scan_insn): Use param max_active_local_stores.
558 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
559 based on optimization level.
560 * loop-invariant.c (move_loop_invariants): Adjust
561 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
562 * opts.c (default_options_optimization): Do not adjust
563 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
564 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
565
566 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
567
568 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
569
570 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
571
572 * config/arm/arm.c (arm_option_override): Don't override sched
573 pressure algorithm.
574
575 2019-10-14 Richard Biener <rguenther@suse.de>
576
577 PR tree-optimization/92069
578 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
579 cycles do not set vect_nested_cycle on the latch definition.
580
581 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
582
583 * function-abi.h (expr_callee_abi): Declare.
584 * function-abi.cc (expr_callee_abi): New function.
585
586 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
587
588 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
589 into [1,MAX].
590 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
591 non-zero being represented as [1,MAX].
592
593 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
594
595 * tree-sra.c (dump_access): Add missing braces.
596
597 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
598
599 * config/darwin.c (machopic_indirection_name): Rework the
600 function to emit linker-visible symbols only for indirections
601 in the data section. Clean up the code and update comments.
602
603 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
604
605 * config/darwin.c (machopic_indirect_data_reference): Remove
606 redundant code.
607
608 2019-10-13 Nathan Sidwell <nathan@acm.org>
609
610 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
611
612 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613
614 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
615 c99_runtime.
616
617 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
618
619 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
620 so non-virutal are before virutals.
621 (output_function): Avoid body modifications.
622
623 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
624
625 * config/pa/pa.c (pa_output_call): Load descriptor address to register
626 %r22. Load function address before global pointer.
627 (pa_attr_length_indirect_call): Adjust length of inline versions of
628 $$dyncall.
629 (pa_output_indirect_call): Remove fast inline version of $$dyncall
630 before normal cases. Update inline $$dyncall sequences to preserve
631 function descriptor address in register %r22.
632 (TRAMPOLINE_CODE_SIZE): Adjust.
633 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
634 register %r22 contains trampoline address.
635 (pa_trampoline_init): Adjust offsets.
636 (pa_trampoline_adjust_address): Likewise.
637 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
638
639 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
640
641 PR target/67183
642 * config/darwin.c (machopic_indirection): New field to flag
643 non-lazy-symbol-pointers in the data section.
644 (machopic_indirection_name): Compute if an indirection should
645 appear in the data section.
646 (machopic_output_data_section_indirection): New callback split
647 from machopic_output_indirection.
648 (machopic_output_stub_indirection): Likewise.
649 (machopic_output_indirection): Retain the code for non-lazy
650 symbol pointers in their regular section.
651 (machopic_finish): Use the new callbacks to order the indirection
652 output.
653
654 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
655
656 * config/darwin-protos.h (machopic_finish): Delete.
657 * config/darwin.c (machopic_finish): Make static.
658
659 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
660
661 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
662 sections when building kernel extension code.
663
664 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
665
666 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
667 later standard."
668
669 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
670
671 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
672 from warning.
673
674 2019-10-12 Jakub Jelinek <jakub@redhat.com>
675
676 PR middle-end/92063
677 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
678 <case VEC_COND_EXPR>: Return false with *handled = false.
679 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
680 recursing on the first operand.
681 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
682 instead of tree_could_trap_p.
683 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
684
685 2019-10-11 Jim Wilson <jimw@sifive.com>
686
687 PR rtl-optimization/91860
688 * combine.c (subst): If new_rtx is a constant, also check for
689 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
690
691 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
692
693 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
694 INTVAL when calling store_bit_field.
695
696 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
697
698 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
699 size.
700
701 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
702
703 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
704 vectorizable_live_operation.
705 (vectorizable_live_operation): Adjust parameters.
706 * tree-vect-stmts.c (vect_init_vector,
707 vect_gen_widened_results_half): Fix typo in function comment.
708 (can_vectorize_live_stmts): Adjust function comment.
709 Adjust parameters. Adjust call to vectorizable_live_operation.
710 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
711 (vect_transform_stmt): Adjust function comment. Adjust call to
712 can_vectorize_live_stmts.
713 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
714
715 2019-10-11 Richard Biener <rguenther@suse.de>
716
717 PR tree-optimization/90883
718 PR tree-optimization/91091
719 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
720 alias-sets both for recording VN table entries and continuing
721 walking after translating through copies. Handle same-sized
722 reads from SSA names by returning the plain SSA name.
723 (eliminate_dom_walker::eliminate_stmt): Properly handle
724 non-size precision stores in redundant store elimination.
725
726 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
727
728 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
729 (ggc_collect): Dump later to not interfere with release_page dump.
730 (ggc_trim): New function.
731 * ggc-none.c (ggc_trim): New.
732 * ggc.h (ggc_trim): Declare.
733
734 2019-10-11 Richard Biener <rguenther@suse.de>
735
736 PR tree-optimization/92066
737 PR tree-optimization/92046
738 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
739 Fix bogus cost model check.
740
741 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
742
743 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
744 (LANG_HOOKS_DECLS): Add it.
745 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
746 update comment for omp_is_optional_argument.
747 * omp-general.c (omp_is_allocatable_or_ptr): New.
748 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
749 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
750 Fortran's optional arguments and allocatable/pointer scalars
751 with use_device_addr.
752
753 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
754
755 PR target/77918
756 * config/s390/2827.md: Add new opcodes.
757 * config/s390/2964.md: Likewise.
758 * config/s390/3906.md: Likewise.
759 * config/s390/8561.md: Likewise.
760 * config/s390/s390-builtins.def (s390_vfchesb): Use
761 the new vec_cmpgev4sf_quiet_nocc.
762 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
763 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
764 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
765 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
766 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
767 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
768 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
769 * config/s390/s390-modes.def (CCSFPS): New mode.
770 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
771 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
772 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
773 (s390_expand_vec_compare): Use non-signaling patterns where
774 necessary.
775 (s390_reverse_condition): Support CCSFPS.
776 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
777 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
778 (asm_fcmp_op): Likewise.
779 (*smaxv2df3_vx): Use pattern for quiet comparison.
780 (*sminv2df3_vx): Likewise.
781 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
782 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
783 (vec_cmpgt<mode>_quiet_nocc): Likewise.
784 (vec_cmplt<mode>_quiet_nocc): New expander.
785 (vec_cmpge<mode>_quiet_nocc): New pattern.
786 (vec_cmple<mode>_quiet_nocc): New expander.
787 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
788 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
789 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
790 (*vec_cmpge<mode>_signaling_nocc): Likewise.
791 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
792 (vec_cmpungt<mode>): New expander.
793 (vec_cmpunge<mode>): Likewise.
794 (vec_cmpuneq<mode>): Use quiet patterns.
795 (vec_cmpltgt<mode>): Allow only on z14+.
796 (vec_cmpordered<mode>): Use quiet patterns.
797 (vec_cmpunordered<mode>): Likewise.
798 (VEC_CMP_EXPAND): Add ungt and unge.
799
800 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
801
802 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
803 parameter.
804 * lto-streamer-out.c: Include tree-dfa.h.
805 (output_cfg): Do not use cfun.
806 (lto_prepare_function_for_streaming): New.
807 (output_function): Do not push cfun; do not initialize loop optimizer.
808 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
809 * passes.c (ipa_write_summaries): Use it.
810 (ipa_write_optimization_summaries): Do not modify bodies.
811 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
812 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
813 * tree-ssa-dse.c (pass_dse::execute): Update use of
814 renumber_gimple_stmt_uids.
815 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
816
817 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
818
819 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
820 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
821
822 2019-10-10 Joseph Myers <joseph@codesourcery.com>
823
824 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
825 macros.
826 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
827 Also define DFP macros for these conditions.
828 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
829 DEC128_SUBNORMAL_MIN): Do not define.
830 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
831 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
832
833 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
834 Sandra Loosemore <sandra@codesourcery.com>
835
836 PR middle-end/26241
837 * doc/lto.texi (IPA): Reference to the IPA passes.
838 * doc/passes.texi (Pass manager): Add node IPA passes and
839 description for each IPA pass.
840
841 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
842
843 * ipa-reference.c: Do not include splay-tree.h
844 (reference_vars_to_consider): Turn to hash map.
845 (get_static_name, ipa_init, analyze_function, propagate,
846 stream_out_bitmap, ipa_reference_write_optimization_summary,
847 ipa_reference_write_optimization_summary): Update.
848
849 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
850
851 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
852
853 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
854
855 * config/darwin.c: Lookup Objective C metadata and force indirection
856 for IVAR refs.
857
858 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
859
860 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
861 addresses.
862 (mem_operand_gpr): Add check for prefixed addresses.
863 (mem_operand_ds_form): Add check for prefixed addresses.
864 (rs6000_legitimate_offset_address_p): If we support prefixed
865 addresses, check for a 34-bit offset instead of 16-bit.
866 (rs6000_legitimate_address_p): Add check for prefixed addresses.
867 Do not allow load/store with update if the address is prefixed.
868 (rs6000_mode_dependent_address): If we support prefixed
869 addresses, check for a 34-bit offset instead of 16-bit.
870
871 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
872
873 PR target/77918
874 * config/s390/vector.md (vcond_comparison_operator): New
875 predicate.
876 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
877
878 2019-10-10 David Malcolm <dmalcolm@redhat.com>
879
880 PR 87488
881 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
882 -D.
883 * configure.ac (--with-documentation-root-url): New option.
884 * configure: Regenerate.
885 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
886 option URL, add it as a new string field of the diagnostic option.
887 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
888 (print_option_information): If get_option_url is non-NULL, call
889 it, and if the result is non-NULL, potentially emit an escape
890 sequence to markup the option text with the resulting URL.
891 * diagnostic.h (diagnostic_context::get_option_url): New callback.
892 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
893 example of JSON output.
894 * opts-diagnostic.h (get_option_url): New decl.
895 * opts.c (get_option_url): New function.
896 * toplev.c (general_init): Initialize the get_option_url callback.
897
898 2019-10-10 David Malcolm <dmalcolm@redhat.com>
899
900 PR 87488
901 * common.opt (fdiagnostics-urls=): New option.
902 (diagnostic-url.h): Add SourceInclude.
903 (diagnostic_url_rule): New enum.
904 * diagnostic-color.c: Include "diagnostic-url.h".
905 (diagnostic_urls_enabled_p): New function.
906 * diagnostic-url.h: New file.
907 * diagnostic.c: Include "diagnostic-url.h".
908 (diagnostic_urls_init): New function.
909 * diagnostic.h (diagnostic_urls_init): New decl.
910 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
911 -fdiagnostics-urls to the list.
912 (-fdiagnostics-urls): New option.
913 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
914 (driver::global_initializations): Call diagnostic_urls_init.
915 * opts-global.c (init_options_once): Likewise.
916 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
917 * pretty-print.c (pretty_printer::pretty_printer): Initialize
918 show_urls.
919 (pp_begin_url): New function.
920 (pp_end_url): New function.
921 (selftest::test_urls): New selftest.
922 (selftest::pretty_print_c_tests): Call it.
923 * pretty-print.h (pretty_printer::show_urls): New field.
924 (pp_begin_url): New decl.
925 (pp_end_url): New decl.
926
927 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
928
929 PR target/92022
930 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
931
932 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
933
934 PR target/88630
935 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
936 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
937 also for TARGET_FPU_SH4_300.
938 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
939 TARGET_SH4_300.
940 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
941 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
942 (*negsf2_i): Split into ...
943 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
944 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
945 (**abssf2_i): Split into ...
946 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
947 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
948 (*negdf2_i): Split into ...
949 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
950 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
951 (**abssf2_i): Split into ...
952 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
953
954 2019-10-10 Richard Biener <rguenther@suse.de>
955
956 PR middle-end/92046
957 * opts.c (finish_options): Do not influence global --params
958 from options that are adjustable per function.
959 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
960 Apply --param adjustment based on active cost-model.
961 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
962 further store-sinking when vectorization or if-conversion
963 are not enabled.
964
965 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
966
967 PR middle-end/92037
968 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
969 rather than ggc_alloc_cleared to alloc symbol table.
970 * toplev.c (general_init): Likewise.
971 * cgraph.h (symbol_table): Explicitly construct every field.
972
973 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
974
975 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
976 (PF_Z15): ... this.
977 * config.gcc: Add z15 as option for --with-arch and --with-tune
978 configure switches.
979 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
980 error reporting for unsupported builtins.
981 * config/s390/s390-opts.h (enum processor_type): Rename
982 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
983 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
984 * config/s390/driver-native.c (s390_host_detect_local_cpu):
985 Likewise.
986 * config/s390/s390-builtins.def: Likewise.
987 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
988 (s390_expand_builtin): Add missing check for unsupported builtins.
989 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
990 (s390_rtx_costs): Likewise.
991 (s390_get_sched_attrmask): Rename arch13 to z15.
992 (s390_get_unit_mask): Likewise.
993 (s390_is_fpd): Likewise.
994 (s390_is_fxd): Likewise.
995 * config/s390/s390.h (enum processor_flags): Likewise.
996 * config/s390/s390.md: Likewise.
997 * config/s390/vector.md: Likewise.
998 * config/s390/vx-builtins.md: Likewise.
999 * config/s390/s390.opt: Add z15 to processor_type value.
1000
1001 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1002
1003 PR target/91035
1004 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1005 prototype.
1006 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1007 ("split_stack_data", "split_stack_call")
1008 ("split_stack_call_<mode>", "split_stack_cond_call")
1009 ("split_stack_cond_call_<mode>"): Remove.
1010 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1011 insn definition.
1012 * config/s390/s390.c (s390_output_split_stack_data): New function.
1013 (s390_expand_split_stack_prologue): Use the merged expander.
1014
1015 2019-10-09 Martin Sebor <msebor@redhat.com>
1016
1017 PR tree-optimization/90879
1018 * builtins.c (check_access): Avoid using maxbound when null.
1019 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1020 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1021 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1022 conditional.
1023 (get_range_strlen): Overwrite initial maxbound when non-null.
1024 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1025 changes.
1026 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1027 (used_only_for_zero_equality): New function.
1028 (handle_builtin_memcmp): Call it.
1029 (determine_min_objsize): Return an integer instead of tree.
1030 (get_len_or_size, strxcmp_eqz_result): New functions.
1031 (maybe_warn_pointless_strcmp): New function.
1032 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1033 between a longer string and a smaller array.
1034 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1035
1036 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1037
1038 * config/darwin.c (darwin_override_options): Make the check for
1039 Objective-C ABI version more specific for 64bit code.
1040
1041 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1042
1043 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1044 indicate that the new symbol is an indirection.
1045 (machopic_indirect_call_target): Likewise.
1046 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1047 (MACHO_SYMBOL_INDIRECTION_P): New.
1048 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1049
1050 2019-10-08 Jason Merrill <jason@redhat.com>
1051
1052 * doc/invoke.texi: Document -fconcepts-ts.
1053
1054 2019-10-09 Richard Biener <rguenther@suse.de>
1055
1056 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1057 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1058
1059 2019-10-08 Richard Biener <rguenther@suse.de>
1060
1061 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1062 (_stmt_vec_info::force_single_cycle): Likewise.
1063 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1064 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1065 * tree-vect-loop.c (vectorizable_reduction): Set
1066 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1067 (vect_transform_reduction): Use them to remove redundant code.
1068 (vect_transform_cycle_phi): Likewise.
1069
1070 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1071
1072 PR tree-optimization/90836
1073 * gcc/match.pd (popcount): New pattern.
1074
1075 2019-10-08 Martin Sebor <msebor@redhat.com>
1076
1077 PR middle-end/92026
1078 PR middle-end/92014
1079 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1080 again once nbytes has been set. Set the access size when not yet set.
1081
1082 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1083
1084 * config/darwin.c (machopic_select_section): Remove dead code for
1085 old Objective-C section selection method, replace with unreachable.
1086
1087 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1088
1089 * config/darwin.c (machopic_indirect_data_reference): Check for
1090 required indirections before making direct access to defined
1091 values.
1092 (machopic_output_indirection): Place the indirected pointes for
1093 required indirections into the non-lazy symbol pointers section.
1094 (darwin_encode_section_info):
1095 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1096 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1097
1098 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1099
1100 PR target/91994
1101 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1102 instead of ALL_SSE_REG to check if function call preserves some
1103 256-bit SSE registers.
1104
1105 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1106
1107 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1108 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1109 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1110
1111 2019-10-08 Richard Biener <rguenther@suse.de>
1112
1113 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1114 (_stmt_vec_info::is_reduc_info): Add.
1115 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1116 (vectorizable_condition): Remove.
1117 (vectorizable_shift): Likewise.
1118 (vectorizable_reduction): Adjust.
1119 (info_for_reduction): New.
1120 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1121 (vect_analyze_scalar_cycles_1): ... here.
1122 (vect_analyze_loop_operations): Adjust.
1123 (needs_fold_left_reduction_p): Simplify for single caller.
1124 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1125 for nested cycles not part of double reductions.
1126 (vect_model_reduction_cost): Pass in the reduction type.
1127 (info_for_reduction): New function.
1128 (vect_create_epilog_for_reduction): Use it, access reduction
1129 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1130 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1131 (vectorize_fold_left_reduction): Remove pointless assert.
1132 (vectorizable_reduction): Analyze the full reduction when
1133 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1134 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1135 stmt code-generation to vectorizable_* in most cases. Verify
1136 code-generation only for cases handled by
1137 vect_transform_reductuon.
1138 (vect_transform_reduction): Use info_for_reduction to get at
1139 reduction meta. Simplify.
1140 (vect_transform_cycle_phi): Likewise.
1141 (vectorizable_live_operation): Likewise.
1142 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1143 at the PHI node for STMT_VINFO_REDUC_TYPE.
1144 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1145 longer necessary code.
1146 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1147 (vectorizable_condition): Likewise. Get at reduction related
1148 info via info_for_reduction.
1149 (vect_analyze_stmt): Adjust.
1150 (vect_transform_stmt): Likewise.
1151 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1152 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1153
1154 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1155
1156 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1157 -fno-fp-int-builtin-inexact default for C2X.
1158
1159 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1160 Richard Biener <rguenther@suse.de>
1161
1162 PR tree-optimization/91532
1163 * tree-if-conv.c: Include tree-ssa-dse.h.
1164 (ifcvt_local_dce): Change param from bb to loop,
1165 and call dse_classify_store.
1166 (tree_if_conversion): Pass loop instead of loop->header as arg
1167 to ifcvt_local_dce.
1168 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1169 (delete_dead_or_redundant_assignment): Remove static qualifier from
1170 declaration, and add prototype in tree-ssa-dse.h.
1171 (dse_store_status): Move to tree-ssa-dse.h.
1172 (dse_classify_store): Remove static qualifier and add new tree param
1173 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1174 * tree-ssa-dse.h: New header.
1175
1176 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1177
1178 * config/darwin.c (machopic_output_indirection): Don't put
1179 hidden symbol indirections into the .data section, use the
1180 non-lazy symbol pointers section as normal.
1181 (darwin_encode_section_info): Record if a symbol is hidden.
1182 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1183 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1184
1185 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1186
1187 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1188 predicates instead of accessing bits directly.
1189 (machopic_indirect_call_target): Likewise.
1190 (machopic_output_indirection): Likewise.
1191 (darwin_encode_section_info): Improve description. Use renamed
1192 symbol flags. Use predicate macros for variables and functions.
1193 * config/darwin.h:
1194 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1195 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1196 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1197 (MACHO_SYMBOL_VARIABLE_P): New.
1198 (MACHO_SYMBOL_DEFINED_P):New.
1199 (MACHO_SYMBOL_STATIC_P): New.
1200 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1201 (SYMBOL_FLAG_SUBT_DEP): New.
1202 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1203
1204 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1205
1206 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1207 (msp430_expand_epilogue): Likewise.
1208 * config/msp430/predicates.md: Likewise.
1209 * config/msp430/msp430.md: Likewise.
1210 Replace blocks of 8 spaces with tabs.
1211
1212 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1213
1214 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1215 * config/msp430/msp430.c (msp430_split_addsi): New.
1216 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1217 a block of C code for splitting addsi.
1218
1219 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1220
1221 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1222 ix86_expand_rounddf_32): Reorder functions.
1223 * config/i386/i386-protos.h: Update.
1224
1225 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1226
1227 * config.in: Regenerate.
1228 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1229 Add new "Yx" constraint.
1230 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1231 function.
1232 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1233 prototype.
1234 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1235 code/data region to be selected in the small memory model.
1236 (msp430_section_attr): Don't warn if the "section" and "lower"
1237 attributes are used together.
1238 (msp430_handle_generic_attribute): Likewise.
1239 (msp430_var_in_low_mem): New function.
1240 (TARGET_ENCODE_SECTION_INFO): Define.
1241 (msp430_encode_section_info): New function.
1242 (gen_prefix): Return early in the small memory model.
1243 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1244 ".lower" prefix if -m{code,data}-region=lower have been passed.
1245 (msp430_output_aligned_decl_common): Emit common symbols when
1246 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1247 set.
1248 (TARGET_ASM_FILE_END): Define.
1249 (msp430_file_end): New function.
1250 (msp430_do_not_relax_short_jumps): Allow relaxation when
1251 function will be in the lower region.
1252 (msp430_op_not_in_high_mem): New function.
1253 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1254 the 'X' operand selector.
1255 Clarify comment for 'x' operand selector.
1256 * config/msp430/msp430.h (LINK_SPEC): Propagate
1257 -m{code,data}-region to the linker via spec function
1258 msp430_propagate_region_opt.
1259 (msp430_propagate_region_opt): New prototype.
1260 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1261 (SYMBOL_FLAG_LOW_MEM): Define.
1262 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1263 selector.
1264 (zero_extendqihi2): Fix operand number used by "%X" selector.
1265 (zero_extendqisi2): Likewise.
1266 (zero_extendhisi2): Likewise.
1267 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1268 (movhi): Likewise.
1269 (addqi3): Likewise.
1270 (addhi3): Likewise.
1271 (addsi3): Likewise.
1272 (addhi3_cy): Likewise.
1273 (addchi4_cy): Likewise.
1274 (subqi3): Likewise.
1275 (subhi3): Likewise.
1276 (subsi3): Likewise.
1277 (bic<mode>3): Likewise.
1278 (and<mode>3): Likewise.
1279 (ior<mode>3): Likewise.
1280 (xor<mode>3): Likewise.
1281 (slli_1): Add missing "%X" operand selector.
1282 (slll_1): Likewise.
1283 (slll_2): Likewise.
1284 (srai_1): Likewise.
1285 (sral_1): Likewise.
1286 (sral_2): Likewise.
1287 (srli_1): Likewise.
1288 (srll_1): Likewise.
1289 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1290 selector.
1291 (cbranchhi4_real): Likewise.
1292 (cbranchqi4_reversed): Likewise.
1293 (cbranchhi4_reversed): Likewise.
1294 (*bitbranch<mode>4): Likewise.
1295 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1296 * config/msp430/msp430.opt (mcode-region=): Set default to
1297 MSP430_REGION_LOWER. Improve docstring.
1298 (mdata-region=): Likewise.
1299 (muse-lower-region-prefix): New option.
1300 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1301 mdata-region=none multilib.
1302 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1303 mdata-region=none multilib.
1304 MULTILIB_EXCEPTIONS: Remove.
1305 MULTILIB_REQUIRED: Define.
1306 * configure: Regenerate.
1307 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1308 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1309 * doc/extend.texi: Clarify comment for {upper,lower,either}
1310 function attributes.
1311 Add separate description for "lower" variable attribute.
1312
1313 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1314
1315 PR target/77918
1316 * optabs-tree.c (vcond_icode_p): New function.
1317 (vcond_eq_icode_p): Likewise.
1318 (expand_vec_cond_expr_p): Use vcond_icode_p and
1319 vcond_eq_icode_p.
1320 * optabs.c (can_vcond_compare_p): New function.
1321 * optabs.h (can_vcond_compare_p): Likewise.
1322
1323 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1324
1325 PR target/77918
1326 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1327 caller passes a non-trapping condition.
1328 (is_gimple_condexpr): Allow trapping conditions.
1329 (is_gimple_condexpr_1): New helper function.
1330 (is_gimple_condexpr_for_cond): New function, acts like old
1331 is_gimple_condexpr.
1332 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1333 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1334 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1335 * gimplify.c (gimplify_cond_expr): Use
1336 is_gimple_condexpr_for_cond.
1337 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1338 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1339 VEC_COND_EXPR.
1340 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1341 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1342 is_gimple_condexpr_for_cond, remove pointless tmp check
1343 (forward_propagate_into_cond): Remove pointless tmp check.
1344
1345 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1346
1347 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1348 match that of other gsi_next_* functions. Adjust the comment.
1349 (gsi_start_nonvirtual_phis): New function.
1350 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1351 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1352
1353 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1354
1355 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1356 setjmp situation here. Fix a verb's ending: "the exact variables or
1357 elements for which there are warnings depends" -> "... depend".
1358
1359 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1360
1361 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1362
1363 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1364
1365 * ipa-prop.c (ipa_vr::nonzero_p): New.
1366 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1367 non-zero range.
1368 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1369 * tree-vrp.c (range_has_numeric_bounds_p): New.
1370 (range_int_cst_p): Use range_has_numeric_bounds_p.
1371 (get_range_op_handler): New.
1372 (supported_types_p): New.
1373 (defined_ranges_p): New.
1374 (drop_undefines_to_varying): New.
1375 (range_fold_binary_symbolics_p): New.
1376 (range_fold_unary_symbolics_p): New.
1377 (range_fold_unary_expr): Extract out into above functions.
1378 (range_fold_binary_expr): Same.
1379 (value_range_base::normalize_addresses): New.
1380 (value_range_base::normalize_symbolics): Normalize addresses.
1381 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1382
1383 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1384
1385 * tree-vrp.c (value_range_base::singleton_p): Use
1386 value_range_base::num_pairs instead of vrp_val_is* to check
1387 if a range has one sub-range.
1388
1389 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1390
1391 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1392 DEF is not a true earlyclobber but is tied to a specific input
1393 operand, and so is effectively earlyclobber wrt inputs that have
1394 different values.
1395 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1396
1397 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1398
1399 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1400 (pod_mode): Mark operators likewise.
1401 (scalar_int_mode): Mark non-default constructors and
1402 operators with CONSTEXPR.
1403 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1404 (fixed_size_mode): Likewise.
1405
1406 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1407
1408 PR target/91994
1409 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1410 and wrap the unspec_volatile in a parallel.
1411 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1412 the unspec_volatile.
1413 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1414 unspec_volatile to be wrapped in a parallel.
1415 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1416 (ix86_add_reg_usage_to_vzerouppers): New functions.
1417 (rest_of_handle_insert_vzeroupper): Use them to add register
1418 usage information to the vzeroupper instructions.
1419
1420 2019-10-07 Richard Biener <rguenther@suse.de>
1421
1422 PR tree-optimization/91975
1423 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1424 handle invariants.
1425
1426 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1427
1428 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1429 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1430
1431 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1432
1433 * config/darwin.c (darwin_override_options): Adjust objective-c
1434 ABI version error messages to avoid punctuation and contracted
1435 negations.
1436
1437 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1438
1439 * ipa-inline.c: Fix type; compute size rather than self_size
1440 for size of caller function.
1441
1442 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1443
1444 PR target/59888
1445 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1446 choose const_data section for constants with relocations.
1447 (machopic_select_section): Pass relocation flag to
1448 darwin_rodata_section ().
1449
1450 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1451
1452 PR tree-optimization/91734
1453 * generic-match-head.c: Include fold-const-call.h.
1454 * match.pd (sqrt(x) cmp c): Check the boundary value and
1455 in case inexact computation of c*c affects comparison of the boundary,
1456 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1457 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1458 for -frounding-math. For c2, try the next smaller or larger floating
1459 point constant depending on comparison code and if it has the same
1460 sqrt as c2, use it instead of c2.
1461
1462 2019-10-04 Martin Sebor <msebor@redhat.com>
1463
1464 PR middle-end/91977
1465 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1466 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1467 uninitialized objects.
1468
1469 2019-10-04 Martin Sebor <msebor@redhat.com>
1470
1471 * builtins.c (compute_objsize): Add an argument.
1472 * tree-object-size.c (addr_object_size): Same.
1473 (compute_builtin_object_size): Same.
1474 * tree-object-size.h (compute_builtin_object): Same.
1475
1476 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1477
1478 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1479
1480 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1481
1482 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1483
1484 2019-10-04 Martin Jambor <mjambor@suse.cz>
1485
1486 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1487 fntype when switching to calling memcpy instead of memset.
1488
1489 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1490
1491 * hash-table.h (hash_table::empty_slow): Don't assign
1492 size_t values to int variables.
1493
1494 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1495
1496 * expr.c (convert_mode_scalar): Remove shadowing local var.
1497 (emit_block_move): Rename local vars.
1498 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1499 (emit_push_insn): Rename local vars.
1500 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1501 shadowing local vars.
1502 (store_constructor): Remove shadowing local vars. Rename local var.
1503 (store_field, expand_cond_expr_using_cmove,
1504 expand_expr_real_2): Remove shadowing local vars.
1505 (expand_expr_real_1,
1506 do_store_flag): Remove shadowing local vars. Rename local vars.
1507
1508 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1509
1510 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1511
1512 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1513
1514 * genmatch.c (commutate): Rename local var.
1515 (lower_cond): Reuse local var.
1516 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1517 dt_operand::gen, dt_operand::gen_gimple_expr,
1518 dt_simplify::gen): Add a param. Rename generated vars.
1519 (decision_tree::insert_operand,
1520 (capture_info::walk_match, capture_info::walk_result,
1521 capture_info::walk_c_expr): Rename local vars.
1522 (expr::gen_transform): Rename generated vars.
1523 Use snprintf. Rename local vars.
1524 (capture::gen_transform, dt_operand::get_name,
1525 dt_operand::gen_opname): Rename generated vars.
1526 (write_predicate): Adjust call to gen_kids.
1527 (parser::get_internal_capture_id): Rename generated vars.
1528 (parser::parse_expr): Rename local vars.
1529 (parser::parse_if): Remove local var.
1530 (parser::parse_pattern, add_operator): Rename local vars.
1531
1532 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1533
1534 * builtins.def (DEF_C2X_BUILTIN): New macro.
1535 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1536 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1537 (strndup): Use DEF_C2X_BUILTIN.
1538 * coretypes.h (enum function_class): Add function_c2x_misc.
1539
1540 2019-10-04 Maya Rashish <coypu@sdf.org>
1541
1542 * ira-color.c (update_costs_from_allocno): Call
1543 ira_init_register_move_cost_if_necessary.
1544
1545 2019-10-04 Jeff Law <law@redhat.com>
1546
1547 * config/h8300/h8300.md (cpymemsi): Disable.
1548 (movmd, movmd_internal_<mode>, movstr, movsd):
1549 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1550 (movmd splitter, movsd splitter): Likewise.
1551
1552 * range-op.cc (range_tests): Avoid two tests when ints and
1553 shorts are the same size.
1554
1555 2019-10-04 Richard Biener <rguenther@suse.de>
1556
1557 PR lto/91968
1558 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1559 BLOCK_VARS.
1560
1561 2019-10-04 Richard Biener <rguenther@suse.de>
1562
1563 PR tree-optimization/91982
1564 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1565 against EXTRACT_LAST_REDUCTION.
1566 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1567
1568 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1569
1570 * range-op.o (value_range_from_overflowed_bounds): Rename from
1571 adjust_overflow_bound.
1572 (value_range_with_overflow): Rename from
1573 create_range_with_overflow.
1574 (create_possibly_reversed_range): Adjusted for above renames.
1575 (operator_*::wi_fold): Same.
1576 (cross_product_operator::wi_cross_productor): Same.
1577
1578 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1579
1580 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1581 -Wshadow=compatible-local): Fix description.
1582 Add an example where -Wshadow=compatible-local does not
1583 warn.
1584
1585 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1586
1587 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1588
1589 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1590 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1591
1592 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1593
1594 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1595 can_move_by_pieces issue.
1596
1597 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1598
1599 PR target/87243
1600 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1601 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1602 is available and the user has not set one on the command line.
1603
1604 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1605
1606 PR target/91769
1607 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1608 instead of REGNO equality check on addr.reg.
1609
1610 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1611
1612 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1613 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1614 * doc/invoke.texi (inline-heuristics-hint-percent,
1615 inline-heuristics-hint-percent-O2): Document.
1616 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1617 hint attribute.
1618 (can_inline_edge_by_limits_p): Use it.
1619
1620 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1621
1622 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1623 to print CONST_DOUBLEs.
1624
1625 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1626
1627 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1628 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1629 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1630
1631 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1632
1633 * Makefile.in (OBJS): Add range.o and range-op.o.
1634 Remove wide-int-range.o.
1635 * function-tests.c (test_ranges): New.
1636 (function_tests_c_tests): Call test_ranges.
1637 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1638 range_fold_unary_expr instead of extract_range_from_unary_expr.
1639 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1640 * range-op.cc: New file.
1641 * range-op.h: New file.
1642 * range.cc: New file.
1643 * range.h: New file.
1644 * selftest.h (range_tests): New prototype.
1645 * ssa.h: Include range.h.
1646 * tree-vrp.c (value_range_base::value_range_base): New
1647 constructors.
1648 (value_range_base::singleton_p): Do not call
1649 ranges_from_anti_range until sure we will need to.
1650 (value_range_base::type): Rename gcc_assert to
1651 gcc_checking_assert.
1652 (vrp_val_is_max): New argument.
1653 (vrp_val_is_min): Same.
1654 (wide_int_range_set_zero_nonzero_bits): Move from
1655 wide-int-range.cc.
1656 (extract_range_into_wide_ints): Remove.
1657 (extract_range_from_multiplicative_op): Remove.
1658 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1659 from extract_range_from_binary_expr.
1660 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1661 from extract_range_from_binary_expr.
1662 (extract_range_from_binary_expr): Remove.
1663 (normalize_for_range_ops): New.
1664 (range_fold_binary_expr): New.
1665 (range_fold_unary_expr): New.
1666 (value_range_base::num_pairs): New.
1667 (value_range_base::lower_bound): New.
1668 (value_range_base::upper_bound): New.
1669 (value_range_base::upper_bound): New.
1670 (value_range_base::contains_p): New.
1671 (value_range_base::invert): New.
1672 (value_range_base::union_): New.
1673 (value_range_base::intersect): New.
1674 (range_compatible_p): New.
1675 (value_range_base::operator==): New.
1676 (determine_value_range_1): Call range_fold_*expr instead of
1677 extract_range_from_*expr.
1678 * tree-vrp.h (class value_range_base): Add new constructors.
1679 Add methods for union_, intersect, operator==, contains_p,
1680 num_pairs, lower_bound, upper_bound, invert.
1681 (vrp_val_is_min): Add handle_pointers argument.
1682 (vrp_val_is_max): Same.
1683 (extract_range_from_unary_expr): Remove.
1684 (extract_range_from_binary_expr): Remove.
1685 (range_fold_unary_expr): New.
1686 (range_fold_binary_expr): New.
1687 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1688 range_fold_binary_expr instead of extract_range_from_binary_expr.
1689 (vr_values::extract_range_basic): Same.
1690 (vr_values::extract_range_from_unary_expr): Call
1691 range_fold_unary_expr instead of extract_range_from_unary_expr.
1692 * wide-int-range.cc: Remove.
1693 * wide-int-range.h: Remove.
1694
1695 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1696
1697 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1698 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1699 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1700 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1701 macro.
1702
1703 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1704
1705 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1706 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1707 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1708 * glimits.h: Likewise.
1709
1710 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR rtl-optimization/91976
1713 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1714 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1715 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1716
1717 2019-10-02 Martin Sebor <msebor@redhat.com>
1718
1719 PR tree-optimization/80936
1720 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1721
1722 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1723
1724 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1725 instead of reg_class_contents[ALL_REGS].
1726
1727 2019-09-30 Jason Merrill <jason@redhat.com>
1728
1729 Add some hash_map_safe_* functions like vec_safe_*.
1730 * hash-map.h (default_hash_map_size): New variable.
1731 (create_ggc): Use it as default argument.
1732 (hash_map_maybe_create, hash_map_safe_get)
1733 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1734
1735 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1736
1737 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1738 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1739 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1740 (can_inline_edge_by_limits_p): Use it.
1741 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1742 (want_inline_small_function_p): Use O2 bounds.
1743 (edge_badness): LIkewise.
1744 * opts.c (default_options): Add OPT_finline_functions.
1745 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1746 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1747 New parameters.
1748 * doc/invoke.texi (-finline-functions): Update documentation.
1749 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1750 inline-min-speedup-O2): Document.
1751 (early-inlining-insns-O2): Simplify docs.
1752
1753 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1754
1755 PR rtl-optimization/87047
1756 * ifcvt.c (average_cost): New static function. Use it...
1757 (noce_process_if_block): ... here.
1758
1759 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1760
1761 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1762 * config/rs6000/rs6000-string.c (expand_block_move): Add
1763 might_overlap parm.
1764 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1765 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1766
1767 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1768
1769 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1770 (expand_builtin_memcpy): Use might_overlap parm.
1771 (expand_builtin_mempcpy_args): Use might_overlap parm.
1772 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1773 (expand_builtin_memory_copy_args): Add might_overlap parm.
1774 * expr.c (emit_block_move_via_cpymem): Rename to
1775 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1776 or movmem optab as appropriate.
1777 (emit_block_move_hints): Add might_overlap parm, do the right
1778 thing for might_overlap==true.
1779 * expr.h (emit_block_move_hints): Update prototype.
1780
1781 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1782
1783 * tree-eh.h (unsplit_eh_edges): Declare.
1784 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1785 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1786 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1787 (struct store_immediate_info): Add lp_nr field.
1788 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1789 initialize lp_nr with it.
1790 (struct merged_store_group): Add lp_nr and only_constants fields.
1791 (merged_store_group::merged_store_group): Initialize them.
1792 (merged_store_group::can_be_merged_into): Deal with them.
1793 (pass_store_merging): Rename terminate_and_release_chain into
1794 terminate_and_process_chain.
1795 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1796 renaming and remove useless assertions.
1797 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1798 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1799 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1800 instead of always recomputing it and compare lp_nr.
1801 (imm_store_chain_info::output_merged_store): If the group is in an
1802 active EH region, register new stores if they can throw. Moreover,
1803 if the insertion has created new basic blocks, adjust the PHI nodes
1804 of the post landing pad.
1805 (imm_store_chain_info::output_merged_stores): If the original stores
1806 are in an active EH region, deregister them.
1807 (lhs_valid_for_store_merging_p): Prettify.
1808 (adjust_bit_pos): New function extracted from...
1809 (mem_valid_for_store_merging): ...here. Use it for the base address
1810 and also for the offset if it is the addition of a constant.
1811 (lp_nr_for_store): New function.
1812 (pass_store_merging::process_store): Change return type to bool.
1813 Call lp_nr_for_store to initialize the store info. Propagate the
1814 return status of various called functions to the return value.
1815 (store_valid_for_store_merging_p): New predicate.
1816 (enum basic_block_status): New enumeration.
1817 (get_status_for_store_merging): New function.
1818 (pass_store_merging::execute): If the function can throw and catch
1819 non-call exceptions, unsplit the EH edges on entry and clean up the
1820 CFG on exit if something changed. Call get_status_for_store_merging
1821 for every basic block and keep the chains open across basic blocks
1822 when possible. Terminate and process open chains at the end, if any.
1823
1824 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1825
1826 * reginfo.c (globalize_reg): Fix shadowed variable in
1827 function_abis walk.
1828
1829 2019-10-02 Martin Jambor <mjambor@suse.cz>
1830
1831 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1832 do not compute some stuff when set.
1833 (cgraph_node::create_edge): Likewise.
1834 (cgraph_node::create_indirect_edge): Renamed last parameter to
1835 coning_p and flipped its meaning, don't even calculate
1836 inline_failed when set.
1837 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1838 (symbol_table::::create_edge): Likewise.
1839 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1840 the default value.
1841 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1842 call graph edge creating functions.
1843
1844 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1845
1846 PR c++/91222
1847 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1848 namespace types.
1849
1850 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1851
1852 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1853
1854 2019-10-02 Richard Biener <rguenther@suse.de>
1855
1856 * tree-vectorizer.h (vect_transform_reduction): Declare.
1857 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1858 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1859 stmt transform to ...
1860 (vect_transform_reduction): ... this.
1861
1862 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1863
1864 * omp-low.c (lower_omp_target): Dereference optional argument
1865 to work with the right pointer.
1866
1867 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1868
1869 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1870 false.
1871 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1872 * langhooks.h (omp_is_optional_argument): New hook.
1873 * omp-general.c (omp_is_optional_argument): New.
1874 * omp-general.h (omp_is_optional_argument): New declaration.
1875 * omp-low.c (lower_omp_target): Create temporary for received value
1876 and take the address for new_var if the original variable was a
1877 DECL_BY_REFERENCE. Use size of referenced object when a
1878 pass-by-reference optional argument used as argument to firstprivate.
1879
1880 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1881
1882 PR tree-optimization/91940
1883 * tree-vect-patterns.c: Include tree-vector-builder.h and
1884 vec-perm-indices.h.
1885 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1886 unpromoting the argument back to uint16_t, or by converting into a
1887 rotate, or into shifts plus ior.
1888
1889 2019-10-02 Richard Biener <rguenther@suse.de>
1890
1891 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1892 New.
1893 (vect_transform_cycle_phi): Declare.
1894 * tree-vect-stmts.c (vect_transform_stmt): Call
1895 vect_transform_cycle_phi.
1896 * tree-vect-loop.c (vectorizable_reduction): Split out
1897 PHI transformation stage to ...
1898 (vect_transform_cycle_phi): ... here.
1899
1900 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1901
1902 PR middle-end/91957
1903 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1904 eliminable registers.
1905 (make_hard_regno_live): Likewise, and don't make them live.
1906
1907 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1908
1909 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1910 Call pp_emit_prefix.
1911 (layout::print_source_line): Likewise.
1912 (layout::start_annotation_line): Likewise.
1913 (diagnostic_show_locus): Remove call to temporarily clear the
1914 prefix.
1915 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1916 interaction of pp_set_prefix with rulers and fix-it hints.
1917 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1918 prefix when calling diagnostic_show_locus, rather than destroying
1919 it afterwards.
1920 (print_parseable_fixits): Temporarily clear prefix.
1921 * pretty-print.c (pp_format): Save and restore line_length, rather
1922 than assuming it is zero.
1923 (pp_output_formatted_text): Remove assertion that line_length is
1924 zero.
1925
1926 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1927
1928 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1929 Rename to ...
1930 (nonoverlapping_refs_since_match_p): ... this; handle also
1931 ARRAY_REFs.
1932 (alias_stats): Update stats.
1933 (dump_alias_stats): Likewise.
1934 (cheap_array_ref_low_bound): New function.
1935 (aliasing_matching_component_refs_p): Add partial_overlap
1936 argument;
1937 pass it to nonoverlapping_refs_since_match_p.
1938 (aliasing_component_refs_walk): Update call of
1939 aliasing_matching_component_refs_p
1940 (nonoverlapping_array_refs_p): New function.
1941 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1942 indirect_refs_may_alias_p): Update calls of
1943 nonoverlapping_refs_since_match_p.
1944
1945 2019-10-01 Maya Rashish <coypu@sdf.org>
1946
1947 PR target/85401
1948 * ira-color.c (allocno_copy_cost_saving): Call
1949 ira_init_register_move_cost_if_necessary.
1950
1951 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1952
1953 * Makefile.in (gnat_install_lib): New variable.
1954 * configure.ac: Substitute it.
1955 * configure: Regenerate.
1956
1957 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1958
1959 PR lto/91222
1960 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1961 is matched with non-C++ type
1962
1963 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1964
1965 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1966 after local CSE.
1967
1968 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1969
1970 * doc/invoke.texi (early-inlining-insns-O2): Document.
1971 (early-inlining-insns): Update.
1972 * params.def (early-inlining-insns-O2): New bound.
1973 (early-inlining-insns): Update docs.
1974 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1975
1976 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1977
1978 PR target/88562
1979 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1980 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1981 a memory access insn.
1982
1983 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1984
1985 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1986 vpmsumd.
1987
1988 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1989
1990 PR target/77918
1991 * config/s390/s390.c (s390_expand_vec_compare): Use
1992 gen_vec_cmpordered and gen_vec_cmpunordered.
1993 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1994 vec_unordered): Delete.
1995 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1996 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1997 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1998 (vec_cmp<code>): Generic dispatcher.
1999
2000 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2001
2002 PR target/77918
2003 * config/s390/vector.md (V_HW): Add V1TI in order to make
2004 vcond$a$b generate vcondv1tiv1tf.
2005
2006 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2007
2008 PR rtl-optimization/91948
2009 * ira-build.c (ira_create_allocno): Initialize
2010 ALLOCNO_CROSSED_CALLS_ABIS.
2011 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2012 than regno to ira_need_caller_save_p.
2013
2014 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2015
2016 * config/i386/i386-options.c
2017 (ix86_recompute_optlev_based_flags): New, moved out of...
2018 (ix86_option_override_internal): ... this. Call it.
2019 (ix86_override_options_after_change): Call it here too.
2020
2021 PR debug/91507
2022 * dwarf2out.c (override_type_for_decl_p): New.
2023 (gen_variable_die): Use it.
2024
2025 2019-10-01 Richard Biener <rguenther@suse.de>
2026
2027 * tree-vect-loop.c (vectorizable_reduction): Move variables
2028 to where they are used.
2029
2030 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2031
2032 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2033 (build_def_use): Use PC instead of CC0 in a comment.
2034
2035 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2036
2037 * rtl.def (CLOBBER_HIGH): Delete.
2038 * doc/rtl.texi (clobber_high): Remove documentation.
2039 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2040 (reg_is_clobbered_by_clobber_high): Delete.
2041 (gen_hard_reg_clobber_high): Likewise.
2042 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2043 * cfgexpand.c (expand_gimple_stmt): Likewise.
2044 * combine-stack-adj.c (single_set_for_csa): Likewise.
2045 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2046 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2047 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2048 * cse.c (invalidate_reg): Remove clobber_high parameter.
2049 (invalidate): Update call accordingly.
2050 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2051 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2052 (count_reg_usage, insn_live_p): Likewise.
2053 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2054 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2055 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2056 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2057 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2058 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2059 (mark_nonreg_stores_2): Likewise.
2060 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2061 (df_get_call_refs): Likewise.
2062 * dwarf2out.c (mem_loc_descriptor): Likewise.
2063 * emit-rtl.c (verify_rtx_sharing): Likewise.
2064 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2065 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2066 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2067 * genemit.c (gen_exp, gen_insn): Likewise.
2068 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2069 * haifa-sched.c (haifa_classify_rtx): Likewise.
2070 * ira-build.c (create_insn_allocnos): Likewise.
2071 * ira-costs.c (scan_one_insn): Likewise.
2072 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2073 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2074 * jump.c (mark_jump_label_1): Likewise.
2075 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2076 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2077 handling.
2078 (mark_not_eliminable): Likewise.
2079 * lra-lives.c (process_bb_lives): Likewise.
2080 * lra.c (new_insn_reg): Remove clobber_high parameter.
2081 (collect_non_operand_hard_regs): Likewise. Update call to new
2082 insn_reg. Remove CLOBBER_HIGH handling.
2083 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2084 to collect_non_operand_hard_regs.
2085 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2086 Update call to new_insn_reg.
2087 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2088 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2089 (move2add_note_store): Likewise.
2090 * print-rtl.c (print_pattern): Likewise.
2091 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2092 (if_test_bypass_p): Likewise.
2093 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2094 * reginfo.c (reg_scan_mark_refs): Likewise.
2095 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2096 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2097 (forget_old_reloads_1): Likewise.
2098 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2099 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2100 (dbr_schedule): Likewise.
2101 * resource.c (update_live_status, mark_referenced_resources)
2102 (mark_set_resources): Likewise.
2103 * rtl.c (copy_rtx): Likewise.
2104 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2105 (note_pattern_stores): Likewise.
2106 (reg_is_clobbered_by_clobber_high): Delete.
2107 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2108 CLOBBER_HIGH handling.
2109
2110 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2111
2112 PR target/91452
2113 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2114 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2115 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2116 Handle ARM_PCS_TLSDESC.
2117 (aarch64_tlsdesc_abi_id): New function.
2118 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2119 rtx instead of a list of clobbers and clobber_highs.
2120 (tlsdesc_small_<mode>): Update accordingly.
2121
2122 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2123
2124 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2125 extra callee_abi argument.
2126 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2127 Insert a CALLEE_ABI unspec into the call pattern as the second
2128 element in the PARALLEL.
2129 (aarch64_simd_call_p): Delete.
2130 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2131 the new CALLEE_ABI element of the PARALLEL.
2132 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2133 from the function type, if given.
2134 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2135 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2136 when passed the function_arg_info end marker.
2137 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2138 final argument of gen_sibcall.
2139 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2140 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2141 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2142 pattern.
2143 (call_value): Likewise operand 3.
2144 (sibcall): Likewise operand 2. Place the unspec before rather than
2145 after the return.
2146 (sibcall_value): Likewise operand 3.
2147 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2148 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2149 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2150 constraint strings.
2151 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2152
2153 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2154
2155 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2156 choose_hard_reg_mode.
2157 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2158
2159 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2160
2161 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2162 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2163 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2164
2165 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2166
2167 * diagnostic-show-locus.c (line_label::line_label): Initialize
2168 m_has_vbar.
2169 (line_label::comparator): Reverse the sort order by m_state_idx,
2170 so that when the list is walked backwards the labels appear in
2171 order of insertion into the rich_location.
2172 (line_label::m_has_vbar): New field.
2173 (layout::print_any_labels): When dealing with multiple labels at
2174 the same line and column, only print vertical bars for the one
2175 with the highest label_line.
2176 (selftest::test_one_liner_labels): Update test for multiple labels
2177 to expect the labels to be in the order of insertion into the
2178 rich_location. Add a test for many such labels, where the column
2179 numbers are out-of-order relative to the insertion order.
2180
2181 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2182
2183 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2184 (ix86_frame::expensive_count): Likewise.
2185 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2186 of use_fast_prologue_epilogue robust against incidental changes
2187 in function size.
2188
2189 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2190
2191 PR target/77918
2192 * config/s390/vector.md (vec_unordered<mode>): Call
2193 gen_vec_ordered<mode>.
2194
2195 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2196
2197 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2198 New pattern for ASRD.
2199 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2200 * internal-fn.def (IFN_DIV_POW2): New internal function.
2201 * optabs.def (sdiv_pow2_optab): New optab.
2202 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2203 Modify pattern to support new operation.
2204 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2205 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2206 Document new target selector.
2207
2208 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2209
2210 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2211 to test whether we're compiling a vector PCS function and to test
2212 whether the function needs to save a particular register.
2213 Remove the vector PCS handling of df_set_regs_ever_live.
2214 (aarch64_components_for_bb): Use crtl->abi to test whether
2215 the function needs to save a particular register.
2216 (aarch64_process_components): Use crtl->abi to test whether
2217 we're compiling a vector PCS function.
2218 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2219 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2220
2221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2224 Delete.
2225 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2226 whether the block calls a function that clobbers more registers
2227 than the current function is allowed to.
2228 (aarch64_use_simple_return_insn_p): Delete.
2229 * config/aarch64/aarch64.md (simple_return): Remove condition.
2230
2231 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2232
2233 * function-abi.h (function_abi_aggregator): New class.
2234 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2235 function.
2236 * ira.c (update_equiv_regs_prescan): New function. Call
2237 set_paradoxical_subreg here rather than...
2238 (update_equiv_regs): ...here.
2239 (ira): Call update_equiv_regs_prescan.
2240
2241 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2242
2243 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2244 IN_TARGET_CODE.
2245 (call_used_or_fixed_regs): Likewise.
2246 (call_used_or_fixed_reg_p): Likewise.
2247 * reginfo.c (regs_invalidated_by_call): New macro.
2248
2249 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2250
2251 * shrink-wrap.c: Include function-abi.h.
2252 (requires_stack_frame_p): Use crtl->abi to test whether the
2253 current function can use a register without saving it first.
2254
2255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2256
2257 * sel-sched-ir.h (_def::crosses_call): Replace with...
2258 (_def::crossed_call_abis): ..this new field.
2259 (def_list_add): Take a mask of ABIs instead of a crosses_call
2260 boolean.
2261 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2262 of _def accordingly.
2263 * sel-sched.c: Include function-abi.h.
2264 (hard_regs_data::regs_for_call_clobbered): Delete.
2265 (reg_rename::crosses_call): Replace with...
2266 (reg_rename::crossed_call_abis): ...this new field.
2267 (fur_static_params::crosses_call): Replace with...
2268 (fur_static_params::crossed_call_abis): ...this new field.
2269 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2270 (init_hard_regs_data): Use crtl->abi to test which registers the
2271 current function would need to save before it uses them.
2272 (mark_unavailable_hard_regs): Update handling of call-clobbered
2273 registers, using call_clobbers_in_region to find out which registers
2274 might be call-clobbered (but without taking -fipa-ra into account
2275 for now). Remove separate handling of partially call-clobbered
2276 registers.
2277 (verify_target_availability): Use crossed_call_abis instead of
2278 crosses_call.
2279 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2280 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2281
2282 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2283
2284 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2285 function to test whether a register is fully or partly clobbered.
2286
2287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2288
2289 * rtlanal.c: Include function-abi.h.
2290 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2291 function and clobbers_reg_p to test whether the register
2292 is call-clobbered.
2293 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2294 to get the ABI of the called function and full_reg_clobbers to
2295 get the set of fully call-clobbered registers. Warn about the
2296 pitfalls of using this mode.
2297
2298 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2299
2300 * reload.c: Include function-abi.h.
2301 (find_equiv_reg): Use clobbers_reg_p to test whether either
2302 of the equivalent registers is clobbered by a call.
2303 * reload1.c: Include function-abi.h.
2304 (reg_reloaded_call_part_clobbered): Delete.
2305 (reload): Use crtl->abi to test which registers would need
2306 saving in the prologue before use.
2307 (find_reg): Likewise.
2308 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2309 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2310 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2311
2312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2313
2314 * regrename.h (du_head::call_clobber_mask): New field.
2315 (du_head::need_caller_save_reg): Replace with...
2316 (du_head::call_abis): ...this new field.
2317 * regrename.c: Include function-abi.h.
2318 (call_clobbered_in_chain_p): New function.
2319 (check_new_reg_p): Use crtl->abi when deciding whether a register
2320 is free for use after RA. Use call_clobbered_in_chain_p to test
2321 whether a candidate register would be clobbered by a call.
2322 (find_rename_reg): Don't add call-clobber conflicts here.
2323 (rename_chains): Check call_abis instead of need_caller_save_reg.
2324 (merge_chains): Update for changes to du_head.
2325 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2326 target. Record the ABI identifier in call_abis and the set of
2327 fully or partially clobbered registers in call_clobber_mask.
2328 Add fully-clobbered registers to hard_conflicts here rather
2329 than in find_rename_reg.
2330 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2331 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2332 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2333 function-abi.h.
2334 * config/c6x/c6x.c: Likewise.
2335
2336 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2337
2338 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2339 mode of the register when deciding whether it is no longer
2340 available after a call.
2341
2342 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2343
2344 * recog.c: Include function-abi.h.
2345 (peep2_find_free_register): Use crtl->abi when deciding whether
2346 a register is free for use after RA.
2347
2348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2349
2350 * postreload-gcse.c: Include regs.h and function-abi.h.
2351 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2352 call insn target. Conservatively assume that partially-clobbered
2353 registers are altered.
2354
2355 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2356
2357 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2358 when deciding whether a register is free for use after RA.
2359 (reload_combine): Remove unnecessary use of fixed_reg_set.
2360 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2361 call insn target. Use reg_mode when testing whether a register
2362 is no longer available.
2363
2364 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2365
2366 * target.def (return_call_with_max_clobbers): Delete.
2367 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2368 * doc/tm.texi: Regenerate.
2369 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2370 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2371 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2372 (lra_reg::call_insn): Delete.
2373 * lra.c: Include function-abi.h.
2374 (initialize_lra_reg_info_element): Don't initialize the fields above.
2375 (lra): Use crtl->abi to test whether the current function needs to
2376 save a register in the prologue. Remove special pre-inheritance
2377 lra_create_live_ranges pass for flag_ipa_ra.
2378 * lra-assigns.c: Include function-abi.h
2379 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2380 function needs to save a register in the prologue.
2381 (lra_assign): Assert that registers aren't allocated to a
2382 conflicting register, rather than checking only for overlaps
2383 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2384 and for registers that are not live across a call.
2385 * lra-constraints.c (last_call_for_abi): New variable.
2386 (full_and_partial_call_clobbers): Likewise.
2387 (setup_next_usage_insn): Remove the register from
2388 full_and_partial_call_clobbers.
2389 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2390 whether the register needs a caller save.
2391 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2392 of call_used_or_fixed_regs.
2393 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2394 full_and_partial_call_clobbers.
2395 * lra-lives.c (check_pseudos_live_through_calls): Replace
2396 last_call_used_reg_set and call_insn arguments with an abi argument.
2397 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2398 as the set of conflicting registers.
2399 (calls_have_same_clobbers_p): Delete.
2400 (process_bb_lives): Track the ABI of the last call instead of an
2401 insn/HARD_REG_SET pair. Update calls to
2402 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2403 the set of registers that could be clobbered by an EH edge.
2404 Include partially-clobbered as well as fully-clobbered registers.
2405 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2406 * lra-remat.c: Include function-abi.h.
2407 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2408 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2409 registers and bitmap_view to combine them into dead_regs.
2410 (call_used_input_regno_present_p): Take a function_abi argument
2411 and use it to test whether a register is call-clobbered.
2412 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2413 call insn target. Update tje call to call_used_input_regno_present_p.
2414 (do_remat): Likewise.
2415 (lra_remat): Remove the initialization of call_used_regs_arr_len
2416 and call_used_regs_arr.
2417
2418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2419
2420 * loop-iv.c: Include regs.h and function-abi.h.
2421 (simplify_using_initial_values): Use insn_callee_abi to get the
2422 ABI of the call insn target. Conservatively assume that
2423 partially-clobbered registers are altered.
2424
2425 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2426
2427 * function-abi.h (call_clobbers_in_region): Declare.
2428 (call_clobbered_in_region_p): New function.
2429 * function-abi.cc (call_clobbers_in_region): Likewise.
2430 * ira-int.h: Include function-abi.h.
2431 (ira_allocno::crossed_calls_abis): New field.
2432 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2433 (ira_need_caller_save_regs): New function.
2434 (ira_need_caller_save_p): Likewise.
2435 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2436 of call_used_or_fixed_regs.
2437 (do_reload): Use crtl->abi to test whether the current function
2438 needs to save a register in the prologue. Count registers that
2439 need to be saved rather than registers that don't.
2440 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2441 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2442 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2443 (propagate_some_info_from_allocno): Likewise.
2444 (copy_info_to_removed_store_destinations): Likewise.
2445 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2446 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2447 (ira_build): Use ira_need_caller_save_regs instead of
2448 call_used_or_fixed_regs.
2449 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2450 whether the current function would need to save a register
2451 before using it.
2452 (calculate_spill_cost): Likewise.
2453 (allocno_reload_assign): Use ira_need_caller_save_regs and
2454 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2455 * ira-conflicts.c (ira_build_conflicts): Use
2456 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2457 as the set of call-clobbered registers. Remove the
2458 call_used_or_fixed_regs mask from the calculation of
2459 temp_hard_reg_set and mask its use instead. Remove special
2460 handling of partially-clobbered registers.
2461 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2462 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2463 calculate the set of conflicting registers for calls that
2464 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2465 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2466 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2467 Use eh_edge_abi to calculate the set of registers that could
2468 be clobbered by an EH edge. Include partially-clobbered as
2469 well as fully-clobbered registers.
2470
2471 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2472
2473 * haifa-sched.c: Include function-abi.h.
2474 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2475 the function would need to save a register before using it.
2476
2477 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2478
2479 * gcse.c: Include function-abi.h.
2480 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2481 the call insn target. Invalidate partially call-clobbered
2482 registers as well as fully call-clobbered ones.
2483
2484 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2485
2486 * function.c (aggregate_value_p): Work out which ABI the
2487 function is using before testing which registers are at least
2488 partly preserved by a call.
2489
2490 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2491
2492 * early-remat.c: Include regs.h and function-abi.h.
2493 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2494 registers here.
2495 (early_remat::restrict_remat_for_unavail_regs): New function.
2496 (early_remat::restrict_remat_for_call): Likewise.
2497 (early_remat::process_block): Before calling emit_remat_insns
2498 for a previous call in the block, invalidate any candidates
2499 that would clobber call-preserved registers.
2500 (early_remat::emit_remat_insns_for_block): Likewise for the
2501 final call in a block. Do the same thing for live-in registers
2502 when calling emit_remat_insns at the head of a block.
2503
2504 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2505
2506 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2507 whether the current function needs to save at least part of a
2508 register before using it.
2509 (df_get_exit_block_use_set): Likewise for epilogue restores.
2510
2511 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2512
2513 * df-problems.c: Include regs.h and function-abi.h.
2514 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2515 sparse_invalidated_by_eh and dense_invalidated_by_call to
2516 dense_invalidated_by_eh.
2517 (df_print_bb_index): Update accordingly.
2518 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2519 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2520 that are clobbered by an EH edge. Clobber partially-clobbered
2521 registers as well as fully-clobbered ones.
2522 (df_md_confluence_n): Likewise.
2523 (df_rd_local_compute): Likewise. Update for changes to
2524 df_rd_problem_data.
2525 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2526 of registers that are clobbered by an EH edge. Includde partially-
2527 clobbered registers as well as fully-clobbered ones.
2528
2529 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2530
2531 * cselib.c (cselib_process_insn): If we know what mode a
2532 register was set in, check whether it is clobbered in that
2533 mode by a call. Only fall back to reg_raw_mode if that fails.
2534
2535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2536
2537 * cse.c: Include regs.h and function-abi.h.
2538 (invalidate_for_call): Take the call insn as an argument.
2539 Use insn_callee_abi to get the ABI of the call and invalidate
2540 partially clobbered registers as well as fully clobbered ones.
2541 (cse_insn): Update call accordingly.
2542
2543 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2544
2545 * combine.c: Include function-abi.h.
2546 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2547 of the target of call insns. Invalidate partially-clobbered
2548 registers as well as fully-clobbered ones.
2549
2550 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * cfgloopanal.c: Include regs.h and function-abi.h.
2553 (init_set_costs): Use default_function_abi to test whether
2554 a general register is call-clobbered.
2555
2556 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2557
2558 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2559 instead of the call-clobbered sets.
2560
2561 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2562
2563 * caller-save.c (setup_save_areas): Remove redundant |s of
2564 fixed_reg_set.
2565 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2566 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2567 value is useful.
2568
2569 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2570
2571 * rtl.h (predefined_function_abi): Declare.
2572 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2573 instead of a boolean call_save flag.
2574 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2575 accordingly.
2576 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2577 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2578 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2579 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2580 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2581 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2582 * reginfo.c (init_reg_modes_target): Likewise.
2583 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2584 instead of a boolean call_save flag.
2585 * targhooks.c: Include function-abi.h.
2586 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2587 using eh_edge_abi to choose the mode.
2588
2589 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2590
2591 * target.def (hard_regno_call_part_clobbered): Take an ABI
2592 identifier instead of an rtx_insn.
2593 * doc/tm.texi: Regenerate.
2594 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2595 (hook_bool_uint_uint_mode_false): New function.
2596 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2597 (hook_bool_uint_uint_mode_false): New function.
2598 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2599 Take an ABI identifier instead of an rtx_insn.
2600 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2601 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2602 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2603 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2604 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2605 Likewise.
2606 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2607 * cselib.c: Include function-abi.h.
2608 (cselib_process_insn): Update call to
2609 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2610 to get the appropriate ABI identifier.
2611 * function-abi.cc (predefined_function_abi::initialize): Update call
2612 to targetm.hard_regno_call_part_clobbered.
2613 * ira-conflicts.c (ira_build_conflicts): Likewise.
2614 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2615 * lra-constraints.c: Include function-abi.h.
2616 (need_for_call_save_p): Update call to
2617 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2618 to get the appropriate ABI identifier.
2619 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2620 * regcprop.c (copyprop_hardreg_forward_1): Update call
2621 to targetm.hard_regno_call_part_clobbered.
2622 * reginfo.c (choose_hard_reg_mode): Likewise.
2623 * regrename.c (check_new_reg_p): Likewise.
2624 * reload.c (find_equiv_reg): Likewise.
2625 * reload1.c (emit_reload_insns): Likewise.
2626 * sched-deps.c: Include function-abi.h.
2627 (deps_analyze_insn): Update call to
2628 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2629 to get the appropriate ABI identifier.
2630 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2631 call to targetm.hard_regno_call_part_clobbered.
2632 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2633
2634 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 * config/i386/i386.c: Include function-abi.h.
2637 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2638 if they preserve some 256-bit or 512-bit SSE registers.
2639
2640 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2641
2642 * target.def (insn_callee_abi): New hook.
2643 (remove_extra_call_preserved_regs): Delete.
2644 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2645 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2646 * doc/tm.texi: Regenerate.
2647 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2648 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2649 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2650 insn argument.
2651 (aarch64_remove_extra_call_preserved_regs): Delete.
2652 (aarch64_insn_callee_abi): New function.
2653 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2654 (TARGET_INSN_CALLEE_ABI): New macro.
2655 * rtl.h (get_call_fndecl): Declare.
2656 (cgraph_rtl_info): Fix formatting. Tweak comment for
2657 function_used_regs. Remove function_used_regs_valid.
2658 * rtlanal.c (get_call_fndecl): Moved from final.c
2659 * function-abi.h (insn_callee_abi): Declare.
2660 (target_function_abi_info): Mention insn_callee_abi.
2661 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2662 way to get_call_reg_set_usage did.
2663 (insn_callee_abi): New function.
2664 * regs.h (get_call_reg_set_usage): Delete.
2665 * final.c: Include function-abi.h.
2666 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2667 function_used_regs before the main loop rather than afterwards.
2668 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2669 if function_used_regs ends up not being useful.
2670 (get_call_fndecl): Move to rtlanal.c
2671 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2672 * caller-save.c: Include function-abi.h.
2673 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2674 instead of get_call_reg_set_usage.
2675 * cfgcleanup.c: Include function-abi.h.
2676 (old_insns_match_p): Use insn_callee_abi instead of
2677 get_call_reg_set_usage.
2678 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2679 a tree.
2680 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2681 function_used_regs.
2682 * df-scan.c: Include function-abi.h.
2683 (df_get_call_refs): Use insn_callee_abi instead of
2684 get_call_reg_set_usage.
2685 * ira-lives.c: Include function-abi.h.
2686 (process_bb_node_lives): Use insn_callee_abi instead of
2687 get_call_reg_set_usage.
2688 * lra-lives.c: Include function-abi.h.
2689 (process_bb_lives): Use insn_callee_abi instead of
2690 get_call_reg_set_usage.
2691 * postreload.c: Include function-abi.h.
2692 (reload_combine): Use insn_callee_abi instead of
2693 get_call_reg_set_usage.
2694 * regcprop.c: Include function-abi.h.
2695 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2696 get_call_reg_set_usage.
2697 * resource.c: Include function-abi.h.
2698 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2699 instead of get_call_reg_set_usage.
2700 * var-tracking.c: Include function-abi.h.
2701 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2702 get_call_reg_set_usage.
2703
2704 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2705
2706 * target.def (fntype_abi): New target hook.
2707 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2708 * doc/tm.texi: Regenerate.
2709 * target.h (predefined_function_abi): Declare.
2710 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2711 if defined.
2712 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2713 * config/aarch64/aarch64.c: Include function-abi.h.
2714 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2715 (TARGET_FNTYPE_ABI): Define.
2716
2717 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2718
2719 * Makefile.in (OBJS): Add function-abi.o.
2720 (GTFILES): Add function-abi.h.
2721 * function-abi.cc: New file.
2722 * function-abi.h: Likewise.
2723 * emit-rtl.h (rtl_data::abi): New field.
2724 * function.c: Include function-abi.h.
2725 (prepare_function_start): Initialize crtl->abi.
2726 * read-rtl-function.c: Include regs.h and function-abi.h.
2727 (read_rtl_function_body): Initialize crtl->abi.
2728 (read_rtl_function_body_from_file_range): Likewise.
2729 * reginfo.c: Include function-abi.h.
2730 (init_reg_sets_1): Initialize default_function_abi.
2731 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2732 when making a register global.
2733 * target-globals.h (this_target_function_abi_info): Declare.
2734 (target_globals::function_abi_info): New field.
2735 (restore_target_globals): Copy it.
2736 * target-globals.c: Include function-abi.h.
2737 (default_target_globals): Initialize the function_abi_info field.
2738 (target_globals): Allocate it.
2739 (save_target_globals): Free it.
2740
2741 2019-09-30 Nick Clifton <nickc@redhat.com>
2742
2743 PR target/85978
2744 * config/frv/frv.c (frv_register_move_cost): Add break statements
2745 to avoid falling through to the wrong cases. Tidy code.
2746
2747 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2748
2749 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2750 For multi-registers modes, test how big each register part is.
2751
2752 2019-09-30 Nick Clifton <nickc@redhat.com>
2753
2754 PR target/59205
2755 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2756 (TARGET_ASM_SELECT_SECTION): Remove definition.
2757 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2758
2759 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2760
2761 * emit-rtl.c (init_raw_REG): New function.
2762 (gen_raw_REG): Use init_raw_REG.
2763 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2764 macros.
2765 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2766 * rtl.h (rtx_init): New function.
2767 (rtx_alloca): New function.
2768 (init_raw_REG): New function.
2769 (alloca_raw_REG): New macro.
2770
2771 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2772
2773 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2774 (pcrel_local_address): Replace pcrel_address predicate, use the
2775 new function address_to_insn_form.
2776 (pcrel_external_address): Replace with new implementation using
2777 address_to_insn_form..
2778 (prefixed_mem_operand): Delete predicate which is now unused.
2779 (pcrel_external_mem_operand): Delete predicate which is now
2780 unused.
2781 * config/rs6000/rs6000-protos.h (enum insn_form): New
2782 enumeration.
2783 (enum non_prefixed_form): New enumeration.
2784 (address_to_insn_form): New declaration.
2785 (prefixed_load_p): New declaration.
2786 (prefixed_store_p): New declaration.
2787 (prefixed_paddi_p): New declaration.
2788 (rs6000_asm_output_opcode): New declaration.
2789 (rs6000_final_prescan_insn): Move declaration and update calling
2790 signature.
2791 (address_is_prefixed): New helper inline function.
2792 * config/rs6000/rs6000.c(print_operand_address): Check for either
2793 PC-relative local symbols or PC-relative external symbols.
2794 (rs6000_emit_move): Support loading PC-relative addresses.
2795 (mode_supports_prefixed_address_p): Delete, no longer used.
2796 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2797 (address_to_insn_form): New function to decode an address format.
2798 (reg_to_non_prefixed): New function to identify what the
2799 non-prefixed memory instruction format is for a register.
2800 (prefixed_load_p): New function to identify prefixed loads.
2801 (prefixed_store_p): New function to identify prefixed stores.
2802 (prefixed_paddi_p): New function to identify prefixed load
2803 immediates.
2804 (next_insn_prefixed_p): New static state variable.
2805 (rs6000_final_prescan_insn): New function to determine if an insn
2806 uses a prefixed instruction.
2807 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2808 prefixed instruction.
2809 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2810 (ASM_OUTPUT_OPCODE): New target hook.
2811 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2812 prefixed instructions.
2813 (prefixed_length): New insn attribute for the size of prefixed
2814 instructions.
2815 (non_prefixed_length): New insn attribute for the size of
2816 non-prefixed instructions.
2817 (pcrel_local_addr): New insn to load up a local PC-relative
2818 address.
2819 (pcrel_extern_addr): New insn to load up an external PC-relative
2820 address.
2821 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2822 GPR and loading a 128-bit floating point type to a GPR.
2823
2824 2019-09-30 Richard Biener <rguenther@suse.de>
2825
2826 * gimple.c (gimple_get_lhs): For PHIs return the result.
2827 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2828 SLP instance as argument.
2829 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2830 double-reduction PHIs with vectorizable_lc_phi.
2831 (vect_analyze_loop_operations): Adjust.
2832 (vect_create_epilog_for_reduction): Remove all code not dealing
2833 with reduction LC PHI or epilogue generation.
2834 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2835 for live stmts of reductions.
2836 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2837 do not handle defs that are not vect_internal_def.
2838 (can_vectorize_live_stmts): Adjust.
2839 (vect_analyze_stmt): When the vectorized stmt defined a value
2840 used on backedges adjust the backedge uses of vectorized PHIs.
2841
2842 2019-09-30 Martin Jambor <mjambor@suse.cz>
2843
2844 PR ipa/91853
2845 * tree-inline.c (force_value_to_type): New function.
2846 (setup_one_parameter): Use force_value_to_type to convert type.
2847 * tree-inline.c (force_value_to_type): Declare.
2848 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2849 with register type mismatches.
2850
2851 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2852
2853 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2854 32-bit PowerPC.
2855 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2856 * config/rs6000/t-freebsd64: Make use of the above define and build
2857 the 32-bit libraries with secure-plt.
2858
2859 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR target/91931
2862 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2863 gen_int_mode instead of GEN_INT.
2864
2865 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2866
2867 * config/darwin.c (gen_macho_low): Amend to include the mode
2868 argument.
2869 (machopic_indirect_data_reference): Amend gen_macho_low call
2870 to include mode argument
2871 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2872 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2873 the macho_high expander and two define_insn entries.
2874
2875 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR bootstrap/90543
2878 * optc-save-gen.awk: Fix up printing string option differences.
2879
2880 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2881
2882 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2883 vec_perm cost to 1 for non-Power7 VSX architectures.
2884
2885 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2886
2887 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2888 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2889 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2890
2891 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2892
2893 * config/darwin.c (gen_macho_high): Amend to include the mode
2894 argument.
2895 (machopic_indirect_data_reference): Amend gen_macho_high call
2896 to include mode argument.
2897 (machopic_legitimize_pic_address): Likewise.
2898 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2899 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2900 the macho_high expander and two define_insn entries.
2901
2902 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2903
2904 PR target/86805
2905 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2906
2907 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2908
2909 PR target/80672
2910 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2911 std::string::compare instead of std::string::find.
2912
2913 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2914
2915 * configure: Regenerate.
2916
2917 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR middle-end/91920
2920 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2921 variables as shared.
2922
2923 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2924
2925 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2926 replaces the expander and two define_insn entries.
2927 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2928 call.
2929 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2930
2931 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2932
2933 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2934 (fibonacci_heap::nodes): Likewise.
2935 (fibonacci_heap::min_key): Likewise.
2936 (fibonacci_heap::min): Likewise.
2937
2938 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2939
2940 * cgraph.c (cgraph_node::get_fun): Make const.
2941 * cgraph.h (cgraph_node::get_fun): Likewise.
2942
2943 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2944
2945 PR target/91919
2946 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2947 of SImode MULT.
2948
2949 2019-09-27 Richard Biener <rguenther@suse.de>
2950
2951 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2952 (STMT_VINFO_REDUC_FN): Likewise.
2953 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2954 STMT_VINFO_REDUC_FN.
2955 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2956 for condition reductions.
2957 (vect_create_epilog_for_reduction): Compute all required state
2958 from the stmt to be vectorized.
2959 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2960 invocation and remove then dead code. For single def-use chains
2961 record only a single vector stmt.
2962
2963 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2964
2965 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2966 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2967 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2968 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2969 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2970 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2971 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2972 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2973 (aarch64_general_builtin_rsqrt): Declare.
2974 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2975 New function.
2976 (aarch64_mangle_builtin_type): Rename to...
2977 (aarch64_general_mangle_builtin_type): ...this.
2978 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2979 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2980 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2981 aarch64_general_add_builtin instead of add_builtin_function.
2982 (aarch64_init_builtins): Rename to...
2983 (aarch64_general_init_builtins): ...this. Use
2984 aarch64_general_add_builtin instead of add_builtin_function.
2985 (aarch64_builtin_decl): Rename to...
2986 (aarch64_general_builtin_decl): ...this and remove the unused
2987 arguments.
2988 (aarch64_expand_builtin): Rename to...
2989 (aarch64_general_expand_builtin): ...this and remove the unused
2990 arguments.
2991 (aarch64_builtin_rsqrt): Rename to...
2992 (aarch64_general_builtin_rsqrt): ...this.
2993 (aarch64_fold_builtin): Rename to...
2994 (aarch64_general_fold_builtin): ...this. Take the function subcode
2995 and return type as arguments. Remove the "ignored" argument.
2996 (aarch64_gimple_fold_builtin): Rename to...
2997 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2998 subcode and gcall as arguments, and return the new function call.
2999 * config/aarch64/aarch64.c (aarch64_init_builtins)
3000 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3001 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3002 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3003 instead of aarch64_builtin_rsqrt.
3004 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3005 instead of aarch64_mangle_builtin_type.
3006
3007 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3008
3009 * target.def (check_builtin_call): New target hook.
3010 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3011 * doc/tm.texi: Regenerate.
3012
3013 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3014
3015 PR tree-optimization/91909
3016 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3017 reduc_index parameter. When handling COND_REDUCTION, make sure
3018 that the reduction phi operand is in the correct arm of the
3019 VEC_COND_EXPR.
3020 (vectorizable_reduction): Pass reduc_index to the above.
3021
3022 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3023
3024 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3025 New combine pattern.
3026
3027 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3028
3029 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3030 loop instruction into new basic block before the loop when basic
3031 block that precedes the loop is empty.
3032
3033 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3034
3035 * function.c (gimplify_parameters): Use build_clobber function.
3036 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3037 * tree-inline.c (expand_call_inline): Likewise.
3038 * tree-sra.c (clobber_subtree): Likewise.
3039 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3040 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3041 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3042 lower_omp_target): Likewise.
3043 * omp-expand.c (expand_omp_for_generic): Likewise.
3044 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3045
3046 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3047
3048 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3049 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3050 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3051 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3052 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3053 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3054 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3055 LD_ELEMREV_V16QI): Use the PURE attribute.
3056
3057 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3058
3059 * config/rs6000/darwin.md: Replace the expanders for
3060 load_macho_picbase and reload_macho_picbase with use of '@'
3061 and <mode> in their respective define_insns.
3062 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3063 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3064 Pmode to gen_load_macho_picbase.
3065 * config/rs6000/rs6000.md: Likewise.
3066
3067 2019-09-25 Richard Biener <rguenther@suse.de>
3068
3069 PR tree-optimization/91896
3070 * tree-vect-loop.c (vectorizable_reduction): The single
3071 def-use cycle optimization cannot apply when there's more
3072 than one pattern stmt involved.
3073
3074 2019-09-26 Richard Biener <rguenther@suse.de>
3075
3076 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3077 loop-closed PHIs that are vect_internal_def.
3078 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3079 Simplify.
3080 (vectorizable_lc_phi): New.
3081 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3082 (vect_transform_stmt): Likewise.
3083 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3084 (vectorizable_lc_phi): Declare.
3085
3086 2019-09-26 Richard Biener <rguenther@suse.de>
3087
3088 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3089 vectorizable_reduction for vect_double_reduction_def.
3090 (vect_transform_loop): Likewise.
3091 (vect_create_epilog_for_reduction): Move double-reduction
3092 PHI creation and preheader argument setting of PHIs ...
3093 (vectorizable_reduction): ... here. Also process
3094 vect_double_reduction_def PHIs, creating the vectorized
3095 PHI nodes, remembering the scalar adjustment computed for
3096 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3097 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3098 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3099 Initialize STMT_VINFO_REDUC_CODE.
3100 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3101 (_stmt_vec_info::reduc_code): Likewise.
3102 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3103 (STMT_VINFO_REDUC_CODE): Likewise.
3104
3105 2019-09-26 Matt Turner <mattst88@gmail.com>
3106
3107 PR driver/69471
3108 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3109 (mtune=): Add Negative(mtune=).
3110 (mcpu=): Add Negative(mcpu=).
3111 * config/arm/arm.opt: Likewise.
3112
3113 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3114
3115 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3116 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3117 Define.
3118 * config/arm/arm_acle.h: Define builtins for the above.
3119 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3120 (simd32_op): Handle the above.
3121 * config/arm/unspecs.md: Define unspecs for the above.
3122
3123 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3124
3125 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3126 (arm_<sup>xtb16): Likewise.
3127 (arm_usada8): Likewise.
3128 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3129 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3130 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3131 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3132 __sxtb16, __uxtab16, __uxtb16): Define.
3133 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3134 * config/arm/unspecs.md: Define unspecs for the above.
3135 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3136 (USXTB16): Likewise.
3137 (simd32_op): New int_attribute.
3138 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3139 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3140
3141 2019-09-26 Martin Jambor <mjambor@suse.cz>
3142
3143 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3144 internal_error.
3145
3146 2019-09-26 Martin Jambor <mjambor@suse.cz>
3147
3148 * ipa-sra.c (process_scan_results): Fix continue condition.
3149
3150 2019-09-26 Martin Liska <mliska@suse.cz>
3151
3152 PR tree-optimization/91885
3153 * tree-vectorizer.c (try_vectorize_loop_1): Add
3154 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3155
3156 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3157
3158 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3159 aarch64_plus_immediate rather than aarch64_uimm12_shift
3160 to test for valid PLUS immediates.
3161
3162 2019-09-25 Martin Jambor <mjambor@suse.cz>
3163
3164 * tree-sra.c (no_accesses_p): Remove.
3165 (no_accesses_representant): Likewise.
3166
3167 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3168
3169 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3170 consistenly.
3171 (vaba_s16): Likewise.
3172 (vaba_s32): Likewise.
3173 (vaba_u8): Likewise.
3174 (vaba_u16): Likewise.
3175 (vaba_u32): Likewise.
3176 (vabal_high_s8): Likewise.
3177 (vabal_high_s16): Likewise.
3178 (vabal_high_s32): Likewise.
3179 (vabal_high_u8): Likewise.
3180 (vabal_high_u16): Likewise.
3181 (vabal_high_u32): Likewise.
3182 (vabal_s8): Likewise.
3183 (vabal_s16): Likewise.
3184 (vabal_s32): Likewise.
3185 (vabal_u8): Likewise.
3186 (vabal_u16): Likewise.
3187 (vabal_u32): Likewise.
3188 (vabaq_s8): Likewise.
3189 (vabaq_s16): Likewise.
3190 (vabaq_s32): Likewise.
3191 (vabaq_u8): Likewise.
3192 (vabaq_u16): Likewise.
3193 (vabaq_u32): Likewise.
3194 (vabd_s8): Likewise.
3195 (vabd_s16): Likewise.
3196 (vabd_s32): Likewise.
3197 (vabd_u8): Likewise.
3198 (vabd_u16): Likewise.
3199 (vabd_u32): Likewise.
3200 (vabdl_high_s8): Likewise.
3201 (vabdl_high_s16): Likewise.
3202 (vabdl_high_s32): Likewise.
3203 (vabdl_high_u8): Likewise.
3204 (vabdl_high_u16): Likewise.
3205 (vabdl_high_u32): Likewise.
3206 (vabdl_s8): Likewise.
3207 (vabdl_s16): Likewise.
3208 (vabdl_s32): Likewise.
3209 (vabdl_u8): Likewise.
3210 (vabdl_u16): Likewise.
3211 (vabdl_u32): Likewise.
3212 (vabdq_s8): Likewise.
3213 (vabdq_s16): Likewise.
3214 (vabdq_s32): Likewise.
3215 (vabdq_u8): Likewise.
3216 (vabdq_u16): Likewise.
3217 (vabdq_u32): Likewise.
3218 (vaddlv_s8): Likewise.
3219 (vaddlv_s16): Likewise.
3220 (vaddlv_u8): Likewise.
3221 (vaddlv_u16): Likewise.
3222 (vaddlvq_s8): Likewise.
3223 (vaddlvq_s16): Likewise.
3224 (vaddlvq_s32): Likewise.
3225 (vaddlvq_u8): Likewise.
3226 (vaddlvq_u16): Likewise.
3227 (vaddlvq_u32): Likewise.
3228 (vcvtx_f32_f64): Likewise.
3229 (vcvtx_high_f32_f64): Likewise.
3230 (vcvtxd_f32_f64): Likewise.
3231 (vmla_n_f32): Likewise.
3232 (vmla_n_s16): Likewise.
3233 (vmla_n_s32): Likewise.
3234 (vmla_n_u16): Likewise.
3235 (vmla_n_u32): Likewise.
3236 (vmla_s8): Likewise.
3237 (vmla_s16): Likewise.
3238 (vmla_s32): Likewise.
3239 (vmla_u8): Likewise.
3240 (vmla_u16): Likewise.
3241 (vmla_u32): Likewise.
3242 (vmlal_high_n_s16): Likewise.
3243 (vmlal_high_n_s32): Likewise.
3244 (vmlal_high_n_u16): Likewise.
3245 (vmlal_high_n_u32): Likewise.
3246 (vmlal_high_s8): Likewise.
3247 (vmlal_high_s16): Likewise.
3248 (vmlal_high_s32): Likewise.
3249 (vmlal_high_u8): Likewise.
3250 (vmlal_high_u16): Likewise.
3251 (vmlal_high_u32): Likewise.
3252 (vmlal_n_s16): Likewise.
3253 (vmlal_n_s32): Likewise.
3254 (vmlal_n_u16): Likewise.
3255 (vmlal_n_u32): Likewise.
3256 (vmlal_s8): Likewise.
3257 (vmlal_s16): Likewise.
3258 (vmlal_s32): Likewise.
3259 (vmlal_u8): Likewise.
3260 (vmlal_u16): Likewise.
3261 (vmlal_u32): Likewise.
3262 (vmlaq_n_f32): Likewise.
3263 (vmlaq_n_s16): Likewise.
3264 (vmlaq_n_s32): Likewise.
3265 (vmlaq_n_u16): Likewise.
3266 (vmlaq_n_u32): Likewise.
3267 (vmlaq_s8): Likewise.
3268 (vmlaq_s16): Likewise.
3269 (vmlaq_s32): Likewise.
3270 (vmlaq_u8): Likewise.
3271 (vmlaq_u16): Likewise.
3272 (vmlaq_u32): Likewise.
3273 (vmls_n_f32): Likewise.
3274 (vmls_n_s16): Likewise.
3275 (vmls_n_s32): Likewise.
3276 (vmls_n_u16): Likewise.
3277 (vmls_n_u32): Likewise.
3278 (vmls_s8): Likewise.
3279 (vmls_s16): Likewise.
3280 (vmls_s32): Likewise.
3281 (vmls_u8): Likewise.
3282 (vmls_u16): Likewise.
3283 (vmls_u32): Likewise.
3284 (vmlsl_high_n_s16): Likewise.
3285 (vmlsl_high_n_s32): Likewise.
3286 (vmlsl_high_n_u16): Likewise.
3287 (vmlsl_high_n_u32): Likewise.
3288 (vmlsl_high_s8): Likewise.
3289 (vmlsl_high_s16): Likewise.
3290 (vmlsl_high_s32): Likewise.
3291 (vmlsl_high_u8): Likewise.
3292 (vmlsl_high_u16): Likewise.
3293 (vmlsl_high_u32): Likewise.
3294 (vmlsl_n_s16): Likewise.
3295 (vmlsl_n_s32): Likewise.
3296 (vmlsl_n_u16): Likewise.
3297 (vmlsl_n_u32): Likewise.
3298 (vmlsl_s8): Likewise.
3299 (vmlsl_s16): Likewise.
3300 (vmlsl_s32): Likewise.
3301 (vmlsl_u8): Likewise.
3302 (vmlsl_u16): Likewise.
3303 (vmlsl_u32): Likewise.
3304 (vmlsq_n_f32): Likewise.
3305 (vmlsq_n_s16): Likewise.
3306 (vmlsq_n_s32): Likewise.
3307 (vmlsq_n_u16): Likewise.
3308 (vmlsq_n_u32): Likewise.
3309 (vmlsq_s8): Likewise.
3310 (vmlsq_s16): Likewise.
3311 (vmlsq_s32): Likewise.
3312 (vmlsq_u8): Likewise.
3313 (vmlsq_u16): Likewise.
3314 (vmlsq_u32): Likewise.
3315 (vmovl_high_s8): Likewise.
3316 (vmovl_high_s16): Likewise.
3317 (vmovl_high_s32): Likewise.
3318 (vmovl_high_u8): Likewise.
3319 (vmovl_high_u16): Likewise.
3320 (vmovl_high_u32): Likewise.
3321 (vmovl_s8): Likewise.
3322 (vmovl_s16): Likewise.
3323 (vmovl_s32): Likewise.
3324 (vmovl_u8): Likewise.
3325 (vmovl_u16): Likewise.
3326 (vmovl_u32): Likewise.
3327 (vmovn_high_s16): Likewise.
3328 (vmovn_high_s32): Likewise.
3329 (vmovn_high_s64): Likewise.
3330 (vmovn_high_u16): Likewise.
3331 (vmovn_high_u32): Likewise.
3332 (vmovn_high_u64): Likewise.
3333 (vmovn_s16): Likewise.
3334 (vmovn_s32): Likewise.
3335 (vmovn_s64): Likewise.
3336 (vmovn_u16): Likewise.
3337 (vmovn_u32): Likewise.
3338 (vmovn_u64): Likewise.
3339 (vmull_high_n_s16): Likewise.
3340 (vmull_high_n_s32): Likewise.
3341 (vmull_high_n_u16): Likewise.
3342 (vmull_high_n_u32): Likewise.
3343 (vmull_high_p8): Likewise.
3344 (vmull_high_s8): Likewise.
3345 (vmull_high_s16): Likewise.
3346 (vmull_high_s32): Likewise.
3347 (vmull_high_u8): Likewise.
3348 (vmull_high_u16): Likewise.
3349 (vmull_high_u32): Likewise.
3350 (vmull_n_s16): Likewise.
3351 (vmull_n_s32): Likewise.
3352 (vmull_n_u16): Likewise.
3353 (vmull_n_u32): Likewise.
3354 (vmull_p8): Likewise.
3355 (vmull_s8): Likewise.
3356 (vmull_s16): Likewise.
3357 (vmull_s32): Likewise.
3358 (vmull_u8): Likewise.
3359 (vmull_u16): Likewise.
3360 (vmull_u32): Likewise.
3361 (vpadal_s8): Likewise.
3362 (vpadal_s16): Likewise.
3363 (vpadal_s32): Likewise.
3364 (vpadal_u8): Likewise.
3365 (vpadal_u16): Likewise.
3366 (vpadal_u32): Likewise.
3367 (vpadalq_s8): Likewise.
3368 (vpadalq_s16): Likewise.
3369 (vpadalq_s32): Likewise.
3370 (vpadalq_u8): Likewise.
3371 (vpadalq_u16): Likewise.
3372 (vpadalq_u32): Likewise.
3373 (vpaddl_s8): Likewise.
3374 (vpaddl_s16): Likewise.
3375 (vpaddl_s32): Likewise.
3376 (vpaddl_u8): Likewise.
3377 (vpaddl_u16): Likewise.
3378 (vpaddl_u32): Likewise.
3379 (vpaddlq_s8): Likewise.
3380 (vpaddlq_s16): Likewise.
3381 (vpaddlq_s32): Likewise.
3382 (vpaddlq_u8): Likewise.
3383 (vpaddlq_u16): Likewise.
3384 (vpaddlq_u32): Likewise.
3385 (vpaddq_s8): Likewise.
3386 (vpaddq_s16): Likewise.
3387 (vpaddq_s32): Likewise.
3388 (vpaddq_s64): Likewise.
3389 (vpaddq_u8): Likewise.
3390 (vpaddq_u16): Likewise.
3391 (vpaddq_u32): Likewise.
3392 (vpaddq_u64): Likewise.
3393 (vqdmulh_n_s16): Likewise.
3394 (vqdmulh_n_s32): Likewise.
3395 (vqdmulhq_n_s16): Likewise.
3396 (vqdmulhq_n_s32): Likewise.
3397 (vqmovn_high_s16): Likewise.
3398 (vqmovn_high_s32): Likewise.
3399 (vqmovn_high_s64): Likewise.
3400 (vqmovn_high_u16): Likewise.
3401 (vqmovn_high_u32): Likewise.
3402 (vqmovn_high_u64): Likewise.
3403 (vqmovun_high_s16): Likewise.
3404 (vqmovun_high_s32): Likewise.
3405 (vqmovun_high_s64): Likewise.
3406 (vqrdmulh_n_s16): Likewise.
3407 (vqrdmulh_n_s32): Likewise.
3408 (vqrdmulhq_n_s16): Likewise.
3409 (vqrdmulhq_n_s32): Likewise.
3410 (vrsqrte_u32): Likewise.
3411 (vrsqrteq_u32): Likewise.
3412 (vtst_p8): Likewise.
3413 (vtst_p16): Likewise.
3414 (vtst_p64): Likewise.
3415 (vtstq_p8): Likewise.
3416 (vtstq_p16): Likewise.
3417 (vtstq_p64): Likewise.
3418 (vaddlv_s32): Likewise.
3419 (vaddlv_u32): Likewise.
3420 (vqtbl1_p8): Likewise.
3421 (vqtbl1_s8): Likewise.
3422 (vqtbl1_u8): Likewise.
3423 (vqtbl1q_p8): Likewise.
3424 (vqtbl1q_s8): Likewise.
3425 (vqtbl1q_u8): Likewise.
3426 (vqtbx1_s8): Likewise.
3427 (vqtbx1_u8): Likewise.
3428 (vqtbx1_p8): Likewise.
3429 (vqtbx1q_s8): Likewise.
3430 (vqtbx1q_u8): Likewise.
3431 (vqtbx1q_p8): Likewise.
3432 (vtbl1_s8): Likewise.
3433 (vtbl1_u8): Likewise.
3434 (vtbl1_p8): Likewise.
3435 (vtbl2_s8): Likewise.
3436 (vtbl2_u8): Likewise.
3437 (vtbl2_p8): Likewise.
3438 (vtbl3_s8): Likewise.
3439 (vtbl3_u8): Likewise.
3440 (vtbl3_p8): Likewise.
3441 (vtbl4_s8): Likewise.
3442 (vtbl4_u8): Likewise.
3443 (vtbl4_p8): Likewise.
3444 (vtbx2_s8): Likewise.
3445 (vtbx2_u8): Likewise.
3446 (vtbx2_p8): Likewise.
3447 (vld1_f32): Likewise.
3448 (vld1_f64): Likewise.
3449 (vld1_p8): Likewise.
3450 (vld1_p16): Likewise.
3451 (vld1_p64): Likewise.
3452 (vld1_s8): Likewise.
3453 (vld1_s16): Likewise.
3454 (vld1_s32): Likewise.
3455 (vld1_s64): Likewise.
3456 (vld1_u8): Likewise.
3457 (vld1_u16): Likewise.
3458 (vld1_u32): Likewise.
3459 (vld1_u64): Likewise.
3460 (vld1q_f32): Likewise.
3461 (vld1q_f64): Likewise.
3462 (vld1q_p8): Likewise.
3463 (vld1q_p16): Likewise.
3464 (vld1q_p64): Likewise.
3465 (vld1q_s8): Likewise.
3466 (vld1q_s16): Likewise.
3467 (vld1q_s32): Likewise.
3468 (vld1q_s64): Likewise.
3469 (vld1q_u8): Likewise.
3470 (vld1q_u16): Likewise.
3471 (vld1q_u32): Likewise.
3472 (vld1q_u64): Likewise.
3473 (vpmax_s8): Likewise.
3474 (vpmax_s16): Likewise.
3475 (vpmax_s32): Likewise.
3476 (vpmax_u8): Likewise.
3477 (vpmax_u16): Likewise.
3478 (vpmax_u32): Likewise.
3479 (vpmaxq_s8): Likewise.
3480 (vpmaxq_s16): Likewise.
3481 (vpmaxq_s32): Likewise.
3482 (vpmaxq_u8): Likewise.
3483 (vpmaxq_u16): Likewise.
3484 (vpmaxq_u32): Likewise.
3485 (vpmax_f32): Likewise.
3486 (vpmaxq_f32): Likewise.
3487 (vpmaxq_f64): Likewise.
3488 (vpmaxqd_f64): Likewise.
3489 (vpmaxs_f32): Likewise.
3490 (vpmaxnm_f32): Likewise.
3491 (vpmaxnmq_f32): Likewise.
3492 (vpmaxnmq_f64): Likewise.
3493 (vpmaxnmqd_f64): Likewise.
3494 (vpmaxnms_f32): Likewise.
3495 (vpmin_s8): Likewise.
3496 (vpmin_s16): Likewise.
3497 (vpmin_s32): Likewise.
3498 (vpmin_u8): Likewise.
3499 (vpmin_u16): Likewise.
3500 (vpmin_u32): Likewise.
3501 (vpminq_s8): Likewise.
3502 (vpminq_s16): Likewise.
3503 (vpminq_s32): Likewise.
3504 (vpminq_u8): Likewise.
3505 (vpminq_u16): Likewise.
3506 (vpminq_u32): Likewise.
3507 (vpmin_f32): Likewise.
3508 (vpminq_f32): Likewise.
3509 (vpminq_f64): Likewise.
3510 (vpminqd_f64): Likewise.
3511 (vpmins_f32): Likewise.
3512 (vpminnm_f32): Likewise.
3513 (vpminnmq_f32): Likewise.
3514 (vpminnmq_f64): Likewise.
3515 (vpminnmqd_f64): Likewise.
3516 (vpminnms_f32): Likewise.
3517 (vmla_f32): Likewise.
3518 (vmlaq_f32): Likewise.
3519 (vmlaq_f64): Likewise.
3520 (vmls_f32): Likewise.
3521 (vmlsq_f32): Likewise.
3522 (vmlsq_f64): Likewise.
3523 (vqtbl2_s8): Likewise.
3524 (vqtbl2_u8): Likewise.
3525 (vqtbl2_p8): Likewise.
3526 (vqtbl2q_s8): Likewise.
3527 (vqtbl2q_u8): Likewise.
3528 (vqtbl2q_p8): Likewise.
3529 (vqtbl3_s8): Likewise.
3530 (vqtbl3_u8): Likewise.
3531 (vqtbl3_p8): Likewise.
3532 (vqtbl3q_s8): Likewise.
3533 (vqtbl3q_u8): Likewise.
3534 (vqtbl3q_p8): Likewise.
3535 (vqtbl4_s8): Likewise.
3536 (vqtbl4_u8): Likewise.
3537 (vqtbl4_p8): Likewise.
3538 (vqtbl4q_s8): Likewise.
3539 (vqtbl4q_u8): Likewise.
3540 (vqtbl4q_p8): Likewise.
3541 (vqtbx2_s8): Likewise.
3542 (vqtbx2_u8): Likewise.
3543 (vqtbx2_p8): Likewise.
3544 (vqtbx2q_s8): Likewise.
3545 (vqtbx2q_u8): Likewise.
3546 (vqtbx2q_p8): Likewise.
3547 (vqtbx3_s8): Likewise.
3548 (vqtbx3_u8): Likewise.
3549 (vqtbx3_p8): Likewise.
3550 (vqtbx3q_s8): Likewise.
3551 (vqtbx3q_u8): Likewise.
3552 (vqtbx3q_p8): Likewise.
3553 (vqtbx4_s8): Likewise.
3554 (vqtbx4_u8): Likewise.
3555 (vqtbx4_p8): Likewise.
3556 (vqtbx4q_s8): Likewise.
3557 (vqtbx4q_u8): Likewise.
3558 (vqtbx4q_p8): Likewise.
3559 (vrev16_p8): Likewise.
3560 (vrev16_s8): Likewise.
3561 (vrev16_u8): Likewise.
3562 (vrev16q_p8): Likewise.
3563 (vrev16q_s8): Likewise.
3564 (vrev16q_u8): Likewise.
3565 (vrev32_p8): Likewise.
3566 (vrev32_p16): Likewise.
3567 (vrev32_s8): Likewise.
3568 (vrev32_s16): Likewise.
3569 (vrev32_u8): Likewise.
3570 (vrev32_u16): Likewise.
3571 (vrev32q_p8): Likewise.
3572 (vrev32q_p16): Likewise.
3573 (vrev32q_s8): Likewise.
3574 (vrev32q_s16): Likewise.
3575 (vrev32q_u8): Likewise.
3576 (vrev32q_u16): Likewise.
3577 (vrev64_f32): Likewise.
3578 (vrev64_p8): Likewise.
3579 (vrev64_p16): Likewise.
3580 (vrev64_s8): Likewise.
3581 (vrev64_s16): Likewise.
3582 (vrev64_s32): Likewise.
3583 (vrev64_u8): Likewise.
3584 (vrev64_u16): Likewise.
3585 (vrev64_u32): Likewise.
3586 (vrev64q_f32): Likewise.
3587 (vrev64q_p8): Likewise.
3588 (vrev64q_p16): Likewise.
3589 (vrev64q_s8): Likewise.
3590 (vrev64q_s16): Likewise.
3591 (vrev64q_s32): Likewise.
3592 (vrev64q_u8): Likewise.
3593 (vrev64q_u16): Likewise.
3594 (vrev64q_u32): Likewise.
3595 (vsha1cq_u32): Likewise.
3596 (vsha1mq_u32): Likewise.
3597 (vsha1pq_u32): Likewise.
3598 (vsha1h_u32): Likewise.
3599 (vsha1su0q_u32): Likewise.
3600 (vsha1su1q_u32): Likewise.
3601 (vsha256hq_u32): Likewise.
3602 (vsha256h2q_u32): Likewise.
3603 (vsha256su0q_u32): Likewise.
3604 (vsha256su1q_u32): Likewise.
3605 (vmull_p64): Likewise.
3606 (vmull_high_p64): Likewise.
3607 (vsqrt_f32): Likewise.
3608 (vsqrtq_f32): Likewise.
3609 (vsqrt_f64): Likewise.
3610 (vsqrtq_f64): Likewise.
3611 (vst1_f32): Likewise.
3612 (vst1_f64): Likewise.
3613 (vst1_p8): Likewise.
3614 (vst1_p16): Likewise.
3615 (vst1_p64): Likewise.
3616 (vst1_s8): Likewise.
3617 (vst1_s16): Likewise.
3618 (vst1_s32): Likewise.
3619 (vst1_s64): Likewise.
3620 (vst1_u8): Likewise.
3621 (vst1_u16): Likewise.
3622 (vst1_u32): Likewise.
3623 (vst1_u64): Likewise.
3624 (vst1q_f32): Likewise.
3625 (vst1q_f64): Likewise.
3626 (vst1q_p8): Likewise.
3627 (vst1q_p16): Likewise.
3628 (vst1q_p64): Likewise.
3629 (vst1q_s8): Likewise.
3630 (vst1q_s16): Likewise.
3631 (vst1q_s32): Likewise.
3632 (vst1q_s64): Likewise.
3633 (vst1q_u8): Likewise.
3634 (vst1q_u16): Likewise.
3635 (vst1q_u32): Likewise.
3636 (vst1q_u64): Likewise.
3637 (vst1_s64_x2): Likewise.
3638 (vst1_u64_x2): Likewise.
3639 (vst1_f64_x2): Likewise.
3640 (vst1_s8_x2): Likewise.
3641 (vst1_p8_x2): Likewise.
3642 (vst1_s16_x2): Likewise.
3643 (vst1_p16_x2): Likewise.
3644 (vst1_s32_x2): Likewise.
3645 (vst1_u8_x2): Likewise.
3646 (vst1_u16_x2): Likewise.
3647 (vst1_u32_x2): Likewise.
3648 (vst1_f16_x2): Likewise.
3649 (vst1_f32_x2): Likewise.
3650 (vst1_p64_x2): Likewise.
3651 (vst1q_s8_x2): Likewise.
3652 (vst1q_p8_x2): Likewise.
3653 (vst1q_s16_x2): Likewise.
3654 (vst1q_p16_x2): Likewise.
3655 (vst1q_s32_x2): Likewise.
3656 (vst1q_s64_x2): Likewise.
3657 (vst1q_u8_x2): Likewise.
3658 (vst1q_u16_x2): Likewise.
3659 (vst1q_u32_x2): Likewise.
3660 (vst1q_u64_x2): Likewise.
3661 (vst1q_f16_x2): Likewise.
3662 (vst1q_f32_x2): Likewise.
3663 (vst1q_f64_x2): Likewise.
3664 (vst1q_p64_x2): Likewise.
3665 (vst1_s64_x3): Likewise.
3666 (vst1_u64_x3): Likewise.
3667 (vst1_f64_x3): Likewise.
3668 (vst1_s8_x3): Likewise.
3669 (vst1_p8_x3): Likewise.
3670 (vst1_s16_x3): Likewise.
3671 (vst1_p16_x3): Likewise.
3672 (vst1_s32_x3): Likewise.
3673 (vst1_u8_x3): Likewise.
3674 (vst1_u16_x3): Likewise.
3675 (vst1_u32_x3): Likewise.
3676 (vst1_f16_x3): Likewise.
3677 (vst1_f32_x3): Likewise.
3678 (vst1_p64_x3): Likewise.
3679 (vst1q_s8_x3): Likewise.
3680 (vst1q_p8_x3): Likewise.
3681 (vst1q_s16_x3): Likewise.
3682 (vst1q_p16_x3): Likewise.
3683 (vst1q_s32_x3): Likewise.
3684 (vst1q_s64_x3): Likewise.
3685 (vst1q_u8_x3): Likewise.
3686 (vst1q_u16_x3): Likewise.
3687 (vst1q_u32_x3): Likewise.
3688 (vst1q_u64_x3): Likewise.
3689 (vst1q_f16_x3): Likewise.
3690 (vst1q_f32_x3): Likewise.
3691 (vst1q_f64_x3): Likewise.
3692 (vst1q_p64_x3): Likewise.
3693 (vst2_s64): Likewise.
3694 (vst2_u64): Likewise.
3695 (vst2_f64): Likewise.
3696 (vst2_s8): Likewise.
3697 (vst2_p8): Likewise.
3698 (vst2_s16): Likewise.
3699 (vst2_p16): Likewise.
3700 (vst2_s32): Likewise.
3701 (vst2_u8): Likewise.
3702 (vst2_u16): Likewise.
3703 (vst2_u32): Likewise.
3704 (vst2_f16): Likewise.
3705 (vst2_f32): Likewise.
3706 (vst2_p64): Likewise.
3707 (vst2q_s8): Likewise.
3708 (vst2q_p8): Likewise.
3709 (vst2q_s16): Likewise.
3710 (vst2q_p16): Likewise.
3711 (vst2q_s32): Likewise.
3712 (vst2q_s64): Likewise.
3713 (vst2q_u8): Likewise.
3714 (vst2q_u16): Likewise.
3715 (vst2q_u32): Likewise.
3716 (vst2q_u64): Likewise.
3717 (vst2q_f16): Likewise.
3718 (vst2q_f32): Likewise.
3719 (vst2q_f64): Likewise.
3720 (vst2q_p64): Likewise.
3721 (vst3_s64): Likewise.
3722 (vst3_u64): Likewise.
3723 (vst3_f64): Likewise.
3724 (vst3_s8): Likewise.
3725 (vst3_p8): Likewise.
3726 (vst3_s16): Likewise.
3727 (vst3_p16): Likewise.
3728 (vst3_s32): Likewise.
3729 (vst3_u8): Likewise.
3730 (vst3_u16): Likewise.
3731 (vst3_u32): Likewise.
3732 (vst3_f16): Likewise.
3733 (vst3_f32): Likewise.
3734 (vst3_p64): Likewise.
3735 (vst3q_s8): Likewise.
3736 (vst3q_p8): Likewise.
3737 (vst3q_s16): Likewise.
3738 (vst3q_p16): Likewise.
3739 (vst3q_s32): Likewise.
3740 (vst3q_s64): Likewise.
3741 (vst3q_u8): Likewise.
3742 (vst3q_u16): Likewise.
3743 (vst3q_u32): Likewise.
3744 (vst3q_u64): Likewise.
3745 (vst3q_f16): Likewise.
3746 (vst3q_f32): Likewise.
3747 (vst3q_f64): Likewise.
3748 (vst3q_p64): Likewise.
3749 (vst4_s64): Likewise.
3750 (vst4_u64): Likewise.
3751 (vst4_f64): Likewise.
3752 (vst4_s8): Likewise.
3753 (vst4_p8): Likewise.
3754 (vst4_s16): Likewise.
3755 (vst4_p16): Likewise.
3756 (vst4_s32): Likewise.
3757 (vst4_u8): Likewise.
3758 (vst4_u16): Likewise.
3759 (vst4_u32): Likewise.
3760 (vst4_f16): Likewise.
3761 (vst4_f32): Likewise.
3762 (vst4_p64): Likewise.
3763 (vst4q_s8): Likewise.
3764 (vst4q_p8): Likewise.
3765 (vst4q_s16): Likewise.
3766 (vst4q_p16): Likewise.
3767 (vst4q_s32): Likewise.
3768 (vst4q_s64): Likewise.
3769 (vst4q_u8): Likewise.
3770 (vst4q_u16): Likewise.
3771 (vst4q_u32): Likewise.
3772 (vst4q_u64): Likewise.
3773 (vst4q_f16): Likewise.
3774 (vst4q_f32): Likewise.
3775 (vst4q_f64): Likewise.
3776 (vst4q_p64): Likewise.
3777 (vtbx4_s8): Likewise.
3778 (vtbx4_u8): Likewise.
3779 (vtbx4_p8): Likewise.
3780 (vtrn_f32): Likewise.
3781 (vtrn_p8): Likewise.
3782 (vtrn_p16): Likewise.
3783 (vtrn_s8): Likewise.
3784 (vtrn_s16): Likewise.
3785 (vtrn_s32): Likewise.
3786 (vtrn_u8): Likewise.
3787 (vtrn_u16): Likewise.
3788 (vtrn_u32): Likewise.
3789 (vtrnq_f32): Likewise.
3790 (vtrnq_p8): Likewise.
3791 (vtrnq_p16): Likewise.
3792 (vtrnq_s8): Likewise.
3793 (vtrnq_s16): Likewise.
3794 (vtrnq_s32): Likewise.
3795 (vtrnq_u8): Likewise.
3796 (vtrnq_u16): Likewise.
3797 (vtrnq_u32): Likewise.
3798 (vrsqrte_f16): Likewise.
3799 (vrsqrteq_f16): Likewise.
3800 (vsqrt_f16): Likewise.
3801 (vsqrtq_f16): Likewise.
3802 (vabd_f16): Likewise.
3803 (vabdq_f16): Likewise.
3804 (vpadd_f16): Likewise.
3805 (vpaddq_f16): Likewise.
3806 (vpmax_f16): Likewise.
3807 (vpmaxq_f16): Likewise.
3808 (vpmaxnm_f16): Likewise.
3809 (vpmaxnmq_f16): Likewise.
3810 (vpmin_f16): Likewise.
3811 (vpminq_f16): Likewise.
3812 (vpminnm_f16): Likewise.
3813 (vpminnmq_f16): Likewise.
3814 (vrsqrts_f16): Likewise.
3815 (vrsqrtsq_f16): Likewise.
3816
3817 2019-09-25 Richard Biener <rguenther@suse.de>
3818
3819 PR tree-optimization/91896
3820 * tree-vect-loop.c (vectorizable_reduction): The single
3821 def-use cycle optimization cannot apply when there's more
3822 than one pattern stmt involved.
3823
3824 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3825
3826 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3827 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3828 (reload_macho_picbase_<mode>): Likewise.
3829
3830 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3831
3832 * config/rs6000/rs6000.md: Move darwin.md include until
3833 after the definition of the mode iterators.
3834
3835 2019-09-23 Martin Sebor <msebor@redhat.com>
3836
3837 PR tree-optimization/91570
3838 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3839 non-constant minlen, maxlen and maxbound.
3840
3841 2019-09-24 Richard Biener <rguenther@suse.de>
3842
3843 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3844 Rename to...
3845 (_stmt_vec_info::cond_reduc_code): ... this.
3846 (_stmt_vec_info::induc_cond_initial_val): Add.
3847 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3848 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3849 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3850 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3851 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3852 the reduction code.
3853 (vect_create_epilog_for_reduction): Drop special
3854 induction condition reduction params, pass in reduction code
3855 and simplify.
3856 (vectorizable_reduction): Perform condition reduction kind
3857 selection only at analysis time. Adjust passing on state.
3858
3859 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3860
3861 * config/aarch64/aarch64.md (mov<mode>): Don't call
3862 aarch64_split_dimode_const_store on volatile MEM.
3863
3864 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3865
3866 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3867 Update hwcap string for fp16fml.
3868
3869 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3870
3871 PR middle-end/91866
3872 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3873 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3874
3875 2019-09-24 Martin Liska <mliska@suse.cz>
3876
3877 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3878 instead of if-elseif-elseif-...
3879 * gimple-expr.c (extract_ops_from_tree): Likewise.
3880 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3881 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3882
3883 2019-09-24 Martin Jambor <mjambor@suse.cz>
3884
3885 PR ipa/91831
3886 * ipa-param-manipulation.c (carry_over_param): Make a method of
3887 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3888 in case of a context mismatch.
3889 (ipa_param_body_adjustments::common_initialization): Adjust call to
3890 carry_over_param.
3891 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3892 private method carry_over_param.
3893
3894 2019-09-24 Martin Jambor <mjambor@suse.cz>
3895
3896 PR ipa/91832
3897 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3898
3899 2019-09-24 Richard Biener <rguenther@suse.de>
3900
3901 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3902 base.
3903
3904 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3905
3906 * config/arm/t-arm (arm-builtins.o): Add dependency on
3907 arm_acle_builtins.def.
3908
3909 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3910
3911 PR target/91823
3912 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3913 canonical CONST_INTs. Use gen_rtvec.
3914
3915 2019-09-23 Richard Biener <rguenther@suse.de>
3916
3917 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3918 avoid adjusting by + 0 or * 1.
3919 (vect_create_epilog_for_reduction): Get reduction code only
3920 when necessary. Deal with adjustment_def only when necessary.
3921
3922 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3923
3924 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3925 memmodel index.
3926
3927 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3928
3929 PR ipa/91835
3930 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3931 "ipa-sra".
3932
3933 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3934
3935 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3936 code. Merge code blocks with common conditionals. Use declared
3937 macro instead of a magic number for PIC level.
3938
3939 2019-09-21 Martin Sebor <msebor@redhat.com>
3940
3941 PR middle-end/91830
3942 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3943 Simplify computation of the offset of the referenced subobject.
3944
3945 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3946
3947 * config/darwin.c (machopic_legitimize_pic_address): Check
3948 for lra not reload.
3949
3950 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3951
3952 * ira-conflicts.c (can_use_same_reg_p): New function.
3953 (process_reg_shuffles): Take an insn parameter. Ignore cases
3954 in which input operand op_num could seemingly never be allocated
3955 to the same register as the destination.
3956 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3957
3958 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3959
3960 * simplify-rtx.c (neg_const_int): Replace with...
3961 (neg_poly_int_rtx): ...this new function.
3962 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3963 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3964 (simplify_plus_minus): Likewise for constant terms here.
3965
3966 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3967
3968 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3969 HOST_WIDE_PRINT_UNSIGNED.
3970
3971 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3972
3973 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3974 character.
3975
3976 2019-09-20 Maya Rashish <coypu@sdf.org>
3977
3978 PR target/86811
3979 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3980 Define to speculation_safe_value_not_needed.
3981
3982 2019-09-20 Richard Biener <rguenther@suse.de>
3983 Uros Bizjak <ubizjak@gmail.com>
3984
3985 PR target/91814
3986 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3987 previous change.
3988 (general_scalar_chain::convert_op): Force not suitable memory
3989 operands to a register.
3990
3991 2019-09-20 Richard Biener <rguenther@suse.de>
3992
3993 PR tree-optimization/91821
3994 * tree-vect-loop.c (check_reduction_path): Check we can compute
3995 reduc_idx.
3996 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3997 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3998 operands in canonical order.
3999 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4000 STMT_VINFO_REDUC_IDX.
4001 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4002 (STMT_VINFO_REDUC_IDX): Likewise.
4003
4004 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4005
4006 PR target/91269
4007 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4008
4009 2019-09-20 Richard Biener <rguenther@suse.de>
4010
4011 PR tree-optimization/91822
4012 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4013 parameter.
4014 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4015 for reduc_index in nested cycles, adjust vectorizable_condition
4016 calls.
4017 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4018 parameter.
4019 (vect_analyze_stmt): Adjust.
4020 (vect_transform_stmt): Likewise.
4021
4022 2019-09-20 Richard Biener <rguenther@suse.de>
4023
4024 PR target/91767
4025 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4026 Ensure there's a sequence point between allocating the new register
4027 and passing a reference to a reg via regno_reg_rtx.
4028
4029 2019-09-20 Martin Jambor <mjambor@suse.cz>
4030
4031 * coretypes.h (cgraph_edge): Declare.
4032 * ipa-param-manipulation.c: Rewrite.
4033 * ipa-param-manipulation.h: Likewise.
4034 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4035 (OBJS): Added ipa-sra.o.
4036 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4037 and ref_p, added fields param_adjustments and performed_splits.
4038 (struct cgraph_clone_info): Remove ags_to_skip and
4039 combined_args_to_skip, new field param_adjustments.
4040 (cgraph_node::create_clone): Changed parameters to use
4041 ipa_param_adjustments.
4042 (cgraph_node::create_virtual_clone): Likewise.
4043 (cgraph_node::create_virtual_clone_with_body): Likewise.
4044 (tree_function_versioning): Likewise.
4045 (cgraph_build_function_type_skip_args): Removed.
4046 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4047 using ipa_param_adjustments.
4048 (clone_of_p): Likewise.
4049 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4050 (build_function_decl_skip_args): Likewise.
4051 (duplicate_thunk_for_node): Adjust parameters using
4052 ipa_param_body_adjustments, copy param_adjustments instead of
4053 args_to_skip.
4054 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4055 (cgraph_node::create_virtual_clone): Likewise.
4056 (cgraph_node::create_version_clone_with_body): Likewise.
4057 (cgraph_materialize_clone): Likewise.
4058 (symbol_table::materialize_all_clones): Likewise.
4059 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4060 ipa_replace_map check.
4061 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4062 (initialize_node_lattices): Make aware that some parameters might have
4063 already been removed.
4064 (want_remove_some_param_p): New function.
4065 (create_specialized_node): Convert to using ipa_param_adjustments and
4066 deal with possibly pre-existing adjustments.
4067 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4068 (output_node_opt_summary): Do not stream removed fields. Stream
4069 parameter adjustments instead of argumetns to skip.
4070 (input_node_opt_summary): Likewise.
4071 (input_node_opt_summary): Likewise.
4072 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4073 * lto-streamer.h (lto_section_type): Likewise.
4074 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4075 param_body_adjs.
4076 (copy_decl_to_var): Declare.
4077 * tree-inline.c (update_clone_info): Do not remap old_tree.
4078 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4079 statements, walk all extra generated statements and remap their
4080 operands.
4081 (redirect_all_calls): Add killed SSA names to a hash set.
4082 (remap_ssa_name): Do not remap killed SSA names.
4083 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4084 half of functionality moved to ipa_param_body_adjustments.
4085 (copy_decl_to_var): Make exported.
4086 (copy_body): Destroy killed_new_ssa_names hash set.
4087 (expand_call_inline): Remap performed splits.
4088 (update_clone_info): Likewise.
4089 (tree_function_versioning): Simplify tree_map processing. Updated to
4090 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4091 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4092 for the new interface.
4093 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4094 (simd_clone_compute_base_data_type): Likewise.
4095 (simd_clone_init_simd_arrays): Adjust for the new interface.
4096 (simd_clone_adjust_argument_types): Likewise.
4097 (struct modify_stmt_info): Likewise.
4098 (ipa_simd_modify_stmt_ops): Likewise.
4099 (ipa_simd_modify_function_body): Likewise.
4100 (simd_clone_adjust): Likewise.
4101 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4102 (type_internals_preclude_sra_p): Make public.
4103 * tree-sra.h: New file.
4104 * ipa-inline-transform.c (save_inline_function_body): Update to
4105 refelct new tree_function_versioning signature.
4106 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4107 ipa_param_adjustments to get current parameter indices.
4108 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4109 (ipcp_update_bits): Likewise.
4110 (ipcp_update_vr): Likewise.
4111 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4112 * ipa-sra.c: New file.
4113 * multiple_target.c (create_target_clone): Update to reflet new type
4114 of create_version_clone_with_body.
4115 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4116 tree_function_versioning.
4117 (modify_function): Update to reflect new type of
4118 tree_function_versioning.
4119 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4120 * passes.def: Remove old IPA-SRA and add new one.
4121 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4122 (make_pass_ipa_sra): Declare.
4123 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4124 ipa_sra_retvalues.
4125 * doc/invoke.texi (ipa-sra-max-replacements): New.
4126
4127 2019-09-19 Martin Sebor <msebor@redhat.com>
4128
4129 PR middle-end/91631
4130 * builtins.c (component_size): Correct trailing array computation,
4131 rename to component_ref_size and move...
4132 (compute_objsize): Adjust.
4133 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4134 (builtin_access::strict): Do not consider memmove.
4135 (builtin_access::write_off): New function.
4136 (builtin_memref::builtin_memref): Initialize refsize.
4137 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4138 refsize.
4139 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4140 Handle refsize.
4141 (builtin_access::builtin_access): Initialize dstoff to destination
4142 refeence offset here instead of in maybe_diag_overlap. Adjust
4143 referencess even to unrelated objects. Adjust sizrange of bounded
4144 string functions to reflect bound. For strcat, adjust destination
4145 sizrange by that of source.
4146 (builtin_access::strcat_overlap): Adjust offsets and sizes
4147 to reflect the increase in destination sizrange above.
4148 (builtin_access::overlap): Do not set dstoff here but instead
4149 in builtin_access::builtin_access.
4150 (check_bounds_or_overlap): Use builtin_access::write_off.
4151 (maybe_diag_access_bounds): Add argument. Add informational notes.
4152 (dump_builtin_memref, dump_builtin_access): New functions.
4153 * tree.c (component_ref_size): ...to here.
4154 * tree.h (component_ref_size): Declare.
4155 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4156 nul in the size of the source string.
4157
4158 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4159
4160 PR c/67224
4161 * doc/cpp.texi: Document support for extended characters in
4162 identifiers.
4163 * doc/cppopts.texi: Likewise.
4164
4165 2019-09-19 Richard Biener <rguenther@suse.de>
4166
4167 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4168 (check_reduction_path): New overload having the path as result.
4169 (vect_is_simple_reduction): From the detected reduction
4170 path build a SLP reduction chain if possible.
4171
4172 2019-09-19 Richard Biener <rguenther@suse.de>
4173
4174 PR target/91814
4175 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4176 Force operand to a register if it isn't nonimmediate_operand.
4177
4178 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4179
4180 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4181 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4182 (logical_op): Remove code attribute.
4183 (logical_OP): Likewise.
4184
4185 2019-09-19 Martin Liska <mliska@suse.cz>
4186
4187 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4188 Use proper casting.
4189
4190 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4191
4192 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4193 registers with %R.
4194
4195 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4196 for NE comparison of TImode values.
4197 (aarch64_emit_load_exclusive): Add support for TImode.
4198 (aarch64_emit_store_exclusive): Likewise.
4199 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4200 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4201 Change iterator from ALLI to ALLI_TI.
4202 (@atomic_compare_and_swap<JUST_TI>): New.
4203 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4204 (aarch64_load_exclusive_pair): New.
4205 (aarch64_store_exclusive_pair): New.
4206 * config/aarch64/iterators.md (JUST_TI): New.
4207
4208 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4209 strong_zero_p for aarch64_track_speculation; unify some code paths;
4210 use aarch64_gen_compare_reg instead of open-coding.
4211
4212 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4213 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4214 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4215 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4216 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4217 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4218 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4219 (atomic_<atomic_op><ALLI>): Likewise.
4220 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4221 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4222 * doc/invoke.texi: Document -moutline-atomics.
4223
4224 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4225
4226 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4227 trivial predicate for condition branch.
4228 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4229 for switch case.
4230 (compute_bb_predicates): Update predicate based on post-dominating
4231 relationship.
4232 (analyze_function_body): Calculate post-dominating information.
4233
4234 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4235
4236 * tree-vectorizer.h (vectorizable_condition): Take an int
4237 reduction index instead of a boolean flag.
4238 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4239 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4240 reductions if the reduction accumulator is the "then" rather
4241 than the "else" value.
4242 (vect_analyze_stmt): Update call accordingly.
4243 (vect_transform_stmt): Likewise.
4244 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4245 asserting that the index is > 0.
4246
4247 2019-09-19 Martin Liska <mliska@suse.cz>
4248
4249 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4250 (sort_congruence_classes_by_decl_uid): Likewise.
4251 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4252 easier sorting.
4253 (sem_item_optimizer::merge_classes): Likewise.
4254
4255 2019-09-19 Richard Biener <rguenther@suse.de>
4256
4257 PR tree-optimization/91812
4258 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4259 volatile loads.
4260
4261 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4262
4263 * defaults.h (TARGET_UNIT): New macro.
4264 (target_unit): New type.
4265 * rtl.h (native_encode_rtx, native_decode_rtx)
4266 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4267 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4268 * rtlanal.c (subreg_lsb_1): Delete.
4269 (subreg_size_lsb): New function.
4270 * simplify-rtx.c: Include rtx-vector-builder.h
4271 (simplify_immed_subreg): Delete.
4272 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4273 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4274 functions.
4275 (simplify_subreg): Use them.
4276 (test_vector_subregs_modes, test_vector_subregs_repeating)
4277 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4278 (test_vector_subregs): New functions.
4279 (test_vector_ops): Call test_vector_subregs for integer vector
4280 modes with at least 2 elements.
4281
4282 2019-09-19 Richard Biener <rguenther@suse.de>
4283
4284 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4285 LOOP_VINFO_OPERANDS_SWAPPED.
4286 (parloops_is_simple_reduction): Likewise.
4287 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4288 initialize operands_swapped.
4289 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4290 (vect_is_slp_reduction): Do not swap operands.
4291 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4292 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4293
4294 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4295
4296 PR target/87007
4297 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4298 Add avx_partial_xmm_update.
4299
4300 2019-09-18 Jim Wilson <jimw@sifive.com>
4301
4302 PR target/91683
4303 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4304 (riscv_move_integer): Likewise.
4305 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4306 riscv_move_integer arg.
4307 (riscv_legitimize_move): Likewise.
4308 (riscv_force_temporary): New parameter in_splitter. Don't call
4309 force_reg if true.
4310 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4311 arg.
4312 (riscv_add_offset): Likewise.
4313 (riscv_split_symbol): New parameter in_splitter. Pass to
4314 riscv_force_temporary.
4315 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4316 arg.
4317 (riscv_move_integer): New parameter in_splitter. New local
4318 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4319 in_splitter TRUE.
4320 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4321 riscv_split_symbol, and riscv_force_temporary args.
4322 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4323 riscv_move_integer arg.
4324 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4325
4326 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4327
4328 PR target/90878
4329 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4330 hard register store cost to 6.
4331
4332 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4333
4334 PR target/91446
4335 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4336 pseudo register store cost from 3 to 6 to make it the same as
4337 QImode and HImode.
4338
4339 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4340
4341 PR target/91738
4342 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4343 (one_cmpldi2): Likewise.
4344 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4345 of the constant parts is simple.
4346 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4347 (logical_op): Add new code attribute.
4348 (logical_OP): Likewise.
4349 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4350 (arm_iordi_operand): Add predicate.
4351 (arm_xordi_operand): Add predicate.
4352
4353 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4354
4355 * config/arm/arm.md (maddsidi4): Remove expander.
4356 (mulsidi3adddi): Remove pattern.
4357 (mulsidi3adddi_v6): Likewise.
4358 (mulsidi3_nov6): Likewise.
4359 (mulsidi3_v6): Likewise.
4360 (umulsidi3): Remove expander.
4361 (umulsidi3_nov6): Remove pattern.
4362 (umulsidi3_v6): Likewise.
4363 (umulsidi3adddi): Likewise.
4364 (umulsidi3adddi_v6): Likewise.
4365 (<Us>mulsidi3): Add combined expander.
4366 (<Us>maddsidi4): Likewise.
4367 (<US>mull): Add combined umull and smull pattern.
4368 (<US>mlal): Likewise.
4369 * config/arm/iterators.md (Us): Add new iterator.
4370
4371 2019-09-18 Richard Biener <rguenther@suse.de>
4372
4373 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4374 swapping.
4375 (vectorize_fold_left_reduction): Remove assert.
4376 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4377 operand in position 2. Remove assert.
4378
4379 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4380
4381 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4382 (smulsi3_highpart_nov6): Remove pattern.
4383 (smulsi3_highpart_v6): Likewise.
4384 (umulsi3_highpart): Likewise.
4385 (umulsi3_highpart_nov6): Likewise.
4386 (umulsi3_highpart_v6): Likewise.
4387 (<US>mull_high): Add new combined multiply pattern.
4388
4389 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4390
4391 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4392 (arm_mulsi3_v6): Likewise.
4393 (mulsi3addsi_v6): Likewise.
4394 (mulsi3subsi): Likewise.
4395 (mul): Add new multiply pattern.
4396 (mla): Likewise.
4397 (mls): Likewise.
4398
4399 2019-09-18 Richard Biener <rguenther@suse.de>
4400
4401 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4402 (parloops_valid_reduction_input_p): Copy from
4403 valid_reduction_input_p.
4404 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4405 (parloops_needs_fold_left_reduction_p): Copy from
4406 needs_fold_left_reduction_p.
4407 (parloops_is_simple_reduction): Copy from
4408 vect_is_simple_reduction.
4409 (parloops_force_simple_reduction): Copy from
4410 vect_force_simple_reduction.
4411 (gather_scalar_reductions): Adjust.
4412 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4413 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4414
4415 2019-09-18 Richard Biener <rguenther@suse.de>
4416
4417 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4418 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4419 static.
4420 (vect_create_epilog_for_reduction): Remove dead code.
4421
4422 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4423
4424 * varasm.c (assemble_real): Generate canonical const_ints.
4425
4426 2019-09-18 Richard Biener <rguenther@suse.de>
4427
4428 PR lto/91763
4429 * lto-streamer-in.c (input_eh_regions): Move EH init to
4430 lto_materialize_function.
4431 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4432 Likewise.
4433
4434 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4435
4436 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4437 are INTEGER_CSTs.
4438
4439 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4440
4441 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4442 of checking specifically for INTEGER_CST.
4443
4444 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4445
4446 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4447 sizes instead of uhwi sizes.
4448
4449 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4450
4451 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4452 (add_const_value_attribute): Handle CONST_POLY_INT.
4453
4454 2019-09-18 Martin Liska <mliska@suse.cz>
4455
4456 * dbgcnt.def (store_merging): New counter.
4457 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4458 Use it in store merging.
4459
4460 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4461
4462 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4463 function.
4464 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4465 * config/arm/arm.c (arm_sched_variable_issue): New function.
4466 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4467
4468 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4469
4470 * config/arm/types.md (no_reservation): New reservation.
4471 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4472 no_insn here.
4473 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4474 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4475 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4476 * config/arm/arm1020e.md (1020alu_op): Likewise.
4477 * config/arm/arm1026ejs.md (alu_op): Likewise.
4478 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4479 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4480 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4481 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4482 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4483 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4484 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4485 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4486 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4487 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4488 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4489 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4490 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4491 * config/arm/fa526.md (526_alu_op): Likewise.
4492 * config/arm/fa606te.md (606te_alu_op): Likewise.
4493 * config/arm/fa626te.md (626te_alu_op): Likewise.
4494 * config/arm/fa726te.md (726te_alu_op): Likewise.
4495 * config/arm/xgene1.md (xgene1_nop): Likewise.
4496
4497 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4498
4499 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4500 "no_insn" to "branch".
4501
4502 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4503
4504 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4505
4506 2019-09-17 Richard Biener <rguenther@suse.de>
4507
4508 PR debug/91772
4509 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4510 was missing generate locations only once.
4511
4512 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4513
4514 PR ipa/91089
4515 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4516 option.
4517 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4518 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4519 for switch default case using range analysis information.
4520
4521 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4522
4523 PR target/91749
4524 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4525 mode attributed is supported by FDPIC.
4526
4527 2019-09-17 Richard Biener <rguenther@suse.de>
4528
4529 PR tree-optimization/91790
4530 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4531 use the correct DR for setting up realignment.
4532
4533 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4534
4535 PR target/91719
4536 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4537 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4538 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4539 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4540
4541 2019-09-16 Jason Merrill <jason@redhat.com>
4542
4543 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4544
4545 2019-09-16 Martin Liska <mliska@suse.cz>
4546
4547 * gimple-fold.c (or_comparisons_1): Remove rules moved
4548 to ...
4549 * match.pd: ... here.
4550
4551 2019-09-16 Martin Liska <mliska@suse.cz>
4552
4553 * gimple-fold.c (or_comparisons_1): Remove rules
4554 moved to ...
4555 * match.pd: ... here.
4556
4557 2019-09-16 Martin Liska <mliska@suse.cz>
4558
4559 * genmatch.c (dt_node::append_simplify): Do not print
4560 warning when we have duplicate patterns belonging
4561 to a same simplify rule.
4562 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4563 (maybe_fold_comparisons_from_match_pd): Handle
4564 tcc_comparison as a results.
4565 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4566
4567 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4568 Qi Feng <ffengqi@linux.ibm.com>
4569
4570 PR middle-end/88784
4571 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4572 (x > y && x == XXX_MIN): Optimize into 'false'.
4573 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4574 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4575 (x < y && x == XXX_MAX): Optimize into 'false'.
4576 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4577 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4578 (x <= y || x != XXX_MIN): Optimize into 'true'.
4579 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4580 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4581 (x >= y || x != XXX_MAX): Optimize into 'true'.
4582 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4583
4584 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4585 Martin Liska <mliska@suse.cz>
4586
4587 * gimple-fold.c (and_comparisons_1): Add type as first
4588 argument.
4589 (and_var_with_comparison): Likewise.
4590 (and_var_with_comparison_1): Likewise.
4591 (or_comparisons_1): Likewise.
4592 (or_var_with_comparison): Likewise.
4593 (or_var_with_comparison_1): Likewise.
4594 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4595 (maybe_fold_or_comparisons): Likewise.
4596 (maybe_fold_comparisons_from_match_pd): New.
4597 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4598 (maybe_fold_or_comparisons): Likewise.
4599 * gimple.c (gimple_size): Make it public and add num_ops argument.
4600 (gimple_init): New function.
4601 (gimple_alloc): Call gimple_init.
4602 * gimple.h (gimple_size): New.
4603 (gimple_init): Likewise.
4604 * tree-if-conv.c (fold_or_predicates): Pass type.
4605 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4606 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4607 (optimize_vec_cond_expr): Likewise.
4608 (ovce_extract_ops): Return type of conditional expression.
4609 * tree-ssanames.c (init_ssa_name_imm_use): New.
4610 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4611 * tree-ssanames.h (init_ssa_name_imm_use): New.
4612
4613 2019-09-16 Richard Biener <rguenther@suse.de>
4614
4615 PR tree-optimization/91756
4616 PR tree-optimization/87132
4617 * tree-ssa-alias.h (enum translate_flags): New.
4618 (get_continuation_for_phi): Use it instead of simple bool flag.
4619 (walk_non_aliased_vuses): Likewise.
4620 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4621 (get_continuation_for_phi): When looking across backedges only
4622 disallow valueization.
4623 (walk_non_aliased_vuses): Adjust.
4624 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4625 if requested.
4626
4627 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4628
4629 PR middle-end/80791
4630 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4631 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4632 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4633 * target.def (have_count_reg_decr_p): New hook.
4634 (doloop_cost_for_generic): Likewise.
4635 (doloop_cost_for_address): Likewise.
4636 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4637 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4638 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4639 * doc/tm.texi: Regenerate.
4640 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4641 addend.
4642 (record_group): Init doloop_p.
4643 (add_candidate_1): Add optional argument doloop, change the handlings
4644 accordingly.
4645 (add_candidate): Likewise.
4646 (generic_predict_doloop_p): Update attribute.
4647 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4648 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4649 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4650 MIN_EXPR.
4651 (get_computation_cost): Update for doloop IV cand extra cost.
4652 (determine_group_iv_cost_cond): Update for doloop IV cand.
4653 (determine_iv_cost): Likewise.
4654 (ivopts_estimate_reg_pressure): Likewise.
4655 (may_eliminate_iv): Update handlings for doloop IV cand.
4656 (add_iv_candidate_for_doloop): New function.
4657 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4658 (iv_ca_set_no_cp): Update for doloop IV cand.
4659 (iv_ca_set_cp): Likewise.
4660 (iv_ca_dump): Dump register cost.
4661 (find_doloop_use): New function.
4662 (analyze_and_mark_doloop_use): Likewise.
4663 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4664
4665 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4666
4667 PR middle-end/91708
4668 * cse.c (cse_insn): Do not replace anything with a
4669 MEM.
4670
4671 2019-09-13 Ian Lance Taylor <iant@golang.org>
4672
4673 * doc/invoke.texi (Optimize Options): Fix typo.
4674
4675 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4676
4677 PR tree-optimization/89386
4678 * config/i386/sse.md (smulhrs<mode>3): New expander.
4679 (smulhrsv4hi3): Ditto.
4680
4681 2019-09-12 Richard Biener <rguenther@suse.de>
4682
4683 PR tree-optimization/91750
4684 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4685 in the type of the evolution.
4686
4687 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4688
4689 PR tree-optimization/89386
4690 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4691 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4692 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4693 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4694 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4695 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4696 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4697 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4698 (su, r): Handle the unspecs above.
4699 (bt): New int attribute.
4700 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4701 * internal-fn.c (first_commutative_argument): Commutativity info for
4702 above.
4703 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4704 (umulhrs_optab): New optabs.
4705 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4706 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4707 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4708 function.
4709 (vect_vect_recog_func_ptrs): Add it.
4710
4711 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4712
4713 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4714 code.
4715
4716 2019-09-11 Nathan Sidwell <nathan@acm.org>
4717
4718 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4719 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4720
4721 2019-09-11 Richard Biener <rguenther@suse.de>
4722
4723 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4724 * lto-wrapper.c (merge_and_complain): Pick up -g.
4725 (append_compiler_options): Likewise.
4726 (run_gcc): Re-instantiate handling -g0 at link-time.
4727 * doc/invoke.texi (flto): Document debug info generation.
4728
4729 2019-09-11 Richard Biener <rguenther@suse.de>
4730
4731 PR tree-optimization/90387
4732 * vr-values.c (vr_values::extract_range_basic): After inlining
4733 simplify non-constant __builtin_constant_p to false.
4734
4735 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4736
4737 PR rtl-optimization/89795
4738 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4739 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4740
4741 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4742
4743 PR tree-optimization/91723
4744 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4745 instead of pointer equality when checking if argument vectypes are
4746 the same.
4747
4748 PR middle-end/91725
4749 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4750 of get_nonzero_bits, only call it for integral types.
4751
4752 2019-09-11 Richard Biener <rguenther@suse.de>
4753
4754 Revert
4755 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4756
4757 * match.pd: Add flag_unsafe_math_optimizations check
4758 before deciding on the widest type in a binary math operation.
4759
4760 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4761
4762 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4763 and CALL_REALLY_USED_REGISTERS must be defined, and that
4764 CALL_REALLY_USED_REGISTERS is preferred.
4765 * doc/tm.texi: Regenerate.
4766 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4767 (call_really_used_regs): Likewise.
4768 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4769 CALL_REALLY_USED_REGISTERS are defined.
4770 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4771 initial value if defined.
4772 (initial_call_really_used_regs): Delete.
4773 (saved_call_really_used_regs): Likewise.
4774 (CALL_REALLY_USED_REGNO_P): Likewise.
4775 (init_reg_sets): Remove handling of call_really_used_regs.
4776 (save_register_info, restore_register_info, globalize_reg): Likewise.
4777 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4778 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4779 outside operand_reg_set.
4780 (fix_register): Don't change call_used_regs if
4781 CALL_REALLY_USED_REGISTERS is defined.
4782 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4783 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4784 instead of call_really_used_regs.
4785 (csky_conditional_register_usage): Remove the old handling of
4786 call_used_regs and change the handling of call_really_used_regs
4787 to use call_used_regs instead.
4788 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4789 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4790 making a register fixed.
4791 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4792 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4793 instead of call_really_used_regs.
4794 (m32r_conditional_register_usage): Don't set call_used_regs when
4795 making a register fixed.
4796 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4797 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4798 instead of call_really_used_regs.
4799 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4800 (mips_cfun_call_saved_reg_p): Likewise.
4801 (mips_swap_registers): Remove the old handling of call_used_regs
4802 and change the handling of call_really_used_regs to use call_used_regs
4803 instead.
4804 (mips_conditional_register_usage): Likewise.
4805 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4806 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4807 instead of call_really_used_regs.
4808 (mn10300_get_live_callee_saved_regs): Likewise.
4809 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4810 (mn10300_conditional_register_usage): Don't set call_used_regs when
4811 making a register fixed.
4812 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4813 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4814 Remove the old handling of call_used_regs and change the handling
4815 of call_really_used_regs to use call_used_regs instead.
4816 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4817 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4818 instead of call_really_used_regs.
4819 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4820 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4821 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4822 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4823 (s390_conditional_register_usage): Remove the old handling of
4824 call_used_regs and change the handling of call_really_used_regs
4825 to use call_used_regs instead.
4826 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4827 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4828 (sh_fix_range, reg_unused_after): Likewise.
4829 (sh_conditional_register_usage): Remove the old handling of
4830 call_used_regs and change the handling of call_really_used_regs
4831 to use call_used_regs instead.
4832 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4833 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4834 call_used_regs when making a register fixed.
4835 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4836 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4837 call_used_regs when making a register fixed.
4838 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4839 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4840 set call_used_regs when making a register fixed.
4841 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4842 * config/visium/visium.c (visium_conditional_register_usage): Remove
4843 the old handling of call_used_regs and change the handling of
4844 call_really_used_regs to use call_used_regs instead.
4845
4846 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4847
4848 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4849 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4850 * reginfo.c (call_used_regs): New macro.
4851
4852 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4853
4854 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4855 fixed_regs test.
4856 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4857 (bpf_expand_epilogue): Likewise.
4858 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4859 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4860 (ft32_expand_epilogue): Likewise.
4861 * config/i386/i386.c (ix86_save_reg): Likewise.
4862 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4863 (moxie_expand_epilogue): Likewise.
4864 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4865 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4866 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4867
4868 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4869
4870 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4871 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4872 instead of testing call_used_regs directly.
4873 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4874 (aarch64_components_for_bb): Likewise.
4875 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4876 * config/arc/arc.c (arc_must_save_register): Likewise.
4877 (arc_epilogue_uses): Likewise.
4878 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4879 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4880 (arm_compute_save_reg0_reg12_mask): Likewise.
4881 (arm_compute_save_core_reg_mask): Likewise.
4882 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4883 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4884 (cmse_nonsecure_entry_clear_before_return): Likewise.
4885 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4886 (arm_expand_epilogue): Likewise.
4887 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4888 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4889 (_reg_unused_after): Likewise.
4890 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4891 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4892 (add_to_reg, hwloop_optimize): Likewise.
4893 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4894 (bpf_expand_epilogue): Likewise.
4895 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4896 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4897 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4898 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4899 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4900 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4901 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4902 * config/frv/frv.c (frv_stack_info): Likewise.
4903 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4904 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4905 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4906 (move_callee_saved_registers): Likewise.
4907 * config/h8300/h8300.c (byte_reg): Likewise.
4908 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4909 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4910 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4911 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4912 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4913 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4914 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4915 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4916 * config/m32c/m32c.c (need_to_save): Likewise.
4917 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4918 * config/mcore/mcore.c (calc_live_regs): Likewise.
4919 * config/microblaze/microblaze.c (microblaze_must_save_register):
4920 Likewise.
4921 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4922 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4923 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4924 (mmix_expand_epilogue): Likewise.
4925 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4926 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4927 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4928 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4929 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4930 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4931 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4932 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4933 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4934 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4935 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4936 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4937 * config/rl78/rl78.c (need_to_save): Likewise.
4938 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4939 (rs6000_stack_info, generate_set_vrsave): Likewise.
4940 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4941 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4942 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4943 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4944 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4945 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4946 (save_local_or_in_reg_p): Likewise.
4947 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4948 (xstormy16_epilogue_uses): Likewise.
4949 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4950 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4951 * config/v850/v850.c (compute_register_save_size): Likewise.
4952 * config/vax/vax.c (vax_expand_prologue): Likewise.
4953 * config/visium/visium.c (visium_save_reg_p): Likewise.
4954 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4955 * cselib.c (cselib_process_insn): Likewise.
4956 * df-scan.c (df_get_entry_block_def_set): Likewise.
4957 * function.c (aggregate_value_p): Likewise.
4958 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4959 * ira-lives.c (process_bb_node_lives): Likewise.
4960 * ira.c (do_reload): Likewise.
4961 * lra-lives.c (process_bb_lives): Likewise.
4962 * lra-remat.c (lra_remat): Likewise.
4963 * lra.c (lra): Likewise.
4964 * postreload.c (reload_combine_recognize_pattern): Likewise.
4965 (reload_cse_move2add): Likewise.
4966 * recog.c (peep2_find_free_register): Likewise.
4967 * regrename.c (check_new_reg_p): Likewise.
4968 * reload.c (find_equiv_reg): Likewise.
4969 * reload1.c (reload, find_reg): Likewise.
4970 * sel-sched.c (init_hard_regs_data): Likewise.
4971
4972 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4973
4974 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4975 regs_invalidated_by_call & ~fixed_reg_set instead of
4976 call_used_or_fixed_regs & ~fixed_reg_set.
4977 * config/sh/sh.c (output_stack_adjust): Likewise.
4978
4979 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4980
4981 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4982 (call_used_reg_set): Delete.
4983 (call_used_or_fixed_regs): New macro.
4984 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4985 of call_used_reg_set.
4986 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4987 instead of call_used_regs.
4988 (save_call_clobbered_regs): Likewise.
4989 * cfgcleanup.c (old_insns_match_p): Likewise.
4990 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4991 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4992 Likewise.
4993 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4994 * config/sh/sh.c (output_stack_adjust): Likewise.
4995 * final.c (collect_fn_hard_reg_usage): Likewise.
4996 * ira-build.c (ira_build): Likewise.
4997 * ira-color.c (calculate_saved_nregs): Likewise.
4998 (allocno_reload_assign, calculate_spill_cost): Likewise.
4999 * ira-conflicts.c (ira_build_conflicts): Likewise.
5000 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5001 * ira-lives.c (process_bb_node_lives): Likewise.
5002 * ira.c (setup_reg_renumber): Likewise.
5003 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5004 * lra-constraints.c (need_for_call_save_p): Likewise.
5005 (need_for_split_p, inherit_in_ebb): Likewise.
5006 * lra-lives.c (process_bb_lives): Likewise.
5007 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5008 * postreload.c (reload_combine): Likewise.
5009 * regrename.c (find_rename_reg): Likewise.
5010 * reload1.c (reload_as_needed): Likewise.
5011 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5012 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5013 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5014
5015 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5016
5017 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5018 (no_caller_save_reg_set): Delete.
5019 * caller-save.c (init_caller_save): Don't initialize it.
5020 * ira-conflicts.c (ira_build_conflicts): Calculate
5021 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5022
5023 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5024
5025 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5026 (target_hard_regs::x_savable_regs): New field.
5027 (call_fixed_reg_set): Delete.
5028 (savable_regs): New macro,
5029 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5030 (init_reg_sets_1): Likewise. Initialize savable_regs.
5031 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5032 for all registers. Set savable_regs instead of call_fixed_reg_set.
5033 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5034 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5035 * config/sh/sh.c (output_stack_adjust): Likewise.
5036
5037 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5038
5039 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5040 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5041 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5042
5043 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5044
5045 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5046 * rtlanal.c (get_call_rtx_from): Likewise.
5047 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5048 than the pattern to get_call_rtx_from.
5049 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5050 an rtx_insn * instead of an rtx.
5051 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5052
5053 2019-09-10 Martin Liska <mliska@suse.cz>
5054
5055 * common.opt: Use newly added WarnRemoved.
5056 * config/aarch64/aarch64.opt: Likewise.
5057 * config/arm/arm.opt: Likewise.
5058 * config/i386/i386.opt: Likewise.
5059 * config/ia64/ia64.opt: Likewise.
5060 * config/rs6000/rs6000.opt: Likewise.
5061 * doc/options.texi: Document WarnRemoved properly.
5062 * dwarf2out.c (gen_producer_string): Handle renamed
5063 OPT_SPECIAL_warn_removed.
5064 * lto-opts.c (lto_write_options): Likewise.
5065 * lto-wrapper.c (merge_and_complain): Likewise.
5066 * opts-common.c (decode_cmdline_option): Likewise.
5067 (prune_options): Likewise.
5068 (read_cmdline_option): Likewise.
5069 (control_warning_option): Likewise.
5070 * opts.c (print_filtered_help): Likewise.
5071 * optc-gen.awk: Parse for WarnRemoved and make usage
5072 of Deprecated an error.
5073 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5074
5075 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5076
5077 * doc/install.texi: Fix syntax for html generation.
5078
5079 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5080
5081 PR middle-end/91680
5082 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5083 the shift type to type.
5084
5085 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5086
5087 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5088 FDPIC mode.
5089 (stack_protect_combined_test_insn): Likewise.
5090
5091 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5092 Mickaël Guêné <mickael.guene@st.com>
5093
5094 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5095 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5096 (load_tp_soft_fdpic): New pattern.
5097 (load_tp_soft): Disable in FDPIC mode.
5098
5099 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5100 Mickaël Guêné <mickael.guene@st.com>
5101
5102 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5103 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5104 (arm_call_tls_get_addr): Add FDPIC support.
5105 (legitimize_tls_address): Likewise.
5106 (arm_emit_tls_decoration): Likewise.
5107
5108 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5109 Mickaël Guêné <mickael.guene@st.com>
5110
5111 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5112 support.
5113 (arm_trampoline_init): Likewise.
5114 (arm_trampoline_adjust_address): Likewise.
5115 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5116
5117 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5118 Mickaël Guêné <mickael.guene@st.com>
5119
5120 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5121 (legitimize_pic_address): Enforce binding rules on function
5122 pointers in FDPIC mode.
5123 (arm_assemble_integer): Likewise.
5124
5125 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5126 Mickaël Guêné <mickael.guene@st.com>
5127
5128 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5129 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5130 FDPIC.
5131
5132 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5133 Mickaël Guêné <mickael.guene@st.com>
5134
5135 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5136 field.
5137
5138 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5139 Mickaël Guêné <mickael.guene@st.com>
5140
5141 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5142 in FDPIC mode.
5143 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5144 new function.
5145 * config/arm/arm.c (arm_option_override): Define pic register to
5146 FDPIC_REGNUM.
5147 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5148 have no decl or go through PLT.
5149 (calculate_pic_address_constant): New function.
5150 (legitimize_pic_address): Call calculate_pic_address_constant.
5151 (arm_load_pic_register): Handle TARGET_FDPIC.
5152 (arm_is_segment_info_known): New function.
5153 (arm_pic_static_addr): Add support for FDPIC.
5154 (arm_load_function_descriptor): New function.
5155 (arm_emit_call_insn): Add support for FDPIC.
5156 (arm_assemble_integer): Add support for FDPIC.
5157 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5158 Define. (FDPIC_REGNUM): New define.
5159 * config/arm/arm.md (call): Add support for FDPIC.
5160 (call_value): Likewise.
5161 (restore_pic_register_after_call): New pattern.
5162 (untyped_call): Disable if FDPIC.
5163 (untyped_return): Likewise.
5164 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5165
5166 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5167 Mickaël Guêné <mickael.guene@st.com>
5168
5169 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5170 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5171 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5172 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5173 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5174 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5175 * config/arm/uclinuxfdpiceabi.h: New file.
5176
5177 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5178
5179 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5180
5181 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5182 Mickaël Guêné <mickael.guene@st.com>
5183
5184 * config/arm/arm.opt: Add -mfdpic option.
5185 * doc/invoke.texi: Add documentation for -mfdpic.
5186
5187 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5188
5189 * expmed.c (extract_bit_field): Update function comment
5190 regarding alt_rtl.
5191 * expr.c (expand_expr_real): Update function comment
5192 regarding alt_rtl.
5193 (expand_misaligned_mem_ref): New helper function.
5194 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5195 Remove duplicate assignment to "base" at case MEM_REF.
5196 Remove a shadowed variable "unsignedp" at case VCE.
5197
5198 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5199
5200 * regset.h (regs_invalidated_by_call_regset): Delete.
5201 (fixed_reg_set_regset): Likewise.
5202 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5203 (fixed_reg_set_regset, persistent_obstack): Likewise.
5204 (init_reg_sets_1, globalize_reg): Update accordingly.
5205 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5206 instead of a bitmap.
5207 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5208 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5209 instead of regs_invalidated_by_call_regset.
5210 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5211 * df-scan.c (df_scan_start_dump): Likewise.
5212 * dse.c (copy_fixed_regs): Likewise.
5213 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5214
5215 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5216
5217 * array-traits.h: New file.
5218 * coretypes.h (array_traits, bitmap_view): New types.
5219 * bitmap.h: Include "array-traits.h"
5220 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5221 (base_bitmap_view, bitmap_view): New classes.
5222 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5223 * hard-reg-set.h: Include array-traits.h.
5224 (array_traits<HARD_REG_SET>): New struct.
5225 * regset.h (IOR_REG_SET_HRS): New macro.
5226 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5227 rather than iterating over each hard register.
5228 * sched-deps.c (sched_analyze_insn): Likewise.
5229 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5230
5231 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5232
5233 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5234 instead of a HARD_REG_SET *.
5235 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5236 (ira_build): Update call accordingly.
5237 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5238
5239 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5240
5241 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5242 (HARD_REG_SET::operator!=): Likewise.
5243 (hard_reg_set_equal_p): Delete.
5244 * cfgcleanup.c (old_insns_match_p): Use == instead of
5245 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5246 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5247 (add_allocno_hard_regs_to_forest): Likewise.
5248 (setup_allocno_available_regs_num): Likewise.
5249 * ira.c (setup_pressure_classes): Likewise.
5250 (setup_allocno_and_important_classes): Likewise.
5251 (setup_reg_class_relations): Likewise.
5252 * lra-lives.c (process_bb_lives): Likewise.
5253 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5254
5255 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5256
5257 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5258 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5259 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5260 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5261 Likewise.
5262 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5263 * ira.c (setup_reg_renumber): Likewise.
5264 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5265 * regrename.c (regrename_find_superclass): Likewise.
5266 * reload1.c (find_reg): Likewise.
5267
5268 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5269
5270 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5271 * caller-save.c (setup_save_areas): Use "&~" instead of
5272 AND_COMPL_HARD_REG_SET.
5273 (save_call_clobbered_regs): Likewise.
5274 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5275 Likewise.
5276 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5277 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5278 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5279 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5280 (mips_conditional_register_usage): Likewise.
5281 * config/sh/sh.c (output_stack_adjust): Likewise.
5282 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5283 (setup_profitable_hard_regs): Likewise.
5284 (get_conflict_and_start_profitable_regs): Likewise.
5285 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5286 (ira_build_conflicts): Likewise.
5287 * ira-costs.c (restrict_cost_classes): Likewise.
5288 (setup_regno_cost_classes_by_aclass): Likewise.
5289 * ira-lives.c (process_bb_node_lives): Likewise.
5290 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5291 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5292 (setup_allocno_and_important_classes, setup_class_translate_array)
5293 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5294 Likewise.
5295 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5296 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5297 (process_alt_operands, inherit_in_ebb): Likewise.
5298 * lra-eliminations.c (update_reg_eliminate): Likewise.
5299 * lra-lives.c (process_bb_lives): Likewise.
5300 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5301 * resource.c (find_dead_or_set_registers): Likewise.
5302 (mark_target_live_regs): Likewise.
5303 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5304 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5305 (implicit_clobber_conflict_p): Likewise.
5306 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5307 (try_shrink_wrapping): Likewise.
5308
5309 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5310
5311 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5312 (HARD_REG_SET::operator|=): Likewise.
5313 (IOR_HARD_REG_SET): Delete.
5314 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5315 IOR_HARD_REG_SET.
5316 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5317 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5318 * final.c (collect_fn_hard_reg_usage): Likewise.
5319 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5320 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5321 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5322 (propagate_some_info_from_allocno): Likewise.
5323 (copy_info_to_removed_store_destinations): Likewise.
5324 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5325 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5326 (fast_allocation): Likewise.
5327 * ira-conflicts.c (ira_build_conflicts): Likewise.
5328 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5329 (process_bb_node_lives): Likewise.
5330 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5331 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5332 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5333 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5334 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5335 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5336 (process_bb_lives): Likewise.
5337 * lra-spills.c (assign_spill_hard_regs): Likewise.
5338 * postreload.c (reload_combine): Likewise.
5339 * reginfo.c (init_reg_sets_1): Likewise.
5340 * regrename.c (merge_overlapping_regs, find_rename_reg)
5341 (merge_chains): Likewise.
5342 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5343 (find_reload_regs, finish_spills, choose_reload_regs_init)
5344 (emit_reload_insns): Likewise.
5345 * reorg.c (redundant_insn): Likewise.
5346 * resource.c (find_dead_or_set_registers, mark_set_resources)
5347 (mark_target_live_regs): Likewise.
5348 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5349 * sched-deps.c (sched_analyze_insn): Likewise.
5350 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5351 (find_best_reg_for_expr): Likewise.
5352 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5353
5354 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5355
5356 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5357 (HARD_REG_SET::operator&): Likewise.
5358 (AND_HARD_REG_SET): Delete.
5359 * caller-save.c (setup_save_areas): Use "&" instead of
5360 AND_HARD_REG_SET.
5361 (save_call_clobbered_regs): Likewise.
5362 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5363 * config/m32c/m32c.c (reduce_class): Likewise.
5364 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5365 * final.c (get_call_reg_set_usage): Likewise.
5366 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5367 (setup_left_conflict_sizes_p): Likewise.
5368 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5369 (ira_build_conflicts): Likewise.
5370 * ira-costs.c (restrict_cost_classes): Likewise.
5371 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5372 (setup_reg_class_relations): Likewise.
5373 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5374 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5375 * resource.c (find_dead_or_set_registers): Likewise.
5376 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5377
5378 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5379
5380 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5381 (COMPL_HARD_REG_SET): Delete.
5382 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5383 of COMPL_HARD_REG_SET.
5384 (try_rename_operands): Likewise.
5385 * config/sh/sh.c (push_regs): Likewise.
5386 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5387 * lra-constraints.c (contains_reg_p): Likewise.
5388 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5389
5390 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5391
5392 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5393 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5394 of COPY_HARD_REG_SET.
5395 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5396 (epiphany_conditional_register_usage): Likewise.
5397 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5398 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5399 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5400 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5401 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5402 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5403 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5404 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5405 * config/sh/sh.c (output_stack_adjust): Likewise.
5406 * final.c (collect_fn_hard_reg_usage): Likewise.
5407 (get_call_reg_set_usage): Likewise.
5408 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5409 (ira_flattening): Likewise.
5410 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5411 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5412 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5413 (ira_reassign_pseudos): Likewise.
5414 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5415 (ira_build_conflicts): Likewise.
5416 * ira-costs.c (restrict_cost_classes): Likewise.
5417 (setup_regno_cost_classes_by_aclass): Likewise.
5418 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5419 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5420 (setup_stack_reg_pressure_class, setup_pressure_classes)
5421 (setup_allocno_and_important_classes, setup_class_translate_array)
5422 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5423 (ira_setup_eliminable_regset): Likewise.
5424 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5425 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5426 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5427 (process_alt_operands, inherit_in_ebb): Likewise.
5428 * lra-lives.c (process_bb_lives): Likewise.
5429 * lra-spills.c (assign_spill_hard_regs): Likewise.
5430 * lra.c (lra): Likewise.
5431 * mode-switching.c (new_seginfo): Likewise.
5432 * postreload.c (reload_combine): Likewise.
5433 * reg-stack.c (straighten_stack): Likewise.
5434 * reginfo.c (save_register_info, restore_register_info): Likewise.
5435 (init_reg_sets_1, record_subregs_of_mode): Likewise
5436 * regrename.c (create_new_chain, rename_chains): Likewise.
5437 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5438 (find_reload_regs): Likewise.
5439 * resource.c (find_dead_or_set_registers): Likewise.
5440 (mark_target_live_regs): Likewise.
5441 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5442
5443 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5444
5445 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5446 (note_pattern_stores): Declare.
5447 (note_stores): Take an rtx_insn *.
5448 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5449 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5450 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5451 (note_stores): Take an rtx_insn * as argument and process
5452 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5453 (note_pattern_stores): ...this.
5454 (find_first_parameter_load): Pass the insn rather than
5455 its pattern to note_stores.
5456 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5457 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5458 (insert_one_insn): Likewise.
5459 * combine.c (combine_instructions): Likewise.
5460 (likely_spilled_retval_p): Likewise.
5461 (try_combine): Use note_pattern_stores instead of note_stores.
5462 (record_dead_and_set_regs): Pass the insn rather than its pattern
5463 to note_stores.
5464 (reg_dead_at_p): Likewise.
5465 * config/bfin/bfin.c (workaround_speculation): Likewise.
5466 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5467 rather than an rtx.
5468 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5469 instead of note_stores.
5470 (frv_optimize_membar_local): Pass the insn rather than its pattern
5471 to note_stores.
5472 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5473 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5474 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5475 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5476 (mips_reorg_process_insns): Likewise.
5477 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5478 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5479 rather than rtxes.
5480 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5481 its pattern to note_stores.
5482 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5483 of note_stores.
5484 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5485 the insn to note_stores.
5486 (prescan_insns_for_dce): Update call accordingly.
5487 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5488 to note_stores.
5489 * df-problems.c (can_move_insns_across): Likewise.
5490 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5491 * function.c (assign_parm_setup_reg): Likewise.
5492 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5493 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5494 (single_set_gcse): Likewise.
5495 * ira.c (validate_equiv_mem): Likewise.
5496 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5497 for no_equiv.
5498 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5499 pattern to note_stores.
5500 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5501 * loop-iv.c (simplify_using_initial_values): Likewise.
5502 * mode-switching.c (optimize_mode_switching): Likewise.
5503 * optabs.c (emit_libcall_block_1): Likewise.
5504 (expand_atomic_compare_and_swap): Likewise.
5505 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5506 (record_opr_changes): Likewise. Remove explicit handling of
5507 CALL_INSN_FUNCTION_USAGE.
5508 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5509 * regcprop.c (kill_clobbered_values): Likewise.
5510 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5511 to note_stores.
5512 * regrename.c (build_def_use): Likewise.
5513 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5514 for mark_not_eliminable.
5515 (reload_as_needed): Pass the insn rather than its pattern
5516 to note_stores.
5517 (emit_output_reload_insns): Likewise.
5518 * resource.c (mark_target_live_regs): Likewise.
5519 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5520 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5521 instead of note_stores.
5522 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5523 its pattern to note_stores.
5524 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5525 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5526
5527 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5528
5529 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5530 than a #define. Use a structure rather than an array as the
5531 fallback definition. Remove special cases for low array sizes.
5532 (const_hard_reg_set): New typedef.
5533 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5534 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5535 (hard_reg_set_empty_p): Likewise.
5536 (SET_HARD_REG_BIT): Use a function rather than a macro to
5537 handle the case in which HARD_REG_SET is a structure.
5538 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5539 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5540 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5541 (IOR_COMPL_HARD_REG_SET): Likewise.
5542 (hard_reg_set_iterator::pset): Constify the pointer target.
5543 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5544 of a "const HARD_REG_SET". Update the handling of non-integer
5545 HARD_REG_SETs.
5546 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5547 * reload.h: Likewise.
5548 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5549 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5550 of a "const HARD_REG_SET".
5551 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5552 (range_in_hard_reg_set_p): Likewise.
5553 * ira-costs.c (restrict_cost_classes): Likewise.
5554 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5555 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5556 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5557 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5558 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5559 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5560 take an unsigned int and open-code the HARD_REG_SET operations.
5561
5562 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5563
5564 * Makefile.in (OBJS): Remove bt-load.o.
5565 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5566 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5567 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5568 document that the option no longer does anything.
5569 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5570 * target.def (branch_target_register_class): Delete.
5571 (branch_target_register_callee_saved): Likewise.
5572 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5573 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5574 * doc/tm.texi: Regenerate.
5575 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5576 (make_pass_branch_target_load_optimize2): Likewise.
5577 * passes.def (pass_branch_target_load_optimize1): Likewise.
5578 (pass_branch_target_load_optimize2): Likewise.
5579 * targhooks.h (default_branch_target_register_class): Likewise.
5580 * targhooks.c (default_branch_target_register_class): Likewise.
5581 * opt-suggestions.c (test_completion_valid_options): Remove
5582 -fbtr-bb-exclusive from the list of test options.
5583 * bt-load.c: Remove.
5584
5585 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5586
5587 * match.pd: Add flag_unsafe_math_optimizations check
5588 before deciding on the widest type in a binary math operation.
5589
5590 2019-09-09 Martin Liska <mliska@suse.cz>
5591
5592 * config/i386/i386.opt: Update comment of removed
5593 options that are preserved only for backward
5594 compatibility.
5595
5596 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5597
5598 PR target/87853
5599 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5600 instead of __v16qs.
5601
5602 PR target/91704
5603 * config/i386/avxintrin.h (__v32qs): New typedef.
5604 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5605 instead of __v32qi.
5606
5607 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5608
5609 * doc/invoke.texi (Option Summary): Cover eBPF.
5610 (eBPF Options): New section.
5611 * doc/extend.texi (BPF Built-in Functions): Likewise.
5612 (BPF Kernel Helpers): Likewise.
5613
5614 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5615
5616 * config.gcc: Support for bpf-*-* targets.
5617 * common/config/bpf/bpf-common.c: New file.
5618 * config/bpf/t-bpf: Likewise.
5619 * config/bpf/predicates.md: Likewise.
5620 * config/bpf/constraints.md: Likewise.
5621 * config/bpf/bpf.opt: Likewise.
5622 * config/bpf/bpf.md: Likewise.
5623 * config/bpf/bpf.h: Likewise.
5624 * config/bpf/bpf.c: Likewise.
5625 * config/bpf/bpf-protos.h: Likewise.
5626 * config/bpf/bpf-opts.h: Likewise.
5627 * config/bpf/bpf-helpers.h: Likewise.
5628 * config/bpf/bpf-helpers.def: Likewise.
5629
5630 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5631
5632 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5633 indirect_calls.
5634
5635 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5636
5637 * opt-functions.awk (integer_range_info): Make sure values are in
5638 numeric context before operating with them.
5639
5640 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5641
5642 * genemit.c (gen_split): Print the filename and line number where the
5643 splitter (or peephole2) was defined, to the dump file.
5644
5645 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5646
5647 PR tree-optimization/91665
5648 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5649 incompatible with the type of PHI result.
5650
5651 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5652
5653 PR target/91684
5654 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5655 gen_unaligned_storedi for 4-byte aligned addresses.
5656
5657 2019-09-06 Jim Wilson <jimw@sifive.com>
5658
5659 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5660 change.
5661
5662 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5663
5664 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5665
5666 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5667
5668 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5669 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5670
5671 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5672
5673 PR target/91654
5674 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5675 cost of SSE->integer and integer->SSE moves from 2 to 6.
5676 (core_cost): Ditto.
5677
5678 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5679
5680 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5681 before testing TYPE_TRANSPARENT_AGGR.
5682 * calls.c (initialize_argument_information, load_register_parameters):
5683 Likewise.
5684
5685 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5686
5687 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5688 high regs.
5689 (cmp_ior): Likewise.
5690
5691 2019-09-06 Martin Liska <mliska@suse.cz>
5692
5693 * doc/match-and-simplify.texi: Separate tuples with ;.
5694
5695 2019-09-06 Martin Liska <mliska@suse.cz>
5696
5697 PR c++/91125
5698 * Makefile.in: Remove tlink.o.
5699 * collect2.c (do_link): New function isolated
5700 from do_tlink.
5701 (main): Use.
5702 * collect2.h (do_tlink): Remove declaration of do_tlink.
5703 * doc/extend.texi: Remove documentation of -frepo.
5704 * doc/invoke.texi: Likewise.
5705 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5706 * tlink.c: Remove.
5707
5708 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5709 Jim Wilson <jimw@sifive.com>
5710
5711 PR target/91635
5712 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5713 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5714 paradoxical_subreg_p (operands[0]).
5715 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5716 use as intermediate value.
5717
5718 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5719
5720 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5721 (sync_compare_and_swap<mode>_insn): Likewise.
5722
5723 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5724
5725 PR middle-end/91615
5726 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5727 without movmisalign optab.
5728
5729 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5730
5731 PR middle-end/91001
5732 PR middle-end/91105
5733 PR middle-end/91106
5734 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5735 types, use type of their first field instead of type of
5736 args[i].tree_value.
5737
5738 2019-09-05 Richard Biener <rguenther@suse.de>
5739
5740 PR rtl-optimization/91656
5741 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5742 of early out.
5743
5744 2019-09-05 Richard Biener <rguenther@suse.de>
5745
5746 PR middle-end/90501
5747 * tree-inline.c (declare_return_variable): Mark the return
5748 slot as addressable after building an address of it.
5749
5750 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5751
5752 * doc/install.texi: Update and clarify requirements to build GNAT.
5753
5754 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5755
5756 PR middle-end/91577
5757 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5758 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5759 call to be in memory.
5760 (pass_expand::execute): Call discover_nonconstant_array_refs before
5761 setting currently_expanding_to_rtl.
5762
5763 2019-09-04 Caroline Tice <cmtice@google.com>
5764
5765 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5766 specified together.
5767
5768 2019-09-04 Marek Polacek <polacek@redhat.com>
5769
5770 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5771
5772 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5773
5774 PR target/32413
5775 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5776 for QI and HImode moves between SSE and general registers.
5777
5778 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5779
5780 PR c/78736
5781 * doc/invoke.texi: Document -Wenum-conversion.
5782
5783 2019-09-04 Richard Biener <rguenther@suse.de>
5784
5785 PR rtl-optimization/36262
5786 * postreload-gcse.c: Include intl.h and gcse.h.
5787 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5788 to avoid linear list walk.
5789 (record_last_mem_set_info): Gate off if not computing transparentness.
5790 (get_bb_avail_insn): If transparentness isn't computed give up
5791 early.
5792 (gcse_after_reload_main): Skip compute_transp and extended PRE
5793 if gcse_or_cprop_is_too_expensive says so.
5794
5795 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5796
5797 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5798 noinit section.
5799 (msp430_select_section): Handle decls with the "noinit" attribute with
5800 default_elf_select_section.
5801 Handle SECCAT_RODATA_MERGE_* section types with
5802 default_elf_select_section.
5803 Add comments about handling of unsupported section types.
5804 (msp430_section_type_flags): Remove handling of the noinit section.
5805
5806 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5807
5808 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5809 conflicting msp430-specific attributes.
5810 (msp430_section_attr): Likewise.
5811 Add warnings about conflicts with generic "noinit" and "section"
5812 attributes.
5813 Fix grammar in -mlarge error message.
5814 (msp430_data_attr): Rename to msp430_persist_attr.
5815 Add warnings about conflicts with generic "noinit" and "section"
5816 attributes.
5817 Add warning for when variable is not initialized.
5818 Chain conditionals which prevent the attribute being added.
5819 (ATTR_EXCL): New helper.
5820 (attr_reent_exclusions): New exclusion table.
5821 (attr_naked_exclusions): Likewise.
5822 (attr_crit_exclusions): Likewise.
5823 (attr_lower_exclusions): Likewise.
5824 (attr_upper_exclusions): Likewise.
5825 (attr_either_exclusions): Likewise.
5826 (attr_persist_exclusions): Likewise.
5827 (msp430_attribute_table): Update with exclusion rules.
5828 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5829 has a section.
5830
5831 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5832
5833 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5834 (msp430_handle_generic_attribute): New function.
5835 * doc/tm.texi: Regenerate.
5836 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5837 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5838 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5839 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5840
5841 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5842
5843 PR tree-optimization/91504
5844 * match.pd: Add ((~a & b) ^a) --> (a | b).
5845
5846 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5847
5848 PR target/91604
5849 * config/i386/i386-expand.c (split_double_mode): If there is more than
5850 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5851 already split matching MEM operand instead of calling adjust_address
5852 again.
5853
5854 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5855
5856 * config.gcc: Obsolete spu target. Remove references to spu.
5857 * configure.ac: Remove references to spu.
5858 * configure: Regenerate.
5859 * config/spu/: Remove directory.
5860 * common/config/spu/: Remove directory.
5861
5862 * doc/extend.texi: Remove references to spu.
5863 * doc/invoke.texi: Likewise.
5864 * doc/md.texi: Likewise.
5865 * doc/sourcebuild.texi: Likewise.
5866
5867 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5868
5869 PR middle-end/91603
5870 PR middle-end/91612
5871 PR middle-end/91613
5872 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5873 and SSA_NAME referring to CONSTANT_P correctly.
5874
5875 2019-09-03 Richard Biener <rguenther@suse.de>
5876
5877 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5878 (vn_nary_op_insert): Likewise.
5879 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5880 (vn_nary_op_lookup): Likewise.
5881 (vn_nary_op_insert): Likewise.
5882
5883 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5884
5885 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5886 (*op0, 1) instead of XEXP (*op1, 0).
5887
5888 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5889
5890 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5891 (aarch64_fjcvtzs): New define_insn.
5892 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5893 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5894 Add AARCH64_JSCVT.
5895 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5896 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5897 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5898 __ARM_FEATURE_JCVT where appropriate.
5899 * config/aarch64/arm_acle.h (__jcvt): Define.
5900
5901 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5902
5903 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5904 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5905 (aarch64_<frintnzs_op><mode>): New define_insn.
5906 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5907 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5908 __ARM_FEATURE_FRINT when appropriate.
5909 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5910 frint32x, frint64z, frint64x.
5911 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5912 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5913 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5914 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5915 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5916 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5917 * config/aarch64/iterators.md (VSFDF): Define.
5918 (FRINTNZX): Likewise.
5919 (frintnzs_op): Likewise.
5920
5921 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5922
5923 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5924 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5925 Cortex-A34.
5926 * config/aarch64/aarch64-tune.md: Regenerated.
5927 * doc/invoke.texi: Document the new processors.
5928
5929 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5930
5931 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5932 string.
5933 (ssbs): Likewise.
5934 (sve2): Likewise.
5935 (sve2-sm4): Likewise.
5936 (sveaes): Likewise.
5937 (svesha3): Likewise.
5938 (svebitperm): Likewise.
5939
5940 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5941 Richard Biener <rguenther@suse.de>
5942
5943 PR tree-optimization/91597
5944 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5945 BIT_AND_EXPR optimization for pointers, even if both operand
5946 ranges don't include NULL, the result can be NULL.
5947
5948 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5949
5950 PR middle-end/91605
5951 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5952 (non_mem_decl_p): ...this.
5953 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5954 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5955 unconditionally as before.
5956
5957 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5958
5959 PR target/91323
5960 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5961 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5962 * tree.def (LTGT_EXPR): Likewise.
5963 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5964
5965 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5966
5967 PR go/91617
5968 * fold-const.c (range_check_type): For enumeral and boolean
5969 type, pass 1 to type_for_size langhook instead of
5970 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5971 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5972 (build_range_check): Don't call unsigned_type_for for pointer types.
5973 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5974 range_check_type result.
5975
5976 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5977
5978 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5979 (replace_ref): Do not replace a chain of only two candidates which are
5980 valid memory references.
5981
5982 2019-09-02 Martin Liska <mliska@suse.cz>
5983
5984 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5985 Bail out when we'll end up with the same number of clusters as
5986 at the beginning.
5987 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5988 (jump_table_cluster::can_be_handled): Remove the guard
5989 as it's already handled in ::is_enabled. Allocate output
5990 after early bail out.
5991
5992 2019-09-02 Martin Liska <mliska@suse.cz>
5993
5994 PR gcov-profile/91601
5995 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5996 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5997 also negative edges.
5998 (circuit): Handle also negative edges as they can happen
5999 in some situations.
6000
6001 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6002
6003 PR target/91472
6004 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6005 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6006 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6007
6008 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6009
6010 PR middle-end/91623
6011 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6012 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6013 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6014 zero vector.
6015
6016 PR lto/91572
6017 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6018 GIMPLE_ASM TREE_LIST operands.
6019
6020 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6021
6022 * doc/generic.texi (Unary and Binary Expressions): Mark up
6023 an instance of TYPE_MIN.
6024
6025 2019-08-31 Stafford Horne <shorne@gmail.com>
6026
6027 * config/or1k/constraints.md (t): New constraint.
6028 * config/or1k/or1k.h (GOT_REGS): New register class.
6029 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6030
6031 2019-08-30 Jim Wilson <jimw@sifive.com>
6032
6033 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6034 and -fpic and -mplt then disable -msave-restore and warn.
6035
6036 2019-08-30 Martin Sebor <msebor@redhat.com>
6037
6038 PR middle-end/91599
6039 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6040 the statement doesn't have one.
6041 * gimple-pretty-print.c (percent_G_format): Same.
6042
6043 PR middle-end/91584
6044 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6045 before using them to validate MEM_REF offset.
6046
6047 2019-08-30 Marek Polacek <polacek@redhat.com>
6048
6049 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6050
6051 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6052
6053 * config/arm/arm.md (unaligned_loaddi,
6054 unaligned_storedi): New unspec insn patterns.
6055 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6056 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6057 and unaligned_storedi for 4-byte aligned memory.
6058 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6059 4-byte aligned memory.
6060
6061 2019-08-30 Martin Jambor <mjambor@suse.cz>
6062
6063 tree-optimization/91579
6064 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6065 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6066 appropriate.
6067 (arg_needs_copy_p): Removed.
6068 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6069 arg_needs_copy_p.
6070 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6071
6072 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6073
6074 * config/i386/i386-features.c
6075 (general_scalar_chain::compute_convert_gain):
6076 Correct cost for double-word shifts.
6077 (general_scalar_to_vector_candidate_p): Reject count operands
6078 greater or equal to mode bitsize.
6079
6080 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6081
6082 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6083 for moves between SSE and non-general registers and between
6084 mask and non-general registers.
6085 (ix86_register_move_cost): Remove stalled comment.
6086
6087 2019-08-29 Richard Biener <rguenther@suse.de>
6088
6089 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6090 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6091
6092 2019-08-29 Richard Biener <rguenther@suse.de>
6093
6094 PR bootstrap/91580
6095 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6096 Do not emit scalar copies for debug-insns, instead replace
6097 their uses with the reg copy used in the chain or reset them
6098 if there is a reaching definition outside of the chain as well.
6099
6100 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6101
6102 PR target/91560
6103 * config/i386/i386-expand.c (expand_vec_perm_movs,
6104 expand_vec_perm_blend, expand_vec_perm_vpermil,
6105 expand_vec_perm_pshufb, expand_vec_perm_1,
6106 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6107 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6108 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6109 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6110 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6111 comments - replace ix86_expand_vec_perm_builtin_1 with
6112 ix86_expand_vec_perm_const_1.
6113 (expand_vec_perm2_vperm2f128_vblend): New function.
6114 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6115 expand_vec_perm2_vperm2f128_vblend as last resort.
6116 (canonicalize_perm): Formatting fix.
6117
6118 PR tree-optimization/91351
6119 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6120 unsigned_type_for.
6121 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6122 range_check_type returns NULL.
6123 * tree-switch-conversion.c (switch_conversion::build_one_array):
6124 Use range_check_type instead of unsigned_type_for, don't perform
6125 linear opt if it returns NULL.
6126 (bit_test_cluster::find_bit_tests): Formatting fix.
6127 (bit_test_cluster::emit): Use range_check_type instead of
6128 unsigned_type_for.
6129 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6130 returns NULL.
6131
6132 2019-08-29 Richard Biener <rguenther@suse.de>
6133
6134 PR tree-optimization/91568
6135 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6136 (vect_update_max_nunits): Add overload for poly_uint64.
6137 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6138 (vect_build_slp_tree): Record max_nunits into the subtree
6139 and merge it upwards.
6140 (vect_print_slp_tree): Print max_nunits.
6141
6142 2019-08-28 Marek Polacek <polacek@redhat.com>
6143
6144 Implement P1152R4: Deprecating some uses of volatile.
6145 PR c++/91361
6146 * doc/invoke.texi: Document -Wvolatile.
6147
6148 2019-08-28 Marek Polacek <polacek@redhat.com>
6149
6150 PR c++/91360 - Implement C++20 P1143R2: constinit.
6151 * doc/invoke.texi: Document -Wc++20-compat.
6152
6153 2019-08-28 Martin Sebor <msebor@redhat.com>
6154
6155 PR tree-optimization/91457
6156 * builtins.c (component_size): New function.
6157 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6158 * builtins.h (compute_objsize): Add argument.
6159 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6160 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6161 (vrp_prop::check_mem_ref): Same.
6162 (vrp_prop::search_for_addr_array): Set no-warning bit.
6163 (check_array_bounds): Same.
6164
6165 2019-08-28 Martin Sebor <msebor@redhat.com>
6166
6167 PR driver/80545
6168 * opts-common.c (option_enabled): Correct checking for language
6169 options.
6170
6171 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6172
6173 * config/i386/i386.c (ix86_register_move_cost): Do not
6174 limit the cost of moves to/from XMM register to minimum 8.
6175
6176 2019-08-28 Martin Jambor <mjambor@suse.cz>
6177
6178 PR ipa/91468
6179 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6180 checking assert a normal assert to test it really is redundant.
6181 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6182 redundant test.
6183 (update_jump_functions_after_inlining): Removed combining unary
6184 arithmetic operations with an ancestor jump function.
6185 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6186 instead of t.
6187
6188 2019-08-28 Richard Biener <rguenther@suse.de>
6189
6190 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6191 add the MD problem.
6192
6193 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6194 Richard Biener <rguenther@suse.de>
6195
6196 * expr.c (expand_assignment): Handle misaligned DECLs.
6197 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6198 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6199 too.
6200 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6201 * varasm.c (build_constant_desc): Align constants of misaligned types.
6202 * config/arm/predicates.md (aligned_operand): New predicate.
6203 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6204 aligned_operand to check restrictions on memory addresses.
6205 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6206 * config/arm/vec-common.md (mov<VALL>): Likewise.
6207
6208 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6209
6210 PR libgomp/91530
6211 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6212 V_128 iterator instead of VI_128.
6213
6214 2019-08-28 Martin Liska <mliska@suse.cz>
6215
6216 PR tree-optimization/90970
6217 * builtins.c (check_access): Remove assignment to maxread
6218 as it hasn't been used since when it was introduced in r255755.
6219
6220 2019-08-27 Martin Sebor <msebor@redhat.com>
6221
6222 PR tree-optimization/91567
6223 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6224 of unknown strings.
6225 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6226 to PTRDIFF_MAX - 2.
6227
6228 2019-08-27 Jeff Law <law@redhat.com>
6229
6230 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6231 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6232
6233 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6234
6235 PR target/91528
6236 * config/i386/i386-features.c (convert_scalars_to_vector):
6237 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6238 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6239 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6240 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6241
6242 2019-08-27 Richard Biener <rguenther@suse.de>
6243
6244 * config/i386/i386-features.h
6245 (general_scalar_chain::~general_scalar_chain): Add.
6246 (general_scalar_chain::insns_conv): New bitmap.
6247 (general_scalar_chain::n_sse_to_integer): New.
6248 (general_scalar_chain::n_integer_to_sse): Likewise.
6249 (general_scalar_chain::make_vector_copies): Adjust signature.
6250 * config/i386/i386-features.c
6251 (general_scalar_chain::general_scalar_chain): Outline,
6252 initialize new members.
6253 (general_scalar_chain::~general_scalar_chain): New.
6254 (general_scalar_chain::mark_dual_mode_def): Record insns
6255 we need to insert conversions at and count them.
6256 (general_scalar_chain::compute_convert_gain): Account
6257 for conversion instructions at chain boundary.
6258 (general_scalar_chain::make_vector_copies): Generate a single
6259 copy for a def by a specific insn.
6260 (general_scalar_chain::convert_registers): First populate
6261 defs_map, then make copies at out-of chain insns.
6262
6263 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6264
6265 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6266 comment.
6267 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6268
6269 2019-08-27 Martin Liska <mliska@suse.cz>
6270
6271 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6272 loop.
6273 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6274 Enclose in anonymous namespace.
6275 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6276 hard_register initialization in braces.
6277 * tree-vrp.h (value_range_base::supports_type_p): Return false
6278 for function with boolean return type.
6279
6280 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6281
6282 * config/i386/i386.c (emit_i387_cw_initialization)
6283 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6284
6285 2019-08-26 Martin Sebor <msebor@redhat.com>
6286
6287 PR c++/83431
6288 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6289 (sprintf_dom_walker): Remove class.
6290 (get_int_range): Make argument const.
6291 (directive::fmtfunc, directive::set_precision): Same.
6292 (format_none): Same.
6293 (build_intmax_type_nodes): Same.
6294 (adjust_range_for_overflow): Same.
6295 (format_floating): Same.
6296 (format_character): Same.
6297 (format_string): Same.
6298 (format_plain): Same.
6299 (get_int_range): Cast away constness.
6300 (format_integer): Same.
6301 (get_string_length): Call get_range_strlen_dynamic. Handle
6302 null lendata.maxbound.
6303 (should_warn_p): Adjust argument scope qualifier.
6304 (maybe_warn): Same.
6305 (format_directive): Same.
6306 (parse_directive): Same.
6307 (is_call_safe): Same.
6308 (try_substitute_return_value): Same.
6309 (sprintf_dom_walker::handle_printf_call): Rename...
6310 (handle_printf_call): ...to this. Initialize target to host charmap
6311 here instead of in pass_sprintf_length::execute.
6312 (struct call_info): Make global.
6313 (sprintf_dom_walker::compute_format_length): Make global.
6314 (sprintf_dom_walker::handle_gimple_call): Same.
6315 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6316 * print-rtl.c (print_pattern): Reduce the number of spaces to
6317 avoid -Wformat-truncation.
6318 * tree-pass.h (make_pass_warn_printf): New function.
6319 * tree-ssa-strlen.c (strlen_optimize): New variable.
6320 (get_string_length): Add comments.
6321 (get_range_strlen_dynamic): New function.
6322 (check_and_optimize_call): New function.
6323 (handle_integral_assign): New function.
6324 (strlen_check_and_optimize_stmt): Factor code out into
6325 strlen_check_and_optimize_call and handle_integral_assign.
6326 (strlen_dom_walker::evrp): New member.
6327 (strlen_dom_walker::before_dom_children): Use evrp member.
6328 (strlen_dom_walker::after_dom_children): Use evrp member.
6329 (printf_strlen_execute): New function.
6330 (pass_strlen::gate): Update to handle printf calls.
6331 (dump_strlen_info): New function.
6332 (pass_data_warn_printf): New variable.
6333 (pass_warn_printf): New class.
6334 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6335 (handle_printf_call): Same.
6336 * tree-vrp.c (value_range_base::type): Adjust assertion.
6337 * vr-values.c (vr_values::update_value_range): Use type of the first
6338 argument rather than the second.
6339
6340 2019-08-26 Richard Biener <rguenther@suse.de>
6341
6342 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6343 Remove.
6344 (convert_scalars_to_vector): Do not call it.
6345
6346 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6347 Uros Bizjak <ubizjak@gmail.com>
6348
6349 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6350 CASE_MATHFN_FLOATN for roundeven.
6351 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6352 I387_ROUNDEVEN.
6353 (ix86_mode_needed): Likewise.
6354 (ix86_mode_after): Likewise.
6355 (ix86_mode_entry): Likewise.
6356 (ix86_mode_exit): Likewise.
6357 (ix86_emit_mode_set): Likewise.
6358 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6359 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6360 (ix86_entity): Add I387_ROUNDEVEN.
6361 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6362 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6363 (define_int_iterator): Likewise.
6364 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6365 (define_constant): Define ROUND_ROUNDEVEN mode.
6366 (define_attr): Add roundeven mode for i387_cw.
6367 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6368 * internal-fn.def (ROUNDEVEN): New builtin function.
6369 * optabs.def (roundeven_optab): New optab.
6370
6371 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6372
6373 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6374 for ROUNDEVEN.
6375 * builtins.def: Added function definitions for roundeven function
6376 variants.
6377 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6378 function call. Adjust condition for floor, ceil, trunc and round.
6379 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6380 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6381 (integer_valued_real_call_p): Added case for roundeven function.
6382 * real.c (is_even): New function. Returns true if real number is even,
6383 otherwise returns false.
6384 (is_halfway_below): New function. Returns true if real number is
6385 halfway between two integers, else return false.
6386 (real_roundeven): New function. Round real number to nearest integer,
6387 rounding halfway cases towards even.
6388 * real.h (real_value): Added descriptive comments. Added function
6389 declaration for roundeven function.
6390 * doc/extend.texi (Other Builtins): List roundeven variants among
6391 functions which can be handled as builtins.
6392
6393 2019-08-26 Richard Biener <rguenther@suse.de>
6394
6395 PR target/91522
6396 PR target/91527
6397 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6398 New member.
6399 (general_scalar_chain::replace_with_subreg): Remove.
6400 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6401 (general_scalar_chain::convert_reg): Adjust signature.
6402 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6403 iterate over all defs of a reg.
6404 (general_scalar_chain::replace_with_subreg): Remove.
6405 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6406 (general_scalar_chain::make_vector_copies): Populate defs_map,
6407 place copy only after defs that are used as vectors in the chain.
6408 (general_scalar_chain::convert_reg): Emit a copy for a specific
6409 def in a specific instruction.
6410 (general_scalar_chain::convert_op): All reg uses are converted here.
6411 (general_scalar_chain::convert_insn): Emit copies for scalar
6412 uses of defs here. Replace uses with the copies we created.
6413 Replace and convert the def. Adjust REG_DEAD notes, remove
6414 REG_EQUIV/EQUAL notes.
6415 (general_scalar_chain::convert_registers): Only handle copies
6416 into the chain here.
6417
6418 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6419
6420 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6421
6422 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6423
6424 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6425 Add nop_convert case.
6426 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6427 Fold all statements if requested.
6428 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6429 Allow to fold all statements.
6430 * tree-vrp.c (class vrp_folder):
6431 Let substitute_and_fold_engine fold all statements.
6432
6433 2019-08-26 Richard Biener <rguenther@suse.de>
6434
6435 PR tree-optimization/91526
6436 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6437 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6438 TODO_update_address_taken.
6439
6440 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6441
6442 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6443 __STDC_HOSTED__.
6444
6445 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6446
6447 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6448 machine mode for unspec_volatile operand.
6449
6450 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6451
6452 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6453 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6454 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6455 (prefer_neon_for_64bits): Remove.
6456 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6457 (tune_params): Remove PREF_NEON_64_FALSE uses.
6458 (arm_option_override): Remove prefer_neon selection code.
6459 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6460 * gcc/config/arm/arm-protos.h (tune_params): Remove
6461 prefer_neon_for_64bits.
6462 (prefer_neon_for_64bits): Remove.
6463
6464 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6465
6466 PR pch/61250
6467 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6468 and issue any diagnostics needed before collecting the pre-PCH
6469 state.
6470
6471 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6472
6473 PR middle-end/91283
6474 * common.opt (fexcess-precision=): Add Optimization flag. Use
6475 flag_excess_precision variable instead of
6476 flag_excess_precision_cmdline.
6477 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6478 member.
6479 (flag_excess_precision): Don't define.
6480 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6481 flag_excess_precision_cmdline. Remove comment.
6482 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6483 and x_flag_excess_precision instead of
6484 frontend_set_flag_excess_precision_cmdline and
6485 x_flag_excess_precision_cmdline.
6486 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6487 x_flag_excess_precision_cmdline.
6488 * toplev.c (init_excess_precision): Remove.
6489 (lang_dependent_init_target): Don't call it.
6490
6491 2019-08-23 Martin Liska <mliska@suse.cz>
6492
6493 * lto-wrapper.c (run_gcc): When setting jobserver
6494 set also parallel to 1. This was done so before r273908.
6495
6496 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6497
6498 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6499 (cortex-a76ae): Likewise.
6500 (cortex-a77): Likewise
6501 * config/arm/arm-tables.opt: Regenerate.
6502 * config/arm/arm-tune.md: Likewise.
6503 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6504 cortex-a77 CPU options.
6505
6506 2019-08-23 Martin Liska <mliska@suse.cz>
6507
6508 * profile.c (instrument_values): Do not set
6509 0 as last argument.
6510 * tree-profile.c (gimple_gen_interval_profiler): Remove
6511 last argument.
6512 (gimple_gen_pow2_profiler): Likewise.
6513 (gimple_gen_topn_values_profiler): Likewise.
6514 (gimple_gen_ic_profiler): Likewise.
6515 (gimple_gen_time_profiler): Likewise.
6516 (gimple_gen_average_profiler): Likewise.
6517 (gimple_gen_ior_profiler): Likewise.
6518 * value-prof.c (dump_histogram_value): Use default
6519 in switch statement instead of HIST_TYPE_MAX.
6520 (stream_in_histogram_value): Likewise.
6521 (gimple_duplicate_stmt_histograms): Do not
6522 use NULL for implicitly set arguments.
6523 (gimple_divmod_values_to_profile): Do not use
6524 reserve+quick_push.
6525 (gimple_indirect_call_to_profile): Likewise.
6526 (gimple_find_values_to_profile): Use implicit
6527 function call arguments.
6528 * value-prof.h (gimple_alloc_histogram_value):
6529 Set default values.
6530 (gimple_gen_interval_profiler): Remove last argument.
6531 (gimple_gen_pow2_profiler): Likewise.
6532 (gimple_gen_topn_values_profiler): Likewise.
6533 (gimple_gen_ic_profiler): Likewise.
6534 (gimple_gen_time_profiler): Likewise.
6535 (gimple_gen_average_profiler): Likewise.
6536 (gimple_gen_ior_profiler): Likewise.
6537
6538 2019-08-22 Martin Sebor <msebor@redhat.com>
6539
6540 PR middle-end/91490
6541 * builtins.c (c_strlen): Rename argument and introduce new local.
6542 Set no-warning bit on original argument.
6543 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6544 Fold empty and zero constructors into empty strings.
6545 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6546 for missing initializers.
6547 * tree.c (build_string_literal): Handle optional argument.
6548 * tree.h (build_string_literal): Add defaulted argument.
6549 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6550 no-warning bit on original expression.
6551
6552 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6553
6554 PR target/91481
6555 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6556 and UNSPEC_DARN_RAW.
6557 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6558 UNSPECV_DARN_RAW.
6559 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6560 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6561 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6562
6563 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6564
6565 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6566 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6567 * config/rs6000/rs6000.md (unspec): ... here.
6568 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6569 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6570 cmpeqb, *cmpeqb_internal): Delete, move to...
6571 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6572 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6573 cmpeqb, *cmpeqb_internal): ... here.
6574
6575 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6576
6577 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6578 intrinsics if __ARM_FP.
6579 Use __ARM_FEATURE_CRC32 ifdef guard.
6580
6581 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6582
6583 * config/arm/arm.md (neon_for_64bits): Remove.
6584 (avoid_neon_for_64bits): Remove.
6585 (arm_adddi3): Always split early.
6586 (arm_subdi3): Always split early.
6587 (negdi2): Remove Neon expansion.
6588 (split zero_extend): Split before reload.
6589 (split sign_extend): Split before reload.
6590
6591 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6592
6593 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6594 (qhs_extenddi_cstr): Likewise.
6595 * config/arm/arm.md (ashldi3): Always expand early.
6596 (ashlsi3): Likewise.
6597 (ashrsi3): Likewise.
6598 (zero_extend<mode>di2): Remove Neon variants.
6599 (extend<mode>di2): Likewise.
6600 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6601 (signed_shift_di3_neon): Likewise.
6602 (unsigned_shift_di3_neon): Likewise.
6603 (ashrdi3_neon_imm_noclobber): Likewise.
6604 (lshrdi3_neon_imm_noclobber): Likewise.
6605 (<shift>di3_neon): Likewise.
6606 (split extend): Remove DI extend split patterns.
6607
6608 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6609
6610 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6611 (split not): Add DImode not splitter.
6612 (anddi3): Remove pattern.
6613 (anddi3_insn): Likewise.
6614 (anddi_zesidi_di): Likewise.
6615 (anddi_sesdi_di): Likewise.
6616 (anddi_notdi_di): Likewise.
6617 (anddi_notzesidi_di): Likewise.
6618 (anddi_notsesidi_di): Likewise.
6619 (iordi3): Likewise.
6620 (iordi3_insn): Likewise.
6621 (iordi_zesidi_di): Likewise.
6622 (iordi_sesidi_di): Likewise.
6623 (xordi3): Likewise.
6624 (xordi3_insn): Likewise.
6625 (xordi_sesidi_di): Likewise.
6626 (xordi_zesidi_di): Likewise.
6627 (one_cmpldi2): Likewise.
6628 (one_cmpldi2_insn): Likewise.
6629 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6630 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6631 alternative.
6632 (iwmmxt_xordi3): Likewise.
6633 (iwmmxt_anddi3): Likewise.
6634 * config/arm/neon.md (orndi3_neon): Remove pattern.
6635 (anddi_notdi_di): Likewise.
6636 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6637 (arm_iordi_operand_neon): Likewise.
6638 (arm_xordi_operand_neon): Likewise.
6639 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6640 (iordi_notzesidi_di): Likewise.
6641 (iordi_notdi_zesidi): Likewise.
6642 (iordi_notsesidi_di): Likewise.
6643
6644 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6645
6646 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6647 insn.
6648 (iorsi3_compare0_scratch): Likewise.
6649
6650 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6651
6652 * config/aarch64/aarch64-simd-builtins.def:
6653 (ld1x4): New.
6654 (st1x4): Likewise.
6655 * config/aarch64/aarch64-simd.md:
6656 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6657 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6658 (aarch64_ld1_x4_<mode>): Likewise.
6659 (aarch64_st1_x4_<mode>): Likewise.
6660 * config/aarch64/arm_neon.h:
6661 (vld1_s8_x4): New function.
6662 (vld1q_s8_x4): Likewise.
6663 (vld1_s16_x4): Likewise.
6664 (vld1q_s16_x4): Likewise.
6665 (vld1_s32_x4): Likewise.
6666 (vld1q_s32_x4): Likewise.
6667 (vld1_u8_x4): Likewise.
6668 (vld1q_u8_x4): Likewise.
6669 (vld1_u16_x4): Likewise.
6670 (vld1q_u16_x4): Likewise.
6671 (vld1_u32_x4): Likewise.
6672 (vld1q_u32_x4): Likewise.
6673 (vld1_f16_x4): Likewise.
6674 (vld1q_f16_x4): Likewise.
6675 (vld1_f32_x4): Likewise.
6676 (vld1q_f32_x4): Likewise.
6677 (vld1_p8_x4): Likewise.
6678 (vld1q_p8_x4): Likewise.
6679 (vld1_p16_x4): Likewise.
6680 (vld1q_p16_x4): Likewise.
6681 (vld1_s64_x4): Likewise.
6682 (vld1_u64_x4): Likewise.
6683 (vld1_p64_x4): Likewise.
6684 (vld1q_s64_x4): Likewise.
6685 (vld1q_u64_x4): Likewise.
6686 (vld1q_p64_x4): Likewise.
6687 (vld1_f64_x4): Likewise.
6688 (vld1q_f64_x4): Likewise.
6689 (vst1_s8_x4): Likewise.
6690 (vst1q_s8_x4): Likewise.
6691 (vst1_s16_x4): Likewise.
6692 (vst1q_s16_x4): Likewise.
6693 (vst1_s32_x4): Likewise.
6694 (vst1q_s32_x4): Likewise.
6695 (vst1_u8_x4): Likewise.
6696 (vst1q_u8_x4): Likewise.
6697 (vst1_u16_x4): Likewise.
6698 (vst1q_u16_x4): Likewise.
6699 (vst1_u32_x4): Likewise.
6700 (vst1q_u32_x4): Likewise.
6701 (vst1_f16_x4): Likewise.
6702 (vst1q_f16_x4): Likewise.
6703 (vst1_f32_x4): Likewise.
6704 (vst1q_f32_x4): Likewise.
6705 (vst1_p8_x4): Likewise.
6706 (vst1q_p8_x4): Likewise.
6707 (vst1_p16_x4): Likewise.
6708 (vst1q_p16_x4): Likewise.
6709 (vst1_s64_x4): Likewise.
6710 (vst1_u64_x4): Likewise.
6711 (vst1_p64_x4): Likewise.
6712 (vst1q_s64_x4): Likewise.
6713 (vst1q_u64_x4): Likewise.
6714 (vst1q_p64_x4): Likewise.
6715 (vst1_f64_x4): Likewise.
6716 (vst1q_f64_x4): Likewise.
6717
6718 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6719
6720 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6721
6722 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6723 Richard Sandiford <richard.sandiford@arm.com>
6724
6725 PR target/88839
6726 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6727 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6728
6729 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6730
6731 PR target/90724
6732 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6733 in reg if it fails aarch64_plus_operand predicate.
6734
6735 2019-08-21 Richard Biener <rguenther@suse.de>
6736
6737 PR tree-optimization/91482
6738 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6739 BUILT_IN_ASSUME_ALIGNED calls.
6740
6741 2019-08-21 Richard Biener <rguenther@suse.de>
6742
6743 PR target/91498
6744 PR target/91503
6745 * config/i386/i386-features.c
6746 (general_scalar_chain::make_vector_copies): Copy stack temporary
6747 rtx when using it multiple times.
6748 (general_scalar_chain::convert_reg): Likewise.
6749
6750 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6751
6752 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6753
6754 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6755
6756 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6757 catch more redundant zero initialization cases.
6758 (dse_dom_walker::dse_optimize_stmt): Likewise.
6759
6760 2019-08-20 Richard Biener <rguenther@suse.de>
6761
6762 PR lto/91307
6763 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6764 by collect2 when targetm.have_ctors_dtors which avoids dragging
6765 in temporary filenames from LTO input objects.
6766
6767 2019-08-20 Richard Biener <rguenther@suse.de>
6768
6769 PR tree-optimization/37242
6770 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6771 to (T)a + (T)b if we know that a + b does not overflow.
6772
6773 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6774
6775 PR rtl-optimization/91347
6776 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6777 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6778
6779 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6780
6781 * calls.h (function_arg_info): Add a pass_by_reference field,
6782 defaulting to false.
6783 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6784 when applying pass-by-reference semantics.
6785 (initialize_argument_information): Likewise.
6786 (emit_library_call_value_1): Likewise.
6787 * function.c (assign_parm_data_one): Remove passed_pointer field.
6788 (assign_parm_find_data_types): Don't set it.
6789 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6790 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6791 arg.pass_by_reference instead of passed_pointer.
6792
6793 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6794
6795 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6796 into a single function_arg_info, updating its fields when we
6797 apply pass-by-reference and promotion semantics. Use the
6798 function_arg_info to track the mode rather than keeping it in
6799 a separate local variable.
6800 (initialize_argument_information): Likewise. Base the final
6801 arg_to_skip on this new function_arg_info rather than creating
6802 a new one from scratch.
6803
6804 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6805
6806 * function.c (assign_parm_data_one): Replace passed_type,
6807 promoted_mode and named_arg with a function_arg_info field.
6808 (assign_parm_find_data_types): Remove local variables and
6809 assign directly to "data". Make data->passed_mode shadow
6810 data->arg.mode until promotion, then assign the promoted
6811 mode to data->arg.mode.
6812 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6813 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6814 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6815 (assign_parm_setup_block, assign_parm_setup_reg)
6816 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6817 arg.mode instead of promoted_mode, arg.type instead of passed_type
6818 and arg.named instead of named_arg. Use data->arg for
6819 function_arg_info structures that had the field values passed_type,
6820 promoted_mode and named_arg. Base other function_arg_infos on
6821 data->arg, changing the necessary properties.
6822
6823 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6824
6825 * calls.h (apply_pass_by_reference_rules): Declare.
6826 * calls.c (apply_pass_by_reference_rules): New function.
6827 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6828 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6829 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6830 * function.c (assign_parm_find_data_types): Likewise.
6831 * var-tracking.c (prepare_call_arguments): Likewise.
6832
6833 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6834
6835 * target.def (must_pass_in_stack): Take a function_arg_info instead
6836 of a mode and a type.
6837 * doc/tm.texi: Regenerate.
6838 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6839 instead of a mode and a type.
6840 (must_pass_in_stack_var_size_or_pad): Likewise.
6841 * calls.c (must_pass_in_stack_var_size): Likewise.
6842 (must_pass_in_stack_var_size_or_pad): Likewise.
6843 (initialize_argument_information): Update call to
6844 targetm.calls.must_pass_in_stack.
6845 (must_pass_va_arg_on_stack): Likewise.
6846 * function.c (assign_parm_find_entry_rtl): Likewise.
6847 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6848 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6849 (alpha_function_arg_advance): Likewise.
6850 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6851 (cr16_function_arg_advance): Likewise.
6852 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6853 (cris_arg_partial_bytes): Likewise.
6854 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6855 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6856 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6857 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6858 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6859 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6860 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6861 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6862 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6863 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6864 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6865 instead of a mode and a type.
6866 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6867 (fr30_num_arg_regs): Likewise.
6868 (fr30_setup_incoming_varargs): Update calls accordingly.
6869 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6870 (fr30_function_arg_advance): Likewise.
6871 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6872 instead of a mode and a type.
6873 * config/gcn/gcn.c (num_arg_regs): Likewise.
6874 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6875 num_arg_regs and targetm.calls.must_pass_in_stack.
6876 (gcn_arg_partial_bytes): Likewise.
6877 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6878 function_arg_info instead of a mode and a type.
6879 (classify_argument): Update call accordingly.
6880 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6881 function_arg_info instead of a mode and a type.
6882 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6883 Likewise.
6884 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6885 (rs6000_parm_needs_stack): Update call accordingly.
6886 (setup_incoming_varargs): Likewise.
6887
6888 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6889
6890 * target.def (callee_copies): Take a function_arg_info instead
6891 of a mode, type and named flag.
6892 * doc/tm.texi: Regenerate.
6893 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6894 instead of a mode, type and named flag.
6895 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6896 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6897 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6898 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6899 instead of a mode, type and named flag.
6900 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6901 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6902 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6903 * calls.h (reference_callee_copied): Take a function_arg_info
6904 instead of a mode, type and named flag.
6905 * calls.c (reference_callee_copied): Likewise.
6906 (initialize_argument_information): Update call accordingly.
6907 (emit_library_call_value_1): Likewise.
6908 * function.c (gimplify_parameters): Likewise.
6909 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6910 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6911 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6912 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6913 (TARGET_CALLEE_COPIES): Define to
6914 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6915 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6916 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6917 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6918 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6919 instead of a mode, type and named flag.
6920 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6921 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6922 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6923 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6924 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6925 (TARGET_CALLEE_COPIES): Define to
6926 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6927 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6928 instead of a mode, type and named flag.
6929 * config/sh/sh.c (sh_callee_copies): Likewise.
6930 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6931 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6932 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6933
6934 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6935
6936 * target.def (function_arg_advance): Take a function_arg_info instead
6937 of a mode, type and named flag.
6938 * doc/tm.texi: Regenerate.
6939 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6940 instead of a mode, type and named flag.
6941 * targhooks.c (default_function_arg_advance): Likewise.
6942 * calls.c (initialize_argument_information): Update call to
6943 targetm.calls.function_arg_advance.
6944 (emit_library_call_value_1): Likewise.
6945 * dse.c (get_call_args): Likewise.
6946 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6947 * function.c (assign_parms, gimplify_parameters): Likewise.
6948 * var-tracking.c (prepare_call_arguments): Likewise.
6949 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6950 function_arg_info instead of a mode, type and named flag.
6951 (aarch64_setup_incoming_varargs): Update call accordingly.
6952 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6953 function_arg_info instead of a mode, type and named flag.
6954 (alpha_setup_incoming_varargs): Update call accordingly.
6955 * config/arc/arc.c (arc_function_arg_advance): Take a
6956 function_arg_info instead of a mode, type and named flag.
6957 (arc_setup_incoming_varargs): Update call accordingly.
6958 * config/arm/arm.c (arm_function_arg_advance): Take a
6959 function_arg_info instead of a mode, type and named flag.
6960 (cmse_func_args_or_return_in_stack): Update call accordingly.
6961 (arm_function_ok_for_sibcall): Likewise.
6962 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6963 * config/avr/avr.c (avr_function_arg_advance): Take a
6964 function_arg_info instead of a mode, type and named flag.
6965 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6966 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6967 (c6x_call_saved_register_used): Update call accordingly.
6968 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6969 function_arg_info instead of a mode, type and named flag.
6970 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6971 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6972 (csky_setup_incoming_varargs): Update call accordingly.
6973 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6974 function_arg_info instead of a mode, type and named flag.
6975 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6976 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6977 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6978 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6979 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6980 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6981 (ix86_setup_incoming_varargs): Update call accordingly.
6982 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6983 function_arg_info instead of a mode, type and named flag.
6984 (ia64_setup_incoming_varargs): Update call accordingly.
6985 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6986 function_arg_info instead of a mode, type and named flag.
6987 (iq2000_expand_prologue): Update call accordingly.
6988 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6989 function_arg_info instead of a mode, type and named flag.
6990 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6991 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6992 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6993 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6994 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6995 Likewise.
6996 (microblaze_expand_prologue): Update call accordingly.
6997 * config/mips/mips.c (mips_function_arg_advance): Take a
6998 function_arg_info instead of a mode, type and named flag.
6999 (mips_setup_incoming_varargs): Update call accordingly.
7000 (mips_output_args_xfer): Likewise.
7001 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7002 function_arg_info instead of a mode, type and named flag.
7003 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7004 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7005 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7006 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7007 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7008 (nios2_setup_incoming_varargs): Update call accordingly.
7009 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7010 function_arg_info instead of a mode, type and named flag.
7011 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7012 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7013 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7014 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7015 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7016 (riscv_setup_incoming_varargs): Update call accordingly.
7017 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7018 function_arg_info instead of a mode, type and named flag.
7019 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7020 Likewise.
7021 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7022 (rs6000_parm_needs_stack): Update call accordingly.
7023 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7024 instead of a mode, type and named flag.
7025 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7026 (s390_call_saved_register_used): Update call accordingly.
7027 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7028 instead of a mode, type and named flag.
7029 (sh_output_mi_thunk): Update call accordingly.
7030 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7031 function_arg_info instead of a mode, type and named flag.
7032 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7033 (spu_setup_incoming_varargs): Update call accordingly.
7034 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7035 function_arg_info instead of a mode, type and named flag.
7036 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7037 (tilegx_setup_incoming_varargs): Update call accordingly.
7038 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7039 function_arg_info instead of a mode, type and named flag.
7040 (tilegx_setup_incoming_varargs): Update call accordingly.
7041 * config/v850/v850.c (v850_function_arg_advance): Take a
7042 function_arg_info instead of a mode, type and named flag.
7043 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7044 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7045 (visium_setup_incoming_varargs): Update call accordingly.
7046 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7047 function_arg_info instead of a mode, type and named flag.
7048
7049 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7050
7051 * target.def (function_arg, function_incoming_arg): Take a
7052 function_arg_info instead of a mode, tree and named flag.
7053 * doc/tm.texi: Regenerate.
7054 * targhooks.h (default_function_arg): Take a function_arg_info
7055 instead of a mode, tree and named flag.
7056 (default_function_incoming_arg): Likewise.
7057 * targhooks.c (default_function_arg): Likewise.
7058 (default_function_incoming_arg): Likewise.
7059 * calls.h (function_arg_info::end_marker_p): New function.
7060 (function_arg_info::end_marker): Likewise.
7061 * calls.c (prepare_call_address, initialize_argument_information)
7062 (expand_call, emit_library_call_value_1): Update calls to
7063 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7064 * dse.c: Include calls.h.
7065 (get_call_args): Update call to targetm.calls.function_arg.
7066 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7067 * var-tracking.c (prepare_call_arguments): Likewise.
7068 * function.c (assign_parm_find_entry_rtl): Update call to
7069 targetm.calls.function_incoming_arg.
7070 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7071 function_arg_info instead of a mode, tree and named flag.
7072 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7073 * config/arc/arc.c (arc_function_arg): Likewise.
7074 * config/arm/arm.c (arm_function_arg): Likewise.
7075 (cmse_func_args_or_return_in_stack): Update call accordingly.
7076 (arm_function_ok_for_sibcall): Likewise.
7077 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7078 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7079 instead of a mode, tree and named flag.
7080 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7081 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7082 (c6x_call_saved_register_used): Update call accordingly.
7083 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7084 instead of a mode, tree and named flag.
7085 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7086 (cris_function_arg_1): Likewise.
7087 * config/csky/csky.c (csky_function_arg): Likewise.
7088 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7089 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7090 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7091 (frv_function_arg_1): Likewise.
7092 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7093 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7094 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7095 * config/i386/i386.c (ix86_function_arg): Likewise.
7096 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7097 (ia64_function_arg_1): Likewise.
7098 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7099 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7100 accordingly.
7101 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7102 instead of a mode, tree and named flag.
7103 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7104 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7105 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7106 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7107 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7108 (microblaze_expand_prologue): Update call accordingly.
7109 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7110 instead of a mode, tree and named flag.
7111 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7112 (mmix_function_arg_1): Likewise.
7113 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7114 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7115 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7116 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7117 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7118 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7119 (nvptx_function_incoming_arg): Likewise.
7120 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7121 * config/pa/pa.c (pa_function_arg): Likewise.
7122 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7123 * config/pru/pru.c (pru_function_arg): Likewise.
7124 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7125 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7126 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7127 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7128 (rs6000_parm_needs_stack): Update call accordingly.
7129 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7130 instead of a mode, tree and named flag.
7131 * config/s390/s390.c (s390_function_arg): Likewise.
7132 (s390_call_saved_register_used): Update call accordingly.
7133 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7134 instead of a mode, tree and named flag.
7135 (sh_output_mi_thunk): Update call accordingly.
7136 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7137 (sparc_function_incoming_arg): Take a function_arg_info instead of
7138 a mode, tree and named flag.
7139 * config/spu/spu.c (spu_function_arg): Likewise.
7140 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7141 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7142 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7143 * config/v850/v850.c (v850_function_arg): Likewise.
7144 * config/vax/vax.c (vax_function_arg): Likewise.
7145 * config/visium/visium.c (visium_function_arg): Likewise.
7146 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7147 (xtensa_function_incoming_arg): Likewise.
7148
7149 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7150
7151 * target.def (setup_incoming_varargs): Take a function_arg_info
7152 instead of a mode and tree.
7153 * doc/tm.texi: Regenerate.
7154 * targhooks.h (default_setup_incoming_varargs): Take a
7155 function_arg_info instead of a mode and tree.
7156 * targhooks.c (default_setup_incoming_varargs): Likewise.
7157 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7158 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7159 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7160 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7161 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7162 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7163 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7164 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7165 Likewise.
7166 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7167 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7168 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7169 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7170 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7171 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7172 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7173 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7174 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7175 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7176 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7177 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7178 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7179 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7180 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7181 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7182 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7183 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7184 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7185 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7186 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7187 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7188 * function.c (assign_parms_setup_varargs): Update call to
7189 targetm.calls.setup_incoming_varargs.
7190
7191 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7192
7193 * target.def (pass_by_reference): Take a function_arg_info instead
7194 of a mode, type and named flag.
7195 * doc/tm.texi: Regenerate.
7196 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7197 accordingly.
7198 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7199 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7200 function_arg_info instead of a mode, type and named flag.
7201 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7202 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7203 mode, type and named flag.
7204 * calls.c (pass_by_reference): Likewise.
7205 (pass_va_arg_by_reference): Update call accordingly.
7206 (initialize_argument_information): Likewise.
7207 (emit_library_call_value_1): Likewise.
7208 * function.c (assign_parm_find_data_types): Likewise.
7209 * var-tracking.c (prepare_call_arguments): Likewise.
7210 * stor-layout.c: Include calls.h.
7211 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7212 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7213 function_arg_info instead of a mode, type and named flag.
7214 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7215 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7216 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7217 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7218 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7219 (c6x_call_saved_register_used): Update call to pass_by_reference.
7220 * config/cris/cris.c (cris_pass_by_reference): Take a
7221 function_arg_info instead of a mode, type and named flag.
7222 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7223 function_arg_info instead of a mode, type and named flag.
7224 (epiphany_arg_partial_bytes): Update call accordingly.
7225 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7226 function_arg_info instead of a mode, type and named flag.
7227 (ft32_arg_partial_bytes): Update call accordingly.
7228 * config/i386/i386.c (ix86_pass_by_reference): Take a
7229 function_arg_info instead of a mode, type and named flag.
7230 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7231 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7232 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7233 (m32r_return_in_memory): Update call accordingly.
7234 * config/mips/mips.c (mips_pass_by_reference): Take a
7235 function_arg_info instead of a mode, type and named flag.
7236 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7237 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7238 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7239 (moxie_arg_partial_bytes): Update call accordingly.
7240 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7241 function_arg_info instead of a mode, type and named flag.
7242 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7243 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7244 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7245 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7246 (riscv_return_in_memory): Update call accordingly.
7247 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7248 function_arg_info instead of a mode, type and named flag.
7249 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7250 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7251 * config/s390/s390.c (s390_pass_by_reference): Take a
7252 function_arg_info instead of a mode, type and named flag.
7253 (s390_call_saved_register_used): Update call accordingly.
7254 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7255 instead of a mode, type and named flag.
7256 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7257 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7258 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7259 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7260 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7261 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7262
7263 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7264
7265 * target.def (arg_partial_bytes): Take a function_arg_info instead
7266 of a mode, type and named flag.
7267 * doc/tm.texi: Regenerate.
7268 * target.h (function_arg_info): Declare.
7269 * calls.h (function_arg_info): New class.
7270 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7271 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7272 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7273 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7274 * calls.c (initialize_argument_information): Update call to
7275 targetm.calls.partial_bytes.
7276 (emit_library_call_value_1): Likewise.
7277 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7278 * function.c (assign_parm_find_entry_rtl): Likewise.
7279 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7280 function_arg_info instead of a mode, type and named flag.
7281 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7282 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7283 (cmse_func_args_or_return_in_stack): Update accordingly.
7284 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7285 function_arg_info instead of a mode, type and named flag.
7286 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7287 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7288 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7289 * config/fr30/fr30.c: Include calls.h.
7290 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7291 type and named flag.
7292 * config/frv/frv.c: Include calls.h.
7293 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7294 type and named flag.
7295 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7296 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7297 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7298 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7299 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7300 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7301 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7302 Likewise.
7303 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7304 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7305 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7306 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7307 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7308 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7309 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7310 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7311 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7312 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7313 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7314 (rs6000_parm_needs_stack): Update call accordingly.
7315 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7316 function_arg_info instead of a mode, type and named flag.
7317 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7318 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7319
7320 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7321
7322 * calls.h (must_pass_va_arg_in_stack): Declare.
7323 * calls.c (must_pass_va_arg_in_stack): New function.
7324 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7325 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7326 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7327 Likewise.
7328 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7329
7330 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7331
7332 * calls.h (pass_va_arg_by_reference): Declare.
7333 * calls.c (pass_va_arg_by_reference): New function.
7334 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7335 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7336 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7337 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7338 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7339 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7340 (mips_gimplify_va_arg_expr): Likewise.
7341 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7342 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7343 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7344 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7345 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7346 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7347 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7348 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7349 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7350 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7351 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7352
7353 2019-08-20 Richard Biener <rguenther@suse.de>
7354
7355 PR target/91498
7356 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7357 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7358 (convert_scalars_to_vector): Add timode_p parameter and use it
7359 to guard TImode-only operation.
7360 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7361 (pass_stv::execute): Pass down timode_p.
7362
7363 2019-08-20 Lili Cui <lili.cui@intel.com>
7364
7365 * common/config/i386/i386-common.c
7366 (processor_names): Add tigerlake and cooperlake.
7367 (processor_alias_table): Add tigerlake and cooperlake.
7368 * config.gcc: Add -march=tigerlake and cooperlake.
7369 * config/i386/driver-i386.c
7370 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7371 Add "has_avx" to classify processor.
7372 * config/i386/i386-builtins.c (processor_model) :
7373 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7374 (arch_names_table): Add tigerlake and cooperlake.
7375 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7376 and PROCESSOR_COOPERLAKE.
7377 * config/i386/i386-c.c
7378 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7379 * config/i386/i386-options.c
7380 (m_TIGERLAKE) : Define.
7381 (m_COOPERLAKE) : Ditto.
7382 (m_CORE_AVX512): Ditto.
7383 (processor_cost_table): Add cascadelake.
7384 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7385 * config/i386/i386.h
7386 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7387 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7388 (PTA_MOVDIRI): Ditto.
7389 (PTA_MOVDIR64B): Ditto.
7390 (PTA_COOPERLAKE) : Ditto.
7391 (PTA_TIGERLAKE) : Ditto.
7392 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7393 * doc/extend.texi: Add tigerlake and cooperlake.
7394 * doc/invoke.texi: Add tigerlake and cooperlake.
7395
7396 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7397
7398 * doc/install.texi (Specific, alpha): Remove note to use
7399 binutils 2.11.2 or later.
7400
7401 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7402
7403 PR middle-end/89544
7404 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7405 when possible.
7406
7407 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7408
7409 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7410 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7411 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7412 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7413 * config/aarch64/constraints.md (Dt): New constraint
7414 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7415
7416 2019-08-19 Richard Biener <rguenther@suse.de>
7417
7418 PR tree-optimization/91403
7419 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7420 cases we can handle with tail-recursion...
7421 (follow_ssa_edge_expr): ... here. Do so.
7422
7423 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7424
7425 PR target/91441
7426 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7427 implemented for -fsanitize=kernel-address, and merge check logic
7428 with -fsanitize=address.
7429
7430 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7431
7432 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7433 for cpu and machine. Factor 64/32b builtins.
7434
7435 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7436
7437 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7438 gone, point to sourceforge.net.
7439
7440 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7441
7442 * doc/ux.texi (User Experience Guidelines): Update reference.
7443
7444 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7445
7446 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7447 not LGPL".
7448
7449 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7450
7451 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7452 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7453
7454 2019-08-16 Martin Sebor <msebor@redhat.com>
7455
7456 * tree.def (TYPE_SIZE): Clarify.
7457 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7458
7459 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7460
7461 PR tree-optimization/91109
7462 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7463 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7464 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7465
7466 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7467
7468 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7469 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7470 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7471 (uavg<mode>3_ceil): New expander.
7472 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7473 mode iterator when creating CONST1_RTX.
7474 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7475 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7476 mode iterator for const1_operand predicate.
7477
7478 2019-08-16 Richard Biener <rguenther@suse.de>
7479
7480 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7481 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7482 follow_ssa_edge.
7483 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7484 (analyze_evolution_in_loop): Likewise.
7485 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7486 (follow_ssa_edge_expr): ... here. Refactor code.
7487
7488 2019-08-16 Richard Biener <rguenther@suse.de>
7489
7490 PR target/91469
7491 * config/i386/i386-features.c
7492 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7493
7494 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7495
7496 PR other/91255
7497 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7498 only if subst_name matches curr_attr string.
7499
7500 2019-08-16 Richard Biener <rguenther@suse.de>
7501
7502 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7503 stmt at gsi_p, instead replace it with a NOP removed later.
7504 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7505 that became dead because of that.
7506
7507 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7508
7509 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7510 for which we can't represent a range.
7511 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7512 set_varying.
7513 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7514 Set VR_UNDEFINED if type is not supported.
7515 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7516 * tree-vrp.c (value_range_base::check): Assert that a varying has
7517 min/max set.
7518 (value_range_base::equal_p): Early bail for undefines.
7519 (value_range_base::set_varying): Accept a type.
7520 (value_range::set_varying): Same.
7521 (value_range_base::type): VARYING can have a type, while UNDEFINE
7522 is typeless.
7523 (value_range_base::dump): Print type for VARYING nodes.
7524 (value_range_base::set): Add type to VARYING.
7525 (extract_range_from_multiplicative_op): Pass type to set_varying.
7526 (extract_range_from_binary_expr): Same.
7527 (value_range_base::intersect_helper): Same.
7528 (value_range_base::union_helper): Same.
7529 (value_range_base::normalize_symbolics): Same.
7530 (determine_value_range_1): Same.
7531 * tree-vrp.h (class value_range_base): Add type to set_varying.
7532 Add prototype for dump(void).
7533 Add prototype for supports_type_p.
7534 (class value_range): Add type to set_varying.
7535 Add prototype for dump(void).
7536 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7537 set_varying.
7538 (vr_values::get_lattice_entry): Set varying even if propagation
7539 finished.
7540 Pass type to set_varying.
7541 (vr_values::get_value_range): Remove vr_const_varying.
7542 Reallocate the lattice if needed.
7543 (vr_values::update_value_range): Pass type to set_varying.
7544 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7545 (vr_values::extract_range_from_binary_expr): Same.
7546 (vr_values::extract_range_from_unary_expr): Same.
7547 (vr_values::extract_range_from_cond_expr): Same.
7548 (vr_values::check_for_binary_op_overflow): Same.
7549 (vr_values::extract_range_basic): Same.
7550 (vr_values::extract_range_from_assignment): Same.
7551 (vr_values::vr_values): Increase size of num_vr_values.
7552 (vr_values::extract_range_from_phi_node): Pass type to
7553 set_varying.
7554
7555 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7556
7557 PR target/90878
7558 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7559 for costs of hard register moves.
7560 (ix86_register_move_cost): Likewise.
7561 * config/i386/i386.h (processor_costs): Move costs of hard
7562 register moves to hard_register. Add int_load, int_store,
7563 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7564 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7565 for costs of RTL expressions.
7566 * config/i386/x86-tune-costs.h: Move costs of hard register
7567 moves to hard_register. Duplicate int_load, int_store,
7568 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7569 sse_load, sse_store for costs of RTL expressions.
7570
7571 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7572
7573 * target.def (setup_incoming_vararg_bounds): Remove.
7574 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7575 * doc/tm.texi: Regenerate.
7576 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7577 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7578 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7579 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7580
7581 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7582
7583 MSP430: Fix lines over 80 characters long in
7584 config/msp430/*.{c,h} files
7585
7586 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7587 specifier in string.
7588 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7589 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7590 redundant old comment.
7591 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7592 Split line more than 80 characters long.
7593 * config/msp430/msp430.c (msp430_option_override): Likewise.
7594 (msp430_return_in_memory): Likewise.
7595 (msp430_gimplify_va_arg_expr): Likewise.
7596 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7597 (msp430_legitimate_constant): Likewise.
7598 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7599 (msp430_attr): Likewise.
7600 (msp430_data_attr): Likewise.
7601 (msp430_start_function): Likewise.
7602 (gen_prefix): Likewise.
7603 (msp430_init_sections): Likewise.
7604 (msp430_select_section): Likewise.
7605 (msp430_function_section): Likewise.
7606 (msp430_unique_section): Likewise.
7607 (msp430_output_aligned_decl_common): Likewise.
7608 (msp430_do_not_relax_short_jumps): Likewise.
7609 (msp430_init_builtins): Likewise.
7610 (msp430_expand_delay_cycles): Likewise.
7611 (msp430_expand_prologue): Likewise.
7612 (msp430_expand_epilogue): Likewise.
7613 (msp430_expand_helper): Likewise.
7614 (msp430_split_movsi): Likewise.
7615 (msp430_print_operand): Likewise.
7616 (msp430_return_addr_rtx): Likewise.
7617 (msp430x_extendhisi): Likewise.
7618 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7619 (ASM_SPEC): Likewise.
7620 Remove very obvious comments.
7621 (LIB_SPEC): Split line more than 80 characters long.
7622 (EH_RETURN_HANDLER_RTX): Likewise.
7623 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7624
7625 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7626
7627 MSP430: Fix whitespace errors and incorrect indentation in
7628 config/msp430/*.{c,h} files
7629
7630 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7631 (msp430_select_hwmult_lib): Likewise.
7632 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7633 (msp430_extract_mcu_data): Likewise.
7634 (struct t_msp430_mcu_data): Likewise.
7635 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7636 before left square bracket.
7637 (msp430_option_override): Fix indentation.
7638 (msp430_hard_regno_nregs_with_padding): Likewise.
7639 (msp430_initial_elimination_offset): Likewise.
7640 (msp430_special_register_convention_p): Remove whitespace before left
7641 square bracket and after exclamation mark.
7642 (msp430_evaluate_arg): Likewise.
7643 (msp430_callee_copies): Fix indentation.
7644 (msp430_gimplify_va_arg_expr): Likewise.
7645 (msp430_function_arg_advance): Remove whitespace before left square
7646 bracket.
7647 (reg_ok_for_addr): Likewise.
7648 (msp430_preserve_reg_p): Likewise.
7649 (msp430_compute_frame_info): Likewise.
7650 (msp430_asm_output_addr_const_extra): Add space between function name
7651 and open parenthesis.
7652 (has_section_name): Fix indentation.
7653 (msp430_attr): Remove trailing whitespace.
7654 (msp430_section_attr): Likewise.
7655 (msp430_data_attr): Likewise.
7656 (struct msp430_attribute_table): Fix comment and whitespace.
7657 (msp430_start_function): Remove whitespace before left square bracket.
7658 Add space between function name and open parenthesis.
7659 (msp430_select_section): Remove trailing whitespace.
7660 (msp430_section_type_flags): Remove trailing whitespace.
7661 (msp430_unique_section): Remove space before closing parenthesis.
7662 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7663 (msp430_builtins): Remove whitespace before left square bracket.
7664 (msp430_init_builtins): Fix indentation.
7665 (msp430_expand_prologue): Remove whitespace before left square bracket.
7666 Remove space before closing parenthesis.
7667 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7668 (msp430_split_movsi): Remove space before closing parenthesis.
7669 (helper_function_name_mappings): Fix indentation.
7670 (msp430_use_f5_series_hwmult): Fix whitespace.
7671 (use_32bit_hwmult): Likewise.
7672 (msp430_no_hwmult): Likewise.
7673 (msp430_output_labelref): Remove whitespace before left square bracket.
7674 (msp430_print_operand_raw): Likewise.
7675 (msp430_print_operand_addr): Likewise.
7676 (msp430_print_operand): Add two spaces after '.' in comment.
7677 Fix trailing whitespace.
7678 (msp430x_extendhisi): Fix indentation.
7679 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7680 tab.
7681 (PC_REGNUM): Likewise.
7682 (STACK_POINTER_REGNUM): Likewise.
7683 (CC_REGNUM): Likewise.
7684
7685 2019-08-15 Richard Biener <rguenther@suse.de>
7686
7687 PR target/91454
7688 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7689 helper.
7690 (general_scalar_chain::make_vector_copies): Use it.
7691
7692 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7693
7694 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7695
7696 2019-08-15 Martin Liska <mliska@suse.cz>
7697
7698 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7699 operators with no arguments.
7700 (eliminate_unnecessary_stmts): Likewise here.
7701
7702 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7703
7704 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7705 <case COMPARE>: Revert 2019-08-14 change.
7706 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7707 for (TARGET_64BIT || mode != DImode).
7708
7709 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7710
7711 * tree-vrp.c (value_range_base::set): Merge in code from
7712 value_range_base::set_and_canonicalize.
7713 Enforce canonicalization at set time.
7714 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7715 (value_range_base::set_undefined): Inline call to set().
7716 (value_range_base::set_varying): Same.
7717 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7718 (vrp_val_max): New argument handle_pointers.
7719 (vrp_val_min): Same.
7720 (ranges_from_anti_range): Same.
7721 (extract_range_into_wide_ints): Use tree argument instead of sign
7722 and precision.
7723 (extract_range_from_multiplicative_op): Take in tree type instead
7724 of precision and sign. Adapt function for canonicalized ranges.
7725 (extract_range_from_binary_expr): Pass type to
7726 extract_range_from_multiplicative_op.
7727 Adapt for canonicalized ranges.
7728 (extract_range_from_unary_expr): Same.
7729 (value_range_base::intersect_helper): Adjust for canonicalized
7730 ranges.
7731 (value_range_base::union_helper): Same.
7732 (value_range_base::normalize_symbolics): New.
7733 * tree-vrp.h (class value_range_base): Remove
7734 set_and_canonicalize.
7735 New prototype for normalize_symbolics.
7736 (class value_range): Remove set_and_canonicalize.
7737 (vrp_val_min): Adjust prototype.
7738 (vrp_val_max): Same.
7739 * vr-values.c
7740 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7741 instead of set_and_canonicalize.
7742
7743 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7744
7745 PR middle-end/91444
7746 * tree-vect-stmts.c (vectorizable_call): Check that the function
7747 is a BUILT_IN_MD function before passing it to
7748 targetm.vectorize.builtin_md_vectorized_function.
7749
7750 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7751
7752 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7753 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7754 (aarch64_select_early_remat_modes): Use it.
7755
7756 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7757
7758 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7759 16 for SVE predicates even if they are fixed-length.
7760
7761 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7762
7763 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7764 operand order match the MOV /Z alias.
7765
7766 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7767
7768 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7769 the vector pattern as an aarch64_svpattern argument. Update the
7770 overloaded caller accordingly.
7771 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7772 (aarch64_output_sve_vector_inc_dec): Likewise.
7773
7774 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7775
7776 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7777 multiplication case, try to compute VG * (lowest set bit) directly
7778 rather than always basing the multiplication on VG. Use
7779 expand_mult for the multiplication if we can.
7780
7781 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7782
7783 * config/aarch64/aarch64-protos.h
7784 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7785 (aarch64_sve_inc_dec_immediate_p): Rename to...
7786 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7787 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7788 (aarch64_output_sve_scalar_inc_dec): Declare.
7789 (aarch64_output_sve_inc_dec_immediate): Rename to...
7790 (aarch64_output_sve_vector_inc_dec): ...this.
7791 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7792 (aarch64_output_sve_scalar_inc_dec): New functions.
7793 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7794 arguments. Only handle true ADDVL and ADDPL instructions;
7795 don't emit an INC or DEC.
7796 (aarch64_sve_inc_dec_immediate_p): Rename to...
7797 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7798 (aarch64_output_sve_inc_dec_immediate): Rename to...
7799 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7800 aarch64_sve_vector_inc_dec_immediate_p.
7801 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7802 (aarch64_sve_plus_immediate): New predicates.
7803 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7804 rather than aarch64_sve_addvl_addpl_immediate.
7805 (aarch64_sve_inc_dec_immediate): Rename to...
7806 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7807 aarch64_sve_vector_inc_dec_immediate_p.
7808 (aarch64_sve_add_operand): Update accordingly.
7809 * config/aarch64/constraints.md (Uai): New constraint.
7810 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7811 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7812 operand into a register if it satisfies aarch64_sve_plus_immediate.
7813 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7814 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7815 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7816 aarch64_output_sve_vector_inc_dec instead of
7817 aarch64_output_sve_inc_dec_immediate.
7818
7819 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7820
7821 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7822 (UNSPEC_REVW): New constants.
7823 (elem_bits): New mode attribute.
7824 (SVE_INT_UNARY): New int iterator.
7825 (optab): Handle UNSPEC_REV[BHW].
7826 (sve_int_op): New int attribute.
7827 (min_elem_bits): Handle VNx16QI and the predicate modes.
7828 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7829 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7830 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7831 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7832 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7833 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7834 unspecs based on the total width of the reversed data.
7835 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7836 reinterpret followed by a subreg on big-endian targets.
7837
7838 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7839 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7840
7841 * config/aarch64/aarch64-sve.md
7842 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7843 alternatives in which one of the inputs is in the same register
7844 as the output.
7845
7846 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7847
7848 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7849 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7850
7851 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7852
7853 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7854 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7855
7856 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7857 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7858
7859 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7860 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7861 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7862
7863 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7864 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7865
7866 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7867 Add an alternative that uses reversed shifts.
7868
7869 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7870
7871 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7872 struct.
7873
7874 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7875
7876 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7877 a commutativity marker.
7878
7879 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7880 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7881
7882 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7883 (aarch64_prepare_sve_cond_int_fma): Declare.
7884 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7885 (aarch64_prepare_sve_int_fma): New functions.
7886 (aarch64_prepare_sve_cond_int_fma): Likewise.
7887 * config/aarch64/aarch64-sve.md
7888 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7889 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7890 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7891 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7892 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7893 (*madd<mode>): Rename to...
7894 (*fma<mode>4): ...this.
7895 (*msub<mode>): Rename to...
7896 (*fnma<mode>4): ...this.
7897
7898 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7899 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7900
7901 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7902 Print 2.0 naturally.
7903 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7904 * config/aarch64/predicates.md
7905 (aarch64_sve_float_negated_arith_immediate): New predicate,
7906 renamed from aarch64_sve_float_arith_with_sub_immediate.
7907 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7908 positive and negative constants.
7909 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7910 or an aarch64_sve_float_arith_with_sub_immediate.
7911 * config/aarch64/constraints.md (vsN): Use
7912 aarch64_sve_float_negated_arith_immediate.
7913 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7914 iterator.
7915 (sve_pred_fp_rhs2_immediate): New int attribute.
7916 * config/aarch64/aarch64-sve.md
7917 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7918 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7919 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7920 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7921 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7922 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7923
7924 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7925 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7926
7927 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7928 (*aarch64_cond_abd<SVE_F:mode>_3)
7929 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7930
7931 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7932 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7933
7934 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7935 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7936
7937 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7938 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7939
7940 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7941 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7942 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7943 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7944 optabs.
7945 * optabs.h (create_convert_operand_from): Expand comment.
7946 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7947 when mapping scalar rtxes to vector operands.
7948 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7949 ashiftrt and lshiftrt.
7950 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7951 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7952 (*cond_<optab><mode>_any_const): New patterns.
7953
7954 2019-08-15 Martin Liska <mliska@suse.cz>
7955
7956 PR ipa/91438
7957 * cgraph.c (cgraph_node::remove): When setting
7958 n->origin = NULL for all nested functions, reset
7959 also next_nested.
7960
7961 2019-08-15 Martin Liska <mliska@suse.cz>
7962
7963 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7964 and next_nested.
7965
7966 2019-08-15 Martin Liska <mliska@suse.cz>
7967
7968 PR ipa/91404
7969 * passes.c (order): Remove.
7970 (uid_hash_t): Likewise).
7971 (remove_cgraph_node_from_order): Remove from set
7972 of pointers (cgraph_node *).
7973 (insert_cgraph_node_to_order): New.
7974 (duplicate_cgraph_node_to_order): New.
7975 (do_per_function_toporder): Register all 3 cgraph hooks.
7976 Skip removed_nodes now as we know about all of them.
7977
7978 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7979
7980 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7981 <case E_V8QImode>: Use vector_set path for
7982 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7983 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7984 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7985
7986 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7987
7988 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7989
7990 2019-08-14 Martin Sebor <msebor@redhat.com>
7991
7992 PR tree-optimization/91294
7993 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7994 source length as exact.
7995
7996 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7997
7998 * doc/extend.texi: Add "noinit" attribute documentation.
7999 * doc/sourcebuild.texi: Add noinit effective target documentation.
8000 * varasm.c (default_section_type_flags): Add support for "noinit"
8001 section.
8002 (default_elf_select_section): Add support for "noinit" attribute.
8003 * config/msp430/msp430.c (msp430_attribute_table): Remove
8004 "noinit" entry.
8005
8006 2019-08-14 Richard Biener <rguenther@suse.de>
8007 Uroš Bizjak <ubizjak@gmail.com>
8008
8009 PR target/91154
8010 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8011 mode arguments.
8012 (scalar_chain::smode): New member.
8013 (scalar_chain::vmode): Likewise.
8014 (dimode_scalar_chain): Rename to...
8015 (general_scalar_chain): ... this.
8016 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8017 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8018 base with TImode and V1TImode.
8019 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8020 (general_scalar_chain::vector_const_cost): Adjust for SImode
8021 chains.
8022 (general_scalar_chain::compute_convert_gain): Likewise. Add
8023 {S,U}{MIN,MAX} support.
8024 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8025 (general_scalar_chain::make_vector_copies): Likewise. Handle
8026 non-DImode chains appropriately.
8027 (general_scalar_chain::convert_reg): Likewise.
8028 (general_scalar_chain::convert_op): Likewise.
8029 (general_scalar_chain::convert_insn): Likewise. Add
8030 fatal_insn_not_found if the result is not recognized.
8031 (convertible_comparison_p): Pass in the scalar mode and use that.
8032 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8033 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8034 (scalar_to_vector_candidate_p): Remove by inlining into single
8035 caller.
8036 (general_remove_non_convertible_regs): Rename from
8037 dimode_remove_non_convertible_regs.
8038 (remove_non_convertible_regs): Remove by inlining into single caller.
8039 (convert_scalars_to_vector): Handle SImode and DImode chains
8040 in addition to TImode chains.
8041 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8042 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8043 (*<maxmin>di3_doubleword): Likewise.
8044
8045 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8047
8048 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8049 (*cond_bic<mode>_any): New patterns.
8050
8051 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8052
8053 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8054 take the equivalent mask, as well as a bit count.
8055 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8056 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8057 (aarch64_sve_pred_and_operand): New predicates.
8058 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8059 code attribute.
8060 * config/aarch64/aarch64-sve.md
8061 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8062 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8063
8064 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8065
8066 * config/aarch64/aarch64-sve.md
8067 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8068 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8069 New patterns.
8070
8071 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8072 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8073
8074 * config/aarch64/aarch64-sve.md
8075 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8076 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8077
8078 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8079 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8080
8081 * config/aarch64/aarch64-sve.md
8082 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8083 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8084
8085 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8086
8087 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8088 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8089 New pattern.
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 (*aarch64_sel_dup<mode>): New pattern.
8095
8096 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8097 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8098
8099 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8100 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8101 (aarch64_print_operand): Add support for %I.
8102 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8103 Bitcast floating-point constants to the corresponding integer constant.
8104 (aarch64_float_const_representable_p): Handle vectors as well
8105 as scalars.
8106 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8107 for the new vcond_mask_<mode><vpred> expander.
8108 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8109 test aarch64_float_const_representable_p.
8110 (aarch64_sve_reg_or_dup_imm): New predicate.
8111 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8112 gen_vcond_mask_<mode><vpred> instead of
8113 gen_aarch64_sve_dup<mode>_const.
8114 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8115 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8116 for operands 1 and 2 respectively. Force operand 2 into a
8117 register if operand 1 is a register. Fold old define_insn...
8118 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8119 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8120 floating-point constants that can be moved as integers. Add
8121 alternatives for MOV /M and FMOV /M.
8122 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8123 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8124 1 and 2 respectively.
8125 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8126 as scalars.
8127 (vss): New constraint.
8128
8129 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8130
8131 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8132 (aarch64_sve_float_maxmin_operand): New predicates.
8133 * config/aarch64/constraints.md (vsB): New constraint.
8134 (vsM): Fix typo.
8135 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8136 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8137 UNSPEC_COND_FMINNM.
8138 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8139 Use aarch64_sve_float_maxmin_operand for operand 2.
8140 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8141 Add alternatives for the constant forms.
8142
8143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8144
8145 * config/aarch64/constraints.md (vsb): New constraint.
8146 (vsm): Generalize description.
8147 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8148 iterator.
8149 (sve_imm_con): Handle smax, smin, umax and umin.
8150 (sve_imm_prefix): New code attribute.
8151 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8152 (aarch64_sve_vsb_operand): New predicates.
8153 (aarch64_sve_mul_immediate): Rename to...
8154 (aarch64_sve_vsm_immediate): ...this.
8155 (aarch64_sve_mul_operand): Rename to...
8156 (aarch64_sve_vsm_operand): ...this.
8157 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8158 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8159 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8160 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8161 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8162 add movprfx support for the immediate alternatives.
8163 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8164 of the above.
8165 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8166 for operand 3.
8167
8168 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8169
8170 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8171 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8172 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8173
8174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8175
8176 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8177 (optab, sve_int_op): Handle them.
8178 * config/aarch64/aarch64-sve.md: Expand comment.
8179
8180 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8181
8182 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8183 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8184 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8185
8186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8187
8188 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8189 (aarch64_expand_sve_const_pred_trn): New functions.
8190 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8191 use the above functions when the parameter is true.
8192 (aarch64_expand_sve_const_pred): Update call accordingly.
8193 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8194 Rename to...
8195 (@aarch64_sve_<perm_insn><mode>): ...this.
8196
8197 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8198
8199 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8200 Declare.
8201 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8202 (aarch64_sve_emit_int_cmp): New functions.
8203 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8204 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8205 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8206 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8207 (UNSPEC_PRED_Z): New unspec.
8208 (set_clobber_cc_nzc): Delete.
8209 * config/aarch64/aarch64-sve.md: Add a block comment about
8210 UNSPEC_PRED_Z.
8211 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8212 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8213 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8214 UNSPEC_MERGE_PTRUE.
8215 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8216 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8217 check for compatible predicates.
8218 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8219 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8220 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8221 comparisons above.
8222
8223 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8224
8225 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8226 * config/aarch64/aarch64-sve.md: Add a section describing it.
8227 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8228 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8229 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8230 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8231 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8232 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8233 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8234 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8235 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8236 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8237 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8238 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8239 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8240 (aarch64_evpc_rev_local): Update accordingly.
8241
8242 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8243
8244 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8245 iterators.
8246 (SVE_BHSI, SVE_SDI): Tweak comment.
8247 (SVE_HSDI): Likewise. Fix definition.
8248 (SVE_SDF): New mode iterator.
8249 (elem_bits): New mode attribute.
8250 (SVE_COND_FCVT): New int iterator.
8251 * config/aarch64/aarch64-sve.md
8252 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8253 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8254 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8255 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8256 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8257 ...these new patterns.
8258 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8259 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8260 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8261 Merge into...
8262 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8263 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8264 ...these new patterns.
8265 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8266 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8267 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8268 ...this new pattern.
8269 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8270 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8271 ...this new pattern.
8272 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8273
8274 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8275
8276 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8277 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8278 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8279 unspecs.
8280 (optab, su): Handle them.
8281 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8282 * config/aarch64/aarch64-sve.md
8283 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8284 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8285 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8286 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8287 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8288 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8289 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8290 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8291 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8292 FIXUORS.
8293 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8294 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8295 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8296 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8297 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8298 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8299 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8300 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8301 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8302 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8303 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8304 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8305 of UNSPEC_FLOAT_CONVERT.
8306 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8307 aarch64_sve_extend<mode><Vwide>2.
8308
8309 2019-08-14 Richard Biener <rguenther@suse.de>
8310
8311 PR target/91154
8312 * config/i386/i386-features.c
8313 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8314 individual instruction gain. Fix reg-reg copy GRP cost. Use
8315 ix86_cost->sse_op for vector instruction costs.
8316
8317 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8318
8319 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8320 (cmp_op): Handle it.
8321 (SVE_COND_FP_CMP): Rename to...
8322 (SVE_COND_FP_CMP_I0): ...this.
8323 (SVE_FP_CMP): Remove.
8324 * config/aarch64/aarch64-sve.md
8325 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8326 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8327 using unspecs to represent the comparison.
8328 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8329 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8330 accordingly.
8331 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8332 (aarch64_unspec_cond_code): Move after integer code. Handle
8333 UNORDERED.
8334 (aarch64_emit_sve_predicated_cond): Replace with...
8335 (aarch64_emit_sve_fp_cond): ...this new function.
8336 (aarch64_emit_sve_or_conds): Replace with...
8337 (aarch64_emit_sve_or_fp_conds): ...this new function.
8338 (aarch64_emit_sve_inverted_cond): Replace with...
8339 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8340 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8341
8342 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8343
8344 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8345 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8346 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8347 SVE_HSD instead of SVE_SD.
8348
8349 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8350 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8351
8352 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8353 iterator.
8354 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8355 attributes.
8356 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8357 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8358 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8359 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8360 (*div<SVE_F:mode>3): Generalize to...
8361 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8362
8363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8364 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8365
8366 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8367 constants.
8368 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8369 predicate.
8370 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8371 Declare.
8372 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8373 function.
8374 * config/aarch64/aarch64-sve.md: Add a block comment about the
8375 handling of predicated FP operations.
8376 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8377 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8378 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8379 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8380 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8381 operand.
8382 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8383 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8384 operand.
8385 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8386 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8387 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8388 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8389 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8390 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8391 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8392 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8393 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8394 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8395 strictness operands. Use aarch64_sve_pred_dominates_p to check
8396 whether the predicate on the conditional operation is suitable
8397 for merging. Split patterns into the canonical equal-predicate form.
8398 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8399 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8400
8401 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8402 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8403
8404 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8405 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8406 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8407 rtx codes.
8408 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8409 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8410 unspecs.
8411
8412 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8413 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8414
8415 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8416 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8417 actually has, rather than relying on REG_EQUAL notes.
8418 Make the insn operand order match the SVE operand order.
8419 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8420 the SVE operand order.
8421
8422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8423
8424 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8425 (aarch64_emit_set_immediate): Likewise.
8426 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8427 (aarch64_pfalse_reg): Likewise.
8428 (aarch64_convert_sve_data_to_pred): New function.
8429 (aarch64_sve_move_pred_via_while): Take an optional target register
8430 and the required register mode.
8431 (aarch64_expand_sve_const_pred_1): New function.
8432 (aarch64_expand_sve_const_pred): Likewise.
8433 (aarch64_expand_mov_immediate): Build an all-true predicate
8434 if the significant bits of the immediate are all true. Use
8435 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8436 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8437 before register allocation.
8438 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8439 a VNx16BI PTRUE when splitting the memory alternative.
8440 (vec_duplicate<mode>): Update accordingly.
8441 (*pred_cmp<cmp_op><mode>): Rename to...
8442 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8443
8444 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8445
8446 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8447 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8448 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8449 (UNSPEC_PTEST): New unspec.
8450 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8451 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8452 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8453 * config/aarch64/aarch64-sve.md: Add a new section describing the
8454 handling of UNSPEC_PTEST.
8455 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8456 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8457 (ptest_ptrue<mode>): Replace with...
8458 (aarch64_ptest<mode>): ...this new pattern.
8459 (cbranch<mode>4): Update after above changes.
8460 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8461 UNSPEC_PTEST_PTRUE.
8462 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8463 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8464 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8465
8466 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8467
8468 PR lto/91287
8469 * builtins.c (builtin_with_linkage_p): New function.
8470 * builtins.h (builtin_with_linkage_p): New function.
8471 * symtab.c (write_symbol): Remove redundant assert.
8472 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8473 Remove FIXME and use builtin_with_linkage_p.
8474
8475 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8476
8477 PR middle-end/91421
8478 * tree-core.h (function_decl::function_code): Change type to
8479 unsigned int.
8480 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8481 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8482 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8483 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8484 is BUILT_IN_NORMAL.
8485 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8486 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8487 (fndecl_built_in_p): Change the type of the "name" argument to
8488 unsigned int.
8489 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8490 after check for DECL_BUILT_IN_CLASS.
8491 * cgraphclones.c (build_function_decl_skip_args): Use
8492 set_decl_built_in_function.
8493 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8494 * ipa-split.c (split_function): Likewise.
8495 * langhooks.c (add_builtin_function_common): Likewise.
8496 * omp-simd-clone.c (simd_clone_create): Likewise.
8497 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8498 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8499 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8500 DECL_FUNCTION_CODE.
8501 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8502 instead of DECL_FUNCTION_CODE.
8503 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8504 instead of DECL_FUNCTION_CODE.
8505 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8506 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8507 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8508 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8509 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8510 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8511 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8512 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8513 (alpha_gimple_fold_builtin): Likewise.
8514 * config/arc/arc.c (arc_expand_builtin): Likewise.
8515 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8516 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8517 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8518 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8519 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8520 * config/frv/frv.c (frv_expand_builtin): Likewise.
8521 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8522 (gcn_expand_builtin): Likewise.
8523 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8524 (fold_builtin_cpu): Likewise.
8525 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8526 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8527 (ix86_gimple_fold_builtin): Likewise.
8528 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8529 (ia64_expand_builtin): Likewise.
8530 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8531 * config/mips/mips.c (mips_expand_builtin): Likewise.
8532 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8533 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8534 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8535 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8536 * config/pa/pa.c (pa_expand_builtin): Likewise.
8537 * config/pru/pru.c (pru_expand_builtin): Likewise.
8538 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8539 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8540 Likewise.
8541 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8542 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8543 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8544 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8545 (rs6000_builtin_reciprocal): Likewise.
8546 * config/rx/rx.c (rx_expand_builtin): Likewise.
8547 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8548 * config/s390/s390.c (s390_expand_builtin): Likewise.
8549 * config/sh/sh.c (sh_expand_builtin): Likewise.
8550 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8551 (sparc_fold_builtin): Likewise.
8552 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8553 * config/spu/spu.c (spu_expand_builtin): Likewise.
8554 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8555 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8556 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8557 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8558 (xtensa_expand_builtin): Likewise.
8559
8560 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8561
8562 PR middle-end/91421
8563 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8564 before the DECL_FUNCTION_CODE.
8565 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8566 to check for a BUILT_IN_ALLOCA call.
8567 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8568 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8569 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8570 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8571 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8572 for BUILT_IN_NORMAL functions.
8573 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8574 test for BUILT_IN_TM_ABORT.
8575 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8576 to check for a BUILT_IN_STACK_RESTORE call.
8577 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8578 * tree-ssa-threadedge.c
8579 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8580 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8581 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8582 test for a BUILT_IN_NORMAL call instead of a negative test for
8583 an internal function call.
8584
8585 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8586
8587 * tree.h (build_vector_a_then_b): Declare.
8588 * tree.c (build_vector_a_then_b): New function.
8589 * fold-const-call.c (fold_while_ult): Likewise.
8590 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8591 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8592 (aarch64_svpattern): New enum.
8593 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8594 constants through aarch64_expand_mov_immediate.
8595 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8596 than general_operand as the predicate for operand 1.
8597 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8598 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8599 insn_type.
8600 (simd_immediate_info::simd_immediate_info): New overload that
8601 takes a scalar_int_mode and an svpattern.
8602 (simd_immediate_info::u): Add a "pattern" field.
8603 (svpattern_token): New function.
8604 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8605 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8606 (aarch64_sve_move_pred_via_while): New functions.
8607 (aarch64_expand_mov_immediate): Try using
8608 aarch64_sve_move_pred_via_while for predicates that contain N ones
8609 followed by M zeros but that do not correspond to a VLnnn pattern.
8610 (aarch64_sve_pred_valid_immediate): New function.
8611 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8612 with PTRUE and PFALSE.
8613 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8614 forms.
8615
8616 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8617
8618 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8619 flag.
8620 (darwin_override_options): Likewise.
8621 * config/darwin.h: Likewise.
8622 * config/darwin.opt: Likewise.
8623 * config/i386/i386.c (output_pic_addr_const): Likewise.
8624 * config/rs6000/darwin.h: Likewise.
8625 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8626 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8627 ... this TARGET_MACHO_SYMBOL_STUBS.
8628 (FUNCTION_PROFILER):Likewise.
8629 * config/i386/i386.h: Likewise.
8630
8631 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8632
8633 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8634 <case E_V2SImode>: Use vec_extr path for
8635 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8636 <case E_V8QImode>: Ditto.
8637 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8638 Use SWI48 mode iterator. Use %k to output operand 0.
8639 (*mmx_pextrw): New insn pattern.
8640 (*mmx_pextrb): Ditto.
8641 (*mmx_pextrb_zext): Ditto.
8642
8643 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8644
8645 * target.def (libc_has_function, libc_has_fast_function): Improve
8646 documentation strings.
8647 * doc/tm.texi: Regenerate.
8648
8649 2019-08-13 Caroline Tice <cmtice@google.com>
8650
8651 PR other/91396
8652 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8653 vtv_end.o or vtv_end_preinit.o files if !static.
8654
8655 2019-08-13 Olivier Hainque <hainque@adacore.com>
8656
8657 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8658
8659 2019-08-13 Olivier Hainque <hainque@adacore.com>
8660
8661 * rtlanal.c (tablejump_casesi_pattern): New function, to
8662 determine if a tablejump insn is a casesi dispatcher. Extracted
8663 from patch_jump_insn.
8664 * rtl.h (tablejump_casesi_pattern): Declare.
8665 * cfgrtl.c (patch_jump_insn): Use it.
8666 * dwarf2cfi.c (create_trace_edges): Use it.
8667
8668 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8669
8670 PR target/81800
8671 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8672 operand is larger than a long int.
8673
8674 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8675
8676 * machmode.h (opt_mode::else_mode): New function.
8677 (opt_mode::else_blk): Use it.
8678 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8679 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8680 (aarch64_gen_stepped_int_parallel): Likewise.
8681 (aarch64_stepped_int_parallel_p): Likewise.
8682 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8683 argument.
8684 * config/aarch64/aarch64.c
8685 (aarch64_expand_sve_widened_duplicate): Delete.
8686 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8687 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8688 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8689 argument. Use early returns in the !CONST_INT_P handling.
8690 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8691 than handling some inline.
8692 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8693 from...
8694 (aarch64_simd_container_mode): ...here.
8695 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8696 (aarch64_sve_ld1rq_operand_p): New functions.
8697 * config/aarch64/predicates.md (descending_int_parallel)
8698 (aarch64_sve_ld1rq_operand): New predicates.
8699 * config/aarch64/constraints.md (UtQ): New constraint.
8700 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8701 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8702 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8703 (@aarch64_sve_reinterpret<mode>): New expander.
8704 (*aarch64_sve_reinterpret<mode>): New pattern.
8705 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8706 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8707 (*sve_ld1rq<Vesize>): Replace with...
8708 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8709
8710 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8711
8712 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8713 16:12.
8714
8715 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8716
8717 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8718 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8719 (msp430_check_path_for_devices): New.
8720 (parse_devices_csv_1): New.
8721 (parse_devices_csv): New.
8722 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8723 MCU data in devices.csv before using the hard-coded data.
8724 Warn if devices.csv isn't found and the MCU wasn't found in the
8725 hard-coded data either.
8726 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8727 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8728 Search for devices.csv on -I and -L paths.
8729 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8730 msp430_set_driver_var.
8731 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8732 -mdevices-csv-loc=.
8733 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8734 searched for devices.csv.
8735 (mwarn-devices-csv): Document option.
8736
8737 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8738
8739 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8740 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8741 Use a single Dn alternative instead of separate Dz and Dm
8742 alternatives. Use aarch64_output_sve_move_immediate.
8743 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8744 function.
8745 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8746 for predicates too.
8747 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8748 (aarch64_output_ptrue): Delete.
8749
8750 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8751
8752 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8753 INDEX.
8754 (simd_immediate_info::value, simd_immediate_info::step)
8755 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8756 with...
8757 (simd_immediate_info::u): ...this new union.
8758 (simd_immediate_info::simd_immediate_info): Update accordingly.
8759 (aarch64_output_simd_mov_immediate): Likewise.
8760 (aarch64_output_sve_mov_immediate): Likewise.
8761
8762 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8763
8764 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8765 extra_gcc_objs.
8766 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8767 (msp430_select_cpu): New spec function.
8768 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8769 MCU data.
8770 * config/msp430/msp430-devices.c: New file.
8771 * config/msp430/msp430-devices.h: New file.
8772 * config/msp430/msp430.c: Remove msp430_mcu_data.
8773 (msp430_option_override): Use msp430_extract_mcu_data to extract
8774 MCU data.
8775 (msp430_use_f5_series_hwmult): Likewise.
8776 (use_32bit_hwmult): Likewise.
8777 (msp430_no_hwmult): Likewise.
8778 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8779 assembler.
8780 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8781 and -mcpu option.
8782 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8783 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8784 Remove hard-coded MCU multilib data.
8785
8786 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8787
8788 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8789 based on the mode instead of testing properties of it.
8790
8791 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8792
8793 * doc/md.texi: Document the x and y constraints for AArch64.
8794 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8795 (FP_LO8_REGS): New reg_class.
8796 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8797 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8798 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8799 * config/aarch64/predicates.md (aarch64_simd_register): Use
8800 FP_REGNUM_P instead of checking the classes manually.
8801 * config/aarch64/constraints.md (y): New constraint.
8802
8803 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8804
8805 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8806 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8807 * config/aarch64/aarch64-simd.md
8808 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8809 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8810 from the asm template.
8811 * config/aarch64/aarch64-sve.md
8812 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8813 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8814 from the asm template.
8815 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8816 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8817 from the asm template.
8818 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8819
8820 2019-08-13 Martin Liska <mliska@suse.cz>
8821
8822 * value-prof.c (gimple_ic_transform): Add new line.
8823 Print details with MSG_NOTE.
8824
8825 2019-08-13 Martin Liska <mliska@suse.cz>
8826
8827 * doc/invoke.texi: Document automatic detection of jobserver.
8828 * lto-wrapper.c (run_gcc): Detect jobserver always.
8829
8830 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8831
8832 * config/i386/i386-expand.c (ix86_expand_vector_set)
8833 <case E_V2SImode>: Use vec_merge path for
8834 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8835 <case E_V8QImode>: Ditto.
8836 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8837 (*mmx_pinsrb): Ditto.
8838
8839 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR target/83250
8842 PR target/91340
8843 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8844 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8845 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8846 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8847 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8848
8849 2019-08-12 Richard Biener <rguenther@suse.de>
8850
8851 PR lto/91375
8852 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8853 flag_devirtualize.
8854
8855 2019-08-12 Richard Biener <rguenther@suse.de>
8856
8857 PR driver/91130
8858 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8859 lang_mask option, always use CL_DRIVER.
8860 (get_options_from_collect_gcc_options): Adjust.
8861 (find_and_merge_options): Likewise.
8862 (run_gcc): Likewise.
8863
8864 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8865
8866 * ipa-predicate.c (add_condition): Restore inverted test.
8867
8868 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8869
8870 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8871 (enum omp_clause_device_type_kind): New enum.
8872 (struct tree_omp_clause): Add subcode.device_type_kind.
8873 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8874 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8875 for device_type clause.
8876 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8877 * tree-pretty-print.c (dump_omp_clause): Likewise.
8878
8879 PR target/91408
8880 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8881 vector_operand.
8882
8883 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8884
8885 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8886 handling spilled pseudos.
8887
8888 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8889
8890 PR target/91386
8891 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8892 to preserve the contents of the original insns.
8893
8894 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8895
8896 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8897 (addsi3_compare_op2): Likewise.
8898
8899 2019-08-09 Martin Liska <mliska@suse.cz>
8900
8901 * alias.c (alias_ptr_types_compatible_p): Strengten
8902 type comparison in LTO mode.
8903
8904 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8905
8906 PR middle-end/90313
8907 * tree-tailcall.c (find_tail_calls): Reject calls that might
8908 read from an escaped RESULT_DECL.
8909
8910 2019-08-09 Martin Liska <mliska@suse.cz>
8911
8912 * doc/invoke.texi: Document the option value.
8913 * lto-wrapper.c (run_gcc): Set auto_parallel
8914 only with -flto=auto.
8915
8916 2019-08-09 Martin Liska <mliska@suse.cz>
8917
8918 * opts.c (common_handle_option): Error for an invalid argument
8919 to -flto=.
8920
8921 2019-08-09 Martin Liska <mliska@suse.cz>
8922
8923 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8924 use dump_printf to report optimization.
8925 (sem_variable::merge): Likwise.
8926 (sem_item_optimizer::merge_classes): Use dump_printf to report
8927 ICF hits.
8928
8929 2019-08-09 Martin Liska <mliska@suse.cz>
8930
8931 * value-prof.c (gimple_divmod_fixed_value_transform):
8932 Use dump_printf_loc.
8933 (gimple_mod_pow2_value_transform): Likewise.
8934 (gimple_mod_subtract_transform): Likewise.
8935 (init_node_map): Likewise.
8936 (gimple_ic_transform): Likewise.
8937 (gimple_stringops_transform): Likewise.
8938
8939 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8940
8941 * doc/extend.texi: Add const qualifier to ld intrinsics.
8942
8943 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8944
8945 * config/rs6000/dfp.md (D64_D128): Rename to ...
8946 (DDTD): ... this, throughout.
8947 (dfp_suffix): Rename to ...
8948 (q): ... this, throughout.
8949
8950 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8951
8952 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8953 (dfp_suffix): Ditto.
8954 (adddd3, addtd3): Merge to ...
8955 (add<mode>3 for D64_D128): ... this.
8956 (subdd3, subtd3): Merge to ...
8957 (sub<mode>3 for D64_D128): ... this.
8958 (muldd3, multd3): Merge to ...
8959 (mul<mode>3 for D64_D128): ... this.
8960 (divdd3, divtd3): Merge to ...
8961 (div<mode>3 for D64_D128): ... this.
8962 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8963 (*cmp<mode>_internal1 for D64_D128): ... this.
8964 (ftruncdd2, ftrunctd2): Merge to ...
8965 (ftrunc<mode>2 for D64_D128): ... this.
8966 (fixdddi2, fixtddi2): Merge to ...
8967 (fix<mode>di2 for D64_D128): ... this.
8968
8969 2019-08-08 Jim Wilson <jimw@sifive.com>
8970
8971 PR target/91229
8972 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8973 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8974 Pass into recursive call.
8975 (riscv_flatten_aggregate_argument): New arg. Pass to
8976 riscv_flatten_aggregate_field.
8977 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8978 riscv_flatten_aggregate_argument twice, with false and true as last
8979 arg. Process result twice. Compare results and warn if different.
8980 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8981
8982 2019-08-08 Martin Liska <mliska@suse.cz>
8983
8984 PR bootstrap/91352
8985 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8986 * lto-wrapper.c (jobserver_active_p): Likewise.
8987
8988 2019-08-08 Martin Liska <mliska@suse.cz>
8989
8990 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8991 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8992 (create_version_clone_with_body): Likewise.
8993
8994 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8995
8996 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8997 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8998 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8999 GOVD_EXPLICIT flags.
9000 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9001 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9002 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9003 call install_var_field with mask 11 instead of 3.
9004 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9005 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9006
9007 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9008
9009 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9010 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9011
9012 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9013
9014 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9015 MOVPRFX alternatives. Make the GPR alternatives more expensive
9016 than the FPR ones.
9017
9018 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9019
9020 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9021 Disparage the GPR alternative relative to the FPR one.
9022 Fix handling of 8-bit and 16-bit FPR values.
9023
9024 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9025
9026 * config/aarch64/iterators.md (BITWISEV): Delete.
9027 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9028 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9029 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9030 UNSPEC_FMINNMV, UNSPEC_FMINV.
9031 (bit_reduc_op): Delete.
9032 (sve_int_op): New int attribute.
9033 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9034 UNSPEC_FMINNMV, UNSPEC_FMINV.
9035 * config/aarch64/aarch64-sve.md
9036 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9037 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9038 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9039 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9040 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9041 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9042 new patterns.
9043 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9044 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9045 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9046 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9047 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9048 new patterns.
9049
9050 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9051
9052 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9053 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9054 (fms<mode>4, *fms<mode>4): Replace with...
9055 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9056 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9057 Use unspecs instead of rtx codes.
9058 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9059 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9060
9061 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9062
9063 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9064 int iterator.
9065 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9066 * config/aarch64/aarch64-sve.md
9067 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9068 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9069 use a single unspec for the rhs.
9070 (*<su><maxmin><mode>3): Delete.
9071 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9072
9073 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9074
9075 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9076 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9077 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9078 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9079 (optab, sve_fp_op): Handle them.
9080 (SVE_FP_UNARY): Delete.
9081 (optab): Remove sqrt entry.
9082 (sve_fp_op): Remove neg, abs and sqrt entries.
9083 (SVE_COND_FP_UNARY): New int iterator.
9084 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9085 (*<frint_pattern><mode>2): Delete.
9086 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9087 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9088 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9089 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9090
9091 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9092
9093 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9094
9095 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9096
9097 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9098 (UNSPEC_COND_FADD): ...this.
9099 (UNSPEC_COND_SUB): Rename to...
9100 (UNSPEC_COND_FSUB): ...this.
9101 (UNSPEC_COND_MUL): Rename to...
9102 (UNSPEC_COND_FMUL): ...this.
9103 (UNSPEC_COND_DIV): Rename to...
9104 (UNSPEC_COND_FDIV): ...this.
9105 (UNSPEC_COND_MAX): Rename to...
9106 (UNSPEC_COND_FMAXNM): ...this.
9107 (UNSPEC_COND_MIN): Rename to...
9108 (UNSPEC_COND_FMINNM): ...this.
9109 (UNSPEC_COND_LT): Rename to...
9110 (UNSPEC_COND_FCMLT): ...this.
9111 (UNSPEC_COND_LE): Rename to...
9112 (UNSPEC_COND_FCMLE): ...this.
9113 (UNSPEC_COND_EQ): Rename to...
9114 (UNSPEC_COND_FCMEQ): ...this.
9115 (UNSPEC_COND_NE): Rename to...
9116 (UNSPEC_COND_FCMNE): ...this.
9117 (UNSPEC_COND_GE): Rename to...
9118 (UNSPEC_COND_FCMGE): ...this.
9119 (UNSPEC_COND_GT): Rename to...
9120 (UNSPEC_COND_FCMGT): ...this.
9121 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9122 (sve_fp_op_rev): Update accordingly.
9123 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9124
9125 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9126
9127 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9128 banner comments.
9129 * config/aarch64/check-sve-md.awk: New file.
9130 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9131 (insn-conditions.md): Depend on it.
9132
9133 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9134
9135 PR target/91385
9136 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9137 (*negsi2_cmpz_zext): Ditto.
9138
9139 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9140
9141 * config/aarch64/iterators.md (commutative): Remove.
9142
9143 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9144
9145 PR driver/91130
9146 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9147 processing COLLECT_GCC_OPTIONS.
9148 (run_gcc): Likewise.
9149
9150 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9151
9152 PR tree-optimization/91109
9153 * lra-remat.c (update_scratch_ops): Remove assignment of the
9154 hard register.
9155
9156 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9157
9158 * data-streamer.h (streamer_write_poly_uint64): Declare.
9159 (streamer_read_poly_uint64): Likewise.
9160 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9161 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9162 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9163 (add_condition): Take a poly_int64 size.
9164 * ipa-predicate.c (add_condition): Likewise.
9165 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9166 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9167 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9168 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9169 condition::size as a poly_int64.
9170 (unmodified_parm_1): Take a poly_int64 size pointer.
9171 (unmodified_parm): Likewise.
9172 (unmodified_parm_or_parm_agg_item): Likewise.
9173 (set_cond_stmt_execution_predicate): Update accordingly.
9174 (set_switch_stmt_execution_predicate): Likewise.
9175 (will_be_nonconstant_expr_predicate): Likewise.
9176 (will_be_nonconstant_predicate): Likewise.
9177 (inline_read_section): Stream condition::size as a poly_int.
9178 (ipa_fn_summary_write): Likewise.
9179
9180 2019-08-07 Martin Liska <mliska@suse.cz>
9181
9182 * fold-const.c (twoval_comparison_p): Replace int
9183 with bool as a return type.
9184 (simple_operand_p): Likewise.
9185 (operand_equal_p): Replace int with bool as a return type.
9186 * fold-const.h (operand_equal_p): Likewise.
9187
9188 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9189
9190 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9191 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9192 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9193 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9194 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9195 * tree-pretty-print.c (dump_omp_clause): Likewise.
9196 * tree-nested.c (convert_nonlocal_omp_clauses,
9197 convert_local_omp_clauses): Likewise.
9198 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9199 Likewise.
9200 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9201 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9202 clause with array or reference to array types, no matter what type
9203 except for reference it has.
9204
9205 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9206
9207 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9208
9209 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9210
9211 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9212 (arch_canonicalize): Support rv32g and rv64g and fix error
9213 handling.
9214
9215 2019-08-06 Martin Liska <mliska@suse.cz>
9216
9217 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9218 and DECL_IS_OPERATOR_DELETE_P.
9219
9220 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9221
9222 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9223 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9224 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9225 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9226 (gimplify_omp_for): Don't do C++ random access iterator clause
9227 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9228 don't predetermine the artificial iterator in case of C++ random
9229 access iterators as lastprivate, but private. For OMP_LOOP, force
9230 bind expr around simd body and force for_pre_body before the
9231 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9232 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9233 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9234 diff var of C++ random access iterators. Handle
9235 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9236 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9237 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9238 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9239 * omp-low.c (lower_rec_input_clauses): For
9240 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9241 variables instead of default constructing them.
9242 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9243 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9244 is_taskloop_ctx check from the assert to the guarding condition.
9245
9246 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9247
9248 * config/riscv/multilib-generator: (canonical_order): New.
9249 (arch_canonicalize): Dito.
9250 Apply arch_canonicalize for alts.
9251
9252 2019-08-05 Martin Sebor <msebor@redhat.com>
9253
9254 * doc/extend.texi (Common Variable Attributes): Document alias
9255 attribute.
9256
9257 2019-08-05 Marek Polacek <polacek@redhat.com>
9258
9259 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9260 * doc/invoke.texi: Document -Wcomma-subscript.
9261
9262 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9263
9264 * tree-core.h (tree_function_decl): Make function_code an
9265 independent field. Group the remaining bitfields into bytes
9266 and move decl_type so that it contines to be at a byte boundary.
9267 Leave 12 bits for future expansion.
9268
9269 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9270
9271 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9272 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9273 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9274 IFN_MASK_STORE.
9275
9276 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9277
9278 * gimple.h (gimple_move_vops): Declare.
9279 * gimple.c (gimple_move_vops): New function
9280 * gimple-fold.c (replace_call_with_call_and_fold)
9281 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9282 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9283 (gimple_fold_call): Use it.
9284 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9285 * tree-call-cdce.c (use_internal_fn): Likewise.
9286 * tree-if-conv.c (predicate_load_or_store): Likewise.
9287 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9288 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9289 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9290 (update_call_from_tree): Likewise.
9291 * tree-vect-stmts.c (vectorizable_load): Likewise.
9292 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9293
9294 2019-08-05 Martin Liska <mliska@suse.cz>
9295
9296 PR c++/91334
9297 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9298 with not arguments.
9299 (eliminate_unnecessary_stmts): Likewise.
9300
9301 2019-08-05 Richard Biener <rguenther@suse.de>
9302
9303 PR middle-end/91169
9304 * fold-const.c (get_array_ctor_element_at_index): Create
9305 offset_ints according to the sign of the index type and treat
9306 that as signed if it is obviously so.
9307
9308 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9309
9310 PR target/91341
9311 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9312 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9313 _mm256_storeu2_m128i): New function.
9314
9315 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9316
9317 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9318 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9319
9320 2019-08-05 Alan Modra <amodra@gmail.com>
9321
9322 PR target/91349
9323 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9324 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9325
9326 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9327
9328 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9329 bug that was fixed in Tcl 8.6.1.
9330
9331 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9332
9333 * config/rs6000/future.md: New file.
9334 * config/rs6000/rs6000.md: Include future.md.
9335 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9336
9337 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9338
9339 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9340 check to use targetm.slow_unaligned_access instead.
9341
9342 * function.c (assign_param_data_one): Remove unused data members.
9343
9344 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9345
9346 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9347 build_distinct_type_copy.
9348 (simd_clone_adjust_argument_types): Ditto.
9349 (simd_clone_adjust): Call build_distinct_type_copy here.
9350 (expand_simd_clones): Ditto.
9351
9352 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9353
9354 PR target/91201
9355 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9356
9357 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9358
9359 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9360 from 'const void *'.
9361 (sort_locs_in_loop_postorder_cmp): Likewise.
9362
9363 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9364
9365 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9366 (hot-bb-count-ws-permille): Likewise.
9367 (hot-bb-frequency-fraction): Likewise.
9368 (unlikely-bb-count-fraction): Likewise.
9369 * params.def (hot-bb-count-fraction): Rework description.
9370 (hot-bb-count-ws-permille): Likewise.
9371 (hot-bb-frequency-fraction): Likewise.
9372 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9373 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9374
9375 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9376
9377 PR target/91323
9378 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9379 Return false.
9380
9381 2019-08-02 Richard Biener <rguenther@suse.de>
9382
9383 * vec.h (vec::sort): Add gcc_qsort_r support.
9384 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9385 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9386 to gcc_qsort_r style callback.
9387 (sort_locs_in_loop_postorder_cmp): Likewise.
9388 (analyze_memory_references): Use gcc_sort_r interfaces.
9389 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9390
9391 2019-08-02 Martin Liska <mliska@suse.cz>
9392
9393 PR lto/91313
9394 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9395 to detect working job server.
9396 (driver::detect_jobserver): Test whether jobserver
9397 is active from GCC driver. That will prevent situation where
9398 GCC is invoked from a LD plugin and the linker already uses
9399 file descriptors suggested by make. That leads to a wrong
9400 detection.
9401 * gcc.h (driver): Add detect_jobserver.
9402 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9403 not scanning for --jobserver-auth prefix.
9404
9405 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9406
9407 PR tree-optimization/91201
9408 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9409 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9410 extraction.
9411
9412 2019-08-01 Martin Sebor <msebor@redhat.com>
9413
9414 PR c++/90947
9415 * tree.c (type_initializer_zero_p): Define.
9416 * tree.h (type_initializer_zero_p): New function.
9417
9418 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9419
9420 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9421
9422 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9423
9424 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9425 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9426 * predict.c (maybe_hot_count_p): Likewise.
9427 (maybe_hot_bb_p): Tweak comment.
9428 (maybe_hot_edge_p): Likewise.
9429 (probably_never_executed): Likewise. Minor tweak.
9430 (probably_never_executed_bb_p): Likewise.
9431 (unlikely_executed_edge_p): Likewise.
9432 (probably_never_executed_edge_p): Likewise.
9433 (optimize_function_for_size_p): Likewise.
9434 (optimize_function_for_speed_p): Likewise.
9435 (function_optimization_type): Likewise.
9436 (optimize_bb_for_size_p): Likewise.
9437 (optimize_bb_for_speed_p): Likewise.
9438 (bb_optimization_type): Likewise.
9439 (optimize_edge_for_size_p): Likewise.
9440 (optimize_edge_for_speed_p): Likewise.
9441 (optimize_insn_for_size_p): Likewise.
9442 (optimize_insn_for_speed_p): Likewise.
9443 (optimize_loop_for_size_p): Likewise.
9444 (optimize_loop_for_speed_p): Likewise.
9445 (optimize_loop_nest_for_speed_p): Likewise.
9446 (optimize_loop_nest_for_size_p): Likewise.
9447 (predictable_edge_p): Likewise.
9448 (handle_missing_profiles): Minor tweak.
9449
9450 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9451
9452 * config/rs6000/predicates.md (pcrel_external_address): Update
9453 comment.
9454
9455 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9456
9457 PR target/85693
9458 * config/i386/mmx.md (usadv8qi): New expander.
9459
9460 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9461
9462 PR c++/90590
9463 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9464 with reserved names that are in a system header.
9465
9466 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9467
9468 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9469 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9470 (*vec_extractv2si_0_zext): Ditto.
9471 (*vec_extractv2si_1): Add (rm,x) alternative.
9472 (*vec_extractv2si_1_zext): New insn pattern.
9473 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9474 insn constraint.
9475
9476 2019-08-01 Richard Biener <rguenther@suse.de>
9477
9478 * domwalk.c (bb_postorder): Remove static variable.
9479 (cmp_bb_postorder): Adjust.
9480 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9481 (dom_walker::walk): Adjust.
9482
9483 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9484
9485 * sort.cc (sort_r_ctx): New struct.
9486 (reorder23): Make templated on context type.
9487 (reorder45): Ditto.
9488 (cmp1): Ditto. Adjust signature.
9489 (netsort): Ditto.
9490 (mergesort): Ditto.
9491 [CHECKING_P] (cmp2to3): New static function. Use it...
9492 (gcc_qsort) [CHECKING_P]: ...here.
9493 (gcc_sort_r): New function.
9494 * system.h (sort_r_cmp_fn): New function typedef.
9495 (qsort_chk): Adjust signature.
9496 (gcc_sort_r): Declare.
9497 * vec.c (qsort_chk_error): Adjust.
9498 (qsort_chk): Adjust.
9499
9500 2019-08-01 Richard Biener <rguenther@suse.de>
9501
9502 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9503 (compute_antic): Localize it here.
9504
9505 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9506
9507 * common/config/riscv/riscv-common.c: Check -march string ends
9508 with null.
9509
9510 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9511
9512 * ipa-devirt.c (type_warning_cmp): Make static.
9513 (decl_warning_cmp): Ditto.
9514
9515 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9516
9517 PR target/91050
9518 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9519 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9520 use of deleted rs6000_dejagnu_cpu_index variable.
9521 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9522 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9523 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9524 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9525 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9526 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9527
9528 2019-07-31 Richard Biener <rguenther@suse.de>
9529
9530 PR tree-optimization/91280
9531 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9532 Decompose MEM_REF manually for offset handling.
9533
9534 2019-07-31 Richard Biener <rguenther@suse.de>
9535
9536 PR tree-optimization/91293
9537 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9538 of reduction stmts.
9539
9540 2019-07-31 Matt Thomas <matt@3am-software.com>
9541 Nick Hudson <nick@nthcliff.demon.co.uk>
9542 Matthew Green <mrg@eterna.com.au>
9543 Maya Rashish <coypu@sdf.org>
9544
9545 * config.gcc (hppa*-*-netbsd*): New target.
9546 * config/pa/pa-netbsd.h: New file.
9547 * config/pa/pa32-netbsd.h: New file.
9548
9549 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR tree-optimization/91201
9552 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9553
9554 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9555
9556 * config/gcn/gcn-valu.md
9557 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9558 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9559 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9560 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9561 struct ilist. Add nops for delayeduse insns.
9562 * config/gcn/gcn.md (delayeduse): New attribute.
9563 (*movbi): Remove s_waitcnt from stores.
9564 (*mov<mode>_insn): Likewise.
9565 (*movti_insn): Likewise. Add delayeduse attribute.
9566 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9567 (atomic_store<mode>): Remove or adjust s_waitcnt.
9568
9569 2019-07-31 Richard Biener <rguenther@suse.de>
9570
9571 * vr-values.h (vr_values::swap_vr_value): New.
9572 (vr_values::free_value_range): likewise.
9573 * vr-values.c (vr_values::swap_vr_value): Implement.
9574 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9575 Do not return a range or take a var.
9576 (evrp_range_analyzer::stack): Change back to recording a non-const
9577 value_range *.
9578 * gimple-ssa-evrp-analyze.c
9579 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9580 value-range.
9581 (evrp_range_analyzer::pop_to_marker): Adjust.
9582 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9583 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9584 no longer needed value-range.
9585
9586 2019-07-31 Martin Liska <mliska@suse.cz>
9587
9588 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9589 have size and (or) alignment as 2nd and later arguments.
9590 Mark all of them as necessary.
9591
9592 2019-07-31 Richard Biener <rguenther@suse.de>
9593
9594 PR tree-optimization/91178
9595 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9596 Use tail-recursion.
9597
9598 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9599
9600 PR tree-optimization/91201
9601 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9602 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9603 TARGET_AVX512F.
9604 (reduc_plus_scal_<mode>): Improve formatting by introducing
9605 a temporary.
9606
9607 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9608
9609 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9610 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9611 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9612 (aarch64_init_tme_builtins): New.
9613 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9614 (aarch64_expand_builtin_tme): New.
9615 (aarch64_expand_builtin): Handle TME builtins.
9616 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9617 __ARM_FEATURE_TME when enabled.
9618 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9619 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9620 (TARGET_TME): New.
9621 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9622 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9623 UNSPECV_TCANCEL.
9624 (tstart, ttest, tcommit, tcancel): New instructions.
9625 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9626 (__tcancel, __ttest): New.
9627 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9628 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9629 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9630 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9631 * config/arm/types.md: Add new tme type attr.
9632 * doc/invoke.texi: Document "tme".
9633
9634 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9635
9636 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9637 warn_unused_result attribute.
9638 (cmse_check_address_range): Add warn_unused_result attribute.
9639
9640 2019-07-31 Richard Biener <rguenther@suse.de>
9641
9642 PR tree-optimization/91257
9643 * tree-vrp.c (union_ranges): Unify equality and less tests
9644 by using compare_values. Re-order cheap tests first.
9645
9646 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9647
9648 PR middle-end/91301
9649 * gimplify.c (gimplify_omp_for): If for class iterator on
9650 distribute parallel for there is no data sharing clause
9651 on inner_for_stmt, look for private clause on combined
9652 parallel too and if found, move it to inner_for_stmt.
9653
9654 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9655
9656 * lra-int.h (lra_operand_data): Remove early_clobber field.
9657 (lra_insn_reg): Likewise.
9658 * lra.c (debug_operand_data): Update accordingly.
9659 (setup_operand_alternative): Likewise.
9660 (new_insn_reg): Likewise. Remove early_clobber parameter.
9661 (collect_non_operand_hard_regs): Update call accordingly.
9662 Don't assign to lra_insn_reg::early_clobber.
9663 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9664 and update calls to new_insn_reg.
9665 (lra_update_insn_regno_info): Update calls accordingly.
9666 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9667 alternative number as a parameter and test whether the operand
9668 is earlyclobbered in that particular alternative.
9669 (process_alt_operands): Update call accordingly. Use per-alternative
9670 checks for earyclobber here too.
9671 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9672 against zero for IRA_UNKNOWN_ALT.
9673
9674 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9675
9676 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9677
9678 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9679
9680 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9681 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9682
9683 2019-07-30 Martin Liska <mliska@suse.cz>
9684
9685 PR ipa/89330
9686 * cgraph.c (cgraph_edge::make_direct): Use
9687 edge->indirect_unknown_callee as edge->resolve_speculation can
9688 deallocate edge which is this pointer.
9689
9690 2019-07-30 Richard Biener <rguenther@suse.de>
9691
9692 PR tree-optimization/91257
9693 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9694
9695 2019-07-30 Martin Liska <mliska@suse.cz>
9696
9697 * doc/invoke.texi: Document new behavior.
9698 * lto-wrapper.c (cpuset_popcount): New function
9699 is a copy of libgomp/config/linux/proc.c.
9700 (init_num_threads): Likewise.
9701 (run_gcc): Automatically detect core count for -flto.
9702 (jobserver_active_p): New function.
9703
9704 2019-07-30 Richard Biener <rguenther@suse.de>
9705
9706 PR tree-optimization/91257
9707 * bitmap.h (bitmap_ior_into_and_free): Declare.
9708 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9709 whether to add the unliked element to the freelist.
9710 (bitmap_list_insert_element_after): Add defaulted param for
9711 an already allocated element.
9712 (bitmap_ior_into_and_free): New function.
9713 * tree-ssa-structalias.c (condense_visit): Reduce the
9714 ponts-to and edge bitmaps of the SCC members in a
9715 logarithmic fashion rather than all to one.
9716
9717 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9718
9719 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9720 parameter. When nonnull, make sure that the addition or subtraction
9721 has the same condition.
9722 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9723 for CFN_COND_MUL too.
9724
9725 2019-07-30 Richard Biener <rguenther@suse.de>
9726
9727 PR tree-optimization/91291
9728 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9729 constant values.
9730
9731 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9732
9733 PR middle-end/91216
9734 * omp-low.c (global_nonaddressable_vars): New variable.
9735 (use_pointer_for_field): For global decls, if they are non-addressable,
9736 remember it in the global_nonaddressable_vars bitmap, if they are
9737 addressable and in the global_nonaddressable_vars bitmap, ignore their
9738 TREE_ADDRESSABLE bit.
9739 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9740 vars in global_nonaddressable_vars bitmap.
9741 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9742
9743 PR target/91150
9744 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9745 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9746 comparison to unsigned HOST_WIDE_INT before shifting it left.
9747
9748 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9749
9750 * config/i386/i386.md (movstrict<mode>): Use register_operand
9751 predicate for operand 0. Add expander condition. Assert that
9752 operand 0 is a SUBREG RTX.
9753 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9754 Update operand constraints and insn condition.
9755 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9756 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9757 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9758 Update operand 0 constraints.
9759 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9760
9761 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9762
9763 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9764 when -m{code,data}-region are used without -mlarge.
9765 * config/msp430/msp430.c (msp430_option_override): Error when a
9766 non-default code or data region is used without -mlarge.
9767 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9768 attributes when they are used without -mlarge.
9769
9770 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9771
9772 PR target/70320
9773 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9774
9775 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9776
9777 PR middle-end/91242
9778 * wide-int.h (generic_wide_int::sext_elt): New function.
9779 * inchash.h (hash::add_wide_int): Use it instead of elt.
9780
9781 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9782
9783 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9784 CODE_FOR_arm_##.
9785 * config/arm/arm.md (<crc_variant>): Rename to...
9786 (arm_<crc_variant>): ... This.
9787 (<cdp>): Rename to...
9788 (arm_<cdp>): ... This.
9789 (<ldc>): Rename to...
9790 (arm_<ldc>): ... This.
9791 (<stc>): Rename to...
9792 (arm_<stc>): ... This.
9793 (<mcr>): Rename to...
9794 (arm_<mcr>): ... This.
9795 (<mrc>): Rename to...
9796 (arm_<mrc>): ... This.
9797 (<mcrr>): Rename to...
9798 (arm_<mcrr>): ... This.
9799 (<mrrc>): Rename to...
9800 (arm_<mrrc>): ... This.
9801
9802 2019-07-29 Richard Biener <rguenther@suse.de>
9803
9804 PR tree-optimization/91257
9805 * tree-ssa-sccvn.h (struct vn_avail): New.
9806 (struct vn_ssa_aux): Add avail member.
9807 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9808 member, add m_avail_freelist one.
9809 (rpo_elim::~rpo_elim): Remove.
9810 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9811 data structure.
9812 (rpo_elim::eliminate_push_avail): Likewise.
9813 (do_unwind): Likewise.
9814 (do_rpo_vn): Likewise.
9815
9816 2019-07-29 Richard Biener <rguenther@suse.de>
9817
9818 PR tree-optimization/91257
9819 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9820 most cases, instead call compare_values which handles the
9821 symbolic ranges we handle specially.
9822 (compare_values_warnv): Do not call operand_less_p but open-code
9823 the effective fold calls. Avoid converting so much.
9824
9825 2019-07-29 Martin Liska <mliska@suse.cz>
9826
9827 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9828 remove LHS of operator new call. It's handled latter.
9829
9830 2019-07-29 Richard Biener <rguenther@suse.de>
9831
9832 PR tree-optimization/91267
9833 * vr-values.c (vr_values::update_value_range): Add early return
9834 for effectively VARYING lattice entry.
9835
9836 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9837
9838 PR debug/86638
9839 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9840 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9841 necessary if keep_all_vdefs_p is true.
9842 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9843 that keep_all_vdefs_p is false.
9844 (mark_all_reaching_defs_necessary): Likewise.
9845 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9846
9847 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9848
9849 * common.opt (Og): Change the initial value of flag_dse to 0.
9850 * opts.c (default_options_table): Move OPT_ftree_dse from
9851 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9852 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9853 entry before the OPT_ftree_sra entry.
9854 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9855 of flags disabled by Og.
9856
9857 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9858
9859 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9860 variables for -Og.
9861
9862 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9863
9864 * doc/sourcebuild.texi (check-function-bodies): Document.
9865
9866 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9867
9868 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9869 VEC_DUPLICATE of a fixed-length vector even if the result
9870 is variable-length. Likewise fold a duplicate of a
9871 variable-length vector if the variable-length vector is
9872 itself a duplicate of a fixed-length sequence.
9873 (test_vector_ops_duplicate): Test more cases.
9874
9875 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9876
9877 * vector-builder.h (vector_builder): Add a shape template parameter.
9878 (vector_builder::new_unary_operation): New function, generalizing
9879 the old tree_vector_builder function.
9880 (vector_builder::new_binary_operation): Likewise.
9881 (vector_builder::binary_encoded_nelts): Likewise.
9882 * int-vector-builder.h (int_vector_builder): Update template
9883 parameters to vector_builder.
9884 (int_vector_builder::shape_nelts): New function.
9885 * rtx-vector-builder.h (rtx_vector_builder): Update template
9886 parameters to vector_builder.
9887 (rtx_vector_builder::shape_nelts): New function.
9888 (rtx_vector_builder::nelts_of): Likewise.
9889 (rtx_vector_builder::npatterns_of): Likewise.
9890 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9891 * tree-vector-builder.h (tree_vector_builder): Update template
9892 parameters to vector_builder.
9893 (tree_vector_builder::shape_nelts): New function.
9894 (tree_vector_builder::nelts_of): Likewise.
9895 (tree_vector_builder::npatterns_of): Likewise.
9896 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9897 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9898 (tree_vector_builder::new_binary_operation): Delete.
9899 (tree_vector_builder::binary_encoded_nelts): Likewise.
9900 * simplify-rtx.c: Include rtx-vector-builder.h.
9901 (distributes_over_addition_p): New function.
9902 (simplify_const_unary_operation)
9903 (simplify_const_binary_operation): Generalize handling of vector
9904 constants to include variable-length vectors.
9905 (test_vector_ops_series): Add more tests.
9906
9907 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9908
9909 PR lto/91222
9910 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9911 than INDENTIFIER_POINTER.
9912
9913 2019-07-28 Martin Liska <mliska@suse.cz>
9914
9915 PR ipa/89330
9916 * cgraph.c (symbol_table::create_edge): Always allocate
9917 a cgraph_edge.
9918 (symbol_table::free_edge): Store summary_id to
9919 edge_released_summary_ids if != -1;
9920 * cgraph.h (NEXT_FREE_NODE): Remove.
9921 (SET_NEXT_FREE_NODE): Likewise.
9922 (NEXT_FREE_EDGE): Likewise.
9923 (symbol_table::release_symbol): Store summary_id to
9924 cgraph_released_summary_ids if != -1;
9925 (symbol_table::allocate_cgraph_symbol): Always allocate
9926 a cgraph_node.
9927
9928 2019-07-28 Alan Modra <amodra@gmail.com>
9929
9930 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9931 gen_sibcall.
9932
9933 2019-07-28 Alan Modra <amodra@gmail.com>
9934
9935 PR target/91135
9936 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9937 define.
9938 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9939 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9940 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9941
9942 2019-07-28 Alan Modra <amodra@gmail.com>
9943
9944 PR target/91050
9945 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9946 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9947 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9948 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9949 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9950 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9951 in asm_default spec.
9952 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9953 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9954
9955 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9956
9957 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9958
9959 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9960
9961 PR target/89517
9962 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9963 * config/aarch64/aarch64-option-extensions.def: Add new comments
9964 and restore easier to read options.
9965
9966 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9967
9968 * convert.c (convert_to_real_1): Move part of conversion code...
9969 * match.pd: ...To here.
9970
9971 2019-07-26 Martin Jambor <mjambor@suse.cz>
9972
9973 PR ipa/89330
9974 * ipa-inline-transform.c (check_speculations_1): New function.
9975 (push_all_edges_in_set_to_vec): Likewise.
9976 (check_speculations): Use check_speculations_1, new parameter
9977 new_edges.
9978 (inline_call): Pass new_edges to check_speculations.
9979 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9980 NULL.
9981 (speculation_useful_p): Early return true if edge is inlined, remove
9982 later checks for inline_failed.
9983
9984 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9985
9986 PR rtl-optimization/91223
9987 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9988 matching with INOUT operand.
9989
9990 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9991
9992 * stmt.c (expand_case): Try to narrow the index type if it's larger
9993 than a word. Tidy up.
9994
9995 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9996
9997 * cif-code.def (NEVER_CALL): New code.
9998 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9999 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10000
10001 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10002
10003 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10004 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10005
10006 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10007
10008 * ipa-devirt.c (add_type_duplicate): Fix return value.
10009
10010 2019-07-25 Richard Biener <rguenther@suse.de>
10011
10012 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10013 type parameter and use it instead of guessing expression
10014 type from the first operand.
10015 (extract_range_from_binary_expr): Pass expr_type down.
10016
10017 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10018
10019 * config/arm/arm.md (SATrev): Change to code attribute.
10020 (*satsi_<SAT:code>): Adjust for the above.
10021 (*satsi_<SAT:code>_shift): Likewise.
10022
10023 2019-07-25 Richard Biener <rguenther@suse.de>
10024
10025 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10026 Make value_range * temporary const.
10027 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10028 Likewise.
10029 (evrp_range_analyzer::record_ranges_from_): Likewise.
10030 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10031 deal with having recorded a const one.
10032 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10033 Return a const value_range *.
10034 (evrp_range_analyzer::pop_value_range): Likewise.
10035 (evrp_range_analyzer::stack): Record const value_range *s.
10036 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10037 Adjust.
10038 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10039 (format_integer): Likewise.
10040 (sprintf_dom_walker::handle_gimple_call): Likewise.
10041 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10042 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10043 (vrp_prop::get_value_range): Adjust.
10044 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10045 modifying the lattice in-place.
10046 (vrp_prop::visit_stmt): Likewise.
10047 * vr-values.c (vr_values::get_lattice_entry): New private method.
10048 (vr_values::get_value_range): Wrap it and return a const
10049 value_range *.
10050 (vr_values::set_def_to_varying): New.
10051 (vr_values::set_defs_to_varying): Use it.
10052 (vr_values::update_value_range): Likewise.
10053 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10054 (values::op_with_constant_singleton_va): Likewise.
10055 (vr_values::extract_range_for_var_from_co): Likewise.
10056 (vr_values::extract_range_from_ssa_name): Likewise.
10057 (vr_values::extract_range_from_cond_expr): Likewise.
10058 (vr_values::extract_range_basic): Likewise.
10059 (compare_ranges): Take const value_range *, adjust.
10060 (compare_range_with_value): Likewise.
10061 (vrp_valueize): Adjust.
10062 (vrp_valueize_1): Likewise.
10063 (vr_values::get_vr_for_comparison): Return a const value_range *.
10064 (vr_values::compare_name_with_value): Adjust.
10065 (vr_values::compare_names): Likewise.
10066 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10067 Likewise.
10068 (vr_values::vrp_evaluate_conditional): Likewise.
10069 (find_case_label_ranges): Take a const value_range *.
10070 (vr_values::vrp_visit_switch_stmt): Adjust.
10071 (vr_values::extract_range_from_phi_node): Likewise.
10072 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10073 (vr_values::simplify_abs_using_ranges): Likewise.
10074 (test_for_singularity): Take a const value_range *.
10075 (range_fits_type_p): Likewise.
10076 (vr_values::simplify_cond_using_ranges_1): Adjust.
10077 (vr_values::simplify_cond_using_ranges_2): Likewise.
10078 (vr_values::simplify_switch_using_ranges): Likewise.
10079 (vr_values::simplify_float_conversion_usi): Likewise.
10080 (vr_values::two_valued_val_range_p): Likewise.
10081 * vr-values.h (vr_values::get_value_range): Return a const
10082 value_range *.
10083 (vr_values::set_def_to_varying): New.
10084 (vr_values::get_lattice_entry): New private method.
10085 (vr_values::get_vr_for_comparison): Return a const value_range *.
10086
10087 2019-07-25 Martin Liska <mliska@suse.cz>
10088 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10089
10090 PR c++/23383
10091 * common.opt: Add -fallocation-dce
10092 * gimple.c (gimple_call_operator_delete_p): New.
10093 * gimple.h (gimple_call_operator_delete_p): Likewise.
10094 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10095 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10096 DECL_IS_OPERATOR_DELETE_P.
10097 (mark_all_reaching_defs_necessary_1): Likewise.
10098 (propagate_necessity): Likewise.
10099 (eliminate_unnecessary_stmts): Handle
10100 gimple_call_operator_delete_p.
10101 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10102 Add packing of OPERATOR_DELETE.
10103 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10104 Similarly here.
10105 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10106 (DECL_SET_IS_OPERATOR_DELETE): New.
10107 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10108
10109 2019-07-25 Martin Liska <mliska@suse.cz>
10110
10111 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10112 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10113 * coverage.c (coverage_begin_function): Likewise.
10114 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10115 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10116 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10117 (sem_item::hash_referenced_symbol_properties): Likewise.
10118 * lto-streamer-out.c (hash_tree): Likewise.
10119 * predict.c (expr_expected_value_1): Likewise.
10120 * tree-inline.c (expand_call_inline): Likewise.
10121 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10122 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10123 * tree-core.h (enum function_decl_type): New enum.
10124 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10125 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10126 (set_function_decl_type): Likewise.
10127 (DECL_IS_OPERATOR_NEW_P): New.
10128 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10129 (DECL_LAMBDA_FUNCTION): Likewise.
10130 (DECL_LAMBDA_FUNCTION_P): Likewise.
10131 (DECL_IS_OPERATOR_NEW): Remove.
10132 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10133
10134 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10135
10136 * ipa-profile.c (get_most_common_single_value): Use
10137 get_nth_most_common_value.
10138 * profile.c (sort_hist_value): New function.
10139 (compute_value_histograms): Call sort_hist_value to sort the
10140 values after loading from disk.
10141 * value-prof.c (get_most_common_single_value): Rename to ...
10142 get_nth_most_common_value. Add input params n, return
10143 the n_th value and count.
10144 (gimple_divmod_fixed_value_transform): Use
10145 get_nth_most_common_value.
10146 (gimple_ic_transform): Likewise.
10147 (gimple_stringops_transform): Likewise.
10148 * value-prof.h (get_most_common_single_value): Add input params
10149 n, default to 0.
10150
10151 2019-07-25 Richard Biener <rguenther@suse.de>
10152
10153 PR tree-optimization/91236
10154 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10155 size of CONSTRUCTOR write. Fix buffer size we pass to
10156 native_encode_expr.
10157
10158 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10159
10160 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10161 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10162 r273773.
10163
10164 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10165
10166 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10167 explicitly disabled with --disable-initfini-array.
10168
10169 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10170
10171 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10172 if-exists.
10173
10174 2019-07-24 Martin Sebor <msebor@redhat.com>
10175
10176 PR tree-optimization/91183
10177 PR tree-optimization/86688
10178 * builtins.c (compute_objsize): Handle MEM_REF.
10179 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10180 (get_min_string_length): Remove.
10181 (count_nonzero_bytes): New function.
10182 (handle_char_store): Rename...
10183 (handle_store): to this. Handle multibyte stores via integer types.
10184 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10185 function name.
10186
10187 2019-07-24 Martin Sebor <msebor@redhat.com>
10188
10189 PR driver/80545
10190 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10191 (diagnostic_report_diagnostic): Same.
10192 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10193 (diagnostic_context::lang_mask): New data member.
10194 * ipa-pure-const.c (suggest_attribute): Use
10195 lang_hooks.option_lang_mask ().
10196 * opts-common.c (option_enabled): Handle new argument.
10197 (get_option_state): Pass an additional argument.
10198 * opts.c (print_filtered_help): Print supported languages for
10199 unsupported options. Adjust printing of current state.
10200 * opts.h (option_enabled): Add argument.
10201 * toplev.c (print_switch_values): Use lang_mask.
10202 (general_init): Set global_dc->lang_mask.
10203
10204 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10205
10206 PR bootstrap/87030
10207 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10208
10209 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10210
10211 * cgraphunit.c (symbol_table::compile): Start and stop
10212 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10213 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10214
10215 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10216
10217 * gimplify.c (flag_instrument_functions_exclude_p): Include
10218 namespace/class information in the printable name.
10219 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10220 to tokens entered into the vector.
10221
10222 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10223
10224 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10225 (get_static_chain): Call it instead of build_simple_mem_ref.
10226 (get_frame_field): Likewise.
10227 (get_nonlocal_debug_decl): Likewise.
10228 (convert_nonlocal_reference_op): Likewise.
10229
10230 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10231
10232 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10233 declaration.
10234 (arc_compute_frame_size): Millicode is disabled when compiling
10235 ISR.
10236 (arc_return_address_register): Likewise.
10237 (arc_compute_function_type): Likewise.
10238 (arc_compute_frame_size): Likewise.
10239 (secondary_reload_info): Likewise.
10240 (arc_get_unalign): Likewise.
10241 (arc_can_use_return_insn): Declare.
10242 * config/arc/arc.c (AUX_LP_START): Define
10243 (AUX_LP_END): Likewise.
10244 (arc_frame_info): Update gmask member to 64-bit datum.
10245 (GMASK_LEN): Update.
10246 (arc_compute_function_type): Make it static, move it forward.
10247 (arc_must_save_register): Update, consider the extra regs.
10248 (arc_compute_millicode_save_restore_regs): Update to use the 64
10249 bit gmask.
10250 (arc_compute_frame_size): Likewise.
10251 (arc_enter_leave_p): Likewise.
10252 (arc_save_callee_saves): Likewise.
10253 (arc_restore_callee_saves): Likewise.
10254 (arc_save_callee_enter): Likewise.
10255 (arc_restore_callee_leave): Likewise.
10256 (arc_save_callee_milli): Likewise.
10257 (arc_restore_callee_milli): Likewise.
10258 (arc_expand_prologue): Add new interrupt handling.
10259 (arc_return_address_register): Make it static, move it forward.
10260 (arc_expand_epilogue): Add new interrupt handling.
10261 (arc_get_unalign): Delete.
10262 (arc_epilogue_uses): Make sure we do not remove the extra
10263 saved/restored registers when interrupt.
10264 (arc_can_use_return_insn): New function.
10265 (push_reg): Likewise.
10266 (pop_reg): Likewise.
10267 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10268 procedures.
10269 (arc_restore_callee_saves): Likewise, but restoring.
10270 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10271 (R33_REG): Likewise.
10272 (R34_REG): Likewise.
10273 (R35_REG): Likewise.
10274 (R36_REG): Likewise.
10275 (R37_REG): Likewise.
10276 (R38_REG): Likewise.
10277 (R39_REG): Likewise.
10278 (R45_REG): Likewise.
10279 (R46_REG): Likewise.
10280 (R47_REG): Likewise.
10281 (R48_REG): Likewise.
10282 (R49_REG): Likewise.
10283 (R50_REG): Likewise.
10284 (R51_REG): Likewise.
10285 (R52_REG): Likewise.
10286 (R53_REG): Likewise.
10287 (R54_REG): Likewise.
10288 (R55_REG): Likewise.
10289 (R56_REG): Likewise.
10290 (R58_REG): Likewise.
10291 (type): Add rtie attribute.
10292 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10293 (movsi_insn): Accept moves to lp_count.
10294 (rtie): Update pattern.
10295 (simple_return): Simplify it, don't use this pattern as a return
10296 from an interrupt.
10297 (arc600_rtie): New pattern.
10298 (p_return_i): Clean up.
10299 (return): Likewise.
10300 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10301 family CPUs.
10302 * config/arc/predicates.md (move_src_operand): Consider lp_count
10303 as a register.
10304
10305 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10306
10307 * config/s390/predicates.md (addv_const_operand): New predicate.
10308 * config/s390/s390-modes.def (CCO): New condition code mode.
10309 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10310 (s390_branch_condition_mask): Likewise.
10311 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10312 ("mulv<mode>4"): New expanders.
10313 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10314 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10315 pattern definitions.
10316
10317 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10318
10319 PR middle-end/91166
10320 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10321 (define_predicates): Add entry for uniform_vector_p.
10322 (vec_same_elem_p): New match pattern.
10323
10324 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10325
10326 PR bootstrap/87030
10327 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10328 * config/i386/darwin32-biarch.h .. to here.
10329 * config/i386/darwin64-biarch.h: Adjust comments.
10330 * config/rs6000/darwin32-biarch.h: Likewise.
10331 * config/rs6000/darwin64-biarch.h: Likewise.
10332 * config.gcc: Missed commit from r273746
10333 (*-*-darwin*): Don't include CPU t-darwin here.
10334 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10335 an error message if i686-darwin configuration is attempted for
10336 Darwin >= 18.
10337
10338 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10339
10340 PR bootstrap/87030
10341 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10342 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10343 an error message if i686-darwin configuration is attempted for
10344 Darwin >= 18.
10345 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10346 (powerpc-*-darwin*): Use biarch files where needed.
10347 (powerpc64-*-darwin*): Likewise.
10348 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10349 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10350 arch case.
10351 * config/i386/darwin32-biarch.h: New.
10352 * config/i386/darwin64.h: Rename.
10353 * config/i386/darwin64-biarch.h: To this.
10354 * config/i386/t-darwin: Rename.
10355 * config/i386/t-darwin32-biarch: To this.
10356 * config/i386/t-darwin64: Rename.
10357 * config/i386/t-darwin64-biarch: To this.
10358 * config/rs6000/darwin32-biarch.h: New.
10359 * config/rs6000/darwin64.h: Rename.
10360 * config/rs6000/darwin64-biarch.h: To this.
10361 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10362 arch case.
10363 * config/rs6000/t-darwin8: Rename.
10364 * config/rs6000/t-darwin32-biarch: To this.
10365 * config/rs6000/t-darwin64 Rename.
10366 * config/rs6000/t-darwin64-biarch: To this.
10367
10368 2019-07-23 Martin Sebor <msebor@redhat.com>
10369
10370 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10371
10372 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10373
10374 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10375 (rh): New alias for it.
10376
10377 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10378
10379 * gdbhooks.py: Pass replace=True to
10380 gdb.printing.register_pretty_printer.
10381
10382 2019-07-23 Richard Biener <rguenther@suse.de>
10383
10384 PR debug/91231
10385 * lto-streamer-in.c (input_function): Drop inline-entry markers
10386 that ended up with an unknown location block.
10387
10388 2019-07-23 Richard Biener <rguenther@suse.de>
10389
10390 PR tree-optimization/83518
10391 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10392 init from a constant even when partial defs are already recorded.
10393
10394 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10395
10396 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10397 * config/i386/znver1.md: Enable patterns for znver2 and add store
10398 variants which use extra AGU unit.
10399
10400 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10401
10402 * config/i386/i386-options.c (ix86_option_override_internal): Default
10403 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10404 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10405 for ZNVER2.
10406
10407 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10408
10409 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10410 (znver2_costs): Update 256 bit SSE costs and multiplication.
10411
10412 2019-07-23 Jan Beulich <jbeulich@suse.com>
10413
10414 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10415 Require only AVX512F.
10416 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10417 alternative expanding to vpternlog.
10418
10419 2019-07-23 Martin Liska <mliska@suse.cz>
10420
10421 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10422 to -flto in dwarf producer string.
10423
10424 2019-07-23 Richard Biener <rguenther@suse.de>
10425
10426 * tree-cfg.c (label_for_bb): Remove global var.
10427 (main_block_label): Take label_for_bb as argument.
10428 (cleanup_dead_labels_eh): Likewise, adjust.
10429 (cleanup_dead_labels): Adjust.
10430
10431 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10432
10433 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10434 Configurations): Add documentation for __builtin_mtfsf.
10435
10436 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10437
10438 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10439 * config/riscv/riscv.c (riscv_constant_alignment): Use
10440 riscv_align_data_type.
10441 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10442 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10443 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10444 * config/riscv/riscv.opt (malign-data): New.
10445 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10446
10447 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10448
10449 * cgraph.c (dump_graphviz): New function.
10450 * cgraph.h (dump_graphviz): New function.
10451 * symtab.c (dump_graphviz): New function.
10452
10453 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10454
10455 * config/aarch64/aarch64-simd.md
10456 (*aarch64_simd_sra<mode>): New.
10457 * config/aarch64/iterators.md
10458 (SHIFTRT): New iterator.
10459 (sra_op): New attribute.
10460
10461 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10462
10463 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10464 callee-saved regs R4->R10 in an interrupt function that calls another
10465 function.
10466
10467 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10468
10469 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10470 (_mm_blendv_epi8): New.
10471
10472 2019-07-22 Richard Biener <rguenther@suse.de>
10473
10474 PR tree-optimization/91221
10475 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10476 restrict partial-def handling of empty constructors and
10477 memset to refs with known offset.
10478
10479 2019-07-22 Jan Beulich <jbeulich@suse.com>
10480
10481 * config/i386/sse.md (ternlogsuffix): New.
10482 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10483 AVX512F is in use.
10484 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10485
10486 2019-07-22 Martin Liska <mliska@suse.cz>
10487
10488 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10489 comment.
10490 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10491
10492 2019-07-22 Martin Liska <mliska@suse.cz>
10493
10494 * lto-section-in.c (lto_get_section_data):
10495 Use new function get_compression.
10496 * lto-streamer-out.c (produce_lto_section): Use
10497 set_compression to encode compression algorithm.
10498 * lto-streamer.h (struct lto_section): Do not
10499 use bitfields in the format.
10500
10501 2019-07-22 Martin Liska <mliska@suse.cz>
10502
10503 PR driver/91172
10504 * opts-common.c (decode_cmdline_option): Decode
10505 argument of -Werror and check it for a wrong language.
10506 * opts-global.c (complain_wrong_lang): Remove such case.
10507
10508 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10509
10510 * config/arc/arc.c (prepare_move_operands): Always use an
10511 intermediate register when storing a TLS symbols.
10512
10513 2019-07-22 Stafford Horne <shorne@gmail.com>
10514
10515 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10516 force_reg.
10517
10518 2019-07-22 Stafford Horne <shorne@gmail.com>
10519
10520 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10521 and munordered-float validations.
10522 * config/or1k/constraints.md (d): New register constraint.
10523 * config/or1k/predicates.md (fp_comparison_operator): New.
10524 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10525 operands.
10526 (or1k_expand_compare): Normalize unordered comparisons.
10527 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10528 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10529 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10530 * config/or1k/or1k.md (type): Add fpu.
10531 (fpu): New instruction reservation.
10532 (F, f, fr, fi, FI, FOP, fop): New.
10533 (<fop><F:mode>3): New ALU instruction definition.
10534 (float<fi><F:mode>2): New conversion instruction definition.
10535 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10536 (fpcmpcc): New code iterator.
10537 (*sf_fp_insn): New instruction definition.
10538 (cstore<F:mode>4): New expand definition.
10539 (cbranch<F:mode>4): New expand definition.
10540 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10541 munordered-float): New options.
10542 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10543 munordered-float.
10544
10545 2019-07-22 Stafford Horne <shorne@gmail.com>
10546
10547 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10548 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10549 documenation to be more clear.
10550 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10551 more clear.
10552 * config/or1k/or1k.opt (mrori): New option.
10553 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10554 msfimm, mshftimm): Rewrite documentation to be more clear.
10555 * config/or1k/or1k.md (insn_support): Add ror and rori.
10556 (enabled): Add conditions for ror and rori.
10557 (rotrsi3): Replace condition for shftimm with ror and rori.
10558
10559 2019-07-22 Stafford Horne <shorne@gmail.com>
10560
10561 PR target/90363
10562 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10563 (extend<mode>si2): Update predicate.
10564 * config/or1k/predicates.md (volatile_mem_operand): New.
10565 (reg_or_mem_operand): New.
10566
10567 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10568
10569 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10570 * config/rs6000/rs6000-call.c: ... to here.
10571
10572 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10573
10574 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10575 memory.
10576
10577 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10578
10579 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10580
10581 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10582
10583 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10584
10585 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10586
10587 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10588 (any_memory_operand): New predicate.
10589 (reg_or_mem_operand): Use it.
10590
10591 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10592
10593 PR target/91204
10594 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10595
10596 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10597
10598 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10599 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10600
10601 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10602
10603 * tree.def (OMP_LOOP): New tree code.
10604 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10605 (enum omp_clause_bind_kind): New enum.
10606 (struct tree_omp_clause): Add subcode.bind_kind.
10607 * tree.h (OMP_LOOP_CHECK): Rename to ...
10608 (OMP_LOOPING_CHECK): ... this.
10609 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10610 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10611 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10612 (OMP_CLAUSE_BIND_KIND): Define.
10613 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10614 bind clause entries.
10615 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10616 * tree-pretty-print.c (dump_omp_clause): Likewise.
10617 (dump_generic_node): Handle OMP_LOOP.
10618 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10619 (in_omp_construct): New variable.
10620 (is_gimple_stmt): Handle OMP_LOOP.
10621 (gimplify_scan_omp_clauses): For lastprivate don't set
10622 check_non_private if code == OMP_LOOP. For reduction clause
10623 on OMP_LOOP combined with parallel or teams propagate as shared
10624 on the combined construct. Handle OMP_CLAUSE_BIND.
10625 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10626 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10627 for constructs from a loop construct to gimplify_scan_omp_clauses.
10628 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10629 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10630 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10631 to match the implicit ORT_TARGET construct around whole body.
10632 Temporarily clear in_omp_construct when processing body.
10633 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10634 etc. temporarily set in_omp_construct when processing body.
10635 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10636 * omp-low.c (struct omp_context): Add loop_p.
10637 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10638 in that the original var might be private.
10639 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10640 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10641 addition of loop construct.
10642 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10643
10644 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10645 lastprivate non-addressable iterator of a collapse(1) simd.
10646
10647 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10648
10649 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10650 as in rs6000.c.
10651
10652 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10653
10654 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10655 refer to default conditions. Warn for the 'y' spec which is ignored
10656 by current linkers.
10657
10658 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10659
10660 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10661 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10662 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10663 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10664 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10665 init_cumulative_args, rs6000_promote_function_mode,
10666 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10667 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10668 rs6000_function_arg_boundary, rs6000_parm_offset,
10669 rs6000_parm_start, rs6000_arg_size,
10670 rs6000_darwin64_record_arg_advance_flush,
10671 rs6000_darwin64_record_arg_advance_recurse,
10672 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10673 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10674 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10675 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10676 rs6000_finish_function_arg, rs6000_function_arg,
10677 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10678 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10679 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10680 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10681 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10682 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10683 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10684 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10685 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10686 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10687 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10688 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10689 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10690 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10691 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10692 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10693 get_element_number, altivec_expand_vec_set_builtin,
10694 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10695 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10696 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10697 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10698 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10699 rs6000_expand_builtin, rs6000_vector_type,
10700 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10701 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10702 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10703 to rs6000-call.c.
10704 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10705 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10706 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10707 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10708 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10709 init_cumulative_args, rs6000_promote_function_mode,
10710 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10711 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10712 rs6000_function_arg_boundary, rs6000_parm_offset,
10713 rs6000_parm_start, rs6000_arg_size,
10714 rs6000_darwin64_record_arg_advance_flush,
10715 rs6000_darwin64_record_arg_advance_recurse,
10716 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10717 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10718 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10719 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10720 rs6000_finish_function_arg, rs6000_function_arg,
10721 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10722 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10723 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10724 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10725 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10726 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10727 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10728 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10729 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10730 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10731 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10732 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10733 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10734 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10735 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10736 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10737 get_element_number, altivec_expand_vec_set_builtin,
10738 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10739 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10740 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10741 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10742 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10743 rs6000_expand_builtin, rs6000_vector_type,
10744 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10745 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10746 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10747 to here from rs6000.c.
10748 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10749 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10750 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10751 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10752 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10753 rs6000_return_in_memory, rs6000_return_in_msb,
10754 rs6000_pass_by_reference, setup_incoming_varargs,
10755 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10756 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10757 rs6000_function_arg_padding, rs6000_function_arg,
10758 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10759 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10760 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10761 rs6000_passes_long_double, rs6000_passes_vector,
10762 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10763 altivec_builtin_mask_for_load) Add declarations.
10764 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10765 * config/config.gcc: Add new source file rs6000-call.c to garbage
10766 collector and extra_objs.
10767
10768 2019-07-19 Jeff Law <law@redhat.com>
10769
10770 PR tree-optimization/86061
10771 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10772 strncpy. Drop some trivial dead code.
10773 (maybe_trim_memstar_call): Handle strncpy.
10774
10775 2019-07-19 Richard Biener <rguenther@suse.de>
10776
10777 PR tree-optimization/91211
10778 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10779 memset encoding size.
10780
10781 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10782
10783 PR target/91204
10784 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10785
10786 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10787
10788 PR ipa/91194
10789 * ipa-inline.c (recursive_inlining): Fix limits check.
10790
10791 2019-07-19 Richard Biener <rguenther@suse.de>
10792
10793 PR tree-optimization/91200
10794 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10795 no PHI nodes in middle-bb.
10796
10797 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10798
10799 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10800 to +sve-bitperm.
10801 * config/aarch64/aarch64-option-extensions.def: Likewise.
10802
10803 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10804
10805 PR middle-end/91190
10806 * function.c (insert_temp_slot_address): Store into the hash table
10807 a copy of address to avoid RTL sharing issues.
10808
10809 2019-07-19 Richard Biener <rguenther@suse.de>
10810
10811 PR tree-optimization/91207
10812 Revert
10813 2019-07-17 Richard Biener <rguenther@suse.de>
10814
10815 PR tree-optimization/91178
10816 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10817 loads with a gap larger than the vector size always use
10818 VMAT_STRIDED_SLP.
10819 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10820 avoid loading vectors that are only contained in the gap
10821 and thus are not needed.
10822
10823 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10824
10825 * config/i386/i386.md (*addqi_2_slp): Remove.
10826 (*<code>qi_2_slp): Ditto.
10827
10828 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10829
10830 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10831 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10832 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10833 Rename function from rs6000_prefixed_address.
10834 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10835 TARGET_HAS_TOC.
10836 (TARGET_TOC): Likewise.
10837 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10838 rs6000.h.
10839 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10840 TARGET_HAS_TOC.
10841 (TARGET_TOC): Likewise.
10842 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10843 rs6000.h.
10844 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10845 TARGET_HAS_TOC.
10846 (TARGET_TOC): Likewise.
10847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10848 check to require -mcmodel=medium for pc-relative addressing.
10849 (create_TOC_reference): Add assertion for TARGET_TOC.
10850 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10851 TARGET_NO_TOC.
10852 (rs6000_emit_move): Likewise.
10853 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10854 to 'TOC_alias_set'.
10855 (get_TOC_alias_set): Likewise.
10856 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10857 TARGET_NO_TOC.
10858 (rs6000_can_eliminate): Likewise.
10859 (rs6000_prefixed_address_mode_p): Rename function from
10860 rs6000_prefixed_address.
10861 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10862 TARGET_HAS_TOC and not pc-relative.
10863 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10864 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10865 TARGET_HAS_TOC.
10866 (TARGET_TOC): Likewise.
10867 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10868 rs6000.h.
10869
10870 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10871
10872 PR target/91188
10873 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10874 for operand 0. Do not use (match_dup) to match operand 1 with
10875 operand 0. Add check in insn constraint that either input operand
10876 matches operand 0. Use SWI12 mode iterator to also handle
10877 HImode operands.
10878 (*and<mode>_1_slp): Ditto.
10879 (*<code>qi_1_slp): Ditto.
10880 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10881 Do not use (match_dup) to match operand 1 with operand 0. Add
10882 check in insn constraint that operand 1 matches operand 0.
10883 Use SWI12 mode iterator to also handle HImode operands.
10884 (*ashl<mode>3_1_slp): Ditto.
10885 (*<shift_insn><mode>3_1_slp): Ditto.
10886 (*<rotate_insn><mode>3_1_slp): Ditto.
10887
10888 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10889
10890 * config/arm/arm-builtins.c
10891 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10892 (arm_expand_unop_builtin): Likewise.
10893 * config/arm/crypto.md
10894 (crypto_sha1h): Convert from define_insn to define_expand.
10895 (crypto_<crypto_pattern>): Likewise.
10896 (crypto_sha1h_lb): New define_insn.
10897 (crypto_<crypto_pattern>_lb): Likewise.
10898
10899 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10900
10901 PR target/90317
10902 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10903 (vsha1cq_u32): Likewise.
10904 (vsha1pq_u32): Likewise.
10905 (vsha1mq_u32): Likewise.
10906 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10907 vec select.
10908 (crypto_sha1c): Correct vec select.
10909 (crypto_sha1m): Likewise.
10910 (crypto_sha1p): Likewise.
10911
10912 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10913
10914 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10915 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10916 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10917 (subdi_zesidi_zesidi): Likewise.
10918 (negdi2_compare, negdi2_insn): Likewise.
10919 (negdi_extensidi): Likewise.
10920 (negdi_zero_extendsidi): Likewise.
10921 (arm_cmpdi_insn): Likewise.
10922 (subsi3_carryin): Use arm_borrow_operation.
10923 (subsi3_carryin_const): Likewise.
10924 (subsi3_carryin_const0): Likewise.
10925 (subsi3_carryin_compare): Likewise.
10926 (subsi3_carryin_compare_const): Likewise.
10927 (subsi3_carryin_compare_const0): Likewise.
10928 (subsi3_carryin_shift): Likewise.
10929 (rsbsi3_carryin_shift): Likewise.
10930 (negsi2_carryin_compare): Likewise.
10931
10932 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10933
10934 PR tree-optimization/91137
10935 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10936 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10937 Init, use and fini the above new field.
10938 (determine_base_object_1): New function.
10939 (determine_base_object): Reimplement using walk_tree.
10940
10941 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10942
10943 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10944 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10945 CLEANUP_FORCE_FAST_DCE is set.
10946 * ifcvt.c (rest_of_handle_if_conversion): Pass
10947 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10948 if-conversion succeeded.
10949
10950 2019-07-18 Richard Biener <rguenther@suse.de>
10951
10952 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10953 branches to make code less indented.
10954
10955 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10956
10957 PR middle-end/81824
10958 * attribs.c (decls_mismatched_attributes): Simplify the logic
10959 that avoids duplicates and false positives.
10960
10961 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10962
10963 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10964 data into data section when generating PIC code.
10965 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10966 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10967 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10968 return 2 for SOM and 0 for other targets.
10969
10970 2019-07-17 Jeff Law <law@redhat.com>
10971
10972 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10973 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10974 avoid unexpected switch statement fallthru.
10975
10976 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10977
10978 * config/i386/i386.md (*add<dwi>3_doubleword):
10979 Remove redundant constraints.
10980 (*add<mode>_1): Ditto.
10981 (*addhi_1): Ditto.
10982 (*addqi_1): Ditto.
10983 (*addqi_1_slp): Ditto.
10984 (*add<mode>_2): Ditto.
10985 (*addv<mode>4): Ditto.
10986 (*sub<dwi>3_doubleword): Ditto.
10987 (*sub<mode>_1): Ditto.
10988 (*subqi_1_slp): Ditto.
10989 (*sub<mode>_2): Ditto.
10990 (*subv<mode>4): Ditto.
10991 (*sub<mode>_3): Ditto.
10992 (@add<mode>3_carry): Ditto.
10993 (@sub<mode>3_carry): Ditto.
10994 (*add<mode>3_cc_overflow_1): Ditto.
10995 (*add<mode>3_zext_cc_overflow_2): Ditto.
10996 (*anddi_1): Ditto.
10997 (*and<mode>_1): Ditto.
10998 (*andqi_1): Ditto.
10999 (*andqi_1_slp): Ditto.
11000 (*anddi_2): Ditto.
11001 (*andqi_2_maybe_si): Ditto.
11002 (*and<mode>_2): Ditto.
11003 (*andqi_2_slp): Ditto.
11004 (*<code><mode>_1): Ditto.
11005 (*<code>qi_1): Ditto.
11006 (*<code>qi_1_slp): Ditto.
11007 (*<code><mode>_2): Ditto.
11008 (*<code>qi_2_slp): Ditto.
11009
11010 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11011
11012 * alias.c (record_component_aliases): Do not simplify pointed-to
11013 types of ODR types.
11014
11015 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11016
11017 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11018 partial reg stall on alternative 2.
11019
11020 2019-07-17 Richard Biener <rguenther@suse.de>
11021
11022 PR tree-optimization/91178
11023 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11024 lower SSA names to avoid quadratic behavior in the common case.
11025 * tree-data-ref.c (split_constant_offset): Add limit argument
11026 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11027 (split_constant_offset_1): Add limit argument and use it to
11028 limit SSA def walking. Optimize the common plus/minus case.
11029
11030 2019-07-17 Richard Biener <rguenther@suse.de>
11031
11032 PR tree-optimization/91178
11033 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11034 loads with a gap larger than the vector size always use
11035 VMAT_STRIDED_SLP.
11036 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11037 avoid loading vectors that are only contained in the gap
11038 and thus are not needed.
11039
11040 2019-07-17 Richard Biener <rguenther@suse.de>
11041
11042 PR tree-optimization/91180
11043 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11044 computation for memset partial defs.
11045
11046 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11047
11048 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11049 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11050 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11051 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11052 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11053 * omp-grid.c (grid_process_grid_body,
11054 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11055 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11056 == GF_OMP_FOR_KIND_SIMD.
11057 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11058 check_omp_nesting_restrictions, scan_omp_1_stmt,
11059 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11060 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11061 omp_find_scan): Likewise.
11062 * omp-expand.c (expand_omp_for): Likewise.
11063 * omp-general.c (omp_extract_for_data): Likewise.
11064
11065 PR tree-optimization/91157
11066 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11067 a vector boolean with scalar mode.
11068 (expand_vector_condition): Handle first operand being a vector boolean
11069 with scalar mode.
11070 (expand_vector_operations_1): For comparisons, don't bail out early
11071 if the return type is vector boolean with scalar mode, but comparison
11072 operand type is not.
11073
11074 2019-07-17 Richard Biener <rguenther@suse.de>
11075
11076 PR tree-optimization/91181
11077 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11078 IFN_LOADs as calls.
11079
11080 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11081
11082 * config/i386/i386.md (*testdi_1): Match CCZmode for
11083 constants that might have the SImode sign bit set.
11084 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11085 Use correct constraints for pentium pairing.
11086 (*test<mode>_1): Ditto.
11087
11088 2019-07-16 Jeff Law <law@redhat.com>
11089
11090 PR rtl-optimization/91173
11091 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11092 SSA_NAME with a constant value, fold its value into the offset
11093 and clear the base before calling gen_addr_rtx.
11094
11095 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11096
11097 PR rtl-optimization/91164
11098 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11099 invalidate dominance info.
11100
11101 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11102
11103 * read-md.h (md_reader::record_potential_iterator_use): Add a
11104 file_location parameter.
11105 * read-rtl.c (attribute_use::loc): New field.
11106 (map_attr_string): Take a file_location parameter. Report cases
11107 in which attributes map to multiple distinct values.
11108 (apply_attribute_uses): Update call accordingly.
11109 (md_reader::handle_overloaded_name): Likewise.
11110 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11111 nonnull strings.
11112 (record_attribute_use): Take a file_location parameter.
11113 Initialize attribute_use::loc.
11114 (md_reader::record_potential_iterator_use): Take a file_location
11115 parameter. Update call to record_attribute_use.
11116 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11117 (rtx_reader::read_rtx_code): Likewise.
11118 (rtx_reader::read_rtx_operand): Likewise. Record a location
11119 for implicitly-expanded empty strings.
11120
11121 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11122
11123 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11124 Use file_location instead of separate fields.
11125 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11126 separate filename and line number.
11127 * read-md.c (ptr_loc): As above.
11128 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11129 (md_reader::fprint_md_ptr_loc): Likewise.
11130 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11131 instead of a separate filename and line number.
11132 (md_reader::read_string): Update call accordingly.
11133
11134 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11135
11136 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11137 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11138 leaving the choice between SFDF and P implicit.
11139 (*mov<mode>_update2): Likewise.
11140 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11141 rather than leaving the choice betweem IBM128 and GPR implicit.
11142 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11143 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11144 QHSI implicit.
11145 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11146 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11147 * config/rs6000/vsx.md
11148 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11149 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11150 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11151 and VSX_EXTRACT_I implicit.
11152
11153 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11154
11155 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11156 Explicitly use <MOVEP1:MODE> for the mode attribute.
11157
11158 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11159
11160 PR bootstrap/91176
11161 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11162
11163 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11164
11165 PR target/91050
11166 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11167 .machine directive.
11168
11169 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11170
11171 * config/i386/i386.md (@test<mode>_ccno_1):
11172 Rename from test<mode>_ccno_1.
11173 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11174 (*testqi_1_maybe_si): Remove modrm attribute.
11175 (*test<mode>_1): Ditto.
11176 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11177 gen_test_ccno_1 and gen_extend_insn.
11178
11179 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11180
11181 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11182 to 0.
11183
11184 2019-07-15 Richard Biener <rguenther@suse.de>
11185
11186 PR middle-end/91162
11187 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11188 node make sure to replace all uses with something valid.
11189
11190 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11191
11192 PR tree-optimization/88497
11193 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11194 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11195 function undistribute_bitref_for_vector.
11196 (undistribute_bitref_for_vector): New function.
11197 (cleanup_vinfo_map): Likewise.
11198 (sort_by_mach_mode): Likewise.
11199
11200 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11201
11202 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11203 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11204 and testdi_ccno_1 using SWI48 mode attribute.
11205 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11206 x86_64_szext_general_operand.
11207 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11208 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11209 instead of genera_operand mode attribute.
11210
11211 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11212
11213 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11214 fopen and fclose to their respective types.
11215 (DotFn.invoke): Ditto.
11216
11217 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11218
11219 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11220 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11221 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11222 (array_index_predicate): Remove.
11223 (analyze_function_body): Account cost for variable ofsetted array
11224 indexing.
11225 (estimate_node_size_and_time): Do not compute array index hint.
11226 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11227 (inline_read_section): Do not read array index hint.
11228 (ipa_fn_summary_write): Do not write array index hint.
11229 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11230 * ipa-cp.c (hint_time_bonus): Remove.
11231 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11232 (ipa_fnsummary): Remove array_index.
11233 * ipa-inline.c (want_inline_small_function_p): Do not use
11234 array_index.
11235 (edge_badness): Likewise.
11236 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11237
11238 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11239
11240 PR target/91148
11241 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11242 superfluous "builtin function" phrasing.
11243
11244 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11245
11246 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11247 Break out from ...
11248 (aliasing_component_refs_walk): Break out from ...
11249 (aliasing_component_refs_p): ... here.
11250
11251 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11252
11253 PR target/91148
11254 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11255 "builtin function" phrasing.
11256
11257 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11258
11259 PR target/90723
11260 * recog.h (temporary_volatile_ok): New class.
11261 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11262 volatile_ok temporarily to true using temporary_volatile_ok.
11263 * expr.c (emit_block_move_via_cpymem): Likewise.
11264 * optabs.c (maybe_legitimize_operand): Likewise.
11265
11266 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11267
11268 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11269 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11270 uses inside of order(concurrent) constructs.
11271 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11272 OMP_CLAUSE_ORDER is seen.
11273 * omp-low.c (struct omp_context): Add order_concurrent member.
11274 (scan_sharing_clauses): Set ctx->order_concurrent if
11275 OMP_CLAUSE_ORDER is seen.
11276 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11277 of simd order(concurrent). Diagnose constructs not allowed inside of
11278 for order(concurrent).
11279 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11280 complaining about static double setjmp (double); or class static
11281 methods or non-global namespace setjmps.
11282 (omp_runtime_api_call): New function.
11283 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11284 order(concurrent) loops.
11285
11286 2019-07-12 Martin Sebor <msebor@redhat.com>
11287
11288 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11289 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11290 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11291 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11292
11293 2019-07-12 Jan Hubicka <jh@suse.cz>
11294
11295 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11296 (indirect_refs_may_alias_p): ... here.
11297 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11298 mem refs in the access paths.
11299
11300 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11301
11302 PR tree-optimization/89430
11303 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11304 store elimination for local variable without address escape.
11305
11306 2019-07-12 Jeff Law <law@redhat.com>
11307
11308 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11309 for the ".far" section.
11310
11311 2019-07-12 Richard Biener <rguenther@suse.de>
11312
11313 PR tree-optimization/91145
11314 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11315 chain check.
11316
11317 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11318
11319 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11320 rather than this_state as the lowering context for the ELSE
11321 seq in a GIMPLE_EH_ELSE.
11322
11323 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11324
11325 * vector-builder.h (vector_builder::elt): Allow already-supplied
11326 elements to be read back before building is complete.
11327
11328 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11329
11330 PR rtl-optimization/91136
11331 * df-core.c (ACCESSING REFS): Fix typos in comment.
11332 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11333 the beginning of the block to the initial set of live registers.
11334
11335 2019-07-12 Richard Biener <rguenther@suse.de>
11336
11337 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11338 * fold-const.c (get_array_ctor_element_at_index): Add
11339 ctor_idx output parameter informing the caller where in
11340 the constructor the element was (not) found. Add early exit
11341 for when the ctor is sorted.
11342 * gimple-fold.c (fold_array_ctor_reference): Support constant
11343 folding across multiple array elements.
11344
11345 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11346
11347 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11348 doesn't have location, set the current location to the function's end.
11349
11350 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11351
11352 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11353 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11354 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11355 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11356 * config/aarch64/aarch64-simd.md
11357 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11358 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11359 * config/aarch64/aarch64-sve.md
11360 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11361 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11362
11363 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11364
11365 * doc/md.texi: Document that @ patterns can have different
11366 numbers of operands.
11367 * genemit.c (handle_overloaded_gen): Handle this case.
11368 * genopinit.c (handle_overloaded_gen): Likewise.
11369 * gensupport.c (replace_operands_with_dups): Iterate over
11370 the new rtx's format rather than the old one's.
11371
11372 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11373
11374 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11375 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11376 order clause entries.
11377 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11378 * tree-pretty-print.c (dump_omp_clause): Likewise.
11379 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11380 Likewise.
11381 * omp-low.c (scan_sharing_clauses): Likewise.
11382 * tree-nested.c (convert_nonlocal_omp_clauses,
11383 convert_local_omp_clauses): Likewise.
11384
11385 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11386
11387 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11388 fallthrough target of current basic block isn't the placed
11389 right next.
11390
11391 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11392
11393 PR target/90980
11394 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11395 (_mm512_storeu_epi64): Likewise.
11396 (_mm512_loadu_epi32): Likewise.
11397 (_mm512_storeu_epi32): Likewise.
11398 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11399 (_mm_storeu_epi64): Likewise.
11400 (_mm256_storeu_epi32): Likewise.
11401 (_mm_storeu_epi32): Likewise.
11402
11403 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11404
11405 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11406
11407 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11408
11409 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11410 Handle Modula-2.
11411
11412 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11413
11414 PR target/91124
11415 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11416 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11417 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11418 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11419 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11420 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11421 define_insns.
11422 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11423 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11424 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11425 define_insns.
11426 (sse2_cvttpd2dq<mask_name>): Change into ...
11427 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11428 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11429 (*sse2_cvtpd2dq<mask_name>): Change into ...
11430 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11431 Add "C" constraint to const0_operand.
11432 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11433 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11434 changes.
11435
11436 PR target/91124
11437 * config/i386/i386-builtin-types.def
11438 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11439 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11440 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11441 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11442 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11443 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11444 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11445 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11446 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11447 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11448 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11449 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11450 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11451 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11452 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11453 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11454 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11455 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11456 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11457 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11458 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11459 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11460 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11461 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11462 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11463 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11464 __builtin_ia32_vpdpbusd_v4si_maskz,
11465 __builtin_ia32_vpdpbusds_v16si_mask,
11466 __builtin_ia32_vpdpbusds_v16si_maskz,
11467 __builtin_ia32_vpdpbusds_v8si_mask,
11468 __builtin_ia32_vpdpbusds_v8si_maskz,
11469 __builtin_ia32_vpdpbusds_v4si_mask,
11470 __builtin_ia32_vpdpbusds_v4si_maskz,
11471 __builtin_ia32_vpdpwssd_v16si_mask,
11472 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11473 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11474 __builtin_ia32_vpdpwssd_v4si_maskz,
11475 __builtin_ia32_vpdpwssds_v16si_mask,
11476 __builtin_ia32_vpdpwssds_v16si_maskz,
11477 __builtin_ia32_vpdpwssds_v8si_mask,
11478 __builtin_ia32_vpdpwssds_v8si_maskz,
11479 __builtin_ia32_vpdpwssds_v4si_mask,
11480 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11481 suffixed types rather than *_INT.
11482 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11483 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11484 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11485 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11486 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11487 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11488
11489 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11490
11491 * tree-vrp.c (intersect_ranges): If we know the intersection is
11492 empty, there is no need to conservatively add anything else to
11493 the set.
11494
11495 2019-07-11 Richard Biener <rguenther@suse.de>
11496
11497 PR middle-end/91131
11498 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11499 when the object is volatile and we have not cleared it even though
11500 there are no nonzero elements.
11501
11502 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11503
11504 * config/rs6000/predicates.md (cint34_operand): Update
11505 SIGNED_34BIT_OFFSET_P call.
11506 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11507 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11508 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11509 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11510 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11511 argument.
11512 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11513 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11514 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11515 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11516 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11517
11518 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11519
11520 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11521 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11522 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11523 (DEF_MIN_OSX_VERSION): New.
11524
11525 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11526
11527 * fold-const.c (fold_relational_const): Fix folding of
11528 vector-to-scalar NE_EXPRs.
11529 (test_vector_folding): Add more tests.
11530
11531 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11532
11533 PR target/91060
11534 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11535 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11536 (vec_setv2di_internal): Reexpress as...
11537 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11538 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11539 rather than gen_neon_vset_lane<mode>.
11540
11541 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11542
11543 PR target/91102
11544 * lra-constraints.c (process_alt_operands): Don't match user
11545 defined regs only if they are early clobbers.
11546
11547 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11548
11549 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11550
11551 2019-07-10 Richard Biener <rguenther@suse.de>
11552
11553 PR tree-optimization/91126
11554 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11555 native encoding offset for BYTES_BIG_ENDIAN.
11556 (vn_reference_lookup_3): Likewise.
11557
11558 2019-07-10 Richard Biener <rguenther@suse.de>
11559
11560 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11561 LHS whenever possible.
11562
11563 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11564
11565 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11566 from ...; work also on duplicated types.
11567 (nonoverlapping_component_refs_since_match): ... here
11568 (ncr_type_uid): Break out from ...
11569 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11570 available.
11571 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11572 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11573
11574 2019-07-09 Martin Sebor <msebor@redhat.com>
11575
11576 PR tree-optimization/90989
11577 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11578 optimization to just single character stores.
11579
11580 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11581
11582 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11583 Swap operands only once.
11584
11585 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11586
11587 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11588 for both call instructions.
11589
11590 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11591
11592 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11593 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11594
11595 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11596
11597 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11598 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11599 function from rs6000-logue.c back to rs6000.c.
11600 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11601
11602 2019-07-09 Martin Sebor <msebor@redhat.com>
11603
11604 PR c++/61339
11605 * auto-profile.c: Change class-key of PODs to struct and others
11606 to class.
11607 * basic-block.h: Same.
11608 * bitmap.c (bitmap_alloc): Same.
11609 * bitmap.h: Same.
11610 * builtins.c (expand_builtin_prefetch): Same.
11611 (expand_builtin_interclass_mathfn): Same.
11612 (expand_builtin_strlen): Same.
11613 (expand_builtin_mempcpy_args): Same.
11614 (expand_cmpstr): Same.
11615 (expand_builtin___clear_cache): Same.
11616 (expand_ifn_atomic_bit_test_and): Same.
11617 (expand_builtin_thread_pointer): Same.
11618 (expand_builtin_set_thread_pointer): Same.
11619 * caller-save.c (setup_save_areas): Same.
11620 (replace_reg_with_saved_mem): Same.
11621 (insert_restore): Same.
11622 (insert_save): Same.
11623 (add_used_regs): Same.
11624 * cfg.c (get_bb_copy): Same.
11625 (set_loop_copy): Same.
11626 * cfg.h: Same.
11627 * cfganal.h: Same.
11628 * cfgexpand.c (alloc_stack_frame_space): Same.
11629 (add_stack_var): Same.
11630 (add_stack_var_conflict): Same.
11631 (add_scope_conflicts_1): Same.
11632 (update_alias_info_with_stack_vars): Same.
11633 (expand_used_vars): Same.
11634 * cfghooks.c (redirect_edge_and_branch_force): Same.
11635 (delete_basic_block): Same.
11636 (split_edge): Same.
11637 (make_forwarder_block): Same.
11638 (force_nonfallthru): Same.
11639 (duplicate_block): Same.
11640 (lv_flush_pending_stmts): Same.
11641 * cfghooks.h: Same.
11642 * cfgloop.c (flow_loops_cfg_dump): Same.
11643 (flow_loop_nested_p): Same.
11644 (superloop_at_depth): Same.
11645 (get_loop_latch_edges): Same.
11646 (flow_loop_dump): Same.
11647 (flow_loops_dump): Same.
11648 (flow_loops_free): Same.
11649 (flow_loop_nodes_find): Same.
11650 (establish_preds): Same.
11651 (flow_loop_tree_node_add): Same.
11652 (flow_loop_tree_node_remove): Same.
11653 (flow_loops_find): Same.
11654 (find_subloop_latch_edge_by_profile): Same.
11655 (find_subloop_latch_edge_by_ivs): Same.
11656 (mfb_redirect_edges_in_set): Same.
11657 (form_subloop): Same.
11658 (merge_latch_edges): Same.
11659 (disambiguate_multiple_latches): Same.
11660 (disambiguate_loops_with_multiple_latches): Same.
11661 (flow_bb_inside_loop_p): Same.
11662 (glb_enum_p): Same.
11663 (get_loop_body_with_size): Same.
11664 (get_loop_body): Same.
11665 (fill_sons_in_loop): Same.
11666 (get_loop_body_in_dom_order): Same.
11667 (get_loop_body_in_custom_order): Same.
11668 (release_recorded_exits): Same.
11669 (get_loop_exit_edges): Same.
11670 (num_loop_branches): Same.
11671 (remove_bb_from_loops): Same.
11672 (find_common_loop): Same.
11673 (delete_loop): Same.
11674 (cancel_loop): Same.
11675 (verify_loop_structure): Same.
11676 (loop_preheader_edge): Same.
11677 (loop_exit_edge_p): Same.
11678 (single_exit): Same.
11679 (loop_exits_to_bb_p): Same.
11680 (loop_exits_from_bb_p): Same.
11681 (get_loop_location): Same.
11682 (record_niter_bound): Same.
11683 (get_estimated_loop_iterations_int): Same.
11684 (max_stmt_executions_int): Same.
11685 (likely_max_stmt_executions_int): Same.
11686 (get_estimated_loop_iterations): Same.
11687 (get_max_loop_iterations): Same.
11688 (get_max_loop_iterations_int): Same.
11689 (get_likely_max_loop_iterations): Same.
11690 * cfgloop.h (simple_loop_desc): Same.
11691 (get_loop): Same.
11692 (loop_depth): Same.
11693 (loop_outer): Same.
11694 (loop_iterator::next): Same.
11695 (loop_outermost): Same.
11696 * cfgloopanal.c (mark_irreducible_loops): Same.
11697 (num_loop_insns): Same.
11698 (average_num_loop_insns): Same.
11699 (expected_loop_iterations_unbounded): Same.
11700 (expected_loop_iterations): Same.
11701 (mark_loop_exit_edges): Same.
11702 (single_likely_exit): Same.
11703 * cfgloopmanip.c (fix_bb_placement): Same.
11704 (fix_bb_placements): Same.
11705 (remove_path): Same.
11706 (place_new_loop): Same.
11707 (add_loop): Same.
11708 (scale_loop_frequencies): Same.
11709 (scale_loop_profile): Same.
11710 (create_empty_if_region_on_edge): Same.
11711 (create_empty_loop_on_edge): Same.
11712 (loopify): Same.
11713 (unloop): Same.
11714 (fix_loop_placements): Same.
11715 (copy_loop_info): Same.
11716 (duplicate_loop): Same.
11717 (duplicate_subloops): Same.
11718 (loop_redirect_edge): Same.
11719 (can_duplicate_loop_p): Same.
11720 (duplicate_loop_to_header_edge): Same.
11721 (mfb_keep_just): Same.
11722 (has_preds_from_loop): Same.
11723 (create_preheader): Same.
11724 (create_preheaders): Same.
11725 (lv_adjust_loop_entry_edge): Same.
11726 (loop_version): Same.
11727 * cfgloopmanip.h: Same.
11728 * cgraph.h: Same.
11729 * cgraphbuild.c: Same.
11730 * combine.c (make_extraction): Same.
11731 * config/i386/i386-features.c: Same.
11732 * config/i386/i386-features.h: Same.
11733 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11734 (ix86_emit_outlined_ms2sysv_restore): Same.
11735 (ix86_noce_conversion_profitable_p): Same.
11736 (ix86_init_cost): Same.
11737 (ix86_simd_clone_usable): Same.
11738 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11739 Wstruct-not-pod.
11740 * coretypes.h: Same.
11741 * data-streamer-in.c (string_for_index): Change class-key of PODs
11742 to struct and others to class.
11743 (streamer_read_indexed_string): Same.
11744 (streamer_read_string): Same.
11745 (bp_unpack_indexed_string): Same.
11746 (bp_unpack_string): Same.
11747 (streamer_read_uhwi): Same.
11748 (streamer_read_hwi): Same.
11749 (streamer_read_gcov_count): Same.
11750 (streamer_read_wide_int): Same.
11751 * data-streamer.h (streamer_write_bitpack): Same.
11752 (bp_unpack_value): Same.
11753 (streamer_write_char_stream): Same.
11754 (streamer_write_hwi_in_range): Same.
11755 (streamer_write_record_start): Same.
11756 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11757 (add_cross_iteration_register_deps): Same.
11758 (build_intra_loop_deps): Same.
11759 * df-core.c (df_analyze): Same.
11760 (loop_post_order_compute): Same.
11761 (loop_inverted_post_order_compute): Same.
11762 * df-problems.c (df_rd_alloc): Same.
11763 (df_rd_simulate_one_insn): Same.
11764 (df_rd_local_compute): Same.
11765 (df_rd_init_solution): Same.
11766 (df_rd_confluence_n): Same.
11767 (df_rd_transfer_function): Same.
11768 (df_rd_free): Same.
11769 (df_rd_dump_defs_set): Same.
11770 (df_rd_top_dump): Same.
11771 (df_lr_alloc): Same.
11772 (df_lr_reset): Same.
11773 (df_lr_local_compute): Same.
11774 (df_lr_init): Same.
11775 (df_lr_confluence_n): Same.
11776 (df_lr_free): Same.
11777 (df_lr_top_dump): Same.
11778 (df_lr_verify_transfer_functions): Same.
11779 (df_live_alloc): Same.
11780 (df_live_reset): Same.
11781 (df_live_init): Same.
11782 (df_live_confluence_n): Same.
11783 (df_live_finalize): Same.
11784 (df_live_free): Same.
11785 (df_live_top_dump): Same.
11786 (df_live_verify_transfer_functions): Same.
11787 (df_mir_alloc): Same.
11788 (df_mir_reset): Same.
11789 (df_mir_init): Same.
11790 (df_mir_confluence_n): Same.
11791 (df_mir_free): Same.
11792 (df_mir_top_dump): Same.
11793 (df_word_lr_alloc): Same.
11794 (df_word_lr_reset): Same.
11795 (df_word_lr_init): Same.
11796 (df_word_lr_confluence_n): Same.
11797 (df_word_lr_free): Same.
11798 (df_word_lr_top_dump): Same.
11799 (df_md_alloc): Same.
11800 (df_md_simulate_one_insn): Same.
11801 (df_md_reset): Same.
11802 (df_md_init): Same.
11803 (df_md_free): Same.
11804 (df_md_top_dump): Same.
11805 * df-scan.c (df_insn_delete): Same.
11806 (df_insn_rescan): Same.
11807 (df_notes_rescan): Same.
11808 (df_sort_and_compress_mws): Same.
11809 (df_install_mws): Same.
11810 (df_refs_add_to_chains): Same.
11811 (df_ref_create_structure): Same.
11812 (df_ref_record): Same.
11813 (df_def_record_1): Same.
11814 (df_find_hard_reg_defs): Same.
11815 (df_uses_record): Same.
11816 (df_get_conditional_uses): Same.
11817 (df_get_call_refs): Same.
11818 (df_recompute_luids): Same.
11819 (df_get_entry_block_def_set): Same.
11820 (df_entry_block_defs_collect): Same.
11821 (df_get_exit_block_use_set): Same.
11822 (df_exit_block_uses_collect): Same.
11823 (df_mws_verify): Same.
11824 (df_bb_verify): Same.
11825 * df.h (df_scan_get_bb_info): Same.
11826 * doc/tm.texi: Same.
11827 * dse.c (record_store): Same.
11828 * dumpfile.h: Same.
11829 * emit-rtl.c (const_fixed_hasher::equal): Same.
11830 (set_mem_attributes_minus_bitpos): Same.
11831 (change_address): Same.
11832 (adjust_address_1): Same.
11833 (offset_address): Same.
11834 * emit-rtl.h: Same.
11835 * except.c (dw2_build_landing_pads): Same.
11836 (sjlj_emit_dispatch_table): Same.
11837 * explow.c (allocate_dynamic_stack_space): Same.
11838 (emit_stack_probe): Same.
11839 (probe_stack_range): Same.
11840 * expmed.c (store_bit_field_using_insv): Same.
11841 (store_bit_field_1): Same.
11842 (store_integral_bit_field): Same.
11843 (extract_bit_field_using_extv): Same.
11844 (extract_bit_field_1): Same.
11845 (emit_cstore): Same.
11846 * expr.c (emit_block_move_via_cpymem): Same.
11847 (expand_cmpstrn_or_cmpmem): Same.
11848 (set_storage_via_setmem): Same.
11849 (emit_single_push_insn_1): Same.
11850 (expand_assignment): Same.
11851 (store_constructor): Same.
11852 (expand_expr_real_2): Same.
11853 (expand_expr_real_1): Same.
11854 (try_casesi): Same.
11855 * flags.h: Same.
11856 * function.c (try_fit_stack_local): Same.
11857 (assign_stack_local_1): Same.
11858 (assign_stack_local): Same.
11859 (cut_slot_from_list): Same.
11860 (insert_slot_to_list): Same.
11861 (max_slot_level): Same.
11862 (move_slot_to_level): Same.
11863 (temp_address_hasher::equal): Same.
11864 (remove_unused_temp_slot_addresses): Same.
11865 (assign_temp): Same.
11866 (combine_temp_slots): Same.
11867 (update_temp_slot_address): Same.
11868 (preserve_temp_slots): Same.
11869 * function.h: Same.
11870 * fwprop.c: Same.
11871 * gcc-rich-location.h: Same.
11872 * gcov.c: Same.
11873 * genattrtab.c (check_attr_test): Same.
11874 (check_attr_value): Same.
11875 (convert_set_attr_alternative): Same.
11876 (convert_set_attr): Same.
11877 (check_defs): Same.
11878 (copy_boolean): Same.
11879 (get_attr_value): Same.
11880 (expand_delays): Same.
11881 (make_length_attrs): Same.
11882 (min_fn): Same.
11883 (make_alternative_compare): Same.
11884 (simplify_test_exp): Same.
11885 (tests_attr_p): Same.
11886 (get_attr_order): Same.
11887 (clear_struct_flag): Same.
11888 (gen_attr): Same.
11889 (compares_alternatives_p): Same.
11890 (gen_insn): Same.
11891 (gen_delay): Same.
11892 (find_attrs_to_cache): Same.
11893 (write_test_expr): Same.
11894 (walk_attr_value): Same.
11895 (write_attr_get): Same.
11896 (eliminate_known_true): Same.
11897 (write_insn_cases): Same.
11898 (write_attr_case): Same.
11899 (write_attr_valueq): Same.
11900 (write_attr_value): Same.
11901 (write_dummy_eligible_delay): Same.
11902 (next_comma_elt): Same.
11903 (find_attr): Same.
11904 (make_internal_attr): Same.
11905 (copy_rtx_unchanging): Same.
11906 (gen_insn_reserv): Same.
11907 (check_tune_attr): Same.
11908 (make_automaton_attrs): Same.
11909 (handle_arg): Same.
11910 * genextract.c (gen_insn): Same.
11911 (VEC_char_to_string): Same.
11912 * genmatch.c (print_operand): Same.
11913 (lower): Same.
11914 (parser::parse_operation): Same.
11915 (parser::parse_capture): Same.
11916 (parser::parse_c_expr): Same.
11917 (parser::parse_simplify): Same.
11918 (main): Same.
11919 * genoutput.c (output_operand_data): Same.
11920 (output_get_insn_name): Same.
11921 (compare_operands): Same.
11922 (place_operands): Same.
11923 (process_template): Same.
11924 (validate_insn_alternatives): Same.
11925 (validate_insn_operands): Same.
11926 (gen_expand): Same.
11927 (note_constraint): Same.
11928 * genpreds.c (write_one_predicate_function): Same.
11929 (add_constraint): Same.
11930 (process_define_register_constraint): Same.
11931 (write_lookup_constraint_1): Same.
11932 (write_lookup_constraint_array): Same.
11933 (write_insn_constraint_len): Same.
11934 (write_reg_class_for_constraint_1): Same.
11935 (write_constraint_satisfied_p_array): Same.
11936 * genrecog.c (optimize_subroutine_group): Same.
11937 * gensupport.c (process_define_predicate): Same.
11938 (queue_pattern): Same.
11939 (remove_from_queue): Same.
11940 (process_rtx): Same.
11941 (is_predicable): Same.
11942 (change_subst_attribute): Same.
11943 (subst_pattern_match): Same.
11944 (alter_constraints): Same.
11945 (alter_attrs_for_insn): Same.
11946 (shift_output_template): Same.
11947 (alter_output_for_subst_insn): Same.
11948 (process_one_cond_exec): Same.
11949 (subst_dup): Same.
11950 (process_define_cond_exec): Same.
11951 (mnemonic_htab_callback): Same.
11952 (gen_mnemonic_attr): Same.
11953 (read_md_rtx): Same.
11954 * ggc-page.c: Same.
11955 * gimple-loop-interchange.cc (dump_reduction): Same.
11956 (dump_induction): Same.
11957 (loop_cand::~loop_cand): Same.
11958 (free_data_refs_with_aux): Same.
11959 (tree_loop_interchange::interchange_loops): Same.
11960 (tree_loop_interchange::map_inductions_to_loop): Same.
11961 (tree_loop_interchange::move_code_to_inner_loop): Same.
11962 (compute_access_stride): Same.
11963 (compute_access_strides): Same.
11964 (proper_loop_form_for_interchange): Same.
11965 (tree_loop_interchange_compute_ddrs): Same.
11966 (prune_datarefs_not_in_loop): Same.
11967 (prepare_data_references): Same.
11968 (pass_linterchange::execute): Same.
11969 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11970 (unroll_jam_possible_p): Same.
11971 (fuse_loops): Same.
11972 (adjust_unroll_factor): Same.
11973 (tree_loop_unroll_and_jam): Same.
11974 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11975 (loop_versioning::expensive_stmt_p): Same.
11976 (loop_versioning::version_for_unity): Same.
11977 (loop_versioning::dump_inner_likelihood): Same.
11978 (loop_versioning::find_per_loop_multiplication): Same.
11979 (loop_versioning::analyze_term_using_scevs): Same.
11980 (loop_versioning::record_address_fragment): Same.
11981 (loop_versioning::analyze_expr): Same.
11982 (loop_versioning::analyze_blocks): Same.
11983 (loop_versioning::prune_conditions): Same.
11984 (loop_versioning::merge_loop_info): Same.
11985 (loop_versioning::add_loop_to_queue): Same.
11986 (loop_versioning::decide_whether_loop_is_versionable): Same.
11987 (loop_versioning::make_versioning_decisions): Same.
11988 (loop_versioning::implement_versioning_decisions): Same.
11989 * gimple-ssa-evrp-analyze.c
11990 (evrp_range_analyzer::record_ranges_from_phis): Same.
11991 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11992 (count_multiple_uses): Same.
11993 (split_group): Same.
11994 (imm_store_chain_info::output_merged_store): Same.
11995 (pass_store_merging::process_store): Same.
11996 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11997 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11998 (is_max): Same.
11999 (alloca_call_type): Same.
12000 (pass_walloca::execute): Same.
12001 * gimple-streamer-in.c (input_phi): Same.
12002 (input_gimple_stmt): Same.
12003 * gimple-streamer.h: Same.
12004 * godump.c (go_force_record_alignment): Same.
12005 (go_format_type): Same.
12006 (go_output_type): Same.
12007 (go_output_fndecl): Same.
12008 (go_output_typedef): Same.
12009 (keyword_hash_init): Same.
12010 (find_dummy_types): Same.
12011 * graph.c (draw_cfg_nodes_no_loops): Same.
12012 (draw_cfg_nodes_for_loop): Same.
12013 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12014 * hsa-brig.c: Same.
12015 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12016 * hsa-dump.c (dump_hsa_cfun): Same.
12017 * hsa-gen.c (gen_function_def_parameters): Same.
12018 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12019 * input.c (dump_line_table_statistics): Same.
12020 (test_lexer): Same.
12021 * input.h: Same.
12022 * internal-fn.c (get_multi_vector_move): Same.
12023 (expand_load_lanes_optab_fn): Same.
12024 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12025 (expand_GOMP_SIMT_EXIT): Same.
12026 (expand_GOMP_SIMT_LAST_LANE): Same.
12027 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12028 (expand_GOMP_SIMT_VOTE_ANY): Same.
12029 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12030 (expand_GOMP_SIMT_XCHG_IDX): Same.
12031 (expand_addsub_overflow): Same.
12032 (expand_neg_overflow): Same.
12033 (expand_mul_overflow): Same.
12034 (expand_call_mem_ref): Same.
12035 (expand_mask_load_optab_fn): Same.
12036 (expand_scatter_store_optab_fn): Same.
12037 (expand_gather_load_optab_fn): Same.
12038 * ipa-cp.c (ipa_get_parm_lattices): Same.
12039 (print_all_lattices): Same.
12040 (ignore_edge_p): Same.
12041 (build_toporder_info): Same.
12042 (free_toporder_info): Same.
12043 (push_node_to_stack): Same.
12044 (ipcp_lattice<valtype>::set_contains_variable): Same.
12045 (set_agg_lats_to_bottom): Same.
12046 (ipcp_bits_lattice::meet_with): Same.
12047 (set_single_call_flag): Same.
12048 (initialize_node_lattices): Same.
12049 (ipa_get_jf_ancestor_result): Same.
12050 (ipcp_verify_propagated_values): Same.
12051 (propagate_scalar_across_jump_function): Same.
12052 (propagate_context_across_jump_function): Same.
12053 (propagate_bits_across_jump_function): Same.
12054 (ipa_vr_operation_and_type_effects): Same.
12055 (propagate_vr_across_jump_function): Same.
12056 (set_check_aggs_by_ref): Same.
12057 (set_chain_of_aglats_contains_variable): Same.
12058 (merge_aggregate_lattices): Same.
12059 (agg_pass_through_permissible_p): Same.
12060 (propagate_aggs_across_jump_function): Same.
12061 (call_passes_through_thunk_p): Same.
12062 (propagate_constants_across_call): Same.
12063 (devirtualization_time_bonus): Same.
12064 (good_cloning_opportunity_p): Same.
12065 (context_independent_aggregate_values): Same.
12066 (gather_context_independent_values): Same.
12067 (perform_estimation_of_a_value): Same.
12068 (estimate_local_effects): Same.
12069 (value_topo_info<valtype>::add_val): Same.
12070 (add_all_node_vals_to_toposort): Same.
12071 (value_topo_info<valtype>::propagate_effects): Same.
12072 (ipcp_propagate_stage): Same.
12073 (ipcp_discover_new_direct_edges): Same.
12074 (same_node_or_its_all_contexts_clone_p): Same.
12075 (cgraph_edge_brings_value_p): Same.
12076 (gather_edges_for_value): Same.
12077 (create_specialized_node): Same.
12078 (find_more_scalar_values_for_callers_subset): Same.
12079 (find_more_contexts_for_caller_subset): Same.
12080 (copy_plats_to_inter): Same.
12081 (intersect_aggregates_with_edge): Same.
12082 (find_aggregate_values_for_callers_subset): Same.
12083 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12084 (decide_about_value): Same.
12085 (decide_whether_version_node): Same.
12086 (spread_undeadness): Same.
12087 (identify_dead_nodes): Same.
12088 (ipcp_store_vr_results): Same.
12089 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12090 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12091 (redirect_to_unreachable): Same.
12092 (edge_set_predicate): Same.
12093 (evaluate_conditions_for_known_args): Same.
12094 (evaluate_properties_for_edge): Same.
12095 (ipa_fn_summary_t::duplicate): Same.
12096 (ipa_call_summary_t::duplicate): Same.
12097 (dump_ipa_call_summary): Same.
12098 (ipa_dump_fn_summary): Same.
12099 (eliminated_by_inlining_prob): Same.
12100 (set_cond_stmt_execution_predicate): Same.
12101 (set_switch_stmt_execution_predicate): Same.
12102 (compute_bb_predicates): Same.
12103 (will_be_nonconstant_expr_predicate): Same.
12104 (phi_result_unknown_predicate): Same.
12105 (analyze_function_body): Same.
12106 (compute_fn_summary): Same.
12107 (estimate_edge_devirt_benefit): Same.
12108 (estimate_edge_size_and_time): Same.
12109 (estimate_calls_size_and_time): Same.
12110 (estimate_node_size_and_time): Same.
12111 (remap_edge_change_prob): Same.
12112 (remap_edge_summaries): Same.
12113 (ipa_merge_fn_summary_after_inlining): Same.
12114 (ipa_fn_summary_generate): Same.
12115 (inline_read_section): Same.
12116 (ipa_fn_summary_read): Same.
12117 (ipa_fn_summary_write): Same.
12118 * ipa-fnsummary.h: Same.
12119 * ipa-hsa.c (ipa_hsa_read_section): Same.
12120 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12121 * ipa-icf.c (sem_function::param_used_p): Same.
12122 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12123 * ipa-inline.c (edge_badness): Same.
12124 (inline_small_functions): Same.
12125 * ipa-polymorphic-call.c
12126 (ipa_polymorphic_call_context::stream_out): Same.
12127 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12128 (predicate::remap_after_inlining): Same.
12129 (predicate::stream_out): Same.
12130 * ipa-predicate.h: Same.
12131 * ipa-profile.c (ipa_profile_read_summary): Same.
12132 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12133 (count_formal_params): Same.
12134 (ipa_dump_param): Same.
12135 (ipa_alloc_node_params): Same.
12136 (ipa_print_node_jump_functions_for_edge): Same.
12137 (ipa_print_node_jump_functions): Same.
12138 (ipa_load_from_parm_agg): Same.
12139 (get_ancestor_addr_info): Same.
12140 (ipa_compute_jump_functions_for_edge): Same.
12141 (ipa_analyze_virtual_call_uses): Same.
12142 (ipa_analyze_stmt_uses): Same.
12143 (ipa_analyze_params_uses_in_bb): Same.
12144 (update_jump_functions_after_inlining): Same.
12145 (try_decrement_rdesc_refcount): Same.
12146 (ipa_impossible_devirt_target): Same.
12147 (update_indirect_edges_after_inlining): Same.
12148 (combine_controlled_uses_counters): Same.
12149 (ipa_edge_args_sum_t::duplicate): Same.
12150 (ipa_write_jump_function): Same.
12151 (ipa_write_indirect_edge_info): Same.
12152 (ipa_write_node_info): Same.
12153 (ipa_read_edge_info): Same.
12154 (ipa_prop_read_section): Same.
12155 (read_replacements_section): Same.
12156 * ipa-prop.h (ipa_get_param_count): Same.
12157 (ipa_get_param): Same.
12158 (ipa_get_type): Same.
12159 (ipa_get_param_move_cost): Same.
12160 (ipa_set_param_used): Same.
12161 (ipa_get_controlled_uses): Same.
12162 (ipa_set_controlled_uses): Same.
12163 (ipa_get_cs_argument_count): Same.
12164 * ipa-pure-const.c (analyze_function): Same.
12165 (pure_const_read_summary): Same.
12166 * ipa-ref.h: Same.
12167 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12168 * ipa-split.c (test_nonssa_use): Same.
12169 (dump_split_point): Same.
12170 (dominated_by_forbidden): Same.
12171 (split_part_set_ssa_name_p): Same.
12172 (find_split_points): Same.
12173 * ira-build.c (finish_loop_tree_nodes): Same.
12174 (low_pressure_loop_node_p): Same.
12175 * ira-color.c (ira_reuse_stack_slot): Same.
12176 * ira-int.h: Same.
12177 * ira.c (setup_reg_equiv): Same.
12178 (print_insn_chain): Same.
12179 (ira): Same.
12180 * loop-doloop.c (doloop_condition_get): Same.
12181 (add_test): Same.
12182 (record_reg_sets): Same.
12183 (doloop_optimize): Same.
12184 * loop-init.c (loop_optimizer_init): Same.
12185 (fix_loop_structure): Same.
12186 * loop-invariant.c (merge_identical_invariants): Same.
12187 (compute_always_reached): Same.
12188 (find_exits): Same.
12189 (may_assign_reg_p): Same.
12190 (find_invariants_bb): Same.
12191 (find_invariants_body): Same.
12192 (replace_uses): Same.
12193 (can_move_invariant_reg): Same.
12194 (free_inv_motion_data): Same.
12195 (move_single_loop_invariants): Same.
12196 (change_pressure): Same.
12197 (mark_ref_regs): Same.
12198 (calculate_loop_reg_pressure): Same.
12199 * loop-iv.c (biv_entry_hasher::equal): Same.
12200 (iv_extend_to_rtx_code): Same.
12201 (check_iv_ref_table_size): Same.
12202 (clear_iv_info): Same.
12203 (latch_dominating_def): Same.
12204 (iv_get_reaching_def): Same.
12205 (iv_constant): Same.
12206 (iv_subreg): Same.
12207 (iv_extend): Same.
12208 (iv_neg): Same.
12209 (iv_add): Same.
12210 (iv_mult): Same.
12211 (get_biv_step): Same.
12212 (record_iv): Same.
12213 (analyzed_for_bivness_p): Same.
12214 (record_biv): Same.
12215 (iv_analyze_biv): Same.
12216 (iv_analyze_expr): Same.
12217 (iv_analyze_def): Same.
12218 (iv_analyze_op): Same.
12219 (iv_analyze): Same.
12220 (iv_analyze_result): Same.
12221 (biv_p): Same.
12222 (eliminate_implied_conditions): Same.
12223 (simplify_using_initial_values): Same.
12224 (shorten_into_mode): Same.
12225 (canonicalize_iv_subregs): Same.
12226 (determine_max_iter): Same.
12227 (check_simple_exit): Same.
12228 (find_simple_exit): Same.
12229 (get_simple_loop_desc): Same.
12230 * loop-unroll.c (report_unroll): Same.
12231 (decide_unrolling): Same.
12232 (unroll_loops): Same.
12233 (loop_exit_at_end_p): Same.
12234 (decide_unroll_constant_iterations): Same.
12235 (unroll_loop_constant_iterations): Same.
12236 (compare_and_jump_seq): Same.
12237 (unroll_loop_runtime_iterations): Same.
12238 (decide_unroll_stupid): Same.
12239 (unroll_loop_stupid): Same.
12240 (referenced_in_one_insn_in_loop_p): Same.
12241 (reset_debug_uses_in_loop): Same.
12242 (analyze_iv_to_split_insn): Same.
12243 * lra-eliminations.c (lra_debug_elim_table): Same.
12244 (setup_can_eliminate): Same.
12245 (form_sum): Same.
12246 (lra_get_elimination_hard_regno): Same.
12247 (lra_eliminate_regs_1): Same.
12248 (eliminate_regs_in_insn): Same.
12249 (update_reg_eliminate): Same.
12250 (init_elimination): Same.
12251 (lra_eliminate): Same.
12252 * lra-int.h: Same.
12253 * lra-lives.c (initiate_live_solver): Same.
12254 * lra-remat.c (create_remat_bb_data): Same.
12255 * lra-spills.c (lra_spill): Same.
12256 * lra.c (lra_set_insn_recog_data): Same.
12257 (lra_set_used_insn_alternative_by_uid): Same.
12258 (init_reg_info): Same.
12259 (expand_reg_info): Same.
12260 * lto-cgraph.c (output_symtab): Same.
12261 (read_identifier): Same.
12262 (get_alias_symbol): Same.
12263 (input_node): Same.
12264 (input_varpool_node): Same.
12265 (input_ref): Same.
12266 (input_edge): Same.
12267 (input_cgraph_1): Same.
12268 (input_refs): Same.
12269 (input_symtab): Same.
12270 (input_offload_tables): Same.
12271 (output_cgraph_opt_summary): Same.
12272 (input_edge_opt_summary): Same.
12273 (input_cgraph_opt_section): Same.
12274 * lto-section-in.c (lto_free_raw_section_data): Same.
12275 (lto_create_simple_input_block): Same.
12276 (lto_free_function_in_decl_state_for_node): Same.
12277 * lto-streamer-in.c (lto_tag_check_set): Same.
12278 (lto_location_cache::revert_location_cache): Same.
12279 (lto_location_cache::input_location): Same.
12280 (lto_input_location): Same.
12281 (stream_input_location_now): Same.
12282 (lto_input_tree_ref): Same.
12283 (lto_input_eh_catch_list): Same.
12284 (input_eh_region): Same.
12285 (lto_init_eh): Same.
12286 (make_new_block): Same.
12287 (input_cfg): Same.
12288 (fixup_call_stmt_edges): Same.
12289 (input_struct_function_base): Same.
12290 (input_function): Same.
12291 (lto_read_body_or_constructor): Same.
12292 (lto_read_tree_1): Same.
12293 (lto_read_tree): Same.
12294 (lto_input_scc): Same.
12295 (lto_input_tree_1): Same.
12296 (lto_input_toplevel_asms): Same.
12297 (lto_input_mode_table): Same.
12298 (lto_reader_init): Same.
12299 (lto_data_in_create): Same.
12300 * lto-streamer-out.c (output_cfg): Same.
12301 * lto-streamer.h: Same.
12302 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12303 (generate_prolog_epilog): Same.
12304 (mark_loop_unsched): Same.
12305 (dump_insn_location): Same.
12306 (loop_canon_p): Same.
12307 (sms_schedule): Same.
12308 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12309 (expand_omp_for_generic): Same.
12310 (expand_omp_for_static_nochunk): Same.
12311 (expand_omp_for_static_chunk): Same.
12312 (expand_omp_simd): Same.
12313 (expand_omp_taskloop_for_inner): Same.
12314 (expand_oacc_for): Same.
12315 (expand_omp_atomic_pipeline): Same.
12316 (mark_loops_in_oacc_kernels_region): Same.
12317 * omp-offload.c (oacc_xform_loop): Same.
12318 * omp-simd-clone.c (simd_clone_adjust): Same.
12319 * optabs-query.c (get_traditional_extraction_insn): Same.
12320 * optabs.c (expand_vector_broadcast): Same.
12321 (expand_binop_directly): Same.
12322 (expand_twoval_unop): Same.
12323 (expand_twoval_binop): Same.
12324 (expand_unop_direct): Same.
12325 (emit_indirect_jump): Same.
12326 (emit_conditional_move): Same.
12327 (emit_conditional_neg_or_complement): Same.
12328 (emit_conditional_add): Same.
12329 (vector_compare_rtx): Same.
12330 (expand_vec_perm_1): Same.
12331 (expand_vec_perm_const): Same.
12332 (expand_vec_cond_expr): Same.
12333 (expand_vec_series_expr): Same.
12334 (maybe_emit_atomic_exchange): Same.
12335 (maybe_emit_sync_lock_test_and_set): Same.
12336 (expand_atomic_compare_and_swap): Same.
12337 (expand_atomic_load): Same.
12338 (expand_atomic_store): Same.
12339 (maybe_emit_op): Same.
12340 (valid_multiword_target_p): Same.
12341 (create_integer_operand): Same.
12342 (maybe_legitimize_operand_same_code): Same.
12343 (maybe_legitimize_operand): Same.
12344 (create_convert_operand_from_type): Same.
12345 (can_reuse_operands_p): Same.
12346 (maybe_legitimize_operands): Same.
12347 (maybe_gen_insn): Same.
12348 (maybe_expand_insn): Same.
12349 (maybe_expand_jump_insn): Same.
12350 (expand_insn): Same.
12351 * optabs.h (create_expand_operand): Same.
12352 (create_fixed_operand): Same.
12353 (create_output_operand): Same.
12354 (create_input_operand): Same.
12355 (create_convert_operand_to): Same.
12356 (create_convert_operand_from): Same.
12357 * optinfo.h: Same.
12358 * poly-int.h: Same.
12359 * predict.c (optimize_insn_for_speed_p): Same.
12360 (optimize_loop_for_size_p): Same.
12361 (optimize_loop_for_speed_p): Same.
12362 (optimize_loop_nest_for_speed_p): Same.
12363 (get_base_value): Same.
12364 (predicted_by_loop_heuristics_p): Same.
12365 (predict_extra_loop_exits): Same.
12366 (predict_loops): Same.
12367 (predict_paths_for_bb): Same.
12368 (predict_paths_leading_to): Same.
12369 (propagate_freq): Same.
12370 (pass_profile::execute): Same.
12371 * predict.h: Same.
12372 * profile-count.c (profile_count::differs_from_p): Same.
12373 (profile_probability::differs_lot_from_p): Same.
12374 * profile-count.h: Same.
12375 * profile.c (branch_prob): Same.
12376 * regrename.c (free_chain_data): Same.
12377 (mark_conflict): Same.
12378 (create_new_chain): Same.
12379 (merge_overlapping_regs): Same.
12380 (init_rename_info): Same.
12381 (merge_chains): Same.
12382 (regrename_analyze): Same.
12383 (regrename_do_replace): Same.
12384 (scan_rtx_reg): Same.
12385 (record_out_operands): Same.
12386 (build_def_use): Same.
12387 * regrename.h: Same.
12388 * reload.h: Same.
12389 * reload1.c (init_reload): Same.
12390 (maybe_fix_stack_asms): Same.
12391 (copy_reloads): Same.
12392 (count_pseudo): Same.
12393 (count_spilled_pseudo): Same.
12394 (find_reg): Same.
12395 (find_reload_regs): Same.
12396 (select_reload_regs): Same.
12397 (spill_hard_reg): Same.
12398 (fixup_eh_region_note): Same.
12399 (set_reload_reg): Same.
12400 (allocate_reload_reg): Same.
12401 (compute_reload_subreg_offset): Same.
12402 (reload_adjust_reg_for_icode): Same.
12403 (emit_input_reload_insns): Same.
12404 (emit_output_reload_insns): Same.
12405 (do_input_reload): Same.
12406 (inherit_piecemeal_p): Same.
12407 * rtl.h: Same.
12408 * sanopt.c (maybe_get_dominating_check): Same.
12409 (maybe_optimize_ubsan_ptr_ifn): Same.
12410 (can_remove_asan_check): Same.
12411 (maybe_optimize_asan_check_ifn): Same.
12412 (sanopt_optimize_walker): Same.
12413 * sched-deps.c (add_dependence_list): Same.
12414 (chain_to_prev_insn): Same.
12415 (add_insn_mem_dependence): Same.
12416 (create_insn_reg_set): Same.
12417 (maybe_extend_reg_info_p): Same.
12418 (sched_analyze_reg): Same.
12419 (sched_analyze_1): Same.
12420 (get_implicit_reg_pending_clobbers): Same.
12421 (chain_to_prev_insn_p): Same.
12422 (deps_analyze_insn): Same.
12423 (deps_start_bb): Same.
12424 (sched_free_deps): Same.
12425 (init_deps): Same.
12426 (init_deps_reg_last): Same.
12427 (free_deps): Same.
12428 * sched-ebb.c: Same.
12429 * sched-int.h: Same.
12430 * sched-rgn.c (add_branch_dependences): Same.
12431 (concat_insn_mem_list): Same.
12432 (deps_join): Same.
12433 (sched_rgn_compute_dependencies): Same.
12434 * sel-sched-ir.c (reset_target_context): Same.
12435 (copy_deps_context): Same.
12436 (init_id_from_df): Same.
12437 (has_dependence_p): Same.
12438 (change_loops_latches): Same.
12439 (bb_top_order_comparator): Same.
12440 (make_region_from_loop_preheader): Same.
12441 (sel_init_pipelining): Same.
12442 (get_loop_nest_for_rgn): Same.
12443 (make_regions_from_the_rest): Same.
12444 (sel_is_loop_preheader_p): Same.
12445 * sel-sched-ir.h (inner_loop_header_p): Same.
12446 (get_all_loop_exits): Same.
12447 * selftest.h: Same.
12448 * sese.c (sese_build_liveouts): Same.
12449 (sese_insert_phis_for_liveouts): Same.
12450 * sese.h (defined_in_sese_p): Same.
12451 * sreal.c (sreal::stream_out): Same.
12452 * sreal.h: Same.
12453 * streamer-hooks.h: Same.
12454 * target-globals.c (save_target_globals): Same.
12455 * target-globals.h: Same.
12456 * target.def: Same.
12457 * target.h: Same.
12458 * targhooks.c (default_has_ifunc_p): Same.
12459 (default_empty_mask_is_expensive): Same.
12460 (default_init_cost): Same.
12461 * targhooks.h: Same.
12462 * toplev.c: Same.
12463 * tree-affine.c (aff_combination_mult): Same.
12464 (aff_combination_expand): Same.
12465 (aff_combination_constant_multiple_p): Same.
12466 * tree-affine.h: Same.
12467 * tree-cfg.c (build_gimple_cfg): Same.
12468 (replace_loop_annotate_in_block): Same.
12469 (replace_uses_by): Same.
12470 (remove_bb): Same.
12471 (dump_cfg_stats): Same.
12472 (gimple_duplicate_sese_region): Same.
12473 (gimple_duplicate_sese_tail): Same.
12474 (move_block_to_fn): Same.
12475 (replace_block_vars_by_duplicates): Same.
12476 (move_sese_region_to_fn): Same.
12477 (print_loops_bb): Same.
12478 (print_loop): Same.
12479 (print_loops): Same.
12480 (debug): Same.
12481 (debug_loops): Same.
12482 * tree-cfg.h: Same.
12483 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12484 (chrec_fold_multiply_poly_poly): Same.
12485 (chrec_evaluate): Same.
12486 (chrec_component_in_loop_num): Same.
12487 (reset_evolution_in_loop): Same.
12488 (is_multivariate_chrec): Same.
12489 (chrec_contains_symbols): Same.
12490 (nb_vars_in_chrec): Same.
12491 (chrec_convert_1): Same.
12492 (chrec_convert_aggressive): Same.
12493 * tree-chrec.h: Same.
12494 * tree-core.h: Same.
12495 * tree-data-ref.c (dump_data_dependence_relation): Same.
12496 (canonicalize_base_object_address): Same.
12497 (data_ref_compare_tree): Same.
12498 (prune_runtime_alias_test_list): Same.
12499 (get_segment_min_max): Same.
12500 (create_intersect_range_checks): Same.
12501 (conflict_fn_no_dependence): Same.
12502 (object_address_invariant_in_loop_p): Same.
12503 (analyze_ziv_subscript): Same.
12504 (analyze_siv_subscript_cst_affine): Same.
12505 (analyze_miv_subscript): Same.
12506 (analyze_overlapping_iterations): Same.
12507 (build_classic_dist_vector_1): Same.
12508 (add_other_self_distances): Same.
12509 (same_access_functions): Same.
12510 (build_classic_dir_vector): Same.
12511 (subscript_dependence_tester_1): Same.
12512 (subscript_dependence_tester): Same.
12513 (access_functions_are_affine_or_constant_p): Same.
12514 (get_references_in_stmt): Same.
12515 (loop_nest_has_data_refs): Same.
12516 (graphite_find_data_references_in_stmt): Same.
12517 (find_data_references_in_bb): Same.
12518 (get_base_for_alignment): Same.
12519 (find_loop_nest_1): Same.
12520 (find_loop_nest): Same.
12521 * tree-data-ref.h (dr_alignment): Same.
12522 (ddr_dependence_level): Same.
12523 * tree-if-conv.c (fold_build_cond_expr): Same.
12524 (add_to_predicate_list): Same.
12525 (add_to_dst_predicate_list): Same.
12526 (phi_convertible_by_degenerating_args): Same.
12527 (idx_within_array_bound): Same.
12528 (all_preds_critical_p): Same.
12529 (pred_blocks_visited_p): Same.
12530 (predicate_bbs): Same.
12531 (build_region): Same.
12532 (if_convertible_loop_p_1): Same.
12533 (is_cond_scalar_reduction): Same.
12534 (predicate_scalar_phi): Same.
12535 (remove_conditions_and_labels): Same.
12536 (combine_blocks): Same.
12537 (version_loop_for_if_conversion): Same.
12538 (versionable_outer_loop_p): Same.
12539 (ifcvt_local_dce): Same.
12540 (tree_if_conversion): Same.
12541 (pass_if_conversion::gate): Same.
12542 * tree-if-conv.h: Same.
12543 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12544 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12545 (free_rdg): Same.
12546 (stmt_has_scalar_dependences_outside_loop): Same.
12547 (copy_loop_before): Same.
12548 (create_bb_after_loop): Same.
12549 (const_with_all_bytes_same): Same.
12550 (generate_memset_builtin): Same.
12551 (generate_memcpy_builtin): Same.
12552 (destroy_loop): Same.
12553 (build_rdg_partition_for_vertex): Same.
12554 (compute_access_range): Same.
12555 (data_ref_segment_size): Same.
12556 (latch_dominated_by_data_ref): Same.
12557 (compute_alias_check_pairs): Same.
12558 (fuse_memset_builtins): Same.
12559 (finalize_partitions): Same.
12560 (find_seed_stmts_for_distribution): Same.
12561 (prepare_perfect_loop_nest): Same.
12562 * tree-parloops.c (lambda_transform_legal_p): Same.
12563 (loop_parallel_p): Same.
12564 (reduc_stmt_res): Same.
12565 (add_field_for_name): Same.
12566 (create_call_for_reduction_1): Same.
12567 (replace_uses_in_bb_by): Same.
12568 (transform_to_exit_first_loop_alt): Same.
12569 (try_transform_to_exit_first_loop_alt): Same.
12570 (transform_to_exit_first_loop): Same.
12571 (num_phis): Same.
12572 (gen_parallel_loop): Same.
12573 (gather_scalar_reductions): Same.
12574 (get_omp_data_i_param): Same.
12575 (try_create_reduction_list): Same.
12576 (oacc_entry_exit_single_gang): Same.
12577 (parallelize_loops): Same.
12578 * tree-pass.h: Same.
12579 * tree-predcom.c (determine_offset): Same.
12580 (last_always_executed_block): Same.
12581 (split_data_refs_to_components): Same.
12582 (suitable_component_p): Same.
12583 (valid_initializer_p): Same.
12584 (find_looparound_phi): Same.
12585 (insert_looparound_copy): Same.
12586 (add_looparound_copies): Same.
12587 (determine_roots_comp): Same.
12588 (predcom_tmp_var): Same.
12589 (initialize_root_vars): Same.
12590 (initialize_root_vars_store_elim_1): Same.
12591 (initialize_root_vars_store_elim_2): Same.
12592 (finalize_eliminated_stores): Same.
12593 (initialize_root_vars_lm): Same.
12594 (remove_stmt): Same.
12595 (determine_unroll_factor): Same.
12596 (execute_pred_commoning_cbck): Same.
12597 (base_names_in_chain_on): Same.
12598 (combine_chains): Same.
12599 (pcom_stmt_dominates_stmt_p): Same.
12600 (try_combine_chains): Same.
12601 (prepare_initializers_chain_store_elim): Same.
12602 (prepare_initializers_chain): Same.
12603 (prepare_initializers): Same.
12604 (prepare_finalizers_chain): Same.
12605 (prepare_finalizers): Same.
12606 (insert_init_seqs): Same.
12607 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12608 (compute_overall_effect_of_inner_loop): Same.
12609 (add_to_evolution_1): Same.
12610 (add_to_evolution): Same.
12611 (follow_ssa_edge_binary): Same.
12612 (follow_ssa_edge_expr): Same.
12613 (backedge_phi_arg_p): Same.
12614 (follow_ssa_edge_in_condition_phi_branch): Same.
12615 (follow_ssa_edge_in_condition_phi): Same.
12616 (follow_ssa_edge_inner_loop_phi): Same.
12617 (follow_ssa_edge): Same.
12618 (analyze_evolution_in_loop): Same.
12619 (analyze_initial_condition): Same.
12620 (interpret_loop_phi): Same.
12621 (interpret_condition_phi): Same.
12622 (interpret_rhs_expr): Same.
12623 (interpret_expr): Same.
12624 (interpret_gimple_assign): Same.
12625 (analyze_scalar_evolution_1): Same.
12626 (analyze_scalar_evolution): Same.
12627 (analyze_scalar_evolution_for_address_of): Same.
12628 (get_instantiated_value_entry): Same.
12629 (loop_closed_phi_def): Same.
12630 (instantiate_scev_name): Same.
12631 (instantiate_scev_poly): Same.
12632 (instantiate_scev_binary): Same.
12633 (instantiate_scev_convert): Same.
12634 (instantiate_scev_not): Same.
12635 (instantiate_scev_r): Same.
12636 (instantiate_scev): Same.
12637 (resolve_mixers): Same.
12638 (initialize_scalar_evolutions_analyzer): Same.
12639 (scev_reset_htab): Same.
12640 (scev_reset): Same.
12641 (derive_simple_iv_with_niters): Same.
12642 (simple_iv_with_niters): Same.
12643 (expression_expensive_p): Same.
12644 (final_value_replacement_loop): Same.
12645 * tree-scalar-evolution.h (block_before_loop): Same.
12646 * tree-ssa-address.h: Same.
12647 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12648 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12649 (record_edge_info): Same.
12650 * tree-ssa-live.c (var_map_base_fini): Same.
12651 (remove_unused_locals): Same.
12652 * tree-ssa-live.h: Same.
12653 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12654 (pass_ch_vect::execute): Same.
12655 (pass_ch::process_loop_p): Same.
12656 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12657 (movement_possibility): Same.
12658 (outermost_invariant_loop): Same.
12659 (stmt_cost): Same.
12660 (determine_max_movement): Same.
12661 (invariantness_dom_walker::before_dom_children): Same.
12662 (move_computations): Same.
12663 (may_move_till): Same.
12664 (force_move_till_op): Same.
12665 (force_move_till): Same.
12666 (memref_free): Same.
12667 (record_mem_ref_loc): Same.
12668 (set_ref_stored_in_loop): Same.
12669 (mark_ref_stored): Same.
12670 (sort_bbs_in_loop_postorder_cmp): Same.
12671 (sort_locs_in_loop_postorder_cmp): Same.
12672 (analyze_memory_references): Same.
12673 (mem_refs_may_alias_p): Same.
12674 (find_ref_loc_in_loop_cmp): Same.
12675 (rewrite_mem_ref_loc::operator): Same.
12676 (first_mem_ref_loc_1::operator): Same.
12677 (sm_set_flag_if_changed::operator): Same.
12678 (execute_sm_if_changed_flag_set): Same.
12679 (execute_sm): Same.
12680 (hoist_memory_references): Same.
12681 (ref_always_accessed::operator): Same.
12682 (refs_independent_p): Same.
12683 (record_dep_loop): Same.
12684 (ref_indep_loop_p_1): Same.
12685 (ref_indep_loop_p): Same.
12686 (can_sm_ref_p): Same.
12687 (find_refs_for_sm): Same.
12688 (loop_suitable_for_sm): Same.
12689 (store_motion_loop): Same.
12690 (store_motion): Same.
12691 (fill_always_executed_in): Same.
12692 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12693 (estimated_unrolled_size): Same.
12694 (loop_edge_to_cancel): Same.
12695 (remove_exits_and_undefined_stmts): Same.
12696 (remove_redundant_iv_tests): Same.
12697 (unloop_loops): Same.
12698 (estimated_peeled_sequence_size): Same.
12699 (try_peel_loop): Same.
12700 (canonicalize_loop_induction_variables): Same.
12701 (canonicalize_induction_variables): Same.
12702 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12703 (name_info): Same.
12704 (stmt_after_inc_pos): Same.
12705 (contains_abnormal_ssa_name_p): Same.
12706 (niter_for_exit): Same.
12707 (find_bivs): Same.
12708 (mark_bivs): Same.
12709 (find_givs_in_bb): Same.
12710 (find_induction_variables): Same.
12711 (find_interesting_uses_cond): Same.
12712 (outermost_invariant_loop_for_expr): Same.
12713 (idx_find_step): Same.
12714 (add_candidate_1): Same.
12715 (add_iv_candidate_derived_from_uses): Same.
12716 (alloc_use_cost_map): Same.
12717 (prepare_decl_rtl): Same.
12718 (generic_predict_doloop_p): Same.
12719 (computation_cost): Same.
12720 (determine_common_wider_type): Same.
12721 (get_computation_aff_1): Same.
12722 (get_use_type): Same.
12723 (determine_group_iv_cost_address): Same.
12724 (iv_period): Same.
12725 (difference_cannot_overflow_p): Same.
12726 (may_eliminate_iv): Same.
12727 (determine_set_costs): Same.
12728 (cheaper_cost_pair): Same.
12729 (compare_cost_pair): Same.
12730 (iv_ca_cand_for_group): Same.
12731 (iv_ca_recount_cost): Same.
12732 (iv_ca_set_remove_invs): Same.
12733 (iv_ca_set_no_cp): Same.
12734 (iv_ca_set_add_invs): Same.
12735 (iv_ca_set_cp): Same.
12736 (iv_ca_add_group): Same.
12737 (iv_ca_cost): Same.
12738 (iv_ca_compare_deps): Same.
12739 (iv_ca_delta_reverse): Same.
12740 (iv_ca_delta_commit): Same.
12741 (iv_ca_cand_used_p): Same.
12742 (iv_ca_delta_free): Same.
12743 (iv_ca_new): Same.
12744 (iv_ca_free): Same.
12745 (iv_ca_dump): Same.
12746 (iv_ca_extend): Same.
12747 (iv_ca_narrow): Same.
12748 (iv_ca_prune): Same.
12749 (cheaper_cost_with_cand): Same.
12750 (iv_ca_replace): Same.
12751 (try_add_cand_for): Same.
12752 (get_initial_solution): Same.
12753 (try_improve_iv_set): Same.
12754 (find_optimal_iv_set_1): Same.
12755 (create_new_iv): Same.
12756 (rewrite_use_compare): Same.
12757 (remove_unused_ivs): Same.
12758 (determine_scaling_factor): Same.
12759 * tree-ssa-loop-ivopts.h: Same.
12760 * tree-ssa-loop-manip.c (create_iv): Same.
12761 (compute_live_loop_exits): Same.
12762 (add_exit_phi): Same.
12763 (add_exit_phis): Same.
12764 (find_uses_to_rename_use): Same.
12765 (find_uses_to_rename_def): Same.
12766 (find_uses_to_rename_in_loop): Same.
12767 (rewrite_into_loop_closed_ssa): Same.
12768 (check_loop_closed_ssa_bb): Same.
12769 (split_loop_exit_edge): Same.
12770 (ip_end_pos): Same.
12771 (ip_normal_pos): Same.
12772 (copy_phi_node_args): Same.
12773 (gimple_duplicate_loop_to_header_edge): Same.
12774 (can_unroll_loop_p): Same.
12775 (determine_exit_conditions): Same.
12776 (scale_dominated_blocks_in_loop): Same.
12777 (niter_for_unrolled_loop): Same.
12778 (tree_transform_and_unroll_loop): Same.
12779 (rewrite_all_phi_nodes_with_iv): Same.
12780 * tree-ssa-loop-manip.h: Same.
12781 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12782 (number_of_iterations_ne): Same.
12783 (assert_no_overflow_lt): Same.
12784 (assert_loop_rolls_lt): Same.
12785 (number_of_iterations_lt): Same.
12786 (adjust_cond_for_loop_until_wrap): Same.
12787 (tree_simplify_using_condition): Same.
12788 (simplify_using_initial_conditions): Same.
12789 (simplify_using_outer_evolutions): Same.
12790 (loop_only_exit_p): Same.
12791 (ssa_defined_by_minus_one_stmt_p): Same.
12792 (number_of_iterations_popcount): Same.
12793 (number_of_iterations_exit): Same.
12794 (find_loop_niter): Same.
12795 (finite_loop_p): Same.
12796 (chain_of_csts_start): Same.
12797 (get_val_for): Same.
12798 (loop_niter_by_eval): Same.
12799 (derive_constant_upper_bound_ops): Same.
12800 (do_warn_aggressive_loop_optimizations): Same.
12801 (record_estimate): Same.
12802 (get_cst_init_from_scev): Same.
12803 (record_nonwrapping_iv): Same.
12804 (idx_infer_loop_bounds): Same.
12805 (infer_loop_bounds_from_ref): Same.
12806 (infer_loop_bounds_from_array): Same.
12807 (infer_loop_bounds_from_pointer_arith): Same.
12808 (infer_loop_bounds_from_signedness): Same.
12809 (bound_index): Same.
12810 (discover_iteration_bound_by_body_walk): Same.
12811 (maybe_lower_iteration_bound): Same.
12812 (estimate_numbers_of_iterations): Same.
12813 (estimated_loop_iterations): Same.
12814 (estimated_loop_iterations_int): Same.
12815 (max_loop_iterations): Same.
12816 (max_loop_iterations_int): Same.
12817 (likely_max_loop_iterations): Same.
12818 (likely_max_loop_iterations_int): Same.
12819 (estimated_stmt_executions_int): Same.
12820 (max_stmt_executions): Same.
12821 (likely_max_stmt_executions): Same.
12822 (estimated_stmt_executions): Same.
12823 (stmt_dominates_stmt_p): Same.
12824 (nowrap_type_p): Same.
12825 (loop_exits_before_overflow): Same.
12826 (scev_var_range_cant_overflow): Same.
12827 (scev_probably_wraps_p): Same.
12828 (free_numbers_of_iterations_estimates): Same.
12829 * tree-ssa-loop-niter.h: Same.
12830 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12831 (idx_analyze_ref): Same.
12832 (analyze_ref): Same.
12833 (gather_memory_references_ref): Same.
12834 (mark_nontemporal_store): Same.
12835 (emit_mfence_after_loop): Same.
12836 (may_use_storent_in_loop_p): Same.
12837 (mark_nontemporal_stores): Same.
12838 (should_unroll_loop_p): Same.
12839 (volume_of_dist_vector): Same.
12840 (add_subscript_strides): Same.
12841 (self_reuse_distance): Same.
12842 (insn_to_prefetch_ratio_too_small_p): Same.
12843 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12844 (patch_loop_exit): Same.
12845 (find_or_create_guard_phi): Same.
12846 (easy_exit_values): Same.
12847 (connect_loop_phis): Same.
12848 (connect_loops): Same.
12849 (compute_new_first_bound): Same.
12850 (split_loop): Same.
12851 (tree_ssa_split_loops): Same.
12852 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12853 (is_maybe_undefined): Same.
12854 (tree_may_unswitch_on): Same.
12855 (simplify_using_entry_checks): Same.
12856 (tree_unswitch_single_loop): Same.
12857 (tree_unswitch_loop): Same.
12858 (tree_unswitch_outer_loop): Same.
12859 (empty_bb_without_guard_p): Same.
12860 (used_outside_loop_p): Same.
12861 (get_vop_from_header): Same.
12862 (hoist_guard): Same.
12863 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12864 (get_lsm_tmp_name): Same.
12865 * tree-ssa-loop.h: Same.
12866 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12867 (build_and_add_sum): Same.
12868 (no_side_effect_bb): Same.
12869 (get_ops): Same.
12870 (linearize_expr): Same.
12871 (should_break_up_subtract): Same.
12872 (linearize_expr_tree): Same.
12873 * tree-ssa-scopedtables.c: Same.
12874 * tree-ssa-scopedtables.h: Same.
12875 * tree-ssa-structalias.c (condense_visit): Same.
12876 (label_visit): Same.
12877 (dump_pred_graph): Same.
12878 (perform_var_substitution): Same.
12879 (move_complex_constraints): Same.
12880 (remove_preds_and_fake_succs): Same.
12881 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12882 (determine_bb_domination_status): Same.
12883 (duplicate_thread_path): Same.
12884 (thread_through_all_blocks): Same.
12885 * tree-ssa-threadupdate.h: Same.
12886 * tree-streamer-in.c (streamer_read_string_cst): Same.
12887 (input_identifier): Same.
12888 (unpack_ts_type_common_value_fields): Same.
12889 (unpack_ts_block_value_fields): Same.
12890 (unpack_ts_translation_unit_decl_value_fields): Same.
12891 (unpack_ts_omp_clause_value_fields): Same.
12892 (streamer_read_tree_bitfields): Same.
12893 (streamer_alloc_tree): Same.
12894 (lto_input_ts_common_tree_pointers): Same.
12895 (lto_input_ts_vector_tree_pointers): Same.
12896 (lto_input_ts_poly_tree_pointers): Same.
12897 (lto_input_ts_complex_tree_pointers): Same.
12898 (lto_input_ts_decl_minimal_tree_pointers): Same.
12899 (lto_input_ts_decl_common_tree_pointers): Same.
12900 (lto_input_ts_decl_non_common_tree_pointers): Same.
12901 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12902 (lto_input_ts_field_decl_tree_pointers): Same.
12903 (lto_input_ts_function_decl_tree_pointers): Same.
12904 (lto_input_ts_type_common_tree_pointers): Same.
12905 (lto_input_ts_type_non_common_tree_pointers): Same.
12906 (lto_input_ts_list_tree_pointers): Same.
12907 (lto_input_ts_vec_tree_pointers): Same.
12908 (lto_input_ts_exp_tree_pointers): Same.
12909 (lto_input_ts_block_tree_pointers): Same.
12910 (lto_input_ts_binfo_tree_pointers): Same.
12911 (lto_input_ts_constructor_tree_pointers): Same.
12912 (lto_input_ts_omp_clause_tree_pointers): Same.
12913 (streamer_read_tree_body): Same.
12914 * tree-streamer.h: Same.
12915 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12916 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12917 (vect_analyze_possibly_independent_ddr): Same.
12918 (vect_analyze_data_ref_dependence): Same.
12919 (vect_compute_data_ref_alignment): Same.
12920 (vect_enhance_data_refs_alignment): Same.
12921 (vect_analyze_data_ref_access): Same.
12922 (vect_check_gather_scatter): Same.
12923 (vect_find_stmt_data_reference): Same.
12924 (vect_create_addr_base_for_vector_ref): Same.
12925 (vect_setup_realignment): Same.
12926 (vect_supportable_dr_alignment): Same.
12927 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12928 (adjust_phi_and_debug_stmts): Same.
12929 (vect_set_loop_mask): Same.
12930 (add_preheader_seq): Same.
12931 (vect_maybe_permute_loop_masks): Same.
12932 (vect_set_loop_masks_directly): Same.
12933 (vect_set_loop_condition_masked): Same.
12934 (vect_set_loop_condition_unmasked): Same.
12935 (slpeel_duplicate_current_defs_from_edges): Same.
12936 (slpeel_add_loop_guard): Same.
12937 (slpeel_can_duplicate_loop_p): Same.
12938 (create_lcssa_for_virtual_phi): Same.
12939 (iv_phi_p): Same.
12940 (vect_update_ivs_after_vectorizer): Same.
12941 (vect_gen_vector_loop_niters_mult_vf): Same.
12942 (slpeel_update_phi_nodes_for_loops): Same.
12943 (slpeel_update_phi_nodes_for_guard1): Same.
12944 (find_guard_arg): Same.
12945 (slpeel_update_phi_nodes_for_guard2): Same.
12946 (slpeel_update_phi_nodes_for_lcssa): Same.
12947 (vect_do_peeling): Same.
12948 (vect_create_cond_for_alias_checks): Same.
12949 (vect_loop_versioning): Same.
12950 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12951 (vect_inner_phi_in_double_reduction_p): Same.
12952 (vect_analyze_scalar_cycles_1): Same.
12953 (vect_fixup_scalar_cycles_with_patterns): Same.
12954 (vect_get_loop_niters): Same.
12955 (bb_in_loop_p): Same.
12956 (vect_get_max_nscalars_per_iter): Same.
12957 (vect_verify_full_masking): Same.
12958 (vect_compute_single_scalar_iteration_cost): Same.
12959 (vect_analyze_loop_form_1): Same.
12960 (vect_analyze_loop_form): Same.
12961 (vect_active_double_reduction_p): Same.
12962 (vect_analyze_loop_operations): Same.
12963 (neutral_op_for_slp_reduction): Same.
12964 (vect_is_simple_reduction): Same.
12965 (vect_model_reduction_cost): Same.
12966 (get_initial_def_for_reduction): Same.
12967 (get_initial_defs_for_reduction): Same.
12968 (vect_create_epilog_for_reduction): Same.
12969 (vectorize_fold_left_reduction): Same.
12970 (vectorizable_reduction): Same.
12971 (vectorizable_induction): Same.
12972 (vectorizable_live_operation): Same.
12973 (loop_niters_no_overflow): Same.
12974 (vect_get_loop_mask): Same.
12975 (vect_transform_loop_stmt): Same.
12976 (vect_transform_loop): Same.
12977 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12978 (vect_determine_precisions): Same.
12979 (vect_pattern_recog_1): Same.
12980 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12981 * tree-vect-stmts.c (stmt_vectype): Same.
12982 (process_use): Same.
12983 (vect_init_vector_1): Same.
12984 (vect_truncate_gather_scatter_offset): Same.
12985 (get_group_load_store_type): Same.
12986 (vect_build_gather_load_calls): Same.
12987 (vect_get_strided_load_store_ops): Same.
12988 (vectorizable_simd_clone_call): Same.
12989 (vectorizable_store): Same.
12990 (permute_vec_elements): Same.
12991 (vectorizable_load): Same.
12992 (vect_transform_stmt): Same.
12993 (supportable_widening_operation): Same.
12994 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12995 (vec_info::free_stmt_vec_info): Same.
12996 (vect_free_loop_info_assumptions): Same.
12997 (vect_loop_vectorized_call): Same.
12998 (set_uid_loop_bbs): Same.
12999 (vectorize_loops): Same.
13000 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13001 * tree.c (add_tree_to_fld_list): Same.
13002 (fld_type_variant_equal_p): Same.
13003 (fld_decl_context): Same.
13004 (fld_incomplete_type_of): Same.
13005 (free_lang_data_in_binfo): Same.
13006 (need_assembler_name_p): Same.
13007 (find_decls_types_r): Same.
13008 (get_eh_types_for_runtime): Same.
13009 (find_decls_types_in_eh_region): Same.
13010 (find_decls_types_in_node): Same.
13011 (assign_assembler_name_if_needed): Same.
13012 * value-prof.c (stream_out_histogram_value): Same.
13013 * value-prof.h: Same.
13014 * var-tracking.c (use_narrower_mode): Same.
13015 (prepare_call_arguments): Same.
13016 (vt_expand_loc_callback): Same.
13017 (resolve_expansions_pending_recursion): Same.
13018 (vt_expand_loc): Same.
13019 * varasm.c (const_hash_1): Same.
13020 (compare_constant): Same.
13021 (tree_output_constant_def): Same.
13022 (simplify_subtraction): Same.
13023 (get_pool_constant): Same.
13024 (output_constant_pool_2): Same.
13025 (output_constant_pool_1): Same.
13026 (mark_constants_in_pattern): Same.
13027 (mark_constant_pool): Same.
13028 (get_section_anchor): Same.
13029 * vr-values.c (compare_range_with_value): Same.
13030 (vr_values::extract_range_from_phi_node): Same.
13031 * vr-values.h: Same.
13032 * web.c (unionfind_union): Same.
13033 * wide-int.h: Same.
13034
13035 2019-07-09 Martin Sebor <msebor@redhat.com>
13036
13037 PR c++/61339
13038 * align.h: Change class-key from class to struct and vice versa
13039 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13040 * alloc-pool.h: Same.
13041 * asan.c (shadow_mem_size): Same.
13042 * auto-profile.c: Same.
13043 * basic-block.h: Same.
13044 * bitmap.h: Same.
13045 * cfgexpand.c (set_rtl): Same.
13046 (expand_one_stack_var_at): Same.
13047 * cfghooks.h: Same.
13048 * cfgloop.h: Same.
13049 * cgraph.h: Same.
13050 * config/i386/i386.h: Same.
13051 * df-problems.c (df_print_bb_index): Same.
13052 * df-scan.c: Same.
13053 * df.h (df_single_use): Same.
13054 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13055 (layout::annotation_line_showed_range_p): Same.
13056 (get_printed_columns): Same.
13057 (correction::ensure_terminated): Same.
13058 (line_corrections::~line_corrections): Same.
13059 * dojump.h: Same.
13060 * dse.c: Same.
13061 * dump-context.h: Same.
13062 * dumpfile.h: Same.
13063 * dwarf2out.c: Same.
13064 * edit-context.c: Same.
13065 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13066 * flags.h: Same.
13067 * function.c (assign_stack_local): Same.
13068 * function.h: Same.
13069 * gcc.c: Same.
13070 * gcov.c (block_info::block_info): Same.
13071 * genattrtab.c: Same.
13072 * genextract.c: Same.
13073 * genmatch.c (comparison_code_p): Same.
13074 (id_base::id_base): Same.
13075 (decision_tree::print): Same.
13076 * genoutput.c: Same.
13077 * genpreds.c (write_one_predicate_function): Same.
13078 * genrecog.c (validate_pattern): Same.
13079 (find_operand_positions): Same.
13080 (optimize_subroutine_group): Same.
13081 (merge_pattern_transition::merge_pattern_transition): Same.
13082 (merge_pattern_info::merge_pattern_info): Same.
13083 (merge_state_result::merge_state_result): Same.
13084 (merge_into_state): Same.
13085 * gensupport.c: Same.
13086 * gensupport.h: Same.
13087 * ggc-common.c (init_ggc_heuristics): Same.
13088 * ggc-tests.c (test_union): Same.
13089 * gimple-loop-interchange.cc (dump_induction): Same.
13090 * gimple-loop-versioning.cc: Same.
13091 * gimple-match.h (gimple_match_cond::any_else): Same.
13092 * gimple-ssa-backprop.c: Same.
13093 * gimple-ssa-sprintf.c: Same.
13094 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13095 Same.
13096 (store_immediate_info::store_immediate_info): Same.
13097 (merged_store_group::apply_stores): Same.
13098 (get_location_for_stmts): Same.
13099 * gimple-ssa-strength-reduction.c: Same.
13100 * gimple-ssa-warn-alloca.c: Same.
13101 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13102 * godump.c (go_type_decl): Same.
13103 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13104 * hash-map.h: Same.
13105 * hash-set-tests.c (test_set_of_strings): Same.
13106 * hsa-brig.c: Same.
13107 * hsa-common.h: Same.
13108 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13109 * input.c (assert_loceq): Same.
13110 * input.h: Same.
13111 * ipa-cp.c: Same.
13112 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13113 * ipa-fnsummary.h: Same.
13114 * ipa-inline.h: Same.
13115 * ipa-prop.h: Same.
13116 * ipa-split.c (visit_bb): Same.
13117 * ira-int.h (minmax_set_iter_next): Same.
13118 * loop-invariant.c: Same.
13119 * loop-iv.c: Same.
13120 * lra-eliminations.c: Same.
13121 * lra-int.h: Same.
13122 * lra-lives.c (mark_regno_dead): Same.
13123 * lra-remat.c: Same.
13124 * lra-spills.c: Same.
13125 * lto-streamer.h: Same.
13126 * mem-stats.h: Same.
13127 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13128 * omp-low.c (omp_clause_aligned_alignment): Same.
13129 * optabs-query.h (get_vcond_eq_icode): Same.
13130 * optabs.h: Same.
13131 * opts.c (wrap_help): Same.
13132 * poly-int.h: Same.
13133 * predict.c (predict_paths_leading_to_edge): Same.
13134 * pretty-print.h: Same.
13135 * profile-count.h: Same.
13136 * read-md.h: Same.
13137 * read-rtl-function.c: Same.
13138 * ree.c: Same.
13139 * reginfo.c: Same.
13140 * regrename.c: Same.
13141 * regrename.h: Same.
13142 * reload.h: Same.
13143 * rtl-iter.h: Same.
13144 * rtl.h (costs_add_n_insns): Same.
13145 * sanopt.c: Same.
13146 * sched-int.h: Same.
13147 * sel-sched-ir.h: Same.
13148 * selftest.h: Same.
13149 * sese.h (vec_find): Same.
13150 * stmt.c: Same.
13151 * target-globals.h: Same.
13152 * tree-affine.c (aff_combination_find_elt): Same.
13153 * tree-affine.h: Same.
13154 * tree-data-ref.h: Same.
13155 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13156 * tree-predcom.c: Same.
13157 * tree-scalar-evolution.c (find_var_scev_info): Same.
13158 * tree-ssa-alias.h: Same.
13159 * tree-ssa-ccp.c: Same.
13160 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13161 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13162 (rewrite_mem_refs): Same.
13163 (execute_sm_if_changed): Same.
13164 (hoist_memory_references): Same.
13165 * tree-ssa-loop-ivopts.c (operator<=): Same.
13166 * tree-ssa-loop.h: Same.
13167 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13168 * tree-ssa-structalias.c: Same.
13169 * tree-switch-conversion.h (cluster::cluster): Same.
13170 (simple_cluster::simple_cluster): Same.
13171 * tree-vect-patterns.c (type_conversion_p): Same.
13172 * tree-vectorizer.c (dump_stmt_cost): Same.
13173 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13174 * tree.c (protected_set_expr_location): Same.
13175 * tree.h (desired_pro_or_demotion_p): Same.
13176 (fndecl_built_in_p): Same.
13177 * unique-ptr-tests.cc: Same.
13178 * var-tracking.c (delete_variable_part): Same.
13179 * varasm.c (assemble_real): Same.
13180 (tree_output_constant_def): Same.
13181 * vec.c: Same.
13182 * wide-int-bitmask.h: Same.
13183 * wide-int.h (decompose): Same.
13184
13185 2019-07-09 Richard Biener <rguenther@suse.de>
13186
13187 PR tree-optimization/91114
13188 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13189 find a vector type isn't fatal.
13190
13191 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13192
13193 * config/aarch64/aarch64-simd.md
13194 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13195 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13196 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13197 (*aarch64_crypto_aese_fused,
13198 *aarch64_crypto_aesd_fused): Update to new definition.
13199 * config/aarch64/aarch64.c
13200 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13201
13202 2019-07-09 Richard Biener <rguenther@suse.de>
13203
13204 * gimple-match.h (gimple_match_op::resimplify): New.
13205 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13206 gimple_resimplify4, gimple_resimplify5): Remove.
13207 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13208 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13209 Make static.
13210 (gimple_match_op::resimplify): New.
13211 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13212 according to availability. Use gimple_match_op::resimplify.
13213
13214 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13215
13216 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13217
13218 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13219
13220 * config/arm/crypto.md:
13221 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13222 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13223 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13224 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13225 * config/arm/arm.c
13226 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13227 * config/arm/aarch-common-protos.h
13228 (aarch_crypto_can_dual_issue): Remove.
13229 * config/arm/aarch-common.c
13230 (aarch_crypto_can_dual_issue): Likewise.
13231 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13232 * config/arm/cortex-a53.md: Likewise.
13233 * config/arm/cortex-a57.md: Likewise.
13234 * config/arm/iterators.md:
13235 (CRYPTO_BINARY): Redefine.
13236 (CRYPTO_UNARY): Removed.
13237 (CRYPTO_AES, CRYPTO_AESMC): New.
13238
13239 2019-07-09 Richard Biener <rguenther@suse.de>
13240
13241 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13242 (vn_reference_lookup_3): If the main ref has no access path recorded
13243 but orig_ref has use it to do access-path based disambiguation.
13244 (vn_reference_lookup_pieces): Adjust.
13245 (vn_reference_lookup): Pass down original ref if we valueized.
13246
13247 2019-07-09 Martin Liska <mliska@suse.cz>
13248
13249 * doc/extend.texi: Document influence on loop
13250 optimizers.
13251
13252 2019-07-09 Martin Liska <mliska@suse.cz>
13253
13254 * lto-compress.c (lto_normalized_zstd_level): Do not use
13255 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13256 of libzstd. One can use 0 as a default compression level.
13257
13258 2019-07-09 Martin Liska <mliska@suse.cz>
13259
13260 * doc/invoke.texi: Add link from -fprofile-dir option.
13261 Use better wording for 'gcno filename'.
13262
13263 2019-07-08 Martin Sebor <msebor@redhat.com>
13264
13265 PR middle-end/71924
13266 PR middle-end/90549
13267 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13268 comment.
13269 (args_loc_t): New type.
13270 (args_loc_t, locmap_t): same.
13271 (diag_returned_locals): New function.
13272 (is_addr_local): Same.
13273 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13274 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13275 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13276
13277 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13278
13279 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13280 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13281 and casts in offset when different, both through gimple stmts
13282 and through trees. Rewritten using loops to minimize code duplication
13283 for each operand.
13284
13285 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13286
13287 * emit-rtl.c (set_insn_locations): New function moved from...
13288 * function.c (set_insn_locations): ...here.
13289 * ira-emit.c (emit_moves): Propagate location of the first instruction
13290 to the inserted move instructions.
13291 * reg-stack.c (compensate_edge): Set the location if the sequence is
13292 inserted on the edge.
13293 * rtl.h (set_insn_locations): Declare.
13294
13295 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13296
13297 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13298 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13299 .machine string.
13300
13301 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13302
13303 PR rtl-optimization/88233
13304 * common.opt (fsplit-wide-types-early): New option.
13305 * common/config/rs6000/rs6000-common.c
13306 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13307 OPT_LEVELS_ALL.
13308 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13309 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13310 flag_split_wide_types_early.
13311 (pass_data_lower_subreg3): New.
13312 (pass_lower_subreg3): New.
13313 (make_pass_lower_subreg3): New.
13314 * passes.def (pass_lower_subreg2): Move after the loop passes.
13315 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13316 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13317 the pass pipeline; its previous place is taken by ...
13318 (make_pass_lower_subreg3): ... this.
13319
13320 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13321
13322 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13323 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13324
13325 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13326
13327 * config/s390/constraints.md: Add new jsc constraint.
13328 * config/s390/predicates.md: New predicates.
13329 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13330 * config/s390/s390.c (s390_valid_shift_count): New function.
13331 (print_shift_count_operand): Use s390_valid_shift_count.
13332 (print_operand): Likewise.
13333 * config/s390/s390.md: Use new predicate.
13334 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13335 * config/s390/vector.md: Use new predicate.
13336
13337 2019-07-08 Andrew Waterman <andrew@sifive.com>
13338 Jim Wilson <jimw@sifive.com>
13339
13340 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13341 bitsize instead of BITS_PER_WORD.
13342
13343 2019-07-08 Martin Liska <mliska@suse.cz>
13344
13345 * collect2.c (defined): Revert to before r254460.
13346 (scan_prog_file): Revert to before r254460.
13347
13348 2019-07-08 Richard Biener <rguenther@suse.de>
13349
13350 PR tree-optimization/83518
13351 * tree-ssa-sccvn.c: Include splay-tree.h.
13352 (struct pd_range, struct pd_data): New.
13353 (struct vn_walk_cb_data): Add data to track partial definitions.
13354 (vn_walk_cb_data::~vn_walk_cb_data): New.
13355 (vn_walk_cb_data::push_partial_def): New.
13356 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13357 (vn_reference_lookup_2): When partial defs are registered give up.
13358 (vn_reference_lookup_3): Track partial defs for memset and
13359 constructor zeroing and for defs from constants.
13360
13361 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13362
13363 * doc/install.texi (bootstrap-Og): Document.
13364
13365 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13366
13367 * config/riscv/pic.md (*local_pic_load_s<mode>)
13368 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13369 referenced by <mode>, giving...
13370 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13371 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13372 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13373 use <X:MODE> for the mode attribute.
13374
13375 2019-07-07 Jeff Law <law@redhat.com>
13376
13377 PR tree-optimization/91090
13378 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13379 in handling of ranges to simplify switch statements.
13380
13381 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13382
13383 * config/darwin.c (darwin_override_options): Make a final check on PIC
13384 options.
13385
13386 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13387
13388 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13389 on for kernel code.
13390
13391 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13392
13393 PR target/91068
13394 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13395 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13396 instead of matching them to "l" output operands.
13397
13398 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13399
13400 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13401 and check whether addr.reg is nonnull before using it.
13402
13403 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13404
13405 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13406 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13407 variable(s). For conditional lastprivate look through outer
13408 GIMPLE_OMP_SCAN context.
13409 (lower_omp_1): For conditional lastprivate look through outer
13410 GIMPLE_OMP_SCAN context.
13411
13412 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13413 member to combined_into_simd_safelen1.
13414 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13415 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13416 clauses if ctx->combined_into_simd_safelen1 put statements after the
13417 predicate conditionalized block rather than into it.
13418
13419 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13420
13421 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13422 operand 1.
13423 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13424 Make the choice of <mode> explicit, giving...
13425 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13426
13427 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13428
13429 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13430 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13431 of .md attributes.
13432 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13433 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13434 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13435 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13436 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13437 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13438 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13439 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13440 (*avx512f_scatterdi<mode>): Likewise.
13441 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13442
13443 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13444
13445 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13446 specify the mode iterator referenced by <mode>, giving...
13447 (*push1_h8300hs_<QHI:mode>): ...this.
13448
13449 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13450
13451 * config/gcn/gcn-valu.md
13452 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13453 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13454 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13455 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13456 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13457 but using the _exec comparison patterns.
13458 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13459 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13460 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13461 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13462 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13463 but using the _exec comparison patterns.
13464
13465 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13466
13467 * config/arm/sync.md
13468 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13469 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13470 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13471 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13472 <SIDI:cas_cmp_str>.
13473
13474 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13475
13476 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13477 (maybe_lookup_ctx): Add forward declaration.
13478 (omp_find_scan): Likewise. Walk into body of simd if composited
13479 with worksharing loop.
13480 (scan_omp_simd_scan): New function.
13481 (scan_omp_1_stmt): Call it.
13482 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13483 ctx->for_simd_scan_phase.
13484 (lower_rec_input_clauses): Do much less work for inscan reductions
13485 in ctx->for_simd_scan_phase is_simd regions.
13486 (lower_omp_scan): Set is_simd also on simd constructs composited
13487 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13488 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13489 emit their body after in simd constructs composited with worksharing
13490 loop.
13491 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13492
13493 * omp-low.c (omp_find_scan): Make static.
13494 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13495 the second loop, var2 represents the first partial sum and so needs
13496 to go before rprivb[ivar].
13497
13498 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13499
13500 * config/rs6000/rs6000-logue.c: Remove unused code.
13501
13502 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13503
13504 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13505
13506 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13507
13508 PR target/90712
13509 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13510 check with a frame laid out check.
13511
13512 2019-07-05 Richard Biener <rguenther@suse.de>
13513
13514 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13515 when comparing against a store with possibly the same value.
13516
13517 2019-07-05 Richard Biener <rguenther@suse.de>
13518
13519 PR tree-optimization/91091
13520 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13521 (walk_non_aliased_vuses): Likewise.
13522 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13523 (get_continuation_for_phi): New tbaa_p parameter and pass
13524 it down.
13525 (walk_non_aliased_vuses): Likewise.
13526 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13527 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13528 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13529 Likewise.
13530 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13531 (adjust_offsets_for_equal_base_address): New function.
13532 (vn_reference_lookup_3): Use it to catch more base equivalences.
13533 Handle and pass down tbaa_p flag.
13534 (vn_reference_lookup_pieces): Adjust.
13535 (vn_reference_lookup): Remove alias-set altering, instead pass
13536 down false as tbaa_p.
13537
13538 2019-07-05 Richard Biener <rguenther@suse.de>
13539
13540 PR tree-optimization/91091
13541 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13542 accesses can happen with -fno-strict-aliasing.
13543
13544 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13545
13546 * tree-ssa-alias.c (alias_stats): Add
13547 nonoverlapping_component_refs_since_match_p_must_overlap.
13548 (dump_alias_stats): Print it.
13549 (nonoverlapping_component_refs_since_match_p): Add early exit.
13550 (nonoverlapping_component_refs_p): Do not account early exit.
13551
13552 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13553
13554 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13555 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13556 (emit_eh_dispatch): Delete.
13557 (lower_catch): Emit the eh_dispatch manually and set the location of
13558 the first catch statement onto it.
13559 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13560 (lower_eh_dispatch): Propagate location.
13561 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13562 (eliminate_build): Likewise.
13563
13564 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13565
13566 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13567 phi nodes if possible.
13568 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13569 location info on the newly created statement.
13570 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13571 newly created increment if needed.
13572
13573 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13574
13575 PR middle-end/78884
13576 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13577 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13578 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13579 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13580 ctx->add_safelen1 is set.
13581
13582 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13583 GOMP_loop_start at the start of second worksharing loop in a scan.
13584 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13585 worksharing loop in a scan even if there are conditional lastprivates,
13586 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13587
13588 2019-07-04 Jan Hubicka <jh@suse.cz>
13589
13590 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13591 Fix check for match in the ref walk.
13592
13593 2019-07-04 Martin Liska <mliska@suse.cz>
13594
13595 * tree-ssa-loop-niter.c
13596 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13597 (estimate_numbers_of_iterations):
13598 Support __builtin_expect_with_probability for analysis
13599 of # of loop iterations.
13600
13601 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13602
13603 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13604 * except.c: Likewise.
13605 * expr.c (expand_expr_real_1): Reject it.
13606 * gimplify.c (gimplify_expr): Gimplify it, within
13607 TRY_FINALLY_EXPR.
13608 * tree-dump.c (dequeue_and_dump): Dump it.
13609 * tree-pretty-print.c (dump_generic_node): Likewise.
13610 * tree.c (block_may_fallthru): Handle it.
13611 * tree.def (EH_ELSE_EXPR): Introduce it.
13612 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13613 with GIMPLE_EH_ELSE as try/finally/else.
13614
13615 2019-07-04 Richard Biener <rguenther@suse.de>
13616
13617 PR ipa/91062
13618 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13619 parameter whether to disable GC collection.
13620 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13621 honor it.
13622 (execute_all_ipa_transforms): Likewise and pass it down.
13623 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13624 collection from applying IPA transforms.
13625 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13626 from applying IPA transforms.
13627
13628 2019-07-04 Richard Biener <rguenther@suse.de>
13629
13630 PR tree-optimization/90911
13631 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13632 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13633 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13634 scalar_loop_scaling.
13635 (vect_transform_loop): Scale scalar loop profile if needed.
13636 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13637 the loop copy from if-conversion adjust edge probabilities
13638 and scale the vectorized loop body profile, queue the scalar
13639 profile for updating after peeling.
13640
13641 2019-07-04 Jan Hubicka <jh@suse.cz>
13642
13643 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13644 parameters; return early for must-alias.
13645 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13646 outer types match, try nonoverlapping_component_refs
13647 if must-alias is not obvious.
13648 (indirect_refs_may_alias_p): Likewise.
13649 (refs_may_alias_p_2): Likewise.
13650
13651 2019-07-04 Richard Biener <rguenther@suse.de>
13652
13653 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13654 argument.
13655 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13656 globals into...
13657 (struct vn_walk_cb_data): New callback data struct.
13658 (vn_reference_lookup_2): Adjust.
13659 (vn_reference_lookup_3): Likewise.
13660 (vn_reference_lookup_pieces): Likewise.
13661 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13662 (visit_reference_op_load): Adjust.
13663
13664 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13665
13666 PR tree-optimization/91063
13667 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13668 stmt from stmts sequence before calling vect_init_vector_1.
13669 Formatting fix.
13670
13671 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13672
13673 PR target/88833
13674 * fwprop.c (reg_single_def_p): New function.
13675 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13676 (forward_propagate_into): New parameter reg_prop_only
13677 with default value false.
13678 Propagate def's src into loop only if SET_SRC and SET_DEST
13679 of def_set have single definitions.
13680 Likewise if reg_prop_only is set to true.
13681 (fwprop): New param fwprop_addr_p.
13682 Integrate fwprop_addr into fwprop.
13683 (fwprop_addr): Remove.
13684 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13685 to true.
13686 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13687 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13688 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13689
13690 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13691
13692 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13693 in worksharing loop scans.
13694
13695 PR tree-optimization/91074
13696 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13697 temporary.
13698
13699 PR rtl-optimization/90756
13700 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13701 for VECTOR_TYPE_P.
13702
13703 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13704
13705 * config/aarch64/aarch64.md: Remove redundant constraints from
13706 define_expand but keep some patterns untouched if they are
13707 specially selected by TARGET_SECONDARY_RELOAD hook.
13708 * config/aarch64/aarch64-sve.md: Likewise.
13709 * config/aarch64/atomics.md: Remove redundant constraints from
13710 define_expand.
13711 * config/aarch64/aarch64-simd.md: Likewise.
13712
13713 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13714
13715 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13716 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13717 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13718 clauses.
13719 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13720 DARWIN_NOPIE_SPEC.
13721
13722 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13723
13724 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13725 (STARTFILE_SPEC): Split crt3 into a separate spec.
13726 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13727 (DARWIN_CRT2_SPEC): New.
13728 (DARWIN_CRT3_SPEC): New.
13729 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13730 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13731 (DARWIN_CRT3_SPEC): New.
13732
13733 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13734
13735 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13736 Change the RTL attribute "length" from "4" to "*" to allow the
13737 length attribute to be adjusted automatically for prefixed load,
13738 store, and add immediate instructions.
13739 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13740 Likewise.
13741 (extendsi<mode>2, EXTSI iterator): Likewise.
13742 (movsi_internal1): Likewise.
13743 (movsi_from_sf): Likewise.
13744 (movdi_from_sf_zero_ext): Likewise.
13745 (mov<mode>_internal): Likewise.
13746 (movcc_internal1, QHI iterator): Likewise.
13747 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13748 (movsf_from_si): Likewise.
13749 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13750 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13751 (mov<mode>, FMOVE128 iterator): Likewise.
13752 (movdi_internal64): Likewise.
13753 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13754 Likewise.
13755 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13756 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13757 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13758 (vsx_splat_v4sf): Likewise.
13759
13760 2019-07-03 Mark Wielaard <mark@klomp.org>
13761
13762 PR debug/90981
13763 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13764 DW_AT_addr_base if there is actually a .debug_addr section with
13765 addresses.
13766 (output_addr_table): Add DWARF5 table header generation here after
13767 checking there are actually any addresses from...
13768 (dwarf2out_finish): ...here.
13769
13770 2019-07-03 Richard Biener <rguenther@suse.de>
13771
13772 PR middle-end/91069
13773 * match.pd (vec_perm -> bit_insert): Fix element read from
13774 first vector.
13775
13776 2019-07-03 Martin Liska <mliska@suse.cz>
13777
13778 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13779 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13780 condition.
13781 * generic-match-head.c: Include dbgcnt.h.
13782 * gimple-match-head.c: Likewise.
13783
13784 2019-07-03 Martin Liska <mliska@suse.cz>
13785
13786 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13787 (GCOV_COUNTER_V_TOPN): New.
13788 (GCOV_COUNTER_V_INDIR): Use _topn.
13789 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13790 (GCOV_TOPN_VALUES): New.
13791 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13792 (GCOV_TOPN_VALUES_COUNTERS): New.
13793 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13794 * tree-profile.c:
13795 (gimple_init_gcov_profiler): Rename variables from one_value
13796 to topn_values.
13797 (gimple_gen_one_value_profiler): Remove.
13798 (gimple_gen_topn_values_profiler): New function.
13799 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13800 names instead of SINGLE_VALUE.
13801 (stream_out_histogram_value): Likewise.
13802 (stream_in_histogram_value): Likewise.
13803 (get_most_common_single_value): Likewise.
13804 (gimple_divmod_fixed_value_transform): Likewise.
13805 (gimple_stringops_transform): Likewise.
13806 (gimple_divmod_values_to_profile): Likewise.
13807 (gimple_stringops_values_to_profile): Likewise.
13808 (gimple_find_values_to_profile): Likewise.
13809 * value-prof.h (enum hist_type): Rename to TOPN.
13810 (gimple_gen_one_value_profiler): Remove.
13811 (gimple_gen_topn_values_profiler): New.
13812
13813 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13814
13815 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13816 if it has the DW_AT_data_member_location attribute.
13817
13818 2019-07-03 Richard Biener <rguenther@suse.de>
13819
13820 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13821 dumping.
13822
13823 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13824
13825 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13826 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13827 (tlsdesc_small_sve_<mode>): Likewise.
13828
13829 2019-07-03 Martin Liska <mliska@suse.cz>
13830
13831 * Makefile.in: Define ZSTD_LIB.
13832 * common.opt: Adjust compression level
13833 to support also zstd levels.
13834 * config.in: Regenerate.
13835 * configure: Likewise.
13836 * configure.ac: Add --with-zstd and --with-zstd-include options
13837 and detect ZSTD.
13838 * doc/install.texi: Mention zstd dependency.
13839 * gcc.c: Print supported LTO compression algorithms.
13840 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13841 (lto_compression_zstd): Likewise.
13842 (lto_uncompression_zstd): Likewise.
13843 (lto_end_compression): Dispatch in between zlib and zstd.
13844 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13845 (lto_uncompression_zlib): Make it static.
13846 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13847 * lto-section-in.c (lto_get_section_data): Pass info
13848 about used compression.
13849 * lto-streamer-out.c: By default use zstd when possible.
13850 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13851 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13852
13853 2019-07-03 Martin Liska <mliska@suse.cz>
13854
13855 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13856 * lto-section-out.c (lto_destroy_simple_output_block): Never
13857 compress LTO_section_lto section.
13858 * lto-streamer-out.c (produce_asm): Do not set major_version
13859 and minor_version.
13860 (lto_output_toplevel_asms): Likewise.
13861 (produce_lto_section): New function.
13862 (lto_output): Call produce_lto_section.
13863 (lto_write_mode_table): Do not set major_version and
13864 minor_version.
13865 (produce_asm_for_decls): Likewise.
13866 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13867 type.
13868 (struct lto_header): Remove.
13869 (struct lto_section): New struct.
13870 (struct lto_simple_header): Do not inherit from lto_header.
13871 (struct lto_file_decl_data): Add lto_section_header field.
13872
13873 2019-07-03 Martin Liska <mliska@suse.cz>
13874
13875 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13876 dead assignemts.
13877 * reg-stack.c (check_asm_stack_operands): Likewise.
13878 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13879 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13880 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13881 force_expand_binop.
13882
13883 2019-07-03 Martin Liska <mliska@suse.cz>
13884
13885 PR tree-optimization/90892
13886 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13887 in string constants.
13888
13889 2019-07-03 Martin Liska <mliska@suse.cz>
13890
13891 PR middle-end/90899
13892 * multiple_target.c (create_dispatcher_calls): Add to comdat
13893 group only if set for ifunc.
13894
13895 2019-07-03 Martin Liska <mliska@suse.cz>
13896
13897 PR target/88056
13898 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13899 Define local_object_name in outer scope in order to handle
13900 use-after-scope issue.
13901
13902 2019-07-03 Martin Liska <mliska@suse.cz>
13903
13904 * common.opt: Add fprofile-note.
13905 * coverage.c (coverage_init): Append the option
13906 to bbg_file_name.
13907 * doc/invoke.texi: Document -fprofile-note.
13908
13909 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13910
13911 PR tree-optimization/91033
13912 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13913 vect_analyze_data_refs): Add bool * arguments.
13914 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13915 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13916 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13917 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13918 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13919 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13920 vect_analyze_data_refs caller.
13921
13922 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13923 clause.
13924 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13925 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13926 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13927 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13928 OMP_CLAUSE__SCANTEMP_ entry.
13929 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13930 * tree-pretty-print.c (dump_omp_clause): Likewise.
13931 * tree-nested.c (convert_nonlocal_omp_clauses,
13932 convert_local_omp_clauses): Likewise.
13933 * omp-general.h (struct omp_for_data): Add have_scantemp and
13934 have_nonctrl_scantemp members.
13935 * omp-general.c (omp_extract_for_data): Initialize them.
13936 * omp-low.c (struct omp_context): Add scan_exclusive member.
13937 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13938 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13939 ctx->scan_exclusive.
13940 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13941 of !ctx->scan_inclusive.
13942 (lower_rec_input_clauses): Simplify gimplification of dtors using
13943 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13944 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13945 loops. Don't add barrier for reduction_omp_orig_ref if
13946 ctx->scan_??xclusive.
13947 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13948 (lower_omp_scan): Use ctx->scan_exclusive instead
13949 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13950 reductions. Use new_vard != new_var instead of repeated
13951 omp_is_reference calls.
13952 (omp_find_scan, lower_omp_for_scan): New functions.
13953 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13954 inscan reductions.
13955 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13956 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13957 and fd->have_scantemp.
13958
13959 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13960 on worksharing loop propagate it as shared clause to containing
13961 combined parallel.
13962
13963 * omp-expand.c (expand_omp_for_static_nochunk,
13964 expand_omp_for_static_chunk): For nowait worksharing loop with
13965 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13966 at the end.
13967
13968 2019-07-02 qing zhao <qing.zhao@oracle.com>
13969
13970 PR preprocessor/90581
13971 * doc/cppopts.texi: Add document for -fmax-include-depth.
13972 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13973
13974 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13975
13976 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13977 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13978 (mmx_packssdw): Ditto.
13979 (mmx_punpckhbw): Ditto.
13980 (mmx_punpcklbw): Ditto.
13981 (mmx_punpckhwd): Ditto.
13982 (mmx_punpcklwd): Ditto.
13983 (mmx_punpckhdq): Ditto.
13984 (mmx_punpckldq): Ditto.
13985 (*vec_dupv4hi): Ditto.
13986 (*vec_dupv2si): Ditto.
13987 (mmx_pmovmskb): Ditto.
13988 * config/i386/sse.md (sse_cvtpi2ps): Use
13989 TARGET_SSE2 && SSE_REG_P in split condition.
13990 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13991 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13992 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13993 (ssse3_pshufbv8qi3): Ditto.
13994 (ssse3_palignrdi): Ditto.
13995
13996 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13997
13998 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13999 with inlined save and restore.
14000
14001 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14002
14003 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14004 to be inserted on single successor edge of the entry block. Then call
14005 commit_edge_insertions instead of inserting the instructions manually.
14006 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14007 RTL expansion and rebuild jump labels chain.
14008
14009 2019-07-02 Richard Biener <rguenther@suse.de>
14010
14011 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14012 TI_CHREC_KNOWN.
14013 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14014 Define here.
14015 * tree.c (build_common_tree_nodes): Initialize them.
14016 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14017 Make declarations comments.
14018 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14019 chrec_known): Remove definitions.
14020 (initialize_scalar_evolutions_analyzer): Remove.
14021 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14022 * tree-streamer.c (preload_common_nodes): Do not preload
14023 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14024
14025 2019-07-02 Jan Hubicka <jh@suse.cz>
14026
14027 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14028 sanity check.
14029
14030 2019-07-02 Jan Hubicka <jh@suse.cz>
14031
14032 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14033 to ..
14034 (nonoverlapping_component_refs_since_match_p): ... this one;
14035 handle also non-decl bases; return -1 if search gave up.
14036 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14037 nonoverlapping_component_refs_of_decl_p_no_alias to
14038 nonoverlapping_component_refs_since_match_p_may_alias,
14039 nonoverlapping_component_refs_since_match_p_no_alias.
14040 (dump_alias_stats): Update dumping.
14041 (aliasing_matching_component_refs_p): Break out from ...;
14042 dispatch to nonoverlapping_component_refs_for_decl_p
14043 and nonoverlapping_component_refs_since_match_p.
14044 (aliasing_component_refs_p): ... here; call
14045 nonoverlapping_component_refs_p in scenarios where we can not
14046 precisely determine base match.
14047 (decl_refs_may_alias_p): Use
14048 nonoverlapping_component_refs_since_match_p.
14049 (indirect_ref_may_alias_decl_p): Do not call
14050 nonoverlapping_component_refs_p.
14051 (indirect_refs_may_alias_p): Likewise.
14052
14053 2019-07-02 Jan Hubicka <jh@suse.cz>
14054
14055 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14056 to clobber of return value.
14057
14058 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14059
14060 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14061 for is_neon_type instructions that have not already been categorized.
14062
14063 2019-07-02 Richard Biener <rguenther@suse.de>
14064
14065 PR tree-optimization/58483
14066 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14067 for MEM_REF base hashing.
14068 (equal_mem_array_ref_p): Likewise for base comparison.
14069
14070 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14071
14072 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14073 parameterized name.
14074 (signbit<mode>2): Use that name. Simplify.
14075
14076 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14077
14078 PR middle-end/66726
14079 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14080 Tune heuristic from PR71016 to allow MIN / MAX.
14081
14082 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14083
14084 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14085 parameterized name.
14086 (abs<mode>2): Use that name. Simplify.
14087
14088 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14089
14090 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14091 parameterized name.
14092 (neg<mode>2): Use that name. Simplify.
14093
14094 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14095
14096 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14097 name.
14098 (abs<mode>2): Use that name. Simplify.
14099
14100 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14101
14102 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14103 name.
14104 (neg<mode>2): Use that name. Simplify.
14105
14106 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14107
14108 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14109 ("enabled" attribute): Handle sse_noavx isa attribute.
14110 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14111 Use TARGET_SSE && SSE_REGNO_P in split condition.
14112 (*vec_dupv2sf): Ditto.
14113
14114 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14115
14116 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14117 name.
14118 (floatsi<mode>2): Use that name. Simplify.
14119
14120 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14121
14122 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14123 parameterized name.
14124 (extenddf<mode>2_vsx): Make this a parameterized name.
14125 (extenddf<mode>2): Use those names. Simplify.
14126
14127 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14128
14129 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14130 name.
14131 (eh_return): Use that name. Simplify.
14132
14133 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14134
14135 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14136 (doloop_end): Use that name. Simplify.
14137
14138 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14139
14140 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14141 parameterized name.
14142 (indirect_jump): Use that name. Simplify.
14143
14144 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14145
14146 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14147 parameterized name.
14148 (abs<mode>2): Use that name. Simplify.
14149
14150 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14151
14152 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14153 parameterized name.
14154 (fix_trunc<mode>si2): Use that name. Simplify.
14155
14156 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14157
14158 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14159 (allocate_stack): Use that name. Simplify.
14160
14161 2019-07-01 Martin Sebor <msebor@redhat.com>
14162
14163 PR middle-end/90923
14164 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14165 (hash_map::get_or_insert): Same. Reformat comment.
14166 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14167 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14168 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14169 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14170 (hash_table::hash_table (const hash_table&)): Use copy ctor
14171 instead of assignment to copy elements.
14172
14173 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14174 John David Anglin <danglin@gcc.gnu.org>
14175
14176 PR target/90963
14177 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14178 using saved frame pointer.
14179
14180 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14181
14182 PR middle-end/64242
14183 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14184 Add frame clobber and schedule blockage.
14185
14186 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14187
14188 * doc/invoke.texi (Link Options): Further editorial changes to
14189 -flinker-output docs.
14190
14191 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14192
14193 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14194 Load both operands of a PLUS into registers separately.
14195
14196 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14197
14198 * config/s390/vector.md: Fix shift count operand printing.
14199
14200 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14201
14202 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14203
14204 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14205
14206 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14207 Use recog_data to test for an output operand.
14208
14209 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14210
14211 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14212 exclude any others that are disparaged or that are bound to need
14213 a reload or spill.
14214 (ira_get_dup_out_num): Expand comment.
14215
14216 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14217
14218 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14219 constraint string for each operand/alternative combo. Only handle
14220 '%' at the start of constraint strings, and look for it outside
14221 the main loop.
14222
14223 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14224
14225 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14226 alternative_mask instead of HARD_REG_SET to represent a
14227 bitmask of alternatives.
14228 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14229 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14230
14231 2019-07-01 Martin Liska <mliska@suse.cz>
14232
14233 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14234 use () for a constructor call.
14235 (test_applying_fixits_line_out_of_range): Likewise.
14236 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14237 argument.
14238 (free_page): Likewise.
14239
14240 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14241
14242 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14243 parameter names to match usage (no functional change).
14244 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14245
14246 2019-07-01 Richard Biener <rguenther@suse.de>
14247
14248 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14249 pass parameter.
14250 (pass_fre::execute): Honor it.
14251 * passes.def: Adjust pass_fre invocations to allow iterating,
14252 add non-iterating pass_fre before late threading/dom.
14253
14254 2019-07-01 Richard Biener <rguenther@suse.de>
14255
14256 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14257 TARGET_MEM_REF handling to also handle address-taken ones.
14258
14259 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14260
14261 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14262 hardware attributes): Document avx512vp2intersect.
14263
14264 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14265
14266 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14267 (abs<mode>2): New expander.
14268 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14269 Use CODE_FOR_ssse3_absv8qi2.
14270 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14271 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14272
14273 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14274
14275 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14276 to sse, sse_noavx and avx. Update all uses.
14277
14278 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14279
14280 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14281 (*mmx_<plusminus_insn><mode>3): Ditto.
14282 (*mmx_mulv4hi3"): Ditto.
14283 (*mmx_smulv4hi3_highpart): Ditto.
14284 (*mmx_umulv4hi3_highpart): Ditto.
14285 (*mmx_pmaddwd): Ditto.
14286 (*sse2_umulv1siv1di3): Ditto.
14287 (*mmx_<code>v4hi3): Ditto.
14288 (*mmx_<code>v8qi3): Ditto.
14289 (mmx_ashr<mode>3): Ditto.
14290 ("mmx_<shift_insn><mode>3): Ditto.
14291 (*mmx_eq<mode>3): Ditto.
14292 (mmx_gt<mode>3): Ditto.
14293 (mmx_andnot<mode>3): Ditto.
14294 (*mmx_<code><mode>3): Ditto.
14295 (*mmx_pinsrw): Ditto.
14296 (*mmx_pextrw): Ditto.
14297 (mmx_pshufw_1): Ditto.
14298 (*mmx_uavgv8qi3): Ditto.
14299 (*mmx_uavgv4hi3): Ditto.
14300 ("mmx_psadbw): Ditto.
14301 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14302 (sse_cvttps2pi): Ditto.
14303 (ssse3_pmaddubsw): Ditto.
14304 (*ssse3_pmulhrswv4hi3): Ditto.
14305 (ssse3_psign<mode>3): Ditto.
14306
14307 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14308
14309 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14310 adjustment for bit-fields to all aggregate types.
14311
14312 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14313
14314 * config/rs6000/predicates.md (pcrel_address): Use
14315 SYMBOL_REF_LOCAL_P to determine if a label is local.
14316 (pcrel_external_address): New predicate.
14317 (non_prefixed_mem_operand): Delete, predicate not used.
14318 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14319 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14320 addressing.
14321 (SYMBOL_REF_PCREL_P): Likewise.
14322
14323 PR target/91009
14324 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14325 alternative.
14326 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14327 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14328 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14329
14330 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14331
14332 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14333 override on extra_headers.
14334
14335 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14336
14337 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14338 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14339 from warning.
14340 (darwin_driver_init): Likewise.
14341
14342 2019-06-28 Jan Beulich <jbeulich@suse.com>
14343
14344 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14345 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14346 Eliminate redundant alternative.
14347
14348 2019-06-28 Jan Beulich <jbeulich@suse.com>
14349
14350 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14351 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14352 Use vector_operand.
14353
14354 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14355
14356 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14357 having a lower cost regardless of the speed option.
14358
14359 2019-06-28 Jan Beulich <jbeulich@suse.com>
14360
14361 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14362 vector_operand plus, on both alternatives, "Bm" constraint.
14363
14364 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14365
14366 * config/arm/arm.md: Remove redundant constraints from
14367 define_expand but leave reload_inm and reload_outm patterns
14368 untouched since they need special constraints to work.
14369 * config/arm/arm-fixed.md: Remove redundant constraints from
14370 define_expand.
14371 * config/arm/iwmmxt.md: Likewise.
14372 * config/arm/neon.md: Likewise.
14373 * config/arm/sync.md: Likewise.
14374 * config/arm/thumb1.md: Likewise.
14375 * config/arm/vec-common.md: Likewise.
14376
14377 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14378
14379 * doc/install.texi: Document --disable-tm-clone-registry.
14380
14381 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14382
14383 PR c++/91024
14384 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14385 statements.
14386
14387 PR tree-optimization/91010
14388 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14389 return true. Otherwise, don't call operand_equal_p if offset1 or
14390 offset2 is NULL and just return false.
14391
14392 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14393
14394 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14395 user-specified float mode choice for kernel mode code.
14396
14397 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14398
14399 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14400 spec.
14401
14402 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14403
14404 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14405 use longcall for 64b code.
14406
14407 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14408
14409 * builtins.c (get_memory_rtx): Fix comment.
14410 * optabs.def (movmem_optab): Change to cpymem_optab.
14411 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14412 (emit_block_move_hints): Change movmem to cpymem.
14413 * defaults.h: Change movmem to cpymem.
14414 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14415 (default_use_by_pieces_infrastructure_p): Ditto.
14416 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14417 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14418 to cpymem.
14419 * config/aarch64/aarch64.h: Change movmem to cpymem.
14420 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14421 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14422 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14423 movmem to cpymem.
14424 * config/arc/arc-protos.h: Change movmem to cpymem.
14425 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14426 * config/arc/arc.h: Change movmem to cpymem in comment.
14427 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14428 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14429 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14430 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14431 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14432 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14433 * config/avr/avr-protos.h: Change movmem to cpymem.
14434 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14435 avr_out_movmem): Change movmem to cpymem.
14436 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14437 Change movmem to cpymem.
14438 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14439 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14440 Change movmem to cpymem.
14441 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14442 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14443 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14444 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14445 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14446 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14447 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14448 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14449 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14450 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14451 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14452 expand_small_cpymem_or_setmem,
14453 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14454 expand_set_or_cpymem_constant_prologue,
14455 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14456 * config/i386/i386-protos.h: Change movmem to cpymem.
14457 * config/i386/i386.h: Change movmem to cpymem in comment.
14458 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14459 (setmem<mode>): Change expansion function name.
14460 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14461 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14462 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14463 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14464 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14465 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14466 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14467 to cpymem.
14468 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14469 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14470 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14471 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14472 Change movmem to cpymem.
14473 * config/mips/mips.h: Change movmem to cpymem.
14474 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14475 * config/nds32/nds32-memory-manipulation.c
14476 (nds32_expand_movmemsi_loop_unknown_size,
14477 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14478 nds32_expand_movmemsi_unroll,
14479 nds32_expand_movmemsi): Change movmem to cpymem.
14480 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14481 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14482 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14483 (pa_adjust_insn_length): Change call to compute_movmem_length.
14484 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14485 movmemdi, movmemdi_prereload,
14486 movmemdi_postreload): Change movmem to cpymem.
14487 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14488 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14489 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14490 * config/riscv/riscv.h: Change movmem to cpymem.
14491 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14492 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14493 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14494 movmem to cpymem.
14495 * config/s390/s390-protos.h: Change movmem to cpymem.
14496 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14497 s390_expand_insv): Change movmem to cpymem.
14498 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14499 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14500 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14501 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14502 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14503 for nonexistent function.
14504 * config/vax/vax.h: Change movmem to cpymem in comment.
14505 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14506 * config/visium/visium.h: Change movmem to cpymem in comment.
14507 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14508 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14509 * doc/md.texi: Change movmem to cpymem and update description to match.
14510 * doc/rtl.texi: Change movmem to cpymem.
14511 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14512 * doc/tm.texi: Regenerate.
14513
14514 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14515
14516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14517 -fvariable-expansion-in-unroller by default.
14518 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14519 default for Power.
14520
14521 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14522
14523 Revert
14524 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14525 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14526
14527 * config.gcc(rs6000-*-*): Define target_gtfiles.
14528
14529 2019-06-27 Jan Hubicka <jh@suse.cz>
14530
14531 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14532 (add_type_duplicate): When odr hash is not allocated, to nothing.
14533 (odr_based_tbaa_p): New function.
14534 (set_type_canonical_for_odr_type): New function.
14535 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14536 set_type_canonical_for_odr_type): New.
14537 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14538 ODR based TBAA are not equivalent to non-ODR types.
14539
14540 2019-06-27 Martin Liska <mliska@suse.cz>
14541
14542 PR tree-optimization/90974
14543 PR rtl-optimization/90975
14544 PR rtl-optimization/90976
14545 PR target/91016
14546 PR tree-optimization/91017
14547 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14548 unused tmp.
14549 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14550 initial commit of IRA.
14551 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14552 of op0 and op1.
14553 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14554 Remove unused mode1.
14555 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14556 to new_stmt_info.
14557
14558 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14559
14560 PR target/90991
14561 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14562 instead of register_operand for operands[1], add m to its constraints
14563 if operands[2] uses "C" constraint. Ensure in condition that if
14564 operands[2] is not 0, then operands[1] is not a MEM. For last two
14565 alternatives, use unaligned loads instead of aligned if operands[1] is
14566 misaligned_operand.
14567
14568 2019-06-27 Martin Liska <mliska@suse.cz>
14569
14570 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14571 dead assignments.
14572 * bt-load.c (move_btr_def): Likewise.
14573 * builtins.c (expand_builtin_apply_args_1): Likewise.
14574 (expand_builtin_apply): Likewise.
14575 * cfgexpand.c (expand_asm_stmt): Likewise.
14576 (construct_init_block): Likewise.
14577 * cfghooks.c (verify_flow_info): Likewise.
14578 * cfgloopmanip.c (remove_path): Likewise.
14579 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14580 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14581 * combine.c (simplify_if_then_else): Likewise.
14582 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14583 (choose_basereg): Likewise.
14584 (ix86_expand_prologue): Likewise.
14585 (ix86_preferred_output_reload_class): Likewise.
14586 * cselib.c (cselib_record_sets): Likewise.
14587 * df-scan.c (df_scan_alloc): Likewise.
14588 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14589 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14590 * emit-rtl.c (try_split): Likewise.
14591 * graphite-scop-detection.c (assign_parameter_index_in_region):
14592 Likewise.
14593 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14594 * ira-color.c (setup_profitable_hard_regs): Likewise.
14595 * ira.c (rtx_moveable_p): Likewise.
14596 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14597 * read-rtl.c (read_subst_mapping): Likewise.
14598 * regrename.c (scan_rtx): Likewise.
14599 * reorg.c (fill_slots_from_thread): Likewise.
14600 * tree-inline.c (tree_function_versioning): Likewise.
14601 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14602 * tree-ssa-sink.c (statement_sink_location): Likewise.
14603 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14604 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14605 (vect_create_epilog_for_reduction): Likewise.
14606 * tree.c (build_nonstandard_integer_type): Likewise.
14607
14608 2019-06-27 Richard Biener <rguenther@suse.de>
14609
14610 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14611
14612 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14613
14614 PR tree-optimization/89772
14615 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14616 out-of-bound accesses checking.
14617
14618 2019-06-27 Martin Liska <mliska@suse.cz>
14619
14620 PR tree-optimization/91014
14621 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14622 when LHS is NULL_TREE.
14623
14624 2019-06-27 Martin Liska <mliska@suse.cz>
14625
14626 * symbol-summary.h (traverse): Pass
14627 argument a to the call of callback.
14628 (gt_ggc_mx): Mark arguments as unused.
14629 (gt_pch_nx): Likewise.
14630
14631 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14632
14633 PR target/62147
14634 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14635 finiteness.
14636
14637 2019-06-26 Jeff Law <law@redhat.com>
14638
14639 PR tree-optimization/90883
14640 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14641 (delete_dead_or_redundant_assignment): Likewise.
14642
14643 PR tree-optimization/90883
14644 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14645 * tree-ssa-dse.c: Update various comments to distinguish between
14646 dead and redundant stores.
14647 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14648 (dse_optimize_redundant_stores): New function.
14649 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14650 Distinguish between dead and redundant calls in dump output. All
14651 callers updated.
14652 (delete_dead_or_redundant_assignment): Similarly for assignments.
14653 (dse_optimize_stmt): Handle _CHK variants. For statements which
14654 store 0 into multiple memory locations, try to prove a subsequent
14655 store is redundant.
14656
14657 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14658
14659 PR target/89021
14660 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14661 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14662
14663 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14664
14665 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14666 (branch_islands): New extern.
14667 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14668 * config/rs6000/rs6000.c: .. here.
14669
14670 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14671
14672 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14673 (powerpc*-*-*) ... to here.
14674
14675 2019-06-26 Jeff Law <law@redhat.com>
14676
14677 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14678 memcpy, memmove and memset builtins.
14679 (maybe_trim_memstar_call): Likewise.
14680
14681 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14682
14683 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14684
14685 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14686
14687 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14688
14689 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14690
14691 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14692 declaration.
14693 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14694 "static".
14695 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14696 declaration.
14697
14698 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14699
14700 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14701
14702 2019-06-26 Richard Biener <rguenther@suse.de>
14703
14704 PR ipa/90982
14705 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14706
14707 2019-06-26 Richard Biener <rguenther@suse.de>
14708
14709 * lto-streamer.h (lto_bitmap_alloc): Remove.
14710 (lto_bitmap_free): Likewise.
14711 * lto-streamer.c (lto_bitmap_alloc): Remove.
14712 (lto_bitmap_free): Likewise.
14713 (lto_obstack): Likewise.
14714 (lto_obstack_initialized): Likewise.
14715 * lto-streamer-out.c (lto_output): Use own obstack for local
14716 bitmap, free it consistently.
14717
14718 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14719
14720 PR target/90991
14721 * config/i386/sse.md
14722 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14723 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14724 insns if operands[2] is misaligned_operand.
14725
14726 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14727
14728 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14729 TARGET_POWERPC64.
14730 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14731 to GPR.
14732
14733 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14734
14735 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14736
14737 2019-06-26 Martin Liska <mliska@suse.cz>
14738
14739 PR tree-optimization/90973
14740 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14741 epilogue_cost_vec instead of prologue_cost_vec for
14742 a epilogue cost.
14743
14744 2019-06-26 Martin Liska <mliska@suse.cz>
14745
14746 * bb-reorder.c (connect_better_edge_p): Add missing else
14747 statement in the middle of if-else statements.
14748
14749 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14750 H.J. Lu <hongjiu.lu@intel.com>
14751 Olga Makhotina <olga.makhotina@intel.com>
14752
14753 * common/config/i386/i386-common.c
14754 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14755 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14756 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14757 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14758 (ix86_handle_option): Handle -mavx512vp2intersect.
14759 * config/i386/avx512vp2intersectintrin.h: New.
14760 * config/i386/avx512vp2intersectvlintrin.h: New.
14761 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14762 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14763 AVX512VP2INTERSECT.
14764 * config/i386/i386-builtin-types.def: Add new types.
14765 * config/i386/i386-builtin.def: Add new builtins.
14766 * config/i386/i386-builtins.c: (enum processor_features): Add
14767 F_AVX512VP2INTERSECT.
14768 (static const _isa_names_table isa_names_table): Ditto.
14769 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14770 __AVX512VP2INTERSECT__.
14771 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14772 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14773 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14774 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14775 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14776 * config/i386/i386-options.c (ix86_target_string): Add
14777 -mavx512vp2intersect.
14778 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14779 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14780 P2HImode and P2QImode.
14781 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14782 number for P2QImode and P2HImode.
14783 (ix86_regmode_natural_size): New function.
14784 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14785 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14786 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14787 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14788 * config/i386/i386.opt: Add -mavx512vp2intersect.
14789 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14790 avx512vp2intersectvlintrin.h.
14791 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14792 (define_mode_iterator VI48_AVX512VP2VL): New.
14793 (avx512vp2intersect_2intersect<mode>,
14794 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14795 * config.gcc: Add avx512vp2intersectvlintrin.h and
14796 avx512vp2intersectintrin.h to extra_headers.
14797 * doc/invoke.texi: Document -mavx512vp2intersect.
14798
14799 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14800
14801 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14802
14803 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14804
14805 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14806 savres_routine_syms, savres_routine_name, morestack_ref,
14807 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14808 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14809 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14810 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14811 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14812 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14813 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14814 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14815 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14816 get_stack_clash_protection_probe_interval,
14817 get_stack_clash_protection_guard_size,
14818 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14819 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14820 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14821 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14822 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14823 gen_frame_mem_offset, rs6000_savres_routine_name,
14824 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14825 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14826 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14827 rs6000_global_entry_point_prologue_needed_p,
14828 rs6000_get_separate_components, rs6000_components_for_bb,
14829 rs6000_disqualify_components, rs6000_emit_prologue_components,
14830 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14831 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14832 rs6000_output_savres_externs, rs6000_output_function_prologue,
14833 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14834 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14835 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14836 rs6000_output_function_epilogue, gen_add3_const,
14837 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14838 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14839 to rs6000-logue.c.
14840 (machine_function): Moved to rs6000.h.
14841 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14842 rs6000-internal.h.
14843 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14844 savres_routine_syms, savres_routine_name, morestack_ref,
14845 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14846 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14847 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14848 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14849 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14850 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14851 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14852 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14853 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14854 get_stack_clash_protection_probe_interval,
14855 get_stack_clash_protection_guard_size,
14856 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14857 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14858 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14859 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14860 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14861 gen_frame_mem_offset, rs6000_savres_routine_name,
14862 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14863 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14864 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14865 rs6000_global_entry_point_prologue_needed_p,
14866 rs6000_get_separate_components, rs6000_components_for_bb,
14867 rs6000_disqualify_components, rs6000_emit_prologue_components,
14868 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14869 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14870 rs6000_output_savres_externs, rs6000_output_function_prologue,
14871 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14872 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14873 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14874 rs6000_output_function_epilogue, gen_add3_const,
14875 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14876 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14877 to here from rs6000.c.
14878 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14879 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14880 quad_address_offset_p) Moved to here from rs6000.c.
14881 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14882 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14883 collector.
14884
14885 2019-06-25 Martin Liska <mliska@suse.cz>
14886
14887 * hash-table.c (hashtab_chk_error): Move here from ...
14888 * hash-table.h (hashtab_chk_error): ... here.
14889
14890 2019-06-25 Martin Liska <mliska@suse.cz>
14891
14892 PR tree-optimization/90978
14893 * df-scan.c (df_update_entry_block_defs): Remove dead else
14894 branch.
14895 (df_update_exit_block_uses): Likewise.
14896
14897 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14898 Andrew Stubbs <ams@codesourcery.com>
14899
14900 * config.gcc (thread_file): Set to gcn for AMD GCN.
14901 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14902 (TARGET_EMUTLS_VAR_INIT): New hook.
14903
14904 2019-06-25 Martin Jambor <mjambor@suse.cz>
14905
14906 PR ipa/90939
14907 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14908
14909 2019-06-25 Richard Biener <rguenther@suse.de>
14910
14911 PR tree-optimization/90930
14912 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14913 into parallel form in the last pass instance.
14914
14915 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14916
14917 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14918 (arc_legitimize_pic_address): Simplify and cleanup the function.
14919 (SYMBOLIC_CONST): Remove.
14920 (prepare_pic_move): Likewise.
14921 (prepare_move_operands): Handle complex mov cases here.
14922 (arc_legitimize_address_0): Remove call to
14923 arc_legitimize_pic_address.
14924 (arc_legitimize_address): Remove call to
14925 arc_legitimize_tls_address.
14926 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14927 (movhi_insn): Likewise.
14928
14929 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14930
14931 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14932 PTRDIFF_TYPE.
14933 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14934 format of "__intN" types for UINTMAX_TYPE.
14935 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14936 format of "__intN" types for SIZETYPE.
14937 * tree.c (build_common_tree_nodes): Accept "__intN__"
14938 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14939 * doc/invoke.texi: Document that __intN__ disables pedantic
14940 warnings.
14941
14942 2019-06-25 Jan Hubicka <jh@suse.cz>
14943
14944 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14945 base2_alias_set is non-zero before doing TBAA based disambiguation.
14946
14947 2019-06-25 Martin Liska <mliska@suse.cz>
14948
14949 PR tree-optimization/90973
14950 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14951 of prologue and epilogue.
14952
14953 2019-06-24 Jan Hubicka <jh@suse.cz>
14954
14955 * ipa-utils.h (type_with_linkage_p): Verify that type is
14956 CXX_ODR_P.
14957 (odr_type_p): Remove extra return.
14958 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14959 hash STRING_FLAG only for arrays and integers.
14960 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14961 Update analogously.
14962 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14963 Likewise.
14964 * print-tree.c (print_node): Print cxx-odr-p
14965 and string-flag.
14966 * tree.c (need_assembler_name_p): Also check that type
14967 is CXX_ODR_TYPE_P
14968 (verify_type_variant): Update verification of SRING_FLAG;
14969 also check CXX_ODR_P.
14970 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14971 (TYPE_STRING_FLAG): Use it.
14972 (TYPE_CXX_ODR_P): New macro.
14973 * dwarf2out.c (gen_array_type_die): First check that type
14974 is an array and then test string flag.
14975
14976 2019-06-24 Richard Biener <rguenther@suse.de>
14977
14978 PR tree-optimization/90972
14979 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14980 in common code, dealing with STRING_CST properly.
14981
14982 2019-06-24 Richard Biener <rguenther@suse.de>
14983
14984 PR tree-optimization/90930
14985 PR tree-optimization/90316
14986 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14987 decrement of limit.
14988
14989 2019-06-24 Martin Sebor <msebor@redhat.com>
14990
14991 * tree-pretty-print.h: Remove unnecessary punctuation characters
14992 from a diagnostic.
14993 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14994
14995 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14996
14997 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14998 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14999 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15000
15001 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15002
15003 * config/rs6000/darwin.h: Handle GCC target pragma.
15004
15005 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15006
15007 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15008
15009 2019-06-22 Jeff Law <law@redhat.com>
15010
15011 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15012
15013 2019-06-22 Jan Hubicka <jh@suse.cz>
15014
15015 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15016 give up on bitfields; continue searching for different refs
15017 appearing later.
15018
15019 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15020
15021 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15022 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15023 containing the offset as possible simd lane access. Look through
15024 widening conversion. Move the
15025 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15026
15027 2019-06-21 Richard Biener <rguenther@suse.de>
15028
15029 PR tree-optimization/90930
15030 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15031 flag on new stmts to avoid re-processing them.
15032
15033 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15034
15035 PR c++/90875 - added -Wswitch-outside-range option
15036 * doc/invoke.texi (Wswitch-outside-range): Document.
15037
15038 2019-06-21 Jeff Law <law@redhat.com>
15039
15040 PR tree-optimization/90949
15041 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15042 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15043
15044 2019-06-21 Richard Biener <rguenther@suse.de>
15045
15046 PR debug/90914
15047 * dwarf2out.c (prune_unused_types_walk): Always consider
15048 function-local extern declarations as used.
15049
15050 2019-06-21 Richard Biener <rguenther@suse.de>
15051
15052 PR tree-optimization/90913
15053 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15054 the scalar variant of if-conversion versioning.
15055
15056 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15057
15058 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15059 create another "omp scan inscan exclusive" array if
15060 !ctx->scan_inclusive.
15061 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15062 (lower_omp_scan): Likewise.
15063 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15064 2-bit bitfield for simd_lane_access_p member.
15065 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15066 aux == (void *)-4 as simd lane access.
15067 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15068 comment with permutations to show the canonical permutation order.
15069 (vectorizable_scan_store): Handle exclusive scan.
15070 (vectorizable_store): Call vectorizable_scan_store even for
15071 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15072
15073 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15074 "omp simd array" arrays with one byte elements.
15075
15076 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15077
15078 * config/alpha/alpha.md (@unaligned_store<mode>):
15079 Rename from unaligned_store<mode>.
15080 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15081 * config/alpha/sync.md (@load_locked_<mode>): Rename
15082 from load_locked_<mode>.
15083 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15084 (@atomic_compare_and_swap<mode>_1): Rename
15085 from atomic_compare_and_swap<mode>_1.
15086 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15087 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15088 Use gen_reload_in_aligned and gen_unaligned_store.
15089 (emit_load_locked): Remove.
15090 (emit_store_conditional): Ditto.
15091 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15092 (alpha_split_compare_and_swap): Ditto.
15093 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15094 (alpha_split_compare_and_swap_12): Use gen_load_locked
15095 and gen_store_conditional.
15096 (alpha_split_atomic_exchange): Ditto.
15097 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15098 (alpha_split_atomic_exchange_12): Use gen_load_locked
15099 and gen_store_conditional.
15100
15101 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15102
15103 * config/aarch64/aarch64-errata.h: New file.
15104 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15105 (CA53_ERR_843419_SPEC): Delete.
15106 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15107 * config/aarch64/aarch64-linux.h: Likewise.
15108 * config/aarch64/aarch64-netbsd.h: Likewise.
15109 * config/aarch64/aarch64-freebsd.h: Likewise.
15110
15111 2019-06-20 Marek Polacek <polacek@redhat.com>
15112
15113 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15114
15115 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15116
15117 * config/rs6000/rs6000.md (isa attribute): Add support for
15118 for a future processor.
15119
15120 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15121
15122 PR target/54855
15123 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15124 standard scalar operation pattern for V2DF.
15125 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15126 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15127 (*ieee_<ieee_maxmin><mode>3): Likewise.
15128 (vec_setv2df_0): Likewise.
15129
15130 2019-06-20 Jan Hubicka <jh@suse.cz>
15131
15132 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15133 parameter; it has no use in gimple memory model.
15134 (indirect_ref_may_alias_decl_p): Update.
15135
15136 2019-06-20 Martin Liska <mliska@suse.cz>
15137
15138 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15139 to 10.
15140
15141 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15142
15143 * tree-vect-stmts.c (enum scan_store_kind): New type.
15144 (scan_store_can_perm_p): Change last argument from int * to
15145 vec<enum scan_store_kind> *, record precisely which permutations
15146 need whole vector left shift or that plus VEC_COND_EXPR.
15147 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15148 and additional VEC_COND_EXPR only for those iterations that need it.
15149
15150 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15151
15152 * config.gcc: Fix ARM --with-fpu checking and error message.
15153
15154 2019-06-19 Marek Polacek <polacek@redhat.com>
15155
15156 PR c++/60364 - noreturn after first decl not diagnosed.
15157 * attribs.c (get_attribute_namespace): No longer static.
15158 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15159 attributes.
15160 (attr_noreturn_exclusions): Make it extern.
15161 * attribs.h (get_attribute_namespace): Declare.
15162 * tree-inline.c (function_attribute_inlinable_p): Use
15163 get_attribute_name.
15164
15165 2019-06-19 Martin Sebor <msebor@redhat.com>
15166
15167 PR tree-optimization/90626
15168 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15169
15170 PR tree-optimization/90626
15171 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15172 (handle_builtin_string_cmp): Call it.
15173
15174 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15175
15176 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15177 and DARWIN_NOPIE_SPEC.
15178 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15179 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15180 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15181 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15182 (DARWIN_EXPORT_DYNAMIC): Delete.
15183 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15184 and pie options processing to darwin.h.
15185 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15186
15187 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15188
15189 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15190 in computing the number of options to be moved.
15191
15192 2019-06-19 Maya Rashish <coypu@sdf.org>
15193
15194 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15195 (CLEAR_INSN_CACHE) Use it.
15196
15197 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15198
15199 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15200
15201 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15202
15203 PR middle-end/84521
15204 * builtins.c (expand_builtin_setjmp_setup): Save
15205 hard_frame_pointer_rtx.
15206 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15207 restore fp.
15208 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15209 non-local goto.
15210 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15211 elimination code.
15212 (remove_reg_equal_offset_note): Remove unused function.
15213 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15214 code.
15215 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15216 (arc_builtin_setjmp_frame_value): Remove function.
15217 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15218 (avr_builtin_setjmp_frame_value): Remove function.
15219 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15220 (ix86_builtin_setjmp_frame_value): Remove function.
15221 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15222 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15223 (sparc_builtin_setjmp_frame_value): Remove function.
15224 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15225 (vax_builtin_setjmp_frame_value): Remove function.
15226 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15227 pointer if has_nonlocal_label.
15228
15229 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15230
15231 * doc/md.texi: Document vec_shl_<mode> pattern.
15232 * optabs.def (vec_shl_optab): New optab.
15233 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15234 argument, if == vec_shl_optab, check for left whole vector shift
15235 pattern rather than right shift.
15236 (expand_vec_perm_const): Add vec_shl_optab support.
15237 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15238 in the comment.
15239 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15240 can be handled by vec_shl_optab.
15241 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15242 (check_scan_store): Use it.
15243 (vectorizable_scan_store): If target can't do normal permutations,
15244 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15245 after it.
15246 * config/i386/sse.md (vec_shl_<mode>): New expander.
15247
15248 * omp-low.c (lower_rec_input_clauses): Handle references properly
15249 in inscan clauses.
15250 (lower_omp_scan): Likewise.
15251
15252 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15253
15254 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15255 mem_mode is BLKmode.
15256
15257 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15258
15259 PR target/90922
15260 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15261 pointer adjustment for the case of no callee-saved registers and
15262 stack frame bigger than 128 bytes.
15263
15264 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15265
15266 PR middle-end/90862
15267 * omp-low.c (check_omp_nesting_restrictions): Handle
15268 GF_OMP_TARGET_KIND_OACC_DECLARE.
15269
15270 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15271
15272 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15273 (@add<mode>3_carry): Rename from add<mode>3_carry.
15274 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15275 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15276 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15277 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15278 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15279 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15280 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15281 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15282 (cmpstrnsi): Use gen_cmp_1.
15283 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15284 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15285 (@umonitor_<mode>): Rename from umonitor_<mode>.
15286 * config/i386/i386-expand.c (ix86_expand_copysign):
15287 Use gen_copysign3_const and gen_copysign3_var.
15288 (ix86_expand_xorsign): Use gen_xorsign3_1.
15289 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15290 gen_sub3_carry_ccgz and gen_cmp1.
15291 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15292 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15293 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15294 (ix86_split_lshr): Ditto.
15295 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15296
15297 2019-06-18 Jason Merrill <jason@redhat.com>
15298
15299 * tree.c (build_constructor): Add MEM_STAT_DECL.
15300
15301 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15302
15303 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15304 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15305 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15306 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15307 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15308 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15309 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15310 Use CC_NZC instead of CC.
15311 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15312 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15313 (aarch64_print_operand): Handle E_CC_NZCmode.
15314 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15315 of gen_set_clobber_cc.
15316
15317 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15318
15319 * config/aarch64/aarch64-sve.md: Tabify file.
15320
15321 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15322
15323 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15324 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15325 * config/aarch64/aarch64-sve.md: Use it.
15326
15327 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15328
15329 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15330 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15331 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15332 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15333 (aarch64_expand_sve_vec_cmp_int): Use it.
15334 (aarch64_expand_sve_vec_cmp_float): Likewise.
15335 * config/aarch64/aarch64-sve.md: Likewise throughout.
15336
15337 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15338 Kugan Vivekanandarajah <kuganv@linaro.org>
15339
15340 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15341 (*cond_<optab><mode>_z): Fold into...
15342 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15343 operand 4 can be tied to operand 0 (either inherently or via RA).
15344
15345 2019-06-18 Richard Biener <rguenther@suse.de>
15346
15347 PR debug/90900
15348 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15349 as if optimized away.
15350
15351 2019-06-18 Tom de Vries <tdevries@suse.de>
15352
15353 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15354 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15355 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15356 Rename to ...
15357 (define_insn "@set_softstack_<mode>"): ... this.
15358 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15359 (define_insn "@omp_simt_enter_<mode>"): ... this.
15360 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15361 (define_insn "@omp_simt_exit_<mode>"): ... this.
15362
15363 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15364
15365 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15366 vf parameter. Restore the previous iv step of nscalars_step,
15367 but give it iv_type rather than compare_type. Tweak code order
15368 to match the comments.
15369 (vect_set_loop_condition_masked): Update accordingly.
15370 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15371 for iv_precision. Tweak comment formatting.
15372
15373 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15374
15375 * config/darwin.c: Strip trailing whitespace.
15376
15377 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15378
15379 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15380 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15381
15382 2019-06-18 Martin Jambor <mjambor@suse.cz>
15383
15384 PR ipa/90889
15385 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15386 caller does not have flag_ipa_cp set.
15387
15388 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15389
15390 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15391 from "*fold_left_plus_<mode>", updated operands order.
15392 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15393 * internal-fn.c (mask_fold_left_direct): New define.
15394 (expand_mask_fold_left_optab_fn): Likewise.
15395 (direct_mask_fold_left_optab_supported_p): Likewise.
15396 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15397 * optabs.def (mask_fold_left_plus_optab): New optab.
15398 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15399 masked internal_fn for a reduction ifn.
15400 (vectorize_fold_left_reduction): Add support for masking reductions.
15401
15402 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15403
15404 PR middle-end/80791
15405 * target.def (predict_doloop_p): New hook.
15406 * targhooks.h (default_predict_doloop_p): New declaration.
15407 * targhooks.c (default_predict_doloop_p): New function.
15408 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15409 * doc/tm.texi: Regenerate.
15410 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15411 (TARGET_PREDICT_DOLOOP_P): New macro.
15412 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15413
15414 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15415
15416 * omp-low.c (struct omp_context): Add scan_inclusive field.
15417 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15418 if inclusive scan.
15419 (struct omplow_simd_context): Add lastlane member.
15420 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15421 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15422 1 or 2 argument.
15423 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15424 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15425 (lower_omp_scan): New function.
15426 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15427 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15428 check 3rd argument if present rather than 2nd.
15429 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15430 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15431 2-bit bitfield.
15432 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15433 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15434 than 2nd.
15435 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15436 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15437 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15438 init.
15439 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15440 IFN_GOMP_SIMD_LANE argument.
15441 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15442 encoded ->aux value.
15443 * tree-vect-stmts.c: Include attribs.h.
15444 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15445 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15446 functions.
15447 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15448 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15449
15450 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15451
15452 PR target/62055
15453 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15454 (*nabs<mode>2_1): Ditto.
15455 (nabs sse-reg splitter): New splitter.
15456 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15457
15458 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15459
15460 PR bootstrap/90873.
15461 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15462 TMR index check.
15463
15464 2019-06-17 Tom de Vries <tdevries@suse.de>
15465
15466 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15467 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15468 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15469 ...
15470 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15471 match_operand 0.
15472 (define_insn "omp_simt_enter_insn"): Rename to ...
15473 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15474 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15475 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15476 gen_omp_simt_enter_si.
15477 (define_expand "omp_simt_exit"): New.
15478 (define_insn "omp_simt_exit"): Rename to ...
15479 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15480 match_operand 0.
15481
15482 2019-06-17 Matthew Green <mrg@eterna.com.au>
15483 Maya Rashish <coypu@sdf.org>
15484
15485 * config.gcc (aarch64*-*-netbsd*): New target.
15486 * config/aarch64/aarch64-netbsd.h: New file.
15487 * config/aarch64/t-aarch64-netbsd: Likewise.
15488
15489 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15490
15491 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15492 the access path from base to first VIEW_CONVERT_EXPR or
15493 BIT_FIELD_REF.
15494
15495 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15496
15497 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15498 access path on BIT_FIELD_REFs.
15499
15500 2019-06-17 Martin Liska <mliska@suse.cz>
15501
15502 PR ipa/90874
15503 * ipa-utils.h (odr_type_p): Remove dead code.
15504
15505 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15506
15507 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15508 alternative Solaris 11.4 format.
15509 * configure: Regenerate.
15510
15511 2019-06-17 Tom de Vries <tdevries@suse.de>
15512
15513 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15514 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15515 match_operand 0.
15516 (define_insn "call_value_insn"): Rename to ...
15517 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15518 match_operand 0.
15519 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15520 DI.
15521
15522 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15523
15524 PR middle-end/64242
15525 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15526 frame clobbers and schedule block.
15527 (builtin_longjmp): Likewise.
15528
15529 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15530
15531 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15532 describe how to perform MSPABI compliant 64-bit shift.
15533 * config/msp430/msp430.md (ashldi3): New define_expand.
15534 (ashrdi3): New define_expand.
15535 (lshrdi3): New define_expand.
15536
15537 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15538
15539 * doc/sourcebuild.texi: Document new effective target keyword
15540 longlong64.
15541
15542 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15543
15544 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15545 indirect_refs_may_alias_p): Revert accidental commits.
15546
15547 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15548 at the end of structures.
15549
15550 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15551
15552 * config/darwin.c (machopic_indirect_call_target): Use renamed
15553 darwin_picsymbol_stubs to decide on output.
15554 (darwin_override_options): Handle darwin_picsymbol_stubs.
15555 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15556 (LD64_VERSION): Revise default.
15557 * config/darwin.opt: (mpic-symbol-stubs): New option.
15558 (darwin_picsymbol_stubs): New variable.
15559 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15560 rename to TARGET_MACHO_PICSYM_STUBS.
15561 * config/i386/i386.c (output_pic_addr_const): Likewise.
15562 * config/i386/i386.h Likewise.
15563 * config/rs6000/darwin.h: Likewise.
15564 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15565 darwin_picsymbol_stubs.
15566
15567 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15568
15569 * config/darwin.opt (prebind, noprebind, seglinkedit,
15570 noseglinkedit): Add RejectNegative.
15571
15572 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15573
15574 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15575 in my previous patch.
15576
15577 2019-06-16 Tom de Vries <tdevries@suse.de>
15578
15579 PR tree-optimization/89376
15580 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15581
15582 2019-06-15 Maya Rashish <coypu@sdf.org>
15583
15584 * doc/invoke.texi (Spec Files): Update location of the
15585 Fortran spec file.
15586
15587 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15588
15589 * doc/extend.texi (Common Function Attributes): Clarify
15590 no_sanitize. Fix grammar.
15591
15592 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15593
15594 * tree-ssa-alias.c (alias_stats): Add
15595 nonoverlapping_component_refs_p_may_alias,
15596 nonoverlapping_component_refs_p_no_alias,
15597 nonoverlapping_component_refs_of_decl_p_may_alias,
15598 nonoverlapping_component_refs_of_decl_p_no_alias.
15599 (dump_alias_stats): Dump them.
15600 (nonoverlapping_component_refs_of_decl_p): Add stats.
15601 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15602 ARRAY_REF.
15603
15604 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15605
15606 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15607 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15608 only.
15609 (*anddi3_doubleword): Split before reload. Merge with
15610 anddi->zext pre-reload splitter.
15611 (*andndi3_doubleword): Split before reload.
15612 (*<code>di3_doubleword): Ditto.
15613 (*one_cmpldi2_doubleword): Ditto.
15614
15615 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15616
15617 PR middle-end/90779
15618 * gimplify.c: Include omp-offload.h and context.h.
15619 (gimplify_bind_expr): Add "omp declare target" attributes
15620 to static block scope variables inside of target region or target
15621 functions.
15622
15623 2019-06-15 Tom de Vries <tdevries@suse.de>
15624
15625 PR tree-optimization/90009
15626 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15627 Return NULL if bb contains IFN_UNIQUE.
15628
15629 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15630
15631 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15632 (un): New define_mode_attr.
15633 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15634 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15635 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15636 merge into ...
15637 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15638
15639 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15640
15641 * config/darwin.opt: Add RejectNegative where needed, reorder
15642 and add minimal functional descriptions.
15643
15644 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15645
15646 PR rtl-optimization/90765
15647 * calls.c (update_stack_alignment_for_call): New function.
15648 (expand_call): Call update_stack_alignment_for_call when
15649 outgoing parameter is passed in the stack.
15650 (emit_library_call_value_1): Likewise.
15651 * function.c (locate_and_pad_parm): Don't update
15652 stack_alignment_needed and preferred_stack_boundary.
15653
15654 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15655
15656 PR target/90877
15657 * config/i386/i386-features.c
15658 (dimode_scalar_chain::compute_convert_gain): Replace
15659 mmxsse_to_integer with sse_to_integer.
15660 * config/i386/i386.c (ix86_register_move_cost): Verify that
15661 moves between MMX and non-MMX units require secondary memory.
15662 Correct costs of moves between SSE and integer units.
15663 * config/i386/i386.h (processor_costs): Rename cost of moving
15664 SSE register to integer to sse_to_integer. Rename cost of
15665
15666 2019-06-14 Matt Thomas <matt@3am-software.com>
15667 Matthew Green <mrg@eterna.com.au>
15668 Nick Hudson <skrll@netbsd.org>
15669 Maya Rashish <coypu@sdf.org>
15670 Richard Earnshaw <rearnsha@arm.com>
15671
15672 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15673 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15674 * config/arm/netbsd-eabi.h: New file.
15675 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15676 redefining.
15677 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15678 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15679 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15680 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15681
15682 2019-06-14 Richard Biener <rguenther@suse.de>
15683
15684 * tree-loop-distribution.c (classify_partition): Return
15685 whether a reduction appeared in all partitions and do not
15686 stop builtin detection because of this.
15687 (distribute_loop): Sort a non-builtin partition last if
15688 there's a reduction in all partitions and make sure the
15689 partition prevailing as last is not a builtin.
15690
15691 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15692
15693 PR ipa/90401
15694 * ipa-prop.c (add_to_agg_contents_list): New function.
15695 (clobber_by_agg_contents_list_p): Likewise.
15696 (extract_mem_content): Likewise.
15697 (get_place_in_agg_contents_list): Delete.
15698 (determine_known_aggregate_parts): Renamed from
15699 determine_locally_known_aggregate_parts. New parameter
15700 aa_walk_budget_p.
15701
15702 2019-06-13 Martin Sebor <msebor@redhat.com>
15703
15704 PR tree-optimization/90662
15705 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15706 to the same type.
15707
15708 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15709
15710 PR bootstrap/90873
15711 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15712 dbase is not TARGET_MEM_REF.
15713
15714 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15715
15716 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15717 Update all uses.
15718 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15719 Do not generate DImode extends for 32bit targets.
15720 (and->zext post-reload splitter): Use gen_extend_insn
15721 instead of indirect functions.
15722 (anddi->zext pre-reload splitter): New.
15723 (*zext<mode>_doubleword_and): Remove.
15724 (*zext<mode>_doubleword): Ditto.
15725 (*zextsi_doubleword): Dittto.
15726
15727 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15728
15729 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15730 Use gen_sub3_insn instead of indirect function.
15731 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15732 indirect function.
15733 (ix86_adjust_counter): Ditto.
15734
15735 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15736 Lijia He <helijia@linux.ibm.com>
15737
15738 PR tree-optimization/77820
15739 * tree-ssa-threadedge.c
15740 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15741 function.
15742 (thread_across_edge): Add call to
15743 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15744
15745 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15746
15747 * config/darwin-driver.c (validate_macosx_version_min): New.
15748 (darwin_default_min_version): Cleanup and validate supplied version.
15749 (darwin_driver_init): Likewise and push cleaned version into opts.
15750
15751 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15752
15753 PR tree-optimization/90869
15754 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15755 converts in MEM_REF referencing decl rather than view converts
15756 from decl type to MEM_REF type.
15757
15758 2019-06-13 Richard Biener <rguenther@suse.de>
15759
15760 PR tree-optimization/90856
15761 * tree-sra.c (build_ref_for_model): Only use
15762 build_reconstructed_reference when address-spaces are the same.
15763
15764 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15765
15766 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15767 wrap ei variable name in the declaration in ()s.
15768 (nvptx_single): Actually use mode_label variable. Formatting fix.
15769
15770 2019-06-13 Richard Biener <rguenther@suse.de>
15771
15772 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15773 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15774 also return the condition stmt.
15775 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15776 loop we can version and version that, reusing the loop version
15777 created by if-conversion instead of versioning again.
15778
15779 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15780
15781 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15782 may_contain_p.
15783 * tree-vrp (value_range_base::may_contain_p): Call into
15784 value_inside_range.
15785 (value_inside_range): Make private inside value_range_base class.
15786 Take min/max from *this.
15787 (range_includes_p): Remove.
15788 * tree-vrp.h (value_range_base): Add value_inside_range.
15789 (range_includes_p): Remove.
15790 (range_includes_zero_p): Call may_contain_p.
15791 * vr-values.c (compare_range_with_value): Same.
15792
15793 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15794
15795 * doc/extend.texi (ARC Function Attributes): Update info.
15796
15797 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15798
15799 PR tree-optimization/89713
15800 * doc/invoke.texi (-ffinite-loops): Document new option.
15801 * common.opt (-ffinite-loops): New option.
15802 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15803 IFN_GOACC_LOOP calls as necessary.
15804 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15805 is finite.
15806 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15807 IFN_GOACC_LOOP call is not used.
15808 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15809
15810 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15811
15812 PR target/88838
15813 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15814 compare_type is not with Pmode size, we will create an IV with
15815 Pmode size with truncated use (i.e. converted to the correct type).
15816 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15817 (vect_iv_limit_for_full_masking): New. Factored out of
15818 vect_set_loop_condition_masked.
15819 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15820 (vect_iv_limit_for_full_masking): Declare.
15821
15822 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15823
15824 PR target/88834
15825 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15826 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15827 (get_alias_ptr_type_for_ptr_address): Likewise.
15828 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15829 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15830 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15831 allow_reg_index_p.
15832
15833 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15834
15835 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15836
15837 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15838
15839 * common/config/pru/pru-common.c: New file.
15840 * config.gcc: Add PRU target.
15841 * config/pru/alu-zext.md: New file.
15842 * config/pru/constraints.md: New file.
15843 * config/pru/predicates.md: New file.
15844 * config/pru/pru-opts.h: New file.
15845 * config/pru/pru-passes.c: New file.
15846 * config/pru/pru-pragma.c: New file.
15847 * config/pru/pru-protos.h: New file.
15848 * config/pru/pru.c: New file.
15849 * config/pru/pru.h: New file.
15850 * config/pru/pru.md: New file.
15851 * config/pru/pru.opt: New file.
15852 * config/pru/t-pru: New file.
15853 * doc/extend.texi: Document PRU pragmas.
15854 * doc/invoke.texi: Document PRU-specific options.
15855 * doc/md.texi: Document PRU asm constraints.
15856
15857 2019-06-12 Martin Sebor <msebor@redhat.com>
15858
15859 PR middle-end/90676
15860 * tree-pretty-print.c (dump_mem_ref): New function. Include
15861 MEM_REF type in output when different size than operand.
15862 (dump_generic_node): Move code to dump_mem_ref and call it.
15863
15864 2019-06-12 Martin Sebor <msebor@redhat.com>
15865
15866 PR tree-optimization/90662
15867 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15868 to arrays.
15869
15870 2019-06-12 Tom de Vries <tdevries@suse.de>
15871
15872 PR tree-optimization/90009
15873 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15874
15875 2019-06-12 Martin Liska <mliska@suse.cz>
15876
15877 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15878 the created map.
15879 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15880 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15881 Do not sanitize created maps.
15882
15883 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15884
15885 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15886 value_range::singleton_p.
15887 * tree-vrp.c (value_range_constant_singleton): Remove.
15888 * tree-vrp.h (value_range_constant_singleton): Remove.
15889 * vr-values.c (vr_values::singleton): Use
15890 value_range::singleton_p.
15891
15892 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15893
15894 PR target/90811
15895 * cfgexpand.c (align_local_variable): Add really_expand argument,
15896 don't SET_DECL_ALIGN if it is false.
15897 (add_stack_var): Add really_expand argument, pass it through to
15898 align_local_variable.
15899 (expand_one_stack_var_1): Pass true as really_expand to
15900 align_local_variable.
15901 (expand_one_ssa_partition): Pass true as really_expand to
15902 add_stack_var.
15903 (expand_one_var): Pass really_expand through to add_stack_var.
15904
15905 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15906
15907 * config/arm/iterators.md (VABAL): New int iterator.
15908 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15909 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15910 UNSPEC_VABAL_U values.
15911
15912 2019-06-12 Martin Liska <mliska@suse.cz>
15913
15914 * value-prof.c (stream_out_histogram_value): Only first value
15915 can't be negative.
15916
15917 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15918
15919 PR c/90760
15920 * symtab.c (symtab_node::set_section): Allow being called on aliases
15921 as long as they aren't analyzed yet.
15922
15923 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15924
15925 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15926 to `mips_set_text_contents_type' to indicate whether a
15927 non-debug insn follows.
15928
15929 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15930
15931 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15932 enabling -mpcrel by default.
15933 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15934 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15935 that the test against -mcpu=future is done first. Then test if
15936 -mprefixed-addr is on for -mpcrel.
15937 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15938
15939 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15940
15941 PR target/90811
15942 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15943 instead of and.u%d.
15944
15945 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15946
15947 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15948
15949 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15950
15951 PR c++/90449 - add -Winaccessible-base option.
15952 * doc/invoke.texi (Winaccessible-base): Document.
15953
15954 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15955
15956 PR tree-optimization/62041
15957 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15958
15959 2019-06-11 Jason Merrill <jason@redhat.com>
15960
15961 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15962 * tree.c (get_tree_code_name): Likewise.
15963 * print-tree.c (print_node): Only briefly print a node with an
15964 invalid code.
15965
15966 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15967
15968 PR bootstrap/90819
15969 * trans-mem.c (tm_memopt_compute_available): Add assertion
15970 that blocks is not empty. Formatting fix.
15971
15972 2019-06-11 Martin Liska <mliska@suse.cz>
15973
15974 PR c++/87847
15975 * hash-table.h: Extend create_gcc, add one parameter
15976 that is passed into hash_table::hash_table.
15977
15978 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15979
15980 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15981 New prototype.
15982 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15983 Emit clobber also for non-sse operations.
15984 (ix86_split_fp_absneg_operator): New function.
15985 * config/i386/i386.md (SSEMODEF): New mode iterator.
15986 (ssevecmodef): New mode attribute.
15987 (<code>tf2): Use absneg code iterator.
15988 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15989 Add three-operand AVX alternatives.
15990 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15991 Use absneg code iterator and X87MODEF mode iterator.
15992 (absneg fp_reg non-sse splitter): Call absneg code iterator
15993 and X87MODEF mode iterator.
15994 (absneg general_reg non-sse splitter): Use absneg code iterator
15995 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15996 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15997 code iterator. Add three-operand AVX alternative.
15998 (absneg sse_reg splitter): Use absneg code iterator
15999 and SSEMODEF mode iterator. Handle AVX operands.
16000 (absneg fp_reg splitter): Use absneg code iterator
16001 and MODEF mode iterator.
16002 (absneg general_reg splitter): Merge splitters using MODEF mode
16003 iterator. Use absneg code iterator. Call
16004 ix86_split_fp_absneg_operator.
16005 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16006 Do not enable for non-sse modes before reload.
16007 (CSGNMODE): Remove.
16008 (CSGNVMODE): Ditto.
16009 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16010 ssevecmodef mode attribute instaed of CSGNVMODE.
16011 (copysign<mode>3_const): Ditto.
16012 (copysign<mode>3_var): Ditto.
16013 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16014 Use absneg code iterator. Simplify code using std::swap.
16015 * config/i386/predicates.md (absneg_operator): Remove.
16016
16017 2019-06-10 Martin Sebor <msebor@redhat.com>
16018
16019 * gimple-fold.c (get_range_strlen): Update comment that didn't
16020 make it into r267503 or related commits.
16021
16022 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16023
16024 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16025 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16026
16027 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16028
16029 * tree.def (OMP_SCAN): New tree code.
16030 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16031 OMP_CLAUSE_EXCLUSIVE.
16032 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16033 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16034 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16035 OMP_CLAUSE_{IN,EX}CLUSIVE.
16036 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16037 * tree-nested.c (convert_nonlocal_reference_stmt,
16038 convert_local_reference_stmt, convert_gimple_call): Handle
16039 GIMPLE_OMP_SCAN.
16040 * tree-pretty-print.c (dump_omp_clause): Handle
16041 OMP_CLAUSE_{IN,EX}CLUSIVE.
16042 (dump_generic_node): Handle OMP_SCAN.
16043 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16044 * gimple.h (gomp_scan): New type.
16045 (is_a_helper <gomp_scan *>::test,
16046 is_a_helper <const gomp_scan *>::test): New templates.
16047 (gimple_build_omp_scan): Declare.
16048 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16049 gimple_omp_scan_set_clauses): New inline functions.
16050 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16051 * gimple.c (gimple_build_omp_scan): New function.
16052 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16053 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16054 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16055 GIMPLE_OMP_TASKGROUP.
16056 (dump_gimple_omp_scan): New function.
16057 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16058 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16059 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16060 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16061 (is_gimple_stmt): Handle OMP_SCAN.
16062 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16063 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16064 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16065 mentioned in nested #pragma omp scan. Handle
16066 OMP_CLAUSE_{IN,EX}CLUSIVE.
16067 (gimplify_expr): Handle OMP_SCAN.
16068 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16069 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16070 simd constructs.
16071 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16072 GIMPLE_OMP_SCAN.
16073
16074 2019-06-10 Martin Liska <mliska@suse.cz>
16075
16076 * ipa-cp.c (ignore_edge_p): New function.
16077 (build_toporder_info): Use it.
16078 * ipa-inline.c (ignore_edge_p): New function.
16079 (inline_small_functions): Use it.
16080 * ipa-pure-const.c (ignore_edge_for_nothrow):
16081 Verify opt_for_fn for caller and callee.
16082 (ignore_edge_for_pure_const): Likewise.
16083 * ipa-reference.c (ignore_edge_p): Extend to check
16084 for opt_for_fn.
16085 * ipa-utils.c (searchc): Refactor.
16086 * ipa-utils.h: Fix coding style.
16087
16088 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16089
16090 * config/arc/arc.c (arc_rtx_costs): Update costs.
16091
16092 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16093
16094 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16095 (arc_split_ior): Likewise.
16096 (arc_check_mov_const): Likewise.
16097 (arc_split_mov_const): Likewise.
16098 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16099 (arc_rtx_costs): Replace check Crr with Cax constraint.
16100 (prepare_move_operands): Cleanup, remove unused code.
16101 (arc_split_ior): New function.
16102 (arc_check_ior_const): Likewise.
16103 (arc_split_mov_const): Likewise.
16104 (arc_check_mov_const): Likewise.
16105 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16106 in define_insn_and_split pattern.
16107 (iorsi3): Likewise.
16108 (mulsi3_v2): Add new matching variant.
16109 (andsi3_i): Cleanup pattern.
16110 (rotrsi3_cnt1): Update pattern.
16111 (rotrsi3_cnt8): New pattern.
16112 (ashlsi2_cnt8): Likewise.
16113 (ashlsi2_cnt16): Likewise.
16114 * config/arc/constraints.md (C0p): Update constraint.
16115 (Crr): Remove it.
16116 (C0x): New pattern.
16117 (Cax): New pattern.
16118
16119 2019-06-10 Martin Liska <mliska@suse.cz>
16120
16121 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16122 Update coding style.
16123 (sem_item_optimizer::dump_cong_classes):
16124 Print how many items are in a non-singular class. Improve
16125 coding style.
16126
16127 2019-06-10 Martin Liska <mliska@suse.cz>
16128
16129 * value-prof.c (dump_histogram_value): Change dump format.
16130 (gimple_mod_subtract_transform): Remove legacy comment.
16131
16132 2019-06-10 Martin Liska <mliska@suse.cz>
16133
16134 * value-prof.c (dump_histogram_value): Print histogram values
16135 only if present.
16136
16137 2019-06-10 Martin Liska <mliska@suse.cz>
16138
16139 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16140 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16141 * ipa-profile.c (ipa_profile_generate_summary):
16142 Use get_most_common_single_value.
16143 * tree-profile.c (gimple_init_gcov_profiler):
16144 Instrument with __gcov_one_value_profiler_v2
16145 and __gcov_indirect_call_profiler_v4.
16146 * value-prof.c (dump_histogram_value):
16147 Print all values for HIST_TYPE_SINGLE_VALUE.
16148 (stream_out_histogram_value): Update assert for
16149 N values.
16150 (stream_in_histogram_value): Set number of
16151 counters for HIST_TYPE_SINGLE_VALUE.
16152 (get_most_common_single_value): New.
16153 (gimple_divmod_fixed_value_transform):
16154 Use get_most_common_single_value.
16155 (gimple_ic_transform): Likewise.
16156 (gimple_stringops_transform): Likewise.
16157 (gimple_find_values_to_profile): Set number
16158 of counters for HIST_TYPE_SINGLE_VALUE.
16159 * value-prof.h (get_most_common_single_value): New.
16160
16161 2019-06-10 Martin Liska <mliska@suse.cz>
16162
16163 * hash-map.h: Pass default value to hash_table ctor.
16164 * hash-table.h: Add default value to call of a ctor.
16165
16166 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16167
16168 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16169 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16170
16171 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16172
16173 PR target/90751
16174 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16175 Call pa_output_function_label.
16176 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16177 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16178 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16179 to declaration.
16180 (pa_linux_output_function_prologue): Declare.
16181 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16182 (pa_output_function_label): New.
16183 (pa_output_function_prologue): Revise to use pa_output_function_label.
16184 (pa_linux_output_function_prologue): New.
16185 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16186
16187 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16188
16189 * tree-vrp.h (value_range_base::intersect): New.
16190 (value_range::intersect_helper): Move from here...
16191 (value_range_base::intersect_helper): ...to here.
16192 * tree-vrp.c (value_range::intersect_helper): Rename to...
16193 (value_range_base::intersect_helper): ...this, and rewrite to
16194 return a value instead of modifying THIS in place.
16195 Also, move equivalence handling...
16196 (value_range::intersect): ...here, while calling intersect_helper.
16197 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16198 calling intersect.
16199 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16200 Same.
16201 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16202
16203 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16204
16205 * Makefile.in (genprogerr): Add condmd.
16206 (genprog): Remove it here.
16207
16208 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16209
16210 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16211
16212 2019-06-07 Richard Biener <rguenther@suse.de>
16213
16214 PR debug/90574
16215 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16216 that appear after user labels.
16217
16218 2019-06-07 Martin Liska <mliska@suse.cz>
16219
16220 * cselib.c (cselib_init): Disable hash table
16221 sanitization.
16222 * hash-set.h: Pass new default argument to m_table.
16223 * hash-table.c: Add global variable with hash table
16224 sanitization limit.
16225 * hash-table.h (Allocator>::hash_table): Add new argument
16226 to ctor.
16227 (hashtab_chk_error): New.
16228 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16229 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16230 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16231
16232 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16233
16234 * common.opt (flto-odr-type-merging): Ignore.
16235 * invoke.texi (-flto-odr-type-merging): Remove.
16236 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16237 (can_be_vtable_hashed_p): Remove.
16238 (hash_odr_vtable): Remove.
16239 (odr_vtable_hasher::hash): Remove.
16240 (types_same_for_odr): Remove.
16241 (types_odr_comparable): Remove.
16242 (odr_vtable_hasher::equal): Remove.
16243 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16244 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16245 (get_odr_type): Do not use vtable hash.
16246 (dump_odr_type): Remove commented out code.
16247 (build_type_inheritance_graph): Do not allocate vtable hash.
16248 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16249 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16250 (odr_type_p): Likewise.
16251 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16252 test.
16253
16254 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16255
16256 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16257 immediately after same_types_for_tbaa_p returns -1 and continue
16258 looking for possible exact match; if matching types are arrays
16259 watch for partial overlaps.
16260 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16261 (indirect_refs_may_alias_p): Do type based disambiguation first;
16262 update comment.
16263
16264 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16265
16266 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16267
16268 2019-06-07 Martin Liska <mliska@suse.cz>
16269
16270 * doc/invoke.texi: Remove param.
16271 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16272 Remove.
16273 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16274 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16275 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16276 * profile.c (instrument_values): Remove
16277 HIST_TYPE_INDIR_CALL_TOPN.
16278 * tree-profile.c (init_ic_make_global_vars):
16279 Always build __gcov_indirect_call only.
16280 (gimple_init_gcov_profiler): Remove usage
16281 of PARAM_INDIR_CALL_TOPN_PROFILE.
16282 (gimple_gen_ic_profiler): Likewise.
16283 * value-prof.c (dump_histogram_value): Likewise.
16284 (stream_in_histogram_value): Likewise.
16285 (gimple_indirect_call_to_profile): Likewise.
16286 (gimple_find_values_to_profile): Likewise.
16287 * value-prof.h (enum hist_type): Likewise.
16288
16289 2019-06-07 Martin Liska <mliska@suse.cz>
16290
16291 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16292 function.
16293
16294 2019-06-07 Martin Liska <mliska@suse.cz>
16295
16296 PR tree-optimization/78902
16297 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16298 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16299 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16300 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16301 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16302 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16303 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16304 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16305 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16306 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16307 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16308 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16309 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16310 New.
16311 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16312 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16313 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16314 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16315 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16316 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16317 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16318 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16319 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16320 warn_unused_result attribute.
16321 (BUILT_IN_STRDUP): Likewise.
16322 (BUILT_IN_STRNDUP): Likewise.
16323 (BUILT_IN_ALLOCA): Likewise.
16324 (BUILT_IN_CALLOC): Likewise.
16325 (BUILT_IN_MALLOC): Likewise.
16326 (BUILT_IN_REALLOC): Likewise.
16327
16328 2019-06-06 Jim Wilson <jimw@sifive.com>
16329
16330 PR target/89955
16331 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16332 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16333 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16334
16335 2019-06-06 Martin Sebor <msebor@redhat.com>
16336
16337 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16338 (handle_builtin_malloc): Remove trailing spaces.
16339 (handle_builtin_memset): Same.
16340 (handle_builtin_memcmp): Same.
16341 (compute_string_length): Same.
16342 (determine_min_objsize): Same.
16343 (handle_builtin_string_cmp): Same.
16344 (handle_char_store): Same. Break up excessively long line.
16345
16346 2019-06-06 Martin Jambor <mjambor@suse.cz>
16347
16348 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16349 check.
16350
16351 2019-06-06 Martin Jambor <mjambor@suse.cz>
16352
16353 * tree-sra.c (struct access): New field grp_same_access_path.
16354 (dump_access): Dump it.
16355 (build_reconstructed_reference): New function.
16356 (build_ref_for_model): Use it if possible.
16357 (path_comparable_for_same_access): New function.
16358 (same_access_path_p): Likewise.
16359 (sort_and_splice_var_accesses): Set the new flag.
16360 (analyze_access_subtree): Likewise.
16361 (propagate_subaccesses_across_link): Propagate zero value of the new
16362 flag down the access tree.
16363
16364 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16365
16366 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16367 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16368 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16369 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16370 Add gfx906.
16371
16372 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16373
16374 PR tree-optimization/90332
16375 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16376 Handle VALS containing two vectors.
16377 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16378 to...
16379 (@aarch64_combinez<mode>): ... This.
16380 (*aarch64_combinez_be<mode>): Rename to...
16381 (@aarch64_combinez_be<mode>): ... This.
16382 (vec_init<mode><Vhalf>): New define_expand.
16383 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16384
16385 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16386
16387 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16388 library functions only when not optimizing for size.
16389 (ashlsi3): Likewise.
16390 (ashrhi3): Likewise.
16391 (ashrsi3): Likewise.
16392 (lshrhi3): Likewise.
16393 (lshrsi3): Likewise.
16394
16395 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16396
16397 PR rtl-optimization/88751
16398 * ira.c (ira): Use the number of the actually referenced registers
16399 when calculating the threshold.
16400
16401 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16402
16403 * configure: Regenerate.
16404
16405 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16406
16407 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16408 register if it is in memory, so the shift can be emulated with a rotate
16409 instruction.
16410 (ashrhi3): Likewise.
16411 (lshrhi3): Likewise.
16412
16413 2019-06-06 Martin Liska <mliska@suse.cz>
16414
16415 PR tree-optimization/87954
16416 * match.pd: Simplify mult where both arguments are 0 or 1.
16417
16418 2019-06-06 Richard Biener <rguenther@suse.de>
16419
16420 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16421 put equivalences on UNDEFINED ranges.
16422 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16423 Make sure to drop defs of stmts added during simplification
16424 to VARYING.
16425
16426 2019-06-06 Richard Biener <rguenther@suse.de>
16427
16428 * tree-ssa-structalias.c: Include tree-cfg.h.
16429 (make_heapvar): Do not make heap vars artificial.
16430 (find_func_aliases_for_builtin_call): Handle stack allocation
16431 functions.
16432 (find_func_aliases): Delay processing of simple enough returns
16433 in non-IPA mode.
16434 (set_uids_in_ptset): Adjust.
16435 (find_what_var_points_to): Likewise.
16436 (solve_constraints): Do not dump points-to sets here.
16437 (compute_points_to_sets): Post-process return statements,
16438 amending the escaped solution. Dump points-to sets afterwards.
16439 (ipa_pta_execute): Dump points-to sets.
16440
16441 2019-06-06 Martin Liska <mliska@suse.cz>
16442
16443 PR web/87933
16444 * doc/install.texi: Fix HTML headers and
16445 titles for 'Installing GCC' pages.
16446
16447 2019-06-06 Martin Liska <mliska@suse.cz>
16448
16449 * ipa-icf-gimple.h (dump_message_1): Remove.
16450 (dump_message): Likewise.
16451 (return_false_with_message_1): Print also file.
16452 (return_false_with_msg): Likewise.
16453 (return_with_result): Likewise.
16454 (return_with_debug): Likewise.
16455 * ipa-icf.c (sem_function::equals_private): Remove call
16456 to dump_message.
16457
16458 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16459
16460 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16461 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16462 memory operand for it.
16463 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16464
16465 2019-06-05 Martin Sebor <msebor@redhat.com>
16466
16467 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16468 Adjust quoting and hyphenation.
16469 * convert.c (convert_to_real_1): Same.
16470 * gcc.c (driver_wrong_lang_callback): Same.
16471 (driver::handle_unrecognized_options): Same.
16472 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16473 * opts-common.c (cmdline_handle_error): Same.
16474 (read_cmdline_option): Same.
16475 * opts-global.c (complain_wrong_lang): Same.
16476 (print_ignored_options): Same.
16477 (handle_common_deferred_options): Same.
16478 * pretty-print.h: Same.
16479 * print-rtl.c (debug_bb_n_slim): Same.
16480 * sched-rgn.c (make_pass_sched_fusion): Same.
16481 * tree-cfg.c (verify_gimple_assign_unary): Same.
16482 (verify_gimple_label): Same.
16483 * tree-ssa-operands.c (verify_ssa_operands): Same.
16484 * varasm.c (do_assemble_alias): Same.
16485 (assemble_alias): Same.
16486
16487 2019-06-05 Richard Henderson <rth@twiddle.net>
16488
16489 * config/alpha/alpha.c (direct_return): Move down after
16490 struct machine_function definition; use saved frame_size;
16491 return bool.
16492 (struct machine_function): Add sa_mask, sa_size, frame_size.
16493 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16494 (alpha_compute_frame_layout): ... new function.
16495 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16496 (alpha_initial_elimination_offset): Use saved sa_size.
16497 (alpha_vms_initial_elimination_offset): Likewise.
16498 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16499 (alpha_expand_prologue): Use saved frame data. Merge integer
16500 and fp register save loops.
16501 (alpha_expand_epilogue): Likewise.
16502 (alpha_start_function): Use saved frame data.
16503 * config/alpha/alpha-protos.h (direct_return): Update.
16504 (alpha_sa_size): Remove.
16505
16506 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16507
16508 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16509 multiplication by a power-of-two value.
16510 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16511 and turn the modulo operation into a masking operation.
16512
16513 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16514
16515 PR debug/90733
16516 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16517 with VOIDmode inner operands.
16518
16519 2019-06-05 Richard Biener <rguenther@suse.de>
16520
16521 PR middle-end/90726
16522 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16523 turn an expression graph into a tree.
16524
16525 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16526
16527 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16528 member.
16529 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16530 treat it like explicit monotonic schedule modifier.
16531 (expand_omp_for): Initialize has_lastprivate_conditional.
16532 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16533 schedule modifier.
16534
16535 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16536 references, lookup in in hash map MEM_REF operand instead of the
16537 MEM_REF itself.
16538 (lower_omp_1): When looking for lastprivate conditional assignments,
16539 handle MEM_REFs with REFERENCE_TYPE operands.
16540
16541 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16542 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16543 and references a VLA. Handle references to non-VLAs if is_simd
16544 all privatization clauses like reductions.
16545 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16546 If omp_is_reference, use always omp simd arrays and set
16547 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16548 fails, emit reference initialization.
16549
16550 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16551
16552 PR target/89803
16553 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16554 _mm_mask_fpclass_sd_mask): New intrinsics.
16555 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16556 * config/i386/i386-builtin.def
16557 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16558 New builtins.
16559 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16560 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16561 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16562 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16563 case QI_FTYPE_V2SF_INT): Ditto.
16564 * config/i386/sse.md
16565 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16566 Extended to insnstructions with mask operands.
16567
16568 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16569
16570 * config/rs6000/constraints.md (define_register_constraint "wp"):
16571 Delete.
16572 (define_register_constraint "wq"): Delete.
16573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16574 (rs6000_init_hard_regno_mode_ok): Adjust.
16575 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16576 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16577 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16578 (define_mode_attr VSa): Delete.
16579 (define_mode_attr VSisa): New.
16580 (rest of file): Adjust.
16581 * doc/md.texi (Machine Constraints): Adjust.
16582
16583 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16584
16585 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16586 (define_attr "enabled"): Handle those new isa values.
16587
16588 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16589
16590 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16591 (define_mode_attr VSr5): Delete.
16592 (define_mode_attr VStype_sqrt): Delete.
16593 (define_mode_iterator VSX_SPDP): Delete.
16594 (define_mode_attr VS_spdp_res): Delete.
16595 (define_mode_attr VS_spdp_insn): Delete.
16596 (define_mode_attr VS_spdp_type): Delete.
16597 (*vsx_sqrt<mode>2): Adjust.
16598 (vsx_<VS_spdp_insn>): Delete, split to...
16599 (vsx_xscvdpsp): ... this. New. And...
16600 (vsx_xvcvspdp): ... this. New. And...
16601 (vsx_xvcvdpsp): ... this. New.
16602
16603 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16604
16605 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16606 and V2DF.
16607 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16608 (rest of file): Adjust.
16609
16610 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16611
16612 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16613 (vsx_extract_<mode>_var): Ditto.
16614
16615 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16616
16617 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16618 with just "wa".
16619
16620 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16621
16622 * config/rs6000/constraints.md (define_register_constraint "ww"):
16623 Delete.
16624 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16625 (rs6000_init_hard_regno_mode_ok): Adjust.
16626 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16627 RS6000_CONSTRAINT_ww.
16628 * config/rs6000/rs6000.md: Adjust.
16629 * config/rs6000/vsx.md: Adjust.
16630 * doc/md.texi (Machine Constraints): Adjust.
16631
16632 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16633
16634 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16635 (define_mode_attr sd): New.
16636 (define_mode_attr s): New.
16637 (define_mode_attr Ftrad): Delete.
16638 (define_mode_attr Fvsx): Delete.
16639 (define_mode_attr Fs): Delete.
16640 (rest of file): Use the new mode attributes.
16641 * config.rs6000/vsx.md: Use the new mode attributes.
16642
16643 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16644
16645 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16646 with just "wa".
16647
16648 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16649
16650 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16651 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16652 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16653
16654 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16655
16656 PR target/78263
16657 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16658 C++ with strict ANSI requirements.
16659
16660 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16661
16662 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16663 computations when step is 1.
16664
16665 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16666
16667 * config/rs6000/constraints.md (define_register_constraint "wf"):
16668 Delete.
16669 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16670 (rs6000_init_hard_regno_mode_ok): Adjust.
16671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16672 RS6000_CONSTRAINT_wf.
16673 * config/rs6000/rs6000.md: Adjust.
16674 * config/rs6000/vsx.md: Adjust.
16675 * doc/md.texi (Machine Constraints): Adjust.
16676
16677 2019-06-04 Andrew Pinski <apinski@marvell.com>
16678
16679 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16680 Fix ILP32 value.
16681
16682 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16683
16684 * config/rs6000/constraints.md (define_register_constraint "wd"):
16685 Delete.
16686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16687 (rs6000_init_hard_regno_mode_ok): Adjust.
16688 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16689 RS6000_CONSTRAINT_wd.
16690 * config/rs6000/rs6000.md: Adjust.
16691 * config/rs6000/vsx.md: Adjust.
16692 * doc/md.texi (Machine Constraints): Adjust.
16693
16694 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16695
16696 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16697 (rest of file): Adjust.
16698
16699 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16700
16701 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16702 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16703 (vsx_splat_<mode>_reg): Adjust.
16704
16705 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16706
16707 * config/rs6000/constraints.md (define_register_constraint "ws"):
16708 Delete.
16709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16710 (rs6000_init_hard_regno_mode_ok): Adjust.
16711 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16712 RS6000_CONSTRAINT_ws.
16713 * config/rs6000/rs6000.md: Adjust.
16714 * config/rs6000/vsx.md: Adjust.
16715 * doc/md.texi (Machine Constraints): Adjust.
16716
16717 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16718
16719 * config/rs6000/constraints.md (define_register_constraint "wv"):
16720 Delete.
16721 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16722 (rs6000_init_hard_regno_mode_ok): Adjust.
16723 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16724 RS6000_CONSTRAINT_wv.
16725 * config/rs6000/rs6000.md: Adjust.
16726 * config/rs6000/vsx.md: Adjust.
16727 * doc/md.texi (Machine Constraints): Adjust.
16728
16729 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16730
16731 * config/rs6000/constraints.md (define_register_constraint "wi"):
16732 Delete.
16733 (define_register_constraint "wt"): Delete.
16734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16735 (rs6000_init_hard_regno_mode_ok): Adjust.
16736 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16737 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16738 * config/rs6000/rs6000.md: Adjust.
16739 * config/rs6000/vsx.md: Adjust.
16740 * doc/md.texi (Machine Constraints): Adjust.
16741
16742 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16743
16744 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16745 const.
16746 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16747 default_elf_asm_output_external.
16748
16749 2019-06-04 Martin Liska <mliska@suse.cz>
16750
16751 * ipa-icf.c (INCLUDE_LIST): Remove.
16752 (sem_item_optimizer::execute): Remove call to init_wpa.
16753 * ipa-icf.h (init_wpa): Remove.
16754
16755 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16756
16757 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16758 conditional on combined for simd.
16759 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16760 member.
16761 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16762 constructs, don't remove lastprivate_conditional_map, but instead set
16763 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16764 to parent construct temporaries.
16765 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16766 like !ctx->lastprivate_conditional_map.
16767 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16768 use up->outer context instead of up.
16769 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16770 gimple_omp_for_combined_p.
16771 (expand_omp_for_static_nochunk): Likewise.
16772 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16773 probably moved over into expand_omp_for_generic rather than being copied
16774 there.
16775
16776 2019-06-04 Martin Liska <mliska@suse.cz>
16777
16778 * value-prof.c (dump_histogram_value): Fix typo.
16779 (gimple_mod_subtract_transform): Likewise.
16780
16781 2019-06-04 Richard Biener <rguenther@suse.de>
16782
16783 PR middle-end/90726
16784 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16785 (tree_contains_chrecs): Likewise.
16786 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16787 exponential behaivor from ...
16788 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16789 ... here.
16790 (expression_expensive_p): Avoid exponential behavior and compute
16791 expanded size, rejecting any expansion.
16792 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16793 (idx_contains_abnormal_ssa_name_p): Likewise.
16794 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16795 (contains_abnormal_ssa_name_p): Simplify and use
16796 walk_tree_without_duplicates.
16797
16798 2019-06-04 Richard Biener <rguenther@suse.de>
16799
16800 PR tree-optimization/90738
16801 Revert
16802 2019-06-03 Richard Biener <rguenther@suse.de>
16803
16804 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16805 full reference tree and record in ref->ref.
16806 (vn_reference_lookup_3): Pass in original ref to
16807 ao_ref_init_from_vn_reference.
16808 (vn_reference_lookup): Likewise.
16809 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16810 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16811 Handle non-decl bases in the original reference.
16812
16813 2019-06-04 Martin Liska <mliska@suse.cz>
16814
16815 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16816 number of references.
16817 (sem_item_optimizer::do_congruence_step):
16818 (sem_item_optimizer::worklist_push): Dump how references
16819 a class has.
16820 (sem_item_optimizer::worklist_pop): Use heap.
16821 (sem_item_optimizer::process_cong_reduction): Likewise.
16822 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16823
16824 2019-06-04 Martin Liska <mliska@suse.cz>
16825
16826 * ipa-icf.h (struct sem_usage_pair_hash): New.
16827 (sem_usage_pair_hash::hash): Likewise.
16828 (sem_usage_pair_hash::equal): Likewise.
16829 (struct sem_usage_hash): Likewise.
16830 * ipa-icf.c (sem_item::sem_item): Initialize
16831 referenced_by_count.
16832 (sem_item::add_reference): Register a reference
16833 in ref_map and not in target->usages.
16834 (sem_item::setup): Remove initialization of
16835 dead vectors.
16836 (sem_item::~sem_item): Remove usage of dead vectors.
16837 (sem_item::dump): Remove dump of references.
16838 (sem_item_optimizer::sem_item_optimizer): Initialize
16839 m_references.
16840 (sem_item_optimizer::read_section): Remove useless
16841 dump.
16842 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16843 (sem_item_optimizer::build_graph): Pass m_references
16844 to ::add_reference.
16845 (sem_item_optimizer::verify_classes): Remove usage of dead
16846 vectors.
16847 (sem_item_optimizer::traverse_congruence_split): Return true
16848 when a class is split.
16849 (sem_item_optimizer::do_congruence_step_for_index): Use
16850 hash_map for look up of (sem_item *, index). That brings
16851 significant speed up.
16852 (sem_item_optimizer::do_congruence_step): Return true
16853 when a split is done.
16854 (congruence_class::is_class_used): Use referenced_by_count.
16855
16856 2019-06-04 Alan Modra <amodra@gmail.com>
16857
16858 PR target/90689
16859 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16860 error.
16861
16862 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16863
16864 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16865 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16866 (rs6000_secondary_reload_simple_move): Adjust.
16867 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16868 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16869 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16870 comment.
16871 (power6x): Adjust.
16872 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16873 (floatunssi<mode>2_lfiwzx): Adjust.
16874 (fix_trunc<mode>si2_stfiwx): Adjust.
16875 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16876 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16877 (mfpgpr): Mark as deprecated.
16878 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16879 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16880 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16881
16882 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16883
16884 * config/rs6000/constraints.md (define_register_constraint "wg"):
16885 Delete.
16886 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16887 RS6000_CONSTRAINT_wg.
16888 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16889 (rs6000_init_hard_regno_mode_ok): Adjust.
16890 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16891 Delete "wg" alternatives.
16892 * doc/md.texi (Machine Constraints): Adjust.
16893
16894 2019-06-03 Alan Modra <amodra@gmail.com>
16895
16896 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16897 (get_uncond_jump_length): Assert length less than INT_MAX and
16898 non-negative.
16899
16900 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16901
16902 PR middle-end/64242
16903 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16904 block.
16905 (expand_builtin_nonlocal_goto): Likewise.
16906
16907 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16908
16909 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16910 (aarch64_asm_output_external): Declare.
16911 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16912 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16913 (aarch64_asm_output_alias): New.
16914 (aarch64_asm_output_external): New.
16915 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16916 (ASM_OUTPUT_EXTERNAL): Define.
16917
16918 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16919 * tree-vrp.h (value_range_base::nonzero_p): New.
16920 (value_range_base::set_nonnull): Rename to...
16921 (value_range_base::set_nonzero): ...this.
16922 (value_range_base::set_null): Rename to...
16923 (value_range_base::set_zero): ...this.
16924 (value_range::set_nonnull): Remove.
16925 (value_range::set_null): Remove.
16926 * tree-vrp.c (range_is_null): Remove.
16927 (range_is_nonnull): Remove.
16928 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16929 instead of range_is_*null.
16930 (extract_range_from_unary_expr): Same.
16931 (value_range_base::set_nonnull): Rename to...
16932 (value_range_base::set_nonzero): ...this.
16933 (value_range::set_nonnull): Remove.
16934 (value_range_base::set_null): Rename to...
16935 (value_range_base::set_zero): ...this.
16936 (value_range::set_null): Remove.
16937 (extract_range_from_binary_expr): Rename set_*null uses to
16938 set_*zero.
16939 (extract_range_from_unary_expr): Same.
16940 (union_helper): Same.
16941 * vr-values.c (get_value_range): Use set_*zero instead of
16942 set_*null.
16943 (vr_values::extract_range_from_binary_expr): Same.
16944 (vr_values::extract_range_basic): Same.
16945
16946 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16947
16948 PR driver/90684
16949 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16950
16951 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16952
16953 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16954 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16955 Rename to...
16956 (aarch64_<su>abd<mode>_3): ... This.
16957 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16958
16959 2019-06-03 Richard Biener <rguenther@suse.de>
16960
16961 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16962 full reference tree and record in ref->ref.
16963 (vn_reference_lookup_3): Pass in original ref to
16964 ao_ref_init_from_vn_reference.
16965 (vn_reference_lookup): Likewise.
16966 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16967 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16968 Handle non-decl bases in the original reference.
16969
16970 2019-06-03 Martin Liska <mliska@suse.cz>
16971
16972 * doc/generic.texi: Remove Java Trees.
16973
16974 2019-06-03 Martin Liska <mliska@suse.cz>
16975
16976 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16977 returns 0 when operands are equal.
16978
16979 2019-06-03 Richard Biener <rguenther@suse.de>
16980
16981 PR tree-optimization/90716
16982 * tree-loop-distribution.c (destroy_loop): Process blocks in
16983 correct order.
16984
16985 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16986
16987 PR target/88837
16988 * vector-builder.h (vector_builder::count_dups): New method.
16989 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16990 Declare prototype.
16991 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16992 (vec_init<mode><Vel>): New pattern.
16993 * config/aarch64/aarch64.c (emit_insr): New function.
16994 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16995 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16996 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16997 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16998
16999 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17000
17001 PR tree-optimization/90681
17002 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17003 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17004 special case for SLP, but fail on non-groupped loads.
17005
17006 2019-06-03 Martin Liska <mliska@suse.cz>
17007
17008 * cfg.c (debug): Use TDF_DETAILS for debug and
17009 print edge info only once.
17010
17011 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17012
17013 PR fortran/90539
17014 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17015
17016 2019-06-01 Martin Sebor <msebor@redhat.com>
17017
17018 PR middle-end/90694
17019 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17020
17021 2019-05-31 Jan Hubicka <jh@suse.cz>
17022
17023 * alias.c: Include ipa-utils.h.
17024 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17025 * ipa-devirt.c (prevailing_odr_type): New.
17026 * ipa-utils.h (previaling_odr_type): Declare.
17027
17028 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17029 Hongtao Liu <hongtao.liu@intel.com>
17030
17031 PR target/89355
17032 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17033 NOTE_INSN_DELETED_LABEL check.
17034
17035 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17036 Robert Suchanek <robert.suchanek@mips.com>
17037
17038 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17039 and 3rd operands of the fmadd/fmsub/maddv builtin.
17040
17041 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17042
17043 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17044 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17045 on OMP_SIMD if not nested inside of worksharing loop that also has
17046 lastprivate conditional clause for the same decl.
17047 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17048 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17049 on simd.
17050 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17051 on simd construct.
17052 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17053 on simd construct.
17054 (lower_lastprivate_clauses): Likewise.
17055 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17056 calling lower_rec_input_clauses.
17057 (lower_omp_for): Likewise.
17058 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17059 clause on simd construct.
17060 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17061 OMP_CLAUSE__CONDTEMP_ clause is present.
17062
17063 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17064 ivar and lvar.
17065
17066 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17067
17068 PR c/43673
17069 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17070 TEX_D32, TEX_D64 or TEX_D128.
17071
17072 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17073
17074 * match.pd (~(vec?cst1:cst2)): New transformation.
17075
17076 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17077
17078 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17079 ((size_t)(A /[ex] B) CMP C): New transformation.
17080
17081 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17082
17083 * doc/md.texi: Document define_insn_and_rewrite.
17084 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17085 * gensupport.c (queue_elem): Update comment.
17086 (replace_operands_with_dups): New function.
17087 (gen_rewrite_sequence): Likewise.
17088 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17089 * read-rtl.c (apply_subst_iterator): Likewise.
17090 (add_condition_to_rtx, named_rtx_p): Likewise.
17091 (rtx_reader::read_rtx_operand): Likewise.
17092 * config/aarch64/aarch64-sve.md
17093 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17094 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17095 define_insn_and_rewrite.
17096 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17097 Remove separate define_split.
17098
17099 2019-05-31 Jan Hubicka <jh@suse.cz>
17100
17101 * tree-ssa-alias.c (type_has_components_p): New function.
17102 (aliasing_component_refs_p): Use it.
17103
17104 2019-05-31 Martin Liska <mliska@suse.cz>
17105
17106 * gdbhooks.py: Add const_tree to TreePrinter.
17107
17108 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17109
17110 PR debug/86964
17111 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17112 * doc/invoke.texi (Debugging Options): Document new default of
17113 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17114
17115 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17116
17117 PR tree-optimization/90671
17118 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17119 template_block used to be empty on the first call, don't use
17120 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17121 seq with bb_seq and set it with set_bb_seq.
17122
17123 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17124
17125 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17126
17127 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17128 Michael Meissner <meissner@linux.ibm.com>
17129
17130 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17131 (prefixed_mem_operand): Likewise.
17132 (non_prefixed_mem_operand): Likewise.
17133 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17134 prototype.
17135 * config/rs6000/rs6000.c (print_operand_address): Handle
17136 PC-relative addresses.
17137 (mode_supports_prefixed_address_p): New function.
17138 (rs6000_prefixed_address): New function.
17139 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17140 (SYMBOL_REF_PCREL_P): Likewise.
17141
17142 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17143
17144 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17145 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17146 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17147 is nested inside of parallel region, add _condtemp_ clause to both.
17148 * tree-nested.c (convert_nonlocal_omp_clauses,
17149 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17150 assertion failure.
17151 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17152 member.
17153 * omp-general.c (omp_extract_for_data): Compute it.
17154 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17155 (lower_rec_input_clauses): Likewise.
17156 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17157 clause is already present, just add one further one after it.
17158 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17159 (lower_send_shared_vars): Clear _condtemp_ vars.
17160 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17161 or section or taskgroup.
17162 * omp-expand.c (determine_parallel_type): Disallow combining only if
17163 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17164 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17165 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17166 expand_omp_for_static_chunk, expand_omp_for): Use
17167 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17168 determine if a special set of API routines are needed and if condtemp
17169 needs to be initialized, while always initialize cond_var if
17170 fd->lastprivate_conditional is non-zero.
17171
17172 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17173 Michael Meissner <meissner@linux.ibm.com>
17174
17175 * config/rs6000/constraints.md (eI): New constraint.
17176 * config/rs6000/predicates.md (cint34_operand): New predicate.
17177 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17178 (SIGNED_34BIT_OFFSET_P): Likewise.
17179 * doc/md.texi (eI): Document constraint.
17180
17181 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17182
17183 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17184
17185 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17186 Michael Meissner <meissner@linux.ibm.com>
17187
17188 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17189 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17190 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17191 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17192 (OTHER_FUTURE_MASKS): Likewise.
17193 (POWERPC_MASKS): Likewise.
17194 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17195 specified without -mprefixed-addr or -mcpu=future. Error if
17196 -mprefixed-addr is specified without -mcpu=future.
17197 (rs6000_opt_masks): Add entry for prefixed-addr.
17198 * rs6000.opt (mprefixed-addr): New option.
17199
17200 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17201
17202 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17203 cfun->is_thunk check.
17204
17205 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17206
17207 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17208 to length.
17209
17210 2019-05-30 Martin Liska <mliska@suse.cz>
17211
17212 * gdbinit.in: Fix 'ptc' command. Add trt
17213 that prints TREE_TYPE($).
17214
17215 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17216 Alan Modra <amodra@gmail.com>
17217
17218 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17219 calls here...
17220 (rs6000_indirect_call_template_1): ...and here.
17221 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17222 plt16_ha, plt16_lo, mtctr indirect calls. Use
17223 rs6000_pltseq_enum.
17224 (rs6000_decl_ok_for_sibcall): New function.
17225 (rs6000_function_ok_for_sibcall): Refactor.
17226 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17227 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17228 when pcrel. Reorganize.
17229 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17230 * rs6000.h (rs6000_pltseq_enum): New enum.
17231 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17232 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17233 (*pltseq_plt16_ha): Likewise.
17234 (*pltseq_plt16_lo): Likewise.
17235 (*pltseq_mtctr): Likewise.
17236 (*pltseq_plt_pcrel): New insn.
17237 (*call_local_aix): Handle @notoc calls.
17238 (*call_value_local_aix): Likewise.
17239 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17240 (*call_value_nonlocal_aix): Likewise.
17241 (*call_indirect_pcrel): New insn.
17242 (*call_value_indirect_pcrel): Likewise.
17243
17244 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17245
17246 * config/i386/sse.md (*save_multiple<mode>): Rename from
17247 save_multiple<mode>.
17248 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17249 (*restore_multiple_and_return<mode>): Rename from
17250 restore_multiple_and_return<mode>.
17251 (*restore_multiple_leave_return<mode>): Rename from
17252 restore_multiple_leave_return<mode>.
17253
17254 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17255
17256 * config.gcc (rx-*-linux*): New target.
17257 * config/rx/elf.opt: New file.
17258 * config/rx/linux.h: Likewise.
17259 * config/rx/t-linux: Likewise.
17260 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17261 make it zero.
17262 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17263 (ASM_APP_OFF): Likewise.
17264 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17265 moved elsewhere.
17266
17267 2019-05-29 Jan Hubicka <jh@suse.cz>
17268
17269 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17270 variants are pointer equivalent.
17271
17272 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17273
17274 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17275 * config/aarch64/aarch64-sve2.md: New file.
17276 (<u>avg<mode>3_floor): New pattern.
17277 (<u>avg<mode>3_ceil): Likewise.
17278 (*<sur>h<addsub><mode>): Likewise.
17279 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17280 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17281
17282 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17283
17284 PR bootstrap/90543
17285 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17286 for var_opt_string printing. In cl_optimization_print_diff, print
17287 (null) instead of invoking undefined behavior if one of the
17288 var_opt_string pointers is NULL and use && instead of first || in the
17289 guarding condition. For var_target_other options, handle const char *
17290 target variables similarly to const char * optimize node variables.
17291
17292 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17293
17294 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17295 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17296 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17297 Add autib1716 and pacib1716 initialisation.
17298 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17299 for autib1716 and pacib1716.
17300 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17301 aarch64_post_cfi_startproc): Define.
17302 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17303 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17304 aarch64_handle_pac_ret_protection): Set default sign key to A.
17305 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17306 aarch64_expand_prologue): Add check for b-key.
17307 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17308 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17309 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17310 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17311 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17312 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17313 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17314 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17315 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17316 pauth_hint_num_a with pauth_hint_num.
17317 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17318 pauth_hint_num_a with pauth_hint_num.
17319 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17320 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17321 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17322 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17323 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17324 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17325 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17326 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17327 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17328 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17329 UNSPEC_AUTIA1716 respectively.
17330 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17331 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17332 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17333 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17334 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17335 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17336
17337 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17338
17339 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17340 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17341 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17342 explicit clause on combined parallel into implicit shared clause.
17343 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17344 and firstprivate if the decl has one too from combined parallel to
17345 the worksharing construct.
17346
17347 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17348 Michael Meissner <meissner@linux.ibm.com>
17349
17350 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17351
17352 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17353
17354 * rtl.h (LABEL_REF_P): New #define.
17355
17356 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17357
17358 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17359
17360 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17361
17362 * internal-fn.c: Marked mask_load_direct as vectorizable.
17363 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17364 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17365 combined even if masks different with allow_slp_p param.
17366 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17367 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17368 dissolve SLP-only vectorizable groups when SLP has been discarded.
17369 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17370 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17371 masks.
17372 (vect_build_slp_tree_1): Fixed comment typo.
17373 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17374 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17375 loads for SLP only.
17376 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17377 vectorizable.
17378 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17379
17380 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17381
17382 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17383 Remove obsolete use_thunk reference.
17384 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17385 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17386 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17387 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17388 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17389 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17390 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17391 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17392 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17393
17394 2019-05-28 Nathan Sidwell <nathan@acm.org>
17395
17396 * tree.h (IDENTIFIER_ANON_P): New.
17397 (anon_aggrname_format, anon_aggname_p): Don't declare.
17398 (make_anon_name): Declare.
17399 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17400 (hash_tree): Likewise.
17401 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17402 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17403 (anon_cnt, make_anon_name): New.
17404
17405 2019-05-28 Martin Liska <mliska@suse.cz>
17406
17407 PR other/90315
17408 * opts-global.c (decode_options): Print help for all
17409 help_option_arguments.
17410 * opts.c (print_help): Add new argument.
17411 (common_handle_option): Remember all values into
17412 help_option_arguments.
17413 * opts.h (print_help): Add new argument.
17414
17415 2019-05-28 Martin Liska <mliska@suse.cz>
17416
17417 PR ipa/90555
17418 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17419 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17420 (func_checker::compare_bb): Call compare_loops.
17421
17422 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17423
17424 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17425 on sections construct.
17426 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17427 construct.
17428 (lower_omp_sections): Handle lastprivate conditional.
17429 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17430 lastprivate_conditional_map.
17431 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17432
17433 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17434 critical, taskgroup and section regions when looking for a region
17435 with non-NULL lastprivate_conditional_map.
17436
17437 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17438
17439 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17440 (*ix86_gen_sub3): Ditto.
17441 (*ix86_gen_sub3_carry): Ditto.
17442 (*ix86_gen_one_cmpl2): Ditto.
17443 (*ix86_gen_andsp): Ditto.
17444 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17445 (gen_and2_insn): New static function.
17446 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17447 Use gen_add3_insn instead of ix86_gen_add3.
17448 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17449 instead of ix86_gen_add3.
17450 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17451 Use gen_sub3_insn instead of ix86_gen_sub3.
17452 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17453 instead of ix86_gen_add3.
17454 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17455 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17456 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17457 * config/i386/i386-options.c (ix86_option_override_internal):
17458 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17459 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17460
17461 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17462
17463 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17464 and DW_OP_GNU_const_index opcodes.
17465
17466 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17467
17468 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17469
17470 2019-05-27 Richard Biener <rguenther@suse.de>
17471
17472 PR tree-optimization/90637
17473 * tree-ssa-sink.c (statement_sink_location): Honor the
17474 computed sink location for single-uses.
17475
17476 2019-05-27 Richard Biener <rguenther@suse.de>
17477
17478 PR middle-end/90610
17479 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17480 a bit-insert.
17481
17482 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17483
17484 * config/i386/i386.md (@sub<mode>3_carry): Rename
17485 from sub<mode>3_carry.
17486 (@leave_<mode>): New expander.
17487 (*leave): Rename from leave.
17488 (*leave_rex64): Rename from leave_rex64.
17489 (@monitorx_<mode>): Rename from monitorx_<mode>.
17490 (@clzero_<mode>): Rename from clzero_<mode>.
17491 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17492 from sse3_monitor_<mode>.
17493 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17494 (*ix86_gen_leave): Ditto.
17495 (*ix86_gen_monitor): Ditto.
17496 (*ix86_gen_monitorx): Ditto.
17497 (*ix86_gen_clzero): Ditto.
17498 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17499 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17500 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17501 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17502 Use gen_sse3_monitor instead of ix86_gen_monitor.
17503 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17504 instead of ix86_gen_monitorx.
17505 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17506 instead of ix86_gen_clzero.
17507 * config/i386/i386-options.c (ix86_option_override_internal):
17508 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17509 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17510
17511 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17512
17513 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17514 Rename from tls_global_dynamic_64_<mode>.
17515 (@tls_local_dynamic_base_64_<mode>): Rename from
17516 tls_local_dynamic_base_64_<mode>.
17517 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17518 Remove indirect function.
17519 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17520 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17521 instead of ix86_gen_tls_global_dynamic_64.
17522 Use gen_tls_local_dynamic_base_64 instead of
17523 ix86_gen_tls_local_dynamic_base_64.
17524 * config/i386/i386-options.c (ix86_option_override_internal):
17525 Do not initialize ix86_gen_tls_global_dynamic_64 and
17526 ix86_gen_tls_local_dynamic_base_64.
17527
17528 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17529
17530 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17531 Rename from pro_epilogue_adjust_stack_<mode>_add.
17532 (@pro_epilogue_adjust_stack_sub_<mode>)
17533 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17534 (@allocate_stack_worker_probe_<mode>):
17535 Rename from allocate_stack_worker_probe_<mode>.
17536 (allocate_stack): Use gen_allocate_stack_worker_probe.
17537 (probe_stack): Use gen_probe_stack_1.
17538 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17539 (@adjust_stack_and_probe_<mode>): Rename from
17540 adjust_stack_and_probe<mode>.
17541 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17542 (stack_protect_set): Use gen_stack_protect_set_1.
17543 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17544 (stack_protect_test): Use gen_stack_protect_test_1.
17545 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17546 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17547 Remove indirect function.
17548 (*ix86_gen_adjust_stack_and_probe): Ditto.
17549 (*ix86_gen_probe_stack_range): Ditto.
17550 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17551 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17552 (ix86_adjust_stack_and_probe_stack_clash): Use
17553 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17554 (ix86_adjust_stack_and_probe): Ditto.
17555 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17556 of ix86_gen_probe_stack_range.
17557 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17558 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17559 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17560 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17561 CODE_FOR_stack_protect_test_{si,di}.
17562 * config/i386/i386-options.c (ix86_option_override_internal):
17563 Do not initialize ix86_gen_allocate_stack_worker,
17564 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17565
17566 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17567
17568 * doc/invoke.texi (Link Options): Many editorial changes around
17569 -flinker-output.
17570
17571 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17572
17573 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17574 pre-Solaris 11 referene and most Studio compiler details.
17575
17576 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17577
17578 PR target/90530
17579 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17580 DImode to SImode in floating-point registers on 64-bit target.
17581 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17582 register_operand in xmpyu patterns.
17583
17584 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17585
17586 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17587 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17588 OMP_CLAUSE__REDUCTEMP_.
17589 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17590 OMP_CLAUSE__CONDTEMP_.
17591 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17592 * tree-pretty-print.c (dump_omp_clause): Likewise.
17593 * tree-nested.c (convert_nonlocal_omp_clauses,
17594 convert_local_omp_clauses): Likewise.
17595 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17596 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17597 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17598 on OMP_FOR.
17599 (gimplify_omp_for): Warn and disable conditional modifier from
17600 lastprivate on loop iterators.
17601 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17602 member.
17603 * omp-general.c (omp_extract_for_data): Initialize it.
17604 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17605 member.
17606 (delete_omp_context): Delete it.
17607 (lower_lastprivate_conditional_clauses): New function.
17608 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17609 handle lastprivate conditional clauses.
17610 (lower_reduction_clauses): Add CLIST argument, emit it into
17611 the critical section if any.
17612 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17613 lower_reduction_clauses callers.
17614 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17615 to lower_lastprivate_clauses.
17616 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17617 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17618 clist into a critical section if not emitted there already by
17619 lower_reduction_clauses.
17620 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17621 callers.
17622 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17623 conditional variables.
17624 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17625 clause is present.
17626 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17627 expand_omp_for_static_chunk): Handle lastprivate conditional.
17628 (expand_omp_for): Handle fd.lastprivate_conditional like
17629 fd.have_reductemp.
17630
17631 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17632
17633 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17634 kernel does not exit cleanly.
17635 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17636
17637 2019-05-24 Jason Merrill <jason@redhat.com>
17638
17639 Revert:
17640 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17641
17642 2019-05-24 Richard Biener <rguenther@suse.de>
17643
17644 PR testsuite/90607
17645 * tree-loop-distribution.c (struct partition): Add location
17646 member.
17647 (partition_alloc): Initialize all fields.
17648 (generate_memset_builtin): Use the location recorded in the
17649 partition for the generated call.
17650 (generate_memcpy_builtin): Likewise.
17651 (classify_partition): Record the location of a single store
17652 as location for the partition.
17653
17654 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17655
17656 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17657 for lo-part.
17658
17659 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17660
17661 PR target/90588
17662 * common/config/aarch64/aarch64-common.c
17663 (aarch64_rewrite_selected_cpu): Change local temporary variable
17664 type from unsigned long to uint64_t.
17665 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17666 aarch64_get_extension_string_for_isa_flags): Change declaration to
17667 match new definition by replacing unsigned long with uint64_t.
17668
17669 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17670
17671 PR target/90568
17672 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17673 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17674 Handle stack_protect_test_<mode> codegen similarly to corresponding
17675 sub instruction.
17676
17677 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17678
17679 * config/i386/darwin.h: Reject -mfentry*.
17680 * doc/sourcebuild.texi: Document mfentry target support.
17681
17682 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17683
17684 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17685 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17686 false for PC-relative functions.
17687 (rs6000_output_function_prologue): Change called function name to
17688 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17689 name,1" for PC-relative functions.
17690 (rs6000_elf_declare_function_name): Change called function name to
17691 rs6000_global_entry_point_prologue_needed_p.
17692
17693 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17694
17695 PR target/90552
17696 * config/i386/i386.c (gen_rtx_cost):
17697 Use ix86_tune_cost instead of ix86_cost.
17698
17699 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17700 Michael Meissner <meissner@linux.ibm.com>
17701 Segher Boessenkool <segher@kernel.crashing.org>
17702
17703 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17704 OPTION_MASK_PCREL.
17705 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17706 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17707 (rs6000_fndecl_pcrel_p): Likewise.
17708 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17709 error if -mpcrel is requested without -mcpu=future.
17710 (rs6000_opt_masks): Add entry for pcrel.
17711 (rs6000_fndecl_pcrel_p): New function.
17712 (rs6000_pcrel_p): Likewise.
17713 * config/rs6000/rs6000.opt (mpcrel): New option.
17714 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17715
17716 2019-05-23 Jan Hubicka <jh@suse.cz>
17717 Martin Liska <mliska@suse.cz>
17718
17719 PR tree-optimization/90576
17720 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17721 poly_int_tree_p.
17722 (aliasing_component_refs_p): Fix three way size compare conditional;
17723 give up earlier in case we can not decide on equivalence.
17724
17725 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17726 Michael Meissner <meissner@linux.ibm.com>
17727 Segher Boessenkool <segher@kernel.crashing.org>
17728
17729 * config.gcc: Add future cpu.
17730 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17731 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17732 #define.
17733 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17734 (RS6000_CPU): New instantiation for future cpu.
17735 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17736 PROCESSOR_FUTURE.
17737 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17738 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17739 * config/rs6000/rs6000-tables.opt: Regenerate.
17740 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17741 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17742 (rs6000_machine_from_flags): Handle future cpu.
17743 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17744 PROCESSOR_POWER9 for now.
17745 (rs6000_adjust_cost): Likewise.
17746 (rs6000_issue_rate): Likewise.
17747 (rs6000_register_move_cost): Likewise.
17748 (rs6000_opt_masks): Add entry for future.
17749 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17750 (MASK_FUTURE): New #define.
17751 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17752 * config/rs6000/rs6000.opt (mfuture): New target option.
17753 * doc/invoke.texi (mcpu): Add future cpu.
17754
17755 2019-05-23 Martin Liska <mliska@suse.cz>
17756
17757 PR c++/90587
17758 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17759 operation points to a temporary (pointed via tree_to_wide_ref)
17760 that is out of scope after the &.
17761
17762 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17763
17764 PR c++/90592
17765 * doc/extend.texi (Function Names): Add missing word.
17766
17767 2019-05-23 Richard Biener <rguenther@suse.de>
17768
17769 PR tree-optimization/88440
17770 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17771 at -O[2s]+.
17772 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17773 generated call.
17774 (generate_memcpy_builtin): Likewise.
17775 (distribute_loop): Pass in whether to only distribute patterns.
17776 (prepare_perfect_loop_nest): Also allow size optimization.
17777 (pass_loop_distribution::execute): When optimizing a loop
17778 nest for size allow pattern replacement.
17779
17780 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17781
17782 PR target/90568
17783 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17784 of xor.
17785
17786 2019-05-23 Martin Liska <mliska@suse.cz>
17787
17788 PR sanitizer/90570
17789 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17790 expression similarly to gimplify_decl_expr.
17791
17792 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17793
17794 * cse.c (cse_dump_path): s/dump_file/f.
17795
17796 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17797
17798 PR c++/90462
17799 * diagnostic-format-json.cc: Include "selftest.h".
17800 (json_from_expanded_location): Only add "file" key for non-NULL
17801 file strings.
17802 (json_from_location_range): Don't add "start" and "finish"
17803 children if they are UNKNOWN_LOCATION.
17804 (selftest::test_unknown_location): New selftest.
17805 (selftest::test_bad_endpoints): New selftest.
17806 (selftest::diagnostic_format_json_cc_tests): New function.
17807 * json.cc (json::object::get): New function.
17808 (selftest::test_object_get): New selftest.
17809 (selftest::json_cc_tests): Call it.
17810 * json.h (json::object::get): New decl.
17811 * selftest-run-tests.c (selftest::run_tests): Call
17812 selftest::diagnostic_format_json_cc_tests.
17813 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17814 decl.
17815
17816 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17817 Andrew Stubbs <amd@codesourcery.com>
17818
17819 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17820 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17821 (kernel): Rename to...
17822 (main_kernel): ... this.
17823 (load_image): Load _init_array and _fini_array kernels.
17824 (run): Add argument for kernel to run.
17825 (main): Run init_array_kernel before main_kernel, and
17826 fini_array_kernel after.
17827 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17828 amdgpu_hsa_kernel attribute on functions.
17829 (gcn_disable_constructors): Delete.
17830 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17831 * config/gcn/crt0.c (size_t): Define.
17832 (_init_array, _fini_array): New.
17833 (__preinit_array_start, __preinit_array_end,
17834 __init_array_start, __init_array_end,
17835 __fini_array_start, __fini_array_end): Declare weak references.
17836
17837 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17838
17839 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17840
17841 2019-05-22 Jason Merrill <jason@redhat.com>
17842
17843 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17844
17845 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17846
17847 PR target/88483
17848 * config/i386/i386-options.c (ix86_init_machine_status): Set
17849 stack_frame_required to true.
17850 * config/i386/i386.c (ix86_get_frame_size): New function.
17851 (ix86_frame_pointer_required): Replace get_frame_size with
17852 ix86_get_frame_size.
17853 (ix86_compute_frame_layout): Likewise.
17854 (ix86_find_max_used_stack_alignment): Changed to void. Set
17855 stack_frame_required.
17856 (ix86_finalize_stack_frame_flags): Always call
17857 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17858 ix86_get_frame_size.
17859 * config/i386/i386.h (machine_function): Add stack_frame_required.
17860
17861 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17862
17863 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17864
17865 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17866
17867 * common/config/aarch64/aarch64-common.c
17868 (struct aarch64_option_extension, struct processor_name_to_arch,
17869 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17870 aarch64_contains_opt,
17871 aarch64_get_extension_string_for_isa_flags): Change type of
17872 variables storing flags to uint64_t.
17873 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17874 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17875 * config/aarch64/aarch64.c (struct processor,
17876 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17877 aarch64_validate_march, aarch64_override_options,
17878 aarch64_option_print, aarch64_handle_attr_isa_flags,
17879 aarch64_declare_function_name, aarch64_start_file): Make flag
17880 variables uint64_t.
17881 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17882 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17883 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17884 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17885 * config/aarch64/driver-aarch64.c
17886 (struct aarch64_arch_extension, struct aarch64_core_data,
17887 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17888 flag variables uint64_t.
17889 * doc/invoke.texi: Add documentation for new arguments.
17890
17891 2019-05-22 Richard Biener <rguenther@suse.de>
17892
17893 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17894 rewrite ...
17895 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17896
17897 2019-05-22 Martin Liska <mliska@suse.cz>
17898
17899 PR lto/90500
17900 * doc/extend.texi: Document the change.
17901
17902 2019-05-22 Richard Biener <rguenther@suse.de>
17903
17904 PR tree-optimization/90450
17905 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17906 (mem_ref_hasher::equal): Check it.
17907 (mem_ref_alloc): Initialize it.
17908 (gather_mem_refs_stmt): Set it.
17909
17910 2019-05-22 Richard Biener <rguenther@suse.de>
17911
17912 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17913 Add ABS_EXPR.
17914 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17915 as ABSU_EXPR.
17916
17917 2019-05-22 Alan Modra <amodra@gmail.com>
17918
17919 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17920 (ASM_CPU_SPEC): Conditionally add -many.
17921 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17922 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17923 (rs6000_file_start): ..extracted from here, and modified to
17924 test all ISA bits.
17925 (rs6000_output_function_prologue): Emit .machine as necessary.
17926
17927 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17928
17929 PR middle-end/90553
17930 * ira-lives.c (process_bb_node_lives): Consider defs
17931 for a call insn to be die before the call, not after.
17932
17933 * function.c (assign_parm_setup_block): Raise alignment of
17934 stacked parameter only for STRICT_ALIGNMENT targets.
17935
17936 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17937
17938 * config/rs6000/constraints.md (define_register_constraint "wz"):
17939 Delete.
17940 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17941 RS6000_CONSTRAINT_wz.
17942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17943 (rs6000_init_hard_regno_mode_ok): Adjust.
17944 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17945 * doc/md.texi (Machine Constraints): Adjust.
17946
17947 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17948
17949 * config/rs6000/constraints.md (define_register_constraint "wl"):
17950 Delete.
17951 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17952 RS6000_CONSTRAINT_wl.
17953 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17954 (rs6000_init_hard_regno_mode_ok): Adjust.
17955 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17956 * doc/md.texi (Machine Constraints): Adjust.
17957
17958 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17959
17960 * config/rs6000/constraints.md (define_register_constraint "wm"):
17961 Delete.
17962 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17963 RS6000_CONSTRAINT_wm.
17964 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17965 (rs6000_init_hard_regno_mode_ok): Adjust.
17966 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17967 * doc/md.texi (Machine Constraints): Adjust.
17968
17969 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17970
17971 * config/rs6000/constraints.md (define_register_constraint "wk"):
17972 Delete.
17973 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17974 RS6000_CONSTRAINT_wk.
17975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17976 (rs6000_init_hard_regno_mode_ok): Adjust.
17977 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17978 * doc/md.texi (Machine Constraints): Adjust.
17979
17980 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17981
17982 * config/rs6000/constraints.md (define_register_constraint "wj"):
17983 Delete.
17984 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17985 RS6000_CONSTRAINT_wj.
17986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17987 (rs6000_init_hard_regno_mode_ok): Adjust.
17988 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17989 (VS_64dm): Delete.
17990 * config/rs6000/vsx.md: Ditto.
17991 * doc/md.texi (Machine Constraints): Adjust.
17992
17993 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17994
17995 * config/rs6000/constraints.md (define_register_constraint "wh"):
17996 Delete.
17997 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17998 RS6000_CONSTRAINT_wh.
17999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18000 (rs6000_init_hard_regno_mode_ok): Adjust.
18001 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18002 * doc/md.texi (Machine Constraints): Adjust.
18003
18004 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18005
18006 PR target/90547
18007 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18008 Avoid calling gen_lowpart with CONST operand.
18009
18010 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18011
18012 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18013 field template_last_to_copy.
18014 (ssa_create_duplicates): Set it, and use it. Attempt to
18015 preserve more debug stmts.
18016
18017 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18018
18019 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18020 (signbit<mode>2): New expander
18021
18022 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18023
18024 PR bootstrap/87338
18025 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18026 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18027
18028 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18029
18030 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18031 %ebx and %ecx bafore calling cpuid with leaf 1 or
18032 non-constant leaf argument.
18033
18034 2019-05-21 Alan Modra <amodra@gmail.com>
18035
18036 PR target/90545
18037 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18038 power9 direct move cost.
18039
18040 2019-05-21 Richard Biener <rguenther@suse.de>
18041
18042 PR middle-end/90510
18043 * fold-const.c (fold_read_from_vector): New function.
18044 * fold-const.h (fold_read_from_vector): Declare.
18045 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18046 single-element insert permutations. Canonicalize selector
18047 further and fix issue with last commit.
18048
18049 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18050
18051 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18052 parameter with default value false to declaration.
18053 (split_edges_for_insertion): New inline function. Wrapper for
18054 split_critical_edges with for_edge_insertion_p = true.
18055 * tree-cfg.c (split_critical_edges): Don't split non-critical
18056 edges if for_edge_insertion_p is false. Fix whitespace.
18057 * tree-ssa-pre.c (pass_pre::execute): Call
18058 split_edges_for_insertion instead of split_critical_edges.
18059 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18060 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18061 (pass_data_sink_code): Update function name in the comment.
18062
18063 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18064
18065 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18066 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18067 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18068 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18069 positives.
18070
18071 2019-05-21 Martin Liska <mliska@suse.cz>
18072
18073 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18074 an extra newline.
18075 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18076 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18077 vec_lvsr.
18078 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18079 Quote a C type.
18080 (rs6000_function_arg): Likewise.
18081 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18082 (rs6000_expand_ternop_builtin): Use interval syntax.
18083 (get_element_number): Likewise.
18084 (altivec_expand_builtin): Likewise.
18085 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18086
18087 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18088
18089 PR c++/59813
18090 PR target/90418
18091 * function.h (struct function): Add calls_eh_return member.
18092 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18093 gimplifying __builtin_eh_return call.
18094 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18095 to cfun.
18096 (expand_call_inline): Or in src_cfun->calls_eh_return into
18097 dst_cfun->calls_eh_return.
18098 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18099 cfun->calls_eh_return.
18100 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18101 * lto-streamer-out.c (output_struct_function_base): Write
18102 calls_eh_return.
18103
18104 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18105
18106 PR rtl-optimization/43147
18107 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18108 IX86_BUILTIN_SHUFPD.
18109
18110 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18111
18112 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18113 (refs_may_alias_p_1): ... here; update stats.
18114 (refs_may_alias_p): Do not update stats here.
18115
18116 2019-05-20 Richard Biener <rguenther@suse.de>
18117
18118 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18119 doesn't produce pointers.
18120 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18121 the first operand points to.
18122
18123 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18124
18125 * tree-ssa-alias.c (compare_sizes): New function.
18126 (sompare_type_sizes): New function
18127 (aliasing_component_refs_p): Use it.
18128 (indirect_ref_may_alias_decl_p): Likewise.
18129
18130 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18131
18132 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18133
18134 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18135
18136 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18137 (LIBLSAN_EARLY_SPEC): Likewise.
18138 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18139
18140 2019-05-20 Martin Liska <mliska@suse.cz>
18141
18142 * config/i386/i386.c (ix86_libc_has_fast_function):
18143 Add ATTRIBUTE_UNUSED for the argument.
18144
18145 2019-05-20 Richard Biener <rguenther@suse.de>
18146
18147 * gimple-match-head.c: Include vec-perm-indices.h.
18148 * generic-match-head.c: Likewise.
18149 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18150 is included.
18151 * fold-const.c (fold_vec_perm): Export.
18152 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18153 (match.pd): ...here.
18154
18155 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18156
18157 * cfgloop.h (struct loop): Add simdlen member.
18158 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18159 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18160 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18161 as new argument to autovectorize_vector_sizes target hook. If
18162 loop->simdlen, pick up vector size where the vectorization factor
18163 is equal to loop->simd, and if there is none, fall back to the first
18164 successful one.
18165 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18166 caller.
18167 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18168 * omp-general.c (omp_max_vf): Likewise.
18169 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18170 * tree-vect-slp.c (vect_slp_bb): Likewise.
18171 * target.def (autovectorize_vector_sizes): Add ALL argument and
18172 document it.
18173 * doc/tm.texi: Adjust documentation.
18174 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18175 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18176 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18177 bool argument.
18178 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18179 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18180 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18181 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18182 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18183 preferred vector size is not 512-bit or 256-bit, just put those
18184 unpreferred ones last.
18185
18186 2019-05-20 Martin Liska <mliska@suse.cz>
18187
18188 * targhooks.c (default_libc_has_fast_function): New function.
18189 * targhooks.h (default_libc_has_fast_function): Likewise.
18190
18191 2019-05-20 Martin Liska <mliska@suse.cz>
18192
18193 PR middle-end/90263
18194 * builtins.c (expand_builtin_memory_copy_args): When having a
18195 target with fast mempcpy implementation do now use memcpy.
18196 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18197 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18198 * doc/tm.texi: Likewise.
18199 * doc/tm.texi.in: Likewise.
18200 * target.def:
18201 * expr.c (emit_block_move_hints): Add 2 new arguments.
18202 * expr.h (emit_block_move_hints): Bail out when libcall
18203 to memcpy would be used.
18204
18205 2019-05-20 Martin Liska <mliska@suse.cz>
18206
18207 * profile-count.c: Add vertical spacing in order
18208 to separate functions.
18209 * profile-count.h: Likewise.
18210
18211 2019-05-20 Martin Liska <mliska@suse.cz>
18212
18213 * profile-count.h: Do not use full qualified
18214 names if possible.
18215 * profile-count.c (profile_count::to_frequency): Likewise.
18216
18217 2019-05-20 Martin Liska <mliska@suse.cz>
18218
18219 * profile-count.h (enum profile_quality): Use capital letters
18220 for enum value names. Use the adjusted names.
18221 * profile-count.c: Use the adjusted names.
18222
18223 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18224
18225 * config/rs6000/constraints.md (define_register_constraint "wH"):
18226 Delete.
18227 (define_register_constraint "wI"): Delete.
18228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18229 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18230 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18231 (rs6000_init_hard_regno_mode_ok): Adjust.
18232 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18233 resp. "d", or with "wa" as appropriate, all with "p8v".
18234 * config/rs6000/vsx.md: Ditto.
18235 * doc/md.texi (Machine Constraints): Adjust.
18236
18237 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18238
18239 * config/rs6000/constraints.md (define_register_constraint "wy"):
18240 Delete.
18241 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18242 RS6000_CONSTRAINT_wy.
18243 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18244 (rs6000_init_hard_regno_mode_ok): Adjust.
18245 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18246 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18247 (define_mode_attr Fisa): New.
18248 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18249 * doc/md.texi (Machine Constraints): Adjust.
18250
18251 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18252
18253 * config/rs6000/constraints.md (define_register_constraint "wu"):
18254 Delete.
18255 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18256 RS6000_CONSTRAINT_wu.
18257 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18258 (rs6000_init_hard_regno_mode_ok): Adjust.
18259 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18260 both with "p8v".
18261 (define_mode_attr Fa): Delete.
18262 * config/rs6000/vsx.md: Ditto.
18263 * doc/md.texi (Machine Constraints): Adjust.
18264
18265 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18266
18267 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18268 Delete.
18269 (define_register_constraint "wK"): Delete.
18270 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18271 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18272 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18273 (rs6000_init_hard_regno_mode_ok): Adjust.
18274 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18275 Replace "wK" constraint by "wH" with "p9v".
18276 * config/rs6000/vsx.md: Ditto.
18277 * doc/md.texi (Machine Constraints): Adjust.
18278
18279 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18280
18281 * config/rs6000/constraints.md (define_register_constraint "wb"):
18282 Delete.
18283 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18284 RS6000_CONSTRAINT_wb.
18285 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18286 (rs6000_init_hard_regno_mode_ok): Adjust.
18287 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18288 * config/rs6000/vsx.md: Ditto.
18289 * doc/md.texi (Machine Constraints): Adjust.
18290
18291 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18292
18293 * config/rs6000/constraints.md (define_register_constraint "wo"):
18294 Delete.
18295 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18296 RS6000_CONSTRAINT_wo.
18297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18298 (rs6000_init_hard_regno_mode_ok): Adjust.
18299 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18300 * config/rs6000/altivec.md: Ditto.
18301 * doc/md.texi (Machine Constraints): Adjust.
18302
18303 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18304
18305 * config/darwin-c.c (darwin_register_objc_includes): Do not
18306 prepend the sysroot when building gnu-runtime header search
18307 paths.
18308
18309 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18310
18311 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18312 instead of direct output of the asm.
18313
18314 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18315
18316 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18317 argument to be type bool (was int before).
18318 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18319 at first use. Use type bool for some variables. Fix a theoretical
18320 eh_return bug for svr4.
18321
18322 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18323
18324 * config/rs6000/rs6000.md (isa): New attribute.
18325 (enabled): New attribute.
18326
18327 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18328
18329 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18330 assemble_start_function and assemble_end_function.
18331
18332 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18333
18334 PR middle-end/89433
18335 * omp-general.c (oacc_verify_routine_clauses): Change formal
18336 parameters. Add checking if already marked with an OpenACC
18337 'routine' directive. Adjust all users.
18338
18339 PR middle-end/89433
18340 * omp-general.c (oacc_build_routine_dims): Move some of its
18341 processing into...
18342 (oacc_verify_routine_clauses): ... this new function.
18343 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18344
18345 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18346
18347 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18348 formating of picbase labels to match other ports.
18349
18350 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18351
18352 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18353 in the generated code.
18354
18355 2019-05-16 Martin Sebor <msebor@redhat.com>
18356
18357 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18358 identifiers, keywords, operators, and types in diagnostics. Correct
18359 quoting, spelling, and sentence capitalization issues.
18360 (expand_builtin_atomic_is_lock_free): Same.
18361 (fold_builtin_next_arg): Same.
18362 * cfgexpand.c (expand_one_var): Same.
18363 (tree_conflicts_with_clobbers_p): Same.
18364 (expand_asm_stmt): Same.
18365 (verify_loop_structure): Same.
18366 * cgraphunit.c (process_function_and_variable_attributes): Same.
18367 * collect-utils.c (collect_execute): Same.
18368 * collect2.c (maybe_run_lto_and_relink): Same.
18369 (is_lto_object_file): Same.
18370 (scan_prog_file): Same.
18371 * convert.c (convert_to_real_1): Same.
18372 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18373 * except.c (verify_eh_tree): Same.
18374 * gcc.c (execute): Same.
18375 (eval_spec_function): Same.
18376 (run_attempt): Same.
18377 (driver::set_up_specs): Same.
18378 (compare_debug_auxbase_opt_spec_function): Same.
18379 * gcov-tool.c (unlink_gcda_file): Same.
18380 (do_merge): Same.
18381 (do_rewrite): Same.
18382 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18383 * gimplify.c (gimplify_asm_expr): Same.
18384 (gimplify_adjust_omp_clauses): Same.
18385 * hsa-gen.c (gen_hsa_addr_insns): Same.
18386 (gen_hsa_insns_for_load): Same.
18387 (gen_hsa_cmp_insn_from_gimple): Same.
18388 (gen_hsa_insns_for_operation_assignment): Same.
18389 (gen_get_level): Same.
18390 (gen_hsa_alloca): Same.
18391 (omp_simple_builtin::generate): Same.
18392 (gen_hsa_atomic_for_builtin): Same.
18393 (gen_hsa_insns_for_call): Same.
18394 * input.c (dump_location_info): Same.
18395 * ipa-devirt.c (compare_virtual_tables): Same.
18396 * ira.c (ira_setup_eliminable_regset): Same.
18397 * lra-assigns.c (lra_assign): Same.
18398 * lra-constraints.c (lra_constraints): Same.
18399 * lto-streamer-in.c (lto_input_mode_table): Same.
18400 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18401 (merge_and_complain): Same.
18402 (compile_offload_image): Same.
18403 (compile_images_for_offload_targets): Same.
18404 (debug_objcopy): Same.
18405 (run_gcc): Same.
18406 (main): Same.
18407 * opts.c (print_specific_help): Same.
18408 (parse_no_sanitize_attribute): Same.
18409 (print_help): Same.
18410 (handle_param): Same.
18411 * plugin.c (add_new_plugin): Same.
18412 (parse_plugin_arg_opt): Same.
18413 (try_init_one_plugin): Same.
18414 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18415 operators, and types in diagnostics. Correct quoting and spelling
18416 issues.
18417 * read-rtl-function.c (parse_edge_flag_token): Same.
18418 (function_reader::parse_enum_value): Same.
18419 * reg-stack.c (check_asm_stack_operands): Same.
18420 * regcprop.c (validate_value_data): Same.
18421 * sched-rgn.c (make_pass_sched_fusion): Same.
18422 * stmt.c (check_unique_operand_names): Same.
18423 * targhooks.c (default_target_option_pragma_parse): Same.
18424 * tlink.c (recompile_files): Same.
18425 * toplev.c (process_options): Same.
18426 (do_compile): Same.
18427 * trans-mem.c (diagnose_tm_1): Same.
18428 (ipa_tm_scan_irr_block): Same.
18429 (ipa_tm_diagnose_transaction): Same.
18430 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18431 format a tree code name in a diagnostic.
18432 (verify_types_in_gimple_min_lval): Same.
18433 (verify_types_in_gimple_reference): Same.
18434 (verify_gimple_call): Same.
18435 (verify_gimple_assign_unary): Same.
18436 (verify_gimple_assign_binary): Same.
18437 (verify_gimple_assign_ternary): Same.
18438 (verify_gimple_assign_single): Same.
18439 (verify_gimple_switch): Same.
18440 (verify_gimple_label): Same.
18441 (verify_gimple_phi): Same.
18442 (verify_gimple_in_seq): Same.
18443 (verify_eh_throw_stmt_node): Same.
18444 (collect_subblocks): Same.
18445 (gimple_verify_flow_info): Same.
18446 (do_warn_unused_result): Same.
18447 * tree-inline.c (expand_call_inline): Same.
18448 * tree-into-ssa.c (update_ssa): Same.
18449 * tree.c (tree_int_cst_elt_check_failed): Same.
18450 (tree_vec_elt_check_failed): Same.
18451 (omp_clause_operand_check_failed): Same.
18452 (verify_type_variant): Same.
18453 (verify_type): Same.
18454 * value-prof.c (verify_histograms): Same.
18455 * varasm.c (assemble_start_function): Same.
18456
18457 2019-05-16 Martin Sebor <msebor@redhat.com>
18458
18459 * config/i386/i386-expand.c (get_element_number): Quote keywords
18460 and other internal names in diagnostics. Adjust other diagnostic
18461 formatting issues noted by -Wformat-diag.
18462 * config/i386/i386-features.c
18463 (ix86_mangle_function_version_assembler_name): Same.
18464 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18465 * config/i386/i386.c (ix86_function_type_abi): Same.
18466 (ix86_function_ms_hook_prologue): Same.
18467 (classify_argument): Same.
18468 (ix86_expand_prologue): Same.
18469 (ix86_md_asm_adjust): Same.
18470 (ix86_memmodel_check): Same.
18471
18472 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18473
18474 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18475 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18476 and fpxx modes.
18477
18478 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18479
18480 PR target/90497
18481 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18482 intrinsics without SSE/SSE2/SSSE3.
18483 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18484 check.
18485 (*mmx_uavgv8qi3): Likewise.
18486
18487 2019-05-17 Richard Biener <rguenther@suse.de>
18488
18489 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18490 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18491
18492 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18493
18494 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18495 vec_sldw insn pattern.
18496
18497 2019-05-17 Richard Biener <rguenther@suse.de>
18498
18499 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18500
18501 2019-05-17 Martin Liska <mliska@suse.cz>
18502
18503 PR driver/90496
18504 * toplev.c (output_stack_usage): With LTO and sanitizer it
18505 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18506 has no file location.
18507
18508 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18509
18510 PR c++/90484
18511 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18512 sz0 is equal to sz1, instead return false in that case.
18513
18514 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18515 has non-constant expression, force sctx.lane and use two
18516 argument IFN_GOMP_SIMD_LANE instead of single argument.
18517 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18518 two argument IFN_GOMP_SIMD_LANE without lhs.
18519 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18520 member.
18521 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18522 Define.
18523 (LOOP_REQUIRES_VERSIONING): Or in
18524 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18525 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18526 simd_if_cond.
18527 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18528 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18529 from simd if clause if needed.
18530
18531 2019-05-16 Richard Biener <rguenther@suse.de>
18532
18533 * tree-affine.c (expr_to_aff_combination): New function split
18534 out from...
18535 (tree_to_aff_combination): ... here.
18536 (aff_combination_expand): Avoid building a GENERIC tree.
18537
18538 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18539
18540 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18541 assemble_start_function and assemble_end_function calls.
18542 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18543 assemble_start_function and assemble_end_function.
18544 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18545 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18546 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18547 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18548 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18549 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18550 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18551 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18552 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18553 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18554 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18555 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18556 Likewise.
18557 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18558 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18559 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18560 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18561 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18562 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18563 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18564 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18565 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18566 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18567 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18568 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18569 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18570 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18571 Likewise.
18572 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18573 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18574 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18575
18576 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18577
18578 * tree-ssa-alias.c (alias_stats): Add
18579 aliasing_component_refs_p_may_alias and
18580 aliasing_component_refs_p_no_alias.
18581 (dump_alias_stats): Print aliasing_component_refs_p stats.
18582 (aliasing_component_refs_p): Update stats.
18583
18584 2019-05-16 Martin Liska <mliska@suse.cz>
18585
18586 PR lto/90500
18587 * multiple_target.c (expand_target_clones): Do not allow
18588 target_clones being used with a symbol that is an alias.
18589
18590 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18591
18592 PR tree-optimization/90394
18593 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18594 positives rather than ICE for cases where (code2 == NE_EXPR
18595 && code1 == BIT_AND_EXPR).
18596
18597 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18598
18599 PR fortran/90329
18600 * tree-core.h (struct tree_decl_common): Document
18601 decl_nonshareable_flag for PARM_DECLs.
18602 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18603 * calls.c (expand_call): Don't try tail call if caller
18604 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18605 passed on the stack and callee needs to pass any arguments on the
18606 stack.
18607 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18608 else if instead of series of mutually exclusive ifs. Handle
18609 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18610 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18611
18612 * lto-streamer.h (LTO_major_version): Bump to 9.
18613
18614 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18615
18616 PR tree-optimization/90106
18617 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18618 new parameter as new internal function call, also move it to new
18619 basic block.
18620 (use_internal_fn): Pass internal function call to
18621 shrink_wrap_one_built_in_call_with_conds.
18622
18623 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18624
18625 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18626 max_vf to 1.
18627 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18628 safelen_int and set loop->dont_vectorize.
18629
18630 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18631
18632 PR target/89021
18633 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18634 SSE/SSE2/SSSE3.
18635 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18636 Likewise.
18637 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18638 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18639 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18640 is defined.
18641
18642 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18643
18644 PR target/89021
18645 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18646 define_insn_and_split to support SSE emulation.
18647 (*vec_extractv2sf_0): Likewise.
18648 (*vec_extractv2sf_1): Likewise.
18649 (*vec_extractv2si_0): Likewise.
18650 (*vec_extractv2si_1): Likewise.
18651 (*vec_extractv2si_zext_mem): Likewise.
18652 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18653 (vec_extractv2sf_1 splitter): Likewise.
18654 (vec_extractv2sfsf): Likewise.
18655 (vec_setv2si): Likewise.
18656 (vec_extractv2si_1 splitter): Likewise.
18657 (vec_extractv2sisi): Likewise.
18658 (vec_setv4hi): Likewise.
18659 (vec_extractv4hihi): Likewise.
18660 (vec_setv8qi): Likewise.
18661 (vec_extractv8qiqi): Likewise.
18662 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18663 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18664 (vec_extractv2sisi): Likewise.
18665 (vec_extractv4hihi): Likewise.
18666 (vec_extractv8qiqi): Likewise.
18667 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18668 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18669 (vec_initv2sisi): Likewise.
18670 (vec_initv4hihi): Likewise.
18671 (vec_initv8qiqi): Likewise.
18672 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18673 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18674 (vec_setv4hi): Likewise.
18675 (vec_setv8qi): Likewise.
18676
18677 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18678
18679 PR target/89021
18680 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18681 TARGET_MMX_WITH_SSE.
18682 (MMXMODE:*mov<mode>_internal): Likewise.
18683 (MMXMODE:movmisalign<mode>): Likewise.
18684
18685 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18686
18687 PR target/89021
18688 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18689 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18690 (sse2_cvtpd2pi): Ditto.
18691 (sse2_cvttpd2pi): Ditto.
18692 (*vec_concatv2sf_sse4_1): Ditto.
18693 (*vec_concatv2sf_sse): Ditto.
18694 (*vec_concatv2si_sse4_1): Ditto.
18695 (*vec_concatv2si): Ditto.
18696 (*vec_concatv4si_0): Ditto.
18697 (*vec_concatv2di_0): Ditto.
18698
18699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18700
18701 PR target/89021
18702 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18703
18704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18705
18706 PR target/89021
18707 * config/i386/sse.md (ssse3_palignrdi): Changed to
18708 define_insn_and_split to support SSE emulation.
18709
18710 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18711
18712 PR target/89021
18713 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18714
18715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18716
18717 PR target/89021
18718 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18719 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18720 SSE emulation.
18721
18722 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18723
18724 PR target/89021
18725 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18726 or TARGET_MMX_WITH_SSE.
18727 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18728
18729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18730
18731 PR target/89021
18732 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18733
18734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18735
18736 PR target/89021
18737 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18738 Changed to define_insn_and_split to support SSE emulation.
18739
18740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18741
18742 PR target/89021
18743 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18744 Changed to define_insn_and_split to support SSE emulation.
18745
18746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18747
18748 PR target/89021
18749 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18750 (*mmx_<emms>): This.
18751 (mmx_<emms>): New expander.
18752
18753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18754
18755 PR target/89021
18756 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18757 support.
18758 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18759
18760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18761
18762 PR target/89021
18763 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18764
18765 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18766
18767 PR target/89021
18768 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18769
18770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18771
18772 PR target/89021
18773 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18774 TARGET_MMX_WITH_SSE.
18775 (*mmx_uavgv4hi3): Add SSE emulation.
18776
18777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18778
18779 PR target/89021
18780 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18781 and TARGET_MMX_WITH_SSE.
18782 (*mmx_uavgv8qi3): Add SSE emulation.
18783
18784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18785
18786 PR target/89021
18787 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18788 maskmovdqu for __MMX_WITH_SSE__.
18789
18790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18791
18792 PR target/89021
18793 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18794 TARGET_MMX and TARGET_MMX_WITH_SSE.
18795 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18796
18797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18798
18799 PR target/89021
18800 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18801 define_insn_and_split to support SSE emulation.
18802
18803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18804
18805 PR target/89021
18806 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18807 and TARGET_MMX_WITH_SSE.
18808 (mmx_<code>v8qi3): Likewise.
18809 (smaxmin:<code>v4hi3): New.
18810 (umaxmin:<code>v8qi3): Likewise.
18811 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18812 (umaxmin:*mmx_<code>v8qi3): Likewise.
18813
18814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18815
18816 PR target/89021
18817 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18818 TARGET_MMX_WITH_SSE.
18819 (*mmx_pinsrw): Add SSE emulation.
18820
18821 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18822
18823 PR target/89021
18824 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18825
18826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18827
18828 PR target/89021
18829 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18830 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18831 SSE emulation.
18832
18833 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18834
18835 PR target/89021
18836 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18837 (sse_cvttps2pi): Likewise.
18838
18839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18840
18841 PR target/89021
18842 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18843 TARGET_MMX_WITH_SSE.
18844 (mmx_pshufw_1): Add SSE emulation.
18845 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18846 TARGET_MMX_WITH_SSE to support SSE emulation.
18847
18848 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18849
18850 PR target/89021
18851 * config/i386/constraints.md (Yw): New constraint.
18852 * config/i386/mmx.md (*vec_dupv2si): Changed to
18853 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18854 support SSE emulation.
18855
18856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18857
18858 PR target/89021
18859 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18860 TARGET_MMX_WITH_SSE.
18861 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18862 support.
18863 (mmx_gt<mode>3): Likewise.
18864
18865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18866
18867 PR target/89021
18868 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18869 TARGET_MMX_WITH_SSE. Add SSE support.
18870
18871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18872
18873 PR target/89021
18874 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18875 TARGET_MMX_WITH_SSE.
18876 (any_logic:<code><mode>3): New.
18877 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18878 Add SSE support.
18879
18880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18881
18882 PR target/89021
18883 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18884 TARGET_MMX_WITH_SSE. Add SSE emulation.
18885 (mmx_<shift_insn><mode>3): Likewise.
18886 (ashr<mode>3): New.
18887 (<shift_insn><mode>3): Likewise.
18888
18889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18890
18891 PR target/89021
18892 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18893 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18894
18895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18896
18897 PR target/89021
18898 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18899 TARGET_MMX_WITH_SSE.
18900 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18901 SSE support.
18902
18903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18904
18905 PR target/89021
18906 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18907 TARGET_MMX_WITH_SSE.
18908 (mulv4hi3): New.
18909 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18910 support.
18911
18912 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18913
18914 PR target/89021
18915 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18916 (plusminus:mmx_<plusminus_insn><mode>3): Check
18917 TARGET_MMX_WITH_SSE.
18918 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18919 (<plusminus_insn><mode>3): New.
18920 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18921 (*mmx_<plusminus_insn><mode>3): Likewise.
18922
18923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18924
18925 PR target/89021
18926 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18927 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18928 prototype.
18929 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18930 define_insn_and_split to support SSE emulation.
18931 (mmx_punpcklbw): Likewise.
18932 (mmx_punpckhwd): Likewise.
18933 (mmx_punpcklwd): Likewise.
18934 (mmx_punpckhdq): Likewise.
18935 (mmx_punpckldq): Likewise.
18936
18937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18938 Uros Bizjak <ubizjak@gmail.com>
18939
18940 PR target/89021
18941 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18942 New function.
18943 (ix86_split_mmx_pack): Likewise.
18944 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18945 New prototype.
18946 (ix86_split_mmx_pack): Likewise.
18947 * config/i386/i386.md (mmx_isa): New.
18948 (enabled): Also check mmx_isa.
18949 * config/i386/mmx.md (any_s_truncate): New code iterator.
18950 (s_trunsuffix): New code attr.
18951 (mmx_packsswb): Removed.
18952 (mmx_packssdw): Likewise.
18953 (mmx_packuswb): Likewise.
18954 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18955 MMX packsswb/packuswb with SSE2.
18956 (mmx_packssdw): Likewise.
18957 * config/i386/predicates.md (register_mmxmem_operand): New.
18958
18959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18960
18961 PR target/89021
18962 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18963 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18964 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18965 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18966 (ix86_vector_mode_supported_p): Likewise.
18967 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18968
18969 2019-05-15 Martin Liska <mliska@suse.cz>
18970
18971 PR middle-end/90478
18972 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18973 Check for overflow.
18974
18975 2019-05-15 Richard Biener <rguenther@suse.de>
18976
18977 * tree-into-ssa.c (pass_build_ssa::execute): Run
18978 update_address_taken before going into SSA.
18979
18980 2019-05-15 Richard Biener <rguenther@suse.de>
18981
18982 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18983 as __BIT_FIELD_REF with type with -gimple.
18984
18985 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18986
18987 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18988 semantically equivalent branches (left over after prior refactorings).
18989
18990 2019-05-15 Richard Biener <rguenther@suse.de>
18991
18992 PR tree-optimization/88828
18993 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18994 bogus check.
18995
18996 2019-05-14 Richard Biener <rguenther@suse.de>
18997
18998 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18999 as __VIEW_CONVERT with -gimple.
19000
19001 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19002
19003 PR target/82920
19004 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19005 Darwin.
19006
19007 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19008
19009 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19010 define_split to become a define_insn_and_split.
19011
19012 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19013
19014 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19015 arguments.
19016 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19017 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19018 (sibcall_epilogue): Adjust.
19019 (epilogue): Adjust.
19020
19021 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19022
19023 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19024 to unsupported ones.
19025 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19026 * config.host: Likewise.
19027 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19028 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19029 __svr4__]: Remove "brand" fallback.
19030 [!KSTAT_DATA_STRING]: Remove.
19031 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19032 to *-*-solaris2*.
19033 (comdat_group): Likewise.
19034 (set_have_as_tls): Likewise.
19035 (gcc_cv_target_dl_iterate_phdr): Likewise.
19036 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19037 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19038 * configure: Regenerate.
19039 * doc/install.texi: Simplify Solaris target triplets.
19040 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19041 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19042 Remove Solaris 10 references.
19043 Remove obsolete Solaris bug reference.
19044 (Specific, sparc-sun-solaris2.10): Remove.
19045
19046 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19047
19048 * config/i386/i386.md (any_div): New code iterator.
19049 (paired_mod): New code attribute.
19050 (sgnprefix): Handle DIV and UDIV RTXes.
19051 (u): Ditto.
19052 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19053 and udivmod<mode>4 patterns using any_div code iterator.
19054 (divmod splitters): Macroize splitters using any_div code iterator.
19055 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19056 (*udivmodsi4_pow2_zext_2): Ditto.
19057 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19058 and *udivmod<mode>4_noext patterns using any_div code iterator.
19059 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19060 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19061 patterns using any_div code iterator.
19062 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19063 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19064 patterns using any_div code iterator.
19065 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19066 udivmodhiqi3 patterns using any_extend code iterator.
19067
19068 2019-05-14 Richard Biener <rguenther@suse.de>
19069 H.J. Lu <hongjiu.lu@intel.com>
19070
19071 PR tree-optimization/88828
19072 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19073 permuting in a single non-constant element not extracted
19074 from a vector.
19075
19076 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19077
19078 * internal-fn.def (SIGNBIT): New.
19079 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19080 defined.
19081 (signbitv4sf2): Likewise.
19082
19083 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19084
19085 PR target/90357
19086 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19087 next insn when the SRC reg is dead.
19088
19089 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19090
19091 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19092 (alloc_cand_and_find_basis): Ditto.
19093 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19094 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19095 (create_add_imm_cand, slsr_process_cast): Ditto.
19096 (slsr_process_copy, replace_mult_candidate): Ditto.
19097 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19098 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19099 (pass_strength_reduction::execute): Init the first NULL element.
19100
19101 2019-05-13 Nathan Sidwell <nathan@acm.org>
19102
19103 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19104 (run_attempt): Reformat line break.
19105
19106 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19107
19108 PR target/90418
19109 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19110 data registers in sibcall epilogues.
19111 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19112
19113 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19114
19115 PR target/89221
19116 * configure.ac (--enable-frame-pointer):
19117 Disable by default for cygwin and mingw.
19118 * configure: Regenerate.
19119
19120 2019-05-13 Nathan Sidwell <nathan@acm.org>
19121
19122 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19123 piece of code.
19124 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19125 (gen_member_die): Move abstract origin check earlier. Only VARs
19126 can be static_inline_p. Simplify splicing control flow.
19127
19128 2019-05-13 Richard Biener <rguenther@suse.de>
19129
19130 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19131 VIEW_CONVERT_EXPR.
19132 (vect_build_slp_tree_1): Likewise.
19133
19134 2019-05-13 Richard Biener <rguenther@suse.de>
19135
19136 PR tree-optimization/90402
19137 * tree-if-conv.c (tree_if_conversion): Value number only
19138 the loop body by making the latch an exit of the region
19139 as well.
19140 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19141 processing PHIs.
19142 (do_rpo_vn): Deal with multiple edges into the entry block
19143 that are not backedges inside the region by skipping PHIs
19144 of the entry block.
19145
19146 2019-05-13 Richard Biener <rguenther@suse.de>
19147
19148 PR tree-optimization/90316
19149 * tree-ssa-pre.c (insert_aux): Fold into ...
19150 (insert): ... this function. Use a RPO walk to reduce the
19151 number of required iterations.
19152
19153 2019-05-13 Martin Liska <mliska@suse.cz>
19154
19155 PR tree-optimization/90416
19156 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19157 string instead of passing the second part as va_arg argument.
19158
19159 2019-05-13 Martin Liska <mliska@suse.cz>
19160
19161 PR gcov-profile/90380
19162 * gcov.c (handle_cycle): Do not support zero cycle count,
19163 it should not be possible.
19164 (path_contains_zero_cycle_arc): New function.
19165 (circuit): Ignore zero cycle arc counts.
19166
19167 2019-05-13 Martin Liska <mliska@suse.cz>
19168
19169 PR gcov-profile/90380
19170 * gcov.c (enum loop_type): Remove the enum and
19171 the operator.
19172 (handle_cycle): Assert that we should not reach
19173 a negative count.
19174 (circuit): Use loop_found instead of a tri-state loop_type.
19175 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19176 happen.
19177
19178 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19179
19180 PR target/82920
19181 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19182 (ix86_output_indirect_branch_via_reg): Use output mechanism
19183 accounting for __USER_LABEL_PREFIX__.
19184 (ix86_output_indirect_branch_via_push): Likewise.
19185 (ix86_output_function_return): Likewise.
19186 (ix86_output_indirect_function_return): Likewise.
19187
19188 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19189
19190 * doc/md.texi: Document use of code attributes in rtx patterns.
19191 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19192 * read-rtl.c (find_code): Split out search loops into...
19193 (maybe_find_code): ...this new function.
19194 (check_code_iterator): Make the error message more informative.
19195 (check_code_attribute): New function.
19196 (rtx_reader::rtx_alloc_for_name): Likewise.
19197 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19198 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19199 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19200 <max_opp> directly as an rtx code instead of via a match_operator.
19201 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19202 (<su>abd<mode>_3): Update accordingly.
19203
19204 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19205
19206 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19207 is given, print the state of the EH "save world" computation for
19208 Darwin.
19209
19210 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19211
19212 PR c++/59813
19213 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19214 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19215
19216 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19217
19218 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19219 Use pinsrd for TARGET_SSE4_1.
19220 * config/i386/sse.md (movdi_to_sse): Ditto.
19221
19222 2019-05-10 Richard Biener <rguenther@suse.de>
19223
19224 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19225 (do_rpo_vn): Initialize next_value_id.
19226
19227 2019-05-10 Martin Liska <mliska@suse.cz>
19228
19229 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19230 Fix plural form.
19231
19232 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19233
19234 PR tree-optimization/90385
19235 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19236 arguments of the exit phis.
19237
19238 PR c++/90383
19239 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19240 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19241 id->do_not_fold.
19242 (copy_tree_body_r): Likewise.
19243 (copy_fn): Set id.do_not_fold to true.
19244
19245 2019-05-10 Martin Liska <mliska@suse.cz>
19246
19247 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19248 Reapply changes from r269790.
19249
19250 2019-05-10 Martin Liska <mliska@suse.cz>
19251
19252 PR middle-end/90340
19253 * doc/invoke.texi: New params.
19254 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19255 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19256 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19257 Use it.
19258 * tree-switch-conversion.h (struct jump_table_cluster):
19259 Likewise.
19260
19261 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19262
19263 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19264
19265 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19266
19267 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19268
19269 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19270
19271 PR rtl-optimization/88879
19272 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19273
19274 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19275
19276 PR target/90405
19277 * config/arm/arm.c (callee_saved_reg_p): Move before
19278 thumb_find_work_register.
19279 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19280 thumb_find_work_register. Only call df_get_live_out once.
19281 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19282 (thumb_find_work_register): Use
19283 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19284 algorithms to locate a spare call clobbered reg.
19285
19286 2019-05-09 Martin Liska <mliska@suse.cz>
19287
19288 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19289 and MAX_EXPR in GIMPLE FE format.
19290
19291 2019-05-09 Martin Liska <mliska@suse.cz>
19292
19293 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19294 * gimple-pretty-print.c (dump_gimple_bb_header):
19295 Dump BB count.
19296 (pp_cfg_jump): Dump edge probability.
19297 * profile-count.c (profile_quality_as_string): Simplify
19298 with a static array.
19299 (parse_profile_quality): New function.
19300 (profile_count::dump): Simplify with a static array.
19301 (profile_count::from_gcov_type): Add new argument.
19302 * profile-count.h (parse_profile_quality): Likewise.
19303 * predict.h (set_hot_bb_threshold): New.
19304 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19305 New param.
19306 * predict.c (get_hot_bb_threshold): Set from the new param.
19307 (set_hot_bb_threshold): New.
19308
19309 2019-05-09 Richard Biener <rguenther@suse.de>
19310
19311 PR tree-optimization/90395
19312 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19313 rewrite vector stores that throw internally.
19314
19315 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19316
19317 * cif-code.def (CHKP): Remove.
19318
19319 PR target/89221
19320 * configure.ac (--enable-frame-pointer): Disable by default for
19321 GNU systems.
19322 * configure: Regenerate.
19323
19324 2019-05-09 Alan Modra <amodra@gmail.com>
19325
19326 PR target/89271
19327 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19328 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19329 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19330 cost for general <-> vsx when direct moves are available.
19331 Cost union classes at minimal cost for any reg in the class.
19332 Correct calculation for moves between vsx, float, and altivec.
19333 Don't return a low cost for moves between special regs. Don't
19334 use hard coded register numbers.
19335 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19336 (rs6000_ira_change_pseudo_allocno_class): New function.
19337 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19338 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19339 alternatives.
19340 (movsi_internal1): Don't disparage vector alternatives.
19341 (mov<mode>_internal): Likewise, excepting alternative that
19342 will be split.
19343 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19344 we <- b alternative.
19345
19346 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19347
19348 PR c++/59813
19349 PR tree-optimization/89060
19350 * tree-ssa-live.h (live_vars_map): New typedef.
19351 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19352 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19353 (struct compute_live_vars_data): New type.
19354 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19355 live_vars_at_stmt, destroy_live_vars): New functions.
19356 * tree-tailcall.c: Include tree-ssa-live.h.
19357 (live_vars, live_vars_vec): New global variables.
19358 (find_tail_calls): Perform variable life analysis before punting.
19359 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19360 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19361 member.
19362 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19363 Perform variable life analysis to select variables that really need
19364 clobbers added.
19365 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19366 instead set id->eh_landing_pad_dest and assert it is the same.
19367 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19368
19369 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19370 Richard Earnshaw <rearnsha@arm.com>
19371
19372 PR target/88167
19373 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19374 function.
19375 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19376 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19377 register if both the epilogue and prologue can use call-clobbered
19378 regs.
19379 (thumb1_unexpanded_epilogue): Use
19380 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19381 picking temporaries for restoring high regs to match that of the
19382 prologue where possible.
19383 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19384 the list of work registers. Detect if the return address is still live
19385 at the end of the prologue and avoid using it for a work register if so.
19386 If the return address is not live, add LR to the list of pushable regs
19387 after the first pass.
19388
19389 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19390
19391 PR tree-optimization/90078
19392 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19393 (INFTY): Increase the value for infinite cost.
19394 (struct comp_cost): Promote type of members to int64_t.
19395 (infinite_cost): Don't set complexity in initialization.
19396 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19397 overflows to infinite_cost.
19398 (adjust_setup_cost): Promote type of parameter and cost computation
19399 to int64_t.
19400 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19401 int64_t.
19402 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19403 cost computation to int64_t.
19404 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19405 int64_t's format specifier in dump.
19406
19407 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19408
19409 PR tree-optimization/90240
19410 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19411 with respect to scaling factor pre-computed for each basic block.
19412 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19413 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19414 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19415 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19416 live range for array of loop's basic blocks. Cleanup aux field of
19417 loop's basic blocks.
19418
19419 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19420
19421 PR tree-optimization/90356
19422 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19423
19424 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19425
19426 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19427 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19428 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19429 (ix86_handle_option): Handle -mavx512bf16.
19430 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19431 to extra_headers.
19432 * config/i386/avx512bf16vlintrin.h: New.
19433 * config/i386/avx512bf16intrin.h: New.
19434 * config/i386/cpuid.h (bit_AVX512BF16): New.
19435 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19436 * config/i386/i386-builtin-types.def: Add new types.
19437 * config/i386/i386-builtin.def: Add new builtins.
19438 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19439 __AVX512BF16__.
19440 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19441 (ix86_option_override_internal): Handle BF16.
19442 (ix86_valid_target_attribute_inner_p): Ditto.
19443 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19444 * config/i386/i386-builtin.c (enum processor_features): Add
19445 F_AVX512BF16.
19446 (static const _isa_names_table isa_names_table): Ditto.
19447 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19448 (PTA_AVX512BF16): Ditto.
19449 * config/i386/i386.opt: Add -mavx512bf16.
19450 * config/i386/immintrin.h: Include avx512bf16intrin.h
19451 and avx512bf16vlintrin.h.
19452 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19453 avx512f_cvtneps2bf16_<mode><mask_name>,
19454 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19455 * config/i386/subst.md (mask_half): Add new subst.
19456 * doc/invoke.texi: Document -mavx512bf16.
19457
19458 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19459
19460 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19461 Delete declaration.
19462 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19463 (rs6000_debug_legitimize_reload_address): Delete.
19464 (rs6000_legitimize_reload_address_ptr): Delete.
19465 (rs6000_option_override_internal): Adjust.
19466 (mem_operand_gpr): Adjust comment.
19467 (legitimate_lo_sum_address_p): Ditto.
19468 (rs6000_legitimize_reload_address): Delete.
19469 (rs6000_debug_legitimize_reload_address): Delete.
19470 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19471
19472 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19473
19474 PR target/89765
19475 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19476 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19477 to compute vector element selector for both constant and variable
19478 operands.
19479
19480 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19481
19482 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19483 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19484 ashrdi3_cvt using SWI48 mode iterator.
19485
19486 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19487
19488 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19489 (aarch64_<su>abd<mode>_3): Likewise.
19490 (*aarch64_<su>abd<mode>_3): New define_insn.
19491 (<sur>sad<vsi2qi>): New define_expand.
19492 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19493 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19494 (build_vect_cond_expr): Likewise.
19495
19496 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19497
19498 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19499 clobbers outside of accessible_reg_set.
19500 * config/i386/i386.c (ix86_conditional_register_usage):
19501 Disable register sets by clearing corresponding bits in
19502 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19503 call_used_regs and don't clear corresponding reg_names array members.
19504
19505 2019-05-07 Richard Biener <rguenther@suse.de>
19506
19507 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19508 not specified still compute a comp_vectype for invariant
19509 compares.
19510
19511 2019-05-07 Richard Biener <rguenther@suse.de>
19512
19513 PR tree-optimization/90316
19514 * tree-ssa-pre.c (translate_vuse_through_block): When
19515 same_valid is NULL do not bother to search for a virtual
19516 PHI continuation.
19517 (phi_translate_1): When operands changed we cannot keep
19518 the same value-number so do not bother to ask whether
19519 that's possible from translate_vuse_through_block.
19520
19521 2019-05-07 Martin Liska <mliska@suse.cz>
19522
19523 * bitmap.c (bitmap_register): Come up with
19524 alloc_descriptor_max_uid and assign it for
19525 a new bitmap.
19526 (register_overhead): Use get_descriptor as
19527 a descriptor.
19528 (release_overhead): New.
19529 (bitmap_elem_to_freelist): Call it.
19530 (bitmap_elt_clear_from): Likewise.
19531 (bitmap_obstack_free): Likewise.
19532 (bitmap_move): Sensitively release memory.
19533 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19534 (bitmap_initialize): Initialize alloc_descriptor to zero.
19535 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19536
19537 2019-05-07 Richard Biener <rguenther@suse.de>
19538
19539 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19540 we build a SLP node. Remove max_size and limiting.
19541 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19542
19543 2019-05-07 Richard Biener <rguenther@suse.de>
19544
19545 PR tree-optimization/90316
19546 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19547 limit by reference.
19548 (walk_non_aliased_vuses): Take walking limit argument.
19549 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19550 walking if it is reached instead of just counting.
19551 (get_continuation_for_phi): Likewise.
19552 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19553 limiting to the callback.
19554 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19555 (vn_reference_lookup_3): Likewise.
19556 (vn_reference_lookup_pieces): Likewise.
19557 (vn_reference_lookup): Likewise.
19558 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19559 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19560 (avail_exprs_stack::lookup_avail_expr): Likewise.
19561
19562 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19563
19564 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19565 for comparaible types in the second direction even if first one
19566 hits incomparable type.
19567
19568 2019-05-07 Richard Biener <rguenther@suse.de>
19569
19570 PR lto/90369
19571 * lto-wrapper.c (debug_objcopy): Use the original filename
19572 including archive offset for the filename used for -save-temps.
19573
19574 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19575
19576 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19577 detection.
19578
19579 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19580 Hongtao Liu <hongtao.liu@intel.com>
19581
19582 PR target/89750
19583 PR target/86444
19584 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19585 Modified, original implementation isn't correct.
19586
19587 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19588
19589 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19590 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19591 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19592 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19593 (FRAME_POINTER_REGNUM): Change numbering.
19594 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19595 (alt_reg_names): Adjust.
19596 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19597 fixed.
19598 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19599 (DWARF_FRAME_REGISTERS): Delete.
19600 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19601 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19602 Adjust.
19603 (REG_ALLOC_ORDER): Adjust.
19604 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19605 (REG_CLASS_CONTENTS): Adjust.
19606 (RETURN_ADDR_RTX): Change comment.
19607 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19608 instead of 67.
19609 (REGISTER_NAMES): Adjust.
19610 (ADDITIONAL_REGISTER_NAMES): Adjust.
19611 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19612
19613 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19614
19615 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19616 Delete.
19617 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19618 (DWARF_FRAME_REGISTERS): Adjust.
19619 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19620 Adjust.
19621 (REG_ALLOC_ORDER): Adjust.
19622 (enum reg_class): Delete SPR_REGS.
19623 (REG_CLASS_NAMES): Delete SPR_REGS.
19624 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19625 (REGISTER_NAMES): Adjust.
19626 (ADDITIONAL_REGISTER_NAMES): Adjust.
19627 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19628 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19629 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19630 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19631 (htm_spr_regno): Delete.
19632 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19633 argument.
19634 (rs6000_dbx_register_number): Adjust.
19635
19636 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19637
19638 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19639
19640 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19641
19642 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19643 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19644
19645 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19646
19647 PR tree-optimization/88709
19648 PR tree-optimization/90271
19649 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19650 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19651 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19652 variable.
19653 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19654 of the store merging group is larger than
19655 PARAM_STORE_MERGING_MAX_SIZE parameter.
19656 (split_group): Add bzero_first argument. If set, always emit first
19657 the first store which must be = {} of the whole area and then for the
19658 rest of the stores consider all zero bytes as paddings.
19659 (imm_store_chain_info::output_merged_store): Check if first store
19660 is = {} of the whole area and if yes, determine which setting of
19661 bzero_first for split_group gives smaller number of stores. Adjust
19662 split_group callers.
19663 (lhs_valid_for_store_merging_p): Allow decls.
19664 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19665 no elts.
19666 (pass_store_merging::process_store): Likewise.
19667
19668 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19669
19670 PR target/89424
19671 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19672 handling of V1TImode.
19673
19674 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19675
19676 PR target/89221
19677 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19678 and enable_frame_pointer ...
19679 * configure.ac: ... here. Update help strings for
19680 --enable-frame-pointer.
19681 * configure: Regenerate.
19682 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19683 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19684 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19685 (USE_X86_64_FRAME_POINTER): Ditto.
19686
19687 2019-05-06 Martin Liska <mliska@suse.cz>
19688
19689 * config.gcc: Append to target_gtfiles and fix indentation.
19690
19691 2019-05-06 Richard Biener <rguenther@suse.de>
19692
19693 PR tree-optimization/90358
19694 * tree-vect-stmts.c (get_group_load_store_type): Properly
19695 detect unused upper half of load.
19696 (vectorizable_load): Likewise.
19697
19698 2019-05-06 Richard Biener <rguenther@suse.de>
19699
19700 PR tree-optimization/88828
19701 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19702 (simplify_vector_constructor): ...here. Handle constants in
19703 the constructor.
19704
19705 2019-05-06 Richard Biener <rguenther@suse.de>
19706
19707 PR tree-optimization/90328
19708 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19709 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19710 is valid in the loop nest before using it.
19711 (initialize_data_dependence_relation): Adjust.
19712 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19713 loop as loop-nest to dr_may_alias_p.
19714
19715 2019-05-06 Richard Biener <rguenther@suse.de>
19716
19717 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19718
19719 2019-05-06 Richard Biener <rguenther@suse.de>
19720
19721 PR tree-optimization/90316
19722 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19723 compute target on demand.
19724 (get_continuation_for_phi): Remove code walking stmts to
19725 get to a target virtual operand which could end up being
19726 quadratic.
19727
19728 2019-05-06 Martin Liska <mliska@suse.cz>
19729
19730 PR sanitizer/90312
19731 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19732 when -mabi is selected to a non-default version.
19733
19734 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19735 Martin Liska <mliska@suse.cz>
19736
19737 * Makefile.in: Add lto-dump.texi.
19738 * cgraph.h: Add new functions get_visibility_string and
19739 get_symtab_type_string.
19740 * doc/gcc.texi: Include lto-dump section.
19741 * doc/lto-dump.texi: New file.
19742 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19743 (parse_dump_option): Factor out this function.
19744 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19745 (parse_dump_option): Export the function.
19746 * symtab.c (symtab_node::get_visibility_string): New function.
19747 (symtab_node::get_symtab_type_string): Likewise.
19748
19749 2019-05-06 Martin Liska <mliska@suse.cz>
19750
19751 * config/i386/i386-builtins.c: New file.
19752 * config/i386/i386-builtins.h: New file.
19753 * config/i386/i386-expand.c: New file.
19754 * config/i386/i386-expand.h: New file.
19755 * config/i386/i386-features.c: New file.
19756 * config/i386/i386-features.h: New file.
19757 * config/i386/i386-options.c: New file.
19758 * config/i386/i386-options.h: New file.
19759 * config.gcc: Add new files into extra_objs and
19760 target_gtfiles.
19761 * config/i386/i386.c: Split content of the file
19762 into newly introduced files.
19763 * config/i386/i386.h: Declare common variables
19764 and macros.
19765 * config/i386/t-i386: Define dependencies for new files.
19766
19767 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19768
19769 PR target/89400
19770 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19771 Restrict 'all' variant to 32-bit configurations.
19772 (unaligned_loadhiu): Likewise.
19773 (unaligned_storehi): Likewise.
19774 (unaligned_storesi): Likewise.
19775 (unaligned_loadhis): Disable when compiling for thumb1.
19776
19777 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19778
19779 PR tree-optimization/90269
19780 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19781 Ignore clobbers.
19782
19783 2019-05-03 Martin Liska <mliska@suse.cz>
19784
19785 * hash-map.h: Add is_empty function.
19786 * hash-set.h: Likewise.
19787 * hash-table.h: Likewise.
19788 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19789 elements () == 0 (and similar usages).
19790 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19791 * gimplify.c (gimplify_bind_expr): Likewise.
19792 (gimplify_switch_expr): Likewise.
19793 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19794 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19795 * postreload-gcse.c (dump_hash_table): Likewise.
19796 (gcse_after_reload_main): Likewise.
19797 * predict.c (combine_predictions_for_bb): Likewise.
19798 * tree-parloops.c (reduction_phi): Likewise.
19799 (separate_decls_in_region): Likewise.
19800 (transform_to_exit_first_loop): Likewise.
19801 (gen_parallel_loop): Likewise.
19802 (gather_scalar_reductions): Likewise.
19803 (try_create_reduction_list): Likewise.
19804 * var-tracking.c (dump_vars): Likewise.
19805 (emit_notes_for_changes): Likewise.
19806 (vt_emit_notes): Likewise.
19807
19808 2019-05-03 Richard Biener <rguenther@suse.de>
19809
19810 PR tree-optimization/90316
19811 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19812 before running VN.
19813
19814 2019-05-03 Richard Biener <rguenther@suse.de>
19815
19816 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19817 peeling for gaps by loading only lower halves of vectors
19818 if possible.
19819 (vectorizable_load): Likewise.
19820
19821 2019-05-03 Richard Biener <rguenther@suse.de>
19822
19823 PR middle-end/89518
19824 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19825
19826 2019-05-03 Richard Biener <rguenther@suse.de>
19827
19828 PR middle-end/87314
19829 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19830 Handle STRING_CST vs DECL or STRING_CST.
19831
19832 2019-05-03 Richard Biener <rguenther@suse.de>
19833
19834 PR tree-optimization/88963
19835 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19836 vector loads feeding only BIT_FIELD_REFs to component
19837 loads. Rewrite stores fed by CONSTRUCTORs to component
19838 stores.
19839
19840 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19841
19842 * opts.h (finish_options): Remove lang_mask argument.
19843 (print_help, help_option_argument): Declare.
19844 * opts.c (print_help): Remove forward declaration, no longer static.
19845 (finish_options): Remove lang_mask argument, don't call print_help
19846 here.
19847 * opts-global.c (decode_options): Adjust finish_option caller, call
19848 print_help here.
19849
19850 PR tree-optimization/90303
19851 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19852 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19853
19854 2019-05-03 Richard Biener <rguenther@suse.de>
19855
19856 PR tree-optimization/89698
19857 * gimple-fold.c (canonicalize_constructor_val): Early out
19858 for constants, handle unfolded INTEGER_CSTs as they appear in
19859 C++ virtual table ctors.
19860
19861 2019-05-03 Richard Biener <rguenther@suse.de>
19862
19863 * passes.c (execute_function_todo): Remove dead code.
19864
19865 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19866
19867 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19868 the internal register number, for any "real" register.
19869
19870 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19871
19872 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19873 correct numbers for TFHAR, TFIAR, TEXASR.
19874
19875 2019-05-02 Richard Biener <rguenther@suse.de>
19876
19877 PR tree-optimization/89653
19878 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19879 update-address-taken before the pass.
19880 * passes.def (pass_tree_loop_init): Put comment before it.
19881
19882 2019-05-02 Richard Biener <rguenther@suse.de>
19883
19884 PR tree-optimization/89509
19885 * tree-ssa-structalias.c (compute_dependence_clique): Look
19886 at the first subvar when determining whether it is restrict.
19887
19888 2019-05-02 Richard Biener <rguenther@suse.de>
19889
19890 PR tree-optimization/90273
19891 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19892 useless debug stmts.
19893
19894 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19895
19896 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19897 ACLE branch.
19898 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19899 SVE ACLE branch.
19900 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19901 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19902 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19903 (vectorizable_reduction): Use the functions above to vectorize in a
19904 fully masked loop codes that don't have a conditional internal
19905 function.
19906
19907 2019-05-02 Martin Liska <mliska@suse.cz>
19908
19909 * cgraphclones.c: Call valid_attribute_p with 1 for
19910 target_clone.
19911 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19912 it's for target attribute.
19913 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19914 Add new boolean argument.
19915 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19916 Likewise.
19917 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19918 to ix86_valid_target_attribute_inner_p.
19919 (ix86_valid_target_attribute_p): Pass flags argument to
19920 ix86_valid_target_attribute_inner_p.
19921 (get_builtin_code_for_version): Use 0 as it's target attribute.
19922
19923 2019-05-02 Martin Liska <mliska@suse.cz>
19924
19925 * gcc.c (process_command): Add dummy file only
19926 if n_infiles == 0.
19927 * opts-global.c (decode_options): Pass lang_mask.
19928 * opts.c (print_help): New function.
19929 (finish_options): Print --help if help_option_argument
19930 is set.
19931 (common_handle_option): Factor out content of OPT__help_
19932 into print_help.
19933 * opts.h (finish_options): Add new argument.
19934
19935 2019-05-02 Martin Liska <mliska@suse.cz>
19936
19937 PR target/88809
19938 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19939 With -minline-all-stringops use inline expansion using 4B loop.
19940 * doc/invoke.texi: Document the change of
19941 -minline-all-stringops.
19942
19943 2019-05-01 Jeff Law <law@redhat.com>
19944
19945 PR tree-optimization/88797
19946 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19947 PHI feeds a conditional on the RHS of an assignment.
19948
19949 2019-04-30 Andrew Waterman <andrew@sifive.com>
19950 Jim Wilson <jimw@sifive.com>
19951
19952 * config/riscv/constraints.md (L): New.
19953 * config/riscv/predicates.md (lui_operand): New.
19954 (sfb_alu_operand): New.
19955 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19956 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19957 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19958 * config/riscv/risc.md (type): Add sfb_alu.
19959 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19960 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19961 (branch_zero<mode>): Delete.
19962 (mov<mode>cc): New.
19963 (mov<GPR:mode><X:mode>cc): Likewise.
19964 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19965
19966 2019-04-30 Nathan Sidwell <nathan@acm.org>
19967
19968 * tree.h (MARK_TS_EXP): New.
19969
19970 2019-04-30 Martin Liska <mliska@suse.cz>
19971
19972 * opts.c (enable_warning_as_error): Provide hints
19973 for unknown options.
19974
19975 2019-04-30 Martin Liska <mliska@suse.cz>
19976
19977 PR debug/90288
19978 * doc/invoke.texi: Add missing dash for gas-locview-support
19979 and gno-as-locview-support.
19980
19981 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19982
19983 PR target/89093
19984 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19985 whitespace at the start of target attribute string.
19986
19987 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19988
19989 PR target/86538
19990 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19991 Define __ARM_FEATURE_ATOMICS.
19992
19993 2019-04-30 Martin Liska <mliska@suse.cz>
19994
19995 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19996 into built_in_function enum. Remove code for endp == 2 and
19997 use BUILT_IN_* constants.
19998 (gimple_fold_builtin): Call the function with fcode.
19999
20000 2019-04-30 Martin Liska <mliska@suse.cz>
20001
20002 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20003 DECL_FUNCTION_CODE into ix86_builtins enum before
20004 the switch statement.
20005
20006 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20007
20008 PR tree-optimization/89475
20009 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20010 calls.
20011
20012 2019-04-30 Martin Liska <mliska@suse.cz>
20013
20014 PR translation/90274
20015 * opts.c (print_filtered_help): Wrap string in _(...).
20016
20017 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20018
20019 PR tree-optimization/90240
20020 Revert:
20021 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20022
20023 PR tree-optimization/90078
20024 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20025 checks for infinite_cost overflow.
20026
20027 2019-04-29 Jeff Law <law@redhat.com>
20028
20029 * passes.def: Move -Wrestrict pass after copy propagation.
20030
20031 2019-04-29 Maya Rashish <coypu@sdf.org>
20032
20033 * config.gcc (default_gnu_indirect_function): Default to yes
20034 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20035 sparc*-*-netbsd*, x86_64-*-netbsd*.
20036
20037 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20038
20039 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20040 where cond2 is NE_EXPR.
20041 (is_value_included_in): Update comment.
20042
20043 2019-04-29 Richard Biener <rguenther@suse.de>
20044
20045 PR tree-optimization/90278
20046 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20047 EH on comparison simplification.
20048
20049 2019-04-29 Jason Merrill <jason@redhat.com>
20050
20051 PR c++/82081 - tail call optimization breaks noexcept
20052 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20053 nothrow function to a might-throw function into a tail call.
20054
20055 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20056
20057 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20058 (DDR_INNER_LOOP): Likewise.
20059 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20060 (initialize_data_dependence_relation): Likewise.
20061 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20062
20063 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20064
20065 PR rtl-optimization/90257
20066 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20067 return value.
20068
20069 Revert the revert:
20070 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20071
20072 PR target/90178
20073 Revert:
20074 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20075
20076 Revert the revert:
20077 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20078
20079 Revert:
20080 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20081
20082 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20083
20084 2019-04-29 Richard Biener <rguenther@suse.de>
20085
20086 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20087 rhs issue a reset.
20088
20089 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20090
20091 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20092 varasm.h, and netbsd-protos.h.
20093
20094 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20095
20096 PR target/89261
20097 * config/i386/i386-protos.h (ix86_data_alignment): Change
20098 the second argument type to unsigned int.
20099 * config/i386/i386.c (ix86_data_alignment): Change "align"
20100 argument type to unsigned int.
20101
20102 2019-04-27 Martin Liska <mliska@suse.cz>
20103
20104 PR middle-end/90258
20105 * opt-suggestions.c (option_proposer::build_option_suggestions):
20106 When get_valid_option_values returns empty values, add the
20107 misspelling candidate.
20108
20109 2019-04-26 Jim Wilson <jimw@sifive.com>
20110
20111 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20112 parameter.
20113 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20114 Pass orig_mode to riscv_build_integer.
20115 (riscv_split_integer): Pass mode to riscv_move_integer.
20116 (riscv_legitimize_const_move): Likewise.
20117 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20118 promoted_mode. Replace force_reg call with code to load constant into
20119 promoted reg and then subreg it for the store.
20120 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20121 riscv_move_integer.
20122
20123 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20124
20125 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20126 corrupt codes.
20127
20128 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20129
20130 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20131 commentary about the encoding of precision.
20132
20133 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20134
20135 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20136 * config/i386/t-freebsd64: New file.
20137 * config.gcc: Add the t-freebsd64 for multilib support.
20138
20139 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20140
20141 * doc/extend.texi (vector_size): Add missing comma after @xref.
20142
20143 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20144
20145 * BASE-VER: Set to 10.0.0.
20146
20147 2019-04-25 Richard Biener <rguenther@suse.de>
20148
20149 PR middle-end/89765
20150 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20151 VIEW_CONVERT_EXPR into one operating on an rvalue.
20152
20153 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20154
20155 PR target/89929
20156 * config/i386/i386.c (feature_priority): Moved to file scope.
20157 (processor_features): Likewise.
20158 (processor_model): Likewise.
20159 (_arch_names_table): Likewise.
20160 (arch_names_table): Likewise.
20161 (_feature_list): Removed.
20162 (feature_list): Likewise.
20163 (_isa_names_table): Moved to file scope. Add priority.
20164 (isa_names_table): Likewise.
20165 (get_builtin_code_for_version): Replace feature_list with
20166 isa_names_table. Update error message for P_ZERO priority.
20167
20168 2019-04-25 Richard Biener <rguenther@suse.de>
20169
20170 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20171 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20172
20173 2019-04-24 Jeff Law <law@redhat.com>
20174
20175 PR tree-optimization/90037
20176 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20177 * passes.def: Replace all instance of phi-only cprop with the
20178 lattice propagator. Move propagation pass from after erroneous
20179 path isolation to before erroneous path isolation.
20180 * tree-ssa-phionlycprop.c: Remove.
20181
20182 2019-04-24 Richard Biener <rguenther@suse.de>
20183
20184 PR middle-end/90213
20185 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20186 by size and BITS_PER_UNIT on poly-wide-ints.
20187
20188 2019-04-25 Richard Biener <rguenther@suse.de>
20189
20190 PR middle-end/90194
20191 * match.pd: Add pattern to simplify view-conversion of an
20192 empty constructor.
20193
20194 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20195
20196 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20197 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20198 for Go on 32 bit AIX.
20199 * config/rs6000/aix72.h: Likewise.
20200
20201 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20202
20203 PR target/90193
20204 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20205 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20206
20207 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20208
20209 PR target/89952
20210 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20211 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20212 for restored hard frame pointer.
20213 (s390_sched_dependencies_evaluation): Implement new target hook.
20214 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20215
20216 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20217
20218 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20219 * config/arc/arc.c (arc_init): Cleanup warning message.
20220 (arc_override_options): Likewise.
20221
20222 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20223
20224 PR target/90187
20225 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20226 a register if both if_true and if_false are MEMs.
20227
20228 PR tree-optimization/90208
20229 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20230 after labels of new_bb, not before them.
20231
20232 PR tree-optimization/90211
20233 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20234 which are not SSA_NAMEs.
20235
20236 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20237
20238 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20239 AArch64.
20240 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20241
20242 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20243
20244 PR rtl-optimization/87979
20245 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20246 not equal zero.
20247
20248 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20249
20250 PR rtl-optimization/84032
20251 * modulo-sched.c (ps_insn_find_column): Change condition so that
20252 branch will always be the last insn in a row inside partial
20253 schedule.
20254
20255 2019-04-23 Richard Biener <rguenther@suse.de>
20256
20257 PR debug/90131
20258 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20259 dest_single_pred_p argument.
20260 (remove_forwarder_block): Adjust.
20261 (remove_forwarder_block_with_phi): Likewise.
20262
20263 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20264 Bernd Edlinger <bernd.edlinger@hotmail.de>
20265 Jakub Jelinek <jakub@redhat.com>
20266
20267 PR target/89093
20268 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20269 if used with general-regs-only.
20270 (arm_conditional_register_usage): Don't add non-general regs if
20271 general-regs-only.
20272 (arm_valid_target_attribute_rec): Handle general-regs-only.
20273 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20274 general-regs-only.
20275 (TARGET_HARD_FLOAT_SUB): Define.
20276 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20277 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20278 (TARGET_REALLY_IWMMXT2): Likewise.
20279 * config/arm/arm.opt: Add -mgeneral-regs-only.
20280 * doc/extend.texi: Document ARM general-regs-only target.
20281 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20282
20283 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20284
20285 PR tree-optimization/90078
20286 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20287 checks for infinite_cost overflow.
20288
20289 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20290
20291 PR tree-optimization/90021
20292 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20293 and check univariate against it.
20294 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20295 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20296
20297 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20298
20299 PR target/90178
20300 Revert:
20301 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20302
20303 Revert the revert:
20304 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20305
20306 Revert:
20307 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20308
20309 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20310
20311 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20312
20313 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20314 names using operand format, rather than hard-wired.
20315 (speculation_barrier): Likewise.
20316
20317 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20318
20319 PR tree-optimization/88055
20320 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20321 (gen_one_condition): Use it if !HONOR_NANS.
20322
20323 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20324
20325 PR middle-end/90139
20326 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20327 assign_temp instead of gen_reg_rtx.
20328
20329 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20330
20331 PR translation/90118
20332 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20333 Add missing space before %<.
20334
20335 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20336
20337 PR rtl-optimization/87871
20338 * ira-lives.c (make_object_dead): Don't add conflicts to
20339 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20340
20341 2019-04-18 Martin Sebor <msebor@redhat.com>
20342
20343 PR middle-end/89797
20344 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20345 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20346 assuming type size fits in SHWI.
20347
20348 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20349
20350 PR ipa/85051
20351 * ipa-inline.c (flatten_function): New parameter UPDATE.
20352 (ipa_inline, early_inliner): Use it.
20353
20354 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20355
20356 * fold-const.c (int_const_binop): Return early on failure.
20357
20358 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20359
20360 PR middle-end/85164
20361 * combine.c (force_int_to_mode): Cast the argument rather than
20362 the result of known_alignment.
20363 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20364
20365 2019-04-18 Richard Biener <rguenther@suse.de>
20366
20367 PR debug/90131
20368 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20369 out from ...
20370 (remove_forwarder_block): ... here.
20371 (remove_forwarder_block_with_phi): Also move debug stmts here.
20372
20373 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20374
20375 PR translation/79183
20376 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20377 inform where appropriate.
20378
20379 2019-04-18 Richard Biener <rguenther@suse.de>
20380
20381 * tree.c (get_qualified_type): Put found type variants at the
20382 head of the variant list.
20383
20384 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20385
20386 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20387
20388 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20389
20390 PR target/90125
20391 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20392 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20393 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20394 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20395 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20396
20397 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20398
20399 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20400 even for allocno's with no conflicts.
20401 (print_conflicts): Print an extra newline.
20402
20403 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20404
20405 * auto-inc-dec.c (attempt_change): Set the alignment of the
20406 temporary memory to that of the original.
20407
20408 2019-04-17 Joao Moreira <jmoreira@suse.de>
20409
20410 * targhooks.c (default_print_patchable_function_entry): Emit
20411 __patchable_function_entries section with writable flags to allow
20412 relocation resolution.
20413
20414 2019-04-17 Jonny Grant <jg@jguk.org>
20415
20416 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20417
20418 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20419
20420 PR middle-end/90095
20421 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20422 on lowpart SUBREGs.
20423
20424 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20425
20426 * config/arc/arc.c (arc_init): Format diagnostic string.
20427 (arc_override_options): Likewise.
20428 (check_if_valid_regno_const): Likewise.
20429 (arc_reorg): Likewise.
20430
20431 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20432
20433 PR target/17108
20434 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20435 name.
20436 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20437 name.
20438 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20439 (*movdi_update1): Use Pmode.
20440 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20441 (movdi_<mode>_update_stack): Rename to ...
20442 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20443 use Pmode.
20444 (*movsi_update1): Use Pmode.
20445 (*movsi_update2): Use Pmode.
20446 (movsi_update): Rename to ...
20447 (movsi_<mode>_update): ... this. Use Pmode.
20448 (movsi_update_stack): Fix condition.
20449 (*movhi_update1): Use Pmode. Fix argument to
20450 avoiding_indexed_address_p.
20451 (*movhi_update2): Ditto.
20452 (*movhi_update3): Ditto.
20453 (*movhi_update4): Ditto.
20454 (*movqi_update1): Ditto.
20455 (*movqi_update2): Ditto.
20456 (*movqi_update3): Ditto.
20457 (*movsf_update1, *movdf_update1): Merge, rename to...
20458 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20459 avoiding_indexed_address_p. Add "size" attribute.
20460 (*movsf_update2, *movdf_update2): Merge, rename to...
20461 (*mov<mode>_update2): This. Ditto.
20462 (*movsf_update3): Use Pmode. Fix argument to
20463 avoiding_indexed_address_p.
20464 (*movsf_update4): Ditto.
20465 (allocate_stack): Simplify condition. Adjust pattern names.
20466
20467 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20468
20469 PR target/89093
20470 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20471 whitespace at the start of target attribute string.
20472
20473 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20474
20475 PR target/84369
20476 * config/rs6000/power9.md: Add store forwarding bypass.
20477
20478 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20479
20480 PR debug/89528
20481 * valtrack.c (dead_debug_insert_temp): Reset debug references
20482 to the return value of a call being removed.
20483
20484 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20485
20486 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20487 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20488 implement target hook.
20489 (arc_memory_move_cost): New function.
20490 (TARGET_REGISTER_MOVE_COST): Define.
20491 (TARGET_MEMORY_MOVE_COST): Likewise.
20492 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20493 (MEMORY_MOVE_COST): Likewise.
20494
20495 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20496
20497 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20498 (sibcall_value_insn): Likewise.
20499 * config/arc/constraints.md (Rs5): Remove.
20500
20501 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20502
20503 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20504 for last two fake registers.
20505 (arc_conditional_register_usage): Make sure fake frame and arg
20506 pointer regs are in general regs class.
20507 (FRAME_POINTER_MASK): Remove.
20508 (RETURN_ADDR_MASK): Remove.
20509 (arc_must_save_register): Use hard frame regnum.
20510 (frame_restore_reg): Use hard_frame_pointer_rtx.
20511 (arc_save_callee_saves): Likewise.
20512 (arc_restore_callee_saves): Likewise.
20513 (arc_save_callee_enter): Likewise.
20514 (arc_restore_callee_leave): Likewise.
20515 (arc_save_callee_milli): Likewise.
20516 (arc_eh_return_address_location): Likewise.
20517 (arc_check_multi): Use hard frame regnum.
20518 (arc_can_eliminate): Likewise.
20519 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20520 for register allocator.
20521 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20522 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20523 (FRAME_POINTER_REGNUM): Change it to a fake register.
20524 (HARD_FRAME_POINTER_REGNUM): Defined.
20525 (ARG_POINTER_REGNUM): Change it to a new fake register.
20526 (ELIMINABLE_REGS): Update.
20527 (REGISTER_NAMES): Update names.
20528 * config/arc/arc.md (LP_START): Remove.
20529 (LP_END): Likewise.
20530 (shift_si3_loop): Update pattern.
20531
20532 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20533
20534 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20535 to avoid delay slot scheduling.
20536 (arc_must_save_register): Don't save SP.
20537 * config/arc/arc.md (stack_tie): Remove.
20538 (UNSPEC_ARC_STKTIE): Likewise.
20539
20540 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20541 Shiva Chen <shiva0217@gmail.com>
20542
20543 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20544 code gen with large shift amount.
20545
20546 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20547
20548 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20549 subreg.
20550
20551 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20552
20553 PR target/90096
20554 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20555 print -m64/-mx32/-m32 if it is true.
20556 (ix86_debug_options, ix86_function_specific_print): Pass true as
20557 ADD_ABI_P to ix86_target_string.
20558 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20559 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20560 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20561
20562 PR rtl-optimization/90082
20563 * dce.c (can_delete_call): New function.
20564 (deletable_insn_p, mark_insn): Use it.
20565
20566 PR tree-optimization/90090
20567 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20568 throw internally.
20569 (is_division_by_square): Likewise. Formatting fix.
20570
20571 2019-04-16 Richard Biener <rguenther@suse.de>
20572
20573 PR tree-optimization/56049
20574 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20575 equality check if alias-set zero will prevail.
20576
20577 2019-04-15 Jeff Law <law@redhat.com>
20578
20579 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20580 size and alignment as unsigned.
20581
20582 2019-04-15 Richard Biener <rguenther@suse.de>
20583
20584 PR debug/90074
20585 * tree-loop-distribution.c (destroy_loop): Preserve correct
20586 debug info.
20587
20588 2019-04-15 Richard Biener <rguenther@suse.de>
20589
20590 PR tree-optimization/90071
20591 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20592 abnormal operands from def stmts.
20593
20594 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20595
20596 PR rtl-optimization/89794
20597 * combine.c (count_auto_inc): New function.
20598 (try_combine): Count how many auto_inc expressions there were in the
20599 original instructions. Ensure we have the same number in the new
20600 instructions. Remove the code that tried to ensure auto_inc side
20601 effects on i1 and i0 are not lost.
20602
20603 2019-04-15 Richard Biener <rguenther@suse.de>
20604
20605 PR ipa/88936
20606 * tree.h (auto_var_p): Declare.
20607 * tree.c (auto_var_p): New function, split out from ...
20608 (auto_var_in_fn_p): ... here.
20609 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20610 member.
20611 (new_var_info): Initialize it.
20612 (set_uids_in_ptset): Also set the shadow variable uid if required.
20613 (ipa_pta_execute): Postprocess points-to solutions assigning
20614 shadow variable uids for locals that may reach their containing
20615 function recursively.
20616 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20617 assert but instead check whether the points-to solution is
20618 a singleton.
20619
20620 2019-04-15 Martin Jambor <mjambor@suse.cz>
20621
20622 PR ipa/pr89693
20623 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20624 the thunk chain.
20625
20626 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20627
20628 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20629
20630 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20631 Kito Cheng <kito.cheng@gmail.com>
20632 Shiva Chen <shiva0217@gmail.com>
20633
20634 * config/nds32/nds32-md-auxiliary.c
20635 (nds32_legitimize_pic_address): Use new PIC pattern.
20636 (nds32_legitimize_tls_address): Use new TLS pattern.
20637 (nds32_output_symrel): New.
20638 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20639 (nds32_alloc_relax_group_id): Ditto.
20640 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20641 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20642 relax_group_id.
20643 (nds32_group_tls_insn): Ditto.
20644 (nds32_group_float_insns): Ditto.
20645 * config/nds32/nds32.md (tls_le): New.
20646 (sym_got): Ditto.
20647
20648 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20649
20650 * configure: Add nds32 target for dwarf2 debug_line checking.
20651 * configure.ac: Regenerated.
20652
20653 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20654
20655 PR lto/89358
20656 * ipa-devirt.c (skip_in_fields_list_p): New.
20657 (odr_types_equivalent_p): Use it.
20658
20659 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20660
20661 PR target/89093
20662 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20663 instead of strncmp when checking for thumb and arm. Formatting fixes.
20664
20665 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20666
20667 * doc/install.texi: Document --with-target-system-zlib.
20668
20669 2019-04-12 Martin Sebor <msebor@redhat.com>
20670
20671 PR c/88383
20672 PR c/89288
20673 PR c/89798
20674 PR c/89797
20675 * targhooks.c (default_vector_alignment): Avoid assuming
20676 argument fits in SHWI.
20677 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20678 a shift expression.
20679 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20680
20681 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20682
20683 PR rtl-optimization/89965
20684 * dce.c: Include rtl-iter.h.
20685 (struct check_argument_load_data): New type.
20686 (check_argument_load): New function.
20687 (find_call_stack_args): Check for loads from stack slots still tracked
20688 in sp_bytes and punt if any is found.
20689
20690 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20691
20692 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20693
20694 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20695 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20696
20697 2019-04-12 Martin Liska <mliska@suse.cz>
20698
20699 PR middle-end/89970
20700 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20701 in error message.
20702 (separate_attrs): Handle multiple 'default's.
20703 (expand_target_clones): Rework error handling code.
20704
20705 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20706
20707 PR target/87532
20708 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20709 mode of vector rather than mode of destination for move instruction.
20710 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20711 Use QI inner mode with V16QI vector mode.
20712
20713 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20714
20715 PR target/52726
20716 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20717 "invalid %%t operand" in output_operand_lossage message.
20718
20719 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20720
20721 * config/s390/predicates.md (permute_pattern_operand): New
20722 predicate.
20723 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20724 operand for the permute pattern.
20725 ("*vec_perm<mode>"): New insn definition.
20726 ("bswap<mode>"): Generate the permute pattern operand in the
20727 expander and perform the operand reloads for pre arch13 level
20728 already.
20729 ("*bswap<mode>_emu"): Rename to ...
20730 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20731 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20732 Add the USE operand for the permute pattern.
20733 ("*vec_set_bswap_vec<mode>"): Likewise.
20734
20735 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20736
20737 PR c/89946
20738 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20739 and gcc_unreachable if it fails, just call tree_to_uhwi which
20740 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20741 Start warning message with a lower-case letter. Formatting fixes.
20742
20743 PR rtl-optimization/90026
20744 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20745 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20746 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20747 in cfglayout mode, use emit_barrier_after_bb.
20748
20749 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20750
20751 PR rtl-optimization/87763
20752 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20753 New Instruction.
20754
20755 2019-04-11 Tom de Vries <tdevries@suse.de>
20756
20757 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20758 max macro using statement expression.
20759
20760 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20761
20762 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20763 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20764 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20765 read_only_private_data_section using xcoff_private_rodata_section_name.
20766 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20767
20768 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20769
20770 PR target/90016
20771 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20772
20773 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20774
20775 PR rtl-optimization/89965
20776 * dce.c (sp_based_mem_offset): New function.
20777 (find_call_stack_args): Use sp_based_mem_offset.
20778
20779 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20780
20781 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20782
20783 2019-04-11 Richard Biener <rguenther@suse.de>
20784
20785 PR tree-optimization/90020
20786 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20787 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20788 * tree-ssa-pre.c (compute_avail): Use it to not put
20789 possibly trapping references after a call that might not
20790 return into EXP_GEN.
20791 * gcse.c (compute_hash_table_work): Do not elide
20792 marking a block containing a call if the call might not
20793 return.
20794
20795 2019-04-11 Richard Biener <rguenther@suse.de>
20796
20797 PR tree-optimization/90018
20798 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20799 Test both SLP and interleaving variants.
20800
20801 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20802
20803 * config/s390/8561.md: New file.
20804 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20805 Add arch13 cpu model.
20806 * config/s390/s390-opts.h (enum processor_type): Likewise.
20807 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20808 (s390_get_unit_mask): Likewise.
20809 (s390_is_fpd): Likewise.
20810 (s390_is_fxd): Likewise.
20811 * config/s390/s390.h (s390_tune_attr): Likewise.
20812 * config/s390/s390.md: Include arch13 pipeline description.
20813 * config/s390/s390.opt: Add arch13.
20814
20815 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20816
20817 PR rtl-optimization/87763
20818 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20819 New prototype.
20820 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20821 New function.
20822 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20823 New instruction.
20824 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20825 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20826 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20827 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20828
20829 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20830
20831 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20832 "Although" in -fipa-icf documentation.
20833
20834 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20835 of using multiple -g options.
20836
20837 2019-04-10 Martin Liska <mliska@suse.cz>
20838
20839 PR gcov-profile/89959
20840 * doc/gcov.texi: Make documentation of -x option
20841 more precise.
20842
20843 2019-04-10 Richard Biener <rguenther@suse.de>
20844
20845 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20846 member.
20847 (DR_GROUP_SAME_DR_STMT): Remove.
20848 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20849 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20850 replace with assert.
20851 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20852 (vect_record_grouped_load_vectors): Remove unreachable code.
20853
20854 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20855
20856 PR target/90016
20857 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20858 obsolete reference to N.
20859
20860 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20861
20862 PR middle-end/90025
20863 * expr.c (store_expr): Set properly size on the MEM passed to
20864 clear_storage.
20865
20866 PR c++/90010
20867 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20868 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20869 translation is needed, and when translation is needed, only append
20870 ... if the string length is hostsz or more bytes long. Avoid using
20871 strncpy or strcat.
20872
20873 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20874
20875 PR target/90024
20876 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20877 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20878 into three.
20879 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20880 differences directly.
20881 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20882
20883 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20884
20885 PR translation/90011
20886 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20887 from diagnostics.
20888 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20889 diagnostics.
20890 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20891 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20892 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20893 trailing space from -gsplit-dwarf diagnostics.
20894
20895 PR tree-optimization/89998
20896 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20897 instead of integer_type_node if possible, don't add ranges if return
20898 type is not compatible with int.
20899 * gimple-fold.c (gimple_fold_builtin_sprintf,
20900 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20901 integer_type_node.
20902
20903 2019-04-09 Martin Liska <mliska@suse.cz>
20904
20905 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20906 * doc/install.texi: Document the new config.
20907
20908 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20909
20910 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20911 use gimple_expr_type for load and store calls. Skip over the
20912 condition argument in a conditional internal function.
20913 Protect use of TREE_INT_CST_LOW.
20914
20915 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20916
20917 PR target/90015
20918 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20919 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20920 trailing period from it too.
20921
20922 2019-04-08 wu yuan <wuyuan5@huawei.com>
20923
20924 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20925 * config/aarch64/aarch64.md : Add "tsv110.md"
20926 * config/aarch64/tsv110.md: New file.
20927
20928 2019-04-08 Richard Biener <rguenther@suse.de>
20929
20930 PR tree-optimization/90006
20931 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20932 calls like lrint.
20933
20934 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20935
20936 PR target/83033
20937 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20938 construction.
20939 (fma_root_node): Likewise.
20940 (func_fma_steering): Likewise.
20941
20942 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20943
20944 PR rtl-optimization/89865
20945 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20946
20947 PR rtl-optimization/89865
20948 * config/i386/i386.md
20949 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20950 numbers not to clash with the additional operands[4].
20951 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20952 with extra register copy in the middle.
20953
20954 2019-04-08 Martin Liska <mliska@suse.cz>
20955
20956 PR gcov-profile/89961
20957 * doc/gcov.texi: Document data_file.
20958 * gcov.c (generate_results): Add data_info into JSON output.
20959
20960 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20961
20962 PR tree-optimization/89725
20963 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20964 loop's chrec as invariant symbol.
20965 * tree-chrec.h (chrec_contains_symbols): New parameter.
20966 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20967 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20968 function of loops not in DDR's loop_nest.
20969 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20970
20971 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20972
20973 PR target/89623
20974 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20975 Mask.
20976
20977 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20978
20979 PR target/89945
20980 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20981 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20982
20983 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20984
20985 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20986 targetm.fixed_condition_code_regs.
20987
20988 2019-04-05 Richard Biener <rguenther@suse.de>
20989
20990 PR debug/89892
20991 PR debug/89905
20992 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20993 debug bind stmts but reset them if they are not valid at the
20994 destination.
20995
20996 2019-04-05 Martin Liska <mliska@suse.cz>
20997
20998 PR translation/89936
20999 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21000 order to wrap keywords or arguments.
21001 * collect2.c (main): Likewise.
21002 (scan_prog_file): Likewise.
21003 (scan_libraries): Likewise.
21004 * common/config/riscv/riscv-common.c
21005 (riscv_subset_list::parsing_subset_version): Likewise.
21006 (riscv_subset_list::parse_std_ext): Likewise.
21007 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21008 Likewise.
21009 * config/arm/arm.c (arm_option_override): Likewise.
21010 * config/cris/cris.c (cris_print_operand): Likewise.
21011 * config/darwin-c.c (darwin_pragma_options): Likewise.
21012 (darwin_pragma_unused): Likewise.
21013 (darwin_pragma_ms_struct): Likewise.
21014 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21015 * config/i386/i386.c (print_reg): Likewise.
21016 (ix86_print_operand): Likewise.
21017 * config/i386/xm-djgpp.h: Likewise.
21018 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21019 * config/m32c/m32c.c (m32c_option_override): Likewise.
21020 * config/msp430/msp430.c (msp430_option_override): Likewise.
21021 * config/nds32/nds32.c (nds32_option_override): Likewise.
21022 * config/nvptx/mkoffload.c (main): Likewise.
21023 * config/rx/rx.c (rx_print_operand): Likewise.
21024 (valid_psw_flag): Likewise.
21025 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21026 (vms_pragma_nomember_alignment): Likewise.
21027 (vms_pragma_extern_model): Likewise.
21028 * lto-wrapper.c (compile_offload_image): Likewise.
21029 * omp-offload.c (oacc_parse_default_dims): Likewise.
21030 * symtab.c (symtab_node::verify_base): Likewise.
21031 * tlink.c (recompile_files): Likewise.
21032 (start_tweaking): Likewise.
21033 * tree-profile.c (parse_profile_filter): Likewise.
21034
21035 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21036
21037 PR tree-optimization/89956
21038 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21039 multiple negates of the same value.
21040
21041 2019-04-04 Martin Sebor <msebor@redhat.com>
21042
21043 PR middle-end/89957
21044 PR middle-end/89911
21045 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21046 have the same precision since the function crashes otherwise.
21047 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21048 has non-zero arguments.
21049
21050 2019-04-04 Martin Sebor <msebor@redhat.com>
21051
21052 PR middle-end/89934
21053 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21054 out if the number of arguments is less than expected.
21055
21056 2019-04-04 Jeff Law <law@redhat.com>
21057
21058 PR rtl-optimization/89399
21059 * ree.c (combine_set_extension): Use single_set rather than
21060 digging into PATTERN for items on the candidate list.
21061 (combine_reaching_defs): Likewise.
21062
21063 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21064
21065 PR rtl-optimization/46590
21066 * loop-invariant.c (find_defs): Move df_remove_problem and
21067 df_process_deferred_rescans to move_invariants.
21068 Move df_live_add_problem and df_live_set_all_dirty calls
21069 to move_invariants.
21070 (move_invariants): Likewise.
21071 (move_loop_invariants): Likewise, making the df_live calls
21072 conditional on -O. Remove the problem again if we added it
21073 locally.
21074
21075 2019-04-03 qing zhao <qing.zhao@oracle.com>
21076
21077 PR tree-optimization/89730
21078 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21079 -flive-patching=inline-only-static.
21080 (can_inline_edge_by_limits_p): Add the checking for
21081 -flive-patching=inline-only-static and grant always_inline
21082 even when -flive-patching=inline-only-static is specified.
21083
21084 2019-04-03 Jeff Law <law@redhat.com>
21085
21086 PR rtl-optimization/81025
21087 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21088
21089 2019-04-03 Richard Biener <rguenther@suse.de>
21090
21091 PR tree-optimization/84101
21092 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21093 regs.h for hard_regno_nregs.
21094 (cfun_returns): New helper.
21095 (vect_model_store_cost): When vectorizing a store to a decl
21096 we return and the function ABI returns in a multi-reg location
21097 account for the possible spilling that will happen.
21098
21099 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21100
21101 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21102 displacement addresses for vector mode operands.
21103
21104 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21105
21106 * config/arc/arc.c (GMASK_LEN): Define.
21107 (arc_restore_callee_saves): Restore first blink when
21108 !optimize_size.
21109
21110 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21111
21112 * doc/extend.texi: Add deprecated comment on sign-return-address
21113 function attribute and add mbranch-protection.
21114 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21115
21116 2019-04-03 Richard Biener <rguenther@suse.de>
21117
21118 PR lto/89896
21119 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21120 the all target phony.
21121
21122 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21123
21124 PR target/89902
21125 PR target/89903
21126 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21127 Return false for variable DImode shifts.
21128 (dimode_scalar_chain::compute_convert_gain): Do not handle
21129 register count operand in variable DImode shifts.
21130 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21131 count argument of a variable shift instruction to a vector register.
21132 (dimode_scalar_chain::convert_reg): Remove support to convert
21133 count argument of a variable shift instruction.
21134
21135 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21136
21137 PR rtl-optimization/84206
21138 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21139 iterating over loop headers.
21140
21141 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21142
21143 PR rtl-optimization/85876
21144 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21145 beyond the original fence.
21146
21147 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21148
21149 * config.gcc: Mark spu* targets as deprecated/obsolete.
21150
21151 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21152
21153 * config/s390/s390-builtin-types.def: New builtin function type
21154 definitions. Remove unused types.
21155 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21156 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21157 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21158 overloaded builtins.
21159 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21160 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21161 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21162 (vec_double, vec_signed, vec_unsigned): Define to use the new
21163 overloaded builtins.
21164 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21165 Remove expanders.
21166
21167 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21168
21169 * config/s390/s390-builtin-types.def: New builtin function type
21170 definitions.
21171 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21172 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21173 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21174 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21175 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21176 constant definitions.
21177 * config/s390/vecintrin.h (vec_search_string_cc)
21178 (vec_search_string_until_zero_cc): New builtin name definitions.
21179 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21180 expanders.
21181 ("vec_vstrs<mode>"): New insn definition.
21182
21183 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21184
21185 * config/s390/s390-builtin-types.def: Add new builtin function
21186 types.
21187 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21188 New overloaded builtins.
21189 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21190 s390_vsrd.
21191 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21192 (UNSPEC_VEC_SLDBYTE): ... this.
21193 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21194 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21195 definitions.
21196 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21197 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21198 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21199
21200 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21201
21202 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21203 New insn definition.
21204 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21205 * config/s390/vector.md (V_HW_HSD): ... here.
21206
21207 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21208
21209 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21210 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21211 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21212 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21213 New insn definitions.
21214
21215 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21216
21217 * config/s390/s390-builtin-types.def: Add new builtin function type.
21218 * config/s390/s390-builtins.def: Add overloaded builtin
21219 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21220 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21221 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21222 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21223 ("eltswap<mode>"): New expander.
21224 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21225 insn definitions.
21226
21227 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21228
21229 * config/s390/s390-builtin-types.def: Add new builtin function types.
21230 * config/s390/s390-builtins.def: Add overloaded builtin
21231 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21232 instructions.
21233 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21234 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21235 ("bswap<mode>"): New expander.
21236 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21237
21238 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21239
21240 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21241 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21242 vector builtin version number in __VEC__.
21243
21244 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21245
21246 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21247 iterators.
21248 (SFSI): New mode attribute.
21249 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21250 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21251 rename to ...
21252 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21253 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21254 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21255 ("floatsi<mode>2"): Add wcefb instruction.
21256
21257 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21258
21259 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21260 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21261 mode iterators.
21262 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21263 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21264 support 32 bit fp-int conversions. Rename to ...
21265 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21266 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21267 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21268 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21269 ... to these.
21270
21271 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21272
21273 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21274 if-then-else constructs if we can use the select instruction.
21275 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21276
21277 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21278
21279 * config/s390/s390.md ("*popcountdi_arch13_cc")
21280 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21281 definition.
21282 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21283 Append _z196 to make it ...
21284 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21285 ("popcounthi2_z196"): ... this.
21286 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21287 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21288
21289 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21290
21291 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21292 certain compares for arch13 in order to make use of the condition
21293 code result produced by the new instructions.
21294 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21295 nxrk, and nxgrk instruction patterns.
21296 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21297 (inv_no): Add new code iterator together with some attributes.
21298 ("*andc_split_<mode>"): Disable splitter for arch13.
21299 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21300 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21301 ("*<ANDOR:bitops_name>c<GPR:mode>")
21302 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21303 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21304 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21305 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21306
21307 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21308
21309 * common/config/s390/s390-common.c (processor_flags_table): New
21310 entry for arch13.
21311 * config.gcc: Support arch13 with the --with-arch= configure flag.
21312 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21313 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21314 * config/s390/s390.c (s390_get_sched_attrmask)
21315 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21316 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21317 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21318 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21319 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21320 definitions.
21321 * config/s390/s390.opt: Support arch13 as processor type in
21322 command line options.
21323
21324 2019-04-02 Martin Liska <mliska@suse.cz>
21325
21326 PR translation/89912
21327 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21328 Fix param description of graphite-max-arrays-per-scop.
21329
21330 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21331
21332 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21333 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21334 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21335
21336 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21337
21338 PR rtl-optimization/85412
21339 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21340 sel_sched_region_1, not after.
21341
21342 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21343
21344 PR rtl-optimization/86928
21345 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21346 compute_live if necessary.
21347 (sel_redirect_edge_and_branch): Likewise.
21348
21349 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21350
21351 PR rtl-optimization/89865
21352 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21353 register if it is a part of small class.
21354
21355 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21356
21357 PR rtl-optimization/87273
21358 * sel-sched-ir.c (merge_fences): Remove assert.
21359
21360 2019-04-01 Richard Biener <rguenther@suse.de>
21361
21362 PR tree-optimization/46590
21363 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21364 (dom_walker::m_reachability): Add in place of...
21365 (dom_walker::m_skip_unreachable_blocks): ...this.
21366 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21367 Move complex initialization ...
21368 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21369 lazily and initialize edge flags on each invocation.
21370 (dom_walker::bb_reachable): Use m_reachability.
21371
21372 2019-04-01 Martin Liska <mliska@suse.cz>
21373
21374 PR driver/89861
21375 * opt-suggestions.c (option_proposer::build_option_suggestions):
21376 Add variant without any argument in order to provide better
21377 hints.
21378
21379 2019-04-01 Richard Biener <rguenther@suse.de>
21380
21381 PR c/71598
21382 * gimple.c: Include langhooks.h.
21383 (gimple_get_alias_set): Treat enumeral types as the underlying
21384 integer type.
21385
21386 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21387 Eric Botcazou <ebotcazou@adacore.com>
21388
21389 PR rtl-optimization/89862
21390 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21391 that operates on the full registers for WORD_REGISTER_OPERATIONS
21392 architectures.
21393
21394 2019-03-29 Jim Wilson <jimw@sifive.com>
21395
21396 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21397 Clear MASK_RVC and then set if C subset supported.
21398
21399 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21400
21401 PR c/89872
21402 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21403 non-addressable complit into its initializer if it is volatile.
21404
21405 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21406
21407 * opts-common.c (integral_argument): Set errno properly in one case.
21408
21409 2019-03-29 Martin Liska <mliska@suse.cz>
21410
21411 * doc/invoke.texi: Remove -Wchkp from documentation.
21412
21413 2019-03-29 Martin Liska <mliska@suse.cz>
21414
21415 * dbgcnt.c (print_limit_reach): New function.
21416 (dbg_cnt): Use it.
21417
21418 2019-03-29 Martin Liska <mliska@suse.cz>
21419
21420 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21421 (dbg_cnt_process_opt): Parse first tokens aas
21422 dbg_cnt_process_single_pair is also using strtok.
21423
21424 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21425
21426 PR rtl-optimization/87485
21427 * function.c (expand_function_end): Move stack_protect_epilogue
21428 before loading of return value into hard register(s).
21429
21430 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21431
21432 PR middle-end/89621
21433 * tree-inline.h (struct copy_body_data): Add
21434 dont_remap_vla_if_no_change flag.
21435 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21436 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21437 and remap_type_2 returns false.
21438 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21439 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21440 only from where it is copied to nested contexts.
21441
21442 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21443
21444 PR target/89865
21445 * config/i386/i386.md (RMW operation with LEA peephole):
21446 Use LEAMODE mode attribute instead of SWI mode iterator for
21447 LEA pattern.
21448
21449 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21450
21451 PR target/89848
21452 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21453 Also process XEXP (src, 0) of a shift insn.
21454
21455 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21456
21457 PR middle-end/89725
21458 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21459 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21460
21461 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21462
21463 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21464 test.
21465 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21466 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21467 immediately after first one with df_analyze in between, but rather
21468 process all bbs, queueing ones that need second pass in a worklist,
21469 df_analyze, process queued debug insn changes and if second pass is
21470 needed, process bbs from worklist, df_analyze, process queued debug
21471 insns again.
21472
21473 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21474 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21475 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21476
21477 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21478
21479 PR c/79022
21480 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21481 definition.
21482
21483 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21484
21485 PR target/85667
21486 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21487 function for 32-bit MS_ABI.
21488 (function_value_ms_32): New function.
21489
21490 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21491
21492 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21493 (movdi): Call gen_movdi_symbol_save_scc.
21494 (gen_movdi_symbol_save_scc): New insn and split.
21495
21496 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21497
21498 PR rtl-optimization/89313
21499 * function.c (matching_constraint_num): New static function.
21500 (match_asm_constraints_1): Use it. Fixup white space and comment.
21501 Don't replace inputs with non-matching constraints which conflict
21502 with early clobber outputs.
21503
21504 2019-03-27 Jeff Law <law@redhat.com>
21505
21506 PR rtl-optimization/87761
21507 PR rtl-optimization/89826
21508 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21509 slightly later.
21510 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21511 note problem to get REG_DEAD/REG_UNUSED notes updated.
21512
21513 2019-03-27 Richard Biener <rguenther@suse.de>
21514
21515 PR tree-optimization/89463
21516 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21517 queue edges to remove.
21518 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21519 dead stmts. Delay edge removal until PHIs are removed to
21520 make debug-stmt creation not confused by seemingly degenerate
21521 PHIs.
21522
21523 2019-03-27 Alan Modra <amodra@gmail.com>
21524
21525 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21526 throughout file.
21527 * config/rs6000/darwin.h: Likewise.
21528 * config/rs6000/rs6000.c: Likewise.
21529
21530 2019-03-27 Alan Modra <amodra@gmail.com>
21531
21532 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21533 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21534
21535 2019-03-26 Andrew Waterman <andrew@sifive.com>
21536 Jim Wilson <jimw@sifive.com>
21537
21538 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21539 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21540 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21541 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21542 (generic_alu): Add auipc to type list.
21543 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21544 (riscv_microarchitecture): Declare.
21545 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21546 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21547 field.
21548 (riscv_microarchitecture): New.
21549 (sifive_7_tune_info): New.
21550 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21551 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21552 entries.
21553 (riscv_store_data_bypass_p): New.
21554 (riscv_option_override): Set riscv_microarchitecture from
21555 cpu->microarchitecture.
21556 * config/riscv/riscv.md: Include sifive-7.md.
21557 (type): Add auipc.
21558 (tune): New.
21559 (auipc<mode>): Change type to auipc.
21560 (restore_stack_nonlocal): New.
21561 * config/riscv/sifive-7.md: New.
21562 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21563
21564 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21565
21566 PR target/89827
21567 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21568 Also process XEXP (src, 0) of a shift insn.
21569
21570 2019-03-26 Richard Biener <rguenther@suse.de>
21571
21572 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21573 (copy_debug_stmt): Likewise.
21574 (expand_call_inline): Likewise.
21575 (copy_bb): Avoid redundant lookup & set of gimple_block.
21576 * gimple-low.c (lower_gimple_return): Likewise.
21577 (lower_builtin_setjmp): Likewise.
21578
21579 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21580
21581 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21582 is constant 0, turn into static const data member initialized to false.
21583 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21584 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21585
21586 2019-03-26 Jason Merrill <jason@redhat.com>
21587 Jakub Jelinek <jakub@redhat.com>
21588
21589 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21590 method.
21591 (mem_alloc_description::release_object_overhead): Fix comment typos.
21592 * hash-table.h (hash_table::~hash_table): Call
21593 release_instance_overhead only if m_entries is non-NULL, otherwise
21594 call unregister_descriptor.
21595
21596 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21597
21598 PR tree-optimization/81740
21599 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21600 In case of outer loop vectorization, check for backward dependence
21601 at the inner loop if outer loop dependence is reversed.
21602
21603 2019-03-26 Alan Modra <amodra@gmail.com>
21604
21605 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21606 rs6000_vector_mem init. Correct wI and wJ comment.
21607
21608 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21609
21610 PR rtl-optimization/88347
21611 PR rtl-optimization/88423
21612 * sched-deps.c (sched_analyze_insn): Take into account that for
21613 tablejumps the barrier appears after a label and a jump_table_data.
21614
21615 2019-03-25 Martin Sebor <msebor@redhat.com>
21616
21617 PR c/89812
21618 * c-common.c (check_user_alignment): Rename local. Correct maximum
21619 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21620 convert it to UHWI when it fits.
21621
21622 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21623
21624 PR debug/86964
21625 * dwarf2out.c (premark_used_variables): New function.
21626 (prune_unused_types_walk): Do not mark not premarked external
21627 variables.
21628 (prune_unused_types): Call premark_used_variables.
21629
21630 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21631
21632 PR rtl-optimization/89676
21633 * lra-constraints.c (curr_insn_transform): Do match reload for
21634 early clobbers when the match was successful only for different
21635 registers.
21636
21637 2019-03-25 Martin Sebor <msebor@redhat.com>
21638
21639 * doc/extend.texi (Common Type Attributes): Document vector_size.
21640 (Common Variable Attributes): Mention size constraint. Correct
21641 quoting and typos.
21642 (Vector Extensions): Use @dfn when defining bas type. Clarify
21643 base type and size constraints.
21644
21645 2019-03-25 Richard Biener <rguenther@suse.de>
21646
21647 PR tree-optimization/89789
21648 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21649 changes from non-undefined back to undefined.
21650
21651 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21652
21653 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21654 heap string and a gc string, but since this variable is unknown to
21655 ggc the gc string might get reused and corrupted. Fixed by always
21656 using a heap string.
21657
21658 2019-03-25 Richard Biener <rguenther@suse.de>
21659
21660 PR tree-optimization/89779
21661 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21662 to remove IV defs, delay actual removal.
21663 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21664 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21665 very end, properly also reset loop control IV information.
21666
21667 2019-03-25 Richard Biener <rguenther@suse.de>
21668
21669 PR tree-optimization/89802
21670 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21671 move EH data to folded stmt.
21672
21673 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21674
21675 * config/s390/s390-builtin-types.def: Remove few unused types and
21676 fix sort order for others.
21677
21678 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21679
21680 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21681 expected and found types with -mdebug during builtin matching.
21682
21683 2019-03-25 Richard Biener <rguenther@suse.de>
21684
21685 PR middle-end/89790
21686 * fold-const.c (operand_equal_p): Revert last change with
21687 updated comment.
21688
21689 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21690
21691 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21692 notes for the result of the __tls_get_addr calls.
21693 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21694
21695 2019-03-24 Jeff Law <law@redhat.com>
21696
21697 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21698
21699 PR rtl-optimization/87761
21700 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21701 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21702 as needed.
21703 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21704 rescans. Reprocess blocks as needed, calling df_analyze before
21705 reprocessing. Always call df_analyze before fixing up debug bind
21706 insns.
21707
21708 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21709
21710 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21711 big endian.
21712
21713 2019-03-22 Andrew Pinski <apinski@marvell.com>
21714
21715 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21716 attrribute for uxtw.
21717
21718 2019-03-26 Jeff Law <law@redhat.com>
21719
21720 PR rtl-optimization/87761
21721 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21722 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21723 (mips_split_move): Accept new INSN argument. Try to forward SRC
21724 into the next instruction.
21725 (mips_split_move_insn): Pass INSN through to mips_split_move.
21726
21727 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21728
21729 PR rtl-optimization/89676
21730 * lra-constraints.c (curr_insn_transform): Do match reload for
21731 early clobbers even if the match was successful.
21732
21733 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21734
21735 PR c++/87481
21736 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21737
21738 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21739
21740 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21741
21742 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21743
21744 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21745 <avx512>_fmsub_<mode>_mask3<round_name>,
21746 <avx512>_fnmadd_<mode>_mask3<round_name>,
21747 <avx512>_fnmsub_<mode>_mask3<round_name>,
21748 avx512f_vmfmadd_<mode>_mask3<round_name>,
21749 avx512f_vmfmsub_<mode>_mask3<round_name>,
21750 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21751 instead of register_operand and %v instead of v for match_operand 1.
21752 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21753 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21754 <round_nimm_predicate> instead of register_operand and %v instead of v
21755 for match_operand 1.
21756
21757 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21758 <avx512>_fmadd_<mode>_mask3<round_name>,
21759 <avx512>_fmsub_<mode>_mask<round_name>,
21760 <avx512>_fmsub_<mode>_mask3<round_name>,
21761 <avx512>_fnmadd_<mode>_mask<round_name>,
21762 <avx512>_fnmadd_<mode>_mask3<round_name>,
21763 <avx512>_fnmsub_<mode>_mask<round_name>,
21764 <avx512>_fnmsub_<mode>_mask3<round_name>,
21765 <avx512>_fmaddsub_<mode>_mask<round_name>,
21766 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21767 <avx512>_fmsubadd_<mode>_mask<round_name>,
21768 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21769 <round_nimm_predicate> instead of nonimmediate_operand.
21770 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21771 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21772 Use register_operand instead of <round_nimm_predicate> for the
21773 operand that needs to match output.
21774 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21775 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21776 Likewise. Formatting fixes.
21777
21778 PR target/89784
21779 * config/i386/i386.c (enum ix86_builtins): Remove
21780 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21781 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21782 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21783 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21784 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21785 __builtin_ia32_vfmsubss3_mask3): New builtins.
21786 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21787 avx512f_vmfmadd_<mode>_mask3<round_name>,
21788 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21789 *avx512f_vmfmsub_<mode>_mask<round_name>,
21790 avx512f_vmfmsub_<mode>_mask3<round_name>,
21791 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21792 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21793 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21794 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21795 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21796 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21797 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21798 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21799 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21800 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21801 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21802 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21803 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21804 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21805 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21806 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21807 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21808 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21809 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21810 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21811 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21812 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21813 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21814 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21815 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21816 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21817 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21818 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21819
21820 2019-03-21 Martin Sebor <msebor@redhat.com>
21821
21822 PR tree-optimization/89350
21823 * builtins.c (compute_objsize): Also ignore offsets whose upper
21824 bound is negative.
21825 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21826 (builtin_memref::builtin_memref): Initialize new member.
21827 Allow EXPR to be null.
21828 (builtin_memref::extend_offset_range): Replace local with a member.
21829 Avoid assuming pointer offsets are unsigned.
21830 (builtin_memref::set_base_and_offset): Determine base object
21831 before computing offset range.
21832 (builtin_access::builtin_access): Handle memset.
21833 (builtin_access::generic_overlap): Replace local with a member.
21834 (builtin_access::strcat_overlap): Same.
21835 (builtin_access::overlap): Same.
21836 (maybe_diag_overlap): Same.
21837 (maybe_diag_access_bounds): Same.
21838 (wrestrict_dom_walker::check_call): Handle memset.
21839 (check_bounds_or_overlap): Same.
21840
21841 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21842 Jakub Jelinek <jakub@redhat.com>
21843
21844 PR lto/89692
21845 * tree.c (fld_type_variant, fld_incomplete_type_of,
21846 fld_process_array_type): Call fld->pset.add and don't call
21847 add_tree_to_fld_list if it returns true.
21848 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21849 non-marked types from TYPE_NEXT_VARIANT list.
21850 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21851
21852 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21853
21854 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21855 to false, if true, don't alloc_entries during construction, but defer
21856 it to the first method that needs m_entries allocated.
21857 (hash_table::hash_table, hash_table::~hash_table,
21858 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21859 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21860 hash_table::clear_slot, hash_table::traverse_noresize,
21861 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21862 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21863 false.
21864 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21865 NO_INSERT instead of find_with_hash.
21866 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21867 hash_set::m_table): Add Lazy to template params of hash_table.
21868 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21869 * attribs.c (test_attribute_exclusions): Likewise.
21870 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21871 hash_set. Add tests for hash_set with Lazy = true.
21872
21873 2019-03-21 Richard Biener <rguenther@suse.de>
21874
21875 PR tree-optimization/89779
21876 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21877 checks with respect to released SSA names now having error_mark_node
21878 type.
21879 * fold-const.c (operand_equal_p): Likewise.
21880
21881 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21882
21883 PR target/89775
21884 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21885 available to ...
21886 (s390_optimize_register_info): Use global_not_special_regno_p to
21887 check for global regs.
21888
21889 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21890
21891 PR target/89752
21892 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21893 update this_alternative nor this_alternative_set.
21894
21895 2019-03-19 Jim Wilson <jimw@sifive.com>
21896
21897 PR target/89411
21898 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21899 align, size, offset. Use them to handle a BLKmode reference. Update
21900 comment.
21901 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21902
21903 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21904
21905 PR rtl-optimization/89768
21906 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21907 instead of GEN_INT.
21908 (unroll_loop_runtime_iterations): Likewise.
21909
21910 2019-03-19 Martin Sebor <msebor@redhat.com>
21911
21912 PR tree-optimization/89644
21913 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21914 rather than endptr as an indicator of nul-termination.
21915
21916 PR tree-optimization/89644
21917 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21918 arrays in determining sequence sizes in strncpy and stpncpy.
21919
21920 2019-03-19 Martin Liska <mliska@suse.cz>
21921
21922 PR middle-end/89737
21923 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21924 unlikely_edges if there's an edge that belongs to both these sets.
21925
21926 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21927
21928 PR target/89746
21929 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21930 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21931 go via a stack temporary.
21932
21933 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21934
21935 PR target/89378
21936 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21937 instead of gen_rtx_SUBREG.
21938 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21939
21940 2019-03-19 Richard Biener <rguenther@suse.de>
21941
21942 PR debug/88389
21943 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21944
21945 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21946
21947 PR lto/87809
21948 PR lto/89335
21949 * tree.c (free_lang_data_in_decl): Do not free context of C++
21950 destrutors.
21951
21952 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21953
21954 PR target/89506
21955 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21956 subs for the first alternative except when operands[3] is 1.
21957
21958 PR target/89752
21959 * gimplify.c (gimplify_asm_expr): For output argument with
21960 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21961 diagnose error.
21962
21963 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21964
21965 PR rtl-optimization/89753
21966 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21967 explicit unrolling factor even more robust.
21968
21969 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21970
21971 PR target/89726
21972 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21973 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21974 signed zeros, do another copysign after the compensation.
21975
21976 2019-03-18 Martin Sebor <msebor@redhat.com>
21977
21978 PR tree-optimization/89720
21979 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21980 more conservatively, the same as anti-range.
21981
21982 2019-03-18 Richard Biener <rguenther@suse.de>
21983
21984 PR middle-end/88945
21985 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21986 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21987 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21988 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21989
21990 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21991
21992 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21993 Extend queue to 1024 entries.
21994 Add "consumed" field.
21995 (gomp_print_output): Remove print_index parameter.
21996 Add final parameter.
21997 Change limit to unsigned.
21998 Use consumed field to implement circular buffer.
21999 Detect interrupted print in final pass.
22000 Flush output at the end.
22001 (run): Update gomp_print_output usage.
22002 (main): Initialize kernargs->output_data.consumed.
22003
22004 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22005
22006 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22007 calculation of the minimum number of scalar iterations for
22008 fully-predicated loops.
22009
22010 2019-03-18 Martin Jambor <mjambor@suse.cz>
22011
22012 PR tree-optimization/89546
22013 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22014 any propagation to its children took place.
22015
22016 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22017
22018 PR target/89627
22019 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22020 parameter, and make use of it.
22021 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22022
22023 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22024
22025 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22026 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22027 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22028 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22029 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22030 match what the ops is doing.
22031 (push_multi_fp_blink): Likewise.
22032 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22033 compiling for size and elf target.
22034 (arc_save_callee_enter): Adjust note to match what enter/leave
22035 operation does.
22036
22037 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22038
22039 * config/arc/arc.md (tst_movb): Fix constraint.
22040
22041 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22042
22043 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22044
22045 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22046
22047 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22048 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22049 reg_alloc_order references.
22050 (size_alloc_order): Define.
22051 (arc_adjust_reg_alloc_order): New function.
22052 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22053 order.
22054 (ADJUST_REG_ALLOC_ORDER): Define.
22055 (HONOR_REG_ALLOC_ORDER): Likewise.
22056
22057 2019-03-18 Richard Biener <rguenther@suse.de>
22058
22059 PR target/87561
22060 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22061 loads and stores a bit more.
22062
22063 2019-03-18 Richard Biener <rguenther@suse.de>
22064
22065 PR target/87561
22066 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22067 load pessimization to stores as well.
22068
22069 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22070
22071 PR middle-end/86979
22072 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22073 successor, use NULL as its av set.
22074
22075 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22076
22077 PR rtl-optimization/89721
22078 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22079
22080 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22081
22082 PR target/87532
22083 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22084 When handling vec_extract, use modular arithmetic to allow
22085 constant selectors greater than vector length.
22086 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22087 V1TImode vectors to have constant selector values greater than 0.
22088 Use modular arithmetic to compute vector index.
22089 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22090 index for in-memory vectors. Correct code generation for
22091 in-register vectors.
22092 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22093 compute index.
22094
22095 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22096
22097 PR c++/88534
22098 PR c++/88537
22099 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22100 VAR_DECL args.
22101
22102 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22103
22104 PR c++/89709
22105 * tree.c (inchash::add_expr): Strip any location wrappers.
22106 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22107 after hash verification.
22108
22109 PR debug/89704
22110 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22111 SIGN_EXTEND and ZERO_EXTEND.
22112
22113 2019-03-14 Jason Merrill <jason@redhat.com>
22114 Jakub Jelinek <jakub@redhat.com>
22115
22116 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22117 than if is_empty (*slot).
22118 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22119 existing elt and for elt removal.
22120 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22121 of already removed elt.
22122
22123 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22124
22125 PR target/89650
22126 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22127 REG_EH_REGION note.
22128
22129 2019-03-14 Martin Liska <mliska@suse.cz>
22130
22131 PR other/89712
22132 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22133
22134 2019-03-14 Richard Biener <rguenther@suse.de>
22135
22136 PR target/89711
22137 * config/i386/i386.c (make_resolver_func): Properly set
22138 DECL_CONTEXT on the RESULT_DECL.
22139 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22140
22141 2019-03-14 Richard Biener <rguenther@suse.de>
22142
22143 * gimple-pretty-print.c: Include cfgloop.h.
22144 (dump_gimple_phi): Adjust.
22145 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22146 (pp_cfg_jump): Adjust.
22147 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22148 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22149 (lower_phi_internal_fn): Remove.
22150 (verify_gimple_call): Remove IFN_PHI special-casing.
22151 (dump_function_to_file): Dump IL state.
22152 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22153 done to deal with PHI nodes being present in non-SSA state.
22154
22155 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22156
22157 PR ipa/89684
22158 * multiple_target.c (create_dispatcher_calls): Change
22159 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22160 In the node->iterate_referring loop, push *ref rather than ref, call
22161 ref->remove_reference () and always pass 0 to iterate_referring.
22162
22163 PR rtl-optimization/89679
22164 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22165 would contain a paradoxical SUBREG.
22166
22167 2019-03-14 Richard Biener <rguenther@suse.de>
22168
22169 PR tree-optimization/89710
22170 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22171 safe_dyn_cast.
22172
22173 2019-03-14 Martin Liska <mliska@suse.cz>
22174
22175 * coverage.c (coverage_begin_function): Stream also
22176 end_column.
22177 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22178 documentation about function declaration location.
22179 * gcov-dump.c (tag_function): Print whole range
22180 of function declaration.
22181 * gcov.c (struct function_info): Add end_column field.
22182 (function_info::function_info): Initialize it.
22183 (output_json_intermediate_file): Output {start,end}_column
22184 fields.
22185 (read_graph_file): Read end_column.
22186
22187 2019-03-14 Richard Biener <rguenther@suse.de>
22188
22189 PR middle-end/89698
22190 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22191 that the access types are similar.
22192
22193 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22194
22195 PR tree-optimization/89703
22196 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22197 aren't compatible also with builtin_decl_explicit. Check pure
22198 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22199 and BUILT_IN_STPNCPY{,_CHK}.
22200
22201 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22202
22203 PR target/89523
22204 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22205 addr32 prefix to VSIB address for X32.
22206 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22207 "%M2" to opcode.
22208 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22209 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22210 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22211 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22212 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22213 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22214 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22215 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22216 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22217 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22218 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22219 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22220 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22221 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22222 (*avx512f_scatterdi<mode>): Likewise.
22223
22224 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22225
22226 PR target/85860
22227 * lra-constraints.c (inherit_in_ebb): Update
22228 potential_reload_hard_regs along with live_hard_regs.
22229
22230 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22231
22232 PR debug/89498
22233 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22234 DWARF_OFFSET_SIZE.
22235 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22236
22237 2019-03-13 Martin Sebor <msebor@redhat.com>
22238
22239 PR tree-optimization/89662
22240 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22241 has a size.
22242
22243 2019-03-13 Richard Biener <rguenther@suse.de>
22244
22245 PR middle-end/89677
22246 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22247 throw FP expressions at tree-affine.
22248
22249 2019-03-14 Richard Biener <rguenther@suse.de>
22250
22251 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22252 dump negative integer constants using _Literal (type) -num.
22253
22254 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22255
22256 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22257 nonlocal_value member.
22258
22259 PR middle-end/88588
22260 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22261 (ipa_simd_modify_function_body): Handle PHIs.
22262
22263 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22264
22265 * config/s390/s390.c (s390_option_override_internal): Use more
22266 aggressive inlining parameters.
22267
22268 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22269
22270 * config/s390/3906.md: New file.
22271 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22272 (LONGRUNNING_THRESHOLD): Remove.
22273 (MAX_SCHED_MIX_SCORE): Decrease.
22274 (MAX_SCHED_MIX_DISTANCE): Decrease.
22275 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22276 (struct s390_sched_state): New struct to hold scheduling state.
22277 (S390_SCHED_STATE_NORMAL): Remove.
22278 (S390_SCHED_STATE_CRACKED): Remove.
22279 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22280 (s390_get_sched_attrmask): Use new attribute.
22281 (s390_get_unit_mask): Use new units.
22282 (s390_is_fpd): New function.
22283 (s390_is_fxd): New function.
22284 (s390_is_longrunning): New function.
22285 (s390_sched_score): Use new functions.
22286 (s390_sched_reorder): Likewise.
22287 (s390_sched_variable_issue): Rework and use new functions.
22288 (s390_sched_init): Use new functions.
22289 * config/s390/s390.h (s390_tune_attr): Add z14.
22290 * config/s390/s390.md: Add z14.
22291
22292 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22293
22294 * config/s390/2964.md: Update pipeline description.
22295 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22296 (LONGRUNNING_THRESHOLD): Remove.
22297 (LATENCY_FACTOR): Remove.
22298 (s390_get_unit_mask): Add unit.
22299 (s390_sched_score): Use fxd/fpd.
22300 (s390_sched_variable_issue): Use fxd/fpd.
22301
22302 2019-03-12 Martin Liska <mliska@suse.cz>
22303
22304 * config/i386/i386.c: Reword an error message.
22305
22306 2019-03-12 Martin Jambor <mjambor@suse.cz>
22307
22308 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22309 terminate with newline.
22310
22311 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22312
22313 PR target/52726
22314 * config/s390/s390.md (tabort): Use %wd instead of
22315 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22316 letters and periods.
22317 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22318 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22319 's with %< and %>.
22320
22321 PR middle-end/89663
22322 * builtins.c (expand_builtin_int_roundingfn,
22323 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22324 gcc_unreachable if validate_arglist fails.
22325
22326 2019-03-12 Richard Biener <rguenther@suse.de>
22327
22328 PR tree-optimization/89664
22329 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22330 free the occurance tree after the early out.
22331
22332 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22333
22334 PR middle-end/89655
22335 PR bootstrap/89656
22336 * vr-values.c (vr_values::update_value_range): If
22337 old_vr->varying_p (), don't update it, make new_vr also VARYING
22338 and return false.
22339
22340 2019-03-11 Martin Liska <mliska@suse.cz>
22341
22342 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22343 Fix double string quoting.
22344
22345 2019-03-11 Martin Liska <mliska@suse.cz>
22346
22347 * collect-utils.c (collect_wait): Wrap apostrophes
22348 in gcc internal format with %'.
22349 * collect2.c (main): Likewise.
22350 (scan_prog_file): Likewise.
22351 (scan_libraries): Likewise.
22352 * config/i386/i386.c (ix86_expand_call): Likewise.
22353 (ix86_handle_interrupt_attribute): Likewise.
22354 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22355 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22356 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22357 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22358 * symtab.c (symtab_node::verify_base): Likewise.
22359 * tree-cfg.c (verify_gimple_label): Likewise.
22360 * tree.c (verify_type_variant): Likewise.
22361
22362 2019-03-11 Martin Liska <mliska@suse.cz>
22363
22364 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22365 in a string format message and fix GNU coding style.
22366 (expand_builtin_set_thread_pointer): Likewise.
22367 * common/config/aarch64/aarch64-common.c
22368 (aarch64_rewrite_selected_cpu): Likewise.
22369 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22370 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22371 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22372 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22373 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22374 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22375 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22376 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22377 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22378 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22379 Likewise.
22380 * common/config/riscv/riscv-common.c
22381 (riscv_subset_list::parsing_subset_version): Likewise.
22382 (riscv_subset_list::parse_std_ext): Likewise.
22383 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22384 (riscv_subset_list::parse): Likewise.
22385 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22386 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22387 (aarch64_override_options_internal): Likewise.
22388 (aarch64_validate_mcpu): Likewise.
22389 (aarch64_validate_march): Likewise.
22390 (aarch64_validate_mtune): Likewise.
22391 (aarch64_override_options): Likewise.
22392 * config/alpha/alpha.c (alpha_option_override): Likewise.
22393 * config/arc/arc.c (arc_init): Likewise.
22394 (parse_mrgf_banked_regs_option): Likewise.
22395 (arc_override_options): Likewise.
22396 (arc_expand_builtin_aligned): Likewise.
22397 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22398 (arm_expand_builtin): Likewise.
22399 * config/arm/arm.c (arm_option_check_internal): Likewise.
22400 (arm_configure_build_target): Likewise.
22401 (arm_option_override): Likewise.
22402 (arm_options_perform_arch_sanity_checks): Likewise.
22403 (arm_handle_cmse_nonsecure_entry): Likewise.
22404 (arm_handle_cmse_nonsecure_call): Likewise.
22405 (arm_tls_referenced_p): Likewise.
22406 (thumb1_expand_prologue): Likewise.
22407 * config/avr/avr.c (avr_option_override): Likewise.
22408 * config/bfin/bfin.c (bfin_option_override): Likewise.
22409 * config/c6x/c6x.c (c6x_option_override): Likewise.
22410 * config/cr16/cr16.c (cr16_override_options): Likewise.
22411 * config/cris/cris.c (cris_option_override): Likewise.
22412 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22413 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22414 * config/darwin.c (darwin_override_options): Likewise.
22415 * config/frv/frv.c (frv_expand_builtin): Likewise.
22416 * config/h8300/h8300.c (h8300_option_override): Likewise.
22417 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22418 (ix86_option_override_internal): Likewise.
22419 (warn_once_call_ms2sysv_xlogues): Likewise.
22420 (ix86_expand_prologue): Likewise.
22421 (split_stack_prologue_scratch_regno): Likewise.
22422 (ix86_warn_parameter_passing_abi): Likewise.
22423 * config/ia64/ia64.c (fix_range): Likewise.
22424 * config/m68k/m68k.c (m68k_option_override): Likewise.
22425 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22426 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22427 (mips_set_compression_mode): Likewise.
22428 * config/mmix/mmix.c (mmix_option_override): Likewise.
22429 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22430 * config/msp430/msp430.c (msp430_option_override): Likewise.
22431 * config/nds32/nds32.c (nds32_option_override): Likewise.
22432 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22433 (nios2_option_override): Likewise.
22434 (nios2_expand_custom_builtin): Likewise.
22435 * config/nvptx/mkoffload.c (main): Likewise.
22436 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22437 * config/pa/pa.c (fix_range): Likewise.
22438 (pa_option_override): Likewise.
22439 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22440 (riscv_option_override): Likewise.
22441 * config/rl78/rl78.c (rl78_option_override): Likewise.
22442 * config/rs6000/aix61.h: Likewise.
22443 * config/rs6000/aix71.h: Likewise.
22444 * config/rs6000/aix72.h: Likewise.
22445 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22446 * config/rs6000/freebsd64.h: Likewise.
22447 * config/rs6000/linux64.h: Likewise.
22448 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22449 (rs6000_expand_zeroop_builtin): Likewise.
22450 (rs6000_expand_mtfsb_builtin): Likewise.
22451 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22452 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22453 (rs6000_invalid_builtin): Likewise.
22454 (rs6000_expand_split_stack_prologue): Likewise.
22455 * config/rs6000/rtems.h: Likewise.
22456 * config/rx/rx.c (valid_psw_flag): Likewise.
22457 (rx_expand_builtin): Likewise.
22458 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22459 * config/s390/s390.c (s390_expand_builtin): Likewise.
22460 (s390_function_profiler): Likewise.
22461 (s390_option_override_internal): Likewise.
22462 (s390_option_override): Likewise.
22463 * config/sh/sh.c (sh_option_override): Likewise.
22464 (sh_builtin_saveregs): Likewise.
22465 (sh_fix_range): Likewise.
22466 * config/sh/vxworks.h: Likewise.
22467 * config/sparc/sparc.c (sparc_option_override): Likewise.
22468 * config/spu/spu.c (spu_option_override): Likewise.
22469 (fix_range): Likewise.
22470 * config/visium/visium.c (visium_option_override): Likewise.
22471 (visium_handle_interrupt_attr): Likewise.
22472 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22473 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22474 (dbg_cnt_process_opt): Likewise.
22475 * dwarf2out.c (output_dwarf_version): Likewise.
22476 * except.c (expand_eh_return): Likewise.
22477 * gcc.c (defined): Likewise.
22478 (driver_handle_option): Likewise.
22479 (process_command): Likewise.
22480 (compare_files): Likewise.
22481 (driver::prepare_infiles): Likewise.
22482 (driver::do_spec_on_infiles): Likewise.
22483 (driver::maybe_run_linker): Likewise.
22484 * omp-offload.c (oacc_parse_default_dims): Likewise.
22485 * opts-global.c (handle_common_deferred_options): Likewise.
22486 * opts.c (parse_sanitizer_options): Likewise.
22487 (common_handle_option): Likewise.
22488 (enable_warning_as_error): Likewise.
22489 * passes.c (enable_disable_pass): Likewise.
22490 * plugin.c (parse_plugin_arg_opt): Likewise.
22491 (default_plugin_dir_name): Likewise.
22492 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22493 (default_pch_valid_p): Likewise.
22494 * toplev.c (init_asm_output): Likewise.
22495 (process_options): Likewise.
22496 (toplev::run_self_tests): Likewise.
22497 * tree-cfg.c (verify_gimple_call): Likewise.
22498 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22499 (tree_inlinable_function_p): Likewise.
22500 * var-tracking.c (vt_find_locations): Likewise.
22501
22502 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22503
22504 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22505 only on the else branch.
22506
22507 2019-03-11 Martin Liska <mliska@suse.cz>
22508
22509 * gcov.c (output_intermediate_json_line): Print function
22510 name of each line.
22511 (output_json_intermediate_file): Add new argument.
22512 * doc/gcov.texi: Document the change.
22513
22514 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22515
22516 PR rtl-optimization/89588
22517 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22518 explicit unrolling factor more robust.
22519
22520 2019-03-11 Richard Biener <rguenther@suse.de>
22521
22522 PR tree-optimization/89649
22523 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22524 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22525 on the prolog and epilog loops.
22526 (vect_loop_versioning): Return copy of loop.
22527 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22528 on the non-vectorized version of the loop.
22529
22530 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22531
22532 PR target/68924
22533 * config/i386/sse.md (*vec_extractv2di_0_sse):
22534 Add (=r,x) alternative and corresponding splitter.
22535
22536 2019-03-10 Martin Jambor <mjambor@suse.cz>
22537
22538 PR tree-optimization/85762
22539 PR tree-optimization/87008
22540 PR tree-optimization/85459
22541 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22542 it points to if there is a type changing MEM_REF. Adjust all callers.
22543 (build_accesses_from_assign): Disable total scalarization if
22544 contains_vce_or_bfcref_p returns true through the new parameter, for
22545 both rhs and lhs.
22546
22547 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22548
22549 PR c/88568
22550 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22551 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22552
22553 PR target/79645
22554 * common.opt (fdiagnostics-show-labels,
22555 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22556 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22557 gas-locview-support, ginline-points, ginternal-reset-location-views):
22558 Terminate description text with a dot.
22559 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22560 * config/mcore/mcore.opt (m210, m340): Likewise.
22561 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22562 mnops=): Start description text with a capital letter.
22563 * config/arc/arc.opt (msize-level=): Likewise.
22564 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22565 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22566 mnewlib): Likewise.
22567 * config/ft32/ft32.opt (msim): Likewise.
22568 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22569 (mnodiv, mnopm): Terminate description text with a dot.
22570 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22571 a colon.
22572 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22573 Likewise.
22574 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22575 text.
22576
22577 PR rtl-optimization/89634
22578 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22579 are modified in BB_END (e->src) instruction.
22580
22581 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22582
22583 PR target/79926
22584 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22585 messages more amenable to translation, and improve wording.
22586
22587 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22588
22589 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22590 ud- and du-chains between phases.
22591
22592 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22593
22594 PR debug/89631
22595 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22596 instead of POLY_INT_CST.
22597
22598 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22599
22600 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22601 requirement.
22602
22603 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22604
22605 PR target/68924
22606 PR target/78782
22607 PR target/87558
22608 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22609 (_mm_storeu_si64): Ditto.
22610
22611 2019-03-08 Martin Liska <mliska@suse.cz>
22612
22613 PR target/86952
22614 * config/i386/i386.c (ix86_option_override_internal): Disable
22615 jump tables when retpolines are used.
22616
22617 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22618
22619 PR go/63560
22620 * ipa-split.c (execute_split_functions): Do not split
22621 'noinline' or 'section' function.
22622
22623 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22624
22625 PR target/79846
22626 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22627 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22628 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22629
22630 PR ipa/80000
22631 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22632 from diagnostics. Formatting fixes.
22633
22634 PR target/85665
22635 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22636 warn_odr diagnostics.
22637
22638 PR other/80058
22639 * lra-constraints.c (process_alt_operands): Avoid one space before
22640 " at the end of line and another after " on another line in a string
22641 literal.
22642 * attribs.c (handle_dll_attribute): Likewise.
22643 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22644
22645 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22646 warning_at or inform messages in G_() if there is no ?:.
22647
22648 PR tree-optimization/89550
22649 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22650 returned true. Formatting fixes.
22651 (expand_builtin_strnlen): Formatting fixes.
22652 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22653 if warning_at returned true.
22654 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22655
22656 2019-03-08 Richard Biener <rguenther@suse.de>
22657
22658 PR middle-end/89578
22659 * cfgloop.h (struct loop): Add owned_clique field.
22660 * cfgloopmanip.c (copy_loop_info): Copy it.
22661 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22662 cliques.
22663 * tree-inline.c (copy_loops): Remap owned_clique.
22664 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22665 * lto-streamer-out.c (output_cfg): Likewise.
22666
22667 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22668
22669 PR target/80190
22670 * config/darwin.c: Include intl.h.
22671 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22672 composing the message out of two separate parts.
22673
22674 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22675
22676 PR target/80003
22677 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22678 doesn't start with a capital letter and doesn't end with a dot.
22679 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22680 with a capital letter.
22681 (ix86_mangle_function_version_assembler_name): Likewise.
22682 (ix86_generate_version_dispatcher_body): Likewise.
22683 (fold_builtin_cpu): Likewise.
22684 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22685 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22686 translators, wrap full type name in %qs.
22687
22688 PR translation/79999
22689 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22690 depend clause with source (or sink) modifier.
22691 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22692
22693 PR target/89602
22694 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22695 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22696 (avx512f_load<mode>_mask): New define_expand.
22697 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22698 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22699 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22700 __builtin_ia32_movess_mask): New builtins.
22701 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22702 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22703 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22704 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22705
22706 2019-03-07 Martin Jambor <mjambor@suse.cz>
22707
22708 PR lto/87525
22709 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22710 for extern inline functions.
22711
22712 2019-03-07 Martin Jambor <mjambor@suse.cz>
22713
22714 PR ipa/88235
22715 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22716 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22717 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22718 have multiple callees. At the end check if declarations match as
22719 opposed to cgraph_nodes.
22720
22721 2019-03-07 Martin Liska <mliska@suse.cz>
22722
22723 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22724 which is equivalent to searching for this in clones chain.
22725 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22726 names with a neighbour and special case first node in a chain.
22727
22728 2019-01-25 Jason Merrill <jason@redhat.com>
22729
22730 PR c++/80916 - spurious "static but not defined" warning.
22731 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22732 for an internal symbol with DECL_EXTERNAL.
22733
22734 2019-04-07 Richard Biener <rguenther@suse.de>
22735
22736 PR middle-end/89618
22737 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22738 * tree-inline.c (copy_loops): Simplify.
22739
22740 2019-03-07 Martin Liska <mliska@suse.cz>
22741
22742 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22743
22744 2019-03-07 Richard Biener <rguenther@suse.de>
22745
22746 PR tree-optimization/89595
22747 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22748 stmt iterator as reference, take boolean output parameter to
22749 indicate whether the stmt was removed and thus the iterator
22750 already advanced.
22751 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22752 stmts created by folding.
22753
22754 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22755
22756 PR c++/89585
22757 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22758 at toplevel.
22759
22760 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22761
22762 PR rtl-optimization/88845
22763 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22764 LRA.
22765 * lra.c (remove_scratches_1): New function.
22766 (remove_scratches): Use it.
22767 (lra_emit_move): Likewise.
22768
22769 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22770
22771 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22772 unaligned_access variable.
22773 * config/arc/arc.c (arc_override_options): Set unaligned access
22774 default on for HS CPUs.
22775 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22776
22777 2019-03-06 Martin Liska <mliska@suse.cz>
22778
22779 PR gcov-profile/89577
22780 * doc/gcov.texi: Prefer to use --coverage.
22781 * doc/sourcebuild.texi: Likewise.
22782
22783 2019-03-02 Jason Merrill <jason@redhat.com>
22784
22785 PR c++/86485 - -Wmaybe-unused with empty class ?:
22786 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22787
22788 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22789
22790 PR target/89587
22791 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22792 if_multiarch.
22793
22794 PR middle-end/89590
22795 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22796 exactly one argument.
22797
22798 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22799 Richard Sandiford <richard.sandiford@arm.com>
22800
22801 PR tree-optimization/89570
22802 * match.pd (vec_cond into cond_op simplification): Don't use
22803 get_conditional_internal_fn, use as_internal_fn (cond_op).
22804
22805 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22806
22807 PR target/89222
22808 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22809 to decide when to split off a non-zero offset from a symbol.
22810 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22811 in function symbols.
22812
22813 2019-03-05 Richard Biener <rguenther@suse.de>
22814
22815 PR tree-optimization/89594
22816 * tree-if-conv.c (pass_if_conversion::execute): Handle
22817 case where .LOOP_VECTORIZED_FUNCTION was removed.
22818
22819 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22820
22821 PR bootstrap/89560
22822 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22823 instead alloca it only when needed with the needed size.
22824
22825 PR tree-optimization/89570
22826 * match.pd (vec_cond into cond_op simplification): Guard with
22827 vectorized_internal_fn_supported_p test and #if GIMPLE.
22828
22829 PR tree-optimization/89566
22830 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22831 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22832 Punt if get_user_idx_format succeeds, but idx_format argument is
22833 not provided or doesn't have pointer type, or if idx_args is above
22834 number of provided arguments.
22835
22836 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22837
22838 PR tree-optimization/89437
22839 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22840
22841 2019-03-04 Richard Biener <rguenther@suse.de>
22842
22843 PR middle-end/89572
22844 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22845 safe_dyn_cast.
22846
22847 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22848
22849 PR tree-optimization/89487
22850 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22851 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22852 (distribute_loop): Don't do runtime alias check if there is non-
22853 addressable data reference.
22854 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22855 is a register variable.
22856
22857 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22858
22859 PR target/89506
22860 * config/arm/arm.md (cmpsi2_addneg): Use
22861 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22862 If operands[2] is 0 or INT_MIN, force use of subs.
22863 (*compare_scc splitter): Use gen_int_mode.
22864 (*negscc): Likewise.
22865 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22866
22867 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22868 Monk Chiang <sh.chiang04@gmail.com>
22869
22870 * common/config/riscv/riscv-common.c: Include sstream.
22871 (riscv_subset_list::to_string): New.
22872 (riscv_arch_str): Likewise.
22873 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22874 * config.in: Regen.
22875 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22876 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22877 (riscv_emit_attribute): New.
22878 (riscv_file_start): Emit attribute if needed.
22879 (riscv_option_override): Init riscv_emit_attribute_p.
22880 * config/riscv/riscv.opt (mriscv-attribute): New option.
22881 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22882 * configure: Regen.
22883 * doc/install.texi: Document --with-riscv-attribute.
22884 * doc/invoke.texi: Document -mriscv-attribute.
22885
22886 * common/config/riscv/riscv-common.c:
22887 Include config/riscv/riscv-protos.h.
22888 (INCLUDE_STRING): Defined.
22889 (RISCV_DONT_CARE_VERSION): Defined.
22890 (riscv_subset_t): Declare.
22891 (riscv_subset_t::riscv_subset_t): New.
22892 (riscv_subset_list): Declare.
22893 (riscv_subset_list::riscv_subset_list): New.
22894 (riscv_subset_list::~riscv_subset_list): Likewise.
22895 (riscv_subset_list::parsing_subset_version): Likewise.
22896 (riscv_subset_list::parse_std_ext): Likewise.
22897 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22898 (riscv_subset_list::add): Likewise.
22899 (riscv_subset_list::lookup): Likewise.
22900 (riscv_subset_list::xlen): Likewise.
22901 (riscv_subset_list::parse): Likewise.
22902 (riscv_supported_std_ext): Likewise.
22903 (current_subset_list): Likewise.
22904 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22905 parse.
22906
22907 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22908
22909 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22910 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22911 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22912
22913 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22914
22915 PR rtl-optimization/85899
22916 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22917 fallthru edges leading to the exit block.
22918
22919 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22920
22921 PR target/89517
22922 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22923 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22924
22925 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22926
22927 PR tree-optimization/89535
22928 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22929 for each operand. Calculate the fallback choice for mask operands
22930 and pass it to vect_get_vec_def_for_operand.
22931
22932 2019-03-01 Richard Biener <rguenther@suse.de>
22933
22934 PR middle-end/89541
22935 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22936 get virtual operands.
22937 (get_expr_operands): Handle CONST_DECL like other decls.
22938
22939 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22940
22941 PR middle-end/89503
22942 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22943 on DECL_P and EXPR_P.
22944
22945 2019-03-01 Richard Biener <rguenther@suse.de>
22946
22947 PR middle-end/89497
22948 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22949 argument, defaulted to zero.
22950 * passes.c (execute_function_todo): Pass down SSA update flags
22951 to cleanup_tree_cfg.
22952 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22953 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22954 form if requested.
22955 (cleanup_tree_cfg): Get and pass down SSA update flags.
22956
22957 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22958
22959 PR bootstrap/89539
22960 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22961 early_lto_debug argument.
22962
22963 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22964
22965 PR tree-optimization/89536
22966 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22967 only whether bit #0 of the value is 0 instead of the entire value.
22968
22969 2019-02-28 Marek Polacek <polacek@redhat.com>
22970
22971 PR c++/87068 - missing diagnostic with fallthrough statement.
22972 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22973 at the end of a seq, save its location to walk_stmt_info.
22974 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22975 a switch.
22976
22977 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22978
22979 PR lto/88585
22980 * tree.c (find_atomic_core_type): Move ahead in file.
22981 (check_base_type): Correctly compare alignments of atomic types.
22982
22983 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22984
22985 PR target/89455
22986 * config/i386/i386.c (get_builtin_code_for_version): Identify
22987 Westmere from PCLMUL, instead of AES.
22988
22989 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22990
22991 PR target/89434
22992 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22993 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22994 -UINTVAL (...).
22995
22996 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22997
22998 PR target/88530
22999 * config/aarch64/aarch64-option-extensions.def: Document it.
23000 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23001 if empty hwcaps.
23002
23003 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23004
23005 PR c/89520
23006 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23007 builtins if they don't have a single scalar floating point argument.
23008 Formatting fixes.
23009
23010 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23011
23012 PR rtl-optimization/89490
23013 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23014 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23015 block section is not mergeable.
23016
23017 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23018
23019 PR target/70341
23020 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23021 old define_insn to ...
23022 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23023 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23024 Rename old define_insn to ...
23025 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23026 (thumb2_casesi_internal_pic): New define_expand. Rename old
23027 define_insn to ...
23028 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23029 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23030 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23031
23032 2019-02-27 Richard Biener <rguenther@suse.de>
23033
23034 PR debug/88878
23035 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23036
23037 2019-02-27 Richard Biener <rguenther@suse.de>
23038
23039 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23040 building.
23041
23042 2019-02-27 Richard Biener <rguenther@suse.de>
23043
23044 PR debug/88878
23045 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23046 parameter, prefix section name with .gnu.debuglto_ if true.
23047 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23048 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23049
23050 2019-02-27 Richard Biener <rguenther@suse.de>
23051
23052 PR debug/89514
23053 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23054 rather than on use_debug_types, doing what output_die does.
23055 (value_format): Likewise.
23056
23057 2019-02-27 Martin Jambor <mjambor@suse.cz>
23058 Martin Sebor <msebor@redhat.com>
23059
23060 * doc/invoke.texi (Warning Options): Reword description of
23061 -Wno-absolute-value.
23062
23063 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23064
23065 PR tree-optimization/89280
23066 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23067 builtin_setjmp_setup_bb): New functions.
23068 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23069 When visiting __builtin_setjmp_setup block, queue in special
23070 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23071 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23072 from visited after the loop if they don't have any visited successor
23073 blocks.
23074
23075 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23076
23077 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23078 New function.
23079 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23080
23081 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23082
23083 PR c++/89507
23084 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23085 with types other than sizetype/ssizetype.
23086
23087 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23088
23089 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23090 (enum sparc_processor_type): ...this.
23091 (enum sparc_code_model_type): New enumeration type.
23092 (enum sparc_memory_model_type): Tweak comments.
23093 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23094 (mtune): Likewise.
23095 (mcmodel): Use sparc_code_model enumeration and variable.
23096 (sparc_code_model): New enumeration.
23097 (mdebug): Add Undocumented marker.
23098 * config/sparc/sparc.h (enum cmodel): Delete.
23099 (sparc_cmodel): Likewise.
23100 (TARGET_CM_MEDLOW): Adjust to above renaming.
23101 (TARGET_CM_MEDMID): Likewise.
23102 (TARGET_CM_MEDANY): Likewise.
23103 (TARGET_CM_EMBMEDANY): Likewise.
23104 * config/sparc/sparc.c (sparc_cmodel): Delete.
23105 (sparc_option_override): Remove string/value mapping support for the
23106 code model. Move code and memory model support to after the handling
23107 of target flags. Do private machine setup last.
23108 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23109 (sparc_legitimize_reload_address): Likewise.
23110 (sparc_output_mi_thunk): Likewise.
23111 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23112
23113 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23114
23115 PR tree-optimization/89500
23116 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23117 (handle_builtin_strlen): Remove noncst_bound variable. Always
23118 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23119 cst if the first cst bytes starting at x are known to be non-zero,
23120 even if the string is not zero terminated. Don't try to modify
23121 *si for strnlen. Update strlen_to_stridx only for strlen or if
23122 we can prove strnlen returns the same value as strlen would.
23123
23124 2019-02-26 Martin Liska <mliska@suse.cz>
23125
23126 * alloc-pool.h (struct pool_usage): Remove extra
23127 print_dash_line.
23128 * bitmap.h (struct bitmap_usage): Likewise.
23129 * ggc-common.c (struct ggc_usage): Likewise.
23130 * mem-stats.h (struct mem_usage): Likewise.
23131 (mem_alloc_description::dump): Print dash lines
23132 here and repeat header at the end of a table report.
23133 It's then more readable.
23134 * tree-phinodes.c (phinodes_print_statistics): Make
23135 horizontal alignment.
23136 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23137 * vec.c (struct vec_usage): Remove extra print_dash_line.
23138 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23139
23140 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23141
23142 * doc/extend.texi (__builtin_object_size):
23143 Use @pxref instead of @xref inside parenthesis.
23144 (__builtin_has_attribute): Add missing comma after @xref.
23145 (__builtin_object_size): Ditto.
23146 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23147
23148 2019-02-26 Jeff Law <law@redhat.com>
23149
23150 PR rtl-optimization/87761
23151 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23152 detect obviously dead insns and delete them.
23153
23154 2019-02-26 Richard Biener <rguenther@suse.de>
23155
23156 PR tree-optimization/89505
23157 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23158 to handle restrict pointed-to vars with multiple subvars
23159 correctly.
23160
23161 2019-02-26 Richard Biener <rguenther@suse.de>
23162
23163 PR tree-optimization/89489
23164 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23165
23166 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23167
23168 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23169 and move around comment.
23170 <BIT_AND_EXPR>: Likewise.
23171 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23172
23173 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23174
23175 PR target/89474
23176 * config/i386/i386.c (remove_partial_avx_dependency): Call
23177 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23178 after changing possibly many instructions to use that pseudo. Fix up
23179 insertion of v4sf_const0 setter at the start of bb.
23180
23181 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23182
23183 PR c/80409
23184 * doc/extend.texi (Variadic Pointer Args): New section.
23185
23186 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23187 Martin Sebor <msebor@gmail.com>
23188
23189 * common.opt (Wattribute-alias): Likewise.
23190 * doc/invoke.texi (Option Summary): List general form of
23191 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23192 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23193 Add cross-references.
23194 (-Wattribute-alias): Rewrite and correct default. Mention
23195 considered attributes (same as for -Wmissing-attributes).
23196
23197 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23198
23199 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23200 (_mm_cvtpd_ps): Likewise.
23201 (_mm_cvttpd_epi32): Likewise.
23202
23203 PR target/89338
23204 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23205 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23206
23207 PR target/89339
23208 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23209
23210 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23211
23212 PR target/88530
23213 * common/config/aarch64/aarch64-common.c
23214 (struct aarch64_option_extension): Add is_synthetic.
23215 (all_extensions): Use it.
23216 (TARGET_OPTION_INIT_STRUCT): Define hook.
23217 (struct gcc_targetm_common): Moved to end.
23218 (all_extensions_by_on): New.
23219 (opt_ext_cmp, typedef opt_ext): New.
23220 (aarch64_option_init_struct): New.
23221 (aarch64_contains_opt): New.
23222 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23223 * config/aarch64/aarch64-option-extensions.def
23224 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23225 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23226 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23227 Set is_synthetic to false.
23228 (crypto): Set is_synthetic to true.
23229 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23230 SYNTHETIC.
23231
23232 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23233
23234 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23235 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23236 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23237 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23238 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23239 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23240 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23241 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23242 Rename ...
23243 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23244 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23245 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23246 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23247 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23248 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23249 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23250 vfmlsl_laneq_high_f16): ... To this.
23251 * config/arm/neon.md: Update comments.
23252
23253 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23254
23255 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23256 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23257 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23258 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23259 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23260 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23261 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23262 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23263 Rename ...
23264 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23265 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23266 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23267 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23268 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23269 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23270 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23271 vfmlslq_laneq_high_f16): ... To this.
23272
23273 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23274
23275 PR rtl-optimization/86096
23276 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23277 comparing mw_order values.
23278
23279 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23280
23281 PR target/89434
23282 * config/arm/arm.md (*subsi3_carryin_const): Use
23283 arm_neg_immediate_operand predicate instead of
23284 arm_not_immediate_operand, "L" constraint instead of "K" and
23285 print it using %n2 instead of %B2.
23286 (*subsi3_carryin_const0): New define_insn.
23287 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23288 instead of arm_not_operand and "I" constraint instead of "K" and
23289 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23290 another match_operand and in the condition check that it is negation
23291 of operands[2].
23292 (*subsi3_carryin_compare_const0): New define_ins.
23293 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23294 *subsi3_carryin_const.
23295 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23296 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23297
23298 PR target/89438
23299 * config/arm.vfp.md (*negdf2_vfp): Use
23300 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23301 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23302
23303 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23304
23305 PR rtl-optimization/89445
23306 * simplify-rtx.c (simplify_ternary_operation): Don't use
23307 simplify_merge_mask on operands that may trap.
23308 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23309 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23310 second operand is CONST_VECTOR, check if any element could be zero.
23311 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23312 their operands can trap.
23313
23314 2019-02-23 Martin Sebor <msebor@redhat.com>
23315
23316 * gimple-ssa-sprintf.c (target_strtol): Rename...
23317 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23318 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23319 check for range error.
23320
23321 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23322
23323 PR driver/69471
23324 * opts-common.c (prune_options): Also prune joined switches
23325 with Negative and RejectNegative.
23326 * config/i386/i386.opt (march=): Add Negative(march=).
23327 (mtune=): Add Negative(mtune=).
23328 * doc/options.texi: Document Negative used together with Joined
23329 and RejectNegative.
23330
23331 2019-02-22 Martin Sebor <msebor@redhat.com>
23332
23333 * doc/extend.texi (Other Builtins): Add
23334 __builtin_is_constant_evaluated.
23335
23336 2019-02-22 Richard Biener <rguenther@suse.de>
23337
23338 PR tree-optimization/87609
23339 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23340
23341 2019-02-22 Jeff Law <law@redhat.com>
23342
23343 PR rtl-optimization/87761
23344 * config/mips/mips.md: Add new combiner pattern to recognize
23345 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23346
23347 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23348
23349 PR target/89324
23350 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23351 destination register in peepholes generating patterns for ADDS/SUBS.
23352 (add<mode>3_compare0,
23353 *addsi3_compare0_uxtw, add<mode>3_compareC,
23354 add<mode>3_compareV_imm, add<mode>3_compareV,
23355 *adds_<optab><ALLX:mode>_<GPI:mode>,
23356 *subs_<optab><ALLX:mode>_<GPI:mode>,
23357 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23358 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23359 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23360 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23361 sub<mode>3_compare1): Allow stack pointer for source register.
23362 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23363
23364 2019-02-22 Martin Sebor <msebor@redhat.com>
23365
23366 PR tree-optimization/88993
23367 PR tree-optimization/88853
23368 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23369 New helper.
23370 (sprintf_dom_walker::call_info::is_string_func): New helper.
23371 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23372 for formatted string functions.
23373 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23374
23375 2019-02-22 Martin Sebor <msebor@redhat.com>
23376
23377 PR c/89425
23378 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23379 unreachable subexpressions.
23380
23381 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23382 Hongtao Liu <hongtao.liu@intel.com>
23383 Sunil K Pandey <sunil.k.pandey@intel.com>
23384
23385 PR target/87007
23386 * config/i386/i386-passes.def: Add
23387 pass_remove_partial_avx_dependency.
23388 * config/i386/i386-protos.h
23389 (make_pass_remove_partial_avx_dependency): New.
23390 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23391 New function.
23392 (pass_data_remove_partial_avx_dependency): New.
23393 (pass_remove_partial_avx_dependency): Likewise.
23394 (make_pass_remove_partial_avx_dependency): Likewise.
23395 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23396 (*extendsfdf2): Add avx_partial_xmm_update.
23397 (truncdfsf2): Likewise.
23398 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23399 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23400
23401 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23402
23403 PR middle-end/85598
23404 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23405 analysis for pass.
23406
23407 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23408
23409 PR target/89444
23410 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23411 (PTA_SKYLAKE): Add PTA_AES.
23412 (PTA_GOLDMONT): Likewise.
23413
23414 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23415
23416 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23417 instruction if enabled.
23418 (aarch64_override_options): Remove reference to return address key.
23419
23420 2019-02-22 Richard Biener <rguenther@suse.de>
23421
23422 PR tree-optimization/89440
23423 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23424 not necessary assert.
23425
23426 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23427
23428 PR fortran/72741
23429 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23430 (oacc_replace_fn_attrib_attr): ... this new function.
23431 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23432 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23433
23434 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23435
23436 * config/arm/arm-cpus.in (ares): Rename to...
23437 (neoverse-n1): ... This. Add ares as alias.
23438 * config/arm/arm-tables.opt: Regenerate.
23439 * config/arm/arm-tune.md: Likewise.
23440 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23441
23442 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23443
23444 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23445 * config/aarch64/aarch64-tune.md: Regenerate.
23446 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23447
23448 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23449
23450 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23451 (neoversen1_tunings): ... This.
23452 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23453 (neoverse-n1): New CPU.
23454 * config/aarch64/aarch64-tune.md: Regenerate.
23455 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23456
23457 2019-02-22 Richard Biener <rguenther@suse.de>
23458
23459 PR middle-end/87609
23460 * cfghooks.h (dependence_hash): New typedef.
23461 (struct copy_bb_data): New type.
23462 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23463 (duplicate_block): Likewise.
23464 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23465 (copy_bbs): Create and pass down copy_bb_data.
23466 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23467 (rtl_duplicate_bb): Likewise.
23468 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23469 remap dependence info.
23470
23471 2019-02-22 Richard Biener <rguenther@suse.de>
23472
23473 PR tree-optimization/87609
23474 * tree-core.h (tree_base): Document special clique values.
23475 * tree-inline.c (remap_dependence_clique): Do not use the
23476 special clique value of one.
23477 (maybe_set_dependence_info): Use clique one.
23478 (clear_dependence_clique): New callback.
23479 (compute_dependence_clique): Clear clique one from all refs
23480 before assigning it (again).
23481
23482 2019-02-21 Martin Sebor <msebor@redhat.com>
23483
23484 * doc/extend.texi (__clear_cache): Correct signature.
23485
23486 2019-02-21 Ian Lance Taylor <iant@golang.org>
23487
23488 PR go/89170
23489 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23490 than output_constant_def.
23491 (add_constant_to_table): New static function.
23492 (output_constant_def): Call add_constant_to_table.
23493 (tree_output_constant_def): Likewise.
23494
23495 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23496
23497 PR c++/89285
23498 * builtins.c (fold_builtin_arith_overflow): If first two args are
23499 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23500 to ifn.
23501
23502 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23503
23504 PR target/87412
23505 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23506 error for -mindirect-branch/-mfunction-return with incompatible
23507 -fcf-protection.
23508
23509 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23510
23511 PR bootstrap/88714
23512 * constraints.md (q): Remove.
23513 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23514 instead of q.
23515
23516 2019-02-21 Martin Jambor <mjambor@suse.cz>
23517
23518 PR hsa/89302
23519 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23520 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23521 (omp_adjust_for_condition): ...here. Added necessary parameters.
23522 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23523 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23524 proper values to new parameters of omp_adjust_for_condition.
23525
23526 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23527
23528 PR middle-end/89412
23529 * expr.c (expand_assignment): If result is a MEM, use change_address
23530 instead of simplify_gen_subreg.
23531
23532 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23533 David Malcolm <dmalcolm@redhat.com>
23534
23535 PR middle-end/89091
23536 * fold-const.c (decode_field_reference): Return NULL_TREE if
23537 lang_hooks.types.type_for_size returns NULL. Check it before
23538 overwriting *exp_. Use return NULL_TREE instead of return 0.
23539
23540 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23541
23542 PR middle-end/88074
23543 PR middle-end/89415
23544 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23545 buggy mpc_norm.
23546
23547 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23548
23549 PR target/89397
23550 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23551 TARGET_SSE in addition to TARGET_SSE_MATH.
23552
23553 (ix86_excess_precision): Ditto.
23554 (ix86_float_exceptions_rounding_supported_p): Ditto.
23555 (use_rsqrt_p): Ditto.
23556 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23557
23558 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23559
23560 PR c/89410
23561 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23562 linenum_arith_t when determining if two adjacent line spans are
23563 close enough to merge.
23564 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23565 lines within each line_span.
23566
23567 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23568
23569 PR target/86487
23570 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23571 paradoxical SUBREGS.
23572
23573 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23574
23575 PR target/88100
23576 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23577 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23578 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23579 range checking it.
23580
23581 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23582
23583 * config/gcn/gcn.c (print_operand): Fix typo.
23584
23585 2019-02-19 Richard Biener <rguenther@suse.de>
23586
23587 PR middle-end/88074
23588 * toplev.c (do_compile): Initialize mpfr's exponent range
23589 based on available float modes.
23590
23591 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23592
23593 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23594 as long as the epilogue isn't completed.
23595
23596 2019-02-18 Martin Sebor <msebor@redhat.com>
23597
23598 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23599 __has_cpp_attribute, and __has_include.
23600
23601 2019-02-18 Martin Sebor <msebor@redhat.com>
23602
23603 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23604
23605 2019-02-18 Martin Sebor <msebor@redhat.com>
23606
23607 PR middle-end/89294
23608 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23609 expression.
23610 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23611
23612 2019-02-18 Richard Biener <rguenther@suse.de>
23613
23614 PR tree-optimization/89296
23615 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23616 of no-warning flag to cases that might emit the bogus warning.
23617
23618 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23619
23620 PR bootstrap/88714
23621 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23622 "q" constraint.
23623 * config/arm/vfp.md (*movdi_vfp): Likewise.
23624 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23625 "q" constraint for operands[0].
23626
23627 PR target/89369
23628 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23629 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23630 pattern in a temporary buffer.
23631 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23632 than 64-operands[2].
23633
23634 PR target/89361
23635 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23636 s390_indirect_branch_settings): Define unconditionally.
23637 (s390_set_current_function): Likewise, but guard the whole body except
23638 the s390_indirect_branch_settings call with
23639 #if S390_USE_TARGET_ATTRIBUTE.
23640 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23641
23642 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23643 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23644 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23645 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23646 HOST_WIDE_INT_1U instead of 1ULL.
23647 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23648 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23649 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23650 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23651 instead of 1UL.
23652 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23653 instead of 1ul.
23654
23655 2019-02-18 Martin Jambor <mjambor@suse.cz>
23656
23657 PR tree-optimization/89209
23658 * tree-sra.c (create_access_replacement): New optional parameter
23659 reg_tree. Use it as a type if non-NULL and access type is not of
23660 a register type.
23661 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23662 to create_access_replacement.
23663 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23664 Check lacc is non-NULL before attempting to re-create it on the RHS.
23665
23666 2019-02-18 Martin Liska <mliska@suse.cz>
23667
23668 PR ipa/89306
23669 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23670 by default.
23671 (symbol_table::free_edge): Recycle m_summary_id.
23672 * cgraph.h (get_summary_id): New.
23673 (symbol_table::release_symbol): Set m_summary_id to -1
23674 by default.
23675 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23676 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23677 function_summary to fast_function_summary.
23678 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23679 * ipa-pure-const.c (class funct_state_summary_t):
23680 Switch from function_summary to fast_function_summary.
23681 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23682 (class ipa_ref_opt_summary_t): Switch from function_summary
23683 to fast_function_summary.
23684 * symbol-summary.h (class function_summary_base): New class
23685 that is created from base of former function_summary.
23686 (function_summary_base::unregister_hooks): New.
23687 (class function_summary): Inherit from function_summary_base.
23688 (class call_summary_base): New class
23689 that is created from base of former call_summary.
23690 (class call_summary): Inherit from call_summary_base.
23691 (struct is_same): New.
23692 (class fast_function_summary): New summary class.
23693 (class fast_call_summary): New summary class.
23694 * vec.h (vec_safe_grow_cleared): New function.
23695
23696 2019-02-18 Martin Liska <mliska@suse.cz>
23697
23698 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23699 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23700 * doc/tm.texi: Document new target hook.
23701 * doc/tm.texi.in: Likewise.
23702 * target.def: Add new target macro.
23703 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23704 suffixes.
23705
23706 2019-02-17 Alan Modra <amodra@gmail.com>
23707
23708 PR target/89271
23709 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23710 output reg on add insn.
23711 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23712
23713 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23714
23715 PR target/89372
23716 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23717 (PMULHRSW): Likewise.
23718 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23719 TARGET_AVX2.
23720 (ssse3_pmulhrswv4hi3): New expander.
23721
23722 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23723
23724 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23725 MMX. Add isa attribute.
23726
23727 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23728
23729 PR rtl-optimization/66152
23730 * builtins.h (c_readstr): Declare.
23731 * builtins.c (c_readstr): Remove forward declaration. Add
23732 null_terminated_p argument, if false, read all bytes from the
23733 string instead of stopping after '\0'.
23734 * expr.c (string_cst_read_str): New function.
23735 (store_expr): Use string_cst_read_str instead of
23736 builtin_strncpy_read_str. Try to store by pieces the whole
23737 exp_len first, and only if that fails, split it up into
23738 store by pieces followed by clear_storage. Formatting fix.
23739
23740 * config/i386/i386.md (*movqi_internal): Remove static from
23741 buf variable. Use output_asm_insn (buf, operands); return "";
23742 instead of return buf;.
23743 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23744 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23745 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23746
23747 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23748
23749 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23750 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23751 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23752 (CC1_SPEC): Likewise.
23753 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23754
23755 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23756
23757 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23758 the base address on 64-bit strict-alignment platforms.
23759
23760 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23761
23762 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23763
23764 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23765
23766 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23767
23768 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23769
23770 PR rtl-optimization/88308
23771 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23772 on copied instruction.
23773
23774 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23775
23776 * final.c (insn_current_reference_address): Replace test on JUMP_P
23777 with test on jump_to_label_p.
23778 * config/visium/visium-passes.def: New file.
23779 * config/visium/t-visium (PASSES_EXTRA): Define.
23780 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23781 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23782 (TRAMPOLINE_ALIGNMENT): Define.
23783 * config/visium/visium.c (visium_option_override): Do not register
23784 the machine-specific reorg pass here.
23785 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23786 for the GR6.
23787 (output_branch): Adjust threshold for long branch instruction.
23788 * config/visium/visium.md (cpu): Move around.
23789 (length): Adjust for the GR6.
23790
23791 2019-02-15 Richard Biener <rguenther@suse.de>
23792 Jakub Jelinek <jakub@redhat.com>
23793
23794 PR tree-optimization/89278
23795 * tree-loop-distribution.c: Include tree-eh.h.
23796 (generate_memset_builtin, generate_memcpy_builtin): Call
23797 rewrite_to_non_trapping_overflow on builtin->size before passing it
23798 to force_gimple_operand_gsi.
23799
23800 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23801
23802 PR other/89342
23803 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23804 optimize_debug.
23805 * opth-gen.awk: Likewise.
23806
23807 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23808
23809 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23810 Enable MMX, SSE and SSE2 by default.
23811 * config/i386/i386.c (ix86_option_override_internal): Do not
23812 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23813
23814 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23815
23816 PR rtl-optimization/89354
23817 * combine.c (make_extraction): Punt if extraction_mode is narrower
23818 than len bits.
23819
23820 2019-02-14 Maya Rashish <coypu@sdf.org>
23821
23822 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23823 * config/netbsd-d.c: New file.
23824 * config/t-netbsd: Add netbsd-d.o
23825
23826 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23827
23828 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23829 affects_type_identity to true for aarch64_vector_pcs.
23830 (aarch64_comp_type_attributes): New function.
23831 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23832
23833 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23834
23835 PR target/88850
23836 * config/arm/iterators.md (ANY64): Add V4HF.
23837
23838 2019-02-14 Martin Liska <mliska@suse.cz>
23839
23840 PR rtl-optimization/89242
23841 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23842 process a transformation.
23843
23844 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23845
23846 PR tree-optimization/89314
23847 * fold-const.c (fold_binary_loc): Cast strlen argument to
23848 const char * before dereferencing it. Formatting fixes.
23849
23850 PR middle-end/89284
23851 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23852
23853 2019-02-13 Ian Lance Taylor <iant@golang.org>
23854
23855 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23856 and set current index for other optimizations.
23857
23858 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23859
23860 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23861 nonimmediate_operand as operand 2 predicate.
23862 (vec_set<VF2_512_256:mode>_0): Ditto.
23863 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23864 (*vec_concatv2si): Remove alternative 2.
23865 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23866 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23867 (vec_concatv2di): Split alternatives 4,5,6 to ...
23868 (*vec_concatv2di_0) ... new pattern.
23869
23870 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23871
23872 PR target/89190
23873 * config/arm/arm.c (ldm_stm_operation_p) Set
23874 addr_reg_in_reglist correctly for first register.
23875 (load_multiple_sequence): Remove dead base check.
23876 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23877
23878 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23879
23880 PR target/88847
23881 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23882 Expose as @aarch64_pred_mov.
23883 * config/aarch64/aarch64.c (aarch64_classify_address):
23884 Use expand_insn which legitimizes operands.
23885
23886 2019-02-13 Martin Liska <mliska@suse.cz>
23887
23888 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23889 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23890 and pointer_offset fields.
23891 (initialize_argument_information): Remove usage of dead
23892 fields.
23893 * cgraph.h (struct cgraph_thunk_info): Remove
23894 add_pointer_bounds_args.
23895 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23896 fields.
23897 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23898 fields.
23899 * config/i386/i386.c (ix86_function_arg_advance): Remove
23900 unrelated comment.
23901 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23902 (def_builtin): Remove usage of dead fields.
23903 (ix86_add_new_builtins): Likewise.
23904 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23905 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23906 (sem_function::init): Likewise.
23907 (sem_variable::merge): Likewise.
23908 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23909 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23910 * lto-cgraph.c (lto_output_node): Likewise.
23911 (lto_output_varpool_node): Likewise.
23912 (input_node): Likewise.
23913 (input_varpool_node): Likewise.
23914 * lto-streamer-out.c (lto_output): Likewise.
23915 * tree-inline.c (expand_call_inline): Remove usage of
23916 assign_stmts.
23917 * tree-inline.h (struct copy_body_data): Likewise.
23918 * varpool.c (varpool_node::dump): Likewise.
23919
23920 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23921
23922 PR middle-end/89303
23923 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23924 into pt->vars_contains_escaped_heap instead of setting
23925 pt->vars_contains_escaped_heap to it.
23926
23927 PR middle-end/89281
23928 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23929 INTVAL (size), compare it to GET_MODE_MASK instead of
23930 1 << GET_MODE_BITSIZE.
23931
23932 PR target/89290
23933 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23934 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23935 -mcmodel=large.
23936
23937 2019-02-13 Martin Liska <mliska@suse.cz>
23938
23939 PR lto/88858
23940 * cfgrtl.c (remove_barriers_from_footer): New function.
23941 (try_redirect_by_replacing_jump): Use it.
23942 (cfg_layout_redirect_edge_and_branch): Likewise.
23943
23944 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23945
23946 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23947 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23948 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23949 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23950 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23951 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23952 New BU_CRYPTO_2.
23953 * config/rs6000/rs6000.c (builtin_function_type)
23954 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23955 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23956 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23957 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23958 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23959
23960 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23961
23962 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23963 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23964
23965 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23966
23967 PR target/89229
23968 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23969 268678 and revision 268657.
23970 (*movti_internal): Likewise.
23971
23972 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23973
23974 PR target/89233
23975 * config/s390/s390.c (s390_decompose_address): Update comment.
23976 (s390_check_qrst_address): Reject invalid address forms after
23977 LRA.
23978
23979 2019-02-12 Martin Liska <mliska@suse.cz>
23980
23981 PR lto/88876
23982 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23983 we need default values of funct_state for a function that
23984 is not optimized.
23985
23986 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23987
23988 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23989 the object to pick the size of stores on strict-alignment platforms.
23990
23991 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23992 (*movdi_insn_sp32): Likewise.
23993 (*movdi_insn_sp64): Likewise.
23994
23995 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23996
23997 PR lto/88677
23998 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23999 types that needs constructiong.
24000 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24001
24002 2019-02-12 Richard Biener <rguenther@suse.de>
24003
24004 PR tree-optimization/89253
24005 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24006 duplicate the loop.
24007
24008 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24009
24010 PR lto/88147
24011 * input.c (selftest::test_line_offset_overflow): New selftest.
24012 (selftest::input_c_tests): Call it.
24013
24014 2019-02-11 Martin Sebor <msebor@redhat.com>
24015
24016 PR tree-optimization/88771
24017 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24018 when -Wstringop-overflow is set.
24019 (builtin_memref::builtin_memref): Adjust excessive upper bound
24020 only when lower bound is not excessive.
24021 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24022 -Wstringop-ovefflow.
24023 (maybe_diag_offset_bounds): Rename...
24024 (maybe_diag_access_bounds): ...to this.
24025 (check_bounds_or_overlap): Adjust for name change above.
24026
24027 2019-02-11 Martin Sebor <msebor@redhat.com>
24028
24029 PR c++/87996
24030 * builtins.c (max_object_size): Move from here...
24031 * builtins.h (max_object_size): ...and here...
24032 * tree.c (max_object_size): ...to here...
24033 * tree.h (max_object_size): ...and here.
24034
24035 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24036
24037 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24038 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24039 for correct semantics.
24040
24041 2019-02-11 Alan Modra <amodra@gmail.com>
24042
24043 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24044 -mlongcall and -mpltseq.
24045 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24046 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24047 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24048 * config/rs6000/sysv4.opt (mpltseq): New option.
24049 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24050 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24051 support is lacking. Don't allow -mpltseq with -mbss-plt.
24052 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24053 -mpltseq given for ELFv1.
24054 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24055 Only use UNSPEC_PLTSEQ for inline PLT calls.
24056 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24057 use UNSPEC_PLTSEQ for inline PLT calls.
24058 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24059 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24060 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24061 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24062 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24063 (pltseq_mtctr_<mode>): Likewise.
24064
24065 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24066
24067 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24068 Solaris ld.
24069 * configure: Regenerate.
24070
24071 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24072
24073 PR bootstrap/88714
24074 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24075 instead of r.
24076
24077 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24078
24079 * function.c (assign_parm_setup_block): Use the stored
24080 size, not the passed size, when allocating stack-space,
24081 also for a parameter with alignment larger than
24082 MAX_SUPPORTED_STACK_ALIGNMENT.
24083
24084 2019-02-11 Martin Liska <mliska@suse.cz>
24085
24086 PR ipa/89009
24087 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24088 * ipa-inline.c (inline_small_functions): Likewise.
24089 * ipa-pure-const.c (propagate_pure_const): Likewise.
24090 (propagate_nothrow): Likewise.
24091 * ipa-reference.c (propagate): Likewise.
24092 * ipa-utils.c (struct searchc_env): Remove unused field.
24093 (searchc): Always search across AVAIL_INTERPOSABLE.
24094 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24095 the only called IPA pure const can properly not propagate
24096 across interposable boundary.
24097 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24098
24099 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24100
24101 * config/nds32/nds32.md (call_internal, call_value_internal,
24102 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24103
24104 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24105
24106 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24107 typo.
24108
24109 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24110
24111 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24112 in comments
24113
24114 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24115
24116 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24117
24118 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24119
24120 PR tree-optimization/89268
24121 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24122 if preds is non-NULL.
24123
24124 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24125
24126 PR lto/89272
24127 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24128 polymorphic types.
24129
24130 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24131
24132 * config/nds32/nds32.md (trap): New pattern.
24133
24134 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24135
24136 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24137 dwarf span.
24138
24139 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24140
24141 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24142 to split POST_INC.
24143
24144 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24145
24146 * ipa-visibility.c (localize_node): Also do not localize
24147 LDPR_PREVAILING_DEF_IRONLY_EXP.
24148
24149 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24150
24151 PR lto/87957
24152 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24153 instead of type_with_linkage.
24154
24155 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24156
24157 PR ipa/88755
24158 * params.def (uninlined-function-insns, uninlined-function-time,
24159 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24160 bound so we don't get overflows.
24161
24162 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24163
24164 * config/rs6000/rs6000-string.c (expand_compare_loop,
24165 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24166 memcmp/strncmp.
24167
24168 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24169
24170 PR middle-end/89246
24171 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24172 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24173 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24174
24175 2019-02-09 Alan Modra <amodra@gmail.com>
24176
24177 PR target/88343
24178 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24179 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24180 setup.
24181
24182 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24183
24184 PR middle-end/88560
24185 * lra-constraints.c (process_alt_operands): Don't increase reject
24186 for memory when offset memory is required.
24187
24188 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24189
24190 * config/s390/vector.md: Implement vector copysign.
24191
24192 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24193
24194 * expr.c (expand_constructor): Correct indentations.
24195
24196 2019-02-08 Richard Biener <rguenther@suse.de>
24197
24198 PR tree-optimization/89247
24199 * tree-if-conv.c: Include tree-cfgcleanup.h.
24200 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24201 (tree_if_conversion): Pass through predicate vector.
24202 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24203 inline, see if any if-converted loops we refrece in
24204 LOOP_VECTORIZED calls vanished and fixup.
24205 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24206
24207 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24208
24209 * config/s390/constraints.md (jdd): New constraint.
24210
24211 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24212
24213 PR target/89229
24214 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24215 upper 16 vector registers without TARGET_AVX512VL.
24216 (*movti_internal): Likewise.
24217
24218 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24219
24220 PR rtl-optimization/89234
24221 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24222 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24223 (copy_reg_eh_region_note_backward): Likewise.
24224
24225 2019-02-08 Richard Biener <rguenther@suse.de>
24226
24227 PR middle-end/89223
24228 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24229 doesn't fit in HWI.
24230 (analyze_subscript_affine_affine): Handle failure from
24231 initialize_matrix_A.
24232
24233 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24234
24235 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24236 cfun everywhere.
24237
24238 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24239
24240 PR tree-optimization/86637
24241 PR tree-optimization/89235
24242 * tree-vect-loop.c (optimize_mask_stores): Add an
24243 auto_purge_vect_location sentinel to ensure that vect_location is
24244 purged on exit.
24245 * tree-vectorizer.c
24246 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24247 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24248 to ensure that vect_location is purged on exit.
24249 (pass_slp_vectorize::execute): Likewise, replacing the manual
24250 reset.
24251 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24252
24253 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24254
24255 * config/aarch64/iterators.md (max_opp): New code_attr.
24256 (USMAX): New code iterator.
24257 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24258 (aarch64_smax): Likewise.
24259 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24260 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24261 MINUS (MAX MIN).
24262
24263 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24264
24265 PR target/89229
24266 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24267 for TARGET_AVX512VL.
24268 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24269
24270 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24271
24272 * config/s390/s390-builtin-types.def: Add new types.
24273 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24274 (s390_vec_xlw4): Make the memory operand into a const pointer.
24275 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24276 float.
24277 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24278 a new vector type with the alignment of the scalar memory operand.
24279
24280 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24281 Jakub Jelinek <jakub@redhat.com>
24282
24283 PR bootstrap/88714
24284 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24285 arm_count_ldrdstrd_insns): New declarations.
24286 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24287 MINUS.
24288 (valid_operands_ldrd_strd): New function.
24289 (arm_count_ldrdstrd_insns): New function.
24290 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24291 sets instead of single DImode set and define new insns to match this.
24292
24293 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24294
24295 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24296 Make it a C initializer.
24297
24298 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24299
24300 PR/target 88850
24301 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24302
24303 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24304
24305 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24306 Use neon_dot<q> for type.
24307 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24308
24309 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24310
24311 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24312 Use neon_dot<q> for type.
24313 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24314 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24315
24316 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24317
24318 PR rtl-optimization/89225
24319 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24320 sizes check.
24321
24322 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24323
24324 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24325 after restoring registers saved to allocate the frame on Windows.
24326
24327 2019-02-06 Richard Biener <rguenther@suse.de>
24328
24329 PR tree-optimization/89182
24330 * graphite.h (cached_scalar_evolution_in_region): Declare.
24331 * graphite.c (struct seir_cache_key): New.
24332 (struct sese_scev_hash): Likewise.
24333 (seir_cache): New global.
24334 (cached_scalar_evolution_in_region): New function.
24335 (graphite_transform_loops): Allocate and release seir_cache.
24336 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24337 cached_scalar_evolution_in_region.
24338 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24339 Simplify.
24340 (scop_detection::graphite_can_represent_expr: Use
24341 cached_scalar_evolution_in_region.
24342 (scop_detection::stmt_simple_for_scop_p): Likewise.
24343 (find_params_in_bb): Likewise.
24344 (gather_bbs::before_dom_children): Likewise.
24345 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24346 (add_loop_constraints): Likewise.
24347
24348 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24349
24350 PR middle-end/89210
24351 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24352 operand to new_unary_operation only if both element types are integral
24353 and it isn't a widening conversion. Return NULL_TREE if
24354 new_unary_operation failed.
24355
24356 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24357
24358 PR target/88856
24359 * config/s390/s390.md: Remove load and test FP splitter.
24360
24361 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24362
24363 PR target/89112
24364 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24365 expand_compare_loop, expand_block_compare_gpr,
24366 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24367 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24368 #include "profile-count.h" and "predict.h" for types and functions
24369 needed to work with REG_BR_PROB notes.
24370
24371 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24372
24373 PR target/89112
24374 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24375 for the long branch case.
24376
24377 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24378
24379 PR target/89188
24380 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24381 can throw, non-call exceptions are enabled and we can't delete
24382 dead exceptions or alter cfg. Set must_clean if
24383 delete_insn_and_edges returns true, don't set it blindly for calls.
24384 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24385
24386 PR rtl-optimization/89195
24387 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24388 of the original MEM.
24389
24390 2019-02-05 Martin Liska <mliska@suse.cz>
24391
24392 PR gcov-profile/89000
24393 * gcov.c (function_summary): Remove argument.
24394 (file_summary): New function.
24395 (print_usage): Replace tabs with spaces.
24396 (generate_results): Use new function file_summary.
24397
24398 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24399
24400 PR target/89186
24401 * optabs.c (prepare_cmp_insn): Pass x and y to
24402 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24403
24404 2019-02-05 Richard Biener <rguenther@suse.de>
24405
24406 PR middle-end/89150
24407 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24408 (struct bitmap_element): Drop chain_prev so we properly recurse on
24409 the prev member, supporting tree views.
24410 (struct bitmap_head): GTY skip the obstack member.
24411
24412 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24413
24414 PR c/88698
24415 * doc/extend.texi (Vector Extensions): Add an example of using vector
24416 types together with x86 intrinsics.
24417
24418 2019-02-04 Alan Modra <amodra@gmail.com>
24419
24420 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24421 str[] size to 160, and comment.
24422
24423 2019-02-04 Alan Modra <amodra@gmail.com>
24424
24425 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24426 (rs6000_pltseq_template): Guard output of TLS markers with
24427 TARGET_TLS_MARKERS.
24428 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24429 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24430 to use inline PLT sequences.
24431 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24432 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24433 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24434
24435 2019-02-04 Martin Liska <mliska@suse.cz>
24436
24437 PR ipa/88985
24438 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24439 out when ipa_fn_summaries does not contain entry for callee.
24440
24441 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24442
24443 * config/sparc/sparc.h: Remove superfluous blank lines.
24444 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24445 (got_register_rtx): ...this.
24446 (sparc_got): Adjust to above renaming.
24447 (sparc_tls_got): Likewise.
24448 (sparc_delegitimize_address): Likewise.
24449 (sparc_output_mi_thunk): Likewise.
24450 (sparc_init_pic_reg): Likewise.
24451 (save_local_or_in_reg_p): Fix test on the GOT register.
24452 (USE_HIDDEN_LINKONCE): Move around.
24453 (get_pc_thunk_name): Likewise.
24454 (gen_load_pcrel_sym): Likewise.
24455 (load_got_register): Likewise.
24456
24457 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24458
24459 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24460 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24461
24462 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24463
24464 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24465 into consideration.
24466
24467 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24468
24469 * config.gcc (with_nds32_lib, glibc):
24470 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24471 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24472 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24473
24474 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24475
24476 PR target/89071
24477 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24478 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24479 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24480 (*rcpsf2_sse): Ditto.
24481 (*rsqrtsf2_sse): Ditto.
24482 (sse4_1_round<mode<2): Ditto.
24483
24484 2019-02-03 Richard Biener <rguenther@suse.de>
24485
24486 PR debug/87295
24487 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24488 orig.
24489
24490 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24491
24492 PR middle-end/87887
24493 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24494 Punt with warning on aggregate return or argument types. Ignore
24495 type/mode checking for uniform arguments.
24496
24497 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24498
24499 * combine.c (try_combine): Do not print "Can't combine" messages unless
24500 printing failed combination attempts.
24501
24502 2019-02-01 Martin Jambor <mjambor@suse.cz>
24503
24504 PR hsa/87863
24505 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24506 segment and global segment variables before making them static.
24507
24508 2019-02-01 Martin Jambor <mjambor@suse.cz>
24509
24510 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24511 missed optimization dump with dump_enabled_p.
24512
24513 2019-02-01 Richard Biener <rguenther@suse.de>
24514
24515 PR middle-end/88597
24516 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24517 the instantiate cache.
24518 (instantiate_scev_binary): Elide second operand procesing
24519 if equal to the first.
24520 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24521 (chrec_contains_undetermined): Likewise.
24522 (tree_contains_chrecs): Likewise.
24523
24524 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24525
24526 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24527
24528 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24529
24530 PR tree-optimization/89143
24531 * wide-int-range.h (wide_int_range_absu): Declare.
24532 * wide-int-range.cc (wide_int_range_absu): New function.
24533 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24534
24535 PR tree-optimization/88107
24536 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24537 instead of assertion that eh_region_outermost is non-NULL, if it
24538 is NULL, set *ALL to true and return NULL.
24539 (move_sese_region_to_fn): Adjust caller, if all is set, call
24540 duplicate_eh_regions with NULL region.
24541
24542 2019-02-01 Richard Biener <rguenth@suse.de>
24543
24544 PR rtl-optimization/88593
24545 * mode-switching.c (optimize_mode_switching): Free dominators before
24546 calling cleanup_cfg.
24547
24548 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24549
24550 PR tree-optimization/88932
24551 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24552
24553 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24554
24555 PR middle-end/89137
24556 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24557 bogus clang warning.
24558
24559 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24560
24561 PR target/89071
24562 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24563 alternative to avoid partial SSE register stall for TARGET_AVX.
24564 (truncdfsf2): Ditto.
24565 (sse4_1_round<mode>2): Ditto.
24566
24567 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24568
24569 PR tree-optimization/89008
24570 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24571 process anything of the form X * 0.
24572
24573 2019-01-31 Richard Biener <rguenther@suse.de>
24574
24575 PR tree-optimization/89135
24576 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24577 with abnormal preds.
24578
24579 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24580
24581 PR sanitizer/89124
24582 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24583 always_inline callees into no_sanitize_address callers.
24584
24585 2019-01-31 Richard Biener <rguenther@suse.de>
24586
24587 PR rtl-optimization/89115
24588 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24589
24590 2019-01-30 Martin Sebor <msebor@redhat.com>
24591
24592 PR other/89106
24593 * doc/extend.texi (cast to a union): Correct and expand.
24594
24595 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24596
24597 PR rtl-optimization/87246
24598 * lra-constraints.c (simplify_operand_subreg): Reload memory
24599 in subreg if the address became invalid.
24600
24601 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24602
24603 PR target/87064
24604 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24605 Disable for little-endian.
24606
24607 2019-01-30 Richard Biener <rguenther@suse.de>
24608
24609 PR rtl-optimization/89115
24610 * opts.c (default_options_optimization): Reduce
24611 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24612 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24613 to the default.
24614
24615 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24616
24617 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24618 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24619 type of vector element when vec_extract is implemented by direct
24620 move.
24621
24622 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24623
24624 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24625
24626 2019-01-30 Richard Biener <rguenther@suse.de>
24627
24628 PR tree-optimization/89111
24629 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24630 canonicalization to appropriately sized access types.
24631
24632 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24633
24634 PR c++/89105
24635 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24636 for arguments to functions that are TU-local and shouldn't be
24637 referenced by assembly.
24638
24639 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24640
24641 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24642 after '='.
24643
24644 2019-01-29 Martin Sebor <msebor@redhat.com>
24645
24646 PR c/88956
24647 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24648
24649 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24650
24651 PR c++/66676
24652 PR ipa/89104
24653 * omp-simd-clone.c (simd_clone_clauses_extract)
24654 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24655 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24656
24657 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24658
24659 * config.gcc: Force .init_array for ARC.
24660
24661 2019-01-29 Richard Biener <rguenther@suse.de>
24662
24663 PR debug/87295
24664 * dwarf2out.c (collect_skeleton_dies): New helper.
24665 (copy_decls_for_unworthy_types): Call it.
24666 (build_abbrev_table): Assert we do not try to replace
24667 DW_AT_signature refs with local refs.
24668
24669 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24670
24671 PR middle-end/89002
24672 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24673 for lastprivate/linear IV, push gimplify context around gimplify_assign
24674 and, if it needed any temporaries, pop it into a gimple bind around the
24675 sequence.
24676
24677 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24678
24679 * common.opt (-Wattribute-alias): Remove "no-" from name.
24680 Make -Wattribute-alias command line option and
24681 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24682
24683 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24684
24685 PR target/89073
24686 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24687 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24688 x86 ISA options.
24689 (bmi2): Add missing @opindex.
24690 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24691 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24692 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24693 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24694 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24695 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24696 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24697 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24698 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24699 xsavec, xsaveopt and xsaves options.
24700
24701 2019-01-28 Richard Biener <rguenther@suse.de>
24702
24703 PR debug/89076
24704 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24705 support removal.
24706
24707 2019-01-28 Richard Biener <rguenther@suse.de>
24708
24709 PR tree-optimization/88739
24710 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24711 BIT_FIELD_REFs only are applied to mode-precision operands
24712 when they are integral.
24713 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24714 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24715 BIT_FIELD_REFs of non-mode-precision integral operands.
24716
24717 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24718
24719 PR target/87214
24720 * config/i386/sse.md
24721 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24722 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24723 first constants in pairs are multiples of 2. Formatting fixes.
24724 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24725 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24726 first constants in each quadruple are multiples of 4. Formatting fixes.
24727
24728 2019-01-26 Martin Jambor <mjambor@suse.cz>
24729
24730 PR ipa/88933
24731 * tree-inline.c: Include tree-cfgcleanup.h.
24732 (delete_unreachable_blocks_update_callgraph): Move...
24733 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24734 ...here, make externally visible, make second argument bool, adjust
24735 all callers.
24736 * tree-cfgcleanup.c: Include cgraph.h.
24737 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24738 Declare.
24739 * ipa-prop.c: Include tree-cfgcleanup.h.
24740 (ipcp_transform_function): Call
24741 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24742
24743 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24744
24745 PR rtl-optimization/88846
24746 * ira.c (process_set_for_memref_referenced_p): New.
24747 (memref_referenced_p): Add new param. Use
24748 process_set_for_memref_referenced_p. Add new switch cases.
24749 (memref_used_between_p): Pass new arg to memref_referenced_p.
24750
24751 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24752
24753 PR target/88469
24754 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24755 argument ABI_BREAK. Set to true if the calculated alignment has
24756 changed in gcc-9. Check bit-fields for their base type alignment.
24757 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24758 (aarch64_function_arg_boundary): Likewise.
24759 (aarch64_gimplify_va_arg_expr): Likewise.
24760
24761 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24762
24763 PR middle-end/89037
24764 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24765 instead of accessing TREE_INT_CST_ELT directly.
24766
24767 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24768
24769 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24770 fenv_exceptions description.
24771
24772 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24773
24774 PR rtl-optimization/87763
24775 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24776 Allow SUBREG when matching CC_NZmode compare.
24777
24778 2019-01-25 Richard Biener <rguenther@suse.de>
24779
24780 PR tree-optimization/89049
24781 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24782 Look at the pattern stmt to determine if the stmt is vectorized.
24783
24784 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24785
24786 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24787 (pred_mov<mode>): Handle all-register forms using both a new
24788 alternative and a split.
24789
24790 2019-01-25 Richard Biener <rguenther@suse.de>
24791
24792 PR tree-optimization/86865
24793 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24794 Reject non-do-while loops.
24795
24796 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24797
24798 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24799 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24800 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24801 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24802 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24803 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24804 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24805 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24806 vlogical_operand, gpc_reg_operand, int_reg_operand,
24807 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24808 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24809 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24810 (save_world_operation, restore_world_operation, lmw_operation,
24811 stmw_operation): Use MEM_P and REG_P.
24812 (tie_operand): Use MEM_P.
24813 (vrsave_operation, crsave_operation): Use REG_P.
24814 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24815 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24816 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24817 (call_operand): Use HARD_REGISTER_P.
24818 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24819 Use CONST_INT_P.
24820 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24821 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24822 quad_aligned_load_p, replace_swapped_aligned_store,
24823 recombine_lvx_pattern, replace_swapped_aligned_load,
24824 recombine_stvx_pattern): Use MEM_P.
24825 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24826 Use MEM_P and SYMBOL_REF_P.
24827 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24828 (insn_is_swappable_p): Use REG_P and MEM_P.
24829 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24830 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24831 Use CONST_INT_P.
24832 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24833 Use CONST_DOUBLE_P.
24834 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24835 CONST_WIDE_INT_P.
24836 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24837 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24838 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24839 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24840 reg_or_subregno:
24841 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24842 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24843 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24844 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24845 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24846 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24847 rs6000_split_logical_di): Use CONST_INT_P.
24848 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24849 REG_P and SYMBOL_REF_P.
24850 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24851 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24852 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24853 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24854 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24855 (small_data_operand, print_operand_address): Use CONST_INT_P and
24856 SYMBOL_REF_P.
24857 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24858 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24859 Use HARD_REGISTER_NUM_P.
24860 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24861 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24862 SUBREG_P and SYMBOL_REF_P.
24863 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24864 and HARD_REGISTER_NUM_P.
24865 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24866 reg_or_subregno.
24867 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24868 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24869 MEM_P and REG_P.
24870 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24871 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24872 find_addr_reg): Use REG_P.
24873 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24874 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24875 (offsettable_ok_by_alignment, constant_pool_expr_p,
24876 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24877 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24878 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24879 rs6000_assemble_integer, create_TOC_reference,
24880 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24881 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24882 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24883 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24884 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24885 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24886 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24887 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24888 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24889 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24890 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24891 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24892 and cbranch<mode>4): Use CONST_INT_P.
24893 (multiple define_splits): Use REG_P and SUBREG_P.
24894 (define_expands call, call_value): Use MEM_P.
24895 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24896 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24897 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24898 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24899 and HARD_REGISTER_NUM_P.
24900 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24901
24902 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24903
24904 PR rtl-optimization/88948
24905 * rtl.h (prepare_copy_insn): New prototype.
24906 * gcse.c (prepare_copy_insn): New function, split out from
24907 process_insert_insn.
24908 (process_insert_insn): Use prepare_copy_insn.
24909 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24910 instead of gen_move_insn.
24911
24912 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24913
24914 PR debug/89006
24915 * config/i386/i386.c (ix86_pic_register_p): Return true for
24916 UNSPEC_SET_GOT too.
24917
24918 PR tree-optimization/88964
24919 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24920 punt if HONOR_SNANS (chrec).
24921
24922 PR middle-end/89015
24923 * tree-nested.c (convert_nonlocal_reference_stmt,
24924 convert_local_reference_stmt, convert_tramp_reference_stmt,
24925 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24926 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24927 or GIMPLE_OMP_TASK.
24928
24929 PR tree-optimization/89027
24930 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24931 for "omp simd array" variables.
24932
24933 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24934
24935 PR target/88469
24936 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24937 force the alignment of m_val.
24938
24939 2019-01-24 Richard Biener <rguenther@suse.de>
24940
24941 PR lto/87187
24942 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24943 When in "legacy" debug mode make sure to reset self-origins.
24944
24945 2019-01-24 Martin Liska <mliska@suse.cz>
24946
24947 PR gcov-profile/88994
24948 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24949 result will be always smaller or equal to the original.
24950 * gcov.c (mangle_name): Fix else branch where we should
24951 also copy to PTR and shift the pointer.
24952
24953 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24954
24955 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24956 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24957
24958 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24959
24960 * common/config/i386/i386-common.c
24961 (OPTION_MASK_ISA_ENQCMD_SET,
24962 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24963 (ix86_handle_option): Handle -menqcmd.
24964 * config.gcc (enqcmdintrin.h): New header file.
24965 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24966 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24967 -menqcmd.
24968 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24969 function type.
24970 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24971 __builtin_ia32_enqcmds): New builtins.
24972 * config/i386/i386-c.c (__ENQCMD__): New macro.
24973 * config/i386/i386-option.c (ix86_target_string): Add
24974 -menqcmd.
24975 (ix86_valid_target_attribute_inner_p): Likewise.
24976 * config/i386/i386-expand.c
24977 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24978 IX86_BUILTIN_ENQCMDS.
24979 * config/i386/i386.h (TARGET_ENQCMD): New.
24980 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24981 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24982 (movdir64b_<mode>): Parameterize to enable share expansion code
24983 with ENQCMD in function ix86_expand_builtin.
24984 * config/i386/i386.opt: Add -menqcmd.
24985 * config/i386/immintrin.h: Include enqcmdintrin.h.
24986 * config/i386/enqcmdintrin.h: New intrinsic file.
24987 * doc/invoke.texi: Add -menqcmd.
24988
24989 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24990 Steve Ellcey <sellcey@marvell.com>
24991
24992 PR target/85711
24993 * recog.c (address_operand): Return false on wrong mode for address.
24994 (constrain_operands): Check for mode with 'p' constraint.
24995
24996 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24997
24998 PR target/88998
24999 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25000 Disparage MMX alternative.
25001 (sse2_cvtpd2pi): Ditto.
25002 (sse2_cvttpd2pi): Ditto.
25003
25004 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25005
25006 PR driver/89014
25007 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25008 use-after-free of the result of
25009 aarch64_get_extension_string_for_isa_flags.
25010
25011 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25012
25013 PR c/44715
25014 * doc/extend.texi: Document break and continue behavior in
25015 statement expressions.
25016
25017 2019-01-23 Richard Biener <rguenther@suse.de>
25018
25019 PR tree-optimization/89008
25020 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25021 not leave another stray operand.
25022
25023 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25024
25025 * BASE-VER: Bump to 9.0.1.
25026
25027 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25028
25029 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25030 thunk that returns by reference, use the type of the return object
25031 of the thunk instead of that of the alias to build the dereference.
25032
25033 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25034
25035 * config/arc/atomic.md: Add operand to DMB instruction.
25036
25037 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25038
25039 PR tree-optimization/88964
25040 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25041 build_zero_cst instead of build_int_cst. Return false for loop
25042 invariants which honor signed zeros.
25043
25044 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25045
25046 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25047
25048 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25049
25050 PR target/88965
25051 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25052 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25053 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25054
25055 PR middle-end/88968
25056 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25057 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25058
25059 PR target/87064
25060 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25061 Disable for little endian.
25062
25063 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25064
25065 PR target/88469
25066 * config/arm/arm.c (arm_needs_double_word_align): Check
25067 DECL_BIT_FIELD_TYPE.
25068
25069 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25070 H.J. Lu <hongjiu.lu@intel.com>
25071
25072 PR target/88909
25073 * config/i386/i386-builtin.def: Add mask2 to all builtin
25074 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25075 SPECIAL_ARGS.
25076 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25077 (BDESC_FIRST): Likewise.
25078 (define_builtin): Add an argument for mask2. Updated to handle
25079 both ix86_isa_flags and ix86_isa_flags2.
25080 (define_builtin_const): Likewise.
25081 (define_builtin_pure): Likewise.
25082 (define_builtin2): Deleted.
25083 (define_builtin_const2): Likewise.
25084 (builtin_description): Add a member, mask2.
25085 (bdesc_*): Add mask2 to builtin initializations.
25086 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25087 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25088 support.
25089 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25090
25091 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25092
25093 PR target/88954
25094 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25095 noplt attribute.
25096
25097 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25098
25099 PR target/88469
25100 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25101 alignment is dominated by a bitfield with 64-bit aligned base type.
25102 (arm_function_arg): Emit a warning if the alignment has changed since
25103 earlier GCC releases.
25104 (arm_function_arg_boundary): Likewise.
25105 (arm_setup_incoming_varargs): Likewise.
25106
25107 2019-01-22 Richard Biener <rguenther@suse.de>
25108
25109 PR tree-optimization/88862
25110 * graphite-scop-detection.c
25111 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25112
25113 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25114
25115 * doc/extend.tex (AMD GCN Function Attributes): New section.
25116 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25117 * doc/invoke.texi (AMD GCN Options): New section.
25118 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25119
25120 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25121
25122 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25123 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25124
25125 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25126
25127 PR tree-optimization/88044
25128 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25129 is false in the first iteration, but !every_iteration, return false
25130 instead of true with niter->niter zero.
25131
25132 PR rtl-optimization/88904
25133 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25134 any nonequal registers before processing BB_END (b).
25135
25136 PR target/88905
25137 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25138 GET_MODE (op0).
25139 (expand_binop_directly, expand_doubleword_clz,
25140 expand_doubleword_popcount, expand_ctz, expand_ffs,
25141 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25142
25143 PR rtl-optimization/49429
25144 PR target/49454
25145 PR rtl-optimization/86334
25146 PR target/88906
25147 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25148 addressable from here...
25149 (emit_block_op_via_libcall): ... to here.
25150
25151 2019-01-22 Richard Biener <rguenther@suse.de>
25152
25153 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25154 auto_vec for cost vector to fix memleak.
25155 (vectorize_fold_left_reduction): Properly gather SLP defs.
25156 (vectorizable_comparison): Do not swap operands to properly
25157 gather SLP defs.
25158
25159 2019-01-22 Alan Modra <amodra@gmail.com>
25160
25161 PR target/88614
25162 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25163 stays a reg. Allow a const_int.
25164 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25165 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25166 (IS_NOMARK_TLSGETADDR): Define.
25167 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25168 (rs6000_output_tlsargs): New function.
25169 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25170 __tls_get_addr call takes an arg.
25171 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25172 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25173 delete split..
25174 (call_value_nonlocal_sysv): ..or here, delete split.
25175 (tls_gdld_nomark): Delete.
25176 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25177 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25178 (call_value_nonlocal_sysv): Likewise.
25179 (call_value_nonlocal_sysv_secure): Likewise.
25180 (call_value_nonlocal_aix): Likewise.
25181 (call_value_indirect_aix): Likewise.
25182 (call_value_indirect_elfv2): Likewise.
25183 (call_value_local32, call_value_local64): Disable for no-mark tls.
25184 (call_value_local_aix): Likewise.
25185
25186 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25187
25188 PR target/88938
25189 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25190 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25191
25192 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25193
25194 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25195 string contents as hash_map keys.
25196
25197 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25198
25199 PR c/88928
25200 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25201 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25202 instead of TYPE_ALIGN.
25203 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25204 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25205 pointer from TYPE_STUB_DECL.
25206
25207 2019-01-21 Richard Biener <rguenther@suse.de>
25208
25209 PR tree-optimization/88934
25210 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25211 at the possibly non-constant operand.
25212 (vect_get_constant_vectors): Adjust.
25213
25214 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25215
25216 PR target/71659
25217 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25218 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25219 instead of _X86INTRIN_H_INCLUDED.
25220 * onfig/i386/clwbintrin.h: Likewise.
25221 * config/i386/pkuintrin.h: Likewise.
25222 * config/i386/prfchwintrin.h: Likewise.
25223 * config/i386/rdseedintrin.h: Likewise.
25224 * config/i386/wbnoinvdintrin.h: Likewise.
25225 * config/i386/xsavecintrin.h: Likewise.
25226 * config/i386/xsavesintrin.h: Likewise.
25227 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25228 * config/i386/xsaveintrin.h: Likewise.
25229 * config/i386/xsaveoptintrin.h: Likewise.
25230 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25231 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25232 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25233 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25234 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25235 * config/i386/immintrin.h: Here.
25236
25237 2019-01-20 Martin Jambor <mjambor@suse.cz>
25238
25239 PR ipa/87615
25240 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25241 with aa_walk_budget.
25242 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25243 aa_walk_budget_p parameter.
25244 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25245 walk. Updated all callers.
25246 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25247 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25248 unmodified_parm.
25249 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25250 parameter info. Extract info from fbi. Pass fbi to recursive calls
25251 and to unmodified_parm.
25252 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25253 info, updated call to will_be_nonconstant_expr_predicate.
25254 (param_change_prob): New parameter fbi, limit AA walking.
25255 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25256 calls to various above functions.
25257 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25258 parameter. Use it to limit AA walking.
25259 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25260 fbi, limit AA walk.
25261 (detect_type_change): New parameter fbi, pass it on to
25262 detect_type_change_from_memory_writes.
25263 (detect_type_change_ssa): Likewise.
25264 (aa_overwalked): Removed.
25265 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25266 accordingly, adjust to the neew AA limiting scheme.
25267 (parm_ref_data_preserved_p): Likewise.
25268 (ipa_compute_jump_functions_for_edge): Adjust call to
25269 get_dynamic_type.
25270 (ipa_analyze_call_uses): Likewise.
25271 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25272 (ipa_analyze_node): Initialize aa_walk_budget.
25273 (ipcp_transform_function): Likewise.
25274 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25275 to get_dynamic_type.
25276
25277 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25278
25279 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25280 outside of #if CHECKING_P code.
25281
25282 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25283
25284 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25285 New function, split out from...
25286 (loop_versioning::analyze_stride): ...here.
25287 (loop_versioning::find_per_loop_multiplication): Use gassign.
25288 (loop_versioning::analyze_term_using_scevs): Return a success code.
25289 (loop_versioning::analyze_arbitrary_term): New function.
25290 (loop_versioning::analyze_address_fragment): Use
25291 analyze_arbitrary_term if all else fails.
25292
25293 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25294
25295 PR target/88892
25296 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25297 operands.
25298
25299 2019-01-18 Richard Biener <rguenther@suse.de>
25300
25301 PR tree-optimization/88903
25302 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25303 scalar stmts a SLP shift amount is composed of when detecting
25304 shifts by scalars.
25305
25306 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25307
25308 PR target/88799
25309 * config/arm/arm-cpus.in (mp): New feature.
25310 (sec): New feature.
25311 (fgroup ARMv7ve): Add mp and sec features.
25312 (arch armv7-a): Add options to allow mp and sec extensions.
25313 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25314 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25315 extenstions to the base architecture.
25316 (cpu cortex-a8): Add sec extension to the base architecture.
25317 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25318 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25319 variants down to the base v7-a varaint.
25320 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25321 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25322 of permitted extensions for -march=armv7-a and for
25323 -mcpu=generic-armv7-a.
25324
25325 2019-01-18 Martin Liska <mliska@suse.cz>
25326
25327 * params.def: Fix comment.
25328 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25329 name.
25330 (gimple_gen_ic_func_profiler): Likewise.
25331
25332 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25333
25334 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25335 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25336 and put in error checks for stack protector guard options.
25337 (aarch64_stack_protect_guard): New.
25338 (TARGET_STACK_PROTECT_GUARD): Define.
25339 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25340 (reg_stack_protect_address<mode>): New.
25341 (stack_protect_set): Adjust for SSP_GLOBAL.
25342 (stack_protect_test): Likewise.
25343 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25344 (-mstack-protector-guard): Likewise.
25345 (-mstack-protector-guard-offset): Likewise.
25346
25347 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25348
25349 PR tree-optimization/86214
25350 * tree-inline.h (struct copy_body_data): Add
25351 add_clobbers_to_eh_landing_pads member.
25352 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25353 (copy_edges_for_bb): Call it if EH edge destination is <
25354 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25355 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25356 if flag_stack_reuse != SR_NONE and clear it afterwards.
25357
25358 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25359
25360 PR target/85596
25361 * doc/install.texi (with-multilib-list): Document for aarch64.
25362
25363 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25364
25365 PR target/88734
25366 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25367 (("..."))) with ("...").
25368
25369 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25370
25371 * doc/extend.texi (Built-in Functions for Memory Model Aware
25372 Atomic Operations): Document atomic fetch and nand.
25373
25374 2019-01-18 Martin Liska <mliska@suse.cz>
25375 Richard Biener <rguenther@suse.de>
25376
25377 PR middle-end/88587
25378 * cgraph.h (create_version_clone_with_body): Add new argument
25379 with attributes.
25380 * cgraphclones.c (cgraph_node::create_version_clone): Add
25381 DECL_ATTRIBUTES to a newly created decl. And call
25382 valid_attribute_p so that proper cl_target_optimization_node
25383 is set for the newly created declaration.
25384 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25385 for declaration.
25386 (expand_target_clones): Do not call valid_attribute_p, it must
25387 be already done.
25388 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25389 vector types.
25390
25391 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25392
25393 PR target/88734
25394 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25395 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25396 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25397
25398 2019-01-17 Martin Sebor <msebor@redhat.com>
25399
25400 PR middle-end/88273
25401 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25402 Handle anti-ranges the same as no range at all.
25403
25404 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25405
25406 * config/aarch64/aarch64.c (cgraph.h): New include.
25407 (intl.h): New include.
25408 (supported_simd_type): New function.
25409 (currently_supported_simd_type): Ditto.
25410 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25411 (aarch64_simd_clone_adjust): Ditto.
25412 (aarch64_simd_clone_usable): Ditto.
25413 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25414 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25415 (TARGET_SIMD_CLONE_USABLE): Ditto.
25416 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25417 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25418 call.
25419
25420 2019-01-17 Martin Sebor <msebor@redhat.com>
25421
25422 PR tree-optimization/88800
25423 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25424 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25425 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25426 redundant argument. Add new argument and issue diagnostics under
25427 its control. Detect out-of-bounds access even with warnings
25428 disabled.
25429 (check_bounds_or_overlap): Change return type. Add argument.
25430 (wrestrict_dom_walker::check_call): Adjust.
25431 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25432 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25433 check_bounds_or_overlap's return value.
25434 (handle_builtin_stxncpy): Same.
25435 (handle_builtin_strcat): Same.
25436
25437 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25438 Kwok Cheung Yeung <kcy@codesourcery.com>
25439 Julian Brown <julian@codesourcery.com>
25440 Tom de Vries <tom@codesourcery.com>
25441
25442 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25443
25444 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25445
25446 * doc/sourcebuild.texi: Document dg-require-effective-target
25447 llvm_binutils and offload_gcn.
25448
25449 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25450 Kwok Cheung Yeung <kcy@codesourcery.com>
25451 Julian Brown <julian@codesourcery.com>
25452 Tom de Vries <tom@codesourcery.com>
25453
25454 * doc/sourcebuild.texi: Document dg-required-effective-target
25455 exceptions.
25456
25457 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25458 Kwok Cheung Yeung <kcy@codesourcery.com>
25459 Julian Brown <julian@codesourcery.com>
25460 Tom de Vries <tom@codesourcery.com>
25461 Jan Hubicka <hubicka@ucw.cz>
25462 Martin Jambor <mjambor@suse.cz>
25463
25464 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25465 * configure.ac: Check for dlopen.
25466 * configure: Regenerate.
25467
25468 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25469 Kwok Cheung Yeung <kcy@codesourcery.com>
25470 Julian Brown <julian@codesourcery.com>
25471 Tom de Vries <tom@codesourcery.com>
25472 Jan Hubicka <hubicka@ucw.cz>
25473 Martin Jambor <mjambor@suse.cz>
25474
25475 * common/config/gcn/gcn-common.c: New file.
25476 * config/gcn/driver-gcn.c: New file.
25477 * config/gcn/gcn-builtins.def: New file.
25478 * config/gcn/gcn-hsa.h: New file.
25479 * config/gcn/gcn-modes.def: New file.
25480 * config/gcn/gcn-opts.h: New file.
25481 * config/gcn/gcn-passes.def: New file.
25482 * config/gcn/gcn-protos.h: New file.
25483 * config/gcn/gcn-run.c: New file.
25484 * config/gcn/gcn-tree.c: New file.
25485 * config/gcn/gcn.c: New file.
25486 * config/gcn/gcn.h: New file.
25487 * config/gcn/gcn.opt: New file.
25488 * config/gcn/t-gcn-hsa: New file.
25489
25490 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25491 Kwok Cheung Yeung <kcy@codesourcery.com>
25492 Julian Brown <julian@codesourcery.com>
25493 Tom de Vries <tom@codesourcery.com>
25494 Jan Hubicka <hubicka@ucw.cz>
25495 Martin Jambor <mjambor@suse.cz>
25496
25497 * config/gcn/constraints.md: New file.
25498 * config/gcn/gcn-valu.md: New file.
25499 * config/gcn/gcn.md: New file.
25500 * config/gcn/predicates.md: New file.
25501
25502 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25503
25504 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25505 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25506 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25507 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25508
25509 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25510
25511 PR target/88851
25512 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25513 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25514 it and document registers.
25515
25516 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25517
25518 * config/aarch64/aarch64.c (ares_tunings): Define.
25519 * config/aarch64/aarch64-cores.def (ares): Use the above.
25520
25521 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25522
25523 PR target/88794
25524 Revert:
25525 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25526
25527 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25528 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25529 (_mm512_maskz_fixupimm_round_pd): Ditto.
25530 (_mm512_fixupimm_round_ps): Ditto.
25531 (_mm512_maskz_fixupimm_round_ps): Ditto.
25532 (_mm_fixupimm_round_sd): Ditto.
25533 (_mm_maskz_fixupimm_round_sd): Ditto.
25534 (_mm_fixupimm_round_ss): Ditto.
25535 (_mm_maskz_fixupimm_round_ss): Ditto.
25536 (_mm512_fixupimm_pd): Ditto.
25537 (_mm512_maskz_fixupimm_pd): Ditto.
25538 (_mm512_fixupimm_ps): Ditto.
25539 (_mm512_maskz_fixupimm_ps): Ditto.
25540 (_mm_fixupimm_sd): Ditto.
25541 (_mm_maskz_fixupimm_sd): Ditto.
25542 (_mm_fixupimm_ss): Ditto.
25543 (_mm_maskz_fixupimm_ss): Ditto.
25544 (_mm512_mask_fixupimm_round_pd): Update builtin.
25545 (_mm512_mask_fixupimm_round_ps): Ditto.
25546 (_mm_mask_fixupimm_round_sd): Ditto.
25547 (_mm_mask_fixupimm_round_ss): Ditto.
25548 (_mm512_mask_fixupimm_pd): Ditto.
25549 (_mm512_mask_fixupimm_ps): Ditto.
25550 (_mm_mask_fixupimm_sd): Ditto.
25551 (_mm_mask_fixupimm_ss): Ditto.
25552 * config/i386/avx512vlintrin.h:
25553 (_mm256_fixupimm_pd): Update parameters and builtin.
25554 (_mm256_maskz_fixupimm_pd): Ditto.
25555 (_mm256_fixupimm_ps): Ditto.
25556 (_mm256_maskz_fixupimm_ps): Ditto.
25557 (_mm_fixupimm_pd): Ditto.
25558 (_mm_maskz_fixupimm_pd): Ditto.
25559 (_mm_fixupimm_ps): Ditto.
25560 (_mm_maskz_fixupimm_ps): Ditto.
25561 (_mm256_mask_fixupimm_pd): Update builtin.
25562 (_mm256_mask_fixupimm_ps): Ditto.
25563 (_mm_mask_fixupimm_pd): Ditto.
25564 (_mm_mask_fixupimm_ps): Ditto.
25565 * config/i386/i386-builtin-types.def: Add new types and remove
25566 useless ones.
25567 * config/i386/i386-builtin.def: Update builtin definitions.
25568 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25569 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25570 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25571 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25572 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25573 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25574 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25575 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25576 * config/i386/subst.md:
25577 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25578 (round_saeonly_sd_mask_op4): Ditto.
25579 (round_saeonly_expand_operand5): Ditto.
25580 (round_saeonly_expand): Update.
25581
25582 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25583
25584 PR target/88794
25585 Revert:
25586 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25587
25588 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25589 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25590 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25591 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25592 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25593 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25594 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25595
25596 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25597
25598 PR target/88794
25599 Revert:
25600 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25601
25602 PR target/88489
25603 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25604 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25605 instead of UNSPEC_FIXUPIMM.
25606
25607 2019-01-17 Richard Biener <rguenther@suse.de>
25608
25609 PR lto/86736
25610 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25611 and friends for the LTO part of debug info.
25612
25613 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25614
25615 PR tree-optimization/86214
25616 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25617 if x == y.
25618
25619 PR rtl-optimization/88870
25620 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25621 throw if we can't alter the cfg or delete dead exceptions.
25622 (mark_insn): Don't call find_call_stack_args for such calls.
25623
25624 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25625
25626 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25627 prototypes for vec_st.
25628 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25629 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25630 mainly on signed/unsigned long long and double.
25631
25632 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25633
25634 PR target/88861
25635 * combine.c (delete_noop_moves): Convert to "bool" return,
25636 returning true if any edges are eliminated.
25637 (combine_instructions): Also return true if delete_noop_moves
25638 returns true.
25639
25640 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25641
25642 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25643 correct max nunits for endian swap.
25644 (aarch64_expand_fcmla_builtin): Correct subreg code.
25645 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25646 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25647 lane endianness.
25648
25649 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25650
25651 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25652 Handle split indirect COMPLEX_TYPE arguments.
25653
25654 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25655
25656 PR target/86891
25657 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25658 bit is set by add and compare.
25659 (CC_ADC): New CC_MODE.
25660 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25661 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25662 comparison. Add detection for CC_ADCmode.
25663 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25664 CC_ADCmode.
25665 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25666 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25667 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25668 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25669 to eliminate the need for zero-extending the operands.
25670 (add<mode>3_compareC_imm): Delete. Merge into ...
25671 (add<mode>3_compareC): ... this. Restructure the comparison to
25672 eliminate the need for zero-extending the operands.
25673 (add<mode>3_carryin): Use LTU for the overflow detection.
25674 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25675 Reexpress comparison for overflow.
25676 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25677 (add<mode>3_carryinC): Likewise.
25678 (add<mode>3_carryinV): Use LTU for carry between partials.
25679 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25680 handling of CC_Cmode and add CC_ADCmode.
25681 (aarch64_borrow_operation): Likewise.
25682
25683 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25684
25685 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25686 Remove patternmode.
25687 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25688 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25689 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25690 Remove endianness conversion.
25691
25692 2019-01-16 Martin Liska <mliska@suse.cz>
25693
25694 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25695 for GCC driver.
25696 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25697 a new argument.
25698 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25699 (path_prefix_reset): Move up in the source file.
25700 (find_fortran_preinclude_file): Make complex search for the
25701 fortran header files.
25702
25703 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25704
25705 * godump.c (go_output_typedef): When outputting a typedef, refer
25706 to the underlying type by its name and not its structure.
25707
25708 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25709
25710 PR c++/88795
25711 * tree.c (build_function_type): Assert that arg_types is not
25712 error_mark_node.
25713
25714 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25715
25716 PR inline-asm/52813
25717 * doc/extend.texi: Document that listing the stack pointer in the
25718 clobber list of an asm is a deprecated feature.
25719 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25720 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25721 warning instead of an error for clobbers of the stack pointer.
25722 Add a note explaining why.
25723
25724 2019-01-15 Richard Biener <rguenther@suse.de>
25725
25726 PR debug/88046
25727 * dwarf2out.c (gen_member_die): Do not generate inheritance
25728 DIEs late.
25729
25730 2019-01-15 Richard Biener <rguenther@suse.de>
25731
25732 PR tree-optimization/88855
25733 * tree-if-conv.c (combine_blocks): Collect
25734 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25735
25736 2019-01-15 Tom de Vries <tdevries@suse.de>
25737
25738 PR target/80547
25739 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25740 lhs == NULL_TREE for gang-level reduction.
25741
25742 2019-01-15 Richard Biener <rguenther@suse.de>
25743 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25744
25745 PR ipa/88788
25746 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25747 return true if SSA_NAME is already marked in visited bitmap.
25748 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25749
25750 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25751
25752 PR tree-optimization/88775
25753 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25754 equal == 0 equality pointer comparisons some more if compared in
25755 integral types and either one points to an automatic var and the
25756 other to a global, or we can prove at least one points to the middle
25757 or both point to start or both point to end.
25758
25759 2019-01-14 Andi Kleen <ak@linux.intel.com>
25760
25761 * Makefile.in: Lower autofdo sampling rate by 10x.
25762 * Makefile.tpl: Dito.
25763
25764 2019-01-14 Tom Honermann <tom@honermann.net>
25765
25766 * defaults.h: Define CHAR8_TYPE.
25767
25768 2019-01-14 Martin Sebor <msebor@redhat.com>
25769
25770 PR target/88638
25771 * doc/extend.texi (Darwin Format Checks): Clarify.
25772
25773 2019-01-14 Richard Biener <rguenther@suse.de>
25774
25775 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25776 whether we are in (simplify ...) or (match ...) context.
25777
25778 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25779
25780 PR rtl-optimization/88796
25781 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25782 * cfgexpand.c (stack_protect_prologue): Initialize
25783 crtl->stack_protect_guard_decl.
25784 * function.c (stack_protect_epilogue): Use it instead of calling
25785 targetm.stack_protect_guard again.
25786 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25787 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25788 crtl->stack_protect_guard_decl.
25789 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25790 on the returned MEM_EXPR.
25791
25792 2019-01-12 Tom de Vries <tdevries@suse.de>
25793
25794 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25795 vector length using -fopenacc-dim.
25796
25797 2019-01-12 Tom de Vries <tdevries@suse.de>
25798
25799 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25800 lengths into account.
25801
25802 2019-01-12 Svante Signell <svante.signell@gmail.com>
25803
25804 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25805 (TARGET_CAN_SPLIT_STACK): Define.
25806 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25807
25808 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25809
25810 * params.def (inline-unit-growth): Set to 40.
25811
25812 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25813
25814 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25815
25816 2019-01-12 Tom de Vries <tdevries@suse.de>
25817
25818 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25819 region calling vector-partitionable routine, set default_vector_length
25820 to WARP_SIZE.
25821
25822 2019-01-12 Tom de Vries <tdevries@suse.de>
25823
25824 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25825 variable default_vector_length.
25826
25827 2019-01-12 Tom de Vries <tdevries@suse.de>
25828
25829 PR middle-end/88703
25830 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25831 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25832 dimensions limits.
25833
25834 2019-01-12 Tom de Vries <tdevries@suse.de>
25835
25836 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25837 (nvptx_goacc_validate_dims): Add used parameter.
25838 * doc/tm.texi: Regenerate.
25839 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25840 argument to call to targetm.goacc.validate_dims.
25841 (default_goacc_validate_dims): Add used
25842 parameter.
25843 * target.def (validate_dims): Add used parameter in DEFHOOK.
25844 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25845
25846 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25847
25848 PR middle-end/85956
25849 PR lto/88733
25850 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25851 field.
25852 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25853 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25854 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25855 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25856
25857 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25858
25859 PR rtl-optimization/87305
25860 * lra-assigns.c
25861 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25862 for little endian pseudos used as paradoxical subreg.
25863
25864 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25865
25866 PR tree-optimization/88693
25867 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25868 for STRING_CSTs that don't contain any NUL characters in the first
25869 TREE_STRING_LENGTH bytes.
25870
25871 2019-01-11 Alan Modra <amodra@gmail.com>
25872
25873 PR 88777
25874 PR 88614
25875 * genattrtab.c (min_fn): Don't translate values.
25876 (min_attr_value): Return INT_MAX when the value can't be calculated.
25877 Return minimum among any values that can be calculated.
25878 (max_attr_value): Adjust.
25879
25880 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25881
25882 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25883
25884 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25885
25886 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25887 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25888 (aarch64_return_call_with_max_clobbers): New function.
25889 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25890 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25891 argument.
25892 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25893 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25894 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25895 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25896 * cselib.c (cselib_process_insn): Add argument to
25897 targetm.hard_regno_call_part_clobbered call.
25898 * ira-conflicts.c (ira_build_conflicts): Ditto.
25899 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25900 * lra-constraints.c (inherit_reload_reg): Ditto.
25901 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25902 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25903 argument. Call targetm.return_call_with_max_clobbers.
25904 Add argument to targetm.hard_regno_call_part_clobbered call.
25905 (calls_have_same_clobbers_p): New function.
25906 (process_bb_lives): Add call_insn and last_call_insn variables.
25907 Pass call_insn to check_pseudos_live_through_calls.
25908 Modify if stmt to check targetm.return_call_with_max_clobbers.
25909 Update setting of flush variable.
25910 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25911 to false.
25912 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25913 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25914 targetm.hard_regno_call_part_clobbered call.
25915 * reginfo.c (choose_hard_reg_mode): Ditto.
25916 * regrename.c (check_new_reg_p): Ditto.
25917 * reload.c (find_equiv_reg): Ditto.
25918 * reload1.c (emit_reload_insns): Ditto.
25919 * sched-deps.c (deps_analyze_insn): Ditto.
25920 * sel-sched.c (init_regs_for_mode): Ditto.
25921 (mark_unavailable_hard_regs): Ditto.
25922 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25923 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25924 (return_call_with_max_clobbers): New target function.
25925 * doc/tm.texi: Regenerate.
25926 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25927 * hooks.c (hook_bool_uint_mode_false): Change to
25928 hook_bool_insn_uint_mode_false.
25929 * hooks.h (hook_bool_uint_mode_false): Ditto.
25930
25931 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25932
25933 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25934 (aarch64_remove_extra_call_preserved_regs): New function.
25935 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25936 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25937 * doc/tm.texi: Regenerate.
25938 * final.c (get_call_reg_set_usage): Call new hook.
25939 * target.def (remove_extra_call_preserved_regs): New hook.
25940 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25941 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25942
25943 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25944
25945 PR bootstrap/88714
25946 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25947 inside of pass_combine_1 dump rather than pass_profile_1.
25948
25949 2019-01-11 Tom de Vries <tdevries@suse.de>
25950
25951 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25952 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25953 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25954 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25955 num_workers 16.
25956
25957 2019-01-11 Tom de Vries <tdevries@suse.de>
25958
25959 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25960
25961 2019-01-11 Jan Beulich <jbeulich@suse.com>
25962
25963 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25964 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25965 sse2_cvtsi2sd): Add {l}.
25966 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25967 syntax.
25968
25969 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25970
25971 PR target/88785
25972 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25973 define_expand.
25974 (*float<floatunssuffix>v2div2sf2): New define_insn.
25975 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25976 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25977 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25978 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25979 match_operands with "const0_operand" "C".
25980
25981 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25982
25983 * config/aarch64/aarch64-builtins.c
25984 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25985 (aarch64_init_simd_builtins): ...Here
25986
25987 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25988
25989 PR rtl-optimization/87305
25990 * lra-assigns.c
25991 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25992 allocation for big endian pseudos used as paradoxical subregs and
25993 spill them if it is wrong.
25994 * lra-constraints.c (lra_constraints): Add a comment.
25995
25996 2019-01-10 Richard Biener <rguenther@suse.de>
25997
25998 PR tree-optimization/88792
25999 * tree-ssa-pre.c (get_representative_for): Do not return a
26000 value-number here.
26001
26002 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26003
26004 PR middle-end/84877
26005 PR bootstrap/88450
26006 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26007 (assign_parm_setup_block): Do the argument slot realignment here
26008 instead.
26009
26010 2019-01-10 Stefan Agner <stefan@agner.ch>
26011
26012 PR target/88648
26013 * config/arm/arm.c (arm_option_override_internal): Force
26014 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26015
26016 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26017
26018 PR c/88568
26019 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26020 DECL_EXTERNAL.
26021
26022 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26023
26024 * config/arm/arm-builtins.c
26025 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26026 (MAC_LANE_PAIR_QUALIFIERS): New.
26027 (arm_expand_builtin_args): Use it.
26028 (arm_expand_builtin_1): Likewise.
26029 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26030 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26031 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26032 * config/arm/arm_neon.h:
26033 (vcadd_rot90_f16): New.
26034 (vcaddq_rot90_f16): New.
26035 (vcadd_rot270_f16): New.
26036 (vcaddq_rot270_f16): New.
26037 (vcmla_f16): New.
26038 (vcmlaq_f16): New.
26039 (vcmla_lane_f16): New.
26040 (vcmla_laneq_f16): New.
26041 (vcmlaq_lane_f16): New.
26042 (vcmlaq_laneq_f16): New.
26043 (vcmla_rot90_f16): New.
26044 (vcmlaq_rot90_f16): New.
26045 (vcmla_rot90_lane_f16): New.
26046 (vcmla_rot90_laneq_f16): New.
26047 (vcmlaq_rot90_lane_f16): New.
26048 (vcmlaq_rot90_laneq_f16): New.
26049 (vcmla_rot180_f16): New.
26050 (vcmlaq_rot180_f16): New.
26051 (vcmla_rot180_lane_f16): New.
26052 (vcmla_rot180_laneq_f16): New.
26053 (vcmlaq_rot180_lane_f16): New.
26054 (vcmlaq_rot180_laneq_f16): New.
26055 (vcmla_rot270_f16): New.
26056 (vcmlaq_rot270_f16): New.
26057 (vcmla_rot270_lane_f16): New.
26058 (vcmla_rot270_laneq_f16): New.
26059 (vcmlaq_rot270_lane_f16): New.
26060 (vcmlaq_rot270_laneq_f16): New.
26061 (vcadd_rot90_f32): New.
26062 (vcaddq_rot90_f32): New.
26063 (vcadd_rot270_f32): New.
26064 (vcaddq_rot270_f32): New.
26065 (vcmla_f32): New.
26066 (vcmlaq_f32): New.
26067 (vcmla_lane_f32): New.
26068 (vcmla_laneq_f32): New.
26069 (vcmlaq_lane_f32): New.
26070 (vcmlaq_laneq_f32): New.
26071 (vcmla_rot90_f32): New.
26072 (vcmlaq_rot90_f32): New.
26073 (vcmla_rot90_lane_f32): New.
26074 (vcmla_rot90_laneq_f32): New.
26075 (vcmlaq_rot90_lane_f32): New.
26076 (vcmlaq_rot90_laneq_f32): New.
26077 (vcmla_rot180_f32): New.
26078 (vcmlaq_rot180_f32): New.
26079 (vcmla_rot180_lane_f32): New.
26080 (vcmla_rot180_laneq_f32): New.
26081 (vcmlaq_rot180_lane_f32): New.
26082 (vcmlaq_rot180_laneq_f32): New.
26083 (vcmla_rot270_f32): New.
26084 (vcmlaq_rot270_f32): New.
26085 (vcmla_rot270_lane_f32): New.
26086 (vcmla_rot270_laneq_f32): New.
26087 (vcmlaq_rot270_lane_f32): New.
26088 (vcmlaq_rot270_laneq_f32): New.
26089 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26090 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26091 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26092 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26093 vcmlaq_lane270): New.
26094 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26095 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26096 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26097 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26098 (arm_option_reconfigure_globals): Use them.
26099 * config/arm/iterators.md (VDF, VQ_HSF): New.
26100 (VCADD, VCMLA): New.
26101 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26102 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26103 New.
26104 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26105 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26106
26107 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26108
26109 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26110 Add qualifier_lane_pair_index.
26111 (emit-rtl.h): Include.
26112 (TYPES_QUADOP_LANE_PAIR): New.
26113 (aarch64_simd_expand_args): Use it.
26114 (aarch64_simd_expand_builtin): Likewise.
26115 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26116 New.
26117 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26118 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26119 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26120 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26121 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26122 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26123 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26124 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26125 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26126 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26127 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26128 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26129 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26130 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26131 Add __ARM_FEATURE_COMPLEX.
26132 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26133 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26134 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26135 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26136 fcmlaq_lane270): New.
26137 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26138 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26139 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26140 * config/aarch64/arm_neon.h:
26141 (vcadd_rot90_f16): New.
26142 (vcaddq_rot90_f16): New.
26143 (vcadd_rot270_f16): New.
26144 (vcaddq_rot270_f16): New.
26145 (vcmla_f16): New.
26146 (vcmlaq_f16): New.
26147 (vcmla_lane_f16): New.
26148 (vcmla_laneq_f16): New.
26149 (vcmlaq_lane_f16): New.
26150 (vcmlaq_rot90_lane_f16): New.
26151 (vcmla_rot90_laneq_f16): New.
26152 (vcmla_rot90_lane_f16): New.
26153 (vcmlaq_rot90_f16): New.
26154 (vcmla_rot90_f16): New.
26155 (vcmlaq_laneq_f16): New.
26156 (vcmla_rot180_laneq_f16): New.
26157 (vcmla_rot180_lane_f16): New.
26158 (vcmlaq_rot180_f16): New.
26159 (vcmla_rot180_f16): New.
26160 (vcmlaq_rot90_laneq_f16): New.
26161 (vcmlaq_rot270_laneq_f16): New.
26162 (vcmlaq_rot270_lane_f16): New.
26163 (vcmla_rot270_laneq_f16): New.
26164 (vcmlaq_rot270_f16): New.
26165 (vcmla_rot270_f16): New.
26166 (vcmlaq_rot180_laneq_f16): New.
26167 (vcmlaq_rot180_lane_f16): New.
26168 (vcmla_rot270_lane_f16): New.
26169 (vcadd_rot90_f32): New.
26170 (vcaddq_rot90_f32): New.
26171 (vcaddq_rot90_f64): New.
26172 (vcadd_rot270_f32): New.
26173 (vcaddq_rot270_f32): New.
26174 (vcaddq_rot270_f64): New.
26175 (vcmla_f32): New.
26176 (vcmlaq_f32): New.
26177 (vcmlaq_f64): New.
26178 (vcmla_lane_f32): New.
26179 (vcmla_laneq_f32): New.
26180 (vcmlaq_lane_f32): New.
26181 (vcmlaq_laneq_f32): New.
26182 (vcmla_rot90_f32): New.
26183 (vcmlaq_rot90_f32): New.
26184 (vcmlaq_rot90_f64): New.
26185 (vcmla_rot90_lane_f32): New.
26186 (vcmla_rot90_laneq_f32): New.
26187 (vcmlaq_rot90_lane_f32): New.
26188 (vcmlaq_rot90_laneq_f32): New.
26189 (vcmla_rot180_f32): New.
26190 (vcmlaq_rot180_f32): New.
26191 (vcmlaq_rot180_f64): New.
26192 (vcmla_rot180_lane_f32): New.
26193 (vcmla_rot180_laneq_f32): New.
26194 (vcmlaq_rot180_lane_f32): New.
26195 (vcmlaq_rot180_laneq_f32): New.
26196 (vcmla_rot270_f32): New.
26197 (vcmlaq_rot270_f32): New.
26198 (vcmlaq_rot270_f64): New.
26199 (vcmla_rot270_lane_f32): New.
26200 (vcmla_rot270_laneq_f32): New.
26201 (vcmlaq_rot270_lane_f32): New.
26202 (vcmlaq_rot270_laneq_f32): New.
26203 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26204 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26205 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26206 (FCADD, FCMLA): New.
26207 (rot): New.
26208 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26209
26210 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26211
26212 PR other/16615
26213
26214 * config/pa/pa.c: Change "can not" to "cannot".
26215 * gimple-ssa-evrp-analyze.c: Likewise.
26216 * ipa-icf.c: Likewise.
26217 * ipa-polymorphic-call.c: Likewise.
26218 * ipa-pure-const.c: Likewise.
26219 * lra-constraints.c: Likewise.
26220 * lra-remat.c: Likewise.
26221 * reload1.c: Likewise.
26222 * reorg.c: Likewise.
26223 * tree-ssa-uninit.c: Likewise.
26224
26225 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26226
26227 PR other/16615
26228
26229 * Makefile.in: Mechanically replace "can not" with "cannot".
26230 * alias.c: Likewise.
26231 * builtins.c: Likewise.
26232 * calls.c: Likewise.
26233 * cgraph.c: Likewise.
26234 * cgraph.h: Likewise.
26235 * cgraphclones.c: Likewise.
26236 * cgraphunit.c: Likewise.
26237 * combine-stack-adj.c: Likewise.
26238 * combine.c: Likewise.
26239 * common/config/i386/i386-common.c: Likewise.
26240 * config/aarch64/aarch64.c: Likewise.
26241 * config/alpha/sync.md: Likewise.
26242 * config/arc/arc.c: Likewise.
26243 * config/arc/predicates.md: Likewise.
26244 * config/arm/arm-c.c: Likewise.
26245 * config/arm/arm.c: Likewise.
26246 * config/arm/arm.h: Likewise.
26247 * config/arm/arm.md: Likewise.
26248 * config/arm/cortex-r4f.md: Likewise.
26249 * config/csky/csky.c: Likewise.
26250 * config/csky/csky.h: Likewise.
26251 * config/darwin-f.c: Likewise.
26252 * config/epiphany/epiphany.md: Likewise.
26253 * config/i386/i386.c: Likewise.
26254 * config/i386/sol2.h: Likewise.
26255 * config/m68k/m68k.c: Likewise.
26256 * config/mcore/mcore.h: Likewise.
26257 * config/microblaze/microblaze.md: Likewise.
26258 * config/mips/20kc.md: Likewise.
26259 * config/mips/sb1.md: Likewise.
26260 * config/nds32/nds32.c: Likewise.
26261 * config/nds32/predicates.md: Likewise.
26262 * config/pa/pa.c: Likewise.
26263 * config/rs6000/e300c2c3.md: Likewise.
26264 * config/rs6000/rs6000.c: Likewise.
26265 * config/s390/s390.h: Likewise.
26266 * config/sh/sh.c: Likewise.
26267 * config/sh/sh.md: Likewise.
26268 * config/spu/vmx2spu.h: Likewise.
26269 * cprop.c: Likewise.
26270 * dbxout.c: Likewise.
26271 * df-scan.c: Likewise.
26272 * doc/cfg.texi: Likewise.
26273 * doc/extend.texi: Likewise.
26274 * doc/fragments.texi: Likewise.
26275 * doc/gty.texi: Likewise.
26276 * doc/invoke.texi: Likewise.
26277 * doc/lto.texi: Likewise.
26278 * doc/md.texi: Likewise.
26279 * doc/objc.texi: Likewise.
26280 * doc/rtl.texi: Likewise.
26281 * doc/tm.texi: Likewise.
26282 * dse.c: Likewise.
26283 * emit-rtl.c: Likewise.
26284 * emit-rtl.h: Likewise.
26285 * except.c: Likewise.
26286 * expmed.c: Likewise.
26287 * expr.c: Likewise.
26288 * fold-const.c: Likewise.
26289 * genautomata.c: Likewise.
26290 * gimple-fold.c: Likewise.
26291 * hard-reg-set.h: Likewise.
26292 * ifcvt.c: Likewise.
26293 * ipa-comdats.c: Likewise.
26294 * ipa-cp.c: Likewise.
26295 * ipa-devirt.c: Likewise.
26296 * ipa-fnsummary.c: Likewise.
26297 * ipa-icf.c: Likewise.
26298 * ipa-inline-transform.c: Likewise.
26299 * ipa-inline.c: Likewise.
26300 * ipa-polymorphic-call.c: Likewise.
26301 * ipa-profile.c: Likewise.
26302 * ipa-prop.c: Likewise.
26303 * ipa-pure-const.c: Likewise.
26304 * ipa-reference.c: Likewise.
26305 * ipa-split.c: Likewise.
26306 * ipa-visibility.c: Likewise.
26307 * ipa.c: Likewise.
26308 * ira-build.c: Likewise.
26309 * ira-color.c: Likewise.
26310 * ira-conflicts.c: Likewise.
26311 * ira-costs.c: Likewise.
26312 * ira-int.h: Likewise.
26313 * ira-lives.c: Likewise.
26314 * ira.c: Likewise.
26315 * ira.h: Likewise.
26316 * loop-invariant.c: Likewise.
26317 * loop-unroll.c: Likewise.
26318 * lower-subreg.c: Likewise.
26319 * lra-assigns.c: Likewise.
26320 * lra-constraints.c: Likewise.
26321 * lra-eliminations.c: Likewise.
26322 * lra-lives.c: Likewise.
26323 * lra-remat.c: Likewise.
26324 * lra-spills.c: Likewise.
26325 * lra.c: Likewise.
26326 * lto-cgraph.c: Likewise.
26327 * lto-streamer-out.c: Likewise.
26328 * postreload-gcse.c: Likewise.
26329 * predict.c: Likewise.
26330 * profile-count.h: Likewise.
26331 * profile.c: Likewise.
26332 * recog.c: Likewise.
26333 * ree.c: Likewise.
26334 * reload.c: Likewise.
26335 * reload1.c: Likewise.
26336 * reorg.c: Likewise.
26337 * resource.c: Likewise.
26338 * rtl.def: Likewise.
26339 * rtl.h: Likewise.
26340 * rtlanal.c: Likewise.
26341 * sched-deps.c: Likewise.
26342 * sched-ebb.c: Likewise.
26343 * sched-rgn.c: Likewise.
26344 * sel-sched-ir.c: Likewise.
26345 * sel-sched.c: Likewise.
26346 * shrink-wrap.c: Likewise.
26347 * simplify-rtx.c: Likewise.
26348 * symtab.c: Likewise.
26349 * target.def: Likewise.
26350 * toplev.c: Likewise.
26351 * tree-call-cdce.c: Likewise.
26352 * tree-cfg.c: Likewise.
26353 * tree-complex.c: Likewise.
26354 * tree-core.h: Likewise.
26355 * tree-eh.c: Likewise.
26356 * tree-inline.c: Likewise.
26357 * tree-loop-distribution.c: Likewise.
26358 * tree-nrv.c: Likewise.
26359 * tree-profile.c: Likewise.
26360 * tree-sra.c: Likewise.
26361 * tree-ssa-alias.c: Likewise.
26362 * tree-ssa-dce.c: Likewise.
26363 * tree-ssa-dom.c: Likewise.
26364 * tree-ssa-forwprop.c: Likewise.
26365 * tree-ssa-loop-im.c: Likewise.
26366 * tree-ssa-loop-ivcanon.c: Likewise.
26367 * tree-ssa-loop-ivopts.c: Likewise.
26368 * tree-ssa-loop-niter.c: Likewise.
26369 * tree-ssa-phionlycprop.c: Likewise.
26370 * tree-ssa-phiopt.c: Likewise.
26371 * tree-ssa-propagate.c: Likewise.
26372 * tree-ssa-threadedge.c: Likewise.
26373 * tree-ssa-threadupdate.c: Likewise.
26374 * tree-ssa-uninit.c: Likewise.
26375 * tree-ssanames.c: Likewise.
26376 * tree-streamer-out.c: Likewise.
26377 * tree.c: Likewise.
26378 * tree.h: Likewise.
26379 * vr-values.c: Likewise.
26380
26381 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26382
26383 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26384 (ix86_split_xorsign): Ditto.
26385 * config/i386/i386.c (ix86_expand_xorsign): New function.
26386 (ix86_split_xorsign): Ditto.
26387 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26388 (xorsign<mode>3): New expander.
26389 (xorsign<mode>3_1): New insn_and_split pattern.
26390 * config/i386/sse.md (xorsign<mode>3): New expander.
26391
26392 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26393
26394 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26395 (*tablejump_sp64): Likewise.
26396 (*tablejump<P:mode>): ...this.
26397 (*call_address_sp32): Merge into...
26398 (*call_address_sp64): Likewise.
26399 (*call_address<P:mode>): ...this.
26400 (*call_symbolic_sp32): Merge into...
26401 (*call_symbolic_sp64): Likewise.
26402 (*call_symbolic<P:mode>): ...this.
26403 (call_value): Remove constraint and add predicate.
26404 (*call_value_address_sp32): Merge into...
26405 (*call_value_address_sp64): Likewise.
26406 (*call_value_address<P:mode>): ...this.
26407 (*call_value_symbolic_sp32): Merge into...
26408 (*call_value_symbolic_sp64): Likewise.
26409 (*call_value_symbolic<P:mode>): ...this.
26410 (*sibcall_symbolic_sp32): Merge into...
26411 (*sibcall_symbolic_sp64): Likewise.
26412 (*sibcall_symbolic<P:mode>): ...this.
26413 (sibcall_value): Remove constraint and add predicate.
26414 (*sibcall_value_symbolic_sp32): Merge into...
26415 (*sibcall_value_symbolic_sp64): Likewise.
26416 (*sibcall_value_symbolic<P:mode>): ...this.
26417 (window_save): Minor tweak.
26418 (*branch_sp32): Merge into...
26419 (*branch_sp64): Likewise.
26420 (*branch<P:mode>): ...this.
26421
26422 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26423 James Clarke <jrtc27@jrtc27.com>
26424
26425 PR target/84010
26426 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26427 consistently in TLS address generation and adjust code to the renaming
26428 of patterns. Mark calls to __tls_get_addr as const.
26429 * config/sparc/sparc.md (tgd_hi22): Turn into...
26430 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26431 (tgd_lo10): Turn into...
26432 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26433 (tgd_add32): Merge into...
26434 (tgd_add64): Likewise.
26435 (tgd_add<P:mode>): ...this and use Pmode throughout.
26436 (tldm_hi22): Turn into...
26437 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26438 (tldm_lo10): Turn into...
26439 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26440 (tldm_add32): Merge into...
26441 (tldm_add64): Likewise.
26442 (tldm_add<P:mode>): ...this and use Pmode throughout.
26443 (tldm_call32): Merge into...
26444 (tldm_call64): Likewise.
26445 (tldm_call<P:mode>): ...this and use Pmode throughout.
26446 (tldo_hix22): Turn into...
26447 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26448 (tldo_lox10): Turn into...
26449 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26450 (tldo_add32): Merge into...
26451 (tldo_add64): Likewise.
26452 (tldo_add<P:mode>): ...this and use Pmode throughout.
26453 (tie_hi22): Turn into...
26454 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26455 (tie_lo10): Turn into...
26456 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26457 (tie_ld64): Use DImode throughout.
26458 (tie_add32): Merge into...
26459 (tie_add64): Likewise.
26460 (tie_add<P:mode>): ...this and use Pmode throughout.
26461 (tle_hix22_sp32): Merge into...
26462 (tle_hix22_sp64): Likewise.
26463 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26464 (tle_lox22_sp32): Merge into...
26465 (tle_lox22_sp64): Likewise.
26466 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26467 (*tldo_ldub_sp32): Merge into...
26468 (*tldo_ldub_sp64): Likewise.
26469 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26470 (*tldo_ldub1_sp32): Merge into...
26471 (*tldo_ldub1_sp64): Likewise.
26472 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26473 (*tldo_ldub2_sp32): Merge into...
26474 (*tldo_ldub2_sp64): Likewise.
26475 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26476 (*tldo_ldsb1_sp32): Merge into...
26477 (*tldo_ldsb1_sp64): Likewise.
26478 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26479 (*tldo_ldsb2_sp32): Merge into...
26480 (*tldo_ldsb2_sp64): Likewise.
26481 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26482 (*tldo_ldub3_sp64): Use DImode throughout.
26483 (*tldo_ldsb3_sp64): Likewise.
26484 (*tldo_lduh_sp32): Merge into...
26485 (*tldo_lduh_sp64): Likewise.
26486 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26487 (*tldo_lduh1_sp32): Merge into...
26488 (*tldo_lduh1_sp64): Likewise.
26489 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26490 (*tldo_ldsh1_sp32): Merge into...
26491 (*tldo_ldsh1_sp64): Likewise.
26492 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26493 (*tldo_lduh2_sp64): Use DImode throughout.
26494 (*tldo_ldsh2_sp64): Likewise.
26495 (*tldo_lduw_sp32): Merge into...
26496 (*tldo_lduw_sp64): Likewise.
26497 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26498 (*tldo_lduw1_sp64): Use DImode throughout.
26499 (*tldo_ldsw1_sp64): Likewise.
26500 (*tldo_ldx_sp64): Likewise.
26501 (*tldo_stb_sp32): Merge into...
26502 (*tldo_stb_sp64): Likewise.
26503 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26504 (*tldo_sth_sp32): Merge into...
26505 (*tldo_sth_sp64): Likewise.
26506 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26507 (*tldo_stw_sp32): Merge into...
26508 (*tldo_stw_sp64): Likewise.
26509 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26510 (*tldo_stx_sp64): Use DImode throughout.
26511
26512 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26513
26514 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26515 check configure option to set BTI and Return Address Signing.
26516 * configure.ac: Add --enable-standard-branch-protection and
26517 --disable-standard-branch-protection.
26518 * configure: Regenerated.
26519 * doc/install.texi: Document the same.
26520
26521 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26522 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26523
26524 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26525 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26526 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26527 if bti is enabled.
26528 * config/aarch64/aarch64-bti-insert.c: New file.
26529 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26530 pass.
26531 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26532 new bti pass.
26533 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26534 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26535 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26536 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26537
26538 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26539
26540 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26541 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26542 Disable bti for -mbranch-protection=none.
26543 (aarch64_handle_standard_branch_protection): Enable bti for
26544 -mbranch-protection=standard.
26545 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26546 -mbranch-protection.
26547 (aarch64_bti_enabled): Check if bti is enabled.
26548 * config/aarch64/aarch64.opt: Declare target variable.
26549 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26550
26551 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26552
26553 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26554 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26555 (aarch64_expand_epilogue): Likewise.
26556 (aarch64_output_mi_thunk): Likewise.
26557 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26558 TAILCALL_ADDR_REGS to x16 and x17.
26559 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26560
26561 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26562
26563 * config/aarch64/aarch64-option-extensions.def: Define
26564 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26565 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26566 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26567 (AARCH64_FL_PREDRES): New.
26568 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26569 AARCH64_FL_PREDRES by default.
26570 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26571
26572 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26573
26574 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26575 ARMv8.5-A.
26576 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26577 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26578 * doc/invoke.texi: Document ARMv8.5-A.
26579
26580 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26581
26582 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26583 (xorsign<mode>3): Likewise.
26584
26585 2019-01-09 Jelinek <jakub@redhat.com>
26586
26587 PR middle-end/88758
26588 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26589 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26590
26591 PR rtl-optimization/88331
26592 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26593 not currently_expanding_to_rtl.
26594
26595 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26596
26597 * doc/invoke.texi (-Os): Remove trailing spaces.
26598 (-finline-functions): Remove reference to -O2.
26599
26600 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26601
26602 PR rtl-optimization/79593
26603 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26604
26605 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26606 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26607
26608 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26609
26610 PR bootstrap/88721
26611 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26612 to -1 on entry.
26613
26614 PR debug/88723
26615 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26616 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26617
26618 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26619
26620 PR target/88717
26621 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26622 ix86_avx_u128_mode_entry.
26623
26624 2019-01-08 Martin Liska <mliska@suse.cz>
26625
26626 PR tree-optimization/88753
26627 * tree-switch-conversion.c (switch_conversion::build_one_array):
26628 Come up with local variable constructor. Convert first to
26629 type of constructor values.
26630
26631 2019-01-08 Richard Biener <rguenther@suse.de>
26632
26633 PR tree-optimization/86554
26634 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26635 rpo_avail): Move earlier.
26636 (visit_nary_op): When value-numbering to expressions
26637 with different overflow behavior make sure there's an
26638 available expression on the path.
26639
26640 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26641
26642 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26643 aarch64_parse_branch_protection,
26644 struct aarch64_branch_protect_type,
26645 aarch64_handle_no_branch_protection,
26646 aarch64_handle_standard_branch_protection,
26647 aarch64_validate_mbranch_protection,
26648 aarch64_handle_pac_ret_protection,
26649 aarch64_handle_attr_branch_protection,
26650 accepted_branch_protection_string,
26651 aarch64_pac_ret_subtypes,
26652 aarch64_branch_protect_types,
26653 aarch64_handle_pac_ret_leaf): Define.
26654 (aarch64_override_options_after_change_1, aarch64_override_options):
26655 Add check for accepted_branch_protection_string.
26656 (aarch64_option_save): Save accepted_branch_protection_string.
26657 (aarch64_option_restore): Save accepted_branch_protection_string.
26658 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26659 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26660 msign-return-address.
26661 * doc/invoke.texi: Add mbranch-protection.
26662
26663 2019-01-08 Alan Modra <amodra@gmail.com>
26664
26665 PR target/88614
26666 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26667 Delete "unknownp" parameter. Adjust callers. Handle
26668 CONST_INT, PLUS, MINUS, and MULT.
26669 (attr_value_aligned): Renamed from or_attr_value.
26670 (min_attr_value): Return INT_MIN for unhandled rtl case..
26671 (min_fn): ..and translate to INT_MAX here.
26672 (write_length_unit_log): Modify to cope without "unknown".
26673 (write_attr_value): Handle IF_THEN_ELSE.
26674
26675 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26676
26677 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26678 optimization for masked stores.
26679
26680 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26681
26682 PR middle-end/88567
26683 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26684 output vector directly to duplicate_and_interleave instead of
26685 going through a temporary. Postpone insertion of ctor_seq to
26686 the end of the loop.
26687
26688 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26689
26690 PR target/86891
26691 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26692 unsigned_p. Handle signed and unsigned overflow correction as
26693 required.
26694 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26695 prototype.
26696 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26697 for operand 2.
26698 (add<mode>3_compareV_imm): Make this callable for expanding.
26699 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26700 aarch64_plus_operand for operand 2.
26701 (subv<GPI:mode>_insn): New insn pattern.
26702 (subv<GPI:mode>_imm): Likewise.
26703 (negv<GPI:mode>3): New expand pattern.
26704 (negv<GPI:mode>_insn): New insn pattern.
26705 (negv<GPI:mode>_cmp_only): Likewise.
26706 (cmpv<GPI:mode>_insn): Likewise.
26707 (subvti4): Use register_operand for operand 1. Update call to
26708 aarch64_expand_subvti.
26709 (usubvti4): Likewise.
26710 (negvti3): New expand pattern.
26711 (negdi_carryout): New insn pattern.
26712 (negvdi_carryinV): New insn pattern.
26713 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26714 version the named version.
26715 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26716 operands.
26717 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26718 patterns.
26719 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26720 patterns.
26721 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26722 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26723 (sub<mode>3_carryinCV): Delete.
26724 (sub<GPI:mode>3_carryinV): New expand pattern.
26725 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26726
26727 2019-01-07 Richard Biener <rguenther@suse.de>
26728
26729 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26730 of tree_operand_hash.
26731
26732 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26733
26734 PR tree-optimization/88598
26735 * tree.h (single_nonzero_element): Declare.
26736 * tree.c (single_nonzero_element): New function.
26737 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26738 if I is the only nonzero element of CST.
26739
26740 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26741
26742 PR tree-optimization/88598
26743 * tree.h (initializer_each_zero_or_onep): Declare.
26744 * tree.c (initializer_each_zero_or_onep): New function.
26745 (signed_or_unsigned_type_for): Handle float types too.
26746 (unsigned_type_for, signed_type_for): Update comments accordingly.
26747 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26748 x & { 0 or -1, 0 or -1, ... }.
26749
26750 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26751
26752 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26753 with x86_64-pc-linux-gnu.
26754
26755 2019-01-07 Tom de Vries <tdevries@suse.de>
26756
26757 PR target/85486
26758 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26759 function.
26760 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26761 routines.
26762
26763 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26764
26765 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26766 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26767 TARGET_AVX512F as condition.
26768
26769 PR debug/88723
26770 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26771 const_not_ok_for_debug_p target hook.
26772 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26773 on UNSPEC and subexpressions thereof if all subexpressions of the
26774 UNSPEC are CONSTANT_P.
26775
26776 PR tree-optimization/88676
26777 * tree-ssa-phiopt.c (two_value_replacement): New function.
26778 (tree_ssa_phiopt_worker): Call it.
26779
26780 PR sanitizer/88619
26781 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26782 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26783
26784 PR c++/85052
26785 * tree-vect-generic.c: Include insn-config.h and recog.h.
26786 (expand_vector_piecewise): Add defaulted ret_type argument,
26787 if non-NULL, use that in preference to type for the result type.
26788 (expand_vector_parallel): Formatting fix.
26789 (do_vec_conversion, do_vec_narrowing_conversion,
26790 expand_vector_conversion): New functions.
26791 (expand_vector_operations_1): Call expand_vector_conversion
26792 for VEC_CONVERT ifn calls.
26793 * internal-fn.def (VEC_CONVERT): New internal function.
26794 * internal-fn.c (expand_VEC_CONVERT): New function.
26795 * fold-const-call.c (fold_const_vec_convert): New function.
26796 (fold_const_call): Use it for CFN_VEC_CONVERT.
26797 * doc/extend.texi (__builtin_convertvector): Document.
26798
26799 2019-01-07 Tom de Vries <tdevries@suse.de>
26800
26801 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26802 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26803 vector_red_partition, vector_red_sym): New global variables.
26804 (nvptx_option_override): Initialize vector_red_sym.
26805 (nvptx_declare_function_name): Restore red_partition register.
26806 (nvptx_file_end): Emit code to declare the vector reduction variables.
26807 (nvptx_output_red_partition): New function.
26808 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26809 large vector reductions.
26810 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26811 (nvptx_init_builtins): Add VECTOR_ADDR.
26812 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26813 Handle nvptx_expand_shared_addr.
26814 (nvptx_get_shared_red_addr): Add vector argument and handle large
26815 vectors.
26816 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26817 large vectors.
26818 (nvptx_goacc_reduction_init): Likewise.
26819 (nvptx_goacc_reduction_fini): Likewise.
26820 (nvptx_goacc_reduction_teardown): Likewise.
26821 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26822 init,fini,teardown}.
26823 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26824 (nvptx_set_current_function): Init vector_red_partition.
26825 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26826 (nvptx_red_partition): New insn.
26827 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26828
26829 2019-01-07 Tom de Vries <tdevries@suse.de>
26830
26831 PR target/85381
26832 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26833 empty loops.
26834
26835 2019-01-07 Tom de Vries <tdevries@suse.de>
26836
26837 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26838 (nvptx_option_override): Init oacc_bcast_partition.
26839 (nvptx_init_oacc_workers): New function.
26840 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26841 (nvptx_needs_shared_bcast): New function.
26842 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26843 to propagate state.
26844 (nvptx_shared_propagate): Initialize vector bcast partition and
26845 synchronization state.
26846 (nvptx_single): Generalize to enable vectors to use shared-memory
26847 to propagate state.
26848 (nvptx_process_pars): Likewise.
26849 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26850 * config/nvptx/nvptx.h (struct machine_function): Add
26851 bcast_partition and sync_bar members.
26852
26853 2019-01-07 Tom de Vries <tdevries@suse.de>
26854
26855 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26856 (nvptx_apply_dim_limits): New function.
26857 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26858 PTX_WARP_SIZE.
26859
26860 2019-01-07 Tom de Vries <tdevries@suse.de>
26861
26862 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26863 as late as possible.
26864
26865 2019-01-07 Tom de Vries <tdevries@suse.de>
26866
26867 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26868 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26869 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26870 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26871 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26872
26873 2019-01-07 Tom de Vries <tdevries@suse.de>
26874
26875 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26876
26877 2019-01-07 Tom de Vries <tdevries@suse.de>
26878
26879 * omp-offload.c (oacc_get_min_dim): New function.
26880 * omp-offload.h (oacc_get_min_dim): Declare.
26881
26882 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26883
26884 PR target/88521
26885 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26886 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26887
26888 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26889
26890 PR tree-opt/86020
26891 Revert:
26892 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26893
26894 * ipa-inline.c (edge_badness): Use inlined_time instead of
26895 inline_summaries->get.
26896
26897 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26898
26899 * opts.c (enable_fdo_optimizations): Enable
26900 version-loops-for-strides, loop-interchange, unrol-and-jam
26901 and tree-loop-distribution.
26902 * invoke.texi: Document newly enabled options.
26903
26904 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26905
26906 * doc/invoke.texi (max-inline-insns-small): New parameters.
26907 * ipa-inline.c (want_early_inline_function_p): simplify.
26908 (want_inline_small_function_p): Fix pasto from previous patch;
26909 use max-inline-insns-small bound.
26910 * params.def (max-inline-insns-small): New param.
26911 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26912 variables correctly.
26913
26914 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26915
26916 * doc/invoke.texi: Document max-inline-insns-size,
26917 uninlined-function-insns, uninlined-function-time,
26918 uninlined-thunk-insns and uninlined-thunk-time.
26919 * params.def: Add max-inline-insns-size,
26920 uninlined-function-insns, uninlined-function-time,
26921 uninlined-thunk-insns and uninlined-thunk-time.
26922 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26923 new parameters.
26924 * ipa-inline.c (can_inline_edge_by_limits_p,
26925 want_inline_small_function_p): Use new parameters.
26926
26927 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26928
26929 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26930
26931 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26932
26933 PR middle-end/82564
26934 PR target/88620
26935 * expr.c (expand_assignment): For calls returning VLA structures
26936 if to_rtx is not a MEM, force it into a stack temporary.
26937
26938 PR debug/88635
26939 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26940 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26941 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26942 subexpressions of both operands.
26943 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26944 subrtxes are CONSTANT_P.
26945 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26946 2018-11-09 changes.
26947
26948 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26949
26950 * params.def (hot-bb-count-ws-permille): Set to 990.
26951
26952 2019-01-04 Martin Sebor <msebor@redhat.com>
26953
26954 PR c/88546
26955 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26956 leaf.
26957
26958 2019-01-04 Martin Sebor <msebor@redhat.com>
26959
26960 PR c/88363
26961 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26962
26963 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26964
26965 * gdbinit.in: Turn off pagination for the skip commands, restore
26966 it to previous state afterwards.
26967
26968 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26969
26970 PR target/88594
26971 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26972 of GET_MODE (opN) as modes of the libcall arguments.
26973
26974 2019-01-04 Jan Beulich <jbeulich@suse.com>
26975
26976 * config/i386/sse.md
26977 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26978 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26979 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26980 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26981 avx512f_vmcmp<mode>3<round_saeonly_name>,
26982 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26983 avx512f_maskcmp<mode>3,
26984 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26985 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26986 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26987 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26988 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26989 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26990 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26991 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26992 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26993 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26994 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26995 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26996 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26997 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26998 avx512cd_maskb_vec_dup<mode>,
26999 avx512cd_maskw_vec_dup<mode>,
27000 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27001 avx512dq_vmfpclass<mode>,
27002 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27003 instead of =Yk.
27004
27005 2019-01-03 Martin Sebor <msebor@redhat.com>
27006
27007 PR tree-optimization/88659
27008 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27009
27010 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27011
27012 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27013 unaligned vsx and avoid lxvd2x/stxvd2x.
27014 (gen_lvx_v4si_move): New function.
27015
27016 2019-01-03 Tom de Vries <tdevries@suse.de>
27017
27018 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27019 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27020 function.
27021 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27022
27023 2019-01-03 Tom de Vries <tdevries@suse.de>
27024
27025 * config/nvptx/nvptx.c (struct offload_attrs): New.
27026 (populate_offload_attrs): New function. Factor mask extraction out of
27027 nvptx_reorg. Add extraction of dimensions.
27028 (nvptx_reorg): Use populate_offload_attrs.
27029
27030 2019-01-03 Tom de Vries <tdevries@suse.de>
27031
27032 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27033 cases for oacc_min_dims_p and routine_p. Add asserts for
27034 oacc_default_dims_p and offload_region_p.
27035
27036 2019-01-03 Tom de Vries <tdevries@suse.de>
27037
27038 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27039 factored out of ...
27040 (nvptx_goacc_validate_dims): ... here.
27041
27042 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27043
27044 PR tree-optimization/85574
27045 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27046 structure.
27047 (struct ssa_equip_hash_traits): Declare.
27048 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27049
27050 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27051
27052 PR debug/88644
27053 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27054 change it to qualified_type.
27055
27056 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27057
27058 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27059 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27060
27061 2019-01-02 Martin Sebor <msebor@redhat.com>
27062 Jeff Law <law@redhat.com>
27063
27064 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27065 (get_range_strlen_tree): Update appropriately.
27066 (get_range_strlen)
27067 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27068
27069 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27070 rather than set_range_info.
27071 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27072 maybe_set_strlen_range. Handle potentially boundary crossing
27073 cases more conservatively.
27074 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27075 Call set_strlen_range.
27076 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27077
27078 PR middle-end/88663
27079 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27080 need the flexp argument.
27081 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27082 from calls to get_range_strlen. Update comments. Just update
27083 VAL for an unterminated const char array and let the reset of the
27084 code handle it normally. No longer try to set *flexp. Adjust
27085 return value.
27086 (get_range_strlen): Update for the new get_range_strlen API.
27087 (get_maxval_strlen): Similarly.
27088 (gimple_fold_builtin_strlen): Handle update meaning of return value
27089 from get_range_strlen.
27090 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27091 get_range_strlen API.
27092
27093 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27094
27095 PR lto/88130
27096 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27097 false at WPA time when body was removed.
27098
27099 2019-01-02 Martin Liska <mliska@suse.cz>
27100
27101 PR tree-optimization/88650
27102 * predict.c (set_even_probabilities): Calculate probability
27103 remainer only when really used.
27104
27105 2019-01-02 Richard Biener <rguenther@suse.de>
27106
27107 PR middle-end/88651
27108 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27109 widest_ints when mangling max_stmt_execution results.
27110
27111 2019-01-02 Richard Biener <rguenther@suse.de>
27112
27113 PR tree-optimization/88621
27114 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27115 bitfields when canoncalizing.
27116
27117 2019-01-02 Richard Biener <rguenther@suse.de>
27118
27119 PR target/87545
27120 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27121 cost of cheap SSE instruction.
27122
27123 2019-01-02 Richard Biener <rguenther@suse.de>
27124
27125 PR ipa/85574
27126 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27127 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27128 function.
27129 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27130 set after UIDs before splitting them.
27131
27132 2019-01-01 Martin Sebor <msebor@redhat.com>
27133 Jeff Law <law@redhat.com>
27134
27135 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27136 length is optimistic. If it is, then arrange to compute the
27137 conservative length as well.
27138
27139 * gimple-fold.h (get_range_strlen): Update prototype.
27140 * builtins.c (check_access): Update call to get_range_strlen to use
27141 c_strlen_data pointer. Change various variable accesses to instead
27142 pull data from the c_strlen_data structure.
27143 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27144 * calls.c (maybe_warn_nonstring_arg): Likewise.
27145 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27146 minimum length if maximum lengh is unknown.
27147 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27148 that used c_strlen, it's no longer needed. Restructure slightly.
27149 (format_string): Set unlikely range appropriately.
27150 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27151 formatting issues.
27152 (get_range_strlen): Accept c_strlen_data pointer for external
27153 call sites as well. Pass through to call to internal get_range_strlen.
27154 Adjust minlen, maxlen and maxbound as needed.
27155 (get_maxval_strlen): Update comments.
27156 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27157 to use c_strlen_data pointer. Change variable accesses to instead
27158 use c_strlen_data data members.
27159
27160 * gimple-fold.c (get_range_strlen): Update prototype.
27161 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27162 local variables. Use pdata to return information to caller.
27163 Update calls to get_range_strlen. Update pdata->maxbound.
27164 (get_range_strlen -- static version): Similarly.
27165 (get_range_strlen -- extern version): Update for internal
27166 get_range_strlen API change. Convert to external data format.
27167 (get_maxval_strlen): Similarly.
27168
27169 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27170
27171 * coverage.c (get_coverage_counts): Use current_function_decl.
27172 * profile.c (read_thunk_profile): New function.
27173 (branch_prob): Add THUNK parameter.
27174 * tree-profile.c (tree_profiling): Handle thunks.
27175 * value-prof.c (init_node_map): Handle thunks.
27176 * value-prof.h (branch_prob): Upate prototype.
27177 (read_thunk_profile): Declare.
27178
27179 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27180
27181 Update copyright years.
27182
27183 * gcc.c (process_command): Update copyright notice dates.
27184 * gcov-dump.c (print_version): Ditto.
27185 * gcov.c (print_version): Ditto.
27186 * gcov-tool.c (print_version): Ditto.
27187 * gengtype.c (create_file): Ditto.
27188 * doc/cpp.texi: Bump @copying's copyright year.
27189 * doc/cppinternals.texi: Ditto.
27190 * doc/gcc.texi: Ditto.
27191 * doc/gccint.texi: Ditto.
27192 * doc/gcov.texi: Ditto.
27193 * doc/install.texi: Ditto.
27194 * doc/invoke.texi: Ditto.
27195 \f
27196 Copyright (C) 2019 Free Software Foundation, Inc.
27197
27198 Copying and distribution of this file, with or without modification,
27199 are permitted in any medium without royalty provided the copyright
27200 notice and this notice are preserved.