]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[arm] Improve handling of DImode comparisions against constants.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
4 operand 2.
5 (cstoredi4): Similarly, but for operand 3.
6 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7 canonicalization of unsigned compares with a constant on Arm.
8 Prefer using const+1 and adjusting the comparison over swapping the
9 operands whenever the original constant was not valid.
10 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
11 register here.
12 (arm_validize_comparison): Do not force invalid DImode operands to
13 registers here.
14
15 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
16
17 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
18 return CC_Zmode if comparing against a constant where one word is
19 zero.
20 (arm_gen_compare_reg): Split DImode handling to ...
21 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
22 against simple constants.
23 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
24
25 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
26
27 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
28 (rsbsi3_carryin_shift_alt): Likewise.
29
30 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
31
32 * config/arm/arm.md (negscc_borrow): New pattern.
33 (mov_negscc): Don't split if the insn would match negscc_borrow.
34 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
35 (thumb2_mov_negscc_strict_it): Likewise.
36
37 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
38
39 * config/arm/arm.c (arm_insn_cost): New function.
40 (TARGET_INSN_COST): Override default definition.
41
42 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
43
44 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
45 borrow operations.
46
47 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
48
49 * config/arm/arm.c (strip_carry_operation): New function.
50 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
51 for SImode.
52
53 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
54
55 * config/arm/predicates.md (arm_carry_operation): New special
56 predicate.
57 * config/arm/iterators.md (LTUGEU): Delete iterator.
58 (cnb): Delete code attribute.
59 (optab): Delete ltu and geu elements.
60 * config/arm/arm.md (addsi3_carryin): Renamed from
61 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
62 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
63 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
64 (addsi3_carryin_clobercc): Similarly.
65 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
66 Thumb2 state.
67
68 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
69
70 * config/arm/arm.md (arm_subdi3): Delete insn.
71 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
72
73 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
74
75 * config/arm/arm-modes.def (CC_RSB): New CC mode.
76 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
77 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
78 return CC_RSBmode.
79 (maybe_get_arm_condition_code): Handle CC_RSBmode.
80 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
81 expand.
82 (subdi3): Rewrite to early-expand the sub-operations.
83 (rsb_im_compare): New pattern.
84 (negdi2): Delete.
85 (negdi2_insn): Delete.
86 (arm_negsi2): Correct type attribute to alu_imm.
87 (negsi2_0compare): New insn pattern.
88 (negsi2_carryin): New insn pattern.
89
90 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
91
92 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
93 operand 2.
94
95 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
96
97 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
98 to match canonical form.
99
100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
101
102 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
103 (extend<mode>di2): Likewise.
104
105 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
106
107 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
108 * config/arm/arm.c (arm_decompose_di_binop): New function.
109 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
110 If not generating Thumb-1 code, decompose the operation into 32-bit
111 pieces.
112 * add0si_carryin_<optab>: New pattern.
113
114 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
115
116 * arm.md (adddi3): Only accept register operands.
117 (arm_adddi3): Convert to simple insn with no split. Do not accept
118 constants.
119 (adddi_sesidi_di): Delete patern.
120 (adddi_zesidi_di): Likewise.
121 (uaddv<mode>4): Use LTU as condition for branch.
122 (adddi3_compareV): Convert to simple insn with no split.
123 (addsi3_compareV_upper): Delete pattern.
124 (adddi3_compareC): Convert to simple insn with no split. Correct
125 flags setting expression.
126 (addsi3_compareC_upper): Delete pattern.
127 (addsi3_compareC): Correct flags setting expression.
128 (subdi3_compare1): Convert to simple insn with no split.
129 (subsi3_carryin_compare): Delete pattern.
130 (arm_subdi3): Convert to simple insn with no split.
131 (subdi_zesidi): Delete pattern.
132 (subdi_di_sesidi): Delete pattern.
133 (subdi_zesidi_di): Delete pattern.
134 (subdi_sesidi_di): Delete pattern.
135 (subdi_zesidi_zesidi): Delete pattern.
136 (negvdi3): Use s_register_operand.
137 (negdi2_compare): Convert to simple insn with no split.
138 (negdi2_insn): Likewise.
139 (negsi2_carryin_compare): Delete pattern.
140 (negdi_zero_extendsidi): Delete pattern.
141 (arm_cmpdi_insn): Convert to simple insn with no split.
142 (negdi2): Don't call gen_negdi2_neon.
143 * config/arm/neon.md (adddi3_neon): Delete pattern.
144 (subdi3_neon): Delete pattern.
145 (negdi2_neon): Delete pattern.
146 (splits for negdi2_neon): Delete splits.
147
148 2019-10-18 Jakub Jelinek <jakub@redhat.com>
149
150 PR middle-end/92153
151 * ggc-page.c (release_pages): Read g->alloc_size before free rather
152 than after it.
153
154 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
155
156 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
157 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
158 new multilib variants and new mappings.
159
160 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
161
162 PR target/86040
163 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
164
165 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
166 Richard Sandiford <richard.sandiford@arm.com>
167
168 PR target/86753
169 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
170 and define hashmap traits for it.
171 (loop_vec_info::scalar_cond_masked_set): New member.
172 (vect_record_loop_mask): Adjust prototype.
173 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
174 Implement method.
175 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
176 vect_record_loop_mask.
177 (vectorizable_live_operation): Likewise.
178 (vect_record_loop_mask): New param scalar_mask. Add entry
179 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
180 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
181 Pass it as last arg to vect_record_loop_mask.
182 (vectorizable_call): Pass scalar_mask as last arg to
183 vect_record_loop_mask.
184 (vectorizable_store): Likewise.
185 (vectorizable_load): Likewise.
186 (vectorizable_condition): Check if another part of vectorized code
187 applies loop_mask to condition or to it's inverse, and if yes,
188 apply loop_mask to result of vector comparison.
189
190 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
191
192 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
193
194 2019-10-18 Jakub Jelinek <jakub@redhat.com>
195
196 PR tree-optimization/92056
197 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
198 before calling compute_builtin_object_size.
199
200 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
201
202 PR target/65342
203 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
204 (movdi_low_st): Delete.
205 * config/rs6000/rs6000.c
206 (darwin_rs6000_legitimate_lo_sum_const_p): New.
207 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
208 * config/rs6000/rs6000.md (movsi_low): Delete.
209
210 2019-10-17 Jason Merrill <jason@redhat.com>
211
212 * gimplify.h (get_initialized_tmp_var): Add default argument to
213 post_p.
214 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
215 NULL post_p argument.
216 * targhooks (std_gimplify_va_arg_expr): Likewise.
217
218 2019-10-17 Richard Biener <rguenther@suse.de>
219
220 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
221 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
222 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
223 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
224 * tree-vect-loop.c (vect_is_simple_reduction): Set
225 STMT_VINFO_REDUC_CODE.
226 (vectorizable_reduction): Remove dead and redundant code, use
227 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
228
229 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
230
231 Fix breakage introduced by r276985.
232
233 * config/avr/avr.c (avr_option_override): Remove set of
234 PARAM_ALLOW_STORE_DATA_RACES.
235 * common/config/avr/avr-common.c (avr_option_optimization_table)
236 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
237
238 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
239
240 * config/i386/i386.h (processor_costs): Add clear_ratio.
241 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
242 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
243 of 6 and move_ratio in all cost models.
244
245 2019-10-17 Richard Biener <rguenther@suse.de>
246
247 * tree-vect-loop.c (check_reduction_path): Compute reduction
248 operation here.
249 (vect_is_simple_reduction): Remove special-case of single-stmt
250 reduction path detection.
251
252 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
253
254 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
255
256 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
257
258 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
259 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
260 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
261 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
262 New combine patterns.
263 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
264 above.
265 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
266
267 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
268
269 * tree-vrp.c (value_range_base::dump): Display +INF for both
270 pointers and integers when appropriate.
271
272 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
273
274 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
275 when to use versioning threshold.
276
277 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
278
279 * tree-vect-loop.c (determine_peel_for_niter): New function contained
280 outlined code from ...
281 (vect_analyze_loop_2): ... here.
282
283 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
284
285 * tree-vect-loop.c (vect_transform_loop): Move code from here...
286 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
287 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
288
289 2019-10-17 Richard Biener <rguenther@suse.de>
290
291 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
292 (vect_is_simple_reduction): Move all validity checks ...
293 (vectorizable_reduction): ... here. Compute whether we
294 need a fold-left reduction here.
295 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
296 both overloads, check needs_fold_left_reduction_p directly.
297 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
298
299 2019-10-17 Richard Biener <rguenther@suse.de>
300
301 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
302 TARGET_MEM_REF creation.
303
304 2019-10-17 Richard Biener <rguenther@suse.de>
305
306 PR tree-optimization/92129
307 * tree-vect-loop.c (vectorizable_reduction): Also fail
308 on GIMPLE_SINGLE_RHS.
309
310 2019-10-17 Jakub Jelinek <jakub@redhat.com>
311
312 PR tree-optimization/92056
313 * tree-object-size.c (cond_expr_object_size): Return early if then_
314 processing resulted in unknown size.
315
316 PR tree-optimization/92115
317 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
318 temporary if it could trap.
319
320 2019-10-17 Richard Biener <rguenther@suse.de>
321
322 PR debug/91887
323 * dwarf2out.c (gen_formal_parameter_die): Also try to match
324 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
325
326 2019-10-16 Jakub Jelinek <jakub@redhat.com>
327
328 * tree-ssa-strlen.c (maybe_invalidate): Use
329 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
330
331 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
332 Jim Wilson <jimw@sifive.com>
333
334 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
335 regs to SIBCALL_REGS.
336 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
337 passing regs to SIBCALL_REGS.
338
339 2019-10-16 Martin Sebor <msebor@redhat.com>
340
341 PR tree-optimization/83821
342 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
343 the length of a string when available.
344 (handle_builtin_memset) Add argument.
345 (handle_store, strlen_check_and_optimize_call): Same.
346 (check_and_optimize_stmt): Same. Pass it to callees.
347
348 2019-10-16 Martin Sebor <msebor@redhat.com>
349
350 PR tree-optimization/91996
351 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
352 information.
353 (compare_nonzero_chars): Add an overload.
354 (count_nonzero_bytes): Add an argument. Call overload above.
355 Handle non-constant lengths in some range.
356 (handle_store): Add an argument.
357 (check_and_optimize_stmt): Pass an argument to handle_store.
358
359 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
360
361 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
362
363 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
364
365 * config/mips/mips.c (mips_expand_builtin_insn): Force the
366 operands which correspond to the same input-output register to
367 have the same pseudo assigned to them.
368
369 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
370
371 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
372
373 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
374
375 * config/aarch64/aarch64.c (aarch64_classify_symbol):
376 Apply reasonable limit to symbol offsets.
377
378 2019-10-16 Richard Biener <rguenther@suse.de>
379
380 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
381 (vect_is_simple_reduction): Delay checking to
382 vectorizable_reduction and relax the checking.
383 (vectorizable_reduction): Check we have a simple use. Check
384 for bogus condition reductions.
385 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
386 are looking at the last stmt in a pattern sequence when
387 filling in backedge PHI values.
388
389 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
390 Jiufu Guo <guojiufu@linux.ibm.com>
391
392 PR target/70010
393 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
394 the callee explicitly disables some isa_flags the caller is using.
395
396 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
397
398 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
399
400 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
401
402 * genmodes.c (mode_data::order): New field.
403 (blank_mode): Update accordingly.
404 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
405 (make_vector_modes): Likewise.
406 (VECTOR_MODES): Update use accordingly.
407 (cmp_modes): Sort by the new order field ahead of sorting by size.
408 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
409 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
410 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
411 (aarch64_classify_vector_mode): Handle the new partial modes.
412 (aarch64_vl_bytes): New function.
413 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
414 when counting the number of registers in an SVE mode.
415 (aarch64_class_max_nregs): Likewise.
416 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
417 in registers yet.
418 (aarch64_classify_address): Treat partial vectors analogously
419 to full vectors.
420 (aarch64_print_address_internal): Consolidate the printing of
421 MUL VL addresses, using aarch64_vl_bytes as the number of
422 bytes represented by "VL".
423 (aarch64_vector_mode_supported_p): Reject partial vector modes.
424
425 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
426
427 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
428 rather than known_lt when choosing frame layouts.
429
430 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
431
432 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
433 that all the adjustments add up to the full frame size.
434 Use crtl->outgoing_args_size directly as the final adjustment
435 where appropriate.
436
437 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
438
439 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
440 "frame" reference instead of always referring directly to
441 "cfun->machine->frame".
442
443 2019-10-16 Richard Biener <rguenther@suse.de>
444
445 PR tree-optimization/92119
446 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
447 against missing bswap lhs.
448
449 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
450
451 PR middle-end/92033
452 * poly-int.h (constant_lower_bound_with_limit): New function.
453 (constant_upper_bound_with_limit): Likewise.
454 * doc/poly-int.texi: Document them.
455 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
456 into the worst-case INTEGER_CST bounds.
457
458 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
459
460 PR ipa/91088
461 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
462 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
463 * ipa-predicat.h (struct expr_eval_op): New struct.
464 (expr_eval_ops): New typedef.
465 (struct condition): Add type and param_ops fields, remove size field.
466 (add_condition): Replace size parameter with type parameter, add
467 param_ops parameter.
468 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
469 (predicate::add_clause): Add comparisons on type and param_ops.
470 (dump_condition): Add debug dump for param_ops.
471 (remap_after_inlining): Adjust call arguments to add_condition.
472 (add_condition): Replace size parameter with type parameter, add
473 param_ops parameter. Unshare constant value used in conditions.
474 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
475 parameter expressions using param_ops.
476 (decompose_param_expr): New function.
477 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
478 to replace call to unmodified_parm_or_parm_agg_item.
479 (set_switch_stmt_execution_predicate): Likewise.
480 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
481 with type.
482 (inline_read_section): Read param_ops from summary stream.
483 (ipa_fn_summary_write): Write param_ops to summary stream.
484
485 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
486
487 PR rtl-optimization/92107
488 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
489 expression written.
490
491 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
492
493 * config/darwin.c: Update description of fix and continue.
494
495 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
496
497 * config/darwin.c (darwin_binds_local_p): Update to call
498 default_binds_local_p_3 () directly. amend comments.
499
500 2019-10-15 Richard Biener <rguenther@suse.de>
501
502 * lto-streamer-out.c (lto_variably_modified_type_p): New.
503 (tree_is_indexable): Use it.
504 * tree-streamer-out.c (pack_ts_type_common_value_fields):
505 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
506 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
507
508 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
509
510 * config/msp430/msp430.md (zero_extendqipsi2): New.
511 (zero_extendqisi2): Optimize case where src register and base dst
512 register are the same.
513 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
514 (zero_extendpsisi2): Optimize r->m case.
515 Add unnamed insn patterns to catch insns combine searches for when
516 optimizing pointer manipulation.
517
518 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
519
520 * config/msp430/msp430.md: Group zero_extend* insns together.
521
522 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
523
524 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
525 constraint.
526 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
527 POST_INC.
528 (msp430_subreg): Likewise.
529 (msp430_split_addsi): Likewise.
530 (msp430_print_operand_addr): Likewise.
531 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
532 (USE_STORE_POST_INCREMENT): Define.
533 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
534 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
535 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
536 (msp430_general_dst_operand): New.
537 (msp430_general_dst_nonv_operand): New.
538 (msp430_nonsubreg_operand): Remove.
539 (msp430_nonsubreg_dst_operand): New.
540 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
541 of defunct msp430_nonsubreg_operand.
542 (msp430_nonsubregnonpostinc_or_imm_operand): New.
543
544 2019-10-15 Richard Biener <rguenther@suse.de>
545
546 PR tree-optimization/91929
547 * tree-ssa-pre.c (pre_expr_d::loc): New member.
548 (get_or_alloc_expr_for_name): Initialize it.
549 (get_or_alloc_expr_for_constant): Likewise.
550 (phi_translate_1): Copy it.
551 (create_expression_by_pieces): Use the original location
552 of the expression for the inserted stmt.
553 (compute_avail): Record the location of the stmt for the
554 expressions created.
555
556 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
557
558 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
559 before using tree_to_uhwi.
560
561 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
562
563 * config/s390/s390.md: Run %a0:DI splitters only after reload.
564
565 2019-10-15 Richard Biener <rguenther@suse.de>
566
567 PR tree-optimization/92094
568 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
569 do not adjust the reduction definition def type.
570 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
571 defines the latch argument of the PHI.
572
573 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
574
575 PR target/92035
576 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
577 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
578 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
579 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
580 _mm_maskz_roundscale_round_sd): New intrinsics.
581 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
582 __builtin_ia32_rndscales?_mask_round builtins instead of
583 __builtin_ia32_rndscales?_round.
584 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
585 __builtin_ia32_rndscalesd_round): Remove.
586 (__builtin_ia32_rndscaless_mask_round,
587 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
588 * config/i386/sse.md
589 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
590 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
591 ... this, adjust and add subst atrributes to make it maskable.
592
593 2019-10-15 Richard Biener <rguenther@suse.de>
594
595 PR middle-end/92046
596 * common.opt (fallow-store-data-races): New.
597 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
598 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
599 * doc/invoke.texi (fallow-store-data-races): Document.
600 (--param allow-store-data-races): Remove docs.
601 * opts.c (default_options_table): Enable -fallow-store-data-races
602 at -Ofast.
603 (default_options_optimization): Do not enable --param
604 allow-store-data-races at -Ofast.
605 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
606 instead of PARAM_ALLOW_STORE_DATA_RACES.
607 * tree-ssa-loop-im.c (execute_sm): Likewise.
608
609 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
610
611 PR tree-optimization/92085
612 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
613 instead of calling it unconditionally after
614 delete_dead_or_redundant_assignment and fix indentation.
615
616 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
617
618 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
619 TARGET_VFP_DOUBLE.
620 (*fmsub<SDF:mode>4): Likewise.
621 *fnmsub<SDF:mode>4): Likewise.
622 (*fnmadd<SDF:mode>4): Likewise.
623
624 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
625
626 * doc/tree-ssa.texi: Update renamed macro name.
627
628 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
629
630 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
631 vector constants.
632
633 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
634
635 * config/darwin.c: Use unsigned ints for the picbase label
636 counters, initialise the vars explicitly.
637 (update_pic_label_number_if_needed): Move a variable declaration
638 to where it's needed.
639 (machopic_output_function_base_name): Use a more strict checking
640 assert, and and unsigned int for the picbase label counter.
641 (machopic_get_function_picbase): Likewise.
642
643 2019-10-14 Richard Biener <rguenther@suse.de>
644
645 PR middle-end/92046
646 * dse.c (scan_insn): Use param max_active_local_stores.
647 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
648 based on optimization level.
649 * loop-invariant.c (move_loop_invariants): Adjust
650 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
651 * opts.c (default_options_optimization): Do not adjust
652 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
653 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
654
655 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
656
657 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
658
659 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
660
661 * config/arm/arm.c (arm_option_override): Don't override sched
662 pressure algorithm.
663
664 2019-10-14 Richard Biener <rguenther@suse.de>
665
666 PR tree-optimization/92069
667 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
668 cycles do not set vect_nested_cycle on the latch definition.
669
670 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
671
672 * function-abi.h (expr_callee_abi): Declare.
673 * function-abi.cc (expr_callee_abi): New function.
674
675 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
676
677 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
678 into [1,MAX].
679 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
680 non-zero being represented as [1,MAX].
681
682 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
683
684 * tree-sra.c (dump_access): Add missing braces.
685
686 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
687
688 * config/darwin.c (machopic_indirection_name): Rework the
689 function to emit linker-visible symbols only for indirections
690 in the data section. Clean up the code and update comments.
691
692 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
693
694 * config/darwin.c (machopic_indirect_data_reference): Remove
695 redundant code.
696
697 2019-10-13 Nathan Sidwell <nathan@acm.org>
698
699 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
700
701 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
702
703 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
704 c99_runtime.
705
706 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
707
708 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
709 so non-virutal are before virutals.
710 (output_function): Avoid body modifications.
711
712 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
713
714 * config/pa/pa.c (pa_output_call): Load descriptor address to register
715 %r22. Load function address before global pointer.
716 (pa_attr_length_indirect_call): Adjust length of inline versions of
717 $$dyncall.
718 (pa_output_indirect_call): Remove fast inline version of $$dyncall
719 before normal cases. Update inline $$dyncall sequences to preserve
720 function descriptor address in register %r22.
721 (TRAMPOLINE_CODE_SIZE): Adjust.
722 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
723 register %r22 contains trampoline address.
724 (pa_trampoline_init): Adjust offsets.
725 (pa_trampoline_adjust_address): Likewise.
726 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
727
728 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
729
730 PR target/67183
731 * config/darwin.c (machopic_indirection): New field to flag
732 non-lazy-symbol-pointers in the data section.
733 (machopic_indirection_name): Compute if an indirection should
734 appear in the data section.
735 (machopic_output_data_section_indirection): New callback split
736 from machopic_output_indirection.
737 (machopic_output_stub_indirection): Likewise.
738 (machopic_output_indirection): Retain the code for non-lazy
739 symbol pointers in their regular section.
740 (machopic_finish): Use the new callbacks to order the indirection
741 output.
742
743 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
744
745 * config/darwin-protos.h (machopic_finish): Delete.
746 * config/darwin.c (machopic_finish): Make static.
747
748 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
749
750 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
751 sections when building kernel extension code.
752
753 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
754
755 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
756 later standard."
757
758 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
759
760 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
761 from warning.
762
763 2019-10-12 Jakub Jelinek <jakub@redhat.com>
764
765 PR middle-end/92063
766 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
767 <case VEC_COND_EXPR>: Return false with *handled = false.
768 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
769 recursing on the first operand.
770 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
771 instead of tree_could_trap_p.
772 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
773
774 2019-10-11 Jim Wilson <jimw@sifive.com>
775
776 PR rtl-optimization/91860
777 * combine.c (subst): If new_rtx is a constant, also check for
778 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
779
780 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
781
782 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
783 INTVAL when calling store_bit_field.
784
785 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
786
787 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
788 size.
789
790 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
791
792 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
793 vectorizable_live_operation.
794 (vectorizable_live_operation): Adjust parameters.
795 * tree-vect-stmts.c (vect_init_vector,
796 vect_gen_widened_results_half): Fix typo in function comment.
797 (can_vectorize_live_stmts): Adjust function comment.
798 Adjust parameters. Adjust call to vectorizable_live_operation.
799 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
800 (vect_transform_stmt): Adjust function comment. Adjust call to
801 can_vectorize_live_stmts.
802 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
803
804 2019-10-11 Richard Biener <rguenther@suse.de>
805
806 PR tree-optimization/90883
807 PR tree-optimization/91091
808 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
809 alias-sets both for recording VN table entries and continuing
810 walking after translating through copies. Handle same-sized
811 reads from SSA names by returning the plain SSA name.
812 (eliminate_dom_walker::eliminate_stmt): Properly handle
813 non-size precision stores in redundant store elimination.
814
815 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
816
817 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
818 (ggc_collect): Dump later to not interfere with release_page dump.
819 (ggc_trim): New function.
820 * ggc-none.c (ggc_trim): New.
821 * ggc.h (ggc_trim): Declare.
822
823 2019-10-11 Richard Biener <rguenther@suse.de>
824
825 PR tree-optimization/92066
826 PR tree-optimization/92046
827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
828 Fix bogus cost model check.
829
830 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
831
832 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
833 (LANG_HOOKS_DECLS): Add it.
834 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
835 update comment for omp_is_optional_argument.
836 * omp-general.c (omp_is_allocatable_or_ptr): New.
837 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
838 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
839 Fortran's optional arguments and allocatable/pointer scalars
840 with use_device_addr.
841
842 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
843
844 PR target/77918
845 * config/s390/2827.md: Add new opcodes.
846 * config/s390/2964.md: Likewise.
847 * config/s390/3906.md: Likewise.
848 * config/s390/8561.md: Likewise.
849 * config/s390/s390-builtins.def (s390_vfchesb): Use
850 the new vec_cmpgev4sf_quiet_nocc.
851 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
852 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
853 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
854 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
855 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
856 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
857 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
858 * config/s390/s390-modes.def (CCSFPS): New mode.
859 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
860 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
861 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
862 (s390_expand_vec_compare): Use non-signaling patterns where
863 necessary.
864 (s390_reverse_condition): Support CCSFPS.
865 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
866 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
867 (asm_fcmp_op): Likewise.
868 (*smaxv2df3_vx): Use pattern for quiet comparison.
869 (*sminv2df3_vx): Likewise.
870 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
871 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
872 (vec_cmpgt<mode>_quiet_nocc): Likewise.
873 (vec_cmplt<mode>_quiet_nocc): New expander.
874 (vec_cmpge<mode>_quiet_nocc): New pattern.
875 (vec_cmple<mode>_quiet_nocc): New expander.
876 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
877 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
878 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
879 (*vec_cmpge<mode>_signaling_nocc): Likewise.
880 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
881 (vec_cmpungt<mode>): New expander.
882 (vec_cmpunge<mode>): Likewise.
883 (vec_cmpuneq<mode>): Use quiet patterns.
884 (vec_cmpltgt<mode>): Allow only on z14+.
885 (vec_cmpordered<mode>): Use quiet patterns.
886 (vec_cmpunordered<mode>): Likewise.
887 (VEC_CMP_EXPAND): Add ungt and unge.
888
889 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
890
891 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
892 parameter.
893 * lto-streamer-out.c: Include tree-dfa.h.
894 (output_cfg): Do not use cfun.
895 (lto_prepare_function_for_streaming): New.
896 (output_function): Do not push cfun; do not initialize loop optimizer.
897 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
898 * passes.c (ipa_write_summaries): Use it.
899 (ipa_write_optimization_summaries): Do not modify bodies.
900 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
901 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
902 * tree-ssa-dse.c (pass_dse::execute): Update use of
903 renumber_gimple_stmt_uids.
904 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
905
906 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
907
908 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
909 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
910
911 2019-10-10 Joseph Myers <joseph@codesourcery.com>
912
913 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
914 macros.
915 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
916 Also define DFP macros for these conditions.
917 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
918 DEC128_SUBNORMAL_MIN): Do not define.
919 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
920 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
921
922 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
923 Sandra Loosemore <sandra@codesourcery.com>
924
925 PR middle-end/26241
926 * doc/lto.texi (IPA): Reference to the IPA passes.
927 * doc/passes.texi (Pass manager): Add node IPA passes and
928 description for each IPA pass.
929
930 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
931
932 * ipa-reference.c: Do not include splay-tree.h
933 (reference_vars_to_consider): Turn to hash map.
934 (get_static_name, ipa_init, analyze_function, propagate,
935 stream_out_bitmap, ipa_reference_write_optimization_summary,
936 ipa_reference_write_optimization_summary): Update.
937
938 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
939
940 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
941
942 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
943
944 * config/darwin.c: Lookup Objective C metadata and force indirection
945 for IVAR refs.
946
947 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
948
949 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
950 addresses.
951 (mem_operand_gpr): Add check for prefixed addresses.
952 (mem_operand_ds_form): Add check for prefixed addresses.
953 (rs6000_legitimate_offset_address_p): If we support prefixed
954 addresses, check for a 34-bit offset instead of 16-bit.
955 (rs6000_legitimate_address_p): Add check for prefixed addresses.
956 Do not allow load/store with update if the address is prefixed.
957 (rs6000_mode_dependent_address): If we support prefixed
958 addresses, check for a 34-bit offset instead of 16-bit.
959
960 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
961
962 PR target/77918
963 * config/s390/vector.md (vcond_comparison_operator): New
964 predicate.
965 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
966
967 2019-10-10 David Malcolm <dmalcolm@redhat.com>
968
969 PR 87488
970 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
971 -D.
972 * configure.ac (--with-documentation-root-url): New option.
973 * configure: Regenerate.
974 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
975 option URL, add it as a new string field of the diagnostic option.
976 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
977 (print_option_information): If get_option_url is non-NULL, call
978 it, and if the result is non-NULL, potentially emit an escape
979 sequence to markup the option text with the resulting URL.
980 * diagnostic.h (diagnostic_context::get_option_url): New callback.
981 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
982 example of JSON output.
983 * opts-diagnostic.h (get_option_url): New decl.
984 * opts.c (get_option_url): New function.
985 * toplev.c (general_init): Initialize the get_option_url callback.
986
987 2019-10-10 David Malcolm <dmalcolm@redhat.com>
988
989 PR 87488
990 * common.opt (fdiagnostics-urls=): New option.
991 (diagnostic-url.h): Add SourceInclude.
992 (diagnostic_url_rule): New enum.
993 * diagnostic-color.c: Include "diagnostic-url.h".
994 (diagnostic_urls_enabled_p): New function.
995 * diagnostic-url.h: New file.
996 * diagnostic.c: Include "diagnostic-url.h".
997 (diagnostic_urls_init): New function.
998 * diagnostic.h (diagnostic_urls_init): New decl.
999 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1000 -fdiagnostics-urls to the list.
1001 (-fdiagnostics-urls): New option.
1002 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1003 (driver::global_initializations): Call diagnostic_urls_init.
1004 * opts-global.c (init_options_once): Likewise.
1005 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1006 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1007 show_urls.
1008 (pp_begin_url): New function.
1009 (pp_end_url): New function.
1010 (selftest::test_urls): New selftest.
1011 (selftest::pretty_print_c_tests): Call it.
1012 * pretty-print.h (pretty_printer::show_urls): New field.
1013 (pp_begin_url): New decl.
1014 (pp_end_url): New decl.
1015
1016 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1017
1018 PR target/92022
1019 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1020
1021 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1022
1023 PR target/88630
1024 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1025 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1026 also for TARGET_FPU_SH4_300.
1027 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1028 TARGET_SH4_300.
1029 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1030 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1031 (*negsf2_i): Split into ...
1032 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1033 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1034 (**abssf2_i): Split into ...
1035 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1036 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1037 (*negdf2_i): Split into ...
1038 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1039 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1040 (**abssf2_i): Split into ...
1041 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1042
1043 2019-10-10 Richard Biener <rguenther@suse.de>
1044
1045 PR middle-end/92046
1046 * opts.c (finish_options): Do not influence global --params
1047 from options that are adjustable per function.
1048 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1049 Apply --param adjustment based on active cost-model.
1050 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1051 further store-sinking when vectorization or if-conversion
1052 are not enabled.
1053
1054 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1055
1056 PR middle-end/92037
1057 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1058 rather than ggc_alloc_cleared to alloc symbol table.
1059 * toplev.c (general_init): Likewise.
1060 * cgraph.h (symbol_table): Explicitly construct every field.
1061
1062 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1063
1064 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1065 (PF_Z15): ... this.
1066 * config.gcc: Add z15 as option for --with-arch and --with-tune
1067 configure switches.
1068 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1069 error reporting for unsupported builtins.
1070 * config/s390/s390-opts.h (enum processor_type): Rename
1071 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1072 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1073 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1074 Likewise.
1075 * config/s390/s390-builtins.def: Likewise.
1076 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1077 (s390_expand_builtin): Add missing check for unsupported builtins.
1078 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1079 (s390_rtx_costs): Likewise.
1080 (s390_get_sched_attrmask): Rename arch13 to z15.
1081 (s390_get_unit_mask): Likewise.
1082 (s390_is_fpd): Likewise.
1083 (s390_is_fxd): Likewise.
1084 * config/s390/s390.h (enum processor_flags): Likewise.
1085 * config/s390/s390.md: Likewise.
1086 * config/s390/vector.md: Likewise.
1087 * config/s390/vx-builtins.md: Likewise.
1088 * config/s390/s390.opt: Add z15 to processor_type value.
1089
1090 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1091
1092 PR target/91035
1093 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1094 prototype.
1095 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1096 ("split_stack_data", "split_stack_call")
1097 ("split_stack_call_<mode>", "split_stack_cond_call")
1098 ("split_stack_cond_call_<mode>"): Remove.
1099 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1100 insn definition.
1101 * config/s390/s390.c (s390_output_split_stack_data): New function.
1102 (s390_expand_split_stack_prologue): Use the merged expander.
1103
1104 2019-10-09 Martin Sebor <msebor@redhat.com>
1105
1106 PR tree-optimization/90879
1107 * builtins.c (check_access): Avoid using maxbound when null.
1108 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1109 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1110 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1111 conditional.
1112 (get_range_strlen): Overwrite initial maxbound when non-null.
1113 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1114 changes.
1115 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1116 (used_only_for_zero_equality): New function.
1117 (handle_builtin_memcmp): Call it.
1118 (determine_min_objsize): Return an integer instead of tree.
1119 (get_len_or_size, strxcmp_eqz_result): New functions.
1120 (maybe_warn_pointless_strcmp): New function.
1121 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1122 between a longer string and a smaller array.
1123 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1124
1125 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1126
1127 * config/darwin.c (darwin_override_options): Make the check for
1128 Objective-C ABI version more specific for 64bit code.
1129
1130 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1131
1132 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1133 indicate that the new symbol is an indirection.
1134 (machopic_indirect_call_target): Likewise.
1135 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1136 (MACHO_SYMBOL_INDIRECTION_P): New.
1137 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1138
1139 2019-10-08 Jason Merrill <jason@redhat.com>
1140
1141 * doc/invoke.texi: Document -fconcepts-ts.
1142
1143 2019-10-09 Richard Biener <rguenther@suse.de>
1144
1145 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1146 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1147
1148 2019-10-08 Richard Biener <rguenther@suse.de>
1149
1150 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1151 (_stmt_vec_info::force_single_cycle): Likewise.
1152 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1153 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1154 * tree-vect-loop.c (vectorizable_reduction): Set
1155 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1156 (vect_transform_reduction): Use them to remove redundant code.
1157 (vect_transform_cycle_phi): Likewise.
1158
1159 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1160
1161 PR tree-optimization/90836
1162 * gcc/match.pd (popcount): New pattern.
1163
1164 2019-10-08 Martin Sebor <msebor@redhat.com>
1165
1166 PR middle-end/92026
1167 PR middle-end/92014
1168 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1169 again once nbytes has been set. Set the access size when not yet set.
1170
1171 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1172
1173 * config/darwin.c (machopic_select_section): Remove dead code for
1174 old Objective-C section selection method, replace with unreachable.
1175
1176 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1177
1178 * config/darwin.c (machopic_indirect_data_reference): Check for
1179 required indirections before making direct access to defined
1180 values.
1181 (machopic_output_indirection): Place the indirected pointes for
1182 required indirections into the non-lazy symbol pointers section.
1183 (darwin_encode_section_info):
1184 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1185 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1186
1187 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1188
1189 PR target/91994
1190 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1191 instead of ALL_SSE_REG to check if function call preserves some
1192 256-bit SSE registers.
1193
1194 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1195
1196 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1197 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1198 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1199
1200 2019-10-08 Richard Biener <rguenther@suse.de>
1201
1202 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1203 (_stmt_vec_info::is_reduc_info): Add.
1204 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1205 (vectorizable_condition): Remove.
1206 (vectorizable_shift): Likewise.
1207 (vectorizable_reduction): Adjust.
1208 (info_for_reduction): New.
1209 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1210 (vect_analyze_scalar_cycles_1): ... here.
1211 (vect_analyze_loop_operations): Adjust.
1212 (needs_fold_left_reduction_p): Simplify for single caller.
1213 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1214 for nested cycles not part of double reductions.
1215 (vect_model_reduction_cost): Pass in the reduction type.
1216 (info_for_reduction): New function.
1217 (vect_create_epilog_for_reduction): Use it, access reduction
1218 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1219 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1220 (vectorize_fold_left_reduction): Remove pointless assert.
1221 (vectorizable_reduction): Analyze the full reduction when
1222 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1223 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1224 stmt code-generation to vectorizable_* in most cases. Verify
1225 code-generation only for cases handled by
1226 vect_transform_reductuon.
1227 (vect_transform_reduction): Use info_for_reduction to get at
1228 reduction meta. Simplify.
1229 (vect_transform_cycle_phi): Likewise.
1230 (vectorizable_live_operation): Likewise.
1231 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1232 at the PHI node for STMT_VINFO_REDUC_TYPE.
1233 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1234 longer necessary code.
1235 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1236 (vectorizable_condition): Likewise. Get at reduction related
1237 info via info_for_reduction.
1238 (vect_analyze_stmt): Adjust.
1239 (vect_transform_stmt): Likewise.
1240 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1241 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1242
1243 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1244
1245 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1246 -fno-fp-int-builtin-inexact default for C2X.
1247
1248 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1249 Richard Biener <rguenther@suse.de>
1250
1251 PR tree-optimization/91532
1252 * tree-if-conv.c: Include tree-ssa-dse.h.
1253 (ifcvt_local_dce): Change param from bb to loop,
1254 and call dse_classify_store.
1255 (tree_if_conversion): Pass loop instead of loop->header as arg
1256 to ifcvt_local_dce.
1257 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1258 (delete_dead_or_redundant_assignment): Remove static qualifier from
1259 declaration, and add prototype in tree-ssa-dse.h.
1260 (dse_store_status): Move to tree-ssa-dse.h.
1261 (dse_classify_store): Remove static qualifier and add new tree param
1262 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1263 * tree-ssa-dse.h: New header.
1264
1265 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1266
1267 * config/darwin.c (machopic_output_indirection): Don't put
1268 hidden symbol indirections into the .data section, use the
1269 non-lazy symbol pointers section as normal.
1270 (darwin_encode_section_info): Record if a symbol is hidden.
1271 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1272 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1273
1274 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1275
1276 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1277 predicates instead of accessing bits directly.
1278 (machopic_indirect_call_target): Likewise.
1279 (machopic_output_indirection): Likewise.
1280 (darwin_encode_section_info): Improve description. Use renamed
1281 symbol flags. Use predicate macros for variables and functions.
1282 * config/darwin.h:
1283 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1284 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1285 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1286 (MACHO_SYMBOL_VARIABLE_P): New.
1287 (MACHO_SYMBOL_DEFINED_P):New.
1288 (MACHO_SYMBOL_STATIC_P): New.
1289 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1290 (SYMBOL_FLAG_SUBT_DEP): New.
1291 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1292
1293 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1294
1295 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1296 (msp430_expand_epilogue): Likewise.
1297 * config/msp430/predicates.md: Likewise.
1298 * config/msp430/msp430.md: Likewise.
1299 Replace blocks of 8 spaces with tabs.
1300
1301 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1302
1303 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1304 * config/msp430/msp430.c (msp430_split_addsi): New.
1305 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1306 a block of C code for splitting addsi.
1307
1308 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1309
1310 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1311 ix86_expand_rounddf_32): Reorder functions.
1312 * config/i386/i386-protos.h: Update.
1313
1314 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1315
1316 * config.in: Regenerate.
1317 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1318 Add new "Yx" constraint.
1319 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1320 function.
1321 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1322 prototype.
1323 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1324 code/data region to be selected in the small memory model.
1325 (msp430_section_attr): Don't warn if the "section" and "lower"
1326 attributes are used together.
1327 (msp430_handle_generic_attribute): Likewise.
1328 (msp430_var_in_low_mem): New function.
1329 (TARGET_ENCODE_SECTION_INFO): Define.
1330 (msp430_encode_section_info): New function.
1331 (gen_prefix): Return early in the small memory model.
1332 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1333 ".lower" prefix if -m{code,data}-region=lower have been passed.
1334 (msp430_output_aligned_decl_common): Emit common symbols when
1335 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1336 set.
1337 (TARGET_ASM_FILE_END): Define.
1338 (msp430_file_end): New function.
1339 (msp430_do_not_relax_short_jumps): Allow relaxation when
1340 function will be in the lower region.
1341 (msp430_op_not_in_high_mem): New function.
1342 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1343 the 'X' operand selector.
1344 Clarify comment for 'x' operand selector.
1345 * config/msp430/msp430.h (LINK_SPEC): Propagate
1346 -m{code,data}-region to the linker via spec function
1347 msp430_propagate_region_opt.
1348 (msp430_propagate_region_opt): New prototype.
1349 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1350 (SYMBOL_FLAG_LOW_MEM): Define.
1351 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1352 selector.
1353 (zero_extendqihi2): Fix operand number used by "%X" selector.
1354 (zero_extendqisi2): Likewise.
1355 (zero_extendhisi2): Likewise.
1356 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1357 (movhi): Likewise.
1358 (addqi3): Likewise.
1359 (addhi3): Likewise.
1360 (addsi3): Likewise.
1361 (addhi3_cy): Likewise.
1362 (addchi4_cy): Likewise.
1363 (subqi3): Likewise.
1364 (subhi3): Likewise.
1365 (subsi3): Likewise.
1366 (bic<mode>3): Likewise.
1367 (and<mode>3): Likewise.
1368 (ior<mode>3): Likewise.
1369 (xor<mode>3): Likewise.
1370 (slli_1): Add missing "%X" operand selector.
1371 (slll_1): Likewise.
1372 (slll_2): Likewise.
1373 (srai_1): Likewise.
1374 (sral_1): Likewise.
1375 (sral_2): Likewise.
1376 (srli_1): Likewise.
1377 (srll_1): Likewise.
1378 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1379 selector.
1380 (cbranchhi4_real): Likewise.
1381 (cbranchqi4_reversed): Likewise.
1382 (cbranchhi4_reversed): Likewise.
1383 (*bitbranch<mode>4): Likewise.
1384 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1385 * config/msp430/msp430.opt (mcode-region=): Set default to
1386 MSP430_REGION_LOWER. Improve docstring.
1387 (mdata-region=): Likewise.
1388 (muse-lower-region-prefix): New option.
1389 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1390 mdata-region=none multilib.
1391 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1392 mdata-region=none multilib.
1393 MULTILIB_EXCEPTIONS: Remove.
1394 MULTILIB_REQUIRED: Define.
1395 * configure: Regenerate.
1396 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1397 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1398 * doc/extend.texi: Clarify comment for {upper,lower,either}
1399 function attributes.
1400 Add separate description for "lower" variable attribute.
1401
1402 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1403
1404 PR target/77918
1405 * optabs-tree.c (vcond_icode_p): New function.
1406 (vcond_eq_icode_p): Likewise.
1407 (expand_vec_cond_expr_p): Use vcond_icode_p and
1408 vcond_eq_icode_p.
1409 * optabs.c (can_vcond_compare_p): New function.
1410 * optabs.h (can_vcond_compare_p): Likewise.
1411
1412 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1413
1414 PR target/77918
1415 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1416 caller passes a non-trapping condition.
1417 (is_gimple_condexpr): Allow trapping conditions.
1418 (is_gimple_condexpr_1): New helper function.
1419 (is_gimple_condexpr_for_cond): New function, acts like old
1420 is_gimple_condexpr.
1421 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1422 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1423 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1424 * gimplify.c (gimplify_cond_expr): Use
1425 is_gimple_condexpr_for_cond.
1426 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1427 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1428 VEC_COND_EXPR.
1429 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1430 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1431 is_gimple_condexpr_for_cond, remove pointless tmp check
1432 (forward_propagate_into_cond): Remove pointless tmp check.
1433
1434 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1435
1436 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1437 match that of other gsi_next_* functions. Adjust the comment.
1438 (gsi_start_nonvirtual_phis): New function.
1439 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1440 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1441
1442 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1443
1444 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1445 setjmp situation here. Fix a verb's ending: "the exact variables or
1446 elements for which there are warnings depends" -> "... depend".
1447
1448 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1449
1450 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1451
1452 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1453
1454 * ipa-prop.c (ipa_vr::nonzero_p): New.
1455 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1456 non-zero range.
1457 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1458 * tree-vrp.c (range_has_numeric_bounds_p): New.
1459 (range_int_cst_p): Use range_has_numeric_bounds_p.
1460 (get_range_op_handler): New.
1461 (supported_types_p): New.
1462 (defined_ranges_p): New.
1463 (drop_undefines_to_varying): New.
1464 (range_fold_binary_symbolics_p): New.
1465 (range_fold_unary_symbolics_p): New.
1466 (range_fold_unary_expr): Extract out into above functions.
1467 (range_fold_binary_expr): Same.
1468 (value_range_base::normalize_addresses): New.
1469 (value_range_base::normalize_symbolics): Normalize addresses.
1470 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1471
1472 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1473
1474 * tree-vrp.c (value_range_base::singleton_p): Use
1475 value_range_base::num_pairs instead of vrp_val_is* to check
1476 if a range has one sub-range.
1477
1478 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1479
1480 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1481 DEF is not a true earlyclobber but is tied to a specific input
1482 operand, and so is effectively earlyclobber wrt inputs that have
1483 different values.
1484 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1485
1486 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1487
1488 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1489 (pod_mode): Mark operators likewise.
1490 (scalar_int_mode): Mark non-default constructors and
1491 operators with CONSTEXPR.
1492 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1493 (fixed_size_mode): Likewise.
1494
1495 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1496
1497 PR target/91994
1498 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1499 and wrap the unspec_volatile in a parallel.
1500 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1501 the unspec_volatile.
1502 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1503 unspec_volatile to be wrapped in a parallel.
1504 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1505 (ix86_add_reg_usage_to_vzerouppers): New functions.
1506 (rest_of_handle_insert_vzeroupper): Use them to add register
1507 usage information to the vzeroupper instructions.
1508
1509 2019-10-07 Richard Biener <rguenther@suse.de>
1510
1511 PR tree-optimization/91975
1512 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1513 handle invariants.
1514
1515 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1516
1517 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1518 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1519
1520 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1521
1522 * config/darwin.c (darwin_override_options): Adjust objective-c
1523 ABI version error messages to avoid punctuation and contracted
1524 negations.
1525
1526 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1527
1528 * ipa-inline.c: Fix type; compute size rather than self_size
1529 for size of caller function.
1530
1531 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1532
1533 PR target/59888
1534 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1535 choose const_data section for constants with relocations.
1536 (machopic_select_section): Pass relocation flag to
1537 darwin_rodata_section ().
1538
1539 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1540
1541 PR tree-optimization/91734
1542 * generic-match-head.c: Include fold-const-call.h.
1543 * match.pd (sqrt(x) cmp c): Check the boundary value and
1544 in case inexact computation of c*c affects comparison of the boundary,
1545 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1546 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1547 for -frounding-math. For c2, try the next smaller or larger floating
1548 point constant depending on comparison code and if it has the same
1549 sqrt as c2, use it instead of c2.
1550
1551 2019-10-04 Martin Sebor <msebor@redhat.com>
1552
1553 PR middle-end/91977
1554 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1555 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1556 uninitialized objects.
1557
1558 2019-10-04 Martin Sebor <msebor@redhat.com>
1559
1560 * builtins.c (compute_objsize): Add an argument.
1561 * tree-object-size.c (addr_object_size): Same.
1562 (compute_builtin_object_size): Same.
1563 * tree-object-size.h (compute_builtin_object): Same.
1564
1565 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1566
1567 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1568
1569 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1570
1571 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1572
1573 2019-10-04 Martin Jambor <mjambor@suse.cz>
1574
1575 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1576 fntype when switching to calling memcpy instead of memset.
1577
1578 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1579
1580 * hash-table.h (hash_table::empty_slow): Don't assign
1581 size_t values to int variables.
1582
1583 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1584
1585 * expr.c (convert_mode_scalar): Remove shadowing local var.
1586 (emit_block_move): Rename local vars.
1587 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1588 (emit_push_insn): Rename local vars.
1589 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1590 shadowing local vars.
1591 (store_constructor): Remove shadowing local vars. Rename local var.
1592 (store_field, expand_cond_expr_using_cmove,
1593 expand_expr_real_2): Remove shadowing local vars.
1594 (expand_expr_real_1,
1595 do_store_flag): Remove shadowing local vars. Rename local vars.
1596
1597 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1598
1599 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1600
1601 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1602
1603 * genmatch.c (commutate): Rename local var.
1604 (lower_cond): Reuse local var.
1605 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1606 dt_operand::gen, dt_operand::gen_gimple_expr,
1607 dt_simplify::gen): Add a param. Rename generated vars.
1608 (decision_tree::insert_operand,
1609 (capture_info::walk_match, capture_info::walk_result,
1610 capture_info::walk_c_expr): Rename local vars.
1611 (expr::gen_transform): Rename generated vars.
1612 Use snprintf. Rename local vars.
1613 (capture::gen_transform, dt_operand::get_name,
1614 dt_operand::gen_opname): Rename generated vars.
1615 (write_predicate): Adjust call to gen_kids.
1616 (parser::get_internal_capture_id): Rename generated vars.
1617 (parser::parse_expr): Rename local vars.
1618 (parser::parse_if): Remove local var.
1619 (parser::parse_pattern, add_operator): Rename local vars.
1620
1621 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1622
1623 * builtins.def (DEF_C2X_BUILTIN): New macro.
1624 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1625 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1626 (strndup): Use DEF_C2X_BUILTIN.
1627 * coretypes.h (enum function_class): Add function_c2x_misc.
1628
1629 2019-10-04 Maya Rashish <coypu@sdf.org>
1630
1631 * ira-color.c (update_costs_from_allocno): Call
1632 ira_init_register_move_cost_if_necessary.
1633
1634 2019-10-04 Jeff Law <law@redhat.com>
1635
1636 * config/h8300/h8300.md (cpymemsi): Disable.
1637 (movmd, movmd_internal_<mode>, movstr, movsd):
1638 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1639 (movmd splitter, movsd splitter): Likewise.
1640
1641 * range-op.cc (range_tests): Avoid two tests when ints and
1642 shorts are the same size.
1643
1644 2019-10-04 Richard Biener <rguenther@suse.de>
1645
1646 PR lto/91968
1647 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1648 BLOCK_VARS.
1649
1650 2019-10-04 Richard Biener <rguenther@suse.de>
1651
1652 PR tree-optimization/91982
1653 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1654 against EXTRACT_LAST_REDUCTION.
1655 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1656
1657 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1658
1659 * range-op.o (value_range_from_overflowed_bounds): Rename from
1660 adjust_overflow_bound.
1661 (value_range_with_overflow): Rename from
1662 create_range_with_overflow.
1663 (create_possibly_reversed_range): Adjusted for above renames.
1664 (operator_*::wi_fold): Same.
1665 (cross_product_operator::wi_cross_productor): Same.
1666
1667 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1668
1669 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1670 -Wshadow=compatible-local): Fix description.
1671 Add an example where -Wshadow=compatible-local does not
1672 warn.
1673
1674 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1675
1676 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1677
1678 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1679 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1680
1681 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1682
1683 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1684 can_move_by_pieces issue.
1685
1686 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1687
1688 PR target/87243
1689 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1690 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1691 is available and the user has not set one on the command line.
1692
1693 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1694
1695 PR target/91769
1696 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1697 instead of REGNO equality check on addr.reg.
1698
1699 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1700
1701 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1702 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1703 * doc/invoke.texi (inline-heuristics-hint-percent,
1704 inline-heuristics-hint-percent-O2): Document.
1705 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1706 hint attribute.
1707 (can_inline_edge_by_limits_p): Use it.
1708
1709 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1710
1711 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1712 to print CONST_DOUBLEs.
1713
1714 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1715
1716 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1717 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1718 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1719
1720 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1721
1722 * Makefile.in (OBJS): Add range.o and range-op.o.
1723 Remove wide-int-range.o.
1724 * function-tests.c (test_ranges): New.
1725 (function_tests_c_tests): Call test_ranges.
1726 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1727 range_fold_unary_expr instead of extract_range_from_unary_expr.
1728 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1729 * range-op.cc: New file.
1730 * range-op.h: New file.
1731 * range.cc: New file.
1732 * range.h: New file.
1733 * selftest.h (range_tests): New prototype.
1734 * ssa.h: Include range.h.
1735 * tree-vrp.c (value_range_base::value_range_base): New
1736 constructors.
1737 (value_range_base::singleton_p): Do not call
1738 ranges_from_anti_range until sure we will need to.
1739 (value_range_base::type): Rename gcc_assert to
1740 gcc_checking_assert.
1741 (vrp_val_is_max): New argument.
1742 (vrp_val_is_min): Same.
1743 (wide_int_range_set_zero_nonzero_bits): Move from
1744 wide-int-range.cc.
1745 (extract_range_into_wide_ints): Remove.
1746 (extract_range_from_multiplicative_op): Remove.
1747 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1748 from extract_range_from_binary_expr.
1749 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1750 from extract_range_from_binary_expr.
1751 (extract_range_from_binary_expr): Remove.
1752 (normalize_for_range_ops): New.
1753 (range_fold_binary_expr): New.
1754 (range_fold_unary_expr): New.
1755 (value_range_base::num_pairs): New.
1756 (value_range_base::lower_bound): New.
1757 (value_range_base::upper_bound): New.
1758 (value_range_base::upper_bound): New.
1759 (value_range_base::contains_p): New.
1760 (value_range_base::invert): New.
1761 (value_range_base::union_): New.
1762 (value_range_base::intersect): New.
1763 (range_compatible_p): New.
1764 (value_range_base::operator==): New.
1765 (determine_value_range_1): Call range_fold_*expr instead of
1766 extract_range_from_*expr.
1767 * tree-vrp.h (class value_range_base): Add new constructors.
1768 Add methods for union_, intersect, operator==, contains_p,
1769 num_pairs, lower_bound, upper_bound, invert.
1770 (vrp_val_is_min): Add handle_pointers argument.
1771 (vrp_val_is_max): Same.
1772 (extract_range_from_unary_expr): Remove.
1773 (extract_range_from_binary_expr): Remove.
1774 (range_fold_unary_expr): New.
1775 (range_fold_binary_expr): New.
1776 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1777 range_fold_binary_expr instead of extract_range_from_binary_expr.
1778 (vr_values::extract_range_basic): Same.
1779 (vr_values::extract_range_from_unary_expr): Call
1780 range_fold_unary_expr instead of extract_range_from_unary_expr.
1781 * wide-int-range.cc: Remove.
1782 * wide-int-range.h: Remove.
1783
1784 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1785
1786 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1787 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1788 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1789 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1790 macro.
1791
1792 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1793
1794 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1795 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1796 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1797 * glimits.h: Likewise.
1798
1799 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1800
1801 PR rtl-optimization/91976
1802 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1803 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1804 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1805
1806 2019-10-02 Martin Sebor <msebor@redhat.com>
1807
1808 PR tree-optimization/80936
1809 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1810
1811 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1812
1813 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1814 instead of reg_class_contents[ALL_REGS].
1815
1816 2019-09-30 Jason Merrill <jason@redhat.com>
1817
1818 Add some hash_map_safe_* functions like vec_safe_*.
1819 * hash-map.h (default_hash_map_size): New variable.
1820 (create_ggc): Use it as default argument.
1821 (hash_map_maybe_create, hash_map_safe_get)
1822 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1823
1824 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1825
1826 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1827 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1828 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1829 (can_inline_edge_by_limits_p): Use it.
1830 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1831 (want_inline_small_function_p): Use O2 bounds.
1832 (edge_badness): LIkewise.
1833 * opts.c (default_options): Add OPT_finline_functions.
1834 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1835 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1836 New parameters.
1837 * doc/invoke.texi (-finline-functions): Update documentation.
1838 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1839 inline-min-speedup-O2): Document.
1840 (early-inlining-insns-O2): Simplify docs.
1841
1842 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1843
1844 PR rtl-optimization/87047
1845 * ifcvt.c (average_cost): New static function. Use it...
1846 (noce_process_if_block): ... here.
1847
1848 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1849
1850 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1851 * config/rs6000/rs6000-string.c (expand_block_move): Add
1852 might_overlap parm.
1853 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1854 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1855
1856 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1857
1858 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1859 (expand_builtin_memcpy): Use might_overlap parm.
1860 (expand_builtin_mempcpy_args): Use might_overlap parm.
1861 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1862 (expand_builtin_memory_copy_args): Add might_overlap parm.
1863 * expr.c (emit_block_move_via_cpymem): Rename to
1864 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1865 or movmem optab as appropriate.
1866 (emit_block_move_hints): Add might_overlap parm, do the right
1867 thing for might_overlap==true.
1868 * expr.h (emit_block_move_hints): Update prototype.
1869
1870 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1871
1872 * tree-eh.h (unsplit_eh_edges): Declare.
1873 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1874 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1875 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1876 (struct store_immediate_info): Add lp_nr field.
1877 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1878 initialize lp_nr with it.
1879 (struct merged_store_group): Add lp_nr and only_constants fields.
1880 (merged_store_group::merged_store_group): Initialize them.
1881 (merged_store_group::can_be_merged_into): Deal with them.
1882 (pass_store_merging): Rename terminate_and_release_chain into
1883 terminate_and_process_chain.
1884 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1885 renaming and remove useless assertions.
1886 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1887 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1888 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1889 instead of always recomputing it and compare lp_nr.
1890 (imm_store_chain_info::output_merged_store): If the group is in an
1891 active EH region, register new stores if they can throw. Moreover,
1892 if the insertion has created new basic blocks, adjust the PHI nodes
1893 of the post landing pad.
1894 (imm_store_chain_info::output_merged_stores): If the original stores
1895 are in an active EH region, deregister them.
1896 (lhs_valid_for_store_merging_p): Prettify.
1897 (adjust_bit_pos): New function extracted from...
1898 (mem_valid_for_store_merging): ...here. Use it for the base address
1899 and also for the offset if it is the addition of a constant.
1900 (lp_nr_for_store): New function.
1901 (pass_store_merging::process_store): Change return type to bool.
1902 Call lp_nr_for_store to initialize the store info. Propagate the
1903 return status of various called functions to the return value.
1904 (store_valid_for_store_merging_p): New predicate.
1905 (enum basic_block_status): New enumeration.
1906 (get_status_for_store_merging): New function.
1907 (pass_store_merging::execute): If the function can throw and catch
1908 non-call exceptions, unsplit the EH edges on entry and clean up the
1909 CFG on exit if something changed. Call get_status_for_store_merging
1910 for every basic block and keep the chains open across basic blocks
1911 when possible. Terminate and process open chains at the end, if any.
1912
1913 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1914
1915 * reginfo.c (globalize_reg): Fix shadowed variable in
1916 function_abis walk.
1917
1918 2019-10-02 Martin Jambor <mjambor@suse.cz>
1919
1920 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1921 do not compute some stuff when set.
1922 (cgraph_node::create_edge): Likewise.
1923 (cgraph_node::create_indirect_edge): Renamed last parameter to
1924 coning_p and flipped its meaning, don't even calculate
1925 inline_failed when set.
1926 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1927 (symbol_table::::create_edge): Likewise.
1928 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1929 the default value.
1930 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1931 call graph edge creating functions.
1932
1933 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1934
1935 PR c++/91222
1936 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1937 namespace types.
1938
1939 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1940
1941 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1942
1943 2019-10-02 Richard Biener <rguenther@suse.de>
1944
1945 * tree-vectorizer.h (vect_transform_reduction): Declare.
1946 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1947 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1948 stmt transform to ...
1949 (vect_transform_reduction): ... this.
1950
1951 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1952
1953 * omp-low.c (lower_omp_target): Dereference optional argument
1954 to work with the right pointer.
1955
1956 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1957
1958 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1959 false.
1960 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1961 * langhooks.h (omp_is_optional_argument): New hook.
1962 * omp-general.c (omp_is_optional_argument): New.
1963 * omp-general.h (omp_is_optional_argument): New declaration.
1964 * omp-low.c (lower_omp_target): Create temporary for received value
1965 and take the address for new_var if the original variable was a
1966 DECL_BY_REFERENCE. Use size of referenced object when a
1967 pass-by-reference optional argument used as argument to firstprivate.
1968
1969 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1970
1971 PR tree-optimization/91940
1972 * tree-vect-patterns.c: Include tree-vector-builder.h and
1973 vec-perm-indices.h.
1974 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1975 unpromoting the argument back to uint16_t, or by converting into a
1976 rotate, or into shifts plus ior.
1977
1978 2019-10-02 Richard Biener <rguenther@suse.de>
1979
1980 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1981 New.
1982 (vect_transform_cycle_phi): Declare.
1983 * tree-vect-stmts.c (vect_transform_stmt): Call
1984 vect_transform_cycle_phi.
1985 * tree-vect-loop.c (vectorizable_reduction): Split out
1986 PHI transformation stage to ...
1987 (vect_transform_cycle_phi): ... here.
1988
1989 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1990
1991 PR middle-end/91957
1992 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1993 eliminable registers.
1994 (make_hard_regno_live): Likewise, and don't make them live.
1995
1996 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1997
1998 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1999 Call pp_emit_prefix.
2000 (layout::print_source_line): Likewise.
2001 (layout::start_annotation_line): Likewise.
2002 (diagnostic_show_locus): Remove call to temporarily clear the
2003 prefix.
2004 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2005 interaction of pp_set_prefix with rulers and fix-it hints.
2006 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2007 prefix when calling diagnostic_show_locus, rather than destroying
2008 it afterwards.
2009 (print_parseable_fixits): Temporarily clear prefix.
2010 * pretty-print.c (pp_format): Save and restore line_length, rather
2011 than assuming it is zero.
2012 (pp_output_formatted_text): Remove assertion that line_length is
2013 zero.
2014
2015 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2016
2017 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2018 Rename to ...
2019 (nonoverlapping_refs_since_match_p): ... this; handle also
2020 ARRAY_REFs.
2021 (alias_stats): Update stats.
2022 (dump_alias_stats): Likewise.
2023 (cheap_array_ref_low_bound): New function.
2024 (aliasing_matching_component_refs_p): Add partial_overlap
2025 argument;
2026 pass it to nonoverlapping_refs_since_match_p.
2027 (aliasing_component_refs_walk): Update call of
2028 aliasing_matching_component_refs_p
2029 (nonoverlapping_array_refs_p): New function.
2030 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2031 indirect_refs_may_alias_p): Update calls of
2032 nonoverlapping_refs_since_match_p.
2033
2034 2019-10-01 Maya Rashish <coypu@sdf.org>
2035
2036 PR target/85401
2037 * ira-color.c (allocno_copy_cost_saving): Call
2038 ira_init_register_move_cost_if_necessary.
2039
2040 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2041
2042 * Makefile.in (gnat_install_lib): New variable.
2043 * configure.ac: Substitute it.
2044 * configure: Regenerate.
2045
2046 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2047
2048 PR lto/91222
2049 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2050 is matched with non-C++ type
2051
2052 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2053
2054 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2055 after local CSE.
2056
2057 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2058
2059 * doc/invoke.texi (early-inlining-insns-O2): Document.
2060 (early-inlining-insns): Update.
2061 * params.def (early-inlining-insns-O2): New bound.
2062 (early-inlining-insns): Update docs.
2063 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2064
2065 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2066
2067 PR target/88562
2068 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2069 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2070 a memory access insn.
2071
2072 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2073
2074 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2075 vpmsumd.
2076
2077 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2078
2079 PR target/77918
2080 * config/s390/s390.c (s390_expand_vec_compare): Use
2081 gen_vec_cmpordered and gen_vec_cmpunordered.
2082 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2083 vec_unordered): Delete.
2084 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2085 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2086 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2087 (vec_cmp<code>): Generic dispatcher.
2088
2089 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2090
2091 PR target/77918
2092 * config/s390/vector.md (V_HW): Add V1TI in order to make
2093 vcond$a$b generate vcondv1tiv1tf.
2094
2095 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2096
2097 PR rtl-optimization/91948
2098 * ira-build.c (ira_create_allocno): Initialize
2099 ALLOCNO_CROSSED_CALLS_ABIS.
2100 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2101 than regno to ira_need_caller_save_p.
2102
2103 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2104
2105 * config/i386/i386-options.c
2106 (ix86_recompute_optlev_based_flags): New, moved out of...
2107 (ix86_option_override_internal): ... this. Call it.
2108 (ix86_override_options_after_change): Call it here too.
2109
2110 PR debug/91507
2111 * dwarf2out.c (override_type_for_decl_p): New.
2112 (gen_variable_die): Use it.
2113
2114 2019-10-01 Richard Biener <rguenther@suse.de>
2115
2116 * tree-vect-loop.c (vectorizable_reduction): Move variables
2117 to where they are used.
2118
2119 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2120
2121 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2122 (build_def_use): Use PC instead of CC0 in a comment.
2123
2124 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2125
2126 * rtl.def (CLOBBER_HIGH): Delete.
2127 * doc/rtl.texi (clobber_high): Remove documentation.
2128 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2129 (reg_is_clobbered_by_clobber_high): Delete.
2130 (gen_hard_reg_clobber_high): Likewise.
2131 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2132 * cfgexpand.c (expand_gimple_stmt): Likewise.
2133 * combine-stack-adj.c (single_set_for_csa): Likewise.
2134 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2135 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2136 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2137 * cse.c (invalidate_reg): Remove clobber_high parameter.
2138 (invalidate): Update call accordingly.
2139 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2140 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2141 (count_reg_usage, insn_live_p): Likewise.
2142 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2143 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2144 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2145 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2146 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2147 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2148 (mark_nonreg_stores_2): Likewise.
2149 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2150 (df_get_call_refs): Likewise.
2151 * dwarf2out.c (mem_loc_descriptor): Likewise.
2152 * emit-rtl.c (verify_rtx_sharing): Likewise.
2153 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2154 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2155 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2156 * genemit.c (gen_exp, gen_insn): Likewise.
2157 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2158 * haifa-sched.c (haifa_classify_rtx): Likewise.
2159 * ira-build.c (create_insn_allocnos): Likewise.
2160 * ira-costs.c (scan_one_insn): Likewise.
2161 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2162 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2163 * jump.c (mark_jump_label_1): Likewise.
2164 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2165 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2166 handling.
2167 (mark_not_eliminable): Likewise.
2168 * lra-lives.c (process_bb_lives): Likewise.
2169 * lra.c (new_insn_reg): Remove clobber_high parameter.
2170 (collect_non_operand_hard_regs): Likewise. Update call to new
2171 insn_reg. Remove CLOBBER_HIGH handling.
2172 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2173 to collect_non_operand_hard_regs.
2174 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2175 Update call to new_insn_reg.
2176 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2177 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2178 (move2add_note_store): Likewise.
2179 * print-rtl.c (print_pattern): Likewise.
2180 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2181 (if_test_bypass_p): Likewise.
2182 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2183 * reginfo.c (reg_scan_mark_refs): Likewise.
2184 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2185 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2186 (forget_old_reloads_1): Likewise.
2187 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2188 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2189 (dbr_schedule): Likewise.
2190 * resource.c (update_live_status, mark_referenced_resources)
2191 (mark_set_resources): Likewise.
2192 * rtl.c (copy_rtx): Likewise.
2193 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2194 (note_pattern_stores): Likewise.
2195 (reg_is_clobbered_by_clobber_high): Delete.
2196 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2197 CLOBBER_HIGH handling.
2198
2199 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2200
2201 PR target/91452
2202 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2203 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2204 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2205 Handle ARM_PCS_TLSDESC.
2206 (aarch64_tlsdesc_abi_id): New function.
2207 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2208 rtx instead of a list of clobbers and clobber_highs.
2209 (tlsdesc_small_<mode>): Update accordingly.
2210
2211 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2212
2213 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2214 extra callee_abi argument.
2215 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2216 Insert a CALLEE_ABI unspec into the call pattern as the second
2217 element in the PARALLEL.
2218 (aarch64_simd_call_p): Delete.
2219 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2220 the new CALLEE_ABI element of the PARALLEL.
2221 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2222 from the function type, if given.
2223 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2224 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2225 when passed the function_arg_info end marker.
2226 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2227 final argument of gen_sibcall.
2228 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2229 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2230 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2231 pattern.
2232 (call_value): Likewise operand 3.
2233 (sibcall): Likewise operand 2. Place the unspec before rather than
2234 after the return.
2235 (sibcall_value): Likewise operand 3.
2236 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2237 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2238 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2239 constraint strings.
2240 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2241
2242 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2245 choose_hard_reg_mode.
2246 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2247
2248 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2249
2250 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2251 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2252 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2253
2254 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2255
2256 * diagnostic-show-locus.c (line_label::line_label): Initialize
2257 m_has_vbar.
2258 (line_label::comparator): Reverse the sort order by m_state_idx,
2259 so that when the list is walked backwards the labels appear in
2260 order of insertion into the rich_location.
2261 (line_label::m_has_vbar): New field.
2262 (layout::print_any_labels): When dealing with multiple labels at
2263 the same line and column, only print vertical bars for the one
2264 with the highest label_line.
2265 (selftest::test_one_liner_labels): Update test for multiple labels
2266 to expect the labels to be in the order of insertion into the
2267 rich_location. Add a test for many such labels, where the column
2268 numbers are out-of-order relative to the insertion order.
2269
2270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2271
2272 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2273 (ix86_frame::expensive_count): Likewise.
2274 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2275 of use_fast_prologue_epilogue robust against incidental changes
2276 in function size.
2277
2278 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2279
2280 PR target/77918
2281 * config/s390/vector.md (vec_unordered<mode>): Call
2282 gen_vec_ordered<mode>.
2283
2284 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2285
2286 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2287 New pattern for ASRD.
2288 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2289 * internal-fn.def (IFN_DIV_POW2): New internal function.
2290 * optabs.def (sdiv_pow2_optab): New optab.
2291 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2292 Modify pattern to support new operation.
2293 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2294 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2295 Document new target selector.
2296
2297 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2298
2299 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2300 to test whether we're compiling a vector PCS function and to test
2301 whether the function needs to save a particular register.
2302 Remove the vector PCS handling of df_set_regs_ever_live.
2303 (aarch64_components_for_bb): Use crtl->abi to test whether
2304 the function needs to save a particular register.
2305 (aarch64_process_components): Use crtl->abi to test whether
2306 we're compiling a vector PCS function.
2307 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2308 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2309
2310 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2311
2312 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2313 Delete.
2314 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2315 whether the block calls a function that clobbers more registers
2316 than the current function is allowed to.
2317 (aarch64_use_simple_return_insn_p): Delete.
2318 * config/aarch64/aarch64.md (simple_return): Remove condition.
2319
2320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2321
2322 * function-abi.h (function_abi_aggregator): New class.
2323 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2324 function.
2325 * ira.c (update_equiv_regs_prescan): New function. Call
2326 set_paradoxical_subreg here rather than...
2327 (update_equiv_regs): ...here.
2328 (ira): Call update_equiv_regs_prescan.
2329
2330 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2331
2332 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2333 IN_TARGET_CODE.
2334 (call_used_or_fixed_regs): Likewise.
2335 (call_used_or_fixed_reg_p): Likewise.
2336 * reginfo.c (regs_invalidated_by_call): New macro.
2337
2338 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2339
2340 * shrink-wrap.c: Include function-abi.h.
2341 (requires_stack_frame_p): Use crtl->abi to test whether the
2342 current function can use a register without saving it first.
2343
2344 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2345
2346 * sel-sched-ir.h (_def::crosses_call): Replace with...
2347 (_def::crossed_call_abis): ..this new field.
2348 (def_list_add): Take a mask of ABIs instead of a crosses_call
2349 boolean.
2350 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2351 of _def accordingly.
2352 * sel-sched.c: Include function-abi.h.
2353 (hard_regs_data::regs_for_call_clobbered): Delete.
2354 (reg_rename::crosses_call): Replace with...
2355 (reg_rename::crossed_call_abis): ...this new field.
2356 (fur_static_params::crosses_call): Replace with...
2357 (fur_static_params::crossed_call_abis): ...this new field.
2358 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2359 (init_hard_regs_data): Use crtl->abi to test which registers the
2360 current function would need to save before it uses them.
2361 (mark_unavailable_hard_regs): Update handling of call-clobbered
2362 registers, using call_clobbers_in_region to find out which registers
2363 might be call-clobbered (but without taking -fipa-ra into account
2364 for now). Remove separate handling of partially call-clobbered
2365 registers.
2366 (verify_target_availability): Use crossed_call_abis instead of
2367 crosses_call.
2368 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2369 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2370
2371 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2372
2373 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2374 function to test whether a register is fully or partly clobbered.
2375
2376 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2377
2378 * rtlanal.c: Include function-abi.h.
2379 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2380 function and clobbers_reg_p to test whether the register
2381 is call-clobbered.
2382 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2383 to get the ABI of the called function and full_reg_clobbers to
2384 get the set of fully call-clobbered registers. Warn about the
2385 pitfalls of using this mode.
2386
2387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2388
2389 * reload.c: Include function-abi.h.
2390 (find_equiv_reg): Use clobbers_reg_p to test whether either
2391 of the equivalent registers is clobbered by a call.
2392 * reload1.c: Include function-abi.h.
2393 (reg_reloaded_call_part_clobbered): Delete.
2394 (reload): Use crtl->abi to test which registers would need
2395 saving in the prologue before use.
2396 (find_reg): Likewise.
2397 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2398 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2399 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2400
2401 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2402
2403 * regrename.h (du_head::call_clobber_mask): New field.
2404 (du_head::need_caller_save_reg): Replace with...
2405 (du_head::call_abis): ...this new field.
2406 * regrename.c: Include function-abi.h.
2407 (call_clobbered_in_chain_p): New function.
2408 (check_new_reg_p): Use crtl->abi when deciding whether a register
2409 is free for use after RA. Use call_clobbered_in_chain_p to test
2410 whether a candidate register would be clobbered by a call.
2411 (find_rename_reg): Don't add call-clobber conflicts here.
2412 (rename_chains): Check call_abis instead of need_caller_save_reg.
2413 (merge_chains): Update for changes to du_head.
2414 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2415 target. Record the ABI identifier in call_abis and the set of
2416 fully or partially clobbered registers in call_clobber_mask.
2417 Add fully-clobbered registers to hard_conflicts here rather
2418 than in find_rename_reg.
2419 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2420 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2421 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2422 function-abi.h.
2423 * config/c6x/c6x.c: Likewise.
2424
2425 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2426
2427 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2428 mode of the register when deciding whether it is no longer
2429 available after a call.
2430
2431 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2432
2433 * recog.c: Include function-abi.h.
2434 (peep2_find_free_register): Use crtl->abi when deciding whether
2435 a register is free for use after RA.
2436
2437 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2438
2439 * postreload-gcse.c: Include regs.h and function-abi.h.
2440 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2441 call insn target. Conservatively assume that partially-clobbered
2442 registers are altered.
2443
2444 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2445
2446 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2447 when deciding whether a register is free for use after RA.
2448 (reload_combine): Remove unnecessary use of fixed_reg_set.
2449 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2450 call insn target. Use reg_mode when testing whether a register
2451 is no longer available.
2452
2453 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2454
2455 * target.def (return_call_with_max_clobbers): Delete.
2456 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2457 * doc/tm.texi: Regenerate.
2458 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2459 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2460 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2461 (lra_reg::call_insn): Delete.
2462 * lra.c: Include function-abi.h.
2463 (initialize_lra_reg_info_element): Don't initialize the fields above.
2464 (lra): Use crtl->abi to test whether the current function needs to
2465 save a register in the prologue. Remove special pre-inheritance
2466 lra_create_live_ranges pass for flag_ipa_ra.
2467 * lra-assigns.c: Include function-abi.h
2468 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2469 function needs to save a register in the prologue.
2470 (lra_assign): Assert that registers aren't allocated to a
2471 conflicting register, rather than checking only for overlaps
2472 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2473 and for registers that are not live across a call.
2474 * lra-constraints.c (last_call_for_abi): New variable.
2475 (full_and_partial_call_clobbers): Likewise.
2476 (setup_next_usage_insn): Remove the register from
2477 full_and_partial_call_clobbers.
2478 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2479 whether the register needs a caller save.
2480 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2481 of call_used_or_fixed_regs.
2482 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2483 full_and_partial_call_clobbers.
2484 * lra-lives.c (check_pseudos_live_through_calls): Replace
2485 last_call_used_reg_set and call_insn arguments with an abi argument.
2486 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2487 as the set of conflicting registers.
2488 (calls_have_same_clobbers_p): Delete.
2489 (process_bb_lives): Track the ABI of the last call instead of an
2490 insn/HARD_REG_SET pair. Update calls to
2491 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2492 the set of registers that could be clobbered by an EH edge.
2493 Include partially-clobbered as well as fully-clobbered registers.
2494 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2495 * lra-remat.c: Include function-abi.h.
2496 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2497 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2498 registers and bitmap_view to combine them into dead_regs.
2499 (call_used_input_regno_present_p): Take a function_abi argument
2500 and use it to test whether a register is call-clobbered.
2501 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2502 call insn target. Update tje call to call_used_input_regno_present_p.
2503 (do_remat): Likewise.
2504 (lra_remat): Remove the initialization of call_used_regs_arr_len
2505 and call_used_regs_arr.
2506
2507 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2508
2509 * loop-iv.c: Include regs.h and function-abi.h.
2510 (simplify_using_initial_values): Use insn_callee_abi to get the
2511 ABI of the call insn target. Conservatively assume that
2512 partially-clobbered registers are altered.
2513
2514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2515
2516 * function-abi.h (call_clobbers_in_region): Declare.
2517 (call_clobbered_in_region_p): New function.
2518 * function-abi.cc (call_clobbers_in_region): Likewise.
2519 * ira-int.h: Include function-abi.h.
2520 (ira_allocno::crossed_calls_abis): New field.
2521 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2522 (ira_need_caller_save_regs): New function.
2523 (ira_need_caller_save_p): Likewise.
2524 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2525 of call_used_or_fixed_regs.
2526 (do_reload): Use crtl->abi to test whether the current function
2527 needs to save a register in the prologue. Count registers that
2528 need to be saved rather than registers that don't.
2529 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2530 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2531 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2532 (propagate_some_info_from_allocno): Likewise.
2533 (copy_info_to_removed_store_destinations): Likewise.
2534 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2535 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2536 (ira_build): Use ira_need_caller_save_regs instead of
2537 call_used_or_fixed_regs.
2538 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2539 whether the current function would need to save a register
2540 before using it.
2541 (calculate_spill_cost): Likewise.
2542 (allocno_reload_assign): Use ira_need_caller_save_regs and
2543 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2544 * ira-conflicts.c (ira_build_conflicts): Use
2545 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2546 as the set of call-clobbered registers. Remove the
2547 call_used_or_fixed_regs mask from the calculation of
2548 temp_hard_reg_set and mask its use instead. Remove special
2549 handling of partially-clobbered registers.
2550 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2551 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2552 calculate the set of conflicting registers for calls that
2553 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2554 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2555 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2556 Use eh_edge_abi to calculate the set of registers that could
2557 be clobbered by an EH edge. Include partially-clobbered as
2558 well as fully-clobbered registers.
2559
2560 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2561
2562 * haifa-sched.c: Include function-abi.h.
2563 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2564 the function would need to save a register before using it.
2565
2566 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2567
2568 * gcse.c: Include function-abi.h.
2569 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2570 the call insn target. Invalidate partially call-clobbered
2571 registers as well as fully call-clobbered ones.
2572
2573 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2574
2575 * function.c (aggregate_value_p): Work out which ABI the
2576 function is using before testing which registers are at least
2577 partly preserved by a call.
2578
2579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2580
2581 * early-remat.c: Include regs.h and function-abi.h.
2582 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2583 registers here.
2584 (early_remat::restrict_remat_for_unavail_regs): New function.
2585 (early_remat::restrict_remat_for_call): Likewise.
2586 (early_remat::process_block): Before calling emit_remat_insns
2587 for a previous call in the block, invalidate any candidates
2588 that would clobber call-preserved registers.
2589 (early_remat::emit_remat_insns_for_block): Likewise for the
2590 final call in a block. Do the same thing for live-in registers
2591 when calling emit_remat_insns at the head of a block.
2592
2593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2594
2595 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2596 whether the current function needs to save at least part of a
2597 register before using it.
2598 (df_get_exit_block_use_set): Likewise for epilogue restores.
2599
2600 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2601
2602 * df-problems.c: Include regs.h and function-abi.h.
2603 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2604 sparse_invalidated_by_eh and dense_invalidated_by_call to
2605 dense_invalidated_by_eh.
2606 (df_print_bb_index): Update accordingly.
2607 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2608 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2609 that are clobbered by an EH edge. Clobber partially-clobbered
2610 registers as well as fully-clobbered ones.
2611 (df_md_confluence_n): Likewise.
2612 (df_rd_local_compute): Likewise. Update for changes to
2613 df_rd_problem_data.
2614 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2615 of registers that are clobbered by an EH edge. Includde partially-
2616 clobbered registers as well as fully-clobbered ones.
2617
2618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2619
2620 * cselib.c (cselib_process_insn): If we know what mode a
2621 register was set in, check whether it is clobbered in that
2622 mode by a call. Only fall back to reg_raw_mode if that fails.
2623
2624 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2625
2626 * cse.c: Include regs.h and function-abi.h.
2627 (invalidate_for_call): Take the call insn as an argument.
2628 Use insn_callee_abi to get the ABI of the call and invalidate
2629 partially clobbered registers as well as fully clobbered ones.
2630 (cse_insn): Update call accordingly.
2631
2632 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2633
2634 * combine.c: Include function-abi.h.
2635 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2636 of the target of call insns. Invalidate partially-clobbered
2637 registers as well as fully-clobbered ones.
2638
2639 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2640
2641 * cfgloopanal.c: Include regs.h and function-abi.h.
2642 (init_set_costs): Use default_function_abi to test whether
2643 a general register is call-clobbered.
2644
2645 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2646
2647 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2648 instead of the call-clobbered sets.
2649
2650 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2651
2652 * caller-save.c (setup_save_areas): Remove redundant |s of
2653 fixed_reg_set.
2654 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2655 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2656 value is useful.
2657
2658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2659
2660 * rtl.h (predefined_function_abi): Declare.
2661 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2662 instead of a boolean call_save flag.
2663 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2664 accordingly.
2665 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2666 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2667 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2668 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2669 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2670 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2671 * reginfo.c (init_reg_modes_target): Likewise.
2672 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2673 instead of a boolean call_save flag.
2674 * targhooks.c: Include function-abi.h.
2675 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2676 using eh_edge_abi to choose the mode.
2677
2678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2679
2680 * target.def (hard_regno_call_part_clobbered): Take an ABI
2681 identifier instead of an rtx_insn.
2682 * doc/tm.texi: Regenerate.
2683 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2684 (hook_bool_uint_uint_mode_false): New function.
2685 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2686 (hook_bool_uint_uint_mode_false): New function.
2687 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2688 Take an ABI identifier instead of an rtx_insn.
2689 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2690 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2691 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2692 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2693 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2694 Likewise.
2695 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2696 * cselib.c: Include function-abi.h.
2697 (cselib_process_insn): Update call to
2698 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2699 to get the appropriate ABI identifier.
2700 * function-abi.cc (predefined_function_abi::initialize): Update call
2701 to targetm.hard_regno_call_part_clobbered.
2702 * ira-conflicts.c (ira_build_conflicts): Likewise.
2703 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2704 * lra-constraints.c: Include function-abi.h.
2705 (need_for_call_save_p): Update call to
2706 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2707 to get the appropriate ABI identifier.
2708 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2709 * regcprop.c (copyprop_hardreg_forward_1): Update call
2710 to targetm.hard_regno_call_part_clobbered.
2711 * reginfo.c (choose_hard_reg_mode): Likewise.
2712 * regrename.c (check_new_reg_p): Likewise.
2713 * reload.c (find_equiv_reg): Likewise.
2714 * reload1.c (emit_reload_insns): Likewise.
2715 * sched-deps.c: Include function-abi.h.
2716 (deps_analyze_insn): Update call to
2717 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2718 to get the appropriate ABI identifier.
2719 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2720 call to targetm.hard_regno_call_part_clobbered.
2721 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2722
2723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2724
2725 * config/i386/i386.c: Include function-abi.h.
2726 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2727 if they preserve some 256-bit or 512-bit SSE registers.
2728
2729 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * target.def (insn_callee_abi): New hook.
2732 (remove_extra_call_preserved_regs): Delete.
2733 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2734 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2735 * doc/tm.texi: Regenerate.
2736 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2737 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2738 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2739 insn argument.
2740 (aarch64_remove_extra_call_preserved_regs): Delete.
2741 (aarch64_insn_callee_abi): New function.
2742 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2743 (TARGET_INSN_CALLEE_ABI): New macro.
2744 * rtl.h (get_call_fndecl): Declare.
2745 (cgraph_rtl_info): Fix formatting. Tweak comment for
2746 function_used_regs. Remove function_used_regs_valid.
2747 * rtlanal.c (get_call_fndecl): Moved from final.c
2748 * function-abi.h (insn_callee_abi): Declare.
2749 (target_function_abi_info): Mention insn_callee_abi.
2750 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2751 way to get_call_reg_set_usage did.
2752 (insn_callee_abi): New function.
2753 * regs.h (get_call_reg_set_usage): Delete.
2754 * final.c: Include function-abi.h.
2755 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2756 function_used_regs before the main loop rather than afterwards.
2757 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2758 if function_used_regs ends up not being useful.
2759 (get_call_fndecl): Move to rtlanal.c
2760 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2761 * caller-save.c: Include function-abi.h.
2762 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2763 instead of get_call_reg_set_usage.
2764 * cfgcleanup.c: Include function-abi.h.
2765 (old_insns_match_p): Use insn_callee_abi instead of
2766 get_call_reg_set_usage.
2767 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2768 a tree.
2769 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2770 function_used_regs.
2771 * df-scan.c: Include function-abi.h.
2772 (df_get_call_refs): Use insn_callee_abi instead of
2773 get_call_reg_set_usage.
2774 * ira-lives.c: Include function-abi.h.
2775 (process_bb_node_lives): Use insn_callee_abi instead of
2776 get_call_reg_set_usage.
2777 * lra-lives.c: Include function-abi.h.
2778 (process_bb_lives): Use insn_callee_abi instead of
2779 get_call_reg_set_usage.
2780 * postreload.c: Include function-abi.h.
2781 (reload_combine): Use insn_callee_abi instead of
2782 get_call_reg_set_usage.
2783 * regcprop.c: Include function-abi.h.
2784 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2785 get_call_reg_set_usage.
2786 * resource.c: Include function-abi.h.
2787 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2788 instead of get_call_reg_set_usage.
2789 * var-tracking.c: Include function-abi.h.
2790 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2791 get_call_reg_set_usage.
2792
2793 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 * target.def (fntype_abi): New target hook.
2796 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2797 * doc/tm.texi: Regenerate.
2798 * target.h (predefined_function_abi): Declare.
2799 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2800 if defined.
2801 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2802 * config/aarch64/aarch64.c: Include function-abi.h.
2803 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2804 (TARGET_FNTYPE_ABI): Define.
2805
2806 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2807
2808 * Makefile.in (OBJS): Add function-abi.o.
2809 (GTFILES): Add function-abi.h.
2810 * function-abi.cc: New file.
2811 * function-abi.h: Likewise.
2812 * emit-rtl.h (rtl_data::abi): New field.
2813 * function.c: Include function-abi.h.
2814 (prepare_function_start): Initialize crtl->abi.
2815 * read-rtl-function.c: Include regs.h and function-abi.h.
2816 (read_rtl_function_body): Initialize crtl->abi.
2817 (read_rtl_function_body_from_file_range): Likewise.
2818 * reginfo.c: Include function-abi.h.
2819 (init_reg_sets_1): Initialize default_function_abi.
2820 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2821 when making a register global.
2822 * target-globals.h (this_target_function_abi_info): Declare.
2823 (target_globals::function_abi_info): New field.
2824 (restore_target_globals): Copy it.
2825 * target-globals.c: Include function-abi.h.
2826 (default_target_globals): Initialize the function_abi_info field.
2827 (target_globals): Allocate it.
2828 (save_target_globals): Free it.
2829
2830 2019-09-30 Nick Clifton <nickc@redhat.com>
2831
2832 PR target/85978
2833 * config/frv/frv.c (frv_register_move_cost): Add break statements
2834 to avoid falling through to the wrong cases. Tidy code.
2835
2836 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2837
2838 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2839 For multi-registers modes, test how big each register part is.
2840
2841 2019-09-30 Nick Clifton <nickc@redhat.com>
2842
2843 PR target/59205
2844 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2845 (TARGET_ASM_SELECT_SECTION): Remove definition.
2846 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2847
2848 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2849
2850 * emit-rtl.c (init_raw_REG): New function.
2851 (gen_raw_REG): Use init_raw_REG.
2852 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2853 macros.
2854 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2855 * rtl.h (rtx_init): New function.
2856 (rtx_alloca): New function.
2857 (init_raw_REG): New function.
2858 (alloca_raw_REG): New macro.
2859
2860 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2861
2862 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2863 (pcrel_local_address): Replace pcrel_address predicate, use the
2864 new function address_to_insn_form.
2865 (pcrel_external_address): Replace with new implementation using
2866 address_to_insn_form..
2867 (prefixed_mem_operand): Delete predicate which is now unused.
2868 (pcrel_external_mem_operand): Delete predicate which is now
2869 unused.
2870 * config/rs6000/rs6000-protos.h (enum insn_form): New
2871 enumeration.
2872 (enum non_prefixed_form): New enumeration.
2873 (address_to_insn_form): New declaration.
2874 (prefixed_load_p): New declaration.
2875 (prefixed_store_p): New declaration.
2876 (prefixed_paddi_p): New declaration.
2877 (rs6000_asm_output_opcode): New declaration.
2878 (rs6000_final_prescan_insn): Move declaration and update calling
2879 signature.
2880 (address_is_prefixed): New helper inline function.
2881 * config/rs6000/rs6000.c(print_operand_address): Check for either
2882 PC-relative local symbols or PC-relative external symbols.
2883 (rs6000_emit_move): Support loading PC-relative addresses.
2884 (mode_supports_prefixed_address_p): Delete, no longer used.
2885 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2886 (address_to_insn_form): New function to decode an address format.
2887 (reg_to_non_prefixed): New function to identify what the
2888 non-prefixed memory instruction format is for a register.
2889 (prefixed_load_p): New function to identify prefixed loads.
2890 (prefixed_store_p): New function to identify prefixed stores.
2891 (prefixed_paddi_p): New function to identify prefixed load
2892 immediates.
2893 (next_insn_prefixed_p): New static state variable.
2894 (rs6000_final_prescan_insn): New function to determine if an insn
2895 uses a prefixed instruction.
2896 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2897 prefixed instruction.
2898 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2899 (ASM_OUTPUT_OPCODE): New target hook.
2900 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2901 prefixed instructions.
2902 (prefixed_length): New insn attribute for the size of prefixed
2903 instructions.
2904 (non_prefixed_length): New insn attribute for the size of
2905 non-prefixed instructions.
2906 (pcrel_local_addr): New insn to load up a local PC-relative
2907 address.
2908 (pcrel_extern_addr): New insn to load up an external PC-relative
2909 address.
2910 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2911 GPR and loading a 128-bit floating point type to a GPR.
2912
2913 2019-09-30 Richard Biener <rguenther@suse.de>
2914
2915 * gimple.c (gimple_get_lhs): For PHIs return the result.
2916 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2917 SLP instance as argument.
2918 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2919 double-reduction PHIs with vectorizable_lc_phi.
2920 (vect_analyze_loop_operations): Adjust.
2921 (vect_create_epilog_for_reduction): Remove all code not dealing
2922 with reduction LC PHI or epilogue generation.
2923 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2924 for live stmts of reductions.
2925 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2926 do not handle defs that are not vect_internal_def.
2927 (can_vectorize_live_stmts): Adjust.
2928 (vect_analyze_stmt): When the vectorized stmt defined a value
2929 used on backedges adjust the backedge uses of vectorized PHIs.
2930
2931 2019-09-30 Martin Jambor <mjambor@suse.cz>
2932
2933 PR ipa/91853
2934 * tree-inline.c (force_value_to_type): New function.
2935 (setup_one_parameter): Use force_value_to_type to convert type.
2936 * tree-inline.c (force_value_to_type): Declare.
2937 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2938 with register type mismatches.
2939
2940 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2941
2942 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2943 32-bit PowerPC.
2944 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2945 * config/rs6000/t-freebsd64: Make use of the above define and build
2946 the 32-bit libraries with secure-plt.
2947
2948 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2949
2950 PR target/91931
2951 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2952 gen_int_mode instead of GEN_INT.
2953
2954 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2955
2956 * config/darwin.c (gen_macho_low): Amend to include the mode
2957 argument.
2958 (machopic_indirect_data_reference): Amend gen_macho_low call
2959 to include mode argument
2960 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2961 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2962 the macho_high expander and two define_insn entries.
2963
2964 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2965
2966 PR bootstrap/90543
2967 * optc-save-gen.awk: Fix up printing string option differences.
2968
2969 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2970
2971 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2972 vec_perm cost to 1 for non-Power7 VSX architectures.
2973
2974 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2975
2976 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2977 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2978 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2979
2980 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2981
2982 * config/darwin.c (gen_macho_high): Amend to include the mode
2983 argument.
2984 (machopic_indirect_data_reference): Amend gen_macho_high call
2985 to include mode argument.
2986 (machopic_legitimize_pic_address): Likewise.
2987 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2988 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2989 the macho_high expander and two define_insn entries.
2990
2991 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2992
2993 PR target/86805
2994 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2995
2996 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2997
2998 PR target/80672
2999 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3000 std::string::compare instead of std::string::find.
3001
3002 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3003
3004 * configure: Regenerate.
3005
3006 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3007
3008 PR middle-end/91920
3009 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3010 variables as shared.
3011
3012 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3013
3014 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3015 replaces the expander and two define_insn entries.
3016 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3017 call.
3018 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3019
3020 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3021
3022 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3023 (fibonacci_heap::nodes): Likewise.
3024 (fibonacci_heap::min_key): Likewise.
3025 (fibonacci_heap::min): Likewise.
3026
3027 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3028
3029 * cgraph.c (cgraph_node::get_fun): Make const.
3030 * cgraph.h (cgraph_node::get_fun): Likewise.
3031
3032 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3033
3034 PR target/91919
3035 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3036 of SImode MULT.
3037
3038 2019-09-27 Richard Biener <rguenther@suse.de>
3039
3040 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3041 (STMT_VINFO_REDUC_FN): Likewise.
3042 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3043 STMT_VINFO_REDUC_FN.
3044 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3045 for condition reductions.
3046 (vect_create_epilog_for_reduction): Compute all required state
3047 from the stmt to be vectorized.
3048 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3049 invocation and remove then dead code. For single def-use chains
3050 record only a single vector stmt.
3051
3052 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3053
3054 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3055 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3056 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3057 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3058 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3059 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3060 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3061 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3062 (aarch64_general_builtin_rsqrt): Declare.
3063 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3064 New function.
3065 (aarch64_mangle_builtin_type): Rename to...
3066 (aarch64_general_mangle_builtin_type): ...this.
3067 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3068 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3069 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3070 aarch64_general_add_builtin instead of add_builtin_function.
3071 (aarch64_init_builtins): Rename to...
3072 (aarch64_general_init_builtins): ...this. Use
3073 aarch64_general_add_builtin instead of add_builtin_function.
3074 (aarch64_builtin_decl): Rename to...
3075 (aarch64_general_builtin_decl): ...this and remove the unused
3076 arguments.
3077 (aarch64_expand_builtin): Rename to...
3078 (aarch64_general_expand_builtin): ...this and remove the unused
3079 arguments.
3080 (aarch64_builtin_rsqrt): Rename to...
3081 (aarch64_general_builtin_rsqrt): ...this.
3082 (aarch64_fold_builtin): Rename to...
3083 (aarch64_general_fold_builtin): ...this. Take the function subcode
3084 and return type as arguments. Remove the "ignored" argument.
3085 (aarch64_gimple_fold_builtin): Rename to...
3086 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3087 subcode and gcall as arguments, and return the new function call.
3088 * config/aarch64/aarch64.c (aarch64_init_builtins)
3089 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3090 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3091 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3092 instead of aarch64_builtin_rsqrt.
3093 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3094 instead of aarch64_mangle_builtin_type.
3095
3096 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3097
3098 * target.def (check_builtin_call): New target hook.
3099 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3100 * doc/tm.texi: Regenerate.
3101
3102 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3103
3104 PR tree-optimization/91909
3105 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3106 reduc_index parameter. When handling COND_REDUCTION, make sure
3107 that the reduction phi operand is in the correct arm of the
3108 VEC_COND_EXPR.
3109 (vectorizable_reduction): Pass reduc_index to the above.
3110
3111 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3112
3113 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3114 New combine pattern.
3115
3116 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3117
3118 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3119 loop instruction into new basic block before the loop when basic
3120 block that precedes the loop is empty.
3121
3122 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3123
3124 * function.c (gimplify_parameters): Use build_clobber function.
3125 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3126 * tree-inline.c (expand_call_inline): Likewise.
3127 * tree-sra.c (clobber_subtree): Likewise.
3128 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3129 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3130 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3131 lower_omp_target): Likewise.
3132 * omp-expand.c (expand_omp_for_generic): Likewise.
3133 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3134
3135 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3136
3137 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3138 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3139 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3140 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3141 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3142 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3143 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3144 LD_ELEMREV_V16QI): Use the PURE attribute.
3145
3146 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3147
3148 * config/rs6000/darwin.md: Replace the expanders for
3149 load_macho_picbase and reload_macho_picbase with use of '@'
3150 and <mode> in their respective define_insns.
3151 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3152 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3153 Pmode to gen_load_macho_picbase.
3154 * config/rs6000/rs6000.md: Likewise.
3155
3156 2019-09-25 Richard Biener <rguenther@suse.de>
3157
3158 PR tree-optimization/91896
3159 * tree-vect-loop.c (vectorizable_reduction): The single
3160 def-use cycle optimization cannot apply when there's more
3161 than one pattern stmt involved.
3162
3163 2019-09-26 Richard Biener <rguenther@suse.de>
3164
3165 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3166 loop-closed PHIs that are vect_internal_def.
3167 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3168 Simplify.
3169 (vectorizable_lc_phi): New.
3170 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3171 (vect_transform_stmt): Likewise.
3172 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3173 (vectorizable_lc_phi): Declare.
3174
3175 2019-09-26 Richard Biener <rguenther@suse.de>
3176
3177 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3178 vectorizable_reduction for vect_double_reduction_def.
3179 (vect_transform_loop): Likewise.
3180 (vect_create_epilog_for_reduction): Move double-reduction
3181 PHI creation and preheader argument setting of PHIs ...
3182 (vectorizable_reduction): ... here. Also process
3183 vect_double_reduction_def PHIs, creating the vectorized
3184 PHI nodes, remembering the scalar adjustment computed for
3185 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3186 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3187 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3188 Initialize STMT_VINFO_REDUC_CODE.
3189 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3190 (_stmt_vec_info::reduc_code): Likewise.
3191 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3192 (STMT_VINFO_REDUC_CODE): Likewise.
3193
3194 2019-09-26 Matt Turner <mattst88@gmail.com>
3195
3196 PR driver/69471
3197 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3198 (mtune=): Add Negative(mtune=).
3199 (mcpu=): Add Negative(mcpu=).
3200 * config/arm/arm.opt: Likewise.
3201
3202 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3203
3204 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3205 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3206 Define.
3207 * config/arm/arm_acle.h: Define builtins for the above.
3208 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3209 (simd32_op): Handle the above.
3210 * config/arm/unspecs.md: Define unspecs for the above.
3211
3212 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3213
3214 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3215 (arm_<sup>xtb16): Likewise.
3216 (arm_usada8): Likewise.
3217 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3218 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3219 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3220 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3221 __sxtb16, __uxtab16, __uxtb16): Define.
3222 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3223 * config/arm/unspecs.md: Define unspecs for the above.
3224 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3225 (USXTB16): Likewise.
3226 (simd32_op): New int_attribute.
3227 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3228 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3229
3230 2019-09-26 Martin Jambor <mjambor@suse.cz>
3231
3232 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3233 internal_error.
3234
3235 2019-09-26 Martin Jambor <mjambor@suse.cz>
3236
3237 * ipa-sra.c (process_scan_results): Fix continue condition.
3238
3239 2019-09-26 Martin Liska <mliska@suse.cz>
3240
3241 PR tree-optimization/91885
3242 * tree-vectorizer.c (try_vectorize_loop_1): Add
3243 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3244
3245 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3248 aarch64_plus_immediate rather than aarch64_uimm12_shift
3249 to test for valid PLUS immediates.
3250
3251 2019-09-25 Martin Jambor <mjambor@suse.cz>
3252
3253 * tree-sra.c (no_accesses_p): Remove.
3254 (no_accesses_representant): Likewise.
3255
3256 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3257
3258 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3259 consistenly.
3260 (vaba_s16): Likewise.
3261 (vaba_s32): Likewise.
3262 (vaba_u8): Likewise.
3263 (vaba_u16): Likewise.
3264 (vaba_u32): Likewise.
3265 (vabal_high_s8): Likewise.
3266 (vabal_high_s16): Likewise.
3267 (vabal_high_s32): Likewise.
3268 (vabal_high_u8): Likewise.
3269 (vabal_high_u16): Likewise.
3270 (vabal_high_u32): Likewise.
3271 (vabal_s8): Likewise.
3272 (vabal_s16): Likewise.
3273 (vabal_s32): Likewise.
3274 (vabal_u8): Likewise.
3275 (vabal_u16): Likewise.
3276 (vabal_u32): Likewise.
3277 (vabaq_s8): Likewise.
3278 (vabaq_s16): Likewise.
3279 (vabaq_s32): Likewise.
3280 (vabaq_u8): Likewise.
3281 (vabaq_u16): Likewise.
3282 (vabaq_u32): Likewise.
3283 (vabd_s8): Likewise.
3284 (vabd_s16): Likewise.
3285 (vabd_s32): Likewise.
3286 (vabd_u8): Likewise.
3287 (vabd_u16): Likewise.
3288 (vabd_u32): Likewise.
3289 (vabdl_high_s8): Likewise.
3290 (vabdl_high_s16): Likewise.
3291 (vabdl_high_s32): Likewise.
3292 (vabdl_high_u8): Likewise.
3293 (vabdl_high_u16): Likewise.
3294 (vabdl_high_u32): Likewise.
3295 (vabdl_s8): Likewise.
3296 (vabdl_s16): Likewise.
3297 (vabdl_s32): Likewise.
3298 (vabdl_u8): Likewise.
3299 (vabdl_u16): Likewise.
3300 (vabdl_u32): Likewise.
3301 (vabdq_s8): Likewise.
3302 (vabdq_s16): Likewise.
3303 (vabdq_s32): Likewise.
3304 (vabdq_u8): Likewise.
3305 (vabdq_u16): Likewise.
3306 (vabdq_u32): Likewise.
3307 (vaddlv_s8): Likewise.
3308 (vaddlv_s16): Likewise.
3309 (vaddlv_u8): Likewise.
3310 (vaddlv_u16): Likewise.
3311 (vaddlvq_s8): Likewise.
3312 (vaddlvq_s16): Likewise.
3313 (vaddlvq_s32): Likewise.
3314 (vaddlvq_u8): Likewise.
3315 (vaddlvq_u16): Likewise.
3316 (vaddlvq_u32): Likewise.
3317 (vcvtx_f32_f64): Likewise.
3318 (vcvtx_high_f32_f64): Likewise.
3319 (vcvtxd_f32_f64): Likewise.
3320 (vmla_n_f32): Likewise.
3321 (vmla_n_s16): Likewise.
3322 (vmla_n_s32): Likewise.
3323 (vmla_n_u16): Likewise.
3324 (vmla_n_u32): Likewise.
3325 (vmla_s8): Likewise.
3326 (vmla_s16): Likewise.
3327 (vmla_s32): Likewise.
3328 (vmla_u8): Likewise.
3329 (vmla_u16): Likewise.
3330 (vmla_u32): Likewise.
3331 (vmlal_high_n_s16): Likewise.
3332 (vmlal_high_n_s32): Likewise.
3333 (vmlal_high_n_u16): Likewise.
3334 (vmlal_high_n_u32): Likewise.
3335 (vmlal_high_s8): Likewise.
3336 (vmlal_high_s16): Likewise.
3337 (vmlal_high_s32): Likewise.
3338 (vmlal_high_u8): Likewise.
3339 (vmlal_high_u16): Likewise.
3340 (vmlal_high_u32): Likewise.
3341 (vmlal_n_s16): Likewise.
3342 (vmlal_n_s32): Likewise.
3343 (vmlal_n_u16): Likewise.
3344 (vmlal_n_u32): Likewise.
3345 (vmlal_s8): Likewise.
3346 (vmlal_s16): Likewise.
3347 (vmlal_s32): Likewise.
3348 (vmlal_u8): Likewise.
3349 (vmlal_u16): Likewise.
3350 (vmlal_u32): Likewise.
3351 (vmlaq_n_f32): Likewise.
3352 (vmlaq_n_s16): Likewise.
3353 (vmlaq_n_s32): Likewise.
3354 (vmlaq_n_u16): Likewise.
3355 (vmlaq_n_u32): Likewise.
3356 (vmlaq_s8): Likewise.
3357 (vmlaq_s16): Likewise.
3358 (vmlaq_s32): Likewise.
3359 (vmlaq_u8): Likewise.
3360 (vmlaq_u16): Likewise.
3361 (vmlaq_u32): Likewise.
3362 (vmls_n_f32): Likewise.
3363 (vmls_n_s16): Likewise.
3364 (vmls_n_s32): Likewise.
3365 (vmls_n_u16): Likewise.
3366 (vmls_n_u32): Likewise.
3367 (vmls_s8): Likewise.
3368 (vmls_s16): Likewise.
3369 (vmls_s32): Likewise.
3370 (vmls_u8): Likewise.
3371 (vmls_u16): Likewise.
3372 (vmls_u32): Likewise.
3373 (vmlsl_high_n_s16): Likewise.
3374 (vmlsl_high_n_s32): Likewise.
3375 (vmlsl_high_n_u16): Likewise.
3376 (vmlsl_high_n_u32): Likewise.
3377 (vmlsl_high_s8): Likewise.
3378 (vmlsl_high_s16): Likewise.
3379 (vmlsl_high_s32): Likewise.
3380 (vmlsl_high_u8): Likewise.
3381 (vmlsl_high_u16): Likewise.
3382 (vmlsl_high_u32): Likewise.
3383 (vmlsl_n_s16): Likewise.
3384 (vmlsl_n_s32): Likewise.
3385 (vmlsl_n_u16): Likewise.
3386 (vmlsl_n_u32): Likewise.
3387 (vmlsl_s8): Likewise.
3388 (vmlsl_s16): Likewise.
3389 (vmlsl_s32): Likewise.
3390 (vmlsl_u8): Likewise.
3391 (vmlsl_u16): Likewise.
3392 (vmlsl_u32): Likewise.
3393 (vmlsq_n_f32): Likewise.
3394 (vmlsq_n_s16): Likewise.
3395 (vmlsq_n_s32): Likewise.
3396 (vmlsq_n_u16): Likewise.
3397 (vmlsq_n_u32): Likewise.
3398 (vmlsq_s8): Likewise.
3399 (vmlsq_s16): Likewise.
3400 (vmlsq_s32): Likewise.
3401 (vmlsq_u8): Likewise.
3402 (vmlsq_u16): Likewise.
3403 (vmlsq_u32): Likewise.
3404 (vmovl_high_s8): Likewise.
3405 (vmovl_high_s16): Likewise.
3406 (vmovl_high_s32): Likewise.
3407 (vmovl_high_u8): Likewise.
3408 (vmovl_high_u16): Likewise.
3409 (vmovl_high_u32): Likewise.
3410 (vmovl_s8): Likewise.
3411 (vmovl_s16): Likewise.
3412 (vmovl_s32): Likewise.
3413 (vmovl_u8): Likewise.
3414 (vmovl_u16): Likewise.
3415 (vmovl_u32): Likewise.
3416 (vmovn_high_s16): Likewise.
3417 (vmovn_high_s32): Likewise.
3418 (vmovn_high_s64): Likewise.
3419 (vmovn_high_u16): Likewise.
3420 (vmovn_high_u32): Likewise.
3421 (vmovn_high_u64): Likewise.
3422 (vmovn_s16): Likewise.
3423 (vmovn_s32): Likewise.
3424 (vmovn_s64): Likewise.
3425 (vmovn_u16): Likewise.
3426 (vmovn_u32): Likewise.
3427 (vmovn_u64): Likewise.
3428 (vmull_high_n_s16): Likewise.
3429 (vmull_high_n_s32): Likewise.
3430 (vmull_high_n_u16): Likewise.
3431 (vmull_high_n_u32): Likewise.
3432 (vmull_high_p8): Likewise.
3433 (vmull_high_s8): Likewise.
3434 (vmull_high_s16): Likewise.
3435 (vmull_high_s32): Likewise.
3436 (vmull_high_u8): Likewise.
3437 (vmull_high_u16): Likewise.
3438 (vmull_high_u32): Likewise.
3439 (vmull_n_s16): Likewise.
3440 (vmull_n_s32): Likewise.
3441 (vmull_n_u16): Likewise.
3442 (vmull_n_u32): Likewise.
3443 (vmull_p8): Likewise.
3444 (vmull_s8): Likewise.
3445 (vmull_s16): Likewise.
3446 (vmull_s32): Likewise.
3447 (vmull_u8): Likewise.
3448 (vmull_u16): Likewise.
3449 (vmull_u32): Likewise.
3450 (vpadal_s8): Likewise.
3451 (vpadal_s16): Likewise.
3452 (vpadal_s32): Likewise.
3453 (vpadal_u8): Likewise.
3454 (vpadal_u16): Likewise.
3455 (vpadal_u32): Likewise.
3456 (vpadalq_s8): Likewise.
3457 (vpadalq_s16): Likewise.
3458 (vpadalq_s32): Likewise.
3459 (vpadalq_u8): Likewise.
3460 (vpadalq_u16): Likewise.
3461 (vpadalq_u32): Likewise.
3462 (vpaddl_s8): Likewise.
3463 (vpaddl_s16): Likewise.
3464 (vpaddl_s32): Likewise.
3465 (vpaddl_u8): Likewise.
3466 (vpaddl_u16): Likewise.
3467 (vpaddl_u32): Likewise.
3468 (vpaddlq_s8): Likewise.
3469 (vpaddlq_s16): Likewise.
3470 (vpaddlq_s32): Likewise.
3471 (vpaddlq_u8): Likewise.
3472 (vpaddlq_u16): Likewise.
3473 (vpaddlq_u32): Likewise.
3474 (vpaddq_s8): Likewise.
3475 (vpaddq_s16): Likewise.
3476 (vpaddq_s32): Likewise.
3477 (vpaddq_s64): Likewise.
3478 (vpaddq_u8): Likewise.
3479 (vpaddq_u16): Likewise.
3480 (vpaddq_u32): Likewise.
3481 (vpaddq_u64): Likewise.
3482 (vqdmulh_n_s16): Likewise.
3483 (vqdmulh_n_s32): Likewise.
3484 (vqdmulhq_n_s16): Likewise.
3485 (vqdmulhq_n_s32): Likewise.
3486 (vqmovn_high_s16): Likewise.
3487 (vqmovn_high_s32): Likewise.
3488 (vqmovn_high_s64): Likewise.
3489 (vqmovn_high_u16): Likewise.
3490 (vqmovn_high_u32): Likewise.
3491 (vqmovn_high_u64): Likewise.
3492 (vqmovun_high_s16): Likewise.
3493 (vqmovun_high_s32): Likewise.
3494 (vqmovun_high_s64): Likewise.
3495 (vqrdmulh_n_s16): Likewise.
3496 (vqrdmulh_n_s32): Likewise.
3497 (vqrdmulhq_n_s16): Likewise.
3498 (vqrdmulhq_n_s32): Likewise.
3499 (vrsqrte_u32): Likewise.
3500 (vrsqrteq_u32): Likewise.
3501 (vtst_p8): Likewise.
3502 (vtst_p16): Likewise.
3503 (vtst_p64): Likewise.
3504 (vtstq_p8): Likewise.
3505 (vtstq_p16): Likewise.
3506 (vtstq_p64): Likewise.
3507 (vaddlv_s32): Likewise.
3508 (vaddlv_u32): Likewise.
3509 (vqtbl1_p8): Likewise.
3510 (vqtbl1_s8): Likewise.
3511 (vqtbl1_u8): Likewise.
3512 (vqtbl1q_p8): Likewise.
3513 (vqtbl1q_s8): Likewise.
3514 (vqtbl1q_u8): Likewise.
3515 (vqtbx1_s8): Likewise.
3516 (vqtbx1_u8): Likewise.
3517 (vqtbx1_p8): Likewise.
3518 (vqtbx1q_s8): Likewise.
3519 (vqtbx1q_u8): Likewise.
3520 (vqtbx1q_p8): Likewise.
3521 (vtbl1_s8): Likewise.
3522 (vtbl1_u8): Likewise.
3523 (vtbl1_p8): Likewise.
3524 (vtbl2_s8): Likewise.
3525 (vtbl2_u8): Likewise.
3526 (vtbl2_p8): Likewise.
3527 (vtbl3_s8): Likewise.
3528 (vtbl3_u8): Likewise.
3529 (vtbl3_p8): Likewise.
3530 (vtbl4_s8): Likewise.
3531 (vtbl4_u8): Likewise.
3532 (vtbl4_p8): Likewise.
3533 (vtbx2_s8): Likewise.
3534 (vtbx2_u8): Likewise.
3535 (vtbx2_p8): Likewise.
3536 (vld1_f32): Likewise.
3537 (vld1_f64): Likewise.
3538 (vld1_p8): Likewise.
3539 (vld1_p16): Likewise.
3540 (vld1_p64): Likewise.
3541 (vld1_s8): Likewise.
3542 (vld1_s16): Likewise.
3543 (vld1_s32): Likewise.
3544 (vld1_s64): Likewise.
3545 (vld1_u8): Likewise.
3546 (vld1_u16): Likewise.
3547 (vld1_u32): Likewise.
3548 (vld1_u64): Likewise.
3549 (vld1q_f32): Likewise.
3550 (vld1q_f64): Likewise.
3551 (vld1q_p8): Likewise.
3552 (vld1q_p16): Likewise.
3553 (vld1q_p64): Likewise.
3554 (vld1q_s8): Likewise.
3555 (vld1q_s16): Likewise.
3556 (vld1q_s32): Likewise.
3557 (vld1q_s64): Likewise.
3558 (vld1q_u8): Likewise.
3559 (vld1q_u16): Likewise.
3560 (vld1q_u32): Likewise.
3561 (vld1q_u64): Likewise.
3562 (vpmax_s8): Likewise.
3563 (vpmax_s16): Likewise.
3564 (vpmax_s32): Likewise.
3565 (vpmax_u8): Likewise.
3566 (vpmax_u16): Likewise.
3567 (vpmax_u32): Likewise.
3568 (vpmaxq_s8): Likewise.
3569 (vpmaxq_s16): Likewise.
3570 (vpmaxq_s32): Likewise.
3571 (vpmaxq_u8): Likewise.
3572 (vpmaxq_u16): Likewise.
3573 (vpmaxq_u32): Likewise.
3574 (vpmax_f32): Likewise.
3575 (vpmaxq_f32): Likewise.
3576 (vpmaxq_f64): Likewise.
3577 (vpmaxqd_f64): Likewise.
3578 (vpmaxs_f32): Likewise.
3579 (vpmaxnm_f32): Likewise.
3580 (vpmaxnmq_f32): Likewise.
3581 (vpmaxnmq_f64): Likewise.
3582 (vpmaxnmqd_f64): Likewise.
3583 (vpmaxnms_f32): Likewise.
3584 (vpmin_s8): Likewise.
3585 (vpmin_s16): Likewise.
3586 (vpmin_s32): Likewise.
3587 (vpmin_u8): Likewise.
3588 (vpmin_u16): Likewise.
3589 (vpmin_u32): Likewise.
3590 (vpminq_s8): Likewise.
3591 (vpminq_s16): Likewise.
3592 (vpminq_s32): Likewise.
3593 (vpminq_u8): Likewise.
3594 (vpminq_u16): Likewise.
3595 (vpminq_u32): Likewise.
3596 (vpmin_f32): Likewise.
3597 (vpminq_f32): Likewise.
3598 (vpminq_f64): Likewise.
3599 (vpminqd_f64): Likewise.
3600 (vpmins_f32): Likewise.
3601 (vpminnm_f32): Likewise.
3602 (vpminnmq_f32): Likewise.
3603 (vpminnmq_f64): Likewise.
3604 (vpminnmqd_f64): Likewise.
3605 (vpminnms_f32): Likewise.
3606 (vmla_f32): Likewise.
3607 (vmlaq_f32): Likewise.
3608 (vmlaq_f64): Likewise.
3609 (vmls_f32): Likewise.
3610 (vmlsq_f32): Likewise.
3611 (vmlsq_f64): Likewise.
3612 (vqtbl2_s8): Likewise.
3613 (vqtbl2_u8): Likewise.
3614 (vqtbl2_p8): Likewise.
3615 (vqtbl2q_s8): Likewise.
3616 (vqtbl2q_u8): Likewise.
3617 (vqtbl2q_p8): Likewise.
3618 (vqtbl3_s8): Likewise.
3619 (vqtbl3_u8): Likewise.
3620 (vqtbl3_p8): Likewise.
3621 (vqtbl3q_s8): Likewise.
3622 (vqtbl3q_u8): Likewise.
3623 (vqtbl3q_p8): Likewise.
3624 (vqtbl4_s8): Likewise.
3625 (vqtbl4_u8): Likewise.
3626 (vqtbl4_p8): Likewise.
3627 (vqtbl4q_s8): Likewise.
3628 (vqtbl4q_u8): Likewise.
3629 (vqtbl4q_p8): Likewise.
3630 (vqtbx2_s8): Likewise.
3631 (vqtbx2_u8): Likewise.
3632 (vqtbx2_p8): Likewise.
3633 (vqtbx2q_s8): Likewise.
3634 (vqtbx2q_u8): Likewise.
3635 (vqtbx2q_p8): Likewise.
3636 (vqtbx3_s8): Likewise.
3637 (vqtbx3_u8): Likewise.
3638 (vqtbx3_p8): Likewise.
3639 (vqtbx3q_s8): Likewise.
3640 (vqtbx3q_u8): Likewise.
3641 (vqtbx3q_p8): Likewise.
3642 (vqtbx4_s8): Likewise.
3643 (vqtbx4_u8): Likewise.
3644 (vqtbx4_p8): Likewise.
3645 (vqtbx4q_s8): Likewise.
3646 (vqtbx4q_u8): Likewise.
3647 (vqtbx4q_p8): Likewise.
3648 (vrev16_p8): Likewise.
3649 (vrev16_s8): Likewise.
3650 (vrev16_u8): Likewise.
3651 (vrev16q_p8): Likewise.
3652 (vrev16q_s8): Likewise.
3653 (vrev16q_u8): Likewise.
3654 (vrev32_p8): Likewise.
3655 (vrev32_p16): Likewise.
3656 (vrev32_s8): Likewise.
3657 (vrev32_s16): Likewise.
3658 (vrev32_u8): Likewise.
3659 (vrev32_u16): Likewise.
3660 (vrev32q_p8): Likewise.
3661 (vrev32q_p16): Likewise.
3662 (vrev32q_s8): Likewise.
3663 (vrev32q_s16): Likewise.
3664 (vrev32q_u8): Likewise.
3665 (vrev32q_u16): Likewise.
3666 (vrev64_f32): Likewise.
3667 (vrev64_p8): Likewise.
3668 (vrev64_p16): Likewise.
3669 (vrev64_s8): Likewise.
3670 (vrev64_s16): Likewise.
3671 (vrev64_s32): Likewise.
3672 (vrev64_u8): Likewise.
3673 (vrev64_u16): Likewise.
3674 (vrev64_u32): Likewise.
3675 (vrev64q_f32): Likewise.
3676 (vrev64q_p8): Likewise.
3677 (vrev64q_p16): Likewise.
3678 (vrev64q_s8): Likewise.
3679 (vrev64q_s16): Likewise.
3680 (vrev64q_s32): Likewise.
3681 (vrev64q_u8): Likewise.
3682 (vrev64q_u16): Likewise.
3683 (vrev64q_u32): Likewise.
3684 (vsha1cq_u32): Likewise.
3685 (vsha1mq_u32): Likewise.
3686 (vsha1pq_u32): Likewise.
3687 (vsha1h_u32): Likewise.
3688 (vsha1su0q_u32): Likewise.
3689 (vsha1su1q_u32): Likewise.
3690 (vsha256hq_u32): Likewise.
3691 (vsha256h2q_u32): Likewise.
3692 (vsha256su0q_u32): Likewise.
3693 (vsha256su1q_u32): Likewise.
3694 (vmull_p64): Likewise.
3695 (vmull_high_p64): Likewise.
3696 (vsqrt_f32): Likewise.
3697 (vsqrtq_f32): Likewise.
3698 (vsqrt_f64): Likewise.
3699 (vsqrtq_f64): Likewise.
3700 (vst1_f32): Likewise.
3701 (vst1_f64): Likewise.
3702 (vst1_p8): Likewise.
3703 (vst1_p16): Likewise.
3704 (vst1_p64): Likewise.
3705 (vst1_s8): Likewise.
3706 (vst1_s16): Likewise.
3707 (vst1_s32): Likewise.
3708 (vst1_s64): Likewise.
3709 (vst1_u8): Likewise.
3710 (vst1_u16): Likewise.
3711 (vst1_u32): Likewise.
3712 (vst1_u64): Likewise.
3713 (vst1q_f32): Likewise.
3714 (vst1q_f64): Likewise.
3715 (vst1q_p8): Likewise.
3716 (vst1q_p16): Likewise.
3717 (vst1q_p64): Likewise.
3718 (vst1q_s8): Likewise.
3719 (vst1q_s16): Likewise.
3720 (vst1q_s32): Likewise.
3721 (vst1q_s64): Likewise.
3722 (vst1q_u8): Likewise.
3723 (vst1q_u16): Likewise.
3724 (vst1q_u32): Likewise.
3725 (vst1q_u64): Likewise.
3726 (vst1_s64_x2): Likewise.
3727 (vst1_u64_x2): Likewise.
3728 (vst1_f64_x2): Likewise.
3729 (vst1_s8_x2): Likewise.
3730 (vst1_p8_x2): Likewise.
3731 (vst1_s16_x2): Likewise.
3732 (vst1_p16_x2): Likewise.
3733 (vst1_s32_x2): Likewise.
3734 (vst1_u8_x2): Likewise.
3735 (vst1_u16_x2): Likewise.
3736 (vst1_u32_x2): Likewise.
3737 (vst1_f16_x2): Likewise.
3738 (vst1_f32_x2): Likewise.
3739 (vst1_p64_x2): Likewise.
3740 (vst1q_s8_x2): Likewise.
3741 (vst1q_p8_x2): Likewise.
3742 (vst1q_s16_x2): Likewise.
3743 (vst1q_p16_x2): Likewise.
3744 (vst1q_s32_x2): Likewise.
3745 (vst1q_s64_x2): Likewise.
3746 (vst1q_u8_x2): Likewise.
3747 (vst1q_u16_x2): Likewise.
3748 (vst1q_u32_x2): Likewise.
3749 (vst1q_u64_x2): Likewise.
3750 (vst1q_f16_x2): Likewise.
3751 (vst1q_f32_x2): Likewise.
3752 (vst1q_f64_x2): Likewise.
3753 (vst1q_p64_x2): Likewise.
3754 (vst1_s64_x3): Likewise.
3755 (vst1_u64_x3): Likewise.
3756 (vst1_f64_x3): Likewise.
3757 (vst1_s8_x3): Likewise.
3758 (vst1_p8_x3): Likewise.
3759 (vst1_s16_x3): Likewise.
3760 (vst1_p16_x3): Likewise.
3761 (vst1_s32_x3): Likewise.
3762 (vst1_u8_x3): Likewise.
3763 (vst1_u16_x3): Likewise.
3764 (vst1_u32_x3): Likewise.
3765 (vst1_f16_x3): Likewise.
3766 (vst1_f32_x3): Likewise.
3767 (vst1_p64_x3): Likewise.
3768 (vst1q_s8_x3): Likewise.
3769 (vst1q_p8_x3): Likewise.
3770 (vst1q_s16_x3): Likewise.
3771 (vst1q_p16_x3): Likewise.
3772 (vst1q_s32_x3): Likewise.
3773 (vst1q_s64_x3): Likewise.
3774 (vst1q_u8_x3): Likewise.
3775 (vst1q_u16_x3): Likewise.
3776 (vst1q_u32_x3): Likewise.
3777 (vst1q_u64_x3): Likewise.
3778 (vst1q_f16_x3): Likewise.
3779 (vst1q_f32_x3): Likewise.
3780 (vst1q_f64_x3): Likewise.
3781 (vst1q_p64_x3): Likewise.
3782 (vst2_s64): Likewise.
3783 (vst2_u64): Likewise.
3784 (vst2_f64): Likewise.
3785 (vst2_s8): Likewise.
3786 (vst2_p8): Likewise.
3787 (vst2_s16): Likewise.
3788 (vst2_p16): Likewise.
3789 (vst2_s32): Likewise.
3790 (vst2_u8): Likewise.
3791 (vst2_u16): Likewise.
3792 (vst2_u32): Likewise.
3793 (vst2_f16): Likewise.
3794 (vst2_f32): Likewise.
3795 (vst2_p64): Likewise.
3796 (vst2q_s8): Likewise.
3797 (vst2q_p8): Likewise.
3798 (vst2q_s16): Likewise.
3799 (vst2q_p16): Likewise.
3800 (vst2q_s32): Likewise.
3801 (vst2q_s64): Likewise.
3802 (vst2q_u8): Likewise.
3803 (vst2q_u16): Likewise.
3804 (vst2q_u32): Likewise.
3805 (vst2q_u64): Likewise.
3806 (vst2q_f16): Likewise.
3807 (vst2q_f32): Likewise.
3808 (vst2q_f64): Likewise.
3809 (vst2q_p64): Likewise.
3810 (vst3_s64): Likewise.
3811 (vst3_u64): Likewise.
3812 (vst3_f64): Likewise.
3813 (vst3_s8): Likewise.
3814 (vst3_p8): Likewise.
3815 (vst3_s16): Likewise.
3816 (vst3_p16): Likewise.
3817 (vst3_s32): Likewise.
3818 (vst3_u8): Likewise.
3819 (vst3_u16): Likewise.
3820 (vst3_u32): Likewise.
3821 (vst3_f16): Likewise.
3822 (vst3_f32): Likewise.
3823 (vst3_p64): Likewise.
3824 (vst3q_s8): Likewise.
3825 (vst3q_p8): Likewise.
3826 (vst3q_s16): Likewise.
3827 (vst3q_p16): Likewise.
3828 (vst3q_s32): Likewise.
3829 (vst3q_s64): Likewise.
3830 (vst3q_u8): Likewise.
3831 (vst3q_u16): Likewise.
3832 (vst3q_u32): Likewise.
3833 (vst3q_u64): Likewise.
3834 (vst3q_f16): Likewise.
3835 (vst3q_f32): Likewise.
3836 (vst3q_f64): Likewise.
3837 (vst3q_p64): Likewise.
3838 (vst4_s64): Likewise.
3839 (vst4_u64): Likewise.
3840 (vst4_f64): Likewise.
3841 (vst4_s8): Likewise.
3842 (vst4_p8): Likewise.
3843 (vst4_s16): Likewise.
3844 (vst4_p16): Likewise.
3845 (vst4_s32): Likewise.
3846 (vst4_u8): Likewise.
3847 (vst4_u16): Likewise.
3848 (vst4_u32): Likewise.
3849 (vst4_f16): Likewise.
3850 (vst4_f32): Likewise.
3851 (vst4_p64): Likewise.
3852 (vst4q_s8): Likewise.
3853 (vst4q_p8): Likewise.
3854 (vst4q_s16): Likewise.
3855 (vst4q_p16): Likewise.
3856 (vst4q_s32): Likewise.
3857 (vst4q_s64): Likewise.
3858 (vst4q_u8): Likewise.
3859 (vst4q_u16): Likewise.
3860 (vst4q_u32): Likewise.
3861 (vst4q_u64): Likewise.
3862 (vst4q_f16): Likewise.
3863 (vst4q_f32): Likewise.
3864 (vst4q_f64): Likewise.
3865 (vst4q_p64): Likewise.
3866 (vtbx4_s8): Likewise.
3867 (vtbx4_u8): Likewise.
3868 (vtbx4_p8): Likewise.
3869 (vtrn_f32): Likewise.
3870 (vtrn_p8): Likewise.
3871 (vtrn_p16): Likewise.
3872 (vtrn_s8): Likewise.
3873 (vtrn_s16): Likewise.
3874 (vtrn_s32): Likewise.
3875 (vtrn_u8): Likewise.
3876 (vtrn_u16): Likewise.
3877 (vtrn_u32): Likewise.
3878 (vtrnq_f32): Likewise.
3879 (vtrnq_p8): Likewise.
3880 (vtrnq_p16): Likewise.
3881 (vtrnq_s8): Likewise.
3882 (vtrnq_s16): Likewise.
3883 (vtrnq_s32): Likewise.
3884 (vtrnq_u8): Likewise.
3885 (vtrnq_u16): Likewise.
3886 (vtrnq_u32): Likewise.
3887 (vrsqrte_f16): Likewise.
3888 (vrsqrteq_f16): Likewise.
3889 (vsqrt_f16): Likewise.
3890 (vsqrtq_f16): Likewise.
3891 (vabd_f16): Likewise.
3892 (vabdq_f16): Likewise.
3893 (vpadd_f16): Likewise.
3894 (vpaddq_f16): Likewise.
3895 (vpmax_f16): Likewise.
3896 (vpmaxq_f16): Likewise.
3897 (vpmaxnm_f16): Likewise.
3898 (vpmaxnmq_f16): Likewise.
3899 (vpmin_f16): Likewise.
3900 (vpminq_f16): Likewise.
3901 (vpminnm_f16): Likewise.
3902 (vpminnmq_f16): Likewise.
3903 (vrsqrts_f16): Likewise.
3904 (vrsqrtsq_f16): Likewise.
3905
3906 2019-09-25 Richard Biener <rguenther@suse.de>
3907
3908 PR tree-optimization/91896
3909 * tree-vect-loop.c (vectorizable_reduction): The single
3910 def-use cycle optimization cannot apply when there's more
3911 than one pattern stmt involved.
3912
3913 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3914
3915 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3916 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3917 (reload_macho_picbase_<mode>): Likewise.
3918
3919 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3920
3921 * config/rs6000/rs6000.md: Move darwin.md include until
3922 after the definition of the mode iterators.
3923
3924 2019-09-23 Martin Sebor <msebor@redhat.com>
3925
3926 PR tree-optimization/91570
3927 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3928 non-constant minlen, maxlen and maxbound.
3929
3930 2019-09-24 Richard Biener <rguenther@suse.de>
3931
3932 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3933 Rename to...
3934 (_stmt_vec_info::cond_reduc_code): ... this.
3935 (_stmt_vec_info::induc_cond_initial_val): Add.
3936 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3937 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3938 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3939 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3940 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3941 the reduction code.
3942 (vect_create_epilog_for_reduction): Drop special
3943 induction condition reduction params, pass in reduction code
3944 and simplify.
3945 (vectorizable_reduction): Perform condition reduction kind
3946 selection only at analysis time. Adjust passing on state.
3947
3948 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3949
3950 * config/aarch64/aarch64.md (mov<mode>): Don't call
3951 aarch64_split_dimode_const_store on volatile MEM.
3952
3953 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3954
3955 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3956 Update hwcap string for fp16fml.
3957
3958 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3959
3960 PR middle-end/91866
3961 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3962 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3963
3964 2019-09-24 Martin Liska <mliska@suse.cz>
3965
3966 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3967 instead of if-elseif-elseif-...
3968 * gimple-expr.c (extract_ops_from_tree): Likewise.
3969 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3970 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3971
3972 2019-09-24 Martin Jambor <mjambor@suse.cz>
3973
3974 PR ipa/91831
3975 * ipa-param-manipulation.c (carry_over_param): Make a method of
3976 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3977 in case of a context mismatch.
3978 (ipa_param_body_adjustments::common_initialization): Adjust call to
3979 carry_over_param.
3980 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3981 private method carry_over_param.
3982
3983 2019-09-24 Martin Jambor <mjambor@suse.cz>
3984
3985 PR ipa/91832
3986 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3987
3988 2019-09-24 Richard Biener <rguenther@suse.de>
3989
3990 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3991 base.
3992
3993 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3994
3995 * config/arm/t-arm (arm-builtins.o): Add dependency on
3996 arm_acle_builtins.def.
3997
3998 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3999
4000 PR target/91823
4001 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4002 canonical CONST_INTs. Use gen_rtvec.
4003
4004 2019-09-23 Richard Biener <rguenther@suse.de>
4005
4006 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4007 avoid adjusting by + 0 or * 1.
4008 (vect_create_epilog_for_reduction): Get reduction code only
4009 when necessary. Deal with adjustment_def only when necessary.
4010
4011 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4012
4013 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4014 memmodel index.
4015
4016 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4017
4018 PR ipa/91835
4019 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4020 "ipa-sra".
4021
4022 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4023
4024 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4025 code. Merge code blocks with common conditionals. Use declared
4026 macro instead of a magic number for PIC level.
4027
4028 2019-09-21 Martin Sebor <msebor@redhat.com>
4029
4030 PR middle-end/91830
4031 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4032 Simplify computation of the offset of the referenced subobject.
4033
4034 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4035
4036 * config/darwin.c (machopic_legitimize_pic_address): Check
4037 for lra not reload.
4038
4039 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4040
4041 * ira-conflicts.c (can_use_same_reg_p): New function.
4042 (process_reg_shuffles): Take an insn parameter. Ignore cases
4043 in which input operand op_num could seemingly never be allocated
4044 to the same register as the destination.
4045 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4046
4047 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4048
4049 * simplify-rtx.c (neg_const_int): Replace with...
4050 (neg_poly_int_rtx): ...this new function.
4051 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4052 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4053 (simplify_plus_minus): Likewise for constant terms here.
4054
4055 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4056
4057 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4058 HOST_WIDE_PRINT_UNSIGNED.
4059
4060 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4061
4062 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4063 character.
4064
4065 2019-09-20 Maya Rashish <coypu@sdf.org>
4066
4067 PR target/86811
4068 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4069 Define to speculation_safe_value_not_needed.
4070
4071 2019-09-20 Richard Biener <rguenther@suse.de>
4072 Uros Bizjak <ubizjak@gmail.com>
4073
4074 PR target/91814
4075 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4076 previous change.
4077 (general_scalar_chain::convert_op): Force not suitable memory
4078 operands to a register.
4079
4080 2019-09-20 Richard Biener <rguenther@suse.de>
4081
4082 PR tree-optimization/91821
4083 * tree-vect-loop.c (check_reduction_path): Check we can compute
4084 reduc_idx.
4085 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4086 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4087 operands in canonical order.
4088 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4089 STMT_VINFO_REDUC_IDX.
4090 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4091 (STMT_VINFO_REDUC_IDX): Likewise.
4092
4093 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4094
4095 PR target/91269
4096 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4097
4098 2019-09-20 Richard Biener <rguenther@suse.de>
4099
4100 PR tree-optimization/91822
4101 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4102 parameter.
4103 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4104 for reduc_index in nested cycles, adjust vectorizable_condition
4105 calls.
4106 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4107 parameter.
4108 (vect_analyze_stmt): Adjust.
4109 (vect_transform_stmt): Likewise.
4110
4111 2019-09-20 Richard Biener <rguenther@suse.de>
4112
4113 PR target/91767
4114 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4115 Ensure there's a sequence point between allocating the new register
4116 and passing a reference to a reg via regno_reg_rtx.
4117
4118 2019-09-20 Martin Jambor <mjambor@suse.cz>
4119
4120 * coretypes.h (cgraph_edge): Declare.
4121 * ipa-param-manipulation.c: Rewrite.
4122 * ipa-param-manipulation.h: Likewise.
4123 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4124 (OBJS): Added ipa-sra.o.
4125 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4126 and ref_p, added fields param_adjustments and performed_splits.
4127 (struct cgraph_clone_info): Remove ags_to_skip and
4128 combined_args_to_skip, new field param_adjustments.
4129 (cgraph_node::create_clone): Changed parameters to use
4130 ipa_param_adjustments.
4131 (cgraph_node::create_virtual_clone): Likewise.
4132 (cgraph_node::create_virtual_clone_with_body): Likewise.
4133 (tree_function_versioning): Likewise.
4134 (cgraph_build_function_type_skip_args): Removed.
4135 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4136 using ipa_param_adjustments.
4137 (clone_of_p): Likewise.
4138 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4139 (build_function_decl_skip_args): Likewise.
4140 (duplicate_thunk_for_node): Adjust parameters using
4141 ipa_param_body_adjustments, copy param_adjustments instead of
4142 args_to_skip.
4143 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4144 (cgraph_node::create_virtual_clone): Likewise.
4145 (cgraph_node::create_version_clone_with_body): Likewise.
4146 (cgraph_materialize_clone): Likewise.
4147 (symbol_table::materialize_all_clones): Likewise.
4148 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4149 ipa_replace_map check.
4150 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4151 (initialize_node_lattices): Make aware that some parameters might have
4152 already been removed.
4153 (want_remove_some_param_p): New function.
4154 (create_specialized_node): Convert to using ipa_param_adjustments and
4155 deal with possibly pre-existing adjustments.
4156 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4157 (output_node_opt_summary): Do not stream removed fields. Stream
4158 parameter adjustments instead of argumetns to skip.
4159 (input_node_opt_summary): Likewise.
4160 (input_node_opt_summary): Likewise.
4161 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4162 * lto-streamer.h (lto_section_type): Likewise.
4163 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4164 param_body_adjs.
4165 (copy_decl_to_var): Declare.
4166 * tree-inline.c (update_clone_info): Do not remap old_tree.
4167 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4168 statements, walk all extra generated statements and remap their
4169 operands.
4170 (redirect_all_calls): Add killed SSA names to a hash set.
4171 (remap_ssa_name): Do not remap killed SSA names.
4172 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4173 half of functionality moved to ipa_param_body_adjustments.
4174 (copy_decl_to_var): Make exported.
4175 (copy_body): Destroy killed_new_ssa_names hash set.
4176 (expand_call_inline): Remap performed splits.
4177 (update_clone_info): Likewise.
4178 (tree_function_versioning): Simplify tree_map processing. Updated to
4179 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4180 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4181 for the new interface.
4182 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4183 (simd_clone_compute_base_data_type): Likewise.
4184 (simd_clone_init_simd_arrays): Adjust for the new interface.
4185 (simd_clone_adjust_argument_types): Likewise.
4186 (struct modify_stmt_info): Likewise.
4187 (ipa_simd_modify_stmt_ops): Likewise.
4188 (ipa_simd_modify_function_body): Likewise.
4189 (simd_clone_adjust): Likewise.
4190 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4191 (type_internals_preclude_sra_p): Make public.
4192 * tree-sra.h: New file.
4193 * ipa-inline-transform.c (save_inline_function_body): Update to
4194 refelct new tree_function_versioning signature.
4195 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4196 ipa_param_adjustments to get current parameter indices.
4197 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4198 (ipcp_update_bits): Likewise.
4199 (ipcp_update_vr): Likewise.
4200 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4201 * ipa-sra.c: New file.
4202 * multiple_target.c (create_target_clone): Update to reflet new type
4203 of create_version_clone_with_body.
4204 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4205 tree_function_versioning.
4206 (modify_function): Update to reflect new type of
4207 tree_function_versioning.
4208 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4209 * passes.def: Remove old IPA-SRA and add new one.
4210 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4211 (make_pass_ipa_sra): Declare.
4212 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4213 ipa_sra_retvalues.
4214 * doc/invoke.texi (ipa-sra-max-replacements): New.
4215
4216 2019-09-19 Martin Sebor <msebor@redhat.com>
4217
4218 PR middle-end/91631
4219 * builtins.c (component_size): Correct trailing array computation,
4220 rename to component_ref_size and move...
4221 (compute_objsize): Adjust.
4222 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4223 (builtin_access::strict): Do not consider memmove.
4224 (builtin_access::write_off): New function.
4225 (builtin_memref::builtin_memref): Initialize refsize.
4226 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4227 refsize.
4228 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4229 Handle refsize.
4230 (builtin_access::builtin_access): Initialize dstoff to destination
4231 refeence offset here instead of in maybe_diag_overlap. Adjust
4232 referencess even to unrelated objects. Adjust sizrange of bounded
4233 string functions to reflect bound. For strcat, adjust destination
4234 sizrange by that of source.
4235 (builtin_access::strcat_overlap): Adjust offsets and sizes
4236 to reflect the increase in destination sizrange above.
4237 (builtin_access::overlap): Do not set dstoff here but instead
4238 in builtin_access::builtin_access.
4239 (check_bounds_or_overlap): Use builtin_access::write_off.
4240 (maybe_diag_access_bounds): Add argument. Add informational notes.
4241 (dump_builtin_memref, dump_builtin_access): New functions.
4242 * tree.c (component_ref_size): ...to here.
4243 * tree.h (component_ref_size): Declare.
4244 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4245 nul in the size of the source string.
4246
4247 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4248
4249 PR c/67224
4250 * doc/cpp.texi: Document support for extended characters in
4251 identifiers.
4252 * doc/cppopts.texi: Likewise.
4253
4254 2019-09-19 Richard Biener <rguenther@suse.de>
4255
4256 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4257 (check_reduction_path): New overload having the path as result.
4258 (vect_is_simple_reduction): From the detected reduction
4259 path build a SLP reduction chain if possible.
4260
4261 2019-09-19 Richard Biener <rguenther@suse.de>
4262
4263 PR target/91814
4264 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4265 Force operand to a register if it isn't nonimmediate_operand.
4266
4267 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4268
4269 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4270 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4271 (logical_op): Remove code attribute.
4272 (logical_OP): Likewise.
4273
4274 2019-09-19 Martin Liska <mliska@suse.cz>
4275
4276 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4277 Use proper casting.
4278
4279 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4280
4281 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4282 registers with %R.
4283
4284 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4285 for NE comparison of TImode values.
4286 (aarch64_emit_load_exclusive): Add support for TImode.
4287 (aarch64_emit_store_exclusive): Likewise.
4288 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4289 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4290 Change iterator from ALLI to ALLI_TI.
4291 (@atomic_compare_and_swap<JUST_TI>): New.
4292 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4293 (aarch64_load_exclusive_pair): New.
4294 (aarch64_store_exclusive_pair): New.
4295 * config/aarch64/iterators.md (JUST_TI): New.
4296
4297 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4298 strong_zero_p for aarch64_track_speculation; unify some code paths;
4299 use aarch64_gen_compare_reg instead of open-coding.
4300
4301 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4302 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4303 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4304 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4305 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4306 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4307 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4308 (atomic_<atomic_op><ALLI>): Likewise.
4309 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4310 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4311 * doc/invoke.texi: Document -moutline-atomics.
4312
4313 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4314
4315 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4316 trivial predicate for condition branch.
4317 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4318 for switch case.
4319 (compute_bb_predicates): Update predicate based on post-dominating
4320 relationship.
4321 (analyze_function_body): Calculate post-dominating information.
4322
4323 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4324
4325 * tree-vectorizer.h (vectorizable_condition): Take an int
4326 reduction index instead of a boolean flag.
4327 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4328 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4329 reductions if the reduction accumulator is the "then" rather
4330 than the "else" value.
4331 (vect_analyze_stmt): Update call accordingly.
4332 (vect_transform_stmt): Likewise.
4333 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4334 asserting that the index is > 0.
4335
4336 2019-09-19 Martin Liska <mliska@suse.cz>
4337
4338 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4339 (sort_congruence_classes_by_decl_uid): Likewise.
4340 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4341 easier sorting.
4342 (sem_item_optimizer::merge_classes): Likewise.
4343
4344 2019-09-19 Richard Biener <rguenther@suse.de>
4345
4346 PR tree-optimization/91812
4347 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4348 volatile loads.
4349
4350 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4351
4352 * defaults.h (TARGET_UNIT): New macro.
4353 (target_unit): New type.
4354 * rtl.h (native_encode_rtx, native_decode_rtx)
4355 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4356 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4357 * rtlanal.c (subreg_lsb_1): Delete.
4358 (subreg_size_lsb): New function.
4359 * simplify-rtx.c: Include rtx-vector-builder.h
4360 (simplify_immed_subreg): Delete.
4361 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4362 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4363 functions.
4364 (simplify_subreg): Use them.
4365 (test_vector_subregs_modes, test_vector_subregs_repeating)
4366 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4367 (test_vector_subregs): New functions.
4368 (test_vector_ops): Call test_vector_subregs for integer vector
4369 modes with at least 2 elements.
4370
4371 2019-09-19 Richard Biener <rguenther@suse.de>
4372
4373 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4374 LOOP_VINFO_OPERANDS_SWAPPED.
4375 (parloops_is_simple_reduction): Likewise.
4376 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4377 initialize operands_swapped.
4378 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4379 (vect_is_slp_reduction): Do not swap operands.
4380 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4381 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4382
4383 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4384
4385 PR target/87007
4386 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4387 Add avx_partial_xmm_update.
4388
4389 2019-09-18 Jim Wilson <jimw@sifive.com>
4390
4391 PR target/91683
4392 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4393 (riscv_move_integer): Likewise.
4394 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4395 riscv_move_integer arg.
4396 (riscv_legitimize_move): Likewise.
4397 (riscv_force_temporary): New parameter in_splitter. Don't call
4398 force_reg if true.
4399 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4400 arg.
4401 (riscv_add_offset): Likewise.
4402 (riscv_split_symbol): New parameter in_splitter. Pass to
4403 riscv_force_temporary.
4404 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4405 arg.
4406 (riscv_move_integer): New parameter in_splitter. New local
4407 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4408 in_splitter TRUE.
4409 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4410 riscv_split_symbol, and riscv_force_temporary args.
4411 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4412 riscv_move_integer arg.
4413 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4414
4415 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4416
4417 PR target/90878
4418 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4419 hard register store cost to 6.
4420
4421 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4422
4423 PR target/91446
4424 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4425 pseudo register store cost from 3 to 6 to make it the same as
4426 QImode and HImode.
4427
4428 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4429
4430 PR target/91738
4431 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4432 (one_cmpldi2): Likewise.
4433 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4434 of the constant parts is simple.
4435 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4436 (logical_op): Add new code attribute.
4437 (logical_OP): Likewise.
4438 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4439 (arm_iordi_operand): Add predicate.
4440 (arm_xordi_operand): Add predicate.
4441
4442 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4443
4444 * config/arm/arm.md (maddsidi4): Remove expander.
4445 (mulsidi3adddi): Remove pattern.
4446 (mulsidi3adddi_v6): Likewise.
4447 (mulsidi3_nov6): Likewise.
4448 (mulsidi3_v6): Likewise.
4449 (umulsidi3): Remove expander.
4450 (umulsidi3_nov6): Remove pattern.
4451 (umulsidi3_v6): Likewise.
4452 (umulsidi3adddi): Likewise.
4453 (umulsidi3adddi_v6): Likewise.
4454 (<Us>mulsidi3): Add combined expander.
4455 (<Us>maddsidi4): Likewise.
4456 (<US>mull): Add combined umull and smull pattern.
4457 (<US>mlal): Likewise.
4458 * config/arm/iterators.md (Us): Add new iterator.
4459
4460 2019-09-18 Richard Biener <rguenther@suse.de>
4461
4462 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4463 swapping.
4464 (vectorize_fold_left_reduction): Remove assert.
4465 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4466 operand in position 2. Remove assert.
4467
4468 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4469
4470 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4471 (smulsi3_highpart_nov6): Remove pattern.
4472 (smulsi3_highpart_v6): Likewise.
4473 (umulsi3_highpart): Likewise.
4474 (umulsi3_highpart_nov6): Likewise.
4475 (umulsi3_highpart_v6): Likewise.
4476 (<US>mull_high): Add new combined multiply pattern.
4477
4478 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4479
4480 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4481 (arm_mulsi3_v6): Likewise.
4482 (mulsi3addsi_v6): Likewise.
4483 (mulsi3subsi): Likewise.
4484 (mul): Add new multiply pattern.
4485 (mla): Likewise.
4486 (mls): Likewise.
4487
4488 2019-09-18 Richard Biener <rguenther@suse.de>
4489
4490 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4491 (parloops_valid_reduction_input_p): Copy from
4492 valid_reduction_input_p.
4493 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4494 (parloops_needs_fold_left_reduction_p): Copy from
4495 needs_fold_left_reduction_p.
4496 (parloops_is_simple_reduction): Copy from
4497 vect_is_simple_reduction.
4498 (parloops_force_simple_reduction): Copy from
4499 vect_force_simple_reduction.
4500 (gather_scalar_reductions): Adjust.
4501 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4502 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4503
4504 2019-09-18 Richard Biener <rguenther@suse.de>
4505
4506 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4507 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4508 static.
4509 (vect_create_epilog_for_reduction): Remove dead code.
4510
4511 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4512
4513 * varasm.c (assemble_real): Generate canonical const_ints.
4514
4515 2019-09-18 Richard Biener <rguenther@suse.de>
4516
4517 PR lto/91763
4518 * lto-streamer-in.c (input_eh_regions): Move EH init to
4519 lto_materialize_function.
4520 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4521 Likewise.
4522
4523 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4524
4525 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4526 are INTEGER_CSTs.
4527
4528 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4529
4530 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4531 of checking specifically for INTEGER_CST.
4532
4533 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4534
4535 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4536 sizes instead of uhwi sizes.
4537
4538 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4539
4540 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4541 (add_const_value_attribute): Handle CONST_POLY_INT.
4542
4543 2019-09-18 Martin Liska <mliska@suse.cz>
4544
4545 * dbgcnt.def (store_merging): New counter.
4546 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4547 Use it in store merging.
4548
4549 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4550
4551 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4552 function.
4553 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4554 * config/arm/arm.c (arm_sched_variable_issue): New function.
4555 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4556
4557 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4558
4559 * config/arm/types.md (no_reservation): New reservation.
4560 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4561 no_insn here.
4562 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4563 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4564 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4565 * config/arm/arm1020e.md (1020alu_op): Likewise.
4566 * config/arm/arm1026ejs.md (alu_op): Likewise.
4567 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4568 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4569 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4570 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4571 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4572 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4573 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4574 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4575 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4576 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4577 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4578 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4579 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4580 * config/arm/fa526.md (526_alu_op): Likewise.
4581 * config/arm/fa606te.md (606te_alu_op): Likewise.
4582 * config/arm/fa626te.md (626te_alu_op): Likewise.
4583 * config/arm/fa726te.md (726te_alu_op): Likewise.
4584 * config/arm/xgene1.md (xgene1_nop): Likewise.
4585
4586 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4587
4588 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4589 "no_insn" to "branch".
4590
4591 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4592
4593 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4594
4595 2019-09-17 Richard Biener <rguenther@suse.de>
4596
4597 PR debug/91772
4598 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4599 was missing generate locations only once.
4600
4601 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4602
4603 PR ipa/91089
4604 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4605 option.
4606 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4607 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4608 for switch default case using range analysis information.
4609
4610 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4611
4612 PR target/91749
4613 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4614 mode attributed is supported by FDPIC.
4615
4616 2019-09-17 Richard Biener <rguenther@suse.de>
4617
4618 PR tree-optimization/91790
4619 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4620 use the correct DR for setting up realignment.
4621
4622 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4623
4624 PR target/91719
4625 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4626 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4627 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4628 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4629
4630 2019-09-16 Jason Merrill <jason@redhat.com>
4631
4632 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4633
4634 2019-09-16 Martin Liska <mliska@suse.cz>
4635
4636 * gimple-fold.c (or_comparisons_1): Remove rules moved
4637 to ...
4638 * match.pd: ... here.
4639
4640 2019-09-16 Martin Liska <mliska@suse.cz>
4641
4642 * gimple-fold.c (or_comparisons_1): Remove rules
4643 moved to ...
4644 * match.pd: ... here.
4645
4646 2019-09-16 Martin Liska <mliska@suse.cz>
4647
4648 * genmatch.c (dt_node::append_simplify): Do not print
4649 warning when we have duplicate patterns belonging
4650 to a same simplify rule.
4651 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4652 (maybe_fold_comparisons_from_match_pd): Handle
4653 tcc_comparison as a results.
4654 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4655
4656 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4657 Qi Feng <ffengqi@linux.ibm.com>
4658
4659 PR middle-end/88784
4660 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4661 (x > y && x == XXX_MIN): Optimize into 'false'.
4662 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4663 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4664 (x < y && x == XXX_MAX): Optimize into 'false'.
4665 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4666 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4667 (x <= y || x != XXX_MIN): Optimize into 'true'.
4668 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4669 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4670 (x >= y || x != XXX_MAX): Optimize into 'true'.
4671 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4672
4673 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4674 Martin Liska <mliska@suse.cz>
4675
4676 * gimple-fold.c (and_comparisons_1): Add type as first
4677 argument.
4678 (and_var_with_comparison): Likewise.
4679 (and_var_with_comparison_1): Likewise.
4680 (or_comparisons_1): Likewise.
4681 (or_var_with_comparison): Likewise.
4682 (or_var_with_comparison_1): Likewise.
4683 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4684 (maybe_fold_or_comparisons): Likewise.
4685 (maybe_fold_comparisons_from_match_pd): New.
4686 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4687 (maybe_fold_or_comparisons): Likewise.
4688 * gimple.c (gimple_size): Make it public and add num_ops argument.
4689 (gimple_init): New function.
4690 (gimple_alloc): Call gimple_init.
4691 * gimple.h (gimple_size): New.
4692 (gimple_init): Likewise.
4693 * tree-if-conv.c (fold_or_predicates): Pass type.
4694 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4695 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4696 (optimize_vec_cond_expr): Likewise.
4697 (ovce_extract_ops): Return type of conditional expression.
4698 * tree-ssanames.c (init_ssa_name_imm_use): New.
4699 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4700 * tree-ssanames.h (init_ssa_name_imm_use): New.
4701
4702 2019-09-16 Richard Biener <rguenther@suse.de>
4703
4704 PR tree-optimization/91756
4705 PR tree-optimization/87132
4706 * tree-ssa-alias.h (enum translate_flags): New.
4707 (get_continuation_for_phi): Use it instead of simple bool flag.
4708 (walk_non_aliased_vuses): Likewise.
4709 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4710 (get_continuation_for_phi): When looking across backedges only
4711 disallow valueization.
4712 (walk_non_aliased_vuses): Adjust.
4713 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4714 if requested.
4715
4716 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4717
4718 PR middle-end/80791
4719 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4720 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4721 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4722 * target.def (have_count_reg_decr_p): New hook.
4723 (doloop_cost_for_generic): Likewise.
4724 (doloop_cost_for_address): Likewise.
4725 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4726 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4727 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4728 * doc/tm.texi: Regenerate.
4729 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4730 addend.
4731 (record_group): Init doloop_p.
4732 (add_candidate_1): Add optional argument doloop, change the handlings
4733 accordingly.
4734 (add_candidate): Likewise.
4735 (generic_predict_doloop_p): Update attribute.
4736 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4737 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4738 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4739 MIN_EXPR.
4740 (get_computation_cost): Update for doloop IV cand extra cost.
4741 (determine_group_iv_cost_cond): Update for doloop IV cand.
4742 (determine_iv_cost): Likewise.
4743 (ivopts_estimate_reg_pressure): Likewise.
4744 (may_eliminate_iv): Update handlings for doloop IV cand.
4745 (add_iv_candidate_for_doloop): New function.
4746 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4747 (iv_ca_set_no_cp): Update for doloop IV cand.
4748 (iv_ca_set_cp): Likewise.
4749 (iv_ca_dump): Dump register cost.
4750 (find_doloop_use): New function.
4751 (analyze_and_mark_doloop_use): Likewise.
4752 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4753
4754 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4755
4756 PR middle-end/91708
4757 * cse.c (cse_insn): Do not replace anything with a
4758 MEM.
4759
4760 2019-09-13 Ian Lance Taylor <iant@golang.org>
4761
4762 * doc/invoke.texi (Optimize Options): Fix typo.
4763
4764 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4765
4766 PR tree-optimization/89386
4767 * config/i386/sse.md (smulhrs<mode>3): New expander.
4768 (smulhrsv4hi3): Ditto.
4769
4770 2019-09-12 Richard Biener <rguenther@suse.de>
4771
4772 PR tree-optimization/91750
4773 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4774 in the type of the evolution.
4775
4776 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4777
4778 PR tree-optimization/89386
4779 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4780 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4781 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4782 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4783 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4784 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4785 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4786 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4787 (su, r): Handle the unspecs above.
4788 (bt): New int attribute.
4789 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4790 * internal-fn.c (first_commutative_argument): Commutativity info for
4791 above.
4792 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4793 (umulhrs_optab): New optabs.
4794 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4795 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4796 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4797 function.
4798 (vect_vect_recog_func_ptrs): Add it.
4799
4800 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4801
4802 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4803 code.
4804
4805 2019-09-11 Nathan Sidwell <nathan@acm.org>
4806
4807 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4808 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4809
4810 2019-09-11 Richard Biener <rguenther@suse.de>
4811
4812 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4813 * lto-wrapper.c (merge_and_complain): Pick up -g.
4814 (append_compiler_options): Likewise.
4815 (run_gcc): Re-instantiate handling -g0 at link-time.
4816 * doc/invoke.texi (flto): Document debug info generation.
4817
4818 2019-09-11 Richard Biener <rguenther@suse.de>
4819
4820 PR tree-optimization/90387
4821 * vr-values.c (vr_values::extract_range_basic): After inlining
4822 simplify non-constant __builtin_constant_p to false.
4823
4824 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4825
4826 PR rtl-optimization/89795
4827 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4828 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4829
4830 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4831
4832 PR tree-optimization/91723
4833 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4834 instead of pointer equality when checking if argument vectypes are
4835 the same.
4836
4837 PR middle-end/91725
4838 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4839 of get_nonzero_bits, only call it for integral types.
4840
4841 2019-09-11 Richard Biener <rguenther@suse.de>
4842
4843 Revert
4844 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4845
4846 * match.pd: Add flag_unsafe_math_optimizations check
4847 before deciding on the widest type in a binary math operation.
4848
4849 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4850
4851 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4852 and CALL_REALLY_USED_REGISTERS must be defined, and that
4853 CALL_REALLY_USED_REGISTERS is preferred.
4854 * doc/tm.texi: Regenerate.
4855 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4856 (call_really_used_regs): Likewise.
4857 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4858 CALL_REALLY_USED_REGISTERS are defined.
4859 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4860 initial value if defined.
4861 (initial_call_really_used_regs): Delete.
4862 (saved_call_really_used_regs): Likewise.
4863 (CALL_REALLY_USED_REGNO_P): Likewise.
4864 (init_reg_sets): Remove handling of call_really_used_regs.
4865 (save_register_info, restore_register_info, globalize_reg): Likewise.
4866 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4867 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4868 outside operand_reg_set.
4869 (fix_register): Don't change call_used_regs if
4870 CALL_REALLY_USED_REGISTERS is defined.
4871 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4872 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4873 instead of call_really_used_regs.
4874 (csky_conditional_register_usage): Remove the old handling of
4875 call_used_regs and change the handling of call_really_used_regs
4876 to use call_used_regs instead.
4877 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4878 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4879 making a register fixed.
4880 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4881 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4882 instead of call_really_used_regs.
4883 (m32r_conditional_register_usage): Don't set call_used_regs when
4884 making a register fixed.
4885 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4886 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4887 instead of call_really_used_regs.
4888 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4889 (mips_cfun_call_saved_reg_p): Likewise.
4890 (mips_swap_registers): Remove the old handling of call_used_regs
4891 and change the handling of call_really_used_regs to use call_used_regs
4892 instead.
4893 (mips_conditional_register_usage): Likewise.
4894 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4895 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4896 instead of call_really_used_regs.
4897 (mn10300_get_live_callee_saved_regs): Likewise.
4898 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4899 (mn10300_conditional_register_usage): Don't set call_used_regs when
4900 making a register fixed.
4901 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4902 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4903 Remove the old handling of call_used_regs and change the handling
4904 of call_really_used_regs to use call_used_regs instead.
4905 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4906 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4907 instead of call_really_used_regs.
4908 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4909 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4910 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4911 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4912 (s390_conditional_register_usage): Remove the old handling of
4913 call_used_regs and change the handling of call_really_used_regs
4914 to use call_used_regs instead.
4915 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4916 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4917 (sh_fix_range, reg_unused_after): Likewise.
4918 (sh_conditional_register_usage): Remove the old handling of
4919 call_used_regs and change the handling of call_really_used_regs
4920 to use call_used_regs instead.
4921 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4922 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4923 call_used_regs when making a register fixed.
4924 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4925 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4926 call_used_regs when making a register fixed.
4927 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4928 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4929 set call_used_regs when making a register fixed.
4930 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4931 * config/visium/visium.c (visium_conditional_register_usage): Remove
4932 the old handling of call_used_regs and change the handling of
4933 call_really_used_regs to use call_used_regs instead.
4934
4935 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4936
4937 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4938 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4939 * reginfo.c (call_used_regs): New macro.
4940
4941 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4942
4943 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4944 fixed_regs test.
4945 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4946 (bpf_expand_epilogue): Likewise.
4947 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4948 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4949 (ft32_expand_epilogue): Likewise.
4950 * config/i386/i386.c (ix86_save_reg): Likewise.
4951 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4952 (moxie_expand_epilogue): Likewise.
4953 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4954 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4955 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4956
4957 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4958
4959 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4960 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4961 instead of testing call_used_regs directly.
4962 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4963 (aarch64_components_for_bb): Likewise.
4964 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4965 * config/arc/arc.c (arc_must_save_register): Likewise.
4966 (arc_epilogue_uses): Likewise.
4967 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4968 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4969 (arm_compute_save_reg0_reg12_mask): Likewise.
4970 (arm_compute_save_core_reg_mask): Likewise.
4971 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4972 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4973 (cmse_nonsecure_entry_clear_before_return): Likewise.
4974 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4975 (arm_expand_epilogue): Likewise.
4976 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4977 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4978 (_reg_unused_after): Likewise.
4979 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4980 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4981 (add_to_reg, hwloop_optimize): Likewise.
4982 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4983 (bpf_expand_epilogue): Likewise.
4984 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4985 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4986 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4987 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4988 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4989 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4990 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4991 * config/frv/frv.c (frv_stack_info): Likewise.
4992 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4993 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4994 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4995 (move_callee_saved_registers): Likewise.
4996 * config/h8300/h8300.c (byte_reg): Likewise.
4997 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4998 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4999 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5000 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5001 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5002 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5003 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5004 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5005 * config/m32c/m32c.c (need_to_save): Likewise.
5006 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5007 * config/mcore/mcore.c (calc_live_regs): Likewise.
5008 * config/microblaze/microblaze.c (microblaze_must_save_register):
5009 Likewise.
5010 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5011 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5012 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5013 (mmix_expand_epilogue): Likewise.
5014 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5015 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5016 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5017 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5018 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5019 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5020 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5021 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5022 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5023 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5024 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5025 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5026 * config/rl78/rl78.c (need_to_save): Likewise.
5027 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5028 (rs6000_stack_info, generate_set_vrsave): Likewise.
5029 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5030 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5031 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5032 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5033 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5034 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5035 (save_local_or_in_reg_p): Likewise.
5036 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5037 (xstormy16_epilogue_uses): Likewise.
5038 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5039 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5040 * config/v850/v850.c (compute_register_save_size): Likewise.
5041 * config/vax/vax.c (vax_expand_prologue): Likewise.
5042 * config/visium/visium.c (visium_save_reg_p): Likewise.
5043 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5044 * cselib.c (cselib_process_insn): Likewise.
5045 * df-scan.c (df_get_entry_block_def_set): Likewise.
5046 * function.c (aggregate_value_p): Likewise.
5047 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5048 * ira-lives.c (process_bb_node_lives): Likewise.
5049 * ira.c (do_reload): Likewise.
5050 * lra-lives.c (process_bb_lives): Likewise.
5051 * lra-remat.c (lra_remat): Likewise.
5052 * lra.c (lra): Likewise.
5053 * postreload.c (reload_combine_recognize_pattern): Likewise.
5054 (reload_cse_move2add): Likewise.
5055 * recog.c (peep2_find_free_register): Likewise.
5056 * regrename.c (check_new_reg_p): Likewise.
5057 * reload.c (find_equiv_reg): Likewise.
5058 * reload1.c (reload, find_reg): Likewise.
5059 * sel-sched.c (init_hard_regs_data): Likewise.
5060
5061 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5062
5063 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5064 regs_invalidated_by_call & ~fixed_reg_set instead of
5065 call_used_or_fixed_regs & ~fixed_reg_set.
5066 * config/sh/sh.c (output_stack_adjust): Likewise.
5067
5068 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5069
5070 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5071 (call_used_reg_set): Delete.
5072 (call_used_or_fixed_regs): New macro.
5073 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5074 of call_used_reg_set.
5075 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5076 instead of call_used_regs.
5077 (save_call_clobbered_regs): Likewise.
5078 * cfgcleanup.c (old_insns_match_p): Likewise.
5079 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5080 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5081 Likewise.
5082 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5083 * config/sh/sh.c (output_stack_adjust): Likewise.
5084 * final.c (collect_fn_hard_reg_usage): Likewise.
5085 * ira-build.c (ira_build): Likewise.
5086 * ira-color.c (calculate_saved_nregs): Likewise.
5087 (allocno_reload_assign, calculate_spill_cost): Likewise.
5088 * ira-conflicts.c (ira_build_conflicts): Likewise.
5089 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5090 * ira-lives.c (process_bb_node_lives): Likewise.
5091 * ira.c (setup_reg_renumber): Likewise.
5092 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5093 * lra-constraints.c (need_for_call_save_p): Likewise.
5094 (need_for_split_p, inherit_in_ebb): Likewise.
5095 * lra-lives.c (process_bb_lives): Likewise.
5096 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5097 * postreload.c (reload_combine): Likewise.
5098 * regrename.c (find_rename_reg): Likewise.
5099 * reload1.c (reload_as_needed): Likewise.
5100 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5101 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5102 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5103
5104 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5105
5106 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5107 (no_caller_save_reg_set): Delete.
5108 * caller-save.c (init_caller_save): Don't initialize it.
5109 * ira-conflicts.c (ira_build_conflicts): Calculate
5110 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5111
5112 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5113
5114 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5115 (target_hard_regs::x_savable_regs): New field.
5116 (call_fixed_reg_set): Delete.
5117 (savable_regs): New macro,
5118 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5119 (init_reg_sets_1): Likewise. Initialize savable_regs.
5120 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5121 for all registers. Set savable_regs instead of call_fixed_reg_set.
5122 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5123 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5124 * config/sh/sh.c (output_stack_adjust): Likewise.
5125
5126 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5127
5128 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5129 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5130 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5131
5132 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5133
5134 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5135 * rtlanal.c (get_call_rtx_from): Likewise.
5136 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5137 than the pattern to get_call_rtx_from.
5138 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5139 an rtx_insn * instead of an rtx.
5140 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5141
5142 2019-09-10 Martin Liska <mliska@suse.cz>
5143
5144 * common.opt: Use newly added WarnRemoved.
5145 * config/aarch64/aarch64.opt: Likewise.
5146 * config/arm/arm.opt: Likewise.
5147 * config/i386/i386.opt: Likewise.
5148 * config/ia64/ia64.opt: Likewise.
5149 * config/rs6000/rs6000.opt: Likewise.
5150 * doc/options.texi: Document WarnRemoved properly.
5151 * dwarf2out.c (gen_producer_string): Handle renamed
5152 OPT_SPECIAL_warn_removed.
5153 * lto-opts.c (lto_write_options): Likewise.
5154 * lto-wrapper.c (merge_and_complain): Likewise.
5155 * opts-common.c (decode_cmdline_option): Likewise.
5156 (prune_options): Likewise.
5157 (read_cmdline_option): Likewise.
5158 (control_warning_option): Likewise.
5159 * opts.c (print_filtered_help): Likewise.
5160 * optc-gen.awk: Parse for WarnRemoved and make usage
5161 of Deprecated an error.
5162 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5163
5164 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5165
5166 * doc/install.texi: Fix syntax for html generation.
5167
5168 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5169
5170 PR middle-end/91680
5171 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5172 the shift type to type.
5173
5174 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5175
5176 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5177 FDPIC mode.
5178 (stack_protect_combined_test_insn): Likewise.
5179
5180 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5181 Mickaël Guêné <mickael.guene@st.com>
5182
5183 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5184 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5185 (load_tp_soft_fdpic): New pattern.
5186 (load_tp_soft): Disable in FDPIC mode.
5187
5188 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5189 Mickaël Guêné <mickael.guene@st.com>
5190
5191 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5192 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5193 (arm_call_tls_get_addr): Add FDPIC support.
5194 (legitimize_tls_address): Likewise.
5195 (arm_emit_tls_decoration): Likewise.
5196
5197 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5198 Mickaël Guêné <mickael.guene@st.com>
5199
5200 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5201 support.
5202 (arm_trampoline_init): Likewise.
5203 (arm_trampoline_adjust_address): Likewise.
5204 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5205
5206 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5207 Mickaël Guêné <mickael.guene@st.com>
5208
5209 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5210 (legitimize_pic_address): Enforce binding rules on function
5211 pointers in FDPIC mode.
5212 (arm_assemble_integer): Likewise.
5213
5214 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5215 Mickaël Guêné <mickael.guene@st.com>
5216
5217 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5218 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5219 FDPIC.
5220
5221 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5222 Mickaël Guêné <mickael.guene@st.com>
5223
5224 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5225 field.
5226
5227 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5228 Mickaël Guêné <mickael.guene@st.com>
5229
5230 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5231 in FDPIC mode.
5232 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5233 new function.
5234 * config/arm/arm.c (arm_option_override): Define pic register to
5235 FDPIC_REGNUM.
5236 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5237 have no decl or go through PLT.
5238 (calculate_pic_address_constant): New function.
5239 (legitimize_pic_address): Call calculate_pic_address_constant.
5240 (arm_load_pic_register): Handle TARGET_FDPIC.
5241 (arm_is_segment_info_known): New function.
5242 (arm_pic_static_addr): Add support for FDPIC.
5243 (arm_load_function_descriptor): New function.
5244 (arm_emit_call_insn): Add support for FDPIC.
5245 (arm_assemble_integer): Add support for FDPIC.
5246 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5247 Define. (FDPIC_REGNUM): New define.
5248 * config/arm/arm.md (call): Add support for FDPIC.
5249 (call_value): Likewise.
5250 (restore_pic_register_after_call): New pattern.
5251 (untyped_call): Disable if FDPIC.
5252 (untyped_return): Likewise.
5253 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5254
5255 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5256 Mickaël Guêné <mickael.guene@st.com>
5257
5258 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5259 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5260 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5261 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5262 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5263 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5264 * config/arm/uclinuxfdpiceabi.h: New file.
5265
5266 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5267
5268 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5269
5270 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5271 Mickaël Guêné <mickael.guene@st.com>
5272
5273 * config/arm/arm.opt: Add -mfdpic option.
5274 * doc/invoke.texi: Add documentation for -mfdpic.
5275
5276 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5277
5278 * expmed.c (extract_bit_field): Update function comment
5279 regarding alt_rtl.
5280 * expr.c (expand_expr_real): Update function comment
5281 regarding alt_rtl.
5282 (expand_misaligned_mem_ref): New helper function.
5283 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5284 Remove duplicate assignment to "base" at case MEM_REF.
5285 Remove a shadowed variable "unsignedp" at case VCE.
5286
5287 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5288
5289 * regset.h (regs_invalidated_by_call_regset): Delete.
5290 (fixed_reg_set_regset): Likewise.
5291 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5292 (fixed_reg_set_regset, persistent_obstack): Likewise.
5293 (init_reg_sets_1, globalize_reg): Update accordingly.
5294 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5295 instead of a bitmap.
5296 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5297 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5298 instead of regs_invalidated_by_call_regset.
5299 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5300 * df-scan.c (df_scan_start_dump): Likewise.
5301 * dse.c (copy_fixed_regs): Likewise.
5302 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5303
5304 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5305
5306 * array-traits.h: New file.
5307 * coretypes.h (array_traits, bitmap_view): New types.
5308 * bitmap.h: Include "array-traits.h"
5309 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5310 (base_bitmap_view, bitmap_view): New classes.
5311 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5312 * hard-reg-set.h: Include array-traits.h.
5313 (array_traits<HARD_REG_SET>): New struct.
5314 * regset.h (IOR_REG_SET_HRS): New macro.
5315 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5316 rather than iterating over each hard register.
5317 * sched-deps.c (sched_analyze_insn): Likewise.
5318 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5319
5320 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5321
5322 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5323 instead of a HARD_REG_SET *.
5324 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5325 (ira_build): Update call accordingly.
5326 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5327
5328 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5329
5330 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5331 (HARD_REG_SET::operator!=): Likewise.
5332 (hard_reg_set_equal_p): Delete.
5333 * cfgcleanup.c (old_insns_match_p): Use == instead of
5334 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5335 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5336 (add_allocno_hard_regs_to_forest): Likewise.
5337 (setup_allocno_available_regs_num): Likewise.
5338 * ira.c (setup_pressure_classes): Likewise.
5339 (setup_allocno_and_important_classes): Likewise.
5340 (setup_reg_class_relations): Likewise.
5341 * lra-lives.c (process_bb_lives): Likewise.
5342 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5343
5344 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5345
5346 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5347 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5348 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5349 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5350 Likewise.
5351 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5352 * ira.c (setup_reg_renumber): Likewise.
5353 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5354 * regrename.c (regrename_find_superclass): Likewise.
5355 * reload1.c (find_reg): Likewise.
5356
5357 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5358
5359 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5360 * caller-save.c (setup_save_areas): Use "&~" instead of
5361 AND_COMPL_HARD_REG_SET.
5362 (save_call_clobbered_regs): Likewise.
5363 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5364 Likewise.
5365 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5366 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5367 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5368 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5369 (mips_conditional_register_usage): Likewise.
5370 * config/sh/sh.c (output_stack_adjust): Likewise.
5371 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5372 (setup_profitable_hard_regs): Likewise.
5373 (get_conflict_and_start_profitable_regs): Likewise.
5374 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5375 (ira_build_conflicts): Likewise.
5376 * ira-costs.c (restrict_cost_classes): Likewise.
5377 (setup_regno_cost_classes_by_aclass): Likewise.
5378 * ira-lives.c (process_bb_node_lives): Likewise.
5379 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5380 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5381 (setup_allocno_and_important_classes, setup_class_translate_array)
5382 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5383 Likewise.
5384 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5385 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5386 (process_alt_operands, inherit_in_ebb): Likewise.
5387 * lra-eliminations.c (update_reg_eliminate): Likewise.
5388 * lra-lives.c (process_bb_lives): Likewise.
5389 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5390 * resource.c (find_dead_or_set_registers): Likewise.
5391 (mark_target_live_regs): Likewise.
5392 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5393 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5394 (implicit_clobber_conflict_p): Likewise.
5395 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5396 (try_shrink_wrapping): Likewise.
5397
5398 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5399
5400 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5401 (HARD_REG_SET::operator|=): Likewise.
5402 (IOR_HARD_REG_SET): Delete.
5403 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5404 IOR_HARD_REG_SET.
5405 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5406 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5407 * final.c (collect_fn_hard_reg_usage): Likewise.
5408 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5409 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5410 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5411 (propagate_some_info_from_allocno): Likewise.
5412 (copy_info_to_removed_store_destinations): Likewise.
5413 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5414 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5415 (fast_allocation): Likewise.
5416 * ira-conflicts.c (ira_build_conflicts): Likewise.
5417 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5418 (process_bb_node_lives): Likewise.
5419 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5420 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5421 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5422 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5423 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5424 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5425 (process_bb_lives): Likewise.
5426 * lra-spills.c (assign_spill_hard_regs): Likewise.
5427 * postreload.c (reload_combine): Likewise.
5428 * reginfo.c (init_reg_sets_1): Likewise.
5429 * regrename.c (merge_overlapping_regs, find_rename_reg)
5430 (merge_chains): Likewise.
5431 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5432 (find_reload_regs, finish_spills, choose_reload_regs_init)
5433 (emit_reload_insns): Likewise.
5434 * reorg.c (redundant_insn): Likewise.
5435 * resource.c (find_dead_or_set_registers, mark_set_resources)
5436 (mark_target_live_regs): Likewise.
5437 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5438 * sched-deps.c (sched_analyze_insn): Likewise.
5439 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5440 (find_best_reg_for_expr): Likewise.
5441 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5442
5443 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5444
5445 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5446 (HARD_REG_SET::operator&): Likewise.
5447 (AND_HARD_REG_SET): Delete.
5448 * caller-save.c (setup_save_areas): Use "&" instead of
5449 AND_HARD_REG_SET.
5450 (save_call_clobbered_regs): Likewise.
5451 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5452 * config/m32c/m32c.c (reduce_class): Likewise.
5453 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5454 * final.c (get_call_reg_set_usage): Likewise.
5455 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5456 (setup_left_conflict_sizes_p): Likewise.
5457 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5458 (ira_build_conflicts): Likewise.
5459 * ira-costs.c (restrict_cost_classes): Likewise.
5460 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5461 (setup_reg_class_relations): Likewise.
5462 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5463 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5464 * resource.c (find_dead_or_set_registers): Likewise.
5465 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5466
5467 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5468
5469 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5470 (COMPL_HARD_REG_SET): Delete.
5471 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5472 of COMPL_HARD_REG_SET.
5473 (try_rename_operands): Likewise.
5474 * config/sh/sh.c (push_regs): Likewise.
5475 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5476 * lra-constraints.c (contains_reg_p): Likewise.
5477 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5478
5479 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5480
5481 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5482 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5483 of COPY_HARD_REG_SET.
5484 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5485 (epiphany_conditional_register_usage): Likewise.
5486 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5487 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5488 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5489 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5490 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5491 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5492 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5493 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5494 * config/sh/sh.c (output_stack_adjust): Likewise.
5495 * final.c (collect_fn_hard_reg_usage): Likewise.
5496 (get_call_reg_set_usage): Likewise.
5497 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5498 (ira_flattening): Likewise.
5499 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5500 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5501 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5502 (ira_reassign_pseudos): Likewise.
5503 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5504 (ira_build_conflicts): Likewise.
5505 * ira-costs.c (restrict_cost_classes): Likewise.
5506 (setup_regno_cost_classes_by_aclass): Likewise.
5507 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5508 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5509 (setup_stack_reg_pressure_class, setup_pressure_classes)
5510 (setup_allocno_and_important_classes, setup_class_translate_array)
5511 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5512 (ira_setup_eliminable_regset): Likewise.
5513 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5514 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5515 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5516 (process_alt_operands, inherit_in_ebb): Likewise.
5517 * lra-lives.c (process_bb_lives): Likewise.
5518 * lra-spills.c (assign_spill_hard_regs): Likewise.
5519 * lra.c (lra): Likewise.
5520 * mode-switching.c (new_seginfo): Likewise.
5521 * postreload.c (reload_combine): Likewise.
5522 * reg-stack.c (straighten_stack): Likewise.
5523 * reginfo.c (save_register_info, restore_register_info): Likewise.
5524 (init_reg_sets_1, record_subregs_of_mode): Likewise
5525 * regrename.c (create_new_chain, rename_chains): Likewise.
5526 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5527 (find_reload_regs): Likewise.
5528 * resource.c (find_dead_or_set_registers): Likewise.
5529 (mark_target_live_regs): Likewise.
5530 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5531
5532 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5533
5534 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5535 (note_pattern_stores): Declare.
5536 (note_stores): Take an rtx_insn *.
5537 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5538 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5539 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5540 (note_stores): Take an rtx_insn * as argument and process
5541 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5542 (note_pattern_stores): ...this.
5543 (find_first_parameter_load): Pass the insn rather than
5544 its pattern to note_stores.
5545 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5546 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5547 (insert_one_insn): Likewise.
5548 * combine.c (combine_instructions): Likewise.
5549 (likely_spilled_retval_p): Likewise.
5550 (try_combine): Use note_pattern_stores instead of note_stores.
5551 (record_dead_and_set_regs): Pass the insn rather than its pattern
5552 to note_stores.
5553 (reg_dead_at_p): Likewise.
5554 * config/bfin/bfin.c (workaround_speculation): Likewise.
5555 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5556 rather than an rtx.
5557 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5558 instead of note_stores.
5559 (frv_optimize_membar_local): Pass the insn rather than its pattern
5560 to note_stores.
5561 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5562 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5563 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5564 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5565 (mips_reorg_process_insns): Likewise.
5566 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5567 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5568 rather than rtxes.
5569 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5570 its pattern to note_stores.
5571 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5572 of note_stores.
5573 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5574 the insn to note_stores.
5575 (prescan_insns_for_dce): Update call accordingly.
5576 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5577 to note_stores.
5578 * df-problems.c (can_move_insns_across): Likewise.
5579 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5580 * function.c (assign_parm_setup_reg): Likewise.
5581 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5582 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5583 (single_set_gcse): Likewise.
5584 * ira.c (validate_equiv_mem): Likewise.
5585 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5586 for no_equiv.
5587 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5588 pattern to note_stores.
5589 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5590 * loop-iv.c (simplify_using_initial_values): Likewise.
5591 * mode-switching.c (optimize_mode_switching): Likewise.
5592 * optabs.c (emit_libcall_block_1): Likewise.
5593 (expand_atomic_compare_and_swap): Likewise.
5594 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5595 (record_opr_changes): Likewise. Remove explicit handling of
5596 CALL_INSN_FUNCTION_USAGE.
5597 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5598 * regcprop.c (kill_clobbered_values): Likewise.
5599 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5600 to note_stores.
5601 * regrename.c (build_def_use): Likewise.
5602 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5603 for mark_not_eliminable.
5604 (reload_as_needed): Pass the insn rather than its pattern
5605 to note_stores.
5606 (emit_output_reload_insns): Likewise.
5607 * resource.c (mark_target_live_regs): Likewise.
5608 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5609 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5610 instead of note_stores.
5611 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5612 its pattern to note_stores.
5613 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5614 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5615
5616 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5617
5618 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5619 than a #define. Use a structure rather than an array as the
5620 fallback definition. Remove special cases for low array sizes.
5621 (const_hard_reg_set): New typedef.
5622 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5623 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5624 (hard_reg_set_empty_p): Likewise.
5625 (SET_HARD_REG_BIT): Use a function rather than a macro to
5626 handle the case in which HARD_REG_SET is a structure.
5627 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5628 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5629 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5630 (IOR_COMPL_HARD_REG_SET): Likewise.
5631 (hard_reg_set_iterator::pset): Constify the pointer target.
5632 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5633 of a "const HARD_REG_SET". Update the handling of non-integer
5634 HARD_REG_SETs.
5635 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5636 * reload.h: Likewise.
5637 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5638 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5639 of a "const HARD_REG_SET".
5640 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5641 (range_in_hard_reg_set_p): Likewise.
5642 * ira-costs.c (restrict_cost_classes): Likewise.
5643 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5644 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5645 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5646 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5647 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5648 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5649 take an unsigned int and open-code the HARD_REG_SET operations.
5650
5651 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5652
5653 * Makefile.in (OBJS): Remove bt-load.o.
5654 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5655 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5656 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5657 document that the option no longer does anything.
5658 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5659 * target.def (branch_target_register_class): Delete.
5660 (branch_target_register_callee_saved): Likewise.
5661 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5662 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5663 * doc/tm.texi: Regenerate.
5664 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5665 (make_pass_branch_target_load_optimize2): Likewise.
5666 * passes.def (pass_branch_target_load_optimize1): Likewise.
5667 (pass_branch_target_load_optimize2): Likewise.
5668 * targhooks.h (default_branch_target_register_class): Likewise.
5669 * targhooks.c (default_branch_target_register_class): Likewise.
5670 * opt-suggestions.c (test_completion_valid_options): Remove
5671 -fbtr-bb-exclusive from the list of test options.
5672 * bt-load.c: Remove.
5673
5674 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5675
5676 * match.pd: Add flag_unsafe_math_optimizations check
5677 before deciding on the widest type in a binary math operation.
5678
5679 2019-09-09 Martin Liska <mliska@suse.cz>
5680
5681 * config/i386/i386.opt: Update comment of removed
5682 options that are preserved only for backward
5683 compatibility.
5684
5685 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR target/87853
5688 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5689 instead of __v16qs.
5690
5691 PR target/91704
5692 * config/i386/avxintrin.h (__v32qs): New typedef.
5693 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5694 instead of __v32qi.
5695
5696 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5697
5698 * doc/invoke.texi (Option Summary): Cover eBPF.
5699 (eBPF Options): New section.
5700 * doc/extend.texi (BPF Built-in Functions): Likewise.
5701 (BPF Kernel Helpers): Likewise.
5702
5703 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5704
5705 * config.gcc: Support for bpf-*-* targets.
5706 * common/config/bpf/bpf-common.c: New file.
5707 * config/bpf/t-bpf: Likewise.
5708 * config/bpf/predicates.md: Likewise.
5709 * config/bpf/constraints.md: Likewise.
5710 * config/bpf/bpf.opt: Likewise.
5711 * config/bpf/bpf.md: Likewise.
5712 * config/bpf/bpf.h: Likewise.
5713 * config/bpf/bpf.c: Likewise.
5714 * config/bpf/bpf-protos.h: Likewise.
5715 * config/bpf/bpf-opts.h: Likewise.
5716 * config/bpf/bpf-helpers.h: Likewise.
5717 * config/bpf/bpf-helpers.def: Likewise.
5718
5719 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5720
5721 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5722 indirect_calls.
5723
5724 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5725
5726 * opt-functions.awk (integer_range_info): Make sure values are in
5727 numeric context before operating with them.
5728
5729 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5730
5731 * genemit.c (gen_split): Print the filename and line number where the
5732 splitter (or peephole2) was defined, to the dump file.
5733
5734 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5735
5736 PR tree-optimization/91665
5737 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5738 incompatible with the type of PHI result.
5739
5740 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5741
5742 PR target/91684
5743 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5744 gen_unaligned_storedi for 4-byte aligned addresses.
5745
5746 2019-09-06 Jim Wilson <jimw@sifive.com>
5747
5748 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5749 change.
5750
5751 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5752
5753 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5754
5755 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5756
5757 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5758 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5759
5760 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5761
5762 PR target/91654
5763 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5764 cost of SSE->integer and integer->SSE moves from 2 to 6.
5765 (core_cost): Ditto.
5766
5767 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5768
5769 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5770 before testing TYPE_TRANSPARENT_AGGR.
5771 * calls.c (initialize_argument_information, load_register_parameters):
5772 Likewise.
5773
5774 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5775
5776 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5777 high regs.
5778 (cmp_ior): Likewise.
5779
5780 2019-09-06 Martin Liska <mliska@suse.cz>
5781
5782 * doc/match-and-simplify.texi: Separate tuples with ;.
5783
5784 2019-09-06 Martin Liska <mliska@suse.cz>
5785
5786 PR c++/91125
5787 * Makefile.in: Remove tlink.o.
5788 * collect2.c (do_link): New function isolated
5789 from do_tlink.
5790 (main): Use.
5791 * collect2.h (do_tlink): Remove declaration of do_tlink.
5792 * doc/extend.texi: Remove documentation of -frepo.
5793 * doc/invoke.texi: Likewise.
5794 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5795 * tlink.c: Remove.
5796
5797 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5798 Jim Wilson <jimw@sifive.com>
5799
5800 PR target/91635
5801 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5802 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5803 paradoxical_subreg_p (operands[0]).
5804 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5805 use as intermediate value.
5806
5807 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5808
5809 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5810 (sync_compare_and_swap<mode>_insn): Likewise.
5811
5812 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5813
5814 PR middle-end/91615
5815 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5816 without movmisalign optab.
5817
5818 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5819
5820 PR middle-end/91001
5821 PR middle-end/91105
5822 PR middle-end/91106
5823 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5824 types, use type of their first field instead of type of
5825 args[i].tree_value.
5826
5827 2019-09-05 Richard Biener <rguenther@suse.de>
5828
5829 PR rtl-optimization/91656
5830 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5831 of early out.
5832
5833 2019-09-05 Richard Biener <rguenther@suse.de>
5834
5835 PR middle-end/90501
5836 * tree-inline.c (declare_return_variable): Mark the return
5837 slot as addressable after building an address of it.
5838
5839 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5840
5841 * doc/install.texi: Update and clarify requirements to build GNAT.
5842
5843 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5844
5845 PR middle-end/91577
5846 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5847 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5848 call to be in memory.
5849 (pass_expand::execute): Call discover_nonconstant_array_refs before
5850 setting currently_expanding_to_rtl.
5851
5852 2019-09-04 Caroline Tice <cmtice@google.com>
5853
5854 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5855 specified together.
5856
5857 2019-09-04 Marek Polacek <polacek@redhat.com>
5858
5859 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5860
5861 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5862
5863 PR target/32413
5864 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5865 for QI and HImode moves between SSE and general registers.
5866
5867 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5868
5869 PR c/78736
5870 * doc/invoke.texi: Document -Wenum-conversion.
5871
5872 2019-09-04 Richard Biener <rguenther@suse.de>
5873
5874 PR rtl-optimization/36262
5875 * postreload-gcse.c: Include intl.h and gcse.h.
5876 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5877 to avoid linear list walk.
5878 (record_last_mem_set_info): Gate off if not computing transparentness.
5879 (get_bb_avail_insn): If transparentness isn't computed give up
5880 early.
5881 (gcse_after_reload_main): Skip compute_transp and extended PRE
5882 if gcse_or_cprop_is_too_expensive says so.
5883
5884 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5885
5886 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5887 noinit section.
5888 (msp430_select_section): Handle decls with the "noinit" attribute with
5889 default_elf_select_section.
5890 Handle SECCAT_RODATA_MERGE_* section types with
5891 default_elf_select_section.
5892 Add comments about handling of unsupported section types.
5893 (msp430_section_type_flags): Remove handling of the noinit section.
5894
5895 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5896
5897 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5898 conflicting msp430-specific attributes.
5899 (msp430_section_attr): Likewise.
5900 Add warnings about conflicts with generic "noinit" and "section"
5901 attributes.
5902 Fix grammar in -mlarge error message.
5903 (msp430_data_attr): Rename to msp430_persist_attr.
5904 Add warnings about conflicts with generic "noinit" and "section"
5905 attributes.
5906 Add warning for when variable is not initialized.
5907 Chain conditionals which prevent the attribute being added.
5908 (ATTR_EXCL): New helper.
5909 (attr_reent_exclusions): New exclusion table.
5910 (attr_naked_exclusions): Likewise.
5911 (attr_crit_exclusions): Likewise.
5912 (attr_lower_exclusions): Likewise.
5913 (attr_upper_exclusions): Likewise.
5914 (attr_either_exclusions): Likewise.
5915 (attr_persist_exclusions): Likewise.
5916 (msp430_attribute_table): Update with exclusion rules.
5917 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5918 has a section.
5919
5920 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5921
5922 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5923 (msp430_handle_generic_attribute): New function.
5924 * doc/tm.texi: Regenerate.
5925 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5926 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5927 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5928 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5929
5930 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5931
5932 PR tree-optimization/91504
5933 * match.pd: Add ((~a & b) ^a) --> (a | b).
5934
5935 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5936
5937 PR target/91604
5938 * config/i386/i386-expand.c (split_double_mode): If there is more than
5939 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5940 already split matching MEM operand instead of calling adjust_address
5941 again.
5942
5943 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5944
5945 * config.gcc: Obsolete spu target. Remove references to spu.
5946 * configure.ac: Remove references to spu.
5947 * configure: Regenerate.
5948 * config/spu/: Remove directory.
5949 * common/config/spu/: Remove directory.
5950
5951 * doc/extend.texi: Remove references to spu.
5952 * doc/invoke.texi: Likewise.
5953 * doc/md.texi: Likewise.
5954 * doc/sourcebuild.texi: Likewise.
5955
5956 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5957
5958 PR middle-end/91603
5959 PR middle-end/91612
5960 PR middle-end/91613
5961 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5962 and SSA_NAME referring to CONSTANT_P correctly.
5963
5964 2019-09-03 Richard Biener <rguenther@suse.de>
5965
5966 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5967 (vn_nary_op_insert): Likewise.
5968 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5969 (vn_nary_op_lookup): Likewise.
5970 (vn_nary_op_insert): Likewise.
5971
5972 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5973
5974 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5975 (*op0, 1) instead of XEXP (*op1, 0).
5976
5977 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5978
5979 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5980 (aarch64_fjcvtzs): New define_insn.
5981 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5982 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5983 Add AARCH64_JSCVT.
5984 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5985 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5986 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5987 __ARM_FEATURE_JCVT where appropriate.
5988 * config/aarch64/arm_acle.h (__jcvt): Define.
5989
5990 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5991
5992 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5993 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5994 (aarch64_<frintnzs_op><mode>): New define_insn.
5995 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5996 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5997 __ARM_FEATURE_FRINT when appropriate.
5998 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5999 frint32x, frint64z, frint64x.
6000 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6001 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6002 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6003 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6004 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6005 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6006 * config/aarch64/iterators.md (VSFDF): Define.
6007 (FRINTNZX): Likewise.
6008 (frintnzs_op): Likewise.
6009
6010 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6011
6012 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6013 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6014 Cortex-A34.
6015 * config/aarch64/aarch64-tune.md: Regenerated.
6016 * doc/invoke.texi: Document the new processors.
6017
6018 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6019
6020 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6021 string.
6022 (ssbs): Likewise.
6023 (sve2): Likewise.
6024 (sve2-sm4): Likewise.
6025 (sveaes): Likewise.
6026 (svesha3): Likewise.
6027 (svebitperm): Likewise.
6028
6029 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6030 Richard Biener <rguenther@suse.de>
6031
6032 PR tree-optimization/91597
6033 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6034 BIT_AND_EXPR optimization for pointers, even if both operand
6035 ranges don't include NULL, the result can be NULL.
6036
6037 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6038
6039 PR middle-end/91605
6040 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6041 (non_mem_decl_p): ...this.
6042 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6043 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6044 unconditionally as before.
6045
6046 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6047
6048 PR target/91323
6049 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6050 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6051 * tree.def (LTGT_EXPR): Likewise.
6052 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6053
6054 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6055
6056 PR go/91617
6057 * fold-const.c (range_check_type): For enumeral and boolean
6058 type, pass 1 to type_for_size langhook instead of
6059 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6060 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6061 (build_range_check): Don't call unsigned_type_for for pointer types.
6062 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6063 range_check_type result.
6064
6065 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6066
6067 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6068 (replace_ref): Do not replace a chain of only two candidates which are
6069 valid memory references.
6070
6071 2019-09-02 Martin Liska <mliska@suse.cz>
6072
6073 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6074 Bail out when we'll end up with the same number of clusters as
6075 at the beginning.
6076 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6077 (jump_table_cluster::can_be_handled): Remove the guard
6078 as it's already handled in ::is_enabled. Allocate output
6079 after early bail out.
6080
6081 2019-09-02 Martin Liska <mliska@suse.cz>
6082
6083 PR gcov-profile/91601
6084 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6085 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6086 also negative edges.
6087 (circuit): Handle also negative edges as they can happen
6088 in some situations.
6089
6090 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6091
6092 PR target/91472
6093 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6094 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6095 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6096
6097 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6098
6099 PR middle-end/91623
6100 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6101 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6102 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6103 zero vector.
6104
6105 PR lto/91572
6106 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6107 GIMPLE_ASM TREE_LIST operands.
6108
6109 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6110
6111 * doc/generic.texi (Unary and Binary Expressions): Mark up
6112 an instance of TYPE_MIN.
6113
6114 2019-08-31 Stafford Horne <shorne@gmail.com>
6115
6116 * config/or1k/constraints.md (t): New constraint.
6117 * config/or1k/or1k.h (GOT_REGS): New register class.
6118 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6119
6120 2019-08-30 Jim Wilson <jimw@sifive.com>
6121
6122 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6123 and -fpic and -mplt then disable -msave-restore and warn.
6124
6125 2019-08-30 Martin Sebor <msebor@redhat.com>
6126
6127 PR middle-end/91599
6128 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6129 the statement doesn't have one.
6130 * gimple-pretty-print.c (percent_G_format): Same.
6131
6132 PR middle-end/91584
6133 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6134 before using them to validate MEM_REF offset.
6135
6136 2019-08-30 Marek Polacek <polacek@redhat.com>
6137
6138 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6139
6140 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6141
6142 * config/arm/arm.md (unaligned_loaddi,
6143 unaligned_storedi): New unspec insn patterns.
6144 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6145 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6146 and unaligned_storedi for 4-byte aligned memory.
6147 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6148 4-byte aligned memory.
6149
6150 2019-08-30 Martin Jambor <mjambor@suse.cz>
6151
6152 tree-optimization/91579
6153 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6154 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6155 appropriate.
6156 (arg_needs_copy_p): Removed.
6157 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6158 arg_needs_copy_p.
6159 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6160
6161 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6162
6163 * config/i386/i386-features.c
6164 (general_scalar_chain::compute_convert_gain):
6165 Correct cost for double-word shifts.
6166 (general_scalar_to_vector_candidate_p): Reject count operands
6167 greater or equal to mode bitsize.
6168
6169 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6170
6171 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6172 for moves between SSE and non-general registers and between
6173 mask and non-general registers.
6174 (ix86_register_move_cost): Remove stalled comment.
6175
6176 2019-08-29 Richard Biener <rguenther@suse.de>
6177
6178 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6179 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6180
6181 2019-08-29 Richard Biener <rguenther@suse.de>
6182
6183 PR bootstrap/91580
6184 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6185 Do not emit scalar copies for debug-insns, instead replace
6186 their uses with the reg copy used in the chain or reset them
6187 if there is a reaching definition outside of the chain as well.
6188
6189 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6190
6191 PR target/91560
6192 * config/i386/i386-expand.c (expand_vec_perm_movs,
6193 expand_vec_perm_blend, expand_vec_perm_vpermil,
6194 expand_vec_perm_pshufb, expand_vec_perm_1,
6195 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6196 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6197 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6198 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6199 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6200 comments - replace ix86_expand_vec_perm_builtin_1 with
6201 ix86_expand_vec_perm_const_1.
6202 (expand_vec_perm2_vperm2f128_vblend): New function.
6203 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6204 expand_vec_perm2_vperm2f128_vblend as last resort.
6205 (canonicalize_perm): Formatting fix.
6206
6207 PR tree-optimization/91351
6208 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6209 unsigned_type_for.
6210 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6211 range_check_type returns NULL.
6212 * tree-switch-conversion.c (switch_conversion::build_one_array):
6213 Use range_check_type instead of unsigned_type_for, don't perform
6214 linear opt if it returns NULL.
6215 (bit_test_cluster::find_bit_tests): Formatting fix.
6216 (bit_test_cluster::emit): Use range_check_type instead of
6217 unsigned_type_for.
6218 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6219 returns NULL.
6220
6221 2019-08-29 Richard Biener <rguenther@suse.de>
6222
6223 PR tree-optimization/91568
6224 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6225 (vect_update_max_nunits): Add overload for poly_uint64.
6226 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6227 (vect_build_slp_tree): Record max_nunits into the subtree
6228 and merge it upwards.
6229 (vect_print_slp_tree): Print max_nunits.
6230
6231 2019-08-28 Marek Polacek <polacek@redhat.com>
6232
6233 Implement P1152R4: Deprecating some uses of volatile.
6234 PR c++/91361
6235 * doc/invoke.texi: Document -Wvolatile.
6236
6237 2019-08-28 Marek Polacek <polacek@redhat.com>
6238
6239 PR c++/91360 - Implement C++20 P1143R2: constinit.
6240 * doc/invoke.texi: Document -Wc++20-compat.
6241
6242 2019-08-28 Martin Sebor <msebor@redhat.com>
6243
6244 PR tree-optimization/91457
6245 * builtins.c (component_size): New function.
6246 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6247 * builtins.h (compute_objsize): Add argument.
6248 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6249 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6250 (vrp_prop::check_mem_ref): Same.
6251 (vrp_prop::search_for_addr_array): Set no-warning bit.
6252 (check_array_bounds): Same.
6253
6254 2019-08-28 Martin Sebor <msebor@redhat.com>
6255
6256 PR driver/80545
6257 * opts-common.c (option_enabled): Correct checking for language
6258 options.
6259
6260 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6261
6262 * config/i386/i386.c (ix86_register_move_cost): Do not
6263 limit the cost of moves to/from XMM register to minimum 8.
6264
6265 2019-08-28 Martin Jambor <mjambor@suse.cz>
6266
6267 PR ipa/91468
6268 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6269 checking assert a normal assert to test it really is redundant.
6270 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6271 redundant test.
6272 (update_jump_functions_after_inlining): Removed combining unary
6273 arithmetic operations with an ancestor jump function.
6274 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6275 instead of t.
6276
6277 2019-08-28 Richard Biener <rguenther@suse.de>
6278
6279 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6280 add the MD problem.
6281
6282 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6283 Richard Biener <rguenther@suse.de>
6284
6285 * expr.c (expand_assignment): Handle misaligned DECLs.
6286 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6287 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6288 too.
6289 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6290 * varasm.c (build_constant_desc): Align constants of misaligned types.
6291 * config/arm/predicates.md (aligned_operand): New predicate.
6292 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6293 aligned_operand to check restrictions on memory addresses.
6294 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6295 * config/arm/vec-common.md (mov<VALL>): Likewise.
6296
6297 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6298
6299 PR libgomp/91530
6300 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6301 V_128 iterator instead of VI_128.
6302
6303 2019-08-28 Martin Liska <mliska@suse.cz>
6304
6305 PR tree-optimization/90970
6306 * builtins.c (check_access): Remove assignment to maxread
6307 as it hasn't been used since when it was introduced in r255755.
6308
6309 2019-08-27 Martin Sebor <msebor@redhat.com>
6310
6311 PR tree-optimization/91567
6312 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6313 of unknown strings.
6314 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6315 to PTRDIFF_MAX - 2.
6316
6317 2019-08-27 Jeff Law <law@redhat.com>
6318
6319 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6320 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6321
6322 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6323
6324 PR target/91528
6325 * config/i386/i386-features.c (convert_scalars_to_vector):
6326 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6327 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6328 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6329 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6330
6331 2019-08-27 Richard Biener <rguenther@suse.de>
6332
6333 * config/i386/i386-features.h
6334 (general_scalar_chain::~general_scalar_chain): Add.
6335 (general_scalar_chain::insns_conv): New bitmap.
6336 (general_scalar_chain::n_sse_to_integer): New.
6337 (general_scalar_chain::n_integer_to_sse): Likewise.
6338 (general_scalar_chain::make_vector_copies): Adjust signature.
6339 * config/i386/i386-features.c
6340 (general_scalar_chain::general_scalar_chain): Outline,
6341 initialize new members.
6342 (general_scalar_chain::~general_scalar_chain): New.
6343 (general_scalar_chain::mark_dual_mode_def): Record insns
6344 we need to insert conversions at and count them.
6345 (general_scalar_chain::compute_convert_gain): Account
6346 for conversion instructions at chain boundary.
6347 (general_scalar_chain::make_vector_copies): Generate a single
6348 copy for a def by a specific insn.
6349 (general_scalar_chain::convert_registers): First populate
6350 defs_map, then make copies at out-of chain insns.
6351
6352 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6353
6354 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6355 comment.
6356 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6357
6358 2019-08-27 Martin Liska <mliska@suse.cz>
6359
6360 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6361 loop.
6362 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6363 Enclose in anonymous namespace.
6364 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6365 hard_register initialization in braces.
6366 * tree-vrp.h (value_range_base::supports_type_p): Return false
6367 for function with boolean return type.
6368
6369 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6370
6371 * config/i386/i386.c (emit_i387_cw_initialization)
6372 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6373
6374 2019-08-26 Martin Sebor <msebor@redhat.com>
6375
6376 PR c++/83431
6377 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6378 (sprintf_dom_walker): Remove class.
6379 (get_int_range): Make argument const.
6380 (directive::fmtfunc, directive::set_precision): Same.
6381 (format_none): Same.
6382 (build_intmax_type_nodes): Same.
6383 (adjust_range_for_overflow): Same.
6384 (format_floating): Same.
6385 (format_character): Same.
6386 (format_string): Same.
6387 (format_plain): Same.
6388 (get_int_range): Cast away constness.
6389 (format_integer): Same.
6390 (get_string_length): Call get_range_strlen_dynamic. Handle
6391 null lendata.maxbound.
6392 (should_warn_p): Adjust argument scope qualifier.
6393 (maybe_warn): Same.
6394 (format_directive): Same.
6395 (parse_directive): Same.
6396 (is_call_safe): Same.
6397 (try_substitute_return_value): Same.
6398 (sprintf_dom_walker::handle_printf_call): Rename...
6399 (handle_printf_call): ...to this. Initialize target to host charmap
6400 here instead of in pass_sprintf_length::execute.
6401 (struct call_info): Make global.
6402 (sprintf_dom_walker::compute_format_length): Make global.
6403 (sprintf_dom_walker::handle_gimple_call): Same.
6404 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6405 * print-rtl.c (print_pattern): Reduce the number of spaces to
6406 avoid -Wformat-truncation.
6407 * tree-pass.h (make_pass_warn_printf): New function.
6408 * tree-ssa-strlen.c (strlen_optimize): New variable.
6409 (get_string_length): Add comments.
6410 (get_range_strlen_dynamic): New function.
6411 (check_and_optimize_call): New function.
6412 (handle_integral_assign): New function.
6413 (strlen_check_and_optimize_stmt): Factor code out into
6414 strlen_check_and_optimize_call and handle_integral_assign.
6415 (strlen_dom_walker::evrp): New member.
6416 (strlen_dom_walker::before_dom_children): Use evrp member.
6417 (strlen_dom_walker::after_dom_children): Use evrp member.
6418 (printf_strlen_execute): New function.
6419 (pass_strlen::gate): Update to handle printf calls.
6420 (dump_strlen_info): New function.
6421 (pass_data_warn_printf): New variable.
6422 (pass_warn_printf): New class.
6423 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6424 (handle_printf_call): Same.
6425 * tree-vrp.c (value_range_base::type): Adjust assertion.
6426 * vr-values.c (vr_values::update_value_range): Use type of the first
6427 argument rather than the second.
6428
6429 2019-08-26 Richard Biener <rguenther@suse.de>
6430
6431 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6432 Remove.
6433 (convert_scalars_to_vector): Do not call it.
6434
6435 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6436 Uros Bizjak <ubizjak@gmail.com>
6437
6438 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6439 CASE_MATHFN_FLOATN for roundeven.
6440 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6441 I387_ROUNDEVEN.
6442 (ix86_mode_needed): Likewise.
6443 (ix86_mode_after): Likewise.
6444 (ix86_mode_entry): Likewise.
6445 (ix86_mode_exit): Likewise.
6446 (ix86_emit_mode_set): Likewise.
6447 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6448 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6449 (ix86_entity): Add I387_ROUNDEVEN.
6450 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6451 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6452 (define_int_iterator): Likewise.
6453 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6454 (define_constant): Define ROUND_ROUNDEVEN mode.
6455 (define_attr): Add roundeven mode for i387_cw.
6456 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6457 * internal-fn.def (ROUNDEVEN): New builtin function.
6458 * optabs.def (roundeven_optab): New optab.
6459
6460 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6461
6462 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6463 for ROUNDEVEN.
6464 * builtins.def: Added function definitions for roundeven function
6465 variants.
6466 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6467 function call. Adjust condition for floor, ceil, trunc and round.
6468 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6469 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6470 (integer_valued_real_call_p): Added case for roundeven function.
6471 * real.c (is_even): New function. Returns true if real number is even,
6472 otherwise returns false.
6473 (is_halfway_below): New function. Returns true if real number is
6474 halfway between two integers, else return false.
6475 (real_roundeven): New function. Round real number to nearest integer,
6476 rounding halfway cases towards even.
6477 * real.h (real_value): Added descriptive comments. Added function
6478 declaration for roundeven function.
6479 * doc/extend.texi (Other Builtins): List roundeven variants among
6480 functions which can be handled as builtins.
6481
6482 2019-08-26 Richard Biener <rguenther@suse.de>
6483
6484 PR target/91522
6485 PR target/91527
6486 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6487 New member.
6488 (general_scalar_chain::replace_with_subreg): Remove.
6489 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6490 (general_scalar_chain::convert_reg): Adjust signature.
6491 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6492 iterate over all defs of a reg.
6493 (general_scalar_chain::replace_with_subreg): Remove.
6494 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6495 (general_scalar_chain::make_vector_copies): Populate defs_map,
6496 place copy only after defs that are used as vectors in the chain.
6497 (general_scalar_chain::convert_reg): Emit a copy for a specific
6498 def in a specific instruction.
6499 (general_scalar_chain::convert_op): All reg uses are converted here.
6500 (general_scalar_chain::convert_insn): Emit copies for scalar
6501 uses of defs here. Replace uses with the copies we created.
6502 Replace and convert the def. Adjust REG_DEAD notes, remove
6503 REG_EQUIV/EQUAL notes.
6504 (general_scalar_chain::convert_registers): Only handle copies
6505 into the chain here.
6506
6507 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6508
6509 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6510
6511 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6512
6513 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6514 Add nop_convert case.
6515 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6516 Fold all statements if requested.
6517 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6518 Allow to fold all statements.
6519 * tree-vrp.c (class vrp_folder):
6520 Let substitute_and_fold_engine fold all statements.
6521
6522 2019-08-26 Richard Biener <rguenther@suse.de>
6523
6524 PR tree-optimization/91526
6525 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6526 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6527 TODO_update_address_taken.
6528
6529 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6530
6531 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6532 __STDC_HOSTED__.
6533
6534 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6535
6536 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6537 machine mode for unspec_volatile operand.
6538
6539 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6540
6541 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6542 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6543 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6544 (prefer_neon_for_64bits): Remove.
6545 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6546 (tune_params): Remove PREF_NEON_64_FALSE uses.
6547 (arm_option_override): Remove prefer_neon selection code.
6548 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6549 * gcc/config/arm/arm-protos.h (tune_params): Remove
6550 prefer_neon_for_64bits.
6551 (prefer_neon_for_64bits): Remove.
6552
6553 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6554
6555 PR pch/61250
6556 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6557 and issue any diagnostics needed before collecting the pre-PCH
6558 state.
6559
6560 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6561
6562 PR middle-end/91283
6563 * common.opt (fexcess-precision=): Add Optimization flag. Use
6564 flag_excess_precision variable instead of
6565 flag_excess_precision_cmdline.
6566 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6567 member.
6568 (flag_excess_precision): Don't define.
6569 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6570 flag_excess_precision_cmdline. Remove comment.
6571 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6572 and x_flag_excess_precision instead of
6573 frontend_set_flag_excess_precision_cmdline and
6574 x_flag_excess_precision_cmdline.
6575 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6576 x_flag_excess_precision_cmdline.
6577 * toplev.c (init_excess_precision): Remove.
6578 (lang_dependent_init_target): Don't call it.
6579
6580 2019-08-23 Martin Liska <mliska@suse.cz>
6581
6582 * lto-wrapper.c (run_gcc): When setting jobserver
6583 set also parallel to 1. This was done so before r273908.
6584
6585 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6586
6587 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6588 (cortex-a76ae): Likewise.
6589 (cortex-a77): Likewise
6590 * config/arm/arm-tables.opt: Regenerate.
6591 * config/arm/arm-tune.md: Likewise.
6592 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6593 cortex-a77 CPU options.
6594
6595 2019-08-23 Martin Liska <mliska@suse.cz>
6596
6597 * profile.c (instrument_values): Do not set
6598 0 as last argument.
6599 * tree-profile.c (gimple_gen_interval_profiler): Remove
6600 last argument.
6601 (gimple_gen_pow2_profiler): Likewise.
6602 (gimple_gen_topn_values_profiler): Likewise.
6603 (gimple_gen_ic_profiler): Likewise.
6604 (gimple_gen_time_profiler): Likewise.
6605 (gimple_gen_average_profiler): Likewise.
6606 (gimple_gen_ior_profiler): Likewise.
6607 * value-prof.c (dump_histogram_value): Use default
6608 in switch statement instead of HIST_TYPE_MAX.
6609 (stream_in_histogram_value): Likewise.
6610 (gimple_duplicate_stmt_histograms): Do not
6611 use NULL for implicitly set arguments.
6612 (gimple_divmod_values_to_profile): Do not use
6613 reserve+quick_push.
6614 (gimple_indirect_call_to_profile): Likewise.
6615 (gimple_find_values_to_profile): Use implicit
6616 function call arguments.
6617 * value-prof.h (gimple_alloc_histogram_value):
6618 Set default values.
6619 (gimple_gen_interval_profiler): Remove last argument.
6620 (gimple_gen_pow2_profiler): Likewise.
6621 (gimple_gen_topn_values_profiler): Likewise.
6622 (gimple_gen_ic_profiler): Likewise.
6623 (gimple_gen_time_profiler): Likewise.
6624 (gimple_gen_average_profiler): Likewise.
6625 (gimple_gen_ior_profiler): Likewise.
6626
6627 2019-08-22 Martin Sebor <msebor@redhat.com>
6628
6629 PR middle-end/91490
6630 * builtins.c (c_strlen): Rename argument and introduce new local.
6631 Set no-warning bit on original argument.
6632 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6633 Fold empty and zero constructors into empty strings.
6634 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6635 for missing initializers.
6636 * tree.c (build_string_literal): Handle optional argument.
6637 * tree.h (build_string_literal): Add defaulted argument.
6638 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6639 no-warning bit on original expression.
6640
6641 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6642
6643 PR target/91481
6644 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6645 and UNSPEC_DARN_RAW.
6646 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6647 UNSPECV_DARN_RAW.
6648 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6649 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6650 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6651
6652 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6653
6654 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6655 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6656 * config/rs6000/rs6000.md (unspec): ... here.
6657 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6658 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6659 cmpeqb, *cmpeqb_internal): Delete, move to...
6660 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6661 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6662 cmpeqb, *cmpeqb_internal): ... here.
6663
6664 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6665
6666 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6667 intrinsics if __ARM_FP.
6668 Use __ARM_FEATURE_CRC32 ifdef guard.
6669
6670 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6671
6672 * config/arm/arm.md (neon_for_64bits): Remove.
6673 (avoid_neon_for_64bits): Remove.
6674 (arm_adddi3): Always split early.
6675 (arm_subdi3): Always split early.
6676 (negdi2): Remove Neon expansion.
6677 (split zero_extend): Split before reload.
6678 (split sign_extend): Split before reload.
6679
6680 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6681
6682 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6683 (qhs_extenddi_cstr): Likewise.
6684 * config/arm/arm.md (ashldi3): Always expand early.
6685 (ashlsi3): Likewise.
6686 (ashrsi3): Likewise.
6687 (zero_extend<mode>di2): Remove Neon variants.
6688 (extend<mode>di2): Likewise.
6689 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6690 (signed_shift_di3_neon): Likewise.
6691 (unsigned_shift_di3_neon): Likewise.
6692 (ashrdi3_neon_imm_noclobber): Likewise.
6693 (lshrdi3_neon_imm_noclobber): Likewise.
6694 (<shift>di3_neon): Likewise.
6695 (split extend): Remove DI extend split patterns.
6696
6697 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6698
6699 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6700 (split not): Add DImode not splitter.
6701 (anddi3): Remove pattern.
6702 (anddi3_insn): Likewise.
6703 (anddi_zesidi_di): Likewise.
6704 (anddi_sesdi_di): Likewise.
6705 (anddi_notdi_di): Likewise.
6706 (anddi_notzesidi_di): Likewise.
6707 (anddi_notsesidi_di): Likewise.
6708 (iordi3): Likewise.
6709 (iordi3_insn): Likewise.
6710 (iordi_zesidi_di): Likewise.
6711 (iordi_sesidi_di): Likewise.
6712 (xordi3): Likewise.
6713 (xordi3_insn): Likewise.
6714 (xordi_sesidi_di): Likewise.
6715 (xordi_zesidi_di): Likewise.
6716 (one_cmpldi2): Likewise.
6717 (one_cmpldi2_insn): Likewise.
6718 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6719 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6720 alternative.
6721 (iwmmxt_xordi3): Likewise.
6722 (iwmmxt_anddi3): Likewise.
6723 * config/arm/neon.md (orndi3_neon): Remove pattern.
6724 (anddi_notdi_di): Likewise.
6725 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6726 (arm_iordi_operand_neon): Likewise.
6727 (arm_xordi_operand_neon): Likewise.
6728 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6729 (iordi_notzesidi_di): Likewise.
6730 (iordi_notdi_zesidi): Likewise.
6731 (iordi_notsesidi_di): Likewise.
6732
6733 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6734
6735 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6736 insn.
6737 (iorsi3_compare0_scratch): Likewise.
6738
6739 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6740
6741 * config/aarch64/aarch64-simd-builtins.def:
6742 (ld1x4): New.
6743 (st1x4): Likewise.
6744 * config/aarch64/aarch64-simd.md:
6745 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6746 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6747 (aarch64_ld1_x4_<mode>): Likewise.
6748 (aarch64_st1_x4_<mode>): Likewise.
6749 * config/aarch64/arm_neon.h:
6750 (vld1_s8_x4): New function.
6751 (vld1q_s8_x4): Likewise.
6752 (vld1_s16_x4): Likewise.
6753 (vld1q_s16_x4): Likewise.
6754 (vld1_s32_x4): Likewise.
6755 (vld1q_s32_x4): Likewise.
6756 (vld1_u8_x4): Likewise.
6757 (vld1q_u8_x4): Likewise.
6758 (vld1_u16_x4): Likewise.
6759 (vld1q_u16_x4): Likewise.
6760 (vld1_u32_x4): Likewise.
6761 (vld1q_u32_x4): Likewise.
6762 (vld1_f16_x4): Likewise.
6763 (vld1q_f16_x4): Likewise.
6764 (vld1_f32_x4): Likewise.
6765 (vld1q_f32_x4): Likewise.
6766 (vld1_p8_x4): Likewise.
6767 (vld1q_p8_x4): Likewise.
6768 (vld1_p16_x4): Likewise.
6769 (vld1q_p16_x4): Likewise.
6770 (vld1_s64_x4): Likewise.
6771 (vld1_u64_x4): Likewise.
6772 (vld1_p64_x4): Likewise.
6773 (vld1q_s64_x4): Likewise.
6774 (vld1q_u64_x4): Likewise.
6775 (vld1q_p64_x4): Likewise.
6776 (vld1_f64_x4): Likewise.
6777 (vld1q_f64_x4): Likewise.
6778 (vst1_s8_x4): Likewise.
6779 (vst1q_s8_x4): Likewise.
6780 (vst1_s16_x4): Likewise.
6781 (vst1q_s16_x4): Likewise.
6782 (vst1_s32_x4): Likewise.
6783 (vst1q_s32_x4): Likewise.
6784 (vst1_u8_x4): Likewise.
6785 (vst1q_u8_x4): Likewise.
6786 (vst1_u16_x4): Likewise.
6787 (vst1q_u16_x4): Likewise.
6788 (vst1_u32_x4): Likewise.
6789 (vst1q_u32_x4): Likewise.
6790 (vst1_f16_x4): Likewise.
6791 (vst1q_f16_x4): Likewise.
6792 (vst1_f32_x4): Likewise.
6793 (vst1q_f32_x4): Likewise.
6794 (vst1_p8_x4): Likewise.
6795 (vst1q_p8_x4): Likewise.
6796 (vst1_p16_x4): Likewise.
6797 (vst1q_p16_x4): Likewise.
6798 (vst1_s64_x4): Likewise.
6799 (vst1_u64_x4): Likewise.
6800 (vst1_p64_x4): Likewise.
6801 (vst1q_s64_x4): Likewise.
6802 (vst1q_u64_x4): Likewise.
6803 (vst1q_p64_x4): Likewise.
6804 (vst1_f64_x4): Likewise.
6805 (vst1q_f64_x4): Likewise.
6806
6807 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6808
6809 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6810
6811 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6812 Richard Sandiford <richard.sandiford@arm.com>
6813
6814 PR target/88839
6815 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6816 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6817
6818 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6819
6820 PR target/90724
6821 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6822 in reg if it fails aarch64_plus_operand predicate.
6823
6824 2019-08-21 Richard Biener <rguenther@suse.de>
6825
6826 PR tree-optimization/91482
6827 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6828 BUILT_IN_ASSUME_ALIGNED calls.
6829
6830 2019-08-21 Richard Biener <rguenther@suse.de>
6831
6832 PR target/91498
6833 PR target/91503
6834 * config/i386/i386-features.c
6835 (general_scalar_chain::make_vector_copies): Copy stack temporary
6836 rtx when using it multiple times.
6837 (general_scalar_chain::convert_reg): Likewise.
6838
6839 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6840
6841 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6842
6843 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6844
6845 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6846 catch more redundant zero initialization cases.
6847 (dse_dom_walker::dse_optimize_stmt): Likewise.
6848
6849 2019-08-20 Richard Biener <rguenther@suse.de>
6850
6851 PR lto/91307
6852 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6853 by collect2 when targetm.have_ctors_dtors which avoids dragging
6854 in temporary filenames from LTO input objects.
6855
6856 2019-08-20 Richard Biener <rguenther@suse.de>
6857
6858 PR tree-optimization/37242
6859 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6860 to (T)a + (T)b if we know that a + b does not overflow.
6861
6862 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6863
6864 PR rtl-optimization/91347
6865 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6866 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6867
6868 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6869
6870 * calls.h (function_arg_info): Add a pass_by_reference field,
6871 defaulting to false.
6872 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6873 when applying pass-by-reference semantics.
6874 (initialize_argument_information): Likewise.
6875 (emit_library_call_value_1): Likewise.
6876 * function.c (assign_parm_data_one): Remove passed_pointer field.
6877 (assign_parm_find_data_types): Don't set it.
6878 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6879 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6880 arg.pass_by_reference instead of passed_pointer.
6881
6882 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6883
6884 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6885 into a single function_arg_info, updating its fields when we
6886 apply pass-by-reference and promotion semantics. Use the
6887 function_arg_info to track the mode rather than keeping it in
6888 a separate local variable.
6889 (initialize_argument_information): Likewise. Base the final
6890 arg_to_skip on this new function_arg_info rather than creating
6891 a new one from scratch.
6892
6893 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6894
6895 * function.c (assign_parm_data_one): Replace passed_type,
6896 promoted_mode and named_arg with a function_arg_info field.
6897 (assign_parm_find_data_types): Remove local variables and
6898 assign directly to "data". Make data->passed_mode shadow
6899 data->arg.mode until promotion, then assign the promoted
6900 mode to data->arg.mode.
6901 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6902 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6903 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6904 (assign_parm_setup_block, assign_parm_setup_reg)
6905 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6906 arg.mode instead of promoted_mode, arg.type instead of passed_type
6907 and arg.named instead of named_arg. Use data->arg for
6908 function_arg_info structures that had the field values passed_type,
6909 promoted_mode and named_arg. Base other function_arg_infos on
6910 data->arg, changing the necessary properties.
6911
6912 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6913
6914 * calls.h (apply_pass_by_reference_rules): Declare.
6915 * calls.c (apply_pass_by_reference_rules): New function.
6916 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6917 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6918 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6919 * function.c (assign_parm_find_data_types): Likewise.
6920 * var-tracking.c (prepare_call_arguments): Likewise.
6921
6922 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6923
6924 * target.def (must_pass_in_stack): Take a function_arg_info instead
6925 of a mode and a type.
6926 * doc/tm.texi: Regenerate.
6927 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6928 instead of a mode and a type.
6929 (must_pass_in_stack_var_size_or_pad): Likewise.
6930 * calls.c (must_pass_in_stack_var_size): Likewise.
6931 (must_pass_in_stack_var_size_or_pad): Likewise.
6932 (initialize_argument_information): Update call to
6933 targetm.calls.must_pass_in_stack.
6934 (must_pass_va_arg_on_stack): Likewise.
6935 * function.c (assign_parm_find_entry_rtl): Likewise.
6936 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6937 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6938 (alpha_function_arg_advance): Likewise.
6939 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6940 (cr16_function_arg_advance): Likewise.
6941 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6942 (cris_arg_partial_bytes): Likewise.
6943 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6944 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6945 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6946 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6947 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6948 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6949 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6950 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6951 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6952 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6953 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6954 instead of a mode and a type.
6955 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6956 (fr30_num_arg_regs): Likewise.
6957 (fr30_setup_incoming_varargs): Update calls accordingly.
6958 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6959 (fr30_function_arg_advance): Likewise.
6960 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6961 instead of a mode and a type.
6962 * config/gcn/gcn.c (num_arg_regs): Likewise.
6963 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6964 num_arg_regs and targetm.calls.must_pass_in_stack.
6965 (gcn_arg_partial_bytes): Likewise.
6966 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6967 function_arg_info instead of a mode and a type.
6968 (classify_argument): Update call accordingly.
6969 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6970 function_arg_info instead of a mode and a type.
6971 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6972 Likewise.
6973 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6974 (rs6000_parm_needs_stack): Update call accordingly.
6975 (setup_incoming_varargs): Likewise.
6976
6977 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6978
6979 * target.def (callee_copies): Take a function_arg_info instead
6980 of a mode, type and named flag.
6981 * doc/tm.texi: Regenerate.
6982 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6983 instead of a mode, type and named flag.
6984 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6985 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6986 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6987 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6988 instead of a mode, type and named flag.
6989 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6990 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6991 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6992 * calls.h (reference_callee_copied): Take a function_arg_info
6993 instead of a mode, type and named flag.
6994 * calls.c (reference_callee_copied): Likewise.
6995 (initialize_argument_information): Update call accordingly.
6996 (emit_library_call_value_1): Likewise.
6997 * function.c (gimplify_parameters): Likewise.
6998 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6999 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7000 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7001 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7002 (TARGET_CALLEE_COPIES): Define to
7003 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7004 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7005 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7006 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7007 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7008 instead of a mode, type and named flag.
7009 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7010 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7011 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7012 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7013 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7014 (TARGET_CALLEE_COPIES): Define to
7015 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7016 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7017 instead of a mode, type and named flag.
7018 * config/sh/sh.c (sh_callee_copies): Likewise.
7019 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7020 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7021 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7022
7023 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7024
7025 * target.def (function_arg_advance): Take a function_arg_info instead
7026 of a mode, type and named flag.
7027 * doc/tm.texi: Regenerate.
7028 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7029 instead of a mode, type and named flag.
7030 * targhooks.c (default_function_arg_advance): Likewise.
7031 * calls.c (initialize_argument_information): Update call to
7032 targetm.calls.function_arg_advance.
7033 (emit_library_call_value_1): Likewise.
7034 * dse.c (get_call_args): Likewise.
7035 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7036 * function.c (assign_parms, gimplify_parameters): Likewise.
7037 * var-tracking.c (prepare_call_arguments): Likewise.
7038 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7039 function_arg_info instead of a mode, type and named flag.
7040 (aarch64_setup_incoming_varargs): Update call accordingly.
7041 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7042 function_arg_info instead of a mode, type and named flag.
7043 (alpha_setup_incoming_varargs): Update call accordingly.
7044 * config/arc/arc.c (arc_function_arg_advance): Take a
7045 function_arg_info instead of a mode, type and named flag.
7046 (arc_setup_incoming_varargs): Update call accordingly.
7047 * config/arm/arm.c (arm_function_arg_advance): Take a
7048 function_arg_info instead of a mode, type and named flag.
7049 (cmse_func_args_or_return_in_stack): Update call accordingly.
7050 (arm_function_ok_for_sibcall): Likewise.
7051 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7052 * config/avr/avr.c (avr_function_arg_advance): Take a
7053 function_arg_info instead of a mode, type and named flag.
7054 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7055 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7056 (c6x_call_saved_register_used): Update call accordingly.
7057 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7058 function_arg_info instead of a mode, type and named flag.
7059 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7060 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7061 (csky_setup_incoming_varargs): Update call accordingly.
7062 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7063 function_arg_info instead of a mode, type and named flag.
7064 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7065 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7066 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7067 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7068 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7069 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7070 (ix86_setup_incoming_varargs): Update call accordingly.
7071 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7072 function_arg_info instead of a mode, type and named flag.
7073 (ia64_setup_incoming_varargs): Update call accordingly.
7074 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7075 function_arg_info instead of a mode, type and named flag.
7076 (iq2000_expand_prologue): Update call accordingly.
7077 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7078 function_arg_info instead of a mode, type and named flag.
7079 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7080 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7081 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7082 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7083 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7084 Likewise.
7085 (microblaze_expand_prologue): Update call accordingly.
7086 * config/mips/mips.c (mips_function_arg_advance): Take a
7087 function_arg_info instead of a mode, type and named flag.
7088 (mips_setup_incoming_varargs): Update call accordingly.
7089 (mips_output_args_xfer): Likewise.
7090 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7091 function_arg_info instead of a mode, type and named flag.
7092 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7093 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7094 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7095 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7096 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7097 (nios2_setup_incoming_varargs): Update call accordingly.
7098 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7099 function_arg_info instead of a mode, type and named flag.
7100 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7101 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7102 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7103 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7104 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7105 (riscv_setup_incoming_varargs): Update call accordingly.
7106 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7107 function_arg_info instead of a mode, type and named flag.
7108 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7109 Likewise.
7110 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7111 (rs6000_parm_needs_stack): Update call accordingly.
7112 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7113 instead of a mode, type and named flag.
7114 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7115 (s390_call_saved_register_used): Update call accordingly.
7116 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7117 instead of a mode, type and named flag.
7118 (sh_output_mi_thunk): Update call accordingly.
7119 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7120 function_arg_info instead of a mode, type and named flag.
7121 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7122 (spu_setup_incoming_varargs): Update call accordingly.
7123 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7124 function_arg_info instead of a mode, type and named flag.
7125 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7126 (tilegx_setup_incoming_varargs): Update call accordingly.
7127 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7128 function_arg_info instead of a mode, type and named flag.
7129 (tilegx_setup_incoming_varargs): Update call accordingly.
7130 * config/v850/v850.c (v850_function_arg_advance): Take a
7131 function_arg_info instead of a mode, type and named flag.
7132 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7133 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7134 (visium_setup_incoming_varargs): Update call accordingly.
7135 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7136 function_arg_info instead of a mode, type and named flag.
7137
7138 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7139
7140 * target.def (function_arg, function_incoming_arg): Take a
7141 function_arg_info instead of a mode, tree and named flag.
7142 * doc/tm.texi: Regenerate.
7143 * targhooks.h (default_function_arg): Take a function_arg_info
7144 instead of a mode, tree and named flag.
7145 (default_function_incoming_arg): Likewise.
7146 * targhooks.c (default_function_arg): Likewise.
7147 (default_function_incoming_arg): Likewise.
7148 * calls.h (function_arg_info::end_marker_p): New function.
7149 (function_arg_info::end_marker): Likewise.
7150 * calls.c (prepare_call_address, initialize_argument_information)
7151 (expand_call, emit_library_call_value_1): Update calls to
7152 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7153 * dse.c: Include calls.h.
7154 (get_call_args): Update call to targetm.calls.function_arg.
7155 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7156 * var-tracking.c (prepare_call_arguments): Likewise.
7157 * function.c (assign_parm_find_entry_rtl): Update call to
7158 targetm.calls.function_incoming_arg.
7159 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7160 function_arg_info instead of a mode, tree and named flag.
7161 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7162 * config/arc/arc.c (arc_function_arg): Likewise.
7163 * config/arm/arm.c (arm_function_arg): Likewise.
7164 (cmse_func_args_or_return_in_stack): Update call accordingly.
7165 (arm_function_ok_for_sibcall): Likewise.
7166 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7167 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7168 instead of a mode, tree and named flag.
7169 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7170 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7171 (c6x_call_saved_register_used): Update call accordingly.
7172 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7173 instead of a mode, tree and named flag.
7174 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7175 (cris_function_arg_1): Likewise.
7176 * config/csky/csky.c (csky_function_arg): Likewise.
7177 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7178 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7179 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7180 (frv_function_arg_1): Likewise.
7181 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7182 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7183 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7184 * config/i386/i386.c (ix86_function_arg): Likewise.
7185 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7186 (ia64_function_arg_1): Likewise.
7187 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7188 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7189 accordingly.
7190 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7191 instead of a mode, tree and named flag.
7192 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7193 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7194 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7195 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7196 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7197 (microblaze_expand_prologue): Update call accordingly.
7198 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7199 instead of a mode, tree and named flag.
7200 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7201 (mmix_function_arg_1): Likewise.
7202 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7203 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7204 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7205 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7206 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7207 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7208 (nvptx_function_incoming_arg): Likewise.
7209 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7210 * config/pa/pa.c (pa_function_arg): Likewise.
7211 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7212 * config/pru/pru.c (pru_function_arg): Likewise.
7213 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7214 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7215 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7216 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7217 (rs6000_parm_needs_stack): Update call accordingly.
7218 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7219 instead of a mode, tree and named flag.
7220 * config/s390/s390.c (s390_function_arg): Likewise.
7221 (s390_call_saved_register_used): Update call accordingly.
7222 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7223 instead of a mode, tree and named flag.
7224 (sh_output_mi_thunk): Update call accordingly.
7225 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7226 (sparc_function_incoming_arg): Take a function_arg_info instead of
7227 a mode, tree and named flag.
7228 * config/spu/spu.c (spu_function_arg): Likewise.
7229 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7230 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7231 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7232 * config/v850/v850.c (v850_function_arg): Likewise.
7233 * config/vax/vax.c (vax_function_arg): Likewise.
7234 * config/visium/visium.c (visium_function_arg): Likewise.
7235 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7236 (xtensa_function_incoming_arg): Likewise.
7237
7238 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7239
7240 * target.def (setup_incoming_varargs): Take a function_arg_info
7241 instead of a mode and tree.
7242 * doc/tm.texi: Regenerate.
7243 * targhooks.h (default_setup_incoming_varargs): Take a
7244 function_arg_info instead of a mode and tree.
7245 * targhooks.c (default_setup_incoming_varargs): Likewise.
7246 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7247 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7248 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7249 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7250 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7251 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7252 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7253 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7254 Likewise.
7255 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7256 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7257 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7258 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7259 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7260 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7261 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7262 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7263 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7264 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7265 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7266 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7267 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7268 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7269 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7270 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7271 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7272 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7273 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7274 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7275 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7276 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7277 * function.c (assign_parms_setup_varargs): Update call to
7278 targetm.calls.setup_incoming_varargs.
7279
7280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7281
7282 * target.def (pass_by_reference): Take a function_arg_info instead
7283 of a mode, type and named flag.
7284 * doc/tm.texi: Regenerate.
7285 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7286 accordingly.
7287 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7288 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7289 function_arg_info instead of a mode, type and named flag.
7290 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7291 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7292 mode, type and named flag.
7293 * calls.c (pass_by_reference): Likewise.
7294 (pass_va_arg_by_reference): Update call accordingly.
7295 (initialize_argument_information): Likewise.
7296 (emit_library_call_value_1): Likewise.
7297 * function.c (assign_parm_find_data_types): Likewise.
7298 * var-tracking.c (prepare_call_arguments): Likewise.
7299 * stor-layout.c: Include calls.h.
7300 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7301 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7302 function_arg_info instead of a mode, type and named flag.
7303 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7304 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7305 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7306 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7307 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7308 (c6x_call_saved_register_used): Update call to pass_by_reference.
7309 * config/cris/cris.c (cris_pass_by_reference): Take a
7310 function_arg_info instead of a mode, type and named flag.
7311 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7312 function_arg_info instead of a mode, type and named flag.
7313 (epiphany_arg_partial_bytes): Update call accordingly.
7314 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7315 function_arg_info instead of a mode, type and named flag.
7316 (ft32_arg_partial_bytes): Update call accordingly.
7317 * config/i386/i386.c (ix86_pass_by_reference): Take a
7318 function_arg_info instead of a mode, type and named flag.
7319 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7320 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7321 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7322 (m32r_return_in_memory): Update call accordingly.
7323 * config/mips/mips.c (mips_pass_by_reference): Take a
7324 function_arg_info instead of a mode, type and named flag.
7325 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7326 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7327 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7328 (moxie_arg_partial_bytes): Update call accordingly.
7329 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7330 function_arg_info instead of a mode, type and named flag.
7331 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7332 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7333 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7334 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7335 (riscv_return_in_memory): Update call accordingly.
7336 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7337 function_arg_info instead of a mode, type and named flag.
7338 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7339 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7340 * config/s390/s390.c (s390_pass_by_reference): Take a
7341 function_arg_info instead of a mode, type and named flag.
7342 (s390_call_saved_register_used): Update call accordingly.
7343 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7344 instead of a mode, type and named flag.
7345 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7346 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7347 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7348 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7349 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7350 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7351
7352 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7353
7354 * target.def (arg_partial_bytes): Take a function_arg_info instead
7355 of a mode, type and named flag.
7356 * doc/tm.texi: Regenerate.
7357 * target.h (function_arg_info): Declare.
7358 * calls.h (function_arg_info): New class.
7359 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7360 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7361 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7362 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7363 * calls.c (initialize_argument_information): Update call to
7364 targetm.calls.partial_bytes.
7365 (emit_library_call_value_1): Likewise.
7366 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7367 * function.c (assign_parm_find_entry_rtl): Likewise.
7368 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7369 function_arg_info instead of a mode, type and named flag.
7370 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7371 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7372 (cmse_func_args_or_return_in_stack): Update accordingly.
7373 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7374 function_arg_info instead of a mode, type and named flag.
7375 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7376 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7377 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7378 * config/fr30/fr30.c: Include calls.h.
7379 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7380 type and named flag.
7381 * config/frv/frv.c: Include calls.h.
7382 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7383 type and named flag.
7384 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7385 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7386 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7387 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7388 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7389 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7390 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7391 Likewise.
7392 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7393 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7394 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7395 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7396 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7397 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7398 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7399 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7400 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7401 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7402 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7403 (rs6000_parm_needs_stack): Update call accordingly.
7404 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7405 function_arg_info instead of a mode, type and named flag.
7406 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7407 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7408
7409 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7410
7411 * calls.h (must_pass_va_arg_in_stack): Declare.
7412 * calls.c (must_pass_va_arg_in_stack): New function.
7413 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7414 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7415 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7416 Likewise.
7417 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7418
7419 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7420
7421 * calls.h (pass_va_arg_by_reference): Declare.
7422 * calls.c (pass_va_arg_by_reference): New function.
7423 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7424 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7425 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7426 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7427 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7428 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7429 (mips_gimplify_va_arg_expr): Likewise.
7430 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7431 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7432 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7433 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7434 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7435 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7436 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7437 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7438 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7439 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7440 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7441
7442 2019-08-20 Richard Biener <rguenther@suse.de>
7443
7444 PR target/91498
7445 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7446 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7447 (convert_scalars_to_vector): Add timode_p parameter and use it
7448 to guard TImode-only operation.
7449 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7450 (pass_stv::execute): Pass down timode_p.
7451
7452 2019-08-20 Lili Cui <lili.cui@intel.com>
7453
7454 * common/config/i386/i386-common.c
7455 (processor_names): Add tigerlake and cooperlake.
7456 (processor_alias_table): Add tigerlake and cooperlake.
7457 * config.gcc: Add -march=tigerlake and cooperlake.
7458 * config/i386/driver-i386.c
7459 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7460 Add "has_avx" to classify processor.
7461 * config/i386/i386-builtins.c (processor_model) :
7462 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7463 (arch_names_table): Add tigerlake and cooperlake.
7464 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7465 and PROCESSOR_COOPERLAKE.
7466 * config/i386/i386-c.c
7467 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7468 * config/i386/i386-options.c
7469 (m_TIGERLAKE) : Define.
7470 (m_COOPERLAKE) : Ditto.
7471 (m_CORE_AVX512): Ditto.
7472 (processor_cost_table): Add cascadelake.
7473 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7474 * config/i386/i386.h
7475 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7476 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7477 (PTA_MOVDIRI): Ditto.
7478 (PTA_MOVDIR64B): Ditto.
7479 (PTA_COOPERLAKE) : Ditto.
7480 (PTA_TIGERLAKE) : Ditto.
7481 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7482 * doc/extend.texi: Add tigerlake and cooperlake.
7483 * doc/invoke.texi: Add tigerlake and cooperlake.
7484
7485 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7486
7487 * doc/install.texi (Specific, alpha): Remove note to use
7488 binutils 2.11.2 or later.
7489
7490 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7491
7492 PR middle-end/89544
7493 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7494 when possible.
7495
7496 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7497
7498 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7499 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7500 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7501 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7502 * config/aarch64/constraints.md (Dt): New constraint
7503 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7504
7505 2019-08-19 Richard Biener <rguenther@suse.de>
7506
7507 PR tree-optimization/91403
7508 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7509 cases we can handle with tail-recursion...
7510 (follow_ssa_edge_expr): ... here. Do so.
7511
7512 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7513
7514 PR target/91441
7515 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7516 implemented for -fsanitize=kernel-address, and merge check logic
7517 with -fsanitize=address.
7518
7519 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7520
7521 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7522 for cpu and machine. Factor 64/32b builtins.
7523
7524 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7525
7526 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7527 gone, point to sourceforge.net.
7528
7529 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7530
7531 * doc/ux.texi (User Experience Guidelines): Update reference.
7532
7533 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7534
7535 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7536 not LGPL".
7537
7538 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7539
7540 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7541 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7542
7543 2019-08-16 Martin Sebor <msebor@redhat.com>
7544
7545 * tree.def (TYPE_SIZE): Clarify.
7546 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7547
7548 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7549
7550 PR tree-optimization/91109
7551 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7552 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7553 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7554
7555 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7556
7557 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7558 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7559 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7560 (uavg<mode>3_ceil): New expander.
7561 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7562 mode iterator when creating CONST1_RTX.
7563 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7564 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7565 mode iterator for const1_operand predicate.
7566
7567 2019-08-16 Richard Biener <rguenther@suse.de>
7568
7569 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7570 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7571 follow_ssa_edge.
7572 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7573 (analyze_evolution_in_loop): Likewise.
7574 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7575 (follow_ssa_edge_expr): ... here. Refactor code.
7576
7577 2019-08-16 Richard Biener <rguenther@suse.de>
7578
7579 PR target/91469
7580 * config/i386/i386-features.c
7581 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7582
7583 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7584
7585 PR other/91255
7586 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7587 only if subst_name matches curr_attr string.
7588
7589 2019-08-16 Richard Biener <rguenther@suse.de>
7590
7591 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7592 stmt at gsi_p, instead replace it with a NOP removed later.
7593 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7594 that became dead because of that.
7595
7596 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7597
7598 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7599 for which we can't represent a range.
7600 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7601 set_varying.
7602 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7603 Set VR_UNDEFINED if type is not supported.
7604 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7605 * tree-vrp.c (value_range_base::check): Assert that a varying has
7606 min/max set.
7607 (value_range_base::equal_p): Early bail for undefines.
7608 (value_range_base::set_varying): Accept a type.
7609 (value_range::set_varying): Same.
7610 (value_range_base::type): VARYING can have a type, while UNDEFINE
7611 is typeless.
7612 (value_range_base::dump): Print type for VARYING nodes.
7613 (value_range_base::set): Add type to VARYING.
7614 (extract_range_from_multiplicative_op): Pass type to set_varying.
7615 (extract_range_from_binary_expr): Same.
7616 (value_range_base::intersect_helper): Same.
7617 (value_range_base::union_helper): Same.
7618 (value_range_base::normalize_symbolics): Same.
7619 (determine_value_range_1): Same.
7620 * tree-vrp.h (class value_range_base): Add type to set_varying.
7621 Add prototype for dump(void).
7622 Add prototype for supports_type_p.
7623 (class value_range): Add type to set_varying.
7624 Add prototype for dump(void).
7625 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7626 set_varying.
7627 (vr_values::get_lattice_entry): Set varying even if propagation
7628 finished.
7629 Pass type to set_varying.
7630 (vr_values::get_value_range): Remove vr_const_varying.
7631 Reallocate the lattice if needed.
7632 (vr_values::update_value_range): Pass type to set_varying.
7633 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7634 (vr_values::extract_range_from_binary_expr): Same.
7635 (vr_values::extract_range_from_unary_expr): Same.
7636 (vr_values::extract_range_from_cond_expr): Same.
7637 (vr_values::check_for_binary_op_overflow): Same.
7638 (vr_values::extract_range_basic): Same.
7639 (vr_values::extract_range_from_assignment): Same.
7640 (vr_values::vr_values): Increase size of num_vr_values.
7641 (vr_values::extract_range_from_phi_node): Pass type to
7642 set_varying.
7643
7644 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7645
7646 PR target/90878
7647 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7648 for costs of hard register moves.
7649 (ix86_register_move_cost): Likewise.
7650 * config/i386/i386.h (processor_costs): Move costs of hard
7651 register moves to hard_register. Add int_load, int_store,
7652 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7653 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7654 for costs of RTL expressions.
7655 * config/i386/x86-tune-costs.h: Move costs of hard register
7656 moves to hard_register. Duplicate int_load, int_store,
7657 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7658 sse_load, sse_store for costs of RTL expressions.
7659
7660 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7661
7662 * target.def (setup_incoming_vararg_bounds): Remove.
7663 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7664 * doc/tm.texi: Regenerate.
7665 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7666 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7667 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7668 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7669
7670 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7671
7672 MSP430: Fix lines over 80 characters long in
7673 config/msp430/*.{c,h} files
7674
7675 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7676 specifier in string.
7677 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7678 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7679 redundant old comment.
7680 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7681 Split line more than 80 characters long.
7682 * config/msp430/msp430.c (msp430_option_override): Likewise.
7683 (msp430_return_in_memory): Likewise.
7684 (msp430_gimplify_va_arg_expr): Likewise.
7685 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7686 (msp430_legitimate_constant): Likewise.
7687 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7688 (msp430_attr): Likewise.
7689 (msp430_data_attr): Likewise.
7690 (msp430_start_function): Likewise.
7691 (gen_prefix): Likewise.
7692 (msp430_init_sections): Likewise.
7693 (msp430_select_section): Likewise.
7694 (msp430_function_section): Likewise.
7695 (msp430_unique_section): Likewise.
7696 (msp430_output_aligned_decl_common): Likewise.
7697 (msp430_do_not_relax_short_jumps): Likewise.
7698 (msp430_init_builtins): Likewise.
7699 (msp430_expand_delay_cycles): Likewise.
7700 (msp430_expand_prologue): Likewise.
7701 (msp430_expand_epilogue): Likewise.
7702 (msp430_expand_helper): Likewise.
7703 (msp430_split_movsi): Likewise.
7704 (msp430_print_operand): Likewise.
7705 (msp430_return_addr_rtx): Likewise.
7706 (msp430x_extendhisi): Likewise.
7707 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7708 (ASM_SPEC): Likewise.
7709 Remove very obvious comments.
7710 (LIB_SPEC): Split line more than 80 characters long.
7711 (EH_RETURN_HANDLER_RTX): Likewise.
7712 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7713
7714 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7715
7716 MSP430: Fix whitespace errors and incorrect indentation in
7717 config/msp430/*.{c,h} files
7718
7719 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7720 (msp430_select_hwmult_lib): Likewise.
7721 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7722 (msp430_extract_mcu_data): Likewise.
7723 (struct t_msp430_mcu_data): Likewise.
7724 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7725 before left square bracket.
7726 (msp430_option_override): Fix indentation.
7727 (msp430_hard_regno_nregs_with_padding): Likewise.
7728 (msp430_initial_elimination_offset): Likewise.
7729 (msp430_special_register_convention_p): Remove whitespace before left
7730 square bracket and after exclamation mark.
7731 (msp430_evaluate_arg): Likewise.
7732 (msp430_callee_copies): Fix indentation.
7733 (msp430_gimplify_va_arg_expr): Likewise.
7734 (msp430_function_arg_advance): Remove whitespace before left square
7735 bracket.
7736 (reg_ok_for_addr): Likewise.
7737 (msp430_preserve_reg_p): Likewise.
7738 (msp430_compute_frame_info): Likewise.
7739 (msp430_asm_output_addr_const_extra): Add space between function name
7740 and open parenthesis.
7741 (has_section_name): Fix indentation.
7742 (msp430_attr): Remove trailing whitespace.
7743 (msp430_section_attr): Likewise.
7744 (msp430_data_attr): Likewise.
7745 (struct msp430_attribute_table): Fix comment and whitespace.
7746 (msp430_start_function): Remove whitespace before left square bracket.
7747 Add space between function name and open parenthesis.
7748 (msp430_select_section): Remove trailing whitespace.
7749 (msp430_section_type_flags): Remove trailing whitespace.
7750 (msp430_unique_section): Remove space before closing parenthesis.
7751 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7752 (msp430_builtins): Remove whitespace before left square bracket.
7753 (msp430_init_builtins): Fix indentation.
7754 (msp430_expand_prologue): Remove whitespace before left square bracket.
7755 Remove space before closing parenthesis.
7756 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7757 (msp430_split_movsi): Remove space before closing parenthesis.
7758 (helper_function_name_mappings): Fix indentation.
7759 (msp430_use_f5_series_hwmult): Fix whitespace.
7760 (use_32bit_hwmult): Likewise.
7761 (msp430_no_hwmult): Likewise.
7762 (msp430_output_labelref): Remove whitespace before left square bracket.
7763 (msp430_print_operand_raw): Likewise.
7764 (msp430_print_operand_addr): Likewise.
7765 (msp430_print_operand): Add two spaces after '.' in comment.
7766 Fix trailing whitespace.
7767 (msp430x_extendhisi): Fix indentation.
7768 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7769 tab.
7770 (PC_REGNUM): Likewise.
7771 (STACK_POINTER_REGNUM): Likewise.
7772 (CC_REGNUM): Likewise.
7773
7774 2019-08-15 Richard Biener <rguenther@suse.de>
7775
7776 PR target/91454
7777 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7778 helper.
7779 (general_scalar_chain::make_vector_copies): Use it.
7780
7781 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7782
7783 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7784
7785 2019-08-15 Martin Liska <mliska@suse.cz>
7786
7787 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7788 operators with no arguments.
7789 (eliminate_unnecessary_stmts): Likewise here.
7790
7791 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7792
7793 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7794 <case COMPARE>: Revert 2019-08-14 change.
7795 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7796 for (TARGET_64BIT || mode != DImode).
7797
7798 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7799
7800 * tree-vrp.c (value_range_base::set): Merge in code from
7801 value_range_base::set_and_canonicalize.
7802 Enforce canonicalization at set time.
7803 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7804 (value_range_base::set_undefined): Inline call to set().
7805 (value_range_base::set_varying): Same.
7806 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7807 (vrp_val_max): New argument handle_pointers.
7808 (vrp_val_min): Same.
7809 (ranges_from_anti_range): Same.
7810 (extract_range_into_wide_ints): Use tree argument instead of sign
7811 and precision.
7812 (extract_range_from_multiplicative_op): Take in tree type instead
7813 of precision and sign. Adapt function for canonicalized ranges.
7814 (extract_range_from_binary_expr): Pass type to
7815 extract_range_from_multiplicative_op.
7816 Adapt for canonicalized ranges.
7817 (extract_range_from_unary_expr): Same.
7818 (value_range_base::intersect_helper): Adjust for canonicalized
7819 ranges.
7820 (value_range_base::union_helper): Same.
7821 (value_range_base::normalize_symbolics): New.
7822 * tree-vrp.h (class value_range_base): Remove
7823 set_and_canonicalize.
7824 New prototype for normalize_symbolics.
7825 (class value_range): Remove set_and_canonicalize.
7826 (vrp_val_min): Adjust prototype.
7827 (vrp_val_max): Same.
7828 * vr-values.c
7829 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7830 instead of set_and_canonicalize.
7831
7832 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7833
7834 PR middle-end/91444
7835 * tree-vect-stmts.c (vectorizable_call): Check that the function
7836 is a BUILT_IN_MD function before passing it to
7837 targetm.vectorize.builtin_md_vectorized_function.
7838
7839 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7840
7841 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7842 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7843 (aarch64_select_early_remat_modes): Use it.
7844
7845 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7846
7847 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7848 16 for SVE predicates even if they are fixed-length.
7849
7850 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7851
7852 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7853 operand order match the MOV /Z alias.
7854
7855 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7856
7857 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7858 the vector pattern as an aarch64_svpattern argument. Update the
7859 overloaded caller accordingly.
7860 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7861 (aarch64_output_sve_vector_inc_dec): Likewise.
7862
7863 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7864
7865 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7866 multiplication case, try to compute VG * (lowest set bit) directly
7867 rather than always basing the multiplication on VG. Use
7868 expand_mult for the multiplication if we can.
7869
7870 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7871
7872 * config/aarch64/aarch64-protos.h
7873 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7874 (aarch64_sve_inc_dec_immediate_p): Rename to...
7875 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7876 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7877 (aarch64_output_sve_scalar_inc_dec): Declare.
7878 (aarch64_output_sve_inc_dec_immediate): Rename to...
7879 (aarch64_output_sve_vector_inc_dec): ...this.
7880 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7881 (aarch64_output_sve_scalar_inc_dec): New functions.
7882 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7883 arguments. Only handle true ADDVL and ADDPL instructions;
7884 don't emit an INC or DEC.
7885 (aarch64_sve_inc_dec_immediate_p): Rename to...
7886 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7887 (aarch64_output_sve_inc_dec_immediate): Rename to...
7888 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7889 aarch64_sve_vector_inc_dec_immediate_p.
7890 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7891 (aarch64_sve_plus_immediate): New predicates.
7892 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7893 rather than aarch64_sve_addvl_addpl_immediate.
7894 (aarch64_sve_inc_dec_immediate): Rename to...
7895 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7896 aarch64_sve_vector_inc_dec_immediate_p.
7897 (aarch64_sve_add_operand): Update accordingly.
7898 * config/aarch64/constraints.md (Uai): New constraint.
7899 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7900 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7901 operand into a register if it satisfies aarch64_sve_plus_immediate.
7902 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7903 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7904 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7905 aarch64_output_sve_vector_inc_dec instead of
7906 aarch64_output_sve_inc_dec_immediate.
7907
7908 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7909
7910 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7911 (UNSPEC_REVW): New constants.
7912 (elem_bits): New mode attribute.
7913 (SVE_INT_UNARY): New int iterator.
7914 (optab): Handle UNSPEC_REV[BHW].
7915 (sve_int_op): New int attribute.
7916 (min_elem_bits): Handle VNx16QI and the predicate modes.
7917 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7918 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7919 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7920 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7921 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7922 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7923 unspecs based on the total width of the reversed data.
7924 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7925 reinterpret followed by a subreg on big-endian targets.
7926
7927 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7928 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7929
7930 * config/aarch64/aarch64-sve.md
7931 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7932 alternatives in which one of the inputs is in the same register
7933 as the output.
7934
7935 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7936
7937 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7938 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7939
7940 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7941
7942 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7943 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7944
7945 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7946 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7947
7948 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7949 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7950 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7951
7952 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7953 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7954
7955 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7956 Add an alternative that uses reversed shifts.
7957
7958 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7959
7960 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7961 struct.
7962
7963 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7964
7965 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7966 a commutativity marker.
7967
7968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7969 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7970
7971 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7972 (aarch64_prepare_sve_cond_int_fma): Declare.
7973 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7974 (aarch64_prepare_sve_int_fma): New functions.
7975 (aarch64_prepare_sve_cond_int_fma): Likewise.
7976 * config/aarch64/aarch64-sve.md
7977 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7978 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7979 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7980 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7981 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7982 (*madd<mode>): Rename to...
7983 (*fma<mode>4): ...this.
7984 (*msub<mode>): Rename to...
7985 (*fnma<mode>4): ...this.
7986
7987 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7988 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7989
7990 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7991 Print 2.0 naturally.
7992 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7993 * config/aarch64/predicates.md
7994 (aarch64_sve_float_negated_arith_immediate): New predicate,
7995 renamed from aarch64_sve_float_arith_with_sub_immediate.
7996 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7997 positive and negative constants.
7998 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7999 or an aarch64_sve_float_arith_with_sub_immediate.
8000 * config/aarch64/constraints.md (vsN): Use
8001 aarch64_sve_float_negated_arith_immediate.
8002 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8003 iterator.
8004 (sve_pred_fp_rhs2_immediate): New int attribute.
8005 * config/aarch64/aarch64-sve.md
8006 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8007 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8008 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8009 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8010 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8011 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8012
8013 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8014 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8015
8016 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8017 (*aarch64_cond_abd<SVE_F:mode>_3)
8018 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8019
8020 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8021 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8022
8023 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8024 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8025
8026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8027 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8028
8029 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8030 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8031 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8032 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8033 optabs.
8034 * optabs.h (create_convert_operand_from): Expand comment.
8035 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8036 when mapping scalar rtxes to vector operands.
8037 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8038 ashiftrt and lshiftrt.
8039 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8040 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8041 (*cond_<optab><mode>_any_const): New patterns.
8042
8043 2019-08-15 Martin Liska <mliska@suse.cz>
8044
8045 PR ipa/91438
8046 * cgraph.c (cgraph_node::remove): When setting
8047 n->origin = NULL for all nested functions, reset
8048 also next_nested.
8049
8050 2019-08-15 Martin Liska <mliska@suse.cz>
8051
8052 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8053 and next_nested.
8054
8055 2019-08-15 Martin Liska <mliska@suse.cz>
8056
8057 PR ipa/91404
8058 * passes.c (order): Remove.
8059 (uid_hash_t): Likewise).
8060 (remove_cgraph_node_from_order): Remove from set
8061 of pointers (cgraph_node *).
8062 (insert_cgraph_node_to_order): New.
8063 (duplicate_cgraph_node_to_order): New.
8064 (do_per_function_toporder): Register all 3 cgraph hooks.
8065 Skip removed_nodes now as we know about all of them.
8066
8067 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8068
8069 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8070 <case E_V8QImode>: Use vector_set path for
8071 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8072 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8073 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8074
8075 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8076
8077 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8078
8079 2019-08-14 Martin Sebor <msebor@redhat.com>
8080
8081 PR tree-optimization/91294
8082 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8083 source length as exact.
8084
8085 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8086
8087 * doc/extend.texi: Add "noinit" attribute documentation.
8088 * doc/sourcebuild.texi: Add noinit effective target documentation.
8089 * varasm.c (default_section_type_flags): Add support for "noinit"
8090 section.
8091 (default_elf_select_section): Add support for "noinit" attribute.
8092 * config/msp430/msp430.c (msp430_attribute_table): Remove
8093 "noinit" entry.
8094
8095 2019-08-14 Richard Biener <rguenther@suse.de>
8096 Uroš Bizjak <ubizjak@gmail.com>
8097
8098 PR target/91154
8099 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8100 mode arguments.
8101 (scalar_chain::smode): New member.
8102 (scalar_chain::vmode): Likewise.
8103 (dimode_scalar_chain): Rename to...
8104 (general_scalar_chain): ... this.
8105 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8106 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8107 base with TImode and V1TImode.
8108 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8109 (general_scalar_chain::vector_const_cost): Adjust for SImode
8110 chains.
8111 (general_scalar_chain::compute_convert_gain): Likewise. Add
8112 {S,U}{MIN,MAX} support.
8113 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8114 (general_scalar_chain::make_vector_copies): Likewise. Handle
8115 non-DImode chains appropriately.
8116 (general_scalar_chain::convert_reg): Likewise.
8117 (general_scalar_chain::convert_op): Likewise.
8118 (general_scalar_chain::convert_insn): Likewise. Add
8119 fatal_insn_not_found if the result is not recognized.
8120 (convertible_comparison_p): Pass in the scalar mode and use that.
8121 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8122 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8123 (scalar_to_vector_candidate_p): Remove by inlining into single
8124 caller.
8125 (general_remove_non_convertible_regs): Rename from
8126 dimode_remove_non_convertible_regs.
8127 (remove_non_convertible_regs): Remove by inlining into single caller.
8128 (convert_scalars_to_vector): Handle SImode and DImode chains
8129 in addition to TImode chains.
8130 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8131 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8132 (*<maxmin>di3_doubleword): Likewise.
8133
8134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8135 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8136
8137 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8138 (*cond_bic<mode>_any): New patterns.
8139
8140 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8141
8142 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8143 take the equivalent mask, as well as a bit count.
8144 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8145 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8146 (aarch64_sve_pred_and_operand): New predicates.
8147 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8148 code attribute.
8149 * config/aarch64/aarch64-sve.md
8150 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8151 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8152
8153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8154
8155 * config/aarch64/aarch64-sve.md
8156 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8157 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8158 New patterns.
8159
8160 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8161 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8162
8163 * config/aarch64/aarch64-sve.md
8164 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8165 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8166
8167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8168 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8169
8170 * config/aarch64/aarch64-sve.md
8171 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8172 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8173
8174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8175
8176 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8177 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8178 New pattern.
8179
8180 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8181 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8182
8183 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8184
8185 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8186 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8187
8188 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8189 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8190 (aarch64_print_operand): Add support for %I.
8191 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8192 Bitcast floating-point constants to the corresponding integer constant.
8193 (aarch64_float_const_representable_p): Handle vectors as well
8194 as scalars.
8195 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8196 for the new vcond_mask_<mode><vpred> expander.
8197 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8198 test aarch64_float_const_representable_p.
8199 (aarch64_sve_reg_or_dup_imm): New predicate.
8200 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8201 gen_vcond_mask_<mode><vpred> instead of
8202 gen_aarch64_sve_dup<mode>_const.
8203 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8204 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8205 for operands 1 and 2 respectively. Force operand 2 into a
8206 register if operand 1 is a register. Fold old define_insn...
8207 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8208 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8209 floating-point constants that can be moved as integers. Add
8210 alternatives for MOV /M and FMOV /M.
8211 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8212 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8213 1 and 2 respectively.
8214 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8215 as scalars.
8216 (vss): New constraint.
8217
8218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8219
8220 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8221 (aarch64_sve_float_maxmin_operand): New predicates.
8222 * config/aarch64/constraints.md (vsB): New constraint.
8223 (vsM): Fix typo.
8224 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8225 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8226 UNSPEC_COND_FMINNM.
8227 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8228 Use aarch64_sve_float_maxmin_operand for operand 2.
8229 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8230 Add alternatives for the constant forms.
8231
8232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8233
8234 * config/aarch64/constraints.md (vsb): New constraint.
8235 (vsm): Generalize description.
8236 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8237 iterator.
8238 (sve_imm_con): Handle smax, smin, umax and umin.
8239 (sve_imm_prefix): New code attribute.
8240 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8241 (aarch64_sve_vsb_operand): New predicates.
8242 (aarch64_sve_mul_immediate): Rename to...
8243 (aarch64_sve_vsm_immediate): ...this.
8244 (aarch64_sve_mul_operand): Rename to...
8245 (aarch64_sve_vsm_operand): ...this.
8246 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8247 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8248 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8249 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8250 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8251 add movprfx support for the immediate alternatives.
8252 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8253 of the above.
8254 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8255 for operand 3.
8256
8257 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8258
8259 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8260 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8261 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8262
8263 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8264
8265 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8266 (optab, sve_int_op): Handle them.
8267 * config/aarch64/aarch64-sve.md: Expand comment.
8268
8269 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8270
8271 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8272 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8273 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8274
8275 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8276
8277 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8278 (aarch64_expand_sve_const_pred_trn): New functions.
8279 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8280 use the above functions when the parameter is true.
8281 (aarch64_expand_sve_const_pred): Update call accordingly.
8282 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8283 Rename to...
8284 (@aarch64_sve_<perm_insn><mode>): ...this.
8285
8286 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8287
8288 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8289 Declare.
8290 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8291 (aarch64_sve_emit_int_cmp): New functions.
8292 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8293 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8294 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8295 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8296 (UNSPEC_PRED_Z): New unspec.
8297 (set_clobber_cc_nzc): Delete.
8298 * config/aarch64/aarch64-sve.md: Add a block comment about
8299 UNSPEC_PRED_Z.
8300 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8301 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8302 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8303 UNSPEC_MERGE_PTRUE.
8304 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8305 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8306 check for compatible predicates.
8307 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8308 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8309 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8310 comparisons above.
8311
8312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8313
8314 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8315 * config/aarch64/aarch64-sve.md: Add a section describing it.
8316 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8317 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8318 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8319 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8320 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8321 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8322 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8323 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8324 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8325 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8326 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8327 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8328 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8329 (aarch64_evpc_rev_local): Update accordingly.
8330
8331 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8332
8333 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8334 iterators.
8335 (SVE_BHSI, SVE_SDI): Tweak comment.
8336 (SVE_HSDI): Likewise. Fix definition.
8337 (SVE_SDF): New mode iterator.
8338 (elem_bits): New mode attribute.
8339 (SVE_COND_FCVT): New int iterator.
8340 * config/aarch64/aarch64-sve.md
8341 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8342 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8343 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8344 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8345 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8346 ...these new patterns.
8347 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8348 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8349 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8350 Merge into...
8351 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8352 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8353 ...these new patterns.
8354 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8355 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8356 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8357 ...this new pattern.
8358 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8359 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8360 ...this new pattern.
8361 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8362
8363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8364
8365 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8366 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8367 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8368 unspecs.
8369 (optab, su): Handle them.
8370 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8371 * config/aarch64/aarch64-sve.md
8372 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8373 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8374 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8375 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8376 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8377 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8378 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8379 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8380 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8381 FIXUORS.
8382 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8383 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8384 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8385 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8386 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8387 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8388 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8389 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8390 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8391 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8392 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8393 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8394 of UNSPEC_FLOAT_CONVERT.
8395 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8396 aarch64_sve_extend<mode><Vwide>2.
8397
8398 2019-08-14 Richard Biener <rguenther@suse.de>
8399
8400 PR target/91154
8401 * config/i386/i386-features.c
8402 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8403 individual instruction gain. Fix reg-reg copy GRP cost. Use
8404 ix86_cost->sse_op for vector instruction costs.
8405
8406 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8407
8408 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8409 (cmp_op): Handle it.
8410 (SVE_COND_FP_CMP): Rename to...
8411 (SVE_COND_FP_CMP_I0): ...this.
8412 (SVE_FP_CMP): Remove.
8413 * config/aarch64/aarch64-sve.md
8414 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8415 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8416 using unspecs to represent the comparison.
8417 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8418 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8419 accordingly.
8420 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8421 (aarch64_unspec_cond_code): Move after integer code. Handle
8422 UNORDERED.
8423 (aarch64_emit_sve_predicated_cond): Replace with...
8424 (aarch64_emit_sve_fp_cond): ...this new function.
8425 (aarch64_emit_sve_or_conds): Replace with...
8426 (aarch64_emit_sve_or_fp_conds): ...this new function.
8427 (aarch64_emit_sve_inverted_cond): Replace with...
8428 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8429 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8430
8431 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8432
8433 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8434 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8435 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8436 SVE_HSD instead of SVE_SD.
8437
8438 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8440
8441 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8442 iterator.
8443 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8444 attributes.
8445 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8446 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8447 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8448 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8449 (*div<SVE_F:mode>3): Generalize to...
8450 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8451
8452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8453 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8454
8455 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8456 constants.
8457 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8458 predicate.
8459 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8460 Declare.
8461 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8462 function.
8463 * config/aarch64/aarch64-sve.md: Add a block comment about the
8464 handling of predicated FP operations.
8465 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8466 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8467 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8468 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8469 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8470 operand.
8471 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8472 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8473 operand.
8474 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8475 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8476 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8477 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8478 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8479 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8480 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8481 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8482 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8483 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8484 strictness operands. Use aarch64_sve_pred_dominates_p to check
8485 whether the predicate on the conditional operation is suitable
8486 for merging. Split patterns into the canonical equal-predicate form.
8487 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8488 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8489
8490 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8491 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8492
8493 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8494 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8495 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8496 rtx codes.
8497 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8498 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8499 unspecs.
8500
8501 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8502 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8503
8504 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8505 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8506 actually has, rather than relying on REG_EQUAL notes.
8507 Make the insn operand order match the SVE operand order.
8508 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8509 the SVE operand order.
8510
8511 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8512
8513 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8514 (aarch64_emit_set_immediate): Likewise.
8515 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8516 (aarch64_pfalse_reg): Likewise.
8517 (aarch64_convert_sve_data_to_pred): New function.
8518 (aarch64_sve_move_pred_via_while): Take an optional target register
8519 and the required register mode.
8520 (aarch64_expand_sve_const_pred_1): New function.
8521 (aarch64_expand_sve_const_pred): Likewise.
8522 (aarch64_expand_mov_immediate): Build an all-true predicate
8523 if the significant bits of the immediate are all true. Use
8524 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8525 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8526 before register allocation.
8527 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8528 a VNx16BI PTRUE when splitting the memory alternative.
8529 (vec_duplicate<mode>): Update accordingly.
8530 (*pred_cmp<cmp_op><mode>): Rename to...
8531 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8532
8533 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8534
8535 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8536 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8537 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8538 (UNSPEC_PTEST): New unspec.
8539 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8540 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8541 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8542 * config/aarch64/aarch64-sve.md: Add a new section describing the
8543 handling of UNSPEC_PTEST.
8544 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8545 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8546 (ptest_ptrue<mode>): Replace with...
8547 (aarch64_ptest<mode>): ...this new pattern.
8548 (cbranch<mode>4): Update after above changes.
8549 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8550 UNSPEC_PTEST_PTRUE.
8551 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8552 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8553 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8554
8555 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8556
8557 PR lto/91287
8558 * builtins.c (builtin_with_linkage_p): New function.
8559 * builtins.h (builtin_with_linkage_p): New function.
8560 * symtab.c (write_symbol): Remove redundant assert.
8561 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8562 Remove FIXME and use builtin_with_linkage_p.
8563
8564 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8565
8566 PR middle-end/91421
8567 * tree-core.h (function_decl::function_code): Change type to
8568 unsigned int.
8569 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8570 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8571 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8572 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8573 is BUILT_IN_NORMAL.
8574 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8575 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8576 (fndecl_built_in_p): Change the type of the "name" argument to
8577 unsigned int.
8578 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8579 after check for DECL_BUILT_IN_CLASS.
8580 * cgraphclones.c (build_function_decl_skip_args): Use
8581 set_decl_built_in_function.
8582 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8583 * ipa-split.c (split_function): Likewise.
8584 * langhooks.c (add_builtin_function_common): Likewise.
8585 * omp-simd-clone.c (simd_clone_create): Likewise.
8586 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8587 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8588 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8589 DECL_FUNCTION_CODE.
8590 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8591 instead of DECL_FUNCTION_CODE.
8592 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8593 instead of DECL_FUNCTION_CODE.
8594 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8595 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8596 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8597 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8598 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8599 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8600 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8601 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8602 (alpha_gimple_fold_builtin): Likewise.
8603 * config/arc/arc.c (arc_expand_builtin): Likewise.
8604 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8605 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8606 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8607 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8608 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8609 * config/frv/frv.c (frv_expand_builtin): Likewise.
8610 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8611 (gcn_expand_builtin): Likewise.
8612 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8613 (fold_builtin_cpu): Likewise.
8614 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8615 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8616 (ix86_gimple_fold_builtin): Likewise.
8617 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8618 (ia64_expand_builtin): Likewise.
8619 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8620 * config/mips/mips.c (mips_expand_builtin): Likewise.
8621 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8622 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8623 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8624 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8625 * config/pa/pa.c (pa_expand_builtin): Likewise.
8626 * config/pru/pru.c (pru_expand_builtin): Likewise.
8627 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8628 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8629 Likewise.
8630 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8631 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8632 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8633 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8634 (rs6000_builtin_reciprocal): Likewise.
8635 * config/rx/rx.c (rx_expand_builtin): Likewise.
8636 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8637 * config/s390/s390.c (s390_expand_builtin): Likewise.
8638 * config/sh/sh.c (sh_expand_builtin): Likewise.
8639 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8640 (sparc_fold_builtin): Likewise.
8641 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8642 * config/spu/spu.c (spu_expand_builtin): Likewise.
8643 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8644 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8645 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8646 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8647 (xtensa_expand_builtin): Likewise.
8648
8649 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8650
8651 PR middle-end/91421
8652 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8653 before the DECL_FUNCTION_CODE.
8654 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8655 to check for a BUILT_IN_ALLOCA call.
8656 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8657 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8658 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8659 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8660 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8661 for BUILT_IN_NORMAL functions.
8662 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8663 test for BUILT_IN_TM_ABORT.
8664 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8665 to check for a BUILT_IN_STACK_RESTORE call.
8666 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8667 * tree-ssa-threadedge.c
8668 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8669 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8670 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8671 test for a BUILT_IN_NORMAL call instead of a negative test for
8672 an internal function call.
8673
8674 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8675
8676 * tree.h (build_vector_a_then_b): Declare.
8677 * tree.c (build_vector_a_then_b): New function.
8678 * fold-const-call.c (fold_while_ult): Likewise.
8679 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8680 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8681 (aarch64_svpattern): New enum.
8682 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8683 constants through aarch64_expand_mov_immediate.
8684 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8685 than general_operand as the predicate for operand 1.
8686 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8687 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8688 insn_type.
8689 (simd_immediate_info::simd_immediate_info): New overload that
8690 takes a scalar_int_mode and an svpattern.
8691 (simd_immediate_info::u): Add a "pattern" field.
8692 (svpattern_token): New function.
8693 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8694 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8695 (aarch64_sve_move_pred_via_while): New functions.
8696 (aarch64_expand_mov_immediate): Try using
8697 aarch64_sve_move_pred_via_while for predicates that contain N ones
8698 followed by M zeros but that do not correspond to a VLnnn pattern.
8699 (aarch64_sve_pred_valid_immediate): New function.
8700 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8701 with PTRUE and PFALSE.
8702 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8703 forms.
8704
8705 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8706
8707 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8708 flag.
8709 (darwin_override_options): Likewise.
8710 * config/darwin.h: Likewise.
8711 * config/darwin.opt: Likewise.
8712 * config/i386/i386.c (output_pic_addr_const): Likewise.
8713 * config/rs6000/darwin.h: Likewise.
8714 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8715 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8716 ... this TARGET_MACHO_SYMBOL_STUBS.
8717 (FUNCTION_PROFILER):Likewise.
8718 * config/i386/i386.h: Likewise.
8719
8720 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8721
8722 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8723 <case E_V2SImode>: Use vec_extr path for
8724 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8725 <case E_V8QImode>: Ditto.
8726 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8727 Use SWI48 mode iterator. Use %k to output operand 0.
8728 (*mmx_pextrw): New insn pattern.
8729 (*mmx_pextrb): Ditto.
8730 (*mmx_pextrb_zext): Ditto.
8731
8732 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8733
8734 * target.def (libc_has_function, libc_has_fast_function): Improve
8735 documentation strings.
8736 * doc/tm.texi: Regenerate.
8737
8738 2019-08-13 Caroline Tice <cmtice@google.com>
8739
8740 PR other/91396
8741 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8742 vtv_end.o or vtv_end_preinit.o files if !static.
8743
8744 2019-08-13 Olivier Hainque <hainque@adacore.com>
8745
8746 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8747
8748 2019-08-13 Olivier Hainque <hainque@adacore.com>
8749
8750 * rtlanal.c (tablejump_casesi_pattern): New function, to
8751 determine if a tablejump insn is a casesi dispatcher. Extracted
8752 from patch_jump_insn.
8753 * rtl.h (tablejump_casesi_pattern): Declare.
8754 * cfgrtl.c (patch_jump_insn): Use it.
8755 * dwarf2cfi.c (create_trace_edges): Use it.
8756
8757 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8758
8759 PR target/81800
8760 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8761 operand is larger than a long int.
8762
8763 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8764
8765 * machmode.h (opt_mode::else_mode): New function.
8766 (opt_mode::else_blk): Use it.
8767 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8768 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8769 (aarch64_gen_stepped_int_parallel): Likewise.
8770 (aarch64_stepped_int_parallel_p): Likewise.
8771 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8772 argument.
8773 * config/aarch64/aarch64.c
8774 (aarch64_expand_sve_widened_duplicate): Delete.
8775 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8776 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8777 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8778 argument. Use early returns in the !CONST_INT_P handling.
8779 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8780 than handling some inline.
8781 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8782 from...
8783 (aarch64_simd_container_mode): ...here.
8784 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8785 (aarch64_sve_ld1rq_operand_p): New functions.
8786 * config/aarch64/predicates.md (descending_int_parallel)
8787 (aarch64_sve_ld1rq_operand): New predicates.
8788 * config/aarch64/constraints.md (UtQ): New constraint.
8789 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8790 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8791 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8792 (@aarch64_sve_reinterpret<mode>): New expander.
8793 (*aarch64_sve_reinterpret<mode>): New pattern.
8794 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8795 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8796 (*sve_ld1rq<Vesize>): Replace with...
8797 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8798
8799 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8800
8801 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8802 16:12.
8803
8804 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8805
8806 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8807 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8808 (msp430_check_path_for_devices): New.
8809 (parse_devices_csv_1): New.
8810 (parse_devices_csv): New.
8811 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8812 MCU data in devices.csv before using the hard-coded data.
8813 Warn if devices.csv isn't found and the MCU wasn't found in the
8814 hard-coded data either.
8815 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8816 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8817 Search for devices.csv on -I and -L paths.
8818 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8819 msp430_set_driver_var.
8820 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8821 -mdevices-csv-loc=.
8822 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8823 searched for devices.csv.
8824 (mwarn-devices-csv): Document option.
8825
8826 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8827
8828 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8829 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8830 Use a single Dn alternative instead of separate Dz and Dm
8831 alternatives. Use aarch64_output_sve_move_immediate.
8832 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8833 function.
8834 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8835 for predicates too.
8836 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8837 (aarch64_output_ptrue): Delete.
8838
8839 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8840
8841 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8842 INDEX.
8843 (simd_immediate_info::value, simd_immediate_info::step)
8844 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8845 with...
8846 (simd_immediate_info::u): ...this new union.
8847 (simd_immediate_info::simd_immediate_info): Update accordingly.
8848 (aarch64_output_simd_mov_immediate): Likewise.
8849 (aarch64_output_sve_mov_immediate): Likewise.
8850
8851 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8852
8853 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8854 extra_gcc_objs.
8855 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8856 (msp430_select_cpu): New spec function.
8857 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8858 MCU data.
8859 * config/msp430/msp430-devices.c: New file.
8860 * config/msp430/msp430-devices.h: New file.
8861 * config/msp430/msp430.c: Remove msp430_mcu_data.
8862 (msp430_option_override): Use msp430_extract_mcu_data to extract
8863 MCU data.
8864 (msp430_use_f5_series_hwmult): Likewise.
8865 (use_32bit_hwmult): Likewise.
8866 (msp430_no_hwmult): Likewise.
8867 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8868 assembler.
8869 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8870 and -mcpu option.
8871 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8872 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8873 Remove hard-coded MCU multilib data.
8874
8875 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8876
8877 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8878 based on the mode instead of testing properties of it.
8879
8880 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8881
8882 * doc/md.texi: Document the x and y constraints for AArch64.
8883 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8884 (FP_LO8_REGS): New reg_class.
8885 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8886 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8887 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8888 * config/aarch64/predicates.md (aarch64_simd_register): Use
8889 FP_REGNUM_P instead of checking the classes manually.
8890 * config/aarch64/constraints.md (y): New constraint.
8891
8892 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8893
8894 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8895 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8896 * config/aarch64/aarch64-simd.md
8897 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8898 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8899 from the asm template.
8900 * config/aarch64/aarch64-sve.md
8901 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8902 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8903 from the asm template.
8904 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8905 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8906 from the asm template.
8907 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8908
8909 2019-08-13 Martin Liska <mliska@suse.cz>
8910
8911 * value-prof.c (gimple_ic_transform): Add new line.
8912 Print details with MSG_NOTE.
8913
8914 2019-08-13 Martin Liska <mliska@suse.cz>
8915
8916 * doc/invoke.texi: Document automatic detection of jobserver.
8917 * lto-wrapper.c (run_gcc): Detect jobserver always.
8918
8919 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8920
8921 * config/i386/i386-expand.c (ix86_expand_vector_set)
8922 <case E_V2SImode>: Use vec_merge path for
8923 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8924 <case E_V8QImode>: Ditto.
8925 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8926 (*mmx_pinsrb): Ditto.
8927
8928 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8929
8930 PR target/83250
8931 PR target/91340
8932 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8933 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8934 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8935 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8936 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8937
8938 2019-08-12 Richard Biener <rguenther@suse.de>
8939
8940 PR lto/91375
8941 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8942 flag_devirtualize.
8943
8944 2019-08-12 Richard Biener <rguenther@suse.de>
8945
8946 PR driver/91130
8947 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8948 lang_mask option, always use CL_DRIVER.
8949 (get_options_from_collect_gcc_options): Adjust.
8950 (find_and_merge_options): Likewise.
8951 (run_gcc): Likewise.
8952
8953 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8954
8955 * ipa-predicate.c (add_condition): Restore inverted test.
8956
8957 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8958
8959 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8960 (enum omp_clause_device_type_kind): New enum.
8961 (struct tree_omp_clause): Add subcode.device_type_kind.
8962 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8963 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8964 for device_type clause.
8965 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8966 * tree-pretty-print.c (dump_omp_clause): Likewise.
8967
8968 PR target/91408
8969 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8970 vector_operand.
8971
8972 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8973
8974 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8975 handling spilled pseudos.
8976
8977 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8978
8979 PR target/91386
8980 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8981 to preserve the contents of the original insns.
8982
8983 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8984
8985 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8986 (addsi3_compare_op2): Likewise.
8987
8988 2019-08-09 Martin Liska <mliska@suse.cz>
8989
8990 * alias.c (alias_ptr_types_compatible_p): Strengten
8991 type comparison in LTO mode.
8992
8993 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8994
8995 PR middle-end/90313
8996 * tree-tailcall.c (find_tail_calls): Reject calls that might
8997 read from an escaped RESULT_DECL.
8998
8999 2019-08-09 Martin Liska <mliska@suse.cz>
9000
9001 * doc/invoke.texi: Document the option value.
9002 * lto-wrapper.c (run_gcc): Set auto_parallel
9003 only with -flto=auto.
9004
9005 2019-08-09 Martin Liska <mliska@suse.cz>
9006
9007 * opts.c (common_handle_option): Error for an invalid argument
9008 to -flto=.
9009
9010 2019-08-09 Martin Liska <mliska@suse.cz>
9011
9012 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9013 use dump_printf to report optimization.
9014 (sem_variable::merge): Likwise.
9015 (sem_item_optimizer::merge_classes): Use dump_printf to report
9016 ICF hits.
9017
9018 2019-08-09 Martin Liska <mliska@suse.cz>
9019
9020 * value-prof.c (gimple_divmod_fixed_value_transform):
9021 Use dump_printf_loc.
9022 (gimple_mod_pow2_value_transform): Likewise.
9023 (gimple_mod_subtract_transform): Likewise.
9024 (init_node_map): Likewise.
9025 (gimple_ic_transform): Likewise.
9026 (gimple_stringops_transform): Likewise.
9027
9028 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9029
9030 * doc/extend.texi: Add const qualifier to ld intrinsics.
9031
9032 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9033
9034 * config/rs6000/dfp.md (D64_D128): Rename to ...
9035 (DDTD): ... this, throughout.
9036 (dfp_suffix): Rename to ...
9037 (q): ... this, throughout.
9038
9039 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9040
9041 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9042 (dfp_suffix): Ditto.
9043 (adddd3, addtd3): Merge to ...
9044 (add<mode>3 for D64_D128): ... this.
9045 (subdd3, subtd3): Merge to ...
9046 (sub<mode>3 for D64_D128): ... this.
9047 (muldd3, multd3): Merge to ...
9048 (mul<mode>3 for D64_D128): ... this.
9049 (divdd3, divtd3): Merge to ...
9050 (div<mode>3 for D64_D128): ... this.
9051 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9052 (*cmp<mode>_internal1 for D64_D128): ... this.
9053 (ftruncdd2, ftrunctd2): Merge to ...
9054 (ftrunc<mode>2 for D64_D128): ... this.
9055 (fixdddi2, fixtddi2): Merge to ...
9056 (fix<mode>di2 for D64_D128): ... this.
9057
9058 2019-08-08 Jim Wilson <jimw@sifive.com>
9059
9060 PR target/91229
9061 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9062 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9063 Pass into recursive call.
9064 (riscv_flatten_aggregate_argument): New arg. Pass to
9065 riscv_flatten_aggregate_field.
9066 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9067 riscv_flatten_aggregate_argument twice, with false and true as last
9068 arg. Process result twice. Compare results and warn if different.
9069 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9070
9071 2019-08-08 Martin Liska <mliska@suse.cz>
9072
9073 PR bootstrap/91352
9074 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9075 * lto-wrapper.c (jobserver_active_p): Likewise.
9076
9077 2019-08-08 Martin Liska <mliska@suse.cz>
9078
9079 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9080 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9081 (create_version_clone_with_body): Likewise.
9082
9083 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9084
9085 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9086 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9087 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9088 GOVD_EXPLICIT flags.
9089 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9090 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9091 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9092 call install_var_field with mask 11 instead of 3.
9093 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9094 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9095
9096 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9097
9098 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9099 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9100
9101 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9102
9103 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9104 MOVPRFX alternatives. Make the GPR alternatives more expensive
9105 than the FPR ones.
9106
9107 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9108
9109 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9110 Disparage the GPR alternative relative to the FPR one.
9111 Fix handling of 8-bit and 16-bit FPR values.
9112
9113 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9114
9115 * config/aarch64/iterators.md (BITWISEV): Delete.
9116 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9117 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9118 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9119 UNSPEC_FMINNMV, UNSPEC_FMINV.
9120 (bit_reduc_op): Delete.
9121 (sve_int_op): New int attribute.
9122 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9123 UNSPEC_FMINNMV, UNSPEC_FMINV.
9124 * config/aarch64/aarch64-sve.md
9125 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9126 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9127 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9128 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9129 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9130 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9131 new patterns.
9132 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9133 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9134 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9135 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9136 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9137 new patterns.
9138
9139 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9140
9141 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9142 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9143 (fms<mode>4, *fms<mode>4): Replace with...
9144 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9145 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9146 Use unspecs instead of rtx codes.
9147 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9148 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9149
9150 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9151
9152 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9153 int iterator.
9154 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9155 * config/aarch64/aarch64-sve.md
9156 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9157 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9158 use a single unspec for the rhs.
9159 (*<su><maxmin><mode>3): Delete.
9160 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9161
9162 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9163
9164 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9165 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9166 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9167 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9168 (optab, sve_fp_op): Handle them.
9169 (SVE_FP_UNARY): Delete.
9170 (optab): Remove sqrt entry.
9171 (sve_fp_op): Remove neg, abs and sqrt entries.
9172 (SVE_COND_FP_UNARY): New int iterator.
9173 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9174 (*<frint_pattern><mode>2): Delete.
9175 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9176 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9177 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9178 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9179
9180 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9181
9182 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9183
9184 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9185
9186 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9187 (UNSPEC_COND_FADD): ...this.
9188 (UNSPEC_COND_SUB): Rename to...
9189 (UNSPEC_COND_FSUB): ...this.
9190 (UNSPEC_COND_MUL): Rename to...
9191 (UNSPEC_COND_FMUL): ...this.
9192 (UNSPEC_COND_DIV): Rename to...
9193 (UNSPEC_COND_FDIV): ...this.
9194 (UNSPEC_COND_MAX): Rename to...
9195 (UNSPEC_COND_FMAXNM): ...this.
9196 (UNSPEC_COND_MIN): Rename to...
9197 (UNSPEC_COND_FMINNM): ...this.
9198 (UNSPEC_COND_LT): Rename to...
9199 (UNSPEC_COND_FCMLT): ...this.
9200 (UNSPEC_COND_LE): Rename to...
9201 (UNSPEC_COND_FCMLE): ...this.
9202 (UNSPEC_COND_EQ): Rename to...
9203 (UNSPEC_COND_FCMEQ): ...this.
9204 (UNSPEC_COND_NE): Rename to...
9205 (UNSPEC_COND_FCMNE): ...this.
9206 (UNSPEC_COND_GE): Rename to...
9207 (UNSPEC_COND_FCMGE): ...this.
9208 (UNSPEC_COND_GT): Rename to...
9209 (UNSPEC_COND_FCMGT): ...this.
9210 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9211 (sve_fp_op_rev): Update accordingly.
9212 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9213
9214 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9215
9216 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9217 banner comments.
9218 * config/aarch64/check-sve-md.awk: New file.
9219 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9220 (insn-conditions.md): Depend on it.
9221
9222 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9223
9224 PR target/91385
9225 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9226 (*negsi2_cmpz_zext): Ditto.
9227
9228 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9229
9230 * config/aarch64/iterators.md (commutative): Remove.
9231
9232 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9233
9234 PR driver/91130
9235 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9236 processing COLLECT_GCC_OPTIONS.
9237 (run_gcc): Likewise.
9238
9239 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9240
9241 PR tree-optimization/91109
9242 * lra-remat.c (update_scratch_ops): Remove assignment of the
9243 hard register.
9244
9245 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9246
9247 * data-streamer.h (streamer_write_poly_uint64): Declare.
9248 (streamer_read_poly_uint64): Likewise.
9249 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9250 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9251 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9252 (add_condition): Take a poly_int64 size.
9253 * ipa-predicate.c (add_condition): Likewise.
9254 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9255 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9256 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9257 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9258 condition::size as a poly_int64.
9259 (unmodified_parm_1): Take a poly_int64 size pointer.
9260 (unmodified_parm): Likewise.
9261 (unmodified_parm_or_parm_agg_item): Likewise.
9262 (set_cond_stmt_execution_predicate): Update accordingly.
9263 (set_switch_stmt_execution_predicate): Likewise.
9264 (will_be_nonconstant_expr_predicate): Likewise.
9265 (will_be_nonconstant_predicate): Likewise.
9266 (inline_read_section): Stream condition::size as a poly_int.
9267 (ipa_fn_summary_write): Likewise.
9268
9269 2019-08-07 Martin Liska <mliska@suse.cz>
9270
9271 * fold-const.c (twoval_comparison_p): Replace int
9272 with bool as a return type.
9273 (simple_operand_p): Likewise.
9274 (operand_equal_p): Replace int with bool as a return type.
9275 * fold-const.h (operand_equal_p): Likewise.
9276
9277 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9278
9279 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9280 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9281 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9282 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9283 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9284 * tree-pretty-print.c (dump_omp_clause): Likewise.
9285 * tree-nested.c (convert_nonlocal_omp_clauses,
9286 convert_local_omp_clauses): Likewise.
9287 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9288 Likewise.
9289 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9290 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9291 clause with array or reference to array types, no matter what type
9292 except for reference it has.
9293
9294 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9295
9296 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9297
9298 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9299
9300 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9301 (arch_canonicalize): Support rv32g and rv64g and fix error
9302 handling.
9303
9304 2019-08-06 Martin Liska <mliska@suse.cz>
9305
9306 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9307 and DECL_IS_OPERATOR_DELETE_P.
9308
9309 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9310
9311 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9312 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9313 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9314 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9315 (gimplify_omp_for): Don't do C++ random access iterator clause
9316 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9317 don't predetermine the artificial iterator in case of C++ random
9318 access iterators as lastprivate, but private. For OMP_LOOP, force
9319 bind expr around simd body and force for_pre_body before the
9320 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9321 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9322 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9323 diff var of C++ random access iterators. Handle
9324 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9325 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9326 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9327 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9328 * omp-low.c (lower_rec_input_clauses): For
9329 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9330 variables instead of default constructing them.
9331 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9332 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9333 is_taskloop_ctx check from the assert to the guarding condition.
9334
9335 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9336
9337 * config/riscv/multilib-generator: (canonical_order): New.
9338 (arch_canonicalize): Dito.
9339 Apply arch_canonicalize for alts.
9340
9341 2019-08-05 Martin Sebor <msebor@redhat.com>
9342
9343 * doc/extend.texi (Common Variable Attributes): Document alias
9344 attribute.
9345
9346 2019-08-05 Marek Polacek <polacek@redhat.com>
9347
9348 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9349 * doc/invoke.texi: Document -Wcomma-subscript.
9350
9351 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9352
9353 * tree-core.h (tree_function_decl): Make function_code an
9354 independent field. Group the remaining bitfields into bytes
9355 and move decl_type so that it contines to be at a byte boundary.
9356 Leave 12 bits for future expansion.
9357
9358 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9359
9360 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9361 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9362 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9363 IFN_MASK_STORE.
9364
9365 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9366
9367 * gimple.h (gimple_move_vops): Declare.
9368 * gimple.c (gimple_move_vops): New function
9369 * gimple-fold.c (replace_call_with_call_and_fold)
9370 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9371 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9372 (gimple_fold_call): Use it.
9373 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9374 * tree-call-cdce.c (use_internal_fn): Likewise.
9375 * tree-if-conv.c (predicate_load_or_store): Likewise.
9376 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9377 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9378 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9379 (update_call_from_tree): Likewise.
9380 * tree-vect-stmts.c (vectorizable_load): Likewise.
9381 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9382
9383 2019-08-05 Martin Liska <mliska@suse.cz>
9384
9385 PR c++/91334
9386 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9387 with not arguments.
9388 (eliminate_unnecessary_stmts): Likewise.
9389
9390 2019-08-05 Richard Biener <rguenther@suse.de>
9391
9392 PR middle-end/91169
9393 * fold-const.c (get_array_ctor_element_at_index): Create
9394 offset_ints according to the sign of the index type and treat
9395 that as signed if it is obviously so.
9396
9397 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9398
9399 PR target/91341
9400 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9401 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9402 _mm256_storeu2_m128i): New function.
9403
9404 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9405
9406 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9407 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9408
9409 2019-08-05 Alan Modra <amodra@gmail.com>
9410
9411 PR target/91349
9412 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9413 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9414
9415 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9416
9417 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9418 bug that was fixed in Tcl 8.6.1.
9419
9420 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9421
9422 * config/rs6000/future.md: New file.
9423 * config/rs6000/rs6000.md: Include future.md.
9424 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9425
9426 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9427
9428 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9429 check to use targetm.slow_unaligned_access instead.
9430
9431 * function.c (assign_param_data_one): Remove unused data members.
9432
9433 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9434
9435 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9436 build_distinct_type_copy.
9437 (simd_clone_adjust_argument_types): Ditto.
9438 (simd_clone_adjust): Call build_distinct_type_copy here.
9439 (expand_simd_clones): Ditto.
9440
9441 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9442
9443 PR target/91201
9444 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9445
9446 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9447
9448 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9449 from 'const void *'.
9450 (sort_locs_in_loop_postorder_cmp): Likewise.
9451
9452 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9453
9454 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9455 (hot-bb-count-ws-permille): Likewise.
9456 (hot-bb-frequency-fraction): Likewise.
9457 (unlikely-bb-count-fraction): Likewise.
9458 * params.def (hot-bb-count-fraction): Rework description.
9459 (hot-bb-count-ws-permille): Likewise.
9460 (hot-bb-frequency-fraction): Likewise.
9461 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9462 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9463
9464 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9465
9466 PR target/91323
9467 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9468 Return false.
9469
9470 2019-08-02 Richard Biener <rguenther@suse.de>
9471
9472 * vec.h (vec::sort): Add gcc_qsort_r support.
9473 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9474 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9475 to gcc_qsort_r style callback.
9476 (sort_locs_in_loop_postorder_cmp): Likewise.
9477 (analyze_memory_references): Use gcc_sort_r interfaces.
9478 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9479
9480 2019-08-02 Martin Liska <mliska@suse.cz>
9481
9482 PR lto/91313
9483 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9484 to detect working job server.
9485 (driver::detect_jobserver): Test whether jobserver
9486 is active from GCC driver. That will prevent situation where
9487 GCC is invoked from a LD plugin and the linker already uses
9488 file descriptors suggested by make. That leads to a wrong
9489 detection.
9490 * gcc.h (driver): Add detect_jobserver.
9491 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9492 not scanning for --jobserver-auth prefix.
9493
9494 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9495
9496 PR tree-optimization/91201
9497 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9498 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9499 extraction.
9500
9501 2019-08-01 Martin Sebor <msebor@redhat.com>
9502
9503 PR c++/90947
9504 * tree.c (type_initializer_zero_p): Define.
9505 * tree.h (type_initializer_zero_p): New function.
9506
9507 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9508
9509 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9510
9511 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9512
9513 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9514 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9515 * predict.c (maybe_hot_count_p): Likewise.
9516 (maybe_hot_bb_p): Tweak comment.
9517 (maybe_hot_edge_p): Likewise.
9518 (probably_never_executed): Likewise. Minor tweak.
9519 (probably_never_executed_bb_p): Likewise.
9520 (unlikely_executed_edge_p): Likewise.
9521 (probably_never_executed_edge_p): Likewise.
9522 (optimize_function_for_size_p): Likewise.
9523 (optimize_function_for_speed_p): Likewise.
9524 (function_optimization_type): Likewise.
9525 (optimize_bb_for_size_p): Likewise.
9526 (optimize_bb_for_speed_p): Likewise.
9527 (bb_optimization_type): Likewise.
9528 (optimize_edge_for_size_p): Likewise.
9529 (optimize_edge_for_speed_p): Likewise.
9530 (optimize_insn_for_size_p): Likewise.
9531 (optimize_insn_for_speed_p): Likewise.
9532 (optimize_loop_for_size_p): Likewise.
9533 (optimize_loop_for_speed_p): Likewise.
9534 (optimize_loop_nest_for_speed_p): Likewise.
9535 (optimize_loop_nest_for_size_p): Likewise.
9536 (predictable_edge_p): Likewise.
9537 (handle_missing_profiles): Minor tweak.
9538
9539 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9540
9541 * config/rs6000/predicates.md (pcrel_external_address): Update
9542 comment.
9543
9544 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9545
9546 PR target/85693
9547 * config/i386/mmx.md (usadv8qi): New expander.
9548
9549 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9550
9551 PR c++/90590
9552 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9553 with reserved names that are in a system header.
9554
9555 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9556
9557 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9558 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9559 (*vec_extractv2si_0_zext): Ditto.
9560 (*vec_extractv2si_1): Add (rm,x) alternative.
9561 (*vec_extractv2si_1_zext): New insn pattern.
9562 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9563 insn constraint.
9564
9565 2019-08-01 Richard Biener <rguenther@suse.de>
9566
9567 * domwalk.c (bb_postorder): Remove static variable.
9568 (cmp_bb_postorder): Adjust.
9569 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9570 (dom_walker::walk): Adjust.
9571
9572 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9573
9574 * sort.cc (sort_r_ctx): New struct.
9575 (reorder23): Make templated on context type.
9576 (reorder45): Ditto.
9577 (cmp1): Ditto. Adjust signature.
9578 (netsort): Ditto.
9579 (mergesort): Ditto.
9580 [CHECKING_P] (cmp2to3): New static function. Use it...
9581 (gcc_qsort) [CHECKING_P]: ...here.
9582 (gcc_sort_r): New function.
9583 * system.h (sort_r_cmp_fn): New function typedef.
9584 (qsort_chk): Adjust signature.
9585 (gcc_sort_r): Declare.
9586 * vec.c (qsort_chk_error): Adjust.
9587 (qsort_chk): Adjust.
9588
9589 2019-08-01 Richard Biener <rguenther@suse.de>
9590
9591 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9592 (compute_antic): Localize it here.
9593
9594 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9595
9596 * common/config/riscv/riscv-common.c: Check -march string ends
9597 with null.
9598
9599 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9600
9601 * ipa-devirt.c (type_warning_cmp): Make static.
9602 (decl_warning_cmp): Ditto.
9603
9604 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9605
9606 PR target/91050
9607 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9608 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9609 use of deleted rs6000_dejagnu_cpu_index variable.
9610 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9611 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9612 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9613 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9614 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9615 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9616
9617 2019-07-31 Richard Biener <rguenther@suse.de>
9618
9619 PR tree-optimization/91280
9620 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9621 Decompose MEM_REF manually for offset handling.
9622
9623 2019-07-31 Richard Biener <rguenther@suse.de>
9624
9625 PR tree-optimization/91293
9626 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9627 of reduction stmts.
9628
9629 2019-07-31 Matt Thomas <matt@3am-software.com>
9630 Nick Hudson <nick@nthcliff.demon.co.uk>
9631 Matthew Green <mrg@eterna.com.au>
9632 Maya Rashish <coypu@sdf.org>
9633
9634 * config.gcc (hppa*-*-netbsd*): New target.
9635 * config/pa/pa-netbsd.h: New file.
9636 * config/pa/pa32-netbsd.h: New file.
9637
9638 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9639
9640 PR tree-optimization/91201
9641 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9642
9643 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9644
9645 * config/gcn/gcn-valu.md
9646 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9647 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9648 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9649 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9650 struct ilist. Add nops for delayeduse insns.
9651 * config/gcn/gcn.md (delayeduse): New attribute.
9652 (*movbi): Remove s_waitcnt from stores.
9653 (*mov<mode>_insn): Likewise.
9654 (*movti_insn): Likewise. Add delayeduse attribute.
9655 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9656 (atomic_store<mode>): Remove or adjust s_waitcnt.
9657
9658 2019-07-31 Richard Biener <rguenther@suse.de>
9659
9660 * vr-values.h (vr_values::swap_vr_value): New.
9661 (vr_values::free_value_range): likewise.
9662 * vr-values.c (vr_values::swap_vr_value): Implement.
9663 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9664 Do not return a range or take a var.
9665 (evrp_range_analyzer::stack): Change back to recording a non-const
9666 value_range *.
9667 * gimple-ssa-evrp-analyze.c
9668 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9669 value-range.
9670 (evrp_range_analyzer::pop_to_marker): Adjust.
9671 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9672 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9673 no longer needed value-range.
9674
9675 2019-07-31 Martin Liska <mliska@suse.cz>
9676
9677 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9678 have size and (or) alignment as 2nd and later arguments.
9679 Mark all of them as necessary.
9680
9681 2019-07-31 Richard Biener <rguenther@suse.de>
9682
9683 PR tree-optimization/91178
9684 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9685 Use tail-recursion.
9686
9687 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9688
9689 PR tree-optimization/91201
9690 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9691 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9692 TARGET_AVX512F.
9693 (reduc_plus_scal_<mode>): Improve formatting by introducing
9694 a temporary.
9695
9696 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9697
9698 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9699 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9700 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9701 (aarch64_init_tme_builtins): New.
9702 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9703 (aarch64_expand_builtin_tme): New.
9704 (aarch64_expand_builtin): Handle TME builtins.
9705 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9706 __ARM_FEATURE_TME when enabled.
9707 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9708 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9709 (TARGET_TME): New.
9710 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9711 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9712 UNSPECV_TCANCEL.
9713 (tstart, ttest, tcommit, tcancel): New instructions.
9714 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9715 (__tcancel, __ttest): New.
9716 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9717 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9718 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9719 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9720 * config/arm/types.md: Add new tme type attr.
9721 * doc/invoke.texi: Document "tme".
9722
9723 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9724
9725 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9726 warn_unused_result attribute.
9727 (cmse_check_address_range): Add warn_unused_result attribute.
9728
9729 2019-07-31 Richard Biener <rguenther@suse.de>
9730
9731 PR tree-optimization/91257
9732 * tree-vrp.c (union_ranges): Unify equality and less tests
9733 by using compare_values. Re-order cheap tests first.
9734
9735 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9736
9737 PR middle-end/91301
9738 * gimplify.c (gimplify_omp_for): If for class iterator on
9739 distribute parallel for there is no data sharing clause
9740 on inner_for_stmt, look for private clause on combined
9741 parallel too and if found, move it to inner_for_stmt.
9742
9743 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9744
9745 * lra-int.h (lra_operand_data): Remove early_clobber field.
9746 (lra_insn_reg): Likewise.
9747 * lra.c (debug_operand_data): Update accordingly.
9748 (setup_operand_alternative): Likewise.
9749 (new_insn_reg): Likewise. Remove early_clobber parameter.
9750 (collect_non_operand_hard_regs): Update call accordingly.
9751 Don't assign to lra_insn_reg::early_clobber.
9752 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9753 and update calls to new_insn_reg.
9754 (lra_update_insn_regno_info): Update calls accordingly.
9755 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9756 alternative number as a parameter and test whether the operand
9757 is earlyclobbered in that particular alternative.
9758 (process_alt_operands): Update call accordingly. Use per-alternative
9759 checks for earyclobber here too.
9760 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9761 against zero for IRA_UNKNOWN_ALT.
9762
9763 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9764
9765 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9766
9767 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9768
9769 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9770 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9771
9772 2019-07-30 Martin Liska <mliska@suse.cz>
9773
9774 PR ipa/89330
9775 * cgraph.c (cgraph_edge::make_direct): Use
9776 edge->indirect_unknown_callee as edge->resolve_speculation can
9777 deallocate edge which is this pointer.
9778
9779 2019-07-30 Richard Biener <rguenther@suse.de>
9780
9781 PR tree-optimization/91257
9782 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9783
9784 2019-07-30 Martin Liska <mliska@suse.cz>
9785
9786 * doc/invoke.texi: Document new behavior.
9787 * lto-wrapper.c (cpuset_popcount): New function
9788 is a copy of libgomp/config/linux/proc.c.
9789 (init_num_threads): Likewise.
9790 (run_gcc): Automatically detect core count for -flto.
9791 (jobserver_active_p): New function.
9792
9793 2019-07-30 Richard Biener <rguenther@suse.de>
9794
9795 PR tree-optimization/91257
9796 * bitmap.h (bitmap_ior_into_and_free): Declare.
9797 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9798 whether to add the unliked element to the freelist.
9799 (bitmap_list_insert_element_after): Add defaulted param for
9800 an already allocated element.
9801 (bitmap_ior_into_and_free): New function.
9802 * tree-ssa-structalias.c (condense_visit): Reduce the
9803 ponts-to and edge bitmaps of the SCC members in a
9804 logarithmic fashion rather than all to one.
9805
9806 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9807
9808 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9809 parameter. When nonnull, make sure that the addition or subtraction
9810 has the same condition.
9811 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9812 for CFN_COND_MUL too.
9813
9814 2019-07-30 Richard Biener <rguenther@suse.de>
9815
9816 PR tree-optimization/91291
9817 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9818 constant values.
9819
9820 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR middle-end/91216
9823 * omp-low.c (global_nonaddressable_vars): New variable.
9824 (use_pointer_for_field): For global decls, if they are non-addressable,
9825 remember it in the global_nonaddressable_vars bitmap, if they are
9826 addressable and in the global_nonaddressable_vars bitmap, ignore their
9827 TREE_ADDRESSABLE bit.
9828 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9829 vars in global_nonaddressable_vars bitmap.
9830 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9831
9832 PR target/91150
9833 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9834 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9835 comparison to unsigned HOST_WIDE_INT before shifting it left.
9836
9837 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9838
9839 * config/i386/i386.md (movstrict<mode>): Use register_operand
9840 predicate for operand 0. Add expander condition. Assert that
9841 operand 0 is a SUBREG RTX.
9842 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9843 Update operand constraints and insn condition.
9844 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9845 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9846 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9847 Update operand 0 constraints.
9848 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9849
9850 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9851
9852 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9853 when -m{code,data}-region are used without -mlarge.
9854 * config/msp430/msp430.c (msp430_option_override): Error when a
9855 non-default code or data region is used without -mlarge.
9856 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9857 attributes when they are used without -mlarge.
9858
9859 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9860
9861 PR target/70320
9862 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9863
9864 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9865
9866 PR middle-end/91242
9867 * wide-int.h (generic_wide_int::sext_elt): New function.
9868 * inchash.h (hash::add_wide_int): Use it instead of elt.
9869
9870 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9871
9872 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9873 CODE_FOR_arm_##.
9874 * config/arm/arm.md (<crc_variant>): Rename to...
9875 (arm_<crc_variant>): ... This.
9876 (<cdp>): Rename to...
9877 (arm_<cdp>): ... This.
9878 (<ldc>): Rename to...
9879 (arm_<ldc>): ... This.
9880 (<stc>): Rename to...
9881 (arm_<stc>): ... This.
9882 (<mcr>): Rename to...
9883 (arm_<mcr>): ... This.
9884 (<mrc>): Rename to...
9885 (arm_<mrc>): ... This.
9886 (<mcrr>): Rename to...
9887 (arm_<mcrr>): ... This.
9888 (<mrrc>): Rename to...
9889 (arm_<mrrc>): ... This.
9890
9891 2019-07-29 Richard Biener <rguenther@suse.de>
9892
9893 PR tree-optimization/91257
9894 * tree-ssa-sccvn.h (struct vn_avail): New.
9895 (struct vn_ssa_aux): Add avail member.
9896 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9897 member, add m_avail_freelist one.
9898 (rpo_elim::~rpo_elim): Remove.
9899 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9900 data structure.
9901 (rpo_elim::eliminate_push_avail): Likewise.
9902 (do_unwind): Likewise.
9903 (do_rpo_vn): Likewise.
9904
9905 2019-07-29 Richard Biener <rguenther@suse.de>
9906
9907 PR tree-optimization/91257
9908 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9909 most cases, instead call compare_values which handles the
9910 symbolic ranges we handle specially.
9911 (compare_values_warnv): Do not call operand_less_p but open-code
9912 the effective fold calls. Avoid converting so much.
9913
9914 2019-07-29 Martin Liska <mliska@suse.cz>
9915
9916 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9917 remove LHS of operator new call. It's handled latter.
9918
9919 2019-07-29 Richard Biener <rguenther@suse.de>
9920
9921 PR tree-optimization/91267
9922 * vr-values.c (vr_values::update_value_range): Add early return
9923 for effectively VARYING lattice entry.
9924
9925 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9926
9927 PR debug/86638
9928 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9929 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9930 necessary if keep_all_vdefs_p is true.
9931 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9932 that keep_all_vdefs_p is false.
9933 (mark_all_reaching_defs_necessary): Likewise.
9934 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9935
9936 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9937
9938 * common.opt (Og): Change the initial value of flag_dse to 0.
9939 * opts.c (default_options_table): Move OPT_ftree_dse from
9940 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9941 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9942 entry before the OPT_ftree_sra entry.
9943 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9944 of flags disabled by Og.
9945
9946 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9947
9948 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9949 variables for -Og.
9950
9951 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9952
9953 * doc/sourcebuild.texi (check-function-bodies): Document.
9954
9955 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9956
9957 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9958 VEC_DUPLICATE of a fixed-length vector even if the result
9959 is variable-length. Likewise fold a duplicate of a
9960 variable-length vector if the variable-length vector is
9961 itself a duplicate of a fixed-length sequence.
9962 (test_vector_ops_duplicate): Test more cases.
9963
9964 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9965
9966 * vector-builder.h (vector_builder): Add a shape template parameter.
9967 (vector_builder::new_unary_operation): New function, generalizing
9968 the old tree_vector_builder function.
9969 (vector_builder::new_binary_operation): Likewise.
9970 (vector_builder::binary_encoded_nelts): Likewise.
9971 * int-vector-builder.h (int_vector_builder): Update template
9972 parameters to vector_builder.
9973 (int_vector_builder::shape_nelts): New function.
9974 * rtx-vector-builder.h (rtx_vector_builder): Update template
9975 parameters to vector_builder.
9976 (rtx_vector_builder::shape_nelts): New function.
9977 (rtx_vector_builder::nelts_of): Likewise.
9978 (rtx_vector_builder::npatterns_of): Likewise.
9979 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9980 * tree-vector-builder.h (tree_vector_builder): Update template
9981 parameters to vector_builder.
9982 (tree_vector_builder::shape_nelts): New function.
9983 (tree_vector_builder::nelts_of): Likewise.
9984 (tree_vector_builder::npatterns_of): Likewise.
9985 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9986 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9987 (tree_vector_builder::new_binary_operation): Delete.
9988 (tree_vector_builder::binary_encoded_nelts): Likewise.
9989 * simplify-rtx.c: Include rtx-vector-builder.h.
9990 (distributes_over_addition_p): New function.
9991 (simplify_const_unary_operation)
9992 (simplify_const_binary_operation): Generalize handling of vector
9993 constants to include variable-length vectors.
9994 (test_vector_ops_series): Add more tests.
9995
9996 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9997
9998 PR lto/91222
9999 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10000 than INDENTIFIER_POINTER.
10001
10002 2019-07-28 Martin Liska <mliska@suse.cz>
10003
10004 PR ipa/89330
10005 * cgraph.c (symbol_table::create_edge): Always allocate
10006 a cgraph_edge.
10007 (symbol_table::free_edge): Store summary_id to
10008 edge_released_summary_ids if != -1;
10009 * cgraph.h (NEXT_FREE_NODE): Remove.
10010 (SET_NEXT_FREE_NODE): Likewise.
10011 (NEXT_FREE_EDGE): Likewise.
10012 (symbol_table::release_symbol): Store summary_id to
10013 cgraph_released_summary_ids if != -1;
10014 (symbol_table::allocate_cgraph_symbol): Always allocate
10015 a cgraph_node.
10016
10017 2019-07-28 Alan Modra <amodra@gmail.com>
10018
10019 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10020 gen_sibcall.
10021
10022 2019-07-28 Alan Modra <amodra@gmail.com>
10023
10024 PR target/91135
10025 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10026 define.
10027 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10028 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10029 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10030
10031 2019-07-28 Alan Modra <amodra@gmail.com>
10032
10033 PR target/91050
10034 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10035 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10036 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10037 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10038 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10039 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10040 in asm_default spec.
10041 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10042 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10043
10044 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10045
10046 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10047
10048 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10049
10050 PR target/89517
10051 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10052 * config/aarch64/aarch64-option-extensions.def: Add new comments
10053 and restore easier to read options.
10054
10055 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10056
10057 * convert.c (convert_to_real_1): Move part of conversion code...
10058 * match.pd: ...To here.
10059
10060 2019-07-26 Martin Jambor <mjambor@suse.cz>
10061
10062 PR ipa/89330
10063 * ipa-inline-transform.c (check_speculations_1): New function.
10064 (push_all_edges_in_set_to_vec): Likewise.
10065 (check_speculations): Use check_speculations_1, new parameter
10066 new_edges.
10067 (inline_call): Pass new_edges to check_speculations.
10068 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10069 NULL.
10070 (speculation_useful_p): Early return true if edge is inlined, remove
10071 later checks for inline_failed.
10072
10073 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10074
10075 PR rtl-optimization/91223
10076 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10077 matching with INOUT operand.
10078
10079 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10080
10081 * stmt.c (expand_case): Try to narrow the index type if it's larger
10082 than a word. Tidy up.
10083
10084 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10085
10086 * cif-code.def (NEVER_CALL): New code.
10087 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10088 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10089
10090 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10091
10092 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10093 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10094
10095 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10096
10097 * ipa-devirt.c (add_type_duplicate): Fix return value.
10098
10099 2019-07-25 Richard Biener <rguenther@suse.de>
10100
10101 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10102 type parameter and use it instead of guessing expression
10103 type from the first operand.
10104 (extract_range_from_binary_expr): Pass expr_type down.
10105
10106 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10107
10108 * config/arm/arm.md (SATrev): Change to code attribute.
10109 (*satsi_<SAT:code>): Adjust for the above.
10110 (*satsi_<SAT:code>_shift): Likewise.
10111
10112 2019-07-25 Richard Biener <rguenther@suse.de>
10113
10114 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10115 Make value_range * temporary const.
10116 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10117 Likewise.
10118 (evrp_range_analyzer::record_ranges_from_): Likewise.
10119 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10120 deal with having recorded a const one.
10121 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10122 Return a const value_range *.
10123 (evrp_range_analyzer::pop_value_range): Likewise.
10124 (evrp_range_analyzer::stack): Record const value_range *s.
10125 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10126 Adjust.
10127 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10128 (format_integer): Likewise.
10129 (sprintf_dom_walker::handle_gimple_call): Likewise.
10130 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10131 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10132 (vrp_prop::get_value_range): Adjust.
10133 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10134 modifying the lattice in-place.
10135 (vrp_prop::visit_stmt): Likewise.
10136 * vr-values.c (vr_values::get_lattice_entry): New private method.
10137 (vr_values::get_value_range): Wrap it and return a const
10138 value_range *.
10139 (vr_values::set_def_to_varying): New.
10140 (vr_values::set_defs_to_varying): Use it.
10141 (vr_values::update_value_range): Likewise.
10142 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10143 (values::op_with_constant_singleton_va): Likewise.
10144 (vr_values::extract_range_for_var_from_co): Likewise.
10145 (vr_values::extract_range_from_ssa_name): Likewise.
10146 (vr_values::extract_range_from_cond_expr): Likewise.
10147 (vr_values::extract_range_basic): Likewise.
10148 (compare_ranges): Take const value_range *, adjust.
10149 (compare_range_with_value): Likewise.
10150 (vrp_valueize): Adjust.
10151 (vrp_valueize_1): Likewise.
10152 (vr_values::get_vr_for_comparison): Return a const value_range *.
10153 (vr_values::compare_name_with_value): Adjust.
10154 (vr_values::compare_names): Likewise.
10155 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10156 Likewise.
10157 (vr_values::vrp_evaluate_conditional): Likewise.
10158 (find_case_label_ranges): Take a const value_range *.
10159 (vr_values::vrp_visit_switch_stmt): Adjust.
10160 (vr_values::extract_range_from_phi_node): Likewise.
10161 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10162 (vr_values::simplify_abs_using_ranges): Likewise.
10163 (test_for_singularity): Take a const value_range *.
10164 (range_fits_type_p): Likewise.
10165 (vr_values::simplify_cond_using_ranges_1): Adjust.
10166 (vr_values::simplify_cond_using_ranges_2): Likewise.
10167 (vr_values::simplify_switch_using_ranges): Likewise.
10168 (vr_values::simplify_float_conversion_usi): Likewise.
10169 (vr_values::two_valued_val_range_p): Likewise.
10170 * vr-values.h (vr_values::get_value_range): Return a const
10171 value_range *.
10172 (vr_values::set_def_to_varying): New.
10173 (vr_values::get_lattice_entry): New private method.
10174 (vr_values::get_vr_for_comparison): Return a const value_range *.
10175
10176 2019-07-25 Martin Liska <mliska@suse.cz>
10177 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10178
10179 PR c++/23383
10180 * common.opt: Add -fallocation-dce
10181 * gimple.c (gimple_call_operator_delete_p): New.
10182 * gimple.h (gimple_call_operator_delete_p): Likewise.
10183 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10184 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10185 DECL_IS_OPERATOR_DELETE_P.
10186 (mark_all_reaching_defs_necessary_1): Likewise.
10187 (propagate_necessity): Likewise.
10188 (eliminate_unnecessary_stmts): Handle
10189 gimple_call_operator_delete_p.
10190 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10191 Add packing of OPERATOR_DELETE.
10192 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10193 Similarly here.
10194 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10195 (DECL_SET_IS_OPERATOR_DELETE): New.
10196 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10197
10198 2019-07-25 Martin Liska <mliska@suse.cz>
10199
10200 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10201 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10202 * coverage.c (coverage_begin_function): Likewise.
10203 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10204 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10205 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10206 (sem_item::hash_referenced_symbol_properties): Likewise.
10207 * lto-streamer-out.c (hash_tree): Likewise.
10208 * predict.c (expr_expected_value_1): Likewise.
10209 * tree-inline.c (expand_call_inline): Likewise.
10210 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10211 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10212 * tree-core.h (enum function_decl_type): New enum.
10213 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10214 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10215 (set_function_decl_type): Likewise.
10216 (DECL_IS_OPERATOR_NEW_P): New.
10217 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10218 (DECL_LAMBDA_FUNCTION): Likewise.
10219 (DECL_LAMBDA_FUNCTION_P): Likewise.
10220 (DECL_IS_OPERATOR_NEW): Remove.
10221 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10222
10223 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10224
10225 * ipa-profile.c (get_most_common_single_value): Use
10226 get_nth_most_common_value.
10227 * profile.c (sort_hist_value): New function.
10228 (compute_value_histograms): Call sort_hist_value to sort the
10229 values after loading from disk.
10230 * value-prof.c (get_most_common_single_value): Rename to ...
10231 get_nth_most_common_value. Add input params n, return
10232 the n_th value and count.
10233 (gimple_divmod_fixed_value_transform): Use
10234 get_nth_most_common_value.
10235 (gimple_ic_transform): Likewise.
10236 (gimple_stringops_transform): Likewise.
10237 * value-prof.h (get_most_common_single_value): Add input params
10238 n, default to 0.
10239
10240 2019-07-25 Richard Biener <rguenther@suse.de>
10241
10242 PR tree-optimization/91236
10243 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10244 size of CONSTRUCTOR write. Fix buffer size we pass to
10245 native_encode_expr.
10246
10247 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10248
10249 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10250 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10251 r273773.
10252
10253 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10254
10255 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10256 explicitly disabled with --disable-initfini-array.
10257
10258 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10259
10260 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10261 if-exists.
10262
10263 2019-07-24 Martin Sebor <msebor@redhat.com>
10264
10265 PR tree-optimization/91183
10266 PR tree-optimization/86688
10267 * builtins.c (compute_objsize): Handle MEM_REF.
10268 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10269 (get_min_string_length): Remove.
10270 (count_nonzero_bytes): New function.
10271 (handle_char_store): Rename...
10272 (handle_store): to this. Handle multibyte stores via integer types.
10273 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10274 function name.
10275
10276 2019-07-24 Martin Sebor <msebor@redhat.com>
10277
10278 PR driver/80545
10279 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10280 (diagnostic_report_diagnostic): Same.
10281 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10282 (diagnostic_context::lang_mask): New data member.
10283 * ipa-pure-const.c (suggest_attribute): Use
10284 lang_hooks.option_lang_mask ().
10285 * opts-common.c (option_enabled): Handle new argument.
10286 (get_option_state): Pass an additional argument.
10287 * opts.c (print_filtered_help): Print supported languages for
10288 unsupported options. Adjust printing of current state.
10289 * opts.h (option_enabled): Add argument.
10290 * toplev.c (print_switch_values): Use lang_mask.
10291 (general_init): Set global_dc->lang_mask.
10292
10293 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10294
10295 PR bootstrap/87030
10296 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10297
10298 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10299
10300 * cgraphunit.c (symbol_table::compile): Start and stop
10301 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10302 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10303
10304 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10305
10306 * gimplify.c (flag_instrument_functions_exclude_p): Include
10307 namespace/class information in the printable name.
10308 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10309 to tokens entered into the vector.
10310
10311 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10312
10313 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10314 (get_static_chain): Call it instead of build_simple_mem_ref.
10315 (get_frame_field): Likewise.
10316 (get_nonlocal_debug_decl): Likewise.
10317 (convert_nonlocal_reference_op): Likewise.
10318
10319 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10320
10321 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10322 declaration.
10323 (arc_compute_frame_size): Millicode is disabled when compiling
10324 ISR.
10325 (arc_return_address_register): Likewise.
10326 (arc_compute_function_type): Likewise.
10327 (arc_compute_frame_size): Likewise.
10328 (secondary_reload_info): Likewise.
10329 (arc_get_unalign): Likewise.
10330 (arc_can_use_return_insn): Declare.
10331 * config/arc/arc.c (AUX_LP_START): Define
10332 (AUX_LP_END): Likewise.
10333 (arc_frame_info): Update gmask member to 64-bit datum.
10334 (GMASK_LEN): Update.
10335 (arc_compute_function_type): Make it static, move it forward.
10336 (arc_must_save_register): Update, consider the extra regs.
10337 (arc_compute_millicode_save_restore_regs): Update to use the 64
10338 bit gmask.
10339 (arc_compute_frame_size): Likewise.
10340 (arc_enter_leave_p): Likewise.
10341 (arc_save_callee_saves): Likewise.
10342 (arc_restore_callee_saves): Likewise.
10343 (arc_save_callee_enter): Likewise.
10344 (arc_restore_callee_leave): Likewise.
10345 (arc_save_callee_milli): Likewise.
10346 (arc_restore_callee_milli): Likewise.
10347 (arc_expand_prologue): Add new interrupt handling.
10348 (arc_return_address_register): Make it static, move it forward.
10349 (arc_expand_epilogue): Add new interrupt handling.
10350 (arc_get_unalign): Delete.
10351 (arc_epilogue_uses): Make sure we do not remove the extra
10352 saved/restored registers when interrupt.
10353 (arc_can_use_return_insn): New function.
10354 (push_reg): Likewise.
10355 (pop_reg): Likewise.
10356 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10357 procedures.
10358 (arc_restore_callee_saves): Likewise, but restoring.
10359 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10360 (R33_REG): Likewise.
10361 (R34_REG): Likewise.
10362 (R35_REG): Likewise.
10363 (R36_REG): Likewise.
10364 (R37_REG): Likewise.
10365 (R38_REG): Likewise.
10366 (R39_REG): Likewise.
10367 (R45_REG): Likewise.
10368 (R46_REG): Likewise.
10369 (R47_REG): Likewise.
10370 (R48_REG): Likewise.
10371 (R49_REG): Likewise.
10372 (R50_REG): Likewise.
10373 (R51_REG): Likewise.
10374 (R52_REG): Likewise.
10375 (R53_REG): Likewise.
10376 (R54_REG): Likewise.
10377 (R55_REG): Likewise.
10378 (R56_REG): Likewise.
10379 (R58_REG): Likewise.
10380 (type): Add rtie attribute.
10381 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10382 (movsi_insn): Accept moves to lp_count.
10383 (rtie): Update pattern.
10384 (simple_return): Simplify it, don't use this pattern as a return
10385 from an interrupt.
10386 (arc600_rtie): New pattern.
10387 (p_return_i): Clean up.
10388 (return): Likewise.
10389 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10390 family CPUs.
10391 * config/arc/predicates.md (move_src_operand): Consider lp_count
10392 as a register.
10393
10394 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10395
10396 * config/s390/predicates.md (addv_const_operand): New predicate.
10397 * config/s390/s390-modes.def (CCO): New condition code mode.
10398 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10399 (s390_branch_condition_mask): Likewise.
10400 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10401 ("mulv<mode>4"): New expanders.
10402 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10403 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10404 pattern definitions.
10405
10406 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10407
10408 PR middle-end/91166
10409 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10410 (define_predicates): Add entry for uniform_vector_p.
10411 (vec_same_elem_p): New match pattern.
10412
10413 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10414
10415 PR bootstrap/87030
10416 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10417 * config/i386/darwin32-biarch.h .. to here.
10418 * config/i386/darwin64-biarch.h: Adjust comments.
10419 * config/rs6000/darwin32-biarch.h: Likewise.
10420 * config/rs6000/darwin64-biarch.h: Likewise.
10421 * config.gcc: Missed commit from r273746
10422 (*-*-darwin*): Don't include CPU t-darwin here.
10423 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10424 an error message if i686-darwin configuration is attempted for
10425 Darwin >= 18.
10426
10427 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10428
10429 PR bootstrap/87030
10430 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10431 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10432 an error message if i686-darwin configuration is attempted for
10433 Darwin >= 18.
10434 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10435 (powerpc-*-darwin*): Use biarch files where needed.
10436 (powerpc64-*-darwin*): Likewise.
10437 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10438 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10439 arch case.
10440 * config/i386/darwin32-biarch.h: New.
10441 * config/i386/darwin64.h: Rename.
10442 * config/i386/darwin64-biarch.h: To this.
10443 * config/i386/t-darwin: Rename.
10444 * config/i386/t-darwin32-biarch: To this.
10445 * config/i386/t-darwin64: Rename.
10446 * config/i386/t-darwin64-biarch: To this.
10447 * config/rs6000/darwin32-biarch.h: New.
10448 * config/rs6000/darwin64.h: Rename.
10449 * config/rs6000/darwin64-biarch.h: To this.
10450 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10451 arch case.
10452 * config/rs6000/t-darwin8: Rename.
10453 * config/rs6000/t-darwin32-biarch: To this.
10454 * config/rs6000/t-darwin64 Rename.
10455 * config/rs6000/t-darwin64-biarch: To this.
10456
10457 2019-07-23 Martin Sebor <msebor@redhat.com>
10458
10459 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10460
10461 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10462
10463 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10464 (rh): New alias for it.
10465
10466 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10467
10468 * gdbhooks.py: Pass replace=True to
10469 gdb.printing.register_pretty_printer.
10470
10471 2019-07-23 Richard Biener <rguenther@suse.de>
10472
10473 PR debug/91231
10474 * lto-streamer-in.c (input_function): Drop inline-entry markers
10475 that ended up with an unknown location block.
10476
10477 2019-07-23 Richard Biener <rguenther@suse.de>
10478
10479 PR tree-optimization/83518
10480 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10481 init from a constant even when partial defs are already recorded.
10482
10483 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10484
10485 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10486 * config/i386/znver1.md: Enable patterns for znver2 and add store
10487 variants which use extra AGU unit.
10488
10489 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10490
10491 * config/i386/i386-options.c (ix86_option_override_internal): Default
10492 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10493 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10494 for ZNVER2.
10495
10496 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10497
10498 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10499 (znver2_costs): Update 256 bit SSE costs and multiplication.
10500
10501 2019-07-23 Jan Beulich <jbeulich@suse.com>
10502
10503 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10504 Require only AVX512F.
10505 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10506 alternative expanding to vpternlog.
10507
10508 2019-07-23 Martin Liska <mliska@suse.cz>
10509
10510 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10511 to -flto in dwarf producer string.
10512
10513 2019-07-23 Richard Biener <rguenther@suse.de>
10514
10515 * tree-cfg.c (label_for_bb): Remove global var.
10516 (main_block_label): Take label_for_bb as argument.
10517 (cleanup_dead_labels_eh): Likewise, adjust.
10518 (cleanup_dead_labels): Adjust.
10519
10520 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10521
10522 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10523 Configurations): Add documentation for __builtin_mtfsf.
10524
10525 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10526
10527 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10528 * config/riscv/riscv.c (riscv_constant_alignment): Use
10529 riscv_align_data_type.
10530 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10531 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10532 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10533 * config/riscv/riscv.opt (malign-data): New.
10534 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10535
10536 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10537
10538 * cgraph.c (dump_graphviz): New function.
10539 * cgraph.h (dump_graphviz): New function.
10540 * symtab.c (dump_graphviz): New function.
10541
10542 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10543
10544 * config/aarch64/aarch64-simd.md
10545 (*aarch64_simd_sra<mode>): New.
10546 * config/aarch64/iterators.md
10547 (SHIFTRT): New iterator.
10548 (sra_op): New attribute.
10549
10550 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10551
10552 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10553 callee-saved regs R4->R10 in an interrupt function that calls another
10554 function.
10555
10556 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10557
10558 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10559 (_mm_blendv_epi8): New.
10560
10561 2019-07-22 Richard Biener <rguenther@suse.de>
10562
10563 PR tree-optimization/91221
10564 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10565 restrict partial-def handling of empty constructors and
10566 memset to refs with known offset.
10567
10568 2019-07-22 Jan Beulich <jbeulich@suse.com>
10569
10570 * config/i386/sse.md (ternlogsuffix): New.
10571 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10572 AVX512F is in use.
10573 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10574
10575 2019-07-22 Martin Liska <mliska@suse.cz>
10576
10577 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10578 comment.
10579 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10580
10581 2019-07-22 Martin Liska <mliska@suse.cz>
10582
10583 * lto-section-in.c (lto_get_section_data):
10584 Use new function get_compression.
10585 * lto-streamer-out.c (produce_lto_section): Use
10586 set_compression to encode compression algorithm.
10587 * lto-streamer.h (struct lto_section): Do not
10588 use bitfields in the format.
10589
10590 2019-07-22 Martin Liska <mliska@suse.cz>
10591
10592 PR driver/91172
10593 * opts-common.c (decode_cmdline_option): Decode
10594 argument of -Werror and check it for a wrong language.
10595 * opts-global.c (complain_wrong_lang): Remove such case.
10596
10597 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10598
10599 * config/arc/arc.c (prepare_move_operands): Always use an
10600 intermediate register when storing a TLS symbols.
10601
10602 2019-07-22 Stafford Horne <shorne@gmail.com>
10603
10604 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10605 force_reg.
10606
10607 2019-07-22 Stafford Horne <shorne@gmail.com>
10608
10609 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10610 and munordered-float validations.
10611 * config/or1k/constraints.md (d): New register constraint.
10612 * config/or1k/predicates.md (fp_comparison_operator): New.
10613 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10614 operands.
10615 (or1k_expand_compare): Normalize unordered comparisons.
10616 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10617 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10618 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10619 * config/or1k/or1k.md (type): Add fpu.
10620 (fpu): New instruction reservation.
10621 (F, f, fr, fi, FI, FOP, fop): New.
10622 (<fop><F:mode>3): New ALU instruction definition.
10623 (float<fi><F:mode>2): New conversion instruction definition.
10624 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10625 (fpcmpcc): New code iterator.
10626 (*sf_fp_insn): New instruction definition.
10627 (cstore<F:mode>4): New expand definition.
10628 (cbranch<F:mode>4): New expand definition.
10629 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10630 munordered-float): New options.
10631 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10632 munordered-float.
10633
10634 2019-07-22 Stafford Horne <shorne@gmail.com>
10635
10636 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10637 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10638 documenation to be more clear.
10639 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10640 more clear.
10641 * config/or1k/or1k.opt (mrori): New option.
10642 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10643 msfimm, mshftimm): Rewrite documentation to be more clear.
10644 * config/or1k/or1k.md (insn_support): Add ror and rori.
10645 (enabled): Add conditions for ror and rori.
10646 (rotrsi3): Replace condition for shftimm with ror and rori.
10647
10648 2019-07-22 Stafford Horne <shorne@gmail.com>
10649
10650 PR target/90363
10651 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10652 (extend<mode>si2): Update predicate.
10653 * config/or1k/predicates.md (volatile_mem_operand): New.
10654 (reg_or_mem_operand): New.
10655
10656 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10657
10658 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10659 * config/rs6000/rs6000-call.c: ... to here.
10660
10661 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10662
10663 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10664 memory.
10665
10666 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10667
10668 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10669
10670 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10671
10672 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10673
10674 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10675
10676 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10677 (any_memory_operand): New predicate.
10678 (reg_or_mem_operand): Use it.
10679
10680 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10681
10682 PR target/91204
10683 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10684
10685 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10686
10687 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10688 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10689
10690 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10691
10692 * tree.def (OMP_LOOP): New tree code.
10693 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10694 (enum omp_clause_bind_kind): New enum.
10695 (struct tree_omp_clause): Add subcode.bind_kind.
10696 * tree.h (OMP_LOOP_CHECK): Rename to ...
10697 (OMP_LOOPING_CHECK): ... this.
10698 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10699 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10700 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10701 (OMP_CLAUSE_BIND_KIND): Define.
10702 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10703 bind clause entries.
10704 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10705 * tree-pretty-print.c (dump_omp_clause): Likewise.
10706 (dump_generic_node): Handle OMP_LOOP.
10707 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10708 (in_omp_construct): New variable.
10709 (is_gimple_stmt): Handle OMP_LOOP.
10710 (gimplify_scan_omp_clauses): For lastprivate don't set
10711 check_non_private if code == OMP_LOOP. For reduction clause
10712 on OMP_LOOP combined with parallel or teams propagate as shared
10713 on the combined construct. Handle OMP_CLAUSE_BIND.
10714 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10715 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10716 for constructs from a loop construct to gimplify_scan_omp_clauses.
10717 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10718 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10719 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10720 to match the implicit ORT_TARGET construct around whole body.
10721 Temporarily clear in_omp_construct when processing body.
10722 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10723 etc. temporarily set in_omp_construct when processing body.
10724 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10725 * omp-low.c (struct omp_context): Add loop_p.
10726 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10727 in that the original var might be private.
10728 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10729 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10730 addition of loop construct.
10731 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10732
10733 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10734 lastprivate non-addressable iterator of a collapse(1) simd.
10735
10736 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10737
10738 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10739 as in rs6000.c.
10740
10741 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10742
10743 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10744 refer to default conditions. Warn for the 'y' spec which is ignored
10745 by current linkers.
10746
10747 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10748
10749 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10750 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10751 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10752 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10753 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10754 init_cumulative_args, rs6000_promote_function_mode,
10755 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10756 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10757 rs6000_function_arg_boundary, rs6000_parm_offset,
10758 rs6000_parm_start, rs6000_arg_size,
10759 rs6000_darwin64_record_arg_advance_flush,
10760 rs6000_darwin64_record_arg_advance_recurse,
10761 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10762 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10763 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10764 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10765 rs6000_finish_function_arg, rs6000_function_arg,
10766 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10767 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10768 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10769 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10770 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10771 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10772 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10773 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10774 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10775 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10776 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10777 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10778 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10779 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10780 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10781 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10782 get_element_number, altivec_expand_vec_set_builtin,
10783 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10784 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10785 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10786 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10787 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10788 rs6000_expand_builtin, rs6000_vector_type,
10789 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10790 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10791 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10792 to rs6000-call.c.
10793 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10794 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10795 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10796 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10797 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10798 init_cumulative_args, rs6000_promote_function_mode,
10799 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10800 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10801 rs6000_function_arg_boundary, rs6000_parm_offset,
10802 rs6000_parm_start, rs6000_arg_size,
10803 rs6000_darwin64_record_arg_advance_flush,
10804 rs6000_darwin64_record_arg_advance_recurse,
10805 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10806 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10807 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10808 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10809 rs6000_finish_function_arg, rs6000_function_arg,
10810 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10811 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10812 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10813 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10814 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10815 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10816 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10817 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10818 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10819 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10820 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10821 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10822 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10823 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10824 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10825 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10826 get_element_number, altivec_expand_vec_set_builtin,
10827 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10828 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10829 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10830 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10831 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10832 rs6000_expand_builtin, rs6000_vector_type,
10833 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10834 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10835 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10836 to here from rs6000.c.
10837 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10838 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10839 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10840 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10841 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10842 rs6000_return_in_memory, rs6000_return_in_msb,
10843 rs6000_pass_by_reference, setup_incoming_varargs,
10844 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10845 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10846 rs6000_function_arg_padding, rs6000_function_arg,
10847 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10848 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10849 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10850 rs6000_passes_long_double, rs6000_passes_vector,
10851 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10852 altivec_builtin_mask_for_load) Add declarations.
10853 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10854 * config/config.gcc: Add new source file rs6000-call.c to garbage
10855 collector and extra_objs.
10856
10857 2019-07-19 Jeff Law <law@redhat.com>
10858
10859 PR tree-optimization/86061
10860 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10861 strncpy. Drop some trivial dead code.
10862 (maybe_trim_memstar_call): Handle strncpy.
10863
10864 2019-07-19 Richard Biener <rguenther@suse.de>
10865
10866 PR tree-optimization/91211
10867 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10868 memset encoding size.
10869
10870 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10871
10872 PR target/91204
10873 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10874
10875 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10876
10877 PR ipa/91194
10878 * ipa-inline.c (recursive_inlining): Fix limits check.
10879
10880 2019-07-19 Richard Biener <rguenther@suse.de>
10881
10882 PR tree-optimization/91200
10883 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10884 no PHI nodes in middle-bb.
10885
10886 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10887
10888 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10889 to +sve-bitperm.
10890 * config/aarch64/aarch64-option-extensions.def: Likewise.
10891
10892 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10893
10894 PR middle-end/91190
10895 * function.c (insert_temp_slot_address): Store into the hash table
10896 a copy of address to avoid RTL sharing issues.
10897
10898 2019-07-19 Richard Biener <rguenther@suse.de>
10899
10900 PR tree-optimization/91207
10901 Revert
10902 2019-07-17 Richard Biener <rguenther@suse.de>
10903
10904 PR tree-optimization/91178
10905 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10906 loads with a gap larger than the vector size always use
10907 VMAT_STRIDED_SLP.
10908 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10909 avoid loading vectors that are only contained in the gap
10910 and thus are not needed.
10911
10912 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10913
10914 * config/i386/i386.md (*addqi_2_slp): Remove.
10915 (*<code>qi_2_slp): Ditto.
10916
10917 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10918
10919 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10920 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10921 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10922 Rename function from rs6000_prefixed_address.
10923 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10924 TARGET_HAS_TOC.
10925 (TARGET_TOC): Likewise.
10926 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10927 rs6000.h.
10928 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10929 TARGET_HAS_TOC.
10930 (TARGET_TOC): Likewise.
10931 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10932 rs6000.h.
10933 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10934 TARGET_HAS_TOC.
10935 (TARGET_TOC): Likewise.
10936 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10937 check to require -mcmodel=medium for pc-relative addressing.
10938 (create_TOC_reference): Add assertion for TARGET_TOC.
10939 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10940 TARGET_NO_TOC.
10941 (rs6000_emit_move): Likewise.
10942 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10943 to 'TOC_alias_set'.
10944 (get_TOC_alias_set): Likewise.
10945 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10946 TARGET_NO_TOC.
10947 (rs6000_can_eliminate): Likewise.
10948 (rs6000_prefixed_address_mode_p): Rename function from
10949 rs6000_prefixed_address.
10950 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10951 TARGET_HAS_TOC and not pc-relative.
10952 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10953 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10954 TARGET_HAS_TOC.
10955 (TARGET_TOC): Likewise.
10956 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10957 rs6000.h.
10958
10959 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10960
10961 PR target/91188
10962 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10963 for operand 0. Do not use (match_dup) to match operand 1 with
10964 operand 0. Add check in insn constraint that either input operand
10965 matches operand 0. Use SWI12 mode iterator to also handle
10966 HImode operands.
10967 (*and<mode>_1_slp): Ditto.
10968 (*<code>qi_1_slp): Ditto.
10969 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10970 Do not use (match_dup) to match operand 1 with operand 0. Add
10971 check in insn constraint that operand 1 matches operand 0.
10972 Use SWI12 mode iterator to also handle HImode operands.
10973 (*ashl<mode>3_1_slp): Ditto.
10974 (*<shift_insn><mode>3_1_slp): Ditto.
10975 (*<rotate_insn><mode>3_1_slp): Ditto.
10976
10977 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10978
10979 * config/arm/arm-builtins.c
10980 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10981 (arm_expand_unop_builtin): Likewise.
10982 * config/arm/crypto.md
10983 (crypto_sha1h): Convert from define_insn to define_expand.
10984 (crypto_<crypto_pattern>): Likewise.
10985 (crypto_sha1h_lb): New define_insn.
10986 (crypto_<crypto_pattern>_lb): Likewise.
10987
10988 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10989
10990 PR target/90317
10991 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10992 (vsha1cq_u32): Likewise.
10993 (vsha1pq_u32): Likewise.
10994 (vsha1mq_u32): Likewise.
10995 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10996 vec select.
10997 (crypto_sha1c): Correct vec select.
10998 (crypto_sha1m): Likewise.
10999 (crypto_sha1p): Likewise.
11000
11001 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11002
11003 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11004 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11005 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11006 (subdi_zesidi_zesidi): Likewise.
11007 (negdi2_compare, negdi2_insn): Likewise.
11008 (negdi_extensidi): Likewise.
11009 (negdi_zero_extendsidi): Likewise.
11010 (arm_cmpdi_insn): Likewise.
11011 (subsi3_carryin): Use arm_borrow_operation.
11012 (subsi3_carryin_const): Likewise.
11013 (subsi3_carryin_const0): Likewise.
11014 (subsi3_carryin_compare): Likewise.
11015 (subsi3_carryin_compare_const): Likewise.
11016 (subsi3_carryin_compare_const0): Likewise.
11017 (subsi3_carryin_shift): Likewise.
11018 (rsbsi3_carryin_shift): Likewise.
11019 (negsi2_carryin_compare): Likewise.
11020
11021 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11022
11023 PR tree-optimization/91137
11024 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11025 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11026 Init, use and fini the above new field.
11027 (determine_base_object_1): New function.
11028 (determine_base_object): Reimplement using walk_tree.
11029
11030 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11031
11032 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11033 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11034 CLEANUP_FORCE_FAST_DCE is set.
11035 * ifcvt.c (rest_of_handle_if_conversion): Pass
11036 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11037 if-conversion succeeded.
11038
11039 2019-07-18 Richard Biener <rguenther@suse.de>
11040
11041 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11042 branches to make code less indented.
11043
11044 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11045
11046 PR middle-end/81824
11047 * attribs.c (decls_mismatched_attributes): Simplify the logic
11048 that avoids duplicates and false positives.
11049
11050 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11051
11052 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11053 data into data section when generating PIC code.
11054 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11055 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11056 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11057 return 2 for SOM and 0 for other targets.
11058
11059 2019-07-17 Jeff Law <law@redhat.com>
11060
11061 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11062 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11063 avoid unexpected switch statement fallthru.
11064
11065 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11066
11067 * config/i386/i386.md (*add<dwi>3_doubleword):
11068 Remove redundant constraints.
11069 (*add<mode>_1): Ditto.
11070 (*addhi_1): Ditto.
11071 (*addqi_1): Ditto.
11072 (*addqi_1_slp): Ditto.
11073 (*add<mode>_2): Ditto.
11074 (*addv<mode>4): Ditto.
11075 (*sub<dwi>3_doubleword): Ditto.
11076 (*sub<mode>_1): Ditto.
11077 (*subqi_1_slp): Ditto.
11078 (*sub<mode>_2): Ditto.
11079 (*subv<mode>4): Ditto.
11080 (*sub<mode>_3): Ditto.
11081 (@add<mode>3_carry): Ditto.
11082 (@sub<mode>3_carry): Ditto.
11083 (*add<mode>3_cc_overflow_1): Ditto.
11084 (*add<mode>3_zext_cc_overflow_2): Ditto.
11085 (*anddi_1): Ditto.
11086 (*and<mode>_1): Ditto.
11087 (*andqi_1): Ditto.
11088 (*andqi_1_slp): Ditto.
11089 (*anddi_2): Ditto.
11090 (*andqi_2_maybe_si): Ditto.
11091 (*and<mode>_2): Ditto.
11092 (*andqi_2_slp): Ditto.
11093 (*<code><mode>_1): Ditto.
11094 (*<code>qi_1): Ditto.
11095 (*<code>qi_1_slp): Ditto.
11096 (*<code><mode>_2): Ditto.
11097 (*<code>qi_2_slp): Ditto.
11098
11099 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11100
11101 * alias.c (record_component_aliases): Do not simplify pointed-to
11102 types of ODR types.
11103
11104 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11105
11106 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11107 partial reg stall on alternative 2.
11108
11109 2019-07-17 Richard Biener <rguenther@suse.de>
11110
11111 PR tree-optimization/91178
11112 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11113 lower SSA names to avoid quadratic behavior in the common case.
11114 * tree-data-ref.c (split_constant_offset): Add limit argument
11115 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11116 (split_constant_offset_1): Add limit argument and use it to
11117 limit SSA def walking. Optimize the common plus/minus case.
11118
11119 2019-07-17 Richard Biener <rguenther@suse.de>
11120
11121 PR tree-optimization/91178
11122 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11123 loads with a gap larger than the vector size always use
11124 VMAT_STRIDED_SLP.
11125 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11126 avoid loading vectors that are only contained in the gap
11127 and thus are not needed.
11128
11129 2019-07-17 Richard Biener <rguenther@suse.de>
11130
11131 PR tree-optimization/91180
11132 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11133 computation for memset partial defs.
11134
11135 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11136
11137 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11138 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11139 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11140 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11141 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11142 * omp-grid.c (grid_process_grid_body,
11143 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11144 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11145 == GF_OMP_FOR_KIND_SIMD.
11146 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11147 check_omp_nesting_restrictions, scan_omp_1_stmt,
11148 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11149 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11150 omp_find_scan): Likewise.
11151 * omp-expand.c (expand_omp_for): Likewise.
11152 * omp-general.c (omp_extract_for_data): Likewise.
11153
11154 PR tree-optimization/91157
11155 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11156 a vector boolean with scalar mode.
11157 (expand_vector_condition): Handle first operand being a vector boolean
11158 with scalar mode.
11159 (expand_vector_operations_1): For comparisons, don't bail out early
11160 if the return type is vector boolean with scalar mode, but comparison
11161 operand type is not.
11162
11163 2019-07-17 Richard Biener <rguenther@suse.de>
11164
11165 PR tree-optimization/91181
11166 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11167 IFN_LOADs as calls.
11168
11169 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11170
11171 * config/i386/i386.md (*testdi_1): Match CCZmode for
11172 constants that might have the SImode sign bit set.
11173 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11174 Use correct constraints for pentium pairing.
11175 (*test<mode>_1): Ditto.
11176
11177 2019-07-16 Jeff Law <law@redhat.com>
11178
11179 PR rtl-optimization/91173
11180 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11181 SSA_NAME with a constant value, fold its value into the offset
11182 and clear the base before calling gen_addr_rtx.
11183
11184 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11185
11186 PR rtl-optimization/91164
11187 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11188 invalidate dominance info.
11189
11190 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11191
11192 * read-md.h (md_reader::record_potential_iterator_use): Add a
11193 file_location parameter.
11194 * read-rtl.c (attribute_use::loc): New field.
11195 (map_attr_string): Take a file_location parameter. Report cases
11196 in which attributes map to multiple distinct values.
11197 (apply_attribute_uses): Update call accordingly.
11198 (md_reader::handle_overloaded_name): Likewise.
11199 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11200 nonnull strings.
11201 (record_attribute_use): Take a file_location parameter.
11202 Initialize attribute_use::loc.
11203 (md_reader::record_potential_iterator_use): Take a file_location
11204 parameter. Update call to record_attribute_use.
11205 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11206 (rtx_reader::read_rtx_code): Likewise.
11207 (rtx_reader::read_rtx_operand): Likewise. Record a location
11208 for implicitly-expanded empty strings.
11209
11210 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11211
11212 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11213 Use file_location instead of separate fields.
11214 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11215 separate filename and line number.
11216 * read-md.c (ptr_loc): As above.
11217 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11218 (md_reader::fprint_md_ptr_loc): Likewise.
11219 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11220 instead of a separate filename and line number.
11221 (md_reader::read_string): Update call accordingly.
11222
11223 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11224
11225 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11226 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11227 leaving the choice between SFDF and P implicit.
11228 (*mov<mode>_update2): Likewise.
11229 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11230 rather than leaving the choice betweem IBM128 and GPR implicit.
11231 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11232 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11233 QHSI implicit.
11234 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11235 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11236 * config/rs6000/vsx.md
11237 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11238 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11239 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11240 and VSX_EXTRACT_I implicit.
11241
11242 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11243
11244 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11245 Explicitly use <MOVEP1:MODE> for the mode attribute.
11246
11247 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11248
11249 PR bootstrap/91176
11250 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11251
11252 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11253
11254 PR target/91050
11255 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11256 .machine directive.
11257
11258 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11259
11260 * config/i386/i386.md (@test<mode>_ccno_1):
11261 Rename from test<mode>_ccno_1.
11262 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11263 (*testqi_1_maybe_si): Remove modrm attribute.
11264 (*test<mode>_1): Ditto.
11265 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11266 gen_test_ccno_1 and gen_extend_insn.
11267
11268 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11269
11270 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11271 to 0.
11272
11273 2019-07-15 Richard Biener <rguenther@suse.de>
11274
11275 PR middle-end/91162
11276 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11277 node make sure to replace all uses with something valid.
11278
11279 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11280
11281 PR tree-optimization/88497
11282 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11283 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11284 function undistribute_bitref_for_vector.
11285 (undistribute_bitref_for_vector): New function.
11286 (cleanup_vinfo_map): Likewise.
11287 (sort_by_mach_mode): Likewise.
11288
11289 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11290
11291 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11292 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11293 and testdi_ccno_1 using SWI48 mode attribute.
11294 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11295 x86_64_szext_general_operand.
11296 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11297 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11298 instead of genera_operand mode attribute.
11299
11300 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11301
11302 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11303 fopen and fclose to their respective types.
11304 (DotFn.invoke): Ditto.
11305
11306 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11307
11308 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11309 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11310 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11311 (array_index_predicate): Remove.
11312 (analyze_function_body): Account cost for variable ofsetted array
11313 indexing.
11314 (estimate_node_size_and_time): Do not compute array index hint.
11315 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11316 (inline_read_section): Do not read array index hint.
11317 (ipa_fn_summary_write): Do not write array index hint.
11318 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11319 * ipa-cp.c (hint_time_bonus): Remove.
11320 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11321 (ipa_fnsummary): Remove array_index.
11322 * ipa-inline.c (want_inline_small_function_p): Do not use
11323 array_index.
11324 (edge_badness): Likewise.
11325 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11326
11327 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11328
11329 PR target/91148
11330 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11331 superfluous "builtin function" phrasing.
11332
11333 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11334
11335 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11336 Break out from ...
11337 (aliasing_component_refs_walk): Break out from ...
11338 (aliasing_component_refs_p): ... here.
11339
11340 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11341
11342 PR target/91148
11343 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11344 "builtin function" phrasing.
11345
11346 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11347
11348 PR target/90723
11349 * recog.h (temporary_volatile_ok): New class.
11350 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11351 volatile_ok temporarily to true using temporary_volatile_ok.
11352 * expr.c (emit_block_move_via_cpymem): Likewise.
11353 * optabs.c (maybe_legitimize_operand): Likewise.
11354
11355 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11356
11357 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11358 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11359 uses inside of order(concurrent) constructs.
11360 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11361 OMP_CLAUSE_ORDER is seen.
11362 * omp-low.c (struct omp_context): Add order_concurrent member.
11363 (scan_sharing_clauses): Set ctx->order_concurrent if
11364 OMP_CLAUSE_ORDER is seen.
11365 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11366 of simd order(concurrent). Diagnose constructs not allowed inside of
11367 for order(concurrent).
11368 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11369 complaining about static double setjmp (double); or class static
11370 methods or non-global namespace setjmps.
11371 (omp_runtime_api_call): New function.
11372 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11373 order(concurrent) loops.
11374
11375 2019-07-12 Martin Sebor <msebor@redhat.com>
11376
11377 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11378 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11379 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11380 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11381
11382 2019-07-12 Jan Hubicka <jh@suse.cz>
11383
11384 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11385 (indirect_refs_may_alias_p): ... here.
11386 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11387 mem refs in the access paths.
11388
11389 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11390
11391 PR tree-optimization/89430
11392 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11393 store elimination for local variable without address escape.
11394
11395 2019-07-12 Jeff Law <law@redhat.com>
11396
11397 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11398 for the ".far" section.
11399
11400 2019-07-12 Richard Biener <rguenther@suse.de>
11401
11402 PR tree-optimization/91145
11403 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11404 chain check.
11405
11406 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11407
11408 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11409 rather than this_state as the lowering context for the ELSE
11410 seq in a GIMPLE_EH_ELSE.
11411
11412 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11413
11414 * vector-builder.h (vector_builder::elt): Allow already-supplied
11415 elements to be read back before building is complete.
11416
11417 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11418
11419 PR rtl-optimization/91136
11420 * df-core.c (ACCESSING REFS): Fix typos in comment.
11421 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11422 the beginning of the block to the initial set of live registers.
11423
11424 2019-07-12 Richard Biener <rguenther@suse.de>
11425
11426 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11427 * fold-const.c (get_array_ctor_element_at_index): Add
11428 ctor_idx output parameter informing the caller where in
11429 the constructor the element was (not) found. Add early exit
11430 for when the ctor is sorted.
11431 * gimple-fold.c (fold_array_ctor_reference): Support constant
11432 folding across multiple array elements.
11433
11434 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11435
11436 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11437 doesn't have location, set the current location to the function's end.
11438
11439 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11440
11441 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11442 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11443 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11444 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11445 * config/aarch64/aarch64-simd.md
11446 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11447 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11448 * config/aarch64/aarch64-sve.md
11449 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11450 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11451
11452 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11453
11454 * doc/md.texi: Document that @ patterns can have different
11455 numbers of operands.
11456 * genemit.c (handle_overloaded_gen): Handle this case.
11457 * genopinit.c (handle_overloaded_gen): Likewise.
11458 * gensupport.c (replace_operands_with_dups): Iterate over
11459 the new rtx's format rather than the old one's.
11460
11461 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11462
11463 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11464 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11465 order clause entries.
11466 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11467 * tree-pretty-print.c (dump_omp_clause): Likewise.
11468 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11469 Likewise.
11470 * omp-low.c (scan_sharing_clauses): Likewise.
11471 * tree-nested.c (convert_nonlocal_omp_clauses,
11472 convert_local_omp_clauses): Likewise.
11473
11474 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11475
11476 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11477 fallthrough target of current basic block isn't the placed
11478 right next.
11479
11480 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11481
11482 PR target/90980
11483 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11484 (_mm512_storeu_epi64): Likewise.
11485 (_mm512_loadu_epi32): Likewise.
11486 (_mm512_storeu_epi32): Likewise.
11487 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11488 (_mm_storeu_epi64): Likewise.
11489 (_mm256_storeu_epi32): Likewise.
11490 (_mm_storeu_epi32): Likewise.
11491
11492 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11493
11494 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11495
11496 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11497
11498 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11499 Handle Modula-2.
11500
11501 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11502
11503 PR target/91124
11504 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11505 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11506 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11507 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11508 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11509 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11510 define_insns.
11511 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11512 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11513 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11514 define_insns.
11515 (sse2_cvttpd2dq<mask_name>): Change into ...
11516 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11517 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11518 (*sse2_cvtpd2dq<mask_name>): Change into ...
11519 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11520 Add "C" constraint to const0_operand.
11521 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11522 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11523 changes.
11524
11525 PR target/91124
11526 * config/i386/i386-builtin-types.def
11527 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11528 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11529 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11530 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11531 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11532 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11533 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11534 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11535 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11536 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11537 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11538 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11539 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11540 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11541 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11542 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11543 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11544 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11545 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11546 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11547 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11548 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11549 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11550 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11551 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11552 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11553 __builtin_ia32_vpdpbusd_v4si_maskz,
11554 __builtin_ia32_vpdpbusds_v16si_mask,
11555 __builtin_ia32_vpdpbusds_v16si_maskz,
11556 __builtin_ia32_vpdpbusds_v8si_mask,
11557 __builtin_ia32_vpdpbusds_v8si_maskz,
11558 __builtin_ia32_vpdpbusds_v4si_mask,
11559 __builtin_ia32_vpdpbusds_v4si_maskz,
11560 __builtin_ia32_vpdpwssd_v16si_mask,
11561 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11562 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11563 __builtin_ia32_vpdpwssd_v4si_maskz,
11564 __builtin_ia32_vpdpwssds_v16si_mask,
11565 __builtin_ia32_vpdpwssds_v16si_maskz,
11566 __builtin_ia32_vpdpwssds_v8si_mask,
11567 __builtin_ia32_vpdpwssds_v8si_maskz,
11568 __builtin_ia32_vpdpwssds_v4si_mask,
11569 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11570 suffixed types rather than *_INT.
11571 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11572 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11573 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11574 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11575 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11576 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11577
11578 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11579
11580 * tree-vrp.c (intersect_ranges): If we know the intersection is
11581 empty, there is no need to conservatively add anything else to
11582 the set.
11583
11584 2019-07-11 Richard Biener <rguenther@suse.de>
11585
11586 PR middle-end/91131
11587 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11588 when the object is volatile and we have not cleared it even though
11589 there are no nonzero elements.
11590
11591 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11592
11593 * config/rs6000/predicates.md (cint34_operand): Update
11594 SIGNED_34BIT_OFFSET_P call.
11595 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11596 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11597 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11598 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11599 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11600 argument.
11601 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11602 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11603 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11604 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11605 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11606
11607 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11608
11609 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11610 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11611 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11612 (DEF_MIN_OSX_VERSION): New.
11613
11614 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11615
11616 * fold-const.c (fold_relational_const): Fix folding of
11617 vector-to-scalar NE_EXPRs.
11618 (test_vector_folding): Add more tests.
11619
11620 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11621
11622 PR target/91060
11623 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11624 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11625 (vec_setv2di_internal): Reexpress as...
11626 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11627 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11628 rather than gen_neon_vset_lane<mode>.
11629
11630 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11631
11632 PR target/91102
11633 * lra-constraints.c (process_alt_operands): Don't match user
11634 defined regs only if they are early clobbers.
11635
11636 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11637
11638 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11639
11640 2019-07-10 Richard Biener <rguenther@suse.de>
11641
11642 PR tree-optimization/91126
11643 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11644 native encoding offset for BYTES_BIG_ENDIAN.
11645 (vn_reference_lookup_3): Likewise.
11646
11647 2019-07-10 Richard Biener <rguenther@suse.de>
11648
11649 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11650 LHS whenever possible.
11651
11652 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11653
11654 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11655 from ...; work also on duplicated types.
11656 (nonoverlapping_component_refs_since_match): ... here
11657 (ncr_type_uid): Break out from ...
11658 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11659 available.
11660 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11661 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11662
11663 2019-07-09 Martin Sebor <msebor@redhat.com>
11664
11665 PR tree-optimization/90989
11666 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11667 optimization to just single character stores.
11668
11669 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11670
11671 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11672 Swap operands only once.
11673
11674 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11675
11676 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11677 for both call instructions.
11678
11679 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11680
11681 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11682 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11683
11684 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11685
11686 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11687 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11688 function from rs6000-logue.c back to rs6000.c.
11689 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11690
11691 2019-07-09 Martin Sebor <msebor@redhat.com>
11692
11693 PR c++/61339
11694 * auto-profile.c: Change class-key of PODs to struct and others
11695 to class.
11696 * basic-block.h: Same.
11697 * bitmap.c (bitmap_alloc): Same.
11698 * bitmap.h: Same.
11699 * builtins.c (expand_builtin_prefetch): Same.
11700 (expand_builtin_interclass_mathfn): Same.
11701 (expand_builtin_strlen): Same.
11702 (expand_builtin_mempcpy_args): Same.
11703 (expand_cmpstr): Same.
11704 (expand_builtin___clear_cache): Same.
11705 (expand_ifn_atomic_bit_test_and): Same.
11706 (expand_builtin_thread_pointer): Same.
11707 (expand_builtin_set_thread_pointer): Same.
11708 * caller-save.c (setup_save_areas): Same.
11709 (replace_reg_with_saved_mem): Same.
11710 (insert_restore): Same.
11711 (insert_save): Same.
11712 (add_used_regs): Same.
11713 * cfg.c (get_bb_copy): Same.
11714 (set_loop_copy): Same.
11715 * cfg.h: Same.
11716 * cfganal.h: Same.
11717 * cfgexpand.c (alloc_stack_frame_space): Same.
11718 (add_stack_var): Same.
11719 (add_stack_var_conflict): Same.
11720 (add_scope_conflicts_1): Same.
11721 (update_alias_info_with_stack_vars): Same.
11722 (expand_used_vars): Same.
11723 * cfghooks.c (redirect_edge_and_branch_force): Same.
11724 (delete_basic_block): Same.
11725 (split_edge): Same.
11726 (make_forwarder_block): Same.
11727 (force_nonfallthru): Same.
11728 (duplicate_block): Same.
11729 (lv_flush_pending_stmts): Same.
11730 * cfghooks.h: Same.
11731 * cfgloop.c (flow_loops_cfg_dump): Same.
11732 (flow_loop_nested_p): Same.
11733 (superloop_at_depth): Same.
11734 (get_loop_latch_edges): Same.
11735 (flow_loop_dump): Same.
11736 (flow_loops_dump): Same.
11737 (flow_loops_free): Same.
11738 (flow_loop_nodes_find): Same.
11739 (establish_preds): Same.
11740 (flow_loop_tree_node_add): Same.
11741 (flow_loop_tree_node_remove): Same.
11742 (flow_loops_find): Same.
11743 (find_subloop_latch_edge_by_profile): Same.
11744 (find_subloop_latch_edge_by_ivs): Same.
11745 (mfb_redirect_edges_in_set): Same.
11746 (form_subloop): Same.
11747 (merge_latch_edges): Same.
11748 (disambiguate_multiple_latches): Same.
11749 (disambiguate_loops_with_multiple_latches): Same.
11750 (flow_bb_inside_loop_p): Same.
11751 (glb_enum_p): Same.
11752 (get_loop_body_with_size): Same.
11753 (get_loop_body): Same.
11754 (fill_sons_in_loop): Same.
11755 (get_loop_body_in_dom_order): Same.
11756 (get_loop_body_in_custom_order): Same.
11757 (release_recorded_exits): Same.
11758 (get_loop_exit_edges): Same.
11759 (num_loop_branches): Same.
11760 (remove_bb_from_loops): Same.
11761 (find_common_loop): Same.
11762 (delete_loop): Same.
11763 (cancel_loop): Same.
11764 (verify_loop_structure): Same.
11765 (loop_preheader_edge): Same.
11766 (loop_exit_edge_p): Same.
11767 (single_exit): Same.
11768 (loop_exits_to_bb_p): Same.
11769 (loop_exits_from_bb_p): Same.
11770 (get_loop_location): Same.
11771 (record_niter_bound): Same.
11772 (get_estimated_loop_iterations_int): Same.
11773 (max_stmt_executions_int): Same.
11774 (likely_max_stmt_executions_int): Same.
11775 (get_estimated_loop_iterations): Same.
11776 (get_max_loop_iterations): Same.
11777 (get_max_loop_iterations_int): Same.
11778 (get_likely_max_loop_iterations): Same.
11779 * cfgloop.h (simple_loop_desc): Same.
11780 (get_loop): Same.
11781 (loop_depth): Same.
11782 (loop_outer): Same.
11783 (loop_iterator::next): Same.
11784 (loop_outermost): Same.
11785 * cfgloopanal.c (mark_irreducible_loops): Same.
11786 (num_loop_insns): Same.
11787 (average_num_loop_insns): Same.
11788 (expected_loop_iterations_unbounded): Same.
11789 (expected_loop_iterations): Same.
11790 (mark_loop_exit_edges): Same.
11791 (single_likely_exit): Same.
11792 * cfgloopmanip.c (fix_bb_placement): Same.
11793 (fix_bb_placements): Same.
11794 (remove_path): Same.
11795 (place_new_loop): Same.
11796 (add_loop): Same.
11797 (scale_loop_frequencies): Same.
11798 (scale_loop_profile): Same.
11799 (create_empty_if_region_on_edge): Same.
11800 (create_empty_loop_on_edge): Same.
11801 (loopify): Same.
11802 (unloop): Same.
11803 (fix_loop_placements): Same.
11804 (copy_loop_info): Same.
11805 (duplicate_loop): Same.
11806 (duplicate_subloops): Same.
11807 (loop_redirect_edge): Same.
11808 (can_duplicate_loop_p): Same.
11809 (duplicate_loop_to_header_edge): Same.
11810 (mfb_keep_just): Same.
11811 (has_preds_from_loop): Same.
11812 (create_preheader): Same.
11813 (create_preheaders): Same.
11814 (lv_adjust_loop_entry_edge): Same.
11815 (loop_version): Same.
11816 * cfgloopmanip.h: Same.
11817 * cgraph.h: Same.
11818 * cgraphbuild.c: Same.
11819 * combine.c (make_extraction): Same.
11820 * config/i386/i386-features.c: Same.
11821 * config/i386/i386-features.h: Same.
11822 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11823 (ix86_emit_outlined_ms2sysv_restore): Same.
11824 (ix86_noce_conversion_profitable_p): Same.
11825 (ix86_init_cost): Same.
11826 (ix86_simd_clone_usable): Same.
11827 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11828 Wstruct-not-pod.
11829 * coretypes.h: Same.
11830 * data-streamer-in.c (string_for_index): Change class-key of PODs
11831 to struct and others to class.
11832 (streamer_read_indexed_string): Same.
11833 (streamer_read_string): Same.
11834 (bp_unpack_indexed_string): Same.
11835 (bp_unpack_string): Same.
11836 (streamer_read_uhwi): Same.
11837 (streamer_read_hwi): Same.
11838 (streamer_read_gcov_count): Same.
11839 (streamer_read_wide_int): Same.
11840 * data-streamer.h (streamer_write_bitpack): Same.
11841 (bp_unpack_value): Same.
11842 (streamer_write_char_stream): Same.
11843 (streamer_write_hwi_in_range): Same.
11844 (streamer_write_record_start): Same.
11845 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11846 (add_cross_iteration_register_deps): Same.
11847 (build_intra_loop_deps): Same.
11848 * df-core.c (df_analyze): Same.
11849 (loop_post_order_compute): Same.
11850 (loop_inverted_post_order_compute): Same.
11851 * df-problems.c (df_rd_alloc): Same.
11852 (df_rd_simulate_one_insn): Same.
11853 (df_rd_local_compute): Same.
11854 (df_rd_init_solution): Same.
11855 (df_rd_confluence_n): Same.
11856 (df_rd_transfer_function): Same.
11857 (df_rd_free): Same.
11858 (df_rd_dump_defs_set): Same.
11859 (df_rd_top_dump): Same.
11860 (df_lr_alloc): Same.
11861 (df_lr_reset): Same.
11862 (df_lr_local_compute): Same.
11863 (df_lr_init): Same.
11864 (df_lr_confluence_n): Same.
11865 (df_lr_free): Same.
11866 (df_lr_top_dump): Same.
11867 (df_lr_verify_transfer_functions): Same.
11868 (df_live_alloc): Same.
11869 (df_live_reset): Same.
11870 (df_live_init): Same.
11871 (df_live_confluence_n): Same.
11872 (df_live_finalize): Same.
11873 (df_live_free): Same.
11874 (df_live_top_dump): Same.
11875 (df_live_verify_transfer_functions): Same.
11876 (df_mir_alloc): Same.
11877 (df_mir_reset): Same.
11878 (df_mir_init): Same.
11879 (df_mir_confluence_n): Same.
11880 (df_mir_free): Same.
11881 (df_mir_top_dump): Same.
11882 (df_word_lr_alloc): Same.
11883 (df_word_lr_reset): Same.
11884 (df_word_lr_init): Same.
11885 (df_word_lr_confluence_n): Same.
11886 (df_word_lr_free): Same.
11887 (df_word_lr_top_dump): Same.
11888 (df_md_alloc): Same.
11889 (df_md_simulate_one_insn): Same.
11890 (df_md_reset): Same.
11891 (df_md_init): Same.
11892 (df_md_free): Same.
11893 (df_md_top_dump): Same.
11894 * df-scan.c (df_insn_delete): Same.
11895 (df_insn_rescan): Same.
11896 (df_notes_rescan): Same.
11897 (df_sort_and_compress_mws): Same.
11898 (df_install_mws): Same.
11899 (df_refs_add_to_chains): Same.
11900 (df_ref_create_structure): Same.
11901 (df_ref_record): Same.
11902 (df_def_record_1): Same.
11903 (df_find_hard_reg_defs): Same.
11904 (df_uses_record): Same.
11905 (df_get_conditional_uses): Same.
11906 (df_get_call_refs): Same.
11907 (df_recompute_luids): Same.
11908 (df_get_entry_block_def_set): Same.
11909 (df_entry_block_defs_collect): Same.
11910 (df_get_exit_block_use_set): Same.
11911 (df_exit_block_uses_collect): Same.
11912 (df_mws_verify): Same.
11913 (df_bb_verify): Same.
11914 * df.h (df_scan_get_bb_info): Same.
11915 * doc/tm.texi: Same.
11916 * dse.c (record_store): Same.
11917 * dumpfile.h: Same.
11918 * emit-rtl.c (const_fixed_hasher::equal): Same.
11919 (set_mem_attributes_minus_bitpos): Same.
11920 (change_address): Same.
11921 (adjust_address_1): Same.
11922 (offset_address): Same.
11923 * emit-rtl.h: Same.
11924 * except.c (dw2_build_landing_pads): Same.
11925 (sjlj_emit_dispatch_table): Same.
11926 * explow.c (allocate_dynamic_stack_space): Same.
11927 (emit_stack_probe): Same.
11928 (probe_stack_range): Same.
11929 * expmed.c (store_bit_field_using_insv): Same.
11930 (store_bit_field_1): Same.
11931 (store_integral_bit_field): Same.
11932 (extract_bit_field_using_extv): Same.
11933 (extract_bit_field_1): Same.
11934 (emit_cstore): Same.
11935 * expr.c (emit_block_move_via_cpymem): Same.
11936 (expand_cmpstrn_or_cmpmem): Same.
11937 (set_storage_via_setmem): Same.
11938 (emit_single_push_insn_1): Same.
11939 (expand_assignment): Same.
11940 (store_constructor): Same.
11941 (expand_expr_real_2): Same.
11942 (expand_expr_real_1): Same.
11943 (try_casesi): Same.
11944 * flags.h: Same.
11945 * function.c (try_fit_stack_local): Same.
11946 (assign_stack_local_1): Same.
11947 (assign_stack_local): Same.
11948 (cut_slot_from_list): Same.
11949 (insert_slot_to_list): Same.
11950 (max_slot_level): Same.
11951 (move_slot_to_level): Same.
11952 (temp_address_hasher::equal): Same.
11953 (remove_unused_temp_slot_addresses): Same.
11954 (assign_temp): Same.
11955 (combine_temp_slots): Same.
11956 (update_temp_slot_address): Same.
11957 (preserve_temp_slots): Same.
11958 * function.h: Same.
11959 * fwprop.c: Same.
11960 * gcc-rich-location.h: Same.
11961 * gcov.c: Same.
11962 * genattrtab.c (check_attr_test): Same.
11963 (check_attr_value): Same.
11964 (convert_set_attr_alternative): Same.
11965 (convert_set_attr): Same.
11966 (check_defs): Same.
11967 (copy_boolean): Same.
11968 (get_attr_value): Same.
11969 (expand_delays): Same.
11970 (make_length_attrs): Same.
11971 (min_fn): Same.
11972 (make_alternative_compare): Same.
11973 (simplify_test_exp): Same.
11974 (tests_attr_p): Same.
11975 (get_attr_order): Same.
11976 (clear_struct_flag): Same.
11977 (gen_attr): Same.
11978 (compares_alternatives_p): Same.
11979 (gen_insn): Same.
11980 (gen_delay): Same.
11981 (find_attrs_to_cache): Same.
11982 (write_test_expr): Same.
11983 (walk_attr_value): Same.
11984 (write_attr_get): Same.
11985 (eliminate_known_true): Same.
11986 (write_insn_cases): Same.
11987 (write_attr_case): Same.
11988 (write_attr_valueq): Same.
11989 (write_attr_value): Same.
11990 (write_dummy_eligible_delay): Same.
11991 (next_comma_elt): Same.
11992 (find_attr): Same.
11993 (make_internal_attr): Same.
11994 (copy_rtx_unchanging): Same.
11995 (gen_insn_reserv): Same.
11996 (check_tune_attr): Same.
11997 (make_automaton_attrs): Same.
11998 (handle_arg): Same.
11999 * genextract.c (gen_insn): Same.
12000 (VEC_char_to_string): Same.
12001 * genmatch.c (print_operand): Same.
12002 (lower): Same.
12003 (parser::parse_operation): Same.
12004 (parser::parse_capture): Same.
12005 (parser::parse_c_expr): Same.
12006 (parser::parse_simplify): Same.
12007 (main): Same.
12008 * genoutput.c (output_operand_data): Same.
12009 (output_get_insn_name): Same.
12010 (compare_operands): Same.
12011 (place_operands): Same.
12012 (process_template): Same.
12013 (validate_insn_alternatives): Same.
12014 (validate_insn_operands): Same.
12015 (gen_expand): Same.
12016 (note_constraint): Same.
12017 * genpreds.c (write_one_predicate_function): Same.
12018 (add_constraint): Same.
12019 (process_define_register_constraint): Same.
12020 (write_lookup_constraint_1): Same.
12021 (write_lookup_constraint_array): Same.
12022 (write_insn_constraint_len): Same.
12023 (write_reg_class_for_constraint_1): Same.
12024 (write_constraint_satisfied_p_array): Same.
12025 * genrecog.c (optimize_subroutine_group): Same.
12026 * gensupport.c (process_define_predicate): Same.
12027 (queue_pattern): Same.
12028 (remove_from_queue): Same.
12029 (process_rtx): Same.
12030 (is_predicable): Same.
12031 (change_subst_attribute): Same.
12032 (subst_pattern_match): Same.
12033 (alter_constraints): Same.
12034 (alter_attrs_for_insn): Same.
12035 (shift_output_template): Same.
12036 (alter_output_for_subst_insn): Same.
12037 (process_one_cond_exec): Same.
12038 (subst_dup): Same.
12039 (process_define_cond_exec): Same.
12040 (mnemonic_htab_callback): Same.
12041 (gen_mnemonic_attr): Same.
12042 (read_md_rtx): Same.
12043 * ggc-page.c: Same.
12044 * gimple-loop-interchange.cc (dump_reduction): Same.
12045 (dump_induction): Same.
12046 (loop_cand::~loop_cand): Same.
12047 (free_data_refs_with_aux): Same.
12048 (tree_loop_interchange::interchange_loops): Same.
12049 (tree_loop_interchange::map_inductions_to_loop): Same.
12050 (tree_loop_interchange::move_code_to_inner_loop): Same.
12051 (compute_access_stride): Same.
12052 (compute_access_strides): Same.
12053 (proper_loop_form_for_interchange): Same.
12054 (tree_loop_interchange_compute_ddrs): Same.
12055 (prune_datarefs_not_in_loop): Same.
12056 (prepare_data_references): Same.
12057 (pass_linterchange::execute): Same.
12058 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12059 (unroll_jam_possible_p): Same.
12060 (fuse_loops): Same.
12061 (adjust_unroll_factor): Same.
12062 (tree_loop_unroll_and_jam): Same.
12063 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12064 (loop_versioning::expensive_stmt_p): Same.
12065 (loop_versioning::version_for_unity): Same.
12066 (loop_versioning::dump_inner_likelihood): Same.
12067 (loop_versioning::find_per_loop_multiplication): Same.
12068 (loop_versioning::analyze_term_using_scevs): Same.
12069 (loop_versioning::record_address_fragment): Same.
12070 (loop_versioning::analyze_expr): Same.
12071 (loop_versioning::analyze_blocks): Same.
12072 (loop_versioning::prune_conditions): Same.
12073 (loop_versioning::merge_loop_info): Same.
12074 (loop_versioning::add_loop_to_queue): Same.
12075 (loop_versioning::decide_whether_loop_is_versionable): Same.
12076 (loop_versioning::make_versioning_decisions): Same.
12077 (loop_versioning::implement_versioning_decisions): Same.
12078 * gimple-ssa-evrp-analyze.c
12079 (evrp_range_analyzer::record_ranges_from_phis): Same.
12080 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12081 (count_multiple_uses): Same.
12082 (split_group): Same.
12083 (imm_store_chain_info::output_merged_store): Same.
12084 (pass_store_merging::process_store): Same.
12085 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12086 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12087 (is_max): Same.
12088 (alloca_call_type): Same.
12089 (pass_walloca::execute): Same.
12090 * gimple-streamer-in.c (input_phi): Same.
12091 (input_gimple_stmt): Same.
12092 * gimple-streamer.h: Same.
12093 * godump.c (go_force_record_alignment): Same.
12094 (go_format_type): Same.
12095 (go_output_type): Same.
12096 (go_output_fndecl): Same.
12097 (go_output_typedef): Same.
12098 (keyword_hash_init): Same.
12099 (find_dummy_types): Same.
12100 * graph.c (draw_cfg_nodes_no_loops): Same.
12101 (draw_cfg_nodes_for_loop): Same.
12102 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12103 * hsa-brig.c: Same.
12104 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12105 * hsa-dump.c (dump_hsa_cfun): Same.
12106 * hsa-gen.c (gen_function_def_parameters): Same.
12107 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12108 * input.c (dump_line_table_statistics): Same.
12109 (test_lexer): Same.
12110 * input.h: Same.
12111 * internal-fn.c (get_multi_vector_move): Same.
12112 (expand_load_lanes_optab_fn): Same.
12113 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12114 (expand_GOMP_SIMT_EXIT): Same.
12115 (expand_GOMP_SIMT_LAST_LANE): Same.
12116 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12117 (expand_GOMP_SIMT_VOTE_ANY): Same.
12118 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12119 (expand_GOMP_SIMT_XCHG_IDX): Same.
12120 (expand_addsub_overflow): Same.
12121 (expand_neg_overflow): Same.
12122 (expand_mul_overflow): Same.
12123 (expand_call_mem_ref): Same.
12124 (expand_mask_load_optab_fn): Same.
12125 (expand_scatter_store_optab_fn): Same.
12126 (expand_gather_load_optab_fn): Same.
12127 * ipa-cp.c (ipa_get_parm_lattices): Same.
12128 (print_all_lattices): Same.
12129 (ignore_edge_p): Same.
12130 (build_toporder_info): Same.
12131 (free_toporder_info): Same.
12132 (push_node_to_stack): Same.
12133 (ipcp_lattice<valtype>::set_contains_variable): Same.
12134 (set_agg_lats_to_bottom): Same.
12135 (ipcp_bits_lattice::meet_with): Same.
12136 (set_single_call_flag): Same.
12137 (initialize_node_lattices): Same.
12138 (ipa_get_jf_ancestor_result): Same.
12139 (ipcp_verify_propagated_values): Same.
12140 (propagate_scalar_across_jump_function): Same.
12141 (propagate_context_across_jump_function): Same.
12142 (propagate_bits_across_jump_function): Same.
12143 (ipa_vr_operation_and_type_effects): Same.
12144 (propagate_vr_across_jump_function): Same.
12145 (set_check_aggs_by_ref): Same.
12146 (set_chain_of_aglats_contains_variable): Same.
12147 (merge_aggregate_lattices): Same.
12148 (agg_pass_through_permissible_p): Same.
12149 (propagate_aggs_across_jump_function): Same.
12150 (call_passes_through_thunk_p): Same.
12151 (propagate_constants_across_call): Same.
12152 (devirtualization_time_bonus): Same.
12153 (good_cloning_opportunity_p): Same.
12154 (context_independent_aggregate_values): Same.
12155 (gather_context_independent_values): Same.
12156 (perform_estimation_of_a_value): Same.
12157 (estimate_local_effects): Same.
12158 (value_topo_info<valtype>::add_val): Same.
12159 (add_all_node_vals_to_toposort): Same.
12160 (value_topo_info<valtype>::propagate_effects): Same.
12161 (ipcp_propagate_stage): Same.
12162 (ipcp_discover_new_direct_edges): Same.
12163 (same_node_or_its_all_contexts_clone_p): Same.
12164 (cgraph_edge_brings_value_p): Same.
12165 (gather_edges_for_value): Same.
12166 (create_specialized_node): Same.
12167 (find_more_scalar_values_for_callers_subset): Same.
12168 (find_more_contexts_for_caller_subset): Same.
12169 (copy_plats_to_inter): Same.
12170 (intersect_aggregates_with_edge): Same.
12171 (find_aggregate_values_for_callers_subset): Same.
12172 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12173 (decide_about_value): Same.
12174 (decide_whether_version_node): Same.
12175 (spread_undeadness): Same.
12176 (identify_dead_nodes): Same.
12177 (ipcp_store_vr_results): Same.
12178 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12179 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12180 (redirect_to_unreachable): Same.
12181 (edge_set_predicate): Same.
12182 (evaluate_conditions_for_known_args): Same.
12183 (evaluate_properties_for_edge): Same.
12184 (ipa_fn_summary_t::duplicate): Same.
12185 (ipa_call_summary_t::duplicate): Same.
12186 (dump_ipa_call_summary): Same.
12187 (ipa_dump_fn_summary): Same.
12188 (eliminated_by_inlining_prob): Same.
12189 (set_cond_stmt_execution_predicate): Same.
12190 (set_switch_stmt_execution_predicate): Same.
12191 (compute_bb_predicates): Same.
12192 (will_be_nonconstant_expr_predicate): Same.
12193 (phi_result_unknown_predicate): Same.
12194 (analyze_function_body): Same.
12195 (compute_fn_summary): Same.
12196 (estimate_edge_devirt_benefit): Same.
12197 (estimate_edge_size_and_time): Same.
12198 (estimate_calls_size_and_time): Same.
12199 (estimate_node_size_and_time): Same.
12200 (remap_edge_change_prob): Same.
12201 (remap_edge_summaries): Same.
12202 (ipa_merge_fn_summary_after_inlining): Same.
12203 (ipa_fn_summary_generate): Same.
12204 (inline_read_section): Same.
12205 (ipa_fn_summary_read): Same.
12206 (ipa_fn_summary_write): Same.
12207 * ipa-fnsummary.h: Same.
12208 * ipa-hsa.c (ipa_hsa_read_section): Same.
12209 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12210 * ipa-icf.c (sem_function::param_used_p): Same.
12211 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12212 * ipa-inline.c (edge_badness): Same.
12213 (inline_small_functions): Same.
12214 * ipa-polymorphic-call.c
12215 (ipa_polymorphic_call_context::stream_out): Same.
12216 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12217 (predicate::remap_after_inlining): Same.
12218 (predicate::stream_out): Same.
12219 * ipa-predicate.h: Same.
12220 * ipa-profile.c (ipa_profile_read_summary): Same.
12221 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12222 (count_formal_params): Same.
12223 (ipa_dump_param): Same.
12224 (ipa_alloc_node_params): Same.
12225 (ipa_print_node_jump_functions_for_edge): Same.
12226 (ipa_print_node_jump_functions): Same.
12227 (ipa_load_from_parm_agg): Same.
12228 (get_ancestor_addr_info): Same.
12229 (ipa_compute_jump_functions_for_edge): Same.
12230 (ipa_analyze_virtual_call_uses): Same.
12231 (ipa_analyze_stmt_uses): Same.
12232 (ipa_analyze_params_uses_in_bb): Same.
12233 (update_jump_functions_after_inlining): Same.
12234 (try_decrement_rdesc_refcount): Same.
12235 (ipa_impossible_devirt_target): Same.
12236 (update_indirect_edges_after_inlining): Same.
12237 (combine_controlled_uses_counters): Same.
12238 (ipa_edge_args_sum_t::duplicate): Same.
12239 (ipa_write_jump_function): Same.
12240 (ipa_write_indirect_edge_info): Same.
12241 (ipa_write_node_info): Same.
12242 (ipa_read_edge_info): Same.
12243 (ipa_prop_read_section): Same.
12244 (read_replacements_section): Same.
12245 * ipa-prop.h (ipa_get_param_count): Same.
12246 (ipa_get_param): Same.
12247 (ipa_get_type): Same.
12248 (ipa_get_param_move_cost): Same.
12249 (ipa_set_param_used): Same.
12250 (ipa_get_controlled_uses): Same.
12251 (ipa_set_controlled_uses): Same.
12252 (ipa_get_cs_argument_count): Same.
12253 * ipa-pure-const.c (analyze_function): Same.
12254 (pure_const_read_summary): Same.
12255 * ipa-ref.h: Same.
12256 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12257 * ipa-split.c (test_nonssa_use): Same.
12258 (dump_split_point): Same.
12259 (dominated_by_forbidden): Same.
12260 (split_part_set_ssa_name_p): Same.
12261 (find_split_points): Same.
12262 * ira-build.c (finish_loop_tree_nodes): Same.
12263 (low_pressure_loop_node_p): Same.
12264 * ira-color.c (ira_reuse_stack_slot): Same.
12265 * ira-int.h: Same.
12266 * ira.c (setup_reg_equiv): Same.
12267 (print_insn_chain): Same.
12268 (ira): Same.
12269 * loop-doloop.c (doloop_condition_get): Same.
12270 (add_test): Same.
12271 (record_reg_sets): Same.
12272 (doloop_optimize): Same.
12273 * loop-init.c (loop_optimizer_init): Same.
12274 (fix_loop_structure): Same.
12275 * loop-invariant.c (merge_identical_invariants): Same.
12276 (compute_always_reached): Same.
12277 (find_exits): Same.
12278 (may_assign_reg_p): Same.
12279 (find_invariants_bb): Same.
12280 (find_invariants_body): Same.
12281 (replace_uses): Same.
12282 (can_move_invariant_reg): Same.
12283 (free_inv_motion_data): Same.
12284 (move_single_loop_invariants): Same.
12285 (change_pressure): Same.
12286 (mark_ref_regs): Same.
12287 (calculate_loop_reg_pressure): Same.
12288 * loop-iv.c (biv_entry_hasher::equal): Same.
12289 (iv_extend_to_rtx_code): Same.
12290 (check_iv_ref_table_size): Same.
12291 (clear_iv_info): Same.
12292 (latch_dominating_def): Same.
12293 (iv_get_reaching_def): Same.
12294 (iv_constant): Same.
12295 (iv_subreg): Same.
12296 (iv_extend): Same.
12297 (iv_neg): Same.
12298 (iv_add): Same.
12299 (iv_mult): Same.
12300 (get_biv_step): Same.
12301 (record_iv): Same.
12302 (analyzed_for_bivness_p): Same.
12303 (record_biv): Same.
12304 (iv_analyze_biv): Same.
12305 (iv_analyze_expr): Same.
12306 (iv_analyze_def): Same.
12307 (iv_analyze_op): Same.
12308 (iv_analyze): Same.
12309 (iv_analyze_result): Same.
12310 (biv_p): Same.
12311 (eliminate_implied_conditions): Same.
12312 (simplify_using_initial_values): Same.
12313 (shorten_into_mode): Same.
12314 (canonicalize_iv_subregs): Same.
12315 (determine_max_iter): Same.
12316 (check_simple_exit): Same.
12317 (find_simple_exit): Same.
12318 (get_simple_loop_desc): Same.
12319 * loop-unroll.c (report_unroll): Same.
12320 (decide_unrolling): Same.
12321 (unroll_loops): Same.
12322 (loop_exit_at_end_p): Same.
12323 (decide_unroll_constant_iterations): Same.
12324 (unroll_loop_constant_iterations): Same.
12325 (compare_and_jump_seq): Same.
12326 (unroll_loop_runtime_iterations): Same.
12327 (decide_unroll_stupid): Same.
12328 (unroll_loop_stupid): Same.
12329 (referenced_in_one_insn_in_loop_p): Same.
12330 (reset_debug_uses_in_loop): Same.
12331 (analyze_iv_to_split_insn): Same.
12332 * lra-eliminations.c (lra_debug_elim_table): Same.
12333 (setup_can_eliminate): Same.
12334 (form_sum): Same.
12335 (lra_get_elimination_hard_regno): Same.
12336 (lra_eliminate_regs_1): Same.
12337 (eliminate_regs_in_insn): Same.
12338 (update_reg_eliminate): Same.
12339 (init_elimination): Same.
12340 (lra_eliminate): Same.
12341 * lra-int.h: Same.
12342 * lra-lives.c (initiate_live_solver): Same.
12343 * lra-remat.c (create_remat_bb_data): Same.
12344 * lra-spills.c (lra_spill): Same.
12345 * lra.c (lra_set_insn_recog_data): Same.
12346 (lra_set_used_insn_alternative_by_uid): Same.
12347 (init_reg_info): Same.
12348 (expand_reg_info): Same.
12349 * lto-cgraph.c (output_symtab): Same.
12350 (read_identifier): Same.
12351 (get_alias_symbol): Same.
12352 (input_node): Same.
12353 (input_varpool_node): Same.
12354 (input_ref): Same.
12355 (input_edge): Same.
12356 (input_cgraph_1): Same.
12357 (input_refs): Same.
12358 (input_symtab): Same.
12359 (input_offload_tables): Same.
12360 (output_cgraph_opt_summary): Same.
12361 (input_edge_opt_summary): Same.
12362 (input_cgraph_opt_section): Same.
12363 * lto-section-in.c (lto_free_raw_section_data): Same.
12364 (lto_create_simple_input_block): Same.
12365 (lto_free_function_in_decl_state_for_node): Same.
12366 * lto-streamer-in.c (lto_tag_check_set): Same.
12367 (lto_location_cache::revert_location_cache): Same.
12368 (lto_location_cache::input_location): Same.
12369 (lto_input_location): Same.
12370 (stream_input_location_now): Same.
12371 (lto_input_tree_ref): Same.
12372 (lto_input_eh_catch_list): Same.
12373 (input_eh_region): Same.
12374 (lto_init_eh): Same.
12375 (make_new_block): Same.
12376 (input_cfg): Same.
12377 (fixup_call_stmt_edges): Same.
12378 (input_struct_function_base): Same.
12379 (input_function): Same.
12380 (lto_read_body_or_constructor): Same.
12381 (lto_read_tree_1): Same.
12382 (lto_read_tree): Same.
12383 (lto_input_scc): Same.
12384 (lto_input_tree_1): Same.
12385 (lto_input_toplevel_asms): Same.
12386 (lto_input_mode_table): Same.
12387 (lto_reader_init): Same.
12388 (lto_data_in_create): Same.
12389 * lto-streamer-out.c (output_cfg): Same.
12390 * lto-streamer.h: Same.
12391 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12392 (generate_prolog_epilog): Same.
12393 (mark_loop_unsched): Same.
12394 (dump_insn_location): Same.
12395 (loop_canon_p): Same.
12396 (sms_schedule): Same.
12397 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12398 (expand_omp_for_generic): Same.
12399 (expand_omp_for_static_nochunk): Same.
12400 (expand_omp_for_static_chunk): Same.
12401 (expand_omp_simd): Same.
12402 (expand_omp_taskloop_for_inner): Same.
12403 (expand_oacc_for): Same.
12404 (expand_omp_atomic_pipeline): Same.
12405 (mark_loops_in_oacc_kernels_region): Same.
12406 * omp-offload.c (oacc_xform_loop): Same.
12407 * omp-simd-clone.c (simd_clone_adjust): Same.
12408 * optabs-query.c (get_traditional_extraction_insn): Same.
12409 * optabs.c (expand_vector_broadcast): Same.
12410 (expand_binop_directly): Same.
12411 (expand_twoval_unop): Same.
12412 (expand_twoval_binop): Same.
12413 (expand_unop_direct): Same.
12414 (emit_indirect_jump): Same.
12415 (emit_conditional_move): Same.
12416 (emit_conditional_neg_or_complement): Same.
12417 (emit_conditional_add): Same.
12418 (vector_compare_rtx): Same.
12419 (expand_vec_perm_1): Same.
12420 (expand_vec_perm_const): Same.
12421 (expand_vec_cond_expr): Same.
12422 (expand_vec_series_expr): Same.
12423 (maybe_emit_atomic_exchange): Same.
12424 (maybe_emit_sync_lock_test_and_set): Same.
12425 (expand_atomic_compare_and_swap): Same.
12426 (expand_atomic_load): Same.
12427 (expand_atomic_store): Same.
12428 (maybe_emit_op): Same.
12429 (valid_multiword_target_p): Same.
12430 (create_integer_operand): Same.
12431 (maybe_legitimize_operand_same_code): Same.
12432 (maybe_legitimize_operand): Same.
12433 (create_convert_operand_from_type): Same.
12434 (can_reuse_operands_p): Same.
12435 (maybe_legitimize_operands): Same.
12436 (maybe_gen_insn): Same.
12437 (maybe_expand_insn): Same.
12438 (maybe_expand_jump_insn): Same.
12439 (expand_insn): Same.
12440 * optabs.h (create_expand_operand): Same.
12441 (create_fixed_operand): Same.
12442 (create_output_operand): Same.
12443 (create_input_operand): Same.
12444 (create_convert_operand_to): Same.
12445 (create_convert_operand_from): Same.
12446 * optinfo.h: Same.
12447 * poly-int.h: Same.
12448 * predict.c (optimize_insn_for_speed_p): Same.
12449 (optimize_loop_for_size_p): Same.
12450 (optimize_loop_for_speed_p): Same.
12451 (optimize_loop_nest_for_speed_p): Same.
12452 (get_base_value): Same.
12453 (predicted_by_loop_heuristics_p): Same.
12454 (predict_extra_loop_exits): Same.
12455 (predict_loops): Same.
12456 (predict_paths_for_bb): Same.
12457 (predict_paths_leading_to): Same.
12458 (propagate_freq): Same.
12459 (pass_profile::execute): Same.
12460 * predict.h: Same.
12461 * profile-count.c (profile_count::differs_from_p): Same.
12462 (profile_probability::differs_lot_from_p): Same.
12463 * profile-count.h: Same.
12464 * profile.c (branch_prob): Same.
12465 * regrename.c (free_chain_data): Same.
12466 (mark_conflict): Same.
12467 (create_new_chain): Same.
12468 (merge_overlapping_regs): Same.
12469 (init_rename_info): Same.
12470 (merge_chains): Same.
12471 (regrename_analyze): Same.
12472 (regrename_do_replace): Same.
12473 (scan_rtx_reg): Same.
12474 (record_out_operands): Same.
12475 (build_def_use): Same.
12476 * regrename.h: Same.
12477 * reload.h: Same.
12478 * reload1.c (init_reload): Same.
12479 (maybe_fix_stack_asms): Same.
12480 (copy_reloads): Same.
12481 (count_pseudo): Same.
12482 (count_spilled_pseudo): Same.
12483 (find_reg): Same.
12484 (find_reload_regs): Same.
12485 (select_reload_regs): Same.
12486 (spill_hard_reg): Same.
12487 (fixup_eh_region_note): Same.
12488 (set_reload_reg): Same.
12489 (allocate_reload_reg): Same.
12490 (compute_reload_subreg_offset): Same.
12491 (reload_adjust_reg_for_icode): Same.
12492 (emit_input_reload_insns): Same.
12493 (emit_output_reload_insns): Same.
12494 (do_input_reload): Same.
12495 (inherit_piecemeal_p): Same.
12496 * rtl.h: Same.
12497 * sanopt.c (maybe_get_dominating_check): Same.
12498 (maybe_optimize_ubsan_ptr_ifn): Same.
12499 (can_remove_asan_check): Same.
12500 (maybe_optimize_asan_check_ifn): Same.
12501 (sanopt_optimize_walker): Same.
12502 * sched-deps.c (add_dependence_list): Same.
12503 (chain_to_prev_insn): Same.
12504 (add_insn_mem_dependence): Same.
12505 (create_insn_reg_set): Same.
12506 (maybe_extend_reg_info_p): Same.
12507 (sched_analyze_reg): Same.
12508 (sched_analyze_1): Same.
12509 (get_implicit_reg_pending_clobbers): Same.
12510 (chain_to_prev_insn_p): Same.
12511 (deps_analyze_insn): Same.
12512 (deps_start_bb): Same.
12513 (sched_free_deps): Same.
12514 (init_deps): Same.
12515 (init_deps_reg_last): Same.
12516 (free_deps): Same.
12517 * sched-ebb.c: Same.
12518 * sched-int.h: Same.
12519 * sched-rgn.c (add_branch_dependences): Same.
12520 (concat_insn_mem_list): Same.
12521 (deps_join): Same.
12522 (sched_rgn_compute_dependencies): Same.
12523 * sel-sched-ir.c (reset_target_context): Same.
12524 (copy_deps_context): Same.
12525 (init_id_from_df): Same.
12526 (has_dependence_p): Same.
12527 (change_loops_latches): Same.
12528 (bb_top_order_comparator): Same.
12529 (make_region_from_loop_preheader): Same.
12530 (sel_init_pipelining): Same.
12531 (get_loop_nest_for_rgn): Same.
12532 (make_regions_from_the_rest): Same.
12533 (sel_is_loop_preheader_p): Same.
12534 * sel-sched-ir.h (inner_loop_header_p): Same.
12535 (get_all_loop_exits): Same.
12536 * selftest.h: Same.
12537 * sese.c (sese_build_liveouts): Same.
12538 (sese_insert_phis_for_liveouts): Same.
12539 * sese.h (defined_in_sese_p): Same.
12540 * sreal.c (sreal::stream_out): Same.
12541 * sreal.h: Same.
12542 * streamer-hooks.h: Same.
12543 * target-globals.c (save_target_globals): Same.
12544 * target-globals.h: Same.
12545 * target.def: Same.
12546 * target.h: Same.
12547 * targhooks.c (default_has_ifunc_p): Same.
12548 (default_empty_mask_is_expensive): Same.
12549 (default_init_cost): Same.
12550 * targhooks.h: Same.
12551 * toplev.c: Same.
12552 * tree-affine.c (aff_combination_mult): Same.
12553 (aff_combination_expand): Same.
12554 (aff_combination_constant_multiple_p): Same.
12555 * tree-affine.h: Same.
12556 * tree-cfg.c (build_gimple_cfg): Same.
12557 (replace_loop_annotate_in_block): Same.
12558 (replace_uses_by): Same.
12559 (remove_bb): Same.
12560 (dump_cfg_stats): Same.
12561 (gimple_duplicate_sese_region): Same.
12562 (gimple_duplicate_sese_tail): Same.
12563 (move_block_to_fn): Same.
12564 (replace_block_vars_by_duplicates): Same.
12565 (move_sese_region_to_fn): Same.
12566 (print_loops_bb): Same.
12567 (print_loop): Same.
12568 (print_loops): Same.
12569 (debug): Same.
12570 (debug_loops): Same.
12571 * tree-cfg.h: Same.
12572 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12573 (chrec_fold_multiply_poly_poly): Same.
12574 (chrec_evaluate): Same.
12575 (chrec_component_in_loop_num): Same.
12576 (reset_evolution_in_loop): Same.
12577 (is_multivariate_chrec): Same.
12578 (chrec_contains_symbols): Same.
12579 (nb_vars_in_chrec): Same.
12580 (chrec_convert_1): Same.
12581 (chrec_convert_aggressive): Same.
12582 * tree-chrec.h: Same.
12583 * tree-core.h: Same.
12584 * tree-data-ref.c (dump_data_dependence_relation): Same.
12585 (canonicalize_base_object_address): Same.
12586 (data_ref_compare_tree): Same.
12587 (prune_runtime_alias_test_list): Same.
12588 (get_segment_min_max): Same.
12589 (create_intersect_range_checks): Same.
12590 (conflict_fn_no_dependence): Same.
12591 (object_address_invariant_in_loop_p): Same.
12592 (analyze_ziv_subscript): Same.
12593 (analyze_siv_subscript_cst_affine): Same.
12594 (analyze_miv_subscript): Same.
12595 (analyze_overlapping_iterations): Same.
12596 (build_classic_dist_vector_1): Same.
12597 (add_other_self_distances): Same.
12598 (same_access_functions): Same.
12599 (build_classic_dir_vector): Same.
12600 (subscript_dependence_tester_1): Same.
12601 (subscript_dependence_tester): Same.
12602 (access_functions_are_affine_or_constant_p): Same.
12603 (get_references_in_stmt): Same.
12604 (loop_nest_has_data_refs): Same.
12605 (graphite_find_data_references_in_stmt): Same.
12606 (find_data_references_in_bb): Same.
12607 (get_base_for_alignment): Same.
12608 (find_loop_nest_1): Same.
12609 (find_loop_nest): Same.
12610 * tree-data-ref.h (dr_alignment): Same.
12611 (ddr_dependence_level): Same.
12612 * tree-if-conv.c (fold_build_cond_expr): Same.
12613 (add_to_predicate_list): Same.
12614 (add_to_dst_predicate_list): Same.
12615 (phi_convertible_by_degenerating_args): Same.
12616 (idx_within_array_bound): Same.
12617 (all_preds_critical_p): Same.
12618 (pred_blocks_visited_p): Same.
12619 (predicate_bbs): Same.
12620 (build_region): Same.
12621 (if_convertible_loop_p_1): Same.
12622 (is_cond_scalar_reduction): Same.
12623 (predicate_scalar_phi): Same.
12624 (remove_conditions_and_labels): Same.
12625 (combine_blocks): Same.
12626 (version_loop_for_if_conversion): Same.
12627 (versionable_outer_loop_p): Same.
12628 (ifcvt_local_dce): Same.
12629 (tree_if_conversion): Same.
12630 (pass_if_conversion::gate): Same.
12631 * tree-if-conv.h: Same.
12632 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12633 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12634 (free_rdg): Same.
12635 (stmt_has_scalar_dependences_outside_loop): Same.
12636 (copy_loop_before): Same.
12637 (create_bb_after_loop): Same.
12638 (const_with_all_bytes_same): Same.
12639 (generate_memset_builtin): Same.
12640 (generate_memcpy_builtin): Same.
12641 (destroy_loop): Same.
12642 (build_rdg_partition_for_vertex): Same.
12643 (compute_access_range): Same.
12644 (data_ref_segment_size): Same.
12645 (latch_dominated_by_data_ref): Same.
12646 (compute_alias_check_pairs): Same.
12647 (fuse_memset_builtins): Same.
12648 (finalize_partitions): Same.
12649 (find_seed_stmts_for_distribution): Same.
12650 (prepare_perfect_loop_nest): Same.
12651 * tree-parloops.c (lambda_transform_legal_p): Same.
12652 (loop_parallel_p): Same.
12653 (reduc_stmt_res): Same.
12654 (add_field_for_name): Same.
12655 (create_call_for_reduction_1): Same.
12656 (replace_uses_in_bb_by): Same.
12657 (transform_to_exit_first_loop_alt): Same.
12658 (try_transform_to_exit_first_loop_alt): Same.
12659 (transform_to_exit_first_loop): Same.
12660 (num_phis): Same.
12661 (gen_parallel_loop): Same.
12662 (gather_scalar_reductions): Same.
12663 (get_omp_data_i_param): Same.
12664 (try_create_reduction_list): Same.
12665 (oacc_entry_exit_single_gang): Same.
12666 (parallelize_loops): Same.
12667 * tree-pass.h: Same.
12668 * tree-predcom.c (determine_offset): Same.
12669 (last_always_executed_block): Same.
12670 (split_data_refs_to_components): Same.
12671 (suitable_component_p): Same.
12672 (valid_initializer_p): Same.
12673 (find_looparound_phi): Same.
12674 (insert_looparound_copy): Same.
12675 (add_looparound_copies): Same.
12676 (determine_roots_comp): Same.
12677 (predcom_tmp_var): Same.
12678 (initialize_root_vars): Same.
12679 (initialize_root_vars_store_elim_1): Same.
12680 (initialize_root_vars_store_elim_2): Same.
12681 (finalize_eliminated_stores): Same.
12682 (initialize_root_vars_lm): Same.
12683 (remove_stmt): Same.
12684 (determine_unroll_factor): Same.
12685 (execute_pred_commoning_cbck): Same.
12686 (base_names_in_chain_on): Same.
12687 (combine_chains): Same.
12688 (pcom_stmt_dominates_stmt_p): Same.
12689 (try_combine_chains): Same.
12690 (prepare_initializers_chain_store_elim): Same.
12691 (prepare_initializers_chain): Same.
12692 (prepare_initializers): Same.
12693 (prepare_finalizers_chain): Same.
12694 (prepare_finalizers): Same.
12695 (insert_init_seqs): Same.
12696 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12697 (compute_overall_effect_of_inner_loop): Same.
12698 (add_to_evolution_1): Same.
12699 (add_to_evolution): Same.
12700 (follow_ssa_edge_binary): Same.
12701 (follow_ssa_edge_expr): Same.
12702 (backedge_phi_arg_p): Same.
12703 (follow_ssa_edge_in_condition_phi_branch): Same.
12704 (follow_ssa_edge_in_condition_phi): Same.
12705 (follow_ssa_edge_inner_loop_phi): Same.
12706 (follow_ssa_edge): Same.
12707 (analyze_evolution_in_loop): Same.
12708 (analyze_initial_condition): Same.
12709 (interpret_loop_phi): Same.
12710 (interpret_condition_phi): Same.
12711 (interpret_rhs_expr): Same.
12712 (interpret_expr): Same.
12713 (interpret_gimple_assign): Same.
12714 (analyze_scalar_evolution_1): Same.
12715 (analyze_scalar_evolution): Same.
12716 (analyze_scalar_evolution_for_address_of): Same.
12717 (get_instantiated_value_entry): Same.
12718 (loop_closed_phi_def): Same.
12719 (instantiate_scev_name): Same.
12720 (instantiate_scev_poly): Same.
12721 (instantiate_scev_binary): Same.
12722 (instantiate_scev_convert): Same.
12723 (instantiate_scev_not): Same.
12724 (instantiate_scev_r): Same.
12725 (instantiate_scev): Same.
12726 (resolve_mixers): Same.
12727 (initialize_scalar_evolutions_analyzer): Same.
12728 (scev_reset_htab): Same.
12729 (scev_reset): Same.
12730 (derive_simple_iv_with_niters): Same.
12731 (simple_iv_with_niters): Same.
12732 (expression_expensive_p): Same.
12733 (final_value_replacement_loop): Same.
12734 * tree-scalar-evolution.h (block_before_loop): Same.
12735 * tree-ssa-address.h: Same.
12736 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12737 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12738 (record_edge_info): Same.
12739 * tree-ssa-live.c (var_map_base_fini): Same.
12740 (remove_unused_locals): Same.
12741 * tree-ssa-live.h: Same.
12742 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12743 (pass_ch_vect::execute): Same.
12744 (pass_ch::process_loop_p): Same.
12745 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12746 (movement_possibility): Same.
12747 (outermost_invariant_loop): Same.
12748 (stmt_cost): Same.
12749 (determine_max_movement): Same.
12750 (invariantness_dom_walker::before_dom_children): Same.
12751 (move_computations): Same.
12752 (may_move_till): Same.
12753 (force_move_till_op): Same.
12754 (force_move_till): Same.
12755 (memref_free): Same.
12756 (record_mem_ref_loc): Same.
12757 (set_ref_stored_in_loop): Same.
12758 (mark_ref_stored): Same.
12759 (sort_bbs_in_loop_postorder_cmp): Same.
12760 (sort_locs_in_loop_postorder_cmp): Same.
12761 (analyze_memory_references): Same.
12762 (mem_refs_may_alias_p): Same.
12763 (find_ref_loc_in_loop_cmp): Same.
12764 (rewrite_mem_ref_loc::operator): Same.
12765 (first_mem_ref_loc_1::operator): Same.
12766 (sm_set_flag_if_changed::operator): Same.
12767 (execute_sm_if_changed_flag_set): Same.
12768 (execute_sm): Same.
12769 (hoist_memory_references): Same.
12770 (ref_always_accessed::operator): Same.
12771 (refs_independent_p): Same.
12772 (record_dep_loop): Same.
12773 (ref_indep_loop_p_1): Same.
12774 (ref_indep_loop_p): Same.
12775 (can_sm_ref_p): Same.
12776 (find_refs_for_sm): Same.
12777 (loop_suitable_for_sm): Same.
12778 (store_motion_loop): Same.
12779 (store_motion): Same.
12780 (fill_always_executed_in): Same.
12781 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12782 (estimated_unrolled_size): Same.
12783 (loop_edge_to_cancel): Same.
12784 (remove_exits_and_undefined_stmts): Same.
12785 (remove_redundant_iv_tests): Same.
12786 (unloop_loops): Same.
12787 (estimated_peeled_sequence_size): Same.
12788 (try_peel_loop): Same.
12789 (canonicalize_loop_induction_variables): Same.
12790 (canonicalize_induction_variables): Same.
12791 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12792 (name_info): Same.
12793 (stmt_after_inc_pos): Same.
12794 (contains_abnormal_ssa_name_p): Same.
12795 (niter_for_exit): Same.
12796 (find_bivs): Same.
12797 (mark_bivs): Same.
12798 (find_givs_in_bb): Same.
12799 (find_induction_variables): Same.
12800 (find_interesting_uses_cond): Same.
12801 (outermost_invariant_loop_for_expr): Same.
12802 (idx_find_step): Same.
12803 (add_candidate_1): Same.
12804 (add_iv_candidate_derived_from_uses): Same.
12805 (alloc_use_cost_map): Same.
12806 (prepare_decl_rtl): Same.
12807 (generic_predict_doloop_p): Same.
12808 (computation_cost): Same.
12809 (determine_common_wider_type): Same.
12810 (get_computation_aff_1): Same.
12811 (get_use_type): Same.
12812 (determine_group_iv_cost_address): Same.
12813 (iv_period): Same.
12814 (difference_cannot_overflow_p): Same.
12815 (may_eliminate_iv): Same.
12816 (determine_set_costs): Same.
12817 (cheaper_cost_pair): Same.
12818 (compare_cost_pair): Same.
12819 (iv_ca_cand_for_group): Same.
12820 (iv_ca_recount_cost): Same.
12821 (iv_ca_set_remove_invs): Same.
12822 (iv_ca_set_no_cp): Same.
12823 (iv_ca_set_add_invs): Same.
12824 (iv_ca_set_cp): Same.
12825 (iv_ca_add_group): Same.
12826 (iv_ca_cost): Same.
12827 (iv_ca_compare_deps): Same.
12828 (iv_ca_delta_reverse): Same.
12829 (iv_ca_delta_commit): Same.
12830 (iv_ca_cand_used_p): Same.
12831 (iv_ca_delta_free): Same.
12832 (iv_ca_new): Same.
12833 (iv_ca_free): Same.
12834 (iv_ca_dump): Same.
12835 (iv_ca_extend): Same.
12836 (iv_ca_narrow): Same.
12837 (iv_ca_prune): Same.
12838 (cheaper_cost_with_cand): Same.
12839 (iv_ca_replace): Same.
12840 (try_add_cand_for): Same.
12841 (get_initial_solution): Same.
12842 (try_improve_iv_set): Same.
12843 (find_optimal_iv_set_1): Same.
12844 (create_new_iv): Same.
12845 (rewrite_use_compare): Same.
12846 (remove_unused_ivs): Same.
12847 (determine_scaling_factor): Same.
12848 * tree-ssa-loop-ivopts.h: Same.
12849 * tree-ssa-loop-manip.c (create_iv): Same.
12850 (compute_live_loop_exits): Same.
12851 (add_exit_phi): Same.
12852 (add_exit_phis): Same.
12853 (find_uses_to_rename_use): Same.
12854 (find_uses_to_rename_def): Same.
12855 (find_uses_to_rename_in_loop): Same.
12856 (rewrite_into_loop_closed_ssa): Same.
12857 (check_loop_closed_ssa_bb): Same.
12858 (split_loop_exit_edge): Same.
12859 (ip_end_pos): Same.
12860 (ip_normal_pos): Same.
12861 (copy_phi_node_args): Same.
12862 (gimple_duplicate_loop_to_header_edge): Same.
12863 (can_unroll_loop_p): Same.
12864 (determine_exit_conditions): Same.
12865 (scale_dominated_blocks_in_loop): Same.
12866 (niter_for_unrolled_loop): Same.
12867 (tree_transform_and_unroll_loop): Same.
12868 (rewrite_all_phi_nodes_with_iv): Same.
12869 * tree-ssa-loop-manip.h: Same.
12870 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12871 (number_of_iterations_ne): Same.
12872 (assert_no_overflow_lt): Same.
12873 (assert_loop_rolls_lt): Same.
12874 (number_of_iterations_lt): Same.
12875 (adjust_cond_for_loop_until_wrap): Same.
12876 (tree_simplify_using_condition): Same.
12877 (simplify_using_initial_conditions): Same.
12878 (simplify_using_outer_evolutions): Same.
12879 (loop_only_exit_p): Same.
12880 (ssa_defined_by_minus_one_stmt_p): Same.
12881 (number_of_iterations_popcount): Same.
12882 (number_of_iterations_exit): Same.
12883 (find_loop_niter): Same.
12884 (finite_loop_p): Same.
12885 (chain_of_csts_start): Same.
12886 (get_val_for): Same.
12887 (loop_niter_by_eval): Same.
12888 (derive_constant_upper_bound_ops): Same.
12889 (do_warn_aggressive_loop_optimizations): Same.
12890 (record_estimate): Same.
12891 (get_cst_init_from_scev): Same.
12892 (record_nonwrapping_iv): Same.
12893 (idx_infer_loop_bounds): Same.
12894 (infer_loop_bounds_from_ref): Same.
12895 (infer_loop_bounds_from_array): Same.
12896 (infer_loop_bounds_from_pointer_arith): Same.
12897 (infer_loop_bounds_from_signedness): Same.
12898 (bound_index): Same.
12899 (discover_iteration_bound_by_body_walk): Same.
12900 (maybe_lower_iteration_bound): Same.
12901 (estimate_numbers_of_iterations): Same.
12902 (estimated_loop_iterations): Same.
12903 (estimated_loop_iterations_int): Same.
12904 (max_loop_iterations): Same.
12905 (max_loop_iterations_int): Same.
12906 (likely_max_loop_iterations): Same.
12907 (likely_max_loop_iterations_int): Same.
12908 (estimated_stmt_executions_int): Same.
12909 (max_stmt_executions): Same.
12910 (likely_max_stmt_executions): Same.
12911 (estimated_stmt_executions): Same.
12912 (stmt_dominates_stmt_p): Same.
12913 (nowrap_type_p): Same.
12914 (loop_exits_before_overflow): Same.
12915 (scev_var_range_cant_overflow): Same.
12916 (scev_probably_wraps_p): Same.
12917 (free_numbers_of_iterations_estimates): Same.
12918 * tree-ssa-loop-niter.h: Same.
12919 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12920 (idx_analyze_ref): Same.
12921 (analyze_ref): Same.
12922 (gather_memory_references_ref): Same.
12923 (mark_nontemporal_store): Same.
12924 (emit_mfence_after_loop): Same.
12925 (may_use_storent_in_loop_p): Same.
12926 (mark_nontemporal_stores): Same.
12927 (should_unroll_loop_p): Same.
12928 (volume_of_dist_vector): Same.
12929 (add_subscript_strides): Same.
12930 (self_reuse_distance): Same.
12931 (insn_to_prefetch_ratio_too_small_p): Same.
12932 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12933 (patch_loop_exit): Same.
12934 (find_or_create_guard_phi): Same.
12935 (easy_exit_values): Same.
12936 (connect_loop_phis): Same.
12937 (connect_loops): Same.
12938 (compute_new_first_bound): Same.
12939 (split_loop): Same.
12940 (tree_ssa_split_loops): Same.
12941 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12942 (is_maybe_undefined): Same.
12943 (tree_may_unswitch_on): Same.
12944 (simplify_using_entry_checks): Same.
12945 (tree_unswitch_single_loop): Same.
12946 (tree_unswitch_loop): Same.
12947 (tree_unswitch_outer_loop): Same.
12948 (empty_bb_without_guard_p): Same.
12949 (used_outside_loop_p): Same.
12950 (get_vop_from_header): Same.
12951 (hoist_guard): Same.
12952 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12953 (get_lsm_tmp_name): Same.
12954 * tree-ssa-loop.h: Same.
12955 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12956 (build_and_add_sum): Same.
12957 (no_side_effect_bb): Same.
12958 (get_ops): Same.
12959 (linearize_expr): Same.
12960 (should_break_up_subtract): Same.
12961 (linearize_expr_tree): Same.
12962 * tree-ssa-scopedtables.c: Same.
12963 * tree-ssa-scopedtables.h: Same.
12964 * tree-ssa-structalias.c (condense_visit): Same.
12965 (label_visit): Same.
12966 (dump_pred_graph): Same.
12967 (perform_var_substitution): Same.
12968 (move_complex_constraints): Same.
12969 (remove_preds_and_fake_succs): Same.
12970 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12971 (determine_bb_domination_status): Same.
12972 (duplicate_thread_path): Same.
12973 (thread_through_all_blocks): Same.
12974 * tree-ssa-threadupdate.h: Same.
12975 * tree-streamer-in.c (streamer_read_string_cst): Same.
12976 (input_identifier): Same.
12977 (unpack_ts_type_common_value_fields): Same.
12978 (unpack_ts_block_value_fields): Same.
12979 (unpack_ts_translation_unit_decl_value_fields): Same.
12980 (unpack_ts_omp_clause_value_fields): Same.
12981 (streamer_read_tree_bitfields): Same.
12982 (streamer_alloc_tree): Same.
12983 (lto_input_ts_common_tree_pointers): Same.
12984 (lto_input_ts_vector_tree_pointers): Same.
12985 (lto_input_ts_poly_tree_pointers): Same.
12986 (lto_input_ts_complex_tree_pointers): Same.
12987 (lto_input_ts_decl_minimal_tree_pointers): Same.
12988 (lto_input_ts_decl_common_tree_pointers): Same.
12989 (lto_input_ts_decl_non_common_tree_pointers): Same.
12990 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12991 (lto_input_ts_field_decl_tree_pointers): Same.
12992 (lto_input_ts_function_decl_tree_pointers): Same.
12993 (lto_input_ts_type_common_tree_pointers): Same.
12994 (lto_input_ts_type_non_common_tree_pointers): Same.
12995 (lto_input_ts_list_tree_pointers): Same.
12996 (lto_input_ts_vec_tree_pointers): Same.
12997 (lto_input_ts_exp_tree_pointers): Same.
12998 (lto_input_ts_block_tree_pointers): Same.
12999 (lto_input_ts_binfo_tree_pointers): Same.
13000 (lto_input_ts_constructor_tree_pointers): Same.
13001 (lto_input_ts_omp_clause_tree_pointers): Same.
13002 (streamer_read_tree_body): Same.
13003 * tree-streamer.h: Same.
13004 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13005 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13006 (vect_analyze_possibly_independent_ddr): Same.
13007 (vect_analyze_data_ref_dependence): Same.
13008 (vect_compute_data_ref_alignment): Same.
13009 (vect_enhance_data_refs_alignment): Same.
13010 (vect_analyze_data_ref_access): Same.
13011 (vect_check_gather_scatter): Same.
13012 (vect_find_stmt_data_reference): Same.
13013 (vect_create_addr_base_for_vector_ref): Same.
13014 (vect_setup_realignment): Same.
13015 (vect_supportable_dr_alignment): Same.
13016 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13017 (adjust_phi_and_debug_stmts): Same.
13018 (vect_set_loop_mask): Same.
13019 (add_preheader_seq): Same.
13020 (vect_maybe_permute_loop_masks): Same.
13021 (vect_set_loop_masks_directly): Same.
13022 (vect_set_loop_condition_masked): Same.
13023 (vect_set_loop_condition_unmasked): Same.
13024 (slpeel_duplicate_current_defs_from_edges): Same.
13025 (slpeel_add_loop_guard): Same.
13026 (slpeel_can_duplicate_loop_p): Same.
13027 (create_lcssa_for_virtual_phi): Same.
13028 (iv_phi_p): Same.
13029 (vect_update_ivs_after_vectorizer): Same.
13030 (vect_gen_vector_loop_niters_mult_vf): Same.
13031 (slpeel_update_phi_nodes_for_loops): Same.
13032 (slpeel_update_phi_nodes_for_guard1): Same.
13033 (find_guard_arg): Same.
13034 (slpeel_update_phi_nodes_for_guard2): Same.
13035 (slpeel_update_phi_nodes_for_lcssa): Same.
13036 (vect_do_peeling): Same.
13037 (vect_create_cond_for_alias_checks): Same.
13038 (vect_loop_versioning): Same.
13039 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13040 (vect_inner_phi_in_double_reduction_p): Same.
13041 (vect_analyze_scalar_cycles_1): Same.
13042 (vect_fixup_scalar_cycles_with_patterns): Same.
13043 (vect_get_loop_niters): Same.
13044 (bb_in_loop_p): Same.
13045 (vect_get_max_nscalars_per_iter): Same.
13046 (vect_verify_full_masking): Same.
13047 (vect_compute_single_scalar_iteration_cost): Same.
13048 (vect_analyze_loop_form_1): Same.
13049 (vect_analyze_loop_form): Same.
13050 (vect_active_double_reduction_p): Same.
13051 (vect_analyze_loop_operations): Same.
13052 (neutral_op_for_slp_reduction): Same.
13053 (vect_is_simple_reduction): Same.
13054 (vect_model_reduction_cost): Same.
13055 (get_initial_def_for_reduction): Same.
13056 (get_initial_defs_for_reduction): Same.
13057 (vect_create_epilog_for_reduction): Same.
13058 (vectorize_fold_left_reduction): Same.
13059 (vectorizable_reduction): Same.
13060 (vectorizable_induction): Same.
13061 (vectorizable_live_operation): Same.
13062 (loop_niters_no_overflow): Same.
13063 (vect_get_loop_mask): Same.
13064 (vect_transform_loop_stmt): Same.
13065 (vect_transform_loop): Same.
13066 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13067 (vect_determine_precisions): Same.
13068 (vect_pattern_recog_1): Same.
13069 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13070 * tree-vect-stmts.c (stmt_vectype): Same.
13071 (process_use): Same.
13072 (vect_init_vector_1): Same.
13073 (vect_truncate_gather_scatter_offset): Same.
13074 (get_group_load_store_type): Same.
13075 (vect_build_gather_load_calls): Same.
13076 (vect_get_strided_load_store_ops): Same.
13077 (vectorizable_simd_clone_call): Same.
13078 (vectorizable_store): Same.
13079 (permute_vec_elements): Same.
13080 (vectorizable_load): Same.
13081 (vect_transform_stmt): Same.
13082 (supportable_widening_operation): Same.
13083 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13084 (vec_info::free_stmt_vec_info): Same.
13085 (vect_free_loop_info_assumptions): Same.
13086 (vect_loop_vectorized_call): Same.
13087 (set_uid_loop_bbs): Same.
13088 (vectorize_loops): Same.
13089 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13090 * tree.c (add_tree_to_fld_list): Same.
13091 (fld_type_variant_equal_p): Same.
13092 (fld_decl_context): Same.
13093 (fld_incomplete_type_of): Same.
13094 (free_lang_data_in_binfo): Same.
13095 (need_assembler_name_p): Same.
13096 (find_decls_types_r): Same.
13097 (get_eh_types_for_runtime): Same.
13098 (find_decls_types_in_eh_region): Same.
13099 (find_decls_types_in_node): Same.
13100 (assign_assembler_name_if_needed): Same.
13101 * value-prof.c (stream_out_histogram_value): Same.
13102 * value-prof.h: Same.
13103 * var-tracking.c (use_narrower_mode): Same.
13104 (prepare_call_arguments): Same.
13105 (vt_expand_loc_callback): Same.
13106 (resolve_expansions_pending_recursion): Same.
13107 (vt_expand_loc): Same.
13108 * varasm.c (const_hash_1): Same.
13109 (compare_constant): Same.
13110 (tree_output_constant_def): Same.
13111 (simplify_subtraction): Same.
13112 (get_pool_constant): Same.
13113 (output_constant_pool_2): Same.
13114 (output_constant_pool_1): Same.
13115 (mark_constants_in_pattern): Same.
13116 (mark_constant_pool): Same.
13117 (get_section_anchor): Same.
13118 * vr-values.c (compare_range_with_value): Same.
13119 (vr_values::extract_range_from_phi_node): Same.
13120 * vr-values.h: Same.
13121 * web.c (unionfind_union): Same.
13122 * wide-int.h: Same.
13123
13124 2019-07-09 Martin Sebor <msebor@redhat.com>
13125
13126 PR c++/61339
13127 * align.h: Change class-key from class to struct and vice versa
13128 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13129 * alloc-pool.h: Same.
13130 * asan.c (shadow_mem_size): Same.
13131 * auto-profile.c: Same.
13132 * basic-block.h: Same.
13133 * bitmap.h: Same.
13134 * cfgexpand.c (set_rtl): Same.
13135 (expand_one_stack_var_at): Same.
13136 * cfghooks.h: Same.
13137 * cfgloop.h: Same.
13138 * cgraph.h: Same.
13139 * config/i386/i386.h: Same.
13140 * df-problems.c (df_print_bb_index): Same.
13141 * df-scan.c: Same.
13142 * df.h (df_single_use): Same.
13143 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13144 (layout::annotation_line_showed_range_p): Same.
13145 (get_printed_columns): Same.
13146 (correction::ensure_terminated): Same.
13147 (line_corrections::~line_corrections): Same.
13148 * dojump.h: Same.
13149 * dse.c: Same.
13150 * dump-context.h: Same.
13151 * dumpfile.h: Same.
13152 * dwarf2out.c: Same.
13153 * edit-context.c: Same.
13154 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13155 * flags.h: Same.
13156 * function.c (assign_stack_local): Same.
13157 * function.h: Same.
13158 * gcc.c: Same.
13159 * gcov.c (block_info::block_info): Same.
13160 * genattrtab.c: Same.
13161 * genextract.c: Same.
13162 * genmatch.c (comparison_code_p): Same.
13163 (id_base::id_base): Same.
13164 (decision_tree::print): Same.
13165 * genoutput.c: Same.
13166 * genpreds.c (write_one_predicate_function): Same.
13167 * genrecog.c (validate_pattern): Same.
13168 (find_operand_positions): Same.
13169 (optimize_subroutine_group): Same.
13170 (merge_pattern_transition::merge_pattern_transition): Same.
13171 (merge_pattern_info::merge_pattern_info): Same.
13172 (merge_state_result::merge_state_result): Same.
13173 (merge_into_state): Same.
13174 * gensupport.c: Same.
13175 * gensupport.h: Same.
13176 * ggc-common.c (init_ggc_heuristics): Same.
13177 * ggc-tests.c (test_union): Same.
13178 * gimple-loop-interchange.cc (dump_induction): Same.
13179 * gimple-loop-versioning.cc: Same.
13180 * gimple-match.h (gimple_match_cond::any_else): Same.
13181 * gimple-ssa-backprop.c: Same.
13182 * gimple-ssa-sprintf.c: Same.
13183 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13184 Same.
13185 (store_immediate_info::store_immediate_info): Same.
13186 (merged_store_group::apply_stores): Same.
13187 (get_location_for_stmts): Same.
13188 * gimple-ssa-strength-reduction.c: Same.
13189 * gimple-ssa-warn-alloca.c: Same.
13190 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13191 * godump.c (go_type_decl): Same.
13192 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13193 * hash-map.h: Same.
13194 * hash-set-tests.c (test_set_of_strings): Same.
13195 * hsa-brig.c: Same.
13196 * hsa-common.h: Same.
13197 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13198 * input.c (assert_loceq): Same.
13199 * input.h: Same.
13200 * ipa-cp.c: Same.
13201 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13202 * ipa-fnsummary.h: Same.
13203 * ipa-inline.h: Same.
13204 * ipa-prop.h: Same.
13205 * ipa-split.c (visit_bb): Same.
13206 * ira-int.h (minmax_set_iter_next): Same.
13207 * loop-invariant.c: Same.
13208 * loop-iv.c: Same.
13209 * lra-eliminations.c: Same.
13210 * lra-int.h: Same.
13211 * lra-lives.c (mark_regno_dead): Same.
13212 * lra-remat.c: Same.
13213 * lra-spills.c: Same.
13214 * lto-streamer.h: Same.
13215 * mem-stats.h: Same.
13216 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13217 * omp-low.c (omp_clause_aligned_alignment): Same.
13218 * optabs-query.h (get_vcond_eq_icode): Same.
13219 * optabs.h: Same.
13220 * opts.c (wrap_help): Same.
13221 * poly-int.h: Same.
13222 * predict.c (predict_paths_leading_to_edge): Same.
13223 * pretty-print.h: Same.
13224 * profile-count.h: Same.
13225 * read-md.h: Same.
13226 * read-rtl-function.c: Same.
13227 * ree.c: Same.
13228 * reginfo.c: Same.
13229 * regrename.c: Same.
13230 * regrename.h: Same.
13231 * reload.h: Same.
13232 * rtl-iter.h: Same.
13233 * rtl.h (costs_add_n_insns): Same.
13234 * sanopt.c: Same.
13235 * sched-int.h: Same.
13236 * sel-sched-ir.h: Same.
13237 * selftest.h: Same.
13238 * sese.h (vec_find): Same.
13239 * stmt.c: Same.
13240 * target-globals.h: Same.
13241 * tree-affine.c (aff_combination_find_elt): Same.
13242 * tree-affine.h: Same.
13243 * tree-data-ref.h: Same.
13244 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13245 * tree-predcom.c: Same.
13246 * tree-scalar-evolution.c (find_var_scev_info): Same.
13247 * tree-ssa-alias.h: Same.
13248 * tree-ssa-ccp.c: Same.
13249 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13250 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13251 (rewrite_mem_refs): Same.
13252 (execute_sm_if_changed): Same.
13253 (hoist_memory_references): Same.
13254 * tree-ssa-loop-ivopts.c (operator<=): Same.
13255 * tree-ssa-loop.h: Same.
13256 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13257 * tree-ssa-structalias.c: Same.
13258 * tree-switch-conversion.h (cluster::cluster): Same.
13259 (simple_cluster::simple_cluster): Same.
13260 * tree-vect-patterns.c (type_conversion_p): Same.
13261 * tree-vectorizer.c (dump_stmt_cost): Same.
13262 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13263 * tree.c (protected_set_expr_location): Same.
13264 * tree.h (desired_pro_or_demotion_p): Same.
13265 (fndecl_built_in_p): Same.
13266 * unique-ptr-tests.cc: Same.
13267 * var-tracking.c (delete_variable_part): Same.
13268 * varasm.c (assemble_real): Same.
13269 (tree_output_constant_def): Same.
13270 * vec.c: Same.
13271 * wide-int-bitmask.h: Same.
13272 * wide-int.h (decompose): Same.
13273
13274 2019-07-09 Richard Biener <rguenther@suse.de>
13275
13276 PR tree-optimization/91114
13277 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13278 find a vector type isn't fatal.
13279
13280 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13281
13282 * config/aarch64/aarch64-simd.md
13283 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13284 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13285 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13286 (*aarch64_crypto_aese_fused,
13287 *aarch64_crypto_aesd_fused): Update to new definition.
13288 * config/aarch64/aarch64.c
13289 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13290
13291 2019-07-09 Richard Biener <rguenther@suse.de>
13292
13293 * gimple-match.h (gimple_match_op::resimplify): New.
13294 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13295 gimple_resimplify4, gimple_resimplify5): Remove.
13296 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13297 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13298 Make static.
13299 (gimple_match_op::resimplify): New.
13300 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13301 according to availability. Use gimple_match_op::resimplify.
13302
13303 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13304
13305 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13306
13307 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13308
13309 * config/arm/crypto.md:
13310 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13311 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13312 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13313 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13314 * config/arm/arm.c
13315 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13316 * config/arm/aarch-common-protos.h
13317 (aarch_crypto_can_dual_issue): Remove.
13318 * config/arm/aarch-common.c
13319 (aarch_crypto_can_dual_issue): Likewise.
13320 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13321 * config/arm/cortex-a53.md: Likewise.
13322 * config/arm/cortex-a57.md: Likewise.
13323 * config/arm/iterators.md:
13324 (CRYPTO_BINARY): Redefine.
13325 (CRYPTO_UNARY): Removed.
13326 (CRYPTO_AES, CRYPTO_AESMC): New.
13327
13328 2019-07-09 Richard Biener <rguenther@suse.de>
13329
13330 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13331 (vn_reference_lookup_3): If the main ref has no access path recorded
13332 but orig_ref has use it to do access-path based disambiguation.
13333 (vn_reference_lookup_pieces): Adjust.
13334 (vn_reference_lookup): Pass down original ref if we valueized.
13335
13336 2019-07-09 Martin Liska <mliska@suse.cz>
13337
13338 * doc/extend.texi: Document influence on loop
13339 optimizers.
13340
13341 2019-07-09 Martin Liska <mliska@suse.cz>
13342
13343 * lto-compress.c (lto_normalized_zstd_level): Do not use
13344 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13345 of libzstd. One can use 0 as a default compression level.
13346
13347 2019-07-09 Martin Liska <mliska@suse.cz>
13348
13349 * doc/invoke.texi: Add link from -fprofile-dir option.
13350 Use better wording for 'gcno filename'.
13351
13352 2019-07-08 Martin Sebor <msebor@redhat.com>
13353
13354 PR middle-end/71924
13355 PR middle-end/90549
13356 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13357 comment.
13358 (args_loc_t): New type.
13359 (args_loc_t, locmap_t): same.
13360 (diag_returned_locals): New function.
13361 (is_addr_local): Same.
13362 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13363 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13364 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13365
13366 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13367
13368 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13369 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13370 and casts in offset when different, both through gimple stmts
13371 and through trees. Rewritten using loops to minimize code duplication
13372 for each operand.
13373
13374 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13375
13376 * emit-rtl.c (set_insn_locations): New function moved from...
13377 * function.c (set_insn_locations): ...here.
13378 * ira-emit.c (emit_moves): Propagate location of the first instruction
13379 to the inserted move instructions.
13380 * reg-stack.c (compensate_edge): Set the location if the sequence is
13381 inserted on the edge.
13382 * rtl.h (set_insn_locations): Declare.
13383
13384 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13385
13386 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13387 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13388 .machine string.
13389
13390 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13391
13392 PR rtl-optimization/88233
13393 * common.opt (fsplit-wide-types-early): New option.
13394 * common/config/rs6000/rs6000-common.c
13395 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13396 OPT_LEVELS_ALL.
13397 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13398 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13399 flag_split_wide_types_early.
13400 (pass_data_lower_subreg3): New.
13401 (pass_lower_subreg3): New.
13402 (make_pass_lower_subreg3): New.
13403 * passes.def (pass_lower_subreg2): Move after the loop passes.
13404 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13405 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13406 the pass pipeline; its previous place is taken by ...
13407 (make_pass_lower_subreg3): ... this.
13408
13409 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13410
13411 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13412 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13413
13414 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13415
13416 * config/s390/constraints.md: Add new jsc constraint.
13417 * config/s390/predicates.md: New predicates.
13418 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13419 * config/s390/s390.c (s390_valid_shift_count): New function.
13420 (print_shift_count_operand): Use s390_valid_shift_count.
13421 (print_operand): Likewise.
13422 * config/s390/s390.md: Use new predicate.
13423 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13424 * config/s390/vector.md: Use new predicate.
13425
13426 2019-07-08 Andrew Waterman <andrew@sifive.com>
13427 Jim Wilson <jimw@sifive.com>
13428
13429 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13430 bitsize instead of BITS_PER_WORD.
13431
13432 2019-07-08 Martin Liska <mliska@suse.cz>
13433
13434 * collect2.c (defined): Revert to before r254460.
13435 (scan_prog_file): Revert to before r254460.
13436
13437 2019-07-08 Richard Biener <rguenther@suse.de>
13438
13439 PR tree-optimization/83518
13440 * tree-ssa-sccvn.c: Include splay-tree.h.
13441 (struct pd_range, struct pd_data): New.
13442 (struct vn_walk_cb_data): Add data to track partial definitions.
13443 (vn_walk_cb_data::~vn_walk_cb_data): New.
13444 (vn_walk_cb_data::push_partial_def): New.
13445 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13446 (vn_reference_lookup_2): When partial defs are registered give up.
13447 (vn_reference_lookup_3): Track partial defs for memset and
13448 constructor zeroing and for defs from constants.
13449
13450 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13451
13452 * doc/install.texi (bootstrap-Og): Document.
13453
13454 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13455
13456 * config/riscv/pic.md (*local_pic_load_s<mode>)
13457 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13458 referenced by <mode>, giving...
13459 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13460 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13461 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13462 use <X:MODE> for the mode attribute.
13463
13464 2019-07-07 Jeff Law <law@redhat.com>
13465
13466 PR tree-optimization/91090
13467 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13468 in handling of ranges to simplify switch statements.
13469
13470 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13471
13472 * config/darwin.c (darwin_override_options): Make a final check on PIC
13473 options.
13474
13475 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13476
13477 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13478 on for kernel code.
13479
13480 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13481
13482 PR target/91068
13483 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13484 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13485 instead of matching them to "l" output operands.
13486
13487 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13488
13489 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13490 and check whether addr.reg is nonnull before using it.
13491
13492 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13493
13494 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13495 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13496 variable(s). For conditional lastprivate look through outer
13497 GIMPLE_OMP_SCAN context.
13498 (lower_omp_1): For conditional lastprivate look through outer
13499 GIMPLE_OMP_SCAN context.
13500
13501 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13502 member to combined_into_simd_safelen1.
13503 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13504 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13505 clauses if ctx->combined_into_simd_safelen1 put statements after the
13506 predicate conditionalized block rather than into it.
13507
13508 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13509
13510 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13511 operand 1.
13512 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13513 Make the choice of <mode> explicit, giving...
13514 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13515
13516 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13517
13518 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13519 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13520 of .md attributes.
13521 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13522 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13523 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13524 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13525 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13526 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13527 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13528 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13529 (*avx512f_scatterdi<mode>): Likewise.
13530 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13531
13532 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13533
13534 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13535 specify the mode iterator referenced by <mode>, giving...
13536 (*push1_h8300hs_<QHI:mode>): ...this.
13537
13538 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13539
13540 * config/gcn/gcn-valu.md
13541 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13542 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13543 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13544 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13545 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13546 but using the _exec comparison patterns.
13547 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13548 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13549 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13550 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13551 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13552 but using the _exec comparison patterns.
13553
13554 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13555
13556 * config/arm/sync.md
13557 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13558 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13559 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13560 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13561 <SIDI:cas_cmp_str>.
13562
13563 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13564
13565 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13566 (maybe_lookup_ctx): Add forward declaration.
13567 (omp_find_scan): Likewise. Walk into body of simd if composited
13568 with worksharing loop.
13569 (scan_omp_simd_scan): New function.
13570 (scan_omp_1_stmt): Call it.
13571 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13572 ctx->for_simd_scan_phase.
13573 (lower_rec_input_clauses): Do much less work for inscan reductions
13574 in ctx->for_simd_scan_phase is_simd regions.
13575 (lower_omp_scan): Set is_simd also on simd constructs composited
13576 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13577 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13578 emit their body after in simd constructs composited with worksharing
13579 loop.
13580 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13581
13582 * omp-low.c (omp_find_scan): Make static.
13583 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13584 the second loop, var2 represents the first partial sum and so needs
13585 to go before rprivb[ivar].
13586
13587 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13588
13589 * config/rs6000/rs6000-logue.c: Remove unused code.
13590
13591 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13592
13593 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13594
13595 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13596
13597 PR target/90712
13598 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13599 check with a frame laid out check.
13600
13601 2019-07-05 Richard Biener <rguenther@suse.de>
13602
13603 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13604 when comparing against a store with possibly the same value.
13605
13606 2019-07-05 Richard Biener <rguenther@suse.de>
13607
13608 PR tree-optimization/91091
13609 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13610 (walk_non_aliased_vuses): Likewise.
13611 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13612 (get_continuation_for_phi): New tbaa_p parameter and pass
13613 it down.
13614 (walk_non_aliased_vuses): Likewise.
13615 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13616 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13617 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13618 Likewise.
13619 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13620 (adjust_offsets_for_equal_base_address): New function.
13621 (vn_reference_lookup_3): Use it to catch more base equivalences.
13622 Handle and pass down tbaa_p flag.
13623 (vn_reference_lookup_pieces): Adjust.
13624 (vn_reference_lookup): Remove alias-set altering, instead pass
13625 down false as tbaa_p.
13626
13627 2019-07-05 Richard Biener <rguenther@suse.de>
13628
13629 PR tree-optimization/91091
13630 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13631 accesses can happen with -fno-strict-aliasing.
13632
13633 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13634
13635 * tree-ssa-alias.c (alias_stats): Add
13636 nonoverlapping_component_refs_since_match_p_must_overlap.
13637 (dump_alias_stats): Print it.
13638 (nonoverlapping_component_refs_since_match_p): Add early exit.
13639 (nonoverlapping_component_refs_p): Do not account early exit.
13640
13641 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13642
13643 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13644 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13645 (emit_eh_dispatch): Delete.
13646 (lower_catch): Emit the eh_dispatch manually and set the location of
13647 the first catch statement onto it.
13648 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13649 (lower_eh_dispatch): Propagate location.
13650 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13651 (eliminate_build): Likewise.
13652
13653 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13654
13655 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13656 phi nodes if possible.
13657 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13658 location info on the newly created statement.
13659 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13660 newly created increment if needed.
13661
13662 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13663
13664 PR middle-end/78884
13665 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13666 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13667 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13668 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13669 ctx->add_safelen1 is set.
13670
13671 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13672 GOMP_loop_start at the start of second worksharing loop in a scan.
13673 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13674 worksharing loop in a scan even if there are conditional lastprivates,
13675 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13676
13677 2019-07-04 Jan Hubicka <jh@suse.cz>
13678
13679 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13680 Fix check for match in the ref walk.
13681
13682 2019-07-04 Martin Liska <mliska@suse.cz>
13683
13684 * tree-ssa-loop-niter.c
13685 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13686 (estimate_numbers_of_iterations):
13687 Support __builtin_expect_with_probability for analysis
13688 of # of loop iterations.
13689
13690 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13691
13692 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13693 * except.c: Likewise.
13694 * expr.c (expand_expr_real_1): Reject it.
13695 * gimplify.c (gimplify_expr): Gimplify it, within
13696 TRY_FINALLY_EXPR.
13697 * tree-dump.c (dequeue_and_dump): Dump it.
13698 * tree-pretty-print.c (dump_generic_node): Likewise.
13699 * tree.c (block_may_fallthru): Handle it.
13700 * tree.def (EH_ELSE_EXPR): Introduce it.
13701 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13702 with GIMPLE_EH_ELSE as try/finally/else.
13703
13704 2019-07-04 Richard Biener <rguenther@suse.de>
13705
13706 PR ipa/91062
13707 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13708 parameter whether to disable GC collection.
13709 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13710 honor it.
13711 (execute_all_ipa_transforms): Likewise and pass it down.
13712 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13713 collection from applying IPA transforms.
13714 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13715 from applying IPA transforms.
13716
13717 2019-07-04 Richard Biener <rguenther@suse.de>
13718
13719 PR tree-optimization/90911
13720 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13721 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13722 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13723 scalar_loop_scaling.
13724 (vect_transform_loop): Scale scalar loop profile if needed.
13725 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13726 the loop copy from if-conversion adjust edge probabilities
13727 and scale the vectorized loop body profile, queue the scalar
13728 profile for updating after peeling.
13729
13730 2019-07-04 Jan Hubicka <jh@suse.cz>
13731
13732 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13733 parameters; return early for must-alias.
13734 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13735 outer types match, try nonoverlapping_component_refs
13736 if must-alias is not obvious.
13737 (indirect_refs_may_alias_p): Likewise.
13738 (refs_may_alias_p_2): Likewise.
13739
13740 2019-07-04 Richard Biener <rguenther@suse.de>
13741
13742 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13743 argument.
13744 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13745 globals into...
13746 (struct vn_walk_cb_data): New callback data struct.
13747 (vn_reference_lookup_2): Adjust.
13748 (vn_reference_lookup_3): Likewise.
13749 (vn_reference_lookup_pieces): Likewise.
13750 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13751 (visit_reference_op_load): Adjust.
13752
13753 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13754
13755 PR tree-optimization/91063
13756 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13757 stmt from stmts sequence before calling vect_init_vector_1.
13758 Formatting fix.
13759
13760 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13761
13762 PR target/88833
13763 * fwprop.c (reg_single_def_p): New function.
13764 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13765 (forward_propagate_into): New parameter reg_prop_only
13766 with default value false.
13767 Propagate def's src into loop only if SET_SRC and SET_DEST
13768 of def_set have single definitions.
13769 Likewise if reg_prop_only is set to true.
13770 (fwprop): New param fwprop_addr_p.
13771 Integrate fwprop_addr into fwprop.
13772 (fwprop_addr): Remove.
13773 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13774 to true.
13775 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13776 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13777 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13778
13779 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13780
13781 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13782 in worksharing loop scans.
13783
13784 PR tree-optimization/91074
13785 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13786 temporary.
13787
13788 PR rtl-optimization/90756
13789 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13790 for VECTOR_TYPE_P.
13791
13792 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13793
13794 * config/aarch64/aarch64.md: Remove redundant constraints from
13795 define_expand but keep some patterns untouched if they are
13796 specially selected by TARGET_SECONDARY_RELOAD hook.
13797 * config/aarch64/aarch64-sve.md: Likewise.
13798 * config/aarch64/atomics.md: Remove redundant constraints from
13799 define_expand.
13800 * config/aarch64/aarch64-simd.md: Likewise.
13801
13802 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13803
13804 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13805 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13806 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13807 clauses.
13808 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13809 DARWIN_NOPIE_SPEC.
13810
13811 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13812
13813 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13814 (STARTFILE_SPEC): Split crt3 into a separate spec.
13815 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13816 (DARWIN_CRT2_SPEC): New.
13817 (DARWIN_CRT3_SPEC): New.
13818 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13819 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13820 (DARWIN_CRT3_SPEC): New.
13821
13822 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13823
13824 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13825 Change the RTL attribute "length" from "4" to "*" to allow the
13826 length attribute to be adjusted automatically for prefixed load,
13827 store, and add immediate instructions.
13828 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13829 Likewise.
13830 (extendsi<mode>2, EXTSI iterator): Likewise.
13831 (movsi_internal1): Likewise.
13832 (movsi_from_sf): Likewise.
13833 (movdi_from_sf_zero_ext): Likewise.
13834 (mov<mode>_internal): Likewise.
13835 (movcc_internal1, QHI iterator): Likewise.
13836 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13837 (movsf_from_si): Likewise.
13838 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13839 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13840 (mov<mode>, FMOVE128 iterator): Likewise.
13841 (movdi_internal64): Likewise.
13842 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13843 Likewise.
13844 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13845 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13846 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13847 (vsx_splat_v4sf): Likewise.
13848
13849 2019-07-03 Mark Wielaard <mark@klomp.org>
13850
13851 PR debug/90981
13852 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13853 DW_AT_addr_base if there is actually a .debug_addr section with
13854 addresses.
13855 (output_addr_table): Add DWARF5 table header generation here after
13856 checking there are actually any addresses from...
13857 (dwarf2out_finish): ...here.
13858
13859 2019-07-03 Richard Biener <rguenther@suse.de>
13860
13861 PR middle-end/91069
13862 * match.pd (vec_perm -> bit_insert): Fix element read from
13863 first vector.
13864
13865 2019-07-03 Martin Liska <mliska@suse.cz>
13866
13867 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13868 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13869 condition.
13870 * generic-match-head.c: Include dbgcnt.h.
13871 * gimple-match-head.c: Likewise.
13872
13873 2019-07-03 Martin Liska <mliska@suse.cz>
13874
13875 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13876 (GCOV_COUNTER_V_TOPN): New.
13877 (GCOV_COUNTER_V_INDIR): Use _topn.
13878 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13879 (GCOV_TOPN_VALUES): New.
13880 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13881 (GCOV_TOPN_VALUES_COUNTERS): New.
13882 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13883 * tree-profile.c:
13884 (gimple_init_gcov_profiler): Rename variables from one_value
13885 to topn_values.
13886 (gimple_gen_one_value_profiler): Remove.
13887 (gimple_gen_topn_values_profiler): New function.
13888 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13889 names instead of SINGLE_VALUE.
13890 (stream_out_histogram_value): Likewise.
13891 (stream_in_histogram_value): Likewise.
13892 (get_most_common_single_value): Likewise.
13893 (gimple_divmod_fixed_value_transform): Likewise.
13894 (gimple_stringops_transform): Likewise.
13895 (gimple_divmod_values_to_profile): Likewise.
13896 (gimple_stringops_values_to_profile): Likewise.
13897 (gimple_find_values_to_profile): Likewise.
13898 * value-prof.h (enum hist_type): Rename to TOPN.
13899 (gimple_gen_one_value_profiler): Remove.
13900 (gimple_gen_topn_values_profiler): New.
13901
13902 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13903
13904 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13905 if it has the DW_AT_data_member_location attribute.
13906
13907 2019-07-03 Richard Biener <rguenther@suse.de>
13908
13909 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13910 dumping.
13911
13912 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13913
13914 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13915 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13916 (tlsdesc_small_sve_<mode>): Likewise.
13917
13918 2019-07-03 Martin Liska <mliska@suse.cz>
13919
13920 * Makefile.in: Define ZSTD_LIB.
13921 * common.opt: Adjust compression level
13922 to support also zstd levels.
13923 * config.in: Regenerate.
13924 * configure: Likewise.
13925 * configure.ac: Add --with-zstd and --with-zstd-include options
13926 and detect ZSTD.
13927 * doc/install.texi: Mention zstd dependency.
13928 * gcc.c: Print supported LTO compression algorithms.
13929 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13930 (lto_compression_zstd): Likewise.
13931 (lto_uncompression_zstd): Likewise.
13932 (lto_end_compression): Dispatch in between zlib and zstd.
13933 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13934 (lto_uncompression_zlib): Make it static.
13935 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13936 * lto-section-in.c (lto_get_section_data): Pass info
13937 about used compression.
13938 * lto-streamer-out.c: By default use zstd when possible.
13939 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13940 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13941
13942 2019-07-03 Martin Liska <mliska@suse.cz>
13943
13944 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13945 * lto-section-out.c (lto_destroy_simple_output_block): Never
13946 compress LTO_section_lto section.
13947 * lto-streamer-out.c (produce_asm): Do not set major_version
13948 and minor_version.
13949 (lto_output_toplevel_asms): Likewise.
13950 (produce_lto_section): New function.
13951 (lto_output): Call produce_lto_section.
13952 (lto_write_mode_table): Do not set major_version and
13953 minor_version.
13954 (produce_asm_for_decls): Likewise.
13955 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13956 type.
13957 (struct lto_header): Remove.
13958 (struct lto_section): New struct.
13959 (struct lto_simple_header): Do not inherit from lto_header.
13960 (struct lto_file_decl_data): Add lto_section_header field.
13961
13962 2019-07-03 Martin Liska <mliska@suse.cz>
13963
13964 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13965 dead assignemts.
13966 * reg-stack.c (check_asm_stack_operands): Likewise.
13967 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13968 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13969 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13970 force_expand_binop.
13971
13972 2019-07-03 Martin Liska <mliska@suse.cz>
13973
13974 PR tree-optimization/90892
13975 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13976 in string constants.
13977
13978 2019-07-03 Martin Liska <mliska@suse.cz>
13979
13980 PR middle-end/90899
13981 * multiple_target.c (create_dispatcher_calls): Add to comdat
13982 group only if set for ifunc.
13983
13984 2019-07-03 Martin Liska <mliska@suse.cz>
13985
13986 PR target/88056
13987 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13988 Define local_object_name in outer scope in order to handle
13989 use-after-scope issue.
13990
13991 2019-07-03 Martin Liska <mliska@suse.cz>
13992
13993 * common.opt: Add fprofile-note.
13994 * coverage.c (coverage_init): Append the option
13995 to bbg_file_name.
13996 * doc/invoke.texi: Document -fprofile-note.
13997
13998 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13999
14000 PR tree-optimization/91033
14001 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14002 vect_analyze_data_refs): Add bool * arguments.
14003 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14004 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14005 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14006 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14007 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14008 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14009 vect_analyze_data_refs caller.
14010
14011 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14012 clause.
14013 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14014 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14015 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14016 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14017 OMP_CLAUSE__SCANTEMP_ entry.
14018 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14019 * tree-pretty-print.c (dump_omp_clause): Likewise.
14020 * tree-nested.c (convert_nonlocal_omp_clauses,
14021 convert_local_omp_clauses): Likewise.
14022 * omp-general.h (struct omp_for_data): Add have_scantemp and
14023 have_nonctrl_scantemp members.
14024 * omp-general.c (omp_extract_for_data): Initialize them.
14025 * omp-low.c (struct omp_context): Add scan_exclusive member.
14026 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14027 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14028 ctx->scan_exclusive.
14029 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14030 of !ctx->scan_inclusive.
14031 (lower_rec_input_clauses): Simplify gimplification of dtors using
14032 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14033 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14034 loops. Don't add barrier for reduction_omp_orig_ref if
14035 ctx->scan_??xclusive.
14036 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14037 (lower_omp_scan): Use ctx->scan_exclusive instead
14038 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14039 reductions. Use new_vard != new_var instead of repeated
14040 omp_is_reference calls.
14041 (omp_find_scan, lower_omp_for_scan): New functions.
14042 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14043 inscan reductions.
14044 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14045 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14046 and fd->have_scantemp.
14047
14048 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14049 on worksharing loop propagate it as shared clause to containing
14050 combined parallel.
14051
14052 * omp-expand.c (expand_omp_for_static_nochunk,
14053 expand_omp_for_static_chunk): For nowait worksharing loop with
14054 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14055 at the end.
14056
14057 2019-07-02 qing zhao <qing.zhao@oracle.com>
14058
14059 PR preprocessor/90581
14060 * doc/cppopts.texi: Add document for -fmax-include-depth.
14061 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14062
14063 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14064
14065 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14066 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14067 (mmx_packssdw): Ditto.
14068 (mmx_punpckhbw): Ditto.
14069 (mmx_punpcklbw): Ditto.
14070 (mmx_punpckhwd): Ditto.
14071 (mmx_punpcklwd): Ditto.
14072 (mmx_punpckhdq): Ditto.
14073 (mmx_punpckldq): Ditto.
14074 (*vec_dupv4hi): Ditto.
14075 (*vec_dupv2si): Ditto.
14076 (mmx_pmovmskb): Ditto.
14077 * config/i386/sse.md (sse_cvtpi2ps): Use
14078 TARGET_SSE2 && SSE_REG_P in split condition.
14079 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14080 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14081 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14082 (ssse3_pshufbv8qi3): Ditto.
14083 (ssse3_palignrdi): Ditto.
14084
14085 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14086
14087 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14088 with inlined save and restore.
14089
14090 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14091
14092 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14093 to be inserted on single successor edge of the entry block. Then call
14094 commit_edge_insertions instead of inserting the instructions manually.
14095 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14096 RTL expansion and rebuild jump labels chain.
14097
14098 2019-07-02 Richard Biener <rguenther@suse.de>
14099
14100 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14101 TI_CHREC_KNOWN.
14102 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14103 Define here.
14104 * tree.c (build_common_tree_nodes): Initialize them.
14105 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14106 Make declarations comments.
14107 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14108 chrec_known): Remove definitions.
14109 (initialize_scalar_evolutions_analyzer): Remove.
14110 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14111 * tree-streamer.c (preload_common_nodes): Do not preload
14112 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14113
14114 2019-07-02 Jan Hubicka <jh@suse.cz>
14115
14116 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14117 sanity check.
14118
14119 2019-07-02 Jan Hubicka <jh@suse.cz>
14120
14121 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14122 to ..
14123 (nonoverlapping_component_refs_since_match_p): ... this one;
14124 handle also non-decl bases; return -1 if search gave up.
14125 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14126 nonoverlapping_component_refs_of_decl_p_no_alias to
14127 nonoverlapping_component_refs_since_match_p_may_alias,
14128 nonoverlapping_component_refs_since_match_p_no_alias.
14129 (dump_alias_stats): Update dumping.
14130 (aliasing_matching_component_refs_p): Break out from ...;
14131 dispatch to nonoverlapping_component_refs_for_decl_p
14132 and nonoverlapping_component_refs_since_match_p.
14133 (aliasing_component_refs_p): ... here; call
14134 nonoverlapping_component_refs_p in scenarios where we can not
14135 precisely determine base match.
14136 (decl_refs_may_alias_p): Use
14137 nonoverlapping_component_refs_since_match_p.
14138 (indirect_ref_may_alias_decl_p): Do not call
14139 nonoverlapping_component_refs_p.
14140 (indirect_refs_may_alias_p): Likewise.
14141
14142 2019-07-02 Jan Hubicka <jh@suse.cz>
14143
14144 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14145 to clobber of return value.
14146
14147 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14148
14149 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14150 for is_neon_type instructions that have not already been categorized.
14151
14152 2019-07-02 Richard Biener <rguenther@suse.de>
14153
14154 PR tree-optimization/58483
14155 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14156 for MEM_REF base hashing.
14157 (equal_mem_array_ref_p): Likewise for base comparison.
14158
14159 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14160
14161 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14162 parameterized name.
14163 (signbit<mode>2): Use that name. Simplify.
14164
14165 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14166
14167 PR middle-end/66726
14168 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14169 Tune heuristic from PR71016 to allow MIN / MAX.
14170
14171 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14172
14173 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14174 parameterized name.
14175 (abs<mode>2): Use that name. Simplify.
14176
14177 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14178
14179 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14180 parameterized name.
14181 (neg<mode>2): Use that name. Simplify.
14182
14183 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14184
14185 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14186 name.
14187 (abs<mode>2): Use that name. Simplify.
14188
14189 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14190
14191 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14192 name.
14193 (neg<mode>2): Use that name. Simplify.
14194
14195 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14196
14197 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14198 ("enabled" attribute): Handle sse_noavx isa attribute.
14199 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14200 Use TARGET_SSE && SSE_REGNO_P in split condition.
14201 (*vec_dupv2sf): Ditto.
14202
14203 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14204
14205 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14206 name.
14207 (floatsi<mode>2): Use that name. Simplify.
14208
14209 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14210
14211 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14212 parameterized name.
14213 (extenddf<mode>2_vsx): Make this a parameterized name.
14214 (extenddf<mode>2): Use those names. Simplify.
14215
14216 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14217
14218 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14219 name.
14220 (eh_return): Use that name. Simplify.
14221
14222 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14223
14224 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14225 (doloop_end): Use that name. Simplify.
14226
14227 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14228
14229 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14230 parameterized name.
14231 (indirect_jump): Use that name. Simplify.
14232
14233 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14234
14235 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14236 parameterized name.
14237 (abs<mode>2): Use that name. Simplify.
14238
14239 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14240
14241 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14242 parameterized name.
14243 (fix_trunc<mode>si2): Use that name. Simplify.
14244
14245 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14246
14247 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14248 (allocate_stack): Use that name. Simplify.
14249
14250 2019-07-01 Martin Sebor <msebor@redhat.com>
14251
14252 PR middle-end/90923
14253 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14254 (hash_map::get_or_insert): Same. Reformat comment.
14255 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14256 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14257 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14258 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14259 (hash_table::hash_table (const hash_table&)): Use copy ctor
14260 instead of assignment to copy elements.
14261
14262 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14263 John David Anglin <danglin@gcc.gnu.org>
14264
14265 PR target/90963
14266 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14267 using saved frame pointer.
14268
14269 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14270
14271 PR middle-end/64242
14272 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14273 Add frame clobber and schedule blockage.
14274
14275 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14276
14277 * doc/invoke.texi (Link Options): Further editorial changes to
14278 -flinker-output docs.
14279
14280 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14281
14282 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14283 Load both operands of a PLUS into registers separately.
14284
14285 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14286
14287 * config/s390/vector.md: Fix shift count operand printing.
14288
14289 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14290
14291 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14292
14293 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14294
14295 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14296 Use recog_data to test for an output operand.
14297
14298 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14299
14300 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14301 exclude any others that are disparaged or that are bound to need
14302 a reload or spill.
14303 (ira_get_dup_out_num): Expand comment.
14304
14305 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14306
14307 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14308 constraint string for each operand/alternative combo. Only handle
14309 '%' at the start of constraint strings, and look for it outside
14310 the main loop.
14311
14312 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14313
14314 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14315 alternative_mask instead of HARD_REG_SET to represent a
14316 bitmask of alternatives.
14317 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14318 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14319
14320 2019-07-01 Martin Liska <mliska@suse.cz>
14321
14322 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14323 use () for a constructor call.
14324 (test_applying_fixits_line_out_of_range): Likewise.
14325 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14326 argument.
14327 (free_page): Likewise.
14328
14329 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14330
14331 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14332 parameter names to match usage (no functional change).
14333 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14334
14335 2019-07-01 Richard Biener <rguenther@suse.de>
14336
14337 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14338 pass parameter.
14339 (pass_fre::execute): Honor it.
14340 * passes.def: Adjust pass_fre invocations to allow iterating,
14341 add non-iterating pass_fre before late threading/dom.
14342
14343 2019-07-01 Richard Biener <rguenther@suse.de>
14344
14345 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14346 TARGET_MEM_REF handling to also handle address-taken ones.
14347
14348 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14349
14350 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14351 hardware attributes): Document avx512vp2intersect.
14352
14353 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14354
14355 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14356 (abs<mode>2): New expander.
14357 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14358 Use CODE_FOR_ssse3_absv8qi2.
14359 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14360 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14361
14362 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14363
14364 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14365 to sse, sse_noavx and avx. Update all uses.
14366
14367 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14368
14369 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14370 (*mmx_<plusminus_insn><mode>3): Ditto.
14371 (*mmx_mulv4hi3"): Ditto.
14372 (*mmx_smulv4hi3_highpart): Ditto.
14373 (*mmx_umulv4hi3_highpart): Ditto.
14374 (*mmx_pmaddwd): Ditto.
14375 (*sse2_umulv1siv1di3): Ditto.
14376 (*mmx_<code>v4hi3): Ditto.
14377 (*mmx_<code>v8qi3): Ditto.
14378 (mmx_ashr<mode>3): Ditto.
14379 ("mmx_<shift_insn><mode>3): Ditto.
14380 (*mmx_eq<mode>3): Ditto.
14381 (mmx_gt<mode>3): Ditto.
14382 (mmx_andnot<mode>3): Ditto.
14383 (*mmx_<code><mode>3): Ditto.
14384 (*mmx_pinsrw): Ditto.
14385 (*mmx_pextrw): Ditto.
14386 (mmx_pshufw_1): Ditto.
14387 (*mmx_uavgv8qi3): Ditto.
14388 (*mmx_uavgv4hi3): Ditto.
14389 ("mmx_psadbw): Ditto.
14390 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14391 (sse_cvttps2pi): Ditto.
14392 (ssse3_pmaddubsw): Ditto.
14393 (*ssse3_pmulhrswv4hi3): Ditto.
14394 (ssse3_psign<mode>3): Ditto.
14395
14396 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14397
14398 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14399 adjustment for bit-fields to all aggregate types.
14400
14401 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14402
14403 * config/rs6000/predicates.md (pcrel_address): Use
14404 SYMBOL_REF_LOCAL_P to determine if a label is local.
14405 (pcrel_external_address): New predicate.
14406 (non_prefixed_mem_operand): Delete, predicate not used.
14407 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14408 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14409 addressing.
14410 (SYMBOL_REF_PCREL_P): Likewise.
14411
14412 PR target/91009
14413 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14414 alternative.
14415 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14416 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14417 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14418
14419 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14420
14421 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14422 override on extra_headers.
14423
14424 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14425
14426 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14427 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14428 from warning.
14429 (darwin_driver_init): Likewise.
14430
14431 2019-06-28 Jan Beulich <jbeulich@suse.com>
14432
14433 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14434 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14435 Eliminate redundant alternative.
14436
14437 2019-06-28 Jan Beulich <jbeulich@suse.com>
14438
14439 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14440 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14441 Use vector_operand.
14442
14443 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14444
14445 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14446 having a lower cost regardless of the speed option.
14447
14448 2019-06-28 Jan Beulich <jbeulich@suse.com>
14449
14450 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14451 vector_operand plus, on both alternatives, "Bm" constraint.
14452
14453 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14454
14455 * config/arm/arm.md: Remove redundant constraints from
14456 define_expand but leave reload_inm and reload_outm patterns
14457 untouched since they need special constraints to work.
14458 * config/arm/arm-fixed.md: Remove redundant constraints from
14459 define_expand.
14460 * config/arm/iwmmxt.md: Likewise.
14461 * config/arm/neon.md: Likewise.
14462 * config/arm/sync.md: Likewise.
14463 * config/arm/thumb1.md: Likewise.
14464 * config/arm/vec-common.md: Likewise.
14465
14466 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14467
14468 * doc/install.texi: Document --disable-tm-clone-registry.
14469
14470 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14471
14472 PR c++/91024
14473 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14474 statements.
14475
14476 PR tree-optimization/91010
14477 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14478 return true. Otherwise, don't call operand_equal_p if offset1 or
14479 offset2 is NULL and just return false.
14480
14481 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14482
14483 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14484 user-specified float mode choice for kernel mode code.
14485
14486 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14487
14488 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14489 spec.
14490
14491 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14492
14493 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14494 use longcall for 64b code.
14495
14496 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14497
14498 * builtins.c (get_memory_rtx): Fix comment.
14499 * optabs.def (movmem_optab): Change to cpymem_optab.
14500 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14501 (emit_block_move_hints): Change movmem to cpymem.
14502 * defaults.h: Change movmem to cpymem.
14503 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14504 (default_use_by_pieces_infrastructure_p): Ditto.
14505 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14506 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14507 to cpymem.
14508 * config/aarch64/aarch64.h: Change movmem to cpymem.
14509 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14510 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14511 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14512 movmem to cpymem.
14513 * config/arc/arc-protos.h: Change movmem to cpymem.
14514 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14515 * config/arc/arc.h: Change movmem to cpymem in comment.
14516 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14517 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14518 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14519 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14520 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14521 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14522 * config/avr/avr-protos.h: Change movmem to cpymem.
14523 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14524 avr_out_movmem): Change movmem to cpymem.
14525 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14526 Change movmem to cpymem.
14527 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14528 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14529 Change movmem to cpymem.
14530 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14531 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14532 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14533 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14534 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14535 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14536 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14537 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14538 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14539 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14540 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14541 expand_small_cpymem_or_setmem,
14542 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14543 expand_set_or_cpymem_constant_prologue,
14544 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14545 * config/i386/i386-protos.h: Change movmem to cpymem.
14546 * config/i386/i386.h: Change movmem to cpymem in comment.
14547 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14548 (setmem<mode>): Change expansion function name.
14549 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14550 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14551 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14552 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14553 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14554 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14555 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14556 to cpymem.
14557 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14558 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14559 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14560 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14561 Change movmem to cpymem.
14562 * config/mips/mips.h: Change movmem to cpymem.
14563 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14564 * config/nds32/nds32-memory-manipulation.c
14565 (nds32_expand_movmemsi_loop_unknown_size,
14566 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14567 nds32_expand_movmemsi_unroll,
14568 nds32_expand_movmemsi): Change movmem to cpymem.
14569 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14570 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14571 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14572 (pa_adjust_insn_length): Change call to compute_movmem_length.
14573 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14574 movmemdi, movmemdi_prereload,
14575 movmemdi_postreload): Change movmem to cpymem.
14576 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14577 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14578 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14579 * config/riscv/riscv.h: Change movmem to cpymem.
14580 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14581 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14582 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14583 movmem to cpymem.
14584 * config/s390/s390-protos.h: Change movmem to cpymem.
14585 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14586 s390_expand_insv): Change movmem to cpymem.
14587 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14588 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14589 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14590 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14591 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14592 for nonexistent function.
14593 * config/vax/vax.h: Change movmem to cpymem in comment.
14594 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14595 * config/visium/visium.h: Change movmem to cpymem in comment.
14596 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14597 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14598 * doc/md.texi: Change movmem to cpymem and update description to match.
14599 * doc/rtl.texi: Change movmem to cpymem.
14600 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14601 * doc/tm.texi: Regenerate.
14602
14603 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14604
14605 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14606 -fvariable-expansion-in-unroller by default.
14607 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14608 default for Power.
14609
14610 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14611
14612 Revert
14613 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14614 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14615
14616 * config.gcc(rs6000-*-*): Define target_gtfiles.
14617
14618 2019-06-27 Jan Hubicka <jh@suse.cz>
14619
14620 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14621 (add_type_duplicate): When odr hash is not allocated, to nothing.
14622 (odr_based_tbaa_p): New function.
14623 (set_type_canonical_for_odr_type): New function.
14624 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14625 set_type_canonical_for_odr_type): New.
14626 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14627 ODR based TBAA are not equivalent to non-ODR types.
14628
14629 2019-06-27 Martin Liska <mliska@suse.cz>
14630
14631 PR tree-optimization/90974
14632 PR rtl-optimization/90975
14633 PR rtl-optimization/90976
14634 PR target/91016
14635 PR tree-optimization/91017
14636 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14637 unused tmp.
14638 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14639 initial commit of IRA.
14640 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14641 of op0 and op1.
14642 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14643 Remove unused mode1.
14644 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14645 to new_stmt_info.
14646
14647 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14648
14649 PR target/90991
14650 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14651 instead of register_operand for operands[1], add m to its constraints
14652 if operands[2] uses "C" constraint. Ensure in condition that if
14653 operands[2] is not 0, then operands[1] is not a MEM. For last two
14654 alternatives, use unaligned loads instead of aligned if operands[1] is
14655 misaligned_operand.
14656
14657 2019-06-27 Martin Liska <mliska@suse.cz>
14658
14659 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14660 dead assignments.
14661 * bt-load.c (move_btr_def): Likewise.
14662 * builtins.c (expand_builtin_apply_args_1): Likewise.
14663 (expand_builtin_apply): Likewise.
14664 * cfgexpand.c (expand_asm_stmt): Likewise.
14665 (construct_init_block): Likewise.
14666 * cfghooks.c (verify_flow_info): Likewise.
14667 * cfgloopmanip.c (remove_path): Likewise.
14668 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14669 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14670 * combine.c (simplify_if_then_else): Likewise.
14671 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14672 (choose_basereg): Likewise.
14673 (ix86_expand_prologue): Likewise.
14674 (ix86_preferred_output_reload_class): Likewise.
14675 * cselib.c (cselib_record_sets): Likewise.
14676 * df-scan.c (df_scan_alloc): Likewise.
14677 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14678 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14679 * emit-rtl.c (try_split): Likewise.
14680 * graphite-scop-detection.c (assign_parameter_index_in_region):
14681 Likewise.
14682 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14683 * ira-color.c (setup_profitable_hard_regs): Likewise.
14684 * ira.c (rtx_moveable_p): Likewise.
14685 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14686 * read-rtl.c (read_subst_mapping): Likewise.
14687 * regrename.c (scan_rtx): Likewise.
14688 * reorg.c (fill_slots_from_thread): Likewise.
14689 * tree-inline.c (tree_function_versioning): Likewise.
14690 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14691 * tree-ssa-sink.c (statement_sink_location): Likewise.
14692 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14693 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14694 (vect_create_epilog_for_reduction): Likewise.
14695 * tree.c (build_nonstandard_integer_type): Likewise.
14696
14697 2019-06-27 Richard Biener <rguenther@suse.de>
14698
14699 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14700
14701 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14702
14703 PR tree-optimization/89772
14704 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14705 out-of-bound accesses checking.
14706
14707 2019-06-27 Martin Liska <mliska@suse.cz>
14708
14709 PR tree-optimization/91014
14710 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14711 when LHS is NULL_TREE.
14712
14713 2019-06-27 Martin Liska <mliska@suse.cz>
14714
14715 * symbol-summary.h (traverse): Pass
14716 argument a to the call of callback.
14717 (gt_ggc_mx): Mark arguments as unused.
14718 (gt_pch_nx): Likewise.
14719
14720 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14721
14722 PR target/62147
14723 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14724 finiteness.
14725
14726 2019-06-26 Jeff Law <law@redhat.com>
14727
14728 PR tree-optimization/90883
14729 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14730 (delete_dead_or_redundant_assignment): Likewise.
14731
14732 PR tree-optimization/90883
14733 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14734 * tree-ssa-dse.c: Update various comments to distinguish between
14735 dead and redundant stores.
14736 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14737 (dse_optimize_redundant_stores): New function.
14738 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14739 Distinguish between dead and redundant calls in dump output. All
14740 callers updated.
14741 (delete_dead_or_redundant_assignment): Similarly for assignments.
14742 (dse_optimize_stmt): Handle _CHK variants. For statements which
14743 store 0 into multiple memory locations, try to prove a subsequent
14744 store is redundant.
14745
14746 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14747
14748 PR target/89021
14749 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14750 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14751
14752 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14753
14754 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14755 (branch_islands): New extern.
14756 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14757 * config/rs6000/rs6000.c: .. here.
14758
14759 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14760
14761 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14762 (powerpc*-*-*) ... to here.
14763
14764 2019-06-26 Jeff Law <law@redhat.com>
14765
14766 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14767 memcpy, memmove and memset builtins.
14768 (maybe_trim_memstar_call): Likewise.
14769
14770 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14771
14772 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14773
14774 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14775
14776 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14777
14778 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14779
14780 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14781 declaration.
14782 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14783 "static".
14784 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14785 declaration.
14786
14787 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14788
14789 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14790
14791 2019-06-26 Richard Biener <rguenther@suse.de>
14792
14793 PR ipa/90982
14794 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14795
14796 2019-06-26 Richard Biener <rguenther@suse.de>
14797
14798 * lto-streamer.h (lto_bitmap_alloc): Remove.
14799 (lto_bitmap_free): Likewise.
14800 * lto-streamer.c (lto_bitmap_alloc): Remove.
14801 (lto_bitmap_free): Likewise.
14802 (lto_obstack): Likewise.
14803 (lto_obstack_initialized): Likewise.
14804 * lto-streamer-out.c (lto_output): Use own obstack for local
14805 bitmap, free it consistently.
14806
14807 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14808
14809 PR target/90991
14810 * config/i386/sse.md
14811 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14812 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14813 insns if operands[2] is misaligned_operand.
14814
14815 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14816
14817 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14818 TARGET_POWERPC64.
14819 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14820 to GPR.
14821
14822 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14823
14824 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14825
14826 2019-06-26 Martin Liska <mliska@suse.cz>
14827
14828 PR tree-optimization/90973
14829 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14830 epilogue_cost_vec instead of prologue_cost_vec for
14831 a epilogue cost.
14832
14833 2019-06-26 Martin Liska <mliska@suse.cz>
14834
14835 * bb-reorder.c (connect_better_edge_p): Add missing else
14836 statement in the middle of if-else statements.
14837
14838 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14839 H.J. Lu <hongjiu.lu@intel.com>
14840 Olga Makhotina <olga.makhotina@intel.com>
14841
14842 * common/config/i386/i386-common.c
14843 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14844 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14845 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14846 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14847 (ix86_handle_option): Handle -mavx512vp2intersect.
14848 * config/i386/avx512vp2intersectintrin.h: New.
14849 * config/i386/avx512vp2intersectvlintrin.h: New.
14850 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14851 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14852 AVX512VP2INTERSECT.
14853 * config/i386/i386-builtin-types.def: Add new types.
14854 * config/i386/i386-builtin.def: Add new builtins.
14855 * config/i386/i386-builtins.c: (enum processor_features): Add
14856 F_AVX512VP2INTERSECT.
14857 (static const _isa_names_table isa_names_table): Ditto.
14858 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14859 __AVX512VP2INTERSECT__.
14860 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14861 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14862 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14863 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14864 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14865 * config/i386/i386-options.c (ix86_target_string): Add
14866 -mavx512vp2intersect.
14867 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14868 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14869 P2HImode and P2QImode.
14870 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14871 number for P2QImode and P2HImode.
14872 (ix86_regmode_natural_size): New function.
14873 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14874 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14875 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14876 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14877 * config/i386/i386.opt: Add -mavx512vp2intersect.
14878 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14879 avx512vp2intersectvlintrin.h.
14880 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14881 (define_mode_iterator VI48_AVX512VP2VL): New.
14882 (avx512vp2intersect_2intersect<mode>,
14883 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14884 * config.gcc: Add avx512vp2intersectvlintrin.h and
14885 avx512vp2intersectintrin.h to extra_headers.
14886 * doc/invoke.texi: Document -mavx512vp2intersect.
14887
14888 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14889
14890 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14891
14892 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14893
14894 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14895 savres_routine_syms, savres_routine_name, morestack_ref,
14896 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14897 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14898 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14899 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14900 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14901 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14902 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14903 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14904 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14905 get_stack_clash_protection_probe_interval,
14906 get_stack_clash_protection_guard_size,
14907 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14908 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14909 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14910 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14911 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14912 gen_frame_mem_offset, rs6000_savres_routine_name,
14913 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14914 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14915 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14916 rs6000_global_entry_point_prologue_needed_p,
14917 rs6000_get_separate_components, rs6000_components_for_bb,
14918 rs6000_disqualify_components, rs6000_emit_prologue_components,
14919 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14920 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14921 rs6000_output_savres_externs, rs6000_output_function_prologue,
14922 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14923 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14924 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14925 rs6000_output_function_epilogue, gen_add3_const,
14926 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14927 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14928 to rs6000-logue.c.
14929 (machine_function): Moved to rs6000.h.
14930 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14931 rs6000-internal.h.
14932 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14933 savres_routine_syms, savres_routine_name, morestack_ref,
14934 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14935 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14936 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14937 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14938 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14939 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14940 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14941 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14942 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14943 get_stack_clash_protection_probe_interval,
14944 get_stack_clash_protection_guard_size,
14945 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14946 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14947 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14948 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14949 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14950 gen_frame_mem_offset, rs6000_savres_routine_name,
14951 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14952 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14953 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14954 rs6000_global_entry_point_prologue_needed_p,
14955 rs6000_get_separate_components, rs6000_components_for_bb,
14956 rs6000_disqualify_components, rs6000_emit_prologue_components,
14957 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14958 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14959 rs6000_output_savres_externs, rs6000_output_function_prologue,
14960 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14961 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14962 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14963 rs6000_output_function_epilogue, gen_add3_const,
14964 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14965 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14966 to here from rs6000.c.
14967 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14968 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14969 quad_address_offset_p) Moved to here from rs6000.c.
14970 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14971 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14972 collector.
14973
14974 2019-06-25 Martin Liska <mliska@suse.cz>
14975
14976 * hash-table.c (hashtab_chk_error): Move here from ...
14977 * hash-table.h (hashtab_chk_error): ... here.
14978
14979 2019-06-25 Martin Liska <mliska@suse.cz>
14980
14981 PR tree-optimization/90978
14982 * df-scan.c (df_update_entry_block_defs): Remove dead else
14983 branch.
14984 (df_update_exit_block_uses): Likewise.
14985
14986 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14987 Andrew Stubbs <ams@codesourcery.com>
14988
14989 * config.gcc (thread_file): Set to gcn for AMD GCN.
14990 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14991 (TARGET_EMUTLS_VAR_INIT): New hook.
14992
14993 2019-06-25 Martin Jambor <mjambor@suse.cz>
14994
14995 PR ipa/90939
14996 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14997
14998 2019-06-25 Richard Biener <rguenther@suse.de>
14999
15000 PR tree-optimization/90930
15001 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15002 into parallel form in the last pass instance.
15003
15004 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15005
15006 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15007 (arc_legitimize_pic_address): Simplify and cleanup the function.
15008 (SYMBOLIC_CONST): Remove.
15009 (prepare_pic_move): Likewise.
15010 (prepare_move_operands): Handle complex mov cases here.
15011 (arc_legitimize_address_0): Remove call to
15012 arc_legitimize_pic_address.
15013 (arc_legitimize_address): Remove call to
15014 arc_legitimize_tls_address.
15015 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15016 (movhi_insn): Likewise.
15017
15018 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15019
15020 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15021 PTRDIFF_TYPE.
15022 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15023 format of "__intN" types for UINTMAX_TYPE.
15024 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15025 format of "__intN" types for SIZETYPE.
15026 * tree.c (build_common_tree_nodes): Accept "__intN__"
15027 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15028 * doc/invoke.texi: Document that __intN__ disables pedantic
15029 warnings.
15030
15031 2019-06-25 Jan Hubicka <jh@suse.cz>
15032
15033 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15034 base2_alias_set is non-zero before doing TBAA based disambiguation.
15035
15036 2019-06-25 Martin Liska <mliska@suse.cz>
15037
15038 PR tree-optimization/90973
15039 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15040 of prologue and epilogue.
15041
15042 2019-06-24 Jan Hubicka <jh@suse.cz>
15043
15044 * ipa-utils.h (type_with_linkage_p): Verify that type is
15045 CXX_ODR_P.
15046 (odr_type_p): Remove extra return.
15047 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15048 hash STRING_FLAG only for arrays and integers.
15049 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15050 Update analogously.
15051 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15052 Likewise.
15053 * print-tree.c (print_node): Print cxx-odr-p
15054 and string-flag.
15055 * tree.c (need_assembler_name_p): Also check that type
15056 is CXX_ODR_TYPE_P
15057 (verify_type_variant): Update verification of SRING_FLAG;
15058 also check CXX_ODR_P.
15059 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15060 (TYPE_STRING_FLAG): Use it.
15061 (TYPE_CXX_ODR_P): New macro.
15062 * dwarf2out.c (gen_array_type_die): First check that type
15063 is an array and then test string flag.
15064
15065 2019-06-24 Richard Biener <rguenther@suse.de>
15066
15067 PR tree-optimization/90972
15068 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15069 in common code, dealing with STRING_CST properly.
15070
15071 2019-06-24 Richard Biener <rguenther@suse.de>
15072
15073 PR tree-optimization/90930
15074 PR tree-optimization/90316
15075 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15076 decrement of limit.
15077
15078 2019-06-24 Martin Sebor <msebor@redhat.com>
15079
15080 * tree-pretty-print.h: Remove unnecessary punctuation characters
15081 from a diagnostic.
15082 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15083
15084 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15085
15086 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15087 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15088 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15089
15090 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15091
15092 * config/rs6000/darwin.h: Handle GCC target pragma.
15093
15094 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15095
15096 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15097
15098 2019-06-22 Jeff Law <law@redhat.com>
15099
15100 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15101
15102 2019-06-22 Jan Hubicka <jh@suse.cz>
15103
15104 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15105 give up on bitfields; continue searching for different refs
15106 appearing later.
15107
15108 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15109
15110 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15111 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15112 containing the offset as possible simd lane access. Look through
15113 widening conversion. Move the
15114 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15115
15116 2019-06-21 Richard Biener <rguenther@suse.de>
15117
15118 PR tree-optimization/90930
15119 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15120 flag on new stmts to avoid re-processing them.
15121
15122 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15123
15124 PR c++/90875 - added -Wswitch-outside-range option
15125 * doc/invoke.texi (Wswitch-outside-range): Document.
15126
15127 2019-06-21 Jeff Law <law@redhat.com>
15128
15129 PR tree-optimization/90949
15130 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15131 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15132
15133 2019-06-21 Richard Biener <rguenther@suse.de>
15134
15135 PR debug/90914
15136 * dwarf2out.c (prune_unused_types_walk): Always consider
15137 function-local extern declarations as used.
15138
15139 2019-06-21 Richard Biener <rguenther@suse.de>
15140
15141 PR tree-optimization/90913
15142 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15143 the scalar variant of if-conversion versioning.
15144
15145 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15146
15147 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15148 create another "omp scan inscan exclusive" array if
15149 !ctx->scan_inclusive.
15150 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15151 (lower_omp_scan): Likewise.
15152 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15153 2-bit bitfield for simd_lane_access_p member.
15154 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15155 aux == (void *)-4 as simd lane access.
15156 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15157 comment with permutations to show the canonical permutation order.
15158 (vectorizable_scan_store): Handle exclusive scan.
15159 (vectorizable_store): Call vectorizable_scan_store even for
15160 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15161
15162 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15163 "omp simd array" arrays with one byte elements.
15164
15165 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15166
15167 * config/alpha/alpha.md (@unaligned_store<mode>):
15168 Rename from unaligned_store<mode>.
15169 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15170 * config/alpha/sync.md (@load_locked_<mode>): Rename
15171 from load_locked_<mode>.
15172 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15173 (@atomic_compare_and_swap<mode>_1): Rename
15174 from atomic_compare_and_swap<mode>_1.
15175 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15176 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15177 Use gen_reload_in_aligned and gen_unaligned_store.
15178 (emit_load_locked): Remove.
15179 (emit_store_conditional): Ditto.
15180 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15181 (alpha_split_compare_and_swap): Ditto.
15182 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15183 (alpha_split_compare_and_swap_12): Use gen_load_locked
15184 and gen_store_conditional.
15185 (alpha_split_atomic_exchange): Ditto.
15186 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15187 (alpha_split_atomic_exchange_12): Use gen_load_locked
15188 and gen_store_conditional.
15189
15190 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15191
15192 * config/aarch64/aarch64-errata.h: New file.
15193 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15194 (CA53_ERR_843419_SPEC): Delete.
15195 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15196 * config/aarch64/aarch64-linux.h: Likewise.
15197 * config/aarch64/aarch64-netbsd.h: Likewise.
15198 * config/aarch64/aarch64-freebsd.h: Likewise.
15199
15200 2019-06-20 Marek Polacek <polacek@redhat.com>
15201
15202 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15203
15204 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15205
15206 * config/rs6000/rs6000.md (isa attribute): Add support for
15207 for a future processor.
15208
15209 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15210
15211 PR target/54855
15212 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15213 standard scalar operation pattern for V2DF.
15214 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15215 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15216 (*ieee_<ieee_maxmin><mode>3): Likewise.
15217 (vec_setv2df_0): Likewise.
15218
15219 2019-06-20 Jan Hubicka <jh@suse.cz>
15220
15221 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15222 parameter; it has no use in gimple memory model.
15223 (indirect_ref_may_alias_decl_p): Update.
15224
15225 2019-06-20 Martin Liska <mliska@suse.cz>
15226
15227 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15228 to 10.
15229
15230 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15231
15232 * tree-vect-stmts.c (enum scan_store_kind): New type.
15233 (scan_store_can_perm_p): Change last argument from int * to
15234 vec<enum scan_store_kind> *, record precisely which permutations
15235 need whole vector left shift or that plus VEC_COND_EXPR.
15236 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15237 and additional VEC_COND_EXPR only for those iterations that need it.
15238
15239 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15240
15241 * config.gcc: Fix ARM --with-fpu checking and error message.
15242
15243 2019-06-19 Marek Polacek <polacek@redhat.com>
15244
15245 PR c++/60364 - noreturn after first decl not diagnosed.
15246 * attribs.c (get_attribute_namespace): No longer static.
15247 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15248 attributes.
15249 (attr_noreturn_exclusions): Make it extern.
15250 * attribs.h (get_attribute_namespace): Declare.
15251 * tree-inline.c (function_attribute_inlinable_p): Use
15252 get_attribute_name.
15253
15254 2019-06-19 Martin Sebor <msebor@redhat.com>
15255
15256 PR tree-optimization/90626
15257 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15258
15259 PR tree-optimization/90626
15260 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15261 (handle_builtin_string_cmp): Call it.
15262
15263 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15264
15265 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15266 and DARWIN_NOPIE_SPEC.
15267 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15268 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15269 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15270 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15271 (DARWIN_EXPORT_DYNAMIC): Delete.
15272 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15273 and pie options processing to darwin.h.
15274 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15275
15276 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15277
15278 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15279 in computing the number of options to be moved.
15280
15281 2019-06-19 Maya Rashish <coypu@sdf.org>
15282
15283 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15284 (CLEAR_INSN_CACHE) Use it.
15285
15286 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15287
15288 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15289
15290 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15291
15292 PR middle-end/84521
15293 * builtins.c (expand_builtin_setjmp_setup): Save
15294 hard_frame_pointer_rtx.
15295 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15296 restore fp.
15297 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15298 non-local goto.
15299 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15300 elimination code.
15301 (remove_reg_equal_offset_note): Remove unused function.
15302 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15303 code.
15304 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15305 (arc_builtin_setjmp_frame_value): Remove function.
15306 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15307 (avr_builtin_setjmp_frame_value): Remove function.
15308 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15309 (ix86_builtin_setjmp_frame_value): Remove function.
15310 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15311 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15312 (sparc_builtin_setjmp_frame_value): Remove function.
15313 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15314 (vax_builtin_setjmp_frame_value): Remove function.
15315 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15316 pointer if has_nonlocal_label.
15317
15318 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15319
15320 * doc/md.texi: Document vec_shl_<mode> pattern.
15321 * optabs.def (vec_shl_optab): New optab.
15322 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15323 argument, if == vec_shl_optab, check for left whole vector shift
15324 pattern rather than right shift.
15325 (expand_vec_perm_const): Add vec_shl_optab support.
15326 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15327 in the comment.
15328 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15329 can be handled by vec_shl_optab.
15330 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15331 (check_scan_store): Use it.
15332 (vectorizable_scan_store): If target can't do normal permutations,
15333 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15334 after it.
15335 * config/i386/sse.md (vec_shl_<mode>): New expander.
15336
15337 * omp-low.c (lower_rec_input_clauses): Handle references properly
15338 in inscan clauses.
15339 (lower_omp_scan): Likewise.
15340
15341 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15342
15343 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15344 mem_mode is BLKmode.
15345
15346 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15347
15348 PR target/90922
15349 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15350 pointer adjustment for the case of no callee-saved registers and
15351 stack frame bigger than 128 bytes.
15352
15353 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15354
15355 PR middle-end/90862
15356 * omp-low.c (check_omp_nesting_restrictions): Handle
15357 GF_OMP_TARGET_KIND_OACC_DECLARE.
15358
15359 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15360
15361 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15362 (@add<mode>3_carry): Rename from add<mode>3_carry.
15363 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15364 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15365 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15366 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15367 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15368 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15369 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15370 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15371 (cmpstrnsi): Use gen_cmp_1.
15372 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15373 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15374 (@umonitor_<mode>): Rename from umonitor_<mode>.
15375 * config/i386/i386-expand.c (ix86_expand_copysign):
15376 Use gen_copysign3_const and gen_copysign3_var.
15377 (ix86_expand_xorsign): Use gen_xorsign3_1.
15378 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15379 gen_sub3_carry_ccgz and gen_cmp1.
15380 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15381 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15382 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15383 (ix86_split_lshr): Ditto.
15384 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15385
15386 2019-06-18 Jason Merrill <jason@redhat.com>
15387
15388 * tree.c (build_constructor): Add MEM_STAT_DECL.
15389
15390 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15391
15392 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15393 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15394 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15395 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15396 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15397 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15398 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15399 Use CC_NZC instead of CC.
15400 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15401 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15402 (aarch64_print_operand): Handle E_CC_NZCmode.
15403 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15404 of gen_set_clobber_cc.
15405
15406 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15407
15408 * config/aarch64/aarch64-sve.md: Tabify file.
15409
15410 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15411
15412 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15413 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15414 * config/aarch64/aarch64-sve.md: Use it.
15415
15416 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15417
15418 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15419 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15420 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15421 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15422 (aarch64_expand_sve_vec_cmp_int): Use it.
15423 (aarch64_expand_sve_vec_cmp_float): Likewise.
15424 * config/aarch64/aarch64-sve.md: Likewise throughout.
15425
15426 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15427 Kugan Vivekanandarajah <kuganv@linaro.org>
15428
15429 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15430 (*cond_<optab><mode>_z): Fold into...
15431 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15432 operand 4 can be tied to operand 0 (either inherently or via RA).
15433
15434 2019-06-18 Richard Biener <rguenther@suse.de>
15435
15436 PR debug/90900
15437 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15438 as if optimized away.
15439
15440 2019-06-18 Tom de Vries <tdevries@suse.de>
15441
15442 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15443 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15444 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15445 Rename to ...
15446 (define_insn "@set_softstack_<mode>"): ... this.
15447 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15448 (define_insn "@omp_simt_enter_<mode>"): ... this.
15449 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15450 (define_insn "@omp_simt_exit_<mode>"): ... this.
15451
15452 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15453
15454 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15455 vf parameter. Restore the previous iv step of nscalars_step,
15456 but give it iv_type rather than compare_type. Tweak code order
15457 to match the comments.
15458 (vect_set_loop_condition_masked): Update accordingly.
15459 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15460 for iv_precision. Tweak comment formatting.
15461
15462 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15463
15464 * config/darwin.c: Strip trailing whitespace.
15465
15466 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15467
15468 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15469 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15470
15471 2019-06-18 Martin Jambor <mjambor@suse.cz>
15472
15473 PR ipa/90889
15474 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15475 caller does not have flag_ipa_cp set.
15476
15477 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15478
15479 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15480 from "*fold_left_plus_<mode>", updated operands order.
15481 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15482 * internal-fn.c (mask_fold_left_direct): New define.
15483 (expand_mask_fold_left_optab_fn): Likewise.
15484 (direct_mask_fold_left_optab_supported_p): Likewise.
15485 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15486 * optabs.def (mask_fold_left_plus_optab): New optab.
15487 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15488 masked internal_fn for a reduction ifn.
15489 (vectorize_fold_left_reduction): Add support for masking reductions.
15490
15491 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15492
15493 PR middle-end/80791
15494 * target.def (predict_doloop_p): New hook.
15495 * targhooks.h (default_predict_doloop_p): New declaration.
15496 * targhooks.c (default_predict_doloop_p): New function.
15497 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15498 * doc/tm.texi: Regenerate.
15499 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15500 (TARGET_PREDICT_DOLOOP_P): New macro.
15501 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15502
15503 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15504
15505 * omp-low.c (struct omp_context): Add scan_inclusive field.
15506 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15507 if inclusive scan.
15508 (struct omplow_simd_context): Add lastlane member.
15509 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15510 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15511 1 or 2 argument.
15512 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15513 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15514 (lower_omp_scan): New function.
15515 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15516 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15517 check 3rd argument if present rather than 2nd.
15518 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15519 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15520 2-bit bitfield.
15521 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15522 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15523 than 2nd.
15524 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15525 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15526 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15527 init.
15528 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15529 IFN_GOMP_SIMD_LANE argument.
15530 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15531 encoded ->aux value.
15532 * tree-vect-stmts.c: Include attribs.h.
15533 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15534 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15535 functions.
15536 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15537 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15538
15539 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15540
15541 PR target/62055
15542 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15543 (*nabs<mode>2_1): Ditto.
15544 (nabs sse-reg splitter): New splitter.
15545 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15546
15547 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15548
15549 PR bootstrap/90873.
15550 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15551 TMR index check.
15552
15553 2019-06-17 Tom de Vries <tdevries@suse.de>
15554
15555 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15556 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15557 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15558 ...
15559 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15560 match_operand 0.
15561 (define_insn "omp_simt_enter_insn"): Rename to ...
15562 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15563 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15564 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15565 gen_omp_simt_enter_si.
15566 (define_expand "omp_simt_exit"): New.
15567 (define_insn "omp_simt_exit"): Rename to ...
15568 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15569 match_operand 0.
15570
15571 2019-06-17 Matthew Green <mrg@eterna.com.au>
15572 Maya Rashish <coypu@sdf.org>
15573
15574 * config.gcc (aarch64*-*-netbsd*): New target.
15575 * config/aarch64/aarch64-netbsd.h: New file.
15576 * config/aarch64/t-aarch64-netbsd: Likewise.
15577
15578 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15579
15580 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15581 the access path from base to first VIEW_CONVERT_EXPR or
15582 BIT_FIELD_REF.
15583
15584 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15585
15586 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15587 access path on BIT_FIELD_REFs.
15588
15589 2019-06-17 Martin Liska <mliska@suse.cz>
15590
15591 PR ipa/90874
15592 * ipa-utils.h (odr_type_p): Remove dead code.
15593
15594 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15595
15596 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15597 alternative Solaris 11.4 format.
15598 * configure: Regenerate.
15599
15600 2019-06-17 Tom de Vries <tdevries@suse.de>
15601
15602 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15603 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15604 match_operand 0.
15605 (define_insn "call_value_insn"): Rename to ...
15606 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15607 match_operand 0.
15608 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15609 DI.
15610
15611 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15612
15613 PR middle-end/64242
15614 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15615 frame clobbers and schedule block.
15616 (builtin_longjmp): Likewise.
15617
15618 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15619
15620 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15621 describe how to perform MSPABI compliant 64-bit shift.
15622 * config/msp430/msp430.md (ashldi3): New define_expand.
15623 (ashrdi3): New define_expand.
15624 (lshrdi3): New define_expand.
15625
15626 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15627
15628 * doc/sourcebuild.texi: Document new effective target keyword
15629 longlong64.
15630
15631 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15632
15633 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15634 indirect_refs_may_alias_p): Revert accidental commits.
15635
15636 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15637 at the end of structures.
15638
15639 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15640
15641 * config/darwin.c (machopic_indirect_call_target): Use renamed
15642 darwin_picsymbol_stubs to decide on output.
15643 (darwin_override_options): Handle darwin_picsymbol_stubs.
15644 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15645 (LD64_VERSION): Revise default.
15646 * config/darwin.opt: (mpic-symbol-stubs): New option.
15647 (darwin_picsymbol_stubs): New variable.
15648 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15649 rename to TARGET_MACHO_PICSYM_STUBS.
15650 * config/i386/i386.c (output_pic_addr_const): Likewise.
15651 * config/i386/i386.h Likewise.
15652 * config/rs6000/darwin.h: Likewise.
15653 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15654 darwin_picsymbol_stubs.
15655
15656 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15657
15658 * config/darwin.opt (prebind, noprebind, seglinkedit,
15659 noseglinkedit): Add RejectNegative.
15660
15661 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15662
15663 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15664 in my previous patch.
15665
15666 2019-06-16 Tom de Vries <tdevries@suse.de>
15667
15668 PR tree-optimization/89376
15669 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15670
15671 2019-06-15 Maya Rashish <coypu@sdf.org>
15672
15673 * doc/invoke.texi (Spec Files): Update location of the
15674 Fortran spec file.
15675
15676 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15677
15678 * doc/extend.texi (Common Function Attributes): Clarify
15679 no_sanitize. Fix grammar.
15680
15681 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15682
15683 * tree-ssa-alias.c (alias_stats): Add
15684 nonoverlapping_component_refs_p_may_alias,
15685 nonoverlapping_component_refs_p_no_alias,
15686 nonoverlapping_component_refs_of_decl_p_may_alias,
15687 nonoverlapping_component_refs_of_decl_p_no_alias.
15688 (dump_alias_stats): Dump them.
15689 (nonoverlapping_component_refs_of_decl_p): Add stats.
15690 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15691 ARRAY_REF.
15692
15693 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15694
15695 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15696 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15697 only.
15698 (*anddi3_doubleword): Split before reload. Merge with
15699 anddi->zext pre-reload splitter.
15700 (*andndi3_doubleword): Split before reload.
15701 (*<code>di3_doubleword): Ditto.
15702 (*one_cmpldi2_doubleword): Ditto.
15703
15704 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15705
15706 PR middle-end/90779
15707 * gimplify.c: Include omp-offload.h and context.h.
15708 (gimplify_bind_expr): Add "omp declare target" attributes
15709 to static block scope variables inside of target region or target
15710 functions.
15711
15712 2019-06-15 Tom de Vries <tdevries@suse.de>
15713
15714 PR tree-optimization/90009
15715 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15716 Return NULL if bb contains IFN_UNIQUE.
15717
15718 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15719
15720 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15721 (un): New define_mode_attr.
15722 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15723 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15724 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15725 merge into ...
15726 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15727
15728 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15729
15730 * config/darwin.opt: Add RejectNegative where needed, reorder
15731 and add minimal functional descriptions.
15732
15733 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15734
15735 PR rtl-optimization/90765
15736 * calls.c (update_stack_alignment_for_call): New function.
15737 (expand_call): Call update_stack_alignment_for_call when
15738 outgoing parameter is passed in the stack.
15739 (emit_library_call_value_1): Likewise.
15740 * function.c (locate_and_pad_parm): Don't update
15741 stack_alignment_needed and preferred_stack_boundary.
15742
15743 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15744
15745 PR target/90877
15746 * config/i386/i386-features.c
15747 (dimode_scalar_chain::compute_convert_gain): Replace
15748 mmxsse_to_integer with sse_to_integer.
15749 * config/i386/i386.c (ix86_register_move_cost): Verify that
15750 moves between MMX and non-MMX units require secondary memory.
15751 Correct costs of moves between SSE and integer units.
15752 * config/i386/i386.h (processor_costs): Rename cost of moving
15753 SSE register to integer to sse_to_integer. Rename cost of
15754
15755 2019-06-14 Matt Thomas <matt@3am-software.com>
15756 Matthew Green <mrg@eterna.com.au>
15757 Nick Hudson <skrll@netbsd.org>
15758 Maya Rashish <coypu@sdf.org>
15759 Richard Earnshaw <rearnsha@arm.com>
15760
15761 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15762 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15763 * config/arm/netbsd-eabi.h: New file.
15764 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15765 redefining.
15766 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15767 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15768 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15769 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15770
15771 2019-06-14 Richard Biener <rguenther@suse.de>
15772
15773 * tree-loop-distribution.c (classify_partition): Return
15774 whether a reduction appeared in all partitions and do not
15775 stop builtin detection because of this.
15776 (distribute_loop): Sort a non-builtin partition last if
15777 there's a reduction in all partitions and make sure the
15778 partition prevailing as last is not a builtin.
15779
15780 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15781
15782 PR ipa/90401
15783 * ipa-prop.c (add_to_agg_contents_list): New function.
15784 (clobber_by_agg_contents_list_p): Likewise.
15785 (extract_mem_content): Likewise.
15786 (get_place_in_agg_contents_list): Delete.
15787 (determine_known_aggregate_parts): Renamed from
15788 determine_locally_known_aggregate_parts. New parameter
15789 aa_walk_budget_p.
15790
15791 2019-06-13 Martin Sebor <msebor@redhat.com>
15792
15793 PR tree-optimization/90662
15794 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15795 to the same type.
15796
15797 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15798
15799 PR bootstrap/90873
15800 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15801 dbase is not TARGET_MEM_REF.
15802
15803 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15804
15805 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15806 Update all uses.
15807 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15808 Do not generate DImode extends for 32bit targets.
15809 (and->zext post-reload splitter): Use gen_extend_insn
15810 instead of indirect functions.
15811 (anddi->zext pre-reload splitter): New.
15812 (*zext<mode>_doubleword_and): Remove.
15813 (*zext<mode>_doubleword): Ditto.
15814 (*zextsi_doubleword): Dittto.
15815
15816 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15817
15818 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15819 Use gen_sub3_insn instead of indirect function.
15820 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15821 indirect function.
15822 (ix86_adjust_counter): Ditto.
15823
15824 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15825 Lijia He <helijia@linux.ibm.com>
15826
15827 PR tree-optimization/77820
15828 * tree-ssa-threadedge.c
15829 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15830 function.
15831 (thread_across_edge): Add call to
15832 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15833
15834 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15835
15836 * config/darwin-driver.c (validate_macosx_version_min): New.
15837 (darwin_default_min_version): Cleanup and validate supplied version.
15838 (darwin_driver_init): Likewise and push cleaned version into opts.
15839
15840 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15841
15842 PR tree-optimization/90869
15843 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15844 converts in MEM_REF referencing decl rather than view converts
15845 from decl type to MEM_REF type.
15846
15847 2019-06-13 Richard Biener <rguenther@suse.de>
15848
15849 PR tree-optimization/90856
15850 * tree-sra.c (build_ref_for_model): Only use
15851 build_reconstructed_reference when address-spaces are the same.
15852
15853 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15854
15855 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15856 wrap ei variable name in the declaration in ()s.
15857 (nvptx_single): Actually use mode_label variable. Formatting fix.
15858
15859 2019-06-13 Richard Biener <rguenther@suse.de>
15860
15861 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15862 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15863 also return the condition stmt.
15864 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15865 loop we can version and version that, reusing the loop version
15866 created by if-conversion instead of versioning again.
15867
15868 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15869
15870 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15871 may_contain_p.
15872 * tree-vrp (value_range_base::may_contain_p): Call into
15873 value_inside_range.
15874 (value_inside_range): Make private inside value_range_base class.
15875 Take min/max from *this.
15876 (range_includes_p): Remove.
15877 * tree-vrp.h (value_range_base): Add value_inside_range.
15878 (range_includes_p): Remove.
15879 (range_includes_zero_p): Call may_contain_p.
15880 * vr-values.c (compare_range_with_value): Same.
15881
15882 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15883
15884 * doc/extend.texi (ARC Function Attributes): Update info.
15885
15886 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15887
15888 PR tree-optimization/89713
15889 * doc/invoke.texi (-ffinite-loops): Document new option.
15890 * common.opt (-ffinite-loops): New option.
15891 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15892 IFN_GOACC_LOOP calls as necessary.
15893 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15894 is finite.
15895 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15896 IFN_GOACC_LOOP call is not used.
15897 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15898
15899 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15900
15901 PR target/88838
15902 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15903 compare_type is not with Pmode size, we will create an IV with
15904 Pmode size with truncated use (i.e. converted to the correct type).
15905 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15906 (vect_iv_limit_for_full_masking): New. Factored out of
15907 vect_set_loop_condition_masked.
15908 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15909 (vect_iv_limit_for_full_masking): Declare.
15910
15911 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15912
15913 PR target/88834
15914 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15915 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15916 (get_alias_ptr_type_for_ptr_address): Likewise.
15917 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15918 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15919 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15920 allow_reg_index_p.
15921
15922 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15923
15924 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15925
15926 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15927
15928 * common/config/pru/pru-common.c: New file.
15929 * config.gcc: Add PRU target.
15930 * config/pru/alu-zext.md: New file.
15931 * config/pru/constraints.md: New file.
15932 * config/pru/predicates.md: New file.
15933 * config/pru/pru-opts.h: New file.
15934 * config/pru/pru-passes.c: New file.
15935 * config/pru/pru-pragma.c: New file.
15936 * config/pru/pru-protos.h: New file.
15937 * config/pru/pru.c: New file.
15938 * config/pru/pru.h: New file.
15939 * config/pru/pru.md: New file.
15940 * config/pru/pru.opt: New file.
15941 * config/pru/t-pru: New file.
15942 * doc/extend.texi: Document PRU pragmas.
15943 * doc/invoke.texi: Document PRU-specific options.
15944 * doc/md.texi: Document PRU asm constraints.
15945
15946 2019-06-12 Martin Sebor <msebor@redhat.com>
15947
15948 PR middle-end/90676
15949 * tree-pretty-print.c (dump_mem_ref): New function. Include
15950 MEM_REF type in output when different size than operand.
15951 (dump_generic_node): Move code to dump_mem_ref and call it.
15952
15953 2019-06-12 Martin Sebor <msebor@redhat.com>
15954
15955 PR tree-optimization/90662
15956 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15957 to arrays.
15958
15959 2019-06-12 Tom de Vries <tdevries@suse.de>
15960
15961 PR tree-optimization/90009
15962 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15963
15964 2019-06-12 Martin Liska <mliska@suse.cz>
15965
15966 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15967 the created map.
15968 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15969 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15970 Do not sanitize created maps.
15971
15972 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15973
15974 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15975 value_range::singleton_p.
15976 * tree-vrp.c (value_range_constant_singleton): Remove.
15977 * tree-vrp.h (value_range_constant_singleton): Remove.
15978 * vr-values.c (vr_values::singleton): Use
15979 value_range::singleton_p.
15980
15981 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15982
15983 PR target/90811
15984 * cfgexpand.c (align_local_variable): Add really_expand argument,
15985 don't SET_DECL_ALIGN if it is false.
15986 (add_stack_var): Add really_expand argument, pass it through to
15987 align_local_variable.
15988 (expand_one_stack_var_1): Pass true as really_expand to
15989 align_local_variable.
15990 (expand_one_ssa_partition): Pass true as really_expand to
15991 add_stack_var.
15992 (expand_one_var): Pass really_expand through to add_stack_var.
15993
15994 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15995
15996 * config/arm/iterators.md (VABAL): New int iterator.
15997 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15998 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15999 UNSPEC_VABAL_U values.
16000
16001 2019-06-12 Martin Liska <mliska@suse.cz>
16002
16003 * value-prof.c (stream_out_histogram_value): Only first value
16004 can't be negative.
16005
16006 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16007
16008 PR c/90760
16009 * symtab.c (symtab_node::set_section): Allow being called on aliases
16010 as long as they aren't analyzed yet.
16011
16012 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16013
16014 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16015 to `mips_set_text_contents_type' to indicate whether a
16016 non-debug insn follows.
16017
16018 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16019
16020 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16021 enabling -mpcrel by default.
16022 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16023 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16024 that the test against -mcpu=future is done first. Then test if
16025 -mprefixed-addr is on for -mpcrel.
16026 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16027
16028 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16029
16030 PR target/90811
16031 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16032 instead of and.u%d.
16033
16034 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16035
16036 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16037
16038 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16039
16040 PR c++/90449 - add -Winaccessible-base option.
16041 * doc/invoke.texi (Winaccessible-base): Document.
16042
16043 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16044
16045 PR tree-optimization/62041
16046 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16047
16048 2019-06-11 Jason Merrill <jason@redhat.com>
16049
16050 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16051 * tree.c (get_tree_code_name): Likewise.
16052 * print-tree.c (print_node): Only briefly print a node with an
16053 invalid code.
16054
16055 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16056
16057 PR bootstrap/90819
16058 * trans-mem.c (tm_memopt_compute_available): Add assertion
16059 that blocks is not empty. Formatting fix.
16060
16061 2019-06-11 Martin Liska <mliska@suse.cz>
16062
16063 PR c++/87847
16064 * hash-table.h: Extend create_gcc, add one parameter
16065 that is passed into hash_table::hash_table.
16066
16067 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16068
16069 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16070 New prototype.
16071 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16072 Emit clobber also for non-sse operations.
16073 (ix86_split_fp_absneg_operator): New function.
16074 * config/i386/i386.md (SSEMODEF): New mode iterator.
16075 (ssevecmodef): New mode attribute.
16076 (<code>tf2): Use absneg code iterator.
16077 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16078 Add three-operand AVX alternatives.
16079 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16080 Use absneg code iterator and X87MODEF mode iterator.
16081 (absneg fp_reg non-sse splitter): Call absneg code iterator
16082 and X87MODEF mode iterator.
16083 (absneg general_reg non-sse splitter): Use absneg code iterator
16084 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16085 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16086 code iterator. Add three-operand AVX alternative.
16087 (absneg sse_reg splitter): Use absneg code iterator
16088 and SSEMODEF mode iterator. Handle AVX operands.
16089 (absneg fp_reg splitter): Use absneg code iterator
16090 and MODEF mode iterator.
16091 (absneg general_reg splitter): Merge splitters using MODEF mode
16092 iterator. Use absneg code iterator. Call
16093 ix86_split_fp_absneg_operator.
16094 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16095 Do not enable for non-sse modes before reload.
16096 (CSGNMODE): Remove.
16097 (CSGNVMODE): Ditto.
16098 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16099 ssevecmodef mode attribute instaed of CSGNVMODE.
16100 (copysign<mode>3_const): Ditto.
16101 (copysign<mode>3_var): Ditto.
16102 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16103 Use absneg code iterator. Simplify code using std::swap.
16104 * config/i386/predicates.md (absneg_operator): Remove.
16105
16106 2019-06-10 Martin Sebor <msebor@redhat.com>
16107
16108 * gimple-fold.c (get_range_strlen): Update comment that didn't
16109 make it into r267503 or related commits.
16110
16111 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16112
16113 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16114 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16115
16116 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16117
16118 * tree.def (OMP_SCAN): New tree code.
16119 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16120 OMP_CLAUSE_EXCLUSIVE.
16121 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16122 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16123 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16124 OMP_CLAUSE_{IN,EX}CLUSIVE.
16125 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16126 * tree-nested.c (convert_nonlocal_reference_stmt,
16127 convert_local_reference_stmt, convert_gimple_call): Handle
16128 GIMPLE_OMP_SCAN.
16129 * tree-pretty-print.c (dump_omp_clause): Handle
16130 OMP_CLAUSE_{IN,EX}CLUSIVE.
16131 (dump_generic_node): Handle OMP_SCAN.
16132 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16133 * gimple.h (gomp_scan): New type.
16134 (is_a_helper <gomp_scan *>::test,
16135 is_a_helper <const gomp_scan *>::test): New templates.
16136 (gimple_build_omp_scan): Declare.
16137 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16138 gimple_omp_scan_set_clauses): New inline functions.
16139 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16140 * gimple.c (gimple_build_omp_scan): New function.
16141 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16142 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16143 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16144 GIMPLE_OMP_TASKGROUP.
16145 (dump_gimple_omp_scan): New function.
16146 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16147 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16148 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16149 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16150 (is_gimple_stmt): Handle OMP_SCAN.
16151 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16152 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16153 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16154 mentioned in nested #pragma omp scan. Handle
16155 OMP_CLAUSE_{IN,EX}CLUSIVE.
16156 (gimplify_expr): Handle OMP_SCAN.
16157 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16158 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16159 simd constructs.
16160 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16161 GIMPLE_OMP_SCAN.
16162
16163 2019-06-10 Martin Liska <mliska@suse.cz>
16164
16165 * ipa-cp.c (ignore_edge_p): New function.
16166 (build_toporder_info): Use it.
16167 * ipa-inline.c (ignore_edge_p): New function.
16168 (inline_small_functions): Use it.
16169 * ipa-pure-const.c (ignore_edge_for_nothrow):
16170 Verify opt_for_fn for caller and callee.
16171 (ignore_edge_for_pure_const): Likewise.
16172 * ipa-reference.c (ignore_edge_p): Extend to check
16173 for opt_for_fn.
16174 * ipa-utils.c (searchc): Refactor.
16175 * ipa-utils.h: Fix coding style.
16176
16177 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16178
16179 * config/arc/arc.c (arc_rtx_costs): Update costs.
16180
16181 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16182
16183 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16184 (arc_split_ior): Likewise.
16185 (arc_check_mov_const): Likewise.
16186 (arc_split_mov_const): Likewise.
16187 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16188 (arc_rtx_costs): Replace check Crr with Cax constraint.
16189 (prepare_move_operands): Cleanup, remove unused code.
16190 (arc_split_ior): New function.
16191 (arc_check_ior_const): Likewise.
16192 (arc_split_mov_const): Likewise.
16193 (arc_check_mov_const): Likewise.
16194 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16195 in define_insn_and_split pattern.
16196 (iorsi3): Likewise.
16197 (mulsi3_v2): Add new matching variant.
16198 (andsi3_i): Cleanup pattern.
16199 (rotrsi3_cnt1): Update pattern.
16200 (rotrsi3_cnt8): New pattern.
16201 (ashlsi2_cnt8): Likewise.
16202 (ashlsi2_cnt16): Likewise.
16203 * config/arc/constraints.md (C0p): Update constraint.
16204 (Crr): Remove it.
16205 (C0x): New pattern.
16206 (Cax): New pattern.
16207
16208 2019-06-10 Martin Liska <mliska@suse.cz>
16209
16210 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16211 Update coding style.
16212 (sem_item_optimizer::dump_cong_classes):
16213 Print how many items are in a non-singular class. Improve
16214 coding style.
16215
16216 2019-06-10 Martin Liska <mliska@suse.cz>
16217
16218 * value-prof.c (dump_histogram_value): Change dump format.
16219 (gimple_mod_subtract_transform): Remove legacy comment.
16220
16221 2019-06-10 Martin Liska <mliska@suse.cz>
16222
16223 * value-prof.c (dump_histogram_value): Print histogram values
16224 only if present.
16225
16226 2019-06-10 Martin Liska <mliska@suse.cz>
16227
16228 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16229 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16230 * ipa-profile.c (ipa_profile_generate_summary):
16231 Use get_most_common_single_value.
16232 * tree-profile.c (gimple_init_gcov_profiler):
16233 Instrument with __gcov_one_value_profiler_v2
16234 and __gcov_indirect_call_profiler_v4.
16235 * value-prof.c (dump_histogram_value):
16236 Print all values for HIST_TYPE_SINGLE_VALUE.
16237 (stream_out_histogram_value): Update assert for
16238 N values.
16239 (stream_in_histogram_value): Set number of
16240 counters for HIST_TYPE_SINGLE_VALUE.
16241 (get_most_common_single_value): New.
16242 (gimple_divmod_fixed_value_transform):
16243 Use get_most_common_single_value.
16244 (gimple_ic_transform): Likewise.
16245 (gimple_stringops_transform): Likewise.
16246 (gimple_find_values_to_profile): Set number
16247 of counters for HIST_TYPE_SINGLE_VALUE.
16248 * value-prof.h (get_most_common_single_value): New.
16249
16250 2019-06-10 Martin Liska <mliska@suse.cz>
16251
16252 * hash-map.h: Pass default value to hash_table ctor.
16253 * hash-table.h: Add default value to call of a ctor.
16254
16255 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16256
16257 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16258 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16259
16260 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16261
16262 PR target/90751
16263 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16264 Call pa_output_function_label.
16265 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16266 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16267 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16268 to declaration.
16269 (pa_linux_output_function_prologue): Declare.
16270 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16271 (pa_output_function_label): New.
16272 (pa_output_function_prologue): Revise to use pa_output_function_label.
16273 (pa_linux_output_function_prologue): New.
16274 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16275
16276 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16277
16278 * tree-vrp.h (value_range_base::intersect): New.
16279 (value_range::intersect_helper): Move from here...
16280 (value_range_base::intersect_helper): ...to here.
16281 * tree-vrp.c (value_range::intersect_helper): Rename to...
16282 (value_range_base::intersect_helper): ...this, and rewrite to
16283 return a value instead of modifying THIS in place.
16284 Also, move equivalence handling...
16285 (value_range::intersect): ...here, while calling intersect_helper.
16286 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16287 calling intersect.
16288 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16289 Same.
16290 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16291
16292 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16293
16294 * Makefile.in (genprogerr): Add condmd.
16295 (genprog): Remove it here.
16296
16297 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16298
16299 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16300
16301 2019-06-07 Richard Biener <rguenther@suse.de>
16302
16303 PR debug/90574
16304 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16305 that appear after user labels.
16306
16307 2019-06-07 Martin Liska <mliska@suse.cz>
16308
16309 * cselib.c (cselib_init): Disable hash table
16310 sanitization.
16311 * hash-set.h: Pass new default argument to m_table.
16312 * hash-table.c: Add global variable with hash table
16313 sanitization limit.
16314 * hash-table.h (Allocator>::hash_table): Add new argument
16315 to ctor.
16316 (hashtab_chk_error): New.
16317 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16318 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16319 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16320
16321 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16322
16323 * common.opt (flto-odr-type-merging): Ignore.
16324 * invoke.texi (-flto-odr-type-merging): Remove.
16325 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16326 (can_be_vtable_hashed_p): Remove.
16327 (hash_odr_vtable): Remove.
16328 (odr_vtable_hasher::hash): Remove.
16329 (types_same_for_odr): Remove.
16330 (types_odr_comparable): Remove.
16331 (odr_vtable_hasher::equal): Remove.
16332 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16333 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16334 (get_odr_type): Do not use vtable hash.
16335 (dump_odr_type): Remove commented out code.
16336 (build_type_inheritance_graph): Do not allocate vtable hash.
16337 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16338 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16339 (odr_type_p): Likewise.
16340 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16341 test.
16342
16343 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16344
16345 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16346 immediately after same_types_for_tbaa_p returns -1 and continue
16347 looking for possible exact match; if matching types are arrays
16348 watch for partial overlaps.
16349 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16350 (indirect_refs_may_alias_p): Do type based disambiguation first;
16351 update comment.
16352
16353 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16354
16355 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16356
16357 2019-06-07 Martin Liska <mliska@suse.cz>
16358
16359 * doc/invoke.texi: Remove param.
16360 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16361 Remove.
16362 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16363 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16364 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16365 * profile.c (instrument_values): Remove
16366 HIST_TYPE_INDIR_CALL_TOPN.
16367 * tree-profile.c (init_ic_make_global_vars):
16368 Always build __gcov_indirect_call only.
16369 (gimple_init_gcov_profiler): Remove usage
16370 of PARAM_INDIR_CALL_TOPN_PROFILE.
16371 (gimple_gen_ic_profiler): Likewise.
16372 * value-prof.c (dump_histogram_value): Likewise.
16373 (stream_in_histogram_value): Likewise.
16374 (gimple_indirect_call_to_profile): Likewise.
16375 (gimple_find_values_to_profile): Likewise.
16376 * value-prof.h (enum hist_type): Likewise.
16377
16378 2019-06-07 Martin Liska <mliska@suse.cz>
16379
16380 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16381 function.
16382
16383 2019-06-07 Martin Liska <mliska@suse.cz>
16384
16385 PR tree-optimization/78902
16386 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16387 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16388 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16389 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16390 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16391 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16392 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16393 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16394 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16395 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16396 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16397 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16398 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16399 New.
16400 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16401 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16402 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16403 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16404 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16405 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16406 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16407 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16408 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16409 warn_unused_result attribute.
16410 (BUILT_IN_STRDUP): Likewise.
16411 (BUILT_IN_STRNDUP): Likewise.
16412 (BUILT_IN_ALLOCA): Likewise.
16413 (BUILT_IN_CALLOC): Likewise.
16414 (BUILT_IN_MALLOC): Likewise.
16415 (BUILT_IN_REALLOC): Likewise.
16416
16417 2019-06-06 Jim Wilson <jimw@sifive.com>
16418
16419 PR target/89955
16420 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16421 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16422 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16423
16424 2019-06-06 Martin Sebor <msebor@redhat.com>
16425
16426 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16427 (handle_builtin_malloc): Remove trailing spaces.
16428 (handle_builtin_memset): Same.
16429 (handle_builtin_memcmp): Same.
16430 (compute_string_length): Same.
16431 (determine_min_objsize): Same.
16432 (handle_builtin_string_cmp): Same.
16433 (handle_char_store): Same. Break up excessively long line.
16434
16435 2019-06-06 Martin Jambor <mjambor@suse.cz>
16436
16437 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16438 check.
16439
16440 2019-06-06 Martin Jambor <mjambor@suse.cz>
16441
16442 * tree-sra.c (struct access): New field grp_same_access_path.
16443 (dump_access): Dump it.
16444 (build_reconstructed_reference): New function.
16445 (build_ref_for_model): Use it if possible.
16446 (path_comparable_for_same_access): New function.
16447 (same_access_path_p): Likewise.
16448 (sort_and_splice_var_accesses): Set the new flag.
16449 (analyze_access_subtree): Likewise.
16450 (propagate_subaccesses_across_link): Propagate zero value of the new
16451 flag down the access tree.
16452
16453 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16454
16455 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16456 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16457 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16458 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16459 Add gfx906.
16460
16461 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16462
16463 PR tree-optimization/90332
16464 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16465 Handle VALS containing two vectors.
16466 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16467 to...
16468 (@aarch64_combinez<mode>): ... This.
16469 (*aarch64_combinez_be<mode>): Rename to...
16470 (@aarch64_combinez_be<mode>): ... This.
16471 (vec_init<mode><Vhalf>): New define_expand.
16472 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16473
16474 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16475
16476 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16477 library functions only when not optimizing for size.
16478 (ashlsi3): Likewise.
16479 (ashrhi3): Likewise.
16480 (ashrsi3): Likewise.
16481 (lshrhi3): Likewise.
16482 (lshrsi3): Likewise.
16483
16484 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16485
16486 PR rtl-optimization/88751
16487 * ira.c (ira): Use the number of the actually referenced registers
16488 when calculating the threshold.
16489
16490 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16491
16492 * configure: Regenerate.
16493
16494 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16495
16496 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16497 register if it is in memory, so the shift can be emulated with a rotate
16498 instruction.
16499 (ashrhi3): Likewise.
16500 (lshrhi3): Likewise.
16501
16502 2019-06-06 Martin Liska <mliska@suse.cz>
16503
16504 PR tree-optimization/87954
16505 * match.pd: Simplify mult where both arguments are 0 or 1.
16506
16507 2019-06-06 Richard Biener <rguenther@suse.de>
16508
16509 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16510 put equivalences on UNDEFINED ranges.
16511 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16512 Make sure to drop defs of stmts added during simplification
16513 to VARYING.
16514
16515 2019-06-06 Richard Biener <rguenther@suse.de>
16516
16517 * tree-ssa-structalias.c: Include tree-cfg.h.
16518 (make_heapvar): Do not make heap vars artificial.
16519 (find_func_aliases_for_builtin_call): Handle stack allocation
16520 functions.
16521 (find_func_aliases): Delay processing of simple enough returns
16522 in non-IPA mode.
16523 (set_uids_in_ptset): Adjust.
16524 (find_what_var_points_to): Likewise.
16525 (solve_constraints): Do not dump points-to sets here.
16526 (compute_points_to_sets): Post-process return statements,
16527 amending the escaped solution. Dump points-to sets afterwards.
16528 (ipa_pta_execute): Dump points-to sets.
16529
16530 2019-06-06 Martin Liska <mliska@suse.cz>
16531
16532 PR web/87933
16533 * doc/install.texi: Fix HTML headers and
16534 titles for 'Installing GCC' pages.
16535
16536 2019-06-06 Martin Liska <mliska@suse.cz>
16537
16538 * ipa-icf-gimple.h (dump_message_1): Remove.
16539 (dump_message): Likewise.
16540 (return_false_with_message_1): Print also file.
16541 (return_false_with_msg): Likewise.
16542 (return_with_result): Likewise.
16543 (return_with_debug): Likewise.
16544 * ipa-icf.c (sem_function::equals_private): Remove call
16545 to dump_message.
16546
16547 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16548
16549 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16550 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16551 memory operand for it.
16552 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16553
16554 2019-06-05 Martin Sebor <msebor@redhat.com>
16555
16556 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16557 Adjust quoting and hyphenation.
16558 * convert.c (convert_to_real_1): Same.
16559 * gcc.c (driver_wrong_lang_callback): Same.
16560 (driver::handle_unrecognized_options): Same.
16561 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16562 * opts-common.c (cmdline_handle_error): Same.
16563 (read_cmdline_option): Same.
16564 * opts-global.c (complain_wrong_lang): Same.
16565 (print_ignored_options): Same.
16566 (handle_common_deferred_options): Same.
16567 * pretty-print.h: Same.
16568 * print-rtl.c (debug_bb_n_slim): Same.
16569 * sched-rgn.c (make_pass_sched_fusion): Same.
16570 * tree-cfg.c (verify_gimple_assign_unary): Same.
16571 (verify_gimple_label): Same.
16572 * tree-ssa-operands.c (verify_ssa_operands): Same.
16573 * varasm.c (do_assemble_alias): Same.
16574 (assemble_alias): Same.
16575
16576 2019-06-05 Richard Henderson <rth@twiddle.net>
16577
16578 * config/alpha/alpha.c (direct_return): Move down after
16579 struct machine_function definition; use saved frame_size;
16580 return bool.
16581 (struct machine_function): Add sa_mask, sa_size, frame_size.
16582 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16583 (alpha_compute_frame_layout): ... new function.
16584 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16585 (alpha_initial_elimination_offset): Use saved sa_size.
16586 (alpha_vms_initial_elimination_offset): Likewise.
16587 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16588 (alpha_expand_prologue): Use saved frame data. Merge integer
16589 and fp register save loops.
16590 (alpha_expand_epilogue): Likewise.
16591 (alpha_start_function): Use saved frame data.
16592 * config/alpha/alpha-protos.h (direct_return): Update.
16593 (alpha_sa_size): Remove.
16594
16595 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16596
16597 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16598 multiplication by a power-of-two value.
16599 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16600 and turn the modulo operation into a masking operation.
16601
16602 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16603
16604 PR debug/90733
16605 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16606 with VOIDmode inner operands.
16607
16608 2019-06-05 Richard Biener <rguenther@suse.de>
16609
16610 PR middle-end/90726
16611 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16612 turn an expression graph into a tree.
16613
16614 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16615
16616 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16617 member.
16618 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16619 treat it like explicit monotonic schedule modifier.
16620 (expand_omp_for): Initialize has_lastprivate_conditional.
16621 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16622 schedule modifier.
16623
16624 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16625 references, lookup in in hash map MEM_REF operand instead of the
16626 MEM_REF itself.
16627 (lower_omp_1): When looking for lastprivate conditional assignments,
16628 handle MEM_REFs with REFERENCE_TYPE operands.
16629
16630 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16631 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16632 and references a VLA. Handle references to non-VLAs if is_simd
16633 all privatization clauses like reductions.
16634 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16635 If omp_is_reference, use always omp simd arrays and set
16636 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16637 fails, emit reference initialization.
16638
16639 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16640
16641 PR target/89803
16642 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16643 _mm_mask_fpclass_sd_mask): New intrinsics.
16644 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16645 * config/i386/i386-builtin.def
16646 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16647 New builtins.
16648 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16649 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16650 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16651 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16652 case QI_FTYPE_V2SF_INT): Ditto.
16653 * config/i386/sse.md
16654 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16655 Extended to insnstructions with mask operands.
16656
16657 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16658
16659 * config/rs6000/constraints.md (define_register_constraint "wp"):
16660 Delete.
16661 (define_register_constraint "wq"): Delete.
16662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16663 (rs6000_init_hard_regno_mode_ok): Adjust.
16664 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16665 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16666 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16667 (define_mode_attr VSa): Delete.
16668 (define_mode_attr VSisa): New.
16669 (rest of file): Adjust.
16670 * doc/md.texi (Machine Constraints): Adjust.
16671
16672 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16673
16674 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16675 (define_attr "enabled"): Handle those new isa values.
16676
16677 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16678
16679 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16680 (define_mode_attr VSr5): Delete.
16681 (define_mode_attr VStype_sqrt): Delete.
16682 (define_mode_iterator VSX_SPDP): Delete.
16683 (define_mode_attr VS_spdp_res): Delete.
16684 (define_mode_attr VS_spdp_insn): Delete.
16685 (define_mode_attr VS_spdp_type): Delete.
16686 (*vsx_sqrt<mode>2): Adjust.
16687 (vsx_<VS_spdp_insn>): Delete, split to...
16688 (vsx_xscvdpsp): ... this. New. And...
16689 (vsx_xvcvspdp): ... this. New. And...
16690 (vsx_xvcvdpsp): ... this. New.
16691
16692 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16693
16694 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16695 and V2DF.
16696 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16697 (rest of file): Adjust.
16698
16699 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16700
16701 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16702 (vsx_extract_<mode>_var): Ditto.
16703
16704 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16705
16706 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16707 with just "wa".
16708
16709 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16710
16711 * config/rs6000/constraints.md (define_register_constraint "ww"):
16712 Delete.
16713 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16714 (rs6000_init_hard_regno_mode_ok): Adjust.
16715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16716 RS6000_CONSTRAINT_ww.
16717 * config/rs6000/rs6000.md: Adjust.
16718 * config/rs6000/vsx.md: Adjust.
16719 * doc/md.texi (Machine Constraints): Adjust.
16720
16721 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16722
16723 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16724 (define_mode_attr sd): New.
16725 (define_mode_attr s): New.
16726 (define_mode_attr Ftrad): Delete.
16727 (define_mode_attr Fvsx): Delete.
16728 (define_mode_attr Fs): Delete.
16729 (rest of file): Use the new mode attributes.
16730 * config.rs6000/vsx.md: Use the new mode attributes.
16731
16732 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16733
16734 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16735 with just "wa".
16736
16737 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16738
16739 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16740 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16741 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16742
16743 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16744
16745 PR target/78263
16746 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16747 C++ with strict ANSI requirements.
16748
16749 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16750
16751 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16752 computations when step is 1.
16753
16754 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16755
16756 * config/rs6000/constraints.md (define_register_constraint "wf"):
16757 Delete.
16758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16759 (rs6000_init_hard_regno_mode_ok): Adjust.
16760 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16761 RS6000_CONSTRAINT_wf.
16762 * config/rs6000/rs6000.md: Adjust.
16763 * config/rs6000/vsx.md: Adjust.
16764 * doc/md.texi (Machine Constraints): Adjust.
16765
16766 2019-06-04 Andrew Pinski <apinski@marvell.com>
16767
16768 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16769 Fix ILP32 value.
16770
16771 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16772
16773 * config/rs6000/constraints.md (define_register_constraint "wd"):
16774 Delete.
16775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16776 (rs6000_init_hard_regno_mode_ok): Adjust.
16777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16778 RS6000_CONSTRAINT_wd.
16779 * config/rs6000/rs6000.md: Adjust.
16780 * config/rs6000/vsx.md: Adjust.
16781 * doc/md.texi (Machine Constraints): Adjust.
16782
16783 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16784
16785 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16786 (rest of file): Adjust.
16787
16788 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16789
16790 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16791 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16792 (vsx_splat_<mode>_reg): Adjust.
16793
16794 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16795
16796 * config/rs6000/constraints.md (define_register_constraint "ws"):
16797 Delete.
16798 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16799 (rs6000_init_hard_regno_mode_ok): Adjust.
16800 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16801 RS6000_CONSTRAINT_ws.
16802 * config/rs6000/rs6000.md: Adjust.
16803 * config/rs6000/vsx.md: Adjust.
16804 * doc/md.texi (Machine Constraints): Adjust.
16805
16806 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16807
16808 * config/rs6000/constraints.md (define_register_constraint "wv"):
16809 Delete.
16810 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16811 (rs6000_init_hard_regno_mode_ok): Adjust.
16812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16813 RS6000_CONSTRAINT_wv.
16814 * config/rs6000/rs6000.md: Adjust.
16815 * config/rs6000/vsx.md: Adjust.
16816 * doc/md.texi (Machine Constraints): Adjust.
16817
16818 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16819
16820 * config/rs6000/constraints.md (define_register_constraint "wi"):
16821 Delete.
16822 (define_register_constraint "wt"): Delete.
16823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16824 (rs6000_init_hard_regno_mode_ok): Adjust.
16825 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16826 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16827 * config/rs6000/rs6000.md: Adjust.
16828 * config/rs6000/vsx.md: Adjust.
16829 * doc/md.texi (Machine Constraints): Adjust.
16830
16831 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16832
16833 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16834 const.
16835 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16836 default_elf_asm_output_external.
16837
16838 2019-06-04 Martin Liska <mliska@suse.cz>
16839
16840 * ipa-icf.c (INCLUDE_LIST): Remove.
16841 (sem_item_optimizer::execute): Remove call to init_wpa.
16842 * ipa-icf.h (init_wpa): Remove.
16843
16844 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16845
16846 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16847 conditional on combined for simd.
16848 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16849 member.
16850 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16851 constructs, don't remove lastprivate_conditional_map, but instead set
16852 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16853 to parent construct temporaries.
16854 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16855 like !ctx->lastprivate_conditional_map.
16856 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16857 use up->outer context instead of up.
16858 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16859 gimple_omp_for_combined_p.
16860 (expand_omp_for_static_nochunk): Likewise.
16861 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16862 probably moved over into expand_omp_for_generic rather than being copied
16863 there.
16864
16865 2019-06-04 Martin Liska <mliska@suse.cz>
16866
16867 * value-prof.c (dump_histogram_value): Fix typo.
16868 (gimple_mod_subtract_transform): Likewise.
16869
16870 2019-06-04 Richard Biener <rguenther@suse.de>
16871
16872 PR middle-end/90726
16873 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16874 (tree_contains_chrecs): Likewise.
16875 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16876 exponential behaivor from ...
16877 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16878 ... here.
16879 (expression_expensive_p): Avoid exponential behavior and compute
16880 expanded size, rejecting any expansion.
16881 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16882 (idx_contains_abnormal_ssa_name_p): Likewise.
16883 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16884 (contains_abnormal_ssa_name_p): Simplify and use
16885 walk_tree_without_duplicates.
16886
16887 2019-06-04 Richard Biener <rguenther@suse.de>
16888
16889 PR tree-optimization/90738
16890 Revert
16891 2019-06-03 Richard Biener <rguenther@suse.de>
16892
16893 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16894 full reference tree and record in ref->ref.
16895 (vn_reference_lookup_3): Pass in original ref to
16896 ao_ref_init_from_vn_reference.
16897 (vn_reference_lookup): Likewise.
16898 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16899 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16900 Handle non-decl bases in the original reference.
16901
16902 2019-06-04 Martin Liska <mliska@suse.cz>
16903
16904 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16905 number of references.
16906 (sem_item_optimizer::do_congruence_step):
16907 (sem_item_optimizer::worklist_push): Dump how references
16908 a class has.
16909 (sem_item_optimizer::worklist_pop): Use heap.
16910 (sem_item_optimizer::process_cong_reduction): Likewise.
16911 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16912
16913 2019-06-04 Martin Liska <mliska@suse.cz>
16914
16915 * ipa-icf.h (struct sem_usage_pair_hash): New.
16916 (sem_usage_pair_hash::hash): Likewise.
16917 (sem_usage_pair_hash::equal): Likewise.
16918 (struct sem_usage_hash): Likewise.
16919 * ipa-icf.c (sem_item::sem_item): Initialize
16920 referenced_by_count.
16921 (sem_item::add_reference): Register a reference
16922 in ref_map and not in target->usages.
16923 (sem_item::setup): Remove initialization of
16924 dead vectors.
16925 (sem_item::~sem_item): Remove usage of dead vectors.
16926 (sem_item::dump): Remove dump of references.
16927 (sem_item_optimizer::sem_item_optimizer): Initialize
16928 m_references.
16929 (sem_item_optimizer::read_section): Remove useless
16930 dump.
16931 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16932 (sem_item_optimizer::build_graph): Pass m_references
16933 to ::add_reference.
16934 (sem_item_optimizer::verify_classes): Remove usage of dead
16935 vectors.
16936 (sem_item_optimizer::traverse_congruence_split): Return true
16937 when a class is split.
16938 (sem_item_optimizer::do_congruence_step_for_index): Use
16939 hash_map for look up of (sem_item *, index). That brings
16940 significant speed up.
16941 (sem_item_optimizer::do_congruence_step): Return true
16942 when a split is done.
16943 (congruence_class::is_class_used): Use referenced_by_count.
16944
16945 2019-06-04 Alan Modra <amodra@gmail.com>
16946
16947 PR target/90689
16948 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16949 error.
16950
16951 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16952
16953 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16954 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16955 (rs6000_secondary_reload_simple_move): Adjust.
16956 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16957 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16958 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16959 comment.
16960 (power6x): Adjust.
16961 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16962 (floatunssi<mode>2_lfiwzx): Adjust.
16963 (fix_trunc<mode>si2_stfiwx): Adjust.
16964 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16965 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16966 (mfpgpr): Mark as deprecated.
16967 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16968 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16969 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16970
16971 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16972
16973 * config/rs6000/constraints.md (define_register_constraint "wg"):
16974 Delete.
16975 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16976 RS6000_CONSTRAINT_wg.
16977 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16978 (rs6000_init_hard_regno_mode_ok): Adjust.
16979 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16980 Delete "wg" alternatives.
16981 * doc/md.texi (Machine Constraints): Adjust.
16982
16983 2019-06-03 Alan Modra <amodra@gmail.com>
16984
16985 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16986 (get_uncond_jump_length): Assert length less than INT_MAX and
16987 non-negative.
16988
16989 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16990
16991 PR middle-end/64242
16992 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16993 block.
16994 (expand_builtin_nonlocal_goto): Likewise.
16995
16996 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16997
16998 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16999 (aarch64_asm_output_external): Declare.
17000 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17001 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17002 (aarch64_asm_output_alias): New.
17003 (aarch64_asm_output_external): New.
17004 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17005 (ASM_OUTPUT_EXTERNAL): Define.
17006
17007 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17008 * tree-vrp.h (value_range_base::nonzero_p): New.
17009 (value_range_base::set_nonnull): Rename to...
17010 (value_range_base::set_nonzero): ...this.
17011 (value_range_base::set_null): Rename to...
17012 (value_range_base::set_zero): ...this.
17013 (value_range::set_nonnull): Remove.
17014 (value_range::set_null): Remove.
17015 * tree-vrp.c (range_is_null): Remove.
17016 (range_is_nonnull): Remove.
17017 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17018 instead of range_is_*null.
17019 (extract_range_from_unary_expr): Same.
17020 (value_range_base::set_nonnull): Rename to...
17021 (value_range_base::set_nonzero): ...this.
17022 (value_range::set_nonnull): Remove.
17023 (value_range_base::set_null): Rename to...
17024 (value_range_base::set_zero): ...this.
17025 (value_range::set_null): Remove.
17026 (extract_range_from_binary_expr): Rename set_*null uses to
17027 set_*zero.
17028 (extract_range_from_unary_expr): Same.
17029 (union_helper): Same.
17030 * vr-values.c (get_value_range): Use set_*zero instead of
17031 set_*null.
17032 (vr_values::extract_range_from_binary_expr): Same.
17033 (vr_values::extract_range_basic): Same.
17034
17035 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17036
17037 PR driver/90684
17038 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17039
17040 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17041
17042 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17043 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17044 Rename to...
17045 (aarch64_<su>abd<mode>_3): ... This.
17046 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17047
17048 2019-06-03 Richard Biener <rguenther@suse.de>
17049
17050 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17051 full reference tree and record in ref->ref.
17052 (vn_reference_lookup_3): Pass in original ref to
17053 ao_ref_init_from_vn_reference.
17054 (vn_reference_lookup): Likewise.
17055 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17056 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17057 Handle non-decl bases in the original reference.
17058
17059 2019-06-03 Martin Liska <mliska@suse.cz>
17060
17061 * doc/generic.texi: Remove Java Trees.
17062
17063 2019-06-03 Martin Liska <mliska@suse.cz>
17064
17065 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17066 returns 0 when operands are equal.
17067
17068 2019-06-03 Richard Biener <rguenther@suse.de>
17069
17070 PR tree-optimization/90716
17071 * tree-loop-distribution.c (destroy_loop): Process blocks in
17072 correct order.
17073
17074 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17075
17076 PR target/88837
17077 * vector-builder.h (vector_builder::count_dups): New method.
17078 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17079 Declare prototype.
17080 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17081 (vec_init<mode><Vel>): New pattern.
17082 * config/aarch64/aarch64.c (emit_insr): New function.
17083 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17084 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17085 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17086 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17087
17088 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17089
17090 PR tree-optimization/90681
17091 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17092 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17093 special case for SLP, but fail on non-groupped loads.
17094
17095 2019-06-03 Martin Liska <mliska@suse.cz>
17096
17097 * cfg.c (debug): Use TDF_DETAILS for debug and
17098 print edge info only once.
17099
17100 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17101
17102 PR fortran/90539
17103 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17104
17105 2019-06-01 Martin Sebor <msebor@redhat.com>
17106
17107 PR middle-end/90694
17108 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17109
17110 2019-05-31 Jan Hubicka <jh@suse.cz>
17111
17112 * alias.c: Include ipa-utils.h.
17113 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17114 * ipa-devirt.c (prevailing_odr_type): New.
17115 * ipa-utils.h (previaling_odr_type): Declare.
17116
17117 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17118 Hongtao Liu <hongtao.liu@intel.com>
17119
17120 PR target/89355
17121 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17122 NOTE_INSN_DELETED_LABEL check.
17123
17124 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17125 Robert Suchanek <robert.suchanek@mips.com>
17126
17127 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17128 and 3rd operands of the fmadd/fmsub/maddv builtin.
17129
17130 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17131
17132 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17133 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17134 on OMP_SIMD if not nested inside of worksharing loop that also has
17135 lastprivate conditional clause for the same decl.
17136 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17137 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17138 on simd.
17139 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17140 on simd construct.
17141 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17142 on simd construct.
17143 (lower_lastprivate_clauses): Likewise.
17144 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17145 calling lower_rec_input_clauses.
17146 (lower_omp_for): Likewise.
17147 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17148 clause on simd construct.
17149 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17150 OMP_CLAUSE__CONDTEMP_ clause is present.
17151
17152 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17153 ivar and lvar.
17154
17155 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17156
17157 PR c/43673
17158 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17159 TEX_D32, TEX_D64 or TEX_D128.
17160
17161 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17162
17163 * match.pd (~(vec?cst1:cst2)): New transformation.
17164
17165 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17166
17167 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17168 ((size_t)(A /[ex] B) CMP C): New transformation.
17169
17170 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17171
17172 * doc/md.texi: Document define_insn_and_rewrite.
17173 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17174 * gensupport.c (queue_elem): Update comment.
17175 (replace_operands_with_dups): New function.
17176 (gen_rewrite_sequence): Likewise.
17177 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17178 * read-rtl.c (apply_subst_iterator): Likewise.
17179 (add_condition_to_rtx, named_rtx_p): Likewise.
17180 (rtx_reader::read_rtx_operand): Likewise.
17181 * config/aarch64/aarch64-sve.md
17182 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17183 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17184 define_insn_and_rewrite.
17185 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17186 Remove separate define_split.
17187
17188 2019-05-31 Jan Hubicka <jh@suse.cz>
17189
17190 * tree-ssa-alias.c (type_has_components_p): New function.
17191 (aliasing_component_refs_p): Use it.
17192
17193 2019-05-31 Martin Liska <mliska@suse.cz>
17194
17195 * gdbhooks.py: Add const_tree to TreePrinter.
17196
17197 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17198
17199 PR debug/86964
17200 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17201 * doc/invoke.texi (Debugging Options): Document new default of
17202 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17203
17204 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17205
17206 PR tree-optimization/90671
17207 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17208 template_block used to be empty on the first call, don't use
17209 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17210 seq with bb_seq and set it with set_bb_seq.
17211
17212 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17213
17214 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17215
17216 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17217 Michael Meissner <meissner@linux.ibm.com>
17218
17219 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17220 (prefixed_mem_operand): Likewise.
17221 (non_prefixed_mem_operand): Likewise.
17222 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17223 prototype.
17224 * config/rs6000/rs6000.c (print_operand_address): Handle
17225 PC-relative addresses.
17226 (mode_supports_prefixed_address_p): New function.
17227 (rs6000_prefixed_address): New function.
17228 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17229 (SYMBOL_REF_PCREL_P): Likewise.
17230
17231 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17232
17233 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17234 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17235 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17236 is nested inside of parallel region, add _condtemp_ clause to both.
17237 * tree-nested.c (convert_nonlocal_omp_clauses,
17238 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17239 assertion failure.
17240 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17241 member.
17242 * omp-general.c (omp_extract_for_data): Compute it.
17243 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17244 (lower_rec_input_clauses): Likewise.
17245 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17246 clause is already present, just add one further one after it.
17247 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17248 (lower_send_shared_vars): Clear _condtemp_ vars.
17249 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17250 or section or taskgroup.
17251 * omp-expand.c (determine_parallel_type): Disallow combining only if
17252 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17253 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17254 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17255 expand_omp_for_static_chunk, expand_omp_for): Use
17256 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17257 determine if a special set of API routines are needed and if condtemp
17258 needs to be initialized, while always initialize cond_var if
17259 fd->lastprivate_conditional is non-zero.
17260
17261 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17262 Michael Meissner <meissner@linux.ibm.com>
17263
17264 * config/rs6000/constraints.md (eI): New constraint.
17265 * config/rs6000/predicates.md (cint34_operand): New predicate.
17266 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17267 (SIGNED_34BIT_OFFSET_P): Likewise.
17268 * doc/md.texi (eI): Document constraint.
17269
17270 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17271
17272 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17273
17274 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17275 Michael Meissner <meissner@linux.ibm.com>
17276
17277 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17278 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17279 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17280 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17281 (OTHER_FUTURE_MASKS): Likewise.
17282 (POWERPC_MASKS): Likewise.
17283 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17284 specified without -mprefixed-addr or -mcpu=future. Error if
17285 -mprefixed-addr is specified without -mcpu=future.
17286 (rs6000_opt_masks): Add entry for prefixed-addr.
17287 * rs6000.opt (mprefixed-addr): New option.
17288
17289 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17290
17291 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17292 cfun->is_thunk check.
17293
17294 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17295
17296 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17297 to length.
17298
17299 2019-05-30 Martin Liska <mliska@suse.cz>
17300
17301 * gdbinit.in: Fix 'ptc' command. Add trt
17302 that prints TREE_TYPE($).
17303
17304 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17305 Alan Modra <amodra@gmail.com>
17306
17307 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17308 calls here...
17309 (rs6000_indirect_call_template_1): ...and here.
17310 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17311 plt16_ha, plt16_lo, mtctr indirect calls. Use
17312 rs6000_pltseq_enum.
17313 (rs6000_decl_ok_for_sibcall): New function.
17314 (rs6000_function_ok_for_sibcall): Refactor.
17315 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17316 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17317 when pcrel. Reorganize.
17318 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17319 * rs6000.h (rs6000_pltseq_enum): New enum.
17320 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17321 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17322 (*pltseq_plt16_ha): Likewise.
17323 (*pltseq_plt16_lo): Likewise.
17324 (*pltseq_mtctr): Likewise.
17325 (*pltseq_plt_pcrel): New insn.
17326 (*call_local_aix): Handle @notoc calls.
17327 (*call_value_local_aix): Likewise.
17328 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17329 (*call_value_nonlocal_aix): Likewise.
17330 (*call_indirect_pcrel): New insn.
17331 (*call_value_indirect_pcrel): Likewise.
17332
17333 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17334
17335 * config/i386/sse.md (*save_multiple<mode>): Rename from
17336 save_multiple<mode>.
17337 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17338 (*restore_multiple_and_return<mode>): Rename from
17339 restore_multiple_and_return<mode>.
17340 (*restore_multiple_leave_return<mode>): Rename from
17341 restore_multiple_leave_return<mode>.
17342
17343 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17344
17345 * config.gcc (rx-*-linux*): New target.
17346 * config/rx/elf.opt: New file.
17347 * config/rx/linux.h: Likewise.
17348 * config/rx/t-linux: Likewise.
17349 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17350 make it zero.
17351 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17352 (ASM_APP_OFF): Likewise.
17353 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17354 moved elsewhere.
17355
17356 2019-05-29 Jan Hubicka <jh@suse.cz>
17357
17358 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17359 variants are pointer equivalent.
17360
17361 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17362
17363 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17364 * config/aarch64/aarch64-sve2.md: New file.
17365 (<u>avg<mode>3_floor): New pattern.
17366 (<u>avg<mode>3_ceil): Likewise.
17367 (*<sur>h<addsub><mode>): Likewise.
17368 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17369 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17370
17371 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17372
17373 PR bootstrap/90543
17374 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17375 for var_opt_string printing. In cl_optimization_print_diff, print
17376 (null) instead of invoking undefined behavior if one of the
17377 var_opt_string pointers is NULL and use && instead of first || in the
17378 guarding condition. For var_target_other options, handle const char *
17379 target variables similarly to const char * optimize node variables.
17380
17381 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17382
17383 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17384 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17385 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17386 Add autib1716 and pacib1716 initialisation.
17387 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17388 for autib1716 and pacib1716.
17389 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17390 aarch64_post_cfi_startproc): Define.
17391 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17392 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17393 aarch64_handle_pac_ret_protection): Set default sign key to A.
17394 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17395 aarch64_expand_prologue): Add check for b-key.
17396 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17397 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17398 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17399 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17400 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17401 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17402 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17403 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17404 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17405 pauth_hint_num_a with pauth_hint_num.
17406 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17407 pauth_hint_num_a with pauth_hint_num.
17408 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17409 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17410 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17411 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17412 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17413 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17414 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17415 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17416 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17417 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17418 UNSPEC_AUTIA1716 respectively.
17419 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17420 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17421 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17422 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17423 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17424 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17425
17426 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17427
17428 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17429 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17430 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17431 explicit clause on combined parallel into implicit shared clause.
17432 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17433 and firstprivate if the decl has one too from combined parallel to
17434 the worksharing construct.
17435
17436 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17437 Michael Meissner <meissner@linux.ibm.com>
17438
17439 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17440
17441 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17442
17443 * rtl.h (LABEL_REF_P): New #define.
17444
17445 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17446
17447 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17448
17449 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17450
17451 * internal-fn.c: Marked mask_load_direct as vectorizable.
17452 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17453 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17454 combined even if masks different with allow_slp_p param.
17455 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17456 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17457 dissolve SLP-only vectorizable groups when SLP has been discarded.
17458 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17459 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17460 masks.
17461 (vect_build_slp_tree_1): Fixed comment typo.
17462 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17463 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17464 loads for SLP only.
17465 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17466 vectorizable.
17467 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17468
17469 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17470
17471 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17472 Remove obsolete use_thunk reference.
17473 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17474 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17475 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17476 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17477 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17478 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17479 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17480 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17481 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17482
17483 2019-05-28 Nathan Sidwell <nathan@acm.org>
17484
17485 * tree.h (IDENTIFIER_ANON_P): New.
17486 (anon_aggrname_format, anon_aggname_p): Don't declare.
17487 (make_anon_name): Declare.
17488 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17489 (hash_tree): Likewise.
17490 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17491 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17492 (anon_cnt, make_anon_name): New.
17493
17494 2019-05-28 Martin Liska <mliska@suse.cz>
17495
17496 PR other/90315
17497 * opts-global.c (decode_options): Print help for all
17498 help_option_arguments.
17499 * opts.c (print_help): Add new argument.
17500 (common_handle_option): Remember all values into
17501 help_option_arguments.
17502 * opts.h (print_help): Add new argument.
17503
17504 2019-05-28 Martin Liska <mliska@suse.cz>
17505
17506 PR ipa/90555
17507 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17508 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17509 (func_checker::compare_bb): Call compare_loops.
17510
17511 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17512
17513 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17514 on sections construct.
17515 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17516 construct.
17517 (lower_omp_sections): Handle lastprivate conditional.
17518 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17519 lastprivate_conditional_map.
17520 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17521
17522 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17523 critical, taskgroup and section regions when looking for a region
17524 with non-NULL lastprivate_conditional_map.
17525
17526 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17527
17528 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17529 (*ix86_gen_sub3): Ditto.
17530 (*ix86_gen_sub3_carry): Ditto.
17531 (*ix86_gen_one_cmpl2): Ditto.
17532 (*ix86_gen_andsp): Ditto.
17533 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17534 (gen_and2_insn): New static function.
17535 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17536 Use gen_add3_insn instead of ix86_gen_add3.
17537 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17538 instead of ix86_gen_add3.
17539 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17540 Use gen_sub3_insn instead of ix86_gen_sub3.
17541 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17542 instead of ix86_gen_add3.
17543 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17544 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17545 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17546 * config/i386/i386-options.c (ix86_option_override_internal):
17547 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17548 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17549
17550 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17551
17552 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17553 and DW_OP_GNU_const_index opcodes.
17554
17555 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17556
17557 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17558
17559 2019-05-27 Richard Biener <rguenther@suse.de>
17560
17561 PR tree-optimization/90637
17562 * tree-ssa-sink.c (statement_sink_location): Honor the
17563 computed sink location for single-uses.
17564
17565 2019-05-27 Richard Biener <rguenther@suse.de>
17566
17567 PR middle-end/90610
17568 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17569 a bit-insert.
17570
17571 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17572
17573 * config/i386/i386.md (@sub<mode>3_carry): Rename
17574 from sub<mode>3_carry.
17575 (@leave_<mode>): New expander.
17576 (*leave): Rename from leave.
17577 (*leave_rex64): Rename from leave_rex64.
17578 (@monitorx_<mode>): Rename from monitorx_<mode>.
17579 (@clzero_<mode>): Rename from clzero_<mode>.
17580 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17581 from sse3_monitor_<mode>.
17582 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17583 (*ix86_gen_leave): Ditto.
17584 (*ix86_gen_monitor): Ditto.
17585 (*ix86_gen_monitorx): Ditto.
17586 (*ix86_gen_clzero): Ditto.
17587 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17588 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17589 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17590 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17591 Use gen_sse3_monitor instead of ix86_gen_monitor.
17592 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17593 instead of ix86_gen_monitorx.
17594 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17595 instead of ix86_gen_clzero.
17596 * config/i386/i386-options.c (ix86_option_override_internal):
17597 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17598 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17599
17600 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17601
17602 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17603 Rename from tls_global_dynamic_64_<mode>.
17604 (@tls_local_dynamic_base_64_<mode>): Rename from
17605 tls_local_dynamic_base_64_<mode>.
17606 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17607 Remove indirect function.
17608 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17609 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17610 instead of ix86_gen_tls_global_dynamic_64.
17611 Use gen_tls_local_dynamic_base_64 instead of
17612 ix86_gen_tls_local_dynamic_base_64.
17613 * config/i386/i386-options.c (ix86_option_override_internal):
17614 Do not initialize ix86_gen_tls_global_dynamic_64 and
17615 ix86_gen_tls_local_dynamic_base_64.
17616
17617 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17618
17619 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17620 Rename from pro_epilogue_adjust_stack_<mode>_add.
17621 (@pro_epilogue_adjust_stack_sub_<mode>)
17622 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17623 (@allocate_stack_worker_probe_<mode>):
17624 Rename from allocate_stack_worker_probe_<mode>.
17625 (allocate_stack): Use gen_allocate_stack_worker_probe.
17626 (probe_stack): Use gen_probe_stack_1.
17627 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17628 (@adjust_stack_and_probe_<mode>): Rename from
17629 adjust_stack_and_probe<mode>.
17630 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17631 (stack_protect_set): Use gen_stack_protect_set_1.
17632 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17633 (stack_protect_test): Use gen_stack_protect_test_1.
17634 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17635 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17636 Remove indirect function.
17637 (*ix86_gen_adjust_stack_and_probe): Ditto.
17638 (*ix86_gen_probe_stack_range): Ditto.
17639 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17640 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17641 (ix86_adjust_stack_and_probe_stack_clash): Use
17642 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17643 (ix86_adjust_stack_and_probe): Ditto.
17644 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17645 of ix86_gen_probe_stack_range.
17646 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17647 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17648 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17649 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17650 CODE_FOR_stack_protect_test_{si,di}.
17651 * config/i386/i386-options.c (ix86_option_override_internal):
17652 Do not initialize ix86_gen_allocate_stack_worker,
17653 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17654
17655 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17656
17657 * doc/invoke.texi (Link Options): Many editorial changes around
17658 -flinker-output.
17659
17660 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17661
17662 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17663 pre-Solaris 11 referene and most Studio compiler details.
17664
17665 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17666
17667 PR target/90530
17668 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17669 DImode to SImode in floating-point registers on 64-bit target.
17670 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17671 register_operand in xmpyu patterns.
17672
17673 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17674
17675 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17676 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17677 OMP_CLAUSE__REDUCTEMP_.
17678 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17679 OMP_CLAUSE__CONDTEMP_.
17680 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17681 * tree-pretty-print.c (dump_omp_clause): Likewise.
17682 * tree-nested.c (convert_nonlocal_omp_clauses,
17683 convert_local_omp_clauses): Likewise.
17684 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17685 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17686 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17687 on OMP_FOR.
17688 (gimplify_omp_for): Warn and disable conditional modifier from
17689 lastprivate on loop iterators.
17690 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17691 member.
17692 * omp-general.c (omp_extract_for_data): Initialize it.
17693 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17694 member.
17695 (delete_omp_context): Delete it.
17696 (lower_lastprivate_conditional_clauses): New function.
17697 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17698 handle lastprivate conditional clauses.
17699 (lower_reduction_clauses): Add CLIST argument, emit it into
17700 the critical section if any.
17701 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17702 lower_reduction_clauses callers.
17703 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17704 to lower_lastprivate_clauses.
17705 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17706 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17707 clist into a critical section if not emitted there already by
17708 lower_reduction_clauses.
17709 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17710 callers.
17711 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17712 conditional variables.
17713 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17714 clause is present.
17715 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17716 expand_omp_for_static_chunk): Handle lastprivate conditional.
17717 (expand_omp_for): Handle fd.lastprivate_conditional like
17718 fd.have_reductemp.
17719
17720 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17721
17722 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17723 kernel does not exit cleanly.
17724 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17725
17726 2019-05-24 Jason Merrill <jason@redhat.com>
17727
17728 Revert:
17729 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17730
17731 2019-05-24 Richard Biener <rguenther@suse.de>
17732
17733 PR testsuite/90607
17734 * tree-loop-distribution.c (struct partition): Add location
17735 member.
17736 (partition_alloc): Initialize all fields.
17737 (generate_memset_builtin): Use the location recorded in the
17738 partition for the generated call.
17739 (generate_memcpy_builtin): Likewise.
17740 (classify_partition): Record the location of a single store
17741 as location for the partition.
17742
17743 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17744
17745 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17746 for lo-part.
17747
17748 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17749
17750 PR target/90588
17751 * common/config/aarch64/aarch64-common.c
17752 (aarch64_rewrite_selected_cpu): Change local temporary variable
17753 type from unsigned long to uint64_t.
17754 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17755 aarch64_get_extension_string_for_isa_flags): Change declaration to
17756 match new definition by replacing unsigned long with uint64_t.
17757
17758 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17759
17760 PR target/90568
17761 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17762 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17763 Handle stack_protect_test_<mode> codegen similarly to corresponding
17764 sub instruction.
17765
17766 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17767
17768 * config/i386/darwin.h: Reject -mfentry*.
17769 * doc/sourcebuild.texi: Document mfentry target support.
17770
17771 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17772
17773 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17774 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17775 false for PC-relative functions.
17776 (rs6000_output_function_prologue): Change called function name to
17777 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17778 name,1" for PC-relative functions.
17779 (rs6000_elf_declare_function_name): Change called function name to
17780 rs6000_global_entry_point_prologue_needed_p.
17781
17782 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17783
17784 PR target/90552
17785 * config/i386/i386.c (gen_rtx_cost):
17786 Use ix86_tune_cost instead of ix86_cost.
17787
17788 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17789 Michael Meissner <meissner@linux.ibm.com>
17790 Segher Boessenkool <segher@kernel.crashing.org>
17791
17792 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17793 OPTION_MASK_PCREL.
17794 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17795 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17796 (rs6000_fndecl_pcrel_p): Likewise.
17797 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17798 error if -mpcrel is requested without -mcpu=future.
17799 (rs6000_opt_masks): Add entry for pcrel.
17800 (rs6000_fndecl_pcrel_p): New function.
17801 (rs6000_pcrel_p): Likewise.
17802 * config/rs6000/rs6000.opt (mpcrel): New option.
17803 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17804
17805 2019-05-23 Jan Hubicka <jh@suse.cz>
17806 Martin Liska <mliska@suse.cz>
17807
17808 PR tree-optimization/90576
17809 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17810 poly_int_tree_p.
17811 (aliasing_component_refs_p): Fix three way size compare conditional;
17812 give up earlier in case we can not decide on equivalence.
17813
17814 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17815 Michael Meissner <meissner@linux.ibm.com>
17816 Segher Boessenkool <segher@kernel.crashing.org>
17817
17818 * config.gcc: Add future cpu.
17819 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17820 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17821 #define.
17822 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17823 (RS6000_CPU): New instantiation for future cpu.
17824 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17825 PROCESSOR_FUTURE.
17826 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17827 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17828 * config/rs6000/rs6000-tables.opt: Regenerate.
17829 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17830 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17831 (rs6000_machine_from_flags): Handle future cpu.
17832 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17833 PROCESSOR_POWER9 for now.
17834 (rs6000_adjust_cost): Likewise.
17835 (rs6000_issue_rate): Likewise.
17836 (rs6000_register_move_cost): Likewise.
17837 (rs6000_opt_masks): Add entry for future.
17838 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17839 (MASK_FUTURE): New #define.
17840 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17841 * config/rs6000/rs6000.opt (mfuture): New target option.
17842 * doc/invoke.texi (mcpu): Add future cpu.
17843
17844 2019-05-23 Martin Liska <mliska@suse.cz>
17845
17846 PR c++/90587
17847 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17848 operation points to a temporary (pointed via tree_to_wide_ref)
17849 that is out of scope after the &.
17850
17851 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17852
17853 PR c++/90592
17854 * doc/extend.texi (Function Names): Add missing word.
17855
17856 2019-05-23 Richard Biener <rguenther@suse.de>
17857
17858 PR tree-optimization/88440
17859 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17860 at -O[2s]+.
17861 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17862 generated call.
17863 (generate_memcpy_builtin): Likewise.
17864 (distribute_loop): Pass in whether to only distribute patterns.
17865 (prepare_perfect_loop_nest): Also allow size optimization.
17866 (pass_loop_distribution::execute): When optimizing a loop
17867 nest for size allow pattern replacement.
17868
17869 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17870
17871 PR target/90568
17872 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17873 of xor.
17874
17875 2019-05-23 Martin Liska <mliska@suse.cz>
17876
17877 PR sanitizer/90570
17878 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17879 expression similarly to gimplify_decl_expr.
17880
17881 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17882
17883 * cse.c (cse_dump_path): s/dump_file/f.
17884
17885 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17886
17887 PR c++/90462
17888 * diagnostic-format-json.cc: Include "selftest.h".
17889 (json_from_expanded_location): Only add "file" key for non-NULL
17890 file strings.
17891 (json_from_location_range): Don't add "start" and "finish"
17892 children if they are UNKNOWN_LOCATION.
17893 (selftest::test_unknown_location): New selftest.
17894 (selftest::test_bad_endpoints): New selftest.
17895 (selftest::diagnostic_format_json_cc_tests): New function.
17896 * json.cc (json::object::get): New function.
17897 (selftest::test_object_get): New selftest.
17898 (selftest::json_cc_tests): Call it.
17899 * json.h (json::object::get): New decl.
17900 * selftest-run-tests.c (selftest::run_tests): Call
17901 selftest::diagnostic_format_json_cc_tests.
17902 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17903 decl.
17904
17905 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17906 Andrew Stubbs <amd@codesourcery.com>
17907
17908 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17909 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17910 (kernel): Rename to...
17911 (main_kernel): ... this.
17912 (load_image): Load _init_array and _fini_array kernels.
17913 (run): Add argument for kernel to run.
17914 (main): Run init_array_kernel before main_kernel, and
17915 fini_array_kernel after.
17916 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17917 amdgpu_hsa_kernel attribute on functions.
17918 (gcn_disable_constructors): Delete.
17919 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17920 * config/gcn/crt0.c (size_t): Define.
17921 (_init_array, _fini_array): New.
17922 (__preinit_array_start, __preinit_array_end,
17923 __init_array_start, __init_array_end,
17924 __fini_array_start, __fini_array_end): Declare weak references.
17925
17926 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17927
17928 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17929
17930 2019-05-22 Jason Merrill <jason@redhat.com>
17931
17932 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17933
17934 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17935
17936 PR target/88483
17937 * config/i386/i386-options.c (ix86_init_machine_status): Set
17938 stack_frame_required to true.
17939 * config/i386/i386.c (ix86_get_frame_size): New function.
17940 (ix86_frame_pointer_required): Replace get_frame_size with
17941 ix86_get_frame_size.
17942 (ix86_compute_frame_layout): Likewise.
17943 (ix86_find_max_used_stack_alignment): Changed to void. Set
17944 stack_frame_required.
17945 (ix86_finalize_stack_frame_flags): Always call
17946 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17947 ix86_get_frame_size.
17948 * config/i386/i386.h (machine_function): Add stack_frame_required.
17949
17950 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17951
17952 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17953
17954 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17955
17956 * common/config/aarch64/aarch64-common.c
17957 (struct aarch64_option_extension, struct processor_name_to_arch,
17958 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17959 aarch64_contains_opt,
17960 aarch64_get_extension_string_for_isa_flags): Change type of
17961 variables storing flags to uint64_t.
17962 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17963 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17964 * config/aarch64/aarch64.c (struct processor,
17965 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17966 aarch64_validate_march, aarch64_override_options,
17967 aarch64_option_print, aarch64_handle_attr_isa_flags,
17968 aarch64_declare_function_name, aarch64_start_file): Make flag
17969 variables uint64_t.
17970 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17971 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17972 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17973 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17974 * config/aarch64/driver-aarch64.c
17975 (struct aarch64_arch_extension, struct aarch64_core_data,
17976 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17977 flag variables uint64_t.
17978 * doc/invoke.texi: Add documentation for new arguments.
17979
17980 2019-05-22 Richard Biener <rguenther@suse.de>
17981
17982 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17983 rewrite ...
17984 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17985
17986 2019-05-22 Martin Liska <mliska@suse.cz>
17987
17988 PR lto/90500
17989 * doc/extend.texi: Document the change.
17990
17991 2019-05-22 Richard Biener <rguenther@suse.de>
17992
17993 PR tree-optimization/90450
17994 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17995 (mem_ref_hasher::equal): Check it.
17996 (mem_ref_alloc): Initialize it.
17997 (gather_mem_refs_stmt): Set it.
17998
17999 2019-05-22 Richard Biener <rguenther@suse.de>
18000
18001 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18002 Add ABS_EXPR.
18003 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18004 as ABSU_EXPR.
18005
18006 2019-05-22 Alan Modra <amodra@gmail.com>
18007
18008 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18009 (ASM_CPU_SPEC): Conditionally add -many.
18010 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18011 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18012 (rs6000_file_start): ..extracted from here, and modified to
18013 test all ISA bits.
18014 (rs6000_output_function_prologue): Emit .machine as necessary.
18015
18016 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18017
18018 PR middle-end/90553
18019 * ira-lives.c (process_bb_node_lives): Consider defs
18020 for a call insn to be die before the call, not after.
18021
18022 * function.c (assign_parm_setup_block): Raise alignment of
18023 stacked parameter only for STRICT_ALIGNMENT targets.
18024
18025 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18026
18027 * config/rs6000/constraints.md (define_register_constraint "wz"):
18028 Delete.
18029 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18030 RS6000_CONSTRAINT_wz.
18031 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18032 (rs6000_init_hard_regno_mode_ok): Adjust.
18033 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18034 * doc/md.texi (Machine Constraints): Adjust.
18035
18036 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18037
18038 * config/rs6000/constraints.md (define_register_constraint "wl"):
18039 Delete.
18040 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18041 RS6000_CONSTRAINT_wl.
18042 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18043 (rs6000_init_hard_regno_mode_ok): Adjust.
18044 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18045 * doc/md.texi (Machine Constraints): Adjust.
18046
18047 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18048
18049 * config/rs6000/constraints.md (define_register_constraint "wm"):
18050 Delete.
18051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18052 RS6000_CONSTRAINT_wm.
18053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18054 (rs6000_init_hard_regno_mode_ok): Adjust.
18055 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18056 * doc/md.texi (Machine Constraints): Adjust.
18057
18058 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18059
18060 * config/rs6000/constraints.md (define_register_constraint "wk"):
18061 Delete.
18062 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18063 RS6000_CONSTRAINT_wk.
18064 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18065 (rs6000_init_hard_regno_mode_ok): Adjust.
18066 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18067 * doc/md.texi (Machine Constraints): Adjust.
18068
18069 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18070
18071 * config/rs6000/constraints.md (define_register_constraint "wj"):
18072 Delete.
18073 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18074 RS6000_CONSTRAINT_wj.
18075 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18076 (rs6000_init_hard_regno_mode_ok): Adjust.
18077 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18078 (VS_64dm): Delete.
18079 * config/rs6000/vsx.md: Ditto.
18080 * doc/md.texi (Machine Constraints): Adjust.
18081
18082 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18083
18084 * config/rs6000/constraints.md (define_register_constraint "wh"):
18085 Delete.
18086 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18087 RS6000_CONSTRAINT_wh.
18088 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18089 (rs6000_init_hard_regno_mode_ok): Adjust.
18090 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18091 * doc/md.texi (Machine Constraints): Adjust.
18092
18093 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18094
18095 PR target/90547
18096 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18097 Avoid calling gen_lowpart with CONST operand.
18098
18099 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18100
18101 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18102 field template_last_to_copy.
18103 (ssa_create_duplicates): Set it, and use it. Attempt to
18104 preserve more debug stmts.
18105
18106 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18107
18108 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18109 (signbit<mode>2): New expander
18110
18111 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18112
18113 PR bootstrap/87338
18114 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18115 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18116
18117 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18118
18119 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18120 %ebx and %ecx bafore calling cpuid with leaf 1 or
18121 non-constant leaf argument.
18122
18123 2019-05-21 Alan Modra <amodra@gmail.com>
18124
18125 PR target/90545
18126 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18127 power9 direct move cost.
18128
18129 2019-05-21 Richard Biener <rguenther@suse.de>
18130
18131 PR middle-end/90510
18132 * fold-const.c (fold_read_from_vector): New function.
18133 * fold-const.h (fold_read_from_vector): Declare.
18134 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18135 single-element insert permutations. Canonicalize selector
18136 further and fix issue with last commit.
18137
18138 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18139
18140 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18141 parameter with default value false to declaration.
18142 (split_edges_for_insertion): New inline function. Wrapper for
18143 split_critical_edges with for_edge_insertion_p = true.
18144 * tree-cfg.c (split_critical_edges): Don't split non-critical
18145 edges if for_edge_insertion_p is false. Fix whitespace.
18146 * tree-ssa-pre.c (pass_pre::execute): Call
18147 split_edges_for_insertion instead of split_critical_edges.
18148 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18149 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18150 (pass_data_sink_code): Update function name in the comment.
18151
18152 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18153
18154 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18155 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18156 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18157 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18158 positives.
18159
18160 2019-05-21 Martin Liska <mliska@suse.cz>
18161
18162 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18163 an extra newline.
18164 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18165 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18166 vec_lvsr.
18167 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18168 Quote a C type.
18169 (rs6000_function_arg): Likewise.
18170 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18171 (rs6000_expand_ternop_builtin): Use interval syntax.
18172 (get_element_number): Likewise.
18173 (altivec_expand_builtin): Likewise.
18174 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18175
18176 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18177
18178 PR c++/59813
18179 PR target/90418
18180 * function.h (struct function): Add calls_eh_return member.
18181 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18182 gimplifying __builtin_eh_return call.
18183 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18184 to cfun.
18185 (expand_call_inline): Or in src_cfun->calls_eh_return into
18186 dst_cfun->calls_eh_return.
18187 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18188 cfun->calls_eh_return.
18189 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18190 * lto-streamer-out.c (output_struct_function_base): Write
18191 calls_eh_return.
18192
18193 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18194
18195 PR rtl-optimization/43147
18196 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18197 IX86_BUILTIN_SHUFPD.
18198
18199 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18200
18201 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18202 (refs_may_alias_p_1): ... here; update stats.
18203 (refs_may_alias_p): Do not update stats here.
18204
18205 2019-05-20 Richard Biener <rguenther@suse.de>
18206
18207 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18208 doesn't produce pointers.
18209 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18210 the first operand points to.
18211
18212 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18213
18214 * tree-ssa-alias.c (compare_sizes): New function.
18215 (sompare_type_sizes): New function
18216 (aliasing_component_refs_p): Use it.
18217 (indirect_ref_may_alias_decl_p): Likewise.
18218
18219 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18220
18221 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18222
18223 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18224
18225 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18226 (LIBLSAN_EARLY_SPEC): Likewise.
18227 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18228
18229 2019-05-20 Martin Liska <mliska@suse.cz>
18230
18231 * config/i386/i386.c (ix86_libc_has_fast_function):
18232 Add ATTRIBUTE_UNUSED for the argument.
18233
18234 2019-05-20 Richard Biener <rguenther@suse.de>
18235
18236 * gimple-match-head.c: Include vec-perm-indices.h.
18237 * generic-match-head.c: Likewise.
18238 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18239 is included.
18240 * fold-const.c (fold_vec_perm): Export.
18241 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18242 (match.pd): ...here.
18243
18244 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18245
18246 * cfgloop.h (struct loop): Add simdlen member.
18247 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18248 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18249 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18250 as new argument to autovectorize_vector_sizes target hook. If
18251 loop->simdlen, pick up vector size where the vectorization factor
18252 is equal to loop->simd, and if there is none, fall back to the first
18253 successful one.
18254 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18255 caller.
18256 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18257 * omp-general.c (omp_max_vf): Likewise.
18258 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18259 * tree-vect-slp.c (vect_slp_bb): Likewise.
18260 * target.def (autovectorize_vector_sizes): Add ALL argument and
18261 document it.
18262 * doc/tm.texi: Adjust documentation.
18263 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18264 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18265 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18266 bool argument.
18267 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18268 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18269 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18270 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18271 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18272 preferred vector size is not 512-bit or 256-bit, just put those
18273 unpreferred ones last.
18274
18275 2019-05-20 Martin Liska <mliska@suse.cz>
18276
18277 * targhooks.c (default_libc_has_fast_function): New function.
18278 * targhooks.h (default_libc_has_fast_function): Likewise.
18279
18280 2019-05-20 Martin Liska <mliska@suse.cz>
18281
18282 PR middle-end/90263
18283 * builtins.c (expand_builtin_memory_copy_args): When having a
18284 target with fast mempcpy implementation do now use memcpy.
18285 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18286 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18287 * doc/tm.texi: Likewise.
18288 * doc/tm.texi.in: Likewise.
18289 * target.def:
18290 * expr.c (emit_block_move_hints): Add 2 new arguments.
18291 * expr.h (emit_block_move_hints): Bail out when libcall
18292 to memcpy would be used.
18293
18294 2019-05-20 Martin Liska <mliska@suse.cz>
18295
18296 * profile-count.c: Add vertical spacing in order
18297 to separate functions.
18298 * profile-count.h: Likewise.
18299
18300 2019-05-20 Martin Liska <mliska@suse.cz>
18301
18302 * profile-count.h: Do not use full qualified
18303 names if possible.
18304 * profile-count.c (profile_count::to_frequency): Likewise.
18305
18306 2019-05-20 Martin Liska <mliska@suse.cz>
18307
18308 * profile-count.h (enum profile_quality): Use capital letters
18309 for enum value names. Use the adjusted names.
18310 * profile-count.c: Use the adjusted names.
18311
18312 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18313
18314 * config/rs6000/constraints.md (define_register_constraint "wH"):
18315 Delete.
18316 (define_register_constraint "wI"): Delete.
18317 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18318 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18319 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18320 (rs6000_init_hard_regno_mode_ok): Adjust.
18321 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18322 resp. "d", or with "wa" as appropriate, all with "p8v".
18323 * config/rs6000/vsx.md: Ditto.
18324 * doc/md.texi (Machine Constraints): Adjust.
18325
18326 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18327
18328 * config/rs6000/constraints.md (define_register_constraint "wy"):
18329 Delete.
18330 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18331 RS6000_CONSTRAINT_wy.
18332 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18333 (rs6000_init_hard_regno_mode_ok): Adjust.
18334 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18335 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18336 (define_mode_attr Fisa): New.
18337 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18338 * doc/md.texi (Machine Constraints): Adjust.
18339
18340 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18341
18342 * config/rs6000/constraints.md (define_register_constraint "wu"):
18343 Delete.
18344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18345 RS6000_CONSTRAINT_wu.
18346 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18347 (rs6000_init_hard_regno_mode_ok): Adjust.
18348 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18349 both with "p8v".
18350 (define_mode_attr Fa): Delete.
18351 * config/rs6000/vsx.md: Ditto.
18352 * doc/md.texi (Machine Constraints): Adjust.
18353
18354 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18355
18356 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18357 Delete.
18358 (define_register_constraint "wK"): Delete.
18359 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18360 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18361 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18362 (rs6000_init_hard_regno_mode_ok): Adjust.
18363 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18364 Replace "wK" constraint by "wH" with "p9v".
18365 * config/rs6000/vsx.md: Ditto.
18366 * doc/md.texi (Machine Constraints): Adjust.
18367
18368 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18369
18370 * config/rs6000/constraints.md (define_register_constraint "wb"):
18371 Delete.
18372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18373 RS6000_CONSTRAINT_wb.
18374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18375 (rs6000_init_hard_regno_mode_ok): Adjust.
18376 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18377 * config/rs6000/vsx.md: Ditto.
18378 * doc/md.texi (Machine Constraints): Adjust.
18379
18380 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18381
18382 * config/rs6000/constraints.md (define_register_constraint "wo"):
18383 Delete.
18384 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18385 RS6000_CONSTRAINT_wo.
18386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18387 (rs6000_init_hard_regno_mode_ok): Adjust.
18388 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18389 * config/rs6000/altivec.md: Ditto.
18390 * doc/md.texi (Machine Constraints): Adjust.
18391
18392 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18393
18394 * config/darwin-c.c (darwin_register_objc_includes): Do not
18395 prepend the sysroot when building gnu-runtime header search
18396 paths.
18397
18398 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18399
18400 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18401 instead of direct output of the asm.
18402
18403 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18404
18405 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18406 argument to be type bool (was int before).
18407 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18408 at first use. Use type bool for some variables. Fix a theoretical
18409 eh_return bug for svr4.
18410
18411 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18412
18413 * config/rs6000/rs6000.md (isa): New attribute.
18414 (enabled): New attribute.
18415
18416 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18417
18418 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18419 assemble_start_function and assemble_end_function.
18420
18421 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18422
18423 PR middle-end/89433
18424 * omp-general.c (oacc_verify_routine_clauses): Change formal
18425 parameters. Add checking if already marked with an OpenACC
18426 'routine' directive. Adjust all users.
18427
18428 PR middle-end/89433
18429 * omp-general.c (oacc_build_routine_dims): Move some of its
18430 processing into...
18431 (oacc_verify_routine_clauses): ... this new function.
18432 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18433
18434 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18435
18436 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18437 formating of picbase labels to match other ports.
18438
18439 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18440
18441 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18442 in the generated code.
18443
18444 2019-05-16 Martin Sebor <msebor@redhat.com>
18445
18446 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18447 identifiers, keywords, operators, and types in diagnostics. Correct
18448 quoting, spelling, and sentence capitalization issues.
18449 (expand_builtin_atomic_is_lock_free): Same.
18450 (fold_builtin_next_arg): Same.
18451 * cfgexpand.c (expand_one_var): Same.
18452 (tree_conflicts_with_clobbers_p): Same.
18453 (expand_asm_stmt): Same.
18454 (verify_loop_structure): Same.
18455 * cgraphunit.c (process_function_and_variable_attributes): Same.
18456 * collect-utils.c (collect_execute): Same.
18457 * collect2.c (maybe_run_lto_and_relink): Same.
18458 (is_lto_object_file): Same.
18459 (scan_prog_file): Same.
18460 * convert.c (convert_to_real_1): Same.
18461 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18462 * except.c (verify_eh_tree): Same.
18463 * gcc.c (execute): Same.
18464 (eval_spec_function): Same.
18465 (run_attempt): Same.
18466 (driver::set_up_specs): Same.
18467 (compare_debug_auxbase_opt_spec_function): Same.
18468 * gcov-tool.c (unlink_gcda_file): Same.
18469 (do_merge): Same.
18470 (do_rewrite): Same.
18471 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18472 * gimplify.c (gimplify_asm_expr): Same.
18473 (gimplify_adjust_omp_clauses): Same.
18474 * hsa-gen.c (gen_hsa_addr_insns): Same.
18475 (gen_hsa_insns_for_load): Same.
18476 (gen_hsa_cmp_insn_from_gimple): Same.
18477 (gen_hsa_insns_for_operation_assignment): Same.
18478 (gen_get_level): Same.
18479 (gen_hsa_alloca): Same.
18480 (omp_simple_builtin::generate): Same.
18481 (gen_hsa_atomic_for_builtin): Same.
18482 (gen_hsa_insns_for_call): Same.
18483 * input.c (dump_location_info): Same.
18484 * ipa-devirt.c (compare_virtual_tables): Same.
18485 * ira.c (ira_setup_eliminable_regset): Same.
18486 * lra-assigns.c (lra_assign): Same.
18487 * lra-constraints.c (lra_constraints): Same.
18488 * lto-streamer-in.c (lto_input_mode_table): Same.
18489 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18490 (merge_and_complain): Same.
18491 (compile_offload_image): Same.
18492 (compile_images_for_offload_targets): Same.
18493 (debug_objcopy): Same.
18494 (run_gcc): Same.
18495 (main): Same.
18496 * opts.c (print_specific_help): Same.
18497 (parse_no_sanitize_attribute): Same.
18498 (print_help): Same.
18499 (handle_param): Same.
18500 * plugin.c (add_new_plugin): Same.
18501 (parse_plugin_arg_opt): Same.
18502 (try_init_one_plugin): Same.
18503 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18504 operators, and types in diagnostics. Correct quoting and spelling
18505 issues.
18506 * read-rtl-function.c (parse_edge_flag_token): Same.
18507 (function_reader::parse_enum_value): Same.
18508 * reg-stack.c (check_asm_stack_operands): Same.
18509 * regcprop.c (validate_value_data): Same.
18510 * sched-rgn.c (make_pass_sched_fusion): Same.
18511 * stmt.c (check_unique_operand_names): Same.
18512 * targhooks.c (default_target_option_pragma_parse): Same.
18513 * tlink.c (recompile_files): Same.
18514 * toplev.c (process_options): Same.
18515 (do_compile): Same.
18516 * trans-mem.c (diagnose_tm_1): Same.
18517 (ipa_tm_scan_irr_block): Same.
18518 (ipa_tm_diagnose_transaction): Same.
18519 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18520 format a tree code name in a diagnostic.
18521 (verify_types_in_gimple_min_lval): Same.
18522 (verify_types_in_gimple_reference): Same.
18523 (verify_gimple_call): Same.
18524 (verify_gimple_assign_unary): Same.
18525 (verify_gimple_assign_binary): Same.
18526 (verify_gimple_assign_ternary): Same.
18527 (verify_gimple_assign_single): Same.
18528 (verify_gimple_switch): Same.
18529 (verify_gimple_label): Same.
18530 (verify_gimple_phi): Same.
18531 (verify_gimple_in_seq): Same.
18532 (verify_eh_throw_stmt_node): Same.
18533 (collect_subblocks): Same.
18534 (gimple_verify_flow_info): Same.
18535 (do_warn_unused_result): Same.
18536 * tree-inline.c (expand_call_inline): Same.
18537 * tree-into-ssa.c (update_ssa): Same.
18538 * tree.c (tree_int_cst_elt_check_failed): Same.
18539 (tree_vec_elt_check_failed): Same.
18540 (omp_clause_operand_check_failed): Same.
18541 (verify_type_variant): Same.
18542 (verify_type): Same.
18543 * value-prof.c (verify_histograms): Same.
18544 * varasm.c (assemble_start_function): Same.
18545
18546 2019-05-16 Martin Sebor <msebor@redhat.com>
18547
18548 * config/i386/i386-expand.c (get_element_number): Quote keywords
18549 and other internal names in diagnostics. Adjust other diagnostic
18550 formatting issues noted by -Wformat-diag.
18551 * config/i386/i386-features.c
18552 (ix86_mangle_function_version_assembler_name): Same.
18553 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18554 * config/i386/i386.c (ix86_function_type_abi): Same.
18555 (ix86_function_ms_hook_prologue): Same.
18556 (classify_argument): Same.
18557 (ix86_expand_prologue): Same.
18558 (ix86_md_asm_adjust): Same.
18559 (ix86_memmodel_check): Same.
18560
18561 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18562
18563 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18564 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18565 and fpxx modes.
18566
18567 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18568
18569 PR target/90497
18570 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18571 intrinsics without SSE/SSE2/SSSE3.
18572 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18573 check.
18574 (*mmx_uavgv8qi3): Likewise.
18575
18576 2019-05-17 Richard Biener <rguenther@suse.de>
18577
18578 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18579 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18580
18581 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18582
18583 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18584 vec_sldw insn pattern.
18585
18586 2019-05-17 Richard Biener <rguenther@suse.de>
18587
18588 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18589
18590 2019-05-17 Martin Liska <mliska@suse.cz>
18591
18592 PR driver/90496
18593 * toplev.c (output_stack_usage): With LTO and sanitizer it
18594 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18595 has no file location.
18596
18597 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18598
18599 PR c++/90484
18600 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18601 sz0 is equal to sz1, instead return false in that case.
18602
18603 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18604 has non-constant expression, force sctx.lane and use two
18605 argument IFN_GOMP_SIMD_LANE instead of single argument.
18606 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18607 two argument IFN_GOMP_SIMD_LANE without lhs.
18608 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18609 member.
18610 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18611 Define.
18612 (LOOP_REQUIRES_VERSIONING): Or in
18613 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18614 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18615 simd_if_cond.
18616 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18617 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18618 from simd if clause if needed.
18619
18620 2019-05-16 Richard Biener <rguenther@suse.de>
18621
18622 * tree-affine.c (expr_to_aff_combination): New function split
18623 out from...
18624 (tree_to_aff_combination): ... here.
18625 (aff_combination_expand): Avoid building a GENERIC tree.
18626
18627 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18628
18629 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18630 assemble_start_function and assemble_end_function calls.
18631 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18632 assemble_start_function and assemble_end_function.
18633 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18634 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18635 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18636 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18637 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18638 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18639 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18640 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18641 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18642 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18643 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18644 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18645 Likewise.
18646 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18647 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18648 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18649 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18650 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18651 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18652 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18653 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18654 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18655 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18656 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18657 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18658 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18659 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18660 Likewise.
18661 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18662 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18663 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18664
18665 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18666
18667 * tree-ssa-alias.c (alias_stats): Add
18668 aliasing_component_refs_p_may_alias and
18669 aliasing_component_refs_p_no_alias.
18670 (dump_alias_stats): Print aliasing_component_refs_p stats.
18671 (aliasing_component_refs_p): Update stats.
18672
18673 2019-05-16 Martin Liska <mliska@suse.cz>
18674
18675 PR lto/90500
18676 * multiple_target.c (expand_target_clones): Do not allow
18677 target_clones being used with a symbol that is an alias.
18678
18679 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18680
18681 PR tree-optimization/90394
18682 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18683 positives rather than ICE for cases where (code2 == NE_EXPR
18684 && code1 == BIT_AND_EXPR).
18685
18686 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18687
18688 PR fortran/90329
18689 * tree-core.h (struct tree_decl_common): Document
18690 decl_nonshareable_flag for PARM_DECLs.
18691 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18692 * calls.c (expand_call): Don't try tail call if caller
18693 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18694 passed on the stack and callee needs to pass any arguments on the
18695 stack.
18696 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18697 else if instead of series of mutually exclusive ifs. Handle
18698 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18699 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18700
18701 * lto-streamer.h (LTO_major_version): Bump to 9.
18702
18703 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18704
18705 PR tree-optimization/90106
18706 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18707 new parameter as new internal function call, also move it to new
18708 basic block.
18709 (use_internal_fn): Pass internal function call to
18710 shrink_wrap_one_built_in_call_with_conds.
18711
18712 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18713
18714 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18715 max_vf to 1.
18716 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18717 safelen_int and set loop->dont_vectorize.
18718
18719 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18720
18721 PR target/89021
18722 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18723 SSE/SSE2/SSSE3.
18724 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18725 Likewise.
18726 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18727 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18728 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18729 is defined.
18730
18731 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18732
18733 PR target/89021
18734 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18735 define_insn_and_split to support SSE emulation.
18736 (*vec_extractv2sf_0): Likewise.
18737 (*vec_extractv2sf_1): Likewise.
18738 (*vec_extractv2si_0): Likewise.
18739 (*vec_extractv2si_1): Likewise.
18740 (*vec_extractv2si_zext_mem): Likewise.
18741 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18742 (vec_extractv2sf_1 splitter): Likewise.
18743 (vec_extractv2sfsf): Likewise.
18744 (vec_setv2si): Likewise.
18745 (vec_extractv2si_1 splitter): Likewise.
18746 (vec_extractv2sisi): Likewise.
18747 (vec_setv4hi): Likewise.
18748 (vec_extractv4hihi): Likewise.
18749 (vec_setv8qi): Likewise.
18750 (vec_extractv8qiqi): Likewise.
18751 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18752 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18753 (vec_extractv2sisi): Likewise.
18754 (vec_extractv4hihi): Likewise.
18755 (vec_extractv8qiqi): Likewise.
18756 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18757 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18758 (vec_initv2sisi): Likewise.
18759 (vec_initv4hihi): Likewise.
18760 (vec_initv8qiqi): Likewise.
18761 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18762 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18763 (vec_setv4hi): Likewise.
18764 (vec_setv8qi): Likewise.
18765
18766 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18767
18768 PR target/89021
18769 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18770 TARGET_MMX_WITH_SSE.
18771 (MMXMODE:*mov<mode>_internal): Likewise.
18772 (MMXMODE:movmisalign<mode>): Likewise.
18773
18774 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18775
18776 PR target/89021
18777 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18778 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18779 (sse2_cvtpd2pi): Ditto.
18780 (sse2_cvttpd2pi): Ditto.
18781 (*vec_concatv2sf_sse4_1): Ditto.
18782 (*vec_concatv2sf_sse): Ditto.
18783 (*vec_concatv2si_sse4_1): Ditto.
18784 (*vec_concatv2si): Ditto.
18785 (*vec_concatv4si_0): Ditto.
18786 (*vec_concatv2di_0): Ditto.
18787
18788 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18789
18790 PR target/89021
18791 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18792
18793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18794
18795 PR target/89021
18796 * config/i386/sse.md (ssse3_palignrdi): Changed to
18797 define_insn_and_split to support SSE emulation.
18798
18799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18800
18801 PR target/89021
18802 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18803
18804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18805
18806 PR target/89021
18807 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18808 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18809 SSE emulation.
18810
18811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18812
18813 PR target/89021
18814 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18815 or TARGET_MMX_WITH_SSE.
18816 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18817
18818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18819
18820 PR target/89021
18821 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18822
18823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18824
18825 PR target/89021
18826 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18827 Changed to define_insn_and_split to support SSE emulation.
18828
18829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18830
18831 PR target/89021
18832 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18833 Changed to define_insn_and_split to support SSE emulation.
18834
18835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18836
18837 PR target/89021
18838 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18839 (*mmx_<emms>): This.
18840 (mmx_<emms>): New expander.
18841
18842 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18843
18844 PR target/89021
18845 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18846 support.
18847 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18848
18849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18850
18851 PR target/89021
18852 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18853
18854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18855
18856 PR target/89021
18857 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18858
18859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18860
18861 PR target/89021
18862 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18863 TARGET_MMX_WITH_SSE.
18864 (*mmx_uavgv4hi3): Add SSE emulation.
18865
18866 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18867
18868 PR target/89021
18869 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18870 and TARGET_MMX_WITH_SSE.
18871 (*mmx_uavgv8qi3): Add SSE emulation.
18872
18873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18874
18875 PR target/89021
18876 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18877 maskmovdqu for __MMX_WITH_SSE__.
18878
18879 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18880
18881 PR target/89021
18882 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18883 TARGET_MMX and TARGET_MMX_WITH_SSE.
18884 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18885
18886 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18887
18888 PR target/89021
18889 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18890 define_insn_and_split to support SSE emulation.
18891
18892 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18893
18894 PR target/89021
18895 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18896 and TARGET_MMX_WITH_SSE.
18897 (mmx_<code>v8qi3): Likewise.
18898 (smaxmin:<code>v4hi3): New.
18899 (umaxmin:<code>v8qi3): Likewise.
18900 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18901 (umaxmin:*mmx_<code>v8qi3): Likewise.
18902
18903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18904
18905 PR target/89021
18906 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18907 TARGET_MMX_WITH_SSE.
18908 (*mmx_pinsrw): Add SSE emulation.
18909
18910 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18911
18912 PR target/89021
18913 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18914
18915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18916
18917 PR target/89021
18918 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18919 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18920 SSE emulation.
18921
18922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18923
18924 PR target/89021
18925 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18926 (sse_cvttps2pi): Likewise.
18927
18928 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18929
18930 PR target/89021
18931 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18932 TARGET_MMX_WITH_SSE.
18933 (mmx_pshufw_1): Add SSE emulation.
18934 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18935 TARGET_MMX_WITH_SSE to support SSE emulation.
18936
18937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18938
18939 PR target/89021
18940 * config/i386/constraints.md (Yw): New constraint.
18941 * config/i386/mmx.md (*vec_dupv2si): Changed to
18942 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18943 support SSE emulation.
18944
18945 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18946
18947 PR target/89021
18948 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18949 TARGET_MMX_WITH_SSE.
18950 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18951 support.
18952 (mmx_gt<mode>3): Likewise.
18953
18954 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18955
18956 PR target/89021
18957 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18958 TARGET_MMX_WITH_SSE. Add SSE support.
18959
18960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18961
18962 PR target/89021
18963 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18964 TARGET_MMX_WITH_SSE.
18965 (any_logic:<code><mode>3): New.
18966 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18967 Add SSE support.
18968
18969 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18970
18971 PR target/89021
18972 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18973 TARGET_MMX_WITH_SSE. Add SSE emulation.
18974 (mmx_<shift_insn><mode>3): Likewise.
18975 (ashr<mode>3): New.
18976 (<shift_insn><mode>3): Likewise.
18977
18978 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18979
18980 PR target/89021
18981 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18982 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18983
18984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18985
18986 PR target/89021
18987 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18988 TARGET_MMX_WITH_SSE.
18989 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18990 SSE support.
18991
18992 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18993
18994 PR target/89021
18995 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18996 TARGET_MMX_WITH_SSE.
18997 (mulv4hi3): New.
18998 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18999 support.
19000
19001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19002
19003 PR target/89021
19004 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19005 (plusminus:mmx_<plusminus_insn><mode>3): Check
19006 TARGET_MMX_WITH_SSE.
19007 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19008 (<plusminus_insn><mode>3): New.
19009 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19010 (*mmx_<plusminus_insn><mode>3): Likewise.
19011
19012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19013
19014 PR target/89021
19015 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19016 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19017 prototype.
19018 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19019 define_insn_and_split to support SSE emulation.
19020 (mmx_punpcklbw): Likewise.
19021 (mmx_punpckhwd): Likewise.
19022 (mmx_punpcklwd): Likewise.
19023 (mmx_punpckhdq): Likewise.
19024 (mmx_punpckldq): Likewise.
19025
19026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19027 Uros Bizjak <ubizjak@gmail.com>
19028
19029 PR target/89021
19030 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19031 New function.
19032 (ix86_split_mmx_pack): Likewise.
19033 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19034 New prototype.
19035 (ix86_split_mmx_pack): Likewise.
19036 * config/i386/i386.md (mmx_isa): New.
19037 (enabled): Also check mmx_isa.
19038 * config/i386/mmx.md (any_s_truncate): New code iterator.
19039 (s_trunsuffix): New code attr.
19040 (mmx_packsswb): Removed.
19041 (mmx_packssdw): Likewise.
19042 (mmx_packuswb): Likewise.
19043 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19044 MMX packsswb/packuswb with SSE2.
19045 (mmx_packssdw): Likewise.
19046 * config/i386/predicates.md (register_mmxmem_operand): New.
19047
19048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19049
19050 PR target/89021
19051 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19052 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19053 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19054 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19055 (ix86_vector_mode_supported_p): Likewise.
19056 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19057
19058 2019-05-15 Martin Liska <mliska@suse.cz>
19059
19060 PR middle-end/90478
19061 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19062 Check for overflow.
19063
19064 2019-05-15 Richard Biener <rguenther@suse.de>
19065
19066 * tree-into-ssa.c (pass_build_ssa::execute): Run
19067 update_address_taken before going into SSA.
19068
19069 2019-05-15 Richard Biener <rguenther@suse.de>
19070
19071 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19072 as __BIT_FIELD_REF with type with -gimple.
19073
19074 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19075
19076 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19077 semantically equivalent branches (left over after prior refactorings).
19078
19079 2019-05-15 Richard Biener <rguenther@suse.de>
19080
19081 PR tree-optimization/88828
19082 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19083 bogus check.
19084
19085 2019-05-14 Richard Biener <rguenther@suse.de>
19086
19087 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19088 as __VIEW_CONVERT with -gimple.
19089
19090 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19091
19092 PR target/82920
19093 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19094 Darwin.
19095
19096 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19097
19098 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19099 define_split to become a define_insn_and_split.
19100
19101 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19102
19103 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19104 arguments.
19105 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19106 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19107 (sibcall_epilogue): Adjust.
19108 (epilogue): Adjust.
19109
19110 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19111
19112 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19113 to unsupported ones.
19114 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19115 * config.host: Likewise.
19116 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19117 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19118 __svr4__]: Remove "brand" fallback.
19119 [!KSTAT_DATA_STRING]: Remove.
19120 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19121 to *-*-solaris2*.
19122 (comdat_group): Likewise.
19123 (set_have_as_tls): Likewise.
19124 (gcc_cv_target_dl_iterate_phdr): Likewise.
19125 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19126 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19127 * configure: Regenerate.
19128 * doc/install.texi: Simplify Solaris target triplets.
19129 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19130 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19131 Remove Solaris 10 references.
19132 Remove obsolete Solaris bug reference.
19133 (Specific, sparc-sun-solaris2.10): Remove.
19134
19135 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19136
19137 * config/i386/i386.md (any_div): New code iterator.
19138 (paired_mod): New code attribute.
19139 (sgnprefix): Handle DIV and UDIV RTXes.
19140 (u): Ditto.
19141 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19142 and udivmod<mode>4 patterns using any_div code iterator.
19143 (divmod splitters): Macroize splitters using any_div code iterator.
19144 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19145 (*udivmodsi4_pow2_zext_2): Ditto.
19146 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19147 and *udivmod<mode>4_noext patterns using any_div code iterator.
19148 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19149 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19150 patterns using any_div code iterator.
19151 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19152 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19153 patterns using any_div code iterator.
19154 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19155 udivmodhiqi3 patterns using any_extend code iterator.
19156
19157 2019-05-14 Richard Biener <rguenther@suse.de>
19158 H.J. Lu <hongjiu.lu@intel.com>
19159
19160 PR tree-optimization/88828
19161 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19162 permuting in a single non-constant element not extracted
19163 from a vector.
19164
19165 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19166
19167 * internal-fn.def (SIGNBIT): New.
19168 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19169 defined.
19170 (signbitv4sf2): Likewise.
19171
19172 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19173
19174 PR target/90357
19175 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19176 next insn when the SRC reg is dead.
19177
19178 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19179
19180 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19181 (alloc_cand_and_find_basis): Ditto.
19182 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19183 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19184 (create_add_imm_cand, slsr_process_cast): Ditto.
19185 (slsr_process_copy, replace_mult_candidate): Ditto.
19186 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19187 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19188 (pass_strength_reduction::execute): Init the first NULL element.
19189
19190 2019-05-13 Nathan Sidwell <nathan@acm.org>
19191
19192 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19193 (run_attempt): Reformat line break.
19194
19195 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19196
19197 PR target/90418
19198 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19199 data registers in sibcall epilogues.
19200 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19201
19202 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19203
19204 PR target/89221
19205 * configure.ac (--enable-frame-pointer):
19206 Disable by default for cygwin and mingw.
19207 * configure: Regenerate.
19208
19209 2019-05-13 Nathan Sidwell <nathan@acm.org>
19210
19211 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19212 piece of code.
19213 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19214 (gen_member_die): Move abstract origin check earlier. Only VARs
19215 can be static_inline_p. Simplify splicing control flow.
19216
19217 2019-05-13 Richard Biener <rguenther@suse.de>
19218
19219 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19220 VIEW_CONVERT_EXPR.
19221 (vect_build_slp_tree_1): Likewise.
19222
19223 2019-05-13 Richard Biener <rguenther@suse.de>
19224
19225 PR tree-optimization/90402
19226 * tree-if-conv.c (tree_if_conversion): Value number only
19227 the loop body by making the latch an exit of the region
19228 as well.
19229 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19230 processing PHIs.
19231 (do_rpo_vn): Deal with multiple edges into the entry block
19232 that are not backedges inside the region by skipping PHIs
19233 of the entry block.
19234
19235 2019-05-13 Richard Biener <rguenther@suse.de>
19236
19237 PR tree-optimization/90316
19238 * tree-ssa-pre.c (insert_aux): Fold into ...
19239 (insert): ... this function. Use a RPO walk to reduce the
19240 number of required iterations.
19241
19242 2019-05-13 Martin Liska <mliska@suse.cz>
19243
19244 PR tree-optimization/90416
19245 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19246 string instead of passing the second part as va_arg argument.
19247
19248 2019-05-13 Martin Liska <mliska@suse.cz>
19249
19250 PR gcov-profile/90380
19251 * gcov.c (handle_cycle): Do not support zero cycle count,
19252 it should not be possible.
19253 (path_contains_zero_cycle_arc): New function.
19254 (circuit): Ignore zero cycle arc counts.
19255
19256 2019-05-13 Martin Liska <mliska@suse.cz>
19257
19258 PR gcov-profile/90380
19259 * gcov.c (enum loop_type): Remove the enum and
19260 the operator.
19261 (handle_cycle): Assert that we should not reach
19262 a negative count.
19263 (circuit): Use loop_found instead of a tri-state loop_type.
19264 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19265 happen.
19266
19267 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19268
19269 PR target/82920
19270 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19271 (ix86_output_indirect_branch_via_reg): Use output mechanism
19272 accounting for __USER_LABEL_PREFIX__.
19273 (ix86_output_indirect_branch_via_push): Likewise.
19274 (ix86_output_function_return): Likewise.
19275 (ix86_output_indirect_function_return): Likewise.
19276
19277 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19278
19279 * doc/md.texi: Document use of code attributes in rtx patterns.
19280 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19281 * read-rtl.c (find_code): Split out search loops into...
19282 (maybe_find_code): ...this new function.
19283 (check_code_iterator): Make the error message more informative.
19284 (check_code_attribute): New function.
19285 (rtx_reader::rtx_alloc_for_name): Likewise.
19286 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19287 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19288 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19289 <max_opp> directly as an rtx code instead of via a match_operator.
19290 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19291 (<su>abd<mode>_3): Update accordingly.
19292
19293 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19294
19295 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19296 is given, print the state of the EH "save world" computation for
19297 Darwin.
19298
19299 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19300
19301 PR c++/59813
19302 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19303 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19304
19305 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19306
19307 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19308 Use pinsrd for TARGET_SSE4_1.
19309 * config/i386/sse.md (movdi_to_sse): Ditto.
19310
19311 2019-05-10 Richard Biener <rguenther@suse.de>
19312
19313 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19314 (do_rpo_vn): Initialize next_value_id.
19315
19316 2019-05-10 Martin Liska <mliska@suse.cz>
19317
19318 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19319 Fix plural form.
19320
19321 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19322
19323 PR tree-optimization/90385
19324 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19325 arguments of the exit phis.
19326
19327 PR c++/90383
19328 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19329 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19330 id->do_not_fold.
19331 (copy_tree_body_r): Likewise.
19332 (copy_fn): Set id.do_not_fold to true.
19333
19334 2019-05-10 Martin Liska <mliska@suse.cz>
19335
19336 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19337 Reapply changes from r269790.
19338
19339 2019-05-10 Martin Liska <mliska@suse.cz>
19340
19341 PR middle-end/90340
19342 * doc/invoke.texi: New params.
19343 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19344 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19345 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19346 Use it.
19347 * tree-switch-conversion.h (struct jump_table_cluster):
19348 Likewise.
19349
19350 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19351
19352 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19353
19354 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19355
19356 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19357
19358 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19359
19360 PR rtl-optimization/88879
19361 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19362
19363 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19364
19365 PR target/90405
19366 * config/arm/arm.c (callee_saved_reg_p): Move before
19367 thumb_find_work_register.
19368 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19369 thumb_find_work_register. Only call df_get_live_out once.
19370 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19371 (thumb_find_work_register): Use
19372 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19373 algorithms to locate a spare call clobbered reg.
19374
19375 2019-05-09 Martin Liska <mliska@suse.cz>
19376
19377 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19378 and MAX_EXPR in GIMPLE FE format.
19379
19380 2019-05-09 Martin Liska <mliska@suse.cz>
19381
19382 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19383 * gimple-pretty-print.c (dump_gimple_bb_header):
19384 Dump BB count.
19385 (pp_cfg_jump): Dump edge probability.
19386 * profile-count.c (profile_quality_as_string): Simplify
19387 with a static array.
19388 (parse_profile_quality): New function.
19389 (profile_count::dump): Simplify with a static array.
19390 (profile_count::from_gcov_type): Add new argument.
19391 * profile-count.h (parse_profile_quality): Likewise.
19392 * predict.h (set_hot_bb_threshold): New.
19393 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19394 New param.
19395 * predict.c (get_hot_bb_threshold): Set from the new param.
19396 (set_hot_bb_threshold): New.
19397
19398 2019-05-09 Richard Biener <rguenther@suse.de>
19399
19400 PR tree-optimization/90395
19401 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19402 rewrite vector stores that throw internally.
19403
19404 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19405
19406 * cif-code.def (CHKP): Remove.
19407
19408 PR target/89221
19409 * configure.ac (--enable-frame-pointer): Disable by default for
19410 GNU systems.
19411 * configure: Regenerate.
19412
19413 2019-05-09 Alan Modra <amodra@gmail.com>
19414
19415 PR target/89271
19416 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19417 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19418 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19419 cost for general <-> vsx when direct moves are available.
19420 Cost union classes at minimal cost for any reg in the class.
19421 Correct calculation for moves between vsx, float, and altivec.
19422 Don't return a low cost for moves between special regs. Don't
19423 use hard coded register numbers.
19424 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19425 (rs6000_ira_change_pseudo_allocno_class): New function.
19426 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19427 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19428 alternatives.
19429 (movsi_internal1): Don't disparage vector alternatives.
19430 (mov<mode>_internal): Likewise, excepting alternative that
19431 will be split.
19432 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19433 we <- b alternative.
19434
19435 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19436
19437 PR c++/59813
19438 PR tree-optimization/89060
19439 * tree-ssa-live.h (live_vars_map): New typedef.
19440 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19441 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19442 (struct compute_live_vars_data): New type.
19443 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19444 live_vars_at_stmt, destroy_live_vars): New functions.
19445 * tree-tailcall.c: Include tree-ssa-live.h.
19446 (live_vars, live_vars_vec): New global variables.
19447 (find_tail_calls): Perform variable life analysis before punting.
19448 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19449 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19450 member.
19451 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19452 Perform variable life analysis to select variables that really need
19453 clobbers added.
19454 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19455 instead set id->eh_landing_pad_dest and assert it is the same.
19456 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19457
19458 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19459 Richard Earnshaw <rearnsha@arm.com>
19460
19461 PR target/88167
19462 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19463 function.
19464 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19465 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19466 register if both the epilogue and prologue can use call-clobbered
19467 regs.
19468 (thumb1_unexpanded_epilogue): Use
19469 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19470 picking temporaries for restoring high regs to match that of the
19471 prologue where possible.
19472 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19473 the list of work registers. Detect if the return address is still live
19474 at the end of the prologue and avoid using it for a work register if so.
19475 If the return address is not live, add LR to the list of pushable regs
19476 after the first pass.
19477
19478 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19479
19480 PR tree-optimization/90078
19481 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19482 (INFTY): Increase the value for infinite cost.
19483 (struct comp_cost): Promote type of members to int64_t.
19484 (infinite_cost): Don't set complexity in initialization.
19485 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19486 overflows to infinite_cost.
19487 (adjust_setup_cost): Promote type of parameter and cost computation
19488 to int64_t.
19489 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19490 int64_t.
19491 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19492 cost computation to int64_t.
19493 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19494 int64_t's format specifier in dump.
19495
19496 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19497
19498 PR tree-optimization/90240
19499 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19500 with respect to scaling factor pre-computed for each basic block.
19501 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19502 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19503 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19504 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19505 live range for array of loop's basic blocks. Cleanup aux field of
19506 loop's basic blocks.
19507
19508 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19509
19510 PR tree-optimization/90356
19511 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19512
19513 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19514
19515 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19516 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19517 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19518 (ix86_handle_option): Handle -mavx512bf16.
19519 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19520 to extra_headers.
19521 * config/i386/avx512bf16vlintrin.h: New.
19522 * config/i386/avx512bf16intrin.h: New.
19523 * config/i386/cpuid.h (bit_AVX512BF16): New.
19524 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19525 * config/i386/i386-builtin-types.def: Add new types.
19526 * config/i386/i386-builtin.def: Add new builtins.
19527 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19528 __AVX512BF16__.
19529 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19530 (ix86_option_override_internal): Handle BF16.
19531 (ix86_valid_target_attribute_inner_p): Ditto.
19532 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19533 * config/i386/i386-builtin.c (enum processor_features): Add
19534 F_AVX512BF16.
19535 (static const _isa_names_table isa_names_table): Ditto.
19536 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19537 (PTA_AVX512BF16): Ditto.
19538 * config/i386/i386.opt: Add -mavx512bf16.
19539 * config/i386/immintrin.h: Include avx512bf16intrin.h
19540 and avx512bf16vlintrin.h.
19541 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19542 avx512f_cvtneps2bf16_<mode><mask_name>,
19543 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19544 * config/i386/subst.md (mask_half): Add new subst.
19545 * doc/invoke.texi: Document -mavx512bf16.
19546
19547 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19548
19549 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19550 Delete declaration.
19551 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19552 (rs6000_debug_legitimize_reload_address): Delete.
19553 (rs6000_legitimize_reload_address_ptr): Delete.
19554 (rs6000_option_override_internal): Adjust.
19555 (mem_operand_gpr): Adjust comment.
19556 (legitimate_lo_sum_address_p): Ditto.
19557 (rs6000_legitimize_reload_address): Delete.
19558 (rs6000_debug_legitimize_reload_address): Delete.
19559 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19560
19561 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19562
19563 PR target/89765
19564 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19565 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19566 to compute vector element selector for both constant and variable
19567 operands.
19568
19569 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19570
19571 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19572 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19573 ashrdi3_cvt using SWI48 mode iterator.
19574
19575 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19576
19577 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19578 (aarch64_<su>abd<mode>_3): Likewise.
19579 (*aarch64_<su>abd<mode>_3): New define_insn.
19580 (<sur>sad<vsi2qi>): New define_expand.
19581 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19582 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19583 (build_vect_cond_expr): Likewise.
19584
19585 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19586
19587 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19588 clobbers outside of accessible_reg_set.
19589 * config/i386/i386.c (ix86_conditional_register_usage):
19590 Disable register sets by clearing corresponding bits in
19591 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19592 call_used_regs and don't clear corresponding reg_names array members.
19593
19594 2019-05-07 Richard Biener <rguenther@suse.de>
19595
19596 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19597 not specified still compute a comp_vectype for invariant
19598 compares.
19599
19600 2019-05-07 Richard Biener <rguenther@suse.de>
19601
19602 PR tree-optimization/90316
19603 * tree-ssa-pre.c (translate_vuse_through_block): When
19604 same_valid is NULL do not bother to search for a virtual
19605 PHI continuation.
19606 (phi_translate_1): When operands changed we cannot keep
19607 the same value-number so do not bother to ask whether
19608 that's possible from translate_vuse_through_block.
19609
19610 2019-05-07 Martin Liska <mliska@suse.cz>
19611
19612 * bitmap.c (bitmap_register): Come up with
19613 alloc_descriptor_max_uid and assign it for
19614 a new bitmap.
19615 (register_overhead): Use get_descriptor as
19616 a descriptor.
19617 (release_overhead): New.
19618 (bitmap_elem_to_freelist): Call it.
19619 (bitmap_elt_clear_from): Likewise.
19620 (bitmap_obstack_free): Likewise.
19621 (bitmap_move): Sensitively release memory.
19622 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19623 (bitmap_initialize): Initialize alloc_descriptor to zero.
19624 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19625
19626 2019-05-07 Richard Biener <rguenther@suse.de>
19627
19628 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19629 we build a SLP node. Remove max_size and limiting.
19630 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19631
19632 2019-05-07 Richard Biener <rguenther@suse.de>
19633
19634 PR tree-optimization/90316
19635 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19636 limit by reference.
19637 (walk_non_aliased_vuses): Take walking limit argument.
19638 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19639 walking if it is reached instead of just counting.
19640 (get_continuation_for_phi): Likewise.
19641 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19642 limiting to the callback.
19643 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19644 (vn_reference_lookup_3): Likewise.
19645 (vn_reference_lookup_pieces): Likewise.
19646 (vn_reference_lookup): Likewise.
19647 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19648 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19649 (avail_exprs_stack::lookup_avail_expr): Likewise.
19650
19651 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19652
19653 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19654 for comparaible types in the second direction even if first one
19655 hits incomparable type.
19656
19657 2019-05-07 Richard Biener <rguenther@suse.de>
19658
19659 PR lto/90369
19660 * lto-wrapper.c (debug_objcopy): Use the original filename
19661 including archive offset for the filename used for -save-temps.
19662
19663 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19664
19665 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19666 detection.
19667
19668 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19669 Hongtao Liu <hongtao.liu@intel.com>
19670
19671 PR target/89750
19672 PR target/86444
19673 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19674 Modified, original implementation isn't correct.
19675
19676 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19677
19678 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19679 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19680 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19681 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19682 (FRAME_POINTER_REGNUM): Change numbering.
19683 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19684 (alt_reg_names): Adjust.
19685 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19686 fixed.
19687 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19688 (DWARF_FRAME_REGISTERS): Delete.
19689 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19690 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19691 Adjust.
19692 (REG_ALLOC_ORDER): Adjust.
19693 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19694 (REG_CLASS_CONTENTS): Adjust.
19695 (RETURN_ADDR_RTX): Change comment.
19696 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19697 instead of 67.
19698 (REGISTER_NAMES): Adjust.
19699 (ADDITIONAL_REGISTER_NAMES): Adjust.
19700 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19701
19702 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19703
19704 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19705 Delete.
19706 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19707 (DWARF_FRAME_REGISTERS): Adjust.
19708 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19709 Adjust.
19710 (REG_ALLOC_ORDER): Adjust.
19711 (enum reg_class): Delete SPR_REGS.
19712 (REG_CLASS_NAMES): Delete SPR_REGS.
19713 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19714 (REGISTER_NAMES): Adjust.
19715 (ADDITIONAL_REGISTER_NAMES): Adjust.
19716 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19717 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19718 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19719 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19720 (htm_spr_regno): Delete.
19721 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19722 argument.
19723 (rs6000_dbx_register_number): Adjust.
19724
19725 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19726
19727 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19728
19729 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19730
19731 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19732 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19733
19734 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19735
19736 PR tree-optimization/88709
19737 PR tree-optimization/90271
19738 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19739 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19740 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19741 variable.
19742 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19743 of the store merging group is larger than
19744 PARAM_STORE_MERGING_MAX_SIZE parameter.
19745 (split_group): Add bzero_first argument. If set, always emit first
19746 the first store which must be = {} of the whole area and then for the
19747 rest of the stores consider all zero bytes as paddings.
19748 (imm_store_chain_info::output_merged_store): Check if first store
19749 is = {} of the whole area and if yes, determine which setting of
19750 bzero_first for split_group gives smaller number of stores. Adjust
19751 split_group callers.
19752 (lhs_valid_for_store_merging_p): Allow decls.
19753 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19754 no elts.
19755 (pass_store_merging::process_store): Likewise.
19756
19757 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19758
19759 PR target/89424
19760 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19761 handling of V1TImode.
19762
19763 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19764
19765 PR target/89221
19766 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19767 and enable_frame_pointer ...
19768 * configure.ac: ... here. Update help strings for
19769 --enable-frame-pointer.
19770 * configure: Regenerate.
19771 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19772 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19773 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19774 (USE_X86_64_FRAME_POINTER): Ditto.
19775
19776 2019-05-06 Martin Liska <mliska@suse.cz>
19777
19778 * config.gcc: Append to target_gtfiles and fix indentation.
19779
19780 2019-05-06 Richard Biener <rguenther@suse.de>
19781
19782 PR tree-optimization/90358
19783 * tree-vect-stmts.c (get_group_load_store_type): Properly
19784 detect unused upper half of load.
19785 (vectorizable_load): Likewise.
19786
19787 2019-05-06 Richard Biener <rguenther@suse.de>
19788
19789 PR tree-optimization/88828
19790 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19791 (simplify_vector_constructor): ...here. Handle constants in
19792 the constructor.
19793
19794 2019-05-06 Richard Biener <rguenther@suse.de>
19795
19796 PR tree-optimization/90328
19797 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19798 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19799 is valid in the loop nest before using it.
19800 (initialize_data_dependence_relation): Adjust.
19801 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19802 loop as loop-nest to dr_may_alias_p.
19803
19804 2019-05-06 Richard Biener <rguenther@suse.de>
19805
19806 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19807
19808 2019-05-06 Richard Biener <rguenther@suse.de>
19809
19810 PR tree-optimization/90316
19811 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19812 compute target on demand.
19813 (get_continuation_for_phi): Remove code walking stmts to
19814 get to a target virtual operand which could end up being
19815 quadratic.
19816
19817 2019-05-06 Martin Liska <mliska@suse.cz>
19818
19819 PR sanitizer/90312
19820 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19821 when -mabi is selected to a non-default version.
19822
19823 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19824 Martin Liska <mliska@suse.cz>
19825
19826 * Makefile.in: Add lto-dump.texi.
19827 * cgraph.h: Add new functions get_visibility_string and
19828 get_symtab_type_string.
19829 * doc/gcc.texi: Include lto-dump section.
19830 * doc/lto-dump.texi: New file.
19831 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19832 (parse_dump_option): Factor out this function.
19833 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19834 (parse_dump_option): Export the function.
19835 * symtab.c (symtab_node::get_visibility_string): New function.
19836 (symtab_node::get_symtab_type_string): Likewise.
19837
19838 2019-05-06 Martin Liska <mliska@suse.cz>
19839
19840 * config/i386/i386-builtins.c: New file.
19841 * config/i386/i386-builtins.h: New file.
19842 * config/i386/i386-expand.c: New file.
19843 * config/i386/i386-expand.h: New file.
19844 * config/i386/i386-features.c: New file.
19845 * config/i386/i386-features.h: New file.
19846 * config/i386/i386-options.c: New file.
19847 * config/i386/i386-options.h: New file.
19848 * config.gcc: Add new files into extra_objs and
19849 target_gtfiles.
19850 * config/i386/i386.c: Split content of the file
19851 into newly introduced files.
19852 * config/i386/i386.h: Declare common variables
19853 and macros.
19854 * config/i386/t-i386: Define dependencies for new files.
19855
19856 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19857
19858 PR target/89400
19859 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19860 Restrict 'all' variant to 32-bit configurations.
19861 (unaligned_loadhiu): Likewise.
19862 (unaligned_storehi): Likewise.
19863 (unaligned_storesi): Likewise.
19864 (unaligned_loadhis): Disable when compiling for thumb1.
19865
19866 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19867
19868 PR tree-optimization/90269
19869 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19870 Ignore clobbers.
19871
19872 2019-05-03 Martin Liska <mliska@suse.cz>
19873
19874 * hash-map.h: Add is_empty function.
19875 * hash-set.h: Likewise.
19876 * hash-table.h: Likewise.
19877 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19878 elements () == 0 (and similar usages).
19879 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19880 * gimplify.c (gimplify_bind_expr): Likewise.
19881 (gimplify_switch_expr): Likewise.
19882 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19883 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19884 * postreload-gcse.c (dump_hash_table): Likewise.
19885 (gcse_after_reload_main): Likewise.
19886 * predict.c (combine_predictions_for_bb): Likewise.
19887 * tree-parloops.c (reduction_phi): Likewise.
19888 (separate_decls_in_region): Likewise.
19889 (transform_to_exit_first_loop): Likewise.
19890 (gen_parallel_loop): Likewise.
19891 (gather_scalar_reductions): Likewise.
19892 (try_create_reduction_list): Likewise.
19893 * var-tracking.c (dump_vars): Likewise.
19894 (emit_notes_for_changes): Likewise.
19895 (vt_emit_notes): Likewise.
19896
19897 2019-05-03 Richard Biener <rguenther@suse.de>
19898
19899 PR tree-optimization/90316
19900 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19901 before running VN.
19902
19903 2019-05-03 Richard Biener <rguenther@suse.de>
19904
19905 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19906 peeling for gaps by loading only lower halves of vectors
19907 if possible.
19908 (vectorizable_load): Likewise.
19909
19910 2019-05-03 Richard Biener <rguenther@suse.de>
19911
19912 PR middle-end/89518
19913 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19914
19915 2019-05-03 Richard Biener <rguenther@suse.de>
19916
19917 PR middle-end/87314
19918 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19919 Handle STRING_CST vs DECL or STRING_CST.
19920
19921 2019-05-03 Richard Biener <rguenther@suse.de>
19922
19923 PR tree-optimization/88963
19924 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19925 vector loads feeding only BIT_FIELD_REFs to component
19926 loads. Rewrite stores fed by CONSTRUCTORs to component
19927 stores.
19928
19929 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19930
19931 * opts.h (finish_options): Remove lang_mask argument.
19932 (print_help, help_option_argument): Declare.
19933 * opts.c (print_help): Remove forward declaration, no longer static.
19934 (finish_options): Remove lang_mask argument, don't call print_help
19935 here.
19936 * opts-global.c (decode_options): Adjust finish_option caller, call
19937 print_help here.
19938
19939 PR tree-optimization/90303
19940 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19941 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19942
19943 2019-05-03 Richard Biener <rguenther@suse.de>
19944
19945 PR tree-optimization/89698
19946 * gimple-fold.c (canonicalize_constructor_val): Early out
19947 for constants, handle unfolded INTEGER_CSTs as they appear in
19948 C++ virtual table ctors.
19949
19950 2019-05-03 Richard Biener <rguenther@suse.de>
19951
19952 * passes.c (execute_function_todo): Remove dead code.
19953
19954 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19955
19956 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19957 the internal register number, for any "real" register.
19958
19959 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19960
19961 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19962 correct numbers for TFHAR, TFIAR, TEXASR.
19963
19964 2019-05-02 Richard Biener <rguenther@suse.de>
19965
19966 PR tree-optimization/89653
19967 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19968 update-address-taken before the pass.
19969 * passes.def (pass_tree_loop_init): Put comment before it.
19970
19971 2019-05-02 Richard Biener <rguenther@suse.de>
19972
19973 PR tree-optimization/89509
19974 * tree-ssa-structalias.c (compute_dependence_clique): Look
19975 at the first subvar when determining whether it is restrict.
19976
19977 2019-05-02 Richard Biener <rguenther@suse.de>
19978
19979 PR tree-optimization/90273
19980 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19981 useless debug stmts.
19982
19983 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19984
19985 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19986 ACLE branch.
19987 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19988 SVE ACLE branch.
19989 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19990 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19991 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19992 (vectorizable_reduction): Use the functions above to vectorize in a
19993 fully masked loop codes that don't have a conditional internal
19994 function.
19995
19996 2019-05-02 Martin Liska <mliska@suse.cz>
19997
19998 * cgraphclones.c: Call valid_attribute_p with 1 for
19999 target_clone.
20000 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20001 it's for target attribute.
20002 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20003 Add new boolean argument.
20004 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20005 Likewise.
20006 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20007 to ix86_valid_target_attribute_inner_p.
20008 (ix86_valid_target_attribute_p): Pass flags argument to
20009 ix86_valid_target_attribute_inner_p.
20010 (get_builtin_code_for_version): Use 0 as it's target attribute.
20011
20012 2019-05-02 Martin Liska <mliska@suse.cz>
20013
20014 * gcc.c (process_command): Add dummy file only
20015 if n_infiles == 0.
20016 * opts-global.c (decode_options): Pass lang_mask.
20017 * opts.c (print_help): New function.
20018 (finish_options): Print --help if help_option_argument
20019 is set.
20020 (common_handle_option): Factor out content of OPT__help_
20021 into print_help.
20022 * opts.h (finish_options): Add new argument.
20023
20024 2019-05-02 Martin Liska <mliska@suse.cz>
20025
20026 PR target/88809
20027 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20028 With -minline-all-stringops use inline expansion using 4B loop.
20029 * doc/invoke.texi: Document the change of
20030 -minline-all-stringops.
20031
20032 2019-05-01 Jeff Law <law@redhat.com>
20033
20034 PR tree-optimization/88797
20035 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20036 PHI feeds a conditional on the RHS of an assignment.
20037
20038 2019-04-30 Andrew Waterman <andrew@sifive.com>
20039 Jim Wilson <jimw@sifive.com>
20040
20041 * config/riscv/constraints.md (L): New.
20042 * config/riscv/predicates.md (lui_operand): New.
20043 (sfb_alu_operand): New.
20044 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20045 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20046 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20047 * config/riscv/risc.md (type): Add sfb_alu.
20048 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20049 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20050 (branch_zero<mode>): Delete.
20051 (mov<mode>cc): New.
20052 (mov<GPR:mode><X:mode>cc): Likewise.
20053 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20054
20055 2019-04-30 Nathan Sidwell <nathan@acm.org>
20056
20057 * tree.h (MARK_TS_EXP): New.
20058
20059 2019-04-30 Martin Liska <mliska@suse.cz>
20060
20061 * opts.c (enable_warning_as_error): Provide hints
20062 for unknown options.
20063
20064 2019-04-30 Martin Liska <mliska@suse.cz>
20065
20066 PR debug/90288
20067 * doc/invoke.texi: Add missing dash for gas-locview-support
20068 and gno-as-locview-support.
20069
20070 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20071
20072 PR target/89093
20073 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20074 whitespace at the start of target attribute string.
20075
20076 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20077
20078 PR target/86538
20079 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20080 Define __ARM_FEATURE_ATOMICS.
20081
20082 2019-04-30 Martin Liska <mliska@suse.cz>
20083
20084 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20085 into built_in_function enum. Remove code for endp == 2 and
20086 use BUILT_IN_* constants.
20087 (gimple_fold_builtin): Call the function with fcode.
20088
20089 2019-04-30 Martin Liska <mliska@suse.cz>
20090
20091 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20092 DECL_FUNCTION_CODE into ix86_builtins enum before
20093 the switch statement.
20094
20095 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20096
20097 PR tree-optimization/89475
20098 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20099 calls.
20100
20101 2019-04-30 Martin Liska <mliska@suse.cz>
20102
20103 PR translation/90274
20104 * opts.c (print_filtered_help): Wrap string in _(...).
20105
20106 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20107
20108 PR tree-optimization/90240
20109 Revert:
20110 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20111
20112 PR tree-optimization/90078
20113 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20114 checks for infinite_cost overflow.
20115
20116 2019-04-29 Jeff Law <law@redhat.com>
20117
20118 * passes.def: Move -Wrestrict pass after copy propagation.
20119
20120 2019-04-29 Maya Rashish <coypu@sdf.org>
20121
20122 * config.gcc (default_gnu_indirect_function): Default to yes
20123 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20124 sparc*-*-netbsd*, x86_64-*-netbsd*.
20125
20126 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20127
20128 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20129 where cond2 is NE_EXPR.
20130 (is_value_included_in): Update comment.
20131
20132 2019-04-29 Richard Biener <rguenther@suse.de>
20133
20134 PR tree-optimization/90278
20135 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20136 EH on comparison simplification.
20137
20138 2019-04-29 Jason Merrill <jason@redhat.com>
20139
20140 PR c++/82081 - tail call optimization breaks noexcept
20141 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20142 nothrow function to a might-throw function into a tail call.
20143
20144 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20145
20146 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20147 (DDR_INNER_LOOP): Likewise.
20148 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20149 (initialize_data_dependence_relation): Likewise.
20150 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20151
20152 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20153
20154 PR rtl-optimization/90257
20155 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20156 return value.
20157
20158 Revert the revert:
20159 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20160
20161 PR target/90178
20162 Revert:
20163 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20164
20165 Revert the revert:
20166 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20167
20168 Revert:
20169 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20170
20171 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20172
20173 2019-04-29 Richard Biener <rguenther@suse.de>
20174
20175 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20176 rhs issue a reset.
20177
20178 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20179
20180 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20181 varasm.h, and netbsd-protos.h.
20182
20183 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20184
20185 PR target/89261
20186 * config/i386/i386-protos.h (ix86_data_alignment): Change
20187 the second argument type to unsigned int.
20188 * config/i386/i386.c (ix86_data_alignment): Change "align"
20189 argument type to unsigned int.
20190
20191 2019-04-27 Martin Liska <mliska@suse.cz>
20192
20193 PR middle-end/90258
20194 * opt-suggestions.c (option_proposer::build_option_suggestions):
20195 When get_valid_option_values returns empty values, add the
20196 misspelling candidate.
20197
20198 2019-04-26 Jim Wilson <jimw@sifive.com>
20199
20200 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20201 parameter.
20202 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20203 Pass orig_mode to riscv_build_integer.
20204 (riscv_split_integer): Pass mode to riscv_move_integer.
20205 (riscv_legitimize_const_move): Likewise.
20206 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20207 promoted_mode. Replace force_reg call with code to load constant into
20208 promoted reg and then subreg it for the store.
20209 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20210 riscv_move_integer.
20211
20212 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20213
20214 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20215 corrupt codes.
20216
20217 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20218
20219 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20220 commentary about the encoding of precision.
20221
20222 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20223
20224 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20225 * config/i386/t-freebsd64: New file.
20226 * config.gcc: Add the t-freebsd64 for multilib support.
20227
20228 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20229
20230 * doc/extend.texi (vector_size): Add missing comma after @xref.
20231
20232 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20233
20234 * BASE-VER: Set to 10.0.0.
20235
20236 2019-04-25 Richard Biener <rguenther@suse.de>
20237
20238 PR middle-end/89765
20239 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20240 VIEW_CONVERT_EXPR into one operating on an rvalue.
20241
20242 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20243
20244 PR target/89929
20245 * config/i386/i386.c (feature_priority): Moved to file scope.
20246 (processor_features): Likewise.
20247 (processor_model): Likewise.
20248 (_arch_names_table): Likewise.
20249 (arch_names_table): Likewise.
20250 (_feature_list): Removed.
20251 (feature_list): Likewise.
20252 (_isa_names_table): Moved to file scope. Add priority.
20253 (isa_names_table): Likewise.
20254 (get_builtin_code_for_version): Replace feature_list with
20255 isa_names_table. Update error message for P_ZERO priority.
20256
20257 2019-04-25 Richard Biener <rguenther@suse.de>
20258
20259 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20260 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20261
20262 2019-04-24 Jeff Law <law@redhat.com>
20263
20264 PR tree-optimization/90037
20265 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20266 * passes.def: Replace all instance of phi-only cprop with the
20267 lattice propagator. Move propagation pass from after erroneous
20268 path isolation to before erroneous path isolation.
20269 * tree-ssa-phionlycprop.c: Remove.
20270
20271 2019-04-24 Richard Biener <rguenther@suse.de>
20272
20273 PR middle-end/90213
20274 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20275 by size and BITS_PER_UNIT on poly-wide-ints.
20276
20277 2019-04-25 Richard Biener <rguenther@suse.de>
20278
20279 PR middle-end/90194
20280 * match.pd: Add pattern to simplify view-conversion of an
20281 empty constructor.
20282
20283 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20284
20285 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20286 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20287 for Go on 32 bit AIX.
20288 * config/rs6000/aix72.h: Likewise.
20289
20290 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20291
20292 PR target/90193
20293 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20294 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20295
20296 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20297
20298 PR target/89952
20299 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20300 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20301 for restored hard frame pointer.
20302 (s390_sched_dependencies_evaluation): Implement new target hook.
20303 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20304
20305 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20306
20307 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20308 * config/arc/arc.c (arc_init): Cleanup warning message.
20309 (arc_override_options): Likewise.
20310
20311 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20312
20313 PR target/90187
20314 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20315 a register if both if_true and if_false are MEMs.
20316
20317 PR tree-optimization/90208
20318 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20319 after labels of new_bb, not before them.
20320
20321 PR tree-optimization/90211
20322 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20323 which are not SSA_NAMEs.
20324
20325 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20326
20327 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20328 AArch64.
20329 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20330
20331 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20332
20333 PR rtl-optimization/87979
20334 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20335 not equal zero.
20336
20337 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20338
20339 PR rtl-optimization/84032
20340 * modulo-sched.c (ps_insn_find_column): Change condition so that
20341 branch will always be the last insn in a row inside partial
20342 schedule.
20343
20344 2019-04-23 Richard Biener <rguenther@suse.de>
20345
20346 PR debug/90131
20347 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20348 dest_single_pred_p argument.
20349 (remove_forwarder_block): Adjust.
20350 (remove_forwarder_block_with_phi): Likewise.
20351
20352 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20353 Bernd Edlinger <bernd.edlinger@hotmail.de>
20354 Jakub Jelinek <jakub@redhat.com>
20355
20356 PR target/89093
20357 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20358 if used with general-regs-only.
20359 (arm_conditional_register_usage): Don't add non-general regs if
20360 general-regs-only.
20361 (arm_valid_target_attribute_rec): Handle general-regs-only.
20362 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20363 general-regs-only.
20364 (TARGET_HARD_FLOAT_SUB): Define.
20365 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20366 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20367 (TARGET_REALLY_IWMMXT2): Likewise.
20368 * config/arm/arm.opt: Add -mgeneral-regs-only.
20369 * doc/extend.texi: Document ARM general-regs-only target.
20370 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20371
20372 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20373
20374 PR tree-optimization/90078
20375 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20376 checks for infinite_cost overflow.
20377
20378 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20379
20380 PR tree-optimization/90021
20381 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20382 and check univariate against it.
20383 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20384 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20385
20386 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20387
20388 PR target/90178
20389 Revert:
20390 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20391
20392 Revert the revert:
20393 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20394
20395 Revert:
20396 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20397
20398 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20399
20400 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20401
20402 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20403 names using operand format, rather than hard-wired.
20404 (speculation_barrier): Likewise.
20405
20406 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20407
20408 PR tree-optimization/88055
20409 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20410 (gen_one_condition): Use it if !HONOR_NANS.
20411
20412 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20413
20414 PR middle-end/90139
20415 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20416 assign_temp instead of gen_reg_rtx.
20417
20418 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20419
20420 PR translation/90118
20421 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20422 Add missing space before %<.
20423
20424 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20425
20426 PR rtl-optimization/87871
20427 * ira-lives.c (make_object_dead): Don't add conflicts to
20428 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20429
20430 2019-04-18 Martin Sebor <msebor@redhat.com>
20431
20432 PR middle-end/89797
20433 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20434 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20435 assuming type size fits in SHWI.
20436
20437 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20438
20439 PR ipa/85051
20440 * ipa-inline.c (flatten_function): New parameter UPDATE.
20441 (ipa_inline, early_inliner): Use it.
20442
20443 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20444
20445 * fold-const.c (int_const_binop): Return early on failure.
20446
20447 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20448
20449 PR middle-end/85164
20450 * combine.c (force_int_to_mode): Cast the argument rather than
20451 the result of known_alignment.
20452 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20453
20454 2019-04-18 Richard Biener <rguenther@suse.de>
20455
20456 PR debug/90131
20457 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20458 out from ...
20459 (remove_forwarder_block): ... here.
20460 (remove_forwarder_block_with_phi): Also move debug stmts here.
20461
20462 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20463
20464 PR translation/79183
20465 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20466 inform where appropriate.
20467
20468 2019-04-18 Richard Biener <rguenther@suse.de>
20469
20470 * tree.c (get_qualified_type): Put found type variants at the
20471 head of the variant list.
20472
20473 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20474
20475 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20476
20477 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20478
20479 PR target/90125
20480 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20481 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20482 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20483 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20484 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20485
20486 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20487
20488 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20489 even for allocno's with no conflicts.
20490 (print_conflicts): Print an extra newline.
20491
20492 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20493
20494 * auto-inc-dec.c (attempt_change): Set the alignment of the
20495 temporary memory to that of the original.
20496
20497 2019-04-17 Joao Moreira <jmoreira@suse.de>
20498
20499 * targhooks.c (default_print_patchable_function_entry): Emit
20500 __patchable_function_entries section with writable flags to allow
20501 relocation resolution.
20502
20503 2019-04-17 Jonny Grant <jg@jguk.org>
20504
20505 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20506
20507 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20508
20509 PR middle-end/90095
20510 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20511 on lowpart SUBREGs.
20512
20513 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20514
20515 * config/arc/arc.c (arc_init): Format diagnostic string.
20516 (arc_override_options): Likewise.
20517 (check_if_valid_regno_const): Likewise.
20518 (arc_reorg): Likewise.
20519
20520 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20521
20522 PR target/17108
20523 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20524 name.
20525 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20526 name.
20527 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20528 (*movdi_update1): Use Pmode.
20529 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20530 (movdi_<mode>_update_stack): Rename to ...
20531 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20532 use Pmode.
20533 (*movsi_update1): Use Pmode.
20534 (*movsi_update2): Use Pmode.
20535 (movsi_update): Rename to ...
20536 (movsi_<mode>_update): ... this. Use Pmode.
20537 (movsi_update_stack): Fix condition.
20538 (*movhi_update1): Use Pmode. Fix argument to
20539 avoiding_indexed_address_p.
20540 (*movhi_update2): Ditto.
20541 (*movhi_update3): Ditto.
20542 (*movhi_update4): Ditto.
20543 (*movqi_update1): Ditto.
20544 (*movqi_update2): Ditto.
20545 (*movqi_update3): Ditto.
20546 (*movsf_update1, *movdf_update1): Merge, rename to...
20547 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20548 avoiding_indexed_address_p. Add "size" attribute.
20549 (*movsf_update2, *movdf_update2): Merge, rename to...
20550 (*mov<mode>_update2): This. Ditto.
20551 (*movsf_update3): Use Pmode. Fix argument to
20552 avoiding_indexed_address_p.
20553 (*movsf_update4): Ditto.
20554 (allocate_stack): Simplify condition. Adjust pattern names.
20555
20556 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20557
20558 PR target/89093
20559 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20560 whitespace at the start of target attribute string.
20561
20562 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20563
20564 PR target/84369
20565 * config/rs6000/power9.md: Add store forwarding bypass.
20566
20567 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20568
20569 PR debug/89528
20570 * valtrack.c (dead_debug_insert_temp): Reset debug references
20571 to the return value of a call being removed.
20572
20573 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20574
20575 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20576 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20577 implement target hook.
20578 (arc_memory_move_cost): New function.
20579 (TARGET_REGISTER_MOVE_COST): Define.
20580 (TARGET_MEMORY_MOVE_COST): Likewise.
20581 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20582 (MEMORY_MOVE_COST): Likewise.
20583
20584 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20585
20586 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20587 (sibcall_value_insn): Likewise.
20588 * config/arc/constraints.md (Rs5): Remove.
20589
20590 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20591
20592 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20593 for last two fake registers.
20594 (arc_conditional_register_usage): Make sure fake frame and arg
20595 pointer regs are in general regs class.
20596 (FRAME_POINTER_MASK): Remove.
20597 (RETURN_ADDR_MASK): Remove.
20598 (arc_must_save_register): Use hard frame regnum.
20599 (frame_restore_reg): Use hard_frame_pointer_rtx.
20600 (arc_save_callee_saves): Likewise.
20601 (arc_restore_callee_saves): Likewise.
20602 (arc_save_callee_enter): Likewise.
20603 (arc_restore_callee_leave): Likewise.
20604 (arc_save_callee_milli): Likewise.
20605 (arc_eh_return_address_location): Likewise.
20606 (arc_check_multi): Use hard frame regnum.
20607 (arc_can_eliminate): Likewise.
20608 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20609 for register allocator.
20610 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20611 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20612 (FRAME_POINTER_REGNUM): Change it to a fake register.
20613 (HARD_FRAME_POINTER_REGNUM): Defined.
20614 (ARG_POINTER_REGNUM): Change it to a new fake register.
20615 (ELIMINABLE_REGS): Update.
20616 (REGISTER_NAMES): Update names.
20617 * config/arc/arc.md (LP_START): Remove.
20618 (LP_END): Likewise.
20619 (shift_si3_loop): Update pattern.
20620
20621 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20622
20623 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20624 to avoid delay slot scheduling.
20625 (arc_must_save_register): Don't save SP.
20626 * config/arc/arc.md (stack_tie): Remove.
20627 (UNSPEC_ARC_STKTIE): Likewise.
20628
20629 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20630 Shiva Chen <shiva0217@gmail.com>
20631
20632 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20633 code gen with large shift amount.
20634
20635 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20636
20637 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20638 subreg.
20639
20640 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20641
20642 PR target/90096
20643 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20644 print -m64/-mx32/-m32 if it is true.
20645 (ix86_debug_options, ix86_function_specific_print): Pass true as
20646 ADD_ABI_P to ix86_target_string.
20647 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20648 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20649 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20650
20651 PR rtl-optimization/90082
20652 * dce.c (can_delete_call): New function.
20653 (deletable_insn_p, mark_insn): Use it.
20654
20655 PR tree-optimization/90090
20656 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20657 throw internally.
20658 (is_division_by_square): Likewise. Formatting fix.
20659
20660 2019-04-16 Richard Biener <rguenther@suse.de>
20661
20662 PR tree-optimization/56049
20663 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20664 equality check if alias-set zero will prevail.
20665
20666 2019-04-15 Jeff Law <law@redhat.com>
20667
20668 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20669 size and alignment as unsigned.
20670
20671 2019-04-15 Richard Biener <rguenther@suse.de>
20672
20673 PR debug/90074
20674 * tree-loop-distribution.c (destroy_loop): Preserve correct
20675 debug info.
20676
20677 2019-04-15 Richard Biener <rguenther@suse.de>
20678
20679 PR tree-optimization/90071
20680 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20681 abnormal operands from def stmts.
20682
20683 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20684
20685 PR rtl-optimization/89794
20686 * combine.c (count_auto_inc): New function.
20687 (try_combine): Count how many auto_inc expressions there were in the
20688 original instructions. Ensure we have the same number in the new
20689 instructions. Remove the code that tried to ensure auto_inc side
20690 effects on i1 and i0 are not lost.
20691
20692 2019-04-15 Richard Biener <rguenther@suse.de>
20693
20694 PR ipa/88936
20695 * tree.h (auto_var_p): Declare.
20696 * tree.c (auto_var_p): New function, split out from ...
20697 (auto_var_in_fn_p): ... here.
20698 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20699 member.
20700 (new_var_info): Initialize it.
20701 (set_uids_in_ptset): Also set the shadow variable uid if required.
20702 (ipa_pta_execute): Postprocess points-to solutions assigning
20703 shadow variable uids for locals that may reach their containing
20704 function recursively.
20705 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20706 assert but instead check whether the points-to solution is
20707 a singleton.
20708
20709 2019-04-15 Martin Jambor <mjambor@suse.cz>
20710
20711 PR ipa/pr89693
20712 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20713 the thunk chain.
20714
20715 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20716
20717 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20718
20719 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20720 Kito Cheng <kito.cheng@gmail.com>
20721 Shiva Chen <shiva0217@gmail.com>
20722
20723 * config/nds32/nds32-md-auxiliary.c
20724 (nds32_legitimize_pic_address): Use new PIC pattern.
20725 (nds32_legitimize_tls_address): Use new TLS pattern.
20726 (nds32_output_symrel): New.
20727 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20728 (nds32_alloc_relax_group_id): Ditto.
20729 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20730 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20731 relax_group_id.
20732 (nds32_group_tls_insn): Ditto.
20733 (nds32_group_float_insns): Ditto.
20734 * config/nds32/nds32.md (tls_le): New.
20735 (sym_got): Ditto.
20736
20737 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20738
20739 * configure: Add nds32 target for dwarf2 debug_line checking.
20740 * configure.ac: Regenerated.
20741
20742 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20743
20744 PR lto/89358
20745 * ipa-devirt.c (skip_in_fields_list_p): New.
20746 (odr_types_equivalent_p): Use it.
20747
20748 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20749
20750 PR target/89093
20751 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20752 instead of strncmp when checking for thumb and arm. Formatting fixes.
20753
20754 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20755
20756 * doc/install.texi: Document --with-target-system-zlib.
20757
20758 2019-04-12 Martin Sebor <msebor@redhat.com>
20759
20760 PR c/88383
20761 PR c/89288
20762 PR c/89798
20763 PR c/89797
20764 * targhooks.c (default_vector_alignment): Avoid assuming
20765 argument fits in SHWI.
20766 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20767 a shift expression.
20768 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20769
20770 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20771
20772 PR rtl-optimization/89965
20773 * dce.c: Include rtl-iter.h.
20774 (struct check_argument_load_data): New type.
20775 (check_argument_load): New function.
20776 (find_call_stack_args): Check for loads from stack slots still tracked
20777 in sp_bytes and punt if any is found.
20778
20779 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20780
20781 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20782
20783 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20784 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20785
20786 2019-04-12 Martin Liska <mliska@suse.cz>
20787
20788 PR middle-end/89970
20789 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20790 in error message.
20791 (separate_attrs): Handle multiple 'default's.
20792 (expand_target_clones): Rework error handling code.
20793
20794 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20795
20796 PR target/87532
20797 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20798 mode of vector rather than mode of destination for move instruction.
20799 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20800 Use QI inner mode with V16QI vector mode.
20801
20802 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20803
20804 PR target/52726
20805 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20806 "invalid %%t operand" in output_operand_lossage message.
20807
20808 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20809
20810 * config/s390/predicates.md (permute_pattern_operand): New
20811 predicate.
20812 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20813 operand for the permute pattern.
20814 ("*vec_perm<mode>"): New insn definition.
20815 ("bswap<mode>"): Generate the permute pattern operand in the
20816 expander and perform the operand reloads for pre arch13 level
20817 already.
20818 ("*bswap<mode>_emu"): Rename to ...
20819 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20820 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20821 Add the USE operand for the permute pattern.
20822 ("*vec_set_bswap_vec<mode>"): Likewise.
20823
20824 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20825
20826 PR c/89946
20827 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20828 and gcc_unreachable if it fails, just call tree_to_uhwi which
20829 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20830 Start warning message with a lower-case letter. Formatting fixes.
20831
20832 PR rtl-optimization/90026
20833 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20834 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20835 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20836 in cfglayout mode, use emit_barrier_after_bb.
20837
20838 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20839
20840 PR rtl-optimization/87763
20841 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20842 New Instruction.
20843
20844 2019-04-11 Tom de Vries <tdevries@suse.de>
20845
20846 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20847 max macro using statement expression.
20848
20849 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20850
20851 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20852 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20853 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20854 read_only_private_data_section using xcoff_private_rodata_section_name.
20855 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20856
20857 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20858
20859 PR target/90016
20860 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20861
20862 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20863
20864 PR rtl-optimization/89965
20865 * dce.c (sp_based_mem_offset): New function.
20866 (find_call_stack_args): Use sp_based_mem_offset.
20867
20868 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20869
20870 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20871
20872 2019-04-11 Richard Biener <rguenther@suse.de>
20873
20874 PR tree-optimization/90020
20875 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20876 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20877 * tree-ssa-pre.c (compute_avail): Use it to not put
20878 possibly trapping references after a call that might not
20879 return into EXP_GEN.
20880 * gcse.c (compute_hash_table_work): Do not elide
20881 marking a block containing a call if the call might not
20882 return.
20883
20884 2019-04-11 Richard Biener <rguenther@suse.de>
20885
20886 PR tree-optimization/90018
20887 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20888 Test both SLP and interleaving variants.
20889
20890 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20891
20892 * config/s390/8561.md: New file.
20893 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20894 Add arch13 cpu model.
20895 * config/s390/s390-opts.h (enum processor_type): Likewise.
20896 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20897 (s390_get_unit_mask): Likewise.
20898 (s390_is_fpd): Likewise.
20899 (s390_is_fxd): Likewise.
20900 * config/s390/s390.h (s390_tune_attr): Likewise.
20901 * config/s390/s390.md: Include arch13 pipeline description.
20902 * config/s390/s390.opt: Add arch13.
20903
20904 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20905
20906 PR rtl-optimization/87763
20907 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20908 New prototype.
20909 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20910 New function.
20911 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20912 New instruction.
20913 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20914 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20915 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20916 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20917
20918 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20919
20920 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20921 "Although" in -fipa-icf documentation.
20922
20923 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20924 of using multiple -g options.
20925
20926 2019-04-10 Martin Liska <mliska@suse.cz>
20927
20928 PR gcov-profile/89959
20929 * doc/gcov.texi: Make documentation of -x option
20930 more precise.
20931
20932 2019-04-10 Richard Biener <rguenther@suse.de>
20933
20934 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20935 member.
20936 (DR_GROUP_SAME_DR_STMT): Remove.
20937 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20938 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20939 replace with assert.
20940 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20941 (vect_record_grouped_load_vectors): Remove unreachable code.
20942
20943 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20944
20945 PR target/90016
20946 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20947 obsolete reference to N.
20948
20949 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20950
20951 PR middle-end/90025
20952 * expr.c (store_expr): Set properly size on the MEM passed to
20953 clear_storage.
20954
20955 PR c++/90010
20956 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20957 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20958 translation is needed, and when translation is needed, only append
20959 ... if the string length is hostsz or more bytes long. Avoid using
20960 strncpy or strcat.
20961
20962 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20963
20964 PR target/90024
20965 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20966 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20967 into three.
20968 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20969 differences directly.
20970 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20971
20972 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20973
20974 PR translation/90011
20975 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20976 from diagnostics.
20977 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20978 diagnostics.
20979 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20980 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20981 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20982 trailing space from -gsplit-dwarf diagnostics.
20983
20984 PR tree-optimization/89998
20985 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20986 instead of integer_type_node if possible, don't add ranges if return
20987 type is not compatible with int.
20988 * gimple-fold.c (gimple_fold_builtin_sprintf,
20989 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20990 integer_type_node.
20991
20992 2019-04-09 Martin Liska <mliska@suse.cz>
20993
20994 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20995 * doc/install.texi: Document the new config.
20996
20997 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20998
20999 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21000 use gimple_expr_type for load and store calls. Skip over the
21001 condition argument in a conditional internal function.
21002 Protect use of TREE_INT_CST_LOW.
21003
21004 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21005
21006 PR target/90015
21007 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21008 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21009 trailing period from it too.
21010
21011 2019-04-08 wu yuan <wuyuan5@huawei.com>
21012
21013 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21014 * config/aarch64/aarch64.md : Add "tsv110.md"
21015 * config/aarch64/tsv110.md: New file.
21016
21017 2019-04-08 Richard Biener <rguenther@suse.de>
21018
21019 PR tree-optimization/90006
21020 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21021 calls like lrint.
21022
21023 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21024
21025 PR target/83033
21026 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21027 construction.
21028 (fma_root_node): Likewise.
21029 (func_fma_steering): Likewise.
21030
21031 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21032
21033 PR rtl-optimization/89865
21034 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21035
21036 PR rtl-optimization/89865
21037 * config/i386/i386.md
21038 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21039 numbers not to clash with the additional operands[4].
21040 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21041 with extra register copy in the middle.
21042
21043 2019-04-08 Martin Liska <mliska@suse.cz>
21044
21045 PR gcov-profile/89961
21046 * doc/gcov.texi: Document data_file.
21047 * gcov.c (generate_results): Add data_info into JSON output.
21048
21049 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21050
21051 PR tree-optimization/89725
21052 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21053 loop's chrec as invariant symbol.
21054 * tree-chrec.h (chrec_contains_symbols): New parameter.
21055 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21056 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21057 function of loops not in DDR's loop_nest.
21058 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21059
21060 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21061
21062 PR target/89623
21063 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21064 Mask.
21065
21066 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21067
21068 PR target/89945
21069 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21070 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21071
21072 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21073
21074 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21075 targetm.fixed_condition_code_regs.
21076
21077 2019-04-05 Richard Biener <rguenther@suse.de>
21078
21079 PR debug/89892
21080 PR debug/89905
21081 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21082 debug bind stmts but reset them if they are not valid at the
21083 destination.
21084
21085 2019-04-05 Martin Liska <mliska@suse.cz>
21086
21087 PR translation/89936
21088 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21089 order to wrap keywords or arguments.
21090 * collect2.c (main): Likewise.
21091 (scan_prog_file): Likewise.
21092 (scan_libraries): Likewise.
21093 * common/config/riscv/riscv-common.c
21094 (riscv_subset_list::parsing_subset_version): Likewise.
21095 (riscv_subset_list::parse_std_ext): Likewise.
21096 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21097 Likewise.
21098 * config/arm/arm.c (arm_option_override): Likewise.
21099 * config/cris/cris.c (cris_print_operand): Likewise.
21100 * config/darwin-c.c (darwin_pragma_options): Likewise.
21101 (darwin_pragma_unused): Likewise.
21102 (darwin_pragma_ms_struct): Likewise.
21103 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21104 * config/i386/i386.c (print_reg): Likewise.
21105 (ix86_print_operand): Likewise.
21106 * config/i386/xm-djgpp.h: Likewise.
21107 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21108 * config/m32c/m32c.c (m32c_option_override): Likewise.
21109 * config/msp430/msp430.c (msp430_option_override): Likewise.
21110 * config/nds32/nds32.c (nds32_option_override): Likewise.
21111 * config/nvptx/mkoffload.c (main): Likewise.
21112 * config/rx/rx.c (rx_print_operand): Likewise.
21113 (valid_psw_flag): Likewise.
21114 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21115 (vms_pragma_nomember_alignment): Likewise.
21116 (vms_pragma_extern_model): Likewise.
21117 * lto-wrapper.c (compile_offload_image): Likewise.
21118 * omp-offload.c (oacc_parse_default_dims): Likewise.
21119 * symtab.c (symtab_node::verify_base): Likewise.
21120 * tlink.c (recompile_files): Likewise.
21121 (start_tweaking): Likewise.
21122 * tree-profile.c (parse_profile_filter): Likewise.
21123
21124 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21125
21126 PR tree-optimization/89956
21127 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21128 multiple negates of the same value.
21129
21130 2019-04-04 Martin Sebor <msebor@redhat.com>
21131
21132 PR middle-end/89957
21133 PR middle-end/89911
21134 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21135 have the same precision since the function crashes otherwise.
21136 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21137 has non-zero arguments.
21138
21139 2019-04-04 Martin Sebor <msebor@redhat.com>
21140
21141 PR middle-end/89934
21142 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21143 out if the number of arguments is less than expected.
21144
21145 2019-04-04 Jeff Law <law@redhat.com>
21146
21147 PR rtl-optimization/89399
21148 * ree.c (combine_set_extension): Use single_set rather than
21149 digging into PATTERN for items on the candidate list.
21150 (combine_reaching_defs): Likewise.
21151
21152 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21153
21154 PR rtl-optimization/46590
21155 * loop-invariant.c (find_defs): Move df_remove_problem and
21156 df_process_deferred_rescans to move_invariants.
21157 Move df_live_add_problem and df_live_set_all_dirty calls
21158 to move_invariants.
21159 (move_invariants): Likewise.
21160 (move_loop_invariants): Likewise, making the df_live calls
21161 conditional on -O. Remove the problem again if we added it
21162 locally.
21163
21164 2019-04-03 qing zhao <qing.zhao@oracle.com>
21165
21166 PR tree-optimization/89730
21167 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21168 -flive-patching=inline-only-static.
21169 (can_inline_edge_by_limits_p): Add the checking for
21170 -flive-patching=inline-only-static and grant always_inline
21171 even when -flive-patching=inline-only-static is specified.
21172
21173 2019-04-03 Jeff Law <law@redhat.com>
21174
21175 PR rtl-optimization/81025
21176 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21177
21178 2019-04-03 Richard Biener <rguenther@suse.de>
21179
21180 PR tree-optimization/84101
21181 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21182 regs.h for hard_regno_nregs.
21183 (cfun_returns): New helper.
21184 (vect_model_store_cost): When vectorizing a store to a decl
21185 we return and the function ABI returns in a multi-reg location
21186 account for the possible spilling that will happen.
21187
21188 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21189
21190 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21191 displacement addresses for vector mode operands.
21192
21193 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21194
21195 * config/arc/arc.c (GMASK_LEN): Define.
21196 (arc_restore_callee_saves): Restore first blink when
21197 !optimize_size.
21198
21199 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21200
21201 * doc/extend.texi: Add deprecated comment on sign-return-address
21202 function attribute and add mbranch-protection.
21203 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21204
21205 2019-04-03 Richard Biener <rguenther@suse.de>
21206
21207 PR lto/89896
21208 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21209 the all target phony.
21210
21211 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21212
21213 PR target/89902
21214 PR target/89903
21215 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21216 Return false for variable DImode shifts.
21217 (dimode_scalar_chain::compute_convert_gain): Do not handle
21218 register count operand in variable DImode shifts.
21219 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21220 count argument of a variable shift instruction to a vector register.
21221 (dimode_scalar_chain::convert_reg): Remove support to convert
21222 count argument of a variable shift instruction.
21223
21224 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21225
21226 PR rtl-optimization/84206
21227 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21228 iterating over loop headers.
21229
21230 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21231
21232 PR rtl-optimization/85876
21233 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21234 beyond the original fence.
21235
21236 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21237
21238 * config.gcc: Mark spu* targets as deprecated/obsolete.
21239
21240 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21241
21242 * config/s390/s390-builtin-types.def: New builtin function type
21243 definitions. Remove unused types.
21244 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21245 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21246 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21247 overloaded builtins.
21248 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21249 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21250 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21251 (vec_double, vec_signed, vec_unsigned): Define to use the new
21252 overloaded builtins.
21253 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21254 Remove expanders.
21255
21256 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21257
21258 * config/s390/s390-builtin-types.def: New builtin function type
21259 definitions.
21260 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21261 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21262 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21263 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21264 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21265 constant definitions.
21266 * config/s390/vecintrin.h (vec_search_string_cc)
21267 (vec_search_string_until_zero_cc): New builtin name definitions.
21268 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21269 expanders.
21270 ("vec_vstrs<mode>"): New insn definition.
21271
21272 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21273
21274 * config/s390/s390-builtin-types.def: Add new builtin function
21275 types.
21276 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21277 New overloaded builtins.
21278 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21279 s390_vsrd.
21280 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21281 (UNSPEC_VEC_SLDBYTE): ... this.
21282 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21283 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21284 definitions.
21285 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21286 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21287 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21288
21289 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21290
21291 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21292 New insn definition.
21293 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21294 * config/s390/vector.md (V_HW_HSD): ... here.
21295
21296 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21297
21298 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21299 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21300 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21301 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21302 New insn definitions.
21303
21304 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21305
21306 * config/s390/s390-builtin-types.def: Add new builtin function type.
21307 * config/s390/s390-builtins.def: Add overloaded builtin
21308 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21309 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21310 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21311 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21312 ("eltswap<mode>"): New expander.
21313 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21314 insn definitions.
21315
21316 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21317
21318 * config/s390/s390-builtin-types.def: Add new builtin function types.
21319 * config/s390/s390-builtins.def: Add overloaded builtin
21320 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21321 instructions.
21322 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21323 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21324 ("bswap<mode>"): New expander.
21325 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21326
21327 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21328
21329 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21330 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21331 vector builtin version number in __VEC__.
21332
21333 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21334
21335 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21336 iterators.
21337 (SFSI): New mode attribute.
21338 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21339 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21340 rename to ...
21341 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21342 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21343 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21344 ("floatsi<mode>2"): Add wcefb instruction.
21345
21346 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21347
21348 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21349 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21350 mode iterators.
21351 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21352 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21353 support 32 bit fp-int conversions. Rename to ...
21354 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21355 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21356 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21357 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21358 ... to these.
21359
21360 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21361
21362 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21363 if-then-else constructs if we can use the select instruction.
21364 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21365
21366 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21367
21368 * config/s390/s390.md ("*popcountdi_arch13_cc")
21369 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21370 definition.
21371 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21372 Append _z196 to make it ...
21373 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21374 ("popcounthi2_z196"): ... this.
21375 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21376 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21377
21378 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21379
21380 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21381 certain compares for arch13 in order to make use of the condition
21382 code result produced by the new instructions.
21383 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21384 nxrk, and nxgrk instruction patterns.
21385 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21386 (inv_no): Add new code iterator together with some attributes.
21387 ("*andc_split_<mode>"): Disable splitter for arch13.
21388 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21389 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21390 ("*<ANDOR:bitops_name>c<GPR:mode>")
21391 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21392 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21393 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21394 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21395
21396 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21397
21398 * common/config/s390/s390-common.c (processor_flags_table): New
21399 entry for arch13.
21400 * config.gcc: Support arch13 with the --with-arch= configure flag.
21401 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21402 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21403 * config/s390/s390.c (s390_get_sched_attrmask)
21404 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21405 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21406 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21407 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21408 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21409 definitions.
21410 * config/s390/s390.opt: Support arch13 as processor type in
21411 command line options.
21412
21413 2019-04-02 Martin Liska <mliska@suse.cz>
21414
21415 PR translation/89912
21416 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21417 Fix param description of graphite-max-arrays-per-scop.
21418
21419 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21420
21421 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21422 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21423 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21424
21425 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21426
21427 PR rtl-optimization/85412
21428 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21429 sel_sched_region_1, not after.
21430
21431 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21432
21433 PR rtl-optimization/86928
21434 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21435 compute_live if necessary.
21436 (sel_redirect_edge_and_branch): Likewise.
21437
21438 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21439
21440 PR rtl-optimization/89865
21441 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21442 register if it is a part of small class.
21443
21444 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21445
21446 PR rtl-optimization/87273
21447 * sel-sched-ir.c (merge_fences): Remove assert.
21448
21449 2019-04-01 Richard Biener <rguenther@suse.de>
21450
21451 PR tree-optimization/46590
21452 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21453 (dom_walker::m_reachability): Add in place of...
21454 (dom_walker::m_skip_unreachable_blocks): ...this.
21455 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21456 Move complex initialization ...
21457 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21458 lazily and initialize edge flags on each invocation.
21459 (dom_walker::bb_reachable): Use m_reachability.
21460
21461 2019-04-01 Martin Liska <mliska@suse.cz>
21462
21463 PR driver/89861
21464 * opt-suggestions.c (option_proposer::build_option_suggestions):
21465 Add variant without any argument in order to provide better
21466 hints.
21467
21468 2019-04-01 Richard Biener <rguenther@suse.de>
21469
21470 PR c/71598
21471 * gimple.c: Include langhooks.h.
21472 (gimple_get_alias_set): Treat enumeral types as the underlying
21473 integer type.
21474
21475 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21476 Eric Botcazou <ebotcazou@adacore.com>
21477
21478 PR rtl-optimization/89862
21479 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21480 that operates on the full registers for WORD_REGISTER_OPERATIONS
21481 architectures.
21482
21483 2019-03-29 Jim Wilson <jimw@sifive.com>
21484
21485 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21486 Clear MASK_RVC and then set if C subset supported.
21487
21488 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21489
21490 PR c/89872
21491 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21492 non-addressable complit into its initializer if it is volatile.
21493
21494 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21495
21496 * opts-common.c (integral_argument): Set errno properly in one case.
21497
21498 2019-03-29 Martin Liska <mliska@suse.cz>
21499
21500 * doc/invoke.texi: Remove -Wchkp from documentation.
21501
21502 2019-03-29 Martin Liska <mliska@suse.cz>
21503
21504 * dbgcnt.c (print_limit_reach): New function.
21505 (dbg_cnt): Use it.
21506
21507 2019-03-29 Martin Liska <mliska@suse.cz>
21508
21509 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21510 (dbg_cnt_process_opt): Parse first tokens aas
21511 dbg_cnt_process_single_pair is also using strtok.
21512
21513 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21514
21515 PR rtl-optimization/87485
21516 * function.c (expand_function_end): Move stack_protect_epilogue
21517 before loading of return value into hard register(s).
21518
21519 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21520
21521 PR middle-end/89621
21522 * tree-inline.h (struct copy_body_data): Add
21523 dont_remap_vla_if_no_change flag.
21524 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21525 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21526 and remap_type_2 returns false.
21527 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21528 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21529 only from where it is copied to nested contexts.
21530
21531 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21532
21533 PR target/89865
21534 * config/i386/i386.md (RMW operation with LEA peephole):
21535 Use LEAMODE mode attribute instead of SWI mode iterator for
21536 LEA pattern.
21537
21538 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21539
21540 PR target/89848
21541 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21542 Also process XEXP (src, 0) of a shift insn.
21543
21544 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21545
21546 PR middle-end/89725
21547 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21548 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21549
21550 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21551
21552 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21553 test.
21554 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21555 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21556 immediately after first one with df_analyze in between, but rather
21557 process all bbs, queueing ones that need second pass in a worklist,
21558 df_analyze, process queued debug insn changes and if second pass is
21559 needed, process bbs from worklist, df_analyze, process queued debug
21560 insns again.
21561
21562 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21563 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21564 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21565
21566 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21567
21568 PR c/79022
21569 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21570 definition.
21571
21572 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21573
21574 PR target/85667
21575 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21576 function for 32-bit MS_ABI.
21577 (function_value_ms_32): New function.
21578
21579 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21580
21581 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21582 (movdi): Call gen_movdi_symbol_save_scc.
21583 (gen_movdi_symbol_save_scc): New insn and split.
21584
21585 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21586
21587 PR rtl-optimization/89313
21588 * function.c (matching_constraint_num): New static function.
21589 (match_asm_constraints_1): Use it. Fixup white space and comment.
21590 Don't replace inputs with non-matching constraints which conflict
21591 with early clobber outputs.
21592
21593 2019-03-27 Jeff Law <law@redhat.com>
21594
21595 PR rtl-optimization/87761
21596 PR rtl-optimization/89826
21597 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21598 slightly later.
21599 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21600 note problem to get REG_DEAD/REG_UNUSED notes updated.
21601
21602 2019-03-27 Richard Biener <rguenther@suse.de>
21603
21604 PR tree-optimization/89463
21605 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21606 queue edges to remove.
21607 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21608 dead stmts. Delay edge removal until PHIs are removed to
21609 make debug-stmt creation not confused by seemingly degenerate
21610 PHIs.
21611
21612 2019-03-27 Alan Modra <amodra@gmail.com>
21613
21614 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21615 throughout file.
21616 * config/rs6000/darwin.h: Likewise.
21617 * config/rs6000/rs6000.c: Likewise.
21618
21619 2019-03-27 Alan Modra <amodra@gmail.com>
21620
21621 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21622 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21623
21624 2019-03-26 Andrew Waterman <andrew@sifive.com>
21625 Jim Wilson <jimw@sifive.com>
21626
21627 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21628 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21629 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21630 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21631 (generic_alu): Add auipc to type list.
21632 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21633 (riscv_microarchitecture): Declare.
21634 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21635 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21636 field.
21637 (riscv_microarchitecture): New.
21638 (sifive_7_tune_info): New.
21639 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21640 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21641 entries.
21642 (riscv_store_data_bypass_p): New.
21643 (riscv_option_override): Set riscv_microarchitecture from
21644 cpu->microarchitecture.
21645 * config/riscv/riscv.md: Include sifive-7.md.
21646 (type): Add auipc.
21647 (tune): New.
21648 (auipc<mode>): Change type to auipc.
21649 (restore_stack_nonlocal): New.
21650 * config/riscv/sifive-7.md: New.
21651 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21652
21653 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21654
21655 PR target/89827
21656 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21657 Also process XEXP (src, 0) of a shift insn.
21658
21659 2019-03-26 Richard Biener <rguenther@suse.de>
21660
21661 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21662 (copy_debug_stmt): Likewise.
21663 (expand_call_inline): Likewise.
21664 (copy_bb): Avoid redundant lookup & set of gimple_block.
21665 * gimple-low.c (lower_gimple_return): Likewise.
21666 (lower_builtin_setjmp): Likewise.
21667
21668 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21669
21670 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21671 is constant 0, turn into static const data member initialized to false.
21672 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21673 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21674
21675 2019-03-26 Jason Merrill <jason@redhat.com>
21676 Jakub Jelinek <jakub@redhat.com>
21677
21678 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21679 method.
21680 (mem_alloc_description::release_object_overhead): Fix comment typos.
21681 * hash-table.h (hash_table::~hash_table): Call
21682 release_instance_overhead only if m_entries is non-NULL, otherwise
21683 call unregister_descriptor.
21684
21685 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21686
21687 PR tree-optimization/81740
21688 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21689 In case of outer loop vectorization, check for backward dependence
21690 at the inner loop if outer loop dependence is reversed.
21691
21692 2019-03-26 Alan Modra <amodra@gmail.com>
21693
21694 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21695 rs6000_vector_mem init. Correct wI and wJ comment.
21696
21697 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21698
21699 PR rtl-optimization/88347
21700 PR rtl-optimization/88423
21701 * sched-deps.c (sched_analyze_insn): Take into account that for
21702 tablejumps the barrier appears after a label and a jump_table_data.
21703
21704 2019-03-25 Martin Sebor <msebor@redhat.com>
21705
21706 PR c/89812
21707 * c-common.c (check_user_alignment): Rename local. Correct maximum
21708 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21709 convert it to UHWI when it fits.
21710
21711 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21712
21713 PR debug/86964
21714 * dwarf2out.c (premark_used_variables): New function.
21715 (prune_unused_types_walk): Do not mark not premarked external
21716 variables.
21717 (prune_unused_types): Call premark_used_variables.
21718
21719 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21720
21721 PR rtl-optimization/89676
21722 * lra-constraints.c (curr_insn_transform): Do match reload for
21723 early clobbers when the match was successful only for different
21724 registers.
21725
21726 2019-03-25 Martin Sebor <msebor@redhat.com>
21727
21728 * doc/extend.texi (Common Type Attributes): Document vector_size.
21729 (Common Variable Attributes): Mention size constraint. Correct
21730 quoting and typos.
21731 (Vector Extensions): Use @dfn when defining bas type. Clarify
21732 base type and size constraints.
21733
21734 2019-03-25 Richard Biener <rguenther@suse.de>
21735
21736 PR tree-optimization/89789
21737 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21738 changes from non-undefined back to undefined.
21739
21740 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21741
21742 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21743 heap string and a gc string, but since this variable is unknown to
21744 ggc the gc string might get reused and corrupted. Fixed by always
21745 using a heap string.
21746
21747 2019-03-25 Richard Biener <rguenther@suse.de>
21748
21749 PR tree-optimization/89779
21750 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21751 to remove IV defs, delay actual removal.
21752 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21753 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21754 very end, properly also reset loop control IV information.
21755
21756 2019-03-25 Richard Biener <rguenther@suse.de>
21757
21758 PR tree-optimization/89802
21759 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21760 move EH data to folded stmt.
21761
21762 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21763
21764 * config/s390/s390-builtin-types.def: Remove few unused types and
21765 fix sort order for others.
21766
21767 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21768
21769 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21770 expected and found types with -mdebug during builtin matching.
21771
21772 2019-03-25 Richard Biener <rguenther@suse.de>
21773
21774 PR middle-end/89790
21775 * fold-const.c (operand_equal_p): Revert last change with
21776 updated comment.
21777
21778 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21779
21780 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21781 notes for the result of the __tls_get_addr calls.
21782 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21783
21784 2019-03-24 Jeff Law <law@redhat.com>
21785
21786 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21787
21788 PR rtl-optimization/87761
21789 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21790 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21791 as needed.
21792 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21793 rescans. Reprocess blocks as needed, calling df_analyze before
21794 reprocessing. Always call df_analyze before fixing up debug bind
21795 insns.
21796
21797 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21798
21799 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21800 big endian.
21801
21802 2019-03-22 Andrew Pinski <apinski@marvell.com>
21803
21804 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21805 attrribute for uxtw.
21806
21807 2019-03-26 Jeff Law <law@redhat.com>
21808
21809 PR rtl-optimization/87761
21810 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21811 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21812 (mips_split_move): Accept new INSN argument. Try to forward SRC
21813 into the next instruction.
21814 (mips_split_move_insn): Pass INSN through to mips_split_move.
21815
21816 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21817
21818 PR rtl-optimization/89676
21819 * lra-constraints.c (curr_insn_transform): Do match reload for
21820 early clobbers even if the match was successful.
21821
21822 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21823
21824 PR c++/87481
21825 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21826
21827 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21828
21829 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21830
21831 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21832
21833 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21834 <avx512>_fmsub_<mode>_mask3<round_name>,
21835 <avx512>_fnmadd_<mode>_mask3<round_name>,
21836 <avx512>_fnmsub_<mode>_mask3<round_name>,
21837 avx512f_vmfmadd_<mode>_mask3<round_name>,
21838 avx512f_vmfmsub_<mode>_mask3<round_name>,
21839 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21840 instead of register_operand and %v instead of v for match_operand 1.
21841 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21842 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21843 <round_nimm_predicate> instead of register_operand and %v instead of v
21844 for match_operand 1.
21845
21846 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21847 <avx512>_fmadd_<mode>_mask3<round_name>,
21848 <avx512>_fmsub_<mode>_mask<round_name>,
21849 <avx512>_fmsub_<mode>_mask3<round_name>,
21850 <avx512>_fnmadd_<mode>_mask<round_name>,
21851 <avx512>_fnmadd_<mode>_mask3<round_name>,
21852 <avx512>_fnmsub_<mode>_mask<round_name>,
21853 <avx512>_fnmsub_<mode>_mask3<round_name>,
21854 <avx512>_fmaddsub_<mode>_mask<round_name>,
21855 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21856 <avx512>_fmsubadd_<mode>_mask<round_name>,
21857 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21858 <round_nimm_predicate> instead of nonimmediate_operand.
21859 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21860 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21861 Use register_operand instead of <round_nimm_predicate> for the
21862 operand that needs to match output.
21863 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21864 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21865 Likewise. Formatting fixes.
21866
21867 PR target/89784
21868 * config/i386/i386.c (enum ix86_builtins): Remove
21869 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21870 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21871 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21872 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21873 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21874 __builtin_ia32_vfmsubss3_mask3): New builtins.
21875 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21876 avx512f_vmfmadd_<mode>_mask3<round_name>,
21877 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21878 *avx512f_vmfmsub_<mode>_mask<round_name>,
21879 avx512f_vmfmsub_<mode>_mask3<round_name>,
21880 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21881 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21882 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21883 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21884 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21885 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21886 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21887 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21888 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21889 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21890 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21891 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21892 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21893 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21894 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21895 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21896 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21897 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21898 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21899 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21900 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21901 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21902 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21903 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21904 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21905 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21906 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21907 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21908
21909 2019-03-21 Martin Sebor <msebor@redhat.com>
21910
21911 PR tree-optimization/89350
21912 * builtins.c (compute_objsize): Also ignore offsets whose upper
21913 bound is negative.
21914 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21915 (builtin_memref::builtin_memref): Initialize new member.
21916 Allow EXPR to be null.
21917 (builtin_memref::extend_offset_range): Replace local with a member.
21918 Avoid assuming pointer offsets are unsigned.
21919 (builtin_memref::set_base_and_offset): Determine base object
21920 before computing offset range.
21921 (builtin_access::builtin_access): Handle memset.
21922 (builtin_access::generic_overlap): Replace local with a member.
21923 (builtin_access::strcat_overlap): Same.
21924 (builtin_access::overlap): Same.
21925 (maybe_diag_overlap): Same.
21926 (maybe_diag_access_bounds): Same.
21927 (wrestrict_dom_walker::check_call): Handle memset.
21928 (check_bounds_or_overlap): Same.
21929
21930 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21931 Jakub Jelinek <jakub@redhat.com>
21932
21933 PR lto/89692
21934 * tree.c (fld_type_variant, fld_incomplete_type_of,
21935 fld_process_array_type): Call fld->pset.add and don't call
21936 add_tree_to_fld_list if it returns true.
21937 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21938 non-marked types from TYPE_NEXT_VARIANT list.
21939 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21940
21941 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21942
21943 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21944 to false, if true, don't alloc_entries during construction, but defer
21945 it to the first method that needs m_entries allocated.
21946 (hash_table::hash_table, hash_table::~hash_table,
21947 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21948 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21949 hash_table::clear_slot, hash_table::traverse_noresize,
21950 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21951 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21952 false.
21953 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21954 NO_INSERT instead of find_with_hash.
21955 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21956 hash_set::m_table): Add Lazy to template params of hash_table.
21957 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21958 * attribs.c (test_attribute_exclusions): Likewise.
21959 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21960 hash_set. Add tests for hash_set with Lazy = true.
21961
21962 2019-03-21 Richard Biener <rguenther@suse.de>
21963
21964 PR tree-optimization/89779
21965 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21966 checks with respect to released SSA names now having error_mark_node
21967 type.
21968 * fold-const.c (operand_equal_p): Likewise.
21969
21970 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21971
21972 PR target/89775
21973 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21974 available to ...
21975 (s390_optimize_register_info): Use global_not_special_regno_p to
21976 check for global regs.
21977
21978 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21979
21980 PR target/89752
21981 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21982 update this_alternative nor this_alternative_set.
21983
21984 2019-03-19 Jim Wilson <jimw@sifive.com>
21985
21986 PR target/89411
21987 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21988 align, size, offset. Use them to handle a BLKmode reference. Update
21989 comment.
21990 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21991
21992 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21993
21994 PR rtl-optimization/89768
21995 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21996 instead of GEN_INT.
21997 (unroll_loop_runtime_iterations): Likewise.
21998
21999 2019-03-19 Martin Sebor <msebor@redhat.com>
22000
22001 PR tree-optimization/89644
22002 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22003 rather than endptr as an indicator of nul-termination.
22004
22005 PR tree-optimization/89644
22006 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22007 arrays in determining sequence sizes in strncpy and stpncpy.
22008
22009 2019-03-19 Martin Liska <mliska@suse.cz>
22010
22011 PR middle-end/89737
22012 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22013 unlikely_edges if there's an edge that belongs to both these sets.
22014
22015 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22016
22017 PR target/89746
22018 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22019 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22020 go via a stack temporary.
22021
22022 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22023
22024 PR target/89378
22025 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22026 instead of gen_rtx_SUBREG.
22027 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22028
22029 2019-03-19 Richard Biener <rguenther@suse.de>
22030
22031 PR debug/88389
22032 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22033
22034 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22035
22036 PR lto/87809
22037 PR lto/89335
22038 * tree.c (free_lang_data_in_decl): Do not free context of C++
22039 destrutors.
22040
22041 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22042
22043 PR target/89506
22044 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22045 subs for the first alternative except when operands[3] is 1.
22046
22047 PR target/89752
22048 * gimplify.c (gimplify_asm_expr): For output argument with
22049 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22050 diagnose error.
22051
22052 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22053
22054 PR rtl-optimization/89753
22055 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22056 explicit unrolling factor even more robust.
22057
22058 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22059
22060 PR target/89726
22061 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22062 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22063 signed zeros, do another copysign after the compensation.
22064
22065 2019-03-18 Martin Sebor <msebor@redhat.com>
22066
22067 PR tree-optimization/89720
22068 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22069 more conservatively, the same as anti-range.
22070
22071 2019-03-18 Richard Biener <rguenther@suse.de>
22072
22073 PR middle-end/88945
22074 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22075 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22076 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22077 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22078
22079 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22080
22081 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22082 Extend queue to 1024 entries.
22083 Add "consumed" field.
22084 (gomp_print_output): Remove print_index parameter.
22085 Add final parameter.
22086 Change limit to unsigned.
22087 Use consumed field to implement circular buffer.
22088 Detect interrupted print in final pass.
22089 Flush output at the end.
22090 (run): Update gomp_print_output usage.
22091 (main): Initialize kernargs->output_data.consumed.
22092
22093 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22094
22095 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22096 calculation of the minimum number of scalar iterations for
22097 fully-predicated loops.
22098
22099 2019-03-18 Martin Jambor <mjambor@suse.cz>
22100
22101 PR tree-optimization/89546
22102 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22103 any propagation to its children took place.
22104
22105 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22106
22107 PR target/89627
22108 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22109 parameter, and make use of it.
22110 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22111
22112 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22113
22114 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22115 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22116 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22117 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22118 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22119 match what the ops is doing.
22120 (push_multi_fp_blink): Likewise.
22121 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22122 compiling for size and elf target.
22123 (arc_save_callee_enter): Adjust note to match what enter/leave
22124 operation does.
22125
22126 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22127
22128 * config/arc/arc.md (tst_movb): Fix constraint.
22129
22130 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22131
22132 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22133
22134 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22135
22136 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22137 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22138 reg_alloc_order references.
22139 (size_alloc_order): Define.
22140 (arc_adjust_reg_alloc_order): New function.
22141 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22142 order.
22143 (ADJUST_REG_ALLOC_ORDER): Define.
22144 (HONOR_REG_ALLOC_ORDER): Likewise.
22145
22146 2019-03-18 Richard Biener <rguenther@suse.de>
22147
22148 PR target/87561
22149 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22150 loads and stores a bit more.
22151
22152 2019-03-18 Richard Biener <rguenther@suse.de>
22153
22154 PR target/87561
22155 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22156 load pessimization to stores as well.
22157
22158 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22159
22160 PR middle-end/86979
22161 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22162 successor, use NULL as its av set.
22163
22164 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22165
22166 PR rtl-optimization/89721
22167 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22168
22169 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22170
22171 PR target/87532
22172 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22173 When handling vec_extract, use modular arithmetic to allow
22174 constant selectors greater than vector length.
22175 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22176 V1TImode vectors to have constant selector values greater than 0.
22177 Use modular arithmetic to compute vector index.
22178 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22179 index for in-memory vectors. Correct code generation for
22180 in-register vectors.
22181 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22182 compute index.
22183
22184 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22185
22186 PR c++/88534
22187 PR c++/88537
22188 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22189 VAR_DECL args.
22190
22191 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22192
22193 PR c++/89709
22194 * tree.c (inchash::add_expr): Strip any location wrappers.
22195 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22196 after hash verification.
22197
22198 PR debug/89704
22199 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22200 SIGN_EXTEND and ZERO_EXTEND.
22201
22202 2019-03-14 Jason Merrill <jason@redhat.com>
22203 Jakub Jelinek <jakub@redhat.com>
22204
22205 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22206 than if is_empty (*slot).
22207 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22208 existing elt and for elt removal.
22209 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22210 of already removed elt.
22211
22212 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22213
22214 PR target/89650
22215 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22216 REG_EH_REGION note.
22217
22218 2019-03-14 Martin Liska <mliska@suse.cz>
22219
22220 PR other/89712
22221 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22222
22223 2019-03-14 Richard Biener <rguenther@suse.de>
22224
22225 PR target/89711
22226 * config/i386/i386.c (make_resolver_func): Properly set
22227 DECL_CONTEXT on the RESULT_DECL.
22228 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22229
22230 2019-03-14 Richard Biener <rguenther@suse.de>
22231
22232 * gimple-pretty-print.c: Include cfgloop.h.
22233 (dump_gimple_phi): Adjust.
22234 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22235 (pp_cfg_jump): Adjust.
22236 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22237 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22238 (lower_phi_internal_fn): Remove.
22239 (verify_gimple_call): Remove IFN_PHI special-casing.
22240 (dump_function_to_file): Dump IL state.
22241 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22242 done to deal with PHI nodes being present in non-SSA state.
22243
22244 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22245
22246 PR ipa/89684
22247 * multiple_target.c (create_dispatcher_calls): Change
22248 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22249 In the node->iterate_referring loop, push *ref rather than ref, call
22250 ref->remove_reference () and always pass 0 to iterate_referring.
22251
22252 PR rtl-optimization/89679
22253 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22254 would contain a paradoxical SUBREG.
22255
22256 2019-03-14 Richard Biener <rguenther@suse.de>
22257
22258 PR tree-optimization/89710
22259 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22260 safe_dyn_cast.
22261
22262 2019-03-14 Martin Liska <mliska@suse.cz>
22263
22264 * coverage.c (coverage_begin_function): Stream also
22265 end_column.
22266 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22267 documentation about function declaration location.
22268 * gcov-dump.c (tag_function): Print whole range
22269 of function declaration.
22270 * gcov.c (struct function_info): Add end_column field.
22271 (function_info::function_info): Initialize it.
22272 (output_json_intermediate_file): Output {start,end}_column
22273 fields.
22274 (read_graph_file): Read end_column.
22275
22276 2019-03-14 Richard Biener <rguenther@suse.de>
22277
22278 PR middle-end/89698
22279 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22280 that the access types are similar.
22281
22282 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22283
22284 PR tree-optimization/89703
22285 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22286 aren't compatible also with builtin_decl_explicit. Check pure
22287 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22288 and BUILT_IN_STPNCPY{,_CHK}.
22289
22290 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22291
22292 PR target/89523
22293 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22294 addr32 prefix to VSIB address for X32.
22295 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22296 "%M2" to opcode.
22297 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22298 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22299 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22300 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22301 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22302 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22303 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22304 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22305 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22306 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22307 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22308 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22309 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22310 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22311 (*avx512f_scatterdi<mode>): Likewise.
22312
22313 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22314
22315 PR target/85860
22316 * lra-constraints.c (inherit_in_ebb): Update
22317 potential_reload_hard_regs along with live_hard_regs.
22318
22319 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22320
22321 PR debug/89498
22322 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22323 DWARF_OFFSET_SIZE.
22324 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22325
22326 2019-03-13 Martin Sebor <msebor@redhat.com>
22327
22328 PR tree-optimization/89662
22329 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22330 has a size.
22331
22332 2019-03-13 Richard Biener <rguenther@suse.de>
22333
22334 PR middle-end/89677
22335 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22336 throw FP expressions at tree-affine.
22337
22338 2019-03-14 Richard Biener <rguenther@suse.de>
22339
22340 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22341 dump negative integer constants using _Literal (type) -num.
22342
22343 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22344
22345 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22346 nonlocal_value member.
22347
22348 PR middle-end/88588
22349 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22350 (ipa_simd_modify_function_body): Handle PHIs.
22351
22352 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22353
22354 * config/s390/s390.c (s390_option_override_internal): Use more
22355 aggressive inlining parameters.
22356
22357 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22358
22359 * config/s390/3906.md: New file.
22360 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22361 (LONGRUNNING_THRESHOLD): Remove.
22362 (MAX_SCHED_MIX_SCORE): Decrease.
22363 (MAX_SCHED_MIX_DISTANCE): Decrease.
22364 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22365 (struct s390_sched_state): New struct to hold scheduling state.
22366 (S390_SCHED_STATE_NORMAL): Remove.
22367 (S390_SCHED_STATE_CRACKED): Remove.
22368 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22369 (s390_get_sched_attrmask): Use new attribute.
22370 (s390_get_unit_mask): Use new units.
22371 (s390_is_fpd): New function.
22372 (s390_is_fxd): New function.
22373 (s390_is_longrunning): New function.
22374 (s390_sched_score): Use new functions.
22375 (s390_sched_reorder): Likewise.
22376 (s390_sched_variable_issue): Rework and use new functions.
22377 (s390_sched_init): Use new functions.
22378 * config/s390/s390.h (s390_tune_attr): Add z14.
22379 * config/s390/s390.md: Add z14.
22380
22381 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22382
22383 * config/s390/2964.md: Update pipeline description.
22384 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22385 (LONGRUNNING_THRESHOLD): Remove.
22386 (LATENCY_FACTOR): Remove.
22387 (s390_get_unit_mask): Add unit.
22388 (s390_sched_score): Use fxd/fpd.
22389 (s390_sched_variable_issue): Use fxd/fpd.
22390
22391 2019-03-12 Martin Liska <mliska@suse.cz>
22392
22393 * config/i386/i386.c: Reword an error message.
22394
22395 2019-03-12 Martin Jambor <mjambor@suse.cz>
22396
22397 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22398 terminate with newline.
22399
22400 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22401
22402 PR target/52726
22403 * config/s390/s390.md (tabort): Use %wd instead of
22404 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22405 letters and periods.
22406 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22407 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22408 's with %< and %>.
22409
22410 PR middle-end/89663
22411 * builtins.c (expand_builtin_int_roundingfn,
22412 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22413 gcc_unreachable if validate_arglist fails.
22414
22415 2019-03-12 Richard Biener <rguenther@suse.de>
22416
22417 PR tree-optimization/89664
22418 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22419 free the occurance tree after the early out.
22420
22421 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22422
22423 PR middle-end/89655
22424 PR bootstrap/89656
22425 * vr-values.c (vr_values::update_value_range): If
22426 old_vr->varying_p (), don't update it, make new_vr also VARYING
22427 and return false.
22428
22429 2019-03-11 Martin Liska <mliska@suse.cz>
22430
22431 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22432 Fix double string quoting.
22433
22434 2019-03-11 Martin Liska <mliska@suse.cz>
22435
22436 * collect-utils.c (collect_wait): Wrap apostrophes
22437 in gcc internal format with %'.
22438 * collect2.c (main): Likewise.
22439 (scan_prog_file): Likewise.
22440 (scan_libraries): Likewise.
22441 * config/i386/i386.c (ix86_expand_call): Likewise.
22442 (ix86_handle_interrupt_attribute): Likewise.
22443 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22444 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22445 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22446 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22447 * symtab.c (symtab_node::verify_base): Likewise.
22448 * tree-cfg.c (verify_gimple_label): Likewise.
22449 * tree.c (verify_type_variant): Likewise.
22450
22451 2019-03-11 Martin Liska <mliska@suse.cz>
22452
22453 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22454 in a string format message and fix GNU coding style.
22455 (expand_builtin_set_thread_pointer): Likewise.
22456 * common/config/aarch64/aarch64-common.c
22457 (aarch64_rewrite_selected_cpu): Likewise.
22458 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22459 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22460 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22461 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22462 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22463 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22464 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22465 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22466 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22467 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22468 Likewise.
22469 * common/config/riscv/riscv-common.c
22470 (riscv_subset_list::parsing_subset_version): Likewise.
22471 (riscv_subset_list::parse_std_ext): Likewise.
22472 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22473 (riscv_subset_list::parse): Likewise.
22474 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22475 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22476 (aarch64_override_options_internal): Likewise.
22477 (aarch64_validate_mcpu): Likewise.
22478 (aarch64_validate_march): Likewise.
22479 (aarch64_validate_mtune): Likewise.
22480 (aarch64_override_options): Likewise.
22481 * config/alpha/alpha.c (alpha_option_override): Likewise.
22482 * config/arc/arc.c (arc_init): Likewise.
22483 (parse_mrgf_banked_regs_option): Likewise.
22484 (arc_override_options): Likewise.
22485 (arc_expand_builtin_aligned): Likewise.
22486 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22487 (arm_expand_builtin): Likewise.
22488 * config/arm/arm.c (arm_option_check_internal): Likewise.
22489 (arm_configure_build_target): Likewise.
22490 (arm_option_override): Likewise.
22491 (arm_options_perform_arch_sanity_checks): Likewise.
22492 (arm_handle_cmse_nonsecure_entry): Likewise.
22493 (arm_handle_cmse_nonsecure_call): Likewise.
22494 (arm_tls_referenced_p): Likewise.
22495 (thumb1_expand_prologue): Likewise.
22496 * config/avr/avr.c (avr_option_override): Likewise.
22497 * config/bfin/bfin.c (bfin_option_override): Likewise.
22498 * config/c6x/c6x.c (c6x_option_override): Likewise.
22499 * config/cr16/cr16.c (cr16_override_options): Likewise.
22500 * config/cris/cris.c (cris_option_override): Likewise.
22501 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22502 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22503 * config/darwin.c (darwin_override_options): Likewise.
22504 * config/frv/frv.c (frv_expand_builtin): Likewise.
22505 * config/h8300/h8300.c (h8300_option_override): Likewise.
22506 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22507 (ix86_option_override_internal): Likewise.
22508 (warn_once_call_ms2sysv_xlogues): Likewise.
22509 (ix86_expand_prologue): Likewise.
22510 (split_stack_prologue_scratch_regno): Likewise.
22511 (ix86_warn_parameter_passing_abi): Likewise.
22512 * config/ia64/ia64.c (fix_range): Likewise.
22513 * config/m68k/m68k.c (m68k_option_override): Likewise.
22514 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22515 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22516 (mips_set_compression_mode): Likewise.
22517 * config/mmix/mmix.c (mmix_option_override): Likewise.
22518 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22519 * config/msp430/msp430.c (msp430_option_override): Likewise.
22520 * config/nds32/nds32.c (nds32_option_override): Likewise.
22521 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22522 (nios2_option_override): Likewise.
22523 (nios2_expand_custom_builtin): Likewise.
22524 * config/nvptx/mkoffload.c (main): Likewise.
22525 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22526 * config/pa/pa.c (fix_range): Likewise.
22527 (pa_option_override): Likewise.
22528 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22529 (riscv_option_override): Likewise.
22530 * config/rl78/rl78.c (rl78_option_override): Likewise.
22531 * config/rs6000/aix61.h: Likewise.
22532 * config/rs6000/aix71.h: Likewise.
22533 * config/rs6000/aix72.h: Likewise.
22534 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22535 * config/rs6000/freebsd64.h: Likewise.
22536 * config/rs6000/linux64.h: Likewise.
22537 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22538 (rs6000_expand_zeroop_builtin): Likewise.
22539 (rs6000_expand_mtfsb_builtin): Likewise.
22540 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22541 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22542 (rs6000_invalid_builtin): Likewise.
22543 (rs6000_expand_split_stack_prologue): Likewise.
22544 * config/rs6000/rtems.h: Likewise.
22545 * config/rx/rx.c (valid_psw_flag): Likewise.
22546 (rx_expand_builtin): Likewise.
22547 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22548 * config/s390/s390.c (s390_expand_builtin): Likewise.
22549 (s390_function_profiler): Likewise.
22550 (s390_option_override_internal): Likewise.
22551 (s390_option_override): Likewise.
22552 * config/sh/sh.c (sh_option_override): Likewise.
22553 (sh_builtin_saveregs): Likewise.
22554 (sh_fix_range): Likewise.
22555 * config/sh/vxworks.h: Likewise.
22556 * config/sparc/sparc.c (sparc_option_override): Likewise.
22557 * config/spu/spu.c (spu_option_override): Likewise.
22558 (fix_range): Likewise.
22559 * config/visium/visium.c (visium_option_override): Likewise.
22560 (visium_handle_interrupt_attr): Likewise.
22561 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22562 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22563 (dbg_cnt_process_opt): Likewise.
22564 * dwarf2out.c (output_dwarf_version): Likewise.
22565 * except.c (expand_eh_return): Likewise.
22566 * gcc.c (defined): Likewise.
22567 (driver_handle_option): Likewise.
22568 (process_command): Likewise.
22569 (compare_files): Likewise.
22570 (driver::prepare_infiles): Likewise.
22571 (driver::do_spec_on_infiles): Likewise.
22572 (driver::maybe_run_linker): Likewise.
22573 * omp-offload.c (oacc_parse_default_dims): Likewise.
22574 * opts-global.c (handle_common_deferred_options): Likewise.
22575 * opts.c (parse_sanitizer_options): Likewise.
22576 (common_handle_option): Likewise.
22577 (enable_warning_as_error): Likewise.
22578 * passes.c (enable_disable_pass): Likewise.
22579 * plugin.c (parse_plugin_arg_opt): Likewise.
22580 (default_plugin_dir_name): Likewise.
22581 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22582 (default_pch_valid_p): Likewise.
22583 * toplev.c (init_asm_output): Likewise.
22584 (process_options): Likewise.
22585 (toplev::run_self_tests): Likewise.
22586 * tree-cfg.c (verify_gimple_call): Likewise.
22587 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22588 (tree_inlinable_function_p): Likewise.
22589 * var-tracking.c (vt_find_locations): Likewise.
22590
22591 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22592
22593 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22594 only on the else branch.
22595
22596 2019-03-11 Martin Liska <mliska@suse.cz>
22597
22598 * gcov.c (output_intermediate_json_line): Print function
22599 name of each line.
22600 (output_json_intermediate_file): Add new argument.
22601 * doc/gcov.texi: Document the change.
22602
22603 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22604
22605 PR rtl-optimization/89588
22606 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22607 explicit unrolling factor more robust.
22608
22609 2019-03-11 Richard Biener <rguenther@suse.de>
22610
22611 PR tree-optimization/89649
22612 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22613 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22614 on the prolog and epilog loops.
22615 (vect_loop_versioning): Return copy of loop.
22616 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22617 on the non-vectorized version of the loop.
22618
22619 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22620
22621 PR target/68924
22622 * config/i386/sse.md (*vec_extractv2di_0_sse):
22623 Add (=r,x) alternative and corresponding splitter.
22624
22625 2019-03-10 Martin Jambor <mjambor@suse.cz>
22626
22627 PR tree-optimization/85762
22628 PR tree-optimization/87008
22629 PR tree-optimization/85459
22630 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22631 it points to if there is a type changing MEM_REF. Adjust all callers.
22632 (build_accesses_from_assign): Disable total scalarization if
22633 contains_vce_or_bfcref_p returns true through the new parameter, for
22634 both rhs and lhs.
22635
22636 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22637
22638 PR c/88568
22639 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22640 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22641
22642 PR target/79645
22643 * common.opt (fdiagnostics-show-labels,
22644 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22645 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22646 gas-locview-support, ginline-points, ginternal-reset-location-views):
22647 Terminate description text with a dot.
22648 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22649 * config/mcore/mcore.opt (m210, m340): Likewise.
22650 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22651 mnops=): Start description text with a capital letter.
22652 * config/arc/arc.opt (msize-level=): Likewise.
22653 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22654 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22655 mnewlib): Likewise.
22656 * config/ft32/ft32.opt (msim): Likewise.
22657 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22658 (mnodiv, mnopm): Terminate description text with a dot.
22659 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22660 a colon.
22661 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22662 Likewise.
22663 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22664 text.
22665
22666 PR rtl-optimization/89634
22667 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22668 are modified in BB_END (e->src) instruction.
22669
22670 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22671
22672 PR target/79926
22673 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22674 messages more amenable to translation, and improve wording.
22675
22676 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22677
22678 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22679 ud- and du-chains between phases.
22680
22681 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22682
22683 PR debug/89631
22684 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22685 instead of POLY_INT_CST.
22686
22687 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22688
22689 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22690 requirement.
22691
22692 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22693
22694 PR target/68924
22695 PR target/78782
22696 PR target/87558
22697 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22698 (_mm_storeu_si64): Ditto.
22699
22700 2019-03-08 Martin Liska <mliska@suse.cz>
22701
22702 PR target/86952
22703 * config/i386/i386.c (ix86_option_override_internal): Disable
22704 jump tables when retpolines are used.
22705
22706 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22707
22708 PR go/63560
22709 * ipa-split.c (execute_split_functions): Do not split
22710 'noinline' or 'section' function.
22711
22712 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22713
22714 PR target/79846
22715 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22716 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22717 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22718
22719 PR ipa/80000
22720 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22721 from diagnostics. Formatting fixes.
22722
22723 PR target/85665
22724 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22725 warn_odr diagnostics.
22726
22727 PR other/80058
22728 * lra-constraints.c (process_alt_operands): Avoid one space before
22729 " at the end of line and another after " on another line in a string
22730 literal.
22731 * attribs.c (handle_dll_attribute): Likewise.
22732 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22733
22734 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22735 warning_at or inform messages in G_() if there is no ?:.
22736
22737 PR tree-optimization/89550
22738 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22739 returned true. Formatting fixes.
22740 (expand_builtin_strnlen): Formatting fixes.
22741 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22742 if warning_at returned true.
22743 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22744
22745 2019-03-08 Richard Biener <rguenther@suse.de>
22746
22747 PR middle-end/89578
22748 * cfgloop.h (struct loop): Add owned_clique field.
22749 * cfgloopmanip.c (copy_loop_info): Copy it.
22750 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22751 cliques.
22752 * tree-inline.c (copy_loops): Remap owned_clique.
22753 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22754 * lto-streamer-out.c (output_cfg): Likewise.
22755
22756 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22757
22758 PR target/80190
22759 * config/darwin.c: Include intl.h.
22760 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22761 composing the message out of two separate parts.
22762
22763 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22764
22765 PR target/80003
22766 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22767 doesn't start with a capital letter and doesn't end with a dot.
22768 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22769 with a capital letter.
22770 (ix86_mangle_function_version_assembler_name): Likewise.
22771 (ix86_generate_version_dispatcher_body): Likewise.
22772 (fold_builtin_cpu): Likewise.
22773 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22774 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22775 translators, wrap full type name in %qs.
22776
22777 PR translation/79999
22778 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22779 depend clause with source (or sink) modifier.
22780 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22781
22782 PR target/89602
22783 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22784 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22785 (avx512f_load<mode>_mask): New define_expand.
22786 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22787 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22788 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22789 __builtin_ia32_movess_mask): New builtins.
22790 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22791 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22792 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22793 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22794
22795 2019-03-07 Martin Jambor <mjambor@suse.cz>
22796
22797 PR lto/87525
22798 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22799 for extern inline functions.
22800
22801 2019-03-07 Martin Jambor <mjambor@suse.cz>
22802
22803 PR ipa/88235
22804 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22805 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22806 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22807 have multiple callees. At the end check if declarations match as
22808 opposed to cgraph_nodes.
22809
22810 2019-03-07 Martin Liska <mliska@suse.cz>
22811
22812 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22813 which is equivalent to searching for this in clones chain.
22814 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22815 names with a neighbour and special case first node in a chain.
22816
22817 2019-01-25 Jason Merrill <jason@redhat.com>
22818
22819 PR c++/80916 - spurious "static but not defined" warning.
22820 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22821 for an internal symbol with DECL_EXTERNAL.
22822
22823 2019-04-07 Richard Biener <rguenther@suse.de>
22824
22825 PR middle-end/89618
22826 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22827 * tree-inline.c (copy_loops): Simplify.
22828
22829 2019-03-07 Martin Liska <mliska@suse.cz>
22830
22831 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22832
22833 2019-03-07 Richard Biener <rguenther@suse.de>
22834
22835 PR tree-optimization/89595
22836 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22837 stmt iterator as reference, take boolean output parameter to
22838 indicate whether the stmt was removed and thus the iterator
22839 already advanced.
22840 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22841 stmts created by folding.
22842
22843 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22844
22845 PR c++/89585
22846 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22847 at toplevel.
22848
22849 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22850
22851 PR rtl-optimization/88845
22852 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22853 LRA.
22854 * lra.c (remove_scratches_1): New function.
22855 (remove_scratches): Use it.
22856 (lra_emit_move): Likewise.
22857
22858 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22859
22860 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22861 unaligned_access variable.
22862 * config/arc/arc.c (arc_override_options): Set unaligned access
22863 default on for HS CPUs.
22864 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22865
22866 2019-03-06 Martin Liska <mliska@suse.cz>
22867
22868 PR gcov-profile/89577
22869 * doc/gcov.texi: Prefer to use --coverage.
22870 * doc/sourcebuild.texi: Likewise.
22871
22872 2019-03-02 Jason Merrill <jason@redhat.com>
22873
22874 PR c++/86485 - -Wmaybe-unused with empty class ?:
22875 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22876
22877 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22878
22879 PR target/89587
22880 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22881 if_multiarch.
22882
22883 PR middle-end/89590
22884 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22885 exactly one argument.
22886
22887 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22888 Richard Sandiford <richard.sandiford@arm.com>
22889
22890 PR tree-optimization/89570
22891 * match.pd (vec_cond into cond_op simplification): Don't use
22892 get_conditional_internal_fn, use as_internal_fn (cond_op).
22893
22894 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22895
22896 PR target/89222
22897 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22898 to decide when to split off a non-zero offset from a symbol.
22899 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22900 in function symbols.
22901
22902 2019-03-05 Richard Biener <rguenther@suse.de>
22903
22904 PR tree-optimization/89594
22905 * tree-if-conv.c (pass_if_conversion::execute): Handle
22906 case where .LOOP_VECTORIZED_FUNCTION was removed.
22907
22908 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22909
22910 PR bootstrap/89560
22911 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22912 instead alloca it only when needed with the needed size.
22913
22914 PR tree-optimization/89570
22915 * match.pd (vec_cond into cond_op simplification): Guard with
22916 vectorized_internal_fn_supported_p test and #if GIMPLE.
22917
22918 PR tree-optimization/89566
22919 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22920 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22921 Punt if get_user_idx_format succeeds, but idx_format argument is
22922 not provided or doesn't have pointer type, or if idx_args is above
22923 number of provided arguments.
22924
22925 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22926
22927 PR tree-optimization/89437
22928 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22929
22930 2019-03-04 Richard Biener <rguenther@suse.de>
22931
22932 PR middle-end/89572
22933 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22934 safe_dyn_cast.
22935
22936 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22937
22938 PR tree-optimization/89487
22939 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22940 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22941 (distribute_loop): Don't do runtime alias check if there is non-
22942 addressable data reference.
22943 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22944 is a register variable.
22945
22946 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22947
22948 PR target/89506
22949 * config/arm/arm.md (cmpsi2_addneg): Use
22950 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22951 If operands[2] is 0 or INT_MIN, force use of subs.
22952 (*compare_scc splitter): Use gen_int_mode.
22953 (*negscc): Likewise.
22954 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22955
22956 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22957 Monk Chiang <sh.chiang04@gmail.com>
22958
22959 * common/config/riscv/riscv-common.c: Include sstream.
22960 (riscv_subset_list::to_string): New.
22961 (riscv_arch_str): Likewise.
22962 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22963 * config.in: Regen.
22964 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22965 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22966 (riscv_emit_attribute): New.
22967 (riscv_file_start): Emit attribute if needed.
22968 (riscv_option_override): Init riscv_emit_attribute_p.
22969 * config/riscv/riscv.opt (mriscv-attribute): New option.
22970 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22971 * configure: Regen.
22972 * doc/install.texi: Document --with-riscv-attribute.
22973 * doc/invoke.texi: Document -mriscv-attribute.
22974
22975 * common/config/riscv/riscv-common.c:
22976 Include config/riscv/riscv-protos.h.
22977 (INCLUDE_STRING): Defined.
22978 (RISCV_DONT_CARE_VERSION): Defined.
22979 (riscv_subset_t): Declare.
22980 (riscv_subset_t::riscv_subset_t): New.
22981 (riscv_subset_list): Declare.
22982 (riscv_subset_list::riscv_subset_list): New.
22983 (riscv_subset_list::~riscv_subset_list): Likewise.
22984 (riscv_subset_list::parsing_subset_version): Likewise.
22985 (riscv_subset_list::parse_std_ext): Likewise.
22986 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22987 (riscv_subset_list::add): Likewise.
22988 (riscv_subset_list::lookup): Likewise.
22989 (riscv_subset_list::xlen): Likewise.
22990 (riscv_subset_list::parse): Likewise.
22991 (riscv_supported_std_ext): Likewise.
22992 (current_subset_list): Likewise.
22993 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22994 parse.
22995
22996 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22997
22998 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22999 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23000 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23001
23002 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23003
23004 PR rtl-optimization/85899
23005 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23006 fallthru edges leading to the exit block.
23007
23008 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23009
23010 PR target/89517
23011 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23012 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23013
23014 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23015
23016 PR tree-optimization/89535
23017 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23018 for each operand. Calculate the fallback choice for mask operands
23019 and pass it to vect_get_vec_def_for_operand.
23020
23021 2019-03-01 Richard Biener <rguenther@suse.de>
23022
23023 PR middle-end/89541
23024 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23025 get virtual operands.
23026 (get_expr_operands): Handle CONST_DECL like other decls.
23027
23028 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23029
23030 PR middle-end/89503
23031 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23032 on DECL_P and EXPR_P.
23033
23034 2019-03-01 Richard Biener <rguenther@suse.de>
23035
23036 PR middle-end/89497
23037 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23038 argument, defaulted to zero.
23039 * passes.c (execute_function_todo): Pass down SSA update flags
23040 to cleanup_tree_cfg.
23041 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23042 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23043 form if requested.
23044 (cleanup_tree_cfg): Get and pass down SSA update flags.
23045
23046 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23047
23048 PR bootstrap/89539
23049 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23050 early_lto_debug argument.
23051
23052 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23053
23054 PR tree-optimization/89536
23055 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23056 only whether bit #0 of the value is 0 instead of the entire value.
23057
23058 2019-02-28 Marek Polacek <polacek@redhat.com>
23059
23060 PR c++/87068 - missing diagnostic with fallthrough statement.
23061 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23062 at the end of a seq, save its location to walk_stmt_info.
23063 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23064 a switch.
23065
23066 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23067
23068 PR lto/88585
23069 * tree.c (find_atomic_core_type): Move ahead in file.
23070 (check_base_type): Correctly compare alignments of atomic types.
23071
23072 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23073
23074 PR target/89455
23075 * config/i386/i386.c (get_builtin_code_for_version): Identify
23076 Westmere from PCLMUL, instead of AES.
23077
23078 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23079
23080 PR target/89434
23081 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23082 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23083 -UINTVAL (...).
23084
23085 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23086
23087 PR target/88530
23088 * config/aarch64/aarch64-option-extensions.def: Document it.
23089 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23090 if empty hwcaps.
23091
23092 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23093
23094 PR c/89520
23095 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23096 builtins if they don't have a single scalar floating point argument.
23097 Formatting fixes.
23098
23099 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23100
23101 PR rtl-optimization/89490
23102 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23103 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23104 block section is not mergeable.
23105
23106 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23107
23108 PR target/70341
23109 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23110 old define_insn to ...
23111 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23112 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23113 Rename old define_insn to ...
23114 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23115 (thumb2_casesi_internal_pic): New define_expand. Rename old
23116 define_insn to ...
23117 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23118 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23119 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23120
23121 2019-02-27 Richard Biener <rguenther@suse.de>
23122
23123 PR debug/88878
23124 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23125
23126 2019-02-27 Richard Biener <rguenther@suse.de>
23127
23128 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23129 building.
23130
23131 2019-02-27 Richard Biener <rguenther@suse.de>
23132
23133 PR debug/88878
23134 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23135 parameter, prefix section name with .gnu.debuglto_ if true.
23136 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23137 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23138
23139 2019-02-27 Richard Biener <rguenther@suse.de>
23140
23141 PR debug/89514
23142 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23143 rather than on use_debug_types, doing what output_die does.
23144 (value_format): Likewise.
23145
23146 2019-02-27 Martin Jambor <mjambor@suse.cz>
23147 Martin Sebor <msebor@redhat.com>
23148
23149 * doc/invoke.texi (Warning Options): Reword description of
23150 -Wno-absolute-value.
23151
23152 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23153
23154 PR tree-optimization/89280
23155 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23156 builtin_setjmp_setup_bb): New functions.
23157 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23158 When visiting __builtin_setjmp_setup block, queue in special
23159 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23160 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23161 from visited after the loop if they don't have any visited successor
23162 blocks.
23163
23164 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23165
23166 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23167 New function.
23168 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23169
23170 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23171
23172 PR c++/89507
23173 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23174 with types other than sizetype/ssizetype.
23175
23176 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23177
23178 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23179 (enum sparc_processor_type): ...this.
23180 (enum sparc_code_model_type): New enumeration type.
23181 (enum sparc_memory_model_type): Tweak comments.
23182 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23183 (mtune): Likewise.
23184 (mcmodel): Use sparc_code_model enumeration and variable.
23185 (sparc_code_model): New enumeration.
23186 (mdebug): Add Undocumented marker.
23187 * config/sparc/sparc.h (enum cmodel): Delete.
23188 (sparc_cmodel): Likewise.
23189 (TARGET_CM_MEDLOW): Adjust to above renaming.
23190 (TARGET_CM_MEDMID): Likewise.
23191 (TARGET_CM_MEDANY): Likewise.
23192 (TARGET_CM_EMBMEDANY): Likewise.
23193 * config/sparc/sparc.c (sparc_cmodel): Delete.
23194 (sparc_option_override): Remove string/value mapping support for the
23195 code model. Move code and memory model support to after the handling
23196 of target flags. Do private machine setup last.
23197 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23198 (sparc_legitimize_reload_address): Likewise.
23199 (sparc_output_mi_thunk): Likewise.
23200 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23201
23202 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23203
23204 PR tree-optimization/89500
23205 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23206 (handle_builtin_strlen): Remove noncst_bound variable. Always
23207 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23208 cst if the first cst bytes starting at x are known to be non-zero,
23209 even if the string is not zero terminated. Don't try to modify
23210 *si for strnlen. Update strlen_to_stridx only for strlen or if
23211 we can prove strnlen returns the same value as strlen would.
23212
23213 2019-02-26 Martin Liska <mliska@suse.cz>
23214
23215 * alloc-pool.h (struct pool_usage): Remove extra
23216 print_dash_line.
23217 * bitmap.h (struct bitmap_usage): Likewise.
23218 * ggc-common.c (struct ggc_usage): Likewise.
23219 * mem-stats.h (struct mem_usage): Likewise.
23220 (mem_alloc_description::dump): Print dash lines
23221 here and repeat header at the end of a table report.
23222 It's then more readable.
23223 * tree-phinodes.c (phinodes_print_statistics): Make
23224 horizontal alignment.
23225 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23226 * vec.c (struct vec_usage): Remove extra print_dash_line.
23227 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23228
23229 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23230
23231 * doc/extend.texi (__builtin_object_size):
23232 Use @pxref instead of @xref inside parenthesis.
23233 (__builtin_has_attribute): Add missing comma after @xref.
23234 (__builtin_object_size): Ditto.
23235 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23236
23237 2019-02-26 Jeff Law <law@redhat.com>
23238
23239 PR rtl-optimization/87761
23240 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23241 detect obviously dead insns and delete them.
23242
23243 2019-02-26 Richard Biener <rguenther@suse.de>
23244
23245 PR tree-optimization/89505
23246 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23247 to handle restrict pointed-to vars with multiple subvars
23248 correctly.
23249
23250 2019-02-26 Richard Biener <rguenther@suse.de>
23251
23252 PR tree-optimization/89489
23253 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23254
23255 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23256
23257 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23258 and move around comment.
23259 <BIT_AND_EXPR>: Likewise.
23260 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23261
23262 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23263
23264 PR target/89474
23265 * config/i386/i386.c (remove_partial_avx_dependency): Call
23266 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23267 after changing possibly many instructions to use that pseudo. Fix up
23268 insertion of v4sf_const0 setter at the start of bb.
23269
23270 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23271
23272 PR c/80409
23273 * doc/extend.texi (Variadic Pointer Args): New section.
23274
23275 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23276 Martin Sebor <msebor@gmail.com>
23277
23278 * common.opt (Wattribute-alias): Likewise.
23279 * doc/invoke.texi (Option Summary): List general form of
23280 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23281 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23282 Add cross-references.
23283 (-Wattribute-alias): Rewrite and correct default. Mention
23284 considered attributes (same as for -Wmissing-attributes).
23285
23286 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23287
23288 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23289 (_mm_cvtpd_ps): Likewise.
23290 (_mm_cvttpd_epi32): Likewise.
23291
23292 PR target/89338
23293 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23294 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23295
23296 PR target/89339
23297 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23298
23299 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23300
23301 PR target/88530
23302 * common/config/aarch64/aarch64-common.c
23303 (struct aarch64_option_extension): Add is_synthetic.
23304 (all_extensions): Use it.
23305 (TARGET_OPTION_INIT_STRUCT): Define hook.
23306 (struct gcc_targetm_common): Moved to end.
23307 (all_extensions_by_on): New.
23308 (opt_ext_cmp, typedef opt_ext): New.
23309 (aarch64_option_init_struct): New.
23310 (aarch64_contains_opt): New.
23311 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23312 * config/aarch64/aarch64-option-extensions.def
23313 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23314 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23315 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23316 Set is_synthetic to false.
23317 (crypto): Set is_synthetic to true.
23318 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23319 SYNTHETIC.
23320
23321 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23322
23323 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23324 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23325 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23326 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23327 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23328 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23329 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23330 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23331 Rename ...
23332 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23333 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23334 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23335 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23336 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23337 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23338 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23339 vfmlsl_laneq_high_f16): ... To this.
23340 * config/arm/neon.md: Update comments.
23341
23342 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23343
23344 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23345 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23346 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23347 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23348 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23349 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23350 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23351 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23352 Rename ...
23353 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23354 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23355 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23356 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23357 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23358 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23359 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23360 vfmlslq_laneq_high_f16): ... To this.
23361
23362 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23363
23364 PR rtl-optimization/86096
23365 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23366 comparing mw_order values.
23367
23368 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23369
23370 PR target/89434
23371 * config/arm/arm.md (*subsi3_carryin_const): Use
23372 arm_neg_immediate_operand predicate instead of
23373 arm_not_immediate_operand, "L" constraint instead of "K" and
23374 print it using %n2 instead of %B2.
23375 (*subsi3_carryin_const0): New define_insn.
23376 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23377 instead of arm_not_operand and "I" constraint instead of "K" and
23378 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23379 another match_operand and in the condition check that it is negation
23380 of operands[2].
23381 (*subsi3_carryin_compare_const0): New define_ins.
23382 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23383 *subsi3_carryin_const.
23384 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23385 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23386
23387 PR target/89438
23388 * config/arm.vfp.md (*negdf2_vfp): Use
23389 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23390 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23391
23392 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23393
23394 PR rtl-optimization/89445
23395 * simplify-rtx.c (simplify_ternary_operation): Don't use
23396 simplify_merge_mask on operands that may trap.
23397 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23398 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23399 second operand is CONST_VECTOR, check if any element could be zero.
23400 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23401 their operands can trap.
23402
23403 2019-02-23 Martin Sebor <msebor@redhat.com>
23404
23405 * gimple-ssa-sprintf.c (target_strtol): Rename...
23406 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23407 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23408 check for range error.
23409
23410 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23411
23412 PR driver/69471
23413 * opts-common.c (prune_options): Also prune joined switches
23414 with Negative and RejectNegative.
23415 * config/i386/i386.opt (march=): Add Negative(march=).
23416 (mtune=): Add Negative(mtune=).
23417 * doc/options.texi: Document Negative used together with Joined
23418 and RejectNegative.
23419
23420 2019-02-22 Martin Sebor <msebor@redhat.com>
23421
23422 * doc/extend.texi (Other Builtins): Add
23423 __builtin_is_constant_evaluated.
23424
23425 2019-02-22 Richard Biener <rguenther@suse.de>
23426
23427 PR tree-optimization/87609
23428 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23429
23430 2019-02-22 Jeff Law <law@redhat.com>
23431
23432 PR rtl-optimization/87761
23433 * config/mips/mips.md: Add new combiner pattern to recognize
23434 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23435
23436 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23437
23438 PR target/89324
23439 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23440 destination register in peepholes generating patterns for ADDS/SUBS.
23441 (add<mode>3_compare0,
23442 *addsi3_compare0_uxtw, add<mode>3_compareC,
23443 add<mode>3_compareV_imm, add<mode>3_compareV,
23444 *adds_<optab><ALLX:mode>_<GPI:mode>,
23445 *subs_<optab><ALLX:mode>_<GPI:mode>,
23446 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23447 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23448 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23449 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23450 sub<mode>3_compare1): Allow stack pointer for source register.
23451 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23452
23453 2019-02-22 Martin Sebor <msebor@redhat.com>
23454
23455 PR tree-optimization/88993
23456 PR tree-optimization/88853
23457 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23458 New helper.
23459 (sprintf_dom_walker::call_info::is_string_func): New helper.
23460 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23461 for formatted string functions.
23462 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23463
23464 2019-02-22 Martin Sebor <msebor@redhat.com>
23465
23466 PR c/89425
23467 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23468 unreachable subexpressions.
23469
23470 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23471 Hongtao Liu <hongtao.liu@intel.com>
23472 Sunil K Pandey <sunil.k.pandey@intel.com>
23473
23474 PR target/87007
23475 * config/i386/i386-passes.def: Add
23476 pass_remove_partial_avx_dependency.
23477 * config/i386/i386-protos.h
23478 (make_pass_remove_partial_avx_dependency): New.
23479 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23480 New function.
23481 (pass_data_remove_partial_avx_dependency): New.
23482 (pass_remove_partial_avx_dependency): Likewise.
23483 (make_pass_remove_partial_avx_dependency): Likewise.
23484 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23485 (*extendsfdf2): Add avx_partial_xmm_update.
23486 (truncdfsf2): Likewise.
23487 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23488 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23489
23490 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23491
23492 PR middle-end/85598
23493 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23494 analysis for pass.
23495
23496 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23497
23498 PR target/89444
23499 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23500 (PTA_SKYLAKE): Add PTA_AES.
23501 (PTA_GOLDMONT): Likewise.
23502
23503 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23504
23505 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23506 instruction if enabled.
23507 (aarch64_override_options): Remove reference to return address key.
23508
23509 2019-02-22 Richard Biener <rguenther@suse.de>
23510
23511 PR tree-optimization/89440
23512 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23513 not necessary assert.
23514
23515 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23516
23517 PR fortran/72741
23518 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23519 (oacc_replace_fn_attrib_attr): ... this new function.
23520 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23521 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23522
23523 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23524
23525 * config/arm/arm-cpus.in (ares): Rename to...
23526 (neoverse-n1): ... This. Add ares as alias.
23527 * config/arm/arm-tables.opt: Regenerate.
23528 * config/arm/arm-tune.md: Likewise.
23529 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23530
23531 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23532
23533 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23534 * config/aarch64/aarch64-tune.md: Regenerate.
23535 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23536
23537 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23538
23539 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23540 (neoversen1_tunings): ... This.
23541 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23542 (neoverse-n1): New CPU.
23543 * config/aarch64/aarch64-tune.md: Regenerate.
23544 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23545
23546 2019-02-22 Richard Biener <rguenther@suse.de>
23547
23548 PR middle-end/87609
23549 * cfghooks.h (dependence_hash): New typedef.
23550 (struct copy_bb_data): New type.
23551 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23552 (duplicate_block): Likewise.
23553 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23554 (copy_bbs): Create and pass down copy_bb_data.
23555 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23556 (rtl_duplicate_bb): Likewise.
23557 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23558 remap dependence info.
23559
23560 2019-02-22 Richard Biener <rguenther@suse.de>
23561
23562 PR tree-optimization/87609
23563 * tree-core.h (tree_base): Document special clique values.
23564 * tree-inline.c (remap_dependence_clique): Do not use the
23565 special clique value of one.
23566 (maybe_set_dependence_info): Use clique one.
23567 (clear_dependence_clique): New callback.
23568 (compute_dependence_clique): Clear clique one from all refs
23569 before assigning it (again).
23570
23571 2019-02-21 Martin Sebor <msebor@redhat.com>
23572
23573 * doc/extend.texi (__clear_cache): Correct signature.
23574
23575 2019-02-21 Ian Lance Taylor <iant@golang.org>
23576
23577 PR go/89170
23578 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23579 than output_constant_def.
23580 (add_constant_to_table): New static function.
23581 (output_constant_def): Call add_constant_to_table.
23582 (tree_output_constant_def): Likewise.
23583
23584 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23585
23586 PR c++/89285
23587 * builtins.c (fold_builtin_arith_overflow): If first two args are
23588 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23589 to ifn.
23590
23591 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23592
23593 PR target/87412
23594 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23595 error for -mindirect-branch/-mfunction-return with incompatible
23596 -fcf-protection.
23597
23598 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23599
23600 PR bootstrap/88714
23601 * constraints.md (q): Remove.
23602 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23603 instead of q.
23604
23605 2019-02-21 Martin Jambor <mjambor@suse.cz>
23606
23607 PR hsa/89302
23608 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23609 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23610 (omp_adjust_for_condition): ...here. Added necessary parameters.
23611 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23612 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23613 proper values to new parameters of omp_adjust_for_condition.
23614
23615 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23616
23617 PR middle-end/89412
23618 * expr.c (expand_assignment): If result is a MEM, use change_address
23619 instead of simplify_gen_subreg.
23620
23621 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23622 David Malcolm <dmalcolm@redhat.com>
23623
23624 PR middle-end/89091
23625 * fold-const.c (decode_field_reference): Return NULL_TREE if
23626 lang_hooks.types.type_for_size returns NULL. Check it before
23627 overwriting *exp_. Use return NULL_TREE instead of return 0.
23628
23629 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23630
23631 PR middle-end/88074
23632 PR middle-end/89415
23633 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23634 buggy mpc_norm.
23635
23636 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23637
23638 PR target/89397
23639 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23640 TARGET_SSE in addition to TARGET_SSE_MATH.
23641
23642 (ix86_excess_precision): Ditto.
23643 (ix86_float_exceptions_rounding_supported_p): Ditto.
23644 (use_rsqrt_p): Ditto.
23645 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23646
23647 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23648
23649 PR c/89410
23650 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23651 linenum_arith_t when determining if two adjacent line spans are
23652 close enough to merge.
23653 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23654 lines within each line_span.
23655
23656 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23657
23658 PR target/86487
23659 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23660 paradoxical SUBREGS.
23661
23662 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23663
23664 PR target/88100
23665 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23666 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23667 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23668 range checking it.
23669
23670 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23671
23672 * config/gcn/gcn.c (print_operand): Fix typo.
23673
23674 2019-02-19 Richard Biener <rguenther@suse.de>
23675
23676 PR middle-end/88074
23677 * toplev.c (do_compile): Initialize mpfr's exponent range
23678 based on available float modes.
23679
23680 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23681
23682 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23683 as long as the epilogue isn't completed.
23684
23685 2019-02-18 Martin Sebor <msebor@redhat.com>
23686
23687 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23688 __has_cpp_attribute, and __has_include.
23689
23690 2019-02-18 Martin Sebor <msebor@redhat.com>
23691
23692 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23693
23694 2019-02-18 Martin Sebor <msebor@redhat.com>
23695
23696 PR middle-end/89294
23697 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23698 expression.
23699 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23700
23701 2019-02-18 Richard Biener <rguenther@suse.de>
23702
23703 PR tree-optimization/89296
23704 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23705 of no-warning flag to cases that might emit the bogus warning.
23706
23707 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23708
23709 PR bootstrap/88714
23710 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23711 "q" constraint.
23712 * config/arm/vfp.md (*movdi_vfp): Likewise.
23713 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23714 "q" constraint for operands[0].
23715
23716 PR target/89369
23717 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23718 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23719 pattern in a temporary buffer.
23720 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23721 than 64-operands[2].
23722
23723 PR target/89361
23724 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23725 s390_indirect_branch_settings): Define unconditionally.
23726 (s390_set_current_function): Likewise, but guard the whole body except
23727 the s390_indirect_branch_settings call with
23728 #if S390_USE_TARGET_ATTRIBUTE.
23729 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23730
23731 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23732 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23733 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23734 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23735 HOST_WIDE_INT_1U instead of 1ULL.
23736 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23737 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23738 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23739 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23740 instead of 1UL.
23741 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23742 instead of 1ul.
23743
23744 2019-02-18 Martin Jambor <mjambor@suse.cz>
23745
23746 PR tree-optimization/89209
23747 * tree-sra.c (create_access_replacement): New optional parameter
23748 reg_tree. Use it as a type if non-NULL and access type is not of
23749 a register type.
23750 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23751 to create_access_replacement.
23752 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23753 Check lacc is non-NULL before attempting to re-create it on the RHS.
23754
23755 2019-02-18 Martin Liska <mliska@suse.cz>
23756
23757 PR ipa/89306
23758 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23759 by default.
23760 (symbol_table::free_edge): Recycle m_summary_id.
23761 * cgraph.h (get_summary_id): New.
23762 (symbol_table::release_symbol): Set m_summary_id to -1
23763 by default.
23764 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23765 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23766 function_summary to fast_function_summary.
23767 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23768 * ipa-pure-const.c (class funct_state_summary_t):
23769 Switch from function_summary to fast_function_summary.
23770 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23771 (class ipa_ref_opt_summary_t): Switch from function_summary
23772 to fast_function_summary.
23773 * symbol-summary.h (class function_summary_base): New class
23774 that is created from base of former function_summary.
23775 (function_summary_base::unregister_hooks): New.
23776 (class function_summary): Inherit from function_summary_base.
23777 (class call_summary_base): New class
23778 that is created from base of former call_summary.
23779 (class call_summary): Inherit from call_summary_base.
23780 (struct is_same): New.
23781 (class fast_function_summary): New summary class.
23782 (class fast_call_summary): New summary class.
23783 * vec.h (vec_safe_grow_cleared): New function.
23784
23785 2019-02-18 Martin Liska <mliska@suse.cz>
23786
23787 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23788 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23789 * doc/tm.texi: Document new target hook.
23790 * doc/tm.texi.in: Likewise.
23791 * target.def: Add new target macro.
23792 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23793 suffixes.
23794
23795 2019-02-17 Alan Modra <amodra@gmail.com>
23796
23797 PR target/89271
23798 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23799 output reg on add insn.
23800 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23801
23802 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23803
23804 PR target/89372
23805 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23806 (PMULHRSW): Likewise.
23807 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23808 TARGET_AVX2.
23809 (ssse3_pmulhrswv4hi3): New expander.
23810
23811 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23812
23813 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23814 MMX. Add isa attribute.
23815
23816 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23817
23818 PR rtl-optimization/66152
23819 * builtins.h (c_readstr): Declare.
23820 * builtins.c (c_readstr): Remove forward declaration. Add
23821 null_terminated_p argument, if false, read all bytes from the
23822 string instead of stopping after '\0'.
23823 * expr.c (string_cst_read_str): New function.
23824 (store_expr): Use string_cst_read_str instead of
23825 builtin_strncpy_read_str. Try to store by pieces the whole
23826 exp_len first, and only if that fails, split it up into
23827 store by pieces followed by clear_storage. Formatting fix.
23828
23829 * config/i386/i386.md (*movqi_internal): Remove static from
23830 buf variable. Use output_asm_insn (buf, operands); return "";
23831 instead of return buf;.
23832 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23833 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23834 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23835
23836 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23837
23838 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23839 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23840 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23841 (CC1_SPEC): Likewise.
23842 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23843
23844 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23845
23846 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23847 the base address on 64-bit strict-alignment platforms.
23848
23849 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23850
23851 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23852
23853 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23854
23855 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23856
23857 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23858
23859 PR rtl-optimization/88308
23860 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23861 on copied instruction.
23862
23863 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23864
23865 * final.c (insn_current_reference_address): Replace test on JUMP_P
23866 with test on jump_to_label_p.
23867 * config/visium/visium-passes.def: New file.
23868 * config/visium/t-visium (PASSES_EXTRA): Define.
23869 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23870 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23871 (TRAMPOLINE_ALIGNMENT): Define.
23872 * config/visium/visium.c (visium_option_override): Do not register
23873 the machine-specific reorg pass here.
23874 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23875 for the GR6.
23876 (output_branch): Adjust threshold for long branch instruction.
23877 * config/visium/visium.md (cpu): Move around.
23878 (length): Adjust for the GR6.
23879
23880 2019-02-15 Richard Biener <rguenther@suse.de>
23881 Jakub Jelinek <jakub@redhat.com>
23882
23883 PR tree-optimization/89278
23884 * tree-loop-distribution.c: Include tree-eh.h.
23885 (generate_memset_builtin, generate_memcpy_builtin): Call
23886 rewrite_to_non_trapping_overflow on builtin->size before passing it
23887 to force_gimple_operand_gsi.
23888
23889 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23890
23891 PR other/89342
23892 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23893 optimize_debug.
23894 * opth-gen.awk: Likewise.
23895
23896 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23897
23898 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23899 Enable MMX, SSE and SSE2 by default.
23900 * config/i386/i386.c (ix86_option_override_internal): Do not
23901 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23902
23903 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23904
23905 PR rtl-optimization/89354
23906 * combine.c (make_extraction): Punt if extraction_mode is narrower
23907 than len bits.
23908
23909 2019-02-14 Maya Rashish <coypu@sdf.org>
23910
23911 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23912 * config/netbsd-d.c: New file.
23913 * config/t-netbsd: Add netbsd-d.o
23914
23915 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23916
23917 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23918 affects_type_identity to true for aarch64_vector_pcs.
23919 (aarch64_comp_type_attributes): New function.
23920 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23921
23922 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23923
23924 PR target/88850
23925 * config/arm/iterators.md (ANY64): Add V4HF.
23926
23927 2019-02-14 Martin Liska <mliska@suse.cz>
23928
23929 PR rtl-optimization/89242
23930 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23931 process a transformation.
23932
23933 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23934
23935 PR tree-optimization/89314
23936 * fold-const.c (fold_binary_loc): Cast strlen argument to
23937 const char * before dereferencing it. Formatting fixes.
23938
23939 PR middle-end/89284
23940 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23941
23942 2019-02-13 Ian Lance Taylor <iant@golang.org>
23943
23944 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23945 and set current index for other optimizations.
23946
23947 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23948
23949 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23950 nonimmediate_operand as operand 2 predicate.
23951 (vec_set<VF2_512_256:mode>_0): Ditto.
23952 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23953 (*vec_concatv2si): Remove alternative 2.
23954 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23955 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23956 (vec_concatv2di): Split alternatives 4,5,6 to ...
23957 (*vec_concatv2di_0) ... new pattern.
23958
23959 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23960
23961 PR target/89190
23962 * config/arm/arm.c (ldm_stm_operation_p) Set
23963 addr_reg_in_reglist correctly for first register.
23964 (load_multiple_sequence): Remove dead base check.
23965 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23966
23967 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23968
23969 PR target/88847
23970 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23971 Expose as @aarch64_pred_mov.
23972 * config/aarch64/aarch64.c (aarch64_classify_address):
23973 Use expand_insn which legitimizes operands.
23974
23975 2019-02-13 Martin Liska <mliska@suse.cz>
23976
23977 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23978 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23979 and pointer_offset fields.
23980 (initialize_argument_information): Remove usage of dead
23981 fields.
23982 * cgraph.h (struct cgraph_thunk_info): Remove
23983 add_pointer_bounds_args.
23984 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23985 fields.
23986 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23987 fields.
23988 * config/i386/i386.c (ix86_function_arg_advance): Remove
23989 unrelated comment.
23990 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23991 (def_builtin): Remove usage of dead fields.
23992 (ix86_add_new_builtins): Likewise.
23993 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23994 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23995 (sem_function::init): Likewise.
23996 (sem_variable::merge): Likewise.
23997 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23998 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23999 * lto-cgraph.c (lto_output_node): Likewise.
24000 (lto_output_varpool_node): Likewise.
24001 (input_node): Likewise.
24002 (input_varpool_node): Likewise.
24003 * lto-streamer-out.c (lto_output): Likewise.
24004 * tree-inline.c (expand_call_inline): Remove usage of
24005 assign_stmts.
24006 * tree-inline.h (struct copy_body_data): Likewise.
24007 * varpool.c (varpool_node::dump): Likewise.
24008
24009 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24010
24011 PR middle-end/89303
24012 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24013 into pt->vars_contains_escaped_heap instead of setting
24014 pt->vars_contains_escaped_heap to it.
24015
24016 PR middle-end/89281
24017 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24018 INTVAL (size), compare it to GET_MODE_MASK instead of
24019 1 << GET_MODE_BITSIZE.
24020
24021 PR target/89290
24022 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24023 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24024 -mcmodel=large.
24025
24026 2019-02-13 Martin Liska <mliska@suse.cz>
24027
24028 PR lto/88858
24029 * cfgrtl.c (remove_barriers_from_footer): New function.
24030 (try_redirect_by_replacing_jump): Use it.
24031 (cfg_layout_redirect_edge_and_branch): Likewise.
24032
24033 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24034
24035 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24036 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24037 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24038 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24039 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24040 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24041 New BU_CRYPTO_2.
24042 * config/rs6000/rs6000.c (builtin_function_type)
24043 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24044 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24045 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24046 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24047 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24048
24049 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24050
24051 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24052 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24053
24054 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24055
24056 PR target/89229
24057 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24058 268678 and revision 268657.
24059 (*movti_internal): Likewise.
24060
24061 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24062
24063 PR target/89233
24064 * config/s390/s390.c (s390_decompose_address): Update comment.
24065 (s390_check_qrst_address): Reject invalid address forms after
24066 LRA.
24067
24068 2019-02-12 Martin Liska <mliska@suse.cz>
24069
24070 PR lto/88876
24071 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24072 we need default values of funct_state for a function that
24073 is not optimized.
24074
24075 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24076
24077 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24078 the object to pick the size of stores on strict-alignment platforms.
24079
24080 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24081 (*movdi_insn_sp32): Likewise.
24082 (*movdi_insn_sp64): Likewise.
24083
24084 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24085
24086 PR lto/88677
24087 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24088 types that needs constructiong.
24089 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24090
24091 2019-02-12 Richard Biener <rguenther@suse.de>
24092
24093 PR tree-optimization/89253
24094 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24095 duplicate the loop.
24096
24097 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24098
24099 PR lto/88147
24100 * input.c (selftest::test_line_offset_overflow): New selftest.
24101 (selftest::input_c_tests): Call it.
24102
24103 2019-02-11 Martin Sebor <msebor@redhat.com>
24104
24105 PR tree-optimization/88771
24106 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24107 when -Wstringop-overflow is set.
24108 (builtin_memref::builtin_memref): Adjust excessive upper bound
24109 only when lower bound is not excessive.
24110 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24111 -Wstringop-ovefflow.
24112 (maybe_diag_offset_bounds): Rename...
24113 (maybe_diag_access_bounds): ...to this.
24114 (check_bounds_or_overlap): Adjust for name change above.
24115
24116 2019-02-11 Martin Sebor <msebor@redhat.com>
24117
24118 PR c++/87996
24119 * builtins.c (max_object_size): Move from here...
24120 * builtins.h (max_object_size): ...and here...
24121 * tree.c (max_object_size): ...to here...
24122 * tree.h (max_object_size): ...and here.
24123
24124 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24125
24126 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24127 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24128 for correct semantics.
24129
24130 2019-02-11 Alan Modra <amodra@gmail.com>
24131
24132 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24133 -mlongcall and -mpltseq.
24134 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24135 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24136 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24137 * config/rs6000/sysv4.opt (mpltseq): New option.
24138 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24139 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24140 support is lacking. Don't allow -mpltseq with -mbss-plt.
24141 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24142 -mpltseq given for ELFv1.
24143 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24144 Only use UNSPEC_PLTSEQ for inline PLT calls.
24145 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24146 use UNSPEC_PLTSEQ for inline PLT calls.
24147 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24148 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24149 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24150 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24151 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24152 (pltseq_mtctr_<mode>): Likewise.
24153
24154 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24155
24156 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24157 Solaris ld.
24158 * configure: Regenerate.
24159
24160 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24161
24162 PR bootstrap/88714
24163 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24164 instead of r.
24165
24166 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24167
24168 * function.c (assign_parm_setup_block): Use the stored
24169 size, not the passed size, when allocating stack-space,
24170 also for a parameter with alignment larger than
24171 MAX_SUPPORTED_STACK_ALIGNMENT.
24172
24173 2019-02-11 Martin Liska <mliska@suse.cz>
24174
24175 PR ipa/89009
24176 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24177 * ipa-inline.c (inline_small_functions): Likewise.
24178 * ipa-pure-const.c (propagate_pure_const): Likewise.
24179 (propagate_nothrow): Likewise.
24180 * ipa-reference.c (propagate): Likewise.
24181 * ipa-utils.c (struct searchc_env): Remove unused field.
24182 (searchc): Always search across AVAIL_INTERPOSABLE.
24183 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24184 the only called IPA pure const can properly not propagate
24185 across interposable boundary.
24186 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24187
24188 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24189
24190 * config/nds32/nds32.md (call_internal, call_value_internal,
24191 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24192
24193 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24194
24195 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24196 typo.
24197
24198 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24199
24200 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24201 in comments
24202
24203 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24204
24205 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24206
24207 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24208
24209 PR tree-optimization/89268
24210 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24211 if preds is non-NULL.
24212
24213 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24214
24215 PR lto/89272
24216 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24217 polymorphic types.
24218
24219 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24220
24221 * config/nds32/nds32.md (trap): New pattern.
24222
24223 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24224
24225 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24226 dwarf span.
24227
24228 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24229
24230 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24231 to split POST_INC.
24232
24233 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24234
24235 * ipa-visibility.c (localize_node): Also do not localize
24236 LDPR_PREVAILING_DEF_IRONLY_EXP.
24237
24238 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24239
24240 PR lto/87957
24241 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24242 instead of type_with_linkage.
24243
24244 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24245
24246 PR ipa/88755
24247 * params.def (uninlined-function-insns, uninlined-function-time,
24248 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24249 bound so we don't get overflows.
24250
24251 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24252
24253 * config/rs6000/rs6000-string.c (expand_compare_loop,
24254 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24255 memcmp/strncmp.
24256
24257 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24258
24259 PR middle-end/89246
24260 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24261 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24262 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24263
24264 2019-02-09 Alan Modra <amodra@gmail.com>
24265
24266 PR target/88343
24267 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24268 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24269 setup.
24270
24271 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24272
24273 PR middle-end/88560
24274 * lra-constraints.c (process_alt_operands): Don't increase reject
24275 for memory when offset memory is required.
24276
24277 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24278
24279 * config/s390/vector.md: Implement vector copysign.
24280
24281 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24282
24283 * expr.c (expand_constructor): Correct indentations.
24284
24285 2019-02-08 Richard Biener <rguenther@suse.de>
24286
24287 PR tree-optimization/89247
24288 * tree-if-conv.c: Include tree-cfgcleanup.h.
24289 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24290 (tree_if_conversion): Pass through predicate vector.
24291 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24292 inline, see if any if-converted loops we refrece in
24293 LOOP_VECTORIZED calls vanished and fixup.
24294 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24295
24296 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24297
24298 * config/s390/constraints.md (jdd): New constraint.
24299
24300 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24301
24302 PR target/89229
24303 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24304 upper 16 vector registers without TARGET_AVX512VL.
24305 (*movti_internal): Likewise.
24306
24307 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24308
24309 PR rtl-optimization/89234
24310 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24311 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24312 (copy_reg_eh_region_note_backward): Likewise.
24313
24314 2019-02-08 Richard Biener <rguenther@suse.de>
24315
24316 PR middle-end/89223
24317 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24318 doesn't fit in HWI.
24319 (analyze_subscript_affine_affine): Handle failure from
24320 initialize_matrix_A.
24321
24322 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24323
24324 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24325 cfun everywhere.
24326
24327 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24328
24329 PR tree-optimization/86637
24330 PR tree-optimization/89235
24331 * tree-vect-loop.c (optimize_mask_stores): Add an
24332 auto_purge_vect_location sentinel to ensure that vect_location is
24333 purged on exit.
24334 * tree-vectorizer.c
24335 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24336 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24337 to ensure that vect_location is purged on exit.
24338 (pass_slp_vectorize::execute): Likewise, replacing the manual
24339 reset.
24340 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24341
24342 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24343
24344 * config/aarch64/iterators.md (max_opp): New code_attr.
24345 (USMAX): New code iterator.
24346 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24347 (aarch64_smax): Likewise.
24348 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24349 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24350 MINUS (MAX MIN).
24351
24352 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24353
24354 PR target/89229
24355 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24356 for TARGET_AVX512VL.
24357 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24358
24359 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24360
24361 * config/s390/s390-builtin-types.def: Add new types.
24362 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24363 (s390_vec_xlw4): Make the memory operand into a const pointer.
24364 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24365 float.
24366 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24367 a new vector type with the alignment of the scalar memory operand.
24368
24369 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24370 Jakub Jelinek <jakub@redhat.com>
24371
24372 PR bootstrap/88714
24373 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24374 arm_count_ldrdstrd_insns): New declarations.
24375 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24376 MINUS.
24377 (valid_operands_ldrd_strd): New function.
24378 (arm_count_ldrdstrd_insns): New function.
24379 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24380 sets instead of single DImode set and define new insns to match this.
24381
24382 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24383
24384 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24385 Make it a C initializer.
24386
24387 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24388
24389 PR/target 88850
24390 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24391
24392 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24393
24394 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24395 Use neon_dot<q> for type.
24396 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24397
24398 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24399
24400 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24401 Use neon_dot<q> for type.
24402 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24403 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24404
24405 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24406
24407 PR rtl-optimization/89225
24408 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24409 sizes check.
24410
24411 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24412
24413 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24414 after restoring registers saved to allocate the frame on Windows.
24415
24416 2019-02-06 Richard Biener <rguenther@suse.de>
24417
24418 PR tree-optimization/89182
24419 * graphite.h (cached_scalar_evolution_in_region): Declare.
24420 * graphite.c (struct seir_cache_key): New.
24421 (struct sese_scev_hash): Likewise.
24422 (seir_cache): New global.
24423 (cached_scalar_evolution_in_region): New function.
24424 (graphite_transform_loops): Allocate and release seir_cache.
24425 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24426 cached_scalar_evolution_in_region.
24427 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24428 Simplify.
24429 (scop_detection::graphite_can_represent_expr: Use
24430 cached_scalar_evolution_in_region.
24431 (scop_detection::stmt_simple_for_scop_p): Likewise.
24432 (find_params_in_bb): Likewise.
24433 (gather_bbs::before_dom_children): Likewise.
24434 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24435 (add_loop_constraints): Likewise.
24436
24437 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24438
24439 PR middle-end/89210
24440 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24441 operand to new_unary_operation only if both element types are integral
24442 and it isn't a widening conversion. Return NULL_TREE if
24443 new_unary_operation failed.
24444
24445 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24446
24447 PR target/88856
24448 * config/s390/s390.md: Remove load and test FP splitter.
24449
24450 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24451
24452 PR target/89112
24453 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24454 expand_compare_loop, expand_block_compare_gpr,
24455 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24456 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24457 #include "profile-count.h" and "predict.h" for types and functions
24458 needed to work with REG_BR_PROB notes.
24459
24460 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24461
24462 PR target/89112
24463 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24464 for the long branch case.
24465
24466 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24467
24468 PR target/89188
24469 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24470 can throw, non-call exceptions are enabled and we can't delete
24471 dead exceptions or alter cfg. Set must_clean if
24472 delete_insn_and_edges returns true, don't set it blindly for calls.
24473 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24474
24475 PR rtl-optimization/89195
24476 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24477 of the original MEM.
24478
24479 2019-02-05 Martin Liska <mliska@suse.cz>
24480
24481 PR gcov-profile/89000
24482 * gcov.c (function_summary): Remove argument.
24483 (file_summary): New function.
24484 (print_usage): Replace tabs with spaces.
24485 (generate_results): Use new function file_summary.
24486
24487 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24488
24489 PR target/89186
24490 * optabs.c (prepare_cmp_insn): Pass x and y to
24491 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24492
24493 2019-02-05 Richard Biener <rguenther@suse.de>
24494
24495 PR middle-end/89150
24496 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24497 (struct bitmap_element): Drop chain_prev so we properly recurse on
24498 the prev member, supporting tree views.
24499 (struct bitmap_head): GTY skip the obstack member.
24500
24501 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24502
24503 PR c/88698
24504 * doc/extend.texi (Vector Extensions): Add an example of using vector
24505 types together with x86 intrinsics.
24506
24507 2019-02-04 Alan Modra <amodra@gmail.com>
24508
24509 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24510 str[] size to 160, and comment.
24511
24512 2019-02-04 Alan Modra <amodra@gmail.com>
24513
24514 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24515 (rs6000_pltseq_template): Guard output of TLS markers with
24516 TARGET_TLS_MARKERS.
24517 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24518 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24519 to use inline PLT sequences.
24520 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24521 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24522 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24523
24524 2019-02-04 Martin Liska <mliska@suse.cz>
24525
24526 PR ipa/88985
24527 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24528 out when ipa_fn_summaries does not contain entry for callee.
24529
24530 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24531
24532 * config/sparc/sparc.h: Remove superfluous blank lines.
24533 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24534 (got_register_rtx): ...this.
24535 (sparc_got): Adjust to above renaming.
24536 (sparc_tls_got): Likewise.
24537 (sparc_delegitimize_address): Likewise.
24538 (sparc_output_mi_thunk): Likewise.
24539 (sparc_init_pic_reg): Likewise.
24540 (save_local_or_in_reg_p): Fix test on the GOT register.
24541 (USE_HIDDEN_LINKONCE): Move around.
24542 (get_pc_thunk_name): Likewise.
24543 (gen_load_pcrel_sym): Likewise.
24544 (load_got_register): Likewise.
24545
24546 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24547
24548 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24549 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24550
24551 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24552
24553 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24554 into consideration.
24555
24556 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24557
24558 * config.gcc (with_nds32_lib, glibc):
24559 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24560 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24561 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24562
24563 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24564
24565 PR target/89071
24566 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24567 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24568 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24569 (*rcpsf2_sse): Ditto.
24570 (*rsqrtsf2_sse): Ditto.
24571 (sse4_1_round<mode<2): Ditto.
24572
24573 2019-02-03 Richard Biener <rguenther@suse.de>
24574
24575 PR debug/87295
24576 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24577 orig.
24578
24579 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24580
24581 PR middle-end/87887
24582 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24583 Punt with warning on aggregate return or argument types. Ignore
24584 type/mode checking for uniform arguments.
24585
24586 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24587
24588 * combine.c (try_combine): Do not print "Can't combine" messages unless
24589 printing failed combination attempts.
24590
24591 2019-02-01 Martin Jambor <mjambor@suse.cz>
24592
24593 PR hsa/87863
24594 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24595 segment and global segment variables before making them static.
24596
24597 2019-02-01 Martin Jambor <mjambor@suse.cz>
24598
24599 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24600 missed optimization dump with dump_enabled_p.
24601
24602 2019-02-01 Richard Biener <rguenther@suse.de>
24603
24604 PR middle-end/88597
24605 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24606 the instantiate cache.
24607 (instantiate_scev_binary): Elide second operand procesing
24608 if equal to the first.
24609 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24610 (chrec_contains_undetermined): Likewise.
24611 (tree_contains_chrecs): Likewise.
24612
24613 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24614
24615 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24616
24617 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24618
24619 PR tree-optimization/89143
24620 * wide-int-range.h (wide_int_range_absu): Declare.
24621 * wide-int-range.cc (wide_int_range_absu): New function.
24622 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24623
24624 PR tree-optimization/88107
24625 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24626 instead of assertion that eh_region_outermost is non-NULL, if it
24627 is NULL, set *ALL to true and return NULL.
24628 (move_sese_region_to_fn): Adjust caller, if all is set, call
24629 duplicate_eh_regions with NULL region.
24630
24631 2019-02-01 Richard Biener <rguenth@suse.de>
24632
24633 PR rtl-optimization/88593
24634 * mode-switching.c (optimize_mode_switching): Free dominators before
24635 calling cleanup_cfg.
24636
24637 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24638
24639 PR tree-optimization/88932
24640 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24641
24642 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24643
24644 PR middle-end/89137
24645 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24646 bogus clang warning.
24647
24648 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24649
24650 PR target/89071
24651 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24652 alternative to avoid partial SSE register stall for TARGET_AVX.
24653 (truncdfsf2): Ditto.
24654 (sse4_1_round<mode>2): Ditto.
24655
24656 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24657
24658 PR tree-optimization/89008
24659 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24660 process anything of the form X * 0.
24661
24662 2019-01-31 Richard Biener <rguenther@suse.de>
24663
24664 PR tree-optimization/89135
24665 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24666 with abnormal preds.
24667
24668 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24669
24670 PR sanitizer/89124
24671 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24672 always_inline callees into no_sanitize_address callers.
24673
24674 2019-01-31 Richard Biener <rguenther@suse.de>
24675
24676 PR rtl-optimization/89115
24677 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24678
24679 2019-01-30 Martin Sebor <msebor@redhat.com>
24680
24681 PR other/89106
24682 * doc/extend.texi (cast to a union): Correct and expand.
24683
24684 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24685
24686 PR rtl-optimization/87246
24687 * lra-constraints.c (simplify_operand_subreg): Reload memory
24688 in subreg if the address became invalid.
24689
24690 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24691
24692 PR target/87064
24693 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24694 Disable for little-endian.
24695
24696 2019-01-30 Richard Biener <rguenther@suse.de>
24697
24698 PR rtl-optimization/89115
24699 * opts.c (default_options_optimization): Reduce
24700 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24701 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24702 to the default.
24703
24704 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24705
24706 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24707 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24708 type of vector element when vec_extract is implemented by direct
24709 move.
24710
24711 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24712
24713 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24714
24715 2019-01-30 Richard Biener <rguenther@suse.de>
24716
24717 PR tree-optimization/89111
24718 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24719 canonicalization to appropriately sized access types.
24720
24721 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24722
24723 PR c++/89105
24724 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24725 for arguments to functions that are TU-local and shouldn't be
24726 referenced by assembly.
24727
24728 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24729
24730 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24731 after '='.
24732
24733 2019-01-29 Martin Sebor <msebor@redhat.com>
24734
24735 PR c/88956
24736 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24737
24738 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24739
24740 PR c++/66676
24741 PR ipa/89104
24742 * omp-simd-clone.c (simd_clone_clauses_extract)
24743 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24744 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24745
24746 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24747
24748 * config.gcc: Force .init_array for ARC.
24749
24750 2019-01-29 Richard Biener <rguenther@suse.de>
24751
24752 PR debug/87295
24753 * dwarf2out.c (collect_skeleton_dies): New helper.
24754 (copy_decls_for_unworthy_types): Call it.
24755 (build_abbrev_table): Assert we do not try to replace
24756 DW_AT_signature refs with local refs.
24757
24758 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24759
24760 PR middle-end/89002
24761 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24762 for lastprivate/linear IV, push gimplify context around gimplify_assign
24763 and, if it needed any temporaries, pop it into a gimple bind around the
24764 sequence.
24765
24766 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24767
24768 * common.opt (-Wattribute-alias): Remove "no-" from name.
24769 Make -Wattribute-alias command line option and
24770 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24771
24772 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24773
24774 PR target/89073
24775 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24776 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24777 x86 ISA options.
24778 (bmi2): Add missing @opindex.
24779 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24780 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24781 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24782 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24783 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24784 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24785 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24786 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24787 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24788 xsavec, xsaveopt and xsaves options.
24789
24790 2019-01-28 Richard Biener <rguenther@suse.de>
24791
24792 PR debug/89076
24793 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24794 support removal.
24795
24796 2019-01-28 Richard Biener <rguenther@suse.de>
24797
24798 PR tree-optimization/88739
24799 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24800 BIT_FIELD_REFs only are applied to mode-precision operands
24801 when they are integral.
24802 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24803 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24804 BIT_FIELD_REFs of non-mode-precision integral operands.
24805
24806 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24807
24808 PR target/87214
24809 * config/i386/sse.md
24810 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24811 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24812 first constants in pairs are multiples of 2. Formatting fixes.
24813 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24814 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24815 first constants in each quadruple are multiples of 4. Formatting fixes.
24816
24817 2019-01-26 Martin Jambor <mjambor@suse.cz>
24818
24819 PR ipa/88933
24820 * tree-inline.c: Include tree-cfgcleanup.h.
24821 (delete_unreachable_blocks_update_callgraph): Move...
24822 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24823 ...here, make externally visible, make second argument bool, adjust
24824 all callers.
24825 * tree-cfgcleanup.c: Include cgraph.h.
24826 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24827 Declare.
24828 * ipa-prop.c: Include tree-cfgcleanup.h.
24829 (ipcp_transform_function): Call
24830 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24831
24832 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24833
24834 PR rtl-optimization/88846
24835 * ira.c (process_set_for_memref_referenced_p): New.
24836 (memref_referenced_p): Add new param. Use
24837 process_set_for_memref_referenced_p. Add new switch cases.
24838 (memref_used_between_p): Pass new arg to memref_referenced_p.
24839
24840 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24841
24842 PR target/88469
24843 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24844 argument ABI_BREAK. Set to true if the calculated alignment has
24845 changed in gcc-9. Check bit-fields for their base type alignment.
24846 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24847 (aarch64_function_arg_boundary): Likewise.
24848 (aarch64_gimplify_va_arg_expr): Likewise.
24849
24850 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24851
24852 PR middle-end/89037
24853 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24854 instead of accessing TREE_INT_CST_ELT directly.
24855
24856 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24857
24858 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24859 fenv_exceptions description.
24860
24861 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24862
24863 PR rtl-optimization/87763
24864 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24865 Allow SUBREG when matching CC_NZmode compare.
24866
24867 2019-01-25 Richard Biener <rguenther@suse.de>
24868
24869 PR tree-optimization/89049
24870 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24871 Look at the pattern stmt to determine if the stmt is vectorized.
24872
24873 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24874
24875 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24876 (pred_mov<mode>): Handle all-register forms using both a new
24877 alternative and a split.
24878
24879 2019-01-25 Richard Biener <rguenther@suse.de>
24880
24881 PR tree-optimization/86865
24882 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24883 Reject non-do-while loops.
24884
24885 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24886
24887 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24888 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24889 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24890 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24891 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24892 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24893 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24894 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24895 vlogical_operand, gpc_reg_operand, int_reg_operand,
24896 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24897 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24898 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24899 (save_world_operation, restore_world_operation, lmw_operation,
24900 stmw_operation): Use MEM_P and REG_P.
24901 (tie_operand): Use MEM_P.
24902 (vrsave_operation, crsave_operation): Use REG_P.
24903 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24904 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24905 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24906 (call_operand): Use HARD_REGISTER_P.
24907 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24908 Use CONST_INT_P.
24909 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24910 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24911 quad_aligned_load_p, replace_swapped_aligned_store,
24912 recombine_lvx_pattern, replace_swapped_aligned_load,
24913 recombine_stvx_pattern): Use MEM_P.
24914 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24915 Use MEM_P and SYMBOL_REF_P.
24916 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24917 (insn_is_swappable_p): Use REG_P and MEM_P.
24918 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24919 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24920 Use CONST_INT_P.
24921 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24922 Use CONST_DOUBLE_P.
24923 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24924 CONST_WIDE_INT_P.
24925 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24926 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24927 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24928 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24929 reg_or_subregno:
24930 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24931 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24932 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24933 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24934 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24935 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24936 rs6000_split_logical_di): Use CONST_INT_P.
24937 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24938 REG_P and SYMBOL_REF_P.
24939 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24940 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24941 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24942 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24943 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24944 (small_data_operand, print_operand_address): Use CONST_INT_P and
24945 SYMBOL_REF_P.
24946 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24947 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24948 Use HARD_REGISTER_NUM_P.
24949 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24950 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24951 SUBREG_P and SYMBOL_REF_P.
24952 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24953 and HARD_REGISTER_NUM_P.
24954 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24955 reg_or_subregno.
24956 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24957 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24958 MEM_P and REG_P.
24959 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24960 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24961 find_addr_reg): Use REG_P.
24962 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24963 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24964 (offsettable_ok_by_alignment, constant_pool_expr_p,
24965 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24966 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24967 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24968 rs6000_assemble_integer, create_TOC_reference,
24969 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24970 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24971 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24972 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24973 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24974 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24975 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24976 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24977 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24978 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24979 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24980 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24981 and cbranch<mode>4): Use CONST_INT_P.
24982 (multiple define_splits): Use REG_P and SUBREG_P.
24983 (define_expands call, call_value): Use MEM_P.
24984 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24985 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24986 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24987 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24988 and HARD_REGISTER_NUM_P.
24989 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24990
24991 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24992
24993 PR rtl-optimization/88948
24994 * rtl.h (prepare_copy_insn): New prototype.
24995 * gcse.c (prepare_copy_insn): New function, split out from
24996 process_insert_insn.
24997 (process_insert_insn): Use prepare_copy_insn.
24998 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24999 instead of gen_move_insn.
25000
25001 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25002
25003 PR debug/89006
25004 * config/i386/i386.c (ix86_pic_register_p): Return true for
25005 UNSPEC_SET_GOT too.
25006
25007 PR tree-optimization/88964
25008 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25009 punt if HONOR_SNANS (chrec).
25010
25011 PR middle-end/89015
25012 * tree-nested.c (convert_nonlocal_reference_stmt,
25013 convert_local_reference_stmt, convert_tramp_reference_stmt,
25014 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25015 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25016 or GIMPLE_OMP_TASK.
25017
25018 PR tree-optimization/89027
25019 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25020 for "omp simd array" variables.
25021
25022 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25023
25024 PR target/88469
25025 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25026 force the alignment of m_val.
25027
25028 2019-01-24 Richard Biener <rguenther@suse.de>
25029
25030 PR lto/87187
25031 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25032 When in "legacy" debug mode make sure to reset self-origins.
25033
25034 2019-01-24 Martin Liska <mliska@suse.cz>
25035
25036 PR gcov-profile/88994
25037 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25038 result will be always smaller or equal to the original.
25039 * gcov.c (mangle_name): Fix else branch where we should
25040 also copy to PTR and shift the pointer.
25041
25042 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25043
25044 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25045 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25046
25047 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25048
25049 * common/config/i386/i386-common.c
25050 (OPTION_MASK_ISA_ENQCMD_SET,
25051 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25052 (ix86_handle_option): Handle -menqcmd.
25053 * config.gcc (enqcmdintrin.h): New header file.
25054 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25055 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25056 -menqcmd.
25057 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25058 function type.
25059 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25060 __builtin_ia32_enqcmds): New builtins.
25061 * config/i386/i386-c.c (__ENQCMD__): New macro.
25062 * config/i386/i386-option.c (ix86_target_string): Add
25063 -menqcmd.
25064 (ix86_valid_target_attribute_inner_p): Likewise.
25065 * config/i386/i386-expand.c
25066 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25067 IX86_BUILTIN_ENQCMDS.
25068 * config/i386/i386.h (TARGET_ENQCMD): New.
25069 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25070 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25071 (movdir64b_<mode>): Parameterize to enable share expansion code
25072 with ENQCMD in function ix86_expand_builtin.
25073 * config/i386/i386.opt: Add -menqcmd.
25074 * config/i386/immintrin.h: Include enqcmdintrin.h.
25075 * config/i386/enqcmdintrin.h: New intrinsic file.
25076 * doc/invoke.texi: Add -menqcmd.
25077
25078 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25079 Steve Ellcey <sellcey@marvell.com>
25080
25081 PR target/85711
25082 * recog.c (address_operand): Return false on wrong mode for address.
25083 (constrain_operands): Check for mode with 'p' constraint.
25084
25085 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25086
25087 PR target/88998
25088 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25089 Disparage MMX alternative.
25090 (sse2_cvtpd2pi): Ditto.
25091 (sse2_cvttpd2pi): Ditto.
25092
25093 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25094
25095 PR driver/89014
25096 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25097 use-after-free of the result of
25098 aarch64_get_extension_string_for_isa_flags.
25099
25100 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25101
25102 PR c/44715
25103 * doc/extend.texi: Document break and continue behavior in
25104 statement expressions.
25105
25106 2019-01-23 Richard Biener <rguenther@suse.de>
25107
25108 PR tree-optimization/89008
25109 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25110 not leave another stray operand.
25111
25112 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25113
25114 * BASE-VER: Bump to 9.0.1.
25115
25116 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25117
25118 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25119 thunk that returns by reference, use the type of the return object
25120 of the thunk instead of that of the alias to build the dereference.
25121
25122 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25123
25124 * config/arc/atomic.md: Add operand to DMB instruction.
25125
25126 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25127
25128 PR tree-optimization/88964
25129 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25130 build_zero_cst instead of build_int_cst. Return false for loop
25131 invariants which honor signed zeros.
25132
25133 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25134
25135 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25136
25137 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25138
25139 PR target/88965
25140 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25141 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25142 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25143
25144 PR middle-end/88968
25145 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25146 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25147
25148 PR target/87064
25149 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25150 Disable for little endian.
25151
25152 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25153
25154 PR target/88469
25155 * config/arm/arm.c (arm_needs_double_word_align): Check
25156 DECL_BIT_FIELD_TYPE.
25157
25158 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25159 H.J. Lu <hongjiu.lu@intel.com>
25160
25161 PR target/88909
25162 * config/i386/i386-builtin.def: Add mask2 to all builtin
25163 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25164 SPECIAL_ARGS.
25165 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25166 (BDESC_FIRST): Likewise.
25167 (define_builtin): Add an argument for mask2. Updated to handle
25168 both ix86_isa_flags and ix86_isa_flags2.
25169 (define_builtin_const): Likewise.
25170 (define_builtin_pure): Likewise.
25171 (define_builtin2): Deleted.
25172 (define_builtin_const2): Likewise.
25173 (builtin_description): Add a member, mask2.
25174 (bdesc_*): Add mask2 to builtin initializations.
25175 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25176 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25177 support.
25178 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25179
25180 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25181
25182 PR target/88954
25183 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25184 noplt attribute.
25185
25186 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25187
25188 PR target/88469
25189 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25190 alignment is dominated by a bitfield with 64-bit aligned base type.
25191 (arm_function_arg): Emit a warning if the alignment has changed since
25192 earlier GCC releases.
25193 (arm_function_arg_boundary): Likewise.
25194 (arm_setup_incoming_varargs): Likewise.
25195
25196 2019-01-22 Richard Biener <rguenther@suse.de>
25197
25198 PR tree-optimization/88862
25199 * graphite-scop-detection.c
25200 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25201
25202 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25203
25204 * doc/extend.tex (AMD GCN Function Attributes): New section.
25205 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25206 * doc/invoke.texi (AMD GCN Options): New section.
25207 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25208
25209 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25210
25211 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25212 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25213
25214 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25215
25216 PR tree-optimization/88044
25217 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25218 is false in the first iteration, but !every_iteration, return false
25219 instead of true with niter->niter zero.
25220
25221 PR rtl-optimization/88904
25222 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25223 any nonequal registers before processing BB_END (b).
25224
25225 PR target/88905
25226 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25227 GET_MODE (op0).
25228 (expand_binop_directly, expand_doubleword_clz,
25229 expand_doubleword_popcount, expand_ctz, expand_ffs,
25230 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25231
25232 PR rtl-optimization/49429
25233 PR target/49454
25234 PR rtl-optimization/86334
25235 PR target/88906
25236 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25237 addressable from here...
25238 (emit_block_op_via_libcall): ... to here.
25239
25240 2019-01-22 Richard Biener <rguenther@suse.de>
25241
25242 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25243 auto_vec for cost vector to fix memleak.
25244 (vectorize_fold_left_reduction): Properly gather SLP defs.
25245 (vectorizable_comparison): Do not swap operands to properly
25246 gather SLP defs.
25247
25248 2019-01-22 Alan Modra <amodra@gmail.com>
25249
25250 PR target/88614
25251 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25252 stays a reg. Allow a const_int.
25253 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25254 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25255 (IS_NOMARK_TLSGETADDR): Define.
25256 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25257 (rs6000_output_tlsargs): New function.
25258 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25259 __tls_get_addr call takes an arg.
25260 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25261 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25262 delete split..
25263 (call_value_nonlocal_sysv): ..or here, delete split.
25264 (tls_gdld_nomark): Delete.
25265 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25266 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25267 (call_value_nonlocal_sysv): Likewise.
25268 (call_value_nonlocal_sysv_secure): Likewise.
25269 (call_value_nonlocal_aix): Likewise.
25270 (call_value_indirect_aix): Likewise.
25271 (call_value_indirect_elfv2): Likewise.
25272 (call_value_local32, call_value_local64): Disable for no-mark tls.
25273 (call_value_local_aix): Likewise.
25274
25275 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25276
25277 PR target/88938
25278 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25279 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25280
25281 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25282
25283 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25284 string contents as hash_map keys.
25285
25286 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25287
25288 PR c/88928
25289 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25290 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25291 instead of TYPE_ALIGN.
25292 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25293 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25294 pointer from TYPE_STUB_DECL.
25295
25296 2019-01-21 Richard Biener <rguenther@suse.de>
25297
25298 PR tree-optimization/88934
25299 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25300 at the possibly non-constant operand.
25301 (vect_get_constant_vectors): Adjust.
25302
25303 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25304
25305 PR target/71659
25306 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25307 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25308 instead of _X86INTRIN_H_INCLUDED.
25309 * onfig/i386/clwbintrin.h: Likewise.
25310 * config/i386/pkuintrin.h: Likewise.
25311 * config/i386/prfchwintrin.h: Likewise.
25312 * config/i386/rdseedintrin.h: Likewise.
25313 * config/i386/wbnoinvdintrin.h: Likewise.
25314 * config/i386/xsavecintrin.h: Likewise.
25315 * config/i386/xsavesintrin.h: Likewise.
25316 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25317 * config/i386/xsaveintrin.h: Likewise.
25318 * config/i386/xsaveoptintrin.h: Likewise.
25319 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25320 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25321 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25322 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25323 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25324 * config/i386/immintrin.h: Here.
25325
25326 2019-01-20 Martin Jambor <mjambor@suse.cz>
25327
25328 PR ipa/87615
25329 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25330 with aa_walk_budget.
25331 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25332 aa_walk_budget_p parameter.
25333 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25334 walk. Updated all callers.
25335 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25336 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25337 unmodified_parm.
25338 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25339 parameter info. Extract info from fbi. Pass fbi to recursive calls
25340 and to unmodified_parm.
25341 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25342 info, updated call to will_be_nonconstant_expr_predicate.
25343 (param_change_prob): New parameter fbi, limit AA walking.
25344 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25345 calls to various above functions.
25346 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25347 parameter. Use it to limit AA walking.
25348 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25349 fbi, limit AA walk.
25350 (detect_type_change): New parameter fbi, pass it on to
25351 detect_type_change_from_memory_writes.
25352 (detect_type_change_ssa): Likewise.
25353 (aa_overwalked): Removed.
25354 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25355 accordingly, adjust to the neew AA limiting scheme.
25356 (parm_ref_data_preserved_p): Likewise.
25357 (ipa_compute_jump_functions_for_edge): Adjust call to
25358 get_dynamic_type.
25359 (ipa_analyze_call_uses): Likewise.
25360 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25361 (ipa_analyze_node): Initialize aa_walk_budget.
25362 (ipcp_transform_function): Likewise.
25363 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25364 to get_dynamic_type.
25365
25366 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25367
25368 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25369 outside of #if CHECKING_P code.
25370
25371 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25372
25373 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25374 New function, split out from...
25375 (loop_versioning::analyze_stride): ...here.
25376 (loop_versioning::find_per_loop_multiplication): Use gassign.
25377 (loop_versioning::analyze_term_using_scevs): Return a success code.
25378 (loop_versioning::analyze_arbitrary_term): New function.
25379 (loop_versioning::analyze_address_fragment): Use
25380 analyze_arbitrary_term if all else fails.
25381
25382 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25383
25384 PR target/88892
25385 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25386 operands.
25387
25388 2019-01-18 Richard Biener <rguenther@suse.de>
25389
25390 PR tree-optimization/88903
25391 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25392 scalar stmts a SLP shift amount is composed of when detecting
25393 shifts by scalars.
25394
25395 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25396
25397 PR target/88799
25398 * config/arm/arm-cpus.in (mp): New feature.
25399 (sec): New feature.
25400 (fgroup ARMv7ve): Add mp and sec features.
25401 (arch armv7-a): Add options to allow mp and sec extensions.
25402 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25403 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25404 extenstions to the base architecture.
25405 (cpu cortex-a8): Add sec extension to the base architecture.
25406 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25407 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25408 variants down to the base v7-a varaint.
25409 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25410 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25411 of permitted extensions for -march=armv7-a and for
25412 -mcpu=generic-armv7-a.
25413
25414 2019-01-18 Martin Liska <mliska@suse.cz>
25415
25416 * params.def: Fix comment.
25417 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25418 name.
25419 (gimple_gen_ic_func_profiler): Likewise.
25420
25421 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25422
25423 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25424 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25425 and put in error checks for stack protector guard options.
25426 (aarch64_stack_protect_guard): New.
25427 (TARGET_STACK_PROTECT_GUARD): Define.
25428 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25429 (reg_stack_protect_address<mode>): New.
25430 (stack_protect_set): Adjust for SSP_GLOBAL.
25431 (stack_protect_test): Likewise.
25432 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25433 (-mstack-protector-guard): Likewise.
25434 (-mstack-protector-guard-offset): Likewise.
25435
25436 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25437
25438 PR tree-optimization/86214
25439 * tree-inline.h (struct copy_body_data): Add
25440 add_clobbers_to_eh_landing_pads member.
25441 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25442 (copy_edges_for_bb): Call it if EH edge destination is <
25443 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25444 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25445 if flag_stack_reuse != SR_NONE and clear it afterwards.
25446
25447 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25448
25449 PR target/85596
25450 * doc/install.texi (with-multilib-list): Document for aarch64.
25451
25452 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25453
25454 PR target/88734
25455 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25456 (("..."))) with ("...").
25457
25458 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25459
25460 * doc/extend.texi (Built-in Functions for Memory Model Aware
25461 Atomic Operations): Document atomic fetch and nand.
25462
25463 2019-01-18 Martin Liska <mliska@suse.cz>
25464 Richard Biener <rguenther@suse.de>
25465
25466 PR middle-end/88587
25467 * cgraph.h (create_version_clone_with_body): Add new argument
25468 with attributes.
25469 * cgraphclones.c (cgraph_node::create_version_clone): Add
25470 DECL_ATTRIBUTES to a newly created decl. And call
25471 valid_attribute_p so that proper cl_target_optimization_node
25472 is set for the newly created declaration.
25473 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25474 for declaration.
25475 (expand_target_clones): Do not call valid_attribute_p, it must
25476 be already done.
25477 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25478 vector types.
25479
25480 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25481
25482 PR target/88734
25483 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25484 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25485 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25486
25487 2019-01-17 Martin Sebor <msebor@redhat.com>
25488
25489 PR middle-end/88273
25490 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25491 Handle anti-ranges the same as no range at all.
25492
25493 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25494
25495 * config/aarch64/aarch64.c (cgraph.h): New include.
25496 (intl.h): New include.
25497 (supported_simd_type): New function.
25498 (currently_supported_simd_type): Ditto.
25499 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25500 (aarch64_simd_clone_adjust): Ditto.
25501 (aarch64_simd_clone_usable): Ditto.
25502 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25503 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25504 (TARGET_SIMD_CLONE_USABLE): Ditto.
25505 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25506 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25507 call.
25508
25509 2019-01-17 Martin Sebor <msebor@redhat.com>
25510
25511 PR tree-optimization/88800
25512 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25513 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25514 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25515 redundant argument. Add new argument and issue diagnostics under
25516 its control. Detect out-of-bounds access even with warnings
25517 disabled.
25518 (check_bounds_or_overlap): Change return type. Add argument.
25519 (wrestrict_dom_walker::check_call): Adjust.
25520 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25521 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25522 check_bounds_or_overlap's return value.
25523 (handle_builtin_stxncpy): Same.
25524 (handle_builtin_strcat): Same.
25525
25526 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25527 Kwok Cheung Yeung <kcy@codesourcery.com>
25528 Julian Brown <julian@codesourcery.com>
25529 Tom de Vries <tom@codesourcery.com>
25530
25531 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25532
25533 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25534
25535 * doc/sourcebuild.texi: Document dg-require-effective-target
25536 llvm_binutils and offload_gcn.
25537
25538 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25539 Kwok Cheung Yeung <kcy@codesourcery.com>
25540 Julian Brown <julian@codesourcery.com>
25541 Tom de Vries <tom@codesourcery.com>
25542
25543 * doc/sourcebuild.texi: Document dg-required-effective-target
25544 exceptions.
25545
25546 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25547 Kwok Cheung Yeung <kcy@codesourcery.com>
25548 Julian Brown <julian@codesourcery.com>
25549 Tom de Vries <tom@codesourcery.com>
25550 Jan Hubicka <hubicka@ucw.cz>
25551 Martin Jambor <mjambor@suse.cz>
25552
25553 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25554 * configure.ac: Check for dlopen.
25555 * configure: Regenerate.
25556
25557 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25558 Kwok Cheung Yeung <kcy@codesourcery.com>
25559 Julian Brown <julian@codesourcery.com>
25560 Tom de Vries <tom@codesourcery.com>
25561 Jan Hubicka <hubicka@ucw.cz>
25562 Martin Jambor <mjambor@suse.cz>
25563
25564 * common/config/gcn/gcn-common.c: New file.
25565 * config/gcn/driver-gcn.c: New file.
25566 * config/gcn/gcn-builtins.def: New file.
25567 * config/gcn/gcn-hsa.h: New file.
25568 * config/gcn/gcn-modes.def: New file.
25569 * config/gcn/gcn-opts.h: New file.
25570 * config/gcn/gcn-passes.def: New file.
25571 * config/gcn/gcn-protos.h: New file.
25572 * config/gcn/gcn-run.c: New file.
25573 * config/gcn/gcn-tree.c: New file.
25574 * config/gcn/gcn.c: New file.
25575 * config/gcn/gcn.h: New file.
25576 * config/gcn/gcn.opt: New file.
25577 * config/gcn/t-gcn-hsa: New file.
25578
25579 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25580 Kwok Cheung Yeung <kcy@codesourcery.com>
25581 Julian Brown <julian@codesourcery.com>
25582 Tom de Vries <tom@codesourcery.com>
25583 Jan Hubicka <hubicka@ucw.cz>
25584 Martin Jambor <mjambor@suse.cz>
25585
25586 * config/gcn/constraints.md: New file.
25587 * config/gcn/gcn-valu.md: New file.
25588 * config/gcn/gcn.md: New file.
25589 * config/gcn/predicates.md: New file.
25590
25591 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25592
25593 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25594 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25595 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25596 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25597
25598 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25599
25600 PR target/88851
25601 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25602 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25603 it and document registers.
25604
25605 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25606
25607 * config/aarch64/aarch64.c (ares_tunings): Define.
25608 * config/aarch64/aarch64-cores.def (ares): Use the above.
25609
25610 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25611
25612 PR target/88794
25613 Revert:
25614 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25615
25616 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25617 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25618 (_mm512_maskz_fixupimm_round_pd): Ditto.
25619 (_mm512_fixupimm_round_ps): Ditto.
25620 (_mm512_maskz_fixupimm_round_ps): Ditto.
25621 (_mm_fixupimm_round_sd): Ditto.
25622 (_mm_maskz_fixupimm_round_sd): Ditto.
25623 (_mm_fixupimm_round_ss): Ditto.
25624 (_mm_maskz_fixupimm_round_ss): Ditto.
25625 (_mm512_fixupimm_pd): Ditto.
25626 (_mm512_maskz_fixupimm_pd): Ditto.
25627 (_mm512_fixupimm_ps): Ditto.
25628 (_mm512_maskz_fixupimm_ps): Ditto.
25629 (_mm_fixupimm_sd): Ditto.
25630 (_mm_maskz_fixupimm_sd): Ditto.
25631 (_mm_fixupimm_ss): Ditto.
25632 (_mm_maskz_fixupimm_ss): Ditto.
25633 (_mm512_mask_fixupimm_round_pd): Update builtin.
25634 (_mm512_mask_fixupimm_round_ps): Ditto.
25635 (_mm_mask_fixupimm_round_sd): Ditto.
25636 (_mm_mask_fixupimm_round_ss): Ditto.
25637 (_mm512_mask_fixupimm_pd): Ditto.
25638 (_mm512_mask_fixupimm_ps): Ditto.
25639 (_mm_mask_fixupimm_sd): Ditto.
25640 (_mm_mask_fixupimm_ss): Ditto.
25641 * config/i386/avx512vlintrin.h:
25642 (_mm256_fixupimm_pd): Update parameters and builtin.
25643 (_mm256_maskz_fixupimm_pd): Ditto.
25644 (_mm256_fixupimm_ps): Ditto.
25645 (_mm256_maskz_fixupimm_ps): Ditto.
25646 (_mm_fixupimm_pd): Ditto.
25647 (_mm_maskz_fixupimm_pd): Ditto.
25648 (_mm_fixupimm_ps): Ditto.
25649 (_mm_maskz_fixupimm_ps): Ditto.
25650 (_mm256_mask_fixupimm_pd): Update builtin.
25651 (_mm256_mask_fixupimm_ps): Ditto.
25652 (_mm_mask_fixupimm_pd): Ditto.
25653 (_mm_mask_fixupimm_ps): Ditto.
25654 * config/i386/i386-builtin-types.def: Add new types and remove
25655 useless ones.
25656 * config/i386/i386-builtin.def: Update builtin definitions.
25657 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25658 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25659 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25660 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25661 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25662 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25663 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25664 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25665 * config/i386/subst.md:
25666 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25667 (round_saeonly_sd_mask_op4): Ditto.
25668 (round_saeonly_expand_operand5): Ditto.
25669 (round_saeonly_expand): Update.
25670
25671 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25672
25673 PR target/88794
25674 Revert:
25675 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25676
25677 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25678 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25679 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25680 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25681 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25682 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25683 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25684
25685 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25686
25687 PR target/88794
25688 Revert:
25689 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25690
25691 PR target/88489
25692 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25693 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25694 instead of UNSPEC_FIXUPIMM.
25695
25696 2019-01-17 Richard Biener <rguenther@suse.de>
25697
25698 PR lto/86736
25699 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25700 and friends for the LTO part of debug info.
25701
25702 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25703
25704 PR tree-optimization/86214
25705 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25706 if x == y.
25707
25708 PR rtl-optimization/88870
25709 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25710 throw if we can't alter the cfg or delete dead exceptions.
25711 (mark_insn): Don't call find_call_stack_args for such calls.
25712
25713 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25714
25715 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25716 prototypes for vec_st.
25717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25718 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25719 mainly on signed/unsigned long long and double.
25720
25721 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25722
25723 PR target/88861
25724 * combine.c (delete_noop_moves): Convert to "bool" return,
25725 returning true if any edges are eliminated.
25726 (combine_instructions): Also return true if delete_noop_moves
25727 returns true.
25728
25729 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25730
25731 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25732 correct max nunits for endian swap.
25733 (aarch64_expand_fcmla_builtin): Correct subreg code.
25734 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25735 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25736 lane endianness.
25737
25738 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25739
25740 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25741 Handle split indirect COMPLEX_TYPE arguments.
25742
25743 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25744
25745 PR target/86891
25746 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25747 bit is set by add and compare.
25748 (CC_ADC): New CC_MODE.
25749 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25750 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25751 comparison. Add detection for CC_ADCmode.
25752 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25753 CC_ADCmode.
25754 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25755 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25756 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25757 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25758 to eliminate the need for zero-extending the operands.
25759 (add<mode>3_compareC_imm): Delete. Merge into ...
25760 (add<mode>3_compareC): ... this. Restructure the comparison to
25761 eliminate the need for zero-extending the operands.
25762 (add<mode>3_carryin): Use LTU for the overflow detection.
25763 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25764 Reexpress comparison for overflow.
25765 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25766 (add<mode>3_carryinC): Likewise.
25767 (add<mode>3_carryinV): Use LTU for carry between partials.
25768 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25769 handling of CC_Cmode and add CC_ADCmode.
25770 (aarch64_borrow_operation): Likewise.
25771
25772 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25773
25774 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25775 Remove patternmode.
25776 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25777 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25778 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25779 Remove endianness conversion.
25780
25781 2019-01-16 Martin Liska <mliska@suse.cz>
25782
25783 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25784 for GCC driver.
25785 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25786 a new argument.
25787 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25788 (path_prefix_reset): Move up in the source file.
25789 (find_fortran_preinclude_file): Make complex search for the
25790 fortran header files.
25791
25792 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25793
25794 * godump.c (go_output_typedef): When outputting a typedef, refer
25795 to the underlying type by its name and not its structure.
25796
25797 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25798
25799 PR c++/88795
25800 * tree.c (build_function_type): Assert that arg_types is not
25801 error_mark_node.
25802
25803 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25804
25805 PR inline-asm/52813
25806 * doc/extend.texi: Document that listing the stack pointer in the
25807 clobber list of an asm is a deprecated feature.
25808 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25809 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25810 warning instead of an error for clobbers of the stack pointer.
25811 Add a note explaining why.
25812
25813 2019-01-15 Richard Biener <rguenther@suse.de>
25814
25815 PR debug/88046
25816 * dwarf2out.c (gen_member_die): Do not generate inheritance
25817 DIEs late.
25818
25819 2019-01-15 Richard Biener <rguenther@suse.de>
25820
25821 PR tree-optimization/88855
25822 * tree-if-conv.c (combine_blocks): Collect
25823 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25824
25825 2019-01-15 Tom de Vries <tdevries@suse.de>
25826
25827 PR target/80547
25828 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25829 lhs == NULL_TREE for gang-level reduction.
25830
25831 2019-01-15 Richard Biener <rguenther@suse.de>
25832 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25833
25834 PR ipa/88788
25835 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25836 return true if SSA_NAME is already marked in visited bitmap.
25837 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25838
25839 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25840
25841 PR tree-optimization/88775
25842 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25843 equal == 0 equality pointer comparisons some more if compared in
25844 integral types and either one points to an automatic var and the
25845 other to a global, or we can prove at least one points to the middle
25846 or both point to start or both point to end.
25847
25848 2019-01-14 Andi Kleen <ak@linux.intel.com>
25849
25850 * Makefile.in: Lower autofdo sampling rate by 10x.
25851 * Makefile.tpl: Dito.
25852
25853 2019-01-14 Tom Honermann <tom@honermann.net>
25854
25855 * defaults.h: Define CHAR8_TYPE.
25856
25857 2019-01-14 Martin Sebor <msebor@redhat.com>
25858
25859 PR target/88638
25860 * doc/extend.texi (Darwin Format Checks): Clarify.
25861
25862 2019-01-14 Richard Biener <rguenther@suse.de>
25863
25864 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25865 whether we are in (simplify ...) or (match ...) context.
25866
25867 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25868
25869 PR rtl-optimization/88796
25870 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25871 * cfgexpand.c (stack_protect_prologue): Initialize
25872 crtl->stack_protect_guard_decl.
25873 * function.c (stack_protect_epilogue): Use it instead of calling
25874 targetm.stack_protect_guard again.
25875 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25876 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25877 crtl->stack_protect_guard_decl.
25878 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25879 on the returned MEM_EXPR.
25880
25881 2019-01-12 Tom de Vries <tdevries@suse.de>
25882
25883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25884 vector length using -fopenacc-dim.
25885
25886 2019-01-12 Tom de Vries <tdevries@suse.de>
25887
25888 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25889 lengths into account.
25890
25891 2019-01-12 Svante Signell <svante.signell@gmail.com>
25892
25893 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25894 (TARGET_CAN_SPLIT_STACK): Define.
25895 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25896
25897 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25898
25899 * params.def (inline-unit-growth): Set to 40.
25900
25901 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25902
25903 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25904
25905 2019-01-12 Tom de Vries <tdevries@suse.de>
25906
25907 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25908 region calling vector-partitionable routine, set default_vector_length
25909 to WARP_SIZE.
25910
25911 2019-01-12 Tom de Vries <tdevries@suse.de>
25912
25913 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25914 variable default_vector_length.
25915
25916 2019-01-12 Tom de Vries <tdevries@suse.de>
25917
25918 PR middle-end/88703
25919 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25920 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25921 dimensions limits.
25922
25923 2019-01-12 Tom de Vries <tdevries@suse.de>
25924
25925 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25926 (nvptx_goacc_validate_dims): Add used parameter.
25927 * doc/tm.texi: Regenerate.
25928 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25929 argument to call to targetm.goacc.validate_dims.
25930 (default_goacc_validate_dims): Add used
25931 parameter.
25932 * target.def (validate_dims): Add used parameter in DEFHOOK.
25933 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25934
25935 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25936
25937 PR middle-end/85956
25938 PR lto/88733
25939 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25940 field.
25941 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25942 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25943 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25944 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25945
25946 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25947
25948 PR rtl-optimization/87305
25949 * lra-assigns.c
25950 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25951 for little endian pseudos used as paradoxical subreg.
25952
25953 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25954
25955 PR tree-optimization/88693
25956 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25957 for STRING_CSTs that don't contain any NUL characters in the first
25958 TREE_STRING_LENGTH bytes.
25959
25960 2019-01-11 Alan Modra <amodra@gmail.com>
25961
25962 PR 88777
25963 PR 88614
25964 * genattrtab.c (min_fn): Don't translate values.
25965 (min_attr_value): Return INT_MAX when the value can't be calculated.
25966 Return minimum among any values that can be calculated.
25967 (max_attr_value): Adjust.
25968
25969 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25970
25971 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25972
25973 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25974
25975 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25976 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25977 (aarch64_return_call_with_max_clobbers): New function.
25978 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25979 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25980 argument.
25981 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25982 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25983 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25984 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25985 * cselib.c (cselib_process_insn): Add argument to
25986 targetm.hard_regno_call_part_clobbered call.
25987 * ira-conflicts.c (ira_build_conflicts): Ditto.
25988 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25989 * lra-constraints.c (inherit_reload_reg): Ditto.
25990 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25991 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25992 argument. Call targetm.return_call_with_max_clobbers.
25993 Add argument to targetm.hard_regno_call_part_clobbered call.
25994 (calls_have_same_clobbers_p): New function.
25995 (process_bb_lives): Add call_insn and last_call_insn variables.
25996 Pass call_insn to check_pseudos_live_through_calls.
25997 Modify if stmt to check targetm.return_call_with_max_clobbers.
25998 Update setting of flush variable.
25999 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26000 to false.
26001 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26002 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26003 targetm.hard_regno_call_part_clobbered call.
26004 * reginfo.c (choose_hard_reg_mode): Ditto.
26005 * regrename.c (check_new_reg_p): Ditto.
26006 * reload.c (find_equiv_reg): Ditto.
26007 * reload1.c (emit_reload_insns): Ditto.
26008 * sched-deps.c (deps_analyze_insn): Ditto.
26009 * sel-sched.c (init_regs_for_mode): Ditto.
26010 (mark_unavailable_hard_regs): Ditto.
26011 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26012 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26013 (return_call_with_max_clobbers): New target function.
26014 * doc/tm.texi: Regenerate.
26015 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26016 * hooks.c (hook_bool_uint_mode_false): Change to
26017 hook_bool_insn_uint_mode_false.
26018 * hooks.h (hook_bool_uint_mode_false): Ditto.
26019
26020 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26021
26022 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26023 (aarch64_remove_extra_call_preserved_regs): New function.
26024 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26025 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26026 * doc/tm.texi: Regenerate.
26027 * final.c (get_call_reg_set_usage): Call new hook.
26028 * target.def (remove_extra_call_preserved_regs): New hook.
26029 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26030 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26031
26032 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26033
26034 PR bootstrap/88714
26035 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26036 inside of pass_combine_1 dump rather than pass_profile_1.
26037
26038 2019-01-11 Tom de Vries <tdevries@suse.de>
26039
26040 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26041 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26042 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26043 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26044 num_workers 16.
26045
26046 2019-01-11 Tom de Vries <tdevries@suse.de>
26047
26048 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26049
26050 2019-01-11 Jan Beulich <jbeulich@suse.com>
26051
26052 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26053 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26054 sse2_cvtsi2sd): Add {l}.
26055 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26056 syntax.
26057
26058 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26059
26060 PR target/88785
26061 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26062 define_expand.
26063 (*float<floatunssuffix>v2div2sf2): New define_insn.
26064 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26065 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26066 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26067 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26068 match_operands with "const0_operand" "C".
26069
26070 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26071
26072 * config/aarch64/aarch64-builtins.c
26073 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26074 (aarch64_init_simd_builtins): ...Here
26075
26076 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26077
26078 PR rtl-optimization/87305
26079 * lra-assigns.c
26080 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26081 allocation for big endian pseudos used as paradoxical subregs and
26082 spill them if it is wrong.
26083 * lra-constraints.c (lra_constraints): Add a comment.
26084
26085 2019-01-10 Richard Biener <rguenther@suse.de>
26086
26087 PR tree-optimization/88792
26088 * tree-ssa-pre.c (get_representative_for): Do not return a
26089 value-number here.
26090
26091 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26092
26093 PR middle-end/84877
26094 PR bootstrap/88450
26095 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26096 (assign_parm_setup_block): Do the argument slot realignment here
26097 instead.
26098
26099 2019-01-10 Stefan Agner <stefan@agner.ch>
26100
26101 PR target/88648
26102 * config/arm/arm.c (arm_option_override_internal): Force
26103 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26104
26105 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26106
26107 PR c/88568
26108 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26109 DECL_EXTERNAL.
26110
26111 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26112
26113 * config/arm/arm-builtins.c
26114 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26115 (MAC_LANE_PAIR_QUALIFIERS): New.
26116 (arm_expand_builtin_args): Use it.
26117 (arm_expand_builtin_1): Likewise.
26118 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26119 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26120 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26121 * config/arm/arm_neon.h:
26122 (vcadd_rot90_f16): New.
26123 (vcaddq_rot90_f16): New.
26124 (vcadd_rot270_f16): New.
26125 (vcaddq_rot270_f16): New.
26126 (vcmla_f16): New.
26127 (vcmlaq_f16): New.
26128 (vcmla_lane_f16): New.
26129 (vcmla_laneq_f16): New.
26130 (vcmlaq_lane_f16): New.
26131 (vcmlaq_laneq_f16): New.
26132 (vcmla_rot90_f16): New.
26133 (vcmlaq_rot90_f16): New.
26134 (vcmla_rot90_lane_f16): New.
26135 (vcmla_rot90_laneq_f16): New.
26136 (vcmlaq_rot90_lane_f16): New.
26137 (vcmlaq_rot90_laneq_f16): New.
26138 (vcmla_rot180_f16): New.
26139 (vcmlaq_rot180_f16): New.
26140 (vcmla_rot180_lane_f16): New.
26141 (vcmla_rot180_laneq_f16): New.
26142 (vcmlaq_rot180_lane_f16): New.
26143 (vcmlaq_rot180_laneq_f16): New.
26144 (vcmla_rot270_f16): New.
26145 (vcmlaq_rot270_f16): New.
26146 (vcmla_rot270_lane_f16): New.
26147 (vcmla_rot270_laneq_f16): New.
26148 (vcmlaq_rot270_lane_f16): New.
26149 (vcmlaq_rot270_laneq_f16): New.
26150 (vcadd_rot90_f32): New.
26151 (vcaddq_rot90_f32): New.
26152 (vcadd_rot270_f32): New.
26153 (vcaddq_rot270_f32): New.
26154 (vcmla_f32): New.
26155 (vcmlaq_f32): New.
26156 (vcmla_lane_f32): New.
26157 (vcmla_laneq_f32): New.
26158 (vcmlaq_lane_f32): New.
26159 (vcmlaq_laneq_f32): New.
26160 (vcmla_rot90_f32): New.
26161 (vcmlaq_rot90_f32): New.
26162 (vcmla_rot90_lane_f32): New.
26163 (vcmla_rot90_laneq_f32): New.
26164 (vcmlaq_rot90_lane_f32): New.
26165 (vcmlaq_rot90_laneq_f32): New.
26166 (vcmla_rot180_f32): New.
26167 (vcmlaq_rot180_f32): New.
26168 (vcmla_rot180_lane_f32): New.
26169 (vcmla_rot180_laneq_f32): New.
26170 (vcmlaq_rot180_lane_f32): New.
26171 (vcmlaq_rot180_laneq_f32): New.
26172 (vcmla_rot270_f32): New.
26173 (vcmlaq_rot270_f32): New.
26174 (vcmla_rot270_lane_f32): New.
26175 (vcmla_rot270_laneq_f32): New.
26176 (vcmlaq_rot270_lane_f32): New.
26177 (vcmlaq_rot270_laneq_f32): New.
26178 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26179 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26180 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26181 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26182 vcmlaq_lane270): New.
26183 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26184 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26185 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26186 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26187 (arm_option_reconfigure_globals): Use them.
26188 * config/arm/iterators.md (VDF, VQ_HSF): New.
26189 (VCADD, VCMLA): New.
26190 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26191 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26192 New.
26193 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26194 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26195
26196 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26197
26198 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26199 Add qualifier_lane_pair_index.
26200 (emit-rtl.h): Include.
26201 (TYPES_QUADOP_LANE_PAIR): New.
26202 (aarch64_simd_expand_args): Use it.
26203 (aarch64_simd_expand_builtin): Likewise.
26204 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26205 New.
26206 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26207 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26208 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26209 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26210 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26211 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26212 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26213 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26214 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26215 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26216 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26217 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26218 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26219 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26220 Add __ARM_FEATURE_COMPLEX.
26221 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26222 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26223 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26224 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26225 fcmlaq_lane270): New.
26226 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26227 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26228 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26229 * config/aarch64/arm_neon.h:
26230 (vcadd_rot90_f16): New.
26231 (vcaddq_rot90_f16): New.
26232 (vcadd_rot270_f16): New.
26233 (vcaddq_rot270_f16): New.
26234 (vcmla_f16): New.
26235 (vcmlaq_f16): New.
26236 (vcmla_lane_f16): New.
26237 (vcmla_laneq_f16): New.
26238 (vcmlaq_lane_f16): New.
26239 (vcmlaq_rot90_lane_f16): New.
26240 (vcmla_rot90_laneq_f16): New.
26241 (vcmla_rot90_lane_f16): New.
26242 (vcmlaq_rot90_f16): New.
26243 (vcmla_rot90_f16): New.
26244 (vcmlaq_laneq_f16): New.
26245 (vcmla_rot180_laneq_f16): New.
26246 (vcmla_rot180_lane_f16): New.
26247 (vcmlaq_rot180_f16): New.
26248 (vcmla_rot180_f16): New.
26249 (vcmlaq_rot90_laneq_f16): New.
26250 (vcmlaq_rot270_laneq_f16): New.
26251 (vcmlaq_rot270_lane_f16): New.
26252 (vcmla_rot270_laneq_f16): New.
26253 (vcmlaq_rot270_f16): New.
26254 (vcmla_rot270_f16): New.
26255 (vcmlaq_rot180_laneq_f16): New.
26256 (vcmlaq_rot180_lane_f16): New.
26257 (vcmla_rot270_lane_f16): New.
26258 (vcadd_rot90_f32): New.
26259 (vcaddq_rot90_f32): New.
26260 (vcaddq_rot90_f64): New.
26261 (vcadd_rot270_f32): New.
26262 (vcaddq_rot270_f32): New.
26263 (vcaddq_rot270_f64): New.
26264 (vcmla_f32): New.
26265 (vcmlaq_f32): New.
26266 (vcmlaq_f64): New.
26267 (vcmla_lane_f32): New.
26268 (vcmla_laneq_f32): New.
26269 (vcmlaq_lane_f32): New.
26270 (vcmlaq_laneq_f32): New.
26271 (vcmla_rot90_f32): New.
26272 (vcmlaq_rot90_f32): New.
26273 (vcmlaq_rot90_f64): New.
26274 (vcmla_rot90_lane_f32): New.
26275 (vcmla_rot90_laneq_f32): New.
26276 (vcmlaq_rot90_lane_f32): New.
26277 (vcmlaq_rot90_laneq_f32): New.
26278 (vcmla_rot180_f32): New.
26279 (vcmlaq_rot180_f32): New.
26280 (vcmlaq_rot180_f64): New.
26281 (vcmla_rot180_lane_f32): New.
26282 (vcmla_rot180_laneq_f32): New.
26283 (vcmlaq_rot180_lane_f32): New.
26284 (vcmlaq_rot180_laneq_f32): New.
26285 (vcmla_rot270_f32): New.
26286 (vcmlaq_rot270_f32): New.
26287 (vcmlaq_rot270_f64): New.
26288 (vcmla_rot270_lane_f32): New.
26289 (vcmla_rot270_laneq_f32): New.
26290 (vcmlaq_rot270_lane_f32): New.
26291 (vcmlaq_rot270_laneq_f32): New.
26292 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26293 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26294 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26295 (FCADD, FCMLA): New.
26296 (rot): New.
26297 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26298
26299 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26300
26301 PR other/16615
26302
26303 * config/pa/pa.c: Change "can not" to "cannot".
26304 * gimple-ssa-evrp-analyze.c: Likewise.
26305 * ipa-icf.c: Likewise.
26306 * ipa-polymorphic-call.c: Likewise.
26307 * ipa-pure-const.c: Likewise.
26308 * lra-constraints.c: Likewise.
26309 * lra-remat.c: Likewise.
26310 * reload1.c: Likewise.
26311 * reorg.c: Likewise.
26312 * tree-ssa-uninit.c: Likewise.
26313
26314 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26315
26316 PR other/16615
26317
26318 * Makefile.in: Mechanically replace "can not" with "cannot".
26319 * alias.c: Likewise.
26320 * builtins.c: Likewise.
26321 * calls.c: Likewise.
26322 * cgraph.c: Likewise.
26323 * cgraph.h: Likewise.
26324 * cgraphclones.c: Likewise.
26325 * cgraphunit.c: Likewise.
26326 * combine-stack-adj.c: Likewise.
26327 * combine.c: Likewise.
26328 * common/config/i386/i386-common.c: Likewise.
26329 * config/aarch64/aarch64.c: Likewise.
26330 * config/alpha/sync.md: Likewise.
26331 * config/arc/arc.c: Likewise.
26332 * config/arc/predicates.md: Likewise.
26333 * config/arm/arm-c.c: Likewise.
26334 * config/arm/arm.c: Likewise.
26335 * config/arm/arm.h: Likewise.
26336 * config/arm/arm.md: Likewise.
26337 * config/arm/cortex-r4f.md: Likewise.
26338 * config/csky/csky.c: Likewise.
26339 * config/csky/csky.h: Likewise.
26340 * config/darwin-f.c: Likewise.
26341 * config/epiphany/epiphany.md: Likewise.
26342 * config/i386/i386.c: Likewise.
26343 * config/i386/sol2.h: Likewise.
26344 * config/m68k/m68k.c: Likewise.
26345 * config/mcore/mcore.h: Likewise.
26346 * config/microblaze/microblaze.md: Likewise.
26347 * config/mips/20kc.md: Likewise.
26348 * config/mips/sb1.md: Likewise.
26349 * config/nds32/nds32.c: Likewise.
26350 * config/nds32/predicates.md: Likewise.
26351 * config/pa/pa.c: Likewise.
26352 * config/rs6000/e300c2c3.md: Likewise.
26353 * config/rs6000/rs6000.c: Likewise.
26354 * config/s390/s390.h: Likewise.
26355 * config/sh/sh.c: Likewise.
26356 * config/sh/sh.md: Likewise.
26357 * config/spu/vmx2spu.h: Likewise.
26358 * cprop.c: Likewise.
26359 * dbxout.c: Likewise.
26360 * df-scan.c: Likewise.
26361 * doc/cfg.texi: Likewise.
26362 * doc/extend.texi: Likewise.
26363 * doc/fragments.texi: Likewise.
26364 * doc/gty.texi: Likewise.
26365 * doc/invoke.texi: Likewise.
26366 * doc/lto.texi: Likewise.
26367 * doc/md.texi: Likewise.
26368 * doc/objc.texi: Likewise.
26369 * doc/rtl.texi: Likewise.
26370 * doc/tm.texi: Likewise.
26371 * dse.c: Likewise.
26372 * emit-rtl.c: Likewise.
26373 * emit-rtl.h: Likewise.
26374 * except.c: Likewise.
26375 * expmed.c: Likewise.
26376 * expr.c: Likewise.
26377 * fold-const.c: Likewise.
26378 * genautomata.c: Likewise.
26379 * gimple-fold.c: Likewise.
26380 * hard-reg-set.h: Likewise.
26381 * ifcvt.c: Likewise.
26382 * ipa-comdats.c: Likewise.
26383 * ipa-cp.c: Likewise.
26384 * ipa-devirt.c: Likewise.
26385 * ipa-fnsummary.c: Likewise.
26386 * ipa-icf.c: Likewise.
26387 * ipa-inline-transform.c: Likewise.
26388 * ipa-inline.c: Likewise.
26389 * ipa-polymorphic-call.c: Likewise.
26390 * ipa-profile.c: Likewise.
26391 * ipa-prop.c: Likewise.
26392 * ipa-pure-const.c: Likewise.
26393 * ipa-reference.c: Likewise.
26394 * ipa-split.c: Likewise.
26395 * ipa-visibility.c: Likewise.
26396 * ipa.c: Likewise.
26397 * ira-build.c: Likewise.
26398 * ira-color.c: Likewise.
26399 * ira-conflicts.c: Likewise.
26400 * ira-costs.c: Likewise.
26401 * ira-int.h: Likewise.
26402 * ira-lives.c: Likewise.
26403 * ira.c: Likewise.
26404 * ira.h: Likewise.
26405 * loop-invariant.c: Likewise.
26406 * loop-unroll.c: Likewise.
26407 * lower-subreg.c: Likewise.
26408 * lra-assigns.c: Likewise.
26409 * lra-constraints.c: Likewise.
26410 * lra-eliminations.c: Likewise.
26411 * lra-lives.c: Likewise.
26412 * lra-remat.c: Likewise.
26413 * lra-spills.c: Likewise.
26414 * lra.c: Likewise.
26415 * lto-cgraph.c: Likewise.
26416 * lto-streamer-out.c: Likewise.
26417 * postreload-gcse.c: Likewise.
26418 * predict.c: Likewise.
26419 * profile-count.h: Likewise.
26420 * profile.c: Likewise.
26421 * recog.c: Likewise.
26422 * ree.c: Likewise.
26423 * reload.c: Likewise.
26424 * reload1.c: Likewise.
26425 * reorg.c: Likewise.
26426 * resource.c: Likewise.
26427 * rtl.def: Likewise.
26428 * rtl.h: Likewise.
26429 * rtlanal.c: Likewise.
26430 * sched-deps.c: Likewise.
26431 * sched-ebb.c: Likewise.
26432 * sched-rgn.c: Likewise.
26433 * sel-sched-ir.c: Likewise.
26434 * sel-sched.c: Likewise.
26435 * shrink-wrap.c: Likewise.
26436 * simplify-rtx.c: Likewise.
26437 * symtab.c: Likewise.
26438 * target.def: Likewise.
26439 * toplev.c: Likewise.
26440 * tree-call-cdce.c: Likewise.
26441 * tree-cfg.c: Likewise.
26442 * tree-complex.c: Likewise.
26443 * tree-core.h: Likewise.
26444 * tree-eh.c: Likewise.
26445 * tree-inline.c: Likewise.
26446 * tree-loop-distribution.c: Likewise.
26447 * tree-nrv.c: Likewise.
26448 * tree-profile.c: Likewise.
26449 * tree-sra.c: Likewise.
26450 * tree-ssa-alias.c: Likewise.
26451 * tree-ssa-dce.c: Likewise.
26452 * tree-ssa-dom.c: Likewise.
26453 * tree-ssa-forwprop.c: Likewise.
26454 * tree-ssa-loop-im.c: Likewise.
26455 * tree-ssa-loop-ivcanon.c: Likewise.
26456 * tree-ssa-loop-ivopts.c: Likewise.
26457 * tree-ssa-loop-niter.c: Likewise.
26458 * tree-ssa-phionlycprop.c: Likewise.
26459 * tree-ssa-phiopt.c: Likewise.
26460 * tree-ssa-propagate.c: Likewise.
26461 * tree-ssa-threadedge.c: Likewise.
26462 * tree-ssa-threadupdate.c: Likewise.
26463 * tree-ssa-uninit.c: Likewise.
26464 * tree-ssanames.c: Likewise.
26465 * tree-streamer-out.c: Likewise.
26466 * tree.c: Likewise.
26467 * tree.h: Likewise.
26468 * vr-values.c: Likewise.
26469
26470 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26471
26472 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26473 (ix86_split_xorsign): Ditto.
26474 * config/i386/i386.c (ix86_expand_xorsign): New function.
26475 (ix86_split_xorsign): Ditto.
26476 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26477 (xorsign<mode>3): New expander.
26478 (xorsign<mode>3_1): New insn_and_split pattern.
26479 * config/i386/sse.md (xorsign<mode>3): New expander.
26480
26481 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26482
26483 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26484 (*tablejump_sp64): Likewise.
26485 (*tablejump<P:mode>): ...this.
26486 (*call_address_sp32): Merge into...
26487 (*call_address_sp64): Likewise.
26488 (*call_address<P:mode>): ...this.
26489 (*call_symbolic_sp32): Merge into...
26490 (*call_symbolic_sp64): Likewise.
26491 (*call_symbolic<P:mode>): ...this.
26492 (call_value): Remove constraint and add predicate.
26493 (*call_value_address_sp32): Merge into...
26494 (*call_value_address_sp64): Likewise.
26495 (*call_value_address<P:mode>): ...this.
26496 (*call_value_symbolic_sp32): Merge into...
26497 (*call_value_symbolic_sp64): Likewise.
26498 (*call_value_symbolic<P:mode>): ...this.
26499 (*sibcall_symbolic_sp32): Merge into...
26500 (*sibcall_symbolic_sp64): Likewise.
26501 (*sibcall_symbolic<P:mode>): ...this.
26502 (sibcall_value): Remove constraint and add predicate.
26503 (*sibcall_value_symbolic_sp32): Merge into...
26504 (*sibcall_value_symbolic_sp64): Likewise.
26505 (*sibcall_value_symbolic<P:mode>): ...this.
26506 (window_save): Minor tweak.
26507 (*branch_sp32): Merge into...
26508 (*branch_sp64): Likewise.
26509 (*branch<P:mode>): ...this.
26510
26511 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26512 James Clarke <jrtc27@jrtc27.com>
26513
26514 PR target/84010
26515 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26516 consistently in TLS address generation and adjust code to the renaming
26517 of patterns. Mark calls to __tls_get_addr as const.
26518 * config/sparc/sparc.md (tgd_hi22): Turn into...
26519 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26520 (tgd_lo10): Turn into...
26521 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26522 (tgd_add32): Merge into...
26523 (tgd_add64): Likewise.
26524 (tgd_add<P:mode>): ...this and use Pmode throughout.
26525 (tldm_hi22): Turn into...
26526 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26527 (tldm_lo10): Turn into...
26528 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26529 (tldm_add32): Merge into...
26530 (tldm_add64): Likewise.
26531 (tldm_add<P:mode>): ...this and use Pmode throughout.
26532 (tldm_call32): Merge into...
26533 (tldm_call64): Likewise.
26534 (tldm_call<P:mode>): ...this and use Pmode throughout.
26535 (tldo_hix22): Turn into...
26536 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26537 (tldo_lox10): Turn into...
26538 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26539 (tldo_add32): Merge into...
26540 (tldo_add64): Likewise.
26541 (tldo_add<P:mode>): ...this and use Pmode throughout.
26542 (tie_hi22): Turn into...
26543 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26544 (tie_lo10): Turn into...
26545 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26546 (tie_ld64): Use DImode throughout.
26547 (tie_add32): Merge into...
26548 (tie_add64): Likewise.
26549 (tie_add<P:mode>): ...this and use Pmode throughout.
26550 (tle_hix22_sp32): Merge into...
26551 (tle_hix22_sp64): Likewise.
26552 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26553 (tle_lox22_sp32): Merge into...
26554 (tle_lox22_sp64): Likewise.
26555 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26556 (*tldo_ldub_sp32): Merge into...
26557 (*tldo_ldub_sp64): Likewise.
26558 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26559 (*tldo_ldub1_sp32): Merge into...
26560 (*tldo_ldub1_sp64): Likewise.
26561 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26562 (*tldo_ldub2_sp32): Merge into...
26563 (*tldo_ldub2_sp64): Likewise.
26564 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26565 (*tldo_ldsb1_sp32): Merge into...
26566 (*tldo_ldsb1_sp64): Likewise.
26567 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26568 (*tldo_ldsb2_sp32): Merge into...
26569 (*tldo_ldsb2_sp64): Likewise.
26570 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26571 (*tldo_ldub3_sp64): Use DImode throughout.
26572 (*tldo_ldsb3_sp64): Likewise.
26573 (*tldo_lduh_sp32): Merge into...
26574 (*tldo_lduh_sp64): Likewise.
26575 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26576 (*tldo_lduh1_sp32): Merge into...
26577 (*tldo_lduh1_sp64): Likewise.
26578 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26579 (*tldo_ldsh1_sp32): Merge into...
26580 (*tldo_ldsh1_sp64): Likewise.
26581 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26582 (*tldo_lduh2_sp64): Use DImode throughout.
26583 (*tldo_ldsh2_sp64): Likewise.
26584 (*tldo_lduw_sp32): Merge into...
26585 (*tldo_lduw_sp64): Likewise.
26586 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26587 (*tldo_lduw1_sp64): Use DImode throughout.
26588 (*tldo_ldsw1_sp64): Likewise.
26589 (*tldo_ldx_sp64): Likewise.
26590 (*tldo_stb_sp32): Merge into...
26591 (*tldo_stb_sp64): Likewise.
26592 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26593 (*tldo_sth_sp32): Merge into...
26594 (*tldo_sth_sp64): Likewise.
26595 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26596 (*tldo_stw_sp32): Merge into...
26597 (*tldo_stw_sp64): Likewise.
26598 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26599 (*tldo_stx_sp64): Use DImode throughout.
26600
26601 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26602
26603 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26604 check configure option to set BTI and Return Address Signing.
26605 * configure.ac: Add --enable-standard-branch-protection and
26606 --disable-standard-branch-protection.
26607 * configure: Regenerated.
26608 * doc/install.texi: Document the same.
26609
26610 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26611 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26612
26613 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26614 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26615 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26616 if bti is enabled.
26617 * config/aarch64/aarch64-bti-insert.c: New file.
26618 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26619 pass.
26620 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26621 new bti pass.
26622 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26623 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26624 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26625 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26626
26627 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26628
26629 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26630 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26631 Disable bti for -mbranch-protection=none.
26632 (aarch64_handle_standard_branch_protection): Enable bti for
26633 -mbranch-protection=standard.
26634 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26635 -mbranch-protection.
26636 (aarch64_bti_enabled): Check if bti is enabled.
26637 * config/aarch64/aarch64.opt: Declare target variable.
26638 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26639
26640 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26641
26642 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26643 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26644 (aarch64_expand_epilogue): Likewise.
26645 (aarch64_output_mi_thunk): Likewise.
26646 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26647 TAILCALL_ADDR_REGS to x16 and x17.
26648 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26649
26650 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26651
26652 * config/aarch64/aarch64-option-extensions.def: Define
26653 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26654 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26655 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26656 (AARCH64_FL_PREDRES): New.
26657 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26658 AARCH64_FL_PREDRES by default.
26659 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26660
26661 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26662
26663 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26664 ARMv8.5-A.
26665 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26666 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26667 * doc/invoke.texi: Document ARMv8.5-A.
26668
26669 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26670
26671 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26672 (xorsign<mode>3): Likewise.
26673
26674 2019-01-09 Jelinek <jakub@redhat.com>
26675
26676 PR middle-end/88758
26677 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26678 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26679
26680 PR rtl-optimization/88331
26681 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26682 not currently_expanding_to_rtl.
26683
26684 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26685
26686 * doc/invoke.texi (-Os): Remove trailing spaces.
26687 (-finline-functions): Remove reference to -O2.
26688
26689 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26690
26691 PR rtl-optimization/79593
26692 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26693
26694 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26695 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26696
26697 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26698
26699 PR bootstrap/88721
26700 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26701 to -1 on entry.
26702
26703 PR debug/88723
26704 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26705 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26706
26707 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26708
26709 PR target/88717
26710 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26711 ix86_avx_u128_mode_entry.
26712
26713 2019-01-08 Martin Liska <mliska@suse.cz>
26714
26715 PR tree-optimization/88753
26716 * tree-switch-conversion.c (switch_conversion::build_one_array):
26717 Come up with local variable constructor. Convert first to
26718 type of constructor values.
26719
26720 2019-01-08 Richard Biener <rguenther@suse.de>
26721
26722 PR tree-optimization/86554
26723 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26724 rpo_avail): Move earlier.
26725 (visit_nary_op): When value-numbering to expressions
26726 with different overflow behavior make sure there's an
26727 available expression on the path.
26728
26729 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26730
26731 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26732 aarch64_parse_branch_protection,
26733 struct aarch64_branch_protect_type,
26734 aarch64_handle_no_branch_protection,
26735 aarch64_handle_standard_branch_protection,
26736 aarch64_validate_mbranch_protection,
26737 aarch64_handle_pac_ret_protection,
26738 aarch64_handle_attr_branch_protection,
26739 accepted_branch_protection_string,
26740 aarch64_pac_ret_subtypes,
26741 aarch64_branch_protect_types,
26742 aarch64_handle_pac_ret_leaf): Define.
26743 (aarch64_override_options_after_change_1, aarch64_override_options):
26744 Add check for accepted_branch_protection_string.
26745 (aarch64_option_save): Save accepted_branch_protection_string.
26746 (aarch64_option_restore): Save accepted_branch_protection_string.
26747 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26748 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26749 msign-return-address.
26750 * doc/invoke.texi: Add mbranch-protection.
26751
26752 2019-01-08 Alan Modra <amodra@gmail.com>
26753
26754 PR target/88614
26755 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26756 Delete "unknownp" parameter. Adjust callers. Handle
26757 CONST_INT, PLUS, MINUS, and MULT.
26758 (attr_value_aligned): Renamed from or_attr_value.
26759 (min_attr_value): Return INT_MIN for unhandled rtl case..
26760 (min_fn): ..and translate to INT_MAX here.
26761 (write_length_unit_log): Modify to cope without "unknown".
26762 (write_attr_value): Handle IF_THEN_ELSE.
26763
26764 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26765
26766 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26767 optimization for masked stores.
26768
26769 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26770
26771 PR middle-end/88567
26772 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26773 output vector directly to duplicate_and_interleave instead of
26774 going through a temporary. Postpone insertion of ctor_seq to
26775 the end of the loop.
26776
26777 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26778
26779 PR target/86891
26780 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26781 unsigned_p. Handle signed and unsigned overflow correction as
26782 required.
26783 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26784 prototype.
26785 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26786 for operand 2.
26787 (add<mode>3_compareV_imm): Make this callable for expanding.
26788 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26789 aarch64_plus_operand for operand 2.
26790 (subv<GPI:mode>_insn): New insn pattern.
26791 (subv<GPI:mode>_imm): Likewise.
26792 (negv<GPI:mode>3): New expand pattern.
26793 (negv<GPI:mode>_insn): New insn pattern.
26794 (negv<GPI:mode>_cmp_only): Likewise.
26795 (cmpv<GPI:mode>_insn): Likewise.
26796 (subvti4): Use register_operand for operand 1. Update call to
26797 aarch64_expand_subvti.
26798 (usubvti4): Likewise.
26799 (negvti3): New expand pattern.
26800 (negdi_carryout): New insn pattern.
26801 (negvdi_carryinV): New insn pattern.
26802 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26803 version the named version.
26804 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26805 operands.
26806 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26807 patterns.
26808 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26809 patterns.
26810 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26811 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26812 (sub<mode>3_carryinCV): Delete.
26813 (sub<GPI:mode>3_carryinV): New expand pattern.
26814 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26815
26816 2019-01-07 Richard Biener <rguenther@suse.de>
26817
26818 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26819 of tree_operand_hash.
26820
26821 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26822
26823 PR tree-optimization/88598
26824 * tree.h (single_nonzero_element): Declare.
26825 * tree.c (single_nonzero_element): New function.
26826 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26827 if I is the only nonzero element of CST.
26828
26829 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26830
26831 PR tree-optimization/88598
26832 * tree.h (initializer_each_zero_or_onep): Declare.
26833 * tree.c (initializer_each_zero_or_onep): New function.
26834 (signed_or_unsigned_type_for): Handle float types too.
26835 (unsigned_type_for, signed_type_for): Update comments accordingly.
26836 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26837 x & { 0 or -1, 0 or -1, ... }.
26838
26839 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26840
26841 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26842 with x86_64-pc-linux-gnu.
26843
26844 2019-01-07 Tom de Vries <tdevries@suse.de>
26845
26846 PR target/85486
26847 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26848 function.
26849 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26850 routines.
26851
26852 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26853
26854 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26855 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26856 TARGET_AVX512F as condition.
26857
26858 PR debug/88723
26859 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26860 const_not_ok_for_debug_p target hook.
26861 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26862 on UNSPEC and subexpressions thereof if all subexpressions of the
26863 UNSPEC are CONSTANT_P.
26864
26865 PR tree-optimization/88676
26866 * tree-ssa-phiopt.c (two_value_replacement): New function.
26867 (tree_ssa_phiopt_worker): Call it.
26868
26869 PR sanitizer/88619
26870 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26871 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26872
26873 PR c++/85052
26874 * tree-vect-generic.c: Include insn-config.h and recog.h.
26875 (expand_vector_piecewise): Add defaulted ret_type argument,
26876 if non-NULL, use that in preference to type for the result type.
26877 (expand_vector_parallel): Formatting fix.
26878 (do_vec_conversion, do_vec_narrowing_conversion,
26879 expand_vector_conversion): New functions.
26880 (expand_vector_operations_1): Call expand_vector_conversion
26881 for VEC_CONVERT ifn calls.
26882 * internal-fn.def (VEC_CONVERT): New internal function.
26883 * internal-fn.c (expand_VEC_CONVERT): New function.
26884 * fold-const-call.c (fold_const_vec_convert): New function.
26885 (fold_const_call): Use it for CFN_VEC_CONVERT.
26886 * doc/extend.texi (__builtin_convertvector): Document.
26887
26888 2019-01-07 Tom de Vries <tdevries@suse.de>
26889
26890 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26891 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26892 vector_red_partition, vector_red_sym): New global variables.
26893 (nvptx_option_override): Initialize vector_red_sym.
26894 (nvptx_declare_function_name): Restore red_partition register.
26895 (nvptx_file_end): Emit code to declare the vector reduction variables.
26896 (nvptx_output_red_partition): New function.
26897 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26898 large vector reductions.
26899 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26900 (nvptx_init_builtins): Add VECTOR_ADDR.
26901 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26902 Handle nvptx_expand_shared_addr.
26903 (nvptx_get_shared_red_addr): Add vector argument and handle large
26904 vectors.
26905 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26906 large vectors.
26907 (nvptx_goacc_reduction_init): Likewise.
26908 (nvptx_goacc_reduction_fini): Likewise.
26909 (nvptx_goacc_reduction_teardown): Likewise.
26910 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26911 init,fini,teardown}.
26912 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26913 (nvptx_set_current_function): Init vector_red_partition.
26914 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26915 (nvptx_red_partition): New insn.
26916 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26917
26918 2019-01-07 Tom de Vries <tdevries@suse.de>
26919
26920 PR target/85381
26921 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26922 empty loops.
26923
26924 2019-01-07 Tom de Vries <tdevries@suse.de>
26925
26926 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26927 (nvptx_option_override): Init oacc_bcast_partition.
26928 (nvptx_init_oacc_workers): New function.
26929 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26930 (nvptx_needs_shared_bcast): New function.
26931 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26932 to propagate state.
26933 (nvptx_shared_propagate): Initialize vector bcast partition and
26934 synchronization state.
26935 (nvptx_single): Generalize to enable vectors to use shared-memory
26936 to propagate state.
26937 (nvptx_process_pars): Likewise.
26938 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26939 * config/nvptx/nvptx.h (struct machine_function): Add
26940 bcast_partition and sync_bar members.
26941
26942 2019-01-07 Tom de Vries <tdevries@suse.de>
26943
26944 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26945 (nvptx_apply_dim_limits): New function.
26946 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26947 PTX_WARP_SIZE.
26948
26949 2019-01-07 Tom de Vries <tdevries@suse.de>
26950
26951 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26952 as late as possible.
26953
26954 2019-01-07 Tom de Vries <tdevries@suse.de>
26955
26956 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26957 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26958 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26959 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26960 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26961
26962 2019-01-07 Tom de Vries <tdevries@suse.de>
26963
26964 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26965
26966 2019-01-07 Tom de Vries <tdevries@suse.de>
26967
26968 * omp-offload.c (oacc_get_min_dim): New function.
26969 * omp-offload.h (oacc_get_min_dim): Declare.
26970
26971 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26972
26973 PR target/88521
26974 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26975 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26976
26977 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26978
26979 PR tree-opt/86020
26980 Revert:
26981 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26982
26983 * ipa-inline.c (edge_badness): Use inlined_time instead of
26984 inline_summaries->get.
26985
26986 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26987
26988 * opts.c (enable_fdo_optimizations): Enable
26989 version-loops-for-strides, loop-interchange, unrol-and-jam
26990 and tree-loop-distribution.
26991 * invoke.texi: Document newly enabled options.
26992
26993 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26994
26995 * doc/invoke.texi (max-inline-insns-small): New parameters.
26996 * ipa-inline.c (want_early_inline_function_p): simplify.
26997 (want_inline_small_function_p): Fix pasto from previous patch;
26998 use max-inline-insns-small bound.
26999 * params.def (max-inline-insns-small): New param.
27000 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27001 variables correctly.
27002
27003 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27004
27005 * doc/invoke.texi: Document max-inline-insns-size,
27006 uninlined-function-insns, uninlined-function-time,
27007 uninlined-thunk-insns and uninlined-thunk-time.
27008 * params.def: Add max-inline-insns-size,
27009 uninlined-function-insns, uninlined-function-time,
27010 uninlined-thunk-insns and uninlined-thunk-time.
27011 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27012 new parameters.
27013 * ipa-inline.c (can_inline_edge_by_limits_p,
27014 want_inline_small_function_p): Use new parameters.
27015
27016 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27017
27018 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27019
27020 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27021
27022 PR middle-end/82564
27023 PR target/88620
27024 * expr.c (expand_assignment): For calls returning VLA structures
27025 if to_rtx is not a MEM, force it into a stack temporary.
27026
27027 PR debug/88635
27028 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27029 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27030 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27031 subexpressions of both operands.
27032 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27033 subrtxes are CONSTANT_P.
27034 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27035 2018-11-09 changes.
27036
27037 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27038
27039 * params.def (hot-bb-count-ws-permille): Set to 990.
27040
27041 2019-01-04 Martin Sebor <msebor@redhat.com>
27042
27043 PR c/88546
27044 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27045 leaf.
27046
27047 2019-01-04 Martin Sebor <msebor@redhat.com>
27048
27049 PR c/88363
27050 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27051
27052 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27053
27054 * gdbinit.in: Turn off pagination for the skip commands, restore
27055 it to previous state afterwards.
27056
27057 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27058
27059 PR target/88594
27060 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27061 of GET_MODE (opN) as modes of the libcall arguments.
27062
27063 2019-01-04 Jan Beulich <jbeulich@suse.com>
27064
27065 * config/i386/sse.md
27066 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27067 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27068 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27069 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27070 avx512f_vmcmp<mode>3<round_saeonly_name>,
27071 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27072 avx512f_maskcmp<mode>3,
27073 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27074 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27075 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27076 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27077 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27078 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27079 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27080 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27081 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27082 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27083 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27084 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27085 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27086 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27087 avx512cd_maskb_vec_dup<mode>,
27088 avx512cd_maskw_vec_dup<mode>,
27089 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27090 avx512dq_vmfpclass<mode>,
27091 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27092 instead of =Yk.
27093
27094 2019-01-03 Martin Sebor <msebor@redhat.com>
27095
27096 PR tree-optimization/88659
27097 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27098
27099 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27100
27101 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27102 unaligned vsx and avoid lxvd2x/stxvd2x.
27103 (gen_lvx_v4si_move): New function.
27104
27105 2019-01-03 Tom de Vries <tdevries@suse.de>
27106
27107 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27108 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27109 function.
27110 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27111
27112 2019-01-03 Tom de Vries <tdevries@suse.de>
27113
27114 * config/nvptx/nvptx.c (struct offload_attrs): New.
27115 (populate_offload_attrs): New function. Factor mask extraction out of
27116 nvptx_reorg. Add extraction of dimensions.
27117 (nvptx_reorg): Use populate_offload_attrs.
27118
27119 2019-01-03 Tom de Vries <tdevries@suse.de>
27120
27121 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27122 cases for oacc_min_dims_p and routine_p. Add asserts for
27123 oacc_default_dims_p and offload_region_p.
27124
27125 2019-01-03 Tom de Vries <tdevries@suse.de>
27126
27127 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27128 factored out of ...
27129 (nvptx_goacc_validate_dims): ... here.
27130
27131 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27132
27133 PR tree-optimization/85574
27134 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27135 structure.
27136 (struct ssa_equip_hash_traits): Declare.
27137 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27138
27139 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27140
27141 PR debug/88644
27142 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27143 change it to qualified_type.
27144
27145 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27146
27147 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27148 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27149
27150 2019-01-02 Martin Sebor <msebor@redhat.com>
27151 Jeff Law <law@redhat.com>
27152
27153 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27154 (get_range_strlen_tree): Update appropriately.
27155 (get_range_strlen)
27156 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27157
27158 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27159 rather than set_range_info.
27160 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27161 maybe_set_strlen_range. Handle potentially boundary crossing
27162 cases more conservatively.
27163 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27164 Call set_strlen_range.
27165 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27166
27167 PR middle-end/88663
27168 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27169 need the flexp argument.
27170 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27171 from calls to get_range_strlen. Update comments. Just update
27172 VAL for an unterminated const char array and let the reset of the
27173 code handle it normally. No longer try to set *flexp. Adjust
27174 return value.
27175 (get_range_strlen): Update for the new get_range_strlen API.
27176 (get_maxval_strlen): Similarly.
27177 (gimple_fold_builtin_strlen): Handle update meaning of return value
27178 from get_range_strlen.
27179 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27180 get_range_strlen API.
27181
27182 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27183
27184 PR lto/88130
27185 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27186 false at WPA time when body was removed.
27187
27188 2019-01-02 Martin Liska <mliska@suse.cz>
27189
27190 PR tree-optimization/88650
27191 * predict.c (set_even_probabilities): Calculate probability
27192 remainer only when really used.
27193
27194 2019-01-02 Richard Biener <rguenther@suse.de>
27195
27196 PR middle-end/88651
27197 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27198 widest_ints when mangling max_stmt_execution results.
27199
27200 2019-01-02 Richard Biener <rguenther@suse.de>
27201
27202 PR tree-optimization/88621
27203 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27204 bitfields when canoncalizing.
27205
27206 2019-01-02 Richard Biener <rguenther@suse.de>
27207
27208 PR target/87545
27209 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27210 cost of cheap SSE instruction.
27211
27212 2019-01-02 Richard Biener <rguenther@suse.de>
27213
27214 PR ipa/85574
27215 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27216 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27217 function.
27218 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27219 set after UIDs before splitting them.
27220
27221 2019-01-01 Martin Sebor <msebor@redhat.com>
27222 Jeff Law <law@redhat.com>
27223
27224 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27225 length is optimistic. If it is, then arrange to compute the
27226 conservative length as well.
27227
27228 * gimple-fold.h (get_range_strlen): Update prototype.
27229 * builtins.c (check_access): Update call to get_range_strlen to use
27230 c_strlen_data pointer. Change various variable accesses to instead
27231 pull data from the c_strlen_data structure.
27232 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27233 * calls.c (maybe_warn_nonstring_arg): Likewise.
27234 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27235 minimum length if maximum lengh is unknown.
27236 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27237 that used c_strlen, it's no longer needed. Restructure slightly.
27238 (format_string): Set unlikely range appropriately.
27239 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27240 formatting issues.
27241 (get_range_strlen): Accept c_strlen_data pointer for external
27242 call sites as well. Pass through to call to internal get_range_strlen.
27243 Adjust minlen, maxlen and maxbound as needed.
27244 (get_maxval_strlen): Update comments.
27245 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27246 to use c_strlen_data pointer. Change variable accesses to instead
27247 use c_strlen_data data members.
27248
27249 * gimple-fold.c (get_range_strlen): Update prototype.
27250 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27251 local variables. Use pdata to return information to caller.
27252 Update calls to get_range_strlen. Update pdata->maxbound.
27253 (get_range_strlen -- static version): Similarly.
27254 (get_range_strlen -- extern version): Update for internal
27255 get_range_strlen API change. Convert to external data format.
27256 (get_maxval_strlen): Similarly.
27257
27258 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27259
27260 * coverage.c (get_coverage_counts): Use current_function_decl.
27261 * profile.c (read_thunk_profile): New function.
27262 (branch_prob): Add THUNK parameter.
27263 * tree-profile.c (tree_profiling): Handle thunks.
27264 * value-prof.c (init_node_map): Handle thunks.
27265 * value-prof.h (branch_prob): Upate prototype.
27266 (read_thunk_profile): Declare.
27267
27268 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27269
27270 Update copyright years.
27271
27272 * gcc.c (process_command): Update copyright notice dates.
27273 * gcov-dump.c (print_version): Ditto.
27274 * gcov.c (print_version): Ditto.
27275 * gcov-tool.c (print_version): Ditto.
27276 * gengtype.c (create_file): Ditto.
27277 * doc/cpp.texi: Bump @copying's copyright year.
27278 * doc/cppinternals.texi: Ditto.
27279 * doc/gcc.texi: Ditto.
27280 * doc/gccint.texi: Ditto.
27281 * doc/gcov.texi: Ditto.
27282 * doc/install.texi: Ditto.
27283 * doc/invoke.texi: Ditto.
27284 \f
27285 Copyright (C) 2019 Free Software Foundation, Inc.
27286
27287 Copying and distribution of this file, with or without modification,
27288 are permitted in any medium without royalty provided the copyright
27289 notice and this notice are preserved.