]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[arm] Improve code generation for addvsi4.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/arm.md (addv<mode>4): Delete.
4 (addvsi4): New pattern. Handle immediate values that the architecture
5 supports.
6 (addvdi4): New pattern.
7 (addsi3_compareV): Rename to ...
8 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
9 and use COMPARE rather than NE.
10 (addsi3_compareV_imm): New pattern.
11 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
12 a signed-overflow check.
13
14 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
15
16 * config/arm/arm-modes.def (CC_ADC): New CC mode.
17 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
18 CC_ADCmode.
19 (maybe_get_arm_condition_code): Handle CC_ADCmode.
20 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
21 with overflow.
22 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
23 expand patterns.
24 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
25 (addsi3_cin_cout_imm_insn): Likewise.
26 (adddi3_compareC): Delete insn.
27 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
28
29 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
30
31 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
32 * (uaddv<mode>4): Delete expansion pattern.
33 (uaddvsi4): New pattern.
34 (uaddvdi4): Likewise.
35 (addsi3_compareC): Delete pattern, change callers to use
36 addsi3_compare_op1.
37 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
38 reduce the number of alternatives and re-work type attribute handling.
39 (addsi3_compare_op2): Clean up constraints to reduce the number of
40 alternatives and re-work type attribute handling.
41 (compare_addsi2_op0): Likewise.
42 (compare_addsi2_op1): Likewise.
43
44 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
45
46 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
47 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
48 for DImode operands.
49 (arm_gen_dicompare_reg): Remove unreachable expansion code.
50 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
51 CC_NCVmode.
52 * config/arm/arm.md (arm_cmpdi_insn): Delete.
53 (arm_cmpdi_unsigned): Delete.
54
55 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
56
57 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
58 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
59 unchanged only if that will be cheaper.
60 (arm_select_cc_mode): Recognize a swapped comparison that will
61 be regenerated using RSBS or RSCS. Relax restriction on selecting
62 CC_RSBmode.
63 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
64 a constant.
65 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
66 is CC_RSBmode.
67 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
68 as CCmode.
69 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
70 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
71
72 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
73
74 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
75 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
76 need these modes.
77 (arm_gen_dicompare_reg): New code to early expand the sub-operations
78 of EQ, NE, LT, GE, LTU and GEU.
79 * config/arm/iterators.md (CC_EXTEND): New code attribute.
80 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
81 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
82 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
83 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
84
85 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
86
87 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
88 operand 2.
89 (cstoredi4): Similarly, but for operand 3.
90 * config/arm/arm.c (arm_canoncialize_comparison): Allow
91 canonicalization of unsigned compares with a constant on Arm.
92 Prefer using const+1 and adjusting the comparison over swapping the
93 operands whenever the original constant was not valid.
94 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
95 register here.
96 (arm_validize_comparison): Do not force invalid DImode operands to
97 registers here.
98
99 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
100
101 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
102 return CC_Zmode if comparing against a constant where one word is
103 zero.
104 (arm_gen_compare_reg): Split DImode handling to ...
105 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
106 against simple constants.
107 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
108
109 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
110
111 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
112 (rsbsi3_carryin_shift_alt): Likewise.
113
114 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
115
116 * config/arm/arm.md (negscc_borrow): New pattern.
117 (mov_negscc): Don't split if the insn would match negscc_borrow.
118 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
119 (thumb2_mov_negscc_strict_it): Likewise.
120
121 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
122
123 * config/arm/arm.c (arm_insn_cost): New function.
124 (TARGET_INSN_COST): Override default definition.
125
126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
127
128 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
129 borrow operations.
130
131 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
132
133 * config/arm/arm.c (strip_carry_operation): New function.
134 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
135 for SImode.
136
137 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
138
139 * config/arm/predicates.md (arm_carry_operation): New special
140 predicate.
141 * config/arm/iterators.md (LTUGEU): Delete iterator.
142 (cnb): Delete code attribute.
143 (optab): Delete ltu and geu elements.
144 * config/arm/arm.md (addsi3_carryin): Renamed from
145 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
146 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
147 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
148 (addsi3_carryin_clobercc): Similarly.
149 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
150 Thumb2 state.
151
152 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
153
154 * config/arm/arm.md (arm_subdi3): Delete insn.
155 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
156
157 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
158
159 * config/arm/arm-modes.def (CC_RSB): New CC mode.
160 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
161 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
162 return CC_RSBmode.
163 (maybe_get_arm_condition_code): Handle CC_RSBmode.
164 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
165 expand.
166 (subdi3): Rewrite to early-expand the sub-operations.
167 (rsb_im_compare): New pattern.
168 (negdi2): Delete.
169 (negdi2_insn): Delete.
170 (arm_negsi2): Correct type attribute to alu_imm.
171 (negsi2_0compare): New insn pattern.
172 (negsi2_carryin): New insn pattern.
173
174 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
175
176 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
177 operand 2.
178
179 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
180
181 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
182 to match canonical form.
183
184 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
185
186 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
187 (extend<mode>di2): Likewise.
188
189 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
190
191 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
192 * config/arm/arm.c (arm_decompose_di_binop): New function.
193 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
194 If not generating Thumb-1 code, decompose the operation into 32-bit
195 pieces.
196 * add0si_carryin_<optab>: New pattern.
197
198 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
199
200 * arm.md (adddi3): Only accept register operands.
201 (arm_adddi3): Convert to simple insn with no split. Do not accept
202 constants.
203 (adddi_sesidi_di): Delete patern.
204 (adddi_zesidi_di): Likewise.
205 (uaddv<mode>4): Use LTU as condition for branch.
206 (adddi3_compareV): Convert to simple insn with no split.
207 (addsi3_compareV_upper): Delete pattern.
208 (adddi3_compareC): Convert to simple insn with no split. Correct
209 flags setting expression.
210 (addsi3_compareC_upper): Delete pattern.
211 (addsi3_compareC): Correct flags setting expression.
212 (subdi3_compare1): Convert to simple insn with no split.
213 (subsi3_carryin_compare): Delete pattern.
214 (arm_subdi3): Convert to simple insn with no split.
215 (subdi_zesidi): Delete pattern.
216 (subdi_di_sesidi): Delete pattern.
217 (subdi_zesidi_di): Delete pattern.
218 (subdi_sesidi_di): Delete pattern.
219 (subdi_zesidi_zesidi): Delete pattern.
220 (negvdi3): Use s_register_operand.
221 (negdi2_compare): Convert to simple insn with no split.
222 (negdi2_insn): Likewise.
223 (negsi2_carryin_compare): Delete pattern.
224 (negdi_zero_extendsidi): Delete pattern.
225 (arm_cmpdi_insn): Convert to simple insn with no split.
226 (negdi2): Don't call gen_negdi2_neon.
227 * config/arm/neon.md (adddi3_neon): Delete pattern.
228 (subdi3_neon): Delete pattern.
229 (negdi2_neon): Delete pattern.
230 (splits for negdi2_neon): Delete splits.
231
232 2019-10-18 Jakub Jelinek <jakub@redhat.com>
233
234 PR middle-end/92153
235 * ggc-page.c (release_pages): Read g->alloc_size before free rather
236 than after it.
237
238 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
239
240 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
241 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
242 new multilib variants and new mappings.
243
244 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
245
246 PR target/86040
247 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
248
249 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
250 Richard Sandiford <richard.sandiford@arm.com>
251
252 PR target/86753
253 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
254 and define hashmap traits for it.
255 (loop_vec_info::scalar_cond_masked_set): New member.
256 (vect_record_loop_mask): Adjust prototype.
257 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
258 Implement method.
259 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
260 vect_record_loop_mask.
261 (vectorizable_live_operation): Likewise.
262 (vect_record_loop_mask): New param scalar_mask. Add entry
263 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
264 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
265 Pass it as last arg to vect_record_loop_mask.
266 (vectorizable_call): Pass scalar_mask as last arg to
267 vect_record_loop_mask.
268 (vectorizable_store): Likewise.
269 (vectorizable_load): Likewise.
270 (vectorizable_condition): Check if another part of vectorized code
271 applies loop_mask to condition or to it's inverse, and if yes,
272 apply loop_mask to result of vector comparison.
273
274 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
275
276 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
277
278 2019-10-18 Jakub Jelinek <jakub@redhat.com>
279
280 PR tree-optimization/92056
281 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
282 before calling compute_builtin_object_size.
283
284 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
285
286 PR target/65342
287 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
288 (movdi_low_st): Delete.
289 * config/rs6000/rs6000.c
290 (darwin_rs6000_legitimate_lo_sum_const_p): New.
291 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
292 * config/rs6000/rs6000.md (movsi_low): Delete.
293
294 2019-10-17 Jason Merrill <jason@redhat.com>
295
296 * gimplify.h (get_initialized_tmp_var): Add default argument to
297 post_p.
298 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
299 NULL post_p argument.
300 * targhooks (std_gimplify_va_arg_expr): Likewise.
301
302 2019-10-17 Richard Biener <rguenther@suse.de>
303
304 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
305 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
306 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
307 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
308 * tree-vect-loop.c (vect_is_simple_reduction): Set
309 STMT_VINFO_REDUC_CODE.
310 (vectorizable_reduction): Remove dead and redundant code, use
311 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
312
313 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
314
315 Fix breakage introduced by r276985.
316
317 * config/avr/avr.c (avr_option_override): Remove set of
318 PARAM_ALLOW_STORE_DATA_RACES.
319 * common/config/avr/avr-common.c (avr_option_optimization_table)
320 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
321
322 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
323
324 * config/i386/i386.h (processor_costs): Add clear_ratio.
325 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
326 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
327 of 6 and move_ratio in all cost models.
328
329 2019-10-17 Richard Biener <rguenther@suse.de>
330
331 * tree-vect-loop.c (check_reduction_path): Compute reduction
332 operation here.
333 (vect_is_simple_reduction): Remove special-case of single-stmt
334 reduction path detection.
335
336 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
337
338 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
339
340 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
341
342 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
343 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
344 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
345 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
346 New combine patterns.
347 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
348 above.
349 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
350
351 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
352
353 * tree-vrp.c (value_range_base::dump): Display +INF for both
354 pointers and integers when appropriate.
355
356 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
357
358 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
359 when to use versioning threshold.
360
361 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
362
363 * tree-vect-loop.c (determine_peel_for_niter): New function contained
364 outlined code from ...
365 (vect_analyze_loop_2): ... here.
366
367 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
368
369 * tree-vect-loop.c (vect_transform_loop): Move code from here...
370 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
371 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
372
373 2019-10-17 Richard Biener <rguenther@suse.de>
374
375 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
376 (vect_is_simple_reduction): Move all validity checks ...
377 (vectorizable_reduction): ... here. Compute whether we
378 need a fold-left reduction here.
379 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
380 both overloads, check needs_fold_left_reduction_p directly.
381 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
382
383 2019-10-17 Richard Biener <rguenther@suse.de>
384
385 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
386 TARGET_MEM_REF creation.
387
388 2019-10-17 Richard Biener <rguenther@suse.de>
389
390 PR tree-optimization/92129
391 * tree-vect-loop.c (vectorizable_reduction): Also fail
392 on GIMPLE_SINGLE_RHS.
393
394 2019-10-17 Jakub Jelinek <jakub@redhat.com>
395
396 PR tree-optimization/92056
397 * tree-object-size.c (cond_expr_object_size): Return early if then_
398 processing resulted in unknown size.
399
400 PR tree-optimization/92115
401 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
402 temporary if it could trap.
403
404 2019-10-17 Richard Biener <rguenther@suse.de>
405
406 PR debug/91887
407 * dwarf2out.c (gen_formal_parameter_die): Also try to match
408 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
409
410 2019-10-16 Jakub Jelinek <jakub@redhat.com>
411
412 * tree-ssa-strlen.c (maybe_invalidate): Use
413 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
414
415 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
416 Jim Wilson <jimw@sifive.com>
417
418 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
419 regs to SIBCALL_REGS.
420 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
421 passing regs to SIBCALL_REGS.
422
423 2019-10-16 Martin Sebor <msebor@redhat.com>
424
425 PR tree-optimization/83821
426 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
427 the length of a string when available.
428 (handle_builtin_memset) Add argument.
429 (handle_store, strlen_check_and_optimize_call): Same.
430 (check_and_optimize_stmt): Same. Pass it to callees.
431
432 2019-10-16 Martin Sebor <msebor@redhat.com>
433
434 PR tree-optimization/91996
435 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
436 information.
437 (compare_nonzero_chars): Add an overload.
438 (count_nonzero_bytes): Add an argument. Call overload above.
439 Handle non-constant lengths in some range.
440 (handle_store): Add an argument.
441 (check_and_optimize_stmt): Pass an argument to handle_store.
442
443 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
444
445 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
446
447 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
448
449 * config/mips/mips.c (mips_expand_builtin_insn): Force the
450 operands which correspond to the same input-output register to
451 have the same pseudo assigned to them.
452
453 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
454
455 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
456
457 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
458
459 * config/aarch64/aarch64.c (aarch64_classify_symbol):
460 Apply reasonable limit to symbol offsets.
461
462 2019-10-16 Richard Biener <rguenther@suse.de>
463
464 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
465 (vect_is_simple_reduction): Delay checking to
466 vectorizable_reduction and relax the checking.
467 (vectorizable_reduction): Check we have a simple use. Check
468 for bogus condition reductions.
469 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
470 are looking at the last stmt in a pattern sequence when
471 filling in backedge PHI values.
472
473 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
474 Jiufu Guo <guojiufu@linux.ibm.com>
475
476 PR target/70010
477 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
478 the callee explicitly disables some isa_flags the caller is using.
479
480 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
481
482 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
483
484 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
485
486 * genmodes.c (mode_data::order): New field.
487 (blank_mode): Update accordingly.
488 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
489 (make_vector_modes): Likewise.
490 (VECTOR_MODES): Update use accordingly.
491 (cmp_modes): Sort by the new order field ahead of sorting by size.
492 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
493 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
494 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
495 (aarch64_classify_vector_mode): Handle the new partial modes.
496 (aarch64_vl_bytes): New function.
497 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
498 when counting the number of registers in an SVE mode.
499 (aarch64_class_max_nregs): Likewise.
500 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
501 in registers yet.
502 (aarch64_classify_address): Treat partial vectors analogously
503 to full vectors.
504 (aarch64_print_address_internal): Consolidate the printing of
505 MUL VL addresses, using aarch64_vl_bytes as the number of
506 bytes represented by "VL".
507 (aarch64_vector_mode_supported_p): Reject partial vector modes.
508
509 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
510
511 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
512 rather than known_lt when choosing frame layouts.
513
514 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
515
516 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
517 that all the adjustments add up to the full frame size.
518 Use crtl->outgoing_args_size directly as the final adjustment
519 where appropriate.
520
521 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
522
523 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
524 "frame" reference instead of always referring directly to
525 "cfun->machine->frame".
526
527 2019-10-16 Richard Biener <rguenther@suse.de>
528
529 PR tree-optimization/92119
530 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
531 against missing bswap lhs.
532
533 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
534
535 PR middle-end/92033
536 * poly-int.h (constant_lower_bound_with_limit): New function.
537 (constant_upper_bound_with_limit): Likewise.
538 * doc/poly-int.texi: Document them.
539 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
540 into the worst-case INTEGER_CST bounds.
541
542 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
543
544 PR ipa/91088
545 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
546 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
547 * ipa-predicat.h (struct expr_eval_op): New struct.
548 (expr_eval_ops): New typedef.
549 (struct condition): Add type and param_ops fields, remove size field.
550 (add_condition): Replace size parameter with type parameter, add
551 param_ops parameter.
552 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
553 (predicate::add_clause): Add comparisons on type and param_ops.
554 (dump_condition): Add debug dump for param_ops.
555 (remap_after_inlining): Adjust call arguments to add_condition.
556 (add_condition): Replace size parameter with type parameter, add
557 param_ops parameter. Unshare constant value used in conditions.
558 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
559 parameter expressions using param_ops.
560 (decompose_param_expr): New function.
561 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
562 to replace call to unmodified_parm_or_parm_agg_item.
563 (set_switch_stmt_execution_predicate): Likewise.
564 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
565 with type.
566 (inline_read_section): Read param_ops from summary stream.
567 (ipa_fn_summary_write): Write param_ops to summary stream.
568
569 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
570
571 PR rtl-optimization/92107
572 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
573 expression written.
574
575 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
576
577 * config/darwin.c: Update description of fix and continue.
578
579 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
580
581 * config/darwin.c (darwin_binds_local_p): Update to call
582 default_binds_local_p_3 () directly. amend comments.
583
584 2019-10-15 Richard Biener <rguenther@suse.de>
585
586 * lto-streamer-out.c (lto_variably_modified_type_p): New.
587 (tree_is_indexable): Use it.
588 * tree-streamer-out.c (pack_ts_type_common_value_fields):
589 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
590 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
591
592 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
593
594 * config/msp430/msp430.md (zero_extendqipsi2): New.
595 (zero_extendqisi2): Optimize case where src register and base dst
596 register are the same.
597 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
598 (zero_extendpsisi2): Optimize r->m case.
599 Add unnamed insn patterns to catch insns combine searches for when
600 optimizing pointer manipulation.
601
602 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
603
604 * config/msp430/msp430.md: Group zero_extend* insns together.
605
606 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
607
608 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
609 constraint.
610 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
611 POST_INC.
612 (msp430_subreg): Likewise.
613 (msp430_split_addsi): Likewise.
614 (msp430_print_operand_addr): Likewise.
615 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
616 (USE_STORE_POST_INCREMENT): Define.
617 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
618 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
619 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
620 (msp430_general_dst_operand): New.
621 (msp430_general_dst_nonv_operand): New.
622 (msp430_nonsubreg_operand): Remove.
623 (msp430_nonsubreg_dst_operand): New.
624 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
625 of defunct msp430_nonsubreg_operand.
626 (msp430_nonsubregnonpostinc_or_imm_operand): New.
627
628 2019-10-15 Richard Biener <rguenther@suse.de>
629
630 PR tree-optimization/91929
631 * tree-ssa-pre.c (pre_expr_d::loc): New member.
632 (get_or_alloc_expr_for_name): Initialize it.
633 (get_or_alloc_expr_for_constant): Likewise.
634 (phi_translate_1): Copy it.
635 (create_expression_by_pieces): Use the original location
636 of the expression for the inserted stmt.
637 (compute_avail): Record the location of the stmt for the
638 expressions created.
639
640 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
641
642 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
643 before using tree_to_uhwi.
644
645 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
646
647 * config/s390/s390.md: Run %a0:DI splitters only after reload.
648
649 2019-10-15 Richard Biener <rguenther@suse.de>
650
651 PR tree-optimization/92094
652 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
653 do not adjust the reduction definition def type.
654 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
655 defines the latch argument of the PHI.
656
657 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
658
659 PR target/92035
660 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
661 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
662 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
663 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
664 _mm_maskz_roundscale_round_sd): New intrinsics.
665 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
666 __builtin_ia32_rndscales?_mask_round builtins instead of
667 __builtin_ia32_rndscales?_round.
668 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
669 __builtin_ia32_rndscalesd_round): Remove.
670 (__builtin_ia32_rndscaless_mask_round,
671 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
672 * config/i386/sse.md
673 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
674 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
675 ... this, adjust and add subst atrributes to make it maskable.
676
677 2019-10-15 Richard Biener <rguenther@suse.de>
678
679 PR middle-end/92046
680 * common.opt (fallow-store-data-races): New.
681 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
682 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
683 * doc/invoke.texi (fallow-store-data-races): Document.
684 (--param allow-store-data-races): Remove docs.
685 * opts.c (default_options_table): Enable -fallow-store-data-races
686 at -Ofast.
687 (default_options_optimization): Do not enable --param
688 allow-store-data-races at -Ofast.
689 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
690 instead of PARAM_ALLOW_STORE_DATA_RACES.
691 * tree-ssa-loop-im.c (execute_sm): Likewise.
692
693 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
694
695 PR tree-optimization/92085
696 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
697 instead of calling it unconditionally after
698 delete_dead_or_redundant_assignment and fix indentation.
699
700 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
701
702 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
703 TARGET_VFP_DOUBLE.
704 (*fmsub<SDF:mode>4): Likewise.
705 *fnmsub<SDF:mode>4): Likewise.
706 (*fnmadd<SDF:mode>4): Likewise.
707
708 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
709
710 * doc/tree-ssa.texi: Update renamed macro name.
711
712 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
713
714 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
715 vector constants.
716
717 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
718
719 * config/darwin.c: Use unsigned ints for the picbase label
720 counters, initialise the vars explicitly.
721 (update_pic_label_number_if_needed): Move a variable declaration
722 to where it's needed.
723 (machopic_output_function_base_name): Use a more strict checking
724 assert, and and unsigned int for the picbase label counter.
725 (machopic_get_function_picbase): Likewise.
726
727 2019-10-14 Richard Biener <rguenther@suse.de>
728
729 PR middle-end/92046
730 * dse.c (scan_insn): Use param max_active_local_stores.
731 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
732 based on optimization level.
733 * loop-invariant.c (move_loop_invariants): Adjust
734 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
735 * opts.c (default_options_optimization): Do not adjust
736 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
737 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
738
739 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
740
741 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
742
743 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
744
745 * config/arm/arm.c (arm_option_override): Don't override sched
746 pressure algorithm.
747
748 2019-10-14 Richard Biener <rguenther@suse.de>
749
750 PR tree-optimization/92069
751 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
752 cycles do not set vect_nested_cycle on the latch definition.
753
754 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
755
756 * function-abi.h (expr_callee_abi): Declare.
757 * function-abi.cc (expr_callee_abi): New function.
758
759 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
760
761 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
762 into [1,MAX].
763 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
764 non-zero being represented as [1,MAX].
765
766 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
767
768 * tree-sra.c (dump_access): Add missing braces.
769
770 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
771
772 * config/darwin.c (machopic_indirection_name): Rework the
773 function to emit linker-visible symbols only for indirections
774 in the data section. Clean up the code and update comments.
775
776 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
777
778 * config/darwin.c (machopic_indirect_data_reference): Remove
779 redundant code.
780
781 2019-10-13 Nathan Sidwell <nathan@acm.org>
782
783 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
784
785 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
786
787 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
788 c99_runtime.
789
790 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
791
792 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
793 so non-virutal are before virutals.
794 (output_function): Avoid body modifications.
795
796 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
797
798 * config/pa/pa.c (pa_output_call): Load descriptor address to register
799 %r22. Load function address before global pointer.
800 (pa_attr_length_indirect_call): Adjust length of inline versions of
801 $$dyncall.
802 (pa_output_indirect_call): Remove fast inline version of $$dyncall
803 before normal cases. Update inline $$dyncall sequences to preserve
804 function descriptor address in register %r22.
805 (TRAMPOLINE_CODE_SIZE): Adjust.
806 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
807 register %r22 contains trampoline address.
808 (pa_trampoline_init): Adjust offsets.
809 (pa_trampoline_adjust_address): Likewise.
810 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
811
812 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
813
814 PR target/67183
815 * config/darwin.c (machopic_indirection): New field to flag
816 non-lazy-symbol-pointers in the data section.
817 (machopic_indirection_name): Compute if an indirection should
818 appear in the data section.
819 (machopic_output_data_section_indirection): New callback split
820 from machopic_output_indirection.
821 (machopic_output_stub_indirection): Likewise.
822 (machopic_output_indirection): Retain the code for non-lazy
823 symbol pointers in their regular section.
824 (machopic_finish): Use the new callbacks to order the indirection
825 output.
826
827 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
828
829 * config/darwin-protos.h (machopic_finish): Delete.
830 * config/darwin.c (machopic_finish): Make static.
831
832 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
833
834 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
835 sections when building kernel extension code.
836
837 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
838
839 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
840 later standard."
841
842 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
843
844 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
845 from warning.
846
847 2019-10-12 Jakub Jelinek <jakub@redhat.com>
848
849 PR middle-end/92063
850 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
851 <case VEC_COND_EXPR>: Return false with *handled = false.
852 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
853 recursing on the first operand.
854 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
855 instead of tree_could_trap_p.
856 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
857
858 2019-10-11 Jim Wilson <jimw@sifive.com>
859
860 PR rtl-optimization/91860
861 * combine.c (subst): If new_rtx is a constant, also check for
862 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
863
864 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
865
866 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
867 INTVAL when calling store_bit_field.
868
869 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
870
871 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
872 size.
873
874 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
875
876 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
877 vectorizable_live_operation.
878 (vectorizable_live_operation): Adjust parameters.
879 * tree-vect-stmts.c (vect_init_vector,
880 vect_gen_widened_results_half): Fix typo in function comment.
881 (can_vectorize_live_stmts): Adjust function comment.
882 Adjust parameters. Adjust call to vectorizable_live_operation.
883 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
884 (vect_transform_stmt): Adjust function comment. Adjust call to
885 can_vectorize_live_stmts.
886 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
887
888 2019-10-11 Richard Biener <rguenther@suse.de>
889
890 PR tree-optimization/90883
891 PR tree-optimization/91091
892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
893 alias-sets both for recording VN table entries and continuing
894 walking after translating through copies. Handle same-sized
895 reads from SSA names by returning the plain SSA name.
896 (eliminate_dom_walker::eliminate_stmt): Properly handle
897 non-size precision stores in redundant store elimination.
898
899 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
900
901 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
902 (ggc_collect): Dump later to not interfere with release_page dump.
903 (ggc_trim): New function.
904 * ggc-none.c (ggc_trim): New.
905 * ggc.h (ggc_trim): Declare.
906
907 2019-10-11 Richard Biener <rguenther@suse.de>
908
909 PR tree-optimization/92066
910 PR tree-optimization/92046
911 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
912 Fix bogus cost model check.
913
914 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
915
916 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
917 (LANG_HOOKS_DECLS): Add it.
918 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
919 update comment for omp_is_optional_argument.
920 * omp-general.c (omp_is_allocatable_or_ptr): New.
921 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
922 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
923 Fortran's optional arguments and allocatable/pointer scalars
924 with use_device_addr.
925
926 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
927
928 PR target/77918
929 * config/s390/2827.md: Add new opcodes.
930 * config/s390/2964.md: Likewise.
931 * config/s390/3906.md: Likewise.
932 * config/s390/8561.md: Likewise.
933 * config/s390/s390-builtins.def (s390_vfchesb): Use
934 the new vec_cmpgev4sf_quiet_nocc.
935 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
936 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
937 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
938 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
939 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
940 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
941 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
942 * config/s390/s390-modes.def (CCSFPS): New mode.
943 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
944 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
945 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
946 (s390_expand_vec_compare): Use non-signaling patterns where
947 necessary.
948 (s390_reverse_condition): Support CCSFPS.
949 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
950 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
951 (asm_fcmp_op): Likewise.
952 (*smaxv2df3_vx): Use pattern for quiet comparison.
953 (*sminv2df3_vx): Likewise.
954 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
955 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
956 (vec_cmpgt<mode>_quiet_nocc): Likewise.
957 (vec_cmplt<mode>_quiet_nocc): New expander.
958 (vec_cmpge<mode>_quiet_nocc): New pattern.
959 (vec_cmple<mode>_quiet_nocc): New expander.
960 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
961 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
962 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
963 (*vec_cmpge<mode>_signaling_nocc): Likewise.
964 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
965 (vec_cmpungt<mode>): New expander.
966 (vec_cmpunge<mode>): Likewise.
967 (vec_cmpuneq<mode>): Use quiet patterns.
968 (vec_cmpltgt<mode>): Allow only on z14+.
969 (vec_cmpordered<mode>): Use quiet patterns.
970 (vec_cmpunordered<mode>): Likewise.
971 (VEC_CMP_EXPAND): Add ungt and unge.
972
973 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
974
975 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
976 parameter.
977 * lto-streamer-out.c: Include tree-dfa.h.
978 (output_cfg): Do not use cfun.
979 (lto_prepare_function_for_streaming): New.
980 (output_function): Do not push cfun; do not initialize loop optimizer.
981 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
982 * passes.c (ipa_write_summaries): Use it.
983 (ipa_write_optimization_summaries): Do not modify bodies.
984 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
985 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
986 * tree-ssa-dse.c (pass_dse::execute): Update use of
987 renumber_gimple_stmt_uids.
988 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
989
990 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
991
992 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
993 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
994
995 2019-10-10 Joseph Myers <joseph@codesourcery.com>
996
997 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
998 macros.
999 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
1000 Also define DFP macros for these conditions.
1001 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
1002 DEC128_SUBNORMAL_MIN): Do not define.
1003 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
1004 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
1005
1006 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
1007 Sandra Loosemore <sandra@codesourcery.com>
1008
1009 PR middle-end/26241
1010 * doc/lto.texi (IPA): Reference to the IPA passes.
1011 * doc/passes.texi (Pass manager): Add node IPA passes and
1012 description for each IPA pass.
1013
1014 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1015
1016 * ipa-reference.c: Do not include splay-tree.h
1017 (reference_vars_to_consider): Turn to hash map.
1018 (get_static_name, ipa_init, analyze_function, propagate,
1019 stream_out_bitmap, ipa_reference_write_optimization_summary,
1020 ipa_reference_write_optimization_summary): Update.
1021
1022 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1023
1024 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
1025
1026 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
1027
1028 * config/darwin.c: Lookup Objective C metadata and force indirection
1029 for IVAR refs.
1030
1031 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
1032
1033 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
1034 addresses.
1035 (mem_operand_gpr): Add check for prefixed addresses.
1036 (mem_operand_ds_form): Add check for prefixed addresses.
1037 (rs6000_legitimate_offset_address_p): If we support prefixed
1038 addresses, check for a 34-bit offset instead of 16-bit.
1039 (rs6000_legitimate_address_p): Add check for prefixed addresses.
1040 Do not allow load/store with update if the address is prefixed.
1041 (rs6000_mode_dependent_address): If we support prefixed
1042 addresses, check for a 34-bit offset instead of 16-bit.
1043
1044 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
1045
1046 PR target/77918
1047 * config/s390/vector.md (vcond_comparison_operator): New
1048 predicate.
1049 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
1050
1051 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1052
1053 PR 87488
1054 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
1055 -D.
1056 * configure.ac (--with-documentation-root-url): New option.
1057 * configure: Regenerate.
1058 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
1059 option URL, add it as a new string field of the diagnostic option.
1060 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
1061 (print_option_information): If get_option_url is non-NULL, call
1062 it, and if the result is non-NULL, potentially emit an escape
1063 sequence to markup the option text with the resulting URL.
1064 * diagnostic.h (diagnostic_context::get_option_url): New callback.
1065 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
1066 example of JSON output.
1067 * opts-diagnostic.h (get_option_url): New decl.
1068 * opts.c (get_option_url): New function.
1069 * toplev.c (general_init): Initialize the get_option_url callback.
1070
1071 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1072
1073 PR 87488
1074 * common.opt (fdiagnostics-urls=): New option.
1075 (diagnostic-url.h): Add SourceInclude.
1076 (diagnostic_url_rule): New enum.
1077 * diagnostic-color.c: Include "diagnostic-url.h".
1078 (diagnostic_urls_enabled_p): New function.
1079 * diagnostic-url.h: New file.
1080 * diagnostic.c: Include "diagnostic-url.h".
1081 (diagnostic_urls_init): New function.
1082 * diagnostic.h (diagnostic_urls_init): New decl.
1083 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1084 -fdiagnostics-urls to the list.
1085 (-fdiagnostics-urls): New option.
1086 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1087 (driver::global_initializations): Call diagnostic_urls_init.
1088 * opts-global.c (init_options_once): Likewise.
1089 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1090 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1091 show_urls.
1092 (pp_begin_url): New function.
1093 (pp_end_url): New function.
1094 (selftest::test_urls): New selftest.
1095 (selftest::pretty_print_c_tests): Call it.
1096 * pretty-print.h (pretty_printer::show_urls): New field.
1097 (pp_begin_url): New decl.
1098 (pp_end_url): New decl.
1099
1100 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1101
1102 PR target/92022
1103 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1104
1105 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1106
1107 PR target/88630
1108 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1109 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1110 also for TARGET_FPU_SH4_300.
1111 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1112 TARGET_SH4_300.
1113 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1114 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1115 (*negsf2_i): Split into ...
1116 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1117 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1118 (**abssf2_i): Split into ...
1119 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1120 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1121 (*negdf2_i): Split into ...
1122 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1123 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1124 (**abssf2_i): Split into ...
1125 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1126
1127 2019-10-10 Richard Biener <rguenther@suse.de>
1128
1129 PR middle-end/92046
1130 * opts.c (finish_options): Do not influence global --params
1131 from options that are adjustable per function.
1132 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1133 Apply --param adjustment based on active cost-model.
1134 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1135 further store-sinking when vectorization or if-conversion
1136 are not enabled.
1137
1138 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1139
1140 PR middle-end/92037
1141 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1142 rather than ggc_alloc_cleared to alloc symbol table.
1143 * toplev.c (general_init): Likewise.
1144 * cgraph.h (symbol_table): Explicitly construct every field.
1145
1146 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1147
1148 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1149 (PF_Z15): ... this.
1150 * config.gcc: Add z15 as option for --with-arch and --with-tune
1151 configure switches.
1152 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1153 error reporting for unsupported builtins.
1154 * config/s390/s390-opts.h (enum processor_type): Rename
1155 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1156 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1157 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1158 Likewise.
1159 * config/s390/s390-builtins.def: Likewise.
1160 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1161 (s390_expand_builtin): Add missing check for unsupported builtins.
1162 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1163 (s390_rtx_costs): Likewise.
1164 (s390_get_sched_attrmask): Rename arch13 to z15.
1165 (s390_get_unit_mask): Likewise.
1166 (s390_is_fpd): Likewise.
1167 (s390_is_fxd): Likewise.
1168 * config/s390/s390.h (enum processor_flags): Likewise.
1169 * config/s390/s390.md: Likewise.
1170 * config/s390/vector.md: Likewise.
1171 * config/s390/vx-builtins.md: Likewise.
1172 * config/s390/s390.opt: Add z15 to processor_type value.
1173
1174 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1175
1176 PR target/91035
1177 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1178 prototype.
1179 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1180 ("split_stack_data", "split_stack_call")
1181 ("split_stack_call_<mode>", "split_stack_cond_call")
1182 ("split_stack_cond_call_<mode>"): Remove.
1183 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1184 insn definition.
1185 * config/s390/s390.c (s390_output_split_stack_data): New function.
1186 (s390_expand_split_stack_prologue): Use the merged expander.
1187
1188 2019-10-09 Martin Sebor <msebor@redhat.com>
1189
1190 PR tree-optimization/90879
1191 * builtins.c (check_access): Avoid using maxbound when null.
1192 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1193 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1194 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1195 conditional.
1196 (get_range_strlen): Overwrite initial maxbound when non-null.
1197 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1198 changes.
1199 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1200 (used_only_for_zero_equality): New function.
1201 (handle_builtin_memcmp): Call it.
1202 (determine_min_objsize): Return an integer instead of tree.
1203 (get_len_or_size, strxcmp_eqz_result): New functions.
1204 (maybe_warn_pointless_strcmp): New function.
1205 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1206 between a longer string and a smaller array.
1207 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1208
1209 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1210
1211 * config/darwin.c (darwin_override_options): Make the check for
1212 Objective-C ABI version more specific for 64bit code.
1213
1214 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1215
1216 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1217 indicate that the new symbol is an indirection.
1218 (machopic_indirect_call_target): Likewise.
1219 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1220 (MACHO_SYMBOL_INDIRECTION_P): New.
1221 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1222
1223 2019-10-08 Jason Merrill <jason@redhat.com>
1224
1225 * doc/invoke.texi: Document -fconcepts-ts.
1226
1227 2019-10-09 Richard Biener <rguenther@suse.de>
1228
1229 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1230 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1231
1232 2019-10-08 Richard Biener <rguenther@suse.de>
1233
1234 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1235 (_stmt_vec_info::force_single_cycle): Likewise.
1236 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1237 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1238 * tree-vect-loop.c (vectorizable_reduction): Set
1239 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1240 (vect_transform_reduction): Use them to remove redundant code.
1241 (vect_transform_cycle_phi): Likewise.
1242
1243 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1244
1245 PR tree-optimization/90836
1246 * gcc/match.pd (popcount): New pattern.
1247
1248 2019-10-08 Martin Sebor <msebor@redhat.com>
1249
1250 PR middle-end/92026
1251 PR middle-end/92014
1252 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1253 again once nbytes has been set. Set the access size when not yet set.
1254
1255 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1256
1257 * config/darwin.c (machopic_select_section): Remove dead code for
1258 old Objective-C section selection method, replace with unreachable.
1259
1260 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1261
1262 * config/darwin.c (machopic_indirect_data_reference): Check for
1263 required indirections before making direct access to defined
1264 values.
1265 (machopic_output_indirection): Place the indirected pointes for
1266 required indirections into the non-lazy symbol pointers section.
1267 (darwin_encode_section_info):
1268 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1269 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1270
1271 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1272
1273 PR target/91994
1274 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1275 instead of ALL_SSE_REG to check if function call preserves some
1276 256-bit SSE registers.
1277
1278 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1279
1280 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1281 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1282 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1283
1284 2019-10-08 Richard Biener <rguenther@suse.de>
1285
1286 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1287 (_stmt_vec_info::is_reduc_info): Add.
1288 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1289 (vectorizable_condition): Remove.
1290 (vectorizable_shift): Likewise.
1291 (vectorizable_reduction): Adjust.
1292 (info_for_reduction): New.
1293 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1294 (vect_analyze_scalar_cycles_1): ... here.
1295 (vect_analyze_loop_operations): Adjust.
1296 (needs_fold_left_reduction_p): Simplify for single caller.
1297 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1298 for nested cycles not part of double reductions.
1299 (vect_model_reduction_cost): Pass in the reduction type.
1300 (info_for_reduction): New function.
1301 (vect_create_epilog_for_reduction): Use it, access reduction
1302 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1303 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1304 (vectorize_fold_left_reduction): Remove pointless assert.
1305 (vectorizable_reduction): Analyze the full reduction when
1306 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1307 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1308 stmt code-generation to vectorizable_* in most cases. Verify
1309 code-generation only for cases handled by
1310 vect_transform_reductuon.
1311 (vect_transform_reduction): Use info_for_reduction to get at
1312 reduction meta. Simplify.
1313 (vect_transform_cycle_phi): Likewise.
1314 (vectorizable_live_operation): Likewise.
1315 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1316 at the PHI node for STMT_VINFO_REDUC_TYPE.
1317 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1318 longer necessary code.
1319 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1320 (vectorizable_condition): Likewise. Get at reduction related
1321 info via info_for_reduction.
1322 (vect_analyze_stmt): Adjust.
1323 (vect_transform_stmt): Likewise.
1324 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1325 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1326
1327 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1328
1329 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1330 -fno-fp-int-builtin-inexact default for C2X.
1331
1332 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1333 Richard Biener <rguenther@suse.de>
1334
1335 PR tree-optimization/91532
1336 * tree-if-conv.c: Include tree-ssa-dse.h.
1337 (ifcvt_local_dce): Change param from bb to loop,
1338 and call dse_classify_store.
1339 (tree_if_conversion): Pass loop instead of loop->header as arg
1340 to ifcvt_local_dce.
1341 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1342 (delete_dead_or_redundant_assignment): Remove static qualifier from
1343 declaration, and add prototype in tree-ssa-dse.h.
1344 (dse_store_status): Move to tree-ssa-dse.h.
1345 (dse_classify_store): Remove static qualifier and add new tree param
1346 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1347 * tree-ssa-dse.h: New header.
1348
1349 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1350
1351 * config/darwin.c (machopic_output_indirection): Don't put
1352 hidden symbol indirections into the .data section, use the
1353 non-lazy symbol pointers section as normal.
1354 (darwin_encode_section_info): Record if a symbol is hidden.
1355 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1356 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1357
1358 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1359
1360 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1361 predicates instead of accessing bits directly.
1362 (machopic_indirect_call_target): Likewise.
1363 (machopic_output_indirection): Likewise.
1364 (darwin_encode_section_info): Improve description. Use renamed
1365 symbol flags. Use predicate macros for variables and functions.
1366 * config/darwin.h:
1367 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1368 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1369 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1370 (MACHO_SYMBOL_VARIABLE_P): New.
1371 (MACHO_SYMBOL_DEFINED_P):New.
1372 (MACHO_SYMBOL_STATIC_P): New.
1373 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1374 (SYMBOL_FLAG_SUBT_DEP): New.
1375 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1376
1377 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1378
1379 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1380 (msp430_expand_epilogue): Likewise.
1381 * config/msp430/predicates.md: Likewise.
1382 * config/msp430/msp430.md: Likewise.
1383 Replace blocks of 8 spaces with tabs.
1384
1385 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1386
1387 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1388 * config/msp430/msp430.c (msp430_split_addsi): New.
1389 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1390 a block of C code for splitting addsi.
1391
1392 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1393
1394 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1395 ix86_expand_rounddf_32): Reorder functions.
1396 * config/i386/i386-protos.h: Update.
1397
1398 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1399
1400 * config.in: Regenerate.
1401 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1402 Add new "Yx" constraint.
1403 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1404 function.
1405 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1406 prototype.
1407 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1408 code/data region to be selected in the small memory model.
1409 (msp430_section_attr): Don't warn if the "section" and "lower"
1410 attributes are used together.
1411 (msp430_handle_generic_attribute): Likewise.
1412 (msp430_var_in_low_mem): New function.
1413 (TARGET_ENCODE_SECTION_INFO): Define.
1414 (msp430_encode_section_info): New function.
1415 (gen_prefix): Return early in the small memory model.
1416 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1417 ".lower" prefix if -m{code,data}-region=lower have been passed.
1418 (msp430_output_aligned_decl_common): Emit common symbols when
1419 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1420 set.
1421 (TARGET_ASM_FILE_END): Define.
1422 (msp430_file_end): New function.
1423 (msp430_do_not_relax_short_jumps): Allow relaxation when
1424 function will be in the lower region.
1425 (msp430_op_not_in_high_mem): New function.
1426 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1427 the 'X' operand selector.
1428 Clarify comment for 'x' operand selector.
1429 * config/msp430/msp430.h (LINK_SPEC): Propagate
1430 -m{code,data}-region to the linker via spec function
1431 msp430_propagate_region_opt.
1432 (msp430_propagate_region_opt): New prototype.
1433 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1434 (SYMBOL_FLAG_LOW_MEM): Define.
1435 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1436 selector.
1437 (zero_extendqihi2): Fix operand number used by "%X" selector.
1438 (zero_extendqisi2): Likewise.
1439 (zero_extendhisi2): Likewise.
1440 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1441 (movhi): Likewise.
1442 (addqi3): Likewise.
1443 (addhi3): Likewise.
1444 (addsi3): Likewise.
1445 (addhi3_cy): Likewise.
1446 (addchi4_cy): Likewise.
1447 (subqi3): Likewise.
1448 (subhi3): Likewise.
1449 (subsi3): Likewise.
1450 (bic<mode>3): Likewise.
1451 (and<mode>3): Likewise.
1452 (ior<mode>3): Likewise.
1453 (xor<mode>3): Likewise.
1454 (slli_1): Add missing "%X" operand selector.
1455 (slll_1): Likewise.
1456 (slll_2): Likewise.
1457 (srai_1): Likewise.
1458 (sral_1): Likewise.
1459 (sral_2): Likewise.
1460 (srli_1): Likewise.
1461 (srll_1): Likewise.
1462 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1463 selector.
1464 (cbranchhi4_real): Likewise.
1465 (cbranchqi4_reversed): Likewise.
1466 (cbranchhi4_reversed): Likewise.
1467 (*bitbranch<mode>4): Likewise.
1468 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1469 * config/msp430/msp430.opt (mcode-region=): Set default to
1470 MSP430_REGION_LOWER. Improve docstring.
1471 (mdata-region=): Likewise.
1472 (muse-lower-region-prefix): New option.
1473 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1474 mdata-region=none multilib.
1475 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1476 mdata-region=none multilib.
1477 MULTILIB_EXCEPTIONS: Remove.
1478 MULTILIB_REQUIRED: Define.
1479 * configure: Regenerate.
1480 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1481 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1482 * doc/extend.texi: Clarify comment for {upper,lower,either}
1483 function attributes.
1484 Add separate description for "lower" variable attribute.
1485
1486 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1487
1488 PR target/77918
1489 * optabs-tree.c (vcond_icode_p): New function.
1490 (vcond_eq_icode_p): Likewise.
1491 (expand_vec_cond_expr_p): Use vcond_icode_p and
1492 vcond_eq_icode_p.
1493 * optabs.c (can_vcond_compare_p): New function.
1494 * optabs.h (can_vcond_compare_p): Likewise.
1495
1496 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1497
1498 PR target/77918
1499 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1500 caller passes a non-trapping condition.
1501 (is_gimple_condexpr): Allow trapping conditions.
1502 (is_gimple_condexpr_1): New helper function.
1503 (is_gimple_condexpr_for_cond): New function, acts like old
1504 is_gimple_condexpr.
1505 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1506 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1507 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1508 * gimplify.c (gimplify_cond_expr): Use
1509 is_gimple_condexpr_for_cond.
1510 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1511 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1512 VEC_COND_EXPR.
1513 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1514 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1515 is_gimple_condexpr_for_cond, remove pointless tmp check
1516 (forward_propagate_into_cond): Remove pointless tmp check.
1517
1518 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1519
1520 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1521 match that of other gsi_next_* functions. Adjust the comment.
1522 (gsi_start_nonvirtual_phis): New function.
1523 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1524 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1525
1526 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1527
1528 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1529 setjmp situation here. Fix a verb's ending: "the exact variables or
1530 elements for which there are warnings depends" -> "... depend".
1531
1532 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1533
1534 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1535
1536 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1537
1538 * ipa-prop.c (ipa_vr::nonzero_p): New.
1539 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1540 non-zero range.
1541 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1542 * tree-vrp.c (range_has_numeric_bounds_p): New.
1543 (range_int_cst_p): Use range_has_numeric_bounds_p.
1544 (get_range_op_handler): New.
1545 (supported_types_p): New.
1546 (defined_ranges_p): New.
1547 (drop_undefines_to_varying): New.
1548 (range_fold_binary_symbolics_p): New.
1549 (range_fold_unary_symbolics_p): New.
1550 (range_fold_unary_expr): Extract out into above functions.
1551 (range_fold_binary_expr): Same.
1552 (value_range_base::normalize_addresses): New.
1553 (value_range_base::normalize_symbolics): Normalize addresses.
1554 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1555
1556 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1557
1558 * tree-vrp.c (value_range_base::singleton_p): Use
1559 value_range_base::num_pairs instead of vrp_val_is* to check
1560 if a range has one sub-range.
1561
1562 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1563
1564 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1565 DEF is not a true earlyclobber but is tied to a specific input
1566 operand, and so is effectively earlyclobber wrt inputs that have
1567 different values.
1568 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1569
1570 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1571
1572 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1573 (pod_mode): Mark operators likewise.
1574 (scalar_int_mode): Mark non-default constructors and
1575 operators with CONSTEXPR.
1576 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1577 (fixed_size_mode): Likewise.
1578
1579 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1580
1581 PR target/91994
1582 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1583 and wrap the unspec_volatile in a parallel.
1584 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1585 the unspec_volatile.
1586 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1587 unspec_volatile to be wrapped in a parallel.
1588 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1589 (ix86_add_reg_usage_to_vzerouppers): New functions.
1590 (rest_of_handle_insert_vzeroupper): Use them to add register
1591 usage information to the vzeroupper instructions.
1592
1593 2019-10-07 Richard Biener <rguenther@suse.de>
1594
1595 PR tree-optimization/91975
1596 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1597 handle invariants.
1598
1599 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1600
1601 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1602 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1603
1604 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1605
1606 * config/darwin.c (darwin_override_options): Adjust objective-c
1607 ABI version error messages to avoid punctuation and contracted
1608 negations.
1609
1610 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1611
1612 * ipa-inline.c: Fix type; compute size rather than self_size
1613 for size of caller function.
1614
1615 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1616
1617 PR target/59888
1618 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1619 choose const_data section for constants with relocations.
1620 (machopic_select_section): Pass relocation flag to
1621 darwin_rodata_section ().
1622
1623 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR tree-optimization/91734
1626 * generic-match-head.c: Include fold-const-call.h.
1627 * match.pd (sqrt(x) cmp c): Check the boundary value and
1628 in case inexact computation of c*c affects comparison of the boundary,
1629 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1630 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1631 for -frounding-math. For c2, try the next smaller or larger floating
1632 point constant depending on comparison code and if it has the same
1633 sqrt as c2, use it instead of c2.
1634
1635 2019-10-04 Martin Sebor <msebor@redhat.com>
1636
1637 PR middle-end/91977
1638 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1639 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1640 uninitialized objects.
1641
1642 2019-10-04 Martin Sebor <msebor@redhat.com>
1643
1644 * builtins.c (compute_objsize): Add an argument.
1645 * tree-object-size.c (addr_object_size): Same.
1646 (compute_builtin_object_size): Same.
1647 * tree-object-size.h (compute_builtin_object): Same.
1648
1649 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1650
1651 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1652
1653 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1654
1655 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1656
1657 2019-10-04 Martin Jambor <mjambor@suse.cz>
1658
1659 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1660 fntype when switching to calling memcpy instead of memset.
1661
1662 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1663
1664 * hash-table.h (hash_table::empty_slow): Don't assign
1665 size_t values to int variables.
1666
1667 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1668
1669 * expr.c (convert_mode_scalar): Remove shadowing local var.
1670 (emit_block_move): Rename local vars.
1671 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1672 (emit_push_insn): Rename local vars.
1673 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1674 shadowing local vars.
1675 (store_constructor): Remove shadowing local vars. Rename local var.
1676 (store_field, expand_cond_expr_using_cmove,
1677 expand_expr_real_2): Remove shadowing local vars.
1678 (expand_expr_real_1,
1679 do_store_flag): Remove shadowing local vars. Rename local vars.
1680
1681 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1682
1683 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1684
1685 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1686
1687 * genmatch.c (commutate): Rename local var.
1688 (lower_cond): Reuse local var.
1689 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1690 dt_operand::gen, dt_operand::gen_gimple_expr,
1691 dt_simplify::gen): Add a param. Rename generated vars.
1692 (decision_tree::insert_operand,
1693 (capture_info::walk_match, capture_info::walk_result,
1694 capture_info::walk_c_expr): Rename local vars.
1695 (expr::gen_transform): Rename generated vars.
1696 Use snprintf. Rename local vars.
1697 (capture::gen_transform, dt_operand::get_name,
1698 dt_operand::gen_opname): Rename generated vars.
1699 (write_predicate): Adjust call to gen_kids.
1700 (parser::get_internal_capture_id): Rename generated vars.
1701 (parser::parse_expr): Rename local vars.
1702 (parser::parse_if): Remove local var.
1703 (parser::parse_pattern, add_operator): Rename local vars.
1704
1705 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1706
1707 * builtins.def (DEF_C2X_BUILTIN): New macro.
1708 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1709 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1710 (strndup): Use DEF_C2X_BUILTIN.
1711 * coretypes.h (enum function_class): Add function_c2x_misc.
1712
1713 2019-10-04 Maya Rashish <coypu@sdf.org>
1714
1715 * ira-color.c (update_costs_from_allocno): Call
1716 ira_init_register_move_cost_if_necessary.
1717
1718 2019-10-04 Jeff Law <law@redhat.com>
1719
1720 * config/h8300/h8300.md (cpymemsi): Disable.
1721 (movmd, movmd_internal_<mode>, movstr, movsd):
1722 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1723 (movmd splitter, movsd splitter): Likewise.
1724
1725 * range-op.cc (range_tests): Avoid two tests when ints and
1726 shorts are the same size.
1727
1728 2019-10-04 Richard Biener <rguenther@suse.de>
1729
1730 PR lto/91968
1731 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1732 BLOCK_VARS.
1733
1734 2019-10-04 Richard Biener <rguenther@suse.de>
1735
1736 PR tree-optimization/91982
1737 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1738 against EXTRACT_LAST_REDUCTION.
1739 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1740
1741 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1742
1743 * range-op.o (value_range_from_overflowed_bounds): Rename from
1744 adjust_overflow_bound.
1745 (value_range_with_overflow): Rename from
1746 create_range_with_overflow.
1747 (create_possibly_reversed_range): Adjusted for above renames.
1748 (operator_*::wi_fold): Same.
1749 (cross_product_operator::wi_cross_productor): Same.
1750
1751 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1752
1753 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1754 -Wshadow=compatible-local): Fix description.
1755 Add an example where -Wshadow=compatible-local does not
1756 warn.
1757
1758 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1759
1760 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1761
1762 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1763 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1764
1765 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1766
1767 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1768 can_move_by_pieces issue.
1769
1770 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1771
1772 PR target/87243
1773 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1774 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1775 is available and the user has not set one on the command line.
1776
1777 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1778
1779 PR target/91769
1780 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1781 instead of REGNO equality check on addr.reg.
1782
1783 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1784
1785 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1786 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1787 * doc/invoke.texi (inline-heuristics-hint-percent,
1788 inline-heuristics-hint-percent-O2): Document.
1789 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1790 hint attribute.
1791 (can_inline_edge_by_limits_p): Use it.
1792
1793 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1794
1795 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1796 to print CONST_DOUBLEs.
1797
1798 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1799
1800 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1801 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1802 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1803
1804 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1805
1806 * Makefile.in (OBJS): Add range.o and range-op.o.
1807 Remove wide-int-range.o.
1808 * function-tests.c (test_ranges): New.
1809 (function_tests_c_tests): Call test_ranges.
1810 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1811 range_fold_unary_expr instead of extract_range_from_unary_expr.
1812 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1813 * range-op.cc: New file.
1814 * range-op.h: New file.
1815 * range.cc: New file.
1816 * range.h: New file.
1817 * selftest.h (range_tests): New prototype.
1818 * ssa.h: Include range.h.
1819 * tree-vrp.c (value_range_base::value_range_base): New
1820 constructors.
1821 (value_range_base::singleton_p): Do not call
1822 ranges_from_anti_range until sure we will need to.
1823 (value_range_base::type): Rename gcc_assert to
1824 gcc_checking_assert.
1825 (vrp_val_is_max): New argument.
1826 (vrp_val_is_min): Same.
1827 (wide_int_range_set_zero_nonzero_bits): Move from
1828 wide-int-range.cc.
1829 (extract_range_into_wide_ints): Remove.
1830 (extract_range_from_multiplicative_op): Remove.
1831 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1832 from extract_range_from_binary_expr.
1833 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1834 from extract_range_from_binary_expr.
1835 (extract_range_from_binary_expr): Remove.
1836 (normalize_for_range_ops): New.
1837 (range_fold_binary_expr): New.
1838 (range_fold_unary_expr): New.
1839 (value_range_base::num_pairs): New.
1840 (value_range_base::lower_bound): New.
1841 (value_range_base::upper_bound): New.
1842 (value_range_base::upper_bound): New.
1843 (value_range_base::contains_p): New.
1844 (value_range_base::invert): New.
1845 (value_range_base::union_): New.
1846 (value_range_base::intersect): New.
1847 (range_compatible_p): New.
1848 (value_range_base::operator==): New.
1849 (determine_value_range_1): Call range_fold_*expr instead of
1850 extract_range_from_*expr.
1851 * tree-vrp.h (class value_range_base): Add new constructors.
1852 Add methods for union_, intersect, operator==, contains_p,
1853 num_pairs, lower_bound, upper_bound, invert.
1854 (vrp_val_is_min): Add handle_pointers argument.
1855 (vrp_val_is_max): Same.
1856 (extract_range_from_unary_expr): Remove.
1857 (extract_range_from_binary_expr): Remove.
1858 (range_fold_unary_expr): New.
1859 (range_fold_binary_expr): New.
1860 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1861 range_fold_binary_expr instead of extract_range_from_binary_expr.
1862 (vr_values::extract_range_basic): Same.
1863 (vr_values::extract_range_from_unary_expr): Call
1864 range_fold_unary_expr instead of extract_range_from_unary_expr.
1865 * wide-int-range.cc: Remove.
1866 * wide-int-range.h: Remove.
1867
1868 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1869
1870 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1871 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1872 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1873 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1874 macro.
1875
1876 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1877
1878 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1879 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1880 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1881 * glimits.h: Likewise.
1882
1883 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR rtl-optimization/91976
1886 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1887 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1888 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1889
1890 2019-10-02 Martin Sebor <msebor@redhat.com>
1891
1892 PR tree-optimization/80936
1893 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1894
1895 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1896
1897 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1898 instead of reg_class_contents[ALL_REGS].
1899
1900 2019-09-30 Jason Merrill <jason@redhat.com>
1901
1902 Add some hash_map_safe_* functions like vec_safe_*.
1903 * hash-map.h (default_hash_map_size): New variable.
1904 (create_ggc): Use it as default argument.
1905 (hash_map_maybe_create, hash_map_safe_get)
1906 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1907
1908 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1909
1910 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1911 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1912 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1913 (can_inline_edge_by_limits_p): Use it.
1914 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1915 (want_inline_small_function_p): Use O2 bounds.
1916 (edge_badness): LIkewise.
1917 * opts.c (default_options): Add OPT_finline_functions.
1918 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1919 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1920 New parameters.
1921 * doc/invoke.texi (-finline-functions): Update documentation.
1922 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1923 inline-min-speedup-O2): Document.
1924 (early-inlining-insns-O2): Simplify docs.
1925
1926 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1927
1928 PR rtl-optimization/87047
1929 * ifcvt.c (average_cost): New static function. Use it...
1930 (noce_process_if_block): ... here.
1931
1932 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1933
1934 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1935 * config/rs6000/rs6000-string.c (expand_block_move): Add
1936 might_overlap parm.
1937 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1938 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1939
1940 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1941
1942 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1943 (expand_builtin_memcpy): Use might_overlap parm.
1944 (expand_builtin_mempcpy_args): Use might_overlap parm.
1945 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1946 (expand_builtin_memory_copy_args): Add might_overlap parm.
1947 * expr.c (emit_block_move_via_cpymem): Rename to
1948 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1949 or movmem optab as appropriate.
1950 (emit_block_move_hints): Add might_overlap parm, do the right
1951 thing for might_overlap==true.
1952 * expr.h (emit_block_move_hints): Update prototype.
1953
1954 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1955
1956 * tree-eh.h (unsplit_eh_edges): Declare.
1957 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1958 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1959 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1960 (struct store_immediate_info): Add lp_nr field.
1961 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1962 initialize lp_nr with it.
1963 (struct merged_store_group): Add lp_nr and only_constants fields.
1964 (merged_store_group::merged_store_group): Initialize them.
1965 (merged_store_group::can_be_merged_into): Deal with them.
1966 (pass_store_merging): Rename terminate_and_release_chain into
1967 terminate_and_process_chain.
1968 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1969 renaming and remove useless assertions.
1970 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1971 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1972 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1973 instead of always recomputing it and compare lp_nr.
1974 (imm_store_chain_info::output_merged_store): If the group is in an
1975 active EH region, register new stores if they can throw. Moreover,
1976 if the insertion has created new basic blocks, adjust the PHI nodes
1977 of the post landing pad.
1978 (imm_store_chain_info::output_merged_stores): If the original stores
1979 are in an active EH region, deregister them.
1980 (lhs_valid_for_store_merging_p): Prettify.
1981 (adjust_bit_pos): New function extracted from...
1982 (mem_valid_for_store_merging): ...here. Use it for the base address
1983 and also for the offset if it is the addition of a constant.
1984 (lp_nr_for_store): New function.
1985 (pass_store_merging::process_store): Change return type to bool.
1986 Call lp_nr_for_store to initialize the store info. Propagate the
1987 return status of various called functions to the return value.
1988 (store_valid_for_store_merging_p): New predicate.
1989 (enum basic_block_status): New enumeration.
1990 (get_status_for_store_merging): New function.
1991 (pass_store_merging::execute): If the function can throw and catch
1992 non-call exceptions, unsplit the EH edges on entry and clean up the
1993 CFG on exit if something changed. Call get_status_for_store_merging
1994 for every basic block and keep the chains open across basic blocks
1995 when possible. Terminate and process open chains at the end, if any.
1996
1997 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 * reginfo.c (globalize_reg): Fix shadowed variable in
2000 function_abis walk.
2001
2002 2019-10-02 Martin Jambor <mjambor@suse.cz>
2003
2004 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
2005 do not compute some stuff when set.
2006 (cgraph_node::create_edge): Likewise.
2007 (cgraph_node::create_indirect_edge): Renamed last parameter to
2008 coning_p and flipped its meaning, don't even calculate
2009 inline_failed when set.
2010 * cgraph.h (cgraph_node::create_edge): Add new parameter.
2011 (symbol_table::::create_edge): Likewise.
2012 (cgraph_node::create_indirect_edge): Rename last parameter, flip
2013 the default value.
2014 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
2015 call graph edge creating functions.
2016
2017 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2018
2019 PR c++/91222
2020 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
2021 namespace types.
2022
2023 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
2024
2025 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
2026
2027 2019-10-02 Richard Biener <rguenther@suse.de>
2028
2029 * tree-vectorizer.h (vect_transform_reduction): Declare.
2030 * tree-vect-stmts.c (vect_transform_stmt): Use it.
2031 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
2032 stmt transform to ...
2033 (vect_transform_reduction): ... this.
2034
2035 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
2036
2037 * omp-low.c (lower_omp_target): Dereference optional argument
2038 to work with the right pointer.
2039
2040 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
2041
2042 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
2043 false.
2044 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
2045 * langhooks.h (omp_is_optional_argument): New hook.
2046 * omp-general.c (omp_is_optional_argument): New.
2047 * omp-general.h (omp_is_optional_argument): New declaration.
2048 * omp-low.c (lower_omp_target): Create temporary for received value
2049 and take the address for new_var if the original variable was a
2050 DECL_BY_REFERENCE. Use size of referenced object when a
2051 pass-by-reference optional argument used as argument to firstprivate.
2052
2053 2019-10-02 Jakub Jelinek <jakub@redhat.com>
2054
2055 PR tree-optimization/91940
2056 * tree-vect-patterns.c: Include tree-vector-builder.h and
2057 vec-perm-indices.h.
2058 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
2059 unpromoting the argument back to uint16_t, or by converting into a
2060 rotate, or into shifts plus ior.
2061
2062 2019-10-02 Richard Biener <rguenther@suse.de>
2063
2064 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
2065 New.
2066 (vect_transform_cycle_phi): Declare.
2067 * tree-vect-stmts.c (vect_transform_stmt): Call
2068 vect_transform_cycle_phi.
2069 * tree-vect-loop.c (vectorizable_reduction): Split out
2070 PHI transformation stage to ...
2071 (vect_transform_cycle_phi): ... here.
2072
2073 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2074
2075 PR middle-end/91957
2076 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
2077 eliminable registers.
2078 (make_hard_regno_live): Likewise, and don't make them live.
2079
2080 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2081
2082 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
2083 Call pp_emit_prefix.
2084 (layout::print_source_line): Likewise.
2085 (layout::start_annotation_line): Likewise.
2086 (diagnostic_show_locus): Remove call to temporarily clear the
2087 prefix.
2088 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2089 interaction of pp_set_prefix with rulers and fix-it hints.
2090 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2091 prefix when calling diagnostic_show_locus, rather than destroying
2092 it afterwards.
2093 (print_parseable_fixits): Temporarily clear prefix.
2094 * pretty-print.c (pp_format): Save and restore line_length, rather
2095 than assuming it is zero.
2096 (pp_output_formatted_text): Remove assertion that line_length is
2097 zero.
2098
2099 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2100
2101 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2102 Rename to ...
2103 (nonoverlapping_refs_since_match_p): ... this; handle also
2104 ARRAY_REFs.
2105 (alias_stats): Update stats.
2106 (dump_alias_stats): Likewise.
2107 (cheap_array_ref_low_bound): New function.
2108 (aliasing_matching_component_refs_p): Add partial_overlap
2109 argument;
2110 pass it to nonoverlapping_refs_since_match_p.
2111 (aliasing_component_refs_walk): Update call of
2112 aliasing_matching_component_refs_p
2113 (nonoverlapping_array_refs_p): New function.
2114 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2115 indirect_refs_may_alias_p): Update calls of
2116 nonoverlapping_refs_since_match_p.
2117
2118 2019-10-01 Maya Rashish <coypu@sdf.org>
2119
2120 PR target/85401
2121 * ira-color.c (allocno_copy_cost_saving): Call
2122 ira_init_register_move_cost_if_necessary.
2123
2124 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2125
2126 * Makefile.in (gnat_install_lib): New variable.
2127 * configure.ac: Substitute it.
2128 * configure: Regenerate.
2129
2130 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2131
2132 PR lto/91222
2133 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2134 is matched with non-C++ type
2135
2136 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2137
2138 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2139 after local CSE.
2140
2141 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2142
2143 * doc/invoke.texi (early-inlining-insns-O2): Document.
2144 (early-inlining-insns): Update.
2145 * params.def (early-inlining-insns-O2): New bound.
2146 (early-inlining-insns): Update docs.
2147 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2148
2149 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2150
2151 PR target/88562
2152 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2153 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2154 a memory access insn.
2155
2156 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2157
2158 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2159 vpmsumd.
2160
2161 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2162
2163 PR target/77918
2164 * config/s390/s390.c (s390_expand_vec_compare): Use
2165 gen_vec_cmpordered and gen_vec_cmpunordered.
2166 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2167 vec_unordered): Delete.
2168 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2169 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2170 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2171 (vec_cmp<code>): Generic dispatcher.
2172
2173 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2174
2175 PR target/77918
2176 * config/s390/vector.md (V_HW): Add V1TI in order to make
2177 vcond$a$b generate vcondv1tiv1tf.
2178
2179 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2180
2181 PR rtl-optimization/91948
2182 * ira-build.c (ira_create_allocno): Initialize
2183 ALLOCNO_CROSSED_CALLS_ABIS.
2184 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2185 than regno to ira_need_caller_save_p.
2186
2187 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2188
2189 * config/i386/i386-options.c
2190 (ix86_recompute_optlev_based_flags): New, moved out of...
2191 (ix86_option_override_internal): ... this. Call it.
2192 (ix86_override_options_after_change): Call it here too.
2193
2194 PR debug/91507
2195 * dwarf2out.c (override_type_for_decl_p): New.
2196 (gen_variable_die): Use it.
2197
2198 2019-10-01 Richard Biener <rguenther@suse.de>
2199
2200 * tree-vect-loop.c (vectorizable_reduction): Move variables
2201 to where they are used.
2202
2203 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2204
2205 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2206 (build_def_use): Use PC instead of CC0 in a comment.
2207
2208 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2209
2210 * rtl.def (CLOBBER_HIGH): Delete.
2211 * doc/rtl.texi (clobber_high): Remove documentation.
2212 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2213 (reg_is_clobbered_by_clobber_high): Delete.
2214 (gen_hard_reg_clobber_high): Likewise.
2215 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2216 * cfgexpand.c (expand_gimple_stmt): Likewise.
2217 * combine-stack-adj.c (single_set_for_csa): Likewise.
2218 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2219 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2220 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2221 * cse.c (invalidate_reg): Remove clobber_high parameter.
2222 (invalidate): Update call accordingly.
2223 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2224 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2225 (count_reg_usage, insn_live_p): Likewise.
2226 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2227 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2228 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2229 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2230 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2231 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2232 (mark_nonreg_stores_2): Likewise.
2233 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2234 (df_get_call_refs): Likewise.
2235 * dwarf2out.c (mem_loc_descriptor): Likewise.
2236 * emit-rtl.c (verify_rtx_sharing): Likewise.
2237 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2238 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2239 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2240 * genemit.c (gen_exp, gen_insn): Likewise.
2241 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2242 * haifa-sched.c (haifa_classify_rtx): Likewise.
2243 * ira-build.c (create_insn_allocnos): Likewise.
2244 * ira-costs.c (scan_one_insn): Likewise.
2245 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2246 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2247 * jump.c (mark_jump_label_1): Likewise.
2248 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2249 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2250 handling.
2251 (mark_not_eliminable): Likewise.
2252 * lra-lives.c (process_bb_lives): Likewise.
2253 * lra.c (new_insn_reg): Remove clobber_high parameter.
2254 (collect_non_operand_hard_regs): Likewise. Update call to new
2255 insn_reg. Remove CLOBBER_HIGH handling.
2256 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2257 to collect_non_operand_hard_regs.
2258 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2259 Update call to new_insn_reg.
2260 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2261 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2262 (move2add_note_store): Likewise.
2263 * print-rtl.c (print_pattern): Likewise.
2264 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2265 (if_test_bypass_p): Likewise.
2266 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2267 * reginfo.c (reg_scan_mark_refs): Likewise.
2268 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2269 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2270 (forget_old_reloads_1): Likewise.
2271 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2272 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2273 (dbr_schedule): Likewise.
2274 * resource.c (update_live_status, mark_referenced_resources)
2275 (mark_set_resources): Likewise.
2276 * rtl.c (copy_rtx): Likewise.
2277 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2278 (note_pattern_stores): Likewise.
2279 (reg_is_clobbered_by_clobber_high): Delete.
2280 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2281 CLOBBER_HIGH handling.
2282
2283 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2284
2285 PR target/91452
2286 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2287 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2288 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2289 Handle ARM_PCS_TLSDESC.
2290 (aarch64_tlsdesc_abi_id): New function.
2291 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2292 rtx instead of a list of clobbers and clobber_highs.
2293 (tlsdesc_small_<mode>): Update accordingly.
2294
2295 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2296
2297 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2298 extra callee_abi argument.
2299 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2300 Insert a CALLEE_ABI unspec into the call pattern as the second
2301 element in the PARALLEL.
2302 (aarch64_simd_call_p): Delete.
2303 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2304 the new CALLEE_ABI element of the PARALLEL.
2305 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2306 from the function type, if given.
2307 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2308 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2309 when passed the function_arg_info end marker.
2310 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2311 final argument of gen_sibcall.
2312 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2313 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2314 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2315 pattern.
2316 (call_value): Likewise operand 3.
2317 (sibcall): Likewise operand 2. Place the unspec before rather than
2318 after the return.
2319 (sibcall_value): Likewise operand 3.
2320 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2321 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2322 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2323 constraint strings.
2324 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2325
2326 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2327
2328 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2329 choose_hard_reg_mode.
2330 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2331
2332 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2333
2334 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2335 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2336 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2337
2338 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2339
2340 * diagnostic-show-locus.c (line_label::line_label): Initialize
2341 m_has_vbar.
2342 (line_label::comparator): Reverse the sort order by m_state_idx,
2343 so that when the list is walked backwards the labels appear in
2344 order of insertion into the rich_location.
2345 (line_label::m_has_vbar): New field.
2346 (layout::print_any_labels): When dealing with multiple labels at
2347 the same line and column, only print vertical bars for the one
2348 with the highest label_line.
2349 (selftest::test_one_liner_labels): Update test for multiple labels
2350 to expect the labels to be in the order of insertion into the
2351 rich_location. Add a test for many such labels, where the column
2352 numbers are out-of-order relative to the insertion order.
2353
2354 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2355
2356 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2357 (ix86_frame::expensive_count): Likewise.
2358 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2359 of use_fast_prologue_epilogue robust against incidental changes
2360 in function size.
2361
2362 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2363
2364 PR target/77918
2365 * config/s390/vector.md (vec_unordered<mode>): Call
2366 gen_vec_ordered<mode>.
2367
2368 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2369
2370 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2371 New pattern for ASRD.
2372 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2373 * internal-fn.def (IFN_DIV_POW2): New internal function.
2374 * optabs.def (sdiv_pow2_optab): New optab.
2375 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2376 Modify pattern to support new operation.
2377 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2378 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2379 Document new target selector.
2380
2381 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2382
2383 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2384 to test whether we're compiling a vector PCS function and to test
2385 whether the function needs to save a particular register.
2386 Remove the vector PCS handling of df_set_regs_ever_live.
2387 (aarch64_components_for_bb): Use crtl->abi to test whether
2388 the function needs to save a particular register.
2389 (aarch64_process_components): Use crtl->abi to test whether
2390 we're compiling a vector PCS function.
2391 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2392 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2393
2394 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2395
2396 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2397 Delete.
2398 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2399 whether the block calls a function that clobbers more registers
2400 than the current function is allowed to.
2401 (aarch64_use_simple_return_insn_p): Delete.
2402 * config/aarch64/aarch64.md (simple_return): Remove condition.
2403
2404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2405
2406 * function-abi.h (function_abi_aggregator): New class.
2407 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2408 function.
2409 * ira.c (update_equiv_regs_prescan): New function. Call
2410 set_paradoxical_subreg here rather than...
2411 (update_equiv_regs): ...here.
2412 (ira): Call update_equiv_regs_prescan.
2413
2414 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2415
2416 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2417 IN_TARGET_CODE.
2418 (call_used_or_fixed_regs): Likewise.
2419 (call_used_or_fixed_reg_p): Likewise.
2420 * reginfo.c (regs_invalidated_by_call): New macro.
2421
2422 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2423
2424 * shrink-wrap.c: Include function-abi.h.
2425 (requires_stack_frame_p): Use crtl->abi to test whether the
2426 current function can use a register without saving it first.
2427
2428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2429
2430 * sel-sched-ir.h (_def::crosses_call): Replace with...
2431 (_def::crossed_call_abis): ..this new field.
2432 (def_list_add): Take a mask of ABIs instead of a crosses_call
2433 boolean.
2434 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2435 of _def accordingly.
2436 * sel-sched.c: Include function-abi.h.
2437 (hard_regs_data::regs_for_call_clobbered): Delete.
2438 (reg_rename::crosses_call): Replace with...
2439 (reg_rename::crossed_call_abis): ...this new field.
2440 (fur_static_params::crosses_call): Replace with...
2441 (fur_static_params::crossed_call_abis): ...this new field.
2442 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2443 (init_hard_regs_data): Use crtl->abi to test which registers the
2444 current function would need to save before it uses them.
2445 (mark_unavailable_hard_regs): Update handling of call-clobbered
2446 registers, using call_clobbers_in_region to find out which registers
2447 might be call-clobbered (but without taking -fipa-ra into account
2448 for now). Remove separate handling of partially call-clobbered
2449 registers.
2450 (verify_target_availability): Use crossed_call_abis instead of
2451 crosses_call.
2452 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2453 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2454
2455 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2456
2457 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2458 function to test whether a register is fully or partly clobbered.
2459
2460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2461
2462 * rtlanal.c: Include function-abi.h.
2463 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2464 function and clobbers_reg_p to test whether the register
2465 is call-clobbered.
2466 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2467 to get the ABI of the called function and full_reg_clobbers to
2468 get the set of fully call-clobbered registers. Warn about the
2469 pitfalls of using this mode.
2470
2471 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2472
2473 * reload.c: Include function-abi.h.
2474 (find_equiv_reg): Use clobbers_reg_p to test whether either
2475 of the equivalent registers is clobbered by a call.
2476 * reload1.c: Include function-abi.h.
2477 (reg_reloaded_call_part_clobbered): Delete.
2478 (reload): Use crtl->abi to test which registers would need
2479 saving in the prologue before use.
2480 (find_reg): Likewise.
2481 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2482 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2483 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2484
2485 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2486
2487 * regrename.h (du_head::call_clobber_mask): New field.
2488 (du_head::need_caller_save_reg): Replace with...
2489 (du_head::call_abis): ...this new field.
2490 * regrename.c: Include function-abi.h.
2491 (call_clobbered_in_chain_p): New function.
2492 (check_new_reg_p): Use crtl->abi when deciding whether a register
2493 is free for use after RA. Use call_clobbered_in_chain_p to test
2494 whether a candidate register would be clobbered by a call.
2495 (find_rename_reg): Don't add call-clobber conflicts here.
2496 (rename_chains): Check call_abis instead of need_caller_save_reg.
2497 (merge_chains): Update for changes to du_head.
2498 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2499 target. Record the ABI identifier in call_abis and the set of
2500 fully or partially clobbered registers in call_clobber_mask.
2501 Add fully-clobbered registers to hard_conflicts here rather
2502 than in find_rename_reg.
2503 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2504 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2505 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2506 function-abi.h.
2507 * config/c6x/c6x.c: Likewise.
2508
2509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2510
2511 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2512 mode of the register when deciding whether it is no longer
2513 available after a call.
2514
2515 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2516
2517 * recog.c: Include function-abi.h.
2518 (peep2_find_free_register): Use crtl->abi when deciding whether
2519 a register is free for use after RA.
2520
2521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2522
2523 * postreload-gcse.c: Include regs.h and function-abi.h.
2524 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2525 call insn target. Conservatively assume that partially-clobbered
2526 registers are altered.
2527
2528 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2529
2530 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2531 when deciding whether a register is free for use after RA.
2532 (reload_combine): Remove unnecessary use of fixed_reg_set.
2533 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2534 call insn target. Use reg_mode when testing whether a register
2535 is no longer available.
2536
2537 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2538
2539 * target.def (return_call_with_max_clobbers): Delete.
2540 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2541 * doc/tm.texi: Regenerate.
2542 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2543 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2544 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2545 (lra_reg::call_insn): Delete.
2546 * lra.c: Include function-abi.h.
2547 (initialize_lra_reg_info_element): Don't initialize the fields above.
2548 (lra): Use crtl->abi to test whether the current function needs to
2549 save a register in the prologue. Remove special pre-inheritance
2550 lra_create_live_ranges pass for flag_ipa_ra.
2551 * lra-assigns.c: Include function-abi.h
2552 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2553 function needs to save a register in the prologue.
2554 (lra_assign): Assert that registers aren't allocated to a
2555 conflicting register, rather than checking only for overlaps
2556 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2557 and for registers that are not live across a call.
2558 * lra-constraints.c (last_call_for_abi): New variable.
2559 (full_and_partial_call_clobbers): Likewise.
2560 (setup_next_usage_insn): Remove the register from
2561 full_and_partial_call_clobbers.
2562 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2563 whether the register needs a caller save.
2564 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2565 of call_used_or_fixed_regs.
2566 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2567 full_and_partial_call_clobbers.
2568 * lra-lives.c (check_pseudos_live_through_calls): Replace
2569 last_call_used_reg_set and call_insn arguments with an abi argument.
2570 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2571 as the set of conflicting registers.
2572 (calls_have_same_clobbers_p): Delete.
2573 (process_bb_lives): Track the ABI of the last call instead of an
2574 insn/HARD_REG_SET pair. Update calls to
2575 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2576 the set of registers that could be clobbered by an EH edge.
2577 Include partially-clobbered as well as fully-clobbered registers.
2578 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2579 * lra-remat.c: Include function-abi.h.
2580 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2581 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2582 registers and bitmap_view to combine them into dead_regs.
2583 (call_used_input_regno_present_p): Take a function_abi argument
2584 and use it to test whether a register is call-clobbered.
2585 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2586 call insn target. Update tje call to call_used_input_regno_present_p.
2587 (do_remat): Likewise.
2588 (lra_remat): Remove the initialization of call_used_regs_arr_len
2589 and call_used_regs_arr.
2590
2591 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2592
2593 * loop-iv.c: Include regs.h and function-abi.h.
2594 (simplify_using_initial_values): Use insn_callee_abi to get the
2595 ABI of the call insn target. Conservatively assume that
2596 partially-clobbered registers are altered.
2597
2598 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2599
2600 * function-abi.h (call_clobbers_in_region): Declare.
2601 (call_clobbered_in_region_p): New function.
2602 * function-abi.cc (call_clobbers_in_region): Likewise.
2603 * ira-int.h: Include function-abi.h.
2604 (ira_allocno::crossed_calls_abis): New field.
2605 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2606 (ira_need_caller_save_regs): New function.
2607 (ira_need_caller_save_p): Likewise.
2608 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2609 of call_used_or_fixed_regs.
2610 (do_reload): Use crtl->abi to test whether the current function
2611 needs to save a register in the prologue. Count registers that
2612 need to be saved rather than registers that don't.
2613 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2614 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2615 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2616 (propagate_some_info_from_allocno): Likewise.
2617 (copy_info_to_removed_store_destinations): Likewise.
2618 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2619 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2620 (ira_build): Use ira_need_caller_save_regs instead of
2621 call_used_or_fixed_regs.
2622 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2623 whether the current function would need to save a register
2624 before using it.
2625 (calculate_spill_cost): Likewise.
2626 (allocno_reload_assign): Use ira_need_caller_save_regs and
2627 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2628 * ira-conflicts.c (ira_build_conflicts): Use
2629 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2630 as the set of call-clobbered registers. Remove the
2631 call_used_or_fixed_regs mask from the calculation of
2632 temp_hard_reg_set and mask its use instead. Remove special
2633 handling of partially-clobbered registers.
2634 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2635 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2636 calculate the set of conflicting registers for calls that
2637 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2638 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2639 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2640 Use eh_edge_abi to calculate the set of registers that could
2641 be clobbered by an EH edge. Include partially-clobbered as
2642 well as fully-clobbered registers.
2643
2644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * haifa-sched.c: Include function-abi.h.
2647 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2648 the function would need to save a register before using it.
2649
2650 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2651
2652 * gcse.c: Include function-abi.h.
2653 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2654 the call insn target. Invalidate partially call-clobbered
2655 registers as well as fully call-clobbered ones.
2656
2657 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2658
2659 * function.c (aggregate_value_p): Work out which ABI the
2660 function is using before testing which registers are at least
2661 partly preserved by a call.
2662
2663 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * early-remat.c: Include regs.h and function-abi.h.
2666 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2667 registers here.
2668 (early_remat::restrict_remat_for_unavail_regs): New function.
2669 (early_remat::restrict_remat_for_call): Likewise.
2670 (early_remat::process_block): Before calling emit_remat_insns
2671 for a previous call in the block, invalidate any candidates
2672 that would clobber call-preserved registers.
2673 (early_remat::emit_remat_insns_for_block): Likewise for the
2674 final call in a block. Do the same thing for live-in registers
2675 when calling emit_remat_insns at the head of a block.
2676
2677 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2678
2679 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2680 whether the current function needs to save at least part of a
2681 register before using it.
2682 (df_get_exit_block_use_set): Likewise for epilogue restores.
2683
2684 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2685
2686 * df-problems.c: Include regs.h and function-abi.h.
2687 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2688 sparse_invalidated_by_eh and dense_invalidated_by_call to
2689 dense_invalidated_by_eh.
2690 (df_print_bb_index): Update accordingly.
2691 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2692 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2693 that are clobbered by an EH edge. Clobber partially-clobbered
2694 registers as well as fully-clobbered ones.
2695 (df_md_confluence_n): Likewise.
2696 (df_rd_local_compute): Likewise. Update for changes to
2697 df_rd_problem_data.
2698 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2699 of registers that are clobbered by an EH edge. Includde partially-
2700 clobbered registers as well as fully-clobbered ones.
2701
2702 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2703
2704 * cselib.c (cselib_process_insn): If we know what mode a
2705 register was set in, check whether it is clobbered in that
2706 mode by a call. Only fall back to reg_raw_mode if that fails.
2707
2708 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2709
2710 * cse.c: Include regs.h and function-abi.h.
2711 (invalidate_for_call): Take the call insn as an argument.
2712 Use insn_callee_abi to get the ABI of the call and invalidate
2713 partially clobbered registers as well as fully clobbered ones.
2714 (cse_insn): Update call accordingly.
2715
2716 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2717
2718 * combine.c: Include function-abi.h.
2719 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2720 of the target of call insns. Invalidate partially-clobbered
2721 registers as well as fully-clobbered ones.
2722
2723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2724
2725 * cfgloopanal.c: Include regs.h and function-abi.h.
2726 (init_set_costs): Use default_function_abi to test whether
2727 a general register is call-clobbered.
2728
2729 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2732 instead of the call-clobbered sets.
2733
2734 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2735
2736 * caller-save.c (setup_save_areas): Remove redundant |s of
2737 fixed_reg_set.
2738 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2739 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2740 value is useful.
2741
2742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2743
2744 * rtl.h (predefined_function_abi): Declare.
2745 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2746 instead of a boolean call_save flag.
2747 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2748 accordingly.
2749 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2750 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2751 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2752 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2753 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2754 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2755 * reginfo.c (init_reg_modes_target): Likewise.
2756 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2757 instead of a boolean call_save flag.
2758 * targhooks.c: Include function-abi.h.
2759 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2760 using eh_edge_abi to choose the mode.
2761
2762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2763
2764 * target.def (hard_regno_call_part_clobbered): Take an ABI
2765 identifier instead of an rtx_insn.
2766 * doc/tm.texi: Regenerate.
2767 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2768 (hook_bool_uint_uint_mode_false): New function.
2769 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2770 (hook_bool_uint_uint_mode_false): New function.
2771 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2772 Take an ABI identifier instead of an rtx_insn.
2773 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2774 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2775 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2776 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2777 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2778 Likewise.
2779 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2780 * cselib.c: Include function-abi.h.
2781 (cselib_process_insn): Update call to
2782 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2783 to get the appropriate ABI identifier.
2784 * function-abi.cc (predefined_function_abi::initialize): Update call
2785 to targetm.hard_regno_call_part_clobbered.
2786 * ira-conflicts.c (ira_build_conflicts): Likewise.
2787 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2788 * lra-constraints.c: Include function-abi.h.
2789 (need_for_call_save_p): Update call to
2790 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2791 to get the appropriate ABI identifier.
2792 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2793 * regcprop.c (copyprop_hardreg_forward_1): Update call
2794 to targetm.hard_regno_call_part_clobbered.
2795 * reginfo.c (choose_hard_reg_mode): Likewise.
2796 * regrename.c (check_new_reg_p): Likewise.
2797 * reload.c (find_equiv_reg): Likewise.
2798 * reload1.c (emit_reload_insns): Likewise.
2799 * sched-deps.c: Include function-abi.h.
2800 (deps_analyze_insn): Update call to
2801 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2802 to get the appropriate ABI identifier.
2803 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2804 call to targetm.hard_regno_call_part_clobbered.
2805 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2806
2807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2808
2809 * config/i386/i386.c: Include function-abi.h.
2810 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2811 if they preserve some 256-bit or 512-bit SSE registers.
2812
2813 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2814
2815 * target.def (insn_callee_abi): New hook.
2816 (remove_extra_call_preserved_regs): Delete.
2817 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2818 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2819 * doc/tm.texi: Regenerate.
2820 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2821 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2822 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2823 insn argument.
2824 (aarch64_remove_extra_call_preserved_regs): Delete.
2825 (aarch64_insn_callee_abi): New function.
2826 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2827 (TARGET_INSN_CALLEE_ABI): New macro.
2828 * rtl.h (get_call_fndecl): Declare.
2829 (cgraph_rtl_info): Fix formatting. Tweak comment for
2830 function_used_regs. Remove function_used_regs_valid.
2831 * rtlanal.c (get_call_fndecl): Moved from final.c
2832 * function-abi.h (insn_callee_abi): Declare.
2833 (target_function_abi_info): Mention insn_callee_abi.
2834 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2835 way to get_call_reg_set_usage did.
2836 (insn_callee_abi): New function.
2837 * regs.h (get_call_reg_set_usage): Delete.
2838 * final.c: Include function-abi.h.
2839 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2840 function_used_regs before the main loop rather than afterwards.
2841 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2842 if function_used_regs ends up not being useful.
2843 (get_call_fndecl): Move to rtlanal.c
2844 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2845 * caller-save.c: Include function-abi.h.
2846 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2847 instead of get_call_reg_set_usage.
2848 * cfgcleanup.c: Include function-abi.h.
2849 (old_insns_match_p): Use insn_callee_abi instead of
2850 get_call_reg_set_usage.
2851 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2852 a tree.
2853 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2854 function_used_regs.
2855 * df-scan.c: Include function-abi.h.
2856 (df_get_call_refs): Use insn_callee_abi instead of
2857 get_call_reg_set_usage.
2858 * ira-lives.c: Include function-abi.h.
2859 (process_bb_node_lives): Use insn_callee_abi instead of
2860 get_call_reg_set_usage.
2861 * lra-lives.c: Include function-abi.h.
2862 (process_bb_lives): Use insn_callee_abi instead of
2863 get_call_reg_set_usage.
2864 * postreload.c: Include function-abi.h.
2865 (reload_combine): Use insn_callee_abi instead of
2866 get_call_reg_set_usage.
2867 * regcprop.c: Include function-abi.h.
2868 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2869 get_call_reg_set_usage.
2870 * resource.c: Include function-abi.h.
2871 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2872 instead of get_call_reg_set_usage.
2873 * var-tracking.c: Include function-abi.h.
2874 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2875 get_call_reg_set_usage.
2876
2877 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2878
2879 * target.def (fntype_abi): New target hook.
2880 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2881 * doc/tm.texi: Regenerate.
2882 * target.h (predefined_function_abi): Declare.
2883 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2884 if defined.
2885 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2886 * config/aarch64/aarch64.c: Include function-abi.h.
2887 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2888 (TARGET_FNTYPE_ABI): Define.
2889
2890 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2891
2892 * Makefile.in (OBJS): Add function-abi.o.
2893 (GTFILES): Add function-abi.h.
2894 * function-abi.cc: New file.
2895 * function-abi.h: Likewise.
2896 * emit-rtl.h (rtl_data::abi): New field.
2897 * function.c: Include function-abi.h.
2898 (prepare_function_start): Initialize crtl->abi.
2899 * read-rtl-function.c: Include regs.h and function-abi.h.
2900 (read_rtl_function_body): Initialize crtl->abi.
2901 (read_rtl_function_body_from_file_range): Likewise.
2902 * reginfo.c: Include function-abi.h.
2903 (init_reg_sets_1): Initialize default_function_abi.
2904 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2905 when making a register global.
2906 * target-globals.h (this_target_function_abi_info): Declare.
2907 (target_globals::function_abi_info): New field.
2908 (restore_target_globals): Copy it.
2909 * target-globals.c: Include function-abi.h.
2910 (default_target_globals): Initialize the function_abi_info field.
2911 (target_globals): Allocate it.
2912 (save_target_globals): Free it.
2913
2914 2019-09-30 Nick Clifton <nickc@redhat.com>
2915
2916 PR target/85978
2917 * config/frv/frv.c (frv_register_move_cost): Add break statements
2918 to avoid falling through to the wrong cases. Tidy code.
2919
2920 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2921
2922 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2923 For multi-registers modes, test how big each register part is.
2924
2925 2019-09-30 Nick Clifton <nickc@redhat.com>
2926
2927 PR target/59205
2928 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2929 (TARGET_ASM_SELECT_SECTION): Remove definition.
2930 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2931
2932 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2933
2934 * emit-rtl.c (init_raw_REG): New function.
2935 (gen_raw_REG): Use init_raw_REG.
2936 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2937 macros.
2938 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2939 * rtl.h (rtx_init): New function.
2940 (rtx_alloca): New function.
2941 (init_raw_REG): New function.
2942 (alloca_raw_REG): New macro.
2943
2944 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2945
2946 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2947 (pcrel_local_address): Replace pcrel_address predicate, use the
2948 new function address_to_insn_form.
2949 (pcrel_external_address): Replace with new implementation using
2950 address_to_insn_form..
2951 (prefixed_mem_operand): Delete predicate which is now unused.
2952 (pcrel_external_mem_operand): Delete predicate which is now
2953 unused.
2954 * config/rs6000/rs6000-protos.h (enum insn_form): New
2955 enumeration.
2956 (enum non_prefixed_form): New enumeration.
2957 (address_to_insn_form): New declaration.
2958 (prefixed_load_p): New declaration.
2959 (prefixed_store_p): New declaration.
2960 (prefixed_paddi_p): New declaration.
2961 (rs6000_asm_output_opcode): New declaration.
2962 (rs6000_final_prescan_insn): Move declaration and update calling
2963 signature.
2964 (address_is_prefixed): New helper inline function.
2965 * config/rs6000/rs6000.c(print_operand_address): Check for either
2966 PC-relative local symbols or PC-relative external symbols.
2967 (rs6000_emit_move): Support loading PC-relative addresses.
2968 (mode_supports_prefixed_address_p): Delete, no longer used.
2969 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2970 (address_to_insn_form): New function to decode an address format.
2971 (reg_to_non_prefixed): New function to identify what the
2972 non-prefixed memory instruction format is for a register.
2973 (prefixed_load_p): New function to identify prefixed loads.
2974 (prefixed_store_p): New function to identify prefixed stores.
2975 (prefixed_paddi_p): New function to identify prefixed load
2976 immediates.
2977 (next_insn_prefixed_p): New static state variable.
2978 (rs6000_final_prescan_insn): New function to determine if an insn
2979 uses a prefixed instruction.
2980 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2981 prefixed instruction.
2982 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2983 (ASM_OUTPUT_OPCODE): New target hook.
2984 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2985 prefixed instructions.
2986 (prefixed_length): New insn attribute for the size of prefixed
2987 instructions.
2988 (non_prefixed_length): New insn attribute for the size of
2989 non-prefixed instructions.
2990 (pcrel_local_addr): New insn to load up a local PC-relative
2991 address.
2992 (pcrel_extern_addr): New insn to load up an external PC-relative
2993 address.
2994 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2995 GPR and loading a 128-bit floating point type to a GPR.
2996
2997 2019-09-30 Richard Biener <rguenther@suse.de>
2998
2999 * gimple.c (gimple_get_lhs): For PHIs return the result.
3000 * tree-vectorizer.h (vectorizable_live_operation): Also get the
3001 SLP instance as argument.
3002 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
3003 double-reduction PHIs with vectorizable_lc_phi.
3004 (vect_analyze_loop_operations): Adjust.
3005 (vect_create_epilog_for_reduction): Remove all code not dealing
3006 with reduction LC PHI or epilogue generation.
3007 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
3008 for live stmts of reductions.
3009 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
3010 do not handle defs that are not vect_internal_def.
3011 (can_vectorize_live_stmts): Adjust.
3012 (vect_analyze_stmt): When the vectorized stmt defined a value
3013 used on backedges adjust the backedge uses of vectorized PHIs.
3014
3015 2019-09-30 Martin Jambor <mjambor@suse.cz>
3016
3017 PR ipa/91853
3018 * tree-inline.c (force_value_to_type): New function.
3019 (setup_one_parameter): Use force_value_to_type to convert type.
3020 * tree-inline.c (force_value_to_type): Declare.
3021 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
3022 with register type mismatches.
3023
3024 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
3025
3026 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
3027 32-bit PowerPC.
3028 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
3029 * config/rs6000/t-freebsd64: Make use of the above define and build
3030 the 32-bit libraries with secure-plt.
3031
3032 2019-09-30 Jakub Jelinek <jakub@redhat.com>
3033
3034 PR target/91931
3035 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
3036 gen_int_mode instead of GEN_INT.
3037
3038 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
3039
3040 * config/darwin.c (gen_macho_low): Amend to include the mode
3041 argument.
3042 (machopic_indirect_data_reference): Amend gen_macho_low call
3043 to include mode argument
3044 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
3045 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
3046 the macho_high expander and two define_insn entries.
3047
3048 2019-09-29 Jakub Jelinek <jakub@redhat.com>
3049
3050 PR bootstrap/90543
3051 * optc-save-gen.awk: Fix up printing string option differences.
3052
3053 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3054
3055 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
3056 vec_perm cost to 1 for non-Power7 VSX architectures.
3057
3058 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3059
3060 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
3061 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
3062 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
3063
3064 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
3065
3066 * config/darwin.c (gen_macho_high): Amend to include the mode
3067 argument.
3068 (machopic_indirect_data_reference): Amend gen_macho_high call
3069 to include mode argument.
3070 (machopic_legitimize_pic_address): Likewise.
3071 * config/rs6000/rs6000.c (rs6000_legitimize_address):
3072 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
3073 the macho_high expander and two define_insn entries.
3074
3075 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3076
3077 PR target/86805
3078 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3079
3080 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3081
3082 PR target/80672
3083 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3084 std::string::compare instead of std::string::find.
3085
3086 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3087
3088 * configure: Regenerate.
3089
3090 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3091
3092 PR middle-end/91920
3093 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3094 variables as shared.
3095
3096 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3097
3098 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3099 replaces the expander and two define_insn entries.
3100 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3101 call.
3102 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3103
3104 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3105
3106 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3107 (fibonacci_heap::nodes): Likewise.
3108 (fibonacci_heap::min_key): Likewise.
3109 (fibonacci_heap::min): Likewise.
3110
3111 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3112
3113 * cgraph.c (cgraph_node::get_fun): Make const.
3114 * cgraph.h (cgraph_node::get_fun): Likewise.
3115
3116 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3117
3118 PR target/91919
3119 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3120 of SImode MULT.
3121
3122 2019-09-27 Richard Biener <rguenther@suse.de>
3123
3124 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3125 (STMT_VINFO_REDUC_FN): Likewise.
3126 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3127 STMT_VINFO_REDUC_FN.
3128 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3129 for condition reductions.
3130 (vect_create_epilog_for_reduction): Compute all required state
3131 from the stmt to be vectorized.
3132 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3133 invocation and remove then dead code. For single def-use chains
3134 record only a single vector stmt.
3135
3136 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3137
3138 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3139 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3140 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3141 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3142 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3143 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3144 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3145 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3146 (aarch64_general_builtin_rsqrt): Declare.
3147 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3148 New function.
3149 (aarch64_mangle_builtin_type): Rename to...
3150 (aarch64_general_mangle_builtin_type): ...this.
3151 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3152 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3153 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3154 aarch64_general_add_builtin instead of add_builtin_function.
3155 (aarch64_init_builtins): Rename to...
3156 (aarch64_general_init_builtins): ...this. Use
3157 aarch64_general_add_builtin instead of add_builtin_function.
3158 (aarch64_builtin_decl): Rename to...
3159 (aarch64_general_builtin_decl): ...this and remove the unused
3160 arguments.
3161 (aarch64_expand_builtin): Rename to...
3162 (aarch64_general_expand_builtin): ...this and remove the unused
3163 arguments.
3164 (aarch64_builtin_rsqrt): Rename to...
3165 (aarch64_general_builtin_rsqrt): ...this.
3166 (aarch64_fold_builtin): Rename to...
3167 (aarch64_general_fold_builtin): ...this. Take the function subcode
3168 and return type as arguments. Remove the "ignored" argument.
3169 (aarch64_gimple_fold_builtin): Rename to...
3170 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3171 subcode and gcall as arguments, and return the new function call.
3172 * config/aarch64/aarch64.c (aarch64_init_builtins)
3173 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3174 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3175 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3176 instead of aarch64_builtin_rsqrt.
3177 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3178 instead of aarch64_mangle_builtin_type.
3179
3180 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3181
3182 * target.def (check_builtin_call): New target hook.
3183 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3184 * doc/tm.texi: Regenerate.
3185
3186 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3187
3188 PR tree-optimization/91909
3189 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3190 reduc_index parameter. When handling COND_REDUCTION, make sure
3191 that the reduction phi operand is in the correct arm of the
3192 VEC_COND_EXPR.
3193 (vectorizable_reduction): Pass reduc_index to the above.
3194
3195 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3196
3197 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3198 New combine pattern.
3199
3200 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3201
3202 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3203 loop instruction into new basic block before the loop when basic
3204 block that precedes the loop is empty.
3205
3206 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3207
3208 * function.c (gimplify_parameters): Use build_clobber function.
3209 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3210 * tree-inline.c (expand_call_inline): Likewise.
3211 * tree-sra.c (clobber_subtree): Likewise.
3212 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3213 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3214 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3215 lower_omp_target): Likewise.
3216 * omp-expand.c (expand_omp_for_generic): Likewise.
3217 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3218
3219 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3220
3221 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3222 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3223 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3224 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3225 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3226 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3227 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3228 LD_ELEMREV_V16QI): Use the PURE attribute.
3229
3230 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3231
3232 * config/rs6000/darwin.md: Replace the expanders for
3233 load_macho_picbase and reload_macho_picbase with use of '@'
3234 and <mode> in their respective define_insns.
3235 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3236 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3237 Pmode to gen_load_macho_picbase.
3238 * config/rs6000/rs6000.md: Likewise.
3239
3240 2019-09-25 Richard Biener <rguenther@suse.de>
3241
3242 PR tree-optimization/91896
3243 * tree-vect-loop.c (vectorizable_reduction): The single
3244 def-use cycle optimization cannot apply when there's more
3245 than one pattern stmt involved.
3246
3247 2019-09-26 Richard Biener <rguenther@suse.de>
3248
3249 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3250 loop-closed PHIs that are vect_internal_def.
3251 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3252 Simplify.
3253 (vectorizable_lc_phi): New.
3254 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3255 (vect_transform_stmt): Likewise.
3256 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3257 (vectorizable_lc_phi): Declare.
3258
3259 2019-09-26 Richard Biener <rguenther@suse.de>
3260
3261 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3262 vectorizable_reduction for vect_double_reduction_def.
3263 (vect_transform_loop): Likewise.
3264 (vect_create_epilog_for_reduction): Move double-reduction
3265 PHI creation and preheader argument setting of PHIs ...
3266 (vectorizable_reduction): ... here. Also process
3267 vect_double_reduction_def PHIs, creating the vectorized
3268 PHI nodes, remembering the scalar adjustment computed for
3269 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3270 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3271 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3272 Initialize STMT_VINFO_REDUC_CODE.
3273 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3274 (_stmt_vec_info::reduc_code): Likewise.
3275 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3276 (STMT_VINFO_REDUC_CODE): Likewise.
3277
3278 2019-09-26 Matt Turner <mattst88@gmail.com>
3279
3280 PR driver/69471
3281 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3282 (mtune=): Add Negative(mtune=).
3283 (mcpu=): Add Negative(mcpu=).
3284 * config/arm/arm.opt: Likewise.
3285
3286 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3287
3288 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3289 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3290 Define.
3291 * config/arm/arm_acle.h: Define builtins for the above.
3292 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3293 (simd32_op): Handle the above.
3294 * config/arm/unspecs.md: Define unspecs for the above.
3295
3296 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3297
3298 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3299 (arm_<sup>xtb16): Likewise.
3300 (arm_usada8): Likewise.
3301 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3302 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3303 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3304 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3305 __sxtb16, __uxtab16, __uxtb16): Define.
3306 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3307 * config/arm/unspecs.md: Define unspecs for the above.
3308 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3309 (USXTB16): Likewise.
3310 (simd32_op): New int_attribute.
3311 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3312 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3313
3314 2019-09-26 Martin Jambor <mjambor@suse.cz>
3315
3316 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3317 internal_error.
3318
3319 2019-09-26 Martin Jambor <mjambor@suse.cz>
3320
3321 * ipa-sra.c (process_scan_results): Fix continue condition.
3322
3323 2019-09-26 Martin Liska <mliska@suse.cz>
3324
3325 PR tree-optimization/91885
3326 * tree-vectorizer.c (try_vectorize_loop_1): Add
3327 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3328
3329 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3330
3331 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3332 aarch64_plus_immediate rather than aarch64_uimm12_shift
3333 to test for valid PLUS immediates.
3334
3335 2019-09-25 Martin Jambor <mjambor@suse.cz>
3336
3337 * tree-sra.c (no_accesses_p): Remove.
3338 (no_accesses_representant): Likewise.
3339
3340 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3341
3342 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3343 consistenly.
3344 (vaba_s16): Likewise.
3345 (vaba_s32): Likewise.
3346 (vaba_u8): Likewise.
3347 (vaba_u16): Likewise.
3348 (vaba_u32): Likewise.
3349 (vabal_high_s8): Likewise.
3350 (vabal_high_s16): Likewise.
3351 (vabal_high_s32): Likewise.
3352 (vabal_high_u8): Likewise.
3353 (vabal_high_u16): Likewise.
3354 (vabal_high_u32): Likewise.
3355 (vabal_s8): Likewise.
3356 (vabal_s16): Likewise.
3357 (vabal_s32): Likewise.
3358 (vabal_u8): Likewise.
3359 (vabal_u16): Likewise.
3360 (vabal_u32): Likewise.
3361 (vabaq_s8): Likewise.
3362 (vabaq_s16): Likewise.
3363 (vabaq_s32): Likewise.
3364 (vabaq_u8): Likewise.
3365 (vabaq_u16): Likewise.
3366 (vabaq_u32): Likewise.
3367 (vabd_s8): Likewise.
3368 (vabd_s16): Likewise.
3369 (vabd_s32): Likewise.
3370 (vabd_u8): Likewise.
3371 (vabd_u16): Likewise.
3372 (vabd_u32): Likewise.
3373 (vabdl_high_s8): Likewise.
3374 (vabdl_high_s16): Likewise.
3375 (vabdl_high_s32): Likewise.
3376 (vabdl_high_u8): Likewise.
3377 (vabdl_high_u16): Likewise.
3378 (vabdl_high_u32): Likewise.
3379 (vabdl_s8): Likewise.
3380 (vabdl_s16): Likewise.
3381 (vabdl_s32): Likewise.
3382 (vabdl_u8): Likewise.
3383 (vabdl_u16): Likewise.
3384 (vabdl_u32): Likewise.
3385 (vabdq_s8): Likewise.
3386 (vabdq_s16): Likewise.
3387 (vabdq_s32): Likewise.
3388 (vabdq_u8): Likewise.
3389 (vabdq_u16): Likewise.
3390 (vabdq_u32): Likewise.
3391 (vaddlv_s8): Likewise.
3392 (vaddlv_s16): Likewise.
3393 (vaddlv_u8): Likewise.
3394 (vaddlv_u16): Likewise.
3395 (vaddlvq_s8): Likewise.
3396 (vaddlvq_s16): Likewise.
3397 (vaddlvq_s32): Likewise.
3398 (vaddlvq_u8): Likewise.
3399 (vaddlvq_u16): Likewise.
3400 (vaddlvq_u32): Likewise.
3401 (vcvtx_f32_f64): Likewise.
3402 (vcvtx_high_f32_f64): Likewise.
3403 (vcvtxd_f32_f64): Likewise.
3404 (vmla_n_f32): Likewise.
3405 (vmla_n_s16): Likewise.
3406 (vmla_n_s32): Likewise.
3407 (vmla_n_u16): Likewise.
3408 (vmla_n_u32): Likewise.
3409 (vmla_s8): Likewise.
3410 (vmla_s16): Likewise.
3411 (vmla_s32): Likewise.
3412 (vmla_u8): Likewise.
3413 (vmla_u16): Likewise.
3414 (vmla_u32): Likewise.
3415 (vmlal_high_n_s16): Likewise.
3416 (vmlal_high_n_s32): Likewise.
3417 (vmlal_high_n_u16): Likewise.
3418 (vmlal_high_n_u32): Likewise.
3419 (vmlal_high_s8): Likewise.
3420 (vmlal_high_s16): Likewise.
3421 (vmlal_high_s32): Likewise.
3422 (vmlal_high_u8): Likewise.
3423 (vmlal_high_u16): Likewise.
3424 (vmlal_high_u32): Likewise.
3425 (vmlal_n_s16): Likewise.
3426 (vmlal_n_s32): Likewise.
3427 (vmlal_n_u16): Likewise.
3428 (vmlal_n_u32): Likewise.
3429 (vmlal_s8): Likewise.
3430 (vmlal_s16): Likewise.
3431 (vmlal_s32): Likewise.
3432 (vmlal_u8): Likewise.
3433 (vmlal_u16): Likewise.
3434 (vmlal_u32): Likewise.
3435 (vmlaq_n_f32): Likewise.
3436 (vmlaq_n_s16): Likewise.
3437 (vmlaq_n_s32): Likewise.
3438 (vmlaq_n_u16): Likewise.
3439 (vmlaq_n_u32): Likewise.
3440 (vmlaq_s8): Likewise.
3441 (vmlaq_s16): Likewise.
3442 (vmlaq_s32): Likewise.
3443 (vmlaq_u8): Likewise.
3444 (vmlaq_u16): Likewise.
3445 (vmlaq_u32): Likewise.
3446 (vmls_n_f32): Likewise.
3447 (vmls_n_s16): Likewise.
3448 (vmls_n_s32): Likewise.
3449 (vmls_n_u16): Likewise.
3450 (vmls_n_u32): Likewise.
3451 (vmls_s8): Likewise.
3452 (vmls_s16): Likewise.
3453 (vmls_s32): Likewise.
3454 (vmls_u8): Likewise.
3455 (vmls_u16): Likewise.
3456 (vmls_u32): Likewise.
3457 (vmlsl_high_n_s16): Likewise.
3458 (vmlsl_high_n_s32): Likewise.
3459 (vmlsl_high_n_u16): Likewise.
3460 (vmlsl_high_n_u32): Likewise.
3461 (vmlsl_high_s8): Likewise.
3462 (vmlsl_high_s16): Likewise.
3463 (vmlsl_high_s32): Likewise.
3464 (vmlsl_high_u8): Likewise.
3465 (vmlsl_high_u16): Likewise.
3466 (vmlsl_high_u32): Likewise.
3467 (vmlsl_n_s16): Likewise.
3468 (vmlsl_n_s32): Likewise.
3469 (vmlsl_n_u16): Likewise.
3470 (vmlsl_n_u32): Likewise.
3471 (vmlsl_s8): Likewise.
3472 (vmlsl_s16): Likewise.
3473 (vmlsl_s32): Likewise.
3474 (vmlsl_u8): Likewise.
3475 (vmlsl_u16): Likewise.
3476 (vmlsl_u32): Likewise.
3477 (vmlsq_n_f32): Likewise.
3478 (vmlsq_n_s16): Likewise.
3479 (vmlsq_n_s32): Likewise.
3480 (vmlsq_n_u16): Likewise.
3481 (vmlsq_n_u32): Likewise.
3482 (vmlsq_s8): Likewise.
3483 (vmlsq_s16): Likewise.
3484 (vmlsq_s32): Likewise.
3485 (vmlsq_u8): Likewise.
3486 (vmlsq_u16): Likewise.
3487 (vmlsq_u32): Likewise.
3488 (vmovl_high_s8): Likewise.
3489 (vmovl_high_s16): Likewise.
3490 (vmovl_high_s32): Likewise.
3491 (vmovl_high_u8): Likewise.
3492 (vmovl_high_u16): Likewise.
3493 (vmovl_high_u32): Likewise.
3494 (vmovl_s8): Likewise.
3495 (vmovl_s16): Likewise.
3496 (vmovl_s32): Likewise.
3497 (vmovl_u8): Likewise.
3498 (vmovl_u16): Likewise.
3499 (vmovl_u32): Likewise.
3500 (vmovn_high_s16): Likewise.
3501 (vmovn_high_s32): Likewise.
3502 (vmovn_high_s64): Likewise.
3503 (vmovn_high_u16): Likewise.
3504 (vmovn_high_u32): Likewise.
3505 (vmovn_high_u64): Likewise.
3506 (vmovn_s16): Likewise.
3507 (vmovn_s32): Likewise.
3508 (vmovn_s64): Likewise.
3509 (vmovn_u16): Likewise.
3510 (vmovn_u32): Likewise.
3511 (vmovn_u64): Likewise.
3512 (vmull_high_n_s16): Likewise.
3513 (vmull_high_n_s32): Likewise.
3514 (vmull_high_n_u16): Likewise.
3515 (vmull_high_n_u32): Likewise.
3516 (vmull_high_p8): Likewise.
3517 (vmull_high_s8): Likewise.
3518 (vmull_high_s16): Likewise.
3519 (vmull_high_s32): Likewise.
3520 (vmull_high_u8): Likewise.
3521 (vmull_high_u16): Likewise.
3522 (vmull_high_u32): Likewise.
3523 (vmull_n_s16): Likewise.
3524 (vmull_n_s32): Likewise.
3525 (vmull_n_u16): Likewise.
3526 (vmull_n_u32): Likewise.
3527 (vmull_p8): Likewise.
3528 (vmull_s8): Likewise.
3529 (vmull_s16): Likewise.
3530 (vmull_s32): Likewise.
3531 (vmull_u8): Likewise.
3532 (vmull_u16): Likewise.
3533 (vmull_u32): Likewise.
3534 (vpadal_s8): Likewise.
3535 (vpadal_s16): Likewise.
3536 (vpadal_s32): Likewise.
3537 (vpadal_u8): Likewise.
3538 (vpadal_u16): Likewise.
3539 (vpadal_u32): Likewise.
3540 (vpadalq_s8): Likewise.
3541 (vpadalq_s16): Likewise.
3542 (vpadalq_s32): Likewise.
3543 (vpadalq_u8): Likewise.
3544 (vpadalq_u16): Likewise.
3545 (vpadalq_u32): Likewise.
3546 (vpaddl_s8): Likewise.
3547 (vpaddl_s16): Likewise.
3548 (vpaddl_s32): Likewise.
3549 (vpaddl_u8): Likewise.
3550 (vpaddl_u16): Likewise.
3551 (vpaddl_u32): Likewise.
3552 (vpaddlq_s8): Likewise.
3553 (vpaddlq_s16): Likewise.
3554 (vpaddlq_s32): Likewise.
3555 (vpaddlq_u8): Likewise.
3556 (vpaddlq_u16): Likewise.
3557 (vpaddlq_u32): Likewise.
3558 (vpaddq_s8): Likewise.
3559 (vpaddq_s16): Likewise.
3560 (vpaddq_s32): Likewise.
3561 (vpaddq_s64): Likewise.
3562 (vpaddq_u8): Likewise.
3563 (vpaddq_u16): Likewise.
3564 (vpaddq_u32): Likewise.
3565 (vpaddq_u64): Likewise.
3566 (vqdmulh_n_s16): Likewise.
3567 (vqdmulh_n_s32): Likewise.
3568 (vqdmulhq_n_s16): Likewise.
3569 (vqdmulhq_n_s32): Likewise.
3570 (vqmovn_high_s16): Likewise.
3571 (vqmovn_high_s32): Likewise.
3572 (vqmovn_high_s64): Likewise.
3573 (vqmovn_high_u16): Likewise.
3574 (vqmovn_high_u32): Likewise.
3575 (vqmovn_high_u64): Likewise.
3576 (vqmovun_high_s16): Likewise.
3577 (vqmovun_high_s32): Likewise.
3578 (vqmovun_high_s64): Likewise.
3579 (vqrdmulh_n_s16): Likewise.
3580 (vqrdmulh_n_s32): Likewise.
3581 (vqrdmulhq_n_s16): Likewise.
3582 (vqrdmulhq_n_s32): Likewise.
3583 (vrsqrte_u32): Likewise.
3584 (vrsqrteq_u32): Likewise.
3585 (vtst_p8): Likewise.
3586 (vtst_p16): Likewise.
3587 (vtst_p64): Likewise.
3588 (vtstq_p8): Likewise.
3589 (vtstq_p16): Likewise.
3590 (vtstq_p64): Likewise.
3591 (vaddlv_s32): Likewise.
3592 (vaddlv_u32): Likewise.
3593 (vqtbl1_p8): Likewise.
3594 (vqtbl1_s8): Likewise.
3595 (vqtbl1_u8): Likewise.
3596 (vqtbl1q_p8): Likewise.
3597 (vqtbl1q_s8): Likewise.
3598 (vqtbl1q_u8): Likewise.
3599 (vqtbx1_s8): Likewise.
3600 (vqtbx1_u8): Likewise.
3601 (vqtbx1_p8): Likewise.
3602 (vqtbx1q_s8): Likewise.
3603 (vqtbx1q_u8): Likewise.
3604 (vqtbx1q_p8): Likewise.
3605 (vtbl1_s8): Likewise.
3606 (vtbl1_u8): Likewise.
3607 (vtbl1_p8): Likewise.
3608 (vtbl2_s8): Likewise.
3609 (vtbl2_u8): Likewise.
3610 (vtbl2_p8): Likewise.
3611 (vtbl3_s8): Likewise.
3612 (vtbl3_u8): Likewise.
3613 (vtbl3_p8): Likewise.
3614 (vtbl4_s8): Likewise.
3615 (vtbl4_u8): Likewise.
3616 (vtbl4_p8): Likewise.
3617 (vtbx2_s8): Likewise.
3618 (vtbx2_u8): Likewise.
3619 (vtbx2_p8): Likewise.
3620 (vld1_f32): Likewise.
3621 (vld1_f64): Likewise.
3622 (vld1_p8): Likewise.
3623 (vld1_p16): Likewise.
3624 (vld1_p64): Likewise.
3625 (vld1_s8): Likewise.
3626 (vld1_s16): Likewise.
3627 (vld1_s32): Likewise.
3628 (vld1_s64): Likewise.
3629 (vld1_u8): Likewise.
3630 (vld1_u16): Likewise.
3631 (vld1_u32): Likewise.
3632 (vld1_u64): Likewise.
3633 (vld1q_f32): Likewise.
3634 (vld1q_f64): Likewise.
3635 (vld1q_p8): Likewise.
3636 (vld1q_p16): Likewise.
3637 (vld1q_p64): Likewise.
3638 (vld1q_s8): Likewise.
3639 (vld1q_s16): Likewise.
3640 (vld1q_s32): Likewise.
3641 (vld1q_s64): Likewise.
3642 (vld1q_u8): Likewise.
3643 (vld1q_u16): Likewise.
3644 (vld1q_u32): Likewise.
3645 (vld1q_u64): Likewise.
3646 (vpmax_s8): Likewise.
3647 (vpmax_s16): Likewise.
3648 (vpmax_s32): Likewise.
3649 (vpmax_u8): Likewise.
3650 (vpmax_u16): Likewise.
3651 (vpmax_u32): Likewise.
3652 (vpmaxq_s8): Likewise.
3653 (vpmaxq_s16): Likewise.
3654 (vpmaxq_s32): Likewise.
3655 (vpmaxq_u8): Likewise.
3656 (vpmaxq_u16): Likewise.
3657 (vpmaxq_u32): Likewise.
3658 (vpmax_f32): Likewise.
3659 (vpmaxq_f32): Likewise.
3660 (vpmaxq_f64): Likewise.
3661 (vpmaxqd_f64): Likewise.
3662 (vpmaxs_f32): Likewise.
3663 (vpmaxnm_f32): Likewise.
3664 (vpmaxnmq_f32): Likewise.
3665 (vpmaxnmq_f64): Likewise.
3666 (vpmaxnmqd_f64): Likewise.
3667 (vpmaxnms_f32): Likewise.
3668 (vpmin_s8): Likewise.
3669 (vpmin_s16): Likewise.
3670 (vpmin_s32): Likewise.
3671 (vpmin_u8): Likewise.
3672 (vpmin_u16): Likewise.
3673 (vpmin_u32): Likewise.
3674 (vpminq_s8): Likewise.
3675 (vpminq_s16): Likewise.
3676 (vpminq_s32): Likewise.
3677 (vpminq_u8): Likewise.
3678 (vpminq_u16): Likewise.
3679 (vpminq_u32): Likewise.
3680 (vpmin_f32): Likewise.
3681 (vpminq_f32): Likewise.
3682 (vpminq_f64): Likewise.
3683 (vpminqd_f64): Likewise.
3684 (vpmins_f32): Likewise.
3685 (vpminnm_f32): Likewise.
3686 (vpminnmq_f32): Likewise.
3687 (vpminnmq_f64): Likewise.
3688 (vpminnmqd_f64): Likewise.
3689 (vpminnms_f32): Likewise.
3690 (vmla_f32): Likewise.
3691 (vmlaq_f32): Likewise.
3692 (vmlaq_f64): Likewise.
3693 (vmls_f32): Likewise.
3694 (vmlsq_f32): Likewise.
3695 (vmlsq_f64): Likewise.
3696 (vqtbl2_s8): Likewise.
3697 (vqtbl2_u8): Likewise.
3698 (vqtbl2_p8): Likewise.
3699 (vqtbl2q_s8): Likewise.
3700 (vqtbl2q_u8): Likewise.
3701 (vqtbl2q_p8): Likewise.
3702 (vqtbl3_s8): Likewise.
3703 (vqtbl3_u8): Likewise.
3704 (vqtbl3_p8): Likewise.
3705 (vqtbl3q_s8): Likewise.
3706 (vqtbl3q_u8): Likewise.
3707 (vqtbl3q_p8): Likewise.
3708 (vqtbl4_s8): Likewise.
3709 (vqtbl4_u8): Likewise.
3710 (vqtbl4_p8): Likewise.
3711 (vqtbl4q_s8): Likewise.
3712 (vqtbl4q_u8): Likewise.
3713 (vqtbl4q_p8): Likewise.
3714 (vqtbx2_s8): Likewise.
3715 (vqtbx2_u8): Likewise.
3716 (vqtbx2_p8): Likewise.
3717 (vqtbx2q_s8): Likewise.
3718 (vqtbx2q_u8): Likewise.
3719 (vqtbx2q_p8): Likewise.
3720 (vqtbx3_s8): Likewise.
3721 (vqtbx3_u8): Likewise.
3722 (vqtbx3_p8): Likewise.
3723 (vqtbx3q_s8): Likewise.
3724 (vqtbx3q_u8): Likewise.
3725 (vqtbx3q_p8): Likewise.
3726 (vqtbx4_s8): Likewise.
3727 (vqtbx4_u8): Likewise.
3728 (vqtbx4_p8): Likewise.
3729 (vqtbx4q_s8): Likewise.
3730 (vqtbx4q_u8): Likewise.
3731 (vqtbx4q_p8): Likewise.
3732 (vrev16_p8): Likewise.
3733 (vrev16_s8): Likewise.
3734 (vrev16_u8): Likewise.
3735 (vrev16q_p8): Likewise.
3736 (vrev16q_s8): Likewise.
3737 (vrev16q_u8): Likewise.
3738 (vrev32_p8): Likewise.
3739 (vrev32_p16): Likewise.
3740 (vrev32_s8): Likewise.
3741 (vrev32_s16): Likewise.
3742 (vrev32_u8): Likewise.
3743 (vrev32_u16): Likewise.
3744 (vrev32q_p8): Likewise.
3745 (vrev32q_p16): Likewise.
3746 (vrev32q_s8): Likewise.
3747 (vrev32q_s16): Likewise.
3748 (vrev32q_u8): Likewise.
3749 (vrev32q_u16): Likewise.
3750 (vrev64_f32): Likewise.
3751 (vrev64_p8): Likewise.
3752 (vrev64_p16): Likewise.
3753 (vrev64_s8): Likewise.
3754 (vrev64_s16): Likewise.
3755 (vrev64_s32): Likewise.
3756 (vrev64_u8): Likewise.
3757 (vrev64_u16): Likewise.
3758 (vrev64_u32): Likewise.
3759 (vrev64q_f32): Likewise.
3760 (vrev64q_p8): Likewise.
3761 (vrev64q_p16): Likewise.
3762 (vrev64q_s8): Likewise.
3763 (vrev64q_s16): Likewise.
3764 (vrev64q_s32): Likewise.
3765 (vrev64q_u8): Likewise.
3766 (vrev64q_u16): Likewise.
3767 (vrev64q_u32): Likewise.
3768 (vsha1cq_u32): Likewise.
3769 (vsha1mq_u32): Likewise.
3770 (vsha1pq_u32): Likewise.
3771 (vsha1h_u32): Likewise.
3772 (vsha1su0q_u32): Likewise.
3773 (vsha1su1q_u32): Likewise.
3774 (vsha256hq_u32): Likewise.
3775 (vsha256h2q_u32): Likewise.
3776 (vsha256su0q_u32): Likewise.
3777 (vsha256su1q_u32): Likewise.
3778 (vmull_p64): Likewise.
3779 (vmull_high_p64): Likewise.
3780 (vsqrt_f32): Likewise.
3781 (vsqrtq_f32): Likewise.
3782 (vsqrt_f64): Likewise.
3783 (vsqrtq_f64): Likewise.
3784 (vst1_f32): Likewise.
3785 (vst1_f64): Likewise.
3786 (vst1_p8): Likewise.
3787 (vst1_p16): Likewise.
3788 (vst1_p64): Likewise.
3789 (vst1_s8): Likewise.
3790 (vst1_s16): Likewise.
3791 (vst1_s32): Likewise.
3792 (vst1_s64): Likewise.
3793 (vst1_u8): Likewise.
3794 (vst1_u16): Likewise.
3795 (vst1_u32): Likewise.
3796 (vst1_u64): Likewise.
3797 (vst1q_f32): Likewise.
3798 (vst1q_f64): Likewise.
3799 (vst1q_p8): Likewise.
3800 (vst1q_p16): Likewise.
3801 (vst1q_p64): Likewise.
3802 (vst1q_s8): Likewise.
3803 (vst1q_s16): Likewise.
3804 (vst1q_s32): Likewise.
3805 (vst1q_s64): Likewise.
3806 (vst1q_u8): Likewise.
3807 (vst1q_u16): Likewise.
3808 (vst1q_u32): Likewise.
3809 (vst1q_u64): Likewise.
3810 (vst1_s64_x2): Likewise.
3811 (vst1_u64_x2): Likewise.
3812 (vst1_f64_x2): Likewise.
3813 (vst1_s8_x2): Likewise.
3814 (vst1_p8_x2): Likewise.
3815 (vst1_s16_x2): Likewise.
3816 (vst1_p16_x2): Likewise.
3817 (vst1_s32_x2): Likewise.
3818 (vst1_u8_x2): Likewise.
3819 (vst1_u16_x2): Likewise.
3820 (vst1_u32_x2): Likewise.
3821 (vst1_f16_x2): Likewise.
3822 (vst1_f32_x2): Likewise.
3823 (vst1_p64_x2): Likewise.
3824 (vst1q_s8_x2): Likewise.
3825 (vst1q_p8_x2): Likewise.
3826 (vst1q_s16_x2): Likewise.
3827 (vst1q_p16_x2): Likewise.
3828 (vst1q_s32_x2): Likewise.
3829 (vst1q_s64_x2): Likewise.
3830 (vst1q_u8_x2): Likewise.
3831 (vst1q_u16_x2): Likewise.
3832 (vst1q_u32_x2): Likewise.
3833 (vst1q_u64_x2): Likewise.
3834 (vst1q_f16_x2): Likewise.
3835 (vst1q_f32_x2): Likewise.
3836 (vst1q_f64_x2): Likewise.
3837 (vst1q_p64_x2): Likewise.
3838 (vst1_s64_x3): Likewise.
3839 (vst1_u64_x3): Likewise.
3840 (vst1_f64_x3): Likewise.
3841 (vst1_s8_x3): Likewise.
3842 (vst1_p8_x3): Likewise.
3843 (vst1_s16_x3): Likewise.
3844 (vst1_p16_x3): Likewise.
3845 (vst1_s32_x3): Likewise.
3846 (vst1_u8_x3): Likewise.
3847 (vst1_u16_x3): Likewise.
3848 (vst1_u32_x3): Likewise.
3849 (vst1_f16_x3): Likewise.
3850 (vst1_f32_x3): Likewise.
3851 (vst1_p64_x3): Likewise.
3852 (vst1q_s8_x3): Likewise.
3853 (vst1q_p8_x3): Likewise.
3854 (vst1q_s16_x3): Likewise.
3855 (vst1q_p16_x3): Likewise.
3856 (vst1q_s32_x3): Likewise.
3857 (vst1q_s64_x3): Likewise.
3858 (vst1q_u8_x3): Likewise.
3859 (vst1q_u16_x3): Likewise.
3860 (vst1q_u32_x3): Likewise.
3861 (vst1q_u64_x3): Likewise.
3862 (vst1q_f16_x3): Likewise.
3863 (vst1q_f32_x3): Likewise.
3864 (vst1q_f64_x3): Likewise.
3865 (vst1q_p64_x3): Likewise.
3866 (vst2_s64): Likewise.
3867 (vst2_u64): Likewise.
3868 (vst2_f64): Likewise.
3869 (vst2_s8): Likewise.
3870 (vst2_p8): Likewise.
3871 (vst2_s16): Likewise.
3872 (vst2_p16): Likewise.
3873 (vst2_s32): Likewise.
3874 (vst2_u8): Likewise.
3875 (vst2_u16): Likewise.
3876 (vst2_u32): Likewise.
3877 (vst2_f16): Likewise.
3878 (vst2_f32): Likewise.
3879 (vst2_p64): Likewise.
3880 (vst2q_s8): Likewise.
3881 (vst2q_p8): Likewise.
3882 (vst2q_s16): Likewise.
3883 (vst2q_p16): Likewise.
3884 (vst2q_s32): Likewise.
3885 (vst2q_s64): Likewise.
3886 (vst2q_u8): Likewise.
3887 (vst2q_u16): Likewise.
3888 (vst2q_u32): Likewise.
3889 (vst2q_u64): Likewise.
3890 (vst2q_f16): Likewise.
3891 (vst2q_f32): Likewise.
3892 (vst2q_f64): Likewise.
3893 (vst2q_p64): Likewise.
3894 (vst3_s64): Likewise.
3895 (vst3_u64): Likewise.
3896 (vst3_f64): Likewise.
3897 (vst3_s8): Likewise.
3898 (vst3_p8): Likewise.
3899 (vst3_s16): Likewise.
3900 (vst3_p16): Likewise.
3901 (vst3_s32): Likewise.
3902 (vst3_u8): Likewise.
3903 (vst3_u16): Likewise.
3904 (vst3_u32): Likewise.
3905 (vst3_f16): Likewise.
3906 (vst3_f32): Likewise.
3907 (vst3_p64): Likewise.
3908 (vst3q_s8): Likewise.
3909 (vst3q_p8): Likewise.
3910 (vst3q_s16): Likewise.
3911 (vst3q_p16): Likewise.
3912 (vst3q_s32): Likewise.
3913 (vst3q_s64): Likewise.
3914 (vst3q_u8): Likewise.
3915 (vst3q_u16): Likewise.
3916 (vst3q_u32): Likewise.
3917 (vst3q_u64): Likewise.
3918 (vst3q_f16): Likewise.
3919 (vst3q_f32): Likewise.
3920 (vst3q_f64): Likewise.
3921 (vst3q_p64): Likewise.
3922 (vst4_s64): Likewise.
3923 (vst4_u64): Likewise.
3924 (vst4_f64): Likewise.
3925 (vst4_s8): Likewise.
3926 (vst4_p8): Likewise.
3927 (vst4_s16): Likewise.
3928 (vst4_p16): Likewise.
3929 (vst4_s32): Likewise.
3930 (vst4_u8): Likewise.
3931 (vst4_u16): Likewise.
3932 (vst4_u32): Likewise.
3933 (vst4_f16): Likewise.
3934 (vst4_f32): Likewise.
3935 (vst4_p64): Likewise.
3936 (vst4q_s8): Likewise.
3937 (vst4q_p8): Likewise.
3938 (vst4q_s16): Likewise.
3939 (vst4q_p16): Likewise.
3940 (vst4q_s32): Likewise.
3941 (vst4q_s64): Likewise.
3942 (vst4q_u8): Likewise.
3943 (vst4q_u16): Likewise.
3944 (vst4q_u32): Likewise.
3945 (vst4q_u64): Likewise.
3946 (vst4q_f16): Likewise.
3947 (vst4q_f32): Likewise.
3948 (vst4q_f64): Likewise.
3949 (vst4q_p64): Likewise.
3950 (vtbx4_s8): Likewise.
3951 (vtbx4_u8): Likewise.
3952 (vtbx4_p8): Likewise.
3953 (vtrn_f32): Likewise.
3954 (vtrn_p8): Likewise.
3955 (vtrn_p16): Likewise.
3956 (vtrn_s8): Likewise.
3957 (vtrn_s16): Likewise.
3958 (vtrn_s32): Likewise.
3959 (vtrn_u8): Likewise.
3960 (vtrn_u16): Likewise.
3961 (vtrn_u32): Likewise.
3962 (vtrnq_f32): Likewise.
3963 (vtrnq_p8): Likewise.
3964 (vtrnq_p16): Likewise.
3965 (vtrnq_s8): Likewise.
3966 (vtrnq_s16): Likewise.
3967 (vtrnq_s32): Likewise.
3968 (vtrnq_u8): Likewise.
3969 (vtrnq_u16): Likewise.
3970 (vtrnq_u32): Likewise.
3971 (vrsqrte_f16): Likewise.
3972 (vrsqrteq_f16): Likewise.
3973 (vsqrt_f16): Likewise.
3974 (vsqrtq_f16): Likewise.
3975 (vabd_f16): Likewise.
3976 (vabdq_f16): Likewise.
3977 (vpadd_f16): Likewise.
3978 (vpaddq_f16): Likewise.
3979 (vpmax_f16): Likewise.
3980 (vpmaxq_f16): Likewise.
3981 (vpmaxnm_f16): Likewise.
3982 (vpmaxnmq_f16): Likewise.
3983 (vpmin_f16): Likewise.
3984 (vpminq_f16): Likewise.
3985 (vpminnm_f16): Likewise.
3986 (vpminnmq_f16): Likewise.
3987 (vrsqrts_f16): Likewise.
3988 (vrsqrtsq_f16): Likewise.
3989
3990 2019-09-25 Richard Biener <rguenther@suse.de>
3991
3992 PR tree-optimization/91896
3993 * tree-vect-loop.c (vectorizable_reduction): The single
3994 def-use cycle optimization cannot apply when there's more
3995 than one pattern stmt involved.
3996
3997 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3998
3999 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
4000 the 'P' mode iterator, replacing the (removed) SI and DI variants.
4001 (reload_macho_picbase_<mode>): Likewise.
4002
4003 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4004
4005 * config/rs6000/rs6000.md: Move darwin.md include until
4006 after the definition of the mode iterators.
4007
4008 2019-09-23 Martin Sebor <msebor@redhat.com>
4009
4010 PR tree-optimization/91570
4011 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
4012 non-constant minlen, maxlen and maxbound.
4013
4014 2019-09-24 Richard Biener <rguenther@suse.de>
4015
4016 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
4017 Rename to...
4018 (_stmt_vec_info::cond_reduc_code): ... this.
4019 (_stmt_vec_info::induc_cond_initial_val): Add.
4020 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
4021 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
4022 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
4023 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
4024 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
4025 the reduction code.
4026 (vect_create_epilog_for_reduction): Drop special
4027 induction condition reduction params, pass in reduction code
4028 and simplify.
4029 (vectorizable_reduction): Perform condition reduction kind
4030 selection only at analysis time. Adjust passing on state.
4031
4032 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4033
4034 * config/aarch64/aarch64.md (mov<mode>): Don't call
4035 aarch64_split_dimode_const_store on volatile MEM.
4036
4037 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
4038
4039 * config/aarch64/aarch64-option-extensions.def (fp16fml):
4040 Update hwcap string for fp16fml.
4041
4042 2019-09-24 Jakub Jelinek <jakub@redhat.com>
4043
4044 PR middle-end/91866
4045 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
4046 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
4047
4048 2019-09-24 Martin Liska <mliska@suse.cz>
4049
4050 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
4051 instead of if-elseif-elseif-...
4052 * gimple-expr.c (extract_ops_from_tree): Likewise.
4053 * gimple.c (get_gimple_rhs_num_ops): Likewise.
4054 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
4055
4056 2019-09-24 Martin Jambor <mjambor@suse.cz>
4057
4058 PR ipa/91831
4059 * ipa-param-manipulation.c (carry_over_param): Make a method of
4060 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
4061 in case of a context mismatch.
4062 (ipa_param_body_adjustments::common_initialization): Adjust call to
4063 carry_over_param.
4064 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
4065 private method carry_over_param.
4066
4067 2019-09-24 Martin Jambor <mjambor@suse.cz>
4068
4069 PR ipa/91832
4070 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
4071
4072 2019-09-24 Richard Biener <rguenther@suse.de>
4073
4074 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
4075 base.
4076
4077 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4078
4079 * config/arm/t-arm (arm-builtins.o): Add dependency on
4080 arm_acle_builtins.def.
4081
4082 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4083
4084 PR target/91823
4085 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4086 canonical CONST_INTs. Use gen_rtvec.
4087
4088 2019-09-23 Richard Biener <rguenther@suse.de>
4089
4090 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4091 avoid adjusting by + 0 or * 1.
4092 (vect_create_epilog_for_reduction): Get reduction code only
4093 when necessary. Deal with adjustment_def only when necessary.
4094
4095 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4096
4097 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4098 memmodel index.
4099
4100 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4101
4102 PR ipa/91835
4103 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4104 "ipa-sra".
4105
4106 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4107
4108 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4109 code. Merge code blocks with common conditionals. Use declared
4110 macro instead of a magic number for PIC level.
4111
4112 2019-09-21 Martin Sebor <msebor@redhat.com>
4113
4114 PR middle-end/91830
4115 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4116 Simplify computation of the offset of the referenced subobject.
4117
4118 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4119
4120 * config/darwin.c (machopic_legitimize_pic_address): Check
4121 for lra not reload.
4122
4123 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4124
4125 * ira-conflicts.c (can_use_same_reg_p): New function.
4126 (process_reg_shuffles): Take an insn parameter. Ignore cases
4127 in which input operand op_num could seemingly never be allocated
4128 to the same register as the destination.
4129 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4130
4131 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4132
4133 * simplify-rtx.c (neg_const_int): Replace with...
4134 (neg_poly_int_rtx): ...this new function.
4135 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4136 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4137 (simplify_plus_minus): Likewise for constant terms here.
4138
4139 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4140
4141 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4142 HOST_WIDE_PRINT_UNSIGNED.
4143
4144 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4145
4146 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4147 character.
4148
4149 2019-09-20 Maya Rashish <coypu@sdf.org>
4150
4151 PR target/86811
4152 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4153 Define to speculation_safe_value_not_needed.
4154
4155 2019-09-20 Richard Biener <rguenther@suse.de>
4156 Uros Bizjak <ubizjak@gmail.com>
4157
4158 PR target/91814
4159 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4160 previous change.
4161 (general_scalar_chain::convert_op): Force not suitable memory
4162 operands to a register.
4163
4164 2019-09-20 Richard Biener <rguenther@suse.de>
4165
4166 PR tree-optimization/91821
4167 * tree-vect-loop.c (check_reduction_path): Check we can compute
4168 reduc_idx.
4169 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4170 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4171 operands in canonical order.
4172 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4173 STMT_VINFO_REDUC_IDX.
4174 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4175 (STMT_VINFO_REDUC_IDX): Likewise.
4176
4177 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4178
4179 PR target/91269
4180 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4181
4182 2019-09-20 Richard Biener <rguenther@suse.de>
4183
4184 PR tree-optimization/91822
4185 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4186 parameter.
4187 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4188 for reduc_index in nested cycles, adjust vectorizable_condition
4189 calls.
4190 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4191 parameter.
4192 (vect_analyze_stmt): Adjust.
4193 (vect_transform_stmt): Likewise.
4194
4195 2019-09-20 Richard Biener <rguenther@suse.de>
4196
4197 PR target/91767
4198 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4199 Ensure there's a sequence point between allocating the new register
4200 and passing a reference to a reg via regno_reg_rtx.
4201
4202 2019-09-20 Martin Jambor <mjambor@suse.cz>
4203
4204 * coretypes.h (cgraph_edge): Declare.
4205 * ipa-param-manipulation.c: Rewrite.
4206 * ipa-param-manipulation.h: Likewise.
4207 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4208 (OBJS): Added ipa-sra.o.
4209 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4210 and ref_p, added fields param_adjustments and performed_splits.
4211 (struct cgraph_clone_info): Remove ags_to_skip and
4212 combined_args_to_skip, new field param_adjustments.
4213 (cgraph_node::create_clone): Changed parameters to use
4214 ipa_param_adjustments.
4215 (cgraph_node::create_virtual_clone): Likewise.
4216 (cgraph_node::create_virtual_clone_with_body): Likewise.
4217 (tree_function_versioning): Likewise.
4218 (cgraph_build_function_type_skip_args): Removed.
4219 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4220 using ipa_param_adjustments.
4221 (clone_of_p): Likewise.
4222 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4223 (build_function_decl_skip_args): Likewise.
4224 (duplicate_thunk_for_node): Adjust parameters using
4225 ipa_param_body_adjustments, copy param_adjustments instead of
4226 args_to_skip.
4227 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4228 (cgraph_node::create_virtual_clone): Likewise.
4229 (cgraph_node::create_version_clone_with_body): Likewise.
4230 (cgraph_materialize_clone): Likewise.
4231 (symbol_table::materialize_all_clones): Likewise.
4232 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4233 ipa_replace_map check.
4234 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4235 (initialize_node_lattices): Make aware that some parameters might have
4236 already been removed.
4237 (want_remove_some_param_p): New function.
4238 (create_specialized_node): Convert to using ipa_param_adjustments and
4239 deal with possibly pre-existing adjustments.
4240 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4241 (output_node_opt_summary): Do not stream removed fields. Stream
4242 parameter adjustments instead of argumetns to skip.
4243 (input_node_opt_summary): Likewise.
4244 (input_node_opt_summary): Likewise.
4245 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4246 * lto-streamer.h (lto_section_type): Likewise.
4247 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4248 param_body_adjs.
4249 (copy_decl_to_var): Declare.
4250 * tree-inline.c (update_clone_info): Do not remap old_tree.
4251 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4252 statements, walk all extra generated statements and remap their
4253 operands.
4254 (redirect_all_calls): Add killed SSA names to a hash set.
4255 (remap_ssa_name): Do not remap killed SSA names.
4256 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4257 half of functionality moved to ipa_param_body_adjustments.
4258 (copy_decl_to_var): Make exported.
4259 (copy_body): Destroy killed_new_ssa_names hash set.
4260 (expand_call_inline): Remap performed splits.
4261 (update_clone_info): Likewise.
4262 (tree_function_versioning): Simplify tree_map processing. Updated to
4263 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4264 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4265 for the new interface.
4266 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4267 (simd_clone_compute_base_data_type): Likewise.
4268 (simd_clone_init_simd_arrays): Adjust for the new interface.
4269 (simd_clone_adjust_argument_types): Likewise.
4270 (struct modify_stmt_info): Likewise.
4271 (ipa_simd_modify_stmt_ops): Likewise.
4272 (ipa_simd_modify_function_body): Likewise.
4273 (simd_clone_adjust): Likewise.
4274 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4275 (type_internals_preclude_sra_p): Make public.
4276 * tree-sra.h: New file.
4277 * ipa-inline-transform.c (save_inline_function_body): Update to
4278 refelct new tree_function_versioning signature.
4279 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4280 ipa_param_adjustments to get current parameter indices.
4281 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4282 (ipcp_update_bits): Likewise.
4283 (ipcp_update_vr): Likewise.
4284 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4285 * ipa-sra.c: New file.
4286 * multiple_target.c (create_target_clone): Update to reflet new type
4287 of create_version_clone_with_body.
4288 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4289 tree_function_versioning.
4290 (modify_function): Update to reflect new type of
4291 tree_function_versioning.
4292 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4293 * passes.def: Remove old IPA-SRA and add new one.
4294 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4295 (make_pass_ipa_sra): Declare.
4296 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4297 ipa_sra_retvalues.
4298 * doc/invoke.texi (ipa-sra-max-replacements): New.
4299
4300 2019-09-19 Martin Sebor <msebor@redhat.com>
4301
4302 PR middle-end/91631
4303 * builtins.c (component_size): Correct trailing array computation,
4304 rename to component_ref_size and move...
4305 (compute_objsize): Adjust.
4306 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4307 (builtin_access::strict): Do not consider memmove.
4308 (builtin_access::write_off): New function.
4309 (builtin_memref::builtin_memref): Initialize refsize.
4310 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4311 refsize.
4312 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4313 Handle refsize.
4314 (builtin_access::builtin_access): Initialize dstoff to destination
4315 refeence offset here instead of in maybe_diag_overlap. Adjust
4316 referencess even to unrelated objects. Adjust sizrange of bounded
4317 string functions to reflect bound. For strcat, adjust destination
4318 sizrange by that of source.
4319 (builtin_access::strcat_overlap): Adjust offsets and sizes
4320 to reflect the increase in destination sizrange above.
4321 (builtin_access::overlap): Do not set dstoff here but instead
4322 in builtin_access::builtin_access.
4323 (check_bounds_or_overlap): Use builtin_access::write_off.
4324 (maybe_diag_access_bounds): Add argument. Add informational notes.
4325 (dump_builtin_memref, dump_builtin_access): New functions.
4326 * tree.c (component_ref_size): ...to here.
4327 * tree.h (component_ref_size): Declare.
4328 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4329 nul in the size of the source string.
4330
4331 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4332
4333 PR c/67224
4334 * doc/cpp.texi: Document support for extended characters in
4335 identifiers.
4336 * doc/cppopts.texi: Likewise.
4337
4338 2019-09-19 Richard Biener <rguenther@suse.de>
4339
4340 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4341 (check_reduction_path): New overload having the path as result.
4342 (vect_is_simple_reduction): From the detected reduction
4343 path build a SLP reduction chain if possible.
4344
4345 2019-09-19 Richard Biener <rguenther@suse.de>
4346
4347 PR target/91814
4348 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4349 Force operand to a register if it isn't nonimmediate_operand.
4350
4351 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4352
4353 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4354 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4355 (logical_op): Remove code attribute.
4356 (logical_OP): Likewise.
4357
4358 2019-09-19 Martin Liska <mliska@suse.cz>
4359
4360 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4361 Use proper casting.
4362
4363 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4364
4365 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4366 registers with %R.
4367
4368 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4369 for NE comparison of TImode values.
4370 (aarch64_emit_load_exclusive): Add support for TImode.
4371 (aarch64_emit_store_exclusive): Likewise.
4372 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4373 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4374 Change iterator from ALLI to ALLI_TI.
4375 (@atomic_compare_and_swap<JUST_TI>): New.
4376 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4377 (aarch64_load_exclusive_pair): New.
4378 (aarch64_store_exclusive_pair): New.
4379 * config/aarch64/iterators.md (JUST_TI): New.
4380
4381 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4382 strong_zero_p for aarch64_track_speculation; unify some code paths;
4383 use aarch64_gen_compare_reg instead of open-coding.
4384
4385 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4386 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4387 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4388 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4389 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4390 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4391 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4392 (atomic_<atomic_op><ALLI>): Likewise.
4393 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4394 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4395 * doc/invoke.texi: Document -moutline-atomics.
4396
4397 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4398
4399 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4400 trivial predicate for condition branch.
4401 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4402 for switch case.
4403 (compute_bb_predicates): Update predicate based on post-dominating
4404 relationship.
4405 (analyze_function_body): Calculate post-dominating information.
4406
4407 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4408
4409 * tree-vectorizer.h (vectorizable_condition): Take an int
4410 reduction index instead of a boolean flag.
4411 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4412 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4413 reductions if the reduction accumulator is the "then" rather
4414 than the "else" value.
4415 (vect_analyze_stmt): Update call accordingly.
4416 (vect_transform_stmt): Likewise.
4417 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4418 asserting that the index is > 0.
4419
4420 2019-09-19 Martin Liska <mliska@suse.cz>
4421
4422 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4423 (sort_congruence_classes_by_decl_uid): Likewise.
4424 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4425 easier sorting.
4426 (sem_item_optimizer::merge_classes): Likewise.
4427
4428 2019-09-19 Richard Biener <rguenther@suse.de>
4429
4430 PR tree-optimization/91812
4431 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4432 volatile loads.
4433
4434 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4435
4436 * defaults.h (TARGET_UNIT): New macro.
4437 (target_unit): New type.
4438 * rtl.h (native_encode_rtx, native_decode_rtx)
4439 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4440 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4441 * rtlanal.c (subreg_lsb_1): Delete.
4442 (subreg_size_lsb): New function.
4443 * simplify-rtx.c: Include rtx-vector-builder.h
4444 (simplify_immed_subreg): Delete.
4445 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4446 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4447 functions.
4448 (simplify_subreg): Use them.
4449 (test_vector_subregs_modes, test_vector_subregs_repeating)
4450 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4451 (test_vector_subregs): New functions.
4452 (test_vector_ops): Call test_vector_subregs for integer vector
4453 modes with at least 2 elements.
4454
4455 2019-09-19 Richard Biener <rguenther@suse.de>
4456
4457 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4458 LOOP_VINFO_OPERANDS_SWAPPED.
4459 (parloops_is_simple_reduction): Likewise.
4460 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4461 initialize operands_swapped.
4462 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4463 (vect_is_slp_reduction): Do not swap operands.
4464 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4465 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4466
4467 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4468
4469 PR target/87007
4470 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4471 Add avx_partial_xmm_update.
4472
4473 2019-09-18 Jim Wilson <jimw@sifive.com>
4474
4475 PR target/91683
4476 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4477 (riscv_move_integer): Likewise.
4478 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4479 riscv_move_integer arg.
4480 (riscv_legitimize_move): Likewise.
4481 (riscv_force_temporary): New parameter in_splitter. Don't call
4482 force_reg if true.
4483 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4484 arg.
4485 (riscv_add_offset): Likewise.
4486 (riscv_split_symbol): New parameter in_splitter. Pass to
4487 riscv_force_temporary.
4488 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4489 arg.
4490 (riscv_move_integer): New parameter in_splitter. New local
4491 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4492 in_splitter TRUE.
4493 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4494 riscv_split_symbol, and riscv_force_temporary args.
4495 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4496 riscv_move_integer arg.
4497 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4498
4499 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4500
4501 PR target/90878
4502 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4503 hard register store cost to 6.
4504
4505 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4506
4507 PR target/91446
4508 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4509 pseudo register store cost from 3 to 6 to make it the same as
4510 QImode and HImode.
4511
4512 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4513
4514 PR target/91738
4515 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4516 (one_cmpldi2): Likewise.
4517 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4518 of the constant parts is simple.
4519 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4520 (logical_op): Add new code attribute.
4521 (logical_OP): Likewise.
4522 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4523 (arm_iordi_operand): Add predicate.
4524 (arm_xordi_operand): Add predicate.
4525
4526 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4527
4528 * config/arm/arm.md (maddsidi4): Remove expander.
4529 (mulsidi3adddi): Remove pattern.
4530 (mulsidi3adddi_v6): Likewise.
4531 (mulsidi3_nov6): Likewise.
4532 (mulsidi3_v6): Likewise.
4533 (umulsidi3): Remove expander.
4534 (umulsidi3_nov6): Remove pattern.
4535 (umulsidi3_v6): Likewise.
4536 (umulsidi3adddi): Likewise.
4537 (umulsidi3adddi_v6): Likewise.
4538 (<Us>mulsidi3): Add combined expander.
4539 (<Us>maddsidi4): Likewise.
4540 (<US>mull): Add combined umull and smull pattern.
4541 (<US>mlal): Likewise.
4542 * config/arm/iterators.md (Us): Add new iterator.
4543
4544 2019-09-18 Richard Biener <rguenther@suse.de>
4545
4546 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4547 swapping.
4548 (vectorize_fold_left_reduction): Remove assert.
4549 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4550 operand in position 2. Remove assert.
4551
4552 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4553
4554 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4555 (smulsi3_highpart_nov6): Remove pattern.
4556 (smulsi3_highpart_v6): Likewise.
4557 (umulsi3_highpart): Likewise.
4558 (umulsi3_highpart_nov6): Likewise.
4559 (umulsi3_highpart_v6): Likewise.
4560 (<US>mull_high): Add new combined multiply pattern.
4561
4562 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4563
4564 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4565 (arm_mulsi3_v6): Likewise.
4566 (mulsi3addsi_v6): Likewise.
4567 (mulsi3subsi): Likewise.
4568 (mul): Add new multiply pattern.
4569 (mla): Likewise.
4570 (mls): Likewise.
4571
4572 2019-09-18 Richard Biener <rguenther@suse.de>
4573
4574 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4575 (parloops_valid_reduction_input_p): Copy from
4576 valid_reduction_input_p.
4577 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4578 (parloops_needs_fold_left_reduction_p): Copy from
4579 needs_fold_left_reduction_p.
4580 (parloops_is_simple_reduction): Copy from
4581 vect_is_simple_reduction.
4582 (parloops_force_simple_reduction): Copy from
4583 vect_force_simple_reduction.
4584 (gather_scalar_reductions): Adjust.
4585 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4586 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4587
4588 2019-09-18 Richard Biener <rguenther@suse.de>
4589
4590 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4591 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4592 static.
4593 (vect_create_epilog_for_reduction): Remove dead code.
4594
4595 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4596
4597 * varasm.c (assemble_real): Generate canonical const_ints.
4598
4599 2019-09-18 Richard Biener <rguenther@suse.de>
4600
4601 PR lto/91763
4602 * lto-streamer-in.c (input_eh_regions): Move EH init to
4603 lto_materialize_function.
4604 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4605 Likewise.
4606
4607 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4608
4609 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4610 are INTEGER_CSTs.
4611
4612 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4613
4614 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4615 of checking specifically for INTEGER_CST.
4616
4617 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4618
4619 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4620 sizes instead of uhwi sizes.
4621
4622 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4623
4624 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4625 (add_const_value_attribute): Handle CONST_POLY_INT.
4626
4627 2019-09-18 Martin Liska <mliska@suse.cz>
4628
4629 * dbgcnt.def (store_merging): New counter.
4630 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4631 Use it in store merging.
4632
4633 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4634
4635 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4636 function.
4637 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4638 * config/arm/arm.c (arm_sched_variable_issue): New function.
4639 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4640
4641 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4642
4643 * config/arm/types.md (no_reservation): New reservation.
4644 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4645 no_insn here.
4646 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4647 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4648 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4649 * config/arm/arm1020e.md (1020alu_op): Likewise.
4650 * config/arm/arm1026ejs.md (alu_op): Likewise.
4651 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4652 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4653 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4654 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4655 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4656 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4657 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4658 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4659 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4660 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4661 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4662 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4663 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4664 * config/arm/fa526.md (526_alu_op): Likewise.
4665 * config/arm/fa606te.md (606te_alu_op): Likewise.
4666 * config/arm/fa626te.md (626te_alu_op): Likewise.
4667 * config/arm/fa726te.md (726te_alu_op): Likewise.
4668 * config/arm/xgene1.md (xgene1_nop): Likewise.
4669
4670 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4671
4672 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4673 "no_insn" to "branch".
4674
4675 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4676
4677 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4678
4679 2019-09-17 Richard Biener <rguenther@suse.de>
4680
4681 PR debug/91772
4682 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4683 was missing generate locations only once.
4684
4685 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4686
4687 PR ipa/91089
4688 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4689 option.
4690 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4691 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4692 for switch default case using range analysis information.
4693
4694 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4695
4696 PR target/91749
4697 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4698 mode attributed is supported by FDPIC.
4699
4700 2019-09-17 Richard Biener <rguenther@suse.de>
4701
4702 PR tree-optimization/91790
4703 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4704 use the correct DR for setting up realignment.
4705
4706 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4707
4708 PR target/91719
4709 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4710 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4711 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4712 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4713
4714 2019-09-16 Jason Merrill <jason@redhat.com>
4715
4716 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4717
4718 2019-09-16 Martin Liska <mliska@suse.cz>
4719
4720 * gimple-fold.c (or_comparisons_1): Remove rules moved
4721 to ...
4722 * match.pd: ... here.
4723
4724 2019-09-16 Martin Liska <mliska@suse.cz>
4725
4726 * gimple-fold.c (or_comparisons_1): Remove rules
4727 moved to ...
4728 * match.pd: ... here.
4729
4730 2019-09-16 Martin Liska <mliska@suse.cz>
4731
4732 * genmatch.c (dt_node::append_simplify): Do not print
4733 warning when we have duplicate patterns belonging
4734 to a same simplify rule.
4735 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4736 (maybe_fold_comparisons_from_match_pd): Handle
4737 tcc_comparison as a results.
4738 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4739
4740 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4741 Qi Feng <ffengqi@linux.ibm.com>
4742
4743 PR middle-end/88784
4744 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4745 (x > y && x == XXX_MIN): Optimize into 'false'.
4746 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4747 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4748 (x < y && x == XXX_MAX): Optimize into 'false'.
4749 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4750 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4751 (x <= y || x != XXX_MIN): Optimize into 'true'.
4752 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4753 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4754 (x >= y || x != XXX_MAX): Optimize into 'true'.
4755 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4756
4757 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4758 Martin Liska <mliska@suse.cz>
4759
4760 * gimple-fold.c (and_comparisons_1): Add type as first
4761 argument.
4762 (and_var_with_comparison): Likewise.
4763 (and_var_with_comparison_1): Likewise.
4764 (or_comparisons_1): Likewise.
4765 (or_var_with_comparison): Likewise.
4766 (or_var_with_comparison_1): Likewise.
4767 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4768 (maybe_fold_or_comparisons): Likewise.
4769 (maybe_fold_comparisons_from_match_pd): New.
4770 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4771 (maybe_fold_or_comparisons): Likewise.
4772 * gimple.c (gimple_size): Make it public and add num_ops argument.
4773 (gimple_init): New function.
4774 (gimple_alloc): Call gimple_init.
4775 * gimple.h (gimple_size): New.
4776 (gimple_init): Likewise.
4777 * tree-if-conv.c (fold_or_predicates): Pass type.
4778 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4779 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4780 (optimize_vec_cond_expr): Likewise.
4781 (ovce_extract_ops): Return type of conditional expression.
4782 * tree-ssanames.c (init_ssa_name_imm_use): New.
4783 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4784 * tree-ssanames.h (init_ssa_name_imm_use): New.
4785
4786 2019-09-16 Richard Biener <rguenther@suse.de>
4787
4788 PR tree-optimization/91756
4789 PR tree-optimization/87132
4790 * tree-ssa-alias.h (enum translate_flags): New.
4791 (get_continuation_for_phi): Use it instead of simple bool flag.
4792 (walk_non_aliased_vuses): Likewise.
4793 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4794 (get_continuation_for_phi): When looking across backedges only
4795 disallow valueization.
4796 (walk_non_aliased_vuses): Adjust.
4797 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4798 if requested.
4799
4800 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4801
4802 PR middle-end/80791
4803 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4804 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4805 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4806 * target.def (have_count_reg_decr_p): New hook.
4807 (doloop_cost_for_generic): Likewise.
4808 (doloop_cost_for_address): Likewise.
4809 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4810 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4811 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4812 * doc/tm.texi: Regenerate.
4813 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4814 addend.
4815 (record_group): Init doloop_p.
4816 (add_candidate_1): Add optional argument doloop, change the handlings
4817 accordingly.
4818 (add_candidate): Likewise.
4819 (generic_predict_doloop_p): Update attribute.
4820 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4821 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4822 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4823 MIN_EXPR.
4824 (get_computation_cost): Update for doloop IV cand extra cost.
4825 (determine_group_iv_cost_cond): Update for doloop IV cand.
4826 (determine_iv_cost): Likewise.
4827 (ivopts_estimate_reg_pressure): Likewise.
4828 (may_eliminate_iv): Update handlings for doloop IV cand.
4829 (add_iv_candidate_for_doloop): New function.
4830 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4831 (iv_ca_set_no_cp): Update for doloop IV cand.
4832 (iv_ca_set_cp): Likewise.
4833 (iv_ca_dump): Dump register cost.
4834 (find_doloop_use): New function.
4835 (analyze_and_mark_doloop_use): Likewise.
4836 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4837
4838 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4839
4840 PR middle-end/91708
4841 * cse.c (cse_insn): Do not replace anything with a
4842 MEM.
4843
4844 2019-09-13 Ian Lance Taylor <iant@golang.org>
4845
4846 * doc/invoke.texi (Optimize Options): Fix typo.
4847
4848 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4849
4850 PR tree-optimization/89386
4851 * config/i386/sse.md (smulhrs<mode>3): New expander.
4852 (smulhrsv4hi3): Ditto.
4853
4854 2019-09-12 Richard Biener <rguenther@suse.de>
4855
4856 PR tree-optimization/91750
4857 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4858 in the type of the evolution.
4859
4860 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4861
4862 PR tree-optimization/89386
4863 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4864 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4865 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4866 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4867 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4868 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4869 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4870 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4871 (su, r): Handle the unspecs above.
4872 (bt): New int attribute.
4873 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4874 * internal-fn.c (first_commutative_argument): Commutativity info for
4875 above.
4876 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4877 (umulhrs_optab): New optabs.
4878 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4879 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4880 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4881 function.
4882 (vect_vect_recog_func_ptrs): Add it.
4883
4884 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4885
4886 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4887 code.
4888
4889 2019-09-11 Nathan Sidwell <nathan@acm.org>
4890
4891 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4892 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4893
4894 2019-09-11 Richard Biener <rguenther@suse.de>
4895
4896 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4897 * lto-wrapper.c (merge_and_complain): Pick up -g.
4898 (append_compiler_options): Likewise.
4899 (run_gcc): Re-instantiate handling -g0 at link-time.
4900 * doc/invoke.texi (flto): Document debug info generation.
4901
4902 2019-09-11 Richard Biener <rguenther@suse.de>
4903
4904 PR tree-optimization/90387
4905 * vr-values.c (vr_values::extract_range_basic): After inlining
4906 simplify non-constant __builtin_constant_p to false.
4907
4908 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4909
4910 PR rtl-optimization/89795
4911 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4912 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4913
4914 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4915
4916 PR tree-optimization/91723
4917 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4918 instead of pointer equality when checking if argument vectypes are
4919 the same.
4920
4921 PR middle-end/91725
4922 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4923 of get_nonzero_bits, only call it for integral types.
4924
4925 2019-09-11 Richard Biener <rguenther@suse.de>
4926
4927 Revert
4928 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4929
4930 * match.pd: Add flag_unsafe_math_optimizations check
4931 before deciding on the widest type in a binary math operation.
4932
4933 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4934
4935 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4936 and CALL_REALLY_USED_REGISTERS must be defined, and that
4937 CALL_REALLY_USED_REGISTERS is preferred.
4938 * doc/tm.texi: Regenerate.
4939 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4940 (call_really_used_regs): Likewise.
4941 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4942 CALL_REALLY_USED_REGISTERS are defined.
4943 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4944 initial value if defined.
4945 (initial_call_really_used_regs): Delete.
4946 (saved_call_really_used_regs): Likewise.
4947 (CALL_REALLY_USED_REGNO_P): Likewise.
4948 (init_reg_sets): Remove handling of call_really_used_regs.
4949 (save_register_info, restore_register_info, globalize_reg): Likewise.
4950 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4951 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4952 outside operand_reg_set.
4953 (fix_register): Don't change call_used_regs if
4954 CALL_REALLY_USED_REGISTERS is defined.
4955 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4956 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4957 instead of call_really_used_regs.
4958 (csky_conditional_register_usage): Remove the old handling of
4959 call_used_regs and change the handling of call_really_used_regs
4960 to use call_used_regs instead.
4961 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4962 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4963 making a register fixed.
4964 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4965 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4966 instead of call_really_used_regs.
4967 (m32r_conditional_register_usage): Don't set call_used_regs when
4968 making a register fixed.
4969 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4970 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4971 instead of call_really_used_regs.
4972 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4973 (mips_cfun_call_saved_reg_p): Likewise.
4974 (mips_swap_registers): Remove the old handling of call_used_regs
4975 and change the handling of call_really_used_regs to use call_used_regs
4976 instead.
4977 (mips_conditional_register_usage): Likewise.
4978 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4979 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4980 instead of call_really_used_regs.
4981 (mn10300_get_live_callee_saved_regs): Likewise.
4982 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4983 (mn10300_conditional_register_usage): Don't set call_used_regs when
4984 making a register fixed.
4985 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4986 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4987 Remove the old handling of call_used_regs and change the handling
4988 of call_really_used_regs to use call_used_regs instead.
4989 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4990 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4991 instead of call_really_used_regs.
4992 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4993 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4994 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4995 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4996 (s390_conditional_register_usage): Remove the old handling of
4997 call_used_regs and change the handling of call_really_used_regs
4998 to use call_used_regs instead.
4999 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
5000 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
5001 (sh_fix_range, reg_unused_after): Likewise.
5002 (sh_conditional_register_usage): Remove the old handling of
5003 call_used_regs and change the handling of call_really_used_regs
5004 to use call_used_regs instead.
5005 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
5006 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
5007 call_used_regs when making a register fixed.
5008 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
5009 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
5010 call_used_regs when making a register fixed.
5011 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
5012 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
5013 set call_used_regs when making a register fixed.
5014 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
5015 * config/visium/visium.c (visium_conditional_register_usage): Remove
5016 the old handling of call_used_regs and change the handling of
5017 call_really_used_regs to use call_used_regs instead.
5018
5019 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5020
5021 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
5022 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
5023 * reginfo.c (call_used_regs): New macro.
5024
5025 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5026
5027 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
5028 fixed_regs test.
5029 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5030 (bpf_expand_epilogue): Likewise.
5031 * config/c6x/c6x.c (c6x_save_reg): Likewise.
5032 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5033 (ft32_expand_epilogue): Likewise.
5034 * config/i386/i386.c (ix86_save_reg): Likewise.
5035 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
5036 (moxie_expand_epilogue): Likewise.
5037 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5038 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5039 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5040
5041 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5042
5043 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
5044 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
5045 instead of testing call_used_regs directly.
5046 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
5047 (aarch64_components_for_bb): Likewise.
5048 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
5049 * config/arc/arc.c (arc_must_save_register): Likewise.
5050 (arc_epilogue_uses): Likewise.
5051 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
5052 (legitimize_pic_address, callee_saved_reg_p): Likewise.
5053 (arm_compute_save_reg0_reg12_mask): Likewise.
5054 (arm_compute_save_core_reg_mask): Likewise.
5055 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
5056 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
5057 (cmse_nonsecure_entry_clear_before_return): Likewise.
5058 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
5059 (arm_expand_epilogue): Likewise.
5060 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
5061 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
5062 (_reg_unused_after): Likewise.
5063 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
5064 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
5065 (add_to_reg, hwloop_optimize): Likewise.
5066 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5067 (bpf_expand_epilogue): Likewise.
5068 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
5069 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5070 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
5071 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
5072 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
5073 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
5074 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
5075 * config/frv/frv.c (frv_stack_info): Likewise.
5076 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
5077 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
5078 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
5079 (move_callee_saved_registers): Likewise.
5080 * config/h8300/h8300.c (byte_reg): Likewise.
5081 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
5082 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
5083 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5084 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5085 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5086 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5087 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5088 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5089 * config/m32c/m32c.c (need_to_save): Likewise.
5090 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5091 * config/mcore/mcore.c (calc_live_regs): Likewise.
5092 * config/microblaze/microblaze.c (microblaze_must_save_register):
5093 Likewise.
5094 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5095 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5096 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5097 (mmix_expand_epilogue): Likewise.
5098 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5099 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5100 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5101 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5102 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5103 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5104 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5105 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5106 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5107 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5108 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5109 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5110 * config/rl78/rl78.c (need_to_save): Likewise.
5111 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5112 (rs6000_stack_info, generate_set_vrsave): Likewise.
5113 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5114 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5115 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5116 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5117 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5118 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5119 (save_local_or_in_reg_p): Likewise.
5120 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5121 (xstormy16_epilogue_uses): Likewise.
5122 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5123 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5124 * config/v850/v850.c (compute_register_save_size): Likewise.
5125 * config/vax/vax.c (vax_expand_prologue): Likewise.
5126 * config/visium/visium.c (visium_save_reg_p): Likewise.
5127 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5128 * cselib.c (cselib_process_insn): Likewise.
5129 * df-scan.c (df_get_entry_block_def_set): Likewise.
5130 * function.c (aggregate_value_p): Likewise.
5131 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5132 * ira-lives.c (process_bb_node_lives): Likewise.
5133 * ira.c (do_reload): Likewise.
5134 * lra-lives.c (process_bb_lives): Likewise.
5135 * lra-remat.c (lra_remat): Likewise.
5136 * lra.c (lra): Likewise.
5137 * postreload.c (reload_combine_recognize_pattern): Likewise.
5138 (reload_cse_move2add): Likewise.
5139 * recog.c (peep2_find_free_register): Likewise.
5140 * regrename.c (check_new_reg_p): Likewise.
5141 * reload.c (find_equiv_reg): Likewise.
5142 * reload1.c (reload, find_reg): Likewise.
5143 * sel-sched.c (init_hard_regs_data): Likewise.
5144
5145 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5146
5147 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5148 regs_invalidated_by_call & ~fixed_reg_set instead of
5149 call_used_or_fixed_regs & ~fixed_reg_set.
5150 * config/sh/sh.c (output_stack_adjust): Likewise.
5151
5152 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5153
5154 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5155 (call_used_reg_set): Delete.
5156 (call_used_or_fixed_regs): New macro.
5157 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5158 of call_used_reg_set.
5159 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5160 instead of call_used_regs.
5161 (save_call_clobbered_regs): Likewise.
5162 * cfgcleanup.c (old_insns_match_p): Likewise.
5163 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5164 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5165 Likewise.
5166 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5167 * config/sh/sh.c (output_stack_adjust): Likewise.
5168 * final.c (collect_fn_hard_reg_usage): Likewise.
5169 * ira-build.c (ira_build): Likewise.
5170 * ira-color.c (calculate_saved_nregs): Likewise.
5171 (allocno_reload_assign, calculate_spill_cost): Likewise.
5172 * ira-conflicts.c (ira_build_conflicts): Likewise.
5173 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5174 * ira-lives.c (process_bb_node_lives): Likewise.
5175 * ira.c (setup_reg_renumber): Likewise.
5176 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5177 * lra-constraints.c (need_for_call_save_p): Likewise.
5178 (need_for_split_p, inherit_in_ebb): Likewise.
5179 * lra-lives.c (process_bb_lives): Likewise.
5180 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5181 * postreload.c (reload_combine): Likewise.
5182 * regrename.c (find_rename_reg): Likewise.
5183 * reload1.c (reload_as_needed): Likewise.
5184 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5185 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5186 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5187
5188 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5189
5190 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5191 (no_caller_save_reg_set): Delete.
5192 * caller-save.c (init_caller_save): Don't initialize it.
5193 * ira-conflicts.c (ira_build_conflicts): Calculate
5194 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5195
5196 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5197
5198 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5199 (target_hard_regs::x_savable_regs): New field.
5200 (call_fixed_reg_set): Delete.
5201 (savable_regs): New macro,
5202 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5203 (init_reg_sets_1): Likewise. Initialize savable_regs.
5204 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5205 for all registers. Set savable_regs instead of call_fixed_reg_set.
5206 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5207 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5208 * config/sh/sh.c (output_stack_adjust): Likewise.
5209
5210 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5211
5212 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5213 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5214 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5215
5216 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5217
5218 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5219 * rtlanal.c (get_call_rtx_from): Likewise.
5220 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5221 than the pattern to get_call_rtx_from.
5222 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5223 an rtx_insn * instead of an rtx.
5224 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5225
5226 2019-09-10 Martin Liska <mliska@suse.cz>
5227
5228 * common.opt: Use newly added WarnRemoved.
5229 * config/aarch64/aarch64.opt: Likewise.
5230 * config/arm/arm.opt: Likewise.
5231 * config/i386/i386.opt: Likewise.
5232 * config/ia64/ia64.opt: Likewise.
5233 * config/rs6000/rs6000.opt: Likewise.
5234 * doc/options.texi: Document WarnRemoved properly.
5235 * dwarf2out.c (gen_producer_string): Handle renamed
5236 OPT_SPECIAL_warn_removed.
5237 * lto-opts.c (lto_write_options): Likewise.
5238 * lto-wrapper.c (merge_and_complain): Likewise.
5239 * opts-common.c (decode_cmdline_option): Likewise.
5240 (prune_options): Likewise.
5241 (read_cmdline_option): Likewise.
5242 (control_warning_option): Likewise.
5243 * opts.c (print_filtered_help): Likewise.
5244 * optc-gen.awk: Parse for WarnRemoved and make usage
5245 of Deprecated an error.
5246 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5247
5248 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5249
5250 * doc/install.texi: Fix syntax for html generation.
5251
5252 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5253
5254 PR middle-end/91680
5255 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5256 the shift type to type.
5257
5258 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5259
5260 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5261 FDPIC mode.
5262 (stack_protect_combined_test_insn): Likewise.
5263
5264 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5265 Mickaël Guêné <mickael.guene@st.com>
5266
5267 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5268 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5269 (load_tp_soft_fdpic): New pattern.
5270 (load_tp_soft): Disable in FDPIC mode.
5271
5272 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5273 Mickaël Guêné <mickael.guene@st.com>
5274
5275 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5276 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5277 (arm_call_tls_get_addr): Add FDPIC support.
5278 (legitimize_tls_address): Likewise.
5279 (arm_emit_tls_decoration): Likewise.
5280
5281 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5282 Mickaël Guêné <mickael.guene@st.com>
5283
5284 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5285 support.
5286 (arm_trampoline_init): Likewise.
5287 (arm_trampoline_adjust_address): Likewise.
5288 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5289
5290 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5291 Mickaël Guêné <mickael.guene@st.com>
5292
5293 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5294 (legitimize_pic_address): Enforce binding rules on function
5295 pointers in FDPIC mode.
5296 (arm_assemble_integer): Likewise.
5297
5298 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5299 Mickaël Guêné <mickael.guene@st.com>
5300
5301 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5302 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5303 FDPIC.
5304
5305 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5306 Mickaël Guêné <mickael.guene@st.com>
5307
5308 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5309 field.
5310
5311 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5312 Mickaël Guêné <mickael.guene@st.com>
5313
5314 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5315 in FDPIC mode.
5316 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5317 new function.
5318 * config/arm/arm.c (arm_option_override): Define pic register to
5319 FDPIC_REGNUM.
5320 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5321 have no decl or go through PLT.
5322 (calculate_pic_address_constant): New function.
5323 (legitimize_pic_address): Call calculate_pic_address_constant.
5324 (arm_load_pic_register): Handle TARGET_FDPIC.
5325 (arm_is_segment_info_known): New function.
5326 (arm_pic_static_addr): Add support for FDPIC.
5327 (arm_load_function_descriptor): New function.
5328 (arm_emit_call_insn): Add support for FDPIC.
5329 (arm_assemble_integer): Add support for FDPIC.
5330 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5331 Define. (FDPIC_REGNUM): New define.
5332 * config/arm/arm.md (call): Add support for FDPIC.
5333 (call_value): Likewise.
5334 (restore_pic_register_after_call): New pattern.
5335 (untyped_call): Disable if FDPIC.
5336 (untyped_return): Likewise.
5337 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5338
5339 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5340 Mickaël Guêné <mickael.guene@st.com>
5341
5342 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5343 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5344 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5345 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5346 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5347 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5348 * config/arm/uclinuxfdpiceabi.h: New file.
5349
5350 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5351
5352 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5353
5354 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5355 Mickaël Guêné <mickael.guene@st.com>
5356
5357 * config/arm/arm.opt: Add -mfdpic option.
5358 * doc/invoke.texi: Add documentation for -mfdpic.
5359
5360 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5361
5362 * expmed.c (extract_bit_field): Update function comment
5363 regarding alt_rtl.
5364 * expr.c (expand_expr_real): Update function comment
5365 regarding alt_rtl.
5366 (expand_misaligned_mem_ref): New helper function.
5367 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5368 Remove duplicate assignment to "base" at case MEM_REF.
5369 Remove a shadowed variable "unsignedp" at case VCE.
5370
5371 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5372
5373 * regset.h (regs_invalidated_by_call_regset): Delete.
5374 (fixed_reg_set_regset): Likewise.
5375 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5376 (fixed_reg_set_regset, persistent_obstack): Likewise.
5377 (init_reg_sets_1, globalize_reg): Update accordingly.
5378 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5379 instead of a bitmap.
5380 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5381 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5382 instead of regs_invalidated_by_call_regset.
5383 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5384 * df-scan.c (df_scan_start_dump): Likewise.
5385 * dse.c (copy_fixed_regs): Likewise.
5386 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5387
5388 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5389
5390 * array-traits.h: New file.
5391 * coretypes.h (array_traits, bitmap_view): New types.
5392 * bitmap.h: Include "array-traits.h"
5393 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5394 (base_bitmap_view, bitmap_view): New classes.
5395 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5396 * hard-reg-set.h: Include array-traits.h.
5397 (array_traits<HARD_REG_SET>): New struct.
5398 * regset.h (IOR_REG_SET_HRS): New macro.
5399 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5400 rather than iterating over each hard register.
5401 * sched-deps.c (sched_analyze_insn): Likewise.
5402 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5403
5404 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5405
5406 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5407 instead of a HARD_REG_SET *.
5408 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5409 (ira_build): Update call accordingly.
5410 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5411
5412 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5413
5414 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5415 (HARD_REG_SET::operator!=): Likewise.
5416 (hard_reg_set_equal_p): Delete.
5417 * cfgcleanup.c (old_insns_match_p): Use == instead of
5418 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5419 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5420 (add_allocno_hard_regs_to_forest): Likewise.
5421 (setup_allocno_available_regs_num): Likewise.
5422 * ira.c (setup_pressure_classes): Likewise.
5423 (setup_allocno_and_important_classes): Likewise.
5424 (setup_reg_class_relations): Likewise.
5425 * lra-lives.c (process_bb_lives): Likewise.
5426 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5427
5428 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5429
5430 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5431 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5432 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5433 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5434 Likewise.
5435 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5436 * ira.c (setup_reg_renumber): Likewise.
5437 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5438 * regrename.c (regrename_find_superclass): Likewise.
5439 * reload1.c (find_reg): Likewise.
5440
5441 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5442
5443 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5444 * caller-save.c (setup_save_areas): Use "&~" instead of
5445 AND_COMPL_HARD_REG_SET.
5446 (save_call_clobbered_regs): Likewise.
5447 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5448 Likewise.
5449 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5450 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5451 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5452 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5453 (mips_conditional_register_usage): Likewise.
5454 * config/sh/sh.c (output_stack_adjust): Likewise.
5455 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5456 (setup_profitable_hard_regs): Likewise.
5457 (get_conflict_and_start_profitable_regs): Likewise.
5458 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5459 (ira_build_conflicts): Likewise.
5460 * ira-costs.c (restrict_cost_classes): Likewise.
5461 (setup_regno_cost_classes_by_aclass): Likewise.
5462 * ira-lives.c (process_bb_node_lives): Likewise.
5463 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5464 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5465 (setup_allocno_and_important_classes, setup_class_translate_array)
5466 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5467 Likewise.
5468 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5469 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5470 (process_alt_operands, inherit_in_ebb): Likewise.
5471 * lra-eliminations.c (update_reg_eliminate): Likewise.
5472 * lra-lives.c (process_bb_lives): Likewise.
5473 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5474 * resource.c (find_dead_or_set_registers): Likewise.
5475 (mark_target_live_regs): Likewise.
5476 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5477 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5478 (implicit_clobber_conflict_p): Likewise.
5479 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5480 (try_shrink_wrapping): Likewise.
5481
5482 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5483
5484 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5485 (HARD_REG_SET::operator|=): Likewise.
5486 (IOR_HARD_REG_SET): Delete.
5487 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5488 IOR_HARD_REG_SET.
5489 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5490 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5491 * final.c (collect_fn_hard_reg_usage): Likewise.
5492 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5493 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5494 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5495 (propagate_some_info_from_allocno): Likewise.
5496 (copy_info_to_removed_store_destinations): Likewise.
5497 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5498 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5499 (fast_allocation): Likewise.
5500 * ira-conflicts.c (ira_build_conflicts): Likewise.
5501 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5502 (process_bb_node_lives): Likewise.
5503 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5504 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5505 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5506 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5507 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5508 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5509 (process_bb_lives): Likewise.
5510 * lra-spills.c (assign_spill_hard_regs): Likewise.
5511 * postreload.c (reload_combine): Likewise.
5512 * reginfo.c (init_reg_sets_1): Likewise.
5513 * regrename.c (merge_overlapping_regs, find_rename_reg)
5514 (merge_chains): Likewise.
5515 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5516 (find_reload_regs, finish_spills, choose_reload_regs_init)
5517 (emit_reload_insns): Likewise.
5518 * reorg.c (redundant_insn): Likewise.
5519 * resource.c (find_dead_or_set_registers, mark_set_resources)
5520 (mark_target_live_regs): Likewise.
5521 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5522 * sched-deps.c (sched_analyze_insn): Likewise.
5523 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5524 (find_best_reg_for_expr): Likewise.
5525 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5526
5527 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5528
5529 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5530 (HARD_REG_SET::operator&): Likewise.
5531 (AND_HARD_REG_SET): Delete.
5532 * caller-save.c (setup_save_areas): Use "&" instead of
5533 AND_HARD_REG_SET.
5534 (save_call_clobbered_regs): Likewise.
5535 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5536 * config/m32c/m32c.c (reduce_class): Likewise.
5537 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5538 * final.c (get_call_reg_set_usage): Likewise.
5539 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5540 (setup_left_conflict_sizes_p): Likewise.
5541 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5542 (ira_build_conflicts): Likewise.
5543 * ira-costs.c (restrict_cost_classes): Likewise.
5544 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5545 (setup_reg_class_relations): Likewise.
5546 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5547 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5548 * resource.c (find_dead_or_set_registers): Likewise.
5549 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5550
5551 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5552
5553 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5554 (COMPL_HARD_REG_SET): Delete.
5555 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5556 of COMPL_HARD_REG_SET.
5557 (try_rename_operands): Likewise.
5558 * config/sh/sh.c (push_regs): Likewise.
5559 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5560 * lra-constraints.c (contains_reg_p): Likewise.
5561 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5562
5563 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5564
5565 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5566 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5567 of COPY_HARD_REG_SET.
5568 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5569 (epiphany_conditional_register_usage): Likewise.
5570 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5571 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5572 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5573 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5574 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5575 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5576 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5577 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5578 * config/sh/sh.c (output_stack_adjust): Likewise.
5579 * final.c (collect_fn_hard_reg_usage): Likewise.
5580 (get_call_reg_set_usage): Likewise.
5581 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5582 (ira_flattening): Likewise.
5583 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5584 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5585 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5586 (ira_reassign_pseudos): Likewise.
5587 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5588 (ira_build_conflicts): Likewise.
5589 * ira-costs.c (restrict_cost_classes): Likewise.
5590 (setup_regno_cost_classes_by_aclass): Likewise.
5591 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5592 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5593 (setup_stack_reg_pressure_class, setup_pressure_classes)
5594 (setup_allocno_and_important_classes, setup_class_translate_array)
5595 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5596 (ira_setup_eliminable_regset): Likewise.
5597 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5598 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5599 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5600 (process_alt_operands, inherit_in_ebb): Likewise.
5601 * lra-lives.c (process_bb_lives): Likewise.
5602 * lra-spills.c (assign_spill_hard_regs): Likewise.
5603 * lra.c (lra): Likewise.
5604 * mode-switching.c (new_seginfo): Likewise.
5605 * postreload.c (reload_combine): Likewise.
5606 * reg-stack.c (straighten_stack): Likewise.
5607 * reginfo.c (save_register_info, restore_register_info): Likewise.
5608 (init_reg_sets_1, record_subregs_of_mode): Likewise
5609 * regrename.c (create_new_chain, rename_chains): Likewise.
5610 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5611 (find_reload_regs): Likewise.
5612 * resource.c (find_dead_or_set_registers): Likewise.
5613 (mark_target_live_regs): Likewise.
5614 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5615
5616 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5617
5618 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5619 (note_pattern_stores): Declare.
5620 (note_stores): Take an rtx_insn *.
5621 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5622 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5623 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5624 (note_stores): Take an rtx_insn * as argument and process
5625 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5626 (note_pattern_stores): ...this.
5627 (find_first_parameter_load): Pass the insn rather than
5628 its pattern to note_stores.
5629 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5630 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5631 (insert_one_insn): Likewise.
5632 * combine.c (combine_instructions): Likewise.
5633 (likely_spilled_retval_p): Likewise.
5634 (try_combine): Use note_pattern_stores instead of note_stores.
5635 (record_dead_and_set_regs): Pass the insn rather than its pattern
5636 to note_stores.
5637 (reg_dead_at_p): Likewise.
5638 * config/bfin/bfin.c (workaround_speculation): Likewise.
5639 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5640 rather than an rtx.
5641 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5642 instead of note_stores.
5643 (frv_optimize_membar_local): Pass the insn rather than its pattern
5644 to note_stores.
5645 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5646 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5647 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5648 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5649 (mips_reorg_process_insns): Likewise.
5650 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5651 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5652 rather than rtxes.
5653 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5654 its pattern to note_stores.
5655 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5656 of note_stores.
5657 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5658 the insn to note_stores.
5659 (prescan_insns_for_dce): Update call accordingly.
5660 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5661 to note_stores.
5662 * df-problems.c (can_move_insns_across): Likewise.
5663 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5664 * function.c (assign_parm_setup_reg): Likewise.
5665 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5666 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5667 (single_set_gcse): Likewise.
5668 * ira.c (validate_equiv_mem): Likewise.
5669 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5670 for no_equiv.
5671 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5672 pattern to note_stores.
5673 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5674 * loop-iv.c (simplify_using_initial_values): Likewise.
5675 * mode-switching.c (optimize_mode_switching): Likewise.
5676 * optabs.c (emit_libcall_block_1): Likewise.
5677 (expand_atomic_compare_and_swap): Likewise.
5678 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5679 (record_opr_changes): Likewise. Remove explicit handling of
5680 CALL_INSN_FUNCTION_USAGE.
5681 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5682 * regcprop.c (kill_clobbered_values): Likewise.
5683 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5684 to note_stores.
5685 * regrename.c (build_def_use): Likewise.
5686 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5687 for mark_not_eliminable.
5688 (reload_as_needed): Pass the insn rather than its pattern
5689 to note_stores.
5690 (emit_output_reload_insns): Likewise.
5691 * resource.c (mark_target_live_regs): Likewise.
5692 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5693 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5694 instead of note_stores.
5695 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5696 its pattern to note_stores.
5697 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5698 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5699
5700 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5701
5702 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5703 than a #define. Use a structure rather than an array as the
5704 fallback definition. Remove special cases for low array sizes.
5705 (const_hard_reg_set): New typedef.
5706 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5707 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5708 (hard_reg_set_empty_p): Likewise.
5709 (SET_HARD_REG_BIT): Use a function rather than a macro to
5710 handle the case in which HARD_REG_SET is a structure.
5711 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5712 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5713 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5714 (IOR_COMPL_HARD_REG_SET): Likewise.
5715 (hard_reg_set_iterator::pset): Constify the pointer target.
5716 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5717 of a "const HARD_REG_SET". Update the handling of non-integer
5718 HARD_REG_SETs.
5719 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5720 * reload.h: Likewise.
5721 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5722 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5723 of a "const HARD_REG_SET".
5724 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5725 (range_in_hard_reg_set_p): Likewise.
5726 * ira-costs.c (restrict_cost_classes): Likewise.
5727 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5728 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5729 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5730 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5731 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5732 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5733 take an unsigned int and open-code the HARD_REG_SET operations.
5734
5735 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5736
5737 * Makefile.in (OBJS): Remove bt-load.o.
5738 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5739 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5740 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5741 document that the option no longer does anything.
5742 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5743 * target.def (branch_target_register_class): Delete.
5744 (branch_target_register_callee_saved): Likewise.
5745 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5746 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5747 * doc/tm.texi: Regenerate.
5748 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5749 (make_pass_branch_target_load_optimize2): Likewise.
5750 * passes.def (pass_branch_target_load_optimize1): Likewise.
5751 (pass_branch_target_load_optimize2): Likewise.
5752 * targhooks.h (default_branch_target_register_class): Likewise.
5753 * targhooks.c (default_branch_target_register_class): Likewise.
5754 * opt-suggestions.c (test_completion_valid_options): Remove
5755 -fbtr-bb-exclusive from the list of test options.
5756 * bt-load.c: Remove.
5757
5758 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5759
5760 * match.pd: Add flag_unsafe_math_optimizations check
5761 before deciding on the widest type in a binary math operation.
5762
5763 2019-09-09 Martin Liska <mliska@suse.cz>
5764
5765 * config/i386/i386.opt: Update comment of removed
5766 options that are preserved only for backward
5767 compatibility.
5768
5769 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5770
5771 PR target/87853
5772 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5773 instead of __v16qs.
5774
5775 PR target/91704
5776 * config/i386/avxintrin.h (__v32qs): New typedef.
5777 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5778 instead of __v32qi.
5779
5780 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5781
5782 * doc/invoke.texi (Option Summary): Cover eBPF.
5783 (eBPF Options): New section.
5784 * doc/extend.texi (BPF Built-in Functions): Likewise.
5785 (BPF Kernel Helpers): Likewise.
5786
5787 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5788
5789 * config.gcc: Support for bpf-*-* targets.
5790 * common/config/bpf/bpf-common.c: New file.
5791 * config/bpf/t-bpf: Likewise.
5792 * config/bpf/predicates.md: Likewise.
5793 * config/bpf/constraints.md: Likewise.
5794 * config/bpf/bpf.opt: Likewise.
5795 * config/bpf/bpf.md: Likewise.
5796 * config/bpf/bpf.h: Likewise.
5797 * config/bpf/bpf.c: Likewise.
5798 * config/bpf/bpf-protos.h: Likewise.
5799 * config/bpf/bpf-opts.h: Likewise.
5800 * config/bpf/bpf-helpers.h: Likewise.
5801 * config/bpf/bpf-helpers.def: Likewise.
5802
5803 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5804
5805 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5806 indirect_calls.
5807
5808 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5809
5810 * opt-functions.awk (integer_range_info): Make sure values are in
5811 numeric context before operating with them.
5812
5813 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5814
5815 * genemit.c (gen_split): Print the filename and line number where the
5816 splitter (or peephole2) was defined, to the dump file.
5817
5818 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5819
5820 PR tree-optimization/91665
5821 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5822 incompatible with the type of PHI result.
5823
5824 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5825
5826 PR target/91684
5827 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5828 gen_unaligned_storedi for 4-byte aligned addresses.
5829
5830 2019-09-06 Jim Wilson <jimw@sifive.com>
5831
5832 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5833 change.
5834
5835 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5836
5837 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5838
5839 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5840
5841 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5842 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5843
5844 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5845
5846 PR target/91654
5847 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5848 cost of SSE->integer and integer->SSE moves from 2 to 6.
5849 (core_cost): Ditto.
5850
5851 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5852
5853 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5854 before testing TYPE_TRANSPARENT_AGGR.
5855 * calls.c (initialize_argument_information, load_register_parameters):
5856 Likewise.
5857
5858 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5859
5860 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5861 high regs.
5862 (cmp_ior): Likewise.
5863
5864 2019-09-06 Martin Liska <mliska@suse.cz>
5865
5866 * doc/match-and-simplify.texi: Separate tuples with ;.
5867
5868 2019-09-06 Martin Liska <mliska@suse.cz>
5869
5870 PR c++/91125
5871 * Makefile.in: Remove tlink.o.
5872 * collect2.c (do_link): New function isolated
5873 from do_tlink.
5874 (main): Use.
5875 * collect2.h (do_tlink): Remove declaration of do_tlink.
5876 * doc/extend.texi: Remove documentation of -frepo.
5877 * doc/invoke.texi: Likewise.
5878 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5879 * tlink.c: Remove.
5880
5881 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5882 Jim Wilson <jimw@sifive.com>
5883
5884 PR target/91635
5885 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5886 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5887 paradoxical_subreg_p (operands[0]).
5888 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5889 use as intermediate value.
5890
5891 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5892
5893 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5894 (sync_compare_and_swap<mode>_insn): Likewise.
5895
5896 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5897
5898 PR middle-end/91615
5899 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5900 without movmisalign optab.
5901
5902 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5903
5904 PR middle-end/91001
5905 PR middle-end/91105
5906 PR middle-end/91106
5907 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5908 types, use type of their first field instead of type of
5909 args[i].tree_value.
5910
5911 2019-09-05 Richard Biener <rguenther@suse.de>
5912
5913 PR rtl-optimization/91656
5914 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5915 of early out.
5916
5917 2019-09-05 Richard Biener <rguenther@suse.de>
5918
5919 PR middle-end/90501
5920 * tree-inline.c (declare_return_variable): Mark the return
5921 slot as addressable after building an address of it.
5922
5923 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5924
5925 * doc/install.texi: Update and clarify requirements to build GNAT.
5926
5927 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5928
5929 PR middle-end/91577
5930 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5931 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5932 call to be in memory.
5933 (pass_expand::execute): Call discover_nonconstant_array_refs before
5934 setting currently_expanding_to_rtl.
5935
5936 2019-09-04 Caroline Tice <cmtice@google.com>
5937
5938 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5939 specified together.
5940
5941 2019-09-04 Marek Polacek <polacek@redhat.com>
5942
5943 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5944
5945 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5946
5947 PR target/32413
5948 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5949 for QI and HImode moves between SSE and general registers.
5950
5951 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5952
5953 PR c/78736
5954 * doc/invoke.texi: Document -Wenum-conversion.
5955
5956 2019-09-04 Richard Biener <rguenther@suse.de>
5957
5958 PR rtl-optimization/36262
5959 * postreload-gcse.c: Include intl.h and gcse.h.
5960 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5961 to avoid linear list walk.
5962 (record_last_mem_set_info): Gate off if not computing transparentness.
5963 (get_bb_avail_insn): If transparentness isn't computed give up
5964 early.
5965 (gcse_after_reload_main): Skip compute_transp and extended PRE
5966 if gcse_or_cprop_is_too_expensive says so.
5967
5968 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5969
5970 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5971 noinit section.
5972 (msp430_select_section): Handle decls with the "noinit" attribute with
5973 default_elf_select_section.
5974 Handle SECCAT_RODATA_MERGE_* section types with
5975 default_elf_select_section.
5976 Add comments about handling of unsupported section types.
5977 (msp430_section_type_flags): Remove handling of the noinit section.
5978
5979 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5980
5981 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5982 conflicting msp430-specific attributes.
5983 (msp430_section_attr): Likewise.
5984 Add warnings about conflicts with generic "noinit" and "section"
5985 attributes.
5986 Fix grammar in -mlarge error message.
5987 (msp430_data_attr): Rename to msp430_persist_attr.
5988 Add warnings about conflicts with generic "noinit" and "section"
5989 attributes.
5990 Add warning for when variable is not initialized.
5991 Chain conditionals which prevent the attribute being added.
5992 (ATTR_EXCL): New helper.
5993 (attr_reent_exclusions): New exclusion table.
5994 (attr_naked_exclusions): Likewise.
5995 (attr_crit_exclusions): Likewise.
5996 (attr_lower_exclusions): Likewise.
5997 (attr_upper_exclusions): Likewise.
5998 (attr_either_exclusions): Likewise.
5999 (attr_persist_exclusions): Likewise.
6000 (msp430_attribute_table): Update with exclusion rules.
6001 (msp430_output_aligned_decl_common): Don't output common symbol if decl
6002 has a section.
6003
6004 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6005
6006 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
6007 (msp430_handle_generic_attribute): New function.
6008 * doc/tm.texi: Regenerate.
6009 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
6010 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6011 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6012 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
6013
6014 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
6015
6016 PR tree-optimization/91504
6017 * match.pd: Add ((~a & b) ^a) --> (a | b).
6018
6019 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6020
6021 PR target/91604
6022 * config/i386/i386-expand.c (split_double_mode): If there is more than
6023 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
6024 already split matching MEM operand instead of calling adjust_address
6025 again.
6026
6027 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
6028
6029 * config.gcc: Obsolete spu target. Remove references to spu.
6030 * configure.ac: Remove references to spu.
6031 * configure: Regenerate.
6032 * config/spu/: Remove directory.
6033 * common/config/spu/: Remove directory.
6034
6035 * doc/extend.texi: Remove references to spu.
6036 * doc/invoke.texi: Likewise.
6037 * doc/md.texi: Likewise.
6038 * doc/sourcebuild.texi: Likewise.
6039
6040 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6041
6042 PR middle-end/91603
6043 PR middle-end/91612
6044 PR middle-end/91613
6045 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
6046 and SSA_NAME referring to CONSTANT_P correctly.
6047
6048 2019-09-03 Richard Biener <rguenther@suse.de>
6049
6050 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
6051 (vn_nary_op_insert): Likewise.
6052 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
6053 (vn_nary_op_lookup): Likewise.
6054 (vn_nary_op_insert): Likewise.
6055
6056 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
6057
6058 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
6059 (*op0, 1) instead of XEXP (*op1, 0).
6060
6061 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6062
6063 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
6064 (aarch64_fjcvtzs): New define_insn.
6065 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
6066 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
6067 Add AARCH64_JSCVT.
6068 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
6069 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
6070 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6071 __ARM_FEATURE_JCVT where appropriate.
6072 * config/aarch64/arm_acle.h (__jcvt): Define.
6073
6074 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6075
6076 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
6077 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
6078 (aarch64_<frintnzs_op><mode>): New define_insn.
6079 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
6080 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6081 __ARM_FEATURE_FRINT when appropriate.
6082 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
6083 frint32x, frint64z, frint64x.
6084 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6085 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6086 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6087 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6088 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6089 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6090 * config/aarch64/iterators.md (VSFDF): Define.
6091 (FRINTNZX): Likewise.
6092 (frintnzs_op): Likewise.
6093
6094 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6095
6096 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6097 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6098 Cortex-A34.
6099 * config/aarch64/aarch64-tune.md: Regenerated.
6100 * doc/invoke.texi: Document the new processors.
6101
6102 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6103
6104 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6105 string.
6106 (ssbs): Likewise.
6107 (sve2): Likewise.
6108 (sve2-sm4): Likewise.
6109 (sveaes): Likewise.
6110 (svesha3): Likewise.
6111 (svebitperm): Likewise.
6112
6113 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6114 Richard Biener <rguenther@suse.de>
6115
6116 PR tree-optimization/91597
6117 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6118 BIT_AND_EXPR optimization for pointers, even if both operand
6119 ranges don't include NULL, the result can be NULL.
6120
6121 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6122
6123 PR middle-end/91605
6124 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6125 (non_mem_decl_p): ...this.
6126 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6127 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6128 unconditionally as before.
6129
6130 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6131
6132 PR target/91323
6133 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6134 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6135 * tree.def (LTGT_EXPR): Likewise.
6136 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6137
6138 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6139
6140 PR go/91617
6141 * fold-const.c (range_check_type): For enumeral and boolean
6142 type, pass 1 to type_for_size langhook instead of
6143 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6144 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6145 (build_range_check): Don't call unsigned_type_for for pointer types.
6146 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6147 range_check_type result.
6148
6149 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6150
6151 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6152 (replace_ref): Do not replace a chain of only two candidates which are
6153 valid memory references.
6154
6155 2019-09-02 Martin Liska <mliska@suse.cz>
6156
6157 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6158 Bail out when we'll end up with the same number of clusters as
6159 at the beginning.
6160 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6161 (jump_table_cluster::can_be_handled): Remove the guard
6162 as it's already handled in ::is_enabled. Allocate output
6163 after early bail out.
6164
6165 2019-09-02 Martin Liska <mliska@suse.cz>
6166
6167 PR gcov-profile/91601
6168 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6169 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6170 also negative edges.
6171 (circuit): Handle also negative edges as they can happen
6172 in some situations.
6173
6174 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6175
6176 PR target/91472
6177 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6178 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6179 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6180
6181 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6182
6183 PR middle-end/91623
6184 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6185 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6186 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6187 zero vector.
6188
6189 PR lto/91572
6190 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6191 GIMPLE_ASM TREE_LIST operands.
6192
6193 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6194
6195 * doc/generic.texi (Unary and Binary Expressions): Mark up
6196 an instance of TYPE_MIN.
6197
6198 2019-08-31 Stafford Horne <shorne@gmail.com>
6199
6200 * config/or1k/constraints.md (t): New constraint.
6201 * config/or1k/or1k.h (GOT_REGS): New register class.
6202 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6203
6204 2019-08-30 Jim Wilson <jimw@sifive.com>
6205
6206 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6207 and -fpic and -mplt then disable -msave-restore and warn.
6208
6209 2019-08-30 Martin Sebor <msebor@redhat.com>
6210
6211 PR middle-end/91599
6212 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6213 the statement doesn't have one.
6214 * gimple-pretty-print.c (percent_G_format): Same.
6215
6216 PR middle-end/91584
6217 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6218 before using them to validate MEM_REF offset.
6219
6220 2019-08-30 Marek Polacek <polacek@redhat.com>
6221
6222 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6223
6224 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6225
6226 * config/arm/arm.md (unaligned_loaddi,
6227 unaligned_storedi): New unspec insn patterns.
6228 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6229 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6230 and unaligned_storedi for 4-byte aligned memory.
6231 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6232 4-byte aligned memory.
6233
6234 2019-08-30 Martin Jambor <mjambor@suse.cz>
6235
6236 tree-optimization/91579
6237 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6238 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6239 appropriate.
6240 (arg_needs_copy_p): Removed.
6241 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6242 arg_needs_copy_p.
6243 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6244
6245 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6246
6247 * config/i386/i386-features.c
6248 (general_scalar_chain::compute_convert_gain):
6249 Correct cost for double-word shifts.
6250 (general_scalar_to_vector_candidate_p): Reject count operands
6251 greater or equal to mode bitsize.
6252
6253 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6254
6255 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6256 for moves between SSE and non-general registers and between
6257 mask and non-general registers.
6258 (ix86_register_move_cost): Remove stalled comment.
6259
6260 2019-08-29 Richard Biener <rguenther@suse.de>
6261
6262 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6263 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6264
6265 2019-08-29 Richard Biener <rguenther@suse.de>
6266
6267 PR bootstrap/91580
6268 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6269 Do not emit scalar copies for debug-insns, instead replace
6270 their uses with the reg copy used in the chain or reset them
6271 if there is a reaching definition outside of the chain as well.
6272
6273 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6274
6275 PR target/91560
6276 * config/i386/i386-expand.c (expand_vec_perm_movs,
6277 expand_vec_perm_blend, expand_vec_perm_vpermil,
6278 expand_vec_perm_pshufb, expand_vec_perm_1,
6279 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6280 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6281 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6282 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6283 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6284 comments - replace ix86_expand_vec_perm_builtin_1 with
6285 ix86_expand_vec_perm_const_1.
6286 (expand_vec_perm2_vperm2f128_vblend): New function.
6287 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6288 expand_vec_perm2_vperm2f128_vblend as last resort.
6289 (canonicalize_perm): Formatting fix.
6290
6291 PR tree-optimization/91351
6292 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6293 unsigned_type_for.
6294 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6295 range_check_type returns NULL.
6296 * tree-switch-conversion.c (switch_conversion::build_one_array):
6297 Use range_check_type instead of unsigned_type_for, don't perform
6298 linear opt if it returns NULL.
6299 (bit_test_cluster::find_bit_tests): Formatting fix.
6300 (bit_test_cluster::emit): Use range_check_type instead of
6301 unsigned_type_for.
6302 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6303 returns NULL.
6304
6305 2019-08-29 Richard Biener <rguenther@suse.de>
6306
6307 PR tree-optimization/91568
6308 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6309 (vect_update_max_nunits): Add overload for poly_uint64.
6310 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6311 (vect_build_slp_tree): Record max_nunits into the subtree
6312 and merge it upwards.
6313 (vect_print_slp_tree): Print max_nunits.
6314
6315 2019-08-28 Marek Polacek <polacek@redhat.com>
6316
6317 Implement P1152R4: Deprecating some uses of volatile.
6318 PR c++/91361
6319 * doc/invoke.texi: Document -Wvolatile.
6320
6321 2019-08-28 Marek Polacek <polacek@redhat.com>
6322
6323 PR c++/91360 - Implement C++20 P1143R2: constinit.
6324 * doc/invoke.texi: Document -Wc++20-compat.
6325
6326 2019-08-28 Martin Sebor <msebor@redhat.com>
6327
6328 PR tree-optimization/91457
6329 * builtins.c (component_size): New function.
6330 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6331 * builtins.h (compute_objsize): Add argument.
6332 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6333 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6334 (vrp_prop::check_mem_ref): Same.
6335 (vrp_prop::search_for_addr_array): Set no-warning bit.
6336 (check_array_bounds): Same.
6337
6338 2019-08-28 Martin Sebor <msebor@redhat.com>
6339
6340 PR driver/80545
6341 * opts-common.c (option_enabled): Correct checking for language
6342 options.
6343
6344 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6345
6346 * config/i386/i386.c (ix86_register_move_cost): Do not
6347 limit the cost of moves to/from XMM register to minimum 8.
6348
6349 2019-08-28 Martin Jambor <mjambor@suse.cz>
6350
6351 PR ipa/91468
6352 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6353 checking assert a normal assert to test it really is redundant.
6354 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6355 redundant test.
6356 (update_jump_functions_after_inlining): Removed combining unary
6357 arithmetic operations with an ancestor jump function.
6358 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6359 instead of t.
6360
6361 2019-08-28 Richard Biener <rguenther@suse.de>
6362
6363 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6364 add the MD problem.
6365
6366 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6367 Richard Biener <rguenther@suse.de>
6368
6369 * expr.c (expand_assignment): Handle misaligned DECLs.
6370 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6371 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6372 too.
6373 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6374 * varasm.c (build_constant_desc): Align constants of misaligned types.
6375 * config/arm/predicates.md (aligned_operand): New predicate.
6376 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6377 aligned_operand to check restrictions on memory addresses.
6378 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6379 * config/arm/vec-common.md (mov<VALL>): Likewise.
6380
6381 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6382
6383 PR libgomp/91530
6384 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6385 V_128 iterator instead of VI_128.
6386
6387 2019-08-28 Martin Liska <mliska@suse.cz>
6388
6389 PR tree-optimization/90970
6390 * builtins.c (check_access): Remove assignment to maxread
6391 as it hasn't been used since when it was introduced in r255755.
6392
6393 2019-08-27 Martin Sebor <msebor@redhat.com>
6394
6395 PR tree-optimization/91567
6396 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6397 of unknown strings.
6398 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6399 to PTRDIFF_MAX - 2.
6400
6401 2019-08-27 Jeff Law <law@redhat.com>
6402
6403 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6404 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6405
6406 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6407
6408 PR target/91528
6409 * config/i386/i386-features.c (convert_scalars_to_vector):
6410 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6411 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6412 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6413 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6414
6415 2019-08-27 Richard Biener <rguenther@suse.de>
6416
6417 * config/i386/i386-features.h
6418 (general_scalar_chain::~general_scalar_chain): Add.
6419 (general_scalar_chain::insns_conv): New bitmap.
6420 (general_scalar_chain::n_sse_to_integer): New.
6421 (general_scalar_chain::n_integer_to_sse): Likewise.
6422 (general_scalar_chain::make_vector_copies): Adjust signature.
6423 * config/i386/i386-features.c
6424 (general_scalar_chain::general_scalar_chain): Outline,
6425 initialize new members.
6426 (general_scalar_chain::~general_scalar_chain): New.
6427 (general_scalar_chain::mark_dual_mode_def): Record insns
6428 we need to insert conversions at and count them.
6429 (general_scalar_chain::compute_convert_gain): Account
6430 for conversion instructions at chain boundary.
6431 (general_scalar_chain::make_vector_copies): Generate a single
6432 copy for a def by a specific insn.
6433 (general_scalar_chain::convert_registers): First populate
6434 defs_map, then make copies at out-of chain insns.
6435
6436 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6437
6438 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6439 comment.
6440 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6441
6442 2019-08-27 Martin Liska <mliska@suse.cz>
6443
6444 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6445 loop.
6446 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6447 Enclose in anonymous namespace.
6448 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6449 hard_register initialization in braces.
6450 * tree-vrp.h (value_range_base::supports_type_p): Return false
6451 for function with boolean return type.
6452
6453 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6454
6455 * config/i386/i386.c (emit_i387_cw_initialization)
6456 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6457
6458 2019-08-26 Martin Sebor <msebor@redhat.com>
6459
6460 PR c++/83431
6461 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6462 (sprintf_dom_walker): Remove class.
6463 (get_int_range): Make argument const.
6464 (directive::fmtfunc, directive::set_precision): Same.
6465 (format_none): Same.
6466 (build_intmax_type_nodes): Same.
6467 (adjust_range_for_overflow): Same.
6468 (format_floating): Same.
6469 (format_character): Same.
6470 (format_string): Same.
6471 (format_plain): Same.
6472 (get_int_range): Cast away constness.
6473 (format_integer): Same.
6474 (get_string_length): Call get_range_strlen_dynamic. Handle
6475 null lendata.maxbound.
6476 (should_warn_p): Adjust argument scope qualifier.
6477 (maybe_warn): Same.
6478 (format_directive): Same.
6479 (parse_directive): Same.
6480 (is_call_safe): Same.
6481 (try_substitute_return_value): Same.
6482 (sprintf_dom_walker::handle_printf_call): Rename...
6483 (handle_printf_call): ...to this. Initialize target to host charmap
6484 here instead of in pass_sprintf_length::execute.
6485 (struct call_info): Make global.
6486 (sprintf_dom_walker::compute_format_length): Make global.
6487 (sprintf_dom_walker::handle_gimple_call): Same.
6488 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6489 * print-rtl.c (print_pattern): Reduce the number of spaces to
6490 avoid -Wformat-truncation.
6491 * tree-pass.h (make_pass_warn_printf): New function.
6492 * tree-ssa-strlen.c (strlen_optimize): New variable.
6493 (get_string_length): Add comments.
6494 (get_range_strlen_dynamic): New function.
6495 (check_and_optimize_call): New function.
6496 (handle_integral_assign): New function.
6497 (strlen_check_and_optimize_stmt): Factor code out into
6498 strlen_check_and_optimize_call and handle_integral_assign.
6499 (strlen_dom_walker::evrp): New member.
6500 (strlen_dom_walker::before_dom_children): Use evrp member.
6501 (strlen_dom_walker::after_dom_children): Use evrp member.
6502 (printf_strlen_execute): New function.
6503 (pass_strlen::gate): Update to handle printf calls.
6504 (dump_strlen_info): New function.
6505 (pass_data_warn_printf): New variable.
6506 (pass_warn_printf): New class.
6507 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6508 (handle_printf_call): Same.
6509 * tree-vrp.c (value_range_base::type): Adjust assertion.
6510 * vr-values.c (vr_values::update_value_range): Use type of the first
6511 argument rather than the second.
6512
6513 2019-08-26 Richard Biener <rguenther@suse.de>
6514
6515 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6516 Remove.
6517 (convert_scalars_to_vector): Do not call it.
6518
6519 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6520 Uros Bizjak <ubizjak@gmail.com>
6521
6522 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6523 CASE_MATHFN_FLOATN for roundeven.
6524 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6525 I387_ROUNDEVEN.
6526 (ix86_mode_needed): Likewise.
6527 (ix86_mode_after): Likewise.
6528 (ix86_mode_entry): Likewise.
6529 (ix86_mode_exit): Likewise.
6530 (ix86_emit_mode_set): Likewise.
6531 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6532 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6533 (ix86_entity): Add I387_ROUNDEVEN.
6534 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6535 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6536 (define_int_iterator): Likewise.
6537 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6538 (define_constant): Define ROUND_ROUNDEVEN mode.
6539 (define_attr): Add roundeven mode for i387_cw.
6540 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6541 * internal-fn.def (ROUNDEVEN): New builtin function.
6542 * optabs.def (roundeven_optab): New optab.
6543
6544 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6545
6546 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6547 for ROUNDEVEN.
6548 * builtins.def: Added function definitions for roundeven function
6549 variants.
6550 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6551 function call. Adjust condition for floor, ceil, trunc and round.
6552 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6553 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6554 (integer_valued_real_call_p): Added case for roundeven function.
6555 * real.c (is_even): New function. Returns true if real number is even,
6556 otherwise returns false.
6557 (is_halfway_below): New function. Returns true if real number is
6558 halfway between two integers, else return false.
6559 (real_roundeven): New function. Round real number to nearest integer,
6560 rounding halfway cases towards even.
6561 * real.h (real_value): Added descriptive comments. Added function
6562 declaration for roundeven function.
6563 * doc/extend.texi (Other Builtins): List roundeven variants among
6564 functions which can be handled as builtins.
6565
6566 2019-08-26 Richard Biener <rguenther@suse.de>
6567
6568 PR target/91522
6569 PR target/91527
6570 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6571 New member.
6572 (general_scalar_chain::replace_with_subreg): Remove.
6573 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6574 (general_scalar_chain::convert_reg): Adjust signature.
6575 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6576 iterate over all defs of a reg.
6577 (general_scalar_chain::replace_with_subreg): Remove.
6578 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6579 (general_scalar_chain::make_vector_copies): Populate defs_map,
6580 place copy only after defs that are used as vectors in the chain.
6581 (general_scalar_chain::convert_reg): Emit a copy for a specific
6582 def in a specific instruction.
6583 (general_scalar_chain::convert_op): All reg uses are converted here.
6584 (general_scalar_chain::convert_insn): Emit copies for scalar
6585 uses of defs here. Replace uses with the copies we created.
6586 Replace and convert the def. Adjust REG_DEAD notes, remove
6587 REG_EQUIV/EQUAL notes.
6588 (general_scalar_chain::convert_registers): Only handle copies
6589 into the chain here.
6590
6591 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6592
6593 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6594
6595 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6596
6597 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6598 Add nop_convert case.
6599 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6600 Fold all statements if requested.
6601 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6602 Allow to fold all statements.
6603 * tree-vrp.c (class vrp_folder):
6604 Let substitute_and_fold_engine fold all statements.
6605
6606 2019-08-26 Richard Biener <rguenther@suse.de>
6607
6608 PR tree-optimization/91526
6609 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6610 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6611 TODO_update_address_taken.
6612
6613 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6614
6615 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6616 __STDC_HOSTED__.
6617
6618 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6619
6620 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6621 machine mode for unspec_volatile operand.
6622
6623 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6624
6625 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6626 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6627 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6628 (prefer_neon_for_64bits): Remove.
6629 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6630 (tune_params): Remove PREF_NEON_64_FALSE uses.
6631 (arm_option_override): Remove prefer_neon selection code.
6632 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6633 * gcc/config/arm/arm-protos.h (tune_params): Remove
6634 prefer_neon_for_64bits.
6635 (prefer_neon_for_64bits): Remove.
6636
6637 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6638
6639 PR pch/61250
6640 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6641 and issue any diagnostics needed before collecting the pre-PCH
6642 state.
6643
6644 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6645
6646 PR middle-end/91283
6647 * common.opt (fexcess-precision=): Add Optimization flag. Use
6648 flag_excess_precision variable instead of
6649 flag_excess_precision_cmdline.
6650 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6651 member.
6652 (flag_excess_precision): Don't define.
6653 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6654 flag_excess_precision_cmdline. Remove comment.
6655 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6656 and x_flag_excess_precision instead of
6657 frontend_set_flag_excess_precision_cmdline and
6658 x_flag_excess_precision_cmdline.
6659 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6660 x_flag_excess_precision_cmdline.
6661 * toplev.c (init_excess_precision): Remove.
6662 (lang_dependent_init_target): Don't call it.
6663
6664 2019-08-23 Martin Liska <mliska@suse.cz>
6665
6666 * lto-wrapper.c (run_gcc): When setting jobserver
6667 set also parallel to 1. This was done so before r273908.
6668
6669 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6670
6671 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6672 (cortex-a76ae): Likewise.
6673 (cortex-a77): Likewise
6674 * config/arm/arm-tables.opt: Regenerate.
6675 * config/arm/arm-tune.md: Likewise.
6676 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6677 cortex-a77 CPU options.
6678
6679 2019-08-23 Martin Liska <mliska@suse.cz>
6680
6681 * profile.c (instrument_values): Do not set
6682 0 as last argument.
6683 * tree-profile.c (gimple_gen_interval_profiler): Remove
6684 last argument.
6685 (gimple_gen_pow2_profiler): Likewise.
6686 (gimple_gen_topn_values_profiler): Likewise.
6687 (gimple_gen_ic_profiler): Likewise.
6688 (gimple_gen_time_profiler): Likewise.
6689 (gimple_gen_average_profiler): Likewise.
6690 (gimple_gen_ior_profiler): Likewise.
6691 * value-prof.c (dump_histogram_value): Use default
6692 in switch statement instead of HIST_TYPE_MAX.
6693 (stream_in_histogram_value): Likewise.
6694 (gimple_duplicate_stmt_histograms): Do not
6695 use NULL for implicitly set arguments.
6696 (gimple_divmod_values_to_profile): Do not use
6697 reserve+quick_push.
6698 (gimple_indirect_call_to_profile): Likewise.
6699 (gimple_find_values_to_profile): Use implicit
6700 function call arguments.
6701 * value-prof.h (gimple_alloc_histogram_value):
6702 Set default values.
6703 (gimple_gen_interval_profiler): Remove last argument.
6704 (gimple_gen_pow2_profiler): Likewise.
6705 (gimple_gen_topn_values_profiler): Likewise.
6706 (gimple_gen_ic_profiler): Likewise.
6707 (gimple_gen_time_profiler): Likewise.
6708 (gimple_gen_average_profiler): Likewise.
6709 (gimple_gen_ior_profiler): Likewise.
6710
6711 2019-08-22 Martin Sebor <msebor@redhat.com>
6712
6713 PR middle-end/91490
6714 * builtins.c (c_strlen): Rename argument and introduce new local.
6715 Set no-warning bit on original argument.
6716 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6717 Fold empty and zero constructors into empty strings.
6718 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6719 for missing initializers.
6720 * tree.c (build_string_literal): Handle optional argument.
6721 * tree.h (build_string_literal): Add defaulted argument.
6722 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6723 no-warning bit on original expression.
6724
6725 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6726
6727 PR target/91481
6728 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6729 and UNSPEC_DARN_RAW.
6730 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6731 UNSPECV_DARN_RAW.
6732 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6733 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6734 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6735
6736 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6737
6738 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6739 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6740 * config/rs6000/rs6000.md (unspec): ... here.
6741 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6742 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6743 cmpeqb, *cmpeqb_internal): Delete, move to...
6744 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6745 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6746 cmpeqb, *cmpeqb_internal): ... here.
6747
6748 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6749
6750 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6751 intrinsics if __ARM_FP.
6752 Use __ARM_FEATURE_CRC32 ifdef guard.
6753
6754 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6755
6756 * config/arm/arm.md (neon_for_64bits): Remove.
6757 (avoid_neon_for_64bits): Remove.
6758 (arm_adddi3): Always split early.
6759 (arm_subdi3): Always split early.
6760 (negdi2): Remove Neon expansion.
6761 (split zero_extend): Split before reload.
6762 (split sign_extend): Split before reload.
6763
6764 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6765
6766 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6767 (qhs_extenddi_cstr): Likewise.
6768 * config/arm/arm.md (ashldi3): Always expand early.
6769 (ashlsi3): Likewise.
6770 (ashrsi3): Likewise.
6771 (zero_extend<mode>di2): Remove Neon variants.
6772 (extend<mode>di2): Likewise.
6773 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6774 (signed_shift_di3_neon): Likewise.
6775 (unsigned_shift_di3_neon): Likewise.
6776 (ashrdi3_neon_imm_noclobber): Likewise.
6777 (lshrdi3_neon_imm_noclobber): Likewise.
6778 (<shift>di3_neon): Likewise.
6779 (split extend): Remove DI extend split patterns.
6780
6781 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6782
6783 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6784 (split not): Add DImode not splitter.
6785 (anddi3): Remove pattern.
6786 (anddi3_insn): Likewise.
6787 (anddi_zesidi_di): Likewise.
6788 (anddi_sesdi_di): Likewise.
6789 (anddi_notdi_di): Likewise.
6790 (anddi_notzesidi_di): Likewise.
6791 (anddi_notsesidi_di): Likewise.
6792 (iordi3): Likewise.
6793 (iordi3_insn): Likewise.
6794 (iordi_zesidi_di): Likewise.
6795 (iordi_sesidi_di): Likewise.
6796 (xordi3): Likewise.
6797 (xordi3_insn): Likewise.
6798 (xordi_sesidi_di): Likewise.
6799 (xordi_zesidi_di): Likewise.
6800 (one_cmpldi2): Likewise.
6801 (one_cmpldi2_insn): Likewise.
6802 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6803 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6804 alternative.
6805 (iwmmxt_xordi3): Likewise.
6806 (iwmmxt_anddi3): Likewise.
6807 * config/arm/neon.md (orndi3_neon): Remove pattern.
6808 (anddi_notdi_di): Likewise.
6809 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6810 (arm_iordi_operand_neon): Likewise.
6811 (arm_xordi_operand_neon): Likewise.
6812 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6813 (iordi_notzesidi_di): Likewise.
6814 (iordi_notdi_zesidi): Likewise.
6815 (iordi_notsesidi_di): Likewise.
6816
6817 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6818
6819 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6820 insn.
6821 (iorsi3_compare0_scratch): Likewise.
6822
6823 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6824
6825 * config/aarch64/aarch64-simd-builtins.def:
6826 (ld1x4): New.
6827 (st1x4): Likewise.
6828 * config/aarch64/aarch64-simd.md:
6829 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6830 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6831 (aarch64_ld1_x4_<mode>): Likewise.
6832 (aarch64_st1_x4_<mode>): Likewise.
6833 * config/aarch64/arm_neon.h:
6834 (vld1_s8_x4): New function.
6835 (vld1q_s8_x4): Likewise.
6836 (vld1_s16_x4): Likewise.
6837 (vld1q_s16_x4): Likewise.
6838 (vld1_s32_x4): Likewise.
6839 (vld1q_s32_x4): Likewise.
6840 (vld1_u8_x4): Likewise.
6841 (vld1q_u8_x4): Likewise.
6842 (vld1_u16_x4): Likewise.
6843 (vld1q_u16_x4): Likewise.
6844 (vld1_u32_x4): Likewise.
6845 (vld1q_u32_x4): Likewise.
6846 (vld1_f16_x4): Likewise.
6847 (vld1q_f16_x4): Likewise.
6848 (vld1_f32_x4): Likewise.
6849 (vld1q_f32_x4): Likewise.
6850 (vld1_p8_x4): Likewise.
6851 (vld1q_p8_x4): Likewise.
6852 (vld1_p16_x4): Likewise.
6853 (vld1q_p16_x4): Likewise.
6854 (vld1_s64_x4): Likewise.
6855 (vld1_u64_x4): Likewise.
6856 (vld1_p64_x4): Likewise.
6857 (vld1q_s64_x4): Likewise.
6858 (vld1q_u64_x4): Likewise.
6859 (vld1q_p64_x4): Likewise.
6860 (vld1_f64_x4): Likewise.
6861 (vld1q_f64_x4): Likewise.
6862 (vst1_s8_x4): Likewise.
6863 (vst1q_s8_x4): Likewise.
6864 (vst1_s16_x4): Likewise.
6865 (vst1q_s16_x4): Likewise.
6866 (vst1_s32_x4): Likewise.
6867 (vst1q_s32_x4): Likewise.
6868 (vst1_u8_x4): Likewise.
6869 (vst1q_u8_x4): Likewise.
6870 (vst1_u16_x4): Likewise.
6871 (vst1q_u16_x4): Likewise.
6872 (vst1_u32_x4): Likewise.
6873 (vst1q_u32_x4): Likewise.
6874 (vst1_f16_x4): Likewise.
6875 (vst1q_f16_x4): Likewise.
6876 (vst1_f32_x4): Likewise.
6877 (vst1q_f32_x4): Likewise.
6878 (vst1_p8_x4): Likewise.
6879 (vst1q_p8_x4): Likewise.
6880 (vst1_p16_x4): Likewise.
6881 (vst1q_p16_x4): Likewise.
6882 (vst1_s64_x4): Likewise.
6883 (vst1_u64_x4): Likewise.
6884 (vst1_p64_x4): Likewise.
6885 (vst1q_s64_x4): Likewise.
6886 (vst1q_u64_x4): Likewise.
6887 (vst1q_p64_x4): Likewise.
6888 (vst1_f64_x4): Likewise.
6889 (vst1q_f64_x4): Likewise.
6890
6891 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6892
6893 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6894
6895 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6896 Richard Sandiford <richard.sandiford@arm.com>
6897
6898 PR target/88839
6899 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6900 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6901
6902 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6903
6904 PR target/90724
6905 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6906 in reg if it fails aarch64_plus_operand predicate.
6907
6908 2019-08-21 Richard Biener <rguenther@suse.de>
6909
6910 PR tree-optimization/91482
6911 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6912 BUILT_IN_ASSUME_ALIGNED calls.
6913
6914 2019-08-21 Richard Biener <rguenther@suse.de>
6915
6916 PR target/91498
6917 PR target/91503
6918 * config/i386/i386-features.c
6919 (general_scalar_chain::make_vector_copies): Copy stack temporary
6920 rtx when using it multiple times.
6921 (general_scalar_chain::convert_reg): Likewise.
6922
6923 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6924
6925 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6926
6927 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6928
6929 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6930 catch more redundant zero initialization cases.
6931 (dse_dom_walker::dse_optimize_stmt): Likewise.
6932
6933 2019-08-20 Richard Biener <rguenther@suse.de>
6934
6935 PR lto/91307
6936 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6937 by collect2 when targetm.have_ctors_dtors which avoids dragging
6938 in temporary filenames from LTO input objects.
6939
6940 2019-08-20 Richard Biener <rguenther@suse.de>
6941
6942 PR tree-optimization/37242
6943 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6944 to (T)a + (T)b if we know that a + b does not overflow.
6945
6946 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6947
6948 PR rtl-optimization/91347
6949 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6950 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6951
6952 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6953
6954 * calls.h (function_arg_info): Add a pass_by_reference field,
6955 defaulting to false.
6956 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6957 when applying pass-by-reference semantics.
6958 (initialize_argument_information): Likewise.
6959 (emit_library_call_value_1): Likewise.
6960 * function.c (assign_parm_data_one): Remove passed_pointer field.
6961 (assign_parm_find_data_types): Don't set it.
6962 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6963 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6964 arg.pass_by_reference instead of passed_pointer.
6965
6966 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6967
6968 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6969 into a single function_arg_info, updating its fields when we
6970 apply pass-by-reference and promotion semantics. Use the
6971 function_arg_info to track the mode rather than keeping it in
6972 a separate local variable.
6973 (initialize_argument_information): Likewise. Base the final
6974 arg_to_skip on this new function_arg_info rather than creating
6975 a new one from scratch.
6976
6977 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6978
6979 * function.c (assign_parm_data_one): Replace passed_type,
6980 promoted_mode and named_arg with a function_arg_info field.
6981 (assign_parm_find_data_types): Remove local variables and
6982 assign directly to "data". Make data->passed_mode shadow
6983 data->arg.mode until promotion, then assign the promoted
6984 mode to data->arg.mode.
6985 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6986 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6987 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6988 (assign_parm_setup_block, assign_parm_setup_reg)
6989 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6990 arg.mode instead of promoted_mode, arg.type instead of passed_type
6991 and arg.named instead of named_arg. Use data->arg for
6992 function_arg_info structures that had the field values passed_type,
6993 promoted_mode and named_arg. Base other function_arg_infos on
6994 data->arg, changing the necessary properties.
6995
6996 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6997
6998 * calls.h (apply_pass_by_reference_rules): Declare.
6999 * calls.c (apply_pass_by_reference_rules): New function.
7000 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
7001 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
7002 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7003 * function.c (assign_parm_find_data_types): Likewise.
7004 * var-tracking.c (prepare_call_arguments): Likewise.
7005
7006 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7007
7008 * target.def (must_pass_in_stack): Take a function_arg_info instead
7009 of a mode and a type.
7010 * doc/tm.texi: Regenerate.
7011 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
7012 instead of a mode and a type.
7013 (must_pass_in_stack_var_size_or_pad): Likewise.
7014 * calls.c (must_pass_in_stack_var_size): Likewise.
7015 (must_pass_in_stack_var_size_or_pad): Likewise.
7016 (initialize_argument_information): Update call to
7017 targetm.calls.must_pass_in_stack.
7018 (must_pass_va_arg_on_stack): Likewise.
7019 * function.c (assign_parm_find_entry_rtl): Likewise.
7020 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
7021 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7022 (alpha_function_arg_advance): Likewise.
7023 * config/cr16/cr16.c (cr16_function_arg): Likewise.
7024 (cr16_function_arg_advance): Likewise.
7025 * config/cris/cris.c (cris_pass_by_reference): Likewise.
7026 (cris_arg_partial_bytes): Likewise.
7027 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7028 * config/lm32/lm32.c (lm32_function_arg): Likewise.
7029 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
7030 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
7031 * config/mips/mips.c (mips_pass_by_reference): Likewise.
7032 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
7033 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
7034 * config/sh/sh.c (sh_pass_by_reference): Likewise.
7035 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7036 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7037 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
7038 instead of a mode and a type.
7039 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
7040 (fr30_num_arg_regs): Likewise.
7041 (fr30_setup_incoming_varargs): Update calls accordingly.
7042 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7043 (fr30_function_arg_advance): Likewise.
7044 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
7045 instead of a mode and a type.
7046 * config/gcn/gcn.c (num_arg_regs): Likewise.
7047 (gcn_function_arg, gcn_function_arg_advance): Update calls to
7048 num_arg_regs and targetm.calls.must_pass_in_stack.
7049 (gcn_arg_partial_bytes): Likewise.
7050 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
7051 function_arg_info instead of a mode and a type.
7052 (classify_argument): Update call accordingly.
7053 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
7054 function_arg_info instead of a mode and a type.
7055 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
7056 Likewise.
7057 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
7058 (rs6000_parm_needs_stack): Update call accordingly.
7059 (setup_incoming_varargs): Likewise.
7060
7061 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7062
7063 * target.def (callee_copies): Take a function_arg_info instead
7064 of a mode, type and named flag.
7065 * doc/tm.texi: Regenerate.
7066 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
7067 instead of a mode, type and named flag.
7068 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7069 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7070 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7071 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
7072 instead of a mode, type and named flag.
7073 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7074 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7075 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7076 * calls.h (reference_callee_copied): Take a function_arg_info
7077 instead of a mode, type and named flag.
7078 * calls.c (reference_callee_copied): Likewise.
7079 (initialize_argument_information): Update call accordingly.
7080 (emit_library_call_value_1): Likewise.
7081 * function.c (gimplify_parameters): Likewise.
7082 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
7083 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7084 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7085 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7086 (TARGET_CALLEE_COPIES): Define to
7087 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7088 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7089 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7090 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7091 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7092 instead of a mode, type and named flag.
7093 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7094 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7095 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7096 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7097 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7098 (TARGET_CALLEE_COPIES): Define to
7099 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7100 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7101 instead of a mode, type and named flag.
7102 * config/sh/sh.c (sh_callee_copies): Likewise.
7103 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7104 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7105 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7106
7107 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7108
7109 * target.def (function_arg_advance): Take a function_arg_info instead
7110 of a mode, type and named flag.
7111 * doc/tm.texi: Regenerate.
7112 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7113 instead of a mode, type and named flag.
7114 * targhooks.c (default_function_arg_advance): Likewise.
7115 * calls.c (initialize_argument_information): Update call to
7116 targetm.calls.function_arg_advance.
7117 (emit_library_call_value_1): Likewise.
7118 * dse.c (get_call_args): Likewise.
7119 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7120 * function.c (assign_parms, gimplify_parameters): Likewise.
7121 * var-tracking.c (prepare_call_arguments): Likewise.
7122 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7123 function_arg_info instead of a mode, type and named flag.
7124 (aarch64_setup_incoming_varargs): Update call accordingly.
7125 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7126 function_arg_info instead of a mode, type and named flag.
7127 (alpha_setup_incoming_varargs): Update call accordingly.
7128 * config/arc/arc.c (arc_function_arg_advance): Take a
7129 function_arg_info instead of a mode, type and named flag.
7130 (arc_setup_incoming_varargs): Update call accordingly.
7131 * config/arm/arm.c (arm_function_arg_advance): Take a
7132 function_arg_info instead of a mode, type and named flag.
7133 (cmse_func_args_or_return_in_stack): Update call accordingly.
7134 (arm_function_ok_for_sibcall): Likewise.
7135 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7136 * config/avr/avr.c (avr_function_arg_advance): Take a
7137 function_arg_info instead of a mode, type and named flag.
7138 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7139 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7140 (c6x_call_saved_register_used): Update call accordingly.
7141 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7142 function_arg_info instead of a mode, type and named flag.
7143 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7144 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7145 (csky_setup_incoming_varargs): Update call accordingly.
7146 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7147 function_arg_info instead of a mode, type and named flag.
7148 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7149 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7150 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7151 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7152 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7153 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7154 (ix86_setup_incoming_varargs): Update call accordingly.
7155 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7156 function_arg_info instead of a mode, type and named flag.
7157 (ia64_setup_incoming_varargs): Update call accordingly.
7158 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7159 function_arg_info instead of a mode, type and named flag.
7160 (iq2000_expand_prologue): Update call accordingly.
7161 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7162 function_arg_info instead of a mode, type and named flag.
7163 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7164 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7165 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7166 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7167 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7168 Likewise.
7169 (microblaze_expand_prologue): Update call accordingly.
7170 * config/mips/mips.c (mips_function_arg_advance): Take a
7171 function_arg_info instead of a mode, type and named flag.
7172 (mips_setup_incoming_varargs): Update call accordingly.
7173 (mips_output_args_xfer): Likewise.
7174 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7175 function_arg_info instead of a mode, type and named flag.
7176 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7177 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7178 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7179 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7180 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7181 (nios2_setup_incoming_varargs): Update call accordingly.
7182 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7183 function_arg_info instead of a mode, type and named flag.
7184 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7185 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7186 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7187 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7188 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7189 (riscv_setup_incoming_varargs): Update call accordingly.
7190 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7191 function_arg_info instead of a mode, type and named flag.
7192 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7193 Likewise.
7194 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7195 (rs6000_parm_needs_stack): Update call accordingly.
7196 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7197 instead of a mode, type and named flag.
7198 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7199 (s390_call_saved_register_used): Update call accordingly.
7200 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7201 instead of a mode, type and named flag.
7202 (sh_output_mi_thunk): Update call accordingly.
7203 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7204 function_arg_info instead of a mode, type and named flag.
7205 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7206 (spu_setup_incoming_varargs): Update call accordingly.
7207 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7208 function_arg_info instead of a mode, type and named flag.
7209 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7210 (tilegx_setup_incoming_varargs): Update call accordingly.
7211 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7212 function_arg_info instead of a mode, type and named flag.
7213 (tilegx_setup_incoming_varargs): Update call accordingly.
7214 * config/v850/v850.c (v850_function_arg_advance): Take a
7215 function_arg_info instead of a mode, type and named flag.
7216 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7217 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7218 (visium_setup_incoming_varargs): Update call accordingly.
7219 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7220 function_arg_info instead of a mode, type and named flag.
7221
7222 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7223
7224 * target.def (function_arg, function_incoming_arg): Take a
7225 function_arg_info instead of a mode, tree and named flag.
7226 * doc/tm.texi: Regenerate.
7227 * targhooks.h (default_function_arg): Take a function_arg_info
7228 instead of a mode, tree and named flag.
7229 (default_function_incoming_arg): Likewise.
7230 * targhooks.c (default_function_arg): Likewise.
7231 (default_function_incoming_arg): Likewise.
7232 * calls.h (function_arg_info::end_marker_p): New function.
7233 (function_arg_info::end_marker): Likewise.
7234 * calls.c (prepare_call_address, initialize_argument_information)
7235 (expand_call, emit_library_call_value_1): Update calls to
7236 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7237 * dse.c: Include calls.h.
7238 (get_call_args): Update call to targetm.calls.function_arg.
7239 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7240 * var-tracking.c (prepare_call_arguments): Likewise.
7241 * function.c (assign_parm_find_entry_rtl): Update call to
7242 targetm.calls.function_incoming_arg.
7243 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7244 function_arg_info instead of a mode, tree and named flag.
7245 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7246 * config/arc/arc.c (arc_function_arg): Likewise.
7247 * config/arm/arm.c (arm_function_arg): Likewise.
7248 (cmse_func_args_or_return_in_stack): Update call accordingly.
7249 (arm_function_ok_for_sibcall): Likewise.
7250 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7251 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7252 instead of a mode, tree and named flag.
7253 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7254 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7255 (c6x_call_saved_register_used): Update call accordingly.
7256 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7257 instead of a mode, tree and named flag.
7258 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7259 (cris_function_arg_1): Likewise.
7260 * config/csky/csky.c (csky_function_arg): Likewise.
7261 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7262 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7263 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7264 (frv_function_arg_1): Likewise.
7265 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7266 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7267 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7268 * config/i386/i386.c (ix86_function_arg): Likewise.
7269 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7270 (ia64_function_arg_1): Likewise.
7271 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7272 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7273 accordingly.
7274 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7275 instead of a mode, tree and named flag.
7276 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7277 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7278 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7279 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7280 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7281 (microblaze_expand_prologue): Update call accordingly.
7282 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7283 instead of a mode, tree and named flag.
7284 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7285 (mmix_function_arg_1): Likewise.
7286 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7287 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7288 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7289 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7290 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7291 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7292 (nvptx_function_incoming_arg): Likewise.
7293 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7294 * config/pa/pa.c (pa_function_arg): Likewise.
7295 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7296 * config/pru/pru.c (pru_function_arg): Likewise.
7297 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7298 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7299 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7300 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7301 (rs6000_parm_needs_stack): Update call accordingly.
7302 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7303 instead of a mode, tree and named flag.
7304 * config/s390/s390.c (s390_function_arg): Likewise.
7305 (s390_call_saved_register_used): Update call accordingly.
7306 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7307 instead of a mode, tree and named flag.
7308 (sh_output_mi_thunk): Update call accordingly.
7309 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7310 (sparc_function_incoming_arg): Take a function_arg_info instead of
7311 a mode, tree and named flag.
7312 * config/spu/spu.c (spu_function_arg): Likewise.
7313 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7314 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7315 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7316 * config/v850/v850.c (v850_function_arg): Likewise.
7317 * config/vax/vax.c (vax_function_arg): Likewise.
7318 * config/visium/visium.c (visium_function_arg): Likewise.
7319 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7320 (xtensa_function_incoming_arg): Likewise.
7321
7322 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7323
7324 * target.def (setup_incoming_varargs): Take a function_arg_info
7325 instead of a mode and tree.
7326 * doc/tm.texi: Regenerate.
7327 * targhooks.h (default_setup_incoming_varargs): Take a
7328 function_arg_info instead of a mode and tree.
7329 * targhooks.c (default_setup_incoming_varargs): Likewise.
7330 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7331 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7332 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7333 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7334 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7335 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7336 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7337 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7338 Likewise.
7339 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7340 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7341 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7342 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7343 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7344 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7345 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7346 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7347 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7348 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7349 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7350 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7351 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7352 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7353 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7354 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7355 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7356 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7357 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7358 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7359 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7360 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7361 * function.c (assign_parms_setup_varargs): Update call to
7362 targetm.calls.setup_incoming_varargs.
7363
7364 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7365
7366 * target.def (pass_by_reference): Take a function_arg_info instead
7367 of a mode, type and named flag.
7368 * doc/tm.texi: Regenerate.
7369 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7370 accordingly.
7371 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7372 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7373 function_arg_info instead of a mode, type and named flag.
7374 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7375 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7376 mode, type and named flag.
7377 * calls.c (pass_by_reference): Likewise.
7378 (pass_va_arg_by_reference): Update call accordingly.
7379 (initialize_argument_information): Likewise.
7380 (emit_library_call_value_1): Likewise.
7381 * function.c (assign_parm_find_data_types): Likewise.
7382 * var-tracking.c (prepare_call_arguments): Likewise.
7383 * stor-layout.c: Include calls.h.
7384 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7385 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7386 function_arg_info instead of a mode, type and named flag.
7387 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7388 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7389 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7390 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7391 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7392 (c6x_call_saved_register_used): Update call to pass_by_reference.
7393 * config/cris/cris.c (cris_pass_by_reference): Take a
7394 function_arg_info instead of a mode, type and named flag.
7395 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7396 function_arg_info instead of a mode, type and named flag.
7397 (epiphany_arg_partial_bytes): Update call accordingly.
7398 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7399 function_arg_info instead of a mode, type and named flag.
7400 (ft32_arg_partial_bytes): Update call accordingly.
7401 * config/i386/i386.c (ix86_pass_by_reference): Take a
7402 function_arg_info instead of a mode, type and named flag.
7403 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7404 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7405 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7406 (m32r_return_in_memory): Update call accordingly.
7407 * config/mips/mips.c (mips_pass_by_reference): Take a
7408 function_arg_info instead of a mode, type and named flag.
7409 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7410 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7411 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7412 (moxie_arg_partial_bytes): Update call accordingly.
7413 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7414 function_arg_info instead of a mode, type and named flag.
7415 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7416 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7417 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7418 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7419 (riscv_return_in_memory): Update call accordingly.
7420 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7421 function_arg_info instead of a mode, type and named flag.
7422 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7423 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7424 * config/s390/s390.c (s390_pass_by_reference): Take a
7425 function_arg_info instead of a mode, type and named flag.
7426 (s390_call_saved_register_used): Update call accordingly.
7427 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7428 instead of a mode, type and named flag.
7429 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7430 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7431 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7432 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7433 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7434 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7435
7436 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7437
7438 * target.def (arg_partial_bytes): Take a function_arg_info instead
7439 of a mode, type and named flag.
7440 * doc/tm.texi: Regenerate.
7441 * target.h (function_arg_info): Declare.
7442 * calls.h (function_arg_info): New class.
7443 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7444 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7445 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7446 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7447 * calls.c (initialize_argument_information): Update call to
7448 targetm.calls.partial_bytes.
7449 (emit_library_call_value_1): Likewise.
7450 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7451 * function.c (assign_parm_find_entry_rtl): Likewise.
7452 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7453 function_arg_info instead of a mode, type and named flag.
7454 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7455 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7456 (cmse_func_args_or_return_in_stack): Update accordingly.
7457 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7458 function_arg_info instead of a mode, type and named flag.
7459 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7460 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7461 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7462 * config/fr30/fr30.c: Include calls.h.
7463 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7464 type and named flag.
7465 * config/frv/frv.c: Include calls.h.
7466 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7467 type and named flag.
7468 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7469 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7470 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7471 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7472 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7473 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7474 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7475 Likewise.
7476 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7477 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7478 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7479 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7480 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7481 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7482 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7483 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7484 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7485 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7486 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7487 (rs6000_parm_needs_stack): Update call accordingly.
7488 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7489 function_arg_info instead of a mode, type and named flag.
7490 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7491 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7492
7493 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7494
7495 * calls.h (must_pass_va_arg_in_stack): Declare.
7496 * calls.c (must_pass_va_arg_in_stack): New function.
7497 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7498 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7499 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7500 Likewise.
7501 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7502
7503 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7504
7505 * calls.h (pass_va_arg_by_reference): Declare.
7506 * calls.c (pass_va_arg_by_reference): New function.
7507 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7508 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7509 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7510 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7511 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7512 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7513 (mips_gimplify_va_arg_expr): Likewise.
7514 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7515 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7516 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7517 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7518 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7519 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7520 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7521 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7522 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7523 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7524 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7525
7526 2019-08-20 Richard Biener <rguenther@suse.de>
7527
7528 PR target/91498
7529 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7530 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7531 (convert_scalars_to_vector): Add timode_p parameter and use it
7532 to guard TImode-only operation.
7533 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7534 (pass_stv::execute): Pass down timode_p.
7535
7536 2019-08-20 Lili Cui <lili.cui@intel.com>
7537
7538 * common/config/i386/i386-common.c
7539 (processor_names): Add tigerlake and cooperlake.
7540 (processor_alias_table): Add tigerlake and cooperlake.
7541 * config.gcc: Add -march=tigerlake and cooperlake.
7542 * config/i386/driver-i386.c
7543 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7544 Add "has_avx" to classify processor.
7545 * config/i386/i386-builtins.c (processor_model) :
7546 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7547 (arch_names_table): Add tigerlake and cooperlake.
7548 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7549 and PROCESSOR_COOPERLAKE.
7550 * config/i386/i386-c.c
7551 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7552 * config/i386/i386-options.c
7553 (m_TIGERLAKE) : Define.
7554 (m_COOPERLAKE) : Ditto.
7555 (m_CORE_AVX512): Ditto.
7556 (processor_cost_table): Add cascadelake.
7557 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7558 * config/i386/i386.h
7559 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7560 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7561 (PTA_MOVDIRI): Ditto.
7562 (PTA_MOVDIR64B): Ditto.
7563 (PTA_COOPERLAKE) : Ditto.
7564 (PTA_TIGERLAKE) : Ditto.
7565 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7566 * doc/extend.texi: Add tigerlake and cooperlake.
7567 * doc/invoke.texi: Add tigerlake and cooperlake.
7568
7569 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7570
7571 * doc/install.texi (Specific, alpha): Remove note to use
7572 binutils 2.11.2 or later.
7573
7574 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7575
7576 PR middle-end/89544
7577 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7578 when possible.
7579
7580 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7581
7582 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7583 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7584 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7585 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7586 * config/aarch64/constraints.md (Dt): New constraint
7587 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7588
7589 2019-08-19 Richard Biener <rguenther@suse.de>
7590
7591 PR tree-optimization/91403
7592 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7593 cases we can handle with tail-recursion...
7594 (follow_ssa_edge_expr): ... here. Do so.
7595
7596 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7597
7598 PR target/91441
7599 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7600 implemented for -fsanitize=kernel-address, and merge check logic
7601 with -fsanitize=address.
7602
7603 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7604
7605 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7606 for cpu and machine. Factor 64/32b builtins.
7607
7608 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7609
7610 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7611 gone, point to sourceforge.net.
7612
7613 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7614
7615 * doc/ux.texi (User Experience Guidelines): Update reference.
7616
7617 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7618
7619 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7620 not LGPL".
7621
7622 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7623
7624 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7625 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7626
7627 2019-08-16 Martin Sebor <msebor@redhat.com>
7628
7629 * tree.def (TYPE_SIZE): Clarify.
7630 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7631
7632 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7633
7634 PR tree-optimization/91109
7635 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7636 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7637 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7638
7639 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7640
7641 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7642 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7643 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7644 (uavg<mode>3_ceil): New expander.
7645 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7646 mode iterator when creating CONST1_RTX.
7647 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7648 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7649 mode iterator for const1_operand predicate.
7650
7651 2019-08-16 Richard Biener <rguenther@suse.de>
7652
7653 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7654 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7655 follow_ssa_edge.
7656 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7657 (analyze_evolution_in_loop): Likewise.
7658 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7659 (follow_ssa_edge_expr): ... here. Refactor code.
7660
7661 2019-08-16 Richard Biener <rguenther@suse.de>
7662
7663 PR target/91469
7664 * config/i386/i386-features.c
7665 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7666
7667 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7668
7669 PR other/91255
7670 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7671 only if subst_name matches curr_attr string.
7672
7673 2019-08-16 Richard Biener <rguenther@suse.de>
7674
7675 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7676 stmt at gsi_p, instead replace it with a NOP removed later.
7677 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7678 that became dead because of that.
7679
7680 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7681
7682 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7683 for which we can't represent a range.
7684 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7685 set_varying.
7686 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7687 Set VR_UNDEFINED if type is not supported.
7688 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7689 * tree-vrp.c (value_range_base::check): Assert that a varying has
7690 min/max set.
7691 (value_range_base::equal_p): Early bail for undefines.
7692 (value_range_base::set_varying): Accept a type.
7693 (value_range::set_varying): Same.
7694 (value_range_base::type): VARYING can have a type, while UNDEFINE
7695 is typeless.
7696 (value_range_base::dump): Print type for VARYING nodes.
7697 (value_range_base::set): Add type to VARYING.
7698 (extract_range_from_multiplicative_op): Pass type to set_varying.
7699 (extract_range_from_binary_expr): Same.
7700 (value_range_base::intersect_helper): Same.
7701 (value_range_base::union_helper): Same.
7702 (value_range_base::normalize_symbolics): Same.
7703 (determine_value_range_1): Same.
7704 * tree-vrp.h (class value_range_base): Add type to set_varying.
7705 Add prototype for dump(void).
7706 Add prototype for supports_type_p.
7707 (class value_range): Add type to set_varying.
7708 Add prototype for dump(void).
7709 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7710 set_varying.
7711 (vr_values::get_lattice_entry): Set varying even if propagation
7712 finished.
7713 Pass type to set_varying.
7714 (vr_values::get_value_range): Remove vr_const_varying.
7715 Reallocate the lattice if needed.
7716 (vr_values::update_value_range): Pass type to set_varying.
7717 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7718 (vr_values::extract_range_from_binary_expr): Same.
7719 (vr_values::extract_range_from_unary_expr): Same.
7720 (vr_values::extract_range_from_cond_expr): Same.
7721 (vr_values::check_for_binary_op_overflow): Same.
7722 (vr_values::extract_range_basic): Same.
7723 (vr_values::extract_range_from_assignment): Same.
7724 (vr_values::vr_values): Increase size of num_vr_values.
7725 (vr_values::extract_range_from_phi_node): Pass type to
7726 set_varying.
7727
7728 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7729
7730 PR target/90878
7731 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7732 for costs of hard register moves.
7733 (ix86_register_move_cost): Likewise.
7734 * config/i386/i386.h (processor_costs): Move costs of hard
7735 register moves to hard_register. Add int_load, int_store,
7736 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7737 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7738 for costs of RTL expressions.
7739 * config/i386/x86-tune-costs.h: Move costs of hard register
7740 moves to hard_register. Duplicate int_load, int_store,
7741 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7742 sse_load, sse_store for costs of RTL expressions.
7743
7744 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7745
7746 * target.def (setup_incoming_vararg_bounds): Remove.
7747 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7748 * doc/tm.texi: Regenerate.
7749 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7750 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7751 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7752 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7753
7754 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7755
7756 MSP430: Fix lines over 80 characters long in
7757 config/msp430/*.{c,h} files
7758
7759 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7760 specifier in string.
7761 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7762 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7763 redundant old comment.
7764 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7765 Split line more than 80 characters long.
7766 * config/msp430/msp430.c (msp430_option_override): Likewise.
7767 (msp430_return_in_memory): Likewise.
7768 (msp430_gimplify_va_arg_expr): Likewise.
7769 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7770 (msp430_legitimate_constant): Likewise.
7771 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7772 (msp430_attr): Likewise.
7773 (msp430_data_attr): Likewise.
7774 (msp430_start_function): Likewise.
7775 (gen_prefix): Likewise.
7776 (msp430_init_sections): Likewise.
7777 (msp430_select_section): Likewise.
7778 (msp430_function_section): Likewise.
7779 (msp430_unique_section): Likewise.
7780 (msp430_output_aligned_decl_common): Likewise.
7781 (msp430_do_not_relax_short_jumps): Likewise.
7782 (msp430_init_builtins): Likewise.
7783 (msp430_expand_delay_cycles): Likewise.
7784 (msp430_expand_prologue): Likewise.
7785 (msp430_expand_epilogue): Likewise.
7786 (msp430_expand_helper): Likewise.
7787 (msp430_split_movsi): Likewise.
7788 (msp430_print_operand): Likewise.
7789 (msp430_return_addr_rtx): Likewise.
7790 (msp430x_extendhisi): Likewise.
7791 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7792 (ASM_SPEC): Likewise.
7793 Remove very obvious comments.
7794 (LIB_SPEC): Split line more than 80 characters long.
7795 (EH_RETURN_HANDLER_RTX): Likewise.
7796 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7797
7798 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7799
7800 MSP430: Fix whitespace errors and incorrect indentation in
7801 config/msp430/*.{c,h} files
7802
7803 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7804 (msp430_select_hwmult_lib): Likewise.
7805 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7806 (msp430_extract_mcu_data): Likewise.
7807 (struct t_msp430_mcu_data): Likewise.
7808 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7809 before left square bracket.
7810 (msp430_option_override): Fix indentation.
7811 (msp430_hard_regno_nregs_with_padding): Likewise.
7812 (msp430_initial_elimination_offset): Likewise.
7813 (msp430_special_register_convention_p): Remove whitespace before left
7814 square bracket and after exclamation mark.
7815 (msp430_evaluate_arg): Likewise.
7816 (msp430_callee_copies): Fix indentation.
7817 (msp430_gimplify_va_arg_expr): Likewise.
7818 (msp430_function_arg_advance): Remove whitespace before left square
7819 bracket.
7820 (reg_ok_for_addr): Likewise.
7821 (msp430_preserve_reg_p): Likewise.
7822 (msp430_compute_frame_info): Likewise.
7823 (msp430_asm_output_addr_const_extra): Add space between function name
7824 and open parenthesis.
7825 (has_section_name): Fix indentation.
7826 (msp430_attr): Remove trailing whitespace.
7827 (msp430_section_attr): Likewise.
7828 (msp430_data_attr): Likewise.
7829 (struct msp430_attribute_table): Fix comment and whitespace.
7830 (msp430_start_function): Remove whitespace before left square bracket.
7831 Add space between function name and open parenthesis.
7832 (msp430_select_section): Remove trailing whitespace.
7833 (msp430_section_type_flags): Remove trailing whitespace.
7834 (msp430_unique_section): Remove space before closing parenthesis.
7835 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7836 (msp430_builtins): Remove whitespace before left square bracket.
7837 (msp430_init_builtins): Fix indentation.
7838 (msp430_expand_prologue): Remove whitespace before left square bracket.
7839 Remove space before closing parenthesis.
7840 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7841 (msp430_split_movsi): Remove space before closing parenthesis.
7842 (helper_function_name_mappings): Fix indentation.
7843 (msp430_use_f5_series_hwmult): Fix whitespace.
7844 (use_32bit_hwmult): Likewise.
7845 (msp430_no_hwmult): Likewise.
7846 (msp430_output_labelref): Remove whitespace before left square bracket.
7847 (msp430_print_operand_raw): Likewise.
7848 (msp430_print_operand_addr): Likewise.
7849 (msp430_print_operand): Add two spaces after '.' in comment.
7850 Fix trailing whitespace.
7851 (msp430x_extendhisi): Fix indentation.
7852 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7853 tab.
7854 (PC_REGNUM): Likewise.
7855 (STACK_POINTER_REGNUM): Likewise.
7856 (CC_REGNUM): Likewise.
7857
7858 2019-08-15 Richard Biener <rguenther@suse.de>
7859
7860 PR target/91454
7861 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7862 helper.
7863 (general_scalar_chain::make_vector_copies): Use it.
7864
7865 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7866
7867 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7868
7869 2019-08-15 Martin Liska <mliska@suse.cz>
7870
7871 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7872 operators with no arguments.
7873 (eliminate_unnecessary_stmts): Likewise here.
7874
7875 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7876
7877 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7878 <case COMPARE>: Revert 2019-08-14 change.
7879 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7880 for (TARGET_64BIT || mode != DImode).
7881
7882 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7883
7884 * tree-vrp.c (value_range_base::set): Merge in code from
7885 value_range_base::set_and_canonicalize.
7886 Enforce canonicalization at set time.
7887 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7888 (value_range_base::set_undefined): Inline call to set().
7889 (value_range_base::set_varying): Same.
7890 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7891 (vrp_val_max): New argument handle_pointers.
7892 (vrp_val_min): Same.
7893 (ranges_from_anti_range): Same.
7894 (extract_range_into_wide_ints): Use tree argument instead of sign
7895 and precision.
7896 (extract_range_from_multiplicative_op): Take in tree type instead
7897 of precision and sign. Adapt function for canonicalized ranges.
7898 (extract_range_from_binary_expr): Pass type to
7899 extract_range_from_multiplicative_op.
7900 Adapt for canonicalized ranges.
7901 (extract_range_from_unary_expr): Same.
7902 (value_range_base::intersect_helper): Adjust for canonicalized
7903 ranges.
7904 (value_range_base::union_helper): Same.
7905 (value_range_base::normalize_symbolics): New.
7906 * tree-vrp.h (class value_range_base): Remove
7907 set_and_canonicalize.
7908 New prototype for normalize_symbolics.
7909 (class value_range): Remove set_and_canonicalize.
7910 (vrp_val_min): Adjust prototype.
7911 (vrp_val_max): Same.
7912 * vr-values.c
7913 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7914 instead of set_and_canonicalize.
7915
7916 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7917
7918 PR middle-end/91444
7919 * tree-vect-stmts.c (vectorizable_call): Check that the function
7920 is a BUILT_IN_MD function before passing it to
7921 targetm.vectorize.builtin_md_vectorized_function.
7922
7923 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7924
7925 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7926 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7927 (aarch64_select_early_remat_modes): Use it.
7928
7929 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7930
7931 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7932 16 for SVE predicates even if they are fixed-length.
7933
7934 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7935
7936 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7937 operand order match the MOV /Z alias.
7938
7939 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7940
7941 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7942 the vector pattern as an aarch64_svpattern argument. Update the
7943 overloaded caller accordingly.
7944 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7945 (aarch64_output_sve_vector_inc_dec): Likewise.
7946
7947 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7948
7949 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7950 multiplication case, try to compute VG * (lowest set bit) directly
7951 rather than always basing the multiplication on VG. Use
7952 expand_mult for the multiplication if we can.
7953
7954 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7955
7956 * config/aarch64/aarch64-protos.h
7957 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7958 (aarch64_sve_inc_dec_immediate_p): Rename to...
7959 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7960 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7961 (aarch64_output_sve_scalar_inc_dec): Declare.
7962 (aarch64_output_sve_inc_dec_immediate): Rename to...
7963 (aarch64_output_sve_vector_inc_dec): ...this.
7964 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7965 (aarch64_output_sve_scalar_inc_dec): New functions.
7966 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7967 arguments. Only handle true ADDVL and ADDPL instructions;
7968 don't emit an INC or DEC.
7969 (aarch64_sve_inc_dec_immediate_p): Rename to...
7970 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7971 (aarch64_output_sve_inc_dec_immediate): Rename to...
7972 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7973 aarch64_sve_vector_inc_dec_immediate_p.
7974 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7975 (aarch64_sve_plus_immediate): New predicates.
7976 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7977 rather than aarch64_sve_addvl_addpl_immediate.
7978 (aarch64_sve_inc_dec_immediate): Rename to...
7979 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7980 aarch64_sve_vector_inc_dec_immediate_p.
7981 (aarch64_sve_add_operand): Update accordingly.
7982 * config/aarch64/constraints.md (Uai): New constraint.
7983 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7984 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7985 operand into a register if it satisfies aarch64_sve_plus_immediate.
7986 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7987 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7988 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7989 aarch64_output_sve_vector_inc_dec instead of
7990 aarch64_output_sve_inc_dec_immediate.
7991
7992 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7993
7994 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7995 (UNSPEC_REVW): New constants.
7996 (elem_bits): New mode attribute.
7997 (SVE_INT_UNARY): New int iterator.
7998 (optab): Handle UNSPEC_REV[BHW].
7999 (sve_int_op): New int attribute.
8000 (min_elem_bits): Handle VNx16QI and the predicate modes.
8001 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
8002 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
8003 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
8004 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
8005 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
8006 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
8007 unspecs based on the total width of the reversed data.
8008 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
8009 reinterpret followed by a subreg on big-endian targets.
8010
8011 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8012 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8013
8014 * config/aarch64/aarch64-sve.md
8015 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
8016 alternatives in which one of the inputs is in the same register
8017 as the output.
8018
8019 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8020
8021 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
8022 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
8023
8024 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8025
8026 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
8027 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
8028
8029 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8030 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8031
8032 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
8033 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
8034 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
8035
8036 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8037 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8038
8039 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
8040 Add an alternative that uses reversed shifts.
8041
8042 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8043
8044 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
8045 struct.
8046
8047 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8048
8049 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
8050 a commutativity marker.
8051
8052 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8053 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8054
8055 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
8056 (aarch64_prepare_sve_cond_int_fma): Declare.
8057 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
8058 (aarch64_prepare_sve_int_fma): New functions.
8059 (aarch64_prepare_sve_cond_int_fma): Likewise.
8060 * config/aarch64/aarch64-sve.md
8061 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
8062 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
8063 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
8064 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
8065 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
8066 (*madd<mode>): Rename to...
8067 (*fma<mode>4): ...this.
8068 (*msub<mode>): Rename to...
8069 (*fnma<mode>4): ...this.
8070
8071 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8072 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8073
8074 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
8075 Print 2.0 naturally.
8076 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
8077 * config/aarch64/predicates.md
8078 (aarch64_sve_float_negated_arith_immediate): New predicate,
8079 renamed from aarch64_sve_float_arith_with_sub_immediate.
8080 (aarch64_sve_float_arith_with_sub_immediate): Test for both
8081 positive and negative constants.
8082 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
8083 or an aarch64_sve_float_arith_with_sub_immediate.
8084 * config/aarch64/constraints.md (vsN): Use
8085 aarch64_sve_float_negated_arith_immediate.
8086 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8087 iterator.
8088 (sve_pred_fp_rhs2_immediate): New int attribute.
8089 * config/aarch64/aarch64-sve.md
8090 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8091 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8092 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8093 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8094 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8095 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8096
8097 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8098 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8099
8100 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8101 (*aarch64_cond_abd<SVE_F:mode>_3)
8102 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8103
8104 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8105 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8106
8107 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8108 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8109
8110 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8111 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8112
8113 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8114 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8115 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8116 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8117 optabs.
8118 * optabs.h (create_convert_operand_from): Expand comment.
8119 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8120 when mapping scalar rtxes to vector operands.
8121 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8122 ashiftrt and lshiftrt.
8123 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8124 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8125 (*cond_<optab><mode>_any_const): New patterns.
8126
8127 2019-08-15 Martin Liska <mliska@suse.cz>
8128
8129 PR ipa/91438
8130 * cgraph.c (cgraph_node::remove): When setting
8131 n->origin = NULL for all nested functions, reset
8132 also next_nested.
8133
8134 2019-08-15 Martin Liska <mliska@suse.cz>
8135
8136 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8137 and next_nested.
8138
8139 2019-08-15 Martin Liska <mliska@suse.cz>
8140
8141 PR ipa/91404
8142 * passes.c (order): Remove.
8143 (uid_hash_t): Likewise).
8144 (remove_cgraph_node_from_order): Remove from set
8145 of pointers (cgraph_node *).
8146 (insert_cgraph_node_to_order): New.
8147 (duplicate_cgraph_node_to_order): New.
8148 (do_per_function_toporder): Register all 3 cgraph hooks.
8149 Skip removed_nodes now as we know about all of them.
8150
8151 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8152
8153 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8154 <case E_V8QImode>: Use vector_set path for
8155 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8156 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8157 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8158
8159 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8160
8161 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8162
8163 2019-08-14 Martin Sebor <msebor@redhat.com>
8164
8165 PR tree-optimization/91294
8166 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8167 source length as exact.
8168
8169 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8170
8171 * doc/extend.texi: Add "noinit" attribute documentation.
8172 * doc/sourcebuild.texi: Add noinit effective target documentation.
8173 * varasm.c (default_section_type_flags): Add support for "noinit"
8174 section.
8175 (default_elf_select_section): Add support for "noinit" attribute.
8176 * config/msp430/msp430.c (msp430_attribute_table): Remove
8177 "noinit" entry.
8178
8179 2019-08-14 Richard Biener <rguenther@suse.de>
8180 Uroš Bizjak <ubizjak@gmail.com>
8181
8182 PR target/91154
8183 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8184 mode arguments.
8185 (scalar_chain::smode): New member.
8186 (scalar_chain::vmode): Likewise.
8187 (dimode_scalar_chain): Rename to...
8188 (general_scalar_chain): ... this.
8189 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8190 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8191 base with TImode and V1TImode.
8192 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8193 (general_scalar_chain::vector_const_cost): Adjust for SImode
8194 chains.
8195 (general_scalar_chain::compute_convert_gain): Likewise. Add
8196 {S,U}{MIN,MAX} support.
8197 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8198 (general_scalar_chain::make_vector_copies): Likewise. Handle
8199 non-DImode chains appropriately.
8200 (general_scalar_chain::convert_reg): Likewise.
8201 (general_scalar_chain::convert_op): Likewise.
8202 (general_scalar_chain::convert_insn): Likewise. Add
8203 fatal_insn_not_found if the result is not recognized.
8204 (convertible_comparison_p): Pass in the scalar mode and use that.
8205 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8206 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8207 (scalar_to_vector_candidate_p): Remove by inlining into single
8208 caller.
8209 (general_remove_non_convertible_regs): Rename from
8210 dimode_remove_non_convertible_regs.
8211 (remove_non_convertible_regs): Remove by inlining into single caller.
8212 (convert_scalars_to_vector): Handle SImode and DImode chains
8213 in addition to TImode chains.
8214 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8215 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8216 (*<maxmin>di3_doubleword): Likewise.
8217
8218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8219 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8220
8221 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8222 (*cond_bic<mode>_any): New patterns.
8223
8224 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8225
8226 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8227 take the equivalent mask, as well as a bit count.
8228 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8229 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8230 (aarch64_sve_pred_and_operand): New predicates.
8231 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8232 code attribute.
8233 * config/aarch64/aarch64-sve.md
8234 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8235 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8236
8237 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8238
8239 * config/aarch64/aarch64-sve.md
8240 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8241 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8242 New patterns.
8243
8244 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8245 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8246
8247 * config/aarch64/aarch64-sve.md
8248 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8249 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8250
8251 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8252 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8253
8254 * config/aarch64/aarch64-sve.md
8255 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8256 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8257
8258 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8259
8260 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8261 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8262 New pattern.
8263
8264 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8265 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8266
8267 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8268
8269 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8270 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8271
8272 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8273 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8274 (aarch64_print_operand): Add support for %I.
8275 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8276 Bitcast floating-point constants to the corresponding integer constant.
8277 (aarch64_float_const_representable_p): Handle vectors as well
8278 as scalars.
8279 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8280 for the new vcond_mask_<mode><vpred> expander.
8281 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8282 test aarch64_float_const_representable_p.
8283 (aarch64_sve_reg_or_dup_imm): New predicate.
8284 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8285 gen_vcond_mask_<mode><vpred> instead of
8286 gen_aarch64_sve_dup<mode>_const.
8287 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8288 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8289 for operands 1 and 2 respectively. Force operand 2 into a
8290 register if operand 1 is a register. Fold old define_insn...
8291 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8292 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8293 floating-point constants that can be moved as integers. Add
8294 alternatives for MOV /M and FMOV /M.
8295 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8296 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8297 1 and 2 respectively.
8298 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8299 as scalars.
8300 (vss): New constraint.
8301
8302 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8303
8304 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8305 (aarch64_sve_float_maxmin_operand): New predicates.
8306 * config/aarch64/constraints.md (vsB): New constraint.
8307 (vsM): Fix typo.
8308 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8309 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8310 UNSPEC_COND_FMINNM.
8311 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8312 Use aarch64_sve_float_maxmin_operand for operand 2.
8313 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8314 Add alternatives for the constant forms.
8315
8316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8317
8318 * config/aarch64/constraints.md (vsb): New constraint.
8319 (vsm): Generalize description.
8320 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8321 iterator.
8322 (sve_imm_con): Handle smax, smin, umax and umin.
8323 (sve_imm_prefix): New code attribute.
8324 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8325 (aarch64_sve_vsb_operand): New predicates.
8326 (aarch64_sve_mul_immediate): Rename to...
8327 (aarch64_sve_vsm_immediate): ...this.
8328 (aarch64_sve_mul_operand): Rename to...
8329 (aarch64_sve_vsm_operand): ...this.
8330 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8331 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8332 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8333 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8334 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8335 add movprfx support for the immediate alternatives.
8336 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8337 of the above.
8338 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8339 for operand 3.
8340
8341 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8342
8343 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8344 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8345 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8346
8347 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8348
8349 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8350 (optab, sve_int_op): Handle them.
8351 * config/aarch64/aarch64-sve.md: Expand comment.
8352
8353 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8354
8355 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8356 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8357 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8358
8359 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8360
8361 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8362 (aarch64_expand_sve_const_pred_trn): New functions.
8363 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8364 use the above functions when the parameter is true.
8365 (aarch64_expand_sve_const_pred): Update call accordingly.
8366 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8367 Rename to...
8368 (@aarch64_sve_<perm_insn><mode>): ...this.
8369
8370 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8371
8372 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8373 Declare.
8374 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8375 (aarch64_sve_emit_int_cmp): New functions.
8376 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8377 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8378 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8379 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8380 (UNSPEC_PRED_Z): New unspec.
8381 (set_clobber_cc_nzc): Delete.
8382 * config/aarch64/aarch64-sve.md: Add a block comment about
8383 UNSPEC_PRED_Z.
8384 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8385 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8386 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8387 UNSPEC_MERGE_PTRUE.
8388 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8389 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8390 check for compatible predicates.
8391 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8392 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8393 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8394 comparisons above.
8395
8396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8397
8398 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8399 * config/aarch64/aarch64-sve.md: Add a section describing it.
8400 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8401 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8402 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8403 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8404 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8405 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8406 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8407 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8408 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8409 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8410 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8411 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8412 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8413 (aarch64_evpc_rev_local): Update accordingly.
8414
8415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8416
8417 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8418 iterators.
8419 (SVE_BHSI, SVE_SDI): Tweak comment.
8420 (SVE_HSDI): Likewise. Fix definition.
8421 (SVE_SDF): New mode iterator.
8422 (elem_bits): New mode attribute.
8423 (SVE_COND_FCVT): New int iterator.
8424 * config/aarch64/aarch64-sve.md
8425 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8426 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8427 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8428 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8429 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8430 ...these new patterns.
8431 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8432 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8433 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8434 Merge into...
8435 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8436 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8437 ...these new patterns.
8438 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8439 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8440 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8441 ...this new pattern.
8442 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8443 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8444 ...this new pattern.
8445 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8446
8447 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8448
8449 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8450 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8451 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8452 unspecs.
8453 (optab, su): Handle them.
8454 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8455 * config/aarch64/aarch64-sve.md
8456 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8457 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8458 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8459 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8460 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8461 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8462 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8463 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8464 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8465 FIXUORS.
8466 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8467 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8468 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8469 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8470 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8471 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8472 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8473 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8474 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8475 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8476 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8477 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8478 of UNSPEC_FLOAT_CONVERT.
8479 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8480 aarch64_sve_extend<mode><Vwide>2.
8481
8482 2019-08-14 Richard Biener <rguenther@suse.de>
8483
8484 PR target/91154
8485 * config/i386/i386-features.c
8486 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8487 individual instruction gain. Fix reg-reg copy GRP cost. Use
8488 ix86_cost->sse_op for vector instruction costs.
8489
8490 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8491
8492 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8493 (cmp_op): Handle it.
8494 (SVE_COND_FP_CMP): Rename to...
8495 (SVE_COND_FP_CMP_I0): ...this.
8496 (SVE_FP_CMP): Remove.
8497 * config/aarch64/aarch64-sve.md
8498 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8499 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8500 using unspecs to represent the comparison.
8501 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8502 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8503 accordingly.
8504 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8505 (aarch64_unspec_cond_code): Move after integer code. Handle
8506 UNORDERED.
8507 (aarch64_emit_sve_predicated_cond): Replace with...
8508 (aarch64_emit_sve_fp_cond): ...this new function.
8509 (aarch64_emit_sve_or_conds): Replace with...
8510 (aarch64_emit_sve_or_fp_conds): ...this new function.
8511 (aarch64_emit_sve_inverted_cond): Replace with...
8512 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8513 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8514
8515 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8516
8517 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8518 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8519 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8520 SVE_HSD instead of SVE_SD.
8521
8522 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8523 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8524
8525 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8526 iterator.
8527 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8528 attributes.
8529 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8530 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8531 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8532 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8533 (*div<SVE_F:mode>3): Generalize to...
8534 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8535
8536 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8537 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8538
8539 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8540 constants.
8541 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8542 predicate.
8543 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8544 Declare.
8545 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8546 function.
8547 * config/aarch64/aarch64-sve.md: Add a block comment about the
8548 handling of predicated FP operations.
8549 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8550 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8551 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8552 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8553 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8554 operand.
8555 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8556 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8557 operand.
8558 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8559 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8560 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8561 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8562 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8563 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8564 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8565 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8566 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8567 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8568 strictness operands. Use aarch64_sve_pred_dominates_p to check
8569 whether the predicate on the conditional operation is suitable
8570 for merging. Split patterns into the canonical equal-predicate form.
8571 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8572 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8573
8574 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8575 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8576
8577 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8578 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8579 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8580 rtx codes.
8581 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8582 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8583 unspecs.
8584
8585 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8586 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8587
8588 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8589 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8590 actually has, rather than relying on REG_EQUAL notes.
8591 Make the insn operand order match the SVE operand order.
8592 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8593 the SVE operand order.
8594
8595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8596
8597 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8598 (aarch64_emit_set_immediate): Likewise.
8599 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8600 (aarch64_pfalse_reg): Likewise.
8601 (aarch64_convert_sve_data_to_pred): New function.
8602 (aarch64_sve_move_pred_via_while): Take an optional target register
8603 and the required register mode.
8604 (aarch64_expand_sve_const_pred_1): New function.
8605 (aarch64_expand_sve_const_pred): Likewise.
8606 (aarch64_expand_mov_immediate): Build an all-true predicate
8607 if the significant bits of the immediate are all true. Use
8608 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8609 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8610 before register allocation.
8611 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8612 a VNx16BI PTRUE when splitting the memory alternative.
8613 (vec_duplicate<mode>): Update accordingly.
8614 (*pred_cmp<cmp_op><mode>): Rename to...
8615 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8616
8617 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8618
8619 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8620 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8621 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8622 (UNSPEC_PTEST): New unspec.
8623 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8624 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8625 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8626 * config/aarch64/aarch64-sve.md: Add a new section describing the
8627 handling of UNSPEC_PTEST.
8628 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8629 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8630 (ptest_ptrue<mode>): Replace with...
8631 (aarch64_ptest<mode>): ...this new pattern.
8632 (cbranch<mode>4): Update after above changes.
8633 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8634 UNSPEC_PTEST_PTRUE.
8635 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8636 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8637 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8638
8639 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8640
8641 PR lto/91287
8642 * builtins.c (builtin_with_linkage_p): New function.
8643 * builtins.h (builtin_with_linkage_p): New function.
8644 * symtab.c (write_symbol): Remove redundant assert.
8645 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8646 Remove FIXME and use builtin_with_linkage_p.
8647
8648 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8649
8650 PR middle-end/91421
8651 * tree-core.h (function_decl::function_code): Change type to
8652 unsigned int.
8653 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8654 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8655 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8656 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8657 is BUILT_IN_NORMAL.
8658 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8659 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8660 (fndecl_built_in_p): Change the type of the "name" argument to
8661 unsigned int.
8662 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8663 after check for DECL_BUILT_IN_CLASS.
8664 * cgraphclones.c (build_function_decl_skip_args): Use
8665 set_decl_built_in_function.
8666 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8667 * ipa-split.c (split_function): Likewise.
8668 * langhooks.c (add_builtin_function_common): Likewise.
8669 * omp-simd-clone.c (simd_clone_create): Likewise.
8670 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8671 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8672 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8673 DECL_FUNCTION_CODE.
8674 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8675 instead of DECL_FUNCTION_CODE.
8676 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8677 instead of DECL_FUNCTION_CODE.
8678 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8679 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8680 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8681 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8682 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8683 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8684 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8685 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8686 (alpha_gimple_fold_builtin): Likewise.
8687 * config/arc/arc.c (arc_expand_builtin): Likewise.
8688 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8689 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8690 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8691 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8692 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8693 * config/frv/frv.c (frv_expand_builtin): Likewise.
8694 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8695 (gcn_expand_builtin): Likewise.
8696 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8697 (fold_builtin_cpu): Likewise.
8698 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8699 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8700 (ix86_gimple_fold_builtin): Likewise.
8701 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8702 (ia64_expand_builtin): Likewise.
8703 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8704 * config/mips/mips.c (mips_expand_builtin): Likewise.
8705 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8706 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8707 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8708 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8709 * config/pa/pa.c (pa_expand_builtin): Likewise.
8710 * config/pru/pru.c (pru_expand_builtin): Likewise.
8711 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8712 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8713 Likewise.
8714 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8715 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8716 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8717 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8718 (rs6000_builtin_reciprocal): Likewise.
8719 * config/rx/rx.c (rx_expand_builtin): Likewise.
8720 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8721 * config/s390/s390.c (s390_expand_builtin): Likewise.
8722 * config/sh/sh.c (sh_expand_builtin): Likewise.
8723 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8724 (sparc_fold_builtin): Likewise.
8725 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8726 * config/spu/spu.c (spu_expand_builtin): Likewise.
8727 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8728 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8729 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8730 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8731 (xtensa_expand_builtin): Likewise.
8732
8733 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8734
8735 PR middle-end/91421
8736 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8737 before the DECL_FUNCTION_CODE.
8738 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8739 to check for a BUILT_IN_ALLOCA call.
8740 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8741 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8742 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8743 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8744 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8745 for BUILT_IN_NORMAL functions.
8746 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8747 test for BUILT_IN_TM_ABORT.
8748 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8749 to check for a BUILT_IN_STACK_RESTORE call.
8750 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8751 * tree-ssa-threadedge.c
8752 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8753 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8754 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8755 test for a BUILT_IN_NORMAL call instead of a negative test for
8756 an internal function call.
8757
8758 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8759
8760 * tree.h (build_vector_a_then_b): Declare.
8761 * tree.c (build_vector_a_then_b): New function.
8762 * fold-const-call.c (fold_while_ult): Likewise.
8763 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8764 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8765 (aarch64_svpattern): New enum.
8766 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8767 constants through aarch64_expand_mov_immediate.
8768 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8769 than general_operand as the predicate for operand 1.
8770 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8771 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8772 insn_type.
8773 (simd_immediate_info::simd_immediate_info): New overload that
8774 takes a scalar_int_mode and an svpattern.
8775 (simd_immediate_info::u): Add a "pattern" field.
8776 (svpattern_token): New function.
8777 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8778 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8779 (aarch64_sve_move_pred_via_while): New functions.
8780 (aarch64_expand_mov_immediate): Try using
8781 aarch64_sve_move_pred_via_while for predicates that contain N ones
8782 followed by M zeros but that do not correspond to a VLnnn pattern.
8783 (aarch64_sve_pred_valid_immediate): New function.
8784 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8785 with PTRUE and PFALSE.
8786 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8787 forms.
8788
8789 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8790
8791 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8792 flag.
8793 (darwin_override_options): Likewise.
8794 * config/darwin.h: Likewise.
8795 * config/darwin.opt: Likewise.
8796 * config/i386/i386.c (output_pic_addr_const): Likewise.
8797 * config/rs6000/darwin.h: Likewise.
8798 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8799 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8800 ... this TARGET_MACHO_SYMBOL_STUBS.
8801 (FUNCTION_PROFILER):Likewise.
8802 * config/i386/i386.h: Likewise.
8803
8804 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8805
8806 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8807 <case E_V2SImode>: Use vec_extr path for
8808 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8809 <case E_V8QImode>: Ditto.
8810 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8811 Use SWI48 mode iterator. Use %k to output operand 0.
8812 (*mmx_pextrw): New insn pattern.
8813 (*mmx_pextrb): Ditto.
8814 (*mmx_pextrb_zext): Ditto.
8815
8816 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8817
8818 * target.def (libc_has_function, libc_has_fast_function): Improve
8819 documentation strings.
8820 * doc/tm.texi: Regenerate.
8821
8822 2019-08-13 Caroline Tice <cmtice@google.com>
8823
8824 PR other/91396
8825 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8826 vtv_end.o or vtv_end_preinit.o files if !static.
8827
8828 2019-08-13 Olivier Hainque <hainque@adacore.com>
8829
8830 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8831
8832 2019-08-13 Olivier Hainque <hainque@adacore.com>
8833
8834 * rtlanal.c (tablejump_casesi_pattern): New function, to
8835 determine if a tablejump insn is a casesi dispatcher. Extracted
8836 from patch_jump_insn.
8837 * rtl.h (tablejump_casesi_pattern): Declare.
8838 * cfgrtl.c (patch_jump_insn): Use it.
8839 * dwarf2cfi.c (create_trace_edges): Use it.
8840
8841 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8842
8843 PR target/81800
8844 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8845 operand is larger than a long int.
8846
8847 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8848
8849 * machmode.h (opt_mode::else_mode): New function.
8850 (opt_mode::else_blk): Use it.
8851 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8852 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8853 (aarch64_gen_stepped_int_parallel): Likewise.
8854 (aarch64_stepped_int_parallel_p): Likewise.
8855 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8856 argument.
8857 * config/aarch64/aarch64.c
8858 (aarch64_expand_sve_widened_duplicate): Delete.
8859 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8860 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8861 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8862 argument. Use early returns in the !CONST_INT_P handling.
8863 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8864 than handling some inline.
8865 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8866 from...
8867 (aarch64_simd_container_mode): ...here.
8868 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8869 (aarch64_sve_ld1rq_operand_p): New functions.
8870 * config/aarch64/predicates.md (descending_int_parallel)
8871 (aarch64_sve_ld1rq_operand): New predicates.
8872 * config/aarch64/constraints.md (UtQ): New constraint.
8873 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8874 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8875 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8876 (@aarch64_sve_reinterpret<mode>): New expander.
8877 (*aarch64_sve_reinterpret<mode>): New pattern.
8878 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8879 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8880 (*sve_ld1rq<Vesize>): Replace with...
8881 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8882
8883 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8884
8885 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8886 16:12.
8887
8888 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8889
8890 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8891 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8892 (msp430_check_path_for_devices): New.
8893 (parse_devices_csv_1): New.
8894 (parse_devices_csv): New.
8895 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8896 MCU data in devices.csv before using the hard-coded data.
8897 Warn if devices.csv isn't found and the MCU wasn't found in the
8898 hard-coded data either.
8899 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8900 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8901 Search for devices.csv on -I and -L paths.
8902 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8903 msp430_set_driver_var.
8904 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8905 -mdevices-csv-loc=.
8906 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8907 searched for devices.csv.
8908 (mwarn-devices-csv): Document option.
8909
8910 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8911
8912 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8913 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8914 Use a single Dn alternative instead of separate Dz and Dm
8915 alternatives. Use aarch64_output_sve_move_immediate.
8916 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8917 function.
8918 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8919 for predicates too.
8920 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8921 (aarch64_output_ptrue): Delete.
8922
8923 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8924
8925 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8926 INDEX.
8927 (simd_immediate_info::value, simd_immediate_info::step)
8928 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8929 with...
8930 (simd_immediate_info::u): ...this new union.
8931 (simd_immediate_info::simd_immediate_info): Update accordingly.
8932 (aarch64_output_simd_mov_immediate): Likewise.
8933 (aarch64_output_sve_mov_immediate): Likewise.
8934
8935 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8936
8937 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8938 extra_gcc_objs.
8939 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8940 (msp430_select_cpu): New spec function.
8941 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8942 MCU data.
8943 * config/msp430/msp430-devices.c: New file.
8944 * config/msp430/msp430-devices.h: New file.
8945 * config/msp430/msp430.c: Remove msp430_mcu_data.
8946 (msp430_option_override): Use msp430_extract_mcu_data to extract
8947 MCU data.
8948 (msp430_use_f5_series_hwmult): Likewise.
8949 (use_32bit_hwmult): Likewise.
8950 (msp430_no_hwmult): Likewise.
8951 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8952 assembler.
8953 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8954 and -mcpu option.
8955 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8956 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8957 Remove hard-coded MCU multilib data.
8958
8959 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8960
8961 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8962 based on the mode instead of testing properties of it.
8963
8964 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8965
8966 * doc/md.texi: Document the x and y constraints for AArch64.
8967 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8968 (FP_LO8_REGS): New reg_class.
8969 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8970 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8971 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8972 * config/aarch64/predicates.md (aarch64_simd_register): Use
8973 FP_REGNUM_P instead of checking the classes manually.
8974 * config/aarch64/constraints.md (y): New constraint.
8975
8976 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8977
8978 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8979 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8980 * config/aarch64/aarch64-simd.md
8981 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8982 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8983 from the asm template.
8984 * config/aarch64/aarch64-sve.md
8985 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8986 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8987 from the asm template.
8988 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8989 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8990 from the asm template.
8991 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8992
8993 2019-08-13 Martin Liska <mliska@suse.cz>
8994
8995 * value-prof.c (gimple_ic_transform): Add new line.
8996 Print details with MSG_NOTE.
8997
8998 2019-08-13 Martin Liska <mliska@suse.cz>
8999
9000 * doc/invoke.texi: Document automatic detection of jobserver.
9001 * lto-wrapper.c (run_gcc): Detect jobserver always.
9002
9003 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9004
9005 * config/i386/i386-expand.c (ix86_expand_vector_set)
9006 <case E_V2SImode>: Use vec_merge path for
9007 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9008 <case E_V8QImode>: Ditto.
9009 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
9010 (*mmx_pinsrb): Ditto.
9011
9012 2019-08-12 Jakub Jelinek <jakub@redhat.com>
9013
9014 PR target/83250
9015 PR target/91340
9016 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
9017 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
9018 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
9019 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
9020 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
9021
9022 2019-08-12 Richard Biener <rguenther@suse.de>
9023
9024 PR lto/91375
9025 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
9026 flag_devirtualize.
9027
9028 2019-08-12 Richard Biener <rguenther@suse.de>
9029
9030 PR driver/91130
9031 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
9032 lang_mask option, always use CL_DRIVER.
9033 (get_options_from_collect_gcc_options): Adjust.
9034 (find_and_merge_options): Likewise.
9035 (run_gcc): Likewise.
9036
9037 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9038
9039 * ipa-predicate.c (add_condition): Restore inverted test.
9040
9041 2019-08-10 Jakub Jelinek <jakub@redhat.com>
9042
9043 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
9044 (enum omp_clause_device_type_kind): New enum.
9045 (struct tree_omp_clause): Add subcode.device_type_kind.
9046 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
9047 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9048 for device_type clause.
9049 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
9050 * tree-pretty-print.c (dump_omp_clause): Likewise.
9051
9052 PR target/91408
9053 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
9054 vector_operand.
9055
9056 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
9057
9058 * reload1.c (finish_spills): Do not check ira_conflicts_p when
9059 handling spilled pseudos.
9060
9061 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9062
9063 PR target/91386
9064 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
9065 to preserve the contents of the original insns.
9066
9067 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9068
9069 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
9070 (addsi3_compare_op2): Likewise.
9071
9072 2019-08-09 Martin Liska <mliska@suse.cz>
9073
9074 * alias.c (alias_ptr_types_compatible_p): Strengten
9075 type comparison in LTO mode.
9076
9077 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
9078
9079 PR middle-end/90313
9080 * tree-tailcall.c (find_tail_calls): Reject calls that might
9081 read from an escaped RESULT_DECL.
9082
9083 2019-08-09 Martin Liska <mliska@suse.cz>
9084
9085 * doc/invoke.texi: Document the option value.
9086 * lto-wrapper.c (run_gcc): Set auto_parallel
9087 only with -flto=auto.
9088
9089 2019-08-09 Martin Liska <mliska@suse.cz>
9090
9091 * opts.c (common_handle_option): Error for an invalid argument
9092 to -flto=.
9093
9094 2019-08-09 Martin Liska <mliska@suse.cz>
9095
9096 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9097 use dump_printf to report optimization.
9098 (sem_variable::merge): Likwise.
9099 (sem_item_optimizer::merge_classes): Use dump_printf to report
9100 ICF hits.
9101
9102 2019-08-09 Martin Liska <mliska@suse.cz>
9103
9104 * value-prof.c (gimple_divmod_fixed_value_transform):
9105 Use dump_printf_loc.
9106 (gimple_mod_pow2_value_transform): Likewise.
9107 (gimple_mod_subtract_transform): Likewise.
9108 (init_node_map): Likewise.
9109 (gimple_ic_transform): Likewise.
9110 (gimple_stringops_transform): Likewise.
9111
9112 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9113
9114 * doc/extend.texi: Add const qualifier to ld intrinsics.
9115
9116 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9117
9118 * config/rs6000/dfp.md (D64_D128): Rename to ...
9119 (DDTD): ... this, throughout.
9120 (dfp_suffix): Rename to ...
9121 (q): ... this, throughout.
9122
9123 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9124
9125 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9126 (dfp_suffix): Ditto.
9127 (adddd3, addtd3): Merge to ...
9128 (add<mode>3 for D64_D128): ... this.
9129 (subdd3, subtd3): Merge to ...
9130 (sub<mode>3 for D64_D128): ... this.
9131 (muldd3, multd3): Merge to ...
9132 (mul<mode>3 for D64_D128): ... this.
9133 (divdd3, divtd3): Merge to ...
9134 (div<mode>3 for D64_D128): ... this.
9135 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9136 (*cmp<mode>_internal1 for D64_D128): ... this.
9137 (ftruncdd2, ftrunctd2): Merge to ...
9138 (ftrunc<mode>2 for D64_D128): ... this.
9139 (fixdddi2, fixtddi2): Merge to ...
9140 (fix<mode>di2 for D64_D128): ... this.
9141
9142 2019-08-08 Jim Wilson <jimw@sifive.com>
9143
9144 PR target/91229
9145 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9146 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9147 Pass into recursive call.
9148 (riscv_flatten_aggregate_argument): New arg. Pass to
9149 riscv_flatten_aggregate_field.
9150 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9151 riscv_flatten_aggregate_argument twice, with false and true as last
9152 arg. Process result twice. Compare results and warn if different.
9153 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9154
9155 2019-08-08 Martin Liska <mliska@suse.cz>
9156
9157 PR bootstrap/91352
9158 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9159 * lto-wrapper.c (jobserver_active_p): Likewise.
9160
9161 2019-08-08 Martin Liska <mliska@suse.cz>
9162
9163 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9164 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9165 (create_version_clone_with_body): Likewise.
9166
9167 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9168
9169 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9170 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9171 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9172 GOVD_EXPLICIT flags.
9173 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9174 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9175 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9176 call install_var_field with mask 11 instead of 3.
9177 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9178 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9179
9180 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9181
9182 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9183 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9184
9185 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9186
9187 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9188 MOVPRFX alternatives. Make the GPR alternatives more expensive
9189 than the FPR ones.
9190
9191 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9192
9193 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9194 Disparage the GPR alternative relative to the FPR one.
9195 Fix handling of 8-bit and 16-bit FPR values.
9196
9197 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9198
9199 * config/aarch64/iterators.md (BITWISEV): Delete.
9200 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9201 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9202 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9203 UNSPEC_FMINNMV, UNSPEC_FMINV.
9204 (bit_reduc_op): Delete.
9205 (sve_int_op): New int attribute.
9206 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9207 UNSPEC_FMINNMV, UNSPEC_FMINV.
9208 * config/aarch64/aarch64-sve.md
9209 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9210 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9211 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9212 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9213 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9214 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9215 new patterns.
9216 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9217 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9218 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9219 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9220 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9221 new patterns.
9222
9223 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9224
9225 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9226 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9227 (fms<mode>4, *fms<mode>4): Replace with...
9228 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9229 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9230 Use unspecs instead of rtx codes.
9231 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9232 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9233
9234 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9235
9236 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9237 int iterator.
9238 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9239 * config/aarch64/aarch64-sve.md
9240 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9241 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9242 use a single unspec for the rhs.
9243 (*<su><maxmin><mode>3): Delete.
9244 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9245
9246 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9247
9248 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9249 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9250 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9251 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9252 (optab, sve_fp_op): Handle them.
9253 (SVE_FP_UNARY): Delete.
9254 (optab): Remove sqrt entry.
9255 (sve_fp_op): Remove neg, abs and sqrt entries.
9256 (SVE_COND_FP_UNARY): New int iterator.
9257 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9258 (*<frint_pattern><mode>2): Delete.
9259 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9260 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9261 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9262 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9263
9264 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9265
9266 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9267
9268 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9269
9270 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9271 (UNSPEC_COND_FADD): ...this.
9272 (UNSPEC_COND_SUB): Rename to...
9273 (UNSPEC_COND_FSUB): ...this.
9274 (UNSPEC_COND_MUL): Rename to...
9275 (UNSPEC_COND_FMUL): ...this.
9276 (UNSPEC_COND_DIV): Rename to...
9277 (UNSPEC_COND_FDIV): ...this.
9278 (UNSPEC_COND_MAX): Rename to...
9279 (UNSPEC_COND_FMAXNM): ...this.
9280 (UNSPEC_COND_MIN): Rename to...
9281 (UNSPEC_COND_FMINNM): ...this.
9282 (UNSPEC_COND_LT): Rename to...
9283 (UNSPEC_COND_FCMLT): ...this.
9284 (UNSPEC_COND_LE): Rename to...
9285 (UNSPEC_COND_FCMLE): ...this.
9286 (UNSPEC_COND_EQ): Rename to...
9287 (UNSPEC_COND_FCMEQ): ...this.
9288 (UNSPEC_COND_NE): Rename to...
9289 (UNSPEC_COND_FCMNE): ...this.
9290 (UNSPEC_COND_GE): Rename to...
9291 (UNSPEC_COND_FCMGE): ...this.
9292 (UNSPEC_COND_GT): Rename to...
9293 (UNSPEC_COND_FCMGT): ...this.
9294 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9295 (sve_fp_op_rev): Update accordingly.
9296 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9297
9298 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9299
9300 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9301 banner comments.
9302 * config/aarch64/check-sve-md.awk: New file.
9303 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9304 (insn-conditions.md): Depend on it.
9305
9306 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9307
9308 PR target/91385
9309 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9310 (*negsi2_cmpz_zext): Ditto.
9311
9312 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9313
9314 * config/aarch64/iterators.md (commutative): Remove.
9315
9316 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9317
9318 PR driver/91130
9319 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9320 processing COLLECT_GCC_OPTIONS.
9321 (run_gcc): Likewise.
9322
9323 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9324
9325 PR tree-optimization/91109
9326 * lra-remat.c (update_scratch_ops): Remove assignment of the
9327 hard register.
9328
9329 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9330
9331 * data-streamer.h (streamer_write_poly_uint64): Declare.
9332 (streamer_read_poly_uint64): Likewise.
9333 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9334 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9335 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9336 (add_condition): Take a poly_int64 size.
9337 * ipa-predicate.c (add_condition): Likewise.
9338 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9339 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9340 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9341 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9342 condition::size as a poly_int64.
9343 (unmodified_parm_1): Take a poly_int64 size pointer.
9344 (unmodified_parm): Likewise.
9345 (unmodified_parm_or_parm_agg_item): Likewise.
9346 (set_cond_stmt_execution_predicate): Update accordingly.
9347 (set_switch_stmt_execution_predicate): Likewise.
9348 (will_be_nonconstant_expr_predicate): Likewise.
9349 (will_be_nonconstant_predicate): Likewise.
9350 (inline_read_section): Stream condition::size as a poly_int.
9351 (ipa_fn_summary_write): Likewise.
9352
9353 2019-08-07 Martin Liska <mliska@suse.cz>
9354
9355 * fold-const.c (twoval_comparison_p): Replace int
9356 with bool as a return type.
9357 (simple_operand_p): Likewise.
9358 (operand_equal_p): Replace int with bool as a return type.
9359 * fold-const.h (operand_equal_p): Likewise.
9360
9361 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9362
9363 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9364 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9365 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9366 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9367 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9368 * tree-pretty-print.c (dump_omp_clause): Likewise.
9369 * tree-nested.c (convert_nonlocal_omp_clauses,
9370 convert_local_omp_clauses): Likewise.
9371 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9372 Likewise.
9373 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9374 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9375 clause with array or reference to array types, no matter what type
9376 except for reference it has.
9377
9378 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9379
9380 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9381
9382 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9383
9384 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9385 (arch_canonicalize): Support rv32g and rv64g and fix error
9386 handling.
9387
9388 2019-08-06 Martin Liska <mliska@suse.cz>
9389
9390 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9391 and DECL_IS_OPERATOR_DELETE_P.
9392
9393 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9394
9395 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9396 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9397 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9398 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9399 (gimplify_omp_for): Don't do C++ random access iterator clause
9400 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9401 don't predetermine the artificial iterator in case of C++ random
9402 access iterators as lastprivate, but private. For OMP_LOOP, force
9403 bind expr around simd body and force for_pre_body before the
9404 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9405 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9406 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9407 diff var of C++ random access iterators. Handle
9408 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9409 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9410 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9411 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9412 * omp-low.c (lower_rec_input_clauses): For
9413 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9414 variables instead of default constructing them.
9415 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9416 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9417 is_taskloop_ctx check from the assert to the guarding condition.
9418
9419 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9420
9421 * config/riscv/multilib-generator: (canonical_order): New.
9422 (arch_canonicalize): Dito.
9423 Apply arch_canonicalize for alts.
9424
9425 2019-08-05 Martin Sebor <msebor@redhat.com>
9426
9427 * doc/extend.texi (Common Variable Attributes): Document alias
9428 attribute.
9429
9430 2019-08-05 Marek Polacek <polacek@redhat.com>
9431
9432 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9433 * doc/invoke.texi: Document -Wcomma-subscript.
9434
9435 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9436
9437 * tree-core.h (tree_function_decl): Make function_code an
9438 independent field. Group the remaining bitfields into bytes
9439 and move decl_type so that it contines to be at a byte boundary.
9440 Leave 12 bits for future expansion.
9441
9442 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9443
9444 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9445 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9446 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9447 IFN_MASK_STORE.
9448
9449 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9450
9451 * gimple.h (gimple_move_vops): Declare.
9452 * gimple.c (gimple_move_vops): New function
9453 * gimple-fold.c (replace_call_with_call_and_fold)
9454 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9455 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9456 (gimple_fold_call): Use it.
9457 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9458 * tree-call-cdce.c (use_internal_fn): Likewise.
9459 * tree-if-conv.c (predicate_load_or_store): Likewise.
9460 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9461 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9462 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9463 (update_call_from_tree): Likewise.
9464 * tree-vect-stmts.c (vectorizable_load): Likewise.
9465 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9466
9467 2019-08-05 Martin Liska <mliska@suse.cz>
9468
9469 PR c++/91334
9470 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9471 with not arguments.
9472 (eliminate_unnecessary_stmts): Likewise.
9473
9474 2019-08-05 Richard Biener <rguenther@suse.de>
9475
9476 PR middle-end/91169
9477 * fold-const.c (get_array_ctor_element_at_index): Create
9478 offset_ints according to the sign of the index type and treat
9479 that as signed if it is obviously so.
9480
9481 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9482
9483 PR target/91341
9484 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9485 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9486 _mm256_storeu2_m128i): New function.
9487
9488 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9489
9490 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9491 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9492
9493 2019-08-05 Alan Modra <amodra@gmail.com>
9494
9495 PR target/91349
9496 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9497 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9498
9499 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9500
9501 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9502 bug that was fixed in Tcl 8.6.1.
9503
9504 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9505
9506 * config/rs6000/future.md: New file.
9507 * config/rs6000/rs6000.md: Include future.md.
9508 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9509
9510 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9511
9512 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9513 check to use targetm.slow_unaligned_access instead.
9514
9515 * function.c (assign_param_data_one): Remove unused data members.
9516
9517 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9518
9519 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9520 build_distinct_type_copy.
9521 (simd_clone_adjust_argument_types): Ditto.
9522 (simd_clone_adjust): Call build_distinct_type_copy here.
9523 (expand_simd_clones): Ditto.
9524
9525 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9526
9527 PR target/91201
9528 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9529
9530 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9531
9532 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9533 from 'const void *'.
9534 (sort_locs_in_loop_postorder_cmp): Likewise.
9535
9536 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9537
9538 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9539 (hot-bb-count-ws-permille): Likewise.
9540 (hot-bb-frequency-fraction): Likewise.
9541 (unlikely-bb-count-fraction): Likewise.
9542 * params.def (hot-bb-count-fraction): Rework description.
9543 (hot-bb-count-ws-permille): Likewise.
9544 (hot-bb-frequency-fraction): Likewise.
9545 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9546 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9547
9548 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9549
9550 PR target/91323
9551 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9552 Return false.
9553
9554 2019-08-02 Richard Biener <rguenther@suse.de>
9555
9556 * vec.h (vec::sort): Add gcc_qsort_r support.
9557 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9558 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9559 to gcc_qsort_r style callback.
9560 (sort_locs_in_loop_postorder_cmp): Likewise.
9561 (analyze_memory_references): Use gcc_sort_r interfaces.
9562 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9563
9564 2019-08-02 Martin Liska <mliska@suse.cz>
9565
9566 PR lto/91313
9567 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9568 to detect working job server.
9569 (driver::detect_jobserver): Test whether jobserver
9570 is active from GCC driver. That will prevent situation where
9571 GCC is invoked from a LD plugin and the linker already uses
9572 file descriptors suggested by make. That leads to a wrong
9573 detection.
9574 * gcc.h (driver): Add detect_jobserver.
9575 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9576 not scanning for --jobserver-auth prefix.
9577
9578 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9579
9580 PR tree-optimization/91201
9581 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9582 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9583 extraction.
9584
9585 2019-08-01 Martin Sebor <msebor@redhat.com>
9586
9587 PR c++/90947
9588 * tree.c (type_initializer_zero_p): Define.
9589 * tree.h (type_initializer_zero_p): New function.
9590
9591 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9592
9593 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9594
9595 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9596
9597 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9598 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9599 * predict.c (maybe_hot_count_p): Likewise.
9600 (maybe_hot_bb_p): Tweak comment.
9601 (maybe_hot_edge_p): Likewise.
9602 (probably_never_executed): Likewise. Minor tweak.
9603 (probably_never_executed_bb_p): Likewise.
9604 (unlikely_executed_edge_p): Likewise.
9605 (probably_never_executed_edge_p): Likewise.
9606 (optimize_function_for_size_p): Likewise.
9607 (optimize_function_for_speed_p): Likewise.
9608 (function_optimization_type): Likewise.
9609 (optimize_bb_for_size_p): Likewise.
9610 (optimize_bb_for_speed_p): Likewise.
9611 (bb_optimization_type): Likewise.
9612 (optimize_edge_for_size_p): Likewise.
9613 (optimize_edge_for_speed_p): Likewise.
9614 (optimize_insn_for_size_p): Likewise.
9615 (optimize_insn_for_speed_p): Likewise.
9616 (optimize_loop_for_size_p): Likewise.
9617 (optimize_loop_for_speed_p): Likewise.
9618 (optimize_loop_nest_for_speed_p): Likewise.
9619 (optimize_loop_nest_for_size_p): Likewise.
9620 (predictable_edge_p): Likewise.
9621 (handle_missing_profiles): Minor tweak.
9622
9623 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9624
9625 * config/rs6000/predicates.md (pcrel_external_address): Update
9626 comment.
9627
9628 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9629
9630 PR target/85693
9631 * config/i386/mmx.md (usadv8qi): New expander.
9632
9633 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9634
9635 PR c++/90590
9636 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9637 with reserved names that are in a system header.
9638
9639 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9640
9641 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9642 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9643 (*vec_extractv2si_0_zext): Ditto.
9644 (*vec_extractv2si_1): Add (rm,x) alternative.
9645 (*vec_extractv2si_1_zext): New insn pattern.
9646 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9647 insn constraint.
9648
9649 2019-08-01 Richard Biener <rguenther@suse.de>
9650
9651 * domwalk.c (bb_postorder): Remove static variable.
9652 (cmp_bb_postorder): Adjust.
9653 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9654 (dom_walker::walk): Adjust.
9655
9656 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9657
9658 * sort.cc (sort_r_ctx): New struct.
9659 (reorder23): Make templated on context type.
9660 (reorder45): Ditto.
9661 (cmp1): Ditto. Adjust signature.
9662 (netsort): Ditto.
9663 (mergesort): Ditto.
9664 [CHECKING_P] (cmp2to3): New static function. Use it...
9665 (gcc_qsort) [CHECKING_P]: ...here.
9666 (gcc_sort_r): New function.
9667 * system.h (sort_r_cmp_fn): New function typedef.
9668 (qsort_chk): Adjust signature.
9669 (gcc_sort_r): Declare.
9670 * vec.c (qsort_chk_error): Adjust.
9671 (qsort_chk): Adjust.
9672
9673 2019-08-01 Richard Biener <rguenther@suse.de>
9674
9675 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9676 (compute_antic): Localize it here.
9677
9678 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9679
9680 * common/config/riscv/riscv-common.c: Check -march string ends
9681 with null.
9682
9683 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9684
9685 * ipa-devirt.c (type_warning_cmp): Make static.
9686 (decl_warning_cmp): Ditto.
9687
9688 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9689
9690 PR target/91050
9691 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9692 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9693 use of deleted rs6000_dejagnu_cpu_index variable.
9694 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9695 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9696 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9697 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9698 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9699 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9700
9701 2019-07-31 Richard Biener <rguenther@suse.de>
9702
9703 PR tree-optimization/91280
9704 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9705 Decompose MEM_REF manually for offset handling.
9706
9707 2019-07-31 Richard Biener <rguenther@suse.de>
9708
9709 PR tree-optimization/91293
9710 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9711 of reduction stmts.
9712
9713 2019-07-31 Matt Thomas <matt@3am-software.com>
9714 Nick Hudson <nick@nthcliff.demon.co.uk>
9715 Matthew Green <mrg@eterna.com.au>
9716 Maya Rashish <coypu@sdf.org>
9717
9718 * config.gcc (hppa*-*-netbsd*): New target.
9719 * config/pa/pa-netbsd.h: New file.
9720 * config/pa/pa32-netbsd.h: New file.
9721
9722 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9723
9724 PR tree-optimization/91201
9725 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9726
9727 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9728
9729 * config/gcn/gcn-valu.md
9730 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9731 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9732 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9733 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9734 struct ilist. Add nops for delayeduse insns.
9735 * config/gcn/gcn.md (delayeduse): New attribute.
9736 (*movbi): Remove s_waitcnt from stores.
9737 (*mov<mode>_insn): Likewise.
9738 (*movti_insn): Likewise. Add delayeduse attribute.
9739 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9740 (atomic_store<mode>): Remove or adjust s_waitcnt.
9741
9742 2019-07-31 Richard Biener <rguenther@suse.de>
9743
9744 * vr-values.h (vr_values::swap_vr_value): New.
9745 (vr_values::free_value_range): likewise.
9746 * vr-values.c (vr_values::swap_vr_value): Implement.
9747 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9748 Do not return a range or take a var.
9749 (evrp_range_analyzer::stack): Change back to recording a non-const
9750 value_range *.
9751 * gimple-ssa-evrp-analyze.c
9752 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9753 value-range.
9754 (evrp_range_analyzer::pop_to_marker): Adjust.
9755 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9756 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9757 no longer needed value-range.
9758
9759 2019-07-31 Martin Liska <mliska@suse.cz>
9760
9761 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9762 have size and (or) alignment as 2nd and later arguments.
9763 Mark all of them as necessary.
9764
9765 2019-07-31 Richard Biener <rguenther@suse.de>
9766
9767 PR tree-optimization/91178
9768 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9769 Use tail-recursion.
9770
9771 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9772
9773 PR tree-optimization/91201
9774 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9775 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9776 TARGET_AVX512F.
9777 (reduc_plus_scal_<mode>): Improve formatting by introducing
9778 a temporary.
9779
9780 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9781
9782 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9783 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9784 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9785 (aarch64_init_tme_builtins): New.
9786 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9787 (aarch64_expand_builtin_tme): New.
9788 (aarch64_expand_builtin): Handle TME builtins.
9789 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9790 __ARM_FEATURE_TME when enabled.
9791 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9792 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9793 (TARGET_TME): New.
9794 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9795 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9796 UNSPECV_TCANCEL.
9797 (tstart, ttest, tcommit, tcancel): New instructions.
9798 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9799 (__tcancel, __ttest): New.
9800 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9801 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9802 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9803 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9804 * config/arm/types.md: Add new tme type attr.
9805 * doc/invoke.texi: Document "tme".
9806
9807 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9808
9809 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9810 warn_unused_result attribute.
9811 (cmse_check_address_range): Add warn_unused_result attribute.
9812
9813 2019-07-31 Richard Biener <rguenther@suse.de>
9814
9815 PR tree-optimization/91257
9816 * tree-vrp.c (union_ranges): Unify equality and less tests
9817 by using compare_values. Re-order cheap tests first.
9818
9819 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9820
9821 PR middle-end/91301
9822 * gimplify.c (gimplify_omp_for): If for class iterator on
9823 distribute parallel for there is no data sharing clause
9824 on inner_for_stmt, look for private clause on combined
9825 parallel too and if found, move it to inner_for_stmt.
9826
9827 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9828
9829 * lra-int.h (lra_operand_data): Remove early_clobber field.
9830 (lra_insn_reg): Likewise.
9831 * lra.c (debug_operand_data): Update accordingly.
9832 (setup_operand_alternative): Likewise.
9833 (new_insn_reg): Likewise. Remove early_clobber parameter.
9834 (collect_non_operand_hard_regs): Update call accordingly.
9835 Don't assign to lra_insn_reg::early_clobber.
9836 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9837 and update calls to new_insn_reg.
9838 (lra_update_insn_regno_info): Update calls accordingly.
9839 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9840 alternative number as a parameter and test whether the operand
9841 is earlyclobbered in that particular alternative.
9842 (process_alt_operands): Update call accordingly. Use per-alternative
9843 checks for earyclobber here too.
9844 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9845 against zero for IRA_UNKNOWN_ALT.
9846
9847 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9848
9849 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9850
9851 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9852
9853 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9854 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9855
9856 2019-07-30 Martin Liska <mliska@suse.cz>
9857
9858 PR ipa/89330
9859 * cgraph.c (cgraph_edge::make_direct): Use
9860 edge->indirect_unknown_callee as edge->resolve_speculation can
9861 deallocate edge which is this pointer.
9862
9863 2019-07-30 Richard Biener <rguenther@suse.de>
9864
9865 PR tree-optimization/91257
9866 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9867
9868 2019-07-30 Martin Liska <mliska@suse.cz>
9869
9870 * doc/invoke.texi: Document new behavior.
9871 * lto-wrapper.c (cpuset_popcount): New function
9872 is a copy of libgomp/config/linux/proc.c.
9873 (init_num_threads): Likewise.
9874 (run_gcc): Automatically detect core count for -flto.
9875 (jobserver_active_p): New function.
9876
9877 2019-07-30 Richard Biener <rguenther@suse.de>
9878
9879 PR tree-optimization/91257
9880 * bitmap.h (bitmap_ior_into_and_free): Declare.
9881 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9882 whether to add the unliked element to the freelist.
9883 (bitmap_list_insert_element_after): Add defaulted param for
9884 an already allocated element.
9885 (bitmap_ior_into_and_free): New function.
9886 * tree-ssa-structalias.c (condense_visit): Reduce the
9887 ponts-to and edge bitmaps of the SCC members in a
9888 logarithmic fashion rather than all to one.
9889
9890 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9891
9892 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9893 parameter. When nonnull, make sure that the addition or subtraction
9894 has the same condition.
9895 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9896 for CFN_COND_MUL too.
9897
9898 2019-07-30 Richard Biener <rguenther@suse.de>
9899
9900 PR tree-optimization/91291
9901 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9902 constant values.
9903
9904 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9905
9906 PR middle-end/91216
9907 * omp-low.c (global_nonaddressable_vars): New variable.
9908 (use_pointer_for_field): For global decls, if they are non-addressable,
9909 remember it in the global_nonaddressable_vars bitmap, if they are
9910 addressable and in the global_nonaddressable_vars bitmap, ignore their
9911 TREE_ADDRESSABLE bit.
9912 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9913 vars in global_nonaddressable_vars bitmap.
9914 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9915
9916 PR target/91150
9917 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9918 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9919 comparison to unsigned HOST_WIDE_INT before shifting it left.
9920
9921 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9922
9923 * config/i386/i386.md (movstrict<mode>): Use register_operand
9924 predicate for operand 0. Add expander condition. Assert that
9925 operand 0 is a SUBREG RTX.
9926 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9927 Update operand constraints and insn condition.
9928 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9929 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9930 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9931 Update operand 0 constraints.
9932 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9933
9934 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9935
9936 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9937 when -m{code,data}-region are used without -mlarge.
9938 * config/msp430/msp430.c (msp430_option_override): Error when a
9939 non-default code or data region is used without -mlarge.
9940 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9941 attributes when they are used without -mlarge.
9942
9943 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9944
9945 PR target/70320
9946 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9947
9948 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9949
9950 PR middle-end/91242
9951 * wide-int.h (generic_wide_int::sext_elt): New function.
9952 * inchash.h (hash::add_wide_int): Use it instead of elt.
9953
9954 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9955
9956 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9957 CODE_FOR_arm_##.
9958 * config/arm/arm.md (<crc_variant>): Rename to...
9959 (arm_<crc_variant>): ... This.
9960 (<cdp>): Rename to...
9961 (arm_<cdp>): ... This.
9962 (<ldc>): Rename to...
9963 (arm_<ldc>): ... This.
9964 (<stc>): Rename to...
9965 (arm_<stc>): ... This.
9966 (<mcr>): Rename to...
9967 (arm_<mcr>): ... This.
9968 (<mrc>): Rename to...
9969 (arm_<mrc>): ... This.
9970 (<mcrr>): Rename to...
9971 (arm_<mcrr>): ... This.
9972 (<mrrc>): Rename to...
9973 (arm_<mrrc>): ... This.
9974
9975 2019-07-29 Richard Biener <rguenther@suse.de>
9976
9977 PR tree-optimization/91257
9978 * tree-ssa-sccvn.h (struct vn_avail): New.
9979 (struct vn_ssa_aux): Add avail member.
9980 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9981 member, add m_avail_freelist one.
9982 (rpo_elim::~rpo_elim): Remove.
9983 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9984 data structure.
9985 (rpo_elim::eliminate_push_avail): Likewise.
9986 (do_unwind): Likewise.
9987 (do_rpo_vn): Likewise.
9988
9989 2019-07-29 Richard Biener <rguenther@suse.de>
9990
9991 PR tree-optimization/91257
9992 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9993 most cases, instead call compare_values which handles the
9994 symbolic ranges we handle specially.
9995 (compare_values_warnv): Do not call operand_less_p but open-code
9996 the effective fold calls. Avoid converting so much.
9997
9998 2019-07-29 Martin Liska <mliska@suse.cz>
9999
10000 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
10001 remove LHS of operator new call. It's handled latter.
10002
10003 2019-07-29 Richard Biener <rguenther@suse.de>
10004
10005 PR tree-optimization/91267
10006 * vr-values.c (vr_values::update_value_range): Add early return
10007 for effectively VARYING lattice entry.
10008
10009 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10010
10011 PR debug/86638
10012 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
10013 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
10014 necessary if keep_all_vdefs_p is true.
10015 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
10016 that keep_all_vdefs_p is false.
10017 (mark_all_reaching_defs_necessary): Likewise.
10018 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
10019
10020 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10021
10022 * common.opt (Og): Change the initial value of flag_dse to 0.
10023 * opts.c (default_options_table): Move OPT_ftree_dse from
10024 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
10025 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
10026 entry before the OPT_ftree_sra entry.
10027 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
10028 of flags disabled by Og.
10029
10030 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10031
10032 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
10033 variables for -Og.
10034
10035 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10036
10037 * doc/sourcebuild.texi (check-function-bodies): Document.
10038
10039 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10040
10041 * simplify-rtx.c (simplify_const_unary_operation): Fold a
10042 VEC_DUPLICATE of a fixed-length vector even if the result
10043 is variable-length. Likewise fold a duplicate of a
10044 variable-length vector if the variable-length vector is
10045 itself a duplicate of a fixed-length sequence.
10046 (test_vector_ops_duplicate): Test more cases.
10047
10048 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10049
10050 * vector-builder.h (vector_builder): Add a shape template parameter.
10051 (vector_builder::new_unary_operation): New function, generalizing
10052 the old tree_vector_builder function.
10053 (vector_builder::new_binary_operation): Likewise.
10054 (vector_builder::binary_encoded_nelts): Likewise.
10055 * int-vector-builder.h (int_vector_builder): Update template
10056 parameters to vector_builder.
10057 (int_vector_builder::shape_nelts): New function.
10058 * rtx-vector-builder.h (rtx_vector_builder): Update template
10059 parameters to vector_builder.
10060 (rtx_vector_builder::shape_nelts): New function.
10061 (rtx_vector_builder::nelts_of): Likewise.
10062 (rtx_vector_builder::npatterns_of): Likewise.
10063 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
10064 * tree-vector-builder.h (tree_vector_builder): Update template
10065 parameters to vector_builder.
10066 (tree_vector_builder::shape_nelts): New function.
10067 (tree_vector_builder::nelts_of): Likewise.
10068 (tree_vector_builder::npatterns_of): Likewise.
10069 (tree_vector_builder::nelts_per_pattern_of): Likewise.
10070 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
10071 (tree_vector_builder::new_binary_operation): Delete.
10072 (tree_vector_builder::binary_encoded_nelts): Likewise.
10073 * simplify-rtx.c: Include rtx-vector-builder.h.
10074 (distributes_over_addition_p): New function.
10075 (simplify_const_unary_operation)
10076 (simplify_const_binary_operation): Generalize handling of vector
10077 constants to include variable-length vectors.
10078 (test_vector_ops_series): Add more tests.
10079
10080 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
10081
10082 PR lto/91222
10083 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10084 than INDENTIFIER_POINTER.
10085
10086 2019-07-28 Martin Liska <mliska@suse.cz>
10087
10088 PR ipa/89330
10089 * cgraph.c (symbol_table::create_edge): Always allocate
10090 a cgraph_edge.
10091 (symbol_table::free_edge): Store summary_id to
10092 edge_released_summary_ids if != -1;
10093 * cgraph.h (NEXT_FREE_NODE): Remove.
10094 (SET_NEXT_FREE_NODE): Likewise.
10095 (NEXT_FREE_EDGE): Likewise.
10096 (symbol_table::release_symbol): Store summary_id to
10097 cgraph_released_summary_ids if != -1;
10098 (symbol_table::allocate_cgraph_symbol): Always allocate
10099 a cgraph_node.
10100
10101 2019-07-28 Alan Modra <amodra@gmail.com>
10102
10103 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10104 gen_sibcall.
10105
10106 2019-07-28 Alan Modra <amodra@gmail.com>
10107
10108 PR target/91135
10109 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10110 define.
10111 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10112 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10113 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10114
10115 2019-07-28 Alan Modra <amodra@gmail.com>
10116
10117 PR target/91050
10118 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10119 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10120 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10121 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10122 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10123 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10124 in asm_default spec.
10125 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10126 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10127
10128 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10129
10130 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10131
10132 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10133
10134 PR target/89517
10135 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10136 * config/aarch64/aarch64-option-extensions.def: Add new comments
10137 and restore easier to read options.
10138
10139 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10140
10141 * convert.c (convert_to_real_1): Move part of conversion code...
10142 * match.pd: ...To here.
10143
10144 2019-07-26 Martin Jambor <mjambor@suse.cz>
10145
10146 PR ipa/89330
10147 * ipa-inline-transform.c (check_speculations_1): New function.
10148 (push_all_edges_in_set_to_vec): Likewise.
10149 (check_speculations): Use check_speculations_1, new parameter
10150 new_edges.
10151 (inline_call): Pass new_edges to check_speculations.
10152 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10153 NULL.
10154 (speculation_useful_p): Early return true if edge is inlined, remove
10155 later checks for inline_failed.
10156
10157 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10158
10159 PR rtl-optimization/91223
10160 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10161 matching with INOUT operand.
10162
10163 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10164
10165 * stmt.c (expand_case): Try to narrow the index type if it's larger
10166 than a word. Tidy up.
10167
10168 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10169
10170 * cif-code.def (NEVER_CALL): New code.
10171 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10172 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10173
10174 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10175
10176 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10177 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10178
10179 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10180
10181 * ipa-devirt.c (add_type_duplicate): Fix return value.
10182
10183 2019-07-25 Richard Biener <rguenther@suse.de>
10184
10185 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10186 type parameter and use it instead of guessing expression
10187 type from the first operand.
10188 (extract_range_from_binary_expr): Pass expr_type down.
10189
10190 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10191
10192 * config/arm/arm.md (SATrev): Change to code attribute.
10193 (*satsi_<SAT:code>): Adjust for the above.
10194 (*satsi_<SAT:code>_shift): Likewise.
10195
10196 2019-07-25 Richard Biener <rguenther@suse.de>
10197
10198 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10199 Make value_range * temporary const.
10200 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10201 Likewise.
10202 (evrp_range_analyzer::record_ranges_from_): Likewise.
10203 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10204 deal with having recorded a const one.
10205 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10206 Return a const value_range *.
10207 (evrp_range_analyzer::pop_value_range): Likewise.
10208 (evrp_range_analyzer::stack): Record const value_range *s.
10209 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10210 Adjust.
10211 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10212 (format_integer): Likewise.
10213 (sprintf_dom_walker::handle_gimple_call): Likewise.
10214 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10215 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10216 (vrp_prop::get_value_range): Adjust.
10217 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10218 modifying the lattice in-place.
10219 (vrp_prop::visit_stmt): Likewise.
10220 * vr-values.c (vr_values::get_lattice_entry): New private method.
10221 (vr_values::get_value_range): Wrap it and return a const
10222 value_range *.
10223 (vr_values::set_def_to_varying): New.
10224 (vr_values::set_defs_to_varying): Use it.
10225 (vr_values::update_value_range): Likewise.
10226 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10227 (values::op_with_constant_singleton_va): Likewise.
10228 (vr_values::extract_range_for_var_from_co): Likewise.
10229 (vr_values::extract_range_from_ssa_name): Likewise.
10230 (vr_values::extract_range_from_cond_expr): Likewise.
10231 (vr_values::extract_range_basic): Likewise.
10232 (compare_ranges): Take const value_range *, adjust.
10233 (compare_range_with_value): Likewise.
10234 (vrp_valueize): Adjust.
10235 (vrp_valueize_1): Likewise.
10236 (vr_values::get_vr_for_comparison): Return a const value_range *.
10237 (vr_values::compare_name_with_value): Adjust.
10238 (vr_values::compare_names): Likewise.
10239 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10240 Likewise.
10241 (vr_values::vrp_evaluate_conditional): Likewise.
10242 (find_case_label_ranges): Take a const value_range *.
10243 (vr_values::vrp_visit_switch_stmt): Adjust.
10244 (vr_values::extract_range_from_phi_node): Likewise.
10245 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10246 (vr_values::simplify_abs_using_ranges): Likewise.
10247 (test_for_singularity): Take a const value_range *.
10248 (range_fits_type_p): Likewise.
10249 (vr_values::simplify_cond_using_ranges_1): Adjust.
10250 (vr_values::simplify_cond_using_ranges_2): Likewise.
10251 (vr_values::simplify_switch_using_ranges): Likewise.
10252 (vr_values::simplify_float_conversion_usi): Likewise.
10253 (vr_values::two_valued_val_range_p): Likewise.
10254 * vr-values.h (vr_values::get_value_range): Return a const
10255 value_range *.
10256 (vr_values::set_def_to_varying): New.
10257 (vr_values::get_lattice_entry): New private method.
10258 (vr_values::get_vr_for_comparison): Return a const value_range *.
10259
10260 2019-07-25 Martin Liska <mliska@suse.cz>
10261 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10262
10263 PR c++/23383
10264 * common.opt: Add -fallocation-dce
10265 * gimple.c (gimple_call_operator_delete_p): New.
10266 * gimple.h (gimple_call_operator_delete_p): Likewise.
10267 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10268 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10269 DECL_IS_OPERATOR_DELETE_P.
10270 (mark_all_reaching_defs_necessary_1): Likewise.
10271 (propagate_necessity): Likewise.
10272 (eliminate_unnecessary_stmts): Handle
10273 gimple_call_operator_delete_p.
10274 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10275 Add packing of OPERATOR_DELETE.
10276 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10277 Similarly here.
10278 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10279 (DECL_SET_IS_OPERATOR_DELETE): New.
10280 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10281
10282 2019-07-25 Martin Liska <mliska@suse.cz>
10283
10284 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10285 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10286 * coverage.c (coverage_begin_function): Likewise.
10287 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10288 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10289 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10290 (sem_item::hash_referenced_symbol_properties): Likewise.
10291 * lto-streamer-out.c (hash_tree): Likewise.
10292 * predict.c (expr_expected_value_1): Likewise.
10293 * tree-inline.c (expand_call_inline): Likewise.
10294 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10295 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10296 * tree-core.h (enum function_decl_type): New enum.
10297 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10298 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10299 (set_function_decl_type): Likewise.
10300 (DECL_IS_OPERATOR_NEW_P): New.
10301 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10302 (DECL_LAMBDA_FUNCTION): Likewise.
10303 (DECL_LAMBDA_FUNCTION_P): Likewise.
10304 (DECL_IS_OPERATOR_NEW): Remove.
10305 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10306
10307 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10308
10309 * ipa-profile.c (get_most_common_single_value): Use
10310 get_nth_most_common_value.
10311 * profile.c (sort_hist_value): New function.
10312 (compute_value_histograms): Call sort_hist_value to sort the
10313 values after loading from disk.
10314 * value-prof.c (get_most_common_single_value): Rename to ...
10315 get_nth_most_common_value. Add input params n, return
10316 the n_th value and count.
10317 (gimple_divmod_fixed_value_transform): Use
10318 get_nth_most_common_value.
10319 (gimple_ic_transform): Likewise.
10320 (gimple_stringops_transform): Likewise.
10321 * value-prof.h (get_most_common_single_value): Add input params
10322 n, default to 0.
10323
10324 2019-07-25 Richard Biener <rguenther@suse.de>
10325
10326 PR tree-optimization/91236
10327 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10328 size of CONSTRUCTOR write. Fix buffer size we pass to
10329 native_encode_expr.
10330
10331 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10332
10333 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10334 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10335 r273773.
10336
10337 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10338
10339 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10340 explicitly disabled with --disable-initfini-array.
10341
10342 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10343
10344 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10345 if-exists.
10346
10347 2019-07-24 Martin Sebor <msebor@redhat.com>
10348
10349 PR tree-optimization/91183
10350 PR tree-optimization/86688
10351 * builtins.c (compute_objsize): Handle MEM_REF.
10352 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10353 (get_min_string_length): Remove.
10354 (count_nonzero_bytes): New function.
10355 (handle_char_store): Rename...
10356 (handle_store): to this. Handle multibyte stores via integer types.
10357 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10358 function name.
10359
10360 2019-07-24 Martin Sebor <msebor@redhat.com>
10361
10362 PR driver/80545
10363 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10364 (diagnostic_report_diagnostic): Same.
10365 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10366 (diagnostic_context::lang_mask): New data member.
10367 * ipa-pure-const.c (suggest_attribute): Use
10368 lang_hooks.option_lang_mask ().
10369 * opts-common.c (option_enabled): Handle new argument.
10370 (get_option_state): Pass an additional argument.
10371 * opts.c (print_filtered_help): Print supported languages for
10372 unsupported options. Adjust printing of current state.
10373 * opts.h (option_enabled): Add argument.
10374 * toplev.c (print_switch_values): Use lang_mask.
10375 (general_init): Set global_dc->lang_mask.
10376
10377 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10378
10379 PR bootstrap/87030
10380 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10381
10382 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10383
10384 * cgraphunit.c (symbol_table::compile): Start and stop
10385 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10386 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10387
10388 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10389
10390 * gimplify.c (flag_instrument_functions_exclude_p): Include
10391 namespace/class information in the printable name.
10392 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10393 to tokens entered into the vector.
10394
10395 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10396
10397 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10398 (get_static_chain): Call it instead of build_simple_mem_ref.
10399 (get_frame_field): Likewise.
10400 (get_nonlocal_debug_decl): Likewise.
10401 (convert_nonlocal_reference_op): Likewise.
10402
10403 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10404
10405 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10406 declaration.
10407 (arc_compute_frame_size): Millicode is disabled when compiling
10408 ISR.
10409 (arc_return_address_register): Likewise.
10410 (arc_compute_function_type): Likewise.
10411 (arc_compute_frame_size): Likewise.
10412 (secondary_reload_info): Likewise.
10413 (arc_get_unalign): Likewise.
10414 (arc_can_use_return_insn): Declare.
10415 * config/arc/arc.c (AUX_LP_START): Define
10416 (AUX_LP_END): Likewise.
10417 (arc_frame_info): Update gmask member to 64-bit datum.
10418 (GMASK_LEN): Update.
10419 (arc_compute_function_type): Make it static, move it forward.
10420 (arc_must_save_register): Update, consider the extra regs.
10421 (arc_compute_millicode_save_restore_regs): Update to use the 64
10422 bit gmask.
10423 (arc_compute_frame_size): Likewise.
10424 (arc_enter_leave_p): Likewise.
10425 (arc_save_callee_saves): Likewise.
10426 (arc_restore_callee_saves): Likewise.
10427 (arc_save_callee_enter): Likewise.
10428 (arc_restore_callee_leave): Likewise.
10429 (arc_save_callee_milli): Likewise.
10430 (arc_restore_callee_milli): Likewise.
10431 (arc_expand_prologue): Add new interrupt handling.
10432 (arc_return_address_register): Make it static, move it forward.
10433 (arc_expand_epilogue): Add new interrupt handling.
10434 (arc_get_unalign): Delete.
10435 (arc_epilogue_uses): Make sure we do not remove the extra
10436 saved/restored registers when interrupt.
10437 (arc_can_use_return_insn): New function.
10438 (push_reg): Likewise.
10439 (pop_reg): Likewise.
10440 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10441 procedures.
10442 (arc_restore_callee_saves): Likewise, but restoring.
10443 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10444 (R33_REG): Likewise.
10445 (R34_REG): Likewise.
10446 (R35_REG): Likewise.
10447 (R36_REG): Likewise.
10448 (R37_REG): Likewise.
10449 (R38_REG): Likewise.
10450 (R39_REG): Likewise.
10451 (R45_REG): Likewise.
10452 (R46_REG): Likewise.
10453 (R47_REG): Likewise.
10454 (R48_REG): Likewise.
10455 (R49_REG): Likewise.
10456 (R50_REG): Likewise.
10457 (R51_REG): Likewise.
10458 (R52_REG): Likewise.
10459 (R53_REG): Likewise.
10460 (R54_REG): Likewise.
10461 (R55_REG): Likewise.
10462 (R56_REG): Likewise.
10463 (R58_REG): Likewise.
10464 (type): Add rtie attribute.
10465 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10466 (movsi_insn): Accept moves to lp_count.
10467 (rtie): Update pattern.
10468 (simple_return): Simplify it, don't use this pattern as a return
10469 from an interrupt.
10470 (arc600_rtie): New pattern.
10471 (p_return_i): Clean up.
10472 (return): Likewise.
10473 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10474 family CPUs.
10475 * config/arc/predicates.md (move_src_operand): Consider lp_count
10476 as a register.
10477
10478 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10479
10480 * config/s390/predicates.md (addv_const_operand): New predicate.
10481 * config/s390/s390-modes.def (CCO): New condition code mode.
10482 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10483 (s390_branch_condition_mask): Likewise.
10484 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10485 ("mulv<mode>4"): New expanders.
10486 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10487 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10488 pattern definitions.
10489
10490 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10491
10492 PR middle-end/91166
10493 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10494 (define_predicates): Add entry for uniform_vector_p.
10495 (vec_same_elem_p): New match pattern.
10496
10497 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10498
10499 PR bootstrap/87030
10500 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10501 * config/i386/darwin32-biarch.h .. to here.
10502 * config/i386/darwin64-biarch.h: Adjust comments.
10503 * config/rs6000/darwin32-biarch.h: Likewise.
10504 * config/rs6000/darwin64-biarch.h: Likewise.
10505 * config.gcc: Missed commit from r273746
10506 (*-*-darwin*): Don't include CPU t-darwin here.
10507 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10508 an error message if i686-darwin configuration is attempted for
10509 Darwin >= 18.
10510
10511 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10512
10513 PR bootstrap/87030
10514 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10515 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10516 an error message if i686-darwin configuration is attempted for
10517 Darwin >= 18.
10518 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10519 (powerpc-*-darwin*): Use biarch files where needed.
10520 (powerpc64-*-darwin*): Likewise.
10521 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10522 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10523 arch case.
10524 * config/i386/darwin32-biarch.h: New.
10525 * config/i386/darwin64.h: Rename.
10526 * config/i386/darwin64-biarch.h: To this.
10527 * config/i386/t-darwin: Rename.
10528 * config/i386/t-darwin32-biarch: To this.
10529 * config/i386/t-darwin64: Rename.
10530 * config/i386/t-darwin64-biarch: To this.
10531 * config/rs6000/darwin32-biarch.h: New.
10532 * config/rs6000/darwin64.h: Rename.
10533 * config/rs6000/darwin64-biarch.h: To this.
10534 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10535 arch case.
10536 * config/rs6000/t-darwin8: Rename.
10537 * config/rs6000/t-darwin32-biarch: To this.
10538 * config/rs6000/t-darwin64 Rename.
10539 * config/rs6000/t-darwin64-biarch: To this.
10540
10541 2019-07-23 Martin Sebor <msebor@redhat.com>
10542
10543 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10544
10545 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10546
10547 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10548 (rh): New alias for it.
10549
10550 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10551
10552 * gdbhooks.py: Pass replace=True to
10553 gdb.printing.register_pretty_printer.
10554
10555 2019-07-23 Richard Biener <rguenther@suse.de>
10556
10557 PR debug/91231
10558 * lto-streamer-in.c (input_function): Drop inline-entry markers
10559 that ended up with an unknown location block.
10560
10561 2019-07-23 Richard Biener <rguenther@suse.de>
10562
10563 PR tree-optimization/83518
10564 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10565 init from a constant even when partial defs are already recorded.
10566
10567 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10568
10569 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10570 * config/i386/znver1.md: Enable patterns for znver2 and add store
10571 variants which use extra AGU unit.
10572
10573 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10574
10575 * config/i386/i386-options.c (ix86_option_override_internal): Default
10576 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10577 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10578 for ZNVER2.
10579
10580 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10581
10582 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10583 (znver2_costs): Update 256 bit SSE costs and multiplication.
10584
10585 2019-07-23 Jan Beulich <jbeulich@suse.com>
10586
10587 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10588 Require only AVX512F.
10589 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10590 alternative expanding to vpternlog.
10591
10592 2019-07-23 Martin Liska <mliska@suse.cz>
10593
10594 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10595 to -flto in dwarf producer string.
10596
10597 2019-07-23 Richard Biener <rguenther@suse.de>
10598
10599 * tree-cfg.c (label_for_bb): Remove global var.
10600 (main_block_label): Take label_for_bb as argument.
10601 (cleanup_dead_labels_eh): Likewise, adjust.
10602 (cleanup_dead_labels): Adjust.
10603
10604 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10605
10606 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10607 Configurations): Add documentation for __builtin_mtfsf.
10608
10609 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10610
10611 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10612 * config/riscv/riscv.c (riscv_constant_alignment): Use
10613 riscv_align_data_type.
10614 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10615 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10616 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10617 * config/riscv/riscv.opt (malign-data): New.
10618 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10619
10620 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10621
10622 * cgraph.c (dump_graphviz): New function.
10623 * cgraph.h (dump_graphviz): New function.
10624 * symtab.c (dump_graphviz): New function.
10625
10626 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10627
10628 * config/aarch64/aarch64-simd.md
10629 (*aarch64_simd_sra<mode>): New.
10630 * config/aarch64/iterators.md
10631 (SHIFTRT): New iterator.
10632 (sra_op): New attribute.
10633
10634 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10635
10636 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10637 callee-saved regs R4->R10 in an interrupt function that calls another
10638 function.
10639
10640 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10641
10642 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10643 (_mm_blendv_epi8): New.
10644
10645 2019-07-22 Richard Biener <rguenther@suse.de>
10646
10647 PR tree-optimization/91221
10648 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10649 restrict partial-def handling of empty constructors and
10650 memset to refs with known offset.
10651
10652 2019-07-22 Jan Beulich <jbeulich@suse.com>
10653
10654 * config/i386/sse.md (ternlogsuffix): New.
10655 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10656 AVX512F is in use.
10657 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10658
10659 2019-07-22 Martin Liska <mliska@suse.cz>
10660
10661 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10662 comment.
10663 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10664
10665 2019-07-22 Martin Liska <mliska@suse.cz>
10666
10667 * lto-section-in.c (lto_get_section_data):
10668 Use new function get_compression.
10669 * lto-streamer-out.c (produce_lto_section): Use
10670 set_compression to encode compression algorithm.
10671 * lto-streamer.h (struct lto_section): Do not
10672 use bitfields in the format.
10673
10674 2019-07-22 Martin Liska <mliska@suse.cz>
10675
10676 PR driver/91172
10677 * opts-common.c (decode_cmdline_option): Decode
10678 argument of -Werror and check it for a wrong language.
10679 * opts-global.c (complain_wrong_lang): Remove such case.
10680
10681 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10682
10683 * config/arc/arc.c (prepare_move_operands): Always use an
10684 intermediate register when storing a TLS symbols.
10685
10686 2019-07-22 Stafford Horne <shorne@gmail.com>
10687
10688 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10689 force_reg.
10690
10691 2019-07-22 Stafford Horne <shorne@gmail.com>
10692
10693 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10694 and munordered-float validations.
10695 * config/or1k/constraints.md (d): New register constraint.
10696 * config/or1k/predicates.md (fp_comparison_operator): New.
10697 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10698 operands.
10699 (or1k_expand_compare): Normalize unordered comparisons.
10700 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10701 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10702 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10703 * config/or1k/or1k.md (type): Add fpu.
10704 (fpu): New instruction reservation.
10705 (F, f, fr, fi, FI, FOP, fop): New.
10706 (<fop><F:mode>3): New ALU instruction definition.
10707 (float<fi><F:mode>2): New conversion instruction definition.
10708 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10709 (fpcmpcc): New code iterator.
10710 (*sf_fp_insn): New instruction definition.
10711 (cstore<F:mode>4): New expand definition.
10712 (cbranch<F:mode>4): New expand definition.
10713 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10714 munordered-float): New options.
10715 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10716 munordered-float.
10717
10718 2019-07-22 Stafford Horne <shorne@gmail.com>
10719
10720 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10721 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10722 documenation to be more clear.
10723 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10724 more clear.
10725 * config/or1k/or1k.opt (mrori): New option.
10726 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10727 msfimm, mshftimm): Rewrite documentation to be more clear.
10728 * config/or1k/or1k.md (insn_support): Add ror and rori.
10729 (enabled): Add conditions for ror and rori.
10730 (rotrsi3): Replace condition for shftimm with ror and rori.
10731
10732 2019-07-22 Stafford Horne <shorne@gmail.com>
10733
10734 PR target/90363
10735 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10736 (extend<mode>si2): Update predicate.
10737 * config/or1k/predicates.md (volatile_mem_operand): New.
10738 (reg_or_mem_operand): New.
10739
10740 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10741
10742 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10743 * config/rs6000/rs6000-call.c: ... to here.
10744
10745 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10746
10747 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10748 memory.
10749
10750 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10751
10752 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10753
10754 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10755
10756 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10757
10758 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10759
10760 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10761 (any_memory_operand): New predicate.
10762 (reg_or_mem_operand): Use it.
10763
10764 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10765
10766 PR target/91204
10767 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10768
10769 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10770
10771 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10772 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10773
10774 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10775
10776 * tree.def (OMP_LOOP): New tree code.
10777 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10778 (enum omp_clause_bind_kind): New enum.
10779 (struct tree_omp_clause): Add subcode.bind_kind.
10780 * tree.h (OMP_LOOP_CHECK): Rename to ...
10781 (OMP_LOOPING_CHECK): ... this.
10782 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10783 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10784 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10785 (OMP_CLAUSE_BIND_KIND): Define.
10786 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10787 bind clause entries.
10788 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10789 * tree-pretty-print.c (dump_omp_clause): Likewise.
10790 (dump_generic_node): Handle OMP_LOOP.
10791 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10792 (in_omp_construct): New variable.
10793 (is_gimple_stmt): Handle OMP_LOOP.
10794 (gimplify_scan_omp_clauses): For lastprivate don't set
10795 check_non_private if code == OMP_LOOP. For reduction clause
10796 on OMP_LOOP combined with parallel or teams propagate as shared
10797 on the combined construct. Handle OMP_CLAUSE_BIND.
10798 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10799 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10800 for constructs from a loop construct to gimplify_scan_omp_clauses.
10801 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10802 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10803 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10804 to match the implicit ORT_TARGET construct around whole body.
10805 Temporarily clear in_omp_construct when processing body.
10806 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10807 etc. temporarily set in_omp_construct when processing body.
10808 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10809 * omp-low.c (struct omp_context): Add loop_p.
10810 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10811 in that the original var might be private.
10812 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10813 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10814 addition of loop construct.
10815 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10816
10817 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10818 lastprivate non-addressable iterator of a collapse(1) simd.
10819
10820 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10821
10822 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10823 as in rs6000.c.
10824
10825 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10826
10827 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10828 refer to default conditions. Warn for the 'y' spec which is ignored
10829 by current linkers.
10830
10831 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10832
10833 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10834 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10835 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10836 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10837 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10838 init_cumulative_args, rs6000_promote_function_mode,
10839 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10840 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10841 rs6000_function_arg_boundary, rs6000_parm_offset,
10842 rs6000_parm_start, rs6000_arg_size,
10843 rs6000_darwin64_record_arg_advance_flush,
10844 rs6000_darwin64_record_arg_advance_recurse,
10845 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10846 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10847 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10848 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10849 rs6000_finish_function_arg, rs6000_function_arg,
10850 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10851 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10852 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10853 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10854 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10855 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10856 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10857 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10858 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10859 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10860 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10861 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10862 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10863 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10864 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10865 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10866 get_element_number, altivec_expand_vec_set_builtin,
10867 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10868 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10869 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10870 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10871 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10872 rs6000_expand_builtin, rs6000_vector_type,
10873 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10874 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10875 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10876 to rs6000-call.c.
10877 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10878 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10879 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10880 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10881 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10882 init_cumulative_args, rs6000_promote_function_mode,
10883 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10884 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10885 rs6000_function_arg_boundary, rs6000_parm_offset,
10886 rs6000_parm_start, rs6000_arg_size,
10887 rs6000_darwin64_record_arg_advance_flush,
10888 rs6000_darwin64_record_arg_advance_recurse,
10889 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10890 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10891 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10892 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10893 rs6000_finish_function_arg, rs6000_function_arg,
10894 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10895 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10896 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10897 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10898 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10899 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10900 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10901 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10902 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10903 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10904 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10905 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10906 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10907 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10908 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10909 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10910 get_element_number, altivec_expand_vec_set_builtin,
10911 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10912 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10913 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10914 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10915 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10916 rs6000_expand_builtin, rs6000_vector_type,
10917 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10918 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10919 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10920 to here from rs6000.c.
10921 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10922 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10923 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10924 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10925 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10926 rs6000_return_in_memory, rs6000_return_in_msb,
10927 rs6000_pass_by_reference, setup_incoming_varargs,
10928 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10929 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10930 rs6000_function_arg_padding, rs6000_function_arg,
10931 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10932 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10933 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10934 rs6000_passes_long_double, rs6000_passes_vector,
10935 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10936 altivec_builtin_mask_for_load) Add declarations.
10937 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10938 * config/config.gcc: Add new source file rs6000-call.c to garbage
10939 collector and extra_objs.
10940
10941 2019-07-19 Jeff Law <law@redhat.com>
10942
10943 PR tree-optimization/86061
10944 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10945 strncpy. Drop some trivial dead code.
10946 (maybe_trim_memstar_call): Handle strncpy.
10947
10948 2019-07-19 Richard Biener <rguenther@suse.de>
10949
10950 PR tree-optimization/91211
10951 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10952 memset encoding size.
10953
10954 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10955
10956 PR target/91204
10957 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10958
10959 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10960
10961 PR ipa/91194
10962 * ipa-inline.c (recursive_inlining): Fix limits check.
10963
10964 2019-07-19 Richard Biener <rguenther@suse.de>
10965
10966 PR tree-optimization/91200
10967 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10968 no PHI nodes in middle-bb.
10969
10970 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10971
10972 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10973 to +sve-bitperm.
10974 * config/aarch64/aarch64-option-extensions.def: Likewise.
10975
10976 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10977
10978 PR middle-end/91190
10979 * function.c (insert_temp_slot_address): Store into the hash table
10980 a copy of address to avoid RTL sharing issues.
10981
10982 2019-07-19 Richard Biener <rguenther@suse.de>
10983
10984 PR tree-optimization/91207
10985 Revert
10986 2019-07-17 Richard Biener <rguenther@suse.de>
10987
10988 PR tree-optimization/91178
10989 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10990 loads with a gap larger than the vector size always use
10991 VMAT_STRIDED_SLP.
10992 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10993 avoid loading vectors that are only contained in the gap
10994 and thus are not needed.
10995
10996 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10997
10998 * config/i386/i386.md (*addqi_2_slp): Remove.
10999 (*<code>qi_2_slp): Ditto.
11000
11001 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
11002
11003 * config/rs6000/predicates.md (prefixed_mem_operand): Call
11004 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
11005 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
11006 Rename function from rs6000_prefixed_address.
11007 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11008 TARGET_HAS_TOC.
11009 (TARGET_TOC): Likewise.
11010 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11011 rs6000.h.
11012 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11013 TARGET_HAS_TOC.
11014 (TARGET_TOC): Likewise.
11015 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11016 rs6000.h.
11017 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11018 TARGET_HAS_TOC.
11019 (TARGET_TOC): Likewise.
11020 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11021 check to require -mcmodel=medium for pc-relative addressing.
11022 (create_TOC_reference): Add assertion for TARGET_TOC.
11023 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
11024 TARGET_NO_TOC.
11025 (rs6000_emit_move): Likewise.
11026 (TOC_alias_set): Rename TOC alias set static variable from 'set'
11027 to 'TOC_alias_set'.
11028 (get_TOC_alias_set): Likewise.
11029 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
11030 TARGET_NO_TOC.
11031 (rs6000_can_eliminate): Likewise.
11032 (rs6000_prefixed_address_mode_p): Rename function from
11033 rs6000_prefixed_address.
11034 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
11035 TARGET_HAS_TOC and not pc-relative.
11036 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
11037 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11038 TARGET_HAS_TOC.
11039 (TARGET_TOC): Likewise.
11040 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11041 rs6000.h.
11042
11043 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11044
11045 PR target/91188
11046 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
11047 for operand 0. Do not use (match_dup) to match operand 1 with
11048 operand 0. Add check in insn constraint that either input operand
11049 matches operand 0. Use SWI12 mode iterator to also handle
11050 HImode operands.
11051 (*and<mode>_1_slp): Ditto.
11052 (*<code>qi_1_slp): Ditto.
11053 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
11054 Do not use (match_dup) to match operand 1 with operand 0. Add
11055 check in insn constraint that operand 1 matches operand 0.
11056 Use SWI12 mode iterator to also handle HImode operands.
11057 (*ashl<mode>3_1_slp): Ditto.
11058 (*<shift_insn><mode>3_1_slp): Ditto.
11059 (*<rotate_insn><mode>3_1_slp): Ditto.
11060
11061 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11062
11063 * config/arm/arm-builtins.c
11064 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
11065 (arm_expand_unop_builtin): Likewise.
11066 * config/arm/crypto.md
11067 (crypto_sha1h): Convert from define_insn to define_expand.
11068 (crypto_<crypto_pattern>): Likewise.
11069 (crypto_sha1h_lb): New define_insn.
11070 (crypto_<crypto_pattern>_lb): Likewise.
11071
11072 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11073
11074 PR target/90317
11075 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
11076 (vsha1cq_u32): Likewise.
11077 (vsha1pq_u32): Likewise.
11078 (vsha1mq_u32): Likewise.
11079 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
11080 vec select.
11081 (crypto_sha1c): Correct vec select.
11082 (crypto_sha1m): Likewise.
11083 (crypto_sha1p): Likewise.
11084
11085 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11086
11087 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11088 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11089 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11090 (subdi_zesidi_zesidi): Likewise.
11091 (negdi2_compare, negdi2_insn): Likewise.
11092 (negdi_extensidi): Likewise.
11093 (negdi_zero_extendsidi): Likewise.
11094 (arm_cmpdi_insn): Likewise.
11095 (subsi3_carryin): Use arm_borrow_operation.
11096 (subsi3_carryin_const): Likewise.
11097 (subsi3_carryin_const0): Likewise.
11098 (subsi3_carryin_compare): Likewise.
11099 (subsi3_carryin_compare_const): Likewise.
11100 (subsi3_carryin_compare_const0): Likewise.
11101 (subsi3_carryin_shift): Likewise.
11102 (rsbsi3_carryin_shift): Likewise.
11103 (negsi2_carryin_compare): Likewise.
11104
11105 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11106
11107 PR tree-optimization/91137
11108 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11109 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11110 Init, use and fini the above new field.
11111 (determine_base_object_1): New function.
11112 (determine_base_object): Reimplement using walk_tree.
11113
11114 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11115
11116 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11117 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11118 CLEANUP_FORCE_FAST_DCE is set.
11119 * ifcvt.c (rest_of_handle_if_conversion): Pass
11120 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11121 if-conversion succeeded.
11122
11123 2019-07-18 Richard Biener <rguenther@suse.de>
11124
11125 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11126 branches to make code less indented.
11127
11128 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11129
11130 PR middle-end/81824
11131 * attribs.c (decls_mismatched_attributes): Simplify the logic
11132 that avoids duplicates and false positives.
11133
11134 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11135
11136 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11137 data into data section when generating PIC code.
11138 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11139 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11140 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11141 return 2 for SOM and 0 for other targets.
11142
11143 2019-07-17 Jeff Law <law@redhat.com>
11144
11145 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11146 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11147 avoid unexpected switch statement fallthru.
11148
11149 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11150
11151 * config/i386/i386.md (*add<dwi>3_doubleword):
11152 Remove redundant constraints.
11153 (*add<mode>_1): Ditto.
11154 (*addhi_1): Ditto.
11155 (*addqi_1): Ditto.
11156 (*addqi_1_slp): Ditto.
11157 (*add<mode>_2): Ditto.
11158 (*addv<mode>4): Ditto.
11159 (*sub<dwi>3_doubleword): Ditto.
11160 (*sub<mode>_1): Ditto.
11161 (*subqi_1_slp): Ditto.
11162 (*sub<mode>_2): Ditto.
11163 (*subv<mode>4): Ditto.
11164 (*sub<mode>_3): Ditto.
11165 (@add<mode>3_carry): Ditto.
11166 (@sub<mode>3_carry): Ditto.
11167 (*add<mode>3_cc_overflow_1): Ditto.
11168 (*add<mode>3_zext_cc_overflow_2): Ditto.
11169 (*anddi_1): Ditto.
11170 (*and<mode>_1): Ditto.
11171 (*andqi_1): Ditto.
11172 (*andqi_1_slp): Ditto.
11173 (*anddi_2): Ditto.
11174 (*andqi_2_maybe_si): Ditto.
11175 (*and<mode>_2): Ditto.
11176 (*andqi_2_slp): Ditto.
11177 (*<code><mode>_1): Ditto.
11178 (*<code>qi_1): Ditto.
11179 (*<code>qi_1_slp): Ditto.
11180 (*<code><mode>_2): Ditto.
11181 (*<code>qi_2_slp): Ditto.
11182
11183 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11184
11185 * alias.c (record_component_aliases): Do not simplify pointed-to
11186 types of ODR types.
11187
11188 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11189
11190 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11191 partial reg stall on alternative 2.
11192
11193 2019-07-17 Richard Biener <rguenther@suse.de>
11194
11195 PR tree-optimization/91178
11196 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11197 lower SSA names to avoid quadratic behavior in the common case.
11198 * tree-data-ref.c (split_constant_offset): Add limit argument
11199 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11200 (split_constant_offset_1): Add limit argument and use it to
11201 limit SSA def walking. Optimize the common plus/minus case.
11202
11203 2019-07-17 Richard Biener <rguenther@suse.de>
11204
11205 PR tree-optimization/91178
11206 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11207 loads with a gap larger than the vector size always use
11208 VMAT_STRIDED_SLP.
11209 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11210 avoid loading vectors that are only contained in the gap
11211 and thus are not needed.
11212
11213 2019-07-17 Richard Biener <rguenther@suse.de>
11214
11215 PR tree-optimization/91180
11216 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11217 computation for memset partial defs.
11218
11219 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11220
11221 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11222 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11223 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11224 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11225 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11226 * omp-grid.c (grid_process_grid_body,
11227 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11228 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11229 == GF_OMP_FOR_KIND_SIMD.
11230 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11231 check_omp_nesting_restrictions, scan_omp_1_stmt,
11232 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11233 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11234 omp_find_scan): Likewise.
11235 * omp-expand.c (expand_omp_for): Likewise.
11236 * omp-general.c (omp_extract_for_data): Likewise.
11237
11238 PR tree-optimization/91157
11239 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11240 a vector boolean with scalar mode.
11241 (expand_vector_condition): Handle first operand being a vector boolean
11242 with scalar mode.
11243 (expand_vector_operations_1): For comparisons, don't bail out early
11244 if the return type is vector boolean with scalar mode, but comparison
11245 operand type is not.
11246
11247 2019-07-17 Richard Biener <rguenther@suse.de>
11248
11249 PR tree-optimization/91181
11250 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11251 IFN_LOADs as calls.
11252
11253 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11254
11255 * config/i386/i386.md (*testdi_1): Match CCZmode for
11256 constants that might have the SImode sign bit set.
11257 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11258 Use correct constraints for pentium pairing.
11259 (*test<mode>_1): Ditto.
11260
11261 2019-07-16 Jeff Law <law@redhat.com>
11262
11263 PR rtl-optimization/91173
11264 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11265 SSA_NAME with a constant value, fold its value into the offset
11266 and clear the base before calling gen_addr_rtx.
11267
11268 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11269
11270 PR rtl-optimization/91164
11271 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11272 invalidate dominance info.
11273
11274 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11275
11276 * read-md.h (md_reader::record_potential_iterator_use): Add a
11277 file_location parameter.
11278 * read-rtl.c (attribute_use::loc): New field.
11279 (map_attr_string): Take a file_location parameter. Report cases
11280 in which attributes map to multiple distinct values.
11281 (apply_attribute_uses): Update call accordingly.
11282 (md_reader::handle_overloaded_name): Likewise.
11283 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11284 nonnull strings.
11285 (record_attribute_use): Take a file_location parameter.
11286 Initialize attribute_use::loc.
11287 (md_reader::record_potential_iterator_use): Take a file_location
11288 parameter. Update call to record_attribute_use.
11289 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11290 (rtx_reader::read_rtx_code): Likewise.
11291 (rtx_reader::read_rtx_operand): Likewise. Record a location
11292 for implicitly-expanded empty strings.
11293
11294 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11295
11296 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11297 Use file_location instead of separate fields.
11298 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11299 separate filename and line number.
11300 * read-md.c (ptr_loc): As above.
11301 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11302 (md_reader::fprint_md_ptr_loc): Likewise.
11303 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11304 instead of a separate filename and line number.
11305 (md_reader::read_string): Update call accordingly.
11306
11307 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11308
11309 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11310 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11311 leaving the choice between SFDF and P implicit.
11312 (*mov<mode>_update2): Likewise.
11313 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11314 rather than leaving the choice betweem IBM128 and GPR implicit.
11315 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11316 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11317 QHSI implicit.
11318 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11319 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11320 * config/rs6000/vsx.md
11321 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11322 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11323 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11324 and VSX_EXTRACT_I implicit.
11325
11326 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11327
11328 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11329 Explicitly use <MOVEP1:MODE> for the mode attribute.
11330
11331 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11332
11333 PR bootstrap/91176
11334 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11335
11336 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11337
11338 PR target/91050
11339 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11340 .machine directive.
11341
11342 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11343
11344 * config/i386/i386.md (@test<mode>_ccno_1):
11345 Rename from test<mode>_ccno_1.
11346 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11347 (*testqi_1_maybe_si): Remove modrm attribute.
11348 (*test<mode>_1): Ditto.
11349 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11350 gen_test_ccno_1 and gen_extend_insn.
11351
11352 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11353
11354 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11355 to 0.
11356
11357 2019-07-15 Richard Biener <rguenther@suse.de>
11358
11359 PR middle-end/91162
11360 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11361 node make sure to replace all uses with something valid.
11362
11363 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11364
11365 PR tree-optimization/88497
11366 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11367 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11368 function undistribute_bitref_for_vector.
11369 (undistribute_bitref_for_vector): New function.
11370 (cleanup_vinfo_map): Likewise.
11371 (sort_by_mach_mode): Likewise.
11372
11373 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11374
11375 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11376 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11377 and testdi_ccno_1 using SWI48 mode attribute.
11378 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11379 x86_64_szext_general_operand.
11380 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11381 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11382 instead of genera_operand mode attribute.
11383
11384 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11385
11386 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11387 fopen and fclose to their respective types.
11388 (DotFn.invoke): Ditto.
11389
11390 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11391
11392 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11393 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11394 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11395 (array_index_predicate): Remove.
11396 (analyze_function_body): Account cost for variable ofsetted array
11397 indexing.
11398 (estimate_node_size_and_time): Do not compute array index hint.
11399 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11400 (inline_read_section): Do not read array index hint.
11401 (ipa_fn_summary_write): Do not write array index hint.
11402 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11403 * ipa-cp.c (hint_time_bonus): Remove.
11404 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11405 (ipa_fnsummary): Remove array_index.
11406 * ipa-inline.c (want_inline_small_function_p): Do not use
11407 array_index.
11408 (edge_badness): Likewise.
11409 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11410
11411 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11412
11413 PR target/91148
11414 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11415 superfluous "builtin function" phrasing.
11416
11417 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11418
11419 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11420 Break out from ...
11421 (aliasing_component_refs_walk): Break out from ...
11422 (aliasing_component_refs_p): ... here.
11423
11424 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11425
11426 PR target/91148
11427 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11428 "builtin function" phrasing.
11429
11430 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11431
11432 PR target/90723
11433 * recog.h (temporary_volatile_ok): New class.
11434 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11435 volatile_ok temporarily to true using temporary_volatile_ok.
11436 * expr.c (emit_block_move_via_cpymem): Likewise.
11437 * optabs.c (maybe_legitimize_operand): Likewise.
11438
11439 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11440
11441 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11442 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11443 uses inside of order(concurrent) constructs.
11444 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11445 OMP_CLAUSE_ORDER is seen.
11446 * omp-low.c (struct omp_context): Add order_concurrent member.
11447 (scan_sharing_clauses): Set ctx->order_concurrent if
11448 OMP_CLAUSE_ORDER is seen.
11449 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11450 of simd order(concurrent). Diagnose constructs not allowed inside of
11451 for order(concurrent).
11452 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11453 complaining about static double setjmp (double); or class static
11454 methods or non-global namespace setjmps.
11455 (omp_runtime_api_call): New function.
11456 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11457 order(concurrent) loops.
11458
11459 2019-07-12 Martin Sebor <msebor@redhat.com>
11460
11461 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11462 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11463 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11464 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11465
11466 2019-07-12 Jan Hubicka <jh@suse.cz>
11467
11468 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11469 (indirect_refs_may_alias_p): ... here.
11470 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11471 mem refs in the access paths.
11472
11473 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11474
11475 PR tree-optimization/89430
11476 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11477 store elimination for local variable without address escape.
11478
11479 2019-07-12 Jeff Law <law@redhat.com>
11480
11481 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11482 for the ".far" section.
11483
11484 2019-07-12 Richard Biener <rguenther@suse.de>
11485
11486 PR tree-optimization/91145
11487 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11488 chain check.
11489
11490 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11491
11492 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11493 rather than this_state as the lowering context for the ELSE
11494 seq in a GIMPLE_EH_ELSE.
11495
11496 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11497
11498 * vector-builder.h (vector_builder::elt): Allow already-supplied
11499 elements to be read back before building is complete.
11500
11501 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11502
11503 PR rtl-optimization/91136
11504 * df-core.c (ACCESSING REFS): Fix typos in comment.
11505 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11506 the beginning of the block to the initial set of live registers.
11507
11508 2019-07-12 Richard Biener <rguenther@suse.de>
11509
11510 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11511 * fold-const.c (get_array_ctor_element_at_index): Add
11512 ctor_idx output parameter informing the caller where in
11513 the constructor the element was (not) found. Add early exit
11514 for when the ctor is sorted.
11515 * gimple-fold.c (fold_array_ctor_reference): Support constant
11516 folding across multiple array elements.
11517
11518 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11519
11520 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11521 doesn't have location, set the current location to the function's end.
11522
11523 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11524
11525 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11526 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11527 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11528 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11529 * config/aarch64/aarch64-simd.md
11530 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11531 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11532 * config/aarch64/aarch64-sve.md
11533 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11534 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11535
11536 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11537
11538 * doc/md.texi: Document that @ patterns can have different
11539 numbers of operands.
11540 * genemit.c (handle_overloaded_gen): Handle this case.
11541 * genopinit.c (handle_overloaded_gen): Likewise.
11542 * gensupport.c (replace_operands_with_dups): Iterate over
11543 the new rtx's format rather than the old one's.
11544
11545 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11546
11547 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11548 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11549 order clause entries.
11550 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11551 * tree-pretty-print.c (dump_omp_clause): Likewise.
11552 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11553 Likewise.
11554 * omp-low.c (scan_sharing_clauses): Likewise.
11555 * tree-nested.c (convert_nonlocal_omp_clauses,
11556 convert_local_omp_clauses): Likewise.
11557
11558 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11559
11560 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11561 fallthrough target of current basic block isn't the placed
11562 right next.
11563
11564 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11565
11566 PR target/90980
11567 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11568 (_mm512_storeu_epi64): Likewise.
11569 (_mm512_loadu_epi32): Likewise.
11570 (_mm512_storeu_epi32): Likewise.
11571 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11572 (_mm_storeu_epi64): Likewise.
11573 (_mm256_storeu_epi32): Likewise.
11574 (_mm_storeu_epi32): Likewise.
11575
11576 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11577
11578 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11579
11580 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11581
11582 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11583 Handle Modula-2.
11584
11585 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11586
11587 PR target/91124
11588 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11589 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11590 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11591 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11592 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11593 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11594 define_insns.
11595 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11596 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11597 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11598 define_insns.
11599 (sse2_cvttpd2dq<mask_name>): Change into ...
11600 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11601 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11602 (*sse2_cvtpd2dq<mask_name>): Change into ...
11603 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11604 Add "C" constraint to const0_operand.
11605 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11606 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11607 changes.
11608
11609 PR target/91124
11610 * config/i386/i386-builtin-types.def
11611 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11612 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11613 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11614 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11615 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11616 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11617 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11618 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11619 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11620 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11621 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11622 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11623 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11624 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11625 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11626 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11627 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11628 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11629 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11630 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11631 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11632 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11633 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11634 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11635 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11636 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11637 __builtin_ia32_vpdpbusd_v4si_maskz,
11638 __builtin_ia32_vpdpbusds_v16si_mask,
11639 __builtin_ia32_vpdpbusds_v16si_maskz,
11640 __builtin_ia32_vpdpbusds_v8si_mask,
11641 __builtin_ia32_vpdpbusds_v8si_maskz,
11642 __builtin_ia32_vpdpbusds_v4si_mask,
11643 __builtin_ia32_vpdpbusds_v4si_maskz,
11644 __builtin_ia32_vpdpwssd_v16si_mask,
11645 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11646 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11647 __builtin_ia32_vpdpwssd_v4si_maskz,
11648 __builtin_ia32_vpdpwssds_v16si_mask,
11649 __builtin_ia32_vpdpwssds_v16si_maskz,
11650 __builtin_ia32_vpdpwssds_v8si_mask,
11651 __builtin_ia32_vpdpwssds_v8si_maskz,
11652 __builtin_ia32_vpdpwssds_v4si_mask,
11653 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11654 suffixed types rather than *_INT.
11655 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11656 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11657 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11658 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11659 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11660 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11661
11662 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11663
11664 * tree-vrp.c (intersect_ranges): If we know the intersection is
11665 empty, there is no need to conservatively add anything else to
11666 the set.
11667
11668 2019-07-11 Richard Biener <rguenther@suse.de>
11669
11670 PR middle-end/91131
11671 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11672 when the object is volatile and we have not cleared it even though
11673 there are no nonzero elements.
11674
11675 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11676
11677 * config/rs6000/predicates.md (cint34_operand): Update
11678 SIGNED_34BIT_OFFSET_P call.
11679 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11680 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11681 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11682 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11683 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11684 argument.
11685 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11686 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11687 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11688 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11689 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11690
11691 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11692
11693 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11694 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11695 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11696 (DEF_MIN_OSX_VERSION): New.
11697
11698 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11699
11700 * fold-const.c (fold_relational_const): Fix folding of
11701 vector-to-scalar NE_EXPRs.
11702 (test_vector_folding): Add more tests.
11703
11704 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11705
11706 PR target/91060
11707 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11708 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11709 (vec_setv2di_internal): Reexpress as...
11710 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11711 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11712 rather than gen_neon_vset_lane<mode>.
11713
11714 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11715
11716 PR target/91102
11717 * lra-constraints.c (process_alt_operands): Don't match user
11718 defined regs only if they are early clobbers.
11719
11720 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11721
11722 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11723
11724 2019-07-10 Richard Biener <rguenther@suse.de>
11725
11726 PR tree-optimization/91126
11727 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11728 native encoding offset for BYTES_BIG_ENDIAN.
11729 (vn_reference_lookup_3): Likewise.
11730
11731 2019-07-10 Richard Biener <rguenther@suse.de>
11732
11733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11734 LHS whenever possible.
11735
11736 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11737
11738 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11739 from ...; work also on duplicated types.
11740 (nonoverlapping_component_refs_since_match): ... here
11741 (ncr_type_uid): Break out from ...
11742 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11743 available.
11744 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11745 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11746
11747 2019-07-09 Martin Sebor <msebor@redhat.com>
11748
11749 PR tree-optimization/90989
11750 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11751 optimization to just single character stores.
11752
11753 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11754
11755 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11756 Swap operands only once.
11757
11758 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11759
11760 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11761 for both call instructions.
11762
11763 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11764
11765 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11766 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11767
11768 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11769
11770 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11771 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11772 function from rs6000-logue.c back to rs6000.c.
11773 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11774
11775 2019-07-09 Martin Sebor <msebor@redhat.com>
11776
11777 PR c++/61339
11778 * auto-profile.c: Change class-key of PODs to struct and others
11779 to class.
11780 * basic-block.h: Same.
11781 * bitmap.c (bitmap_alloc): Same.
11782 * bitmap.h: Same.
11783 * builtins.c (expand_builtin_prefetch): Same.
11784 (expand_builtin_interclass_mathfn): Same.
11785 (expand_builtin_strlen): Same.
11786 (expand_builtin_mempcpy_args): Same.
11787 (expand_cmpstr): Same.
11788 (expand_builtin___clear_cache): Same.
11789 (expand_ifn_atomic_bit_test_and): Same.
11790 (expand_builtin_thread_pointer): Same.
11791 (expand_builtin_set_thread_pointer): Same.
11792 * caller-save.c (setup_save_areas): Same.
11793 (replace_reg_with_saved_mem): Same.
11794 (insert_restore): Same.
11795 (insert_save): Same.
11796 (add_used_regs): Same.
11797 * cfg.c (get_bb_copy): Same.
11798 (set_loop_copy): Same.
11799 * cfg.h: Same.
11800 * cfganal.h: Same.
11801 * cfgexpand.c (alloc_stack_frame_space): Same.
11802 (add_stack_var): Same.
11803 (add_stack_var_conflict): Same.
11804 (add_scope_conflicts_1): Same.
11805 (update_alias_info_with_stack_vars): Same.
11806 (expand_used_vars): Same.
11807 * cfghooks.c (redirect_edge_and_branch_force): Same.
11808 (delete_basic_block): Same.
11809 (split_edge): Same.
11810 (make_forwarder_block): Same.
11811 (force_nonfallthru): Same.
11812 (duplicate_block): Same.
11813 (lv_flush_pending_stmts): Same.
11814 * cfghooks.h: Same.
11815 * cfgloop.c (flow_loops_cfg_dump): Same.
11816 (flow_loop_nested_p): Same.
11817 (superloop_at_depth): Same.
11818 (get_loop_latch_edges): Same.
11819 (flow_loop_dump): Same.
11820 (flow_loops_dump): Same.
11821 (flow_loops_free): Same.
11822 (flow_loop_nodes_find): Same.
11823 (establish_preds): Same.
11824 (flow_loop_tree_node_add): Same.
11825 (flow_loop_tree_node_remove): Same.
11826 (flow_loops_find): Same.
11827 (find_subloop_latch_edge_by_profile): Same.
11828 (find_subloop_latch_edge_by_ivs): Same.
11829 (mfb_redirect_edges_in_set): Same.
11830 (form_subloop): Same.
11831 (merge_latch_edges): Same.
11832 (disambiguate_multiple_latches): Same.
11833 (disambiguate_loops_with_multiple_latches): Same.
11834 (flow_bb_inside_loop_p): Same.
11835 (glb_enum_p): Same.
11836 (get_loop_body_with_size): Same.
11837 (get_loop_body): Same.
11838 (fill_sons_in_loop): Same.
11839 (get_loop_body_in_dom_order): Same.
11840 (get_loop_body_in_custom_order): Same.
11841 (release_recorded_exits): Same.
11842 (get_loop_exit_edges): Same.
11843 (num_loop_branches): Same.
11844 (remove_bb_from_loops): Same.
11845 (find_common_loop): Same.
11846 (delete_loop): Same.
11847 (cancel_loop): Same.
11848 (verify_loop_structure): Same.
11849 (loop_preheader_edge): Same.
11850 (loop_exit_edge_p): Same.
11851 (single_exit): Same.
11852 (loop_exits_to_bb_p): Same.
11853 (loop_exits_from_bb_p): Same.
11854 (get_loop_location): Same.
11855 (record_niter_bound): Same.
11856 (get_estimated_loop_iterations_int): Same.
11857 (max_stmt_executions_int): Same.
11858 (likely_max_stmt_executions_int): Same.
11859 (get_estimated_loop_iterations): Same.
11860 (get_max_loop_iterations): Same.
11861 (get_max_loop_iterations_int): Same.
11862 (get_likely_max_loop_iterations): Same.
11863 * cfgloop.h (simple_loop_desc): Same.
11864 (get_loop): Same.
11865 (loop_depth): Same.
11866 (loop_outer): Same.
11867 (loop_iterator::next): Same.
11868 (loop_outermost): Same.
11869 * cfgloopanal.c (mark_irreducible_loops): Same.
11870 (num_loop_insns): Same.
11871 (average_num_loop_insns): Same.
11872 (expected_loop_iterations_unbounded): Same.
11873 (expected_loop_iterations): Same.
11874 (mark_loop_exit_edges): Same.
11875 (single_likely_exit): Same.
11876 * cfgloopmanip.c (fix_bb_placement): Same.
11877 (fix_bb_placements): Same.
11878 (remove_path): Same.
11879 (place_new_loop): Same.
11880 (add_loop): Same.
11881 (scale_loop_frequencies): Same.
11882 (scale_loop_profile): Same.
11883 (create_empty_if_region_on_edge): Same.
11884 (create_empty_loop_on_edge): Same.
11885 (loopify): Same.
11886 (unloop): Same.
11887 (fix_loop_placements): Same.
11888 (copy_loop_info): Same.
11889 (duplicate_loop): Same.
11890 (duplicate_subloops): Same.
11891 (loop_redirect_edge): Same.
11892 (can_duplicate_loop_p): Same.
11893 (duplicate_loop_to_header_edge): Same.
11894 (mfb_keep_just): Same.
11895 (has_preds_from_loop): Same.
11896 (create_preheader): Same.
11897 (create_preheaders): Same.
11898 (lv_adjust_loop_entry_edge): Same.
11899 (loop_version): Same.
11900 * cfgloopmanip.h: Same.
11901 * cgraph.h: Same.
11902 * cgraphbuild.c: Same.
11903 * combine.c (make_extraction): Same.
11904 * config/i386/i386-features.c: Same.
11905 * config/i386/i386-features.h: Same.
11906 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11907 (ix86_emit_outlined_ms2sysv_restore): Same.
11908 (ix86_noce_conversion_profitable_p): Same.
11909 (ix86_init_cost): Same.
11910 (ix86_simd_clone_usable): Same.
11911 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11912 Wstruct-not-pod.
11913 * coretypes.h: Same.
11914 * data-streamer-in.c (string_for_index): Change class-key of PODs
11915 to struct and others to class.
11916 (streamer_read_indexed_string): Same.
11917 (streamer_read_string): Same.
11918 (bp_unpack_indexed_string): Same.
11919 (bp_unpack_string): Same.
11920 (streamer_read_uhwi): Same.
11921 (streamer_read_hwi): Same.
11922 (streamer_read_gcov_count): Same.
11923 (streamer_read_wide_int): Same.
11924 * data-streamer.h (streamer_write_bitpack): Same.
11925 (bp_unpack_value): Same.
11926 (streamer_write_char_stream): Same.
11927 (streamer_write_hwi_in_range): Same.
11928 (streamer_write_record_start): Same.
11929 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11930 (add_cross_iteration_register_deps): Same.
11931 (build_intra_loop_deps): Same.
11932 * df-core.c (df_analyze): Same.
11933 (loop_post_order_compute): Same.
11934 (loop_inverted_post_order_compute): Same.
11935 * df-problems.c (df_rd_alloc): Same.
11936 (df_rd_simulate_one_insn): Same.
11937 (df_rd_local_compute): Same.
11938 (df_rd_init_solution): Same.
11939 (df_rd_confluence_n): Same.
11940 (df_rd_transfer_function): Same.
11941 (df_rd_free): Same.
11942 (df_rd_dump_defs_set): Same.
11943 (df_rd_top_dump): Same.
11944 (df_lr_alloc): Same.
11945 (df_lr_reset): Same.
11946 (df_lr_local_compute): Same.
11947 (df_lr_init): Same.
11948 (df_lr_confluence_n): Same.
11949 (df_lr_free): Same.
11950 (df_lr_top_dump): Same.
11951 (df_lr_verify_transfer_functions): Same.
11952 (df_live_alloc): Same.
11953 (df_live_reset): Same.
11954 (df_live_init): Same.
11955 (df_live_confluence_n): Same.
11956 (df_live_finalize): Same.
11957 (df_live_free): Same.
11958 (df_live_top_dump): Same.
11959 (df_live_verify_transfer_functions): Same.
11960 (df_mir_alloc): Same.
11961 (df_mir_reset): Same.
11962 (df_mir_init): Same.
11963 (df_mir_confluence_n): Same.
11964 (df_mir_free): Same.
11965 (df_mir_top_dump): Same.
11966 (df_word_lr_alloc): Same.
11967 (df_word_lr_reset): Same.
11968 (df_word_lr_init): Same.
11969 (df_word_lr_confluence_n): Same.
11970 (df_word_lr_free): Same.
11971 (df_word_lr_top_dump): Same.
11972 (df_md_alloc): Same.
11973 (df_md_simulate_one_insn): Same.
11974 (df_md_reset): Same.
11975 (df_md_init): Same.
11976 (df_md_free): Same.
11977 (df_md_top_dump): Same.
11978 * df-scan.c (df_insn_delete): Same.
11979 (df_insn_rescan): Same.
11980 (df_notes_rescan): Same.
11981 (df_sort_and_compress_mws): Same.
11982 (df_install_mws): Same.
11983 (df_refs_add_to_chains): Same.
11984 (df_ref_create_structure): Same.
11985 (df_ref_record): Same.
11986 (df_def_record_1): Same.
11987 (df_find_hard_reg_defs): Same.
11988 (df_uses_record): Same.
11989 (df_get_conditional_uses): Same.
11990 (df_get_call_refs): Same.
11991 (df_recompute_luids): Same.
11992 (df_get_entry_block_def_set): Same.
11993 (df_entry_block_defs_collect): Same.
11994 (df_get_exit_block_use_set): Same.
11995 (df_exit_block_uses_collect): Same.
11996 (df_mws_verify): Same.
11997 (df_bb_verify): Same.
11998 * df.h (df_scan_get_bb_info): Same.
11999 * doc/tm.texi: Same.
12000 * dse.c (record_store): Same.
12001 * dumpfile.h: Same.
12002 * emit-rtl.c (const_fixed_hasher::equal): Same.
12003 (set_mem_attributes_minus_bitpos): Same.
12004 (change_address): Same.
12005 (adjust_address_1): Same.
12006 (offset_address): Same.
12007 * emit-rtl.h: Same.
12008 * except.c (dw2_build_landing_pads): Same.
12009 (sjlj_emit_dispatch_table): Same.
12010 * explow.c (allocate_dynamic_stack_space): Same.
12011 (emit_stack_probe): Same.
12012 (probe_stack_range): Same.
12013 * expmed.c (store_bit_field_using_insv): Same.
12014 (store_bit_field_1): Same.
12015 (store_integral_bit_field): Same.
12016 (extract_bit_field_using_extv): Same.
12017 (extract_bit_field_1): Same.
12018 (emit_cstore): Same.
12019 * expr.c (emit_block_move_via_cpymem): Same.
12020 (expand_cmpstrn_or_cmpmem): Same.
12021 (set_storage_via_setmem): Same.
12022 (emit_single_push_insn_1): Same.
12023 (expand_assignment): Same.
12024 (store_constructor): Same.
12025 (expand_expr_real_2): Same.
12026 (expand_expr_real_1): Same.
12027 (try_casesi): Same.
12028 * flags.h: Same.
12029 * function.c (try_fit_stack_local): Same.
12030 (assign_stack_local_1): Same.
12031 (assign_stack_local): Same.
12032 (cut_slot_from_list): Same.
12033 (insert_slot_to_list): Same.
12034 (max_slot_level): Same.
12035 (move_slot_to_level): Same.
12036 (temp_address_hasher::equal): Same.
12037 (remove_unused_temp_slot_addresses): Same.
12038 (assign_temp): Same.
12039 (combine_temp_slots): Same.
12040 (update_temp_slot_address): Same.
12041 (preserve_temp_slots): Same.
12042 * function.h: Same.
12043 * fwprop.c: Same.
12044 * gcc-rich-location.h: Same.
12045 * gcov.c: Same.
12046 * genattrtab.c (check_attr_test): Same.
12047 (check_attr_value): Same.
12048 (convert_set_attr_alternative): Same.
12049 (convert_set_attr): Same.
12050 (check_defs): Same.
12051 (copy_boolean): Same.
12052 (get_attr_value): Same.
12053 (expand_delays): Same.
12054 (make_length_attrs): Same.
12055 (min_fn): Same.
12056 (make_alternative_compare): Same.
12057 (simplify_test_exp): Same.
12058 (tests_attr_p): Same.
12059 (get_attr_order): Same.
12060 (clear_struct_flag): Same.
12061 (gen_attr): Same.
12062 (compares_alternatives_p): Same.
12063 (gen_insn): Same.
12064 (gen_delay): Same.
12065 (find_attrs_to_cache): Same.
12066 (write_test_expr): Same.
12067 (walk_attr_value): Same.
12068 (write_attr_get): Same.
12069 (eliminate_known_true): Same.
12070 (write_insn_cases): Same.
12071 (write_attr_case): Same.
12072 (write_attr_valueq): Same.
12073 (write_attr_value): Same.
12074 (write_dummy_eligible_delay): Same.
12075 (next_comma_elt): Same.
12076 (find_attr): Same.
12077 (make_internal_attr): Same.
12078 (copy_rtx_unchanging): Same.
12079 (gen_insn_reserv): Same.
12080 (check_tune_attr): Same.
12081 (make_automaton_attrs): Same.
12082 (handle_arg): Same.
12083 * genextract.c (gen_insn): Same.
12084 (VEC_char_to_string): Same.
12085 * genmatch.c (print_operand): Same.
12086 (lower): Same.
12087 (parser::parse_operation): Same.
12088 (parser::parse_capture): Same.
12089 (parser::parse_c_expr): Same.
12090 (parser::parse_simplify): Same.
12091 (main): Same.
12092 * genoutput.c (output_operand_data): Same.
12093 (output_get_insn_name): Same.
12094 (compare_operands): Same.
12095 (place_operands): Same.
12096 (process_template): Same.
12097 (validate_insn_alternatives): Same.
12098 (validate_insn_operands): Same.
12099 (gen_expand): Same.
12100 (note_constraint): Same.
12101 * genpreds.c (write_one_predicate_function): Same.
12102 (add_constraint): Same.
12103 (process_define_register_constraint): Same.
12104 (write_lookup_constraint_1): Same.
12105 (write_lookup_constraint_array): Same.
12106 (write_insn_constraint_len): Same.
12107 (write_reg_class_for_constraint_1): Same.
12108 (write_constraint_satisfied_p_array): Same.
12109 * genrecog.c (optimize_subroutine_group): Same.
12110 * gensupport.c (process_define_predicate): Same.
12111 (queue_pattern): Same.
12112 (remove_from_queue): Same.
12113 (process_rtx): Same.
12114 (is_predicable): Same.
12115 (change_subst_attribute): Same.
12116 (subst_pattern_match): Same.
12117 (alter_constraints): Same.
12118 (alter_attrs_for_insn): Same.
12119 (shift_output_template): Same.
12120 (alter_output_for_subst_insn): Same.
12121 (process_one_cond_exec): Same.
12122 (subst_dup): Same.
12123 (process_define_cond_exec): Same.
12124 (mnemonic_htab_callback): Same.
12125 (gen_mnemonic_attr): Same.
12126 (read_md_rtx): Same.
12127 * ggc-page.c: Same.
12128 * gimple-loop-interchange.cc (dump_reduction): Same.
12129 (dump_induction): Same.
12130 (loop_cand::~loop_cand): Same.
12131 (free_data_refs_with_aux): Same.
12132 (tree_loop_interchange::interchange_loops): Same.
12133 (tree_loop_interchange::map_inductions_to_loop): Same.
12134 (tree_loop_interchange::move_code_to_inner_loop): Same.
12135 (compute_access_stride): Same.
12136 (compute_access_strides): Same.
12137 (proper_loop_form_for_interchange): Same.
12138 (tree_loop_interchange_compute_ddrs): Same.
12139 (prune_datarefs_not_in_loop): Same.
12140 (prepare_data_references): Same.
12141 (pass_linterchange::execute): Same.
12142 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12143 (unroll_jam_possible_p): Same.
12144 (fuse_loops): Same.
12145 (adjust_unroll_factor): Same.
12146 (tree_loop_unroll_and_jam): Same.
12147 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12148 (loop_versioning::expensive_stmt_p): Same.
12149 (loop_versioning::version_for_unity): Same.
12150 (loop_versioning::dump_inner_likelihood): Same.
12151 (loop_versioning::find_per_loop_multiplication): Same.
12152 (loop_versioning::analyze_term_using_scevs): Same.
12153 (loop_versioning::record_address_fragment): Same.
12154 (loop_versioning::analyze_expr): Same.
12155 (loop_versioning::analyze_blocks): Same.
12156 (loop_versioning::prune_conditions): Same.
12157 (loop_versioning::merge_loop_info): Same.
12158 (loop_versioning::add_loop_to_queue): Same.
12159 (loop_versioning::decide_whether_loop_is_versionable): Same.
12160 (loop_versioning::make_versioning_decisions): Same.
12161 (loop_versioning::implement_versioning_decisions): Same.
12162 * gimple-ssa-evrp-analyze.c
12163 (evrp_range_analyzer::record_ranges_from_phis): Same.
12164 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12165 (count_multiple_uses): Same.
12166 (split_group): Same.
12167 (imm_store_chain_info::output_merged_store): Same.
12168 (pass_store_merging::process_store): Same.
12169 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12170 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12171 (is_max): Same.
12172 (alloca_call_type): Same.
12173 (pass_walloca::execute): Same.
12174 * gimple-streamer-in.c (input_phi): Same.
12175 (input_gimple_stmt): Same.
12176 * gimple-streamer.h: Same.
12177 * godump.c (go_force_record_alignment): Same.
12178 (go_format_type): Same.
12179 (go_output_type): Same.
12180 (go_output_fndecl): Same.
12181 (go_output_typedef): Same.
12182 (keyword_hash_init): Same.
12183 (find_dummy_types): Same.
12184 * graph.c (draw_cfg_nodes_no_loops): Same.
12185 (draw_cfg_nodes_for_loop): Same.
12186 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12187 * hsa-brig.c: Same.
12188 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12189 * hsa-dump.c (dump_hsa_cfun): Same.
12190 * hsa-gen.c (gen_function_def_parameters): Same.
12191 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12192 * input.c (dump_line_table_statistics): Same.
12193 (test_lexer): Same.
12194 * input.h: Same.
12195 * internal-fn.c (get_multi_vector_move): Same.
12196 (expand_load_lanes_optab_fn): Same.
12197 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12198 (expand_GOMP_SIMT_EXIT): Same.
12199 (expand_GOMP_SIMT_LAST_LANE): Same.
12200 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12201 (expand_GOMP_SIMT_VOTE_ANY): Same.
12202 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12203 (expand_GOMP_SIMT_XCHG_IDX): Same.
12204 (expand_addsub_overflow): Same.
12205 (expand_neg_overflow): Same.
12206 (expand_mul_overflow): Same.
12207 (expand_call_mem_ref): Same.
12208 (expand_mask_load_optab_fn): Same.
12209 (expand_scatter_store_optab_fn): Same.
12210 (expand_gather_load_optab_fn): Same.
12211 * ipa-cp.c (ipa_get_parm_lattices): Same.
12212 (print_all_lattices): Same.
12213 (ignore_edge_p): Same.
12214 (build_toporder_info): Same.
12215 (free_toporder_info): Same.
12216 (push_node_to_stack): Same.
12217 (ipcp_lattice<valtype>::set_contains_variable): Same.
12218 (set_agg_lats_to_bottom): Same.
12219 (ipcp_bits_lattice::meet_with): Same.
12220 (set_single_call_flag): Same.
12221 (initialize_node_lattices): Same.
12222 (ipa_get_jf_ancestor_result): Same.
12223 (ipcp_verify_propagated_values): Same.
12224 (propagate_scalar_across_jump_function): Same.
12225 (propagate_context_across_jump_function): Same.
12226 (propagate_bits_across_jump_function): Same.
12227 (ipa_vr_operation_and_type_effects): Same.
12228 (propagate_vr_across_jump_function): Same.
12229 (set_check_aggs_by_ref): Same.
12230 (set_chain_of_aglats_contains_variable): Same.
12231 (merge_aggregate_lattices): Same.
12232 (agg_pass_through_permissible_p): Same.
12233 (propagate_aggs_across_jump_function): Same.
12234 (call_passes_through_thunk_p): Same.
12235 (propagate_constants_across_call): Same.
12236 (devirtualization_time_bonus): Same.
12237 (good_cloning_opportunity_p): Same.
12238 (context_independent_aggregate_values): Same.
12239 (gather_context_independent_values): Same.
12240 (perform_estimation_of_a_value): Same.
12241 (estimate_local_effects): Same.
12242 (value_topo_info<valtype>::add_val): Same.
12243 (add_all_node_vals_to_toposort): Same.
12244 (value_topo_info<valtype>::propagate_effects): Same.
12245 (ipcp_propagate_stage): Same.
12246 (ipcp_discover_new_direct_edges): Same.
12247 (same_node_or_its_all_contexts_clone_p): Same.
12248 (cgraph_edge_brings_value_p): Same.
12249 (gather_edges_for_value): Same.
12250 (create_specialized_node): Same.
12251 (find_more_scalar_values_for_callers_subset): Same.
12252 (find_more_contexts_for_caller_subset): Same.
12253 (copy_plats_to_inter): Same.
12254 (intersect_aggregates_with_edge): Same.
12255 (find_aggregate_values_for_callers_subset): Same.
12256 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12257 (decide_about_value): Same.
12258 (decide_whether_version_node): Same.
12259 (spread_undeadness): Same.
12260 (identify_dead_nodes): Same.
12261 (ipcp_store_vr_results): Same.
12262 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12263 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12264 (redirect_to_unreachable): Same.
12265 (edge_set_predicate): Same.
12266 (evaluate_conditions_for_known_args): Same.
12267 (evaluate_properties_for_edge): Same.
12268 (ipa_fn_summary_t::duplicate): Same.
12269 (ipa_call_summary_t::duplicate): Same.
12270 (dump_ipa_call_summary): Same.
12271 (ipa_dump_fn_summary): Same.
12272 (eliminated_by_inlining_prob): Same.
12273 (set_cond_stmt_execution_predicate): Same.
12274 (set_switch_stmt_execution_predicate): Same.
12275 (compute_bb_predicates): Same.
12276 (will_be_nonconstant_expr_predicate): Same.
12277 (phi_result_unknown_predicate): Same.
12278 (analyze_function_body): Same.
12279 (compute_fn_summary): Same.
12280 (estimate_edge_devirt_benefit): Same.
12281 (estimate_edge_size_and_time): Same.
12282 (estimate_calls_size_and_time): Same.
12283 (estimate_node_size_and_time): Same.
12284 (remap_edge_change_prob): Same.
12285 (remap_edge_summaries): Same.
12286 (ipa_merge_fn_summary_after_inlining): Same.
12287 (ipa_fn_summary_generate): Same.
12288 (inline_read_section): Same.
12289 (ipa_fn_summary_read): Same.
12290 (ipa_fn_summary_write): Same.
12291 * ipa-fnsummary.h: Same.
12292 * ipa-hsa.c (ipa_hsa_read_section): Same.
12293 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12294 * ipa-icf.c (sem_function::param_used_p): Same.
12295 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12296 * ipa-inline.c (edge_badness): Same.
12297 (inline_small_functions): Same.
12298 * ipa-polymorphic-call.c
12299 (ipa_polymorphic_call_context::stream_out): Same.
12300 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12301 (predicate::remap_after_inlining): Same.
12302 (predicate::stream_out): Same.
12303 * ipa-predicate.h: Same.
12304 * ipa-profile.c (ipa_profile_read_summary): Same.
12305 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12306 (count_formal_params): Same.
12307 (ipa_dump_param): Same.
12308 (ipa_alloc_node_params): Same.
12309 (ipa_print_node_jump_functions_for_edge): Same.
12310 (ipa_print_node_jump_functions): Same.
12311 (ipa_load_from_parm_agg): Same.
12312 (get_ancestor_addr_info): Same.
12313 (ipa_compute_jump_functions_for_edge): Same.
12314 (ipa_analyze_virtual_call_uses): Same.
12315 (ipa_analyze_stmt_uses): Same.
12316 (ipa_analyze_params_uses_in_bb): Same.
12317 (update_jump_functions_after_inlining): Same.
12318 (try_decrement_rdesc_refcount): Same.
12319 (ipa_impossible_devirt_target): Same.
12320 (update_indirect_edges_after_inlining): Same.
12321 (combine_controlled_uses_counters): Same.
12322 (ipa_edge_args_sum_t::duplicate): Same.
12323 (ipa_write_jump_function): Same.
12324 (ipa_write_indirect_edge_info): Same.
12325 (ipa_write_node_info): Same.
12326 (ipa_read_edge_info): Same.
12327 (ipa_prop_read_section): Same.
12328 (read_replacements_section): Same.
12329 * ipa-prop.h (ipa_get_param_count): Same.
12330 (ipa_get_param): Same.
12331 (ipa_get_type): Same.
12332 (ipa_get_param_move_cost): Same.
12333 (ipa_set_param_used): Same.
12334 (ipa_get_controlled_uses): Same.
12335 (ipa_set_controlled_uses): Same.
12336 (ipa_get_cs_argument_count): Same.
12337 * ipa-pure-const.c (analyze_function): Same.
12338 (pure_const_read_summary): Same.
12339 * ipa-ref.h: Same.
12340 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12341 * ipa-split.c (test_nonssa_use): Same.
12342 (dump_split_point): Same.
12343 (dominated_by_forbidden): Same.
12344 (split_part_set_ssa_name_p): Same.
12345 (find_split_points): Same.
12346 * ira-build.c (finish_loop_tree_nodes): Same.
12347 (low_pressure_loop_node_p): Same.
12348 * ira-color.c (ira_reuse_stack_slot): Same.
12349 * ira-int.h: Same.
12350 * ira.c (setup_reg_equiv): Same.
12351 (print_insn_chain): Same.
12352 (ira): Same.
12353 * loop-doloop.c (doloop_condition_get): Same.
12354 (add_test): Same.
12355 (record_reg_sets): Same.
12356 (doloop_optimize): Same.
12357 * loop-init.c (loop_optimizer_init): Same.
12358 (fix_loop_structure): Same.
12359 * loop-invariant.c (merge_identical_invariants): Same.
12360 (compute_always_reached): Same.
12361 (find_exits): Same.
12362 (may_assign_reg_p): Same.
12363 (find_invariants_bb): Same.
12364 (find_invariants_body): Same.
12365 (replace_uses): Same.
12366 (can_move_invariant_reg): Same.
12367 (free_inv_motion_data): Same.
12368 (move_single_loop_invariants): Same.
12369 (change_pressure): Same.
12370 (mark_ref_regs): Same.
12371 (calculate_loop_reg_pressure): Same.
12372 * loop-iv.c (biv_entry_hasher::equal): Same.
12373 (iv_extend_to_rtx_code): Same.
12374 (check_iv_ref_table_size): Same.
12375 (clear_iv_info): Same.
12376 (latch_dominating_def): Same.
12377 (iv_get_reaching_def): Same.
12378 (iv_constant): Same.
12379 (iv_subreg): Same.
12380 (iv_extend): Same.
12381 (iv_neg): Same.
12382 (iv_add): Same.
12383 (iv_mult): Same.
12384 (get_biv_step): Same.
12385 (record_iv): Same.
12386 (analyzed_for_bivness_p): Same.
12387 (record_biv): Same.
12388 (iv_analyze_biv): Same.
12389 (iv_analyze_expr): Same.
12390 (iv_analyze_def): Same.
12391 (iv_analyze_op): Same.
12392 (iv_analyze): Same.
12393 (iv_analyze_result): Same.
12394 (biv_p): Same.
12395 (eliminate_implied_conditions): Same.
12396 (simplify_using_initial_values): Same.
12397 (shorten_into_mode): Same.
12398 (canonicalize_iv_subregs): Same.
12399 (determine_max_iter): Same.
12400 (check_simple_exit): Same.
12401 (find_simple_exit): Same.
12402 (get_simple_loop_desc): Same.
12403 * loop-unroll.c (report_unroll): Same.
12404 (decide_unrolling): Same.
12405 (unroll_loops): Same.
12406 (loop_exit_at_end_p): Same.
12407 (decide_unroll_constant_iterations): Same.
12408 (unroll_loop_constant_iterations): Same.
12409 (compare_and_jump_seq): Same.
12410 (unroll_loop_runtime_iterations): Same.
12411 (decide_unroll_stupid): Same.
12412 (unroll_loop_stupid): Same.
12413 (referenced_in_one_insn_in_loop_p): Same.
12414 (reset_debug_uses_in_loop): Same.
12415 (analyze_iv_to_split_insn): Same.
12416 * lra-eliminations.c (lra_debug_elim_table): Same.
12417 (setup_can_eliminate): Same.
12418 (form_sum): Same.
12419 (lra_get_elimination_hard_regno): Same.
12420 (lra_eliminate_regs_1): Same.
12421 (eliminate_regs_in_insn): Same.
12422 (update_reg_eliminate): Same.
12423 (init_elimination): Same.
12424 (lra_eliminate): Same.
12425 * lra-int.h: Same.
12426 * lra-lives.c (initiate_live_solver): Same.
12427 * lra-remat.c (create_remat_bb_data): Same.
12428 * lra-spills.c (lra_spill): Same.
12429 * lra.c (lra_set_insn_recog_data): Same.
12430 (lra_set_used_insn_alternative_by_uid): Same.
12431 (init_reg_info): Same.
12432 (expand_reg_info): Same.
12433 * lto-cgraph.c (output_symtab): Same.
12434 (read_identifier): Same.
12435 (get_alias_symbol): Same.
12436 (input_node): Same.
12437 (input_varpool_node): Same.
12438 (input_ref): Same.
12439 (input_edge): Same.
12440 (input_cgraph_1): Same.
12441 (input_refs): Same.
12442 (input_symtab): Same.
12443 (input_offload_tables): Same.
12444 (output_cgraph_opt_summary): Same.
12445 (input_edge_opt_summary): Same.
12446 (input_cgraph_opt_section): Same.
12447 * lto-section-in.c (lto_free_raw_section_data): Same.
12448 (lto_create_simple_input_block): Same.
12449 (lto_free_function_in_decl_state_for_node): Same.
12450 * lto-streamer-in.c (lto_tag_check_set): Same.
12451 (lto_location_cache::revert_location_cache): Same.
12452 (lto_location_cache::input_location): Same.
12453 (lto_input_location): Same.
12454 (stream_input_location_now): Same.
12455 (lto_input_tree_ref): Same.
12456 (lto_input_eh_catch_list): Same.
12457 (input_eh_region): Same.
12458 (lto_init_eh): Same.
12459 (make_new_block): Same.
12460 (input_cfg): Same.
12461 (fixup_call_stmt_edges): Same.
12462 (input_struct_function_base): Same.
12463 (input_function): Same.
12464 (lto_read_body_or_constructor): Same.
12465 (lto_read_tree_1): Same.
12466 (lto_read_tree): Same.
12467 (lto_input_scc): Same.
12468 (lto_input_tree_1): Same.
12469 (lto_input_toplevel_asms): Same.
12470 (lto_input_mode_table): Same.
12471 (lto_reader_init): Same.
12472 (lto_data_in_create): Same.
12473 * lto-streamer-out.c (output_cfg): Same.
12474 * lto-streamer.h: Same.
12475 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12476 (generate_prolog_epilog): Same.
12477 (mark_loop_unsched): Same.
12478 (dump_insn_location): Same.
12479 (loop_canon_p): Same.
12480 (sms_schedule): Same.
12481 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12482 (expand_omp_for_generic): Same.
12483 (expand_omp_for_static_nochunk): Same.
12484 (expand_omp_for_static_chunk): Same.
12485 (expand_omp_simd): Same.
12486 (expand_omp_taskloop_for_inner): Same.
12487 (expand_oacc_for): Same.
12488 (expand_omp_atomic_pipeline): Same.
12489 (mark_loops_in_oacc_kernels_region): Same.
12490 * omp-offload.c (oacc_xform_loop): Same.
12491 * omp-simd-clone.c (simd_clone_adjust): Same.
12492 * optabs-query.c (get_traditional_extraction_insn): Same.
12493 * optabs.c (expand_vector_broadcast): Same.
12494 (expand_binop_directly): Same.
12495 (expand_twoval_unop): Same.
12496 (expand_twoval_binop): Same.
12497 (expand_unop_direct): Same.
12498 (emit_indirect_jump): Same.
12499 (emit_conditional_move): Same.
12500 (emit_conditional_neg_or_complement): Same.
12501 (emit_conditional_add): Same.
12502 (vector_compare_rtx): Same.
12503 (expand_vec_perm_1): Same.
12504 (expand_vec_perm_const): Same.
12505 (expand_vec_cond_expr): Same.
12506 (expand_vec_series_expr): Same.
12507 (maybe_emit_atomic_exchange): Same.
12508 (maybe_emit_sync_lock_test_and_set): Same.
12509 (expand_atomic_compare_and_swap): Same.
12510 (expand_atomic_load): Same.
12511 (expand_atomic_store): Same.
12512 (maybe_emit_op): Same.
12513 (valid_multiword_target_p): Same.
12514 (create_integer_operand): Same.
12515 (maybe_legitimize_operand_same_code): Same.
12516 (maybe_legitimize_operand): Same.
12517 (create_convert_operand_from_type): Same.
12518 (can_reuse_operands_p): Same.
12519 (maybe_legitimize_operands): Same.
12520 (maybe_gen_insn): Same.
12521 (maybe_expand_insn): Same.
12522 (maybe_expand_jump_insn): Same.
12523 (expand_insn): Same.
12524 * optabs.h (create_expand_operand): Same.
12525 (create_fixed_operand): Same.
12526 (create_output_operand): Same.
12527 (create_input_operand): Same.
12528 (create_convert_operand_to): Same.
12529 (create_convert_operand_from): Same.
12530 * optinfo.h: Same.
12531 * poly-int.h: Same.
12532 * predict.c (optimize_insn_for_speed_p): Same.
12533 (optimize_loop_for_size_p): Same.
12534 (optimize_loop_for_speed_p): Same.
12535 (optimize_loop_nest_for_speed_p): Same.
12536 (get_base_value): Same.
12537 (predicted_by_loop_heuristics_p): Same.
12538 (predict_extra_loop_exits): Same.
12539 (predict_loops): Same.
12540 (predict_paths_for_bb): Same.
12541 (predict_paths_leading_to): Same.
12542 (propagate_freq): Same.
12543 (pass_profile::execute): Same.
12544 * predict.h: Same.
12545 * profile-count.c (profile_count::differs_from_p): Same.
12546 (profile_probability::differs_lot_from_p): Same.
12547 * profile-count.h: Same.
12548 * profile.c (branch_prob): Same.
12549 * regrename.c (free_chain_data): Same.
12550 (mark_conflict): Same.
12551 (create_new_chain): Same.
12552 (merge_overlapping_regs): Same.
12553 (init_rename_info): Same.
12554 (merge_chains): Same.
12555 (regrename_analyze): Same.
12556 (regrename_do_replace): Same.
12557 (scan_rtx_reg): Same.
12558 (record_out_operands): Same.
12559 (build_def_use): Same.
12560 * regrename.h: Same.
12561 * reload.h: Same.
12562 * reload1.c (init_reload): Same.
12563 (maybe_fix_stack_asms): Same.
12564 (copy_reloads): Same.
12565 (count_pseudo): Same.
12566 (count_spilled_pseudo): Same.
12567 (find_reg): Same.
12568 (find_reload_regs): Same.
12569 (select_reload_regs): Same.
12570 (spill_hard_reg): Same.
12571 (fixup_eh_region_note): Same.
12572 (set_reload_reg): Same.
12573 (allocate_reload_reg): Same.
12574 (compute_reload_subreg_offset): Same.
12575 (reload_adjust_reg_for_icode): Same.
12576 (emit_input_reload_insns): Same.
12577 (emit_output_reload_insns): Same.
12578 (do_input_reload): Same.
12579 (inherit_piecemeal_p): Same.
12580 * rtl.h: Same.
12581 * sanopt.c (maybe_get_dominating_check): Same.
12582 (maybe_optimize_ubsan_ptr_ifn): Same.
12583 (can_remove_asan_check): Same.
12584 (maybe_optimize_asan_check_ifn): Same.
12585 (sanopt_optimize_walker): Same.
12586 * sched-deps.c (add_dependence_list): Same.
12587 (chain_to_prev_insn): Same.
12588 (add_insn_mem_dependence): Same.
12589 (create_insn_reg_set): Same.
12590 (maybe_extend_reg_info_p): Same.
12591 (sched_analyze_reg): Same.
12592 (sched_analyze_1): Same.
12593 (get_implicit_reg_pending_clobbers): Same.
12594 (chain_to_prev_insn_p): Same.
12595 (deps_analyze_insn): Same.
12596 (deps_start_bb): Same.
12597 (sched_free_deps): Same.
12598 (init_deps): Same.
12599 (init_deps_reg_last): Same.
12600 (free_deps): Same.
12601 * sched-ebb.c: Same.
12602 * sched-int.h: Same.
12603 * sched-rgn.c (add_branch_dependences): Same.
12604 (concat_insn_mem_list): Same.
12605 (deps_join): Same.
12606 (sched_rgn_compute_dependencies): Same.
12607 * sel-sched-ir.c (reset_target_context): Same.
12608 (copy_deps_context): Same.
12609 (init_id_from_df): Same.
12610 (has_dependence_p): Same.
12611 (change_loops_latches): Same.
12612 (bb_top_order_comparator): Same.
12613 (make_region_from_loop_preheader): Same.
12614 (sel_init_pipelining): Same.
12615 (get_loop_nest_for_rgn): Same.
12616 (make_regions_from_the_rest): Same.
12617 (sel_is_loop_preheader_p): Same.
12618 * sel-sched-ir.h (inner_loop_header_p): Same.
12619 (get_all_loop_exits): Same.
12620 * selftest.h: Same.
12621 * sese.c (sese_build_liveouts): Same.
12622 (sese_insert_phis_for_liveouts): Same.
12623 * sese.h (defined_in_sese_p): Same.
12624 * sreal.c (sreal::stream_out): Same.
12625 * sreal.h: Same.
12626 * streamer-hooks.h: Same.
12627 * target-globals.c (save_target_globals): Same.
12628 * target-globals.h: Same.
12629 * target.def: Same.
12630 * target.h: Same.
12631 * targhooks.c (default_has_ifunc_p): Same.
12632 (default_empty_mask_is_expensive): Same.
12633 (default_init_cost): Same.
12634 * targhooks.h: Same.
12635 * toplev.c: Same.
12636 * tree-affine.c (aff_combination_mult): Same.
12637 (aff_combination_expand): Same.
12638 (aff_combination_constant_multiple_p): Same.
12639 * tree-affine.h: Same.
12640 * tree-cfg.c (build_gimple_cfg): Same.
12641 (replace_loop_annotate_in_block): Same.
12642 (replace_uses_by): Same.
12643 (remove_bb): Same.
12644 (dump_cfg_stats): Same.
12645 (gimple_duplicate_sese_region): Same.
12646 (gimple_duplicate_sese_tail): Same.
12647 (move_block_to_fn): Same.
12648 (replace_block_vars_by_duplicates): Same.
12649 (move_sese_region_to_fn): Same.
12650 (print_loops_bb): Same.
12651 (print_loop): Same.
12652 (print_loops): Same.
12653 (debug): Same.
12654 (debug_loops): Same.
12655 * tree-cfg.h: Same.
12656 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12657 (chrec_fold_multiply_poly_poly): Same.
12658 (chrec_evaluate): Same.
12659 (chrec_component_in_loop_num): Same.
12660 (reset_evolution_in_loop): Same.
12661 (is_multivariate_chrec): Same.
12662 (chrec_contains_symbols): Same.
12663 (nb_vars_in_chrec): Same.
12664 (chrec_convert_1): Same.
12665 (chrec_convert_aggressive): Same.
12666 * tree-chrec.h: Same.
12667 * tree-core.h: Same.
12668 * tree-data-ref.c (dump_data_dependence_relation): Same.
12669 (canonicalize_base_object_address): Same.
12670 (data_ref_compare_tree): Same.
12671 (prune_runtime_alias_test_list): Same.
12672 (get_segment_min_max): Same.
12673 (create_intersect_range_checks): Same.
12674 (conflict_fn_no_dependence): Same.
12675 (object_address_invariant_in_loop_p): Same.
12676 (analyze_ziv_subscript): Same.
12677 (analyze_siv_subscript_cst_affine): Same.
12678 (analyze_miv_subscript): Same.
12679 (analyze_overlapping_iterations): Same.
12680 (build_classic_dist_vector_1): Same.
12681 (add_other_self_distances): Same.
12682 (same_access_functions): Same.
12683 (build_classic_dir_vector): Same.
12684 (subscript_dependence_tester_1): Same.
12685 (subscript_dependence_tester): Same.
12686 (access_functions_are_affine_or_constant_p): Same.
12687 (get_references_in_stmt): Same.
12688 (loop_nest_has_data_refs): Same.
12689 (graphite_find_data_references_in_stmt): Same.
12690 (find_data_references_in_bb): Same.
12691 (get_base_for_alignment): Same.
12692 (find_loop_nest_1): Same.
12693 (find_loop_nest): Same.
12694 * tree-data-ref.h (dr_alignment): Same.
12695 (ddr_dependence_level): Same.
12696 * tree-if-conv.c (fold_build_cond_expr): Same.
12697 (add_to_predicate_list): Same.
12698 (add_to_dst_predicate_list): Same.
12699 (phi_convertible_by_degenerating_args): Same.
12700 (idx_within_array_bound): Same.
12701 (all_preds_critical_p): Same.
12702 (pred_blocks_visited_p): Same.
12703 (predicate_bbs): Same.
12704 (build_region): Same.
12705 (if_convertible_loop_p_1): Same.
12706 (is_cond_scalar_reduction): Same.
12707 (predicate_scalar_phi): Same.
12708 (remove_conditions_and_labels): Same.
12709 (combine_blocks): Same.
12710 (version_loop_for_if_conversion): Same.
12711 (versionable_outer_loop_p): Same.
12712 (ifcvt_local_dce): Same.
12713 (tree_if_conversion): Same.
12714 (pass_if_conversion::gate): Same.
12715 * tree-if-conv.h: Same.
12716 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12717 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12718 (free_rdg): Same.
12719 (stmt_has_scalar_dependences_outside_loop): Same.
12720 (copy_loop_before): Same.
12721 (create_bb_after_loop): Same.
12722 (const_with_all_bytes_same): Same.
12723 (generate_memset_builtin): Same.
12724 (generate_memcpy_builtin): Same.
12725 (destroy_loop): Same.
12726 (build_rdg_partition_for_vertex): Same.
12727 (compute_access_range): Same.
12728 (data_ref_segment_size): Same.
12729 (latch_dominated_by_data_ref): Same.
12730 (compute_alias_check_pairs): Same.
12731 (fuse_memset_builtins): Same.
12732 (finalize_partitions): Same.
12733 (find_seed_stmts_for_distribution): Same.
12734 (prepare_perfect_loop_nest): Same.
12735 * tree-parloops.c (lambda_transform_legal_p): Same.
12736 (loop_parallel_p): Same.
12737 (reduc_stmt_res): Same.
12738 (add_field_for_name): Same.
12739 (create_call_for_reduction_1): Same.
12740 (replace_uses_in_bb_by): Same.
12741 (transform_to_exit_first_loop_alt): Same.
12742 (try_transform_to_exit_first_loop_alt): Same.
12743 (transform_to_exit_first_loop): Same.
12744 (num_phis): Same.
12745 (gen_parallel_loop): Same.
12746 (gather_scalar_reductions): Same.
12747 (get_omp_data_i_param): Same.
12748 (try_create_reduction_list): Same.
12749 (oacc_entry_exit_single_gang): Same.
12750 (parallelize_loops): Same.
12751 * tree-pass.h: Same.
12752 * tree-predcom.c (determine_offset): Same.
12753 (last_always_executed_block): Same.
12754 (split_data_refs_to_components): Same.
12755 (suitable_component_p): Same.
12756 (valid_initializer_p): Same.
12757 (find_looparound_phi): Same.
12758 (insert_looparound_copy): Same.
12759 (add_looparound_copies): Same.
12760 (determine_roots_comp): Same.
12761 (predcom_tmp_var): Same.
12762 (initialize_root_vars): Same.
12763 (initialize_root_vars_store_elim_1): Same.
12764 (initialize_root_vars_store_elim_2): Same.
12765 (finalize_eliminated_stores): Same.
12766 (initialize_root_vars_lm): Same.
12767 (remove_stmt): Same.
12768 (determine_unroll_factor): Same.
12769 (execute_pred_commoning_cbck): Same.
12770 (base_names_in_chain_on): Same.
12771 (combine_chains): Same.
12772 (pcom_stmt_dominates_stmt_p): Same.
12773 (try_combine_chains): Same.
12774 (prepare_initializers_chain_store_elim): Same.
12775 (prepare_initializers_chain): Same.
12776 (prepare_initializers): Same.
12777 (prepare_finalizers_chain): Same.
12778 (prepare_finalizers): Same.
12779 (insert_init_seqs): Same.
12780 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12781 (compute_overall_effect_of_inner_loop): Same.
12782 (add_to_evolution_1): Same.
12783 (add_to_evolution): Same.
12784 (follow_ssa_edge_binary): Same.
12785 (follow_ssa_edge_expr): Same.
12786 (backedge_phi_arg_p): Same.
12787 (follow_ssa_edge_in_condition_phi_branch): Same.
12788 (follow_ssa_edge_in_condition_phi): Same.
12789 (follow_ssa_edge_inner_loop_phi): Same.
12790 (follow_ssa_edge): Same.
12791 (analyze_evolution_in_loop): Same.
12792 (analyze_initial_condition): Same.
12793 (interpret_loop_phi): Same.
12794 (interpret_condition_phi): Same.
12795 (interpret_rhs_expr): Same.
12796 (interpret_expr): Same.
12797 (interpret_gimple_assign): Same.
12798 (analyze_scalar_evolution_1): Same.
12799 (analyze_scalar_evolution): Same.
12800 (analyze_scalar_evolution_for_address_of): Same.
12801 (get_instantiated_value_entry): Same.
12802 (loop_closed_phi_def): Same.
12803 (instantiate_scev_name): Same.
12804 (instantiate_scev_poly): Same.
12805 (instantiate_scev_binary): Same.
12806 (instantiate_scev_convert): Same.
12807 (instantiate_scev_not): Same.
12808 (instantiate_scev_r): Same.
12809 (instantiate_scev): Same.
12810 (resolve_mixers): Same.
12811 (initialize_scalar_evolutions_analyzer): Same.
12812 (scev_reset_htab): Same.
12813 (scev_reset): Same.
12814 (derive_simple_iv_with_niters): Same.
12815 (simple_iv_with_niters): Same.
12816 (expression_expensive_p): Same.
12817 (final_value_replacement_loop): Same.
12818 * tree-scalar-evolution.h (block_before_loop): Same.
12819 * tree-ssa-address.h: Same.
12820 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12821 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12822 (record_edge_info): Same.
12823 * tree-ssa-live.c (var_map_base_fini): Same.
12824 (remove_unused_locals): Same.
12825 * tree-ssa-live.h: Same.
12826 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12827 (pass_ch_vect::execute): Same.
12828 (pass_ch::process_loop_p): Same.
12829 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12830 (movement_possibility): Same.
12831 (outermost_invariant_loop): Same.
12832 (stmt_cost): Same.
12833 (determine_max_movement): Same.
12834 (invariantness_dom_walker::before_dom_children): Same.
12835 (move_computations): Same.
12836 (may_move_till): Same.
12837 (force_move_till_op): Same.
12838 (force_move_till): Same.
12839 (memref_free): Same.
12840 (record_mem_ref_loc): Same.
12841 (set_ref_stored_in_loop): Same.
12842 (mark_ref_stored): Same.
12843 (sort_bbs_in_loop_postorder_cmp): Same.
12844 (sort_locs_in_loop_postorder_cmp): Same.
12845 (analyze_memory_references): Same.
12846 (mem_refs_may_alias_p): Same.
12847 (find_ref_loc_in_loop_cmp): Same.
12848 (rewrite_mem_ref_loc::operator): Same.
12849 (first_mem_ref_loc_1::operator): Same.
12850 (sm_set_flag_if_changed::operator): Same.
12851 (execute_sm_if_changed_flag_set): Same.
12852 (execute_sm): Same.
12853 (hoist_memory_references): Same.
12854 (ref_always_accessed::operator): Same.
12855 (refs_independent_p): Same.
12856 (record_dep_loop): Same.
12857 (ref_indep_loop_p_1): Same.
12858 (ref_indep_loop_p): Same.
12859 (can_sm_ref_p): Same.
12860 (find_refs_for_sm): Same.
12861 (loop_suitable_for_sm): Same.
12862 (store_motion_loop): Same.
12863 (store_motion): Same.
12864 (fill_always_executed_in): Same.
12865 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12866 (estimated_unrolled_size): Same.
12867 (loop_edge_to_cancel): Same.
12868 (remove_exits_and_undefined_stmts): Same.
12869 (remove_redundant_iv_tests): Same.
12870 (unloop_loops): Same.
12871 (estimated_peeled_sequence_size): Same.
12872 (try_peel_loop): Same.
12873 (canonicalize_loop_induction_variables): Same.
12874 (canonicalize_induction_variables): Same.
12875 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12876 (name_info): Same.
12877 (stmt_after_inc_pos): Same.
12878 (contains_abnormal_ssa_name_p): Same.
12879 (niter_for_exit): Same.
12880 (find_bivs): Same.
12881 (mark_bivs): Same.
12882 (find_givs_in_bb): Same.
12883 (find_induction_variables): Same.
12884 (find_interesting_uses_cond): Same.
12885 (outermost_invariant_loop_for_expr): Same.
12886 (idx_find_step): Same.
12887 (add_candidate_1): Same.
12888 (add_iv_candidate_derived_from_uses): Same.
12889 (alloc_use_cost_map): Same.
12890 (prepare_decl_rtl): Same.
12891 (generic_predict_doloop_p): Same.
12892 (computation_cost): Same.
12893 (determine_common_wider_type): Same.
12894 (get_computation_aff_1): Same.
12895 (get_use_type): Same.
12896 (determine_group_iv_cost_address): Same.
12897 (iv_period): Same.
12898 (difference_cannot_overflow_p): Same.
12899 (may_eliminate_iv): Same.
12900 (determine_set_costs): Same.
12901 (cheaper_cost_pair): Same.
12902 (compare_cost_pair): Same.
12903 (iv_ca_cand_for_group): Same.
12904 (iv_ca_recount_cost): Same.
12905 (iv_ca_set_remove_invs): Same.
12906 (iv_ca_set_no_cp): Same.
12907 (iv_ca_set_add_invs): Same.
12908 (iv_ca_set_cp): Same.
12909 (iv_ca_add_group): Same.
12910 (iv_ca_cost): Same.
12911 (iv_ca_compare_deps): Same.
12912 (iv_ca_delta_reverse): Same.
12913 (iv_ca_delta_commit): Same.
12914 (iv_ca_cand_used_p): Same.
12915 (iv_ca_delta_free): Same.
12916 (iv_ca_new): Same.
12917 (iv_ca_free): Same.
12918 (iv_ca_dump): Same.
12919 (iv_ca_extend): Same.
12920 (iv_ca_narrow): Same.
12921 (iv_ca_prune): Same.
12922 (cheaper_cost_with_cand): Same.
12923 (iv_ca_replace): Same.
12924 (try_add_cand_for): Same.
12925 (get_initial_solution): Same.
12926 (try_improve_iv_set): Same.
12927 (find_optimal_iv_set_1): Same.
12928 (create_new_iv): Same.
12929 (rewrite_use_compare): Same.
12930 (remove_unused_ivs): Same.
12931 (determine_scaling_factor): Same.
12932 * tree-ssa-loop-ivopts.h: Same.
12933 * tree-ssa-loop-manip.c (create_iv): Same.
12934 (compute_live_loop_exits): Same.
12935 (add_exit_phi): Same.
12936 (add_exit_phis): Same.
12937 (find_uses_to_rename_use): Same.
12938 (find_uses_to_rename_def): Same.
12939 (find_uses_to_rename_in_loop): Same.
12940 (rewrite_into_loop_closed_ssa): Same.
12941 (check_loop_closed_ssa_bb): Same.
12942 (split_loop_exit_edge): Same.
12943 (ip_end_pos): Same.
12944 (ip_normal_pos): Same.
12945 (copy_phi_node_args): Same.
12946 (gimple_duplicate_loop_to_header_edge): Same.
12947 (can_unroll_loop_p): Same.
12948 (determine_exit_conditions): Same.
12949 (scale_dominated_blocks_in_loop): Same.
12950 (niter_for_unrolled_loop): Same.
12951 (tree_transform_and_unroll_loop): Same.
12952 (rewrite_all_phi_nodes_with_iv): Same.
12953 * tree-ssa-loop-manip.h: Same.
12954 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12955 (number_of_iterations_ne): Same.
12956 (assert_no_overflow_lt): Same.
12957 (assert_loop_rolls_lt): Same.
12958 (number_of_iterations_lt): Same.
12959 (adjust_cond_for_loop_until_wrap): Same.
12960 (tree_simplify_using_condition): Same.
12961 (simplify_using_initial_conditions): Same.
12962 (simplify_using_outer_evolutions): Same.
12963 (loop_only_exit_p): Same.
12964 (ssa_defined_by_minus_one_stmt_p): Same.
12965 (number_of_iterations_popcount): Same.
12966 (number_of_iterations_exit): Same.
12967 (find_loop_niter): Same.
12968 (finite_loop_p): Same.
12969 (chain_of_csts_start): Same.
12970 (get_val_for): Same.
12971 (loop_niter_by_eval): Same.
12972 (derive_constant_upper_bound_ops): Same.
12973 (do_warn_aggressive_loop_optimizations): Same.
12974 (record_estimate): Same.
12975 (get_cst_init_from_scev): Same.
12976 (record_nonwrapping_iv): Same.
12977 (idx_infer_loop_bounds): Same.
12978 (infer_loop_bounds_from_ref): Same.
12979 (infer_loop_bounds_from_array): Same.
12980 (infer_loop_bounds_from_pointer_arith): Same.
12981 (infer_loop_bounds_from_signedness): Same.
12982 (bound_index): Same.
12983 (discover_iteration_bound_by_body_walk): Same.
12984 (maybe_lower_iteration_bound): Same.
12985 (estimate_numbers_of_iterations): Same.
12986 (estimated_loop_iterations): Same.
12987 (estimated_loop_iterations_int): Same.
12988 (max_loop_iterations): Same.
12989 (max_loop_iterations_int): Same.
12990 (likely_max_loop_iterations): Same.
12991 (likely_max_loop_iterations_int): Same.
12992 (estimated_stmt_executions_int): Same.
12993 (max_stmt_executions): Same.
12994 (likely_max_stmt_executions): Same.
12995 (estimated_stmt_executions): Same.
12996 (stmt_dominates_stmt_p): Same.
12997 (nowrap_type_p): Same.
12998 (loop_exits_before_overflow): Same.
12999 (scev_var_range_cant_overflow): Same.
13000 (scev_probably_wraps_p): Same.
13001 (free_numbers_of_iterations_estimates): Same.
13002 * tree-ssa-loop-niter.h: Same.
13003 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
13004 (idx_analyze_ref): Same.
13005 (analyze_ref): Same.
13006 (gather_memory_references_ref): Same.
13007 (mark_nontemporal_store): Same.
13008 (emit_mfence_after_loop): Same.
13009 (may_use_storent_in_loop_p): Same.
13010 (mark_nontemporal_stores): Same.
13011 (should_unroll_loop_p): Same.
13012 (volume_of_dist_vector): Same.
13013 (add_subscript_strides): Same.
13014 (self_reuse_distance): Same.
13015 (insn_to_prefetch_ratio_too_small_p): Same.
13016 * tree-ssa-loop-split.c (split_at_bb_p): Same.
13017 (patch_loop_exit): Same.
13018 (find_or_create_guard_phi): Same.
13019 (easy_exit_values): Same.
13020 (connect_loop_phis): Same.
13021 (connect_loops): Same.
13022 (compute_new_first_bound): Same.
13023 (split_loop): Same.
13024 (tree_ssa_split_loops): Same.
13025 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
13026 (is_maybe_undefined): Same.
13027 (tree_may_unswitch_on): Same.
13028 (simplify_using_entry_checks): Same.
13029 (tree_unswitch_single_loop): Same.
13030 (tree_unswitch_loop): Same.
13031 (tree_unswitch_outer_loop): Same.
13032 (empty_bb_without_guard_p): Same.
13033 (used_outside_loop_p): Same.
13034 (get_vop_from_header): Same.
13035 (hoist_guard): Same.
13036 * tree-ssa-loop.c (gate_oacc_kernels): Same.
13037 (get_lsm_tmp_name): Same.
13038 * tree-ssa-loop.h: Same.
13039 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
13040 (build_and_add_sum): Same.
13041 (no_side_effect_bb): Same.
13042 (get_ops): Same.
13043 (linearize_expr): Same.
13044 (should_break_up_subtract): Same.
13045 (linearize_expr_tree): Same.
13046 * tree-ssa-scopedtables.c: Same.
13047 * tree-ssa-scopedtables.h: Same.
13048 * tree-ssa-structalias.c (condense_visit): Same.
13049 (label_visit): Same.
13050 (dump_pred_graph): Same.
13051 (perform_var_substitution): Same.
13052 (move_complex_constraints): Same.
13053 (remove_preds_and_fake_succs): Same.
13054 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
13055 (determine_bb_domination_status): Same.
13056 (duplicate_thread_path): Same.
13057 (thread_through_all_blocks): Same.
13058 * tree-ssa-threadupdate.h: Same.
13059 * tree-streamer-in.c (streamer_read_string_cst): Same.
13060 (input_identifier): Same.
13061 (unpack_ts_type_common_value_fields): Same.
13062 (unpack_ts_block_value_fields): Same.
13063 (unpack_ts_translation_unit_decl_value_fields): Same.
13064 (unpack_ts_omp_clause_value_fields): Same.
13065 (streamer_read_tree_bitfields): Same.
13066 (streamer_alloc_tree): Same.
13067 (lto_input_ts_common_tree_pointers): Same.
13068 (lto_input_ts_vector_tree_pointers): Same.
13069 (lto_input_ts_poly_tree_pointers): Same.
13070 (lto_input_ts_complex_tree_pointers): Same.
13071 (lto_input_ts_decl_minimal_tree_pointers): Same.
13072 (lto_input_ts_decl_common_tree_pointers): Same.
13073 (lto_input_ts_decl_non_common_tree_pointers): Same.
13074 (lto_input_ts_decl_with_vis_tree_pointers): Same.
13075 (lto_input_ts_field_decl_tree_pointers): Same.
13076 (lto_input_ts_function_decl_tree_pointers): Same.
13077 (lto_input_ts_type_common_tree_pointers): Same.
13078 (lto_input_ts_type_non_common_tree_pointers): Same.
13079 (lto_input_ts_list_tree_pointers): Same.
13080 (lto_input_ts_vec_tree_pointers): Same.
13081 (lto_input_ts_exp_tree_pointers): Same.
13082 (lto_input_ts_block_tree_pointers): Same.
13083 (lto_input_ts_binfo_tree_pointers): Same.
13084 (lto_input_ts_constructor_tree_pointers): Same.
13085 (lto_input_ts_omp_clause_tree_pointers): Same.
13086 (streamer_read_tree_body): Same.
13087 * tree-streamer.h: Same.
13088 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13089 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13090 (vect_analyze_possibly_independent_ddr): Same.
13091 (vect_analyze_data_ref_dependence): Same.
13092 (vect_compute_data_ref_alignment): Same.
13093 (vect_enhance_data_refs_alignment): Same.
13094 (vect_analyze_data_ref_access): Same.
13095 (vect_check_gather_scatter): Same.
13096 (vect_find_stmt_data_reference): Same.
13097 (vect_create_addr_base_for_vector_ref): Same.
13098 (vect_setup_realignment): Same.
13099 (vect_supportable_dr_alignment): Same.
13100 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13101 (adjust_phi_and_debug_stmts): Same.
13102 (vect_set_loop_mask): Same.
13103 (add_preheader_seq): Same.
13104 (vect_maybe_permute_loop_masks): Same.
13105 (vect_set_loop_masks_directly): Same.
13106 (vect_set_loop_condition_masked): Same.
13107 (vect_set_loop_condition_unmasked): Same.
13108 (slpeel_duplicate_current_defs_from_edges): Same.
13109 (slpeel_add_loop_guard): Same.
13110 (slpeel_can_duplicate_loop_p): Same.
13111 (create_lcssa_for_virtual_phi): Same.
13112 (iv_phi_p): Same.
13113 (vect_update_ivs_after_vectorizer): Same.
13114 (vect_gen_vector_loop_niters_mult_vf): Same.
13115 (slpeel_update_phi_nodes_for_loops): Same.
13116 (slpeel_update_phi_nodes_for_guard1): Same.
13117 (find_guard_arg): Same.
13118 (slpeel_update_phi_nodes_for_guard2): Same.
13119 (slpeel_update_phi_nodes_for_lcssa): Same.
13120 (vect_do_peeling): Same.
13121 (vect_create_cond_for_alias_checks): Same.
13122 (vect_loop_versioning): Same.
13123 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13124 (vect_inner_phi_in_double_reduction_p): Same.
13125 (vect_analyze_scalar_cycles_1): Same.
13126 (vect_fixup_scalar_cycles_with_patterns): Same.
13127 (vect_get_loop_niters): Same.
13128 (bb_in_loop_p): Same.
13129 (vect_get_max_nscalars_per_iter): Same.
13130 (vect_verify_full_masking): Same.
13131 (vect_compute_single_scalar_iteration_cost): Same.
13132 (vect_analyze_loop_form_1): Same.
13133 (vect_analyze_loop_form): Same.
13134 (vect_active_double_reduction_p): Same.
13135 (vect_analyze_loop_operations): Same.
13136 (neutral_op_for_slp_reduction): Same.
13137 (vect_is_simple_reduction): Same.
13138 (vect_model_reduction_cost): Same.
13139 (get_initial_def_for_reduction): Same.
13140 (get_initial_defs_for_reduction): Same.
13141 (vect_create_epilog_for_reduction): Same.
13142 (vectorize_fold_left_reduction): Same.
13143 (vectorizable_reduction): Same.
13144 (vectorizable_induction): Same.
13145 (vectorizable_live_operation): Same.
13146 (loop_niters_no_overflow): Same.
13147 (vect_get_loop_mask): Same.
13148 (vect_transform_loop_stmt): Same.
13149 (vect_transform_loop): Same.
13150 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13151 (vect_determine_precisions): Same.
13152 (vect_pattern_recog_1): Same.
13153 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13154 * tree-vect-stmts.c (stmt_vectype): Same.
13155 (process_use): Same.
13156 (vect_init_vector_1): Same.
13157 (vect_truncate_gather_scatter_offset): Same.
13158 (get_group_load_store_type): Same.
13159 (vect_build_gather_load_calls): Same.
13160 (vect_get_strided_load_store_ops): Same.
13161 (vectorizable_simd_clone_call): Same.
13162 (vectorizable_store): Same.
13163 (permute_vec_elements): Same.
13164 (vectorizable_load): Same.
13165 (vect_transform_stmt): Same.
13166 (supportable_widening_operation): Same.
13167 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13168 (vec_info::free_stmt_vec_info): Same.
13169 (vect_free_loop_info_assumptions): Same.
13170 (vect_loop_vectorized_call): Same.
13171 (set_uid_loop_bbs): Same.
13172 (vectorize_loops): Same.
13173 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13174 * tree.c (add_tree_to_fld_list): Same.
13175 (fld_type_variant_equal_p): Same.
13176 (fld_decl_context): Same.
13177 (fld_incomplete_type_of): Same.
13178 (free_lang_data_in_binfo): Same.
13179 (need_assembler_name_p): Same.
13180 (find_decls_types_r): Same.
13181 (get_eh_types_for_runtime): Same.
13182 (find_decls_types_in_eh_region): Same.
13183 (find_decls_types_in_node): Same.
13184 (assign_assembler_name_if_needed): Same.
13185 * value-prof.c (stream_out_histogram_value): Same.
13186 * value-prof.h: Same.
13187 * var-tracking.c (use_narrower_mode): Same.
13188 (prepare_call_arguments): Same.
13189 (vt_expand_loc_callback): Same.
13190 (resolve_expansions_pending_recursion): Same.
13191 (vt_expand_loc): Same.
13192 * varasm.c (const_hash_1): Same.
13193 (compare_constant): Same.
13194 (tree_output_constant_def): Same.
13195 (simplify_subtraction): Same.
13196 (get_pool_constant): Same.
13197 (output_constant_pool_2): Same.
13198 (output_constant_pool_1): Same.
13199 (mark_constants_in_pattern): Same.
13200 (mark_constant_pool): Same.
13201 (get_section_anchor): Same.
13202 * vr-values.c (compare_range_with_value): Same.
13203 (vr_values::extract_range_from_phi_node): Same.
13204 * vr-values.h: Same.
13205 * web.c (unionfind_union): Same.
13206 * wide-int.h: Same.
13207
13208 2019-07-09 Martin Sebor <msebor@redhat.com>
13209
13210 PR c++/61339
13211 * align.h: Change class-key from class to struct and vice versa
13212 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13213 * alloc-pool.h: Same.
13214 * asan.c (shadow_mem_size): Same.
13215 * auto-profile.c: Same.
13216 * basic-block.h: Same.
13217 * bitmap.h: Same.
13218 * cfgexpand.c (set_rtl): Same.
13219 (expand_one_stack_var_at): Same.
13220 * cfghooks.h: Same.
13221 * cfgloop.h: Same.
13222 * cgraph.h: Same.
13223 * config/i386/i386.h: Same.
13224 * df-problems.c (df_print_bb_index): Same.
13225 * df-scan.c: Same.
13226 * df.h (df_single_use): Same.
13227 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13228 (layout::annotation_line_showed_range_p): Same.
13229 (get_printed_columns): Same.
13230 (correction::ensure_terminated): Same.
13231 (line_corrections::~line_corrections): Same.
13232 * dojump.h: Same.
13233 * dse.c: Same.
13234 * dump-context.h: Same.
13235 * dumpfile.h: Same.
13236 * dwarf2out.c: Same.
13237 * edit-context.c: Same.
13238 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13239 * flags.h: Same.
13240 * function.c (assign_stack_local): Same.
13241 * function.h: Same.
13242 * gcc.c: Same.
13243 * gcov.c (block_info::block_info): Same.
13244 * genattrtab.c: Same.
13245 * genextract.c: Same.
13246 * genmatch.c (comparison_code_p): Same.
13247 (id_base::id_base): Same.
13248 (decision_tree::print): Same.
13249 * genoutput.c: Same.
13250 * genpreds.c (write_one_predicate_function): Same.
13251 * genrecog.c (validate_pattern): Same.
13252 (find_operand_positions): Same.
13253 (optimize_subroutine_group): Same.
13254 (merge_pattern_transition::merge_pattern_transition): Same.
13255 (merge_pattern_info::merge_pattern_info): Same.
13256 (merge_state_result::merge_state_result): Same.
13257 (merge_into_state): Same.
13258 * gensupport.c: Same.
13259 * gensupport.h: Same.
13260 * ggc-common.c (init_ggc_heuristics): Same.
13261 * ggc-tests.c (test_union): Same.
13262 * gimple-loop-interchange.cc (dump_induction): Same.
13263 * gimple-loop-versioning.cc: Same.
13264 * gimple-match.h (gimple_match_cond::any_else): Same.
13265 * gimple-ssa-backprop.c: Same.
13266 * gimple-ssa-sprintf.c: Same.
13267 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13268 Same.
13269 (store_immediate_info::store_immediate_info): Same.
13270 (merged_store_group::apply_stores): Same.
13271 (get_location_for_stmts): Same.
13272 * gimple-ssa-strength-reduction.c: Same.
13273 * gimple-ssa-warn-alloca.c: Same.
13274 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13275 * godump.c (go_type_decl): Same.
13276 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13277 * hash-map.h: Same.
13278 * hash-set-tests.c (test_set_of_strings): Same.
13279 * hsa-brig.c: Same.
13280 * hsa-common.h: Same.
13281 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13282 * input.c (assert_loceq): Same.
13283 * input.h: Same.
13284 * ipa-cp.c: Same.
13285 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13286 * ipa-fnsummary.h: Same.
13287 * ipa-inline.h: Same.
13288 * ipa-prop.h: Same.
13289 * ipa-split.c (visit_bb): Same.
13290 * ira-int.h (minmax_set_iter_next): Same.
13291 * loop-invariant.c: Same.
13292 * loop-iv.c: Same.
13293 * lra-eliminations.c: Same.
13294 * lra-int.h: Same.
13295 * lra-lives.c (mark_regno_dead): Same.
13296 * lra-remat.c: Same.
13297 * lra-spills.c: Same.
13298 * lto-streamer.h: Same.
13299 * mem-stats.h: Same.
13300 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13301 * omp-low.c (omp_clause_aligned_alignment): Same.
13302 * optabs-query.h (get_vcond_eq_icode): Same.
13303 * optabs.h: Same.
13304 * opts.c (wrap_help): Same.
13305 * poly-int.h: Same.
13306 * predict.c (predict_paths_leading_to_edge): Same.
13307 * pretty-print.h: Same.
13308 * profile-count.h: Same.
13309 * read-md.h: Same.
13310 * read-rtl-function.c: Same.
13311 * ree.c: Same.
13312 * reginfo.c: Same.
13313 * regrename.c: Same.
13314 * regrename.h: Same.
13315 * reload.h: Same.
13316 * rtl-iter.h: Same.
13317 * rtl.h (costs_add_n_insns): Same.
13318 * sanopt.c: Same.
13319 * sched-int.h: Same.
13320 * sel-sched-ir.h: Same.
13321 * selftest.h: Same.
13322 * sese.h (vec_find): Same.
13323 * stmt.c: Same.
13324 * target-globals.h: Same.
13325 * tree-affine.c (aff_combination_find_elt): Same.
13326 * tree-affine.h: Same.
13327 * tree-data-ref.h: Same.
13328 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13329 * tree-predcom.c: Same.
13330 * tree-scalar-evolution.c (find_var_scev_info): Same.
13331 * tree-ssa-alias.h: Same.
13332 * tree-ssa-ccp.c: Same.
13333 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13334 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13335 (rewrite_mem_refs): Same.
13336 (execute_sm_if_changed): Same.
13337 (hoist_memory_references): Same.
13338 * tree-ssa-loop-ivopts.c (operator<=): Same.
13339 * tree-ssa-loop.h: Same.
13340 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13341 * tree-ssa-structalias.c: Same.
13342 * tree-switch-conversion.h (cluster::cluster): Same.
13343 (simple_cluster::simple_cluster): Same.
13344 * tree-vect-patterns.c (type_conversion_p): Same.
13345 * tree-vectorizer.c (dump_stmt_cost): Same.
13346 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13347 * tree.c (protected_set_expr_location): Same.
13348 * tree.h (desired_pro_or_demotion_p): Same.
13349 (fndecl_built_in_p): Same.
13350 * unique-ptr-tests.cc: Same.
13351 * var-tracking.c (delete_variable_part): Same.
13352 * varasm.c (assemble_real): Same.
13353 (tree_output_constant_def): Same.
13354 * vec.c: Same.
13355 * wide-int-bitmask.h: Same.
13356 * wide-int.h (decompose): Same.
13357
13358 2019-07-09 Richard Biener <rguenther@suse.de>
13359
13360 PR tree-optimization/91114
13361 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13362 find a vector type isn't fatal.
13363
13364 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13365
13366 * config/aarch64/aarch64-simd.md
13367 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13368 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13369 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13370 (*aarch64_crypto_aese_fused,
13371 *aarch64_crypto_aesd_fused): Update to new definition.
13372 * config/aarch64/aarch64.c
13373 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13374
13375 2019-07-09 Richard Biener <rguenther@suse.de>
13376
13377 * gimple-match.h (gimple_match_op::resimplify): New.
13378 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13379 gimple_resimplify4, gimple_resimplify5): Remove.
13380 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13381 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13382 Make static.
13383 (gimple_match_op::resimplify): New.
13384 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13385 according to availability. Use gimple_match_op::resimplify.
13386
13387 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13388
13389 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13390
13391 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13392
13393 * config/arm/crypto.md:
13394 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13395 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13396 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13397 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13398 * config/arm/arm.c
13399 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13400 * config/arm/aarch-common-protos.h
13401 (aarch_crypto_can_dual_issue): Remove.
13402 * config/arm/aarch-common.c
13403 (aarch_crypto_can_dual_issue): Likewise.
13404 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13405 * config/arm/cortex-a53.md: Likewise.
13406 * config/arm/cortex-a57.md: Likewise.
13407 * config/arm/iterators.md:
13408 (CRYPTO_BINARY): Redefine.
13409 (CRYPTO_UNARY): Removed.
13410 (CRYPTO_AES, CRYPTO_AESMC): New.
13411
13412 2019-07-09 Richard Biener <rguenther@suse.de>
13413
13414 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13415 (vn_reference_lookup_3): If the main ref has no access path recorded
13416 but orig_ref has use it to do access-path based disambiguation.
13417 (vn_reference_lookup_pieces): Adjust.
13418 (vn_reference_lookup): Pass down original ref if we valueized.
13419
13420 2019-07-09 Martin Liska <mliska@suse.cz>
13421
13422 * doc/extend.texi: Document influence on loop
13423 optimizers.
13424
13425 2019-07-09 Martin Liska <mliska@suse.cz>
13426
13427 * lto-compress.c (lto_normalized_zstd_level): Do not use
13428 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13429 of libzstd. One can use 0 as a default compression level.
13430
13431 2019-07-09 Martin Liska <mliska@suse.cz>
13432
13433 * doc/invoke.texi: Add link from -fprofile-dir option.
13434 Use better wording for 'gcno filename'.
13435
13436 2019-07-08 Martin Sebor <msebor@redhat.com>
13437
13438 PR middle-end/71924
13439 PR middle-end/90549
13440 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13441 comment.
13442 (args_loc_t): New type.
13443 (args_loc_t, locmap_t): same.
13444 (diag_returned_locals): New function.
13445 (is_addr_local): Same.
13446 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13447 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13448 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13449
13450 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13451
13452 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13453 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13454 and casts in offset when different, both through gimple stmts
13455 and through trees. Rewritten using loops to minimize code duplication
13456 for each operand.
13457
13458 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13459
13460 * emit-rtl.c (set_insn_locations): New function moved from...
13461 * function.c (set_insn_locations): ...here.
13462 * ira-emit.c (emit_moves): Propagate location of the first instruction
13463 to the inserted move instructions.
13464 * reg-stack.c (compensate_edge): Set the location if the sequence is
13465 inserted on the edge.
13466 * rtl.h (set_insn_locations): Declare.
13467
13468 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13469
13470 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13471 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13472 .machine string.
13473
13474 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13475
13476 PR rtl-optimization/88233
13477 * common.opt (fsplit-wide-types-early): New option.
13478 * common/config/rs6000/rs6000-common.c
13479 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13480 OPT_LEVELS_ALL.
13481 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13482 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13483 flag_split_wide_types_early.
13484 (pass_data_lower_subreg3): New.
13485 (pass_lower_subreg3): New.
13486 (make_pass_lower_subreg3): New.
13487 * passes.def (pass_lower_subreg2): Move after the loop passes.
13488 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13489 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13490 the pass pipeline; its previous place is taken by ...
13491 (make_pass_lower_subreg3): ... this.
13492
13493 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13494
13495 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13496 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13497
13498 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13499
13500 * config/s390/constraints.md: Add new jsc constraint.
13501 * config/s390/predicates.md: New predicates.
13502 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13503 * config/s390/s390.c (s390_valid_shift_count): New function.
13504 (print_shift_count_operand): Use s390_valid_shift_count.
13505 (print_operand): Likewise.
13506 * config/s390/s390.md: Use new predicate.
13507 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13508 * config/s390/vector.md: Use new predicate.
13509
13510 2019-07-08 Andrew Waterman <andrew@sifive.com>
13511 Jim Wilson <jimw@sifive.com>
13512
13513 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13514 bitsize instead of BITS_PER_WORD.
13515
13516 2019-07-08 Martin Liska <mliska@suse.cz>
13517
13518 * collect2.c (defined): Revert to before r254460.
13519 (scan_prog_file): Revert to before r254460.
13520
13521 2019-07-08 Richard Biener <rguenther@suse.de>
13522
13523 PR tree-optimization/83518
13524 * tree-ssa-sccvn.c: Include splay-tree.h.
13525 (struct pd_range, struct pd_data): New.
13526 (struct vn_walk_cb_data): Add data to track partial definitions.
13527 (vn_walk_cb_data::~vn_walk_cb_data): New.
13528 (vn_walk_cb_data::push_partial_def): New.
13529 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13530 (vn_reference_lookup_2): When partial defs are registered give up.
13531 (vn_reference_lookup_3): Track partial defs for memset and
13532 constructor zeroing and for defs from constants.
13533
13534 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13535
13536 * doc/install.texi (bootstrap-Og): Document.
13537
13538 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13539
13540 * config/riscv/pic.md (*local_pic_load_s<mode>)
13541 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13542 referenced by <mode>, giving...
13543 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13544 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13545 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13546 use <X:MODE> for the mode attribute.
13547
13548 2019-07-07 Jeff Law <law@redhat.com>
13549
13550 PR tree-optimization/91090
13551 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13552 in handling of ranges to simplify switch statements.
13553
13554 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13555
13556 * config/darwin.c (darwin_override_options): Make a final check on PIC
13557 options.
13558
13559 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13560
13561 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13562 on for kernel code.
13563
13564 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13565
13566 PR target/91068
13567 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13568 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13569 instead of matching them to "l" output operands.
13570
13571 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13572
13573 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13574 and check whether addr.reg is nonnull before using it.
13575
13576 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13577
13578 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13579 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13580 variable(s). For conditional lastprivate look through outer
13581 GIMPLE_OMP_SCAN context.
13582 (lower_omp_1): For conditional lastprivate look through outer
13583 GIMPLE_OMP_SCAN context.
13584
13585 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13586 member to combined_into_simd_safelen1.
13587 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13588 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13589 clauses if ctx->combined_into_simd_safelen1 put statements after the
13590 predicate conditionalized block rather than into it.
13591
13592 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13593
13594 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13595 operand 1.
13596 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13597 Make the choice of <mode> explicit, giving...
13598 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13599
13600 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13601
13602 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13603 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13604 of .md attributes.
13605 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13606 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13607 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13608 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13609 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13610 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13611 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13612 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13613 (*avx512f_scatterdi<mode>): Likewise.
13614 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13615
13616 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13617
13618 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13619 specify the mode iterator referenced by <mode>, giving...
13620 (*push1_h8300hs_<QHI:mode>): ...this.
13621
13622 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13623
13624 * config/gcn/gcn-valu.md
13625 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13626 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13627 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13628 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13629 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13630 but using the _exec comparison patterns.
13631 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13632 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13633 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13634 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13635 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13636 but using the _exec comparison patterns.
13637
13638 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13639
13640 * config/arm/sync.md
13641 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13642 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13643 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13644 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13645 <SIDI:cas_cmp_str>.
13646
13647 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13648
13649 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13650 (maybe_lookup_ctx): Add forward declaration.
13651 (omp_find_scan): Likewise. Walk into body of simd if composited
13652 with worksharing loop.
13653 (scan_omp_simd_scan): New function.
13654 (scan_omp_1_stmt): Call it.
13655 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13656 ctx->for_simd_scan_phase.
13657 (lower_rec_input_clauses): Do much less work for inscan reductions
13658 in ctx->for_simd_scan_phase is_simd regions.
13659 (lower_omp_scan): Set is_simd also on simd constructs composited
13660 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13661 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13662 emit their body after in simd constructs composited with worksharing
13663 loop.
13664 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13665
13666 * omp-low.c (omp_find_scan): Make static.
13667 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13668 the second loop, var2 represents the first partial sum and so needs
13669 to go before rprivb[ivar].
13670
13671 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13672
13673 * config/rs6000/rs6000-logue.c: Remove unused code.
13674
13675 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13676
13677 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13678
13679 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13680
13681 PR target/90712
13682 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13683 check with a frame laid out check.
13684
13685 2019-07-05 Richard Biener <rguenther@suse.de>
13686
13687 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13688 when comparing against a store with possibly the same value.
13689
13690 2019-07-05 Richard Biener <rguenther@suse.de>
13691
13692 PR tree-optimization/91091
13693 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13694 (walk_non_aliased_vuses): Likewise.
13695 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13696 (get_continuation_for_phi): New tbaa_p parameter and pass
13697 it down.
13698 (walk_non_aliased_vuses): Likewise.
13699 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13700 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13701 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13702 Likewise.
13703 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13704 (adjust_offsets_for_equal_base_address): New function.
13705 (vn_reference_lookup_3): Use it to catch more base equivalences.
13706 Handle and pass down tbaa_p flag.
13707 (vn_reference_lookup_pieces): Adjust.
13708 (vn_reference_lookup): Remove alias-set altering, instead pass
13709 down false as tbaa_p.
13710
13711 2019-07-05 Richard Biener <rguenther@suse.de>
13712
13713 PR tree-optimization/91091
13714 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13715 accesses can happen with -fno-strict-aliasing.
13716
13717 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13718
13719 * tree-ssa-alias.c (alias_stats): Add
13720 nonoverlapping_component_refs_since_match_p_must_overlap.
13721 (dump_alias_stats): Print it.
13722 (nonoverlapping_component_refs_since_match_p): Add early exit.
13723 (nonoverlapping_component_refs_p): Do not account early exit.
13724
13725 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13726
13727 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13728 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13729 (emit_eh_dispatch): Delete.
13730 (lower_catch): Emit the eh_dispatch manually and set the location of
13731 the first catch statement onto it.
13732 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13733 (lower_eh_dispatch): Propagate location.
13734 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13735 (eliminate_build): Likewise.
13736
13737 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13738
13739 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13740 phi nodes if possible.
13741 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13742 location info on the newly created statement.
13743 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13744 newly created increment if needed.
13745
13746 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13747
13748 PR middle-end/78884
13749 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13750 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13751 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13752 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13753 ctx->add_safelen1 is set.
13754
13755 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13756 GOMP_loop_start at the start of second worksharing loop in a scan.
13757 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13758 worksharing loop in a scan even if there are conditional lastprivates,
13759 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13760
13761 2019-07-04 Jan Hubicka <jh@suse.cz>
13762
13763 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13764 Fix check for match in the ref walk.
13765
13766 2019-07-04 Martin Liska <mliska@suse.cz>
13767
13768 * tree-ssa-loop-niter.c
13769 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13770 (estimate_numbers_of_iterations):
13771 Support __builtin_expect_with_probability for analysis
13772 of # of loop iterations.
13773
13774 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13775
13776 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13777 * except.c: Likewise.
13778 * expr.c (expand_expr_real_1): Reject it.
13779 * gimplify.c (gimplify_expr): Gimplify it, within
13780 TRY_FINALLY_EXPR.
13781 * tree-dump.c (dequeue_and_dump): Dump it.
13782 * tree-pretty-print.c (dump_generic_node): Likewise.
13783 * tree.c (block_may_fallthru): Handle it.
13784 * tree.def (EH_ELSE_EXPR): Introduce it.
13785 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13786 with GIMPLE_EH_ELSE as try/finally/else.
13787
13788 2019-07-04 Richard Biener <rguenther@suse.de>
13789
13790 PR ipa/91062
13791 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13792 parameter whether to disable GC collection.
13793 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13794 honor it.
13795 (execute_all_ipa_transforms): Likewise and pass it down.
13796 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13797 collection from applying IPA transforms.
13798 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13799 from applying IPA transforms.
13800
13801 2019-07-04 Richard Biener <rguenther@suse.de>
13802
13803 PR tree-optimization/90911
13804 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13805 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13806 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13807 scalar_loop_scaling.
13808 (vect_transform_loop): Scale scalar loop profile if needed.
13809 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13810 the loop copy from if-conversion adjust edge probabilities
13811 and scale the vectorized loop body profile, queue the scalar
13812 profile for updating after peeling.
13813
13814 2019-07-04 Jan Hubicka <jh@suse.cz>
13815
13816 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13817 parameters; return early for must-alias.
13818 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13819 outer types match, try nonoverlapping_component_refs
13820 if must-alias is not obvious.
13821 (indirect_refs_may_alias_p): Likewise.
13822 (refs_may_alias_p_2): Likewise.
13823
13824 2019-07-04 Richard Biener <rguenther@suse.de>
13825
13826 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13827 argument.
13828 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13829 globals into...
13830 (struct vn_walk_cb_data): New callback data struct.
13831 (vn_reference_lookup_2): Adjust.
13832 (vn_reference_lookup_3): Likewise.
13833 (vn_reference_lookup_pieces): Likewise.
13834 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13835 (visit_reference_op_load): Adjust.
13836
13837 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13838
13839 PR tree-optimization/91063
13840 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13841 stmt from stmts sequence before calling vect_init_vector_1.
13842 Formatting fix.
13843
13844 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13845
13846 PR target/88833
13847 * fwprop.c (reg_single_def_p): New function.
13848 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13849 (forward_propagate_into): New parameter reg_prop_only
13850 with default value false.
13851 Propagate def's src into loop only if SET_SRC and SET_DEST
13852 of def_set have single definitions.
13853 Likewise if reg_prop_only is set to true.
13854 (fwprop): New param fwprop_addr_p.
13855 Integrate fwprop_addr into fwprop.
13856 (fwprop_addr): Remove.
13857 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13858 to true.
13859 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13860 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13861 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13862
13863 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13864
13865 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13866 in worksharing loop scans.
13867
13868 PR tree-optimization/91074
13869 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13870 temporary.
13871
13872 PR rtl-optimization/90756
13873 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13874 for VECTOR_TYPE_P.
13875
13876 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13877
13878 * config/aarch64/aarch64.md: Remove redundant constraints from
13879 define_expand but keep some patterns untouched if they are
13880 specially selected by TARGET_SECONDARY_RELOAD hook.
13881 * config/aarch64/aarch64-sve.md: Likewise.
13882 * config/aarch64/atomics.md: Remove redundant constraints from
13883 define_expand.
13884 * config/aarch64/aarch64-simd.md: Likewise.
13885
13886 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13887
13888 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13889 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13890 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13891 clauses.
13892 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13893 DARWIN_NOPIE_SPEC.
13894
13895 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13896
13897 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13898 (STARTFILE_SPEC): Split crt3 into a separate spec.
13899 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13900 (DARWIN_CRT2_SPEC): New.
13901 (DARWIN_CRT3_SPEC): New.
13902 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13903 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13904 (DARWIN_CRT3_SPEC): New.
13905
13906 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13907
13908 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13909 Change the RTL attribute "length" from "4" to "*" to allow the
13910 length attribute to be adjusted automatically for prefixed load,
13911 store, and add immediate instructions.
13912 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13913 Likewise.
13914 (extendsi<mode>2, EXTSI iterator): Likewise.
13915 (movsi_internal1): Likewise.
13916 (movsi_from_sf): Likewise.
13917 (movdi_from_sf_zero_ext): Likewise.
13918 (mov<mode>_internal): Likewise.
13919 (movcc_internal1, QHI iterator): Likewise.
13920 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13921 (movsf_from_si): Likewise.
13922 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13923 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13924 (mov<mode>, FMOVE128 iterator): Likewise.
13925 (movdi_internal64): Likewise.
13926 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13927 Likewise.
13928 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13929 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13930 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13931 (vsx_splat_v4sf): Likewise.
13932
13933 2019-07-03 Mark Wielaard <mark@klomp.org>
13934
13935 PR debug/90981
13936 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13937 DW_AT_addr_base if there is actually a .debug_addr section with
13938 addresses.
13939 (output_addr_table): Add DWARF5 table header generation here after
13940 checking there are actually any addresses from...
13941 (dwarf2out_finish): ...here.
13942
13943 2019-07-03 Richard Biener <rguenther@suse.de>
13944
13945 PR middle-end/91069
13946 * match.pd (vec_perm -> bit_insert): Fix element read from
13947 first vector.
13948
13949 2019-07-03 Martin Liska <mliska@suse.cz>
13950
13951 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13952 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13953 condition.
13954 * generic-match-head.c: Include dbgcnt.h.
13955 * gimple-match-head.c: Likewise.
13956
13957 2019-07-03 Martin Liska <mliska@suse.cz>
13958
13959 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13960 (GCOV_COUNTER_V_TOPN): New.
13961 (GCOV_COUNTER_V_INDIR): Use _topn.
13962 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13963 (GCOV_TOPN_VALUES): New.
13964 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13965 (GCOV_TOPN_VALUES_COUNTERS): New.
13966 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13967 * tree-profile.c:
13968 (gimple_init_gcov_profiler): Rename variables from one_value
13969 to topn_values.
13970 (gimple_gen_one_value_profiler): Remove.
13971 (gimple_gen_topn_values_profiler): New function.
13972 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13973 names instead of SINGLE_VALUE.
13974 (stream_out_histogram_value): Likewise.
13975 (stream_in_histogram_value): Likewise.
13976 (get_most_common_single_value): Likewise.
13977 (gimple_divmod_fixed_value_transform): Likewise.
13978 (gimple_stringops_transform): Likewise.
13979 (gimple_divmod_values_to_profile): Likewise.
13980 (gimple_stringops_values_to_profile): Likewise.
13981 (gimple_find_values_to_profile): Likewise.
13982 * value-prof.h (enum hist_type): Rename to TOPN.
13983 (gimple_gen_one_value_profiler): Remove.
13984 (gimple_gen_topn_values_profiler): New.
13985
13986 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13987
13988 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13989 if it has the DW_AT_data_member_location attribute.
13990
13991 2019-07-03 Richard Biener <rguenther@suse.de>
13992
13993 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13994 dumping.
13995
13996 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13997
13998 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13999 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
14000 (tlsdesc_small_sve_<mode>): Likewise.
14001
14002 2019-07-03 Martin Liska <mliska@suse.cz>
14003
14004 * Makefile.in: Define ZSTD_LIB.
14005 * common.opt: Adjust compression level
14006 to support also zstd levels.
14007 * config.in: Regenerate.
14008 * configure: Likewise.
14009 * configure.ac: Add --with-zstd and --with-zstd-include options
14010 and detect ZSTD.
14011 * doc/install.texi: Mention zstd dependency.
14012 * gcc.c: Print supported LTO compression algorithms.
14013 * lto-compress.c (lto_normalized_zstd_level): Likewise.
14014 (lto_compression_zstd): Likewise.
14015 (lto_uncompression_zstd): Likewise.
14016 (lto_end_compression): Dispatch in between zlib and zstd.
14017 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
14018 (lto_uncompression_zlib): Make it static.
14019 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
14020 * lto-section-in.c (lto_get_section_data): Pass info
14021 about used compression.
14022 * lto-streamer-out.c: By default use zstd when possible.
14023 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
14024 (TV_IPA_LTO_COMPRESS): Likewise for compression.
14025
14026 2019-07-03 Martin Liska <mliska@suse.cz>
14027
14028 * lto-section-in.c (lto_get_section_data): Add "lto" section.
14029 * lto-section-out.c (lto_destroy_simple_output_block): Never
14030 compress LTO_section_lto section.
14031 * lto-streamer-out.c (produce_asm): Do not set major_version
14032 and minor_version.
14033 (lto_output_toplevel_asms): Likewise.
14034 (produce_lto_section): New function.
14035 (lto_output): Call produce_lto_section.
14036 (lto_write_mode_table): Do not set major_version and
14037 minor_version.
14038 (produce_asm_for_decls): Likewise.
14039 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
14040 type.
14041 (struct lto_header): Remove.
14042 (struct lto_section): New struct.
14043 (struct lto_simple_header): Do not inherit from lto_header.
14044 (struct lto_file_decl_data): Add lto_section_header field.
14045
14046 2019-07-03 Martin Liska <mliska@suse.cz>
14047
14048 * lra-eliminations.c (eliminate_regs_in_insn): Remove
14049 dead assignemts.
14050 * reg-stack.c (check_asm_stack_operands): Likewise.
14051 * tree-ssa-structalias.c (create_function_info_for): Likewise.
14052 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14053 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
14054 force_expand_binop.
14055
14056 2019-07-03 Martin Liska <mliska@suse.cz>
14057
14058 PR tree-optimization/90892
14059 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
14060 in string constants.
14061
14062 2019-07-03 Martin Liska <mliska@suse.cz>
14063
14064 PR middle-end/90899
14065 * multiple_target.c (create_dispatcher_calls): Add to comdat
14066 group only if set for ifunc.
14067
14068 2019-07-03 Martin Liska <mliska@suse.cz>
14069
14070 PR target/88056
14071 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
14072 Define local_object_name in outer scope in order to handle
14073 use-after-scope issue.
14074
14075 2019-07-03 Martin Liska <mliska@suse.cz>
14076
14077 * common.opt: Add fprofile-note.
14078 * coverage.c (coverage_init): Append the option
14079 to bbg_file_name.
14080 * doc/invoke.texi: Document -fprofile-note.
14081
14082 2019-07-03 Jakub Jelinek <jakub@redhat.com>
14083
14084 PR tree-optimization/91033
14085 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14086 vect_analyze_data_refs): Add bool * arguments.
14087 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14088 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14089 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14090 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14091 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14092 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14093 vect_analyze_data_refs caller.
14094
14095 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14096 clause.
14097 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14098 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14099 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14100 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14101 OMP_CLAUSE__SCANTEMP_ entry.
14102 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14103 * tree-pretty-print.c (dump_omp_clause): Likewise.
14104 * tree-nested.c (convert_nonlocal_omp_clauses,
14105 convert_local_omp_clauses): Likewise.
14106 * omp-general.h (struct omp_for_data): Add have_scantemp and
14107 have_nonctrl_scantemp members.
14108 * omp-general.c (omp_extract_for_data): Initialize them.
14109 * omp-low.c (struct omp_context): Add scan_exclusive member.
14110 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14111 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14112 ctx->scan_exclusive.
14113 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14114 of !ctx->scan_inclusive.
14115 (lower_rec_input_clauses): Simplify gimplification of dtors using
14116 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14117 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14118 loops. Don't add barrier for reduction_omp_orig_ref if
14119 ctx->scan_??xclusive.
14120 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14121 (lower_omp_scan): Use ctx->scan_exclusive instead
14122 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14123 reductions. Use new_vard != new_var instead of repeated
14124 omp_is_reference calls.
14125 (omp_find_scan, lower_omp_for_scan): New functions.
14126 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14127 inscan reductions.
14128 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14129 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14130 and fd->have_scantemp.
14131
14132 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14133 on worksharing loop propagate it as shared clause to containing
14134 combined parallel.
14135
14136 * omp-expand.c (expand_omp_for_static_nochunk,
14137 expand_omp_for_static_chunk): For nowait worksharing loop with
14138 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14139 at the end.
14140
14141 2019-07-02 qing zhao <qing.zhao@oracle.com>
14142
14143 PR preprocessor/90581
14144 * doc/cppopts.texi: Add document for -fmax-include-depth.
14145 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14146
14147 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14148
14149 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14150 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14151 (mmx_packssdw): Ditto.
14152 (mmx_punpckhbw): Ditto.
14153 (mmx_punpcklbw): Ditto.
14154 (mmx_punpckhwd): Ditto.
14155 (mmx_punpcklwd): Ditto.
14156 (mmx_punpckhdq): Ditto.
14157 (mmx_punpckldq): Ditto.
14158 (*vec_dupv4hi): Ditto.
14159 (*vec_dupv2si): Ditto.
14160 (mmx_pmovmskb): Ditto.
14161 * config/i386/sse.md (sse_cvtpi2ps): Use
14162 TARGET_SSE2 && SSE_REG_P in split condition.
14163 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14164 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14165 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14166 (ssse3_pshufbv8qi3): Ditto.
14167 (ssse3_palignrdi): Ditto.
14168
14169 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14170
14171 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14172 with inlined save and restore.
14173
14174 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14175
14176 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14177 to be inserted on single successor edge of the entry block. Then call
14178 commit_edge_insertions instead of inserting the instructions manually.
14179 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14180 RTL expansion and rebuild jump labels chain.
14181
14182 2019-07-02 Richard Biener <rguenther@suse.de>
14183
14184 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14185 TI_CHREC_KNOWN.
14186 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14187 Define here.
14188 * tree.c (build_common_tree_nodes): Initialize them.
14189 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14190 Make declarations comments.
14191 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14192 chrec_known): Remove definitions.
14193 (initialize_scalar_evolutions_analyzer): Remove.
14194 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14195 * tree-streamer.c (preload_common_nodes): Do not preload
14196 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14197
14198 2019-07-02 Jan Hubicka <jh@suse.cz>
14199
14200 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14201 sanity check.
14202
14203 2019-07-02 Jan Hubicka <jh@suse.cz>
14204
14205 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14206 to ..
14207 (nonoverlapping_component_refs_since_match_p): ... this one;
14208 handle also non-decl bases; return -1 if search gave up.
14209 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14210 nonoverlapping_component_refs_of_decl_p_no_alias to
14211 nonoverlapping_component_refs_since_match_p_may_alias,
14212 nonoverlapping_component_refs_since_match_p_no_alias.
14213 (dump_alias_stats): Update dumping.
14214 (aliasing_matching_component_refs_p): Break out from ...;
14215 dispatch to nonoverlapping_component_refs_for_decl_p
14216 and nonoverlapping_component_refs_since_match_p.
14217 (aliasing_component_refs_p): ... here; call
14218 nonoverlapping_component_refs_p in scenarios where we can not
14219 precisely determine base match.
14220 (decl_refs_may_alias_p): Use
14221 nonoverlapping_component_refs_since_match_p.
14222 (indirect_ref_may_alias_decl_p): Do not call
14223 nonoverlapping_component_refs_p.
14224 (indirect_refs_may_alias_p): Likewise.
14225
14226 2019-07-02 Jan Hubicka <jh@suse.cz>
14227
14228 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14229 to clobber of return value.
14230
14231 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14232
14233 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14234 for is_neon_type instructions that have not already been categorized.
14235
14236 2019-07-02 Richard Biener <rguenther@suse.de>
14237
14238 PR tree-optimization/58483
14239 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14240 for MEM_REF base hashing.
14241 (equal_mem_array_ref_p): Likewise for base comparison.
14242
14243 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14244
14245 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14246 parameterized name.
14247 (signbit<mode>2): Use that name. Simplify.
14248
14249 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14250
14251 PR middle-end/66726
14252 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14253 Tune heuristic from PR71016 to allow MIN / MAX.
14254
14255 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14256
14257 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14258 parameterized name.
14259 (abs<mode>2): Use that name. Simplify.
14260
14261 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14262
14263 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14264 parameterized name.
14265 (neg<mode>2): Use that name. Simplify.
14266
14267 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14268
14269 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14270 name.
14271 (abs<mode>2): Use that name. Simplify.
14272
14273 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14274
14275 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14276 name.
14277 (neg<mode>2): Use that name. Simplify.
14278
14279 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14280
14281 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14282 ("enabled" attribute): Handle sse_noavx isa attribute.
14283 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14284 Use TARGET_SSE && SSE_REGNO_P in split condition.
14285 (*vec_dupv2sf): Ditto.
14286
14287 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14288
14289 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14290 name.
14291 (floatsi<mode>2): Use that name. Simplify.
14292
14293 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14294
14295 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14296 parameterized name.
14297 (extenddf<mode>2_vsx): Make this a parameterized name.
14298 (extenddf<mode>2): Use those names. Simplify.
14299
14300 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14301
14302 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14303 name.
14304 (eh_return): Use that name. Simplify.
14305
14306 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14307
14308 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14309 (doloop_end): Use that name. Simplify.
14310
14311 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14312
14313 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14314 parameterized name.
14315 (indirect_jump): Use that name. Simplify.
14316
14317 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14318
14319 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14320 parameterized name.
14321 (abs<mode>2): Use that name. Simplify.
14322
14323 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14324
14325 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14326 parameterized name.
14327 (fix_trunc<mode>si2): Use that name. Simplify.
14328
14329 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14330
14331 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14332 (allocate_stack): Use that name. Simplify.
14333
14334 2019-07-01 Martin Sebor <msebor@redhat.com>
14335
14336 PR middle-end/90923
14337 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14338 (hash_map::get_or_insert): Same. Reformat comment.
14339 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14340 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14341 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14342 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14343 (hash_table::hash_table (const hash_table&)): Use copy ctor
14344 instead of assignment to copy elements.
14345
14346 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14347 John David Anglin <danglin@gcc.gnu.org>
14348
14349 PR target/90963
14350 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14351 using saved frame pointer.
14352
14353 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14354
14355 PR middle-end/64242
14356 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14357 Add frame clobber and schedule blockage.
14358
14359 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14360
14361 * doc/invoke.texi (Link Options): Further editorial changes to
14362 -flinker-output docs.
14363
14364 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14365
14366 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14367 Load both operands of a PLUS into registers separately.
14368
14369 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14370
14371 * config/s390/vector.md: Fix shift count operand printing.
14372
14373 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14374
14375 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14376
14377 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14378
14379 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14380 Use recog_data to test for an output operand.
14381
14382 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14383
14384 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14385 exclude any others that are disparaged or that are bound to need
14386 a reload or spill.
14387 (ira_get_dup_out_num): Expand comment.
14388
14389 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14390
14391 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14392 constraint string for each operand/alternative combo. Only handle
14393 '%' at the start of constraint strings, and look for it outside
14394 the main loop.
14395
14396 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14397
14398 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14399 alternative_mask instead of HARD_REG_SET to represent a
14400 bitmask of alternatives.
14401 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14402 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14403
14404 2019-07-01 Martin Liska <mliska@suse.cz>
14405
14406 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14407 use () for a constructor call.
14408 (test_applying_fixits_line_out_of_range): Likewise.
14409 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14410 argument.
14411 (free_page): Likewise.
14412
14413 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14414
14415 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14416 parameter names to match usage (no functional change).
14417 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14418
14419 2019-07-01 Richard Biener <rguenther@suse.de>
14420
14421 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14422 pass parameter.
14423 (pass_fre::execute): Honor it.
14424 * passes.def: Adjust pass_fre invocations to allow iterating,
14425 add non-iterating pass_fre before late threading/dom.
14426
14427 2019-07-01 Richard Biener <rguenther@suse.de>
14428
14429 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14430 TARGET_MEM_REF handling to also handle address-taken ones.
14431
14432 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14433
14434 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14435 hardware attributes): Document avx512vp2intersect.
14436
14437 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14438
14439 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14440 (abs<mode>2): New expander.
14441 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14442 Use CODE_FOR_ssse3_absv8qi2.
14443 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14444 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14445
14446 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14447
14448 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14449 to sse, sse_noavx and avx. Update all uses.
14450
14451 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14452
14453 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14454 (*mmx_<plusminus_insn><mode>3): Ditto.
14455 (*mmx_mulv4hi3"): Ditto.
14456 (*mmx_smulv4hi3_highpart): Ditto.
14457 (*mmx_umulv4hi3_highpart): Ditto.
14458 (*mmx_pmaddwd): Ditto.
14459 (*sse2_umulv1siv1di3): Ditto.
14460 (*mmx_<code>v4hi3): Ditto.
14461 (*mmx_<code>v8qi3): Ditto.
14462 (mmx_ashr<mode>3): Ditto.
14463 ("mmx_<shift_insn><mode>3): Ditto.
14464 (*mmx_eq<mode>3): Ditto.
14465 (mmx_gt<mode>3): Ditto.
14466 (mmx_andnot<mode>3): Ditto.
14467 (*mmx_<code><mode>3): Ditto.
14468 (*mmx_pinsrw): Ditto.
14469 (*mmx_pextrw): Ditto.
14470 (mmx_pshufw_1): Ditto.
14471 (*mmx_uavgv8qi3): Ditto.
14472 (*mmx_uavgv4hi3): Ditto.
14473 ("mmx_psadbw): Ditto.
14474 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14475 (sse_cvttps2pi): Ditto.
14476 (ssse3_pmaddubsw): Ditto.
14477 (*ssse3_pmulhrswv4hi3): Ditto.
14478 (ssse3_psign<mode>3): Ditto.
14479
14480 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14481
14482 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14483 adjustment for bit-fields to all aggregate types.
14484
14485 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14486
14487 * config/rs6000/predicates.md (pcrel_address): Use
14488 SYMBOL_REF_LOCAL_P to determine if a label is local.
14489 (pcrel_external_address): New predicate.
14490 (non_prefixed_mem_operand): Delete, predicate not used.
14491 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14492 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14493 addressing.
14494 (SYMBOL_REF_PCREL_P): Likewise.
14495
14496 PR target/91009
14497 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14498 alternative.
14499 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14500 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14501 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14502
14503 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14504
14505 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14506 override on extra_headers.
14507
14508 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14509
14510 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14511 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14512 from warning.
14513 (darwin_driver_init): Likewise.
14514
14515 2019-06-28 Jan Beulich <jbeulich@suse.com>
14516
14517 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14518 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14519 Eliminate redundant alternative.
14520
14521 2019-06-28 Jan Beulich <jbeulich@suse.com>
14522
14523 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14524 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14525 Use vector_operand.
14526
14527 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14528
14529 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14530 having a lower cost regardless of the speed option.
14531
14532 2019-06-28 Jan Beulich <jbeulich@suse.com>
14533
14534 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14535 vector_operand plus, on both alternatives, "Bm" constraint.
14536
14537 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14538
14539 * config/arm/arm.md: Remove redundant constraints from
14540 define_expand but leave reload_inm and reload_outm patterns
14541 untouched since they need special constraints to work.
14542 * config/arm/arm-fixed.md: Remove redundant constraints from
14543 define_expand.
14544 * config/arm/iwmmxt.md: Likewise.
14545 * config/arm/neon.md: Likewise.
14546 * config/arm/sync.md: Likewise.
14547 * config/arm/thumb1.md: Likewise.
14548 * config/arm/vec-common.md: Likewise.
14549
14550 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14551
14552 * doc/install.texi: Document --disable-tm-clone-registry.
14553
14554 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14555
14556 PR c++/91024
14557 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14558 statements.
14559
14560 PR tree-optimization/91010
14561 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14562 return true. Otherwise, don't call operand_equal_p if offset1 or
14563 offset2 is NULL and just return false.
14564
14565 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14566
14567 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14568 user-specified float mode choice for kernel mode code.
14569
14570 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14571
14572 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14573 spec.
14574
14575 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14576
14577 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14578 use longcall for 64b code.
14579
14580 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14581
14582 * builtins.c (get_memory_rtx): Fix comment.
14583 * optabs.def (movmem_optab): Change to cpymem_optab.
14584 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14585 (emit_block_move_hints): Change movmem to cpymem.
14586 * defaults.h: Change movmem to cpymem.
14587 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14588 (default_use_by_pieces_infrastructure_p): Ditto.
14589 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14590 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14591 to cpymem.
14592 * config/aarch64/aarch64.h: Change movmem to cpymem.
14593 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14594 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14595 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14596 movmem to cpymem.
14597 * config/arc/arc-protos.h: Change movmem to cpymem.
14598 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14599 * config/arc/arc.h: Change movmem to cpymem in comment.
14600 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14601 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14602 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14603 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14604 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14605 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14606 * config/avr/avr-protos.h: Change movmem to cpymem.
14607 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14608 avr_out_movmem): Change movmem to cpymem.
14609 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14610 Change movmem to cpymem.
14611 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14612 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14613 Change movmem to cpymem.
14614 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14615 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14616 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14617 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14618 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14619 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14620 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14621 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14622 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14623 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14624 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14625 expand_small_cpymem_or_setmem,
14626 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14627 expand_set_or_cpymem_constant_prologue,
14628 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14629 * config/i386/i386-protos.h: Change movmem to cpymem.
14630 * config/i386/i386.h: Change movmem to cpymem in comment.
14631 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14632 (setmem<mode>): Change expansion function name.
14633 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14634 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14635 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14636 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14637 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14638 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14639 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14640 to cpymem.
14641 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14642 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14643 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14644 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14645 Change movmem to cpymem.
14646 * config/mips/mips.h: Change movmem to cpymem.
14647 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14648 * config/nds32/nds32-memory-manipulation.c
14649 (nds32_expand_movmemsi_loop_unknown_size,
14650 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14651 nds32_expand_movmemsi_unroll,
14652 nds32_expand_movmemsi): Change movmem to cpymem.
14653 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14654 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14655 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14656 (pa_adjust_insn_length): Change call to compute_movmem_length.
14657 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14658 movmemdi, movmemdi_prereload,
14659 movmemdi_postreload): Change movmem to cpymem.
14660 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14661 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14662 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14663 * config/riscv/riscv.h: Change movmem to cpymem.
14664 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14665 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14666 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14667 movmem to cpymem.
14668 * config/s390/s390-protos.h: Change movmem to cpymem.
14669 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14670 s390_expand_insv): Change movmem to cpymem.
14671 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14672 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14673 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14674 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14675 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14676 for nonexistent function.
14677 * config/vax/vax.h: Change movmem to cpymem in comment.
14678 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14679 * config/visium/visium.h: Change movmem to cpymem in comment.
14680 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14681 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14682 * doc/md.texi: Change movmem to cpymem and update description to match.
14683 * doc/rtl.texi: Change movmem to cpymem.
14684 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14685 * doc/tm.texi: Regenerate.
14686
14687 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14688
14689 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14690 -fvariable-expansion-in-unroller by default.
14691 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14692 default for Power.
14693
14694 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14695
14696 Revert
14697 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14698 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14699
14700 * config.gcc(rs6000-*-*): Define target_gtfiles.
14701
14702 2019-06-27 Jan Hubicka <jh@suse.cz>
14703
14704 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14705 (add_type_duplicate): When odr hash is not allocated, to nothing.
14706 (odr_based_tbaa_p): New function.
14707 (set_type_canonical_for_odr_type): New function.
14708 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14709 set_type_canonical_for_odr_type): New.
14710 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14711 ODR based TBAA are not equivalent to non-ODR types.
14712
14713 2019-06-27 Martin Liska <mliska@suse.cz>
14714
14715 PR tree-optimization/90974
14716 PR rtl-optimization/90975
14717 PR rtl-optimization/90976
14718 PR target/91016
14719 PR tree-optimization/91017
14720 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14721 unused tmp.
14722 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14723 initial commit of IRA.
14724 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14725 of op0 and op1.
14726 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14727 Remove unused mode1.
14728 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14729 to new_stmt_info.
14730
14731 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14732
14733 PR target/90991
14734 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14735 instead of register_operand for operands[1], add m to its constraints
14736 if operands[2] uses "C" constraint. Ensure in condition that if
14737 operands[2] is not 0, then operands[1] is not a MEM. For last two
14738 alternatives, use unaligned loads instead of aligned if operands[1] is
14739 misaligned_operand.
14740
14741 2019-06-27 Martin Liska <mliska@suse.cz>
14742
14743 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14744 dead assignments.
14745 * bt-load.c (move_btr_def): Likewise.
14746 * builtins.c (expand_builtin_apply_args_1): Likewise.
14747 (expand_builtin_apply): Likewise.
14748 * cfgexpand.c (expand_asm_stmt): Likewise.
14749 (construct_init_block): Likewise.
14750 * cfghooks.c (verify_flow_info): Likewise.
14751 * cfgloopmanip.c (remove_path): Likewise.
14752 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14753 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14754 * combine.c (simplify_if_then_else): Likewise.
14755 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14756 (choose_basereg): Likewise.
14757 (ix86_expand_prologue): Likewise.
14758 (ix86_preferred_output_reload_class): Likewise.
14759 * cselib.c (cselib_record_sets): Likewise.
14760 * df-scan.c (df_scan_alloc): Likewise.
14761 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14762 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14763 * emit-rtl.c (try_split): Likewise.
14764 * graphite-scop-detection.c (assign_parameter_index_in_region):
14765 Likewise.
14766 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14767 * ira-color.c (setup_profitable_hard_regs): Likewise.
14768 * ira.c (rtx_moveable_p): Likewise.
14769 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14770 * read-rtl.c (read_subst_mapping): Likewise.
14771 * regrename.c (scan_rtx): Likewise.
14772 * reorg.c (fill_slots_from_thread): Likewise.
14773 * tree-inline.c (tree_function_versioning): Likewise.
14774 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14775 * tree-ssa-sink.c (statement_sink_location): Likewise.
14776 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14777 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14778 (vect_create_epilog_for_reduction): Likewise.
14779 * tree.c (build_nonstandard_integer_type): Likewise.
14780
14781 2019-06-27 Richard Biener <rguenther@suse.de>
14782
14783 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14784
14785 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14786
14787 PR tree-optimization/89772
14788 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14789 out-of-bound accesses checking.
14790
14791 2019-06-27 Martin Liska <mliska@suse.cz>
14792
14793 PR tree-optimization/91014
14794 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14795 when LHS is NULL_TREE.
14796
14797 2019-06-27 Martin Liska <mliska@suse.cz>
14798
14799 * symbol-summary.h (traverse): Pass
14800 argument a to the call of callback.
14801 (gt_ggc_mx): Mark arguments as unused.
14802 (gt_pch_nx): Likewise.
14803
14804 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14805
14806 PR target/62147
14807 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14808 finiteness.
14809
14810 2019-06-26 Jeff Law <law@redhat.com>
14811
14812 PR tree-optimization/90883
14813 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14814 (delete_dead_or_redundant_assignment): Likewise.
14815
14816 PR tree-optimization/90883
14817 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14818 * tree-ssa-dse.c: Update various comments to distinguish between
14819 dead and redundant stores.
14820 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14821 (dse_optimize_redundant_stores): New function.
14822 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14823 Distinguish between dead and redundant calls in dump output. All
14824 callers updated.
14825 (delete_dead_or_redundant_assignment): Similarly for assignments.
14826 (dse_optimize_stmt): Handle _CHK variants. For statements which
14827 store 0 into multiple memory locations, try to prove a subsequent
14828 store is redundant.
14829
14830 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14831
14832 PR target/89021
14833 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14834 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14835
14836 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14837
14838 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14839 (branch_islands): New extern.
14840 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14841 * config/rs6000/rs6000.c: .. here.
14842
14843 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14844
14845 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14846 (powerpc*-*-*) ... to here.
14847
14848 2019-06-26 Jeff Law <law@redhat.com>
14849
14850 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14851 memcpy, memmove and memset builtins.
14852 (maybe_trim_memstar_call): Likewise.
14853
14854 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14855
14856 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14857
14858 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14859
14860 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14861
14862 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14863
14864 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14865 declaration.
14866 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14867 "static".
14868 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14869 declaration.
14870
14871 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14872
14873 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14874
14875 2019-06-26 Richard Biener <rguenther@suse.de>
14876
14877 PR ipa/90982
14878 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14879
14880 2019-06-26 Richard Biener <rguenther@suse.de>
14881
14882 * lto-streamer.h (lto_bitmap_alloc): Remove.
14883 (lto_bitmap_free): Likewise.
14884 * lto-streamer.c (lto_bitmap_alloc): Remove.
14885 (lto_bitmap_free): Likewise.
14886 (lto_obstack): Likewise.
14887 (lto_obstack_initialized): Likewise.
14888 * lto-streamer-out.c (lto_output): Use own obstack for local
14889 bitmap, free it consistently.
14890
14891 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14892
14893 PR target/90991
14894 * config/i386/sse.md
14895 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14896 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14897 insns if operands[2] is misaligned_operand.
14898
14899 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14900
14901 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14902 TARGET_POWERPC64.
14903 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14904 to GPR.
14905
14906 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14907
14908 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14909
14910 2019-06-26 Martin Liska <mliska@suse.cz>
14911
14912 PR tree-optimization/90973
14913 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14914 epilogue_cost_vec instead of prologue_cost_vec for
14915 a epilogue cost.
14916
14917 2019-06-26 Martin Liska <mliska@suse.cz>
14918
14919 * bb-reorder.c (connect_better_edge_p): Add missing else
14920 statement in the middle of if-else statements.
14921
14922 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14923 H.J. Lu <hongjiu.lu@intel.com>
14924 Olga Makhotina <olga.makhotina@intel.com>
14925
14926 * common/config/i386/i386-common.c
14927 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14928 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14929 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14930 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14931 (ix86_handle_option): Handle -mavx512vp2intersect.
14932 * config/i386/avx512vp2intersectintrin.h: New.
14933 * config/i386/avx512vp2intersectvlintrin.h: New.
14934 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14935 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14936 AVX512VP2INTERSECT.
14937 * config/i386/i386-builtin-types.def: Add new types.
14938 * config/i386/i386-builtin.def: Add new builtins.
14939 * config/i386/i386-builtins.c: (enum processor_features): Add
14940 F_AVX512VP2INTERSECT.
14941 (static const _isa_names_table isa_names_table): Ditto.
14942 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14943 __AVX512VP2INTERSECT__.
14944 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14945 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14946 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14947 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14948 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14949 * config/i386/i386-options.c (ix86_target_string): Add
14950 -mavx512vp2intersect.
14951 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14952 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14953 P2HImode and P2QImode.
14954 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14955 number for P2QImode and P2HImode.
14956 (ix86_regmode_natural_size): New function.
14957 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14958 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14959 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14960 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14961 * config/i386/i386.opt: Add -mavx512vp2intersect.
14962 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14963 avx512vp2intersectvlintrin.h.
14964 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14965 (define_mode_iterator VI48_AVX512VP2VL): New.
14966 (avx512vp2intersect_2intersect<mode>,
14967 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14968 * config.gcc: Add avx512vp2intersectvlintrin.h and
14969 avx512vp2intersectintrin.h to extra_headers.
14970 * doc/invoke.texi: Document -mavx512vp2intersect.
14971
14972 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14973
14974 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14975
14976 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14977
14978 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14979 savres_routine_syms, savres_routine_name, morestack_ref,
14980 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14981 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14982 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14983 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14984 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14985 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14986 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14987 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14988 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14989 get_stack_clash_protection_probe_interval,
14990 get_stack_clash_protection_guard_size,
14991 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14992 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14993 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14994 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14995 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14996 gen_frame_mem_offset, rs6000_savres_routine_name,
14997 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14998 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14999 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15000 rs6000_global_entry_point_prologue_needed_p,
15001 rs6000_get_separate_components, rs6000_components_for_bb,
15002 rs6000_disqualify_components, rs6000_emit_prologue_components,
15003 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15004 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15005 rs6000_output_savres_externs, rs6000_output_function_prologue,
15006 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15007 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15008 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15009 rs6000_output_function_epilogue, gen_add3_const,
15010 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15011 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15012 to rs6000-logue.c.
15013 (machine_function): Moved to rs6000.h.
15014 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
15015 rs6000-internal.h.
15016 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
15017 savres_routine_syms, savres_routine_name, morestack_ref,
15018 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15019 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15020 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15021 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15022 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15023 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15024 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15025 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15026 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15027 get_stack_clash_protection_probe_interval,
15028 get_stack_clash_protection_guard_size,
15029 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15030 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15031 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15032 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15033 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15034 gen_frame_mem_offset, rs6000_savres_routine_name,
15035 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15036 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15037 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15038 rs6000_global_entry_point_prologue_needed_p,
15039 rs6000_get_separate_components, rs6000_components_for_bb,
15040 rs6000_disqualify_components, rs6000_emit_prologue_components,
15041 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15042 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15043 rs6000_output_savres_externs, rs6000_output_function_prologue,
15044 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15045 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15046 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15047 rs6000_output_function_epilogue, gen_add3_const,
15048 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15049 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15050 to here from rs6000.c.
15051 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
15052 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
15053 quad_address_offset_p) Moved to here from rs6000.c.
15054 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
15055 * config/config.gcc: Add new source file rs6000-logue.c to garbage
15056 collector.
15057
15058 2019-06-25 Martin Liska <mliska@suse.cz>
15059
15060 * hash-table.c (hashtab_chk_error): Move here from ...
15061 * hash-table.h (hashtab_chk_error): ... here.
15062
15063 2019-06-25 Martin Liska <mliska@suse.cz>
15064
15065 PR tree-optimization/90978
15066 * df-scan.c (df_update_entry_block_defs): Remove dead else
15067 branch.
15068 (df_update_exit_block_uses): Likewise.
15069
15070 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
15071 Andrew Stubbs <ams@codesourcery.com>
15072
15073 * config.gcc (thread_file): Set to gcn for AMD GCN.
15074 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
15075 (TARGET_EMUTLS_VAR_INIT): New hook.
15076
15077 2019-06-25 Martin Jambor <mjambor@suse.cz>
15078
15079 PR ipa/90939
15080 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
15081
15082 2019-06-25 Richard Biener <rguenther@suse.de>
15083
15084 PR tree-optimization/90930
15085 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15086 into parallel form in the last pass instance.
15087
15088 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15089
15090 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15091 (arc_legitimize_pic_address): Simplify and cleanup the function.
15092 (SYMBOLIC_CONST): Remove.
15093 (prepare_pic_move): Likewise.
15094 (prepare_move_operands): Handle complex mov cases here.
15095 (arc_legitimize_address_0): Remove call to
15096 arc_legitimize_pic_address.
15097 (arc_legitimize_address): Remove call to
15098 arc_legitimize_tls_address.
15099 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15100 (movhi_insn): Likewise.
15101
15102 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15103
15104 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15105 PTRDIFF_TYPE.
15106 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15107 format of "__intN" types for UINTMAX_TYPE.
15108 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15109 format of "__intN" types for SIZETYPE.
15110 * tree.c (build_common_tree_nodes): Accept "__intN__"
15111 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15112 * doc/invoke.texi: Document that __intN__ disables pedantic
15113 warnings.
15114
15115 2019-06-25 Jan Hubicka <jh@suse.cz>
15116
15117 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15118 base2_alias_set is non-zero before doing TBAA based disambiguation.
15119
15120 2019-06-25 Martin Liska <mliska@suse.cz>
15121
15122 PR tree-optimization/90973
15123 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15124 of prologue and epilogue.
15125
15126 2019-06-24 Jan Hubicka <jh@suse.cz>
15127
15128 * ipa-utils.h (type_with_linkage_p): Verify that type is
15129 CXX_ODR_P.
15130 (odr_type_p): Remove extra return.
15131 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15132 hash STRING_FLAG only for arrays and integers.
15133 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15134 Update analogously.
15135 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15136 Likewise.
15137 * print-tree.c (print_node): Print cxx-odr-p
15138 and string-flag.
15139 * tree.c (need_assembler_name_p): Also check that type
15140 is CXX_ODR_TYPE_P
15141 (verify_type_variant): Update verification of SRING_FLAG;
15142 also check CXX_ODR_P.
15143 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15144 (TYPE_STRING_FLAG): Use it.
15145 (TYPE_CXX_ODR_P): New macro.
15146 * dwarf2out.c (gen_array_type_die): First check that type
15147 is an array and then test string flag.
15148
15149 2019-06-24 Richard Biener <rguenther@suse.de>
15150
15151 PR tree-optimization/90972
15152 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15153 in common code, dealing with STRING_CST properly.
15154
15155 2019-06-24 Richard Biener <rguenther@suse.de>
15156
15157 PR tree-optimization/90930
15158 PR tree-optimization/90316
15159 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15160 decrement of limit.
15161
15162 2019-06-24 Martin Sebor <msebor@redhat.com>
15163
15164 * tree-pretty-print.h: Remove unnecessary punctuation characters
15165 from a diagnostic.
15166 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15167
15168 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15169
15170 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15171 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15172 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15173
15174 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15175
15176 * config/rs6000/darwin.h: Handle GCC target pragma.
15177
15178 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15179
15180 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15181
15182 2019-06-22 Jeff Law <law@redhat.com>
15183
15184 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15185
15186 2019-06-22 Jan Hubicka <jh@suse.cz>
15187
15188 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15189 give up on bitfields; continue searching for different refs
15190 appearing later.
15191
15192 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15193
15194 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15195 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15196 containing the offset as possible simd lane access. Look through
15197 widening conversion. Move the
15198 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15199
15200 2019-06-21 Richard Biener <rguenther@suse.de>
15201
15202 PR tree-optimization/90930
15203 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15204 flag on new stmts to avoid re-processing them.
15205
15206 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15207
15208 PR c++/90875 - added -Wswitch-outside-range option
15209 * doc/invoke.texi (Wswitch-outside-range): Document.
15210
15211 2019-06-21 Jeff Law <law@redhat.com>
15212
15213 PR tree-optimization/90949
15214 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15215 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15216
15217 2019-06-21 Richard Biener <rguenther@suse.de>
15218
15219 PR debug/90914
15220 * dwarf2out.c (prune_unused_types_walk): Always consider
15221 function-local extern declarations as used.
15222
15223 2019-06-21 Richard Biener <rguenther@suse.de>
15224
15225 PR tree-optimization/90913
15226 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15227 the scalar variant of if-conversion versioning.
15228
15229 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15230
15231 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15232 create another "omp scan inscan exclusive" array if
15233 !ctx->scan_inclusive.
15234 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15235 (lower_omp_scan): Likewise.
15236 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15237 2-bit bitfield for simd_lane_access_p member.
15238 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15239 aux == (void *)-4 as simd lane access.
15240 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15241 comment with permutations to show the canonical permutation order.
15242 (vectorizable_scan_store): Handle exclusive scan.
15243 (vectorizable_store): Call vectorizable_scan_store even for
15244 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15245
15246 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15247 "omp simd array" arrays with one byte elements.
15248
15249 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15250
15251 * config/alpha/alpha.md (@unaligned_store<mode>):
15252 Rename from unaligned_store<mode>.
15253 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15254 * config/alpha/sync.md (@load_locked_<mode>): Rename
15255 from load_locked_<mode>.
15256 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15257 (@atomic_compare_and_swap<mode>_1): Rename
15258 from atomic_compare_and_swap<mode>_1.
15259 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15260 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15261 Use gen_reload_in_aligned and gen_unaligned_store.
15262 (emit_load_locked): Remove.
15263 (emit_store_conditional): Ditto.
15264 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15265 (alpha_split_compare_and_swap): Ditto.
15266 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15267 (alpha_split_compare_and_swap_12): Use gen_load_locked
15268 and gen_store_conditional.
15269 (alpha_split_atomic_exchange): Ditto.
15270 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15271 (alpha_split_atomic_exchange_12): Use gen_load_locked
15272 and gen_store_conditional.
15273
15274 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15275
15276 * config/aarch64/aarch64-errata.h: New file.
15277 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15278 (CA53_ERR_843419_SPEC): Delete.
15279 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15280 * config/aarch64/aarch64-linux.h: Likewise.
15281 * config/aarch64/aarch64-netbsd.h: Likewise.
15282 * config/aarch64/aarch64-freebsd.h: Likewise.
15283
15284 2019-06-20 Marek Polacek <polacek@redhat.com>
15285
15286 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15287
15288 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15289
15290 * config/rs6000/rs6000.md (isa attribute): Add support for
15291 for a future processor.
15292
15293 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15294
15295 PR target/54855
15296 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15297 standard scalar operation pattern for V2DF.
15298 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15299 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15300 (*ieee_<ieee_maxmin><mode>3): Likewise.
15301 (vec_setv2df_0): Likewise.
15302
15303 2019-06-20 Jan Hubicka <jh@suse.cz>
15304
15305 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15306 parameter; it has no use in gimple memory model.
15307 (indirect_ref_may_alias_decl_p): Update.
15308
15309 2019-06-20 Martin Liska <mliska@suse.cz>
15310
15311 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15312 to 10.
15313
15314 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15315
15316 * tree-vect-stmts.c (enum scan_store_kind): New type.
15317 (scan_store_can_perm_p): Change last argument from int * to
15318 vec<enum scan_store_kind> *, record precisely which permutations
15319 need whole vector left shift or that plus VEC_COND_EXPR.
15320 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15321 and additional VEC_COND_EXPR only for those iterations that need it.
15322
15323 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15324
15325 * config.gcc: Fix ARM --with-fpu checking and error message.
15326
15327 2019-06-19 Marek Polacek <polacek@redhat.com>
15328
15329 PR c++/60364 - noreturn after first decl not diagnosed.
15330 * attribs.c (get_attribute_namespace): No longer static.
15331 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15332 attributes.
15333 (attr_noreturn_exclusions): Make it extern.
15334 * attribs.h (get_attribute_namespace): Declare.
15335 * tree-inline.c (function_attribute_inlinable_p): Use
15336 get_attribute_name.
15337
15338 2019-06-19 Martin Sebor <msebor@redhat.com>
15339
15340 PR tree-optimization/90626
15341 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15342
15343 PR tree-optimization/90626
15344 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15345 (handle_builtin_string_cmp): Call it.
15346
15347 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15348
15349 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15350 and DARWIN_NOPIE_SPEC.
15351 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15352 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15353 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15354 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15355 (DARWIN_EXPORT_DYNAMIC): Delete.
15356 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15357 and pie options processing to darwin.h.
15358 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15359
15360 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15361
15362 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15363 in computing the number of options to be moved.
15364
15365 2019-06-19 Maya Rashish <coypu@sdf.org>
15366
15367 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15368 (CLEAR_INSN_CACHE) Use it.
15369
15370 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15371
15372 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15373
15374 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15375
15376 PR middle-end/84521
15377 * builtins.c (expand_builtin_setjmp_setup): Save
15378 hard_frame_pointer_rtx.
15379 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15380 restore fp.
15381 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15382 non-local goto.
15383 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15384 elimination code.
15385 (remove_reg_equal_offset_note): Remove unused function.
15386 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15387 code.
15388 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15389 (arc_builtin_setjmp_frame_value): Remove function.
15390 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15391 (avr_builtin_setjmp_frame_value): Remove function.
15392 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15393 (ix86_builtin_setjmp_frame_value): Remove function.
15394 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15395 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15396 (sparc_builtin_setjmp_frame_value): Remove function.
15397 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15398 (vax_builtin_setjmp_frame_value): Remove function.
15399 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15400 pointer if has_nonlocal_label.
15401
15402 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15403
15404 * doc/md.texi: Document vec_shl_<mode> pattern.
15405 * optabs.def (vec_shl_optab): New optab.
15406 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15407 argument, if == vec_shl_optab, check for left whole vector shift
15408 pattern rather than right shift.
15409 (expand_vec_perm_const): Add vec_shl_optab support.
15410 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15411 in the comment.
15412 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15413 can be handled by vec_shl_optab.
15414 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15415 (check_scan_store): Use it.
15416 (vectorizable_scan_store): If target can't do normal permutations,
15417 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15418 after it.
15419 * config/i386/sse.md (vec_shl_<mode>): New expander.
15420
15421 * omp-low.c (lower_rec_input_clauses): Handle references properly
15422 in inscan clauses.
15423 (lower_omp_scan): Likewise.
15424
15425 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15426
15427 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15428 mem_mode is BLKmode.
15429
15430 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15431
15432 PR target/90922
15433 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15434 pointer adjustment for the case of no callee-saved registers and
15435 stack frame bigger than 128 bytes.
15436
15437 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15438
15439 PR middle-end/90862
15440 * omp-low.c (check_omp_nesting_restrictions): Handle
15441 GF_OMP_TARGET_KIND_OACC_DECLARE.
15442
15443 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15444
15445 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15446 (@add<mode>3_carry): Rename from add<mode>3_carry.
15447 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15448 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15449 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15450 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15451 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15452 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15453 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15454 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15455 (cmpstrnsi): Use gen_cmp_1.
15456 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15457 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15458 (@umonitor_<mode>): Rename from umonitor_<mode>.
15459 * config/i386/i386-expand.c (ix86_expand_copysign):
15460 Use gen_copysign3_const and gen_copysign3_var.
15461 (ix86_expand_xorsign): Use gen_xorsign3_1.
15462 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15463 gen_sub3_carry_ccgz and gen_cmp1.
15464 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15465 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15466 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15467 (ix86_split_lshr): Ditto.
15468 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15469
15470 2019-06-18 Jason Merrill <jason@redhat.com>
15471
15472 * tree.c (build_constructor): Add MEM_STAT_DECL.
15473
15474 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15475
15476 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15477 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15478 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15479 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15480 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15481 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15482 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15483 Use CC_NZC instead of CC.
15484 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15485 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15486 (aarch64_print_operand): Handle E_CC_NZCmode.
15487 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15488 of gen_set_clobber_cc.
15489
15490 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15491
15492 * config/aarch64/aarch64-sve.md: Tabify file.
15493
15494 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15495
15496 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15497 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15498 * config/aarch64/aarch64-sve.md: Use it.
15499
15500 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15501
15502 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15503 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15504 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15505 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15506 (aarch64_expand_sve_vec_cmp_int): Use it.
15507 (aarch64_expand_sve_vec_cmp_float): Likewise.
15508 * config/aarch64/aarch64-sve.md: Likewise throughout.
15509
15510 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15511 Kugan Vivekanandarajah <kuganv@linaro.org>
15512
15513 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15514 (*cond_<optab><mode>_z): Fold into...
15515 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15516 operand 4 can be tied to operand 0 (either inherently or via RA).
15517
15518 2019-06-18 Richard Biener <rguenther@suse.de>
15519
15520 PR debug/90900
15521 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15522 as if optimized away.
15523
15524 2019-06-18 Tom de Vries <tdevries@suse.de>
15525
15526 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15527 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15528 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15529 Rename to ...
15530 (define_insn "@set_softstack_<mode>"): ... this.
15531 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15532 (define_insn "@omp_simt_enter_<mode>"): ... this.
15533 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15534 (define_insn "@omp_simt_exit_<mode>"): ... this.
15535
15536 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15537
15538 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15539 vf parameter. Restore the previous iv step of nscalars_step,
15540 but give it iv_type rather than compare_type. Tweak code order
15541 to match the comments.
15542 (vect_set_loop_condition_masked): Update accordingly.
15543 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15544 for iv_precision. Tweak comment formatting.
15545
15546 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15547
15548 * config/darwin.c: Strip trailing whitespace.
15549
15550 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15551
15552 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15553 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15554
15555 2019-06-18 Martin Jambor <mjambor@suse.cz>
15556
15557 PR ipa/90889
15558 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15559 caller does not have flag_ipa_cp set.
15560
15561 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15562
15563 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15564 from "*fold_left_plus_<mode>", updated operands order.
15565 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15566 * internal-fn.c (mask_fold_left_direct): New define.
15567 (expand_mask_fold_left_optab_fn): Likewise.
15568 (direct_mask_fold_left_optab_supported_p): Likewise.
15569 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15570 * optabs.def (mask_fold_left_plus_optab): New optab.
15571 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15572 masked internal_fn for a reduction ifn.
15573 (vectorize_fold_left_reduction): Add support for masking reductions.
15574
15575 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15576
15577 PR middle-end/80791
15578 * target.def (predict_doloop_p): New hook.
15579 * targhooks.h (default_predict_doloop_p): New declaration.
15580 * targhooks.c (default_predict_doloop_p): New function.
15581 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15582 * doc/tm.texi: Regenerate.
15583 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15584 (TARGET_PREDICT_DOLOOP_P): New macro.
15585 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15586
15587 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15588
15589 * omp-low.c (struct omp_context): Add scan_inclusive field.
15590 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15591 if inclusive scan.
15592 (struct omplow_simd_context): Add lastlane member.
15593 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15594 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15595 1 or 2 argument.
15596 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15597 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15598 (lower_omp_scan): New function.
15599 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15600 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15601 check 3rd argument if present rather than 2nd.
15602 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15603 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15604 2-bit bitfield.
15605 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15606 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15607 than 2nd.
15608 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15609 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15610 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15611 init.
15612 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15613 IFN_GOMP_SIMD_LANE argument.
15614 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15615 encoded ->aux value.
15616 * tree-vect-stmts.c: Include attribs.h.
15617 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15618 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15619 functions.
15620 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15621 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15622
15623 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15624
15625 PR target/62055
15626 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15627 (*nabs<mode>2_1): Ditto.
15628 (nabs sse-reg splitter): New splitter.
15629 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15630
15631 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15632
15633 PR bootstrap/90873.
15634 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15635 TMR index check.
15636
15637 2019-06-17 Tom de Vries <tdevries@suse.de>
15638
15639 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15640 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15641 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15642 ...
15643 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15644 match_operand 0.
15645 (define_insn "omp_simt_enter_insn"): Rename to ...
15646 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15647 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15648 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15649 gen_omp_simt_enter_si.
15650 (define_expand "omp_simt_exit"): New.
15651 (define_insn "omp_simt_exit"): Rename to ...
15652 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15653 match_operand 0.
15654
15655 2019-06-17 Matthew Green <mrg@eterna.com.au>
15656 Maya Rashish <coypu@sdf.org>
15657
15658 * config.gcc (aarch64*-*-netbsd*): New target.
15659 * config/aarch64/aarch64-netbsd.h: New file.
15660 * config/aarch64/t-aarch64-netbsd: Likewise.
15661
15662 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15663
15664 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15665 the access path from base to first VIEW_CONVERT_EXPR or
15666 BIT_FIELD_REF.
15667
15668 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15669
15670 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15671 access path on BIT_FIELD_REFs.
15672
15673 2019-06-17 Martin Liska <mliska@suse.cz>
15674
15675 PR ipa/90874
15676 * ipa-utils.h (odr_type_p): Remove dead code.
15677
15678 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15679
15680 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15681 alternative Solaris 11.4 format.
15682 * configure: Regenerate.
15683
15684 2019-06-17 Tom de Vries <tdevries@suse.de>
15685
15686 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15687 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15688 match_operand 0.
15689 (define_insn "call_value_insn"): Rename to ...
15690 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15691 match_operand 0.
15692 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15693 DI.
15694
15695 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15696
15697 PR middle-end/64242
15698 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15699 frame clobbers and schedule block.
15700 (builtin_longjmp): Likewise.
15701
15702 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15703
15704 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15705 describe how to perform MSPABI compliant 64-bit shift.
15706 * config/msp430/msp430.md (ashldi3): New define_expand.
15707 (ashrdi3): New define_expand.
15708 (lshrdi3): New define_expand.
15709
15710 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15711
15712 * doc/sourcebuild.texi: Document new effective target keyword
15713 longlong64.
15714
15715 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15716
15717 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15718 indirect_refs_may_alias_p): Revert accidental commits.
15719
15720 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15721 at the end of structures.
15722
15723 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15724
15725 * config/darwin.c (machopic_indirect_call_target): Use renamed
15726 darwin_picsymbol_stubs to decide on output.
15727 (darwin_override_options): Handle darwin_picsymbol_stubs.
15728 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15729 (LD64_VERSION): Revise default.
15730 * config/darwin.opt: (mpic-symbol-stubs): New option.
15731 (darwin_picsymbol_stubs): New variable.
15732 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15733 rename to TARGET_MACHO_PICSYM_STUBS.
15734 * config/i386/i386.c (output_pic_addr_const): Likewise.
15735 * config/i386/i386.h Likewise.
15736 * config/rs6000/darwin.h: Likewise.
15737 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15738 darwin_picsymbol_stubs.
15739
15740 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15741
15742 * config/darwin.opt (prebind, noprebind, seglinkedit,
15743 noseglinkedit): Add RejectNegative.
15744
15745 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15746
15747 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15748 in my previous patch.
15749
15750 2019-06-16 Tom de Vries <tdevries@suse.de>
15751
15752 PR tree-optimization/89376
15753 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15754
15755 2019-06-15 Maya Rashish <coypu@sdf.org>
15756
15757 * doc/invoke.texi (Spec Files): Update location of the
15758 Fortran spec file.
15759
15760 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15761
15762 * doc/extend.texi (Common Function Attributes): Clarify
15763 no_sanitize. Fix grammar.
15764
15765 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15766
15767 * tree-ssa-alias.c (alias_stats): Add
15768 nonoverlapping_component_refs_p_may_alias,
15769 nonoverlapping_component_refs_p_no_alias,
15770 nonoverlapping_component_refs_of_decl_p_may_alias,
15771 nonoverlapping_component_refs_of_decl_p_no_alias.
15772 (dump_alias_stats): Dump them.
15773 (nonoverlapping_component_refs_of_decl_p): Add stats.
15774 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15775 ARRAY_REF.
15776
15777 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15778
15779 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15780 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15781 only.
15782 (*anddi3_doubleword): Split before reload. Merge with
15783 anddi->zext pre-reload splitter.
15784 (*andndi3_doubleword): Split before reload.
15785 (*<code>di3_doubleword): Ditto.
15786 (*one_cmpldi2_doubleword): Ditto.
15787
15788 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15789
15790 PR middle-end/90779
15791 * gimplify.c: Include omp-offload.h and context.h.
15792 (gimplify_bind_expr): Add "omp declare target" attributes
15793 to static block scope variables inside of target region or target
15794 functions.
15795
15796 2019-06-15 Tom de Vries <tdevries@suse.de>
15797
15798 PR tree-optimization/90009
15799 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15800 Return NULL if bb contains IFN_UNIQUE.
15801
15802 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15803
15804 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15805 (un): New define_mode_attr.
15806 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15807 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15808 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15809 merge into ...
15810 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15811
15812 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15813
15814 * config/darwin.opt: Add RejectNegative where needed, reorder
15815 and add minimal functional descriptions.
15816
15817 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15818
15819 PR rtl-optimization/90765
15820 * calls.c (update_stack_alignment_for_call): New function.
15821 (expand_call): Call update_stack_alignment_for_call when
15822 outgoing parameter is passed in the stack.
15823 (emit_library_call_value_1): Likewise.
15824 * function.c (locate_and_pad_parm): Don't update
15825 stack_alignment_needed and preferred_stack_boundary.
15826
15827 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15828
15829 PR target/90877
15830 * config/i386/i386-features.c
15831 (dimode_scalar_chain::compute_convert_gain): Replace
15832 mmxsse_to_integer with sse_to_integer.
15833 * config/i386/i386.c (ix86_register_move_cost): Verify that
15834 moves between MMX and non-MMX units require secondary memory.
15835 Correct costs of moves between SSE and integer units.
15836 * config/i386/i386.h (processor_costs): Rename cost of moving
15837 SSE register to integer to sse_to_integer. Rename cost of
15838
15839 2019-06-14 Matt Thomas <matt@3am-software.com>
15840 Matthew Green <mrg@eterna.com.au>
15841 Nick Hudson <skrll@netbsd.org>
15842 Maya Rashish <coypu@sdf.org>
15843 Richard Earnshaw <rearnsha@arm.com>
15844
15845 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15846 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15847 * config/arm/netbsd-eabi.h: New file.
15848 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15849 redefining.
15850 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15851 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15852 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15853 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15854
15855 2019-06-14 Richard Biener <rguenther@suse.de>
15856
15857 * tree-loop-distribution.c (classify_partition): Return
15858 whether a reduction appeared in all partitions and do not
15859 stop builtin detection because of this.
15860 (distribute_loop): Sort a non-builtin partition last if
15861 there's a reduction in all partitions and make sure the
15862 partition prevailing as last is not a builtin.
15863
15864 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15865
15866 PR ipa/90401
15867 * ipa-prop.c (add_to_agg_contents_list): New function.
15868 (clobber_by_agg_contents_list_p): Likewise.
15869 (extract_mem_content): Likewise.
15870 (get_place_in_agg_contents_list): Delete.
15871 (determine_known_aggregate_parts): Renamed from
15872 determine_locally_known_aggregate_parts. New parameter
15873 aa_walk_budget_p.
15874
15875 2019-06-13 Martin Sebor <msebor@redhat.com>
15876
15877 PR tree-optimization/90662
15878 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15879 to the same type.
15880
15881 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15882
15883 PR bootstrap/90873
15884 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15885 dbase is not TARGET_MEM_REF.
15886
15887 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15888
15889 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15890 Update all uses.
15891 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15892 Do not generate DImode extends for 32bit targets.
15893 (and->zext post-reload splitter): Use gen_extend_insn
15894 instead of indirect functions.
15895 (anddi->zext pre-reload splitter): New.
15896 (*zext<mode>_doubleword_and): Remove.
15897 (*zext<mode>_doubleword): Ditto.
15898 (*zextsi_doubleword): Dittto.
15899
15900 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15901
15902 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15903 Use gen_sub3_insn instead of indirect function.
15904 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15905 indirect function.
15906 (ix86_adjust_counter): Ditto.
15907
15908 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15909 Lijia He <helijia@linux.ibm.com>
15910
15911 PR tree-optimization/77820
15912 * tree-ssa-threadedge.c
15913 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15914 function.
15915 (thread_across_edge): Add call to
15916 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15917
15918 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15919
15920 * config/darwin-driver.c (validate_macosx_version_min): New.
15921 (darwin_default_min_version): Cleanup and validate supplied version.
15922 (darwin_driver_init): Likewise and push cleaned version into opts.
15923
15924 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15925
15926 PR tree-optimization/90869
15927 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15928 converts in MEM_REF referencing decl rather than view converts
15929 from decl type to MEM_REF type.
15930
15931 2019-06-13 Richard Biener <rguenther@suse.de>
15932
15933 PR tree-optimization/90856
15934 * tree-sra.c (build_ref_for_model): Only use
15935 build_reconstructed_reference when address-spaces are the same.
15936
15937 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15938
15939 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15940 wrap ei variable name in the declaration in ()s.
15941 (nvptx_single): Actually use mode_label variable. Formatting fix.
15942
15943 2019-06-13 Richard Biener <rguenther@suse.de>
15944
15945 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15946 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15947 also return the condition stmt.
15948 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15949 loop we can version and version that, reusing the loop version
15950 created by if-conversion instead of versioning again.
15951
15952 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15953
15954 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15955 may_contain_p.
15956 * tree-vrp (value_range_base::may_contain_p): Call into
15957 value_inside_range.
15958 (value_inside_range): Make private inside value_range_base class.
15959 Take min/max from *this.
15960 (range_includes_p): Remove.
15961 * tree-vrp.h (value_range_base): Add value_inside_range.
15962 (range_includes_p): Remove.
15963 (range_includes_zero_p): Call may_contain_p.
15964 * vr-values.c (compare_range_with_value): Same.
15965
15966 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15967
15968 * doc/extend.texi (ARC Function Attributes): Update info.
15969
15970 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15971
15972 PR tree-optimization/89713
15973 * doc/invoke.texi (-ffinite-loops): Document new option.
15974 * common.opt (-ffinite-loops): New option.
15975 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15976 IFN_GOACC_LOOP calls as necessary.
15977 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15978 is finite.
15979 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15980 IFN_GOACC_LOOP call is not used.
15981 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15982
15983 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15984
15985 PR target/88838
15986 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15987 compare_type is not with Pmode size, we will create an IV with
15988 Pmode size with truncated use (i.e. converted to the correct type).
15989 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15990 (vect_iv_limit_for_full_masking): New. Factored out of
15991 vect_set_loop_condition_masked.
15992 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15993 (vect_iv_limit_for_full_masking): Declare.
15994
15995 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15996
15997 PR target/88834
15998 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15999 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
16000 (get_alias_ptr_type_for_ptr_address): Likewise.
16001 (add_iv_candidate_for_use): Add scaled index candidate if useful.
16002 * tree-ssa-address.c (preferred_mem_scale_factor): New.
16003 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
16004 allow_reg_index_p.
16005
16006 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16007
16008 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
16009
16010 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
16011
16012 * common/config/pru/pru-common.c: New file.
16013 * config.gcc: Add PRU target.
16014 * config/pru/alu-zext.md: New file.
16015 * config/pru/constraints.md: New file.
16016 * config/pru/predicates.md: New file.
16017 * config/pru/pru-opts.h: New file.
16018 * config/pru/pru-passes.c: New file.
16019 * config/pru/pru-pragma.c: New file.
16020 * config/pru/pru-protos.h: New file.
16021 * config/pru/pru.c: New file.
16022 * config/pru/pru.h: New file.
16023 * config/pru/pru.md: New file.
16024 * config/pru/pru.opt: New file.
16025 * config/pru/t-pru: New file.
16026 * doc/extend.texi: Document PRU pragmas.
16027 * doc/invoke.texi: Document PRU-specific options.
16028 * doc/md.texi: Document PRU asm constraints.
16029
16030 2019-06-12 Martin Sebor <msebor@redhat.com>
16031
16032 PR middle-end/90676
16033 * tree-pretty-print.c (dump_mem_ref): New function. Include
16034 MEM_REF type in output when different size than operand.
16035 (dump_generic_node): Move code to dump_mem_ref and call it.
16036
16037 2019-06-12 Martin Sebor <msebor@redhat.com>
16038
16039 PR tree-optimization/90662
16040 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
16041 to arrays.
16042
16043 2019-06-12 Tom de Vries <tdevries@suse.de>
16044
16045 PR tree-optimization/90009
16046 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
16047
16048 2019-06-12 Martin Liska <mliska@suse.cz>
16049
16050 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
16051 the created map.
16052 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
16053 * mem-stats.h (mem_alloc_description::mem_alloc_description):
16054 Do not sanitize created maps.
16055
16056 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
16057
16058 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
16059 value_range::singleton_p.
16060 * tree-vrp.c (value_range_constant_singleton): Remove.
16061 * tree-vrp.h (value_range_constant_singleton): Remove.
16062 * vr-values.c (vr_values::singleton): Use
16063 value_range::singleton_p.
16064
16065 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16066
16067 PR target/90811
16068 * cfgexpand.c (align_local_variable): Add really_expand argument,
16069 don't SET_DECL_ALIGN if it is false.
16070 (add_stack_var): Add really_expand argument, pass it through to
16071 align_local_variable.
16072 (expand_one_stack_var_1): Pass true as really_expand to
16073 align_local_variable.
16074 (expand_one_ssa_partition): Pass true as really_expand to
16075 add_stack_var.
16076 (expand_one_var): Pass really_expand through to add_stack_var.
16077
16078 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16079
16080 * config/arm/iterators.md (VABAL): New int iterator.
16081 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
16082 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
16083 UNSPEC_VABAL_U values.
16084
16085 2019-06-12 Martin Liska <mliska@suse.cz>
16086
16087 * value-prof.c (stream_out_histogram_value): Only first value
16088 can't be negative.
16089
16090 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16091
16092 PR c/90760
16093 * symtab.c (symtab_node::set_section): Allow being called on aliases
16094 as long as they aren't analyzed yet.
16095
16096 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16097
16098 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16099 to `mips_set_text_contents_type' to indicate whether a
16100 non-debug insn follows.
16101
16102 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16103
16104 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16105 enabling -mpcrel by default.
16106 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16107 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16108 that the test against -mcpu=future is done first. Then test if
16109 -mprefixed-addr is on for -mpcrel.
16110 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16111
16112 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16113
16114 PR target/90811
16115 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16116 instead of and.u%d.
16117
16118 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16119
16120 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16121
16122 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16123
16124 PR c++/90449 - add -Winaccessible-base option.
16125 * doc/invoke.texi (Winaccessible-base): Document.
16126
16127 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16128
16129 PR tree-optimization/62041
16130 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16131
16132 2019-06-11 Jason Merrill <jason@redhat.com>
16133
16134 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16135 * tree.c (get_tree_code_name): Likewise.
16136 * print-tree.c (print_node): Only briefly print a node with an
16137 invalid code.
16138
16139 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16140
16141 PR bootstrap/90819
16142 * trans-mem.c (tm_memopt_compute_available): Add assertion
16143 that blocks is not empty. Formatting fix.
16144
16145 2019-06-11 Martin Liska <mliska@suse.cz>
16146
16147 PR c++/87847
16148 * hash-table.h: Extend create_gcc, add one parameter
16149 that is passed into hash_table::hash_table.
16150
16151 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16152
16153 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16154 New prototype.
16155 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16156 Emit clobber also for non-sse operations.
16157 (ix86_split_fp_absneg_operator): New function.
16158 * config/i386/i386.md (SSEMODEF): New mode iterator.
16159 (ssevecmodef): New mode attribute.
16160 (<code>tf2): Use absneg code iterator.
16161 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16162 Add three-operand AVX alternatives.
16163 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16164 Use absneg code iterator and X87MODEF mode iterator.
16165 (absneg fp_reg non-sse splitter): Call absneg code iterator
16166 and X87MODEF mode iterator.
16167 (absneg general_reg non-sse splitter): Use absneg code iterator
16168 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16169 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16170 code iterator. Add three-operand AVX alternative.
16171 (absneg sse_reg splitter): Use absneg code iterator
16172 and SSEMODEF mode iterator. Handle AVX operands.
16173 (absneg fp_reg splitter): Use absneg code iterator
16174 and MODEF mode iterator.
16175 (absneg general_reg splitter): Merge splitters using MODEF mode
16176 iterator. Use absneg code iterator. Call
16177 ix86_split_fp_absneg_operator.
16178 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16179 Do not enable for non-sse modes before reload.
16180 (CSGNMODE): Remove.
16181 (CSGNVMODE): Ditto.
16182 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16183 ssevecmodef mode attribute instaed of CSGNVMODE.
16184 (copysign<mode>3_const): Ditto.
16185 (copysign<mode>3_var): Ditto.
16186 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16187 Use absneg code iterator. Simplify code using std::swap.
16188 * config/i386/predicates.md (absneg_operator): Remove.
16189
16190 2019-06-10 Martin Sebor <msebor@redhat.com>
16191
16192 * gimple-fold.c (get_range_strlen): Update comment that didn't
16193 make it into r267503 or related commits.
16194
16195 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16196
16197 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16198 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16199
16200 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16201
16202 * tree.def (OMP_SCAN): New tree code.
16203 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16204 OMP_CLAUSE_EXCLUSIVE.
16205 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16206 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16207 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16208 OMP_CLAUSE_{IN,EX}CLUSIVE.
16209 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16210 * tree-nested.c (convert_nonlocal_reference_stmt,
16211 convert_local_reference_stmt, convert_gimple_call): Handle
16212 GIMPLE_OMP_SCAN.
16213 * tree-pretty-print.c (dump_omp_clause): Handle
16214 OMP_CLAUSE_{IN,EX}CLUSIVE.
16215 (dump_generic_node): Handle OMP_SCAN.
16216 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16217 * gimple.h (gomp_scan): New type.
16218 (is_a_helper <gomp_scan *>::test,
16219 is_a_helper <const gomp_scan *>::test): New templates.
16220 (gimple_build_omp_scan): Declare.
16221 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16222 gimple_omp_scan_set_clauses): New inline functions.
16223 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16224 * gimple.c (gimple_build_omp_scan): New function.
16225 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16226 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16227 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16228 GIMPLE_OMP_TASKGROUP.
16229 (dump_gimple_omp_scan): New function.
16230 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16231 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16232 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16233 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16234 (is_gimple_stmt): Handle OMP_SCAN.
16235 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16236 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16237 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16238 mentioned in nested #pragma omp scan. Handle
16239 OMP_CLAUSE_{IN,EX}CLUSIVE.
16240 (gimplify_expr): Handle OMP_SCAN.
16241 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16242 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16243 simd constructs.
16244 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16245 GIMPLE_OMP_SCAN.
16246
16247 2019-06-10 Martin Liska <mliska@suse.cz>
16248
16249 * ipa-cp.c (ignore_edge_p): New function.
16250 (build_toporder_info): Use it.
16251 * ipa-inline.c (ignore_edge_p): New function.
16252 (inline_small_functions): Use it.
16253 * ipa-pure-const.c (ignore_edge_for_nothrow):
16254 Verify opt_for_fn for caller and callee.
16255 (ignore_edge_for_pure_const): Likewise.
16256 * ipa-reference.c (ignore_edge_p): Extend to check
16257 for opt_for_fn.
16258 * ipa-utils.c (searchc): Refactor.
16259 * ipa-utils.h: Fix coding style.
16260
16261 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16262
16263 * config/arc/arc.c (arc_rtx_costs): Update costs.
16264
16265 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16266
16267 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16268 (arc_split_ior): Likewise.
16269 (arc_check_mov_const): Likewise.
16270 (arc_split_mov_const): Likewise.
16271 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16272 (arc_rtx_costs): Replace check Crr with Cax constraint.
16273 (prepare_move_operands): Cleanup, remove unused code.
16274 (arc_split_ior): New function.
16275 (arc_check_ior_const): Likewise.
16276 (arc_split_mov_const): Likewise.
16277 (arc_check_mov_const): Likewise.
16278 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16279 in define_insn_and_split pattern.
16280 (iorsi3): Likewise.
16281 (mulsi3_v2): Add new matching variant.
16282 (andsi3_i): Cleanup pattern.
16283 (rotrsi3_cnt1): Update pattern.
16284 (rotrsi3_cnt8): New pattern.
16285 (ashlsi2_cnt8): Likewise.
16286 (ashlsi2_cnt16): Likewise.
16287 * config/arc/constraints.md (C0p): Update constraint.
16288 (Crr): Remove it.
16289 (C0x): New pattern.
16290 (Cax): New pattern.
16291
16292 2019-06-10 Martin Liska <mliska@suse.cz>
16293
16294 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16295 Update coding style.
16296 (sem_item_optimizer::dump_cong_classes):
16297 Print how many items are in a non-singular class. Improve
16298 coding style.
16299
16300 2019-06-10 Martin Liska <mliska@suse.cz>
16301
16302 * value-prof.c (dump_histogram_value): Change dump format.
16303 (gimple_mod_subtract_transform): Remove legacy comment.
16304
16305 2019-06-10 Martin Liska <mliska@suse.cz>
16306
16307 * value-prof.c (dump_histogram_value): Print histogram values
16308 only if present.
16309
16310 2019-06-10 Martin Liska <mliska@suse.cz>
16311
16312 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16313 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16314 * ipa-profile.c (ipa_profile_generate_summary):
16315 Use get_most_common_single_value.
16316 * tree-profile.c (gimple_init_gcov_profiler):
16317 Instrument with __gcov_one_value_profiler_v2
16318 and __gcov_indirect_call_profiler_v4.
16319 * value-prof.c (dump_histogram_value):
16320 Print all values for HIST_TYPE_SINGLE_VALUE.
16321 (stream_out_histogram_value): Update assert for
16322 N values.
16323 (stream_in_histogram_value): Set number of
16324 counters for HIST_TYPE_SINGLE_VALUE.
16325 (get_most_common_single_value): New.
16326 (gimple_divmod_fixed_value_transform):
16327 Use get_most_common_single_value.
16328 (gimple_ic_transform): Likewise.
16329 (gimple_stringops_transform): Likewise.
16330 (gimple_find_values_to_profile): Set number
16331 of counters for HIST_TYPE_SINGLE_VALUE.
16332 * value-prof.h (get_most_common_single_value): New.
16333
16334 2019-06-10 Martin Liska <mliska@suse.cz>
16335
16336 * hash-map.h: Pass default value to hash_table ctor.
16337 * hash-table.h: Add default value to call of a ctor.
16338
16339 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16340
16341 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16342 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16343
16344 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16345
16346 PR target/90751
16347 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16348 Call pa_output_function_label.
16349 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16350 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16351 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16352 to declaration.
16353 (pa_linux_output_function_prologue): Declare.
16354 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16355 (pa_output_function_label): New.
16356 (pa_output_function_prologue): Revise to use pa_output_function_label.
16357 (pa_linux_output_function_prologue): New.
16358 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16359
16360 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16361
16362 * tree-vrp.h (value_range_base::intersect): New.
16363 (value_range::intersect_helper): Move from here...
16364 (value_range_base::intersect_helper): ...to here.
16365 * tree-vrp.c (value_range::intersect_helper): Rename to...
16366 (value_range_base::intersect_helper): ...this, and rewrite to
16367 return a value instead of modifying THIS in place.
16368 Also, move equivalence handling...
16369 (value_range::intersect): ...here, while calling intersect_helper.
16370 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16371 calling intersect.
16372 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16373 Same.
16374 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16375
16376 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16377
16378 * Makefile.in (genprogerr): Add condmd.
16379 (genprog): Remove it here.
16380
16381 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16382
16383 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16384
16385 2019-06-07 Richard Biener <rguenther@suse.de>
16386
16387 PR debug/90574
16388 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16389 that appear after user labels.
16390
16391 2019-06-07 Martin Liska <mliska@suse.cz>
16392
16393 * cselib.c (cselib_init): Disable hash table
16394 sanitization.
16395 * hash-set.h: Pass new default argument to m_table.
16396 * hash-table.c: Add global variable with hash table
16397 sanitization limit.
16398 * hash-table.h (Allocator>::hash_table): Add new argument
16399 to ctor.
16400 (hashtab_chk_error): New.
16401 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16402 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16403 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16404
16405 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16406
16407 * common.opt (flto-odr-type-merging): Ignore.
16408 * invoke.texi (-flto-odr-type-merging): Remove.
16409 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16410 (can_be_vtable_hashed_p): Remove.
16411 (hash_odr_vtable): Remove.
16412 (odr_vtable_hasher::hash): Remove.
16413 (types_same_for_odr): Remove.
16414 (types_odr_comparable): Remove.
16415 (odr_vtable_hasher::equal): Remove.
16416 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16417 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16418 (get_odr_type): Do not use vtable hash.
16419 (dump_odr_type): Remove commented out code.
16420 (build_type_inheritance_graph): Do not allocate vtable hash.
16421 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16422 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16423 (odr_type_p): Likewise.
16424 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16425 test.
16426
16427 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16428
16429 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16430 immediately after same_types_for_tbaa_p returns -1 and continue
16431 looking for possible exact match; if matching types are arrays
16432 watch for partial overlaps.
16433 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16434 (indirect_refs_may_alias_p): Do type based disambiguation first;
16435 update comment.
16436
16437 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16438
16439 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16440
16441 2019-06-07 Martin Liska <mliska@suse.cz>
16442
16443 * doc/invoke.texi: Remove param.
16444 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16445 Remove.
16446 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16447 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16448 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16449 * profile.c (instrument_values): Remove
16450 HIST_TYPE_INDIR_CALL_TOPN.
16451 * tree-profile.c (init_ic_make_global_vars):
16452 Always build __gcov_indirect_call only.
16453 (gimple_init_gcov_profiler): Remove usage
16454 of PARAM_INDIR_CALL_TOPN_PROFILE.
16455 (gimple_gen_ic_profiler): Likewise.
16456 * value-prof.c (dump_histogram_value): Likewise.
16457 (stream_in_histogram_value): Likewise.
16458 (gimple_indirect_call_to_profile): Likewise.
16459 (gimple_find_values_to_profile): Likewise.
16460 * value-prof.h (enum hist_type): Likewise.
16461
16462 2019-06-07 Martin Liska <mliska@suse.cz>
16463
16464 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16465 function.
16466
16467 2019-06-07 Martin Liska <mliska@suse.cz>
16468
16469 PR tree-optimization/78902
16470 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16471 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16472 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16473 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16474 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16475 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16476 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16477 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16478 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16479 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16480 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16481 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16482 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16483 New.
16484 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16485 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16486 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16487 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16488 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16489 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16490 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16491 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16492 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16493 warn_unused_result attribute.
16494 (BUILT_IN_STRDUP): Likewise.
16495 (BUILT_IN_STRNDUP): Likewise.
16496 (BUILT_IN_ALLOCA): Likewise.
16497 (BUILT_IN_CALLOC): Likewise.
16498 (BUILT_IN_MALLOC): Likewise.
16499 (BUILT_IN_REALLOC): Likewise.
16500
16501 2019-06-06 Jim Wilson <jimw@sifive.com>
16502
16503 PR target/89955
16504 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16505 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16506 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16507
16508 2019-06-06 Martin Sebor <msebor@redhat.com>
16509
16510 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16511 (handle_builtin_malloc): Remove trailing spaces.
16512 (handle_builtin_memset): Same.
16513 (handle_builtin_memcmp): Same.
16514 (compute_string_length): Same.
16515 (determine_min_objsize): Same.
16516 (handle_builtin_string_cmp): Same.
16517 (handle_char_store): Same. Break up excessively long line.
16518
16519 2019-06-06 Martin Jambor <mjambor@suse.cz>
16520
16521 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16522 check.
16523
16524 2019-06-06 Martin Jambor <mjambor@suse.cz>
16525
16526 * tree-sra.c (struct access): New field grp_same_access_path.
16527 (dump_access): Dump it.
16528 (build_reconstructed_reference): New function.
16529 (build_ref_for_model): Use it if possible.
16530 (path_comparable_for_same_access): New function.
16531 (same_access_path_p): Likewise.
16532 (sort_and_splice_var_accesses): Set the new flag.
16533 (analyze_access_subtree): Likewise.
16534 (propagate_subaccesses_across_link): Propagate zero value of the new
16535 flag down the access tree.
16536
16537 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16538
16539 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16540 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16541 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16542 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16543 Add gfx906.
16544
16545 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16546
16547 PR tree-optimization/90332
16548 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16549 Handle VALS containing two vectors.
16550 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16551 to...
16552 (@aarch64_combinez<mode>): ... This.
16553 (*aarch64_combinez_be<mode>): Rename to...
16554 (@aarch64_combinez_be<mode>): ... This.
16555 (vec_init<mode><Vhalf>): New define_expand.
16556 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16557
16558 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16559
16560 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16561 library functions only when not optimizing for size.
16562 (ashlsi3): Likewise.
16563 (ashrhi3): Likewise.
16564 (ashrsi3): Likewise.
16565 (lshrhi3): Likewise.
16566 (lshrsi3): Likewise.
16567
16568 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16569
16570 PR rtl-optimization/88751
16571 * ira.c (ira): Use the number of the actually referenced registers
16572 when calculating the threshold.
16573
16574 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16575
16576 * configure: Regenerate.
16577
16578 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16579
16580 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16581 register if it is in memory, so the shift can be emulated with a rotate
16582 instruction.
16583 (ashrhi3): Likewise.
16584 (lshrhi3): Likewise.
16585
16586 2019-06-06 Martin Liska <mliska@suse.cz>
16587
16588 PR tree-optimization/87954
16589 * match.pd: Simplify mult where both arguments are 0 or 1.
16590
16591 2019-06-06 Richard Biener <rguenther@suse.de>
16592
16593 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16594 put equivalences on UNDEFINED ranges.
16595 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16596 Make sure to drop defs of stmts added during simplification
16597 to VARYING.
16598
16599 2019-06-06 Richard Biener <rguenther@suse.de>
16600
16601 * tree-ssa-structalias.c: Include tree-cfg.h.
16602 (make_heapvar): Do not make heap vars artificial.
16603 (find_func_aliases_for_builtin_call): Handle stack allocation
16604 functions.
16605 (find_func_aliases): Delay processing of simple enough returns
16606 in non-IPA mode.
16607 (set_uids_in_ptset): Adjust.
16608 (find_what_var_points_to): Likewise.
16609 (solve_constraints): Do not dump points-to sets here.
16610 (compute_points_to_sets): Post-process return statements,
16611 amending the escaped solution. Dump points-to sets afterwards.
16612 (ipa_pta_execute): Dump points-to sets.
16613
16614 2019-06-06 Martin Liska <mliska@suse.cz>
16615
16616 PR web/87933
16617 * doc/install.texi: Fix HTML headers and
16618 titles for 'Installing GCC' pages.
16619
16620 2019-06-06 Martin Liska <mliska@suse.cz>
16621
16622 * ipa-icf-gimple.h (dump_message_1): Remove.
16623 (dump_message): Likewise.
16624 (return_false_with_message_1): Print also file.
16625 (return_false_with_msg): Likewise.
16626 (return_with_result): Likewise.
16627 (return_with_debug): Likewise.
16628 * ipa-icf.c (sem_function::equals_private): Remove call
16629 to dump_message.
16630
16631 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16632
16633 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16634 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16635 memory operand for it.
16636 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16637
16638 2019-06-05 Martin Sebor <msebor@redhat.com>
16639
16640 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16641 Adjust quoting and hyphenation.
16642 * convert.c (convert_to_real_1): Same.
16643 * gcc.c (driver_wrong_lang_callback): Same.
16644 (driver::handle_unrecognized_options): Same.
16645 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16646 * opts-common.c (cmdline_handle_error): Same.
16647 (read_cmdline_option): Same.
16648 * opts-global.c (complain_wrong_lang): Same.
16649 (print_ignored_options): Same.
16650 (handle_common_deferred_options): Same.
16651 * pretty-print.h: Same.
16652 * print-rtl.c (debug_bb_n_slim): Same.
16653 * sched-rgn.c (make_pass_sched_fusion): Same.
16654 * tree-cfg.c (verify_gimple_assign_unary): Same.
16655 (verify_gimple_label): Same.
16656 * tree-ssa-operands.c (verify_ssa_operands): Same.
16657 * varasm.c (do_assemble_alias): Same.
16658 (assemble_alias): Same.
16659
16660 2019-06-05 Richard Henderson <rth@twiddle.net>
16661
16662 * config/alpha/alpha.c (direct_return): Move down after
16663 struct machine_function definition; use saved frame_size;
16664 return bool.
16665 (struct machine_function): Add sa_mask, sa_size, frame_size.
16666 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16667 (alpha_compute_frame_layout): ... new function.
16668 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16669 (alpha_initial_elimination_offset): Use saved sa_size.
16670 (alpha_vms_initial_elimination_offset): Likewise.
16671 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16672 (alpha_expand_prologue): Use saved frame data. Merge integer
16673 and fp register save loops.
16674 (alpha_expand_epilogue): Likewise.
16675 (alpha_start_function): Use saved frame data.
16676 * config/alpha/alpha-protos.h (direct_return): Update.
16677 (alpha_sa_size): Remove.
16678
16679 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16680
16681 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16682 multiplication by a power-of-two value.
16683 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16684 and turn the modulo operation into a masking operation.
16685
16686 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16687
16688 PR debug/90733
16689 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16690 with VOIDmode inner operands.
16691
16692 2019-06-05 Richard Biener <rguenther@suse.de>
16693
16694 PR middle-end/90726
16695 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16696 turn an expression graph into a tree.
16697
16698 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16699
16700 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16701 member.
16702 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16703 treat it like explicit monotonic schedule modifier.
16704 (expand_omp_for): Initialize has_lastprivate_conditional.
16705 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16706 schedule modifier.
16707
16708 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16709 references, lookup in in hash map MEM_REF operand instead of the
16710 MEM_REF itself.
16711 (lower_omp_1): When looking for lastprivate conditional assignments,
16712 handle MEM_REFs with REFERENCE_TYPE operands.
16713
16714 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16715 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16716 and references a VLA. Handle references to non-VLAs if is_simd
16717 all privatization clauses like reductions.
16718 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16719 If omp_is_reference, use always omp simd arrays and set
16720 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16721 fails, emit reference initialization.
16722
16723 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16724
16725 PR target/89803
16726 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16727 _mm_mask_fpclass_sd_mask): New intrinsics.
16728 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16729 * config/i386/i386-builtin.def
16730 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16731 New builtins.
16732 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16733 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16734 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16735 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16736 case QI_FTYPE_V2SF_INT): Ditto.
16737 * config/i386/sse.md
16738 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16739 Extended to insnstructions with mask operands.
16740
16741 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16742
16743 * config/rs6000/constraints.md (define_register_constraint "wp"):
16744 Delete.
16745 (define_register_constraint "wq"): Delete.
16746 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16747 (rs6000_init_hard_regno_mode_ok): Adjust.
16748 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16749 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16750 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16751 (define_mode_attr VSa): Delete.
16752 (define_mode_attr VSisa): New.
16753 (rest of file): Adjust.
16754 * doc/md.texi (Machine Constraints): Adjust.
16755
16756 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16757
16758 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16759 (define_attr "enabled"): Handle those new isa values.
16760
16761 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16762
16763 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16764 (define_mode_attr VSr5): Delete.
16765 (define_mode_attr VStype_sqrt): Delete.
16766 (define_mode_iterator VSX_SPDP): Delete.
16767 (define_mode_attr VS_spdp_res): Delete.
16768 (define_mode_attr VS_spdp_insn): Delete.
16769 (define_mode_attr VS_spdp_type): Delete.
16770 (*vsx_sqrt<mode>2): Adjust.
16771 (vsx_<VS_spdp_insn>): Delete, split to...
16772 (vsx_xscvdpsp): ... this. New. And...
16773 (vsx_xvcvspdp): ... this. New. And...
16774 (vsx_xvcvdpsp): ... this. New.
16775
16776 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16777
16778 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16779 and V2DF.
16780 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16781 (rest of file): Adjust.
16782
16783 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16784
16785 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16786 (vsx_extract_<mode>_var): Ditto.
16787
16788 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16789
16790 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16791 with just "wa".
16792
16793 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16794
16795 * config/rs6000/constraints.md (define_register_constraint "ww"):
16796 Delete.
16797 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16798 (rs6000_init_hard_regno_mode_ok): Adjust.
16799 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16800 RS6000_CONSTRAINT_ww.
16801 * config/rs6000/rs6000.md: Adjust.
16802 * config/rs6000/vsx.md: Adjust.
16803 * doc/md.texi (Machine Constraints): Adjust.
16804
16805 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16806
16807 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16808 (define_mode_attr sd): New.
16809 (define_mode_attr s): New.
16810 (define_mode_attr Ftrad): Delete.
16811 (define_mode_attr Fvsx): Delete.
16812 (define_mode_attr Fs): Delete.
16813 (rest of file): Use the new mode attributes.
16814 * config.rs6000/vsx.md: Use the new mode attributes.
16815
16816 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16817
16818 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16819 with just "wa".
16820
16821 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16822
16823 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16824 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16825 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16826
16827 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16828
16829 PR target/78263
16830 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16831 C++ with strict ANSI requirements.
16832
16833 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16834
16835 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16836 computations when step is 1.
16837
16838 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16839
16840 * config/rs6000/constraints.md (define_register_constraint "wf"):
16841 Delete.
16842 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16843 (rs6000_init_hard_regno_mode_ok): Adjust.
16844 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16845 RS6000_CONSTRAINT_wf.
16846 * config/rs6000/rs6000.md: Adjust.
16847 * config/rs6000/vsx.md: Adjust.
16848 * doc/md.texi (Machine Constraints): Adjust.
16849
16850 2019-06-04 Andrew Pinski <apinski@marvell.com>
16851
16852 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16853 Fix ILP32 value.
16854
16855 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16856
16857 * config/rs6000/constraints.md (define_register_constraint "wd"):
16858 Delete.
16859 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16860 (rs6000_init_hard_regno_mode_ok): Adjust.
16861 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16862 RS6000_CONSTRAINT_wd.
16863 * config/rs6000/rs6000.md: Adjust.
16864 * config/rs6000/vsx.md: Adjust.
16865 * doc/md.texi (Machine Constraints): Adjust.
16866
16867 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16868
16869 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16870 (rest of file): Adjust.
16871
16872 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16873
16874 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16875 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16876 (vsx_splat_<mode>_reg): Adjust.
16877
16878 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16879
16880 * config/rs6000/constraints.md (define_register_constraint "ws"):
16881 Delete.
16882 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16883 (rs6000_init_hard_regno_mode_ok): Adjust.
16884 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16885 RS6000_CONSTRAINT_ws.
16886 * config/rs6000/rs6000.md: Adjust.
16887 * config/rs6000/vsx.md: Adjust.
16888 * doc/md.texi (Machine Constraints): Adjust.
16889
16890 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16891
16892 * config/rs6000/constraints.md (define_register_constraint "wv"):
16893 Delete.
16894 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16895 (rs6000_init_hard_regno_mode_ok): Adjust.
16896 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16897 RS6000_CONSTRAINT_wv.
16898 * config/rs6000/rs6000.md: Adjust.
16899 * config/rs6000/vsx.md: Adjust.
16900 * doc/md.texi (Machine Constraints): Adjust.
16901
16902 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16903
16904 * config/rs6000/constraints.md (define_register_constraint "wi"):
16905 Delete.
16906 (define_register_constraint "wt"): Delete.
16907 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16908 (rs6000_init_hard_regno_mode_ok): Adjust.
16909 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16910 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16911 * config/rs6000/rs6000.md: Adjust.
16912 * config/rs6000/vsx.md: Adjust.
16913 * doc/md.texi (Machine Constraints): Adjust.
16914
16915 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16916
16917 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16918 const.
16919 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16920 default_elf_asm_output_external.
16921
16922 2019-06-04 Martin Liska <mliska@suse.cz>
16923
16924 * ipa-icf.c (INCLUDE_LIST): Remove.
16925 (sem_item_optimizer::execute): Remove call to init_wpa.
16926 * ipa-icf.h (init_wpa): Remove.
16927
16928 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16929
16930 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16931 conditional on combined for simd.
16932 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16933 member.
16934 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16935 constructs, don't remove lastprivate_conditional_map, but instead set
16936 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16937 to parent construct temporaries.
16938 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16939 like !ctx->lastprivate_conditional_map.
16940 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16941 use up->outer context instead of up.
16942 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16943 gimple_omp_for_combined_p.
16944 (expand_omp_for_static_nochunk): Likewise.
16945 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16946 probably moved over into expand_omp_for_generic rather than being copied
16947 there.
16948
16949 2019-06-04 Martin Liska <mliska@suse.cz>
16950
16951 * value-prof.c (dump_histogram_value): Fix typo.
16952 (gimple_mod_subtract_transform): Likewise.
16953
16954 2019-06-04 Richard Biener <rguenther@suse.de>
16955
16956 PR middle-end/90726
16957 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16958 (tree_contains_chrecs): Likewise.
16959 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16960 exponential behaivor from ...
16961 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16962 ... here.
16963 (expression_expensive_p): Avoid exponential behavior and compute
16964 expanded size, rejecting any expansion.
16965 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16966 (idx_contains_abnormal_ssa_name_p): Likewise.
16967 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16968 (contains_abnormal_ssa_name_p): Simplify and use
16969 walk_tree_without_duplicates.
16970
16971 2019-06-04 Richard Biener <rguenther@suse.de>
16972
16973 PR tree-optimization/90738
16974 Revert
16975 2019-06-03 Richard Biener <rguenther@suse.de>
16976
16977 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16978 full reference tree and record in ref->ref.
16979 (vn_reference_lookup_3): Pass in original ref to
16980 ao_ref_init_from_vn_reference.
16981 (vn_reference_lookup): Likewise.
16982 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16983 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16984 Handle non-decl bases in the original reference.
16985
16986 2019-06-04 Martin Liska <mliska@suse.cz>
16987
16988 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16989 number of references.
16990 (sem_item_optimizer::do_congruence_step):
16991 (sem_item_optimizer::worklist_push): Dump how references
16992 a class has.
16993 (sem_item_optimizer::worklist_pop): Use heap.
16994 (sem_item_optimizer::process_cong_reduction): Likewise.
16995 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16996
16997 2019-06-04 Martin Liska <mliska@suse.cz>
16998
16999 * ipa-icf.h (struct sem_usage_pair_hash): New.
17000 (sem_usage_pair_hash::hash): Likewise.
17001 (sem_usage_pair_hash::equal): Likewise.
17002 (struct sem_usage_hash): Likewise.
17003 * ipa-icf.c (sem_item::sem_item): Initialize
17004 referenced_by_count.
17005 (sem_item::add_reference): Register a reference
17006 in ref_map and not in target->usages.
17007 (sem_item::setup): Remove initialization of
17008 dead vectors.
17009 (sem_item::~sem_item): Remove usage of dead vectors.
17010 (sem_item::dump): Remove dump of references.
17011 (sem_item_optimizer::sem_item_optimizer): Initialize
17012 m_references.
17013 (sem_item_optimizer::read_section): Remove useless
17014 dump.
17015 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
17016 (sem_item_optimizer::build_graph): Pass m_references
17017 to ::add_reference.
17018 (sem_item_optimizer::verify_classes): Remove usage of dead
17019 vectors.
17020 (sem_item_optimizer::traverse_congruence_split): Return true
17021 when a class is split.
17022 (sem_item_optimizer::do_congruence_step_for_index): Use
17023 hash_map for look up of (sem_item *, index). That brings
17024 significant speed up.
17025 (sem_item_optimizer::do_congruence_step): Return true
17026 when a split is done.
17027 (congruence_class::is_class_used): Use referenced_by_count.
17028
17029 2019-06-04 Alan Modra <amodra@gmail.com>
17030
17031 PR target/90689
17032 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
17033 error.
17034
17035 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17036
17037 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
17038 * config/rs6000/rs6000.c (direct_move_p): Adjust.
17039 (rs6000_secondary_reload_simple_move): Adjust.
17040 (rs6000_opt_masks): Neuter the "mfpgpr" option.
17041 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
17042 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
17043 comment.
17044 (power6x): Adjust.
17045 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
17046 (floatunssi<mode>2_lfiwzx): Adjust.
17047 (fix_trunc<mode>si2_stfiwx): Adjust.
17048 (fixuns_trunc<mode>si2_stfiwx): Adjust.
17049 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
17050 (mfpgpr): Mark as deprecated.
17051 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
17052 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
17053 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
17054
17055 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17056
17057 * config/rs6000/constraints.md (define_register_constraint "wg"):
17058 Delete.
17059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17060 RS6000_CONSTRAINT_wg.
17061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17062 (rs6000_init_hard_regno_mode_ok): Adjust.
17063 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
17064 Delete "wg" alternatives.
17065 * doc/md.texi (Machine Constraints): Adjust.
17066
17067 2019-06-03 Alan Modra <amodra@gmail.com>
17068
17069 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
17070 (get_uncond_jump_length): Assert length less than INT_MAX and
17071 non-negative.
17072
17073 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17074
17075 PR middle-end/64242
17076 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
17077 block.
17078 (expand_builtin_nonlocal_goto): Likewise.
17079
17080 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17081
17082 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
17083 (aarch64_asm_output_external): Declare.
17084 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17085 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17086 (aarch64_asm_output_alias): New.
17087 (aarch64_asm_output_external): New.
17088 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17089 (ASM_OUTPUT_EXTERNAL): Define.
17090
17091 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17092 * tree-vrp.h (value_range_base::nonzero_p): New.
17093 (value_range_base::set_nonnull): Rename to...
17094 (value_range_base::set_nonzero): ...this.
17095 (value_range_base::set_null): Rename to...
17096 (value_range_base::set_zero): ...this.
17097 (value_range::set_nonnull): Remove.
17098 (value_range::set_null): Remove.
17099 * tree-vrp.c (range_is_null): Remove.
17100 (range_is_nonnull): Remove.
17101 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17102 instead of range_is_*null.
17103 (extract_range_from_unary_expr): Same.
17104 (value_range_base::set_nonnull): Rename to...
17105 (value_range_base::set_nonzero): ...this.
17106 (value_range::set_nonnull): Remove.
17107 (value_range_base::set_null): Rename to...
17108 (value_range_base::set_zero): ...this.
17109 (value_range::set_null): Remove.
17110 (extract_range_from_binary_expr): Rename set_*null uses to
17111 set_*zero.
17112 (extract_range_from_unary_expr): Same.
17113 (union_helper): Same.
17114 * vr-values.c (get_value_range): Use set_*zero instead of
17115 set_*null.
17116 (vr_values::extract_range_from_binary_expr): Same.
17117 (vr_values::extract_range_basic): Same.
17118
17119 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17120
17121 PR driver/90684
17122 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17123
17124 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17125
17126 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17127 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17128 Rename to...
17129 (aarch64_<su>abd<mode>_3): ... This.
17130 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17131
17132 2019-06-03 Richard Biener <rguenther@suse.de>
17133
17134 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17135 full reference tree and record in ref->ref.
17136 (vn_reference_lookup_3): Pass in original ref to
17137 ao_ref_init_from_vn_reference.
17138 (vn_reference_lookup): Likewise.
17139 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17140 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17141 Handle non-decl bases in the original reference.
17142
17143 2019-06-03 Martin Liska <mliska@suse.cz>
17144
17145 * doc/generic.texi: Remove Java Trees.
17146
17147 2019-06-03 Martin Liska <mliska@suse.cz>
17148
17149 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17150 returns 0 when operands are equal.
17151
17152 2019-06-03 Richard Biener <rguenther@suse.de>
17153
17154 PR tree-optimization/90716
17155 * tree-loop-distribution.c (destroy_loop): Process blocks in
17156 correct order.
17157
17158 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17159
17160 PR target/88837
17161 * vector-builder.h (vector_builder::count_dups): New method.
17162 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17163 Declare prototype.
17164 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17165 (vec_init<mode><Vel>): New pattern.
17166 * config/aarch64/aarch64.c (emit_insr): New function.
17167 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17168 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17169 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17170 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17171
17172 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17173
17174 PR tree-optimization/90681
17175 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17176 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17177 special case for SLP, but fail on non-groupped loads.
17178
17179 2019-06-03 Martin Liska <mliska@suse.cz>
17180
17181 * cfg.c (debug): Use TDF_DETAILS for debug and
17182 print edge info only once.
17183
17184 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17185
17186 PR fortran/90539
17187 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17188
17189 2019-06-01 Martin Sebor <msebor@redhat.com>
17190
17191 PR middle-end/90694
17192 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17193
17194 2019-05-31 Jan Hubicka <jh@suse.cz>
17195
17196 * alias.c: Include ipa-utils.h.
17197 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17198 * ipa-devirt.c (prevailing_odr_type): New.
17199 * ipa-utils.h (previaling_odr_type): Declare.
17200
17201 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17202 Hongtao Liu <hongtao.liu@intel.com>
17203
17204 PR target/89355
17205 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17206 NOTE_INSN_DELETED_LABEL check.
17207
17208 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17209 Robert Suchanek <robert.suchanek@mips.com>
17210
17211 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17212 and 3rd operands of the fmadd/fmsub/maddv builtin.
17213
17214 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17215
17216 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17217 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17218 on OMP_SIMD if not nested inside of worksharing loop that also has
17219 lastprivate conditional clause for the same decl.
17220 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17221 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17222 on simd.
17223 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17224 on simd construct.
17225 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17226 on simd construct.
17227 (lower_lastprivate_clauses): Likewise.
17228 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17229 calling lower_rec_input_clauses.
17230 (lower_omp_for): Likewise.
17231 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17232 clause on simd construct.
17233 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17234 OMP_CLAUSE__CONDTEMP_ clause is present.
17235
17236 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17237 ivar and lvar.
17238
17239 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17240
17241 PR c/43673
17242 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17243 TEX_D32, TEX_D64 or TEX_D128.
17244
17245 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17246
17247 * match.pd (~(vec?cst1:cst2)): New transformation.
17248
17249 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17250
17251 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17252 ((size_t)(A /[ex] B) CMP C): New transformation.
17253
17254 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17255
17256 * doc/md.texi: Document define_insn_and_rewrite.
17257 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17258 * gensupport.c (queue_elem): Update comment.
17259 (replace_operands_with_dups): New function.
17260 (gen_rewrite_sequence): Likewise.
17261 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17262 * read-rtl.c (apply_subst_iterator): Likewise.
17263 (add_condition_to_rtx, named_rtx_p): Likewise.
17264 (rtx_reader::read_rtx_operand): Likewise.
17265 * config/aarch64/aarch64-sve.md
17266 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17267 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17268 define_insn_and_rewrite.
17269 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17270 Remove separate define_split.
17271
17272 2019-05-31 Jan Hubicka <jh@suse.cz>
17273
17274 * tree-ssa-alias.c (type_has_components_p): New function.
17275 (aliasing_component_refs_p): Use it.
17276
17277 2019-05-31 Martin Liska <mliska@suse.cz>
17278
17279 * gdbhooks.py: Add const_tree to TreePrinter.
17280
17281 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17282
17283 PR debug/86964
17284 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17285 * doc/invoke.texi (Debugging Options): Document new default of
17286 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17287
17288 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17289
17290 PR tree-optimization/90671
17291 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17292 template_block used to be empty on the first call, don't use
17293 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17294 seq with bb_seq and set it with set_bb_seq.
17295
17296 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17297
17298 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17299
17300 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17301 Michael Meissner <meissner@linux.ibm.com>
17302
17303 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17304 (prefixed_mem_operand): Likewise.
17305 (non_prefixed_mem_operand): Likewise.
17306 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17307 prototype.
17308 * config/rs6000/rs6000.c (print_operand_address): Handle
17309 PC-relative addresses.
17310 (mode_supports_prefixed_address_p): New function.
17311 (rs6000_prefixed_address): New function.
17312 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17313 (SYMBOL_REF_PCREL_P): Likewise.
17314
17315 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17316
17317 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17318 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17319 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17320 is nested inside of parallel region, add _condtemp_ clause to both.
17321 * tree-nested.c (convert_nonlocal_omp_clauses,
17322 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17323 assertion failure.
17324 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17325 member.
17326 * omp-general.c (omp_extract_for_data): Compute it.
17327 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17328 (lower_rec_input_clauses): Likewise.
17329 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17330 clause is already present, just add one further one after it.
17331 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17332 (lower_send_shared_vars): Clear _condtemp_ vars.
17333 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17334 or section or taskgroup.
17335 * omp-expand.c (determine_parallel_type): Disallow combining only if
17336 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17337 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17338 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17339 expand_omp_for_static_chunk, expand_omp_for): Use
17340 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17341 determine if a special set of API routines are needed and if condtemp
17342 needs to be initialized, while always initialize cond_var if
17343 fd->lastprivate_conditional is non-zero.
17344
17345 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17346 Michael Meissner <meissner@linux.ibm.com>
17347
17348 * config/rs6000/constraints.md (eI): New constraint.
17349 * config/rs6000/predicates.md (cint34_operand): New predicate.
17350 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17351 (SIGNED_34BIT_OFFSET_P): Likewise.
17352 * doc/md.texi (eI): Document constraint.
17353
17354 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17355
17356 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17357
17358 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17359 Michael Meissner <meissner@linux.ibm.com>
17360
17361 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17362 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17363 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17364 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17365 (OTHER_FUTURE_MASKS): Likewise.
17366 (POWERPC_MASKS): Likewise.
17367 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17368 specified without -mprefixed-addr or -mcpu=future. Error if
17369 -mprefixed-addr is specified without -mcpu=future.
17370 (rs6000_opt_masks): Add entry for prefixed-addr.
17371 * rs6000.opt (mprefixed-addr): New option.
17372
17373 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17374
17375 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17376 cfun->is_thunk check.
17377
17378 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17379
17380 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17381 to length.
17382
17383 2019-05-30 Martin Liska <mliska@suse.cz>
17384
17385 * gdbinit.in: Fix 'ptc' command. Add trt
17386 that prints TREE_TYPE($).
17387
17388 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17389 Alan Modra <amodra@gmail.com>
17390
17391 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17392 calls here...
17393 (rs6000_indirect_call_template_1): ...and here.
17394 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17395 plt16_ha, plt16_lo, mtctr indirect calls. Use
17396 rs6000_pltseq_enum.
17397 (rs6000_decl_ok_for_sibcall): New function.
17398 (rs6000_function_ok_for_sibcall): Refactor.
17399 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17400 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17401 when pcrel. Reorganize.
17402 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17403 * rs6000.h (rs6000_pltseq_enum): New enum.
17404 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17405 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17406 (*pltseq_plt16_ha): Likewise.
17407 (*pltseq_plt16_lo): Likewise.
17408 (*pltseq_mtctr): Likewise.
17409 (*pltseq_plt_pcrel): New insn.
17410 (*call_local_aix): Handle @notoc calls.
17411 (*call_value_local_aix): Likewise.
17412 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17413 (*call_value_nonlocal_aix): Likewise.
17414 (*call_indirect_pcrel): New insn.
17415 (*call_value_indirect_pcrel): Likewise.
17416
17417 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17418
17419 * config/i386/sse.md (*save_multiple<mode>): Rename from
17420 save_multiple<mode>.
17421 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17422 (*restore_multiple_and_return<mode>): Rename from
17423 restore_multiple_and_return<mode>.
17424 (*restore_multiple_leave_return<mode>): Rename from
17425 restore_multiple_leave_return<mode>.
17426
17427 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17428
17429 * config.gcc (rx-*-linux*): New target.
17430 * config/rx/elf.opt: New file.
17431 * config/rx/linux.h: Likewise.
17432 * config/rx/t-linux: Likewise.
17433 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17434 make it zero.
17435 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17436 (ASM_APP_OFF): Likewise.
17437 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17438 moved elsewhere.
17439
17440 2019-05-29 Jan Hubicka <jh@suse.cz>
17441
17442 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17443 variants are pointer equivalent.
17444
17445 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17446
17447 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17448 * config/aarch64/aarch64-sve2.md: New file.
17449 (<u>avg<mode>3_floor): New pattern.
17450 (<u>avg<mode>3_ceil): Likewise.
17451 (*<sur>h<addsub><mode>): Likewise.
17452 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17453 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17454
17455 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17456
17457 PR bootstrap/90543
17458 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17459 for var_opt_string printing. In cl_optimization_print_diff, print
17460 (null) instead of invoking undefined behavior if one of the
17461 var_opt_string pointers is NULL and use && instead of first || in the
17462 guarding condition. For var_target_other options, handle const char *
17463 target variables similarly to const char * optimize node variables.
17464
17465 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17466
17467 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17468 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17469 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17470 Add autib1716 and pacib1716 initialisation.
17471 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17472 for autib1716 and pacib1716.
17473 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17474 aarch64_post_cfi_startproc): Define.
17475 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17476 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17477 aarch64_handle_pac_ret_protection): Set default sign key to A.
17478 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17479 aarch64_expand_prologue): Add check for b-key.
17480 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17481 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17482 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17483 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17484 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17485 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17486 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17487 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17488 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17489 pauth_hint_num_a with pauth_hint_num.
17490 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17491 pauth_hint_num_a with pauth_hint_num.
17492 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17493 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17494 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17495 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17496 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17497 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17498 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17499 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17500 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17501 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17502 UNSPEC_AUTIA1716 respectively.
17503 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17504 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17505 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17506 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17507 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17508 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17509
17510 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17511
17512 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17513 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17514 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17515 explicit clause on combined parallel into implicit shared clause.
17516 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17517 and firstprivate if the decl has one too from combined parallel to
17518 the worksharing construct.
17519
17520 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17521 Michael Meissner <meissner@linux.ibm.com>
17522
17523 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17524
17525 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17526
17527 * rtl.h (LABEL_REF_P): New #define.
17528
17529 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17530
17531 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17532
17533 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17534
17535 * internal-fn.c: Marked mask_load_direct as vectorizable.
17536 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17537 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17538 combined even if masks different with allow_slp_p param.
17539 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17540 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17541 dissolve SLP-only vectorizable groups when SLP has been discarded.
17542 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17543 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17544 masks.
17545 (vect_build_slp_tree_1): Fixed comment typo.
17546 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17547 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17548 loads for SLP only.
17549 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17550 vectorizable.
17551 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17552
17553 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17554
17555 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17556 Remove obsolete use_thunk reference.
17557 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17558 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17559 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17560 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17561 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17562 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17563 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17564 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17565 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17566
17567 2019-05-28 Nathan Sidwell <nathan@acm.org>
17568
17569 * tree.h (IDENTIFIER_ANON_P): New.
17570 (anon_aggrname_format, anon_aggname_p): Don't declare.
17571 (make_anon_name): Declare.
17572 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17573 (hash_tree): Likewise.
17574 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17575 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17576 (anon_cnt, make_anon_name): New.
17577
17578 2019-05-28 Martin Liska <mliska@suse.cz>
17579
17580 PR other/90315
17581 * opts-global.c (decode_options): Print help for all
17582 help_option_arguments.
17583 * opts.c (print_help): Add new argument.
17584 (common_handle_option): Remember all values into
17585 help_option_arguments.
17586 * opts.h (print_help): Add new argument.
17587
17588 2019-05-28 Martin Liska <mliska@suse.cz>
17589
17590 PR ipa/90555
17591 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17592 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17593 (func_checker::compare_bb): Call compare_loops.
17594
17595 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17596
17597 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17598 on sections construct.
17599 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17600 construct.
17601 (lower_omp_sections): Handle lastprivate conditional.
17602 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17603 lastprivate_conditional_map.
17604 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17605
17606 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17607 critical, taskgroup and section regions when looking for a region
17608 with non-NULL lastprivate_conditional_map.
17609
17610 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17611
17612 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17613 (*ix86_gen_sub3): Ditto.
17614 (*ix86_gen_sub3_carry): Ditto.
17615 (*ix86_gen_one_cmpl2): Ditto.
17616 (*ix86_gen_andsp): Ditto.
17617 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17618 (gen_and2_insn): New static function.
17619 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17620 Use gen_add3_insn instead of ix86_gen_add3.
17621 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17622 instead of ix86_gen_add3.
17623 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17624 Use gen_sub3_insn instead of ix86_gen_sub3.
17625 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17626 instead of ix86_gen_add3.
17627 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17628 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17629 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17630 * config/i386/i386-options.c (ix86_option_override_internal):
17631 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17632 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17633
17634 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17635
17636 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17637 and DW_OP_GNU_const_index opcodes.
17638
17639 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17640
17641 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17642
17643 2019-05-27 Richard Biener <rguenther@suse.de>
17644
17645 PR tree-optimization/90637
17646 * tree-ssa-sink.c (statement_sink_location): Honor the
17647 computed sink location for single-uses.
17648
17649 2019-05-27 Richard Biener <rguenther@suse.de>
17650
17651 PR middle-end/90610
17652 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17653 a bit-insert.
17654
17655 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17656
17657 * config/i386/i386.md (@sub<mode>3_carry): Rename
17658 from sub<mode>3_carry.
17659 (@leave_<mode>): New expander.
17660 (*leave): Rename from leave.
17661 (*leave_rex64): Rename from leave_rex64.
17662 (@monitorx_<mode>): Rename from monitorx_<mode>.
17663 (@clzero_<mode>): Rename from clzero_<mode>.
17664 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17665 from sse3_monitor_<mode>.
17666 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17667 (*ix86_gen_leave): Ditto.
17668 (*ix86_gen_monitor): Ditto.
17669 (*ix86_gen_monitorx): Ditto.
17670 (*ix86_gen_clzero): Ditto.
17671 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17672 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17673 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17674 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17675 Use gen_sse3_monitor instead of ix86_gen_monitor.
17676 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17677 instead of ix86_gen_monitorx.
17678 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17679 instead of ix86_gen_clzero.
17680 * config/i386/i386-options.c (ix86_option_override_internal):
17681 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17682 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17683
17684 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17685
17686 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17687 Rename from tls_global_dynamic_64_<mode>.
17688 (@tls_local_dynamic_base_64_<mode>): Rename from
17689 tls_local_dynamic_base_64_<mode>.
17690 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17691 Remove indirect function.
17692 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17693 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17694 instead of ix86_gen_tls_global_dynamic_64.
17695 Use gen_tls_local_dynamic_base_64 instead of
17696 ix86_gen_tls_local_dynamic_base_64.
17697 * config/i386/i386-options.c (ix86_option_override_internal):
17698 Do not initialize ix86_gen_tls_global_dynamic_64 and
17699 ix86_gen_tls_local_dynamic_base_64.
17700
17701 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17702
17703 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17704 Rename from pro_epilogue_adjust_stack_<mode>_add.
17705 (@pro_epilogue_adjust_stack_sub_<mode>)
17706 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17707 (@allocate_stack_worker_probe_<mode>):
17708 Rename from allocate_stack_worker_probe_<mode>.
17709 (allocate_stack): Use gen_allocate_stack_worker_probe.
17710 (probe_stack): Use gen_probe_stack_1.
17711 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17712 (@adjust_stack_and_probe_<mode>): Rename from
17713 adjust_stack_and_probe<mode>.
17714 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17715 (stack_protect_set): Use gen_stack_protect_set_1.
17716 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17717 (stack_protect_test): Use gen_stack_protect_test_1.
17718 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17719 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17720 Remove indirect function.
17721 (*ix86_gen_adjust_stack_and_probe): Ditto.
17722 (*ix86_gen_probe_stack_range): Ditto.
17723 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17724 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17725 (ix86_adjust_stack_and_probe_stack_clash): Use
17726 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17727 (ix86_adjust_stack_and_probe): Ditto.
17728 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17729 of ix86_gen_probe_stack_range.
17730 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17731 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17732 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17733 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17734 CODE_FOR_stack_protect_test_{si,di}.
17735 * config/i386/i386-options.c (ix86_option_override_internal):
17736 Do not initialize ix86_gen_allocate_stack_worker,
17737 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17738
17739 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17740
17741 * doc/invoke.texi (Link Options): Many editorial changes around
17742 -flinker-output.
17743
17744 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17745
17746 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17747 pre-Solaris 11 referene and most Studio compiler details.
17748
17749 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17750
17751 PR target/90530
17752 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17753 DImode to SImode in floating-point registers on 64-bit target.
17754 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17755 register_operand in xmpyu patterns.
17756
17757 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17758
17759 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17760 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17761 OMP_CLAUSE__REDUCTEMP_.
17762 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17763 OMP_CLAUSE__CONDTEMP_.
17764 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17765 * tree-pretty-print.c (dump_omp_clause): Likewise.
17766 * tree-nested.c (convert_nonlocal_omp_clauses,
17767 convert_local_omp_clauses): Likewise.
17768 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17769 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17770 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17771 on OMP_FOR.
17772 (gimplify_omp_for): Warn and disable conditional modifier from
17773 lastprivate on loop iterators.
17774 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17775 member.
17776 * omp-general.c (omp_extract_for_data): Initialize it.
17777 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17778 member.
17779 (delete_omp_context): Delete it.
17780 (lower_lastprivate_conditional_clauses): New function.
17781 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17782 handle lastprivate conditional clauses.
17783 (lower_reduction_clauses): Add CLIST argument, emit it into
17784 the critical section if any.
17785 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17786 lower_reduction_clauses callers.
17787 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17788 to lower_lastprivate_clauses.
17789 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17790 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17791 clist into a critical section if not emitted there already by
17792 lower_reduction_clauses.
17793 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17794 callers.
17795 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17796 conditional variables.
17797 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17798 clause is present.
17799 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17800 expand_omp_for_static_chunk): Handle lastprivate conditional.
17801 (expand_omp_for): Handle fd.lastprivate_conditional like
17802 fd.have_reductemp.
17803
17804 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17805
17806 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17807 kernel does not exit cleanly.
17808 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17809
17810 2019-05-24 Jason Merrill <jason@redhat.com>
17811
17812 Revert:
17813 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17814
17815 2019-05-24 Richard Biener <rguenther@suse.de>
17816
17817 PR testsuite/90607
17818 * tree-loop-distribution.c (struct partition): Add location
17819 member.
17820 (partition_alloc): Initialize all fields.
17821 (generate_memset_builtin): Use the location recorded in the
17822 partition for the generated call.
17823 (generate_memcpy_builtin): Likewise.
17824 (classify_partition): Record the location of a single store
17825 as location for the partition.
17826
17827 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17828
17829 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17830 for lo-part.
17831
17832 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17833
17834 PR target/90588
17835 * common/config/aarch64/aarch64-common.c
17836 (aarch64_rewrite_selected_cpu): Change local temporary variable
17837 type from unsigned long to uint64_t.
17838 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17839 aarch64_get_extension_string_for_isa_flags): Change declaration to
17840 match new definition by replacing unsigned long with uint64_t.
17841
17842 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17843
17844 PR target/90568
17845 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17846 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17847 Handle stack_protect_test_<mode> codegen similarly to corresponding
17848 sub instruction.
17849
17850 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17851
17852 * config/i386/darwin.h: Reject -mfentry*.
17853 * doc/sourcebuild.texi: Document mfentry target support.
17854
17855 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17856
17857 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17858 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17859 false for PC-relative functions.
17860 (rs6000_output_function_prologue): Change called function name to
17861 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17862 name,1" for PC-relative functions.
17863 (rs6000_elf_declare_function_name): Change called function name to
17864 rs6000_global_entry_point_prologue_needed_p.
17865
17866 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17867
17868 PR target/90552
17869 * config/i386/i386.c (gen_rtx_cost):
17870 Use ix86_tune_cost instead of ix86_cost.
17871
17872 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17873 Michael Meissner <meissner@linux.ibm.com>
17874 Segher Boessenkool <segher@kernel.crashing.org>
17875
17876 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17877 OPTION_MASK_PCREL.
17878 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17879 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17880 (rs6000_fndecl_pcrel_p): Likewise.
17881 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17882 error if -mpcrel is requested without -mcpu=future.
17883 (rs6000_opt_masks): Add entry for pcrel.
17884 (rs6000_fndecl_pcrel_p): New function.
17885 (rs6000_pcrel_p): Likewise.
17886 * config/rs6000/rs6000.opt (mpcrel): New option.
17887 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17888
17889 2019-05-23 Jan Hubicka <jh@suse.cz>
17890 Martin Liska <mliska@suse.cz>
17891
17892 PR tree-optimization/90576
17893 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17894 poly_int_tree_p.
17895 (aliasing_component_refs_p): Fix three way size compare conditional;
17896 give up earlier in case we can not decide on equivalence.
17897
17898 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17899 Michael Meissner <meissner@linux.ibm.com>
17900 Segher Boessenkool <segher@kernel.crashing.org>
17901
17902 * config.gcc: Add future cpu.
17903 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17904 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17905 #define.
17906 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17907 (RS6000_CPU): New instantiation for future cpu.
17908 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17909 PROCESSOR_FUTURE.
17910 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17911 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17912 * config/rs6000/rs6000-tables.opt: Regenerate.
17913 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17914 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17915 (rs6000_machine_from_flags): Handle future cpu.
17916 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17917 PROCESSOR_POWER9 for now.
17918 (rs6000_adjust_cost): Likewise.
17919 (rs6000_issue_rate): Likewise.
17920 (rs6000_register_move_cost): Likewise.
17921 (rs6000_opt_masks): Add entry for future.
17922 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17923 (MASK_FUTURE): New #define.
17924 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17925 * config/rs6000/rs6000.opt (mfuture): New target option.
17926 * doc/invoke.texi (mcpu): Add future cpu.
17927
17928 2019-05-23 Martin Liska <mliska@suse.cz>
17929
17930 PR c++/90587
17931 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17932 operation points to a temporary (pointed via tree_to_wide_ref)
17933 that is out of scope after the &.
17934
17935 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17936
17937 PR c++/90592
17938 * doc/extend.texi (Function Names): Add missing word.
17939
17940 2019-05-23 Richard Biener <rguenther@suse.de>
17941
17942 PR tree-optimization/88440
17943 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17944 at -O[2s]+.
17945 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17946 generated call.
17947 (generate_memcpy_builtin): Likewise.
17948 (distribute_loop): Pass in whether to only distribute patterns.
17949 (prepare_perfect_loop_nest): Also allow size optimization.
17950 (pass_loop_distribution::execute): When optimizing a loop
17951 nest for size allow pattern replacement.
17952
17953 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17954
17955 PR target/90568
17956 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17957 of xor.
17958
17959 2019-05-23 Martin Liska <mliska@suse.cz>
17960
17961 PR sanitizer/90570
17962 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17963 expression similarly to gimplify_decl_expr.
17964
17965 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17966
17967 * cse.c (cse_dump_path): s/dump_file/f.
17968
17969 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17970
17971 PR c++/90462
17972 * diagnostic-format-json.cc: Include "selftest.h".
17973 (json_from_expanded_location): Only add "file" key for non-NULL
17974 file strings.
17975 (json_from_location_range): Don't add "start" and "finish"
17976 children if they are UNKNOWN_LOCATION.
17977 (selftest::test_unknown_location): New selftest.
17978 (selftest::test_bad_endpoints): New selftest.
17979 (selftest::diagnostic_format_json_cc_tests): New function.
17980 * json.cc (json::object::get): New function.
17981 (selftest::test_object_get): New selftest.
17982 (selftest::json_cc_tests): Call it.
17983 * json.h (json::object::get): New decl.
17984 * selftest-run-tests.c (selftest::run_tests): Call
17985 selftest::diagnostic_format_json_cc_tests.
17986 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17987 decl.
17988
17989 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17990 Andrew Stubbs <amd@codesourcery.com>
17991
17992 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17993 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17994 (kernel): Rename to...
17995 (main_kernel): ... this.
17996 (load_image): Load _init_array and _fini_array kernels.
17997 (run): Add argument for kernel to run.
17998 (main): Run init_array_kernel before main_kernel, and
17999 fini_array_kernel after.
18000 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
18001 amdgpu_hsa_kernel attribute on functions.
18002 (gcn_disable_constructors): Delete.
18003 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
18004 * config/gcn/crt0.c (size_t): Define.
18005 (_init_array, _fini_array): New.
18006 (__preinit_array_start, __preinit_array_end,
18007 __init_array_start, __init_array_end,
18008 __fini_array_start, __fini_array_end): Declare weak references.
18009
18010 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
18011
18012 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
18013
18014 2019-05-22 Jason Merrill <jason@redhat.com>
18015
18016 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18017
18018 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
18019
18020 PR target/88483
18021 * config/i386/i386-options.c (ix86_init_machine_status): Set
18022 stack_frame_required to true.
18023 * config/i386/i386.c (ix86_get_frame_size): New function.
18024 (ix86_frame_pointer_required): Replace get_frame_size with
18025 ix86_get_frame_size.
18026 (ix86_compute_frame_layout): Likewise.
18027 (ix86_find_max_used_stack_alignment): Changed to void. Set
18028 stack_frame_required.
18029 (ix86_finalize_stack_frame_flags): Always call
18030 ix86_find_max_used_stack_alignment. Replace get_frame_size with
18031 ix86_get_frame_size.
18032 * config/i386/i386.h (machine_function): Add stack_frame_required.
18033
18034 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
18035
18036 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
18037
18038 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
18039
18040 * common/config/aarch64/aarch64-common.c
18041 (struct aarch64_option_extension, struct processor_name_to_arch,
18042 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
18043 aarch64_contains_opt,
18044 aarch64_get_extension_string_for_isa_flags): Change type of
18045 variables storing flags to uint64_t.
18046 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
18047 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
18048 * config/aarch64/aarch64.c (struct processor,
18049 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
18050 aarch64_validate_march, aarch64_override_options,
18051 aarch64_option_print, aarch64_handle_attr_isa_flags,
18052 aarch64_declare_function_name, aarch64_start_file): Make flag
18053 variables uint64_t.
18054 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
18055 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
18056 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
18057 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
18058 * config/aarch64/driver-aarch64.c
18059 (struct aarch64_arch_extension, struct aarch64_core_data,
18060 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
18061 flag variables uint64_t.
18062 * doc/invoke.texi: Add documentation for new arguments.
18063
18064 2019-05-22 Richard Biener <rguenther@suse.de>
18065
18066 * alias.c (ao_ref_from_mem): Move stack-slot sharing
18067 rewrite ...
18068 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
18069
18070 2019-05-22 Martin Liska <mliska@suse.cz>
18071
18072 PR lto/90500
18073 * doc/extend.texi: Document the change.
18074
18075 2019-05-22 Richard Biener <rguenther@suse.de>
18076
18077 PR tree-optimization/90450
18078 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
18079 (mem_ref_hasher::equal): Check it.
18080 (mem_ref_alloc): Initialize it.
18081 (gather_mem_refs_stmt): Set it.
18082
18083 2019-05-22 Richard Biener <rguenther@suse.de>
18084
18085 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18086 Add ABS_EXPR.
18087 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18088 as ABSU_EXPR.
18089
18090 2019-05-22 Alan Modra <amodra@gmail.com>
18091
18092 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18093 (ASM_CPU_SPEC): Conditionally add -many.
18094 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18095 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18096 (rs6000_file_start): ..extracted from here, and modified to
18097 test all ISA bits.
18098 (rs6000_output_function_prologue): Emit .machine as necessary.
18099
18100 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18101
18102 PR middle-end/90553
18103 * ira-lives.c (process_bb_node_lives): Consider defs
18104 for a call insn to be die before the call, not after.
18105
18106 * function.c (assign_parm_setup_block): Raise alignment of
18107 stacked parameter only for STRICT_ALIGNMENT targets.
18108
18109 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18110
18111 * config/rs6000/constraints.md (define_register_constraint "wz"):
18112 Delete.
18113 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18114 RS6000_CONSTRAINT_wz.
18115 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18116 (rs6000_init_hard_regno_mode_ok): Adjust.
18117 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18118 * doc/md.texi (Machine Constraints): Adjust.
18119
18120 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18121
18122 * config/rs6000/constraints.md (define_register_constraint "wl"):
18123 Delete.
18124 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18125 RS6000_CONSTRAINT_wl.
18126 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18127 (rs6000_init_hard_regno_mode_ok): Adjust.
18128 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18129 * doc/md.texi (Machine Constraints): Adjust.
18130
18131 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18132
18133 * config/rs6000/constraints.md (define_register_constraint "wm"):
18134 Delete.
18135 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18136 RS6000_CONSTRAINT_wm.
18137 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18138 (rs6000_init_hard_regno_mode_ok): Adjust.
18139 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18140 * doc/md.texi (Machine Constraints): Adjust.
18141
18142 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18143
18144 * config/rs6000/constraints.md (define_register_constraint "wk"):
18145 Delete.
18146 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18147 RS6000_CONSTRAINT_wk.
18148 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18149 (rs6000_init_hard_regno_mode_ok): Adjust.
18150 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18151 * doc/md.texi (Machine Constraints): Adjust.
18152
18153 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18154
18155 * config/rs6000/constraints.md (define_register_constraint "wj"):
18156 Delete.
18157 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18158 RS6000_CONSTRAINT_wj.
18159 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18160 (rs6000_init_hard_regno_mode_ok): Adjust.
18161 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18162 (VS_64dm): Delete.
18163 * config/rs6000/vsx.md: Ditto.
18164 * doc/md.texi (Machine Constraints): Adjust.
18165
18166 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18167
18168 * config/rs6000/constraints.md (define_register_constraint "wh"):
18169 Delete.
18170 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18171 RS6000_CONSTRAINT_wh.
18172 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18173 (rs6000_init_hard_regno_mode_ok): Adjust.
18174 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18175 * doc/md.texi (Machine Constraints): Adjust.
18176
18177 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18178
18179 PR target/90547
18180 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18181 Avoid calling gen_lowpart with CONST operand.
18182
18183 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18184
18185 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18186 field template_last_to_copy.
18187 (ssa_create_duplicates): Set it, and use it. Attempt to
18188 preserve more debug stmts.
18189
18190 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18191
18192 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18193 (signbit<mode>2): New expander
18194
18195 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18196
18197 PR bootstrap/87338
18198 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18199 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18200
18201 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18202
18203 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18204 %ebx and %ecx bafore calling cpuid with leaf 1 or
18205 non-constant leaf argument.
18206
18207 2019-05-21 Alan Modra <amodra@gmail.com>
18208
18209 PR target/90545
18210 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18211 power9 direct move cost.
18212
18213 2019-05-21 Richard Biener <rguenther@suse.de>
18214
18215 PR middle-end/90510
18216 * fold-const.c (fold_read_from_vector): New function.
18217 * fold-const.h (fold_read_from_vector): Declare.
18218 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18219 single-element insert permutations. Canonicalize selector
18220 further and fix issue with last commit.
18221
18222 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18223
18224 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18225 parameter with default value false to declaration.
18226 (split_edges_for_insertion): New inline function. Wrapper for
18227 split_critical_edges with for_edge_insertion_p = true.
18228 * tree-cfg.c (split_critical_edges): Don't split non-critical
18229 edges if for_edge_insertion_p is false. Fix whitespace.
18230 * tree-ssa-pre.c (pass_pre::execute): Call
18231 split_edges_for_insertion instead of split_critical_edges.
18232 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18233 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18234 (pass_data_sink_code): Update function name in the comment.
18235
18236 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18237
18238 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18239 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18240 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18241 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18242 positives.
18243
18244 2019-05-21 Martin Liska <mliska@suse.cz>
18245
18246 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18247 an extra newline.
18248 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18249 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18250 vec_lvsr.
18251 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18252 Quote a C type.
18253 (rs6000_function_arg): Likewise.
18254 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18255 (rs6000_expand_ternop_builtin): Use interval syntax.
18256 (get_element_number): Likewise.
18257 (altivec_expand_builtin): Likewise.
18258 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18259
18260 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18261
18262 PR c++/59813
18263 PR target/90418
18264 * function.h (struct function): Add calls_eh_return member.
18265 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18266 gimplifying __builtin_eh_return call.
18267 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18268 to cfun.
18269 (expand_call_inline): Or in src_cfun->calls_eh_return into
18270 dst_cfun->calls_eh_return.
18271 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18272 cfun->calls_eh_return.
18273 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18274 * lto-streamer-out.c (output_struct_function_base): Write
18275 calls_eh_return.
18276
18277 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18278
18279 PR rtl-optimization/43147
18280 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18281 IX86_BUILTIN_SHUFPD.
18282
18283 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18284
18285 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18286 (refs_may_alias_p_1): ... here; update stats.
18287 (refs_may_alias_p): Do not update stats here.
18288
18289 2019-05-20 Richard Biener <rguenther@suse.de>
18290
18291 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18292 doesn't produce pointers.
18293 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18294 the first operand points to.
18295
18296 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18297
18298 * tree-ssa-alias.c (compare_sizes): New function.
18299 (sompare_type_sizes): New function
18300 (aliasing_component_refs_p): Use it.
18301 (indirect_ref_may_alias_decl_p): Likewise.
18302
18303 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18304
18305 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18306
18307 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18308
18309 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18310 (LIBLSAN_EARLY_SPEC): Likewise.
18311 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18312
18313 2019-05-20 Martin Liska <mliska@suse.cz>
18314
18315 * config/i386/i386.c (ix86_libc_has_fast_function):
18316 Add ATTRIBUTE_UNUSED for the argument.
18317
18318 2019-05-20 Richard Biener <rguenther@suse.de>
18319
18320 * gimple-match-head.c: Include vec-perm-indices.h.
18321 * generic-match-head.c: Likewise.
18322 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18323 is included.
18324 * fold-const.c (fold_vec_perm): Export.
18325 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18326 (match.pd): ...here.
18327
18328 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18329
18330 * cfgloop.h (struct loop): Add simdlen member.
18331 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18332 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18333 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18334 as new argument to autovectorize_vector_sizes target hook. If
18335 loop->simdlen, pick up vector size where the vectorization factor
18336 is equal to loop->simd, and if there is none, fall back to the first
18337 successful one.
18338 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18339 caller.
18340 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18341 * omp-general.c (omp_max_vf): Likewise.
18342 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18343 * tree-vect-slp.c (vect_slp_bb): Likewise.
18344 * target.def (autovectorize_vector_sizes): Add ALL argument and
18345 document it.
18346 * doc/tm.texi: Adjust documentation.
18347 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18348 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18349 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18350 bool argument.
18351 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18352 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18353 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18354 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18355 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18356 preferred vector size is not 512-bit or 256-bit, just put those
18357 unpreferred ones last.
18358
18359 2019-05-20 Martin Liska <mliska@suse.cz>
18360
18361 * targhooks.c (default_libc_has_fast_function): New function.
18362 * targhooks.h (default_libc_has_fast_function): Likewise.
18363
18364 2019-05-20 Martin Liska <mliska@suse.cz>
18365
18366 PR middle-end/90263
18367 * builtins.c (expand_builtin_memory_copy_args): When having a
18368 target with fast mempcpy implementation do now use memcpy.
18369 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18370 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18371 * doc/tm.texi: Likewise.
18372 * doc/tm.texi.in: Likewise.
18373 * target.def:
18374 * expr.c (emit_block_move_hints): Add 2 new arguments.
18375 * expr.h (emit_block_move_hints): Bail out when libcall
18376 to memcpy would be used.
18377
18378 2019-05-20 Martin Liska <mliska@suse.cz>
18379
18380 * profile-count.c: Add vertical spacing in order
18381 to separate functions.
18382 * profile-count.h: Likewise.
18383
18384 2019-05-20 Martin Liska <mliska@suse.cz>
18385
18386 * profile-count.h: Do not use full qualified
18387 names if possible.
18388 * profile-count.c (profile_count::to_frequency): Likewise.
18389
18390 2019-05-20 Martin Liska <mliska@suse.cz>
18391
18392 * profile-count.h (enum profile_quality): Use capital letters
18393 for enum value names. Use the adjusted names.
18394 * profile-count.c: Use the adjusted names.
18395
18396 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18397
18398 * config/rs6000/constraints.md (define_register_constraint "wH"):
18399 Delete.
18400 (define_register_constraint "wI"): Delete.
18401 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18402 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18403 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18404 (rs6000_init_hard_regno_mode_ok): Adjust.
18405 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18406 resp. "d", or with "wa" as appropriate, all with "p8v".
18407 * config/rs6000/vsx.md: Ditto.
18408 * doc/md.texi (Machine Constraints): Adjust.
18409
18410 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18411
18412 * config/rs6000/constraints.md (define_register_constraint "wy"):
18413 Delete.
18414 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18415 RS6000_CONSTRAINT_wy.
18416 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18417 (rs6000_init_hard_regno_mode_ok): Adjust.
18418 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18419 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18420 (define_mode_attr Fisa): New.
18421 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18422 * doc/md.texi (Machine Constraints): Adjust.
18423
18424 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18425
18426 * config/rs6000/constraints.md (define_register_constraint "wu"):
18427 Delete.
18428 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18429 RS6000_CONSTRAINT_wu.
18430 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18431 (rs6000_init_hard_regno_mode_ok): Adjust.
18432 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18433 both with "p8v".
18434 (define_mode_attr Fa): Delete.
18435 * config/rs6000/vsx.md: Ditto.
18436 * doc/md.texi (Machine Constraints): Adjust.
18437
18438 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18439
18440 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18441 Delete.
18442 (define_register_constraint "wK"): Delete.
18443 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18444 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18445 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18446 (rs6000_init_hard_regno_mode_ok): Adjust.
18447 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18448 Replace "wK" constraint by "wH" with "p9v".
18449 * config/rs6000/vsx.md: Ditto.
18450 * doc/md.texi (Machine Constraints): Adjust.
18451
18452 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18453
18454 * config/rs6000/constraints.md (define_register_constraint "wb"):
18455 Delete.
18456 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18457 RS6000_CONSTRAINT_wb.
18458 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18459 (rs6000_init_hard_regno_mode_ok): Adjust.
18460 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18461 * config/rs6000/vsx.md: Ditto.
18462 * doc/md.texi (Machine Constraints): Adjust.
18463
18464 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18465
18466 * config/rs6000/constraints.md (define_register_constraint "wo"):
18467 Delete.
18468 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18469 RS6000_CONSTRAINT_wo.
18470 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18471 (rs6000_init_hard_regno_mode_ok): Adjust.
18472 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18473 * config/rs6000/altivec.md: Ditto.
18474 * doc/md.texi (Machine Constraints): Adjust.
18475
18476 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18477
18478 * config/darwin-c.c (darwin_register_objc_includes): Do not
18479 prepend the sysroot when building gnu-runtime header search
18480 paths.
18481
18482 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18483
18484 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18485 instead of direct output of the asm.
18486
18487 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18488
18489 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18490 argument to be type bool (was int before).
18491 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18492 at first use. Use type bool for some variables. Fix a theoretical
18493 eh_return bug for svr4.
18494
18495 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18496
18497 * config/rs6000/rs6000.md (isa): New attribute.
18498 (enabled): New attribute.
18499
18500 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18501
18502 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18503 assemble_start_function and assemble_end_function.
18504
18505 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18506
18507 PR middle-end/89433
18508 * omp-general.c (oacc_verify_routine_clauses): Change formal
18509 parameters. Add checking if already marked with an OpenACC
18510 'routine' directive. Adjust all users.
18511
18512 PR middle-end/89433
18513 * omp-general.c (oacc_build_routine_dims): Move some of its
18514 processing into...
18515 (oacc_verify_routine_clauses): ... this new function.
18516 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18517
18518 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18519
18520 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18521 formating of picbase labels to match other ports.
18522
18523 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18524
18525 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18526 in the generated code.
18527
18528 2019-05-16 Martin Sebor <msebor@redhat.com>
18529
18530 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18531 identifiers, keywords, operators, and types in diagnostics. Correct
18532 quoting, spelling, and sentence capitalization issues.
18533 (expand_builtin_atomic_is_lock_free): Same.
18534 (fold_builtin_next_arg): Same.
18535 * cfgexpand.c (expand_one_var): Same.
18536 (tree_conflicts_with_clobbers_p): Same.
18537 (expand_asm_stmt): Same.
18538 (verify_loop_structure): Same.
18539 * cgraphunit.c (process_function_and_variable_attributes): Same.
18540 * collect-utils.c (collect_execute): Same.
18541 * collect2.c (maybe_run_lto_and_relink): Same.
18542 (is_lto_object_file): Same.
18543 (scan_prog_file): Same.
18544 * convert.c (convert_to_real_1): Same.
18545 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18546 * except.c (verify_eh_tree): Same.
18547 * gcc.c (execute): Same.
18548 (eval_spec_function): Same.
18549 (run_attempt): Same.
18550 (driver::set_up_specs): Same.
18551 (compare_debug_auxbase_opt_spec_function): Same.
18552 * gcov-tool.c (unlink_gcda_file): Same.
18553 (do_merge): Same.
18554 (do_rewrite): Same.
18555 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18556 * gimplify.c (gimplify_asm_expr): Same.
18557 (gimplify_adjust_omp_clauses): Same.
18558 * hsa-gen.c (gen_hsa_addr_insns): Same.
18559 (gen_hsa_insns_for_load): Same.
18560 (gen_hsa_cmp_insn_from_gimple): Same.
18561 (gen_hsa_insns_for_operation_assignment): Same.
18562 (gen_get_level): Same.
18563 (gen_hsa_alloca): Same.
18564 (omp_simple_builtin::generate): Same.
18565 (gen_hsa_atomic_for_builtin): Same.
18566 (gen_hsa_insns_for_call): Same.
18567 * input.c (dump_location_info): Same.
18568 * ipa-devirt.c (compare_virtual_tables): Same.
18569 * ira.c (ira_setup_eliminable_regset): Same.
18570 * lra-assigns.c (lra_assign): Same.
18571 * lra-constraints.c (lra_constraints): Same.
18572 * lto-streamer-in.c (lto_input_mode_table): Same.
18573 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18574 (merge_and_complain): Same.
18575 (compile_offload_image): Same.
18576 (compile_images_for_offload_targets): Same.
18577 (debug_objcopy): Same.
18578 (run_gcc): Same.
18579 (main): Same.
18580 * opts.c (print_specific_help): Same.
18581 (parse_no_sanitize_attribute): Same.
18582 (print_help): Same.
18583 (handle_param): Same.
18584 * plugin.c (add_new_plugin): Same.
18585 (parse_plugin_arg_opt): Same.
18586 (try_init_one_plugin): Same.
18587 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18588 operators, and types in diagnostics. Correct quoting and spelling
18589 issues.
18590 * read-rtl-function.c (parse_edge_flag_token): Same.
18591 (function_reader::parse_enum_value): Same.
18592 * reg-stack.c (check_asm_stack_operands): Same.
18593 * regcprop.c (validate_value_data): Same.
18594 * sched-rgn.c (make_pass_sched_fusion): Same.
18595 * stmt.c (check_unique_operand_names): Same.
18596 * targhooks.c (default_target_option_pragma_parse): Same.
18597 * tlink.c (recompile_files): Same.
18598 * toplev.c (process_options): Same.
18599 (do_compile): Same.
18600 * trans-mem.c (diagnose_tm_1): Same.
18601 (ipa_tm_scan_irr_block): Same.
18602 (ipa_tm_diagnose_transaction): Same.
18603 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18604 format a tree code name in a diagnostic.
18605 (verify_types_in_gimple_min_lval): Same.
18606 (verify_types_in_gimple_reference): Same.
18607 (verify_gimple_call): Same.
18608 (verify_gimple_assign_unary): Same.
18609 (verify_gimple_assign_binary): Same.
18610 (verify_gimple_assign_ternary): Same.
18611 (verify_gimple_assign_single): Same.
18612 (verify_gimple_switch): Same.
18613 (verify_gimple_label): Same.
18614 (verify_gimple_phi): Same.
18615 (verify_gimple_in_seq): Same.
18616 (verify_eh_throw_stmt_node): Same.
18617 (collect_subblocks): Same.
18618 (gimple_verify_flow_info): Same.
18619 (do_warn_unused_result): Same.
18620 * tree-inline.c (expand_call_inline): Same.
18621 * tree-into-ssa.c (update_ssa): Same.
18622 * tree.c (tree_int_cst_elt_check_failed): Same.
18623 (tree_vec_elt_check_failed): Same.
18624 (omp_clause_operand_check_failed): Same.
18625 (verify_type_variant): Same.
18626 (verify_type): Same.
18627 * value-prof.c (verify_histograms): Same.
18628 * varasm.c (assemble_start_function): Same.
18629
18630 2019-05-16 Martin Sebor <msebor@redhat.com>
18631
18632 * config/i386/i386-expand.c (get_element_number): Quote keywords
18633 and other internal names in diagnostics. Adjust other diagnostic
18634 formatting issues noted by -Wformat-diag.
18635 * config/i386/i386-features.c
18636 (ix86_mangle_function_version_assembler_name): Same.
18637 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18638 * config/i386/i386.c (ix86_function_type_abi): Same.
18639 (ix86_function_ms_hook_prologue): Same.
18640 (classify_argument): Same.
18641 (ix86_expand_prologue): Same.
18642 (ix86_md_asm_adjust): Same.
18643 (ix86_memmodel_check): Same.
18644
18645 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18646
18647 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18648 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18649 and fpxx modes.
18650
18651 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18652
18653 PR target/90497
18654 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18655 intrinsics without SSE/SSE2/SSSE3.
18656 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18657 check.
18658 (*mmx_uavgv8qi3): Likewise.
18659
18660 2019-05-17 Richard Biener <rguenther@suse.de>
18661
18662 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18663 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18664
18665 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18666
18667 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18668 vec_sldw insn pattern.
18669
18670 2019-05-17 Richard Biener <rguenther@suse.de>
18671
18672 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18673
18674 2019-05-17 Martin Liska <mliska@suse.cz>
18675
18676 PR driver/90496
18677 * toplev.c (output_stack_usage): With LTO and sanitizer it
18678 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18679 has no file location.
18680
18681 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18682
18683 PR c++/90484
18684 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18685 sz0 is equal to sz1, instead return false in that case.
18686
18687 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18688 has non-constant expression, force sctx.lane and use two
18689 argument IFN_GOMP_SIMD_LANE instead of single argument.
18690 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18691 two argument IFN_GOMP_SIMD_LANE without lhs.
18692 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18693 member.
18694 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18695 Define.
18696 (LOOP_REQUIRES_VERSIONING): Or in
18697 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18698 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18699 simd_if_cond.
18700 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18701 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18702 from simd if clause if needed.
18703
18704 2019-05-16 Richard Biener <rguenther@suse.de>
18705
18706 * tree-affine.c (expr_to_aff_combination): New function split
18707 out from...
18708 (tree_to_aff_combination): ... here.
18709 (aff_combination_expand): Avoid building a GENERIC tree.
18710
18711 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18712
18713 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18714 assemble_start_function and assemble_end_function calls.
18715 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18716 assemble_start_function and assemble_end_function.
18717 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18718 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18719 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18720 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18721 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18722 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18723 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18724 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18725 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18726 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18727 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18728 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18729 Likewise.
18730 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18731 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18732 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18733 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18734 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18735 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18736 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18737 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18738 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18739 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18740 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18741 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18742 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18743 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18744 Likewise.
18745 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18746 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18747 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18748
18749 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18750
18751 * tree-ssa-alias.c (alias_stats): Add
18752 aliasing_component_refs_p_may_alias and
18753 aliasing_component_refs_p_no_alias.
18754 (dump_alias_stats): Print aliasing_component_refs_p stats.
18755 (aliasing_component_refs_p): Update stats.
18756
18757 2019-05-16 Martin Liska <mliska@suse.cz>
18758
18759 PR lto/90500
18760 * multiple_target.c (expand_target_clones): Do not allow
18761 target_clones being used with a symbol that is an alias.
18762
18763 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18764
18765 PR tree-optimization/90394
18766 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18767 positives rather than ICE for cases where (code2 == NE_EXPR
18768 && code1 == BIT_AND_EXPR).
18769
18770 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18771
18772 PR fortran/90329
18773 * tree-core.h (struct tree_decl_common): Document
18774 decl_nonshareable_flag for PARM_DECLs.
18775 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18776 * calls.c (expand_call): Don't try tail call if caller
18777 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18778 passed on the stack and callee needs to pass any arguments on the
18779 stack.
18780 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18781 else if instead of series of mutually exclusive ifs. Handle
18782 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18783 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18784
18785 * lto-streamer.h (LTO_major_version): Bump to 9.
18786
18787 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18788
18789 PR tree-optimization/90106
18790 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18791 new parameter as new internal function call, also move it to new
18792 basic block.
18793 (use_internal_fn): Pass internal function call to
18794 shrink_wrap_one_built_in_call_with_conds.
18795
18796 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18797
18798 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18799 max_vf to 1.
18800 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18801 safelen_int and set loop->dont_vectorize.
18802
18803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18804
18805 PR target/89021
18806 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18807 SSE/SSE2/SSSE3.
18808 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18809 Likewise.
18810 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18811 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18812 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18813 is defined.
18814
18815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18816
18817 PR target/89021
18818 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18819 define_insn_and_split to support SSE emulation.
18820 (*vec_extractv2sf_0): Likewise.
18821 (*vec_extractv2sf_1): Likewise.
18822 (*vec_extractv2si_0): Likewise.
18823 (*vec_extractv2si_1): Likewise.
18824 (*vec_extractv2si_zext_mem): Likewise.
18825 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18826 (vec_extractv2sf_1 splitter): Likewise.
18827 (vec_extractv2sfsf): Likewise.
18828 (vec_setv2si): Likewise.
18829 (vec_extractv2si_1 splitter): Likewise.
18830 (vec_extractv2sisi): Likewise.
18831 (vec_setv4hi): Likewise.
18832 (vec_extractv4hihi): Likewise.
18833 (vec_setv8qi): Likewise.
18834 (vec_extractv8qiqi): Likewise.
18835 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18836 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18837 (vec_extractv2sisi): Likewise.
18838 (vec_extractv4hihi): Likewise.
18839 (vec_extractv8qiqi): Likewise.
18840 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18841 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18842 (vec_initv2sisi): Likewise.
18843 (vec_initv4hihi): Likewise.
18844 (vec_initv8qiqi): Likewise.
18845 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18846 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18847 (vec_setv4hi): Likewise.
18848 (vec_setv8qi): Likewise.
18849
18850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18851
18852 PR target/89021
18853 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18854 TARGET_MMX_WITH_SSE.
18855 (MMXMODE:*mov<mode>_internal): Likewise.
18856 (MMXMODE:movmisalign<mode>): Likewise.
18857
18858 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18859
18860 PR target/89021
18861 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18862 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18863 (sse2_cvtpd2pi): Ditto.
18864 (sse2_cvttpd2pi): Ditto.
18865 (*vec_concatv2sf_sse4_1): Ditto.
18866 (*vec_concatv2sf_sse): Ditto.
18867 (*vec_concatv2si_sse4_1): Ditto.
18868 (*vec_concatv2si): Ditto.
18869 (*vec_concatv4si_0): Ditto.
18870 (*vec_concatv2di_0): Ditto.
18871
18872 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18873
18874 PR target/89021
18875 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18876
18877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18878
18879 PR target/89021
18880 * config/i386/sse.md (ssse3_palignrdi): Changed to
18881 define_insn_and_split to support SSE emulation.
18882
18883 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18884
18885 PR target/89021
18886 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18887
18888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18889
18890 PR target/89021
18891 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18892 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18893 SSE emulation.
18894
18895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18896
18897 PR target/89021
18898 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18899 or TARGET_MMX_WITH_SSE.
18900 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18901
18902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18903
18904 PR target/89021
18905 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18906
18907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18908
18909 PR target/89021
18910 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18911 Changed to define_insn_and_split to support SSE emulation.
18912
18913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18914
18915 PR target/89021
18916 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18917 Changed to define_insn_and_split to support SSE emulation.
18918
18919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18920
18921 PR target/89021
18922 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18923 (*mmx_<emms>): This.
18924 (mmx_<emms>): New expander.
18925
18926 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18927
18928 PR target/89021
18929 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18930 support.
18931 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18932
18933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18934
18935 PR target/89021
18936 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18937
18938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18939
18940 PR target/89021
18941 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18942
18943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18944
18945 PR target/89021
18946 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18947 TARGET_MMX_WITH_SSE.
18948 (*mmx_uavgv4hi3): Add SSE emulation.
18949
18950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18951
18952 PR target/89021
18953 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18954 and TARGET_MMX_WITH_SSE.
18955 (*mmx_uavgv8qi3): Add SSE emulation.
18956
18957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18958
18959 PR target/89021
18960 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18961 maskmovdqu for __MMX_WITH_SSE__.
18962
18963 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18964
18965 PR target/89021
18966 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18967 TARGET_MMX and TARGET_MMX_WITH_SSE.
18968 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18969
18970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18971
18972 PR target/89021
18973 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18974 define_insn_and_split to support SSE emulation.
18975
18976 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18977
18978 PR target/89021
18979 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18980 and TARGET_MMX_WITH_SSE.
18981 (mmx_<code>v8qi3): Likewise.
18982 (smaxmin:<code>v4hi3): New.
18983 (umaxmin:<code>v8qi3): Likewise.
18984 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18985 (umaxmin:*mmx_<code>v8qi3): Likewise.
18986
18987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18988
18989 PR target/89021
18990 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18991 TARGET_MMX_WITH_SSE.
18992 (*mmx_pinsrw): Add SSE emulation.
18993
18994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18995
18996 PR target/89021
18997 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18998
18999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19000
19001 PR target/89021
19002 * config/i386/sse.md (sse_cvtpi2ps): Changed to
19003 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19004 SSE emulation.
19005
19006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19007
19008 PR target/89021
19009 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
19010 (sse_cvttps2pi): Likewise.
19011
19012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19013
19014 PR target/89021
19015 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
19016 TARGET_MMX_WITH_SSE.
19017 (mmx_pshufw_1): Add SSE emulation.
19018 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
19019 TARGET_MMX_WITH_SSE to support SSE emulation.
19020
19021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19022
19023 PR target/89021
19024 * config/i386/constraints.md (Yw): New constraint.
19025 * config/i386/mmx.md (*vec_dupv2si): Changed to
19026 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
19027 support SSE emulation.
19028
19029 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19030
19031 PR target/89021
19032 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
19033 TARGET_MMX_WITH_SSE.
19034 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19035 support.
19036 (mmx_gt<mode>3): Likewise.
19037
19038 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19039
19040 PR target/89021
19041 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
19042 TARGET_MMX_WITH_SSE. Add SSE support.
19043
19044 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19045
19046 PR target/89021
19047 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
19048 TARGET_MMX_WITH_SSE.
19049 (any_logic:<code><mode>3): New.
19050 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
19051 Add SSE support.
19052
19053 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19054
19055 PR target/89021
19056 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
19057 TARGET_MMX_WITH_SSE. Add SSE emulation.
19058 (mmx_<shift_insn><mode>3): Likewise.
19059 (ashr<mode>3): New.
19060 (<shift_insn><mode>3): Likewise.
19061
19062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19063
19064 PR target/89021
19065 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
19066 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
19067
19068 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19069
19070 PR target/89021
19071 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
19072 TARGET_MMX_WITH_SSE.
19073 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
19074 SSE support.
19075
19076 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19077
19078 PR target/89021
19079 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
19080 TARGET_MMX_WITH_SSE.
19081 (mulv4hi3): New.
19082 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19083 support.
19084
19085 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 PR target/89021
19088 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19089 (plusminus:mmx_<plusminus_insn><mode>3): Check
19090 TARGET_MMX_WITH_SSE.
19091 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19092 (<plusminus_insn><mode>3): New.
19093 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19094 (*mmx_<plusminus_insn><mode>3): Likewise.
19095
19096 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19097
19098 PR target/89021
19099 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19100 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19101 prototype.
19102 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19103 define_insn_and_split to support SSE emulation.
19104 (mmx_punpcklbw): Likewise.
19105 (mmx_punpckhwd): Likewise.
19106 (mmx_punpcklwd): Likewise.
19107 (mmx_punpckhdq): Likewise.
19108 (mmx_punpckldq): Likewise.
19109
19110 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19111 Uros Bizjak <ubizjak@gmail.com>
19112
19113 PR target/89021
19114 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19115 New function.
19116 (ix86_split_mmx_pack): Likewise.
19117 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19118 New prototype.
19119 (ix86_split_mmx_pack): Likewise.
19120 * config/i386/i386.md (mmx_isa): New.
19121 (enabled): Also check mmx_isa.
19122 * config/i386/mmx.md (any_s_truncate): New code iterator.
19123 (s_trunsuffix): New code attr.
19124 (mmx_packsswb): Removed.
19125 (mmx_packssdw): Likewise.
19126 (mmx_packuswb): Likewise.
19127 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19128 MMX packsswb/packuswb with SSE2.
19129 (mmx_packssdw): Likewise.
19130 * config/i386/predicates.md (register_mmxmem_operand): New.
19131
19132 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19133
19134 PR target/89021
19135 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19136 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19137 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19138 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19139 (ix86_vector_mode_supported_p): Likewise.
19140 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19141
19142 2019-05-15 Martin Liska <mliska@suse.cz>
19143
19144 PR middle-end/90478
19145 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19146 Check for overflow.
19147
19148 2019-05-15 Richard Biener <rguenther@suse.de>
19149
19150 * tree-into-ssa.c (pass_build_ssa::execute): Run
19151 update_address_taken before going into SSA.
19152
19153 2019-05-15 Richard Biener <rguenther@suse.de>
19154
19155 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19156 as __BIT_FIELD_REF with type with -gimple.
19157
19158 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19159
19160 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19161 semantically equivalent branches (left over after prior refactorings).
19162
19163 2019-05-15 Richard Biener <rguenther@suse.de>
19164
19165 PR tree-optimization/88828
19166 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19167 bogus check.
19168
19169 2019-05-14 Richard Biener <rguenther@suse.de>
19170
19171 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19172 as __VIEW_CONVERT with -gimple.
19173
19174 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19175
19176 PR target/82920
19177 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19178 Darwin.
19179
19180 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19181
19182 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19183 define_split to become a define_insn_and_split.
19184
19185 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19186
19187 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19188 arguments.
19189 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19190 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19191 (sibcall_epilogue): Adjust.
19192 (epilogue): Adjust.
19193
19194 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19195
19196 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19197 to unsupported ones.
19198 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19199 * config.host: Likewise.
19200 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19201 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19202 __svr4__]: Remove "brand" fallback.
19203 [!KSTAT_DATA_STRING]: Remove.
19204 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19205 to *-*-solaris2*.
19206 (comdat_group): Likewise.
19207 (set_have_as_tls): Likewise.
19208 (gcc_cv_target_dl_iterate_phdr): Likewise.
19209 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19210 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19211 * configure: Regenerate.
19212 * doc/install.texi: Simplify Solaris target triplets.
19213 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19214 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19215 Remove Solaris 10 references.
19216 Remove obsolete Solaris bug reference.
19217 (Specific, sparc-sun-solaris2.10): Remove.
19218
19219 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19220
19221 * config/i386/i386.md (any_div): New code iterator.
19222 (paired_mod): New code attribute.
19223 (sgnprefix): Handle DIV and UDIV RTXes.
19224 (u): Ditto.
19225 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19226 and udivmod<mode>4 patterns using any_div code iterator.
19227 (divmod splitters): Macroize splitters using any_div code iterator.
19228 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19229 (*udivmodsi4_pow2_zext_2): Ditto.
19230 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19231 and *udivmod<mode>4_noext patterns using any_div code iterator.
19232 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19233 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19234 patterns using any_div code iterator.
19235 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19236 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19237 patterns using any_div code iterator.
19238 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19239 udivmodhiqi3 patterns using any_extend code iterator.
19240
19241 2019-05-14 Richard Biener <rguenther@suse.de>
19242 H.J. Lu <hongjiu.lu@intel.com>
19243
19244 PR tree-optimization/88828
19245 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19246 permuting in a single non-constant element not extracted
19247 from a vector.
19248
19249 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19250
19251 * internal-fn.def (SIGNBIT): New.
19252 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19253 defined.
19254 (signbitv4sf2): Likewise.
19255
19256 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19257
19258 PR target/90357
19259 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19260 next insn when the SRC reg is dead.
19261
19262 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19263
19264 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19265 (alloc_cand_and_find_basis): Ditto.
19266 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19267 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19268 (create_add_imm_cand, slsr_process_cast): Ditto.
19269 (slsr_process_copy, replace_mult_candidate): Ditto.
19270 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19271 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19272 (pass_strength_reduction::execute): Init the first NULL element.
19273
19274 2019-05-13 Nathan Sidwell <nathan@acm.org>
19275
19276 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19277 (run_attempt): Reformat line break.
19278
19279 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19280
19281 PR target/90418
19282 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19283 data registers in sibcall epilogues.
19284 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19285
19286 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19287
19288 PR target/89221
19289 * configure.ac (--enable-frame-pointer):
19290 Disable by default for cygwin and mingw.
19291 * configure: Regenerate.
19292
19293 2019-05-13 Nathan Sidwell <nathan@acm.org>
19294
19295 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19296 piece of code.
19297 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19298 (gen_member_die): Move abstract origin check earlier. Only VARs
19299 can be static_inline_p. Simplify splicing control flow.
19300
19301 2019-05-13 Richard Biener <rguenther@suse.de>
19302
19303 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19304 VIEW_CONVERT_EXPR.
19305 (vect_build_slp_tree_1): Likewise.
19306
19307 2019-05-13 Richard Biener <rguenther@suse.de>
19308
19309 PR tree-optimization/90402
19310 * tree-if-conv.c (tree_if_conversion): Value number only
19311 the loop body by making the latch an exit of the region
19312 as well.
19313 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19314 processing PHIs.
19315 (do_rpo_vn): Deal with multiple edges into the entry block
19316 that are not backedges inside the region by skipping PHIs
19317 of the entry block.
19318
19319 2019-05-13 Richard Biener <rguenther@suse.de>
19320
19321 PR tree-optimization/90316
19322 * tree-ssa-pre.c (insert_aux): Fold into ...
19323 (insert): ... this function. Use a RPO walk to reduce the
19324 number of required iterations.
19325
19326 2019-05-13 Martin Liska <mliska@suse.cz>
19327
19328 PR tree-optimization/90416
19329 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19330 string instead of passing the second part as va_arg argument.
19331
19332 2019-05-13 Martin Liska <mliska@suse.cz>
19333
19334 PR gcov-profile/90380
19335 * gcov.c (handle_cycle): Do not support zero cycle count,
19336 it should not be possible.
19337 (path_contains_zero_cycle_arc): New function.
19338 (circuit): Ignore zero cycle arc counts.
19339
19340 2019-05-13 Martin Liska <mliska@suse.cz>
19341
19342 PR gcov-profile/90380
19343 * gcov.c (enum loop_type): Remove the enum and
19344 the operator.
19345 (handle_cycle): Assert that we should not reach
19346 a negative count.
19347 (circuit): Use loop_found instead of a tri-state loop_type.
19348 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19349 happen.
19350
19351 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19352
19353 PR target/82920
19354 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19355 (ix86_output_indirect_branch_via_reg): Use output mechanism
19356 accounting for __USER_LABEL_PREFIX__.
19357 (ix86_output_indirect_branch_via_push): Likewise.
19358 (ix86_output_function_return): Likewise.
19359 (ix86_output_indirect_function_return): Likewise.
19360
19361 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19362
19363 * doc/md.texi: Document use of code attributes in rtx patterns.
19364 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19365 * read-rtl.c (find_code): Split out search loops into...
19366 (maybe_find_code): ...this new function.
19367 (check_code_iterator): Make the error message more informative.
19368 (check_code_attribute): New function.
19369 (rtx_reader::rtx_alloc_for_name): Likewise.
19370 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19371 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19372 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19373 <max_opp> directly as an rtx code instead of via a match_operator.
19374 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19375 (<su>abd<mode>_3): Update accordingly.
19376
19377 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19378
19379 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19380 is given, print the state of the EH "save world" computation for
19381 Darwin.
19382
19383 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19384
19385 PR c++/59813
19386 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19387 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19388
19389 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19390
19391 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19392 Use pinsrd for TARGET_SSE4_1.
19393 * config/i386/sse.md (movdi_to_sse): Ditto.
19394
19395 2019-05-10 Richard Biener <rguenther@suse.de>
19396
19397 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19398 (do_rpo_vn): Initialize next_value_id.
19399
19400 2019-05-10 Martin Liska <mliska@suse.cz>
19401
19402 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19403 Fix plural form.
19404
19405 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19406
19407 PR tree-optimization/90385
19408 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19409 arguments of the exit phis.
19410
19411 PR c++/90383
19412 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19413 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19414 id->do_not_fold.
19415 (copy_tree_body_r): Likewise.
19416 (copy_fn): Set id.do_not_fold to true.
19417
19418 2019-05-10 Martin Liska <mliska@suse.cz>
19419
19420 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19421 Reapply changes from r269790.
19422
19423 2019-05-10 Martin Liska <mliska@suse.cz>
19424
19425 PR middle-end/90340
19426 * doc/invoke.texi: New params.
19427 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19428 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19429 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19430 Use it.
19431 * tree-switch-conversion.h (struct jump_table_cluster):
19432 Likewise.
19433
19434 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19435
19436 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19437
19438 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19439
19440 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19441
19442 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19443
19444 PR rtl-optimization/88879
19445 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19446
19447 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19448
19449 PR target/90405
19450 * config/arm/arm.c (callee_saved_reg_p): Move before
19451 thumb_find_work_register.
19452 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19453 thumb_find_work_register. Only call df_get_live_out once.
19454 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19455 (thumb_find_work_register): Use
19456 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19457 algorithms to locate a spare call clobbered reg.
19458
19459 2019-05-09 Martin Liska <mliska@suse.cz>
19460
19461 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19462 and MAX_EXPR in GIMPLE FE format.
19463
19464 2019-05-09 Martin Liska <mliska@suse.cz>
19465
19466 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19467 * gimple-pretty-print.c (dump_gimple_bb_header):
19468 Dump BB count.
19469 (pp_cfg_jump): Dump edge probability.
19470 * profile-count.c (profile_quality_as_string): Simplify
19471 with a static array.
19472 (parse_profile_quality): New function.
19473 (profile_count::dump): Simplify with a static array.
19474 (profile_count::from_gcov_type): Add new argument.
19475 * profile-count.h (parse_profile_quality): Likewise.
19476 * predict.h (set_hot_bb_threshold): New.
19477 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19478 New param.
19479 * predict.c (get_hot_bb_threshold): Set from the new param.
19480 (set_hot_bb_threshold): New.
19481
19482 2019-05-09 Richard Biener <rguenther@suse.de>
19483
19484 PR tree-optimization/90395
19485 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19486 rewrite vector stores that throw internally.
19487
19488 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19489
19490 * cif-code.def (CHKP): Remove.
19491
19492 PR target/89221
19493 * configure.ac (--enable-frame-pointer): Disable by default for
19494 GNU systems.
19495 * configure: Regenerate.
19496
19497 2019-05-09 Alan Modra <amodra@gmail.com>
19498
19499 PR target/89271
19500 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19501 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19502 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19503 cost for general <-> vsx when direct moves are available.
19504 Cost union classes at minimal cost for any reg in the class.
19505 Correct calculation for moves between vsx, float, and altivec.
19506 Don't return a low cost for moves between special regs. Don't
19507 use hard coded register numbers.
19508 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19509 (rs6000_ira_change_pseudo_allocno_class): New function.
19510 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19511 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19512 alternatives.
19513 (movsi_internal1): Don't disparage vector alternatives.
19514 (mov<mode>_internal): Likewise, excepting alternative that
19515 will be split.
19516 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19517 we <- b alternative.
19518
19519 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19520
19521 PR c++/59813
19522 PR tree-optimization/89060
19523 * tree-ssa-live.h (live_vars_map): New typedef.
19524 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19525 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19526 (struct compute_live_vars_data): New type.
19527 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19528 live_vars_at_stmt, destroy_live_vars): New functions.
19529 * tree-tailcall.c: Include tree-ssa-live.h.
19530 (live_vars, live_vars_vec): New global variables.
19531 (find_tail_calls): Perform variable life analysis before punting.
19532 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19533 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19534 member.
19535 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19536 Perform variable life analysis to select variables that really need
19537 clobbers added.
19538 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19539 instead set id->eh_landing_pad_dest and assert it is the same.
19540 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19541
19542 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19543 Richard Earnshaw <rearnsha@arm.com>
19544
19545 PR target/88167
19546 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19547 function.
19548 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19549 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19550 register if both the epilogue and prologue can use call-clobbered
19551 regs.
19552 (thumb1_unexpanded_epilogue): Use
19553 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19554 picking temporaries for restoring high regs to match that of the
19555 prologue where possible.
19556 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19557 the list of work registers. Detect if the return address is still live
19558 at the end of the prologue and avoid using it for a work register if so.
19559 If the return address is not live, add LR to the list of pushable regs
19560 after the first pass.
19561
19562 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19563
19564 PR tree-optimization/90078
19565 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19566 (INFTY): Increase the value for infinite cost.
19567 (struct comp_cost): Promote type of members to int64_t.
19568 (infinite_cost): Don't set complexity in initialization.
19569 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19570 overflows to infinite_cost.
19571 (adjust_setup_cost): Promote type of parameter and cost computation
19572 to int64_t.
19573 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19574 int64_t.
19575 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19576 cost computation to int64_t.
19577 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19578 int64_t's format specifier in dump.
19579
19580 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19581
19582 PR tree-optimization/90240
19583 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19584 with respect to scaling factor pre-computed for each basic block.
19585 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19586 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19587 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19588 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19589 live range for array of loop's basic blocks. Cleanup aux field of
19590 loop's basic blocks.
19591
19592 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19593
19594 PR tree-optimization/90356
19595 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19596
19597 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19598
19599 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19600 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19601 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19602 (ix86_handle_option): Handle -mavx512bf16.
19603 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19604 to extra_headers.
19605 * config/i386/avx512bf16vlintrin.h: New.
19606 * config/i386/avx512bf16intrin.h: New.
19607 * config/i386/cpuid.h (bit_AVX512BF16): New.
19608 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19609 * config/i386/i386-builtin-types.def: Add new types.
19610 * config/i386/i386-builtin.def: Add new builtins.
19611 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19612 __AVX512BF16__.
19613 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19614 (ix86_option_override_internal): Handle BF16.
19615 (ix86_valid_target_attribute_inner_p): Ditto.
19616 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19617 * config/i386/i386-builtin.c (enum processor_features): Add
19618 F_AVX512BF16.
19619 (static const _isa_names_table isa_names_table): Ditto.
19620 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19621 (PTA_AVX512BF16): Ditto.
19622 * config/i386/i386.opt: Add -mavx512bf16.
19623 * config/i386/immintrin.h: Include avx512bf16intrin.h
19624 and avx512bf16vlintrin.h.
19625 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19626 avx512f_cvtneps2bf16_<mode><mask_name>,
19627 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19628 * config/i386/subst.md (mask_half): Add new subst.
19629 * doc/invoke.texi: Document -mavx512bf16.
19630
19631 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19632
19633 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19634 Delete declaration.
19635 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19636 (rs6000_debug_legitimize_reload_address): Delete.
19637 (rs6000_legitimize_reload_address_ptr): Delete.
19638 (rs6000_option_override_internal): Adjust.
19639 (mem_operand_gpr): Adjust comment.
19640 (legitimate_lo_sum_address_p): Ditto.
19641 (rs6000_legitimize_reload_address): Delete.
19642 (rs6000_debug_legitimize_reload_address): Delete.
19643 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19644
19645 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19646
19647 PR target/89765
19648 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19649 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19650 to compute vector element selector for both constant and variable
19651 operands.
19652
19653 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19654
19655 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19656 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19657 ashrdi3_cvt using SWI48 mode iterator.
19658
19659 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19660
19661 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19662 (aarch64_<su>abd<mode>_3): Likewise.
19663 (*aarch64_<su>abd<mode>_3): New define_insn.
19664 (<sur>sad<vsi2qi>): New define_expand.
19665 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19666 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19667 (build_vect_cond_expr): Likewise.
19668
19669 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19670
19671 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19672 clobbers outside of accessible_reg_set.
19673 * config/i386/i386.c (ix86_conditional_register_usage):
19674 Disable register sets by clearing corresponding bits in
19675 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19676 call_used_regs and don't clear corresponding reg_names array members.
19677
19678 2019-05-07 Richard Biener <rguenther@suse.de>
19679
19680 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19681 not specified still compute a comp_vectype for invariant
19682 compares.
19683
19684 2019-05-07 Richard Biener <rguenther@suse.de>
19685
19686 PR tree-optimization/90316
19687 * tree-ssa-pre.c (translate_vuse_through_block): When
19688 same_valid is NULL do not bother to search for a virtual
19689 PHI continuation.
19690 (phi_translate_1): When operands changed we cannot keep
19691 the same value-number so do not bother to ask whether
19692 that's possible from translate_vuse_through_block.
19693
19694 2019-05-07 Martin Liska <mliska@suse.cz>
19695
19696 * bitmap.c (bitmap_register): Come up with
19697 alloc_descriptor_max_uid and assign it for
19698 a new bitmap.
19699 (register_overhead): Use get_descriptor as
19700 a descriptor.
19701 (release_overhead): New.
19702 (bitmap_elem_to_freelist): Call it.
19703 (bitmap_elt_clear_from): Likewise.
19704 (bitmap_obstack_free): Likewise.
19705 (bitmap_move): Sensitively release memory.
19706 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19707 (bitmap_initialize): Initialize alloc_descriptor to zero.
19708 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19709
19710 2019-05-07 Richard Biener <rguenther@suse.de>
19711
19712 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19713 we build a SLP node. Remove max_size and limiting.
19714 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19715
19716 2019-05-07 Richard Biener <rguenther@suse.de>
19717
19718 PR tree-optimization/90316
19719 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19720 limit by reference.
19721 (walk_non_aliased_vuses): Take walking limit argument.
19722 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19723 walking if it is reached instead of just counting.
19724 (get_continuation_for_phi): Likewise.
19725 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19726 limiting to the callback.
19727 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19728 (vn_reference_lookup_3): Likewise.
19729 (vn_reference_lookup_pieces): Likewise.
19730 (vn_reference_lookup): Likewise.
19731 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19732 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19733 (avail_exprs_stack::lookup_avail_expr): Likewise.
19734
19735 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19736
19737 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19738 for comparaible types in the second direction even if first one
19739 hits incomparable type.
19740
19741 2019-05-07 Richard Biener <rguenther@suse.de>
19742
19743 PR lto/90369
19744 * lto-wrapper.c (debug_objcopy): Use the original filename
19745 including archive offset for the filename used for -save-temps.
19746
19747 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19748
19749 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19750 detection.
19751
19752 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19753 Hongtao Liu <hongtao.liu@intel.com>
19754
19755 PR target/89750
19756 PR target/86444
19757 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19758 Modified, original implementation isn't correct.
19759
19760 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19761
19762 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19763 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19764 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19765 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19766 (FRAME_POINTER_REGNUM): Change numbering.
19767 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19768 (alt_reg_names): Adjust.
19769 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19770 fixed.
19771 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19772 (DWARF_FRAME_REGISTERS): Delete.
19773 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19774 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19775 Adjust.
19776 (REG_ALLOC_ORDER): Adjust.
19777 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19778 (REG_CLASS_CONTENTS): Adjust.
19779 (RETURN_ADDR_RTX): Change comment.
19780 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19781 instead of 67.
19782 (REGISTER_NAMES): Adjust.
19783 (ADDITIONAL_REGISTER_NAMES): Adjust.
19784 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19785
19786 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19787
19788 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19789 Delete.
19790 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19791 (DWARF_FRAME_REGISTERS): Adjust.
19792 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19793 Adjust.
19794 (REG_ALLOC_ORDER): Adjust.
19795 (enum reg_class): Delete SPR_REGS.
19796 (REG_CLASS_NAMES): Delete SPR_REGS.
19797 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19798 (REGISTER_NAMES): Adjust.
19799 (ADDITIONAL_REGISTER_NAMES): Adjust.
19800 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19801 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19802 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19803 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19804 (htm_spr_regno): Delete.
19805 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19806 argument.
19807 (rs6000_dbx_register_number): Adjust.
19808
19809 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19810
19811 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19812
19813 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19814
19815 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19816 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19817
19818 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19819
19820 PR tree-optimization/88709
19821 PR tree-optimization/90271
19822 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19823 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19824 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19825 variable.
19826 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19827 of the store merging group is larger than
19828 PARAM_STORE_MERGING_MAX_SIZE parameter.
19829 (split_group): Add bzero_first argument. If set, always emit first
19830 the first store which must be = {} of the whole area and then for the
19831 rest of the stores consider all zero bytes as paddings.
19832 (imm_store_chain_info::output_merged_store): Check if first store
19833 is = {} of the whole area and if yes, determine which setting of
19834 bzero_first for split_group gives smaller number of stores. Adjust
19835 split_group callers.
19836 (lhs_valid_for_store_merging_p): Allow decls.
19837 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19838 no elts.
19839 (pass_store_merging::process_store): Likewise.
19840
19841 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19842
19843 PR target/89424
19844 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19845 handling of V1TImode.
19846
19847 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19848
19849 PR target/89221
19850 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19851 and enable_frame_pointer ...
19852 * configure.ac: ... here. Update help strings for
19853 --enable-frame-pointer.
19854 * configure: Regenerate.
19855 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19856 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19857 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19858 (USE_X86_64_FRAME_POINTER): Ditto.
19859
19860 2019-05-06 Martin Liska <mliska@suse.cz>
19861
19862 * config.gcc: Append to target_gtfiles and fix indentation.
19863
19864 2019-05-06 Richard Biener <rguenther@suse.de>
19865
19866 PR tree-optimization/90358
19867 * tree-vect-stmts.c (get_group_load_store_type): Properly
19868 detect unused upper half of load.
19869 (vectorizable_load): Likewise.
19870
19871 2019-05-06 Richard Biener <rguenther@suse.de>
19872
19873 PR tree-optimization/88828
19874 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19875 (simplify_vector_constructor): ...here. Handle constants in
19876 the constructor.
19877
19878 2019-05-06 Richard Biener <rguenther@suse.de>
19879
19880 PR tree-optimization/90328
19881 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19882 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19883 is valid in the loop nest before using it.
19884 (initialize_data_dependence_relation): Adjust.
19885 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19886 loop as loop-nest to dr_may_alias_p.
19887
19888 2019-05-06 Richard Biener <rguenther@suse.de>
19889
19890 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19891
19892 2019-05-06 Richard Biener <rguenther@suse.de>
19893
19894 PR tree-optimization/90316
19895 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19896 compute target on demand.
19897 (get_continuation_for_phi): Remove code walking stmts to
19898 get to a target virtual operand which could end up being
19899 quadratic.
19900
19901 2019-05-06 Martin Liska <mliska@suse.cz>
19902
19903 PR sanitizer/90312
19904 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19905 when -mabi is selected to a non-default version.
19906
19907 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19908 Martin Liska <mliska@suse.cz>
19909
19910 * Makefile.in: Add lto-dump.texi.
19911 * cgraph.h: Add new functions get_visibility_string and
19912 get_symtab_type_string.
19913 * doc/gcc.texi: Include lto-dump section.
19914 * doc/lto-dump.texi: New file.
19915 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19916 (parse_dump_option): Factor out this function.
19917 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19918 (parse_dump_option): Export the function.
19919 * symtab.c (symtab_node::get_visibility_string): New function.
19920 (symtab_node::get_symtab_type_string): Likewise.
19921
19922 2019-05-06 Martin Liska <mliska@suse.cz>
19923
19924 * config/i386/i386-builtins.c: New file.
19925 * config/i386/i386-builtins.h: New file.
19926 * config/i386/i386-expand.c: New file.
19927 * config/i386/i386-expand.h: New file.
19928 * config/i386/i386-features.c: New file.
19929 * config/i386/i386-features.h: New file.
19930 * config/i386/i386-options.c: New file.
19931 * config/i386/i386-options.h: New file.
19932 * config.gcc: Add new files into extra_objs and
19933 target_gtfiles.
19934 * config/i386/i386.c: Split content of the file
19935 into newly introduced files.
19936 * config/i386/i386.h: Declare common variables
19937 and macros.
19938 * config/i386/t-i386: Define dependencies for new files.
19939
19940 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19941
19942 PR target/89400
19943 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19944 Restrict 'all' variant to 32-bit configurations.
19945 (unaligned_loadhiu): Likewise.
19946 (unaligned_storehi): Likewise.
19947 (unaligned_storesi): Likewise.
19948 (unaligned_loadhis): Disable when compiling for thumb1.
19949
19950 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19951
19952 PR tree-optimization/90269
19953 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19954 Ignore clobbers.
19955
19956 2019-05-03 Martin Liska <mliska@suse.cz>
19957
19958 * hash-map.h: Add is_empty function.
19959 * hash-set.h: Likewise.
19960 * hash-table.h: Likewise.
19961 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19962 elements () == 0 (and similar usages).
19963 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19964 * gimplify.c (gimplify_bind_expr): Likewise.
19965 (gimplify_switch_expr): Likewise.
19966 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19967 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19968 * postreload-gcse.c (dump_hash_table): Likewise.
19969 (gcse_after_reload_main): Likewise.
19970 * predict.c (combine_predictions_for_bb): Likewise.
19971 * tree-parloops.c (reduction_phi): Likewise.
19972 (separate_decls_in_region): Likewise.
19973 (transform_to_exit_first_loop): Likewise.
19974 (gen_parallel_loop): Likewise.
19975 (gather_scalar_reductions): Likewise.
19976 (try_create_reduction_list): Likewise.
19977 * var-tracking.c (dump_vars): Likewise.
19978 (emit_notes_for_changes): Likewise.
19979 (vt_emit_notes): Likewise.
19980
19981 2019-05-03 Richard Biener <rguenther@suse.de>
19982
19983 PR tree-optimization/90316
19984 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19985 before running VN.
19986
19987 2019-05-03 Richard Biener <rguenther@suse.de>
19988
19989 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19990 peeling for gaps by loading only lower halves of vectors
19991 if possible.
19992 (vectorizable_load): Likewise.
19993
19994 2019-05-03 Richard Biener <rguenther@suse.de>
19995
19996 PR middle-end/89518
19997 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19998
19999 2019-05-03 Richard Biener <rguenther@suse.de>
20000
20001 PR middle-end/87314
20002 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
20003 Handle STRING_CST vs DECL or STRING_CST.
20004
20005 2019-05-03 Richard Biener <rguenther@suse.de>
20006
20007 PR tree-optimization/88963
20008 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
20009 vector loads feeding only BIT_FIELD_REFs to component
20010 loads. Rewrite stores fed by CONSTRUCTORs to component
20011 stores.
20012
20013 2019-05-03 Jakub Jelinek <jakub@redhat.com>
20014
20015 * opts.h (finish_options): Remove lang_mask argument.
20016 (print_help, help_option_argument): Declare.
20017 * opts.c (print_help): Remove forward declaration, no longer static.
20018 (finish_options): Remove lang_mask argument, don't call print_help
20019 here.
20020 * opts-global.c (decode_options): Adjust finish_option caller, call
20021 print_help here.
20022
20023 PR tree-optimization/90303
20024 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
20025 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
20026
20027 2019-05-03 Richard Biener <rguenther@suse.de>
20028
20029 PR tree-optimization/89698
20030 * gimple-fold.c (canonicalize_constructor_val): Early out
20031 for constants, handle unfolded INTEGER_CSTs as they appear in
20032 C++ virtual table ctors.
20033
20034 2019-05-03 Richard Biener <rguenther@suse.de>
20035
20036 * passes.c (execute_function_todo): Remove dead code.
20037
20038 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20039
20040 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
20041 the internal register number, for any "real" register.
20042
20043 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20044
20045 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
20046 correct numbers for TFHAR, TFIAR, TEXASR.
20047
20048 2019-05-02 Richard Biener <rguenther@suse.de>
20049
20050 PR tree-optimization/89653
20051 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
20052 update-address-taken before the pass.
20053 * passes.def (pass_tree_loop_init): Put comment before it.
20054
20055 2019-05-02 Richard Biener <rguenther@suse.de>
20056
20057 PR tree-optimization/89509
20058 * tree-ssa-structalias.c (compute_dependence_clique): Look
20059 at the first subvar when determining whether it is restrict.
20060
20061 2019-05-02 Richard Biener <rguenther@suse.de>
20062
20063 PR tree-optimization/90273
20064 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
20065 useless debug stmts.
20066
20067 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20068
20069 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
20070 ACLE branch.
20071 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
20072 SVE ACLE branch.
20073 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
20074 VEC_COND_EXPR be inserted to emulate a conditional internal function.
20075 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
20076 (vectorizable_reduction): Use the functions above to vectorize in a
20077 fully masked loop codes that don't have a conditional internal
20078 function.
20079
20080 2019-05-02 Martin Liska <mliska@suse.cz>
20081
20082 * cgraphclones.c: Call valid_attribute_p with 1 for
20083 target_clone.
20084 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20085 it's for target attribute.
20086 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20087 Add new boolean argument.
20088 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20089 Likewise.
20090 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20091 to ix86_valid_target_attribute_inner_p.
20092 (ix86_valid_target_attribute_p): Pass flags argument to
20093 ix86_valid_target_attribute_inner_p.
20094 (get_builtin_code_for_version): Use 0 as it's target attribute.
20095
20096 2019-05-02 Martin Liska <mliska@suse.cz>
20097
20098 * gcc.c (process_command): Add dummy file only
20099 if n_infiles == 0.
20100 * opts-global.c (decode_options): Pass lang_mask.
20101 * opts.c (print_help): New function.
20102 (finish_options): Print --help if help_option_argument
20103 is set.
20104 (common_handle_option): Factor out content of OPT__help_
20105 into print_help.
20106 * opts.h (finish_options): Add new argument.
20107
20108 2019-05-02 Martin Liska <mliska@suse.cz>
20109
20110 PR target/88809
20111 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20112 With -minline-all-stringops use inline expansion using 4B loop.
20113 * doc/invoke.texi: Document the change of
20114 -minline-all-stringops.
20115
20116 2019-05-01 Jeff Law <law@redhat.com>
20117
20118 PR tree-optimization/88797
20119 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20120 PHI feeds a conditional on the RHS of an assignment.
20121
20122 2019-04-30 Andrew Waterman <andrew@sifive.com>
20123 Jim Wilson <jimw@sifive.com>
20124
20125 * config/riscv/constraints.md (L): New.
20126 * config/riscv/predicates.md (lui_operand): New.
20127 (sfb_alu_operand): New.
20128 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20129 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20130 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20131 * config/riscv/risc.md (type): Add sfb_alu.
20132 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20133 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20134 (branch_zero<mode>): Delete.
20135 (mov<mode>cc): New.
20136 (mov<GPR:mode><X:mode>cc): Likewise.
20137 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20138
20139 2019-04-30 Nathan Sidwell <nathan@acm.org>
20140
20141 * tree.h (MARK_TS_EXP): New.
20142
20143 2019-04-30 Martin Liska <mliska@suse.cz>
20144
20145 * opts.c (enable_warning_as_error): Provide hints
20146 for unknown options.
20147
20148 2019-04-30 Martin Liska <mliska@suse.cz>
20149
20150 PR debug/90288
20151 * doc/invoke.texi: Add missing dash for gas-locview-support
20152 and gno-as-locview-support.
20153
20154 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20155
20156 PR target/89093
20157 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20158 whitespace at the start of target attribute string.
20159
20160 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20161
20162 PR target/86538
20163 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20164 Define __ARM_FEATURE_ATOMICS.
20165
20166 2019-04-30 Martin Liska <mliska@suse.cz>
20167
20168 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20169 into built_in_function enum. Remove code for endp == 2 and
20170 use BUILT_IN_* constants.
20171 (gimple_fold_builtin): Call the function with fcode.
20172
20173 2019-04-30 Martin Liska <mliska@suse.cz>
20174
20175 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20176 DECL_FUNCTION_CODE into ix86_builtins enum before
20177 the switch statement.
20178
20179 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20180
20181 PR tree-optimization/89475
20182 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20183 calls.
20184
20185 2019-04-30 Martin Liska <mliska@suse.cz>
20186
20187 PR translation/90274
20188 * opts.c (print_filtered_help): Wrap string in _(...).
20189
20190 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20191
20192 PR tree-optimization/90240
20193 Revert:
20194 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20195
20196 PR tree-optimization/90078
20197 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20198 checks for infinite_cost overflow.
20199
20200 2019-04-29 Jeff Law <law@redhat.com>
20201
20202 * passes.def: Move -Wrestrict pass after copy propagation.
20203
20204 2019-04-29 Maya Rashish <coypu@sdf.org>
20205
20206 * config.gcc (default_gnu_indirect_function): Default to yes
20207 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20208 sparc*-*-netbsd*, x86_64-*-netbsd*.
20209
20210 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20211
20212 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20213 where cond2 is NE_EXPR.
20214 (is_value_included_in): Update comment.
20215
20216 2019-04-29 Richard Biener <rguenther@suse.de>
20217
20218 PR tree-optimization/90278
20219 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20220 EH on comparison simplification.
20221
20222 2019-04-29 Jason Merrill <jason@redhat.com>
20223
20224 PR c++/82081 - tail call optimization breaks noexcept
20225 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20226 nothrow function to a might-throw function into a tail call.
20227
20228 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20229
20230 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20231 (DDR_INNER_LOOP): Likewise.
20232 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20233 (initialize_data_dependence_relation): Likewise.
20234 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20235
20236 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20237
20238 PR rtl-optimization/90257
20239 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20240 return value.
20241
20242 Revert the revert:
20243 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20244
20245 PR target/90178
20246 Revert:
20247 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20248
20249 Revert the revert:
20250 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20251
20252 Revert:
20253 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20254
20255 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20256
20257 2019-04-29 Richard Biener <rguenther@suse.de>
20258
20259 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20260 rhs issue a reset.
20261
20262 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20263
20264 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20265 varasm.h, and netbsd-protos.h.
20266
20267 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20268
20269 PR target/89261
20270 * config/i386/i386-protos.h (ix86_data_alignment): Change
20271 the second argument type to unsigned int.
20272 * config/i386/i386.c (ix86_data_alignment): Change "align"
20273 argument type to unsigned int.
20274
20275 2019-04-27 Martin Liska <mliska@suse.cz>
20276
20277 PR middle-end/90258
20278 * opt-suggestions.c (option_proposer::build_option_suggestions):
20279 When get_valid_option_values returns empty values, add the
20280 misspelling candidate.
20281
20282 2019-04-26 Jim Wilson <jimw@sifive.com>
20283
20284 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20285 parameter.
20286 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20287 Pass orig_mode to riscv_build_integer.
20288 (riscv_split_integer): Pass mode to riscv_move_integer.
20289 (riscv_legitimize_const_move): Likewise.
20290 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20291 promoted_mode. Replace force_reg call with code to load constant into
20292 promoted reg and then subreg it for the store.
20293 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20294 riscv_move_integer.
20295
20296 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20297
20298 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20299 corrupt codes.
20300
20301 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20302
20303 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20304 commentary about the encoding of precision.
20305
20306 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20307
20308 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20309 * config/i386/t-freebsd64: New file.
20310 * config.gcc: Add the t-freebsd64 for multilib support.
20311
20312 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20313
20314 * doc/extend.texi (vector_size): Add missing comma after @xref.
20315
20316 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20317
20318 * BASE-VER: Set to 10.0.0.
20319
20320 2019-04-25 Richard Biener <rguenther@suse.de>
20321
20322 PR middle-end/89765
20323 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20324 VIEW_CONVERT_EXPR into one operating on an rvalue.
20325
20326 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20327
20328 PR target/89929
20329 * config/i386/i386.c (feature_priority): Moved to file scope.
20330 (processor_features): Likewise.
20331 (processor_model): Likewise.
20332 (_arch_names_table): Likewise.
20333 (arch_names_table): Likewise.
20334 (_feature_list): Removed.
20335 (feature_list): Likewise.
20336 (_isa_names_table): Moved to file scope. Add priority.
20337 (isa_names_table): Likewise.
20338 (get_builtin_code_for_version): Replace feature_list with
20339 isa_names_table. Update error message for P_ZERO priority.
20340
20341 2019-04-25 Richard Biener <rguenther@suse.de>
20342
20343 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20344 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20345
20346 2019-04-24 Jeff Law <law@redhat.com>
20347
20348 PR tree-optimization/90037
20349 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20350 * passes.def: Replace all instance of phi-only cprop with the
20351 lattice propagator. Move propagation pass from after erroneous
20352 path isolation to before erroneous path isolation.
20353 * tree-ssa-phionlycprop.c: Remove.
20354
20355 2019-04-24 Richard Biener <rguenther@suse.de>
20356
20357 PR middle-end/90213
20358 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20359 by size and BITS_PER_UNIT on poly-wide-ints.
20360
20361 2019-04-25 Richard Biener <rguenther@suse.de>
20362
20363 PR middle-end/90194
20364 * match.pd: Add pattern to simplify view-conversion of an
20365 empty constructor.
20366
20367 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20368
20369 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20370 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20371 for Go on 32 bit AIX.
20372 * config/rs6000/aix72.h: Likewise.
20373
20374 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20375
20376 PR target/90193
20377 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20378 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20379
20380 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20381
20382 PR target/89952
20383 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20384 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20385 for restored hard frame pointer.
20386 (s390_sched_dependencies_evaluation): Implement new target hook.
20387 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20388
20389 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20390
20391 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20392 * config/arc/arc.c (arc_init): Cleanup warning message.
20393 (arc_override_options): Likewise.
20394
20395 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20396
20397 PR target/90187
20398 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20399 a register if both if_true and if_false are MEMs.
20400
20401 PR tree-optimization/90208
20402 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20403 after labels of new_bb, not before them.
20404
20405 PR tree-optimization/90211
20406 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20407 which are not SSA_NAMEs.
20408
20409 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20410
20411 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20412 AArch64.
20413 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20414
20415 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20416
20417 PR rtl-optimization/87979
20418 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20419 not equal zero.
20420
20421 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20422
20423 PR rtl-optimization/84032
20424 * modulo-sched.c (ps_insn_find_column): Change condition so that
20425 branch will always be the last insn in a row inside partial
20426 schedule.
20427
20428 2019-04-23 Richard Biener <rguenther@suse.de>
20429
20430 PR debug/90131
20431 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20432 dest_single_pred_p argument.
20433 (remove_forwarder_block): Adjust.
20434 (remove_forwarder_block_with_phi): Likewise.
20435
20436 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20437 Bernd Edlinger <bernd.edlinger@hotmail.de>
20438 Jakub Jelinek <jakub@redhat.com>
20439
20440 PR target/89093
20441 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20442 if used with general-regs-only.
20443 (arm_conditional_register_usage): Don't add non-general regs if
20444 general-regs-only.
20445 (arm_valid_target_attribute_rec): Handle general-regs-only.
20446 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20447 general-regs-only.
20448 (TARGET_HARD_FLOAT_SUB): Define.
20449 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20450 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20451 (TARGET_REALLY_IWMMXT2): Likewise.
20452 * config/arm/arm.opt: Add -mgeneral-regs-only.
20453 * doc/extend.texi: Document ARM general-regs-only target.
20454 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20455
20456 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20457
20458 PR tree-optimization/90078
20459 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20460 checks for infinite_cost overflow.
20461
20462 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20463
20464 PR tree-optimization/90021
20465 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20466 and check univariate against it.
20467 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20468 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20469
20470 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20471
20472 PR target/90178
20473 Revert:
20474 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20475
20476 Revert the revert:
20477 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20478
20479 Revert:
20480 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20481
20482 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20483
20484 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20485
20486 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20487 names using operand format, rather than hard-wired.
20488 (speculation_barrier): Likewise.
20489
20490 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20491
20492 PR tree-optimization/88055
20493 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20494 (gen_one_condition): Use it if !HONOR_NANS.
20495
20496 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20497
20498 PR middle-end/90139
20499 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20500 assign_temp instead of gen_reg_rtx.
20501
20502 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20503
20504 PR translation/90118
20505 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20506 Add missing space before %<.
20507
20508 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20509
20510 PR rtl-optimization/87871
20511 * ira-lives.c (make_object_dead): Don't add conflicts to
20512 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20513
20514 2019-04-18 Martin Sebor <msebor@redhat.com>
20515
20516 PR middle-end/89797
20517 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20518 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20519 assuming type size fits in SHWI.
20520
20521 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20522
20523 PR ipa/85051
20524 * ipa-inline.c (flatten_function): New parameter UPDATE.
20525 (ipa_inline, early_inliner): Use it.
20526
20527 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20528
20529 * fold-const.c (int_const_binop): Return early on failure.
20530
20531 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20532
20533 PR middle-end/85164
20534 * combine.c (force_int_to_mode): Cast the argument rather than
20535 the result of known_alignment.
20536 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20537
20538 2019-04-18 Richard Biener <rguenther@suse.de>
20539
20540 PR debug/90131
20541 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20542 out from ...
20543 (remove_forwarder_block): ... here.
20544 (remove_forwarder_block_with_phi): Also move debug stmts here.
20545
20546 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20547
20548 PR translation/79183
20549 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20550 inform where appropriate.
20551
20552 2019-04-18 Richard Biener <rguenther@suse.de>
20553
20554 * tree.c (get_qualified_type): Put found type variants at the
20555 head of the variant list.
20556
20557 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20558
20559 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20560
20561 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20562
20563 PR target/90125
20564 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20565 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20566 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20567 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20568 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20569
20570 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20571
20572 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20573 even for allocno's with no conflicts.
20574 (print_conflicts): Print an extra newline.
20575
20576 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20577
20578 * auto-inc-dec.c (attempt_change): Set the alignment of the
20579 temporary memory to that of the original.
20580
20581 2019-04-17 Joao Moreira <jmoreira@suse.de>
20582
20583 * targhooks.c (default_print_patchable_function_entry): Emit
20584 __patchable_function_entries section with writable flags to allow
20585 relocation resolution.
20586
20587 2019-04-17 Jonny Grant <jg@jguk.org>
20588
20589 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20590
20591 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20592
20593 PR middle-end/90095
20594 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20595 on lowpart SUBREGs.
20596
20597 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20598
20599 * config/arc/arc.c (arc_init): Format diagnostic string.
20600 (arc_override_options): Likewise.
20601 (check_if_valid_regno_const): Likewise.
20602 (arc_reorg): Likewise.
20603
20604 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20605
20606 PR target/17108
20607 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20608 name.
20609 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20610 name.
20611 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20612 (*movdi_update1): Use Pmode.
20613 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20614 (movdi_<mode>_update_stack): Rename to ...
20615 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20616 use Pmode.
20617 (*movsi_update1): Use Pmode.
20618 (*movsi_update2): Use Pmode.
20619 (movsi_update): Rename to ...
20620 (movsi_<mode>_update): ... this. Use Pmode.
20621 (movsi_update_stack): Fix condition.
20622 (*movhi_update1): Use Pmode. Fix argument to
20623 avoiding_indexed_address_p.
20624 (*movhi_update2): Ditto.
20625 (*movhi_update3): Ditto.
20626 (*movhi_update4): Ditto.
20627 (*movqi_update1): Ditto.
20628 (*movqi_update2): Ditto.
20629 (*movqi_update3): Ditto.
20630 (*movsf_update1, *movdf_update1): Merge, rename to...
20631 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20632 avoiding_indexed_address_p. Add "size" attribute.
20633 (*movsf_update2, *movdf_update2): Merge, rename to...
20634 (*mov<mode>_update2): This. Ditto.
20635 (*movsf_update3): Use Pmode. Fix argument to
20636 avoiding_indexed_address_p.
20637 (*movsf_update4): Ditto.
20638 (allocate_stack): Simplify condition. Adjust pattern names.
20639
20640 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20641
20642 PR target/89093
20643 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20644 whitespace at the start of target attribute string.
20645
20646 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20647
20648 PR target/84369
20649 * config/rs6000/power9.md: Add store forwarding bypass.
20650
20651 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20652
20653 PR debug/89528
20654 * valtrack.c (dead_debug_insert_temp): Reset debug references
20655 to the return value of a call being removed.
20656
20657 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20658
20659 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20660 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20661 implement target hook.
20662 (arc_memory_move_cost): New function.
20663 (TARGET_REGISTER_MOVE_COST): Define.
20664 (TARGET_MEMORY_MOVE_COST): Likewise.
20665 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20666 (MEMORY_MOVE_COST): Likewise.
20667
20668 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20669
20670 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20671 (sibcall_value_insn): Likewise.
20672 * config/arc/constraints.md (Rs5): Remove.
20673
20674 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20675
20676 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20677 for last two fake registers.
20678 (arc_conditional_register_usage): Make sure fake frame and arg
20679 pointer regs are in general regs class.
20680 (FRAME_POINTER_MASK): Remove.
20681 (RETURN_ADDR_MASK): Remove.
20682 (arc_must_save_register): Use hard frame regnum.
20683 (frame_restore_reg): Use hard_frame_pointer_rtx.
20684 (arc_save_callee_saves): Likewise.
20685 (arc_restore_callee_saves): Likewise.
20686 (arc_save_callee_enter): Likewise.
20687 (arc_restore_callee_leave): Likewise.
20688 (arc_save_callee_milli): Likewise.
20689 (arc_eh_return_address_location): Likewise.
20690 (arc_check_multi): Use hard frame regnum.
20691 (arc_can_eliminate): Likewise.
20692 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20693 for register allocator.
20694 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20695 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20696 (FRAME_POINTER_REGNUM): Change it to a fake register.
20697 (HARD_FRAME_POINTER_REGNUM): Defined.
20698 (ARG_POINTER_REGNUM): Change it to a new fake register.
20699 (ELIMINABLE_REGS): Update.
20700 (REGISTER_NAMES): Update names.
20701 * config/arc/arc.md (LP_START): Remove.
20702 (LP_END): Likewise.
20703 (shift_si3_loop): Update pattern.
20704
20705 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20706
20707 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20708 to avoid delay slot scheduling.
20709 (arc_must_save_register): Don't save SP.
20710 * config/arc/arc.md (stack_tie): Remove.
20711 (UNSPEC_ARC_STKTIE): Likewise.
20712
20713 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20714 Shiva Chen <shiva0217@gmail.com>
20715
20716 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20717 code gen with large shift amount.
20718
20719 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20720
20721 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20722 subreg.
20723
20724 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20725
20726 PR target/90096
20727 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20728 print -m64/-mx32/-m32 if it is true.
20729 (ix86_debug_options, ix86_function_specific_print): Pass true as
20730 ADD_ABI_P to ix86_target_string.
20731 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20732 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20733 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20734
20735 PR rtl-optimization/90082
20736 * dce.c (can_delete_call): New function.
20737 (deletable_insn_p, mark_insn): Use it.
20738
20739 PR tree-optimization/90090
20740 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20741 throw internally.
20742 (is_division_by_square): Likewise. Formatting fix.
20743
20744 2019-04-16 Richard Biener <rguenther@suse.de>
20745
20746 PR tree-optimization/56049
20747 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20748 equality check if alias-set zero will prevail.
20749
20750 2019-04-15 Jeff Law <law@redhat.com>
20751
20752 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20753 size and alignment as unsigned.
20754
20755 2019-04-15 Richard Biener <rguenther@suse.de>
20756
20757 PR debug/90074
20758 * tree-loop-distribution.c (destroy_loop): Preserve correct
20759 debug info.
20760
20761 2019-04-15 Richard Biener <rguenther@suse.de>
20762
20763 PR tree-optimization/90071
20764 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20765 abnormal operands from def stmts.
20766
20767 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20768
20769 PR rtl-optimization/89794
20770 * combine.c (count_auto_inc): New function.
20771 (try_combine): Count how many auto_inc expressions there were in the
20772 original instructions. Ensure we have the same number in the new
20773 instructions. Remove the code that tried to ensure auto_inc side
20774 effects on i1 and i0 are not lost.
20775
20776 2019-04-15 Richard Biener <rguenther@suse.de>
20777
20778 PR ipa/88936
20779 * tree.h (auto_var_p): Declare.
20780 * tree.c (auto_var_p): New function, split out from ...
20781 (auto_var_in_fn_p): ... here.
20782 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20783 member.
20784 (new_var_info): Initialize it.
20785 (set_uids_in_ptset): Also set the shadow variable uid if required.
20786 (ipa_pta_execute): Postprocess points-to solutions assigning
20787 shadow variable uids for locals that may reach their containing
20788 function recursively.
20789 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20790 assert but instead check whether the points-to solution is
20791 a singleton.
20792
20793 2019-04-15 Martin Jambor <mjambor@suse.cz>
20794
20795 PR ipa/pr89693
20796 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20797 the thunk chain.
20798
20799 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20800
20801 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20802
20803 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20804 Kito Cheng <kito.cheng@gmail.com>
20805 Shiva Chen <shiva0217@gmail.com>
20806
20807 * config/nds32/nds32-md-auxiliary.c
20808 (nds32_legitimize_pic_address): Use new PIC pattern.
20809 (nds32_legitimize_tls_address): Use new TLS pattern.
20810 (nds32_output_symrel): New.
20811 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20812 (nds32_alloc_relax_group_id): Ditto.
20813 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20814 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20815 relax_group_id.
20816 (nds32_group_tls_insn): Ditto.
20817 (nds32_group_float_insns): Ditto.
20818 * config/nds32/nds32.md (tls_le): New.
20819 (sym_got): Ditto.
20820
20821 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20822
20823 * configure: Add nds32 target for dwarf2 debug_line checking.
20824 * configure.ac: Regenerated.
20825
20826 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20827
20828 PR lto/89358
20829 * ipa-devirt.c (skip_in_fields_list_p): New.
20830 (odr_types_equivalent_p): Use it.
20831
20832 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20833
20834 PR target/89093
20835 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20836 instead of strncmp when checking for thumb and arm. Formatting fixes.
20837
20838 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20839
20840 * doc/install.texi: Document --with-target-system-zlib.
20841
20842 2019-04-12 Martin Sebor <msebor@redhat.com>
20843
20844 PR c/88383
20845 PR c/89288
20846 PR c/89798
20847 PR c/89797
20848 * targhooks.c (default_vector_alignment): Avoid assuming
20849 argument fits in SHWI.
20850 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20851 a shift expression.
20852 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20853
20854 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20855
20856 PR rtl-optimization/89965
20857 * dce.c: Include rtl-iter.h.
20858 (struct check_argument_load_data): New type.
20859 (check_argument_load): New function.
20860 (find_call_stack_args): Check for loads from stack slots still tracked
20861 in sp_bytes and punt if any is found.
20862
20863 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20864
20865 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20866
20867 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20868 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20869
20870 2019-04-12 Martin Liska <mliska@suse.cz>
20871
20872 PR middle-end/89970
20873 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20874 in error message.
20875 (separate_attrs): Handle multiple 'default's.
20876 (expand_target_clones): Rework error handling code.
20877
20878 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20879
20880 PR target/87532
20881 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20882 mode of vector rather than mode of destination for move instruction.
20883 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20884 Use QI inner mode with V16QI vector mode.
20885
20886 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20887
20888 PR target/52726
20889 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20890 "invalid %%t operand" in output_operand_lossage message.
20891
20892 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20893
20894 * config/s390/predicates.md (permute_pattern_operand): New
20895 predicate.
20896 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20897 operand for the permute pattern.
20898 ("*vec_perm<mode>"): New insn definition.
20899 ("bswap<mode>"): Generate the permute pattern operand in the
20900 expander and perform the operand reloads for pre arch13 level
20901 already.
20902 ("*bswap<mode>_emu"): Rename to ...
20903 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20904 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20905 Add the USE operand for the permute pattern.
20906 ("*vec_set_bswap_vec<mode>"): Likewise.
20907
20908 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20909
20910 PR c/89946
20911 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20912 and gcc_unreachable if it fails, just call tree_to_uhwi which
20913 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20914 Start warning message with a lower-case letter. Formatting fixes.
20915
20916 PR rtl-optimization/90026
20917 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20918 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20919 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20920 in cfglayout mode, use emit_barrier_after_bb.
20921
20922 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20923
20924 PR rtl-optimization/87763
20925 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20926 New Instruction.
20927
20928 2019-04-11 Tom de Vries <tdevries@suse.de>
20929
20930 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20931 max macro using statement expression.
20932
20933 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20934
20935 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20936 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20937 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20938 read_only_private_data_section using xcoff_private_rodata_section_name.
20939 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20940
20941 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20942
20943 PR target/90016
20944 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20945
20946 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20947
20948 PR rtl-optimization/89965
20949 * dce.c (sp_based_mem_offset): New function.
20950 (find_call_stack_args): Use sp_based_mem_offset.
20951
20952 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20953
20954 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20955
20956 2019-04-11 Richard Biener <rguenther@suse.de>
20957
20958 PR tree-optimization/90020
20959 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20960 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20961 * tree-ssa-pre.c (compute_avail): Use it to not put
20962 possibly trapping references after a call that might not
20963 return into EXP_GEN.
20964 * gcse.c (compute_hash_table_work): Do not elide
20965 marking a block containing a call if the call might not
20966 return.
20967
20968 2019-04-11 Richard Biener <rguenther@suse.de>
20969
20970 PR tree-optimization/90018
20971 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20972 Test both SLP and interleaving variants.
20973
20974 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20975
20976 * config/s390/8561.md: New file.
20977 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20978 Add arch13 cpu model.
20979 * config/s390/s390-opts.h (enum processor_type): Likewise.
20980 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20981 (s390_get_unit_mask): Likewise.
20982 (s390_is_fpd): Likewise.
20983 (s390_is_fxd): Likewise.
20984 * config/s390/s390.h (s390_tune_attr): Likewise.
20985 * config/s390/s390.md: Include arch13 pipeline description.
20986 * config/s390/s390.opt: Add arch13.
20987
20988 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20989
20990 PR rtl-optimization/87763
20991 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20992 New prototype.
20993 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20994 New function.
20995 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20996 New instruction.
20997 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20998 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20999 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
21000 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
21001
21002 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
21003
21004 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
21005 "Although" in -fipa-icf documentation.
21006
21007 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
21008 of using multiple -g options.
21009
21010 2019-04-10 Martin Liska <mliska@suse.cz>
21011
21012 PR gcov-profile/89959
21013 * doc/gcov.texi: Make documentation of -x option
21014 more precise.
21015
21016 2019-04-10 Richard Biener <rguenther@suse.de>
21017
21018 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
21019 member.
21020 (DR_GROUP_SAME_DR_STMT): Remove.
21021 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
21022 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
21023 replace with assert.
21024 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
21025 (vect_record_grouped_load_vectors): Remove unreachable code.
21026
21027 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
21028
21029 PR target/90016
21030 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
21031 obsolete reference to N.
21032
21033 2019-04-10 Jakub Jelinek <jakub@redhat.com>
21034
21035 PR middle-end/90025
21036 * expr.c (store_expr): Set properly size on the MEM passed to
21037 clear_storage.
21038
21039 PR c++/90010
21040 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
21041 with strlen in between hostsz-3 and hostsz-1 inclusive when no
21042 translation is needed, and when translation is needed, only append
21043 ... if the string length is hostsz or more bytes long. Avoid using
21044 strncpy or strcat.
21045
21046 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
21047
21048 PR target/90024
21049 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
21050 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
21051 into three.
21052 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
21053 differences directly.
21054 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
21055
21056 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21057
21058 PR translation/90011
21059 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21060 from diagnostics.
21061 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
21062 diagnostics.
21063 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21064 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
21065 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
21066 trailing space from -gsplit-dwarf diagnostics.
21067
21068 PR tree-optimization/89998
21069 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
21070 instead of integer_type_node if possible, don't add ranges if return
21071 type is not compatible with int.
21072 * gimple-fold.c (gimple_fold_builtin_sprintf,
21073 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
21074 integer_type_node.
21075
21076 2019-04-09 Martin Liska <mliska@suse.cz>
21077
21078 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
21079 * doc/install.texi: Document the new config.
21080
21081 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
21082
21083 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21084 use gimple_expr_type for load and store calls. Skip over the
21085 condition argument in a conditional internal function.
21086 Protect use of TREE_INT_CST_LOW.
21087
21088 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21089
21090 PR target/90015
21091 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21092 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21093 trailing period from it too.
21094
21095 2019-04-08 wu yuan <wuyuan5@huawei.com>
21096
21097 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21098 * config/aarch64/aarch64.md : Add "tsv110.md"
21099 * config/aarch64/tsv110.md: New file.
21100
21101 2019-04-08 Richard Biener <rguenther@suse.de>
21102
21103 PR tree-optimization/90006
21104 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21105 calls like lrint.
21106
21107 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21108
21109 PR target/83033
21110 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21111 construction.
21112 (fma_root_node): Likewise.
21113 (func_fma_steering): Likewise.
21114
21115 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21116
21117 PR rtl-optimization/89865
21118 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21119
21120 PR rtl-optimization/89865
21121 * config/i386/i386.md
21122 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21123 numbers not to clash with the additional operands[4].
21124 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21125 with extra register copy in the middle.
21126
21127 2019-04-08 Martin Liska <mliska@suse.cz>
21128
21129 PR gcov-profile/89961
21130 * doc/gcov.texi: Document data_file.
21131 * gcov.c (generate_results): Add data_info into JSON output.
21132
21133 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21134
21135 PR tree-optimization/89725
21136 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21137 loop's chrec as invariant symbol.
21138 * tree-chrec.h (chrec_contains_symbols): New parameter.
21139 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21140 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21141 function of loops not in DDR's loop_nest.
21142 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21143
21144 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21145
21146 PR target/89623
21147 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21148 Mask.
21149
21150 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21151
21152 PR target/89945
21153 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21154 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21155
21156 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21157
21158 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21159 targetm.fixed_condition_code_regs.
21160
21161 2019-04-05 Richard Biener <rguenther@suse.de>
21162
21163 PR debug/89892
21164 PR debug/89905
21165 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21166 debug bind stmts but reset them if they are not valid at the
21167 destination.
21168
21169 2019-04-05 Martin Liska <mliska@suse.cz>
21170
21171 PR translation/89936
21172 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21173 order to wrap keywords or arguments.
21174 * collect2.c (main): Likewise.
21175 (scan_prog_file): Likewise.
21176 (scan_libraries): Likewise.
21177 * common/config/riscv/riscv-common.c
21178 (riscv_subset_list::parsing_subset_version): Likewise.
21179 (riscv_subset_list::parse_std_ext): Likewise.
21180 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21181 Likewise.
21182 * config/arm/arm.c (arm_option_override): Likewise.
21183 * config/cris/cris.c (cris_print_operand): Likewise.
21184 * config/darwin-c.c (darwin_pragma_options): Likewise.
21185 (darwin_pragma_unused): Likewise.
21186 (darwin_pragma_ms_struct): Likewise.
21187 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21188 * config/i386/i386.c (print_reg): Likewise.
21189 (ix86_print_operand): Likewise.
21190 * config/i386/xm-djgpp.h: Likewise.
21191 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21192 * config/m32c/m32c.c (m32c_option_override): Likewise.
21193 * config/msp430/msp430.c (msp430_option_override): Likewise.
21194 * config/nds32/nds32.c (nds32_option_override): Likewise.
21195 * config/nvptx/mkoffload.c (main): Likewise.
21196 * config/rx/rx.c (rx_print_operand): Likewise.
21197 (valid_psw_flag): Likewise.
21198 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21199 (vms_pragma_nomember_alignment): Likewise.
21200 (vms_pragma_extern_model): Likewise.
21201 * lto-wrapper.c (compile_offload_image): Likewise.
21202 * omp-offload.c (oacc_parse_default_dims): Likewise.
21203 * symtab.c (symtab_node::verify_base): Likewise.
21204 * tlink.c (recompile_files): Likewise.
21205 (start_tweaking): Likewise.
21206 * tree-profile.c (parse_profile_filter): Likewise.
21207
21208 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21209
21210 PR tree-optimization/89956
21211 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21212 multiple negates of the same value.
21213
21214 2019-04-04 Martin Sebor <msebor@redhat.com>
21215
21216 PR middle-end/89957
21217 PR middle-end/89911
21218 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21219 have the same precision since the function crashes otherwise.
21220 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21221 has non-zero arguments.
21222
21223 2019-04-04 Martin Sebor <msebor@redhat.com>
21224
21225 PR middle-end/89934
21226 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21227 out if the number of arguments is less than expected.
21228
21229 2019-04-04 Jeff Law <law@redhat.com>
21230
21231 PR rtl-optimization/89399
21232 * ree.c (combine_set_extension): Use single_set rather than
21233 digging into PATTERN for items on the candidate list.
21234 (combine_reaching_defs): Likewise.
21235
21236 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21237
21238 PR rtl-optimization/46590
21239 * loop-invariant.c (find_defs): Move df_remove_problem and
21240 df_process_deferred_rescans to move_invariants.
21241 Move df_live_add_problem and df_live_set_all_dirty calls
21242 to move_invariants.
21243 (move_invariants): Likewise.
21244 (move_loop_invariants): Likewise, making the df_live calls
21245 conditional on -O. Remove the problem again if we added it
21246 locally.
21247
21248 2019-04-03 qing zhao <qing.zhao@oracle.com>
21249
21250 PR tree-optimization/89730
21251 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21252 -flive-patching=inline-only-static.
21253 (can_inline_edge_by_limits_p): Add the checking for
21254 -flive-patching=inline-only-static and grant always_inline
21255 even when -flive-patching=inline-only-static is specified.
21256
21257 2019-04-03 Jeff Law <law@redhat.com>
21258
21259 PR rtl-optimization/81025
21260 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21261
21262 2019-04-03 Richard Biener <rguenther@suse.de>
21263
21264 PR tree-optimization/84101
21265 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21266 regs.h for hard_regno_nregs.
21267 (cfun_returns): New helper.
21268 (vect_model_store_cost): When vectorizing a store to a decl
21269 we return and the function ABI returns in a multi-reg location
21270 account for the possible spilling that will happen.
21271
21272 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21273
21274 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21275 displacement addresses for vector mode operands.
21276
21277 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21278
21279 * config/arc/arc.c (GMASK_LEN): Define.
21280 (arc_restore_callee_saves): Restore first blink when
21281 !optimize_size.
21282
21283 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21284
21285 * doc/extend.texi: Add deprecated comment on sign-return-address
21286 function attribute and add mbranch-protection.
21287 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21288
21289 2019-04-03 Richard Biener <rguenther@suse.de>
21290
21291 PR lto/89896
21292 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21293 the all target phony.
21294
21295 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21296
21297 PR target/89902
21298 PR target/89903
21299 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21300 Return false for variable DImode shifts.
21301 (dimode_scalar_chain::compute_convert_gain): Do not handle
21302 register count operand in variable DImode shifts.
21303 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21304 count argument of a variable shift instruction to a vector register.
21305 (dimode_scalar_chain::convert_reg): Remove support to convert
21306 count argument of a variable shift instruction.
21307
21308 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21309
21310 PR rtl-optimization/84206
21311 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21312 iterating over loop headers.
21313
21314 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21315
21316 PR rtl-optimization/85876
21317 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21318 beyond the original fence.
21319
21320 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21321
21322 * config.gcc: Mark spu* targets as deprecated/obsolete.
21323
21324 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21325
21326 * config/s390/s390-builtin-types.def: New builtin function type
21327 definitions. Remove unused types.
21328 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21329 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21330 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21331 overloaded builtins.
21332 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21333 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21334 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21335 (vec_double, vec_signed, vec_unsigned): Define to use the new
21336 overloaded builtins.
21337 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21338 Remove expanders.
21339
21340 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21341
21342 * config/s390/s390-builtin-types.def: New builtin function type
21343 definitions.
21344 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21345 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21346 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21347 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21348 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21349 constant definitions.
21350 * config/s390/vecintrin.h (vec_search_string_cc)
21351 (vec_search_string_until_zero_cc): New builtin name definitions.
21352 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21353 expanders.
21354 ("vec_vstrs<mode>"): New insn definition.
21355
21356 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21357
21358 * config/s390/s390-builtin-types.def: Add new builtin function
21359 types.
21360 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21361 New overloaded builtins.
21362 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21363 s390_vsrd.
21364 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21365 (UNSPEC_VEC_SLDBYTE): ... this.
21366 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21367 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21368 definitions.
21369 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21370 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21371 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21372
21373 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21374
21375 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21376 New insn definition.
21377 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21378 * config/s390/vector.md (V_HW_HSD): ... here.
21379
21380 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21381
21382 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21383 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21384 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21385 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21386 New insn definitions.
21387
21388 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21389
21390 * config/s390/s390-builtin-types.def: Add new builtin function type.
21391 * config/s390/s390-builtins.def: Add overloaded builtin
21392 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21393 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21394 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21395 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21396 ("eltswap<mode>"): New expander.
21397 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21398 insn definitions.
21399
21400 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21401
21402 * config/s390/s390-builtin-types.def: Add new builtin function types.
21403 * config/s390/s390-builtins.def: Add overloaded builtin
21404 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21405 instructions.
21406 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21407 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21408 ("bswap<mode>"): New expander.
21409 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21410
21411 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21412
21413 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21414 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21415 vector builtin version number in __VEC__.
21416
21417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21418
21419 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21420 iterators.
21421 (SFSI): New mode attribute.
21422 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21423 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21424 rename to ...
21425 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21426 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21427 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21428 ("floatsi<mode>2"): Add wcefb instruction.
21429
21430 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21431
21432 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21433 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21434 mode iterators.
21435 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21436 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21437 support 32 bit fp-int conversions. Rename to ...
21438 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21439 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21440 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21441 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21442 ... to these.
21443
21444 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21445
21446 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21447 if-then-else constructs if we can use the select instruction.
21448 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21449
21450 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21451
21452 * config/s390/s390.md ("*popcountdi_arch13_cc")
21453 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21454 definition.
21455 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21456 Append _z196 to make it ...
21457 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21458 ("popcounthi2_z196"): ... this.
21459 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21460 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21461
21462 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21463
21464 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21465 certain compares for arch13 in order to make use of the condition
21466 code result produced by the new instructions.
21467 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21468 nxrk, and nxgrk instruction patterns.
21469 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21470 (inv_no): Add new code iterator together with some attributes.
21471 ("*andc_split_<mode>"): Disable splitter for arch13.
21472 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21473 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21474 ("*<ANDOR:bitops_name>c<GPR:mode>")
21475 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21476 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21477 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21478 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21479
21480 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21481
21482 * common/config/s390/s390-common.c (processor_flags_table): New
21483 entry for arch13.
21484 * config.gcc: Support arch13 with the --with-arch= configure flag.
21485 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21486 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21487 * config/s390/s390.c (s390_get_sched_attrmask)
21488 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21489 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21490 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21491 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21492 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21493 definitions.
21494 * config/s390/s390.opt: Support arch13 as processor type in
21495 command line options.
21496
21497 2019-04-02 Martin Liska <mliska@suse.cz>
21498
21499 PR translation/89912
21500 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21501 Fix param description of graphite-max-arrays-per-scop.
21502
21503 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21504
21505 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21506 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21507 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21508
21509 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21510
21511 PR rtl-optimization/85412
21512 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21513 sel_sched_region_1, not after.
21514
21515 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21516
21517 PR rtl-optimization/86928
21518 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21519 compute_live if necessary.
21520 (sel_redirect_edge_and_branch): Likewise.
21521
21522 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21523
21524 PR rtl-optimization/89865
21525 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21526 register if it is a part of small class.
21527
21528 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21529
21530 PR rtl-optimization/87273
21531 * sel-sched-ir.c (merge_fences): Remove assert.
21532
21533 2019-04-01 Richard Biener <rguenther@suse.de>
21534
21535 PR tree-optimization/46590
21536 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21537 (dom_walker::m_reachability): Add in place of...
21538 (dom_walker::m_skip_unreachable_blocks): ...this.
21539 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21540 Move complex initialization ...
21541 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21542 lazily and initialize edge flags on each invocation.
21543 (dom_walker::bb_reachable): Use m_reachability.
21544
21545 2019-04-01 Martin Liska <mliska@suse.cz>
21546
21547 PR driver/89861
21548 * opt-suggestions.c (option_proposer::build_option_suggestions):
21549 Add variant without any argument in order to provide better
21550 hints.
21551
21552 2019-04-01 Richard Biener <rguenther@suse.de>
21553
21554 PR c/71598
21555 * gimple.c: Include langhooks.h.
21556 (gimple_get_alias_set): Treat enumeral types as the underlying
21557 integer type.
21558
21559 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21560 Eric Botcazou <ebotcazou@adacore.com>
21561
21562 PR rtl-optimization/89862
21563 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21564 that operates on the full registers for WORD_REGISTER_OPERATIONS
21565 architectures.
21566
21567 2019-03-29 Jim Wilson <jimw@sifive.com>
21568
21569 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21570 Clear MASK_RVC and then set if C subset supported.
21571
21572 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21573
21574 PR c/89872
21575 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21576 non-addressable complit into its initializer if it is volatile.
21577
21578 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21579
21580 * opts-common.c (integral_argument): Set errno properly in one case.
21581
21582 2019-03-29 Martin Liska <mliska@suse.cz>
21583
21584 * doc/invoke.texi: Remove -Wchkp from documentation.
21585
21586 2019-03-29 Martin Liska <mliska@suse.cz>
21587
21588 * dbgcnt.c (print_limit_reach): New function.
21589 (dbg_cnt): Use it.
21590
21591 2019-03-29 Martin Liska <mliska@suse.cz>
21592
21593 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21594 (dbg_cnt_process_opt): Parse first tokens aas
21595 dbg_cnt_process_single_pair is also using strtok.
21596
21597 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21598
21599 PR rtl-optimization/87485
21600 * function.c (expand_function_end): Move stack_protect_epilogue
21601 before loading of return value into hard register(s).
21602
21603 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21604
21605 PR middle-end/89621
21606 * tree-inline.h (struct copy_body_data): Add
21607 dont_remap_vla_if_no_change flag.
21608 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21609 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21610 and remap_type_2 returns false.
21611 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21612 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21613 only from where it is copied to nested contexts.
21614
21615 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21616
21617 PR target/89865
21618 * config/i386/i386.md (RMW operation with LEA peephole):
21619 Use LEAMODE mode attribute instead of SWI mode iterator for
21620 LEA pattern.
21621
21622 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21623
21624 PR target/89848
21625 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21626 Also process XEXP (src, 0) of a shift insn.
21627
21628 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21629
21630 PR middle-end/89725
21631 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21632 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21633
21634 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21635
21636 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21637 test.
21638 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21639 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21640 immediately after first one with df_analyze in between, but rather
21641 process all bbs, queueing ones that need second pass in a worklist,
21642 df_analyze, process queued debug insn changes and if second pass is
21643 needed, process bbs from worklist, df_analyze, process queued debug
21644 insns again.
21645
21646 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21647 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21648 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21649
21650 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21651
21652 PR c/79022
21653 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21654 definition.
21655
21656 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21657
21658 PR target/85667
21659 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21660 function for 32-bit MS_ABI.
21661 (function_value_ms_32): New function.
21662
21663 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21664
21665 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21666 (movdi): Call gen_movdi_symbol_save_scc.
21667 (gen_movdi_symbol_save_scc): New insn and split.
21668
21669 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21670
21671 PR rtl-optimization/89313
21672 * function.c (matching_constraint_num): New static function.
21673 (match_asm_constraints_1): Use it. Fixup white space and comment.
21674 Don't replace inputs with non-matching constraints which conflict
21675 with early clobber outputs.
21676
21677 2019-03-27 Jeff Law <law@redhat.com>
21678
21679 PR rtl-optimization/87761
21680 PR rtl-optimization/89826
21681 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21682 slightly later.
21683 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21684 note problem to get REG_DEAD/REG_UNUSED notes updated.
21685
21686 2019-03-27 Richard Biener <rguenther@suse.de>
21687
21688 PR tree-optimization/89463
21689 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21690 queue edges to remove.
21691 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21692 dead stmts. Delay edge removal until PHIs are removed to
21693 make debug-stmt creation not confused by seemingly degenerate
21694 PHIs.
21695
21696 2019-03-27 Alan Modra <amodra@gmail.com>
21697
21698 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21699 throughout file.
21700 * config/rs6000/darwin.h: Likewise.
21701 * config/rs6000/rs6000.c: Likewise.
21702
21703 2019-03-27 Alan Modra <amodra@gmail.com>
21704
21705 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21706 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21707
21708 2019-03-26 Andrew Waterman <andrew@sifive.com>
21709 Jim Wilson <jimw@sifive.com>
21710
21711 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21712 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21713 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21714 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21715 (generic_alu): Add auipc to type list.
21716 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21717 (riscv_microarchitecture): Declare.
21718 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21719 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21720 field.
21721 (riscv_microarchitecture): New.
21722 (sifive_7_tune_info): New.
21723 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21724 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21725 entries.
21726 (riscv_store_data_bypass_p): New.
21727 (riscv_option_override): Set riscv_microarchitecture from
21728 cpu->microarchitecture.
21729 * config/riscv/riscv.md: Include sifive-7.md.
21730 (type): Add auipc.
21731 (tune): New.
21732 (auipc<mode>): Change type to auipc.
21733 (restore_stack_nonlocal): New.
21734 * config/riscv/sifive-7.md: New.
21735 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21736
21737 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21738
21739 PR target/89827
21740 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21741 Also process XEXP (src, 0) of a shift insn.
21742
21743 2019-03-26 Richard Biener <rguenther@suse.de>
21744
21745 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21746 (copy_debug_stmt): Likewise.
21747 (expand_call_inline): Likewise.
21748 (copy_bb): Avoid redundant lookup & set of gimple_block.
21749 * gimple-low.c (lower_gimple_return): Likewise.
21750 (lower_builtin_setjmp): Likewise.
21751
21752 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21753
21754 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21755 is constant 0, turn into static const data member initialized to false.
21756 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21757 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21758
21759 2019-03-26 Jason Merrill <jason@redhat.com>
21760 Jakub Jelinek <jakub@redhat.com>
21761
21762 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21763 method.
21764 (mem_alloc_description::release_object_overhead): Fix comment typos.
21765 * hash-table.h (hash_table::~hash_table): Call
21766 release_instance_overhead only if m_entries is non-NULL, otherwise
21767 call unregister_descriptor.
21768
21769 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21770
21771 PR tree-optimization/81740
21772 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21773 In case of outer loop vectorization, check for backward dependence
21774 at the inner loop if outer loop dependence is reversed.
21775
21776 2019-03-26 Alan Modra <amodra@gmail.com>
21777
21778 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21779 rs6000_vector_mem init. Correct wI and wJ comment.
21780
21781 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21782
21783 PR rtl-optimization/88347
21784 PR rtl-optimization/88423
21785 * sched-deps.c (sched_analyze_insn): Take into account that for
21786 tablejumps the barrier appears after a label and a jump_table_data.
21787
21788 2019-03-25 Martin Sebor <msebor@redhat.com>
21789
21790 PR c/89812
21791 * c-common.c (check_user_alignment): Rename local. Correct maximum
21792 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21793 convert it to UHWI when it fits.
21794
21795 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21796
21797 PR debug/86964
21798 * dwarf2out.c (premark_used_variables): New function.
21799 (prune_unused_types_walk): Do not mark not premarked external
21800 variables.
21801 (prune_unused_types): Call premark_used_variables.
21802
21803 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21804
21805 PR rtl-optimization/89676
21806 * lra-constraints.c (curr_insn_transform): Do match reload for
21807 early clobbers when the match was successful only for different
21808 registers.
21809
21810 2019-03-25 Martin Sebor <msebor@redhat.com>
21811
21812 * doc/extend.texi (Common Type Attributes): Document vector_size.
21813 (Common Variable Attributes): Mention size constraint. Correct
21814 quoting and typos.
21815 (Vector Extensions): Use @dfn when defining bas type. Clarify
21816 base type and size constraints.
21817
21818 2019-03-25 Richard Biener <rguenther@suse.de>
21819
21820 PR tree-optimization/89789
21821 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21822 changes from non-undefined back to undefined.
21823
21824 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21825
21826 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21827 heap string and a gc string, but since this variable is unknown to
21828 ggc the gc string might get reused and corrupted. Fixed by always
21829 using a heap string.
21830
21831 2019-03-25 Richard Biener <rguenther@suse.de>
21832
21833 PR tree-optimization/89779
21834 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21835 to remove IV defs, delay actual removal.
21836 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21837 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21838 very end, properly also reset loop control IV information.
21839
21840 2019-03-25 Richard Biener <rguenther@suse.de>
21841
21842 PR tree-optimization/89802
21843 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21844 move EH data to folded stmt.
21845
21846 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21847
21848 * config/s390/s390-builtin-types.def: Remove few unused types and
21849 fix sort order for others.
21850
21851 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21852
21853 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21854 expected and found types with -mdebug during builtin matching.
21855
21856 2019-03-25 Richard Biener <rguenther@suse.de>
21857
21858 PR middle-end/89790
21859 * fold-const.c (operand_equal_p): Revert last change with
21860 updated comment.
21861
21862 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21863
21864 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21865 notes for the result of the __tls_get_addr calls.
21866 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21867
21868 2019-03-24 Jeff Law <law@redhat.com>
21869
21870 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21871
21872 PR rtl-optimization/87761
21873 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21874 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21875 as needed.
21876 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21877 rescans. Reprocess blocks as needed, calling df_analyze before
21878 reprocessing. Always call df_analyze before fixing up debug bind
21879 insns.
21880
21881 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21882
21883 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21884 big endian.
21885
21886 2019-03-22 Andrew Pinski <apinski@marvell.com>
21887
21888 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21889 attrribute for uxtw.
21890
21891 2019-03-26 Jeff Law <law@redhat.com>
21892
21893 PR rtl-optimization/87761
21894 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21895 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21896 (mips_split_move): Accept new INSN argument. Try to forward SRC
21897 into the next instruction.
21898 (mips_split_move_insn): Pass INSN through to mips_split_move.
21899
21900 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21901
21902 PR rtl-optimization/89676
21903 * lra-constraints.c (curr_insn_transform): Do match reload for
21904 early clobbers even if the match was successful.
21905
21906 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21907
21908 PR c++/87481
21909 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21910
21911 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21912
21913 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21914
21915 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21916
21917 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21918 <avx512>_fmsub_<mode>_mask3<round_name>,
21919 <avx512>_fnmadd_<mode>_mask3<round_name>,
21920 <avx512>_fnmsub_<mode>_mask3<round_name>,
21921 avx512f_vmfmadd_<mode>_mask3<round_name>,
21922 avx512f_vmfmsub_<mode>_mask3<round_name>,
21923 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21924 instead of register_operand and %v instead of v for match_operand 1.
21925 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21926 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21927 <round_nimm_predicate> instead of register_operand and %v instead of v
21928 for match_operand 1.
21929
21930 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21931 <avx512>_fmadd_<mode>_mask3<round_name>,
21932 <avx512>_fmsub_<mode>_mask<round_name>,
21933 <avx512>_fmsub_<mode>_mask3<round_name>,
21934 <avx512>_fnmadd_<mode>_mask<round_name>,
21935 <avx512>_fnmadd_<mode>_mask3<round_name>,
21936 <avx512>_fnmsub_<mode>_mask<round_name>,
21937 <avx512>_fnmsub_<mode>_mask3<round_name>,
21938 <avx512>_fmaddsub_<mode>_mask<round_name>,
21939 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21940 <avx512>_fmsubadd_<mode>_mask<round_name>,
21941 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21942 <round_nimm_predicate> instead of nonimmediate_operand.
21943 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21944 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21945 Use register_operand instead of <round_nimm_predicate> for the
21946 operand that needs to match output.
21947 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21948 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21949 Likewise. Formatting fixes.
21950
21951 PR target/89784
21952 * config/i386/i386.c (enum ix86_builtins): Remove
21953 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21954 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21955 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21956 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21957 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21958 __builtin_ia32_vfmsubss3_mask3): New builtins.
21959 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21960 avx512f_vmfmadd_<mode>_mask3<round_name>,
21961 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21962 *avx512f_vmfmsub_<mode>_mask<round_name>,
21963 avx512f_vmfmsub_<mode>_mask3<round_name>,
21964 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21965 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21966 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21967 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21968 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21969 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21970 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21971 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21972 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21973 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21974 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21975 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21976 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21977 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21978 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21979 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21980 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21981 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21982 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21983 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21984 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21985 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21986 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21987 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21988 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21989 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21990 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21991 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21992
21993 2019-03-21 Martin Sebor <msebor@redhat.com>
21994
21995 PR tree-optimization/89350
21996 * builtins.c (compute_objsize): Also ignore offsets whose upper
21997 bound is negative.
21998 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21999 (builtin_memref::builtin_memref): Initialize new member.
22000 Allow EXPR to be null.
22001 (builtin_memref::extend_offset_range): Replace local with a member.
22002 Avoid assuming pointer offsets are unsigned.
22003 (builtin_memref::set_base_and_offset): Determine base object
22004 before computing offset range.
22005 (builtin_access::builtin_access): Handle memset.
22006 (builtin_access::generic_overlap): Replace local with a member.
22007 (builtin_access::strcat_overlap): Same.
22008 (builtin_access::overlap): Same.
22009 (maybe_diag_overlap): Same.
22010 (maybe_diag_access_bounds): Same.
22011 (wrestrict_dom_walker::check_call): Handle memset.
22012 (check_bounds_or_overlap): Same.
22013
22014 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
22015 Jakub Jelinek <jakub@redhat.com>
22016
22017 PR lto/89692
22018 * tree.c (fld_type_variant, fld_incomplete_type_of,
22019 fld_process_array_type): Call fld->pset.add and don't call
22020 add_tree_to_fld_list if it returns true.
22021 (free_lang_data_in_type): Similarly with self-recursive call. Purge
22022 non-marked types from TYPE_NEXT_VARIANT list.
22023 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
22024
22025 2019-03-21 Jakub Jelinek <jakub@redhat.com>
22026
22027 * hash-table.h (hash_table): Add Lazy template parameter defaulted
22028 to false, if true, don't alloc_entries during construction, but defer
22029 it to the first method that needs m_entries allocated.
22030 (hash_table::hash_table, hash_table::~hash_table,
22031 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
22032 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
22033 hash_table::clear_slot, hash_table::traverse_noresize,
22034 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
22035 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
22036 false.
22037 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
22038 NO_INSERT instead of find_with_hash.
22039 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
22040 hash_set::m_table): Add Lazy to template params of hash_table.
22041 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
22042 * attribs.c (test_attribute_exclusions): Likewise.
22043 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
22044 hash_set. Add tests for hash_set with Lazy = true.
22045
22046 2019-03-21 Richard Biener <rguenther@suse.de>
22047
22048 PR tree-optimization/89779
22049 * tree.c (tree_nop_conversion): Consolidate and fix defensive
22050 checks with respect to released SSA names now having error_mark_node
22051 type.
22052 * fold-const.c (operand_equal_p): Likewise.
22053
22054 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
22055
22056 PR target/89775
22057 * config/s390/s390.c (global_not_special_regno_p): Move to make it
22058 available to ...
22059 (s390_optimize_register_info): Use global_not_special_regno_p to
22060 check for global regs.
22061
22062 2019-03-20 Jakub Jelinek <jakub@redhat.com>
22063
22064 PR target/89752
22065 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
22066 update this_alternative nor this_alternative_set.
22067
22068 2019-03-19 Jim Wilson <jimw@sifive.com>
22069
22070 PR target/89411
22071 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
22072 align, size, offset. Use them to handle a BLKmode reference. Update
22073 comment.
22074 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
22075
22076 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22077
22078 PR rtl-optimization/89768
22079 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
22080 instead of GEN_INT.
22081 (unroll_loop_runtime_iterations): Likewise.
22082
22083 2019-03-19 Martin Sebor <msebor@redhat.com>
22084
22085 PR tree-optimization/89644
22086 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22087 rather than endptr as an indicator of nul-termination.
22088
22089 PR tree-optimization/89644
22090 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22091 arrays in determining sequence sizes in strncpy and stpncpy.
22092
22093 2019-03-19 Martin Liska <mliska@suse.cz>
22094
22095 PR middle-end/89737
22096 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22097 unlikely_edges if there's an edge that belongs to both these sets.
22098
22099 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22100
22101 PR target/89746
22102 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22103 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22104 go via a stack temporary.
22105
22106 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22107
22108 PR target/89378
22109 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22110 instead of gen_rtx_SUBREG.
22111 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22112
22113 2019-03-19 Richard Biener <rguenther@suse.de>
22114
22115 PR debug/88389
22116 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22117
22118 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22119
22120 PR lto/87809
22121 PR lto/89335
22122 * tree.c (free_lang_data_in_decl): Do not free context of C++
22123 destrutors.
22124
22125 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22126
22127 PR target/89506
22128 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22129 subs for the first alternative except when operands[3] is 1.
22130
22131 PR target/89752
22132 * gimplify.c (gimplify_asm_expr): For output argument with
22133 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22134 diagnose error.
22135
22136 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22137
22138 PR rtl-optimization/89753
22139 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22140 explicit unrolling factor even more robust.
22141
22142 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22143
22144 PR target/89726
22145 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22146 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22147 signed zeros, do another copysign after the compensation.
22148
22149 2019-03-18 Martin Sebor <msebor@redhat.com>
22150
22151 PR tree-optimization/89720
22152 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22153 more conservatively, the same as anti-range.
22154
22155 2019-03-18 Richard Biener <rguenther@suse.de>
22156
22157 PR middle-end/88945
22158 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22159 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22160 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22161 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22162
22163 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22164
22165 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22166 Extend queue to 1024 entries.
22167 Add "consumed" field.
22168 (gomp_print_output): Remove print_index parameter.
22169 Add final parameter.
22170 Change limit to unsigned.
22171 Use consumed field to implement circular buffer.
22172 Detect interrupted print in final pass.
22173 Flush output at the end.
22174 (run): Update gomp_print_output usage.
22175 (main): Initialize kernargs->output_data.consumed.
22176
22177 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22178
22179 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22180 calculation of the minimum number of scalar iterations for
22181 fully-predicated loops.
22182
22183 2019-03-18 Martin Jambor <mjambor@suse.cz>
22184
22185 PR tree-optimization/89546
22186 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22187 any propagation to its children took place.
22188
22189 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22190
22191 PR target/89627
22192 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22193 parameter, and make use of it.
22194 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22195
22196 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22197
22198 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22199 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22200 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22201 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22202 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22203 match what the ops is doing.
22204 (push_multi_fp_blink): Likewise.
22205 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22206 compiling for size and elf target.
22207 (arc_save_callee_enter): Adjust note to match what enter/leave
22208 operation does.
22209
22210 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22211
22212 * config/arc/arc.md (tst_movb): Fix constraint.
22213
22214 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22215
22216 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22217
22218 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22219
22220 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22221 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22222 reg_alloc_order references.
22223 (size_alloc_order): Define.
22224 (arc_adjust_reg_alloc_order): New function.
22225 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22226 order.
22227 (ADJUST_REG_ALLOC_ORDER): Define.
22228 (HONOR_REG_ALLOC_ORDER): Likewise.
22229
22230 2019-03-18 Richard Biener <rguenther@suse.de>
22231
22232 PR target/87561
22233 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22234 loads and stores a bit more.
22235
22236 2019-03-18 Richard Biener <rguenther@suse.de>
22237
22238 PR target/87561
22239 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22240 load pessimization to stores as well.
22241
22242 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22243
22244 PR middle-end/86979
22245 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22246 successor, use NULL as its av set.
22247
22248 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22249
22250 PR rtl-optimization/89721
22251 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22252
22253 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22254
22255 PR target/87532
22256 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22257 When handling vec_extract, use modular arithmetic to allow
22258 constant selectors greater than vector length.
22259 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22260 V1TImode vectors to have constant selector values greater than 0.
22261 Use modular arithmetic to compute vector index.
22262 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22263 index for in-memory vectors. Correct code generation for
22264 in-register vectors.
22265 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22266 compute index.
22267
22268 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22269
22270 PR c++/88534
22271 PR c++/88537
22272 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22273 VAR_DECL args.
22274
22275 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22276
22277 PR c++/89709
22278 * tree.c (inchash::add_expr): Strip any location wrappers.
22279 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22280 after hash verification.
22281
22282 PR debug/89704
22283 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22284 SIGN_EXTEND and ZERO_EXTEND.
22285
22286 2019-03-14 Jason Merrill <jason@redhat.com>
22287 Jakub Jelinek <jakub@redhat.com>
22288
22289 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22290 than if is_empty (*slot).
22291 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22292 existing elt and for elt removal.
22293 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22294 of already removed elt.
22295
22296 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22297
22298 PR target/89650
22299 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22300 REG_EH_REGION note.
22301
22302 2019-03-14 Martin Liska <mliska@suse.cz>
22303
22304 PR other/89712
22305 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22306
22307 2019-03-14 Richard Biener <rguenther@suse.de>
22308
22309 PR target/89711
22310 * config/i386/i386.c (make_resolver_func): Properly set
22311 DECL_CONTEXT on the RESULT_DECL.
22312 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22313
22314 2019-03-14 Richard Biener <rguenther@suse.de>
22315
22316 * gimple-pretty-print.c: Include cfgloop.h.
22317 (dump_gimple_phi): Adjust.
22318 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22319 (pp_cfg_jump): Adjust.
22320 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22321 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22322 (lower_phi_internal_fn): Remove.
22323 (verify_gimple_call): Remove IFN_PHI special-casing.
22324 (dump_function_to_file): Dump IL state.
22325 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22326 done to deal with PHI nodes being present in non-SSA state.
22327
22328 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22329
22330 PR ipa/89684
22331 * multiple_target.c (create_dispatcher_calls): Change
22332 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22333 In the node->iterate_referring loop, push *ref rather than ref, call
22334 ref->remove_reference () and always pass 0 to iterate_referring.
22335
22336 PR rtl-optimization/89679
22337 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22338 would contain a paradoxical SUBREG.
22339
22340 2019-03-14 Richard Biener <rguenther@suse.de>
22341
22342 PR tree-optimization/89710
22343 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22344 safe_dyn_cast.
22345
22346 2019-03-14 Martin Liska <mliska@suse.cz>
22347
22348 * coverage.c (coverage_begin_function): Stream also
22349 end_column.
22350 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22351 documentation about function declaration location.
22352 * gcov-dump.c (tag_function): Print whole range
22353 of function declaration.
22354 * gcov.c (struct function_info): Add end_column field.
22355 (function_info::function_info): Initialize it.
22356 (output_json_intermediate_file): Output {start,end}_column
22357 fields.
22358 (read_graph_file): Read end_column.
22359
22360 2019-03-14 Richard Biener <rguenther@suse.de>
22361
22362 PR middle-end/89698
22363 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22364 that the access types are similar.
22365
22366 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22367
22368 PR tree-optimization/89703
22369 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22370 aren't compatible also with builtin_decl_explicit. Check pure
22371 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22372 and BUILT_IN_STPNCPY{,_CHK}.
22373
22374 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22375
22376 PR target/89523
22377 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22378 addr32 prefix to VSIB address for X32.
22379 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22380 "%M2" to opcode.
22381 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22382 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22383 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22384 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22385 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22386 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22387 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22388 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22389 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22390 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22391 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22392 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22393 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22394 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22395 (*avx512f_scatterdi<mode>): Likewise.
22396
22397 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22398
22399 PR target/85860
22400 * lra-constraints.c (inherit_in_ebb): Update
22401 potential_reload_hard_regs along with live_hard_regs.
22402
22403 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22404
22405 PR debug/89498
22406 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22407 DWARF_OFFSET_SIZE.
22408 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22409
22410 2019-03-13 Martin Sebor <msebor@redhat.com>
22411
22412 PR tree-optimization/89662
22413 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22414 has a size.
22415
22416 2019-03-13 Richard Biener <rguenther@suse.de>
22417
22418 PR middle-end/89677
22419 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22420 throw FP expressions at tree-affine.
22421
22422 2019-03-14 Richard Biener <rguenther@suse.de>
22423
22424 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22425 dump negative integer constants using _Literal (type) -num.
22426
22427 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22428
22429 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22430 nonlocal_value member.
22431
22432 PR middle-end/88588
22433 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22434 (ipa_simd_modify_function_body): Handle PHIs.
22435
22436 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22437
22438 * config/s390/s390.c (s390_option_override_internal): Use more
22439 aggressive inlining parameters.
22440
22441 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22442
22443 * config/s390/3906.md: New file.
22444 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22445 (LONGRUNNING_THRESHOLD): Remove.
22446 (MAX_SCHED_MIX_SCORE): Decrease.
22447 (MAX_SCHED_MIX_DISTANCE): Decrease.
22448 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22449 (struct s390_sched_state): New struct to hold scheduling state.
22450 (S390_SCHED_STATE_NORMAL): Remove.
22451 (S390_SCHED_STATE_CRACKED): Remove.
22452 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22453 (s390_get_sched_attrmask): Use new attribute.
22454 (s390_get_unit_mask): Use new units.
22455 (s390_is_fpd): New function.
22456 (s390_is_fxd): New function.
22457 (s390_is_longrunning): New function.
22458 (s390_sched_score): Use new functions.
22459 (s390_sched_reorder): Likewise.
22460 (s390_sched_variable_issue): Rework and use new functions.
22461 (s390_sched_init): Use new functions.
22462 * config/s390/s390.h (s390_tune_attr): Add z14.
22463 * config/s390/s390.md: Add z14.
22464
22465 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22466
22467 * config/s390/2964.md: Update pipeline description.
22468 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22469 (LONGRUNNING_THRESHOLD): Remove.
22470 (LATENCY_FACTOR): Remove.
22471 (s390_get_unit_mask): Add unit.
22472 (s390_sched_score): Use fxd/fpd.
22473 (s390_sched_variable_issue): Use fxd/fpd.
22474
22475 2019-03-12 Martin Liska <mliska@suse.cz>
22476
22477 * config/i386/i386.c: Reword an error message.
22478
22479 2019-03-12 Martin Jambor <mjambor@suse.cz>
22480
22481 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22482 terminate with newline.
22483
22484 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22485
22486 PR target/52726
22487 * config/s390/s390.md (tabort): Use %wd instead of
22488 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22489 letters and periods.
22490 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22491 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22492 's with %< and %>.
22493
22494 PR middle-end/89663
22495 * builtins.c (expand_builtin_int_roundingfn,
22496 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22497 gcc_unreachable if validate_arglist fails.
22498
22499 2019-03-12 Richard Biener <rguenther@suse.de>
22500
22501 PR tree-optimization/89664
22502 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22503 free the occurance tree after the early out.
22504
22505 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22506
22507 PR middle-end/89655
22508 PR bootstrap/89656
22509 * vr-values.c (vr_values::update_value_range): If
22510 old_vr->varying_p (), don't update it, make new_vr also VARYING
22511 and return false.
22512
22513 2019-03-11 Martin Liska <mliska@suse.cz>
22514
22515 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22516 Fix double string quoting.
22517
22518 2019-03-11 Martin Liska <mliska@suse.cz>
22519
22520 * collect-utils.c (collect_wait): Wrap apostrophes
22521 in gcc internal format with %'.
22522 * collect2.c (main): Likewise.
22523 (scan_prog_file): Likewise.
22524 (scan_libraries): Likewise.
22525 * config/i386/i386.c (ix86_expand_call): Likewise.
22526 (ix86_handle_interrupt_attribute): Likewise.
22527 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22528 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22529 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22530 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22531 * symtab.c (symtab_node::verify_base): Likewise.
22532 * tree-cfg.c (verify_gimple_label): Likewise.
22533 * tree.c (verify_type_variant): Likewise.
22534
22535 2019-03-11 Martin Liska <mliska@suse.cz>
22536
22537 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22538 in a string format message and fix GNU coding style.
22539 (expand_builtin_set_thread_pointer): Likewise.
22540 * common/config/aarch64/aarch64-common.c
22541 (aarch64_rewrite_selected_cpu): Likewise.
22542 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22543 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22544 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22545 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22546 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22547 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22548 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22549 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22550 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22551 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22552 Likewise.
22553 * common/config/riscv/riscv-common.c
22554 (riscv_subset_list::parsing_subset_version): Likewise.
22555 (riscv_subset_list::parse_std_ext): Likewise.
22556 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22557 (riscv_subset_list::parse): Likewise.
22558 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22559 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22560 (aarch64_override_options_internal): Likewise.
22561 (aarch64_validate_mcpu): Likewise.
22562 (aarch64_validate_march): Likewise.
22563 (aarch64_validate_mtune): Likewise.
22564 (aarch64_override_options): Likewise.
22565 * config/alpha/alpha.c (alpha_option_override): Likewise.
22566 * config/arc/arc.c (arc_init): Likewise.
22567 (parse_mrgf_banked_regs_option): Likewise.
22568 (arc_override_options): Likewise.
22569 (arc_expand_builtin_aligned): Likewise.
22570 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22571 (arm_expand_builtin): Likewise.
22572 * config/arm/arm.c (arm_option_check_internal): Likewise.
22573 (arm_configure_build_target): Likewise.
22574 (arm_option_override): Likewise.
22575 (arm_options_perform_arch_sanity_checks): Likewise.
22576 (arm_handle_cmse_nonsecure_entry): Likewise.
22577 (arm_handle_cmse_nonsecure_call): Likewise.
22578 (arm_tls_referenced_p): Likewise.
22579 (thumb1_expand_prologue): Likewise.
22580 * config/avr/avr.c (avr_option_override): Likewise.
22581 * config/bfin/bfin.c (bfin_option_override): Likewise.
22582 * config/c6x/c6x.c (c6x_option_override): Likewise.
22583 * config/cr16/cr16.c (cr16_override_options): Likewise.
22584 * config/cris/cris.c (cris_option_override): Likewise.
22585 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22586 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22587 * config/darwin.c (darwin_override_options): Likewise.
22588 * config/frv/frv.c (frv_expand_builtin): Likewise.
22589 * config/h8300/h8300.c (h8300_option_override): Likewise.
22590 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22591 (ix86_option_override_internal): Likewise.
22592 (warn_once_call_ms2sysv_xlogues): Likewise.
22593 (ix86_expand_prologue): Likewise.
22594 (split_stack_prologue_scratch_regno): Likewise.
22595 (ix86_warn_parameter_passing_abi): Likewise.
22596 * config/ia64/ia64.c (fix_range): Likewise.
22597 * config/m68k/m68k.c (m68k_option_override): Likewise.
22598 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22599 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22600 (mips_set_compression_mode): Likewise.
22601 * config/mmix/mmix.c (mmix_option_override): Likewise.
22602 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22603 * config/msp430/msp430.c (msp430_option_override): Likewise.
22604 * config/nds32/nds32.c (nds32_option_override): Likewise.
22605 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22606 (nios2_option_override): Likewise.
22607 (nios2_expand_custom_builtin): Likewise.
22608 * config/nvptx/mkoffload.c (main): Likewise.
22609 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22610 * config/pa/pa.c (fix_range): Likewise.
22611 (pa_option_override): Likewise.
22612 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22613 (riscv_option_override): Likewise.
22614 * config/rl78/rl78.c (rl78_option_override): Likewise.
22615 * config/rs6000/aix61.h: Likewise.
22616 * config/rs6000/aix71.h: Likewise.
22617 * config/rs6000/aix72.h: Likewise.
22618 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22619 * config/rs6000/freebsd64.h: Likewise.
22620 * config/rs6000/linux64.h: Likewise.
22621 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22622 (rs6000_expand_zeroop_builtin): Likewise.
22623 (rs6000_expand_mtfsb_builtin): Likewise.
22624 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22625 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22626 (rs6000_invalid_builtin): Likewise.
22627 (rs6000_expand_split_stack_prologue): Likewise.
22628 * config/rs6000/rtems.h: Likewise.
22629 * config/rx/rx.c (valid_psw_flag): Likewise.
22630 (rx_expand_builtin): Likewise.
22631 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22632 * config/s390/s390.c (s390_expand_builtin): Likewise.
22633 (s390_function_profiler): Likewise.
22634 (s390_option_override_internal): Likewise.
22635 (s390_option_override): Likewise.
22636 * config/sh/sh.c (sh_option_override): Likewise.
22637 (sh_builtin_saveregs): Likewise.
22638 (sh_fix_range): Likewise.
22639 * config/sh/vxworks.h: Likewise.
22640 * config/sparc/sparc.c (sparc_option_override): Likewise.
22641 * config/spu/spu.c (spu_option_override): Likewise.
22642 (fix_range): Likewise.
22643 * config/visium/visium.c (visium_option_override): Likewise.
22644 (visium_handle_interrupt_attr): Likewise.
22645 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22646 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22647 (dbg_cnt_process_opt): Likewise.
22648 * dwarf2out.c (output_dwarf_version): Likewise.
22649 * except.c (expand_eh_return): Likewise.
22650 * gcc.c (defined): Likewise.
22651 (driver_handle_option): Likewise.
22652 (process_command): Likewise.
22653 (compare_files): Likewise.
22654 (driver::prepare_infiles): Likewise.
22655 (driver::do_spec_on_infiles): Likewise.
22656 (driver::maybe_run_linker): Likewise.
22657 * omp-offload.c (oacc_parse_default_dims): Likewise.
22658 * opts-global.c (handle_common_deferred_options): Likewise.
22659 * opts.c (parse_sanitizer_options): Likewise.
22660 (common_handle_option): Likewise.
22661 (enable_warning_as_error): Likewise.
22662 * passes.c (enable_disable_pass): Likewise.
22663 * plugin.c (parse_plugin_arg_opt): Likewise.
22664 (default_plugin_dir_name): Likewise.
22665 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22666 (default_pch_valid_p): Likewise.
22667 * toplev.c (init_asm_output): Likewise.
22668 (process_options): Likewise.
22669 (toplev::run_self_tests): Likewise.
22670 * tree-cfg.c (verify_gimple_call): Likewise.
22671 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22672 (tree_inlinable_function_p): Likewise.
22673 * var-tracking.c (vt_find_locations): Likewise.
22674
22675 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22676
22677 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22678 only on the else branch.
22679
22680 2019-03-11 Martin Liska <mliska@suse.cz>
22681
22682 * gcov.c (output_intermediate_json_line): Print function
22683 name of each line.
22684 (output_json_intermediate_file): Add new argument.
22685 * doc/gcov.texi: Document the change.
22686
22687 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22688
22689 PR rtl-optimization/89588
22690 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22691 explicit unrolling factor more robust.
22692
22693 2019-03-11 Richard Biener <rguenther@suse.de>
22694
22695 PR tree-optimization/89649
22696 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22697 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22698 on the prolog and epilog loops.
22699 (vect_loop_versioning): Return copy of loop.
22700 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22701 on the non-vectorized version of the loop.
22702
22703 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22704
22705 PR target/68924
22706 * config/i386/sse.md (*vec_extractv2di_0_sse):
22707 Add (=r,x) alternative and corresponding splitter.
22708
22709 2019-03-10 Martin Jambor <mjambor@suse.cz>
22710
22711 PR tree-optimization/85762
22712 PR tree-optimization/87008
22713 PR tree-optimization/85459
22714 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22715 it points to if there is a type changing MEM_REF. Adjust all callers.
22716 (build_accesses_from_assign): Disable total scalarization if
22717 contains_vce_or_bfcref_p returns true through the new parameter, for
22718 both rhs and lhs.
22719
22720 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22721
22722 PR c/88568
22723 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22724 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22725
22726 PR target/79645
22727 * common.opt (fdiagnostics-show-labels,
22728 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22729 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22730 gas-locview-support, ginline-points, ginternal-reset-location-views):
22731 Terminate description text with a dot.
22732 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22733 * config/mcore/mcore.opt (m210, m340): Likewise.
22734 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22735 mnops=): Start description text with a capital letter.
22736 * config/arc/arc.opt (msize-level=): Likewise.
22737 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22738 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22739 mnewlib): Likewise.
22740 * config/ft32/ft32.opt (msim): Likewise.
22741 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22742 (mnodiv, mnopm): Terminate description text with a dot.
22743 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22744 a colon.
22745 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22746 Likewise.
22747 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22748 text.
22749
22750 PR rtl-optimization/89634
22751 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22752 are modified in BB_END (e->src) instruction.
22753
22754 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22755
22756 PR target/79926
22757 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22758 messages more amenable to translation, and improve wording.
22759
22760 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22761
22762 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22763 ud- and du-chains between phases.
22764
22765 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22766
22767 PR debug/89631
22768 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22769 instead of POLY_INT_CST.
22770
22771 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22772
22773 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22774 requirement.
22775
22776 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22777
22778 PR target/68924
22779 PR target/78782
22780 PR target/87558
22781 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22782 (_mm_storeu_si64): Ditto.
22783
22784 2019-03-08 Martin Liska <mliska@suse.cz>
22785
22786 PR target/86952
22787 * config/i386/i386.c (ix86_option_override_internal): Disable
22788 jump tables when retpolines are used.
22789
22790 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22791
22792 PR go/63560
22793 * ipa-split.c (execute_split_functions): Do not split
22794 'noinline' or 'section' function.
22795
22796 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22797
22798 PR target/79846
22799 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22800 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22801 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22802
22803 PR ipa/80000
22804 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22805 from diagnostics. Formatting fixes.
22806
22807 PR target/85665
22808 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22809 warn_odr diagnostics.
22810
22811 PR other/80058
22812 * lra-constraints.c (process_alt_operands): Avoid one space before
22813 " at the end of line and another after " on another line in a string
22814 literal.
22815 * attribs.c (handle_dll_attribute): Likewise.
22816 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22817
22818 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22819 warning_at or inform messages in G_() if there is no ?:.
22820
22821 PR tree-optimization/89550
22822 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22823 returned true. Formatting fixes.
22824 (expand_builtin_strnlen): Formatting fixes.
22825 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22826 if warning_at returned true.
22827 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22828
22829 2019-03-08 Richard Biener <rguenther@suse.de>
22830
22831 PR middle-end/89578
22832 * cfgloop.h (struct loop): Add owned_clique field.
22833 * cfgloopmanip.c (copy_loop_info): Copy it.
22834 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22835 cliques.
22836 * tree-inline.c (copy_loops): Remap owned_clique.
22837 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22838 * lto-streamer-out.c (output_cfg): Likewise.
22839
22840 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22841
22842 PR target/80190
22843 * config/darwin.c: Include intl.h.
22844 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22845 composing the message out of two separate parts.
22846
22847 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22848
22849 PR target/80003
22850 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22851 doesn't start with a capital letter and doesn't end with a dot.
22852 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22853 with a capital letter.
22854 (ix86_mangle_function_version_assembler_name): Likewise.
22855 (ix86_generate_version_dispatcher_body): Likewise.
22856 (fold_builtin_cpu): Likewise.
22857 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22858 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22859 translators, wrap full type name in %qs.
22860
22861 PR translation/79999
22862 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22863 depend clause with source (or sink) modifier.
22864 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22865
22866 PR target/89602
22867 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22868 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22869 (avx512f_load<mode>_mask): New define_expand.
22870 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22871 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22872 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22873 __builtin_ia32_movess_mask): New builtins.
22874 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22875 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22876 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22877 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22878
22879 2019-03-07 Martin Jambor <mjambor@suse.cz>
22880
22881 PR lto/87525
22882 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22883 for extern inline functions.
22884
22885 2019-03-07 Martin Jambor <mjambor@suse.cz>
22886
22887 PR ipa/88235
22888 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22889 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22890 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22891 have multiple callees. At the end check if declarations match as
22892 opposed to cgraph_nodes.
22893
22894 2019-03-07 Martin Liska <mliska@suse.cz>
22895
22896 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22897 which is equivalent to searching for this in clones chain.
22898 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22899 names with a neighbour and special case first node in a chain.
22900
22901 2019-01-25 Jason Merrill <jason@redhat.com>
22902
22903 PR c++/80916 - spurious "static but not defined" warning.
22904 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22905 for an internal symbol with DECL_EXTERNAL.
22906
22907 2019-04-07 Richard Biener <rguenther@suse.de>
22908
22909 PR middle-end/89618
22910 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22911 * tree-inline.c (copy_loops): Simplify.
22912
22913 2019-03-07 Martin Liska <mliska@suse.cz>
22914
22915 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22916
22917 2019-03-07 Richard Biener <rguenther@suse.de>
22918
22919 PR tree-optimization/89595
22920 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22921 stmt iterator as reference, take boolean output parameter to
22922 indicate whether the stmt was removed and thus the iterator
22923 already advanced.
22924 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22925 stmts created by folding.
22926
22927 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22928
22929 PR c++/89585
22930 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22931 at toplevel.
22932
22933 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22934
22935 PR rtl-optimization/88845
22936 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22937 LRA.
22938 * lra.c (remove_scratches_1): New function.
22939 (remove_scratches): Use it.
22940 (lra_emit_move): Likewise.
22941
22942 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22943
22944 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22945 unaligned_access variable.
22946 * config/arc/arc.c (arc_override_options): Set unaligned access
22947 default on for HS CPUs.
22948 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22949
22950 2019-03-06 Martin Liska <mliska@suse.cz>
22951
22952 PR gcov-profile/89577
22953 * doc/gcov.texi: Prefer to use --coverage.
22954 * doc/sourcebuild.texi: Likewise.
22955
22956 2019-03-02 Jason Merrill <jason@redhat.com>
22957
22958 PR c++/86485 - -Wmaybe-unused with empty class ?:
22959 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22960
22961 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22962
22963 PR target/89587
22964 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22965 if_multiarch.
22966
22967 PR middle-end/89590
22968 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22969 exactly one argument.
22970
22971 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22972 Richard Sandiford <richard.sandiford@arm.com>
22973
22974 PR tree-optimization/89570
22975 * match.pd (vec_cond into cond_op simplification): Don't use
22976 get_conditional_internal_fn, use as_internal_fn (cond_op).
22977
22978 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22979
22980 PR target/89222
22981 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22982 to decide when to split off a non-zero offset from a symbol.
22983 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22984 in function symbols.
22985
22986 2019-03-05 Richard Biener <rguenther@suse.de>
22987
22988 PR tree-optimization/89594
22989 * tree-if-conv.c (pass_if_conversion::execute): Handle
22990 case where .LOOP_VECTORIZED_FUNCTION was removed.
22991
22992 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22993
22994 PR bootstrap/89560
22995 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22996 instead alloca it only when needed with the needed size.
22997
22998 PR tree-optimization/89570
22999 * match.pd (vec_cond into cond_op simplification): Guard with
23000 vectorized_internal_fn_supported_p test and #if GIMPLE.
23001
23002 PR tree-optimization/89566
23003 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
23004 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
23005 Punt if get_user_idx_format succeeds, but idx_format argument is
23006 not provided or doesn't have pointer type, or if idx_args is above
23007 number of provided arguments.
23008
23009 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
23010
23011 PR tree-optimization/89437
23012 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
23013
23014 2019-03-04 Richard Biener <rguenther@suse.de>
23015
23016 PR middle-end/89572
23017 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
23018 safe_dyn_cast.
23019
23020 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
23021
23022 PR tree-optimization/89487
23023 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
23024 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
23025 (distribute_loop): Don't do runtime alias check if there is non-
23026 addressable data reference.
23027 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
23028 is a register variable.
23029
23030 2019-03-02 Jakub Jelinek <jakub@redhat.com>
23031
23032 PR target/89506
23033 * config/arm/arm.md (cmpsi2_addneg): Use
23034 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
23035 If operands[2] is 0 or INT_MIN, force use of subs.
23036 (*compare_scc splitter): Use gen_int_mode.
23037 (*negscc): Likewise.
23038 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
23039
23040 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
23041 Monk Chiang <sh.chiang04@gmail.com>
23042
23043 * common/config/riscv/riscv-common.c: Include sstream.
23044 (riscv_subset_list::to_string): New.
23045 (riscv_arch_str): Likewise.
23046 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
23047 * config.in: Regen.
23048 * config/riscv/riscv-protos.h (riscv_arch_str): New.
23049 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
23050 (riscv_emit_attribute): New.
23051 (riscv_file_start): Emit attribute if needed.
23052 (riscv_option_override): Init riscv_emit_attribute_p.
23053 * config/riscv/riscv.opt (mriscv-attribute): New option.
23054 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
23055 * configure: Regen.
23056 * doc/install.texi: Document --with-riscv-attribute.
23057 * doc/invoke.texi: Document -mriscv-attribute.
23058
23059 * common/config/riscv/riscv-common.c:
23060 Include config/riscv/riscv-protos.h.
23061 (INCLUDE_STRING): Defined.
23062 (RISCV_DONT_CARE_VERSION): Defined.
23063 (riscv_subset_t): Declare.
23064 (riscv_subset_t::riscv_subset_t): New.
23065 (riscv_subset_list): Declare.
23066 (riscv_subset_list::riscv_subset_list): New.
23067 (riscv_subset_list::~riscv_subset_list): Likewise.
23068 (riscv_subset_list::parsing_subset_version): Likewise.
23069 (riscv_subset_list::parse_std_ext): Likewise.
23070 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23071 (riscv_subset_list::add): Likewise.
23072 (riscv_subset_list::lookup): Likewise.
23073 (riscv_subset_list::xlen): Likewise.
23074 (riscv_subset_list::parse): Likewise.
23075 (riscv_supported_std_ext): Likewise.
23076 (current_subset_list): Likewise.
23077 (riscv_parse_arch_string): Using riscv_subset_list::parse to
23078 parse.
23079
23080 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
23081
23082 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23083 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23084 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23085
23086 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23087
23088 PR rtl-optimization/85899
23089 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23090 fallthru edges leading to the exit block.
23091
23092 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23093
23094 PR target/89517
23095 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23096 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23097
23098 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23099
23100 PR tree-optimization/89535
23101 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23102 for each operand. Calculate the fallback choice for mask operands
23103 and pass it to vect_get_vec_def_for_operand.
23104
23105 2019-03-01 Richard Biener <rguenther@suse.de>
23106
23107 PR middle-end/89541
23108 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23109 get virtual operands.
23110 (get_expr_operands): Handle CONST_DECL like other decls.
23111
23112 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23113
23114 PR middle-end/89503
23115 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23116 on DECL_P and EXPR_P.
23117
23118 2019-03-01 Richard Biener <rguenther@suse.de>
23119
23120 PR middle-end/89497
23121 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23122 argument, defaulted to zero.
23123 * passes.c (execute_function_todo): Pass down SSA update flags
23124 to cleanup_tree_cfg.
23125 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23126 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23127 form if requested.
23128 (cleanup_tree_cfg): Get and pass down SSA update flags.
23129
23130 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23131
23132 PR bootstrap/89539
23133 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23134 early_lto_debug argument.
23135
23136 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23137
23138 PR tree-optimization/89536
23139 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23140 only whether bit #0 of the value is 0 instead of the entire value.
23141
23142 2019-02-28 Marek Polacek <polacek@redhat.com>
23143
23144 PR c++/87068 - missing diagnostic with fallthrough statement.
23145 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23146 at the end of a seq, save its location to walk_stmt_info.
23147 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23148 a switch.
23149
23150 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23151
23152 PR lto/88585
23153 * tree.c (find_atomic_core_type): Move ahead in file.
23154 (check_base_type): Correctly compare alignments of atomic types.
23155
23156 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23157
23158 PR target/89455
23159 * config/i386/i386.c (get_builtin_code_for_version): Identify
23160 Westmere from PCLMUL, instead of AES.
23161
23162 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23163
23164 PR target/89434
23165 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23166 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23167 -UINTVAL (...).
23168
23169 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23170
23171 PR target/88530
23172 * config/aarch64/aarch64-option-extensions.def: Document it.
23173 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23174 if empty hwcaps.
23175
23176 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23177
23178 PR c/89520
23179 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23180 builtins if they don't have a single scalar floating point argument.
23181 Formatting fixes.
23182
23183 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23184
23185 PR rtl-optimization/89490
23186 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23187 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23188 block section is not mergeable.
23189
23190 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23191
23192 PR target/70341
23193 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23194 old define_insn to ...
23195 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23196 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23197 Rename old define_insn to ...
23198 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23199 (thumb2_casesi_internal_pic): New define_expand. Rename old
23200 define_insn to ...
23201 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23202 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23203 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23204
23205 2019-02-27 Richard Biener <rguenther@suse.de>
23206
23207 PR debug/88878
23208 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23209
23210 2019-02-27 Richard Biener <rguenther@suse.de>
23211
23212 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23213 building.
23214
23215 2019-02-27 Richard Biener <rguenther@suse.de>
23216
23217 PR debug/88878
23218 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23219 parameter, prefix section name with .gnu.debuglto_ if true.
23220 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23221 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23222
23223 2019-02-27 Richard Biener <rguenther@suse.de>
23224
23225 PR debug/89514
23226 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23227 rather than on use_debug_types, doing what output_die does.
23228 (value_format): Likewise.
23229
23230 2019-02-27 Martin Jambor <mjambor@suse.cz>
23231 Martin Sebor <msebor@redhat.com>
23232
23233 * doc/invoke.texi (Warning Options): Reword description of
23234 -Wno-absolute-value.
23235
23236 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23237
23238 PR tree-optimization/89280
23239 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23240 builtin_setjmp_setup_bb): New functions.
23241 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23242 When visiting __builtin_setjmp_setup block, queue in special
23243 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23244 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23245 from visited after the loop if they don't have any visited successor
23246 blocks.
23247
23248 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23249
23250 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23251 New function.
23252 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23253
23254 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23255
23256 PR c++/89507
23257 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23258 with types other than sizetype/ssizetype.
23259
23260 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23261
23262 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23263 (enum sparc_processor_type): ...this.
23264 (enum sparc_code_model_type): New enumeration type.
23265 (enum sparc_memory_model_type): Tweak comments.
23266 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23267 (mtune): Likewise.
23268 (mcmodel): Use sparc_code_model enumeration and variable.
23269 (sparc_code_model): New enumeration.
23270 (mdebug): Add Undocumented marker.
23271 * config/sparc/sparc.h (enum cmodel): Delete.
23272 (sparc_cmodel): Likewise.
23273 (TARGET_CM_MEDLOW): Adjust to above renaming.
23274 (TARGET_CM_MEDMID): Likewise.
23275 (TARGET_CM_MEDANY): Likewise.
23276 (TARGET_CM_EMBMEDANY): Likewise.
23277 * config/sparc/sparc.c (sparc_cmodel): Delete.
23278 (sparc_option_override): Remove string/value mapping support for the
23279 code model. Move code and memory model support to after the handling
23280 of target flags. Do private machine setup last.
23281 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23282 (sparc_legitimize_reload_address): Likewise.
23283 (sparc_output_mi_thunk): Likewise.
23284 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23285
23286 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23287
23288 PR tree-optimization/89500
23289 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23290 (handle_builtin_strlen): Remove noncst_bound variable. Always
23291 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23292 cst if the first cst bytes starting at x are known to be non-zero,
23293 even if the string is not zero terminated. Don't try to modify
23294 *si for strnlen. Update strlen_to_stridx only for strlen or if
23295 we can prove strnlen returns the same value as strlen would.
23296
23297 2019-02-26 Martin Liska <mliska@suse.cz>
23298
23299 * alloc-pool.h (struct pool_usage): Remove extra
23300 print_dash_line.
23301 * bitmap.h (struct bitmap_usage): Likewise.
23302 * ggc-common.c (struct ggc_usage): Likewise.
23303 * mem-stats.h (struct mem_usage): Likewise.
23304 (mem_alloc_description::dump): Print dash lines
23305 here and repeat header at the end of a table report.
23306 It's then more readable.
23307 * tree-phinodes.c (phinodes_print_statistics): Make
23308 horizontal alignment.
23309 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23310 * vec.c (struct vec_usage): Remove extra print_dash_line.
23311 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23312
23313 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23314
23315 * doc/extend.texi (__builtin_object_size):
23316 Use @pxref instead of @xref inside parenthesis.
23317 (__builtin_has_attribute): Add missing comma after @xref.
23318 (__builtin_object_size): Ditto.
23319 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23320
23321 2019-02-26 Jeff Law <law@redhat.com>
23322
23323 PR rtl-optimization/87761
23324 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23325 detect obviously dead insns and delete them.
23326
23327 2019-02-26 Richard Biener <rguenther@suse.de>
23328
23329 PR tree-optimization/89505
23330 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23331 to handle restrict pointed-to vars with multiple subvars
23332 correctly.
23333
23334 2019-02-26 Richard Biener <rguenther@suse.de>
23335
23336 PR tree-optimization/89489
23337 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23338
23339 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23340
23341 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23342 and move around comment.
23343 <BIT_AND_EXPR>: Likewise.
23344 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23345
23346 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23347
23348 PR target/89474
23349 * config/i386/i386.c (remove_partial_avx_dependency): Call
23350 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23351 after changing possibly many instructions to use that pseudo. Fix up
23352 insertion of v4sf_const0 setter at the start of bb.
23353
23354 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23355
23356 PR c/80409
23357 * doc/extend.texi (Variadic Pointer Args): New section.
23358
23359 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23360 Martin Sebor <msebor@gmail.com>
23361
23362 * common.opt (Wattribute-alias): Likewise.
23363 * doc/invoke.texi (Option Summary): List general form of
23364 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23365 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23366 Add cross-references.
23367 (-Wattribute-alias): Rewrite and correct default. Mention
23368 considered attributes (same as for -Wmissing-attributes).
23369
23370 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23371
23372 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23373 (_mm_cvtpd_ps): Likewise.
23374 (_mm_cvttpd_epi32): Likewise.
23375
23376 PR target/89338
23377 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23378 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23379
23380 PR target/89339
23381 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23382
23383 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23384
23385 PR target/88530
23386 * common/config/aarch64/aarch64-common.c
23387 (struct aarch64_option_extension): Add is_synthetic.
23388 (all_extensions): Use it.
23389 (TARGET_OPTION_INIT_STRUCT): Define hook.
23390 (struct gcc_targetm_common): Moved to end.
23391 (all_extensions_by_on): New.
23392 (opt_ext_cmp, typedef opt_ext): New.
23393 (aarch64_option_init_struct): New.
23394 (aarch64_contains_opt): New.
23395 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23396 * config/aarch64/aarch64-option-extensions.def
23397 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23398 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23399 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23400 Set is_synthetic to false.
23401 (crypto): Set is_synthetic to true.
23402 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23403 SYNTHETIC.
23404
23405 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23406
23407 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23408 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23409 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23410 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23411 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23412 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23413 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23414 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23415 Rename ...
23416 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23417 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23418 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23419 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23420 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23421 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23422 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23423 vfmlsl_laneq_high_f16): ... To this.
23424 * config/arm/neon.md: Update comments.
23425
23426 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23427
23428 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23429 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23430 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23431 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23432 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23433 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23434 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23435 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23436 Rename ...
23437 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23438 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23439 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23440 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23441 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23442 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23443 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23444 vfmlslq_laneq_high_f16): ... To this.
23445
23446 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23447
23448 PR rtl-optimization/86096
23449 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23450 comparing mw_order values.
23451
23452 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23453
23454 PR target/89434
23455 * config/arm/arm.md (*subsi3_carryin_const): Use
23456 arm_neg_immediate_operand predicate instead of
23457 arm_not_immediate_operand, "L" constraint instead of "K" and
23458 print it using %n2 instead of %B2.
23459 (*subsi3_carryin_const0): New define_insn.
23460 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23461 instead of arm_not_operand and "I" constraint instead of "K" and
23462 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23463 another match_operand and in the condition check that it is negation
23464 of operands[2].
23465 (*subsi3_carryin_compare_const0): New define_ins.
23466 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23467 *subsi3_carryin_const.
23468 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23469 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23470
23471 PR target/89438
23472 * config/arm.vfp.md (*negdf2_vfp): Use
23473 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23474 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23475
23476 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23477
23478 PR rtl-optimization/89445
23479 * simplify-rtx.c (simplify_ternary_operation): Don't use
23480 simplify_merge_mask on operands that may trap.
23481 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23482 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23483 second operand is CONST_VECTOR, check if any element could be zero.
23484 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23485 their operands can trap.
23486
23487 2019-02-23 Martin Sebor <msebor@redhat.com>
23488
23489 * gimple-ssa-sprintf.c (target_strtol): Rename...
23490 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23491 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23492 check for range error.
23493
23494 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23495
23496 PR driver/69471
23497 * opts-common.c (prune_options): Also prune joined switches
23498 with Negative and RejectNegative.
23499 * config/i386/i386.opt (march=): Add Negative(march=).
23500 (mtune=): Add Negative(mtune=).
23501 * doc/options.texi: Document Negative used together with Joined
23502 and RejectNegative.
23503
23504 2019-02-22 Martin Sebor <msebor@redhat.com>
23505
23506 * doc/extend.texi (Other Builtins): Add
23507 __builtin_is_constant_evaluated.
23508
23509 2019-02-22 Richard Biener <rguenther@suse.de>
23510
23511 PR tree-optimization/87609
23512 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23513
23514 2019-02-22 Jeff Law <law@redhat.com>
23515
23516 PR rtl-optimization/87761
23517 * config/mips/mips.md: Add new combiner pattern to recognize
23518 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23519
23520 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23521
23522 PR target/89324
23523 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23524 destination register in peepholes generating patterns for ADDS/SUBS.
23525 (add<mode>3_compare0,
23526 *addsi3_compare0_uxtw, add<mode>3_compareC,
23527 add<mode>3_compareV_imm, add<mode>3_compareV,
23528 *adds_<optab><ALLX:mode>_<GPI:mode>,
23529 *subs_<optab><ALLX:mode>_<GPI:mode>,
23530 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23531 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23532 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23533 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23534 sub<mode>3_compare1): Allow stack pointer for source register.
23535 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23536
23537 2019-02-22 Martin Sebor <msebor@redhat.com>
23538
23539 PR tree-optimization/88993
23540 PR tree-optimization/88853
23541 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23542 New helper.
23543 (sprintf_dom_walker::call_info::is_string_func): New helper.
23544 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23545 for formatted string functions.
23546 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23547
23548 2019-02-22 Martin Sebor <msebor@redhat.com>
23549
23550 PR c/89425
23551 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23552 unreachable subexpressions.
23553
23554 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23555 Hongtao Liu <hongtao.liu@intel.com>
23556 Sunil K Pandey <sunil.k.pandey@intel.com>
23557
23558 PR target/87007
23559 * config/i386/i386-passes.def: Add
23560 pass_remove_partial_avx_dependency.
23561 * config/i386/i386-protos.h
23562 (make_pass_remove_partial_avx_dependency): New.
23563 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23564 New function.
23565 (pass_data_remove_partial_avx_dependency): New.
23566 (pass_remove_partial_avx_dependency): Likewise.
23567 (make_pass_remove_partial_avx_dependency): Likewise.
23568 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23569 (*extendsfdf2): Add avx_partial_xmm_update.
23570 (truncdfsf2): Likewise.
23571 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23572 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23573
23574 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23575
23576 PR middle-end/85598
23577 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23578 analysis for pass.
23579
23580 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23581
23582 PR target/89444
23583 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23584 (PTA_SKYLAKE): Add PTA_AES.
23585 (PTA_GOLDMONT): Likewise.
23586
23587 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23588
23589 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23590 instruction if enabled.
23591 (aarch64_override_options): Remove reference to return address key.
23592
23593 2019-02-22 Richard Biener <rguenther@suse.de>
23594
23595 PR tree-optimization/89440
23596 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23597 not necessary assert.
23598
23599 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23600
23601 PR fortran/72741
23602 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23603 (oacc_replace_fn_attrib_attr): ... this new function.
23604 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23605 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23606
23607 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23608
23609 * config/arm/arm-cpus.in (ares): Rename to...
23610 (neoverse-n1): ... This. Add ares as alias.
23611 * config/arm/arm-tables.opt: Regenerate.
23612 * config/arm/arm-tune.md: Likewise.
23613 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23614
23615 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23616
23617 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23618 * config/aarch64/aarch64-tune.md: Regenerate.
23619 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23620
23621 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23622
23623 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23624 (neoversen1_tunings): ... This.
23625 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23626 (neoverse-n1): New CPU.
23627 * config/aarch64/aarch64-tune.md: Regenerate.
23628 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23629
23630 2019-02-22 Richard Biener <rguenther@suse.de>
23631
23632 PR middle-end/87609
23633 * cfghooks.h (dependence_hash): New typedef.
23634 (struct copy_bb_data): New type.
23635 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23636 (duplicate_block): Likewise.
23637 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23638 (copy_bbs): Create and pass down copy_bb_data.
23639 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23640 (rtl_duplicate_bb): Likewise.
23641 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23642 remap dependence info.
23643
23644 2019-02-22 Richard Biener <rguenther@suse.de>
23645
23646 PR tree-optimization/87609
23647 * tree-core.h (tree_base): Document special clique values.
23648 * tree-inline.c (remap_dependence_clique): Do not use the
23649 special clique value of one.
23650 (maybe_set_dependence_info): Use clique one.
23651 (clear_dependence_clique): New callback.
23652 (compute_dependence_clique): Clear clique one from all refs
23653 before assigning it (again).
23654
23655 2019-02-21 Martin Sebor <msebor@redhat.com>
23656
23657 * doc/extend.texi (__clear_cache): Correct signature.
23658
23659 2019-02-21 Ian Lance Taylor <iant@golang.org>
23660
23661 PR go/89170
23662 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23663 than output_constant_def.
23664 (add_constant_to_table): New static function.
23665 (output_constant_def): Call add_constant_to_table.
23666 (tree_output_constant_def): Likewise.
23667
23668 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23669
23670 PR c++/89285
23671 * builtins.c (fold_builtin_arith_overflow): If first two args are
23672 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23673 to ifn.
23674
23675 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23676
23677 PR target/87412
23678 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23679 error for -mindirect-branch/-mfunction-return with incompatible
23680 -fcf-protection.
23681
23682 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23683
23684 PR bootstrap/88714
23685 * constraints.md (q): Remove.
23686 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23687 instead of q.
23688
23689 2019-02-21 Martin Jambor <mjambor@suse.cz>
23690
23691 PR hsa/89302
23692 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23693 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23694 (omp_adjust_for_condition): ...here. Added necessary parameters.
23695 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23696 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23697 proper values to new parameters of omp_adjust_for_condition.
23698
23699 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23700
23701 PR middle-end/89412
23702 * expr.c (expand_assignment): If result is a MEM, use change_address
23703 instead of simplify_gen_subreg.
23704
23705 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23706 David Malcolm <dmalcolm@redhat.com>
23707
23708 PR middle-end/89091
23709 * fold-const.c (decode_field_reference): Return NULL_TREE if
23710 lang_hooks.types.type_for_size returns NULL. Check it before
23711 overwriting *exp_. Use return NULL_TREE instead of return 0.
23712
23713 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23714
23715 PR middle-end/88074
23716 PR middle-end/89415
23717 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23718 buggy mpc_norm.
23719
23720 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23721
23722 PR target/89397
23723 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23724 TARGET_SSE in addition to TARGET_SSE_MATH.
23725
23726 (ix86_excess_precision): Ditto.
23727 (ix86_float_exceptions_rounding_supported_p): Ditto.
23728 (use_rsqrt_p): Ditto.
23729 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23730
23731 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23732
23733 PR c/89410
23734 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23735 linenum_arith_t when determining if two adjacent line spans are
23736 close enough to merge.
23737 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23738 lines within each line_span.
23739
23740 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23741
23742 PR target/86487
23743 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23744 paradoxical SUBREGS.
23745
23746 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23747
23748 PR target/88100
23749 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23750 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23751 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23752 range checking it.
23753
23754 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23755
23756 * config/gcn/gcn.c (print_operand): Fix typo.
23757
23758 2019-02-19 Richard Biener <rguenther@suse.de>
23759
23760 PR middle-end/88074
23761 * toplev.c (do_compile): Initialize mpfr's exponent range
23762 based on available float modes.
23763
23764 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23765
23766 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23767 as long as the epilogue isn't completed.
23768
23769 2019-02-18 Martin Sebor <msebor@redhat.com>
23770
23771 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23772 __has_cpp_attribute, and __has_include.
23773
23774 2019-02-18 Martin Sebor <msebor@redhat.com>
23775
23776 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23777
23778 2019-02-18 Martin Sebor <msebor@redhat.com>
23779
23780 PR middle-end/89294
23781 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23782 expression.
23783 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23784
23785 2019-02-18 Richard Biener <rguenther@suse.de>
23786
23787 PR tree-optimization/89296
23788 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23789 of no-warning flag to cases that might emit the bogus warning.
23790
23791 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23792
23793 PR bootstrap/88714
23794 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23795 "q" constraint.
23796 * config/arm/vfp.md (*movdi_vfp): Likewise.
23797 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23798 "q" constraint for operands[0].
23799
23800 PR target/89369
23801 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23802 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23803 pattern in a temporary buffer.
23804 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23805 than 64-operands[2].
23806
23807 PR target/89361
23808 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23809 s390_indirect_branch_settings): Define unconditionally.
23810 (s390_set_current_function): Likewise, but guard the whole body except
23811 the s390_indirect_branch_settings call with
23812 #if S390_USE_TARGET_ATTRIBUTE.
23813 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23814
23815 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23816 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23817 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23818 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23819 HOST_WIDE_INT_1U instead of 1ULL.
23820 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23821 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23822 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23823 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23824 instead of 1UL.
23825 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23826 instead of 1ul.
23827
23828 2019-02-18 Martin Jambor <mjambor@suse.cz>
23829
23830 PR tree-optimization/89209
23831 * tree-sra.c (create_access_replacement): New optional parameter
23832 reg_tree. Use it as a type if non-NULL and access type is not of
23833 a register type.
23834 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23835 to create_access_replacement.
23836 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23837 Check lacc is non-NULL before attempting to re-create it on the RHS.
23838
23839 2019-02-18 Martin Liska <mliska@suse.cz>
23840
23841 PR ipa/89306
23842 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23843 by default.
23844 (symbol_table::free_edge): Recycle m_summary_id.
23845 * cgraph.h (get_summary_id): New.
23846 (symbol_table::release_symbol): Set m_summary_id to -1
23847 by default.
23848 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23849 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23850 function_summary to fast_function_summary.
23851 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23852 * ipa-pure-const.c (class funct_state_summary_t):
23853 Switch from function_summary to fast_function_summary.
23854 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23855 (class ipa_ref_opt_summary_t): Switch from function_summary
23856 to fast_function_summary.
23857 * symbol-summary.h (class function_summary_base): New class
23858 that is created from base of former function_summary.
23859 (function_summary_base::unregister_hooks): New.
23860 (class function_summary): Inherit from function_summary_base.
23861 (class call_summary_base): New class
23862 that is created from base of former call_summary.
23863 (class call_summary): Inherit from call_summary_base.
23864 (struct is_same): New.
23865 (class fast_function_summary): New summary class.
23866 (class fast_call_summary): New summary class.
23867 * vec.h (vec_safe_grow_cleared): New function.
23868
23869 2019-02-18 Martin Liska <mliska@suse.cz>
23870
23871 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23872 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23873 * doc/tm.texi: Document new target hook.
23874 * doc/tm.texi.in: Likewise.
23875 * target.def: Add new target macro.
23876 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23877 suffixes.
23878
23879 2019-02-17 Alan Modra <amodra@gmail.com>
23880
23881 PR target/89271
23882 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23883 output reg on add insn.
23884 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23885
23886 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23887
23888 PR target/89372
23889 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23890 (PMULHRSW): Likewise.
23891 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23892 TARGET_AVX2.
23893 (ssse3_pmulhrswv4hi3): New expander.
23894
23895 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23896
23897 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23898 MMX. Add isa attribute.
23899
23900 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23901
23902 PR rtl-optimization/66152
23903 * builtins.h (c_readstr): Declare.
23904 * builtins.c (c_readstr): Remove forward declaration. Add
23905 null_terminated_p argument, if false, read all bytes from the
23906 string instead of stopping after '\0'.
23907 * expr.c (string_cst_read_str): New function.
23908 (store_expr): Use string_cst_read_str instead of
23909 builtin_strncpy_read_str. Try to store by pieces the whole
23910 exp_len first, and only if that fails, split it up into
23911 store by pieces followed by clear_storage. Formatting fix.
23912
23913 * config/i386/i386.md (*movqi_internal): Remove static from
23914 buf variable. Use output_asm_insn (buf, operands); return "";
23915 instead of return buf;.
23916 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23917 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23918 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23919
23920 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23921
23922 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23923 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23924 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23925 (CC1_SPEC): Likewise.
23926 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23927
23928 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23929
23930 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23931 the base address on 64-bit strict-alignment platforms.
23932
23933 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23934
23935 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23936
23937 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23938
23939 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23940
23941 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23942
23943 PR rtl-optimization/88308
23944 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23945 on copied instruction.
23946
23947 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23948
23949 * final.c (insn_current_reference_address): Replace test on JUMP_P
23950 with test on jump_to_label_p.
23951 * config/visium/visium-passes.def: New file.
23952 * config/visium/t-visium (PASSES_EXTRA): Define.
23953 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23954 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23955 (TRAMPOLINE_ALIGNMENT): Define.
23956 * config/visium/visium.c (visium_option_override): Do not register
23957 the machine-specific reorg pass here.
23958 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23959 for the GR6.
23960 (output_branch): Adjust threshold for long branch instruction.
23961 * config/visium/visium.md (cpu): Move around.
23962 (length): Adjust for the GR6.
23963
23964 2019-02-15 Richard Biener <rguenther@suse.de>
23965 Jakub Jelinek <jakub@redhat.com>
23966
23967 PR tree-optimization/89278
23968 * tree-loop-distribution.c: Include tree-eh.h.
23969 (generate_memset_builtin, generate_memcpy_builtin): Call
23970 rewrite_to_non_trapping_overflow on builtin->size before passing it
23971 to force_gimple_operand_gsi.
23972
23973 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23974
23975 PR other/89342
23976 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23977 optimize_debug.
23978 * opth-gen.awk: Likewise.
23979
23980 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23981
23982 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23983 Enable MMX, SSE and SSE2 by default.
23984 * config/i386/i386.c (ix86_option_override_internal): Do not
23985 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23986
23987 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23988
23989 PR rtl-optimization/89354
23990 * combine.c (make_extraction): Punt if extraction_mode is narrower
23991 than len bits.
23992
23993 2019-02-14 Maya Rashish <coypu@sdf.org>
23994
23995 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23996 * config/netbsd-d.c: New file.
23997 * config/t-netbsd: Add netbsd-d.o
23998
23999 2018-02-14 Steve Ellcey <sellcey@marvell.com>
24000
24001 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
24002 affects_type_identity to true for aarch64_vector_pcs.
24003 (aarch64_comp_type_attributes): New function.
24004 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
24005
24006 2019-02-14 Tamar Christina <tamar.christina@arm.com>
24007
24008 PR target/88850
24009 * config/arm/iterators.md (ANY64): Add V4HF.
24010
24011 2019-02-14 Martin Liska <mliska@suse.cz>
24012
24013 PR rtl-optimization/89242
24014 * dce.c (delete_unmarked_insns): Call free_dominance_info we
24015 process a transformation.
24016
24017 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24018
24019 PR tree-optimization/89314
24020 * fold-const.c (fold_binary_loc): Cast strlen argument to
24021 const char * before dereferencing it. Formatting fixes.
24022
24023 PR middle-end/89284
24024 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
24025
24026 2019-02-13 Ian Lance Taylor <iant@golang.org>
24027
24028 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
24029 and set current index for other optimizations.
24030
24031 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
24032
24033 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
24034 nonimmediate_operand as operand 2 predicate.
24035 (vec_set<VF2_512_256:mode>_0): Ditto.
24036 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
24037 (*vec_concatv2si): Remove alternative 2.
24038 (*vec_concatv4si_0): Use vm constraint for alternative 0.
24039 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
24040 (vec_concatv2di): Split alternatives 4,5,6 to ...
24041 (*vec_concatv2di_0) ... new pattern.
24042
24043 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
24044
24045 PR target/89190
24046 * config/arm/arm.c (ldm_stm_operation_p) Set
24047 addr_reg_in_reglist correctly for first register.
24048 (load_multiple_sequence): Remove dead base check.
24049 (gen_ldm_seq): Correctly set write_back for Thumb-1.
24050
24051 2019-02-13 Tamar Christina <tamar.christina@arm.com>
24052
24053 PR target/88847
24054 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
24055 Expose as @aarch64_pred_mov.
24056 * config/aarch64/aarch64.c (aarch64_classify_address):
24057 Use expand_insn which legitimizes operands.
24058
24059 2019-02-13 Martin Liska <mliska@suse.cz>
24060
24061 * builtins.h (expand_builtin_with_bounds): Remove declaration.
24062 * calls.c (struct arg_data): Remove special_slot, pointer_arg
24063 and pointer_offset fields.
24064 (initialize_argument_information): Remove usage of dead
24065 fields.
24066 * cgraph.h (struct cgraph_thunk_info): Remove
24067 add_pointer_bounds_args.
24068 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
24069 fields.
24070 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
24071 fields.
24072 * config/i386/i386.c (ix86_function_arg_advance): Remove
24073 unrelated comment.
24074 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
24075 (def_builtin): Remove usage of dead fields.
24076 (ix86_add_new_builtins): Likewise.
24077 * ipa-fnsummary.c (compute_fn_summary): Likewise.
24078 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24079 (sem_function::init): Likewise.
24080 (sem_variable::merge): Likewise.
24081 * ipa-visibility.c (function_and_variable_visibility): Likewise.
24082 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
24083 * lto-cgraph.c (lto_output_node): Likewise.
24084 (lto_output_varpool_node): Likewise.
24085 (input_node): Likewise.
24086 (input_varpool_node): Likewise.
24087 * lto-streamer-out.c (lto_output): Likewise.
24088 * tree-inline.c (expand_call_inline): Remove usage of
24089 assign_stmts.
24090 * tree-inline.h (struct copy_body_data): Likewise.
24091 * varpool.c (varpool_node::dump): Likewise.
24092
24093 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24094
24095 PR middle-end/89303
24096 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24097 into pt->vars_contains_escaped_heap instead of setting
24098 pt->vars_contains_escaped_heap to it.
24099
24100 PR middle-end/89281
24101 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24102 INTVAL (size), compare it to GET_MODE_MASK instead of
24103 1 << GET_MODE_BITSIZE.
24104
24105 PR target/89290
24106 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24107 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24108 -mcmodel=large.
24109
24110 2019-02-13 Martin Liska <mliska@suse.cz>
24111
24112 PR lto/88858
24113 * cfgrtl.c (remove_barriers_from_footer): New function.
24114 (try_redirect_by_replacing_jump): Use it.
24115 (cfg_layout_redirect_edge_and_branch): Likewise.
24116
24117 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24118
24119 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24120 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24121 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24122 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24123 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24124 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24125 New BU_CRYPTO_2.
24126 * config/rs6000/rs6000.c (builtin_function_type)
24127 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24128 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24129 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24130 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24131 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24132
24133 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24134
24135 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24136 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24137
24138 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24139
24140 PR target/89229
24141 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24142 268678 and revision 268657.
24143 (*movti_internal): Likewise.
24144
24145 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24146
24147 PR target/89233
24148 * config/s390/s390.c (s390_decompose_address): Update comment.
24149 (s390_check_qrst_address): Reject invalid address forms after
24150 LRA.
24151
24152 2019-02-12 Martin Liska <mliska@suse.cz>
24153
24154 PR lto/88876
24155 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24156 we need default values of funct_state for a function that
24157 is not optimized.
24158
24159 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24160
24161 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24162 the object to pick the size of stores on strict-alignment platforms.
24163
24164 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24165 (*movdi_insn_sp32): Likewise.
24166 (*movdi_insn_sp64): Likewise.
24167
24168 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24169
24170 PR lto/88677
24171 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24172 types that needs constructiong.
24173 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24174
24175 2019-02-12 Richard Biener <rguenther@suse.de>
24176
24177 PR tree-optimization/89253
24178 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24179 duplicate the loop.
24180
24181 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24182
24183 PR lto/88147
24184 * input.c (selftest::test_line_offset_overflow): New selftest.
24185 (selftest::input_c_tests): Call it.
24186
24187 2019-02-11 Martin Sebor <msebor@redhat.com>
24188
24189 PR tree-optimization/88771
24190 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24191 when -Wstringop-overflow is set.
24192 (builtin_memref::builtin_memref): Adjust excessive upper bound
24193 only when lower bound is not excessive.
24194 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24195 -Wstringop-ovefflow.
24196 (maybe_diag_offset_bounds): Rename...
24197 (maybe_diag_access_bounds): ...to this.
24198 (check_bounds_or_overlap): Adjust for name change above.
24199
24200 2019-02-11 Martin Sebor <msebor@redhat.com>
24201
24202 PR c++/87996
24203 * builtins.c (max_object_size): Move from here...
24204 * builtins.h (max_object_size): ...and here...
24205 * tree.c (max_object_size): ...to here...
24206 * tree.h (max_object_size): ...and here.
24207
24208 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24209
24210 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24211 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24212 for correct semantics.
24213
24214 2019-02-11 Alan Modra <amodra@gmail.com>
24215
24216 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24217 -mlongcall and -mpltseq.
24218 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24219 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24220 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24221 * config/rs6000/sysv4.opt (mpltseq): New option.
24222 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24223 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24224 support is lacking. Don't allow -mpltseq with -mbss-plt.
24225 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24226 -mpltseq given for ELFv1.
24227 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24228 Only use UNSPEC_PLTSEQ for inline PLT calls.
24229 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24230 use UNSPEC_PLTSEQ for inline PLT calls.
24231 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24232 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24233 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24234 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24235 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24236 (pltseq_mtctr_<mode>): Likewise.
24237
24238 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24239
24240 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24241 Solaris ld.
24242 * configure: Regenerate.
24243
24244 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24245
24246 PR bootstrap/88714
24247 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24248 instead of r.
24249
24250 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24251
24252 * function.c (assign_parm_setup_block): Use the stored
24253 size, not the passed size, when allocating stack-space,
24254 also for a parameter with alignment larger than
24255 MAX_SUPPORTED_STACK_ALIGNMENT.
24256
24257 2019-02-11 Martin Liska <mliska@suse.cz>
24258
24259 PR ipa/89009
24260 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24261 * ipa-inline.c (inline_small_functions): Likewise.
24262 * ipa-pure-const.c (propagate_pure_const): Likewise.
24263 (propagate_nothrow): Likewise.
24264 * ipa-reference.c (propagate): Likewise.
24265 * ipa-utils.c (struct searchc_env): Remove unused field.
24266 (searchc): Always search across AVAIL_INTERPOSABLE.
24267 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24268 the only called IPA pure const can properly not propagate
24269 across interposable boundary.
24270 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24271
24272 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24273
24274 * config/nds32/nds32.md (call_internal, call_value_internal,
24275 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24276
24277 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24278
24279 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24280 typo.
24281
24282 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24283
24284 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24285 in comments
24286
24287 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24288
24289 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24290
24291 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24292
24293 PR tree-optimization/89268
24294 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24295 if preds is non-NULL.
24296
24297 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24298
24299 PR lto/89272
24300 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24301 polymorphic types.
24302
24303 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24304
24305 * config/nds32/nds32.md (trap): New pattern.
24306
24307 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24308
24309 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24310 dwarf span.
24311
24312 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24313
24314 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24315 to split POST_INC.
24316
24317 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24318
24319 * ipa-visibility.c (localize_node): Also do not localize
24320 LDPR_PREVAILING_DEF_IRONLY_EXP.
24321
24322 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24323
24324 PR lto/87957
24325 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24326 instead of type_with_linkage.
24327
24328 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24329
24330 PR ipa/88755
24331 * params.def (uninlined-function-insns, uninlined-function-time,
24332 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24333 bound so we don't get overflows.
24334
24335 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24336
24337 * config/rs6000/rs6000-string.c (expand_compare_loop,
24338 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24339 memcmp/strncmp.
24340
24341 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24342
24343 PR middle-end/89246
24344 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24345 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24346 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24347
24348 2019-02-09 Alan Modra <amodra@gmail.com>
24349
24350 PR target/88343
24351 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24352 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24353 setup.
24354
24355 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24356
24357 PR middle-end/88560
24358 * lra-constraints.c (process_alt_operands): Don't increase reject
24359 for memory when offset memory is required.
24360
24361 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24362
24363 * config/s390/vector.md: Implement vector copysign.
24364
24365 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24366
24367 * expr.c (expand_constructor): Correct indentations.
24368
24369 2019-02-08 Richard Biener <rguenther@suse.de>
24370
24371 PR tree-optimization/89247
24372 * tree-if-conv.c: Include tree-cfgcleanup.h.
24373 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24374 (tree_if_conversion): Pass through predicate vector.
24375 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24376 inline, see if any if-converted loops we refrece in
24377 LOOP_VECTORIZED calls vanished and fixup.
24378 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24379
24380 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24381
24382 * config/s390/constraints.md (jdd): New constraint.
24383
24384 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24385
24386 PR target/89229
24387 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24388 upper 16 vector registers without TARGET_AVX512VL.
24389 (*movti_internal): Likewise.
24390
24391 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24392
24393 PR rtl-optimization/89234
24394 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24395 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24396 (copy_reg_eh_region_note_backward): Likewise.
24397
24398 2019-02-08 Richard Biener <rguenther@suse.de>
24399
24400 PR middle-end/89223
24401 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24402 doesn't fit in HWI.
24403 (analyze_subscript_affine_affine): Handle failure from
24404 initialize_matrix_A.
24405
24406 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24407
24408 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24409 cfun everywhere.
24410
24411 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24412
24413 PR tree-optimization/86637
24414 PR tree-optimization/89235
24415 * tree-vect-loop.c (optimize_mask_stores): Add an
24416 auto_purge_vect_location sentinel to ensure that vect_location is
24417 purged on exit.
24418 * tree-vectorizer.c
24419 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24420 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24421 to ensure that vect_location is purged on exit.
24422 (pass_slp_vectorize::execute): Likewise, replacing the manual
24423 reset.
24424 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24425
24426 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24427
24428 * config/aarch64/iterators.md (max_opp): New code_attr.
24429 (USMAX): New code iterator.
24430 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24431 (aarch64_smax): Likewise.
24432 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24433 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24434 MINUS (MAX MIN).
24435
24436 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24437
24438 PR target/89229
24439 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24440 for TARGET_AVX512VL.
24441 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24442
24443 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24444
24445 * config/s390/s390-builtin-types.def: Add new types.
24446 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24447 (s390_vec_xlw4): Make the memory operand into a const pointer.
24448 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24449 float.
24450 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24451 a new vector type with the alignment of the scalar memory operand.
24452
24453 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24454 Jakub Jelinek <jakub@redhat.com>
24455
24456 PR bootstrap/88714
24457 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24458 arm_count_ldrdstrd_insns): New declarations.
24459 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24460 MINUS.
24461 (valid_operands_ldrd_strd): New function.
24462 (arm_count_ldrdstrd_insns): New function.
24463 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24464 sets instead of single DImode set and define new insns to match this.
24465
24466 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24467
24468 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24469 Make it a C initializer.
24470
24471 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24472
24473 PR/target 88850
24474 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24475
24476 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24477
24478 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24479 Use neon_dot<q> for type.
24480 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24481
24482 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24483
24484 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24485 Use neon_dot<q> for type.
24486 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24487 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24488
24489 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24490
24491 PR rtl-optimization/89225
24492 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24493 sizes check.
24494
24495 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24496
24497 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24498 after restoring registers saved to allocate the frame on Windows.
24499
24500 2019-02-06 Richard Biener <rguenther@suse.de>
24501
24502 PR tree-optimization/89182
24503 * graphite.h (cached_scalar_evolution_in_region): Declare.
24504 * graphite.c (struct seir_cache_key): New.
24505 (struct sese_scev_hash): Likewise.
24506 (seir_cache): New global.
24507 (cached_scalar_evolution_in_region): New function.
24508 (graphite_transform_loops): Allocate and release seir_cache.
24509 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24510 cached_scalar_evolution_in_region.
24511 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24512 Simplify.
24513 (scop_detection::graphite_can_represent_expr: Use
24514 cached_scalar_evolution_in_region.
24515 (scop_detection::stmt_simple_for_scop_p): Likewise.
24516 (find_params_in_bb): Likewise.
24517 (gather_bbs::before_dom_children): Likewise.
24518 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24519 (add_loop_constraints): Likewise.
24520
24521 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24522
24523 PR middle-end/89210
24524 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24525 operand to new_unary_operation only if both element types are integral
24526 and it isn't a widening conversion. Return NULL_TREE if
24527 new_unary_operation failed.
24528
24529 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24530
24531 PR target/88856
24532 * config/s390/s390.md: Remove load and test FP splitter.
24533
24534 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24535
24536 PR target/89112
24537 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24538 expand_compare_loop, expand_block_compare_gpr,
24539 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24540 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24541 #include "profile-count.h" and "predict.h" for types and functions
24542 needed to work with REG_BR_PROB notes.
24543
24544 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24545
24546 PR target/89112
24547 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24548 for the long branch case.
24549
24550 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24551
24552 PR target/89188
24553 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24554 can throw, non-call exceptions are enabled and we can't delete
24555 dead exceptions or alter cfg. Set must_clean if
24556 delete_insn_and_edges returns true, don't set it blindly for calls.
24557 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24558
24559 PR rtl-optimization/89195
24560 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24561 of the original MEM.
24562
24563 2019-02-05 Martin Liska <mliska@suse.cz>
24564
24565 PR gcov-profile/89000
24566 * gcov.c (function_summary): Remove argument.
24567 (file_summary): New function.
24568 (print_usage): Replace tabs with spaces.
24569 (generate_results): Use new function file_summary.
24570
24571 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24572
24573 PR target/89186
24574 * optabs.c (prepare_cmp_insn): Pass x and y to
24575 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24576
24577 2019-02-05 Richard Biener <rguenther@suse.de>
24578
24579 PR middle-end/89150
24580 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24581 (struct bitmap_element): Drop chain_prev so we properly recurse on
24582 the prev member, supporting tree views.
24583 (struct bitmap_head): GTY skip the obstack member.
24584
24585 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24586
24587 PR c/88698
24588 * doc/extend.texi (Vector Extensions): Add an example of using vector
24589 types together with x86 intrinsics.
24590
24591 2019-02-04 Alan Modra <amodra@gmail.com>
24592
24593 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24594 str[] size to 160, and comment.
24595
24596 2019-02-04 Alan Modra <amodra@gmail.com>
24597
24598 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24599 (rs6000_pltseq_template): Guard output of TLS markers with
24600 TARGET_TLS_MARKERS.
24601 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24602 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24603 to use inline PLT sequences.
24604 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24605 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24606 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24607
24608 2019-02-04 Martin Liska <mliska@suse.cz>
24609
24610 PR ipa/88985
24611 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24612 out when ipa_fn_summaries does not contain entry for callee.
24613
24614 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24615
24616 * config/sparc/sparc.h: Remove superfluous blank lines.
24617 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24618 (got_register_rtx): ...this.
24619 (sparc_got): Adjust to above renaming.
24620 (sparc_tls_got): Likewise.
24621 (sparc_delegitimize_address): Likewise.
24622 (sparc_output_mi_thunk): Likewise.
24623 (sparc_init_pic_reg): Likewise.
24624 (save_local_or_in_reg_p): Fix test on the GOT register.
24625 (USE_HIDDEN_LINKONCE): Move around.
24626 (get_pc_thunk_name): Likewise.
24627 (gen_load_pcrel_sym): Likewise.
24628 (load_got_register): Likewise.
24629
24630 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24631
24632 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24633 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24634
24635 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24636
24637 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24638 into consideration.
24639
24640 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24641
24642 * config.gcc (with_nds32_lib, glibc):
24643 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24644 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24645 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24646
24647 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24648
24649 PR target/89071
24650 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24651 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24652 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24653 (*rcpsf2_sse): Ditto.
24654 (*rsqrtsf2_sse): Ditto.
24655 (sse4_1_round<mode<2): Ditto.
24656
24657 2019-02-03 Richard Biener <rguenther@suse.de>
24658
24659 PR debug/87295
24660 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24661 orig.
24662
24663 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24664
24665 PR middle-end/87887
24666 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24667 Punt with warning on aggregate return or argument types. Ignore
24668 type/mode checking for uniform arguments.
24669
24670 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24671
24672 * combine.c (try_combine): Do not print "Can't combine" messages unless
24673 printing failed combination attempts.
24674
24675 2019-02-01 Martin Jambor <mjambor@suse.cz>
24676
24677 PR hsa/87863
24678 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24679 segment and global segment variables before making them static.
24680
24681 2019-02-01 Martin Jambor <mjambor@suse.cz>
24682
24683 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24684 missed optimization dump with dump_enabled_p.
24685
24686 2019-02-01 Richard Biener <rguenther@suse.de>
24687
24688 PR middle-end/88597
24689 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24690 the instantiate cache.
24691 (instantiate_scev_binary): Elide second operand procesing
24692 if equal to the first.
24693 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24694 (chrec_contains_undetermined): Likewise.
24695 (tree_contains_chrecs): Likewise.
24696
24697 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24698
24699 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24700
24701 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24702
24703 PR tree-optimization/89143
24704 * wide-int-range.h (wide_int_range_absu): Declare.
24705 * wide-int-range.cc (wide_int_range_absu): New function.
24706 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24707
24708 PR tree-optimization/88107
24709 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24710 instead of assertion that eh_region_outermost is non-NULL, if it
24711 is NULL, set *ALL to true and return NULL.
24712 (move_sese_region_to_fn): Adjust caller, if all is set, call
24713 duplicate_eh_regions with NULL region.
24714
24715 2019-02-01 Richard Biener <rguenth@suse.de>
24716
24717 PR rtl-optimization/88593
24718 * mode-switching.c (optimize_mode_switching): Free dominators before
24719 calling cleanup_cfg.
24720
24721 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24722
24723 PR tree-optimization/88932
24724 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24725
24726 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24727
24728 PR middle-end/89137
24729 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24730 bogus clang warning.
24731
24732 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24733
24734 PR target/89071
24735 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24736 alternative to avoid partial SSE register stall for TARGET_AVX.
24737 (truncdfsf2): Ditto.
24738 (sse4_1_round<mode>2): Ditto.
24739
24740 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24741
24742 PR tree-optimization/89008
24743 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24744 process anything of the form X * 0.
24745
24746 2019-01-31 Richard Biener <rguenther@suse.de>
24747
24748 PR tree-optimization/89135
24749 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24750 with abnormal preds.
24751
24752 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24753
24754 PR sanitizer/89124
24755 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24756 always_inline callees into no_sanitize_address callers.
24757
24758 2019-01-31 Richard Biener <rguenther@suse.de>
24759
24760 PR rtl-optimization/89115
24761 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24762
24763 2019-01-30 Martin Sebor <msebor@redhat.com>
24764
24765 PR other/89106
24766 * doc/extend.texi (cast to a union): Correct and expand.
24767
24768 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24769
24770 PR rtl-optimization/87246
24771 * lra-constraints.c (simplify_operand_subreg): Reload memory
24772 in subreg if the address became invalid.
24773
24774 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24775
24776 PR target/87064
24777 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24778 Disable for little-endian.
24779
24780 2019-01-30 Richard Biener <rguenther@suse.de>
24781
24782 PR rtl-optimization/89115
24783 * opts.c (default_options_optimization): Reduce
24784 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24785 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24786 to the default.
24787
24788 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24789
24790 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24791 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24792 type of vector element when vec_extract is implemented by direct
24793 move.
24794
24795 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24796
24797 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24798
24799 2019-01-30 Richard Biener <rguenther@suse.de>
24800
24801 PR tree-optimization/89111
24802 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24803 canonicalization to appropriately sized access types.
24804
24805 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24806
24807 PR c++/89105
24808 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24809 for arguments to functions that are TU-local and shouldn't be
24810 referenced by assembly.
24811
24812 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24813
24814 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24815 after '='.
24816
24817 2019-01-29 Martin Sebor <msebor@redhat.com>
24818
24819 PR c/88956
24820 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24821
24822 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24823
24824 PR c++/66676
24825 PR ipa/89104
24826 * omp-simd-clone.c (simd_clone_clauses_extract)
24827 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24828 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24829
24830 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24831
24832 * config.gcc: Force .init_array for ARC.
24833
24834 2019-01-29 Richard Biener <rguenther@suse.de>
24835
24836 PR debug/87295
24837 * dwarf2out.c (collect_skeleton_dies): New helper.
24838 (copy_decls_for_unworthy_types): Call it.
24839 (build_abbrev_table): Assert we do not try to replace
24840 DW_AT_signature refs with local refs.
24841
24842 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24843
24844 PR middle-end/89002
24845 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24846 for lastprivate/linear IV, push gimplify context around gimplify_assign
24847 and, if it needed any temporaries, pop it into a gimple bind around the
24848 sequence.
24849
24850 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24851
24852 * common.opt (-Wattribute-alias): Remove "no-" from name.
24853 Make -Wattribute-alias command line option and
24854 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24855
24856 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24857
24858 PR target/89073
24859 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24860 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24861 x86 ISA options.
24862 (bmi2): Add missing @opindex.
24863 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24864 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24865 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24866 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24867 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24868 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24869 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24870 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24871 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24872 xsavec, xsaveopt and xsaves options.
24873
24874 2019-01-28 Richard Biener <rguenther@suse.de>
24875
24876 PR debug/89076
24877 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24878 support removal.
24879
24880 2019-01-28 Richard Biener <rguenther@suse.de>
24881
24882 PR tree-optimization/88739
24883 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24884 BIT_FIELD_REFs only are applied to mode-precision operands
24885 when they are integral.
24886 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24887 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24888 BIT_FIELD_REFs of non-mode-precision integral operands.
24889
24890 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24891
24892 PR target/87214
24893 * config/i386/sse.md
24894 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24895 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24896 first constants in pairs are multiples of 2. Formatting fixes.
24897 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24898 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24899 first constants in each quadruple are multiples of 4. Formatting fixes.
24900
24901 2019-01-26 Martin Jambor <mjambor@suse.cz>
24902
24903 PR ipa/88933
24904 * tree-inline.c: Include tree-cfgcleanup.h.
24905 (delete_unreachable_blocks_update_callgraph): Move...
24906 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24907 ...here, make externally visible, make second argument bool, adjust
24908 all callers.
24909 * tree-cfgcleanup.c: Include cgraph.h.
24910 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24911 Declare.
24912 * ipa-prop.c: Include tree-cfgcleanup.h.
24913 (ipcp_transform_function): Call
24914 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24915
24916 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24917
24918 PR rtl-optimization/88846
24919 * ira.c (process_set_for_memref_referenced_p): New.
24920 (memref_referenced_p): Add new param. Use
24921 process_set_for_memref_referenced_p. Add new switch cases.
24922 (memref_used_between_p): Pass new arg to memref_referenced_p.
24923
24924 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24925
24926 PR target/88469
24927 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24928 argument ABI_BREAK. Set to true if the calculated alignment has
24929 changed in gcc-9. Check bit-fields for their base type alignment.
24930 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24931 (aarch64_function_arg_boundary): Likewise.
24932 (aarch64_gimplify_va_arg_expr): Likewise.
24933
24934 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24935
24936 PR middle-end/89037
24937 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24938 instead of accessing TREE_INT_CST_ELT directly.
24939
24940 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24941
24942 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24943 fenv_exceptions description.
24944
24945 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24946
24947 PR rtl-optimization/87763
24948 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24949 Allow SUBREG when matching CC_NZmode compare.
24950
24951 2019-01-25 Richard Biener <rguenther@suse.de>
24952
24953 PR tree-optimization/89049
24954 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24955 Look at the pattern stmt to determine if the stmt is vectorized.
24956
24957 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24958
24959 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24960 (pred_mov<mode>): Handle all-register forms using both a new
24961 alternative and a split.
24962
24963 2019-01-25 Richard Biener <rguenther@suse.de>
24964
24965 PR tree-optimization/86865
24966 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24967 Reject non-do-while loops.
24968
24969 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24970
24971 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24972 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24973 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24974 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24975 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24976 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24977 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24978 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24979 vlogical_operand, gpc_reg_operand, int_reg_operand,
24980 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24981 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24982 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24983 (save_world_operation, restore_world_operation, lmw_operation,
24984 stmw_operation): Use MEM_P and REG_P.
24985 (tie_operand): Use MEM_P.
24986 (vrsave_operation, crsave_operation): Use REG_P.
24987 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24988 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24989 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24990 (call_operand): Use HARD_REGISTER_P.
24991 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24992 Use CONST_INT_P.
24993 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24994 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24995 quad_aligned_load_p, replace_swapped_aligned_store,
24996 recombine_lvx_pattern, replace_swapped_aligned_load,
24997 recombine_stvx_pattern): Use MEM_P.
24998 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24999 Use MEM_P and SYMBOL_REF_P.
25000 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
25001 (insn_is_swappable_p): Use REG_P and MEM_P.
25002 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
25003 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
25004 Use CONST_INT_P.
25005 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
25006 Use CONST_DOUBLE_P.
25007 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
25008 CONST_WIDE_INT_P.
25009 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
25010 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
25011 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
25012 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
25013 reg_or_subregno:
25014 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25015 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
25016 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
25017 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
25018 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
25019 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
25020 rs6000_split_logical_di): Use CONST_INT_P.
25021 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
25022 REG_P and SYMBOL_REF_P.
25023 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
25024 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
25025 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
25026 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
25027 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
25028 (small_data_operand, print_operand_address): Use CONST_INT_P and
25029 SYMBOL_REF_P.
25030 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
25031 (rs6000_init_hard_regno_mode_ok, direct_move_p):
25032 Use HARD_REGISTER_NUM_P.
25033 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
25034 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
25035 SUBREG_P and SYMBOL_REF_P.
25036 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
25037 and HARD_REGISTER_NUM_P.
25038 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
25039 reg_or_subregno.
25040 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
25041 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
25042 MEM_P and REG_P.
25043 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
25044 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
25045 find_addr_reg): Use REG_P.
25046 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
25047 (rs6000_emit_le_vsx_move): Use SUBREG_P.
25048 (offsettable_ok_by_alignment, constant_pool_expr_p,
25049 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
25050 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
25051 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
25052 rs6000_assemble_integer, create_TOC_reference,
25053 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
25054 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
25055 (rs6000_split_vec_extract_var): Use reg_or_subregno.
25056 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25057 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25058 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25059 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25060 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
25061 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
25062 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
25063 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
25064 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
25065 and cbranch<mode>4): Use CONST_INT_P.
25066 (multiple define_splits): Use REG_P and SUBREG_P.
25067 (define_expands call, call_value): Use MEM_P.
25068 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
25069 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
25070 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
25071 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
25072 and HARD_REGISTER_NUM_P.
25073 (multiple define_splits): Use HARD_REGISTER_NUM_P.
25074
25075 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
25076
25077 PR rtl-optimization/88948
25078 * rtl.h (prepare_copy_insn): New prototype.
25079 * gcse.c (prepare_copy_insn): New function, split out from
25080 process_insert_insn.
25081 (process_insert_insn): Use prepare_copy_insn.
25082 * store-motion.c (replace_store_insn): Use prepare_copy_insn
25083 instead of gen_move_insn.
25084
25085 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25086
25087 PR debug/89006
25088 * config/i386/i386.c (ix86_pic_register_p): Return true for
25089 UNSPEC_SET_GOT too.
25090
25091 PR tree-optimization/88964
25092 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25093 punt if HONOR_SNANS (chrec).
25094
25095 PR middle-end/89015
25096 * tree-nested.c (convert_nonlocal_reference_stmt,
25097 convert_local_reference_stmt, convert_tramp_reference_stmt,
25098 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25099 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25100 or GIMPLE_OMP_TASK.
25101
25102 PR tree-optimization/89027
25103 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25104 for "omp simd array" variables.
25105
25106 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25107
25108 PR target/88469
25109 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25110 force the alignment of m_val.
25111
25112 2019-01-24 Richard Biener <rguenther@suse.de>
25113
25114 PR lto/87187
25115 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25116 When in "legacy" debug mode make sure to reset self-origins.
25117
25118 2019-01-24 Martin Liska <mliska@suse.cz>
25119
25120 PR gcov-profile/88994
25121 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25122 result will be always smaller or equal to the original.
25123 * gcov.c (mangle_name): Fix else branch where we should
25124 also copy to PTR and shift the pointer.
25125
25126 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25127
25128 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25129 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25130
25131 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25132
25133 * common/config/i386/i386-common.c
25134 (OPTION_MASK_ISA_ENQCMD_SET,
25135 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25136 (ix86_handle_option): Handle -menqcmd.
25137 * config.gcc (enqcmdintrin.h): New header file.
25138 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25139 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25140 -menqcmd.
25141 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25142 function type.
25143 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25144 __builtin_ia32_enqcmds): New builtins.
25145 * config/i386/i386-c.c (__ENQCMD__): New macro.
25146 * config/i386/i386-option.c (ix86_target_string): Add
25147 -menqcmd.
25148 (ix86_valid_target_attribute_inner_p): Likewise.
25149 * config/i386/i386-expand.c
25150 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25151 IX86_BUILTIN_ENQCMDS.
25152 * config/i386/i386.h (TARGET_ENQCMD): New.
25153 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25154 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25155 (movdir64b_<mode>): Parameterize to enable share expansion code
25156 with ENQCMD in function ix86_expand_builtin.
25157 * config/i386/i386.opt: Add -menqcmd.
25158 * config/i386/immintrin.h: Include enqcmdintrin.h.
25159 * config/i386/enqcmdintrin.h: New intrinsic file.
25160 * doc/invoke.texi: Add -menqcmd.
25161
25162 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25163 Steve Ellcey <sellcey@marvell.com>
25164
25165 PR target/85711
25166 * recog.c (address_operand): Return false on wrong mode for address.
25167 (constrain_operands): Check for mode with 'p' constraint.
25168
25169 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25170
25171 PR target/88998
25172 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25173 Disparage MMX alternative.
25174 (sse2_cvtpd2pi): Ditto.
25175 (sse2_cvttpd2pi): Ditto.
25176
25177 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25178
25179 PR driver/89014
25180 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25181 use-after-free of the result of
25182 aarch64_get_extension_string_for_isa_flags.
25183
25184 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25185
25186 PR c/44715
25187 * doc/extend.texi: Document break and continue behavior in
25188 statement expressions.
25189
25190 2019-01-23 Richard Biener <rguenther@suse.de>
25191
25192 PR tree-optimization/89008
25193 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25194 not leave another stray operand.
25195
25196 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25197
25198 * BASE-VER: Bump to 9.0.1.
25199
25200 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25201
25202 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25203 thunk that returns by reference, use the type of the return object
25204 of the thunk instead of that of the alias to build the dereference.
25205
25206 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25207
25208 * config/arc/atomic.md: Add operand to DMB instruction.
25209
25210 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25211
25212 PR tree-optimization/88964
25213 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25214 build_zero_cst instead of build_int_cst. Return false for loop
25215 invariants which honor signed zeros.
25216
25217 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25218
25219 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25220
25221 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25222
25223 PR target/88965
25224 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25225 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25226 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25227
25228 PR middle-end/88968
25229 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25230 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25231
25232 PR target/87064
25233 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25234 Disable for little endian.
25235
25236 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25237
25238 PR target/88469
25239 * config/arm/arm.c (arm_needs_double_word_align): Check
25240 DECL_BIT_FIELD_TYPE.
25241
25242 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25243 H.J. Lu <hongjiu.lu@intel.com>
25244
25245 PR target/88909
25246 * config/i386/i386-builtin.def: Add mask2 to all builtin
25247 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25248 SPECIAL_ARGS.
25249 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25250 (BDESC_FIRST): Likewise.
25251 (define_builtin): Add an argument for mask2. Updated to handle
25252 both ix86_isa_flags and ix86_isa_flags2.
25253 (define_builtin_const): Likewise.
25254 (define_builtin_pure): Likewise.
25255 (define_builtin2): Deleted.
25256 (define_builtin_const2): Likewise.
25257 (builtin_description): Add a member, mask2.
25258 (bdesc_*): Add mask2 to builtin initializations.
25259 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25260 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25261 support.
25262 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25263
25264 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25265
25266 PR target/88954
25267 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25268 noplt attribute.
25269
25270 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25271
25272 PR target/88469
25273 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25274 alignment is dominated by a bitfield with 64-bit aligned base type.
25275 (arm_function_arg): Emit a warning if the alignment has changed since
25276 earlier GCC releases.
25277 (arm_function_arg_boundary): Likewise.
25278 (arm_setup_incoming_varargs): Likewise.
25279
25280 2019-01-22 Richard Biener <rguenther@suse.de>
25281
25282 PR tree-optimization/88862
25283 * graphite-scop-detection.c
25284 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25285
25286 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25287
25288 * doc/extend.tex (AMD GCN Function Attributes): New section.
25289 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25290 * doc/invoke.texi (AMD GCN Options): New section.
25291 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25292
25293 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25294
25295 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25296 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25297
25298 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25299
25300 PR tree-optimization/88044
25301 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25302 is false in the first iteration, but !every_iteration, return false
25303 instead of true with niter->niter zero.
25304
25305 PR rtl-optimization/88904
25306 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25307 any nonequal registers before processing BB_END (b).
25308
25309 PR target/88905
25310 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25311 GET_MODE (op0).
25312 (expand_binop_directly, expand_doubleword_clz,
25313 expand_doubleword_popcount, expand_ctz, expand_ffs,
25314 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25315
25316 PR rtl-optimization/49429
25317 PR target/49454
25318 PR rtl-optimization/86334
25319 PR target/88906
25320 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25321 addressable from here...
25322 (emit_block_op_via_libcall): ... to here.
25323
25324 2019-01-22 Richard Biener <rguenther@suse.de>
25325
25326 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25327 auto_vec for cost vector to fix memleak.
25328 (vectorize_fold_left_reduction): Properly gather SLP defs.
25329 (vectorizable_comparison): Do not swap operands to properly
25330 gather SLP defs.
25331
25332 2019-01-22 Alan Modra <amodra@gmail.com>
25333
25334 PR target/88614
25335 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25336 stays a reg. Allow a const_int.
25337 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25338 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25339 (IS_NOMARK_TLSGETADDR): Define.
25340 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25341 (rs6000_output_tlsargs): New function.
25342 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25343 __tls_get_addr call takes an arg.
25344 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25345 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25346 delete split..
25347 (call_value_nonlocal_sysv): ..or here, delete split.
25348 (tls_gdld_nomark): Delete.
25349 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25350 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25351 (call_value_nonlocal_sysv): Likewise.
25352 (call_value_nonlocal_sysv_secure): Likewise.
25353 (call_value_nonlocal_aix): Likewise.
25354 (call_value_indirect_aix): Likewise.
25355 (call_value_indirect_elfv2): Likewise.
25356 (call_value_local32, call_value_local64): Disable for no-mark tls.
25357 (call_value_local_aix): Likewise.
25358
25359 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25360
25361 PR target/88938
25362 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25363 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25364
25365 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25366
25367 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25368 string contents as hash_map keys.
25369
25370 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25371
25372 PR c/88928
25373 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25374 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25375 instead of TYPE_ALIGN.
25376 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25377 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25378 pointer from TYPE_STUB_DECL.
25379
25380 2019-01-21 Richard Biener <rguenther@suse.de>
25381
25382 PR tree-optimization/88934
25383 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25384 at the possibly non-constant operand.
25385 (vect_get_constant_vectors): Adjust.
25386
25387 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25388
25389 PR target/71659
25390 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25391 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25392 instead of _X86INTRIN_H_INCLUDED.
25393 * onfig/i386/clwbintrin.h: Likewise.
25394 * config/i386/pkuintrin.h: Likewise.
25395 * config/i386/prfchwintrin.h: Likewise.
25396 * config/i386/rdseedintrin.h: Likewise.
25397 * config/i386/wbnoinvdintrin.h: Likewise.
25398 * config/i386/xsavecintrin.h: Likewise.
25399 * config/i386/xsavesintrin.h: Likewise.
25400 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25401 * config/i386/xsaveintrin.h: Likewise.
25402 * config/i386/xsaveoptintrin.h: Likewise.
25403 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25404 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25405 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25406 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25407 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25408 * config/i386/immintrin.h: Here.
25409
25410 2019-01-20 Martin Jambor <mjambor@suse.cz>
25411
25412 PR ipa/87615
25413 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25414 with aa_walk_budget.
25415 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25416 aa_walk_budget_p parameter.
25417 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25418 walk. Updated all callers.
25419 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25420 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25421 unmodified_parm.
25422 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25423 parameter info. Extract info from fbi. Pass fbi to recursive calls
25424 and to unmodified_parm.
25425 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25426 info, updated call to will_be_nonconstant_expr_predicate.
25427 (param_change_prob): New parameter fbi, limit AA walking.
25428 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25429 calls to various above functions.
25430 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25431 parameter. Use it to limit AA walking.
25432 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25433 fbi, limit AA walk.
25434 (detect_type_change): New parameter fbi, pass it on to
25435 detect_type_change_from_memory_writes.
25436 (detect_type_change_ssa): Likewise.
25437 (aa_overwalked): Removed.
25438 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25439 accordingly, adjust to the neew AA limiting scheme.
25440 (parm_ref_data_preserved_p): Likewise.
25441 (ipa_compute_jump_functions_for_edge): Adjust call to
25442 get_dynamic_type.
25443 (ipa_analyze_call_uses): Likewise.
25444 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25445 (ipa_analyze_node): Initialize aa_walk_budget.
25446 (ipcp_transform_function): Likewise.
25447 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25448 to get_dynamic_type.
25449
25450 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25451
25452 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25453 outside of #if CHECKING_P code.
25454
25455 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25456
25457 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25458 New function, split out from...
25459 (loop_versioning::analyze_stride): ...here.
25460 (loop_versioning::find_per_loop_multiplication): Use gassign.
25461 (loop_versioning::analyze_term_using_scevs): Return a success code.
25462 (loop_versioning::analyze_arbitrary_term): New function.
25463 (loop_versioning::analyze_address_fragment): Use
25464 analyze_arbitrary_term if all else fails.
25465
25466 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25467
25468 PR target/88892
25469 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25470 operands.
25471
25472 2019-01-18 Richard Biener <rguenther@suse.de>
25473
25474 PR tree-optimization/88903
25475 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25476 scalar stmts a SLP shift amount is composed of when detecting
25477 shifts by scalars.
25478
25479 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25480
25481 PR target/88799
25482 * config/arm/arm-cpus.in (mp): New feature.
25483 (sec): New feature.
25484 (fgroup ARMv7ve): Add mp and sec features.
25485 (arch armv7-a): Add options to allow mp and sec extensions.
25486 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25487 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25488 extenstions to the base architecture.
25489 (cpu cortex-a8): Add sec extension to the base architecture.
25490 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25491 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25492 variants down to the base v7-a varaint.
25493 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25494 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25495 of permitted extensions for -march=armv7-a and for
25496 -mcpu=generic-armv7-a.
25497
25498 2019-01-18 Martin Liska <mliska@suse.cz>
25499
25500 * params.def: Fix comment.
25501 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25502 name.
25503 (gimple_gen_ic_func_profiler): Likewise.
25504
25505 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25506
25507 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25508 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25509 and put in error checks for stack protector guard options.
25510 (aarch64_stack_protect_guard): New.
25511 (TARGET_STACK_PROTECT_GUARD): Define.
25512 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25513 (reg_stack_protect_address<mode>): New.
25514 (stack_protect_set): Adjust for SSP_GLOBAL.
25515 (stack_protect_test): Likewise.
25516 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25517 (-mstack-protector-guard): Likewise.
25518 (-mstack-protector-guard-offset): Likewise.
25519
25520 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25521
25522 PR tree-optimization/86214
25523 * tree-inline.h (struct copy_body_data): Add
25524 add_clobbers_to_eh_landing_pads member.
25525 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25526 (copy_edges_for_bb): Call it if EH edge destination is <
25527 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25528 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25529 if flag_stack_reuse != SR_NONE and clear it afterwards.
25530
25531 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25532
25533 PR target/85596
25534 * doc/install.texi (with-multilib-list): Document for aarch64.
25535
25536 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25537
25538 PR target/88734
25539 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25540 (("..."))) with ("...").
25541
25542 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25543
25544 * doc/extend.texi (Built-in Functions for Memory Model Aware
25545 Atomic Operations): Document atomic fetch and nand.
25546
25547 2019-01-18 Martin Liska <mliska@suse.cz>
25548 Richard Biener <rguenther@suse.de>
25549
25550 PR middle-end/88587
25551 * cgraph.h (create_version_clone_with_body): Add new argument
25552 with attributes.
25553 * cgraphclones.c (cgraph_node::create_version_clone): Add
25554 DECL_ATTRIBUTES to a newly created decl. And call
25555 valid_attribute_p so that proper cl_target_optimization_node
25556 is set for the newly created declaration.
25557 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25558 for declaration.
25559 (expand_target_clones): Do not call valid_attribute_p, it must
25560 be already done.
25561 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25562 vector types.
25563
25564 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR target/88734
25567 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25568 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25569 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25570
25571 2019-01-17 Martin Sebor <msebor@redhat.com>
25572
25573 PR middle-end/88273
25574 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25575 Handle anti-ranges the same as no range at all.
25576
25577 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25578
25579 * config/aarch64/aarch64.c (cgraph.h): New include.
25580 (intl.h): New include.
25581 (supported_simd_type): New function.
25582 (currently_supported_simd_type): Ditto.
25583 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25584 (aarch64_simd_clone_adjust): Ditto.
25585 (aarch64_simd_clone_usable): Ditto.
25586 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25587 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25588 (TARGET_SIMD_CLONE_USABLE): Ditto.
25589 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25590 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25591 call.
25592
25593 2019-01-17 Martin Sebor <msebor@redhat.com>
25594
25595 PR tree-optimization/88800
25596 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25597 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25598 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25599 redundant argument. Add new argument and issue diagnostics under
25600 its control. Detect out-of-bounds access even with warnings
25601 disabled.
25602 (check_bounds_or_overlap): Change return type. Add argument.
25603 (wrestrict_dom_walker::check_call): Adjust.
25604 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25605 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25606 check_bounds_or_overlap's return value.
25607 (handle_builtin_stxncpy): Same.
25608 (handle_builtin_strcat): Same.
25609
25610 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25611 Kwok Cheung Yeung <kcy@codesourcery.com>
25612 Julian Brown <julian@codesourcery.com>
25613 Tom de Vries <tom@codesourcery.com>
25614
25615 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25616
25617 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25618
25619 * doc/sourcebuild.texi: Document dg-require-effective-target
25620 llvm_binutils and offload_gcn.
25621
25622 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25623 Kwok Cheung Yeung <kcy@codesourcery.com>
25624 Julian Brown <julian@codesourcery.com>
25625 Tom de Vries <tom@codesourcery.com>
25626
25627 * doc/sourcebuild.texi: Document dg-required-effective-target
25628 exceptions.
25629
25630 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25631 Kwok Cheung Yeung <kcy@codesourcery.com>
25632 Julian Brown <julian@codesourcery.com>
25633 Tom de Vries <tom@codesourcery.com>
25634 Jan Hubicka <hubicka@ucw.cz>
25635 Martin Jambor <mjambor@suse.cz>
25636
25637 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25638 * configure.ac: Check for dlopen.
25639 * configure: Regenerate.
25640
25641 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25642 Kwok Cheung Yeung <kcy@codesourcery.com>
25643 Julian Brown <julian@codesourcery.com>
25644 Tom de Vries <tom@codesourcery.com>
25645 Jan Hubicka <hubicka@ucw.cz>
25646 Martin Jambor <mjambor@suse.cz>
25647
25648 * common/config/gcn/gcn-common.c: New file.
25649 * config/gcn/driver-gcn.c: New file.
25650 * config/gcn/gcn-builtins.def: New file.
25651 * config/gcn/gcn-hsa.h: New file.
25652 * config/gcn/gcn-modes.def: New file.
25653 * config/gcn/gcn-opts.h: New file.
25654 * config/gcn/gcn-passes.def: New file.
25655 * config/gcn/gcn-protos.h: New file.
25656 * config/gcn/gcn-run.c: New file.
25657 * config/gcn/gcn-tree.c: New file.
25658 * config/gcn/gcn.c: New file.
25659 * config/gcn/gcn.h: New file.
25660 * config/gcn/gcn.opt: New file.
25661 * config/gcn/t-gcn-hsa: New file.
25662
25663 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25664 Kwok Cheung Yeung <kcy@codesourcery.com>
25665 Julian Brown <julian@codesourcery.com>
25666 Tom de Vries <tom@codesourcery.com>
25667 Jan Hubicka <hubicka@ucw.cz>
25668 Martin Jambor <mjambor@suse.cz>
25669
25670 * config/gcn/constraints.md: New file.
25671 * config/gcn/gcn-valu.md: New file.
25672 * config/gcn/gcn.md: New file.
25673 * config/gcn/predicates.md: New file.
25674
25675 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25676
25677 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25678 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25679 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25680 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25681
25682 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25683
25684 PR target/88851
25685 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25686 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25687 it and document registers.
25688
25689 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25690
25691 * config/aarch64/aarch64.c (ares_tunings): Define.
25692 * config/aarch64/aarch64-cores.def (ares): Use the above.
25693
25694 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25695
25696 PR target/88794
25697 Revert:
25698 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25699
25700 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25701 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25702 (_mm512_maskz_fixupimm_round_pd): Ditto.
25703 (_mm512_fixupimm_round_ps): Ditto.
25704 (_mm512_maskz_fixupimm_round_ps): Ditto.
25705 (_mm_fixupimm_round_sd): Ditto.
25706 (_mm_maskz_fixupimm_round_sd): Ditto.
25707 (_mm_fixupimm_round_ss): Ditto.
25708 (_mm_maskz_fixupimm_round_ss): Ditto.
25709 (_mm512_fixupimm_pd): Ditto.
25710 (_mm512_maskz_fixupimm_pd): Ditto.
25711 (_mm512_fixupimm_ps): Ditto.
25712 (_mm512_maskz_fixupimm_ps): Ditto.
25713 (_mm_fixupimm_sd): Ditto.
25714 (_mm_maskz_fixupimm_sd): Ditto.
25715 (_mm_fixupimm_ss): Ditto.
25716 (_mm_maskz_fixupimm_ss): Ditto.
25717 (_mm512_mask_fixupimm_round_pd): Update builtin.
25718 (_mm512_mask_fixupimm_round_ps): Ditto.
25719 (_mm_mask_fixupimm_round_sd): Ditto.
25720 (_mm_mask_fixupimm_round_ss): Ditto.
25721 (_mm512_mask_fixupimm_pd): Ditto.
25722 (_mm512_mask_fixupimm_ps): Ditto.
25723 (_mm_mask_fixupimm_sd): Ditto.
25724 (_mm_mask_fixupimm_ss): Ditto.
25725 * config/i386/avx512vlintrin.h:
25726 (_mm256_fixupimm_pd): Update parameters and builtin.
25727 (_mm256_maskz_fixupimm_pd): Ditto.
25728 (_mm256_fixupimm_ps): Ditto.
25729 (_mm256_maskz_fixupimm_ps): Ditto.
25730 (_mm_fixupimm_pd): Ditto.
25731 (_mm_maskz_fixupimm_pd): Ditto.
25732 (_mm_fixupimm_ps): Ditto.
25733 (_mm_maskz_fixupimm_ps): Ditto.
25734 (_mm256_mask_fixupimm_pd): Update builtin.
25735 (_mm256_mask_fixupimm_ps): Ditto.
25736 (_mm_mask_fixupimm_pd): Ditto.
25737 (_mm_mask_fixupimm_ps): Ditto.
25738 * config/i386/i386-builtin-types.def: Add new types and remove
25739 useless ones.
25740 * config/i386/i386-builtin.def: Update builtin definitions.
25741 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25742 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25743 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25744 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25745 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25746 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25747 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25748 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25749 * config/i386/subst.md:
25750 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25751 (round_saeonly_sd_mask_op4): Ditto.
25752 (round_saeonly_expand_operand5): Ditto.
25753 (round_saeonly_expand): Update.
25754
25755 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25756
25757 PR target/88794
25758 Revert:
25759 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25760
25761 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25762 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25763 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25764 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25765 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25766 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25767 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25768
25769 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25770
25771 PR target/88794
25772 Revert:
25773 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25774
25775 PR target/88489
25776 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25777 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25778 instead of UNSPEC_FIXUPIMM.
25779
25780 2019-01-17 Richard Biener <rguenther@suse.de>
25781
25782 PR lto/86736
25783 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25784 and friends for the LTO part of debug info.
25785
25786 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25787
25788 PR tree-optimization/86214
25789 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25790 if x == y.
25791
25792 PR rtl-optimization/88870
25793 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25794 throw if we can't alter the cfg or delete dead exceptions.
25795 (mark_insn): Don't call find_call_stack_args for such calls.
25796
25797 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25798
25799 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25800 prototypes for vec_st.
25801 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25802 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25803 mainly on signed/unsigned long long and double.
25804
25805 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25806
25807 PR target/88861
25808 * combine.c (delete_noop_moves): Convert to "bool" return,
25809 returning true if any edges are eliminated.
25810 (combine_instructions): Also return true if delete_noop_moves
25811 returns true.
25812
25813 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25814
25815 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25816 correct max nunits for endian swap.
25817 (aarch64_expand_fcmla_builtin): Correct subreg code.
25818 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25819 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25820 lane endianness.
25821
25822 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25823
25824 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25825 Handle split indirect COMPLEX_TYPE arguments.
25826
25827 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25828
25829 PR target/86891
25830 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25831 bit is set by add and compare.
25832 (CC_ADC): New CC_MODE.
25833 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25834 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25835 comparison. Add detection for CC_ADCmode.
25836 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25837 CC_ADCmode.
25838 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25839 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25840 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25841 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25842 to eliminate the need for zero-extending the operands.
25843 (add<mode>3_compareC_imm): Delete. Merge into ...
25844 (add<mode>3_compareC): ... this. Restructure the comparison to
25845 eliminate the need for zero-extending the operands.
25846 (add<mode>3_carryin): Use LTU for the overflow detection.
25847 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25848 Reexpress comparison for overflow.
25849 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25850 (add<mode>3_carryinC): Likewise.
25851 (add<mode>3_carryinV): Use LTU for carry between partials.
25852 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25853 handling of CC_Cmode and add CC_ADCmode.
25854 (aarch64_borrow_operation): Likewise.
25855
25856 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25857
25858 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25859 Remove patternmode.
25860 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25861 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25862 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25863 Remove endianness conversion.
25864
25865 2019-01-16 Martin Liska <mliska@suse.cz>
25866
25867 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25868 for GCC driver.
25869 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25870 a new argument.
25871 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25872 (path_prefix_reset): Move up in the source file.
25873 (find_fortran_preinclude_file): Make complex search for the
25874 fortran header files.
25875
25876 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25877
25878 * godump.c (go_output_typedef): When outputting a typedef, refer
25879 to the underlying type by its name and not its structure.
25880
25881 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25882
25883 PR c++/88795
25884 * tree.c (build_function_type): Assert that arg_types is not
25885 error_mark_node.
25886
25887 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25888
25889 PR inline-asm/52813
25890 * doc/extend.texi: Document that listing the stack pointer in the
25891 clobber list of an asm is a deprecated feature.
25892 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25893 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25894 warning instead of an error for clobbers of the stack pointer.
25895 Add a note explaining why.
25896
25897 2019-01-15 Richard Biener <rguenther@suse.de>
25898
25899 PR debug/88046
25900 * dwarf2out.c (gen_member_die): Do not generate inheritance
25901 DIEs late.
25902
25903 2019-01-15 Richard Biener <rguenther@suse.de>
25904
25905 PR tree-optimization/88855
25906 * tree-if-conv.c (combine_blocks): Collect
25907 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25908
25909 2019-01-15 Tom de Vries <tdevries@suse.de>
25910
25911 PR target/80547
25912 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25913 lhs == NULL_TREE for gang-level reduction.
25914
25915 2019-01-15 Richard Biener <rguenther@suse.de>
25916 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25917
25918 PR ipa/88788
25919 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25920 return true if SSA_NAME is already marked in visited bitmap.
25921 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25922
25923 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25924
25925 PR tree-optimization/88775
25926 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25927 equal == 0 equality pointer comparisons some more if compared in
25928 integral types and either one points to an automatic var and the
25929 other to a global, or we can prove at least one points to the middle
25930 or both point to start or both point to end.
25931
25932 2019-01-14 Andi Kleen <ak@linux.intel.com>
25933
25934 * Makefile.in: Lower autofdo sampling rate by 10x.
25935 * Makefile.tpl: Dito.
25936
25937 2019-01-14 Tom Honermann <tom@honermann.net>
25938
25939 * defaults.h: Define CHAR8_TYPE.
25940
25941 2019-01-14 Martin Sebor <msebor@redhat.com>
25942
25943 PR target/88638
25944 * doc/extend.texi (Darwin Format Checks): Clarify.
25945
25946 2019-01-14 Richard Biener <rguenther@suse.de>
25947
25948 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25949 whether we are in (simplify ...) or (match ...) context.
25950
25951 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25952
25953 PR rtl-optimization/88796
25954 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25955 * cfgexpand.c (stack_protect_prologue): Initialize
25956 crtl->stack_protect_guard_decl.
25957 * function.c (stack_protect_epilogue): Use it instead of calling
25958 targetm.stack_protect_guard again.
25959 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25960 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25961 crtl->stack_protect_guard_decl.
25962 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25963 on the returned MEM_EXPR.
25964
25965 2019-01-12 Tom de Vries <tdevries@suse.de>
25966
25967 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25968 vector length using -fopenacc-dim.
25969
25970 2019-01-12 Tom de Vries <tdevries@suse.de>
25971
25972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25973 lengths into account.
25974
25975 2019-01-12 Svante Signell <svante.signell@gmail.com>
25976
25977 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25978 (TARGET_CAN_SPLIT_STACK): Define.
25979 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25980
25981 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25982
25983 * params.def (inline-unit-growth): Set to 40.
25984
25985 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25986
25987 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25988
25989 2019-01-12 Tom de Vries <tdevries@suse.de>
25990
25991 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25992 region calling vector-partitionable routine, set default_vector_length
25993 to WARP_SIZE.
25994
25995 2019-01-12 Tom de Vries <tdevries@suse.de>
25996
25997 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25998 variable default_vector_length.
25999
26000 2019-01-12 Tom de Vries <tdevries@suse.de>
26001
26002 PR middle-end/88703
26003 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
26004 from oacc_default_dims, as oacc_validate_dims would do it, and apply
26005 dimensions limits.
26006
26007 2019-01-12 Tom de Vries <tdevries@suse.de>
26008
26009 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
26010 (nvptx_goacc_validate_dims): Add used parameter.
26011 * doc/tm.texi: Regenerate.
26012 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
26013 argument to call to targetm.goacc.validate_dims.
26014 (default_goacc_validate_dims): Add used
26015 parameter.
26016 * target.def (validate_dims): Add used parameter in DEFHOOK.
26017 * targhooks.h (default_goacc_validate_dims): Add used parameter.
26018
26019 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26020
26021 PR middle-end/85956
26022 PR lto/88733
26023 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
26024 field.
26025 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
26026 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
26027 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
26028 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
26029
26030 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
26031
26032 PR rtl-optimization/87305
26033 * lra-assigns.c
26034 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
26035 for little endian pseudos used as paradoxical subreg.
26036
26037 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26038
26039 PR tree-optimization/88693
26040 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
26041 for STRING_CSTs that don't contain any NUL characters in the first
26042 TREE_STRING_LENGTH bytes.
26043
26044 2019-01-11 Alan Modra <amodra@gmail.com>
26045
26046 PR 88777
26047 PR 88614
26048 * genattrtab.c (min_fn): Don't translate values.
26049 (min_attr_value): Return INT_MAX when the value can't be calculated.
26050 Return minimum among any values that can be calculated.
26051 (max_attr_value): Adjust.
26052
26053 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26054
26055 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
26056
26057 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26058
26059 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26060 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
26061 (aarch64_return_call_with_max_clobbers): New function.
26062 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
26063 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
26064 argument.
26065 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
26066 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
26067 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
26068 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
26069 * cselib.c (cselib_process_insn): Add argument to
26070 targetm.hard_regno_call_part_clobbered call.
26071 * ira-conflicts.c (ira_build_conflicts): Ditto.
26072 * ira-costs.c (ira_tune_allocno_costs): Ditto.
26073 * lra-constraints.c (inherit_reload_reg): Ditto.
26074 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
26075 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
26076 argument. Call targetm.return_call_with_max_clobbers.
26077 Add argument to targetm.hard_regno_call_part_clobbered call.
26078 (calls_have_same_clobbers_p): New function.
26079 (process_bb_lives): Add call_insn and last_call_insn variables.
26080 Pass call_insn to check_pseudos_live_through_calls.
26081 Modify if stmt to check targetm.return_call_with_max_clobbers.
26082 Update setting of flush variable.
26083 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26084 to false.
26085 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26086 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26087 targetm.hard_regno_call_part_clobbered call.
26088 * reginfo.c (choose_hard_reg_mode): Ditto.
26089 * regrename.c (check_new_reg_p): Ditto.
26090 * reload.c (find_equiv_reg): Ditto.
26091 * reload1.c (emit_reload_insns): Ditto.
26092 * sched-deps.c (deps_analyze_insn): Ditto.
26093 * sel-sched.c (init_regs_for_mode): Ditto.
26094 (mark_unavailable_hard_regs): Ditto.
26095 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26096 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26097 (return_call_with_max_clobbers): New target function.
26098 * doc/tm.texi: Regenerate.
26099 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26100 * hooks.c (hook_bool_uint_mode_false): Change to
26101 hook_bool_insn_uint_mode_false.
26102 * hooks.h (hook_bool_uint_mode_false): Ditto.
26103
26104 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26105
26106 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26107 (aarch64_remove_extra_call_preserved_regs): New function.
26108 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26109 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26110 * doc/tm.texi: Regenerate.
26111 * final.c (get_call_reg_set_usage): Call new hook.
26112 * target.def (remove_extra_call_preserved_regs): New hook.
26113 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26114 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26115
26116 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26117
26118 PR bootstrap/88714
26119 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26120 inside of pass_combine_1 dump rather than pass_profile_1.
26121
26122 2019-01-11 Tom de Vries <tdevries@suse.de>
26123
26124 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26125 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26126 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26127 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26128 num_workers 16.
26129
26130 2019-01-11 Tom de Vries <tdevries@suse.de>
26131
26132 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26133
26134 2019-01-11 Jan Beulich <jbeulich@suse.com>
26135
26136 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26137 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26138 sse2_cvtsi2sd): Add {l}.
26139 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26140 syntax.
26141
26142 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26143
26144 PR target/88785
26145 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26146 define_expand.
26147 (*float<floatunssuffix>v2div2sf2): New define_insn.
26148 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26149 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26150 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26151 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26152 match_operands with "const0_operand" "C".
26153
26154 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26155
26156 * config/aarch64/aarch64-builtins.c
26157 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26158 (aarch64_init_simd_builtins): ...Here
26159
26160 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26161
26162 PR rtl-optimization/87305
26163 * lra-assigns.c
26164 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26165 allocation for big endian pseudos used as paradoxical subregs and
26166 spill them if it is wrong.
26167 * lra-constraints.c (lra_constraints): Add a comment.
26168
26169 2019-01-10 Richard Biener <rguenther@suse.de>
26170
26171 PR tree-optimization/88792
26172 * tree-ssa-pre.c (get_representative_for): Do not return a
26173 value-number here.
26174
26175 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26176
26177 PR middle-end/84877
26178 PR bootstrap/88450
26179 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26180 (assign_parm_setup_block): Do the argument slot realignment here
26181 instead.
26182
26183 2019-01-10 Stefan Agner <stefan@agner.ch>
26184
26185 PR target/88648
26186 * config/arm/arm.c (arm_option_override_internal): Force
26187 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26188
26189 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26190
26191 PR c/88568
26192 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26193 DECL_EXTERNAL.
26194
26195 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26196
26197 * config/arm/arm-builtins.c
26198 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26199 (MAC_LANE_PAIR_QUALIFIERS): New.
26200 (arm_expand_builtin_args): Use it.
26201 (arm_expand_builtin_1): Likewise.
26202 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26203 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26204 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26205 * config/arm/arm_neon.h:
26206 (vcadd_rot90_f16): New.
26207 (vcaddq_rot90_f16): New.
26208 (vcadd_rot270_f16): New.
26209 (vcaddq_rot270_f16): New.
26210 (vcmla_f16): New.
26211 (vcmlaq_f16): New.
26212 (vcmla_lane_f16): New.
26213 (vcmla_laneq_f16): New.
26214 (vcmlaq_lane_f16): New.
26215 (vcmlaq_laneq_f16): New.
26216 (vcmla_rot90_f16): New.
26217 (vcmlaq_rot90_f16): New.
26218 (vcmla_rot90_lane_f16): New.
26219 (vcmla_rot90_laneq_f16): New.
26220 (vcmlaq_rot90_lane_f16): New.
26221 (vcmlaq_rot90_laneq_f16): New.
26222 (vcmla_rot180_f16): New.
26223 (vcmlaq_rot180_f16): New.
26224 (vcmla_rot180_lane_f16): New.
26225 (vcmla_rot180_laneq_f16): New.
26226 (vcmlaq_rot180_lane_f16): New.
26227 (vcmlaq_rot180_laneq_f16): New.
26228 (vcmla_rot270_f16): New.
26229 (vcmlaq_rot270_f16): New.
26230 (vcmla_rot270_lane_f16): New.
26231 (vcmla_rot270_laneq_f16): New.
26232 (vcmlaq_rot270_lane_f16): New.
26233 (vcmlaq_rot270_laneq_f16): New.
26234 (vcadd_rot90_f32): New.
26235 (vcaddq_rot90_f32): New.
26236 (vcadd_rot270_f32): New.
26237 (vcaddq_rot270_f32): New.
26238 (vcmla_f32): New.
26239 (vcmlaq_f32): New.
26240 (vcmla_lane_f32): New.
26241 (vcmla_laneq_f32): New.
26242 (vcmlaq_lane_f32): New.
26243 (vcmlaq_laneq_f32): New.
26244 (vcmla_rot90_f32): New.
26245 (vcmlaq_rot90_f32): New.
26246 (vcmla_rot90_lane_f32): New.
26247 (vcmla_rot90_laneq_f32): New.
26248 (vcmlaq_rot90_lane_f32): New.
26249 (vcmlaq_rot90_laneq_f32): New.
26250 (vcmla_rot180_f32): New.
26251 (vcmlaq_rot180_f32): New.
26252 (vcmla_rot180_lane_f32): New.
26253 (vcmla_rot180_laneq_f32): New.
26254 (vcmlaq_rot180_lane_f32): New.
26255 (vcmlaq_rot180_laneq_f32): New.
26256 (vcmla_rot270_f32): New.
26257 (vcmlaq_rot270_f32): New.
26258 (vcmla_rot270_lane_f32): New.
26259 (vcmla_rot270_laneq_f32): New.
26260 (vcmlaq_rot270_lane_f32): New.
26261 (vcmlaq_rot270_laneq_f32): New.
26262 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26263 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26264 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26265 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26266 vcmlaq_lane270): New.
26267 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26268 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26269 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26270 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26271 (arm_option_reconfigure_globals): Use them.
26272 * config/arm/iterators.md (VDF, VQ_HSF): New.
26273 (VCADD, VCMLA): New.
26274 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26275 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26276 New.
26277 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26278 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26279
26280 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26281
26282 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26283 Add qualifier_lane_pair_index.
26284 (emit-rtl.h): Include.
26285 (TYPES_QUADOP_LANE_PAIR): New.
26286 (aarch64_simd_expand_args): Use it.
26287 (aarch64_simd_expand_builtin): Likewise.
26288 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26289 New.
26290 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26291 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26292 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26293 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26294 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26295 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26296 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26297 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26298 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26299 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26300 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26301 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26302 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26303 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26304 Add __ARM_FEATURE_COMPLEX.
26305 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26306 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26307 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26308 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26309 fcmlaq_lane270): New.
26310 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26311 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26312 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26313 * config/aarch64/arm_neon.h:
26314 (vcadd_rot90_f16): New.
26315 (vcaddq_rot90_f16): New.
26316 (vcadd_rot270_f16): New.
26317 (vcaddq_rot270_f16): New.
26318 (vcmla_f16): New.
26319 (vcmlaq_f16): New.
26320 (vcmla_lane_f16): New.
26321 (vcmla_laneq_f16): New.
26322 (vcmlaq_lane_f16): New.
26323 (vcmlaq_rot90_lane_f16): New.
26324 (vcmla_rot90_laneq_f16): New.
26325 (vcmla_rot90_lane_f16): New.
26326 (vcmlaq_rot90_f16): New.
26327 (vcmla_rot90_f16): New.
26328 (vcmlaq_laneq_f16): New.
26329 (vcmla_rot180_laneq_f16): New.
26330 (vcmla_rot180_lane_f16): New.
26331 (vcmlaq_rot180_f16): New.
26332 (vcmla_rot180_f16): New.
26333 (vcmlaq_rot90_laneq_f16): New.
26334 (vcmlaq_rot270_laneq_f16): New.
26335 (vcmlaq_rot270_lane_f16): New.
26336 (vcmla_rot270_laneq_f16): New.
26337 (vcmlaq_rot270_f16): New.
26338 (vcmla_rot270_f16): New.
26339 (vcmlaq_rot180_laneq_f16): New.
26340 (vcmlaq_rot180_lane_f16): New.
26341 (vcmla_rot270_lane_f16): New.
26342 (vcadd_rot90_f32): New.
26343 (vcaddq_rot90_f32): New.
26344 (vcaddq_rot90_f64): New.
26345 (vcadd_rot270_f32): New.
26346 (vcaddq_rot270_f32): New.
26347 (vcaddq_rot270_f64): New.
26348 (vcmla_f32): New.
26349 (vcmlaq_f32): New.
26350 (vcmlaq_f64): New.
26351 (vcmla_lane_f32): New.
26352 (vcmla_laneq_f32): New.
26353 (vcmlaq_lane_f32): New.
26354 (vcmlaq_laneq_f32): New.
26355 (vcmla_rot90_f32): New.
26356 (vcmlaq_rot90_f32): New.
26357 (vcmlaq_rot90_f64): New.
26358 (vcmla_rot90_lane_f32): New.
26359 (vcmla_rot90_laneq_f32): New.
26360 (vcmlaq_rot90_lane_f32): New.
26361 (vcmlaq_rot90_laneq_f32): New.
26362 (vcmla_rot180_f32): New.
26363 (vcmlaq_rot180_f32): New.
26364 (vcmlaq_rot180_f64): New.
26365 (vcmla_rot180_lane_f32): New.
26366 (vcmla_rot180_laneq_f32): New.
26367 (vcmlaq_rot180_lane_f32): New.
26368 (vcmlaq_rot180_laneq_f32): New.
26369 (vcmla_rot270_f32): New.
26370 (vcmlaq_rot270_f32): New.
26371 (vcmlaq_rot270_f64): New.
26372 (vcmla_rot270_lane_f32): New.
26373 (vcmla_rot270_laneq_f32): New.
26374 (vcmlaq_rot270_lane_f32): New.
26375 (vcmlaq_rot270_laneq_f32): New.
26376 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26377 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26378 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26379 (FCADD, FCMLA): New.
26380 (rot): New.
26381 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26382
26383 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26384
26385 PR other/16615
26386
26387 * config/pa/pa.c: Change "can not" to "cannot".
26388 * gimple-ssa-evrp-analyze.c: Likewise.
26389 * ipa-icf.c: Likewise.
26390 * ipa-polymorphic-call.c: Likewise.
26391 * ipa-pure-const.c: Likewise.
26392 * lra-constraints.c: Likewise.
26393 * lra-remat.c: Likewise.
26394 * reload1.c: Likewise.
26395 * reorg.c: Likewise.
26396 * tree-ssa-uninit.c: Likewise.
26397
26398 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26399
26400 PR other/16615
26401
26402 * Makefile.in: Mechanically replace "can not" with "cannot".
26403 * alias.c: Likewise.
26404 * builtins.c: Likewise.
26405 * calls.c: Likewise.
26406 * cgraph.c: Likewise.
26407 * cgraph.h: Likewise.
26408 * cgraphclones.c: Likewise.
26409 * cgraphunit.c: Likewise.
26410 * combine-stack-adj.c: Likewise.
26411 * combine.c: Likewise.
26412 * common/config/i386/i386-common.c: Likewise.
26413 * config/aarch64/aarch64.c: Likewise.
26414 * config/alpha/sync.md: Likewise.
26415 * config/arc/arc.c: Likewise.
26416 * config/arc/predicates.md: Likewise.
26417 * config/arm/arm-c.c: Likewise.
26418 * config/arm/arm.c: Likewise.
26419 * config/arm/arm.h: Likewise.
26420 * config/arm/arm.md: Likewise.
26421 * config/arm/cortex-r4f.md: Likewise.
26422 * config/csky/csky.c: Likewise.
26423 * config/csky/csky.h: Likewise.
26424 * config/darwin-f.c: Likewise.
26425 * config/epiphany/epiphany.md: Likewise.
26426 * config/i386/i386.c: Likewise.
26427 * config/i386/sol2.h: Likewise.
26428 * config/m68k/m68k.c: Likewise.
26429 * config/mcore/mcore.h: Likewise.
26430 * config/microblaze/microblaze.md: Likewise.
26431 * config/mips/20kc.md: Likewise.
26432 * config/mips/sb1.md: Likewise.
26433 * config/nds32/nds32.c: Likewise.
26434 * config/nds32/predicates.md: Likewise.
26435 * config/pa/pa.c: Likewise.
26436 * config/rs6000/e300c2c3.md: Likewise.
26437 * config/rs6000/rs6000.c: Likewise.
26438 * config/s390/s390.h: Likewise.
26439 * config/sh/sh.c: Likewise.
26440 * config/sh/sh.md: Likewise.
26441 * config/spu/vmx2spu.h: Likewise.
26442 * cprop.c: Likewise.
26443 * dbxout.c: Likewise.
26444 * df-scan.c: Likewise.
26445 * doc/cfg.texi: Likewise.
26446 * doc/extend.texi: Likewise.
26447 * doc/fragments.texi: Likewise.
26448 * doc/gty.texi: Likewise.
26449 * doc/invoke.texi: Likewise.
26450 * doc/lto.texi: Likewise.
26451 * doc/md.texi: Likewise.
26452 * doc/objc.texi: Likewise.
26453 * doc/rtl.texi: Likewise.
26454 * doc/tm.texi: Likewise.
26455 * dse.c: Likewise.
26456 * emit-rtl.c: Likewise.
26457 * emit-rtl.h: Likewise.
26458 * except.c: Likewise.
26459 * expmed.c: Likewise.
26460 * expr.c: Likewise.
26461 * fold-const.c: Likewise.
26462 * genautomata.c: Likewise.
26463 * gimple-fold.c: Likewise.
26464 * hard-reg-set.h: Likewise.
26465 * ifcvt.c: Likewise.
26466 * ipa-comdats.c: Likewise.
26467 * ipa-cp.c: Likewise.
26468 * ipa-devirt.c: Likewise.
26469 * ipa-fnsummary.c: Likewise.
26470 * ipa-icf.c: Likewise.
26471 * ipa-inline-transform.c: Likewise.
26472 * ipa-inline.c: Likewise.
26473 * ipa-polymorphic-call.c: Likewise.
26474 * ipa-profile.c: Likewise.
26475 * ipa-prop.c: Likewise.
26476 * ipa-pure-const.c: Likewise.
26477 * ipa-reference.c: Likewise.
26478 * ipa-split.c: Likewise.
26479 * ipa-visibility.c: Likewise.
26480 * ipa.c: Likewise.
26481 * ira-build.c: Likewise.
26482 * ira-color.c: Likewise.
26483 * ira-conflicts.c: Likewise.
26484 * ira-costs.c: Likewise.
26485 * ira-int.h: Likewise.
26486 * ira-lives.c: Likewise.
26487 * ira.c: Likewise.
26488 * ira.h: Likewise.
26489 * loop-invariant.c: Likewise.
26490 * loop-unroll.c: Likewise.
26491 * lower-subreg.c: Likewise.
26492 * lra-assigns.c: Likewise.
26493 * lra-constraints.c: Likewise.
26494 * lra-eliminations.c: Likewise.
26495 * lra-lives.c: Likewise.
26496 * lra-remat.c: Likewise.
26497 * lra-spills.c: Likewise.
26498 * lra.c: Likewise.
26499 * lto-cgraph.c: Likewise.
26500 * lto-streamer-out.c: Likewise.
26501 * postreload-gcse.c: Likewise.
26502 * predict.c: Likewise.
26503 * profile-count.h: Likewise.
26504 * profile.c: Likewise.
26505 * recog.c: Likewise.
26506 * ree.c: Likewise.
26507 * reload.c: Likewise.
26508 * reload1.c: Likewise.
26509 * reorg.c: Likewise.
26510 * resource.c: Likewise.
26511 * rtl.def: Likewise.
26512 * rtl.h: Likewise.
26513 * rtlanal.c: Likewise.
26514 * sched-deps.c: Likewise.
26515 * sched-ebb.c: Likewise.
26516 * sched-rgn.c: Likewise.
26517 * sel-sched-ir.c: Likewise.
26518 * sel-sched.c: Likewise.
26519 * shrink-wrap.c: Likewise.
26520 * simplify-rtx.c: Likewise.
26521 * symtab.c: Likewise.
26522 * target.def: Likewise.
26523 * toplev.c: Likewise.
26524 * tree-call-cdce.c: Likewise.
26525 * tree-cfg.c: Likewise.
26526 * tree-complex.c: Likewise.
26527 * tree-core.h: Likewise.
26528 * tree-eh.c: Likewise.
26529 * tree-inline.c: Likewise.
26530 * tree-loop-distribution.c: Likewise.
26531 * tree-nrv.c: Likewise.
26532 * tree-profile.c: Likewise.
26533 * tree-sra.c: Likewise.
26534 * tree-ssa-alias.c: Likewise.
26535 * tree-ssa-dce.c: Likewise.
26536 * tree-ssa-dom.c: Likewise.
26537 * tree-ssa-forwprop.c: Likewise.
26538 * tree-ssa-loop-im.c: Likewise.
26539 * tree-ssa-loop-ivcanon.c: Likewise.
26540 * tree-ssa-loop-ivopts.c: Likewise.
26541 * tree-ssa-loop-niter.c: Likewise.
26542 * tree-ssa-phionlycprop.c: Likewise.
26543 * tree-ssa-phiopt.c: Likewise.
26544 * tree-ssa-propagate.c: Likewise.
26545 * tree-ssa-threadedge.c: Likewise.
26546 * tree-ssa-threadupdate.c: Likewise.
26547 * tree-ssa-uninit.c: Likewise.
26548 * tree-ssanames.c: Likewise.
26549 * tree-streamer-out.c: Likewise.
26550 * tree.c: Likewise.
26551 * tree.h: Likewise.
26552 * vr-values.c: Likewise.
26553
26554 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26555
26556 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26557 (ix86_split_xorsign): Ditto.
26558 * config/i386/i386.c (ix86_expand_xorsign): New function.
26559 (ix86_split_xorsign): Ditto.
26560 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26561 (xorsign<mode>3): New expander.
26562 (xorsign<mode>3_1): New insn_and_split pattern.
26563 * config/i386/sse.md (xorsign<mode>3): New expander.
26564
26565 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26566
26567 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26568 (*tablejump_sp64): Likewise.
26569 (*tablejump<P:mode>): ...this.
26570 (*call_address_sp32): Merge into...
26571 (*call_address_sp64): Likewise.
26572 (*call_address<P:mode>): ...this.
26573 (*call_symbolic_sp32): Merge into...
26574 (*call_symbolic_sp64): Likewise.
26575 (*call_symbolic<P:mode>): ...this.
26576 (call_value): Remove constraint and add predicate.
26577 (*call_value_address_sp32): Merge into...
26578 (*call_value_address_sp64): Likewise.
26579 (*call_value_address<P:mode>): ...this.
26580 (*call_value_symbolic_sp32): Merge into...
26581 (*call_value_symbolic_sp64): Likewise.
26582 (*call_value_symbolic<P:mode>): ...this.
26583 (*sibcall_symbolic_sp32): Merge into...
26584 (*sibcall_symbolic_sp64): Likewise.
26585 (*sibcall_symbolic<P:mode>): ...this.
26586 (sibcall_value): Remove constraint and add predicate.
26587 (*sibcall_value_symbolic_sp32): Merge into...
26588 (*sibcall_value_symbolic_sp64): Likewise.
26589 (*sibcall_value_symbolic<P:mode>): ...this.
26590 (window_save): Minor tweak.
26591 (*branch_sp32): Merge into...
26592 (*branch_sp64): Likewise.
26593 (*branch<P:mode>): ...this.
26594
26595 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26596 James Clarke <jrtc27@jrtc27.com>
26597
26598 PR target/84010
26599 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26600 consistently in TLS address generation and adjust code to the renaming
26601 of patterns. Mark calls to __tls_get_addr as const.
26602 * config/sparc/sparc.md (tgd_hi22): Turn into...
26603 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26604 (tgd_lo10): Turn into...
26605 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26606 (tgd_add32): Merge into...
26607 (tgd_add64): Likewise.
26608 (tgd_add<P:mode>): ...this and use Pmode throughout.
26609 (tldm_hi22): Turn into...
26610 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26611 (tldm_lo10): Turn into...
26612 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26613 (tldm_add32): Merge into...
26614 (tldm_add64): Likewise.
26615 (tldm_add<P:mode>): ...this and use Pmode throughout.
26616 (tldm_call32): Merge into...
26617 (tldm_call64): Likewise.
26618 (tldm_call<P:mode>): ...this and use Pmode throughout.
26619 (tldo_hix22): Turn into...
26620 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26621 (tldo_lox10): Turn into...
26622 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26623 (tldo_add32): Merge into...
26624 (tldo_add64): Likewise.
26625 (tldo_add<P:mode>): ...this and use Pmode throughout.
26626 (tie_hi22): Turn into...
26627 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26628 (tie_lo10): Turn into...
26629 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26630 (tie_ld64): Use DImode throughout.
26631 (tie_add32): Merge into...
26632 (tie_add64): Likewise.
26633 (tie_add<P:mode>): ...this and use Pmode throughout.
26634 (tle_hix22_sp32): Merge into...
26635 (tle_hix22_sp64): Likewise.
26636 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26637 (tle_lox22_sp32): Merge into...
26638 (tle_lox22_sp64): Likewise.
26639 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26640 (*tldo_ldub_sp32): Merge into...
26641 (*tldo_ldub_sp64): Likewise.
26642 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26643 (*tldo_ldub1_sp32): Merge into...
26644 (*tldo_ldub1_sp64): Likewise.
26645 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26646 (*tldo_ldub2_sp32): Merge into...
26647 (*tldo_ldub2_sp64): Likewise.
26648 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26649 (*tldo_ldsb1_sp32): Merge into...
26650 (*tldo_ldsb1_sp64): Likewise.
26651 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26652 (*tldo_ldsb2_sp32): Merge into...
26653 (*tldo_ldsb2_sp64): Likewise.
26654 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26655 (*tldo_ldub3_sp64): Use DImode throughout.
26656 (*tldo_ldsb3_sp64): Likewise.
26657 (*tldo_lduh_sp32): Merge into...
26658 (*tldo_lduh_sp64): Likewise.
26659 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26660 (*tldo_lduh1_sp32): Merge into...
26661 (*tldo_lduh1_sp64): Likewise.
26662 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26663 (*tldo_ldsh1_sp32): Merge into...
26664 (*tldo_ldsh1_sp64): Likewise.
26665 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26666 (*tldo_lduh2_sp64): Use DImode throughout.
26667 (*tldo_ldsh2_sp64): Likewise.
26668 (*tldo_lduw_sp32): Merge into...
26669 (*tldo_lduw_sp64): Likewise.
26670 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26671 (*tldo_lduw1_sp64): Use DImode throughout.
26672 (*tldo_ldsw1_sp64): Likewise.
26673 (*tldo_ldx_sp64): Likewise.
26674 (*tldo_stb_sp32): Merge into...
26675 (*tldo_stb_sp64): Likewise.
26676 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26677 (*tldo_sth_sp32): Merge into...
26678 (*tldo_sth_sp64): Likewise.
26679 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26680 (*tldo_stw_sp32): Merge into...
26681 (*tldo_stw_sp64): Likewise.
26682 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26683 (*tldo_stx_sp64): Use DImode throughout.
26684
26685 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26686
26687 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26688 check configure option to set BTI and Return Address Signing.
26689 * configure.ac: Add --enable-standard-branch-protection and
26690 --disable-standard-branch-protection.
26691 * configure: Regenerated.
26692 * doc/install.texi: Document the same.
26693
26694 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26695 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26696
26697 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26698 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26699 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26700 if bti is enabled.
26701 * config/aarch64/aarch64-bti-insert.c: New file.
26702 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26703 pass.
26704 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26705 new bti pass.
26706 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26707 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26708 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26709 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26710
26711 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26712
26713 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26714 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26715 Disable bti for -mbranch-protection=none.
26716 (aarch64_handle_standard_branch_protection): Enable bti for
26717 -mbranch-protection=standard.
26718 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26719 -mbranch-protection.
26720 (aarch64_bti_enabled): Check if bti is enabled.
26721 * config/aarch64/aarch64.opt: Declare target variable.
26722 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26723
26724 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26725
26726 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26727 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26728 (aarch64_expand_epilogue): Likewise.
26729 (aarch64_output_mi_thunk): Likewise.
26730 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26731 TAILCALL_ADDR_REGS to x16 and x17.
26732 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26733
26734 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26735
26736 * config/aarch64/aarch64-option-extensions.def: Define
26737 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26738 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26739 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26740 (AARCH64_FL_PREDRES): New.
26741 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26742 AARCH64_FL_PREDRES by default.
26743 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26744
26745 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26746
26747 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26748 ARMv8.5-A.
26749 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26750 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26751 * doc/invoke.texi: Document ARMv8.5-A.
26752
26753 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26754
26755 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26756 (xorsign<mode>3): Likewise.
26757
26758 2019-01-09 Jelinek <jakub@redhat.com>
26759
26760 PR middle-end/88758
26761 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26762 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26763
26764 PR rtl-optimization/88331
26765 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26766 not currently_expanding_to_rtl.
26767
26768 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26769
26770 * doc/invoke.texi (-Os): Remove trailing spaces.
26771 (-finline-functions): Remove reference to -O2.
26772
26773 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26774
26775 PR rtl-optimization/79593
26776 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26777
26778 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26779 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26780
26781 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26782
26783 PR bootstrap/88721
26784 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26785 to -1 on entry.
26786
26787 PR debug/88723
26788 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26789 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26790
26791 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26792
26793 PR target/88717
26794 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26795 ix86_avx_u128_mode_entry.
26796
26797 2019-01-08 Martin Liska <mliska@suse.cz>
26798
26799 PR tree-optimization/88753
26800 * tree-switch-conversion.c (switch_conversion::build_one_array):
26801 Come up with local variable constructor. Convert first to
26802 type of constructor values.
26803
26804 2019-01-08 Richard Biener <rguenther@suse.de>
26805
26806 PR tree-optimization/86554
26807 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26808 rpo_avail): Move earlier.
26809 (visit_nary_op): When value-numbering to expressions
26810 with different overflow behavior make sure there's an
26811 available expression on the path.
26812
26813 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26814
26815 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26816 aarch64_parse_branch_protection,
26817 struct aarch64_branch_protect_type,
26818 aarch64_handle_no_branch_protection,
26819 aarch64_handle_standard_branch_protection,
26820 aarch64_validate_mbranch_protection,
26821 aarch64_handle_pac_ret_protection,
26822 aarch64_handle_attr_branch_protection,
26823 accepted_branch_protection_string,
26824 aarch64_pac_ret_subtypes,
26825 aarch64_branch_protect_types,
26826 aarch64_handle_pac_ret_leaf): Define.
26827 (aarch64_override_options_after_change_1, aarch64_override_options):
26828 Add check for accepted_branch_protection_string.
26829 (aarch64_option_save): Save accepted_branch_protection_string.
26830 (aarch64_option_restore): Save accepted_branch_protection_string.
26831 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26832 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26833 msign-return-address.
26834 * doc/invoke.texi: Add mbranch-protection.
26835
26836 2019-01-08 Alan Modra <amodra@gmail.com>
26837
26838 PR target/88614
26839 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26840 Delete "unknownp" parameter. Adjust callers. Handle
26841 CONST_INT, PLUS, MINUS, and MULT.
26842 (attr_value_aligned): Renamed from or_attr_value.
26843 (min_attr_value): Return INT_MIN for unhandled rtl case..
26844 (min_fn): ..and translate to INT_MAX here.
26845 (write_length_unit_log): Modify to cope without "unknown".
26846 (write_attr_value): Handle IF_THEN_ELSE.
26847
26848 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26849
26850 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26851 optimization for masked stores.
26852
26853 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26854
26855 PR middle-end/88567
26856 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26857 output vector directly to duplicate_and_interleave instead of
26858 going through a temporary. Postpone insertion of ctor_seq to
26859 the end of the loop.
26860
26861 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26862
26863 PR target/86891
26864 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26865 unsigned_p. Handle signed and unsigned overflow correction as
26866 required.
26867 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26868 prototype.
26869 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26870 for operand 2.
26871 (add<mode>3_compareV_imm): Make this callable for expanding.
26872 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26873 aarch64_plus_operand for operand 2.
26874 (subv<GPI:mode>_insn): New insn pattern.
26875 (subv<GPI:mode>_imm): Likewise.
26876 (negv<GPI:mode>3): New expand pattern.
26877 (negv<GPI:mode>_insn): New insn pattern.
26878 (negv<GPI:mode>_cmp_only): Likewise.
26879 (cmpv<GPI:mode>_insn): Likewise.
26880 (subvti4): Use register_operand for operand 1. Update call to
26881 aarch64_expand_subvti.
26882 (usubvti4): Likewise.
26883 (negvti3): New expand pattern.
26884 (negdi_carryout): New insn pattern.
26885 (negvdi_carryinV): New insn pattern.
26886 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26887 version the named version.
26888 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26889 operands.
26890 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26891 patterns.
26892 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26893 patterns.
26894 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26895 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26896 (sub<mode>3_carryinCV): Delete.
26897 (sub<GPI:mode>3_carryinV): New expand pattern.
26898 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26899
26900 2019-01-07 Richard Biener <rguenther@suse.de>
26901
26902 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26903 of tree_operand_hash.
26904
26905 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26906
26907 PR tree-optimization/88598
26908 * tree.h (single_nonzero_element): Declare.
26909 * tree.c (single_nonzero_element): New function.
26910 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26911 if I is the only nonzero element of CST.
26912
26913 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26914
26915 PR tree-optimization/88598
26916 * tree.h (initializer_each_zero_or_onep): Declare.
26917 * tree.c (initializer_each_zero_or_onep): New function.
26918 (signed_or_unsigned_type_for): Handle float types too.
26919 (unsigned_type_for, signed_type_for): Update comments accordingly.
26920 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26921 x & { 0 or -1, 0 or -1, ... }.
26922
26923 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26924
26925 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26926 with x86_64-pc-linux-gnu.
26927
26928 2019-01-07 Tom de Vries <tdevries@suse.de>
26929
26930 PR target/85486
26931 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26932 function.
26933 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26934 routines.
26935
26936 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26937
26938 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26939 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26940 TARGET_AVX512F as condition.
26941
26942 PR debug/88723
26943 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26944 const_not_ok_for_debug_p target hook.
26945 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26946 on UNSPEC and subexpressions thereof if all subexpressions of the
26947 UNSPEC are CONSTANT_P.
26948
26949 PR tree-optimization/88676
26950 * tree-ssa-phiopt.c (two_value_replacement): New function.
26951 (tree_ssa_phiopt_worker): Call it.
26952
26953 PR sanitizer/88619
26954 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26955 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26956
26957 PR c++/85052
26958 * tree-vect-generic.c: Include insn-config.h and recog.h.
26959 (expand_vector_piecewise): Add defaulted ret_type argument,
26960 if non-NULL, use that in preference to type for the result type.
26961 (expand_vector_parallel): Formatting fix.
26962 (do_vec_conversion, do_vec_narrowing_conversion,
26963 expand_vector_conversion): New functions.
26964 (expand_vector_operations_1): Call expand_vector_conversion
26965 for VEC_CONVERT ifn calls.
26966 * internal-fn.def (VEC_CONVERT): New internal function.
26967 * internal-fn.c (expand_VEC_CONVERT): New function.
26968 * fold-const-call.c (fold_const_vec_convert): New function.
26969 (fold_const_call): Use it for CFN_VEC_CONVERT.
26970 * doc/extend.texi (__builtin_convertvector): Document.
26971
26972 2019-01-07 Tom de Vries <tdevries@suse.de>
26973
26974 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26975 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26976 vector_red_partition, vector_red_sym): New global variables.
26977 (nvptx_option_override): Initialize vector_red_sym.
26978 (nvptx_declare_function_name): Restore red_partition register.
26979 (nvptx_file_end): Emit code to declare the vector reduction variables.
26980 (nvptx_output_red_partition): New function.
26981 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26982 large vector reductions.
26983 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26984 (nvptx_init_builtins): Add VECTOR_ADDR.
26985 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26986 Handle nvptx_expand_shared_addr.
26987 (nvptx_get_shared_red_addr): Add vector argument and handle large
26988 vectors.
26989 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26990 large vectors.
26991 (nvptx_goacc_reduction_init): Likewise.
26992 (nvptx_goacc_reduction_fini): Likewise.
26993 (nvptx_goacc_reduction_teardown): Likewise.
26994 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26995 init,fini,teardown}.
26996 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26997 (nvptx_set_current_function): Init vector_red_partition.
26998 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26999 (nvptx_red_partition): New insn.
27000 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
27001
27002 2019-01-07 Tom de Vries <tdevries@suse.de>
27003
27004 PR target/85381
27005 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
27006 empty loops.
27007
27008 2019-01-07 Tom de Vries <tdevries@suse.de>
27009
27010 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
27011 (nvptx_option_override): Init oacc_bcast_partition.
27012 (nvptx_init_oacc_workers): New function.
27013 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
27014 (nvptx_needs_shared_bcast): New function.
27015 (nvptx_find_par): Generalize to enable vectors to use shared-memory
27016 to propagate state.
27017 (nvptx_shared_propagate): Initialize vector bcast partition and
27018 synchronization state.
27019 (nvptx_single): Generalize to enable vectors to use shared-memory
27020 to propagate state.
27021 (nvptx_process_pars): Likewise.
27022 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
27023 * config/nvptx/nvptx.h (struct machine_function): Add
27024 bcast_partition and sync_bar members.
27025
27026 2019-01-07 Tom de Vries <tdevries@suse.de>
27027
27028 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
27029 (nvptx_apply_dim_limits): New function.
27030 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
27031 PTX_WARP_SIZE.
27032
27033 2019-01-07 Tom de Vries <tdevries@suse.de>
27034
27035 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
27036 as late as possible.
27037
27038 2019-01-07 Tom de Vries <tdevries@suse.de>
27039
27040 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
27041 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
27042 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
27043 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
27044 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
27045
27046 2019-01-07 Tom de Vries <tdevries@suse.de>
27047
27048 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
27049
27050 2019-01-07 Tom de Vries <tdevries@suse.de>
27051
27052 * omp-offload.c (oacc_get_min_dim): New function.
27053 * omp-offload.h (oacc_get_min_dim): Declare.
27054
27055 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
27056
27057 PR target/88521
27058 * config/i386/i386.c (function_value_ms_64): Return small sturct in
27059 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
27060
27061 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27062
27063 PR tree-opt/86020
27064 Revert:
27065 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
27066
27067 * ipa-inline.c (edge_badness): Use inlined_time instead of
27068 inline_summaries->get.
27069
27070 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27071
27072 * opts.c (enable_fdo_optimizations): Enable
27073 version-loops-for-strides, loop-interchange, unrol-and-jam
27074 and tree-loop-distribution.
27075 * invoke.texi: Document newly enabled options.
27076
27077 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27078
27079 * doc/invoke.texi (max-inline-insns-small): New parameters.
27080 * ipa-inline.c (want_early_inline_function_p): simplify.
27081 (want_inline_small_function_p): Fix pasto from previous patch;
27082 use max-inline-insns-small bound.
27083 * params.def (max-inline-insns-small): New param.
27084 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27085 variables correctly.
27086
27087 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27088
27089 * doc/invoke.texi: Document max-inline-insns-size,
27090 uninlined-function-insns, uninlined-function-time,
27091 uninlined-thunk-insns and uninlined-thunk-time.
27092 * params.def: Add max-inline-insns-size,
27093 uninlined-function-insns, uninlined-function-time,
27094 uninlined-thunk-insns and uninlined-thunk-time.
27095 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27096 new parameters.
27097 * ipa-inline.c (can_inline_edge_by_limits_p,
27098 want_inline_small_function_p): Use new parameters.
27099
27100 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27101
27102 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27103
27104 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27105
27106 PR middle-end/82564
27107 PR target/88620
27108 * expr.c (expand_assignment): For calls returning VLA structures
27109 if to_rtx is not a MEM, force it into a stack temporary.
27110
27111 PR debug/88635
27112 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27113 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27114 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27115 subexpressions of both operands.
27116 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27117 subrtxes are CONSTANT_P.
27118 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27119 2018-11-09 changes.
27120
27121 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27122
27123 * params.def (hot-bb-count-ws-permille): Set to 990.
27124
27125 2019-01-04 Martin Sebor <msebor@redhat.com>
27126
27127 PR c/88546
27128 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27129 leaf.
27130
27131 2019-01-04 Martin Sebor <msebor@redhat.com>
27132
27133 PR c/88363
27134 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27135
27136 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27137
27138 * gdbinit.in: Turn off pagination for the skip commands, restore
27139 it to previous state afterwards.
27140
27141 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27142
27143 PR target/88594
27144 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27145 of GET_MODE (opN) as modes of the libcall arguments.
27146
27147 2019-01-04 Jan Beulich <jbeulich@suse.com>
27148
27149 * config/i386/sse.md
27150 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27151 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27152 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27153 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27154 avx512f_vmcmp<mode>3<round_saeonly_name>,
27155 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27156 avx512f_maskcmp<mode>3,
27157 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27158 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27159 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27160 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27161 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27162 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27163 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27164 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27165 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27166 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27167 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27168 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27169 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27170 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27171 avx512cd_maskb_vec_dup<mode>,
27172 avx512cd_maskw_vec_dup<mode>,
27173 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27174 avx512dq_vmfpclass<mode>,
27175 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27176 instead of =Yk.
27177
27178 2019-01-03 Martin Sebor <msebor@redhat.com>
27179
27180 PR tree-optimization/88659
27181 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27182
27183 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27184
27185 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27186 unaligned vsx and avoid lxvd2x/stxvd2x.
27187 (gen_lvx_v4si_move): New function.
27188
27189 2019-01-03 Tom de Vries <tdevries@suse.de>
27190
27191 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27192 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27193 function.
27194 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27195
27196 2019-01-03 Tom de Vries <tdevries@suse.de>
27197
27198 * config/nvptx/nvptx.c (struct offload_attrs): New.
27199 (populate_offload_attrs): New function. Factor mask extraction out of
27200 nvptx_reorg. Add extraction of dimensions.
27201 (nvptx_reorg): Use populate_offload_attrs.
27202
27203 2019-01-03 Tom de Vries <tdevries@suse.de>
27204
27205 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27206 cases for oacc_min_dims_p and routine_p. Add asserts for
27207 oacc_default_dims_p and offload_region_p.
27208
27209 2019-01-03 Tom de Vries <tdevries@suse.de>
27210
27211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27212 factored out of ...
27213 (nvptx_goacc_validate_dims): ... here.
27214
27215 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27216
27217 PR tree-optimization/85574
27218 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27219 structure.
27220 (struct ssa_equip_hash_traits): Declare.
27221 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27222
27223 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27224
27225 PR debug/88644
27226 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27227 change it to qualified_type.
27228
27229 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27230
27231 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27232 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27233
27234 2019-01-02 Martin Sebor <msebor@redhat.com>
27235 Jeff Law <law@redhat.com>
27236
27237 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27238 (get_range_strlen_tree): Update appropriately.
27239 (get_range_strlen)
27240 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27241
27242 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27243 rather than set_range_info.
27244 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27245 maybe_set_strlen_range. Handle potentially boundary crossing
27246 cases more conservatively.
27247 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27248 Call set_strlen_range.
27249 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27250
27251 PR middle-end/88663
27252 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27253 need the flexp argument.
27254 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27255 from calls to get_range_strlen. Update comments. Just update
27256 VAL for an unterminated const char array and let the reset of the
27257 code handle it normally. No longer try to set *flexp. Adjust
27258 return value.
27259 (get_range_strlen): Update for the new get_range_strlen API.
27260 (get_maxval_strlen): Similarly.
27261 (gimple_fold_builtin_strlen): Handle update meaning of return value
27262 from get_range_strlen.
27263 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27264 get_range_strlen API.
27265
27266 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27267
27268 PR lto/88130
27269 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27270 false at WPA time when body was removed.
27271
27272 2019-01-02 Martin Liska <mliska@suse.cz>
27273
27274 PR tree-optimization/88650
27275 * predict.c (set_even_probabilities): Calculate probability
27276 remainer only when really used.
27277
27278 2019-01-02 Richard Biener <rguenther@suse.de>
27279
27280 PR middle-end/88651
27281 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27282 widest_ints when mangling max_stmt_execution results.
27283
27284 2019-01-02 Richard Biener <rguenther@suse.de>
27285
27286 PR tree-optimization/88621
27287 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27288 bitfields when canoncalizing.
27289
27290 2019-01-02 Richard Biener <rguenther@suse.de>
27291
27292 PR target/87545
27293 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27294 cost of cheap SSE instruction.
27295
27296 2019-01-02 Richard Biener <rguenther@suse.de>
27297
27298 PR ipa/85574
27299 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27300 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27301 function.
27302 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27303 set after UIDs before splitting them.
27304
27305 2019-01-01 Martin Sebor <msebor@redhat.com>
27306 Jeff Law <law@redhat.com>
27307
27308 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27309 length is optimistic. If it is, then arrange to compute the
27310 conservative length as well.
27311
27312 * gimple-fold.h (get_range_strlen): Update prototype.
27313 * builtins.c (check_access): Update call to get_range_strlen to use
27314 c_strlen_data pointer. Change various variable accesses to instead
27315 pull data from the c_strlen_data structure.
27316 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27317 * calls.c (maybe_warn_nonstring_arg): Likewise.
27318 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27319 minimum length if maximum lengh is unknown.
27320 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27321 that used c_strlen, it's no longer needed. Restructure slightly.
27322 (format_string): Set unlikely range appropriately.
27323 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27324 formatting issues.
27325 (get_range_strlen): Accept c_strlen_data pointer for external
27326 call sites as well. Pass through to call to internal get_range_strlen.
27327 Adjust minlen, maxlen and maxbound as needed.
27328 (get_maxval_strlen): Update comments.
27329 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27330 to use c_strlen_data pointer. Change variable accesses to instead
27331 use c_strlen_data data members.
27332
27333 * gimple-fold.c (get_range_strlen): Update prototype.
27334 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27335 local variables. Use pdata to return information to caller.
27336 Update calls to get_range_strlen. Update pdata->maxbound.
27337 (get_range_strlen -- static version): Similarly.
27338 (get_range_strlen -- extern version): Update for internal
27339 get_range_strlen API change. Convert to external data format.
27340 (get_maxval_strlen): Similarly.
27341
27342 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27343
27344 * coverage.c (get_coverage_counts): Use current_function_decl.
27345 * profile.c (read_thunk_profile): New function.
27346 (branch_prob): Add THUNK parameter.
27347 * tree-profile.c (tree_profiling): Handle thunks.
27348 * value-prof.c (init_node_map): Handle thunks.
27349 * value-prof.h (branch_prob): Upate prototype.
27350 (read_thunk_profile): Declare.
27351
27352 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27353
27354 Update copyright years.
27355
27356 * gcc.c (process_command): Update copyright notice dates.
27357 * gcov-dump.c (print_version): Ditto.
27358 * gcov.c (print_version): Ditto.
27359 * gcov-tool.c (print_version): Ditto.
27360 * gengtype.c (create_file): Ditto.
27361 * doc/cpp.texi: Bump @copying's copyright year.
27362 * doc/cppinternals.texi: Ditto.
27363 * doc/gcc.texi: Ditto.
27364 * doc/gccint.texi: Ditto.
27365 * doc/gcov.texi: Ditto.
27366 * doc/install.texi: Ditto.
27367 * doc/invoke.texi: Ditto.
27368 \f
27369 Copyright (C) 2019 Free Software Foundation, Inc.
27370
27371 Copying and distribution of this file, with or without modification,
27372 are permitted in any medium without royalty provided the copyright
27373 notice and this notice are preserved.