]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
PR tree-optimization/92157 - incorrect strcmp() == 0 result for unknown strings
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-18 Martin Sebor <msebor@redhat.com>
2
3 PR tree-optimization/92157
4 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5 compute_string_length to return a negative result.
6
7 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8
9 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
10 (negvsi3, negvdi3): Delete.
11 (negdi2_compare): Delete.
12
13 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
14
15 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
16 operations.
17 (subdi3_compare1): Delete pattern.
18 (subvsi3_borrow): New insn pattern.
19 (subvsi3_borrow_imm): Likewise.
20
21 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
22
23 * config/arm/arm.md (subv<mode>4): Delete.
24 (subvdi4): New expander pattern.
25 (subvsi4): Likewise. Handle some immediate values.
26 (subvsi3_intmin): New insn pattern.
27 (subvsi3): Likewise.
28 (subvsi3_imm1): Likewise.
29 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
30 idioms.
31
32 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
33
34 * config/arm/arm.md (usubvdi4): Allow registers or integers for
35 incoming operands. Early split the calculation into SImode
36 operations.
37 (usubvsi3_borrow): New insn pattern.
38 (usubvsi3_borrow_imm): Likewise.
39
40 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
41
42 * config/arm/arm.md (usubv<mode>4): Delete expansion.
43 (usubvsi4): New pattern. Allow some immediate values for inputs.
44 (usubvdi4): New pattern.
45
46 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
47
48 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
49 or second operand of the PLUS inside a DImode equality test to be
50 sign-extend when selecting CC_Vmode.
51 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
52 instructions.
53 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
54 expand patterns.
55 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
56 (addsi3_cin_vout_0): Likewise.
57 (adddi3_compareV): Delete.
58
59 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
60
61 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
62 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
63 to transform this back into the summation version when that leads
64 to smaller code.
65
66 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
67
68 * config/arm/arm.md (addv<mode>4): Delete.
69 (addvsi4): New pattern. Handle immediate values that the architecture
70 supports.
71 (addvdi4): New pattern.
72 (addsi3_compareV): Rename to ...
73 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
74 and use COMPARE rather than NE.
75 (addsi3_compareV_imm): New pattern.
76 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
77 a signed-overflow check.
78
79 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
80
81 * config/arm/arm-modes.def (CC_ADC): New CC mode.
82 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
83 CC_ADCmode.
84 (maybe_get_arm_condition_code): Handle CC_ADCmode.
85 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
86 with overflow.
87 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
88 expand patterns.
89 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
90 (addsi3_cin_cout_imm_insn): Likewise.
91 (adddi3_compareC): Delete insn.
92 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
93
94 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
95
96 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
97 * (uaddv<mode>4): Delete expansion pattern.
98 (uaddvsi4): New pattern.
99 (uaddvdi4): Likewise.
100 (addsi3_compareC): Delete pattern, change callers to use
101 addsi3_compare_op1.
102 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
103 reduce the number of alternatives and re-work type attribute handling.
104 (addsi3_compare_op2): Clean up constraints to reduce the number of
105 alternatives and re-work type attribute handling.
106 (compare_addsi2_op0): Likewise.
107 (compare_addsi2_op1): Likewise.
108
109 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
110
111 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
112 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
113 for DImode operands.
114 (arm_gen_dicompare_reg): Remove unreachable expansion code.
115 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
116 CC_NCVmode.
117 * config/arm/arm.md (arm_cmpdi_insn): Delete.
118 (arm_cmpdi_unsigned): Delete.
119
120 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
121
122 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
123 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
124 unchanged only if that will be cheaper.
125 (arm_select_cc_mode): Recognize a swapped comparison that will
126 be regenerated using RSBS or RSCS. Relax restriction on selecting
127 CC_RSBmode.
128 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
129 a constant.
130 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
131 is CC_RSBmode.
132 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
133 as CCmode.
134 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
135 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
136
137 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
138
139 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
140 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
141 need these modes.
142 (arm_gen_dicompare_reg): New code to early expand the sub-operations
143 of EQ, NE, LT, GE, LTU and GEU.
144 * config/arm/iterators.md (CC_EXTEND): New code attribute.
145 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
146 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
147 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
148 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
149
150 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
151
152 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
153 operand 2.
154 (cstoredi4): Similarly, but for operand 3.
155 * config/arm/arm.c (arm_canoncialize_comparison): Allow
156 canonicalization of unsigned compares with a constant on Arm.
157 Prefer using const+1 and adjusting the comparison over swapping the
158 operands whenever the original constant was not valid.
159 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
160 register here.
161 (arm_validize_comparison): Do not force invalid DImode operands to
162 registers here.
163
164 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
165
166 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
167 return CC_Zmode if comparing against a constant where one word is
168 zero.
169 (arm_gen_compare_reg): Split DImode handling to ...
170 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
171 against simple constants.
172 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
173
174 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
175
176 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
177 (rsbsi3_carryin_shift_alt): Likewise.
178
179 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
180
181 * config/arm/arm.md (negscc_borrow): New pattern.
182 (mov_negscc): Don't split if the insn would match negscc_borrow.
183 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
184 (thumb2_mov_negscc_strict_it): Likewise.
185
186 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
187
188 * config/arm/arm.c (arm_insn_cost): New function.
189 (TARGET_INSN_COST): Override default definition.
190
191 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
192
193 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
194 borrow operations.
195
196 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
197
198 * config/arm/arm.c (strip_carry_operation): New function.
199 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
200 for SImode.
201
202 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
203
204 * config/arm/predicates.md (arm_carry_operation): New special
205 predicate.
206 * config/arm/iterators.md (LTUGEU): Delete iterator.
207 (cnb): Delete code attribute.
208 (optab): Delete ltu and geu elements.
209 * config/arm/arm.md (addsi3_carryin): Renamed from
210 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
211 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
212 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
213 (addsi3_carryin_clobercc): Similarly.
214 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
215 Thumb2 state.
216
217 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
218
219 * config/arm/arm.md (arm_subdi3): Delete insn.
220 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
221
222 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
223
224 * config/arm/arm-modes.def (CC_RSB): New CC mode.
225 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
226 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
227 return CC_RSBmode.
228 (maybe_get_arm_condition_code): Handle CC_RSBmode.
229 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
230 expand.
231 (subdi3): Rewrite to early-expand the sub-operations.
232 (rsb_im_compare): New pattern.
233 (negdi2): Delete.
234 (negdi2_insn): Delete.
235 (arm_negsi2): Correct type attribute to alu_imm.
236 (negsi2_0compare): New insn pattern.
237 (negsi2_carryin): New insn pattern.
238
239 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
240
241 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
242 operand 2.
243
244 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
245
246 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
247 to match canonical form.
248
249 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
250
251 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
252 (extend<mode>di2): Likewise.
253
254 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
255
256 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
257 * config/arm/arm.c (arm_decompose_di_binop): New function.
258 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
259 If not generating Thumb-1 code, decompose the operation into 32-bit
260 pieces.
261 * add0si_carryin_<optab>: New pattern.
262
263 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
264
265 * arm.md (adddi3): Only accept register operands.
266 (arm_adddi3): Convert to simple insn with no split. Do not accept
267 constants.
268 (adddi_sesidi_di): Delete patern.
269 (adddi_zesidi_di): Likewise.
270 (uaddv<mode>4): Use LTU as condition for branch.
271 (adddi3_compareV): Convert to simple insn with no split.
272 (addsi3_compareV_upper): Delete pattern.
273 (adddi3_compareC): Convert to simple insn with no split. Correct
274 flags setting expression.
275 (addsi3_compareC_upper): Delete pattern.
276 (addsi3_compareC): Correct flags setting expression.
277 (subdi3_compare1): Convert to simple insn with no split.
278 (subsi3_carryin_compare): Delete pattern.
279 (arm_subdi3): Convert to simple insn with no split.
280 (subdi_zesidi): Delete pattern.
281 (subdi_di_sesidi): Delete pattern.
282 (subdi_zesidi_di): Delete pattern.
283 (subdi_sesidi_di): Delete pattern.
284 (subdi_zesidi_zesidi): Delete pattern.
285 (negvdi3): Use s_register_operand.
286 (negdi2_compare): Convert to simple insn with no split.
287 (negdi2_insn): Likewise.
288 (negsi2_carryin_compare): Delete pattern.
289 (negdi_zero_extendsidi): Delete pattern.
290 (arm_cmpdi_insn): Convert to simple insn with no split.
291 (negdi2): Don't call gen_negdi2_neon.
292 * config/arm/neon.md (adddi3_neon): Delete pattern.
293 (subdi3_neon): Delete pattern.
294 (negdi2_neon): Delete pattern.
295 (splits for negdi2_neon): Delete splits.
296
297 2019-10-18 Jakub Jelinek <jakub@redhat.com>
298
299 PR middle-end/92153
300 * ggc-page.c (release_pages): Read g->alloc_size before free rather
301 than after it.
302
303 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
304
305 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
306 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
307 new multilib variants and new mappings.
308
309 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
310
311 PR target/86040
312 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
313
314 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
315 Richard Sandiford <richard.sandiford@arm.com>
316
317 PR target/86753
318 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
319 and define hashmap traits for it.
320 (loop_vec_info::scalar_cond_masked_set): New member.
321 (vect_record_loop_mask): Adjust prototype.
322 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
323 Implement method.
324 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
325 vect_record_loop_mask.
326 (vectorizable_live_operation): Likewise.
327 (vect_record_loop_mask): New param scalar_mask. Add entry
328 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
329 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
330 Pass it as last arg to vect_record_loop_mask.
331 (vectorizable_call): Pass scalar_mask as last arg to
332 vect_record_loop_mask.
333 (vectorizable_store): Likewise.
334 (vectorizable_load): Likewise.
335 (vectorizable_condition): Check if another part of vectorized code
336 applies loop_mask to condition or to it's inverse, and if yes,
337 apply loop_mask to result of vector comparison.
338
339 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
340
341 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
342
343 2019-10-18 Jakub Jelinek <jakub@redhat.com>
344
345 PR tree-optimization/92056
346 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
347 before calling compute_builtin_object_size.
348
349 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
350
351 PR target/65342
352 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
353 (movdi_low_st): Delete.
354 * config/rs6000/rs6000.c
355 (darwin_rs6000_legitimate_lo_sum_const_p): New.
356 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
357 * config/rs6000/rs6000.md (movsi_low): Delete.
358
359 2019-10-17 Jason Merrill <jason@redhat.com>
360
361 * gimplify.h (get_initialized_tmp_var): Add default argument to
362 post_p.
363 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
364 NULL post_p argument.
365 * targhooks (std_gimplify_va_arg_expr): Likewise.
366
367 2019-10-17 Richard Biener <rguenther@suse.de>
368
369 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
370 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
371 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
372 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
373 * tree-vect-loop.c (vect_is_simple_reduction): Set
374 STMT_VINFO_REDUC_CODE.
375 (vectorizable_reduction): Remove dead and redundant code, use
376 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
377
378 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
379
380 Fix breakage introduced by r276985.
381
382 * config/avr/avr.c (avr_option_override): Remove set of
383 PARAM_ALLOW_STORE_DATA_RACES.
384 * common/config/avr/avr-common.c (avr_option_optimization_table)
385 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
386
387 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
388
389 * config/i386/i386.h (processor_costs): Add clear_ratio.
390 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
391 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
392 of 6 and move_ratio in all cost models.
393
394 2019-10-17 Richard Biener <rguenther@suse.de>
395
396 * tree-vect-loop.c (check_reduction_path): Compute reduction
397 operation here.
398 (vect_is_simple_reduction): Remove special-case of single-stmt
399 reduction path detection.
400
401 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
402
403 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
404
405 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
406
407 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
408 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
409 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
410 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
411 New combine patterns.
412 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
413 above.
414 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
415
416 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
417
418 * tree-vrp.c (value_range_base::dump): Display +INF for both
419 pointers and integers when appropriate.
420
421 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
422
423 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
424 when to use versioning threshold.
425
426 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
427
428 * tree-vect-loop.c (determine_peel_for_niter): New function contained
429 outlined code from ...
430 (vect_analyze_loop_2): ... here.
431
432 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
433
434 * tree-vect-loop.c (vect_transform_loop): Move code from here...
435 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
436 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
437
438 2019-10-17 Richard Biener <rguenther@suse.de>
439
440 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
441 (vect_is_simple_reduction): Move all validity checks ...
442 (vectorizable_reduction): ... here. Compute whether we
443 need a fold-left reduction here.
444 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
445 both overloads, check needs_fold_left_reduction_p directly.
446 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
447
448 2019-10-17 Richard Biener <rguenther@suse.de>
449
450 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
451 TARGET_MEM_REF creation.
452
453 2019-10-17 Richard Biener <rguenther@suse.de>
454
455 PR tree-optimization/92129
456 * tree-vect-loop.c (vectorizable_reduction): Also fail
457 on GIMPLE_SINGLE_RHS.
458
459 2019-10-17 Jakub Jelinek <jakub@redhat.com>
460
461 PR tree-optimization/92056
462 * tree-object-size.c (cond_expr_object_size): Return early if then_
463 processing resulted in unknown size.
464
465 PR tree-optimization/92115
466 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
467 temporary if it could trap.
468
469 2019-10-17 Richard Biener <rguenther@suse.de>
470
471 PR debug/91887
472 * dwarf2out.c (gen_formal_parameter_die): Also try to match
473 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
474
475 2019-10-16 Jakub Jelinek <jakub@redhat.com>
476
477 * tree-ssa-strlen.c (maybe_invalidate): Use
478 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
479
480 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
481 Jim Wilson <jimw@sifive.com>
482
483 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
484 regs to SIBCALL_REGS.
485 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
486 passing regs to SIBCALL_REGS.
487
488 2019-10-16 Martin Sebor <msebor@redhat.com>
489
490 PR tree-optimization/83821
491 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
492 the length of a string when available.
493 (handle_builtin_memset) Add argument.
494 (handle_store, strlen_check_and_optimize_call): Same.
495 (check_and_optimize_stmt): Same. Pass it to callees.
496
497 2019-10-16 Martin Sebor <msebor@redhat.com>
498
499 PR tree-optimization/91996
500 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
501 information.
502 (compare_nonzero_chars): Add an overload.
503 (count_nonzero_bytes): Add an argument. Call overload above.
504 Handle non-constant lengths in some range.
505 (handle_store): Add an argument.
506 (check_and_optimize_stmt): Pass an argument to handle_store.
507
508 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
509
510 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
511
512 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
513
514 * config/mips/mips.c (mips_expand_builtin_insn): Force the
515 operands which correspond to the same input-output register to
516 have the same pseudo assigned to them.
517
518 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
519
520 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
521
522 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
523
524 * config/aarch64/aarch64.c (aarch64_classify_symbol):
525 Apply reasonable limit to symbol offsets.
526
527 2019-10-16 Richard Biener <rguenther@suse.de>
528
529 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
530 (vect_is_simple_reduction): Delay checking to
531 vectorizable_reduction and relax the checking.
532 (vectorizable_reduction): Check we have a simple use. Check
533 for bogus condition reductions.
534 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
535 are looking at the last stmt in a pattern sequence when
536 filling in backedge PHI values.
537
538 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
539 Jiufu Guo <guojiufu@linux.ibm.com>
540
541 PR target/70010
542 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
543 the callee explicitly disables some isa_flags the caller is using.
544
545 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
546
547 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
548
549 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
550
551 * genmodes.c (mode_data::order): New field.
552 (blank_mode): Update accordingly.
553 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
554 (make_vector_modes): Likewise.
555 (VECTOR_MODES): Update use accordingly.
556 (cmp_modes): Sort by the new order field ahead of sorting by size.
557 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
558 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
559 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
560 (aarch64_classify_vector_mode): Handle the new partial modes.
561 (aarch64_vl_bytes): New function.
562 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
563 when counting the number of registers in an SVE mode.
564 (aarch64_class_max_nregs): Likewise.
565 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
566 in registers yet.
567 (aarch64_classify_address): Treat partial vectors analogously
568 to full vectors.
569 (aarch64_print_address_internal): Consolidate the printing of
570 MUL VL addresses, using aarch64_vl_bytes as the number of
571 bytes represented by "VL".
572 (aarch64_vector_mode_supported_p): Reject partial vector modes.
573
574 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
575
576 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
577 rather than known_lt when choosing frame layouts.
578
579 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
580
581 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
582 that all the adjustments add up to the full frame size.
583 Use crtl->outgoing_args_size directly as the final adjustment
584 where appropriate.
585
586 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
587
588 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
589 "frame" reference instead of always referring directly to
590 "cfun->machine->frame".
591
592 2019-10-16 Richard Biener <rguenther@suse.de>
593
594 PR tree-optimization/92119
595 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
596 against missing bswap lhs.
597
598 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
599
600 PR middle-end/92033
601 * poly-int.h (constant_lower_bound_with_limit): New function.
602 (constant_upper_bound_with_limit): Likewise.
603 * doc/poly-int.texi: Document them.
604 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
605 into the worst-case INTEGER_CST bounds.
606
607 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
608
609 PR ipa/91088
610 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
611 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
612 * ipa-predicat.h (struct expr_eval_op): New struct.
613 (expr_eval_ops): New typedef.
614 (struct condition): Add type and param_ops fields, remove size field.
615 (add_condition): Replace size parameter with type parameter, add
616 param_ops parameter.
617 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
618 (predicate::add_clause): Add comparisons on type and param_ops.
619 (dump_condition): Add debug dump for param_ops.
620 (remap_after_inlining): Adjust call arguments to add_condition.
621 (add_condition): Replace size parameter with type parameter, add
622 param_ops parameter. Unshare constant value used in conditions.
623 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
624 parameter expressions using param_ops.
625 (decompose_param_expr): New function.
626 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
627 to replace call to unmodified_parm_or_parm_agg_item.
628 (set_switch_stmt_execution_predicate): Likewise.
629 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
630 with type.
631 (inline_read_section): Read param_ops from summary stream.
632 (ipa_fn_summary_write): Write param_ops to summary stream.
633
634 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
635
636 PR rtl-optimization/92107
637 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
638 expression written.
639
640 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
641
642 * config/darwin.c: Update description of fix and continue.
643
644 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
645
646 * config/darwin.c (darwin_binds_local_p): Update to call
647 default_binds_local_p_3 () directly. amend comments.
648
649 2019-10-15 Richard Biener <rguenther@suse.de>
650
651 * lto-streamer-out.c (lto_variably_modified_type_p): New.
652 (tree_is_indexable): Use it.
653 * tree-streamer-out.c (pack_ts_type_common_value_fields):
654 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
655 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
656
657 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
658
659 * config/msp430/msp430.md (zero_extendqipsi2): New.
660 (zero_extendqisi2): Optimize case where src register and base dst
661 register are the same.
662 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
663 (zero_extendpsisi2): Optimize r->m case.
664 Add unnamed insn patterns to catch insns combine searches for when
665 optimizing pointer manipulation.
666
667 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
668
669 * config/msp430/msp430.md: Group zero_extend* insns together.
670
671 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
672
673 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
674 constraint.
675 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
676 POST_INC.
677 (msp430_subreg): Likewise.
678 (msp430_split_addsi): Likewise.
679 (msp430_print_operand_addr): Likewise.
680 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
681 (USE_STORE_POST_INCREMENT): Define.
682 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
683 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
684 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
685 (msp430_general_dst_operand): New.
686 (msp430_general_dst_nonv_operand): New.
687 (msp430_nonsubreg_operand): Remove.
688 (msp430_nonsubreg_dst_operand): New.
689 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
690 of defunct msp430_nonsubreg_operand.
691 (msp430_nonsubregnonpostinc_or_imm_operand): New.
692
693 2019-10-15 Richard Biener <rguenther@suse.de>
694
695 PR tree-optimization/91929
696 * tree-ssa-pre.c (pre_expr_d::loc): New member.
697 (get_or_alloc_expr_for_name): Initialize it.
698 (get_or_alloc_expr_for_constant): Likewise.
699 (phi_translate_1): Copy it.
700 (create_expression_by_pieces): Use the original location
701 of the expression for the inserted stmt.
702 (compute_avail): Record the location of the stmt for the
703 expressions created.
704
705 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
706
707 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
708 before using tree_to_uhwi.
709
710 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
711
712 * config/s390/s390.md: Run %a0:DI splitters only after reload.
713
714 2019-10-15 Richard Biener <rguenther@suse.de>
715
716 PR tree-optimization/92094
717 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
718 do not adjust the reduction definition def type.
719 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
720 defines the latch argument of the PHI.
721
722 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
723
724 PR target/92035
725 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
726 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
727 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
728 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
729 _mm_maskz_roundscale_round_sd): New intrinsics.
730 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
731 __builtin_ia32_rndscales?_mask_round builtins instead of
732 __builtin_ia32_rndscales?_round.
733 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
734 __builtin_ia32_rndscalesd_round): Remove.
735 (__builtin_ia32_rndscaless_mask_round,
736 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
737 * config/i386/sse.md
738 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
739 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
740 ... this, adjust and add subst atrributes to make it maskable.
741
742 2019-10-15 Richard Biener <rguenther@suse.de>
743
744 PR middle-end/92046
745 * common.opt (fallow-store-data-races): New.
746 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
747 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
748 * doc/invoke.texi (fallow-store-data-races): Document.
749 (--param allow-store-data-races): Remove docs.
750 * opts.c (default_options_table): Enable -fallow-store-data-races
751 at -Ofast.
752 (default_options_optimization): Do not enable --param
753 allow-store-data-races at -Ofast.
754 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
755 instead of PARAM_ALLOW_STORE_DATA_RACES.
756 * tree-ssa-loop-im.c (execute_sm): Likewise.
757
758 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
759
760 PR tree-optimization/92085
761 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
762 instead of calling it unconditionally after
763 delete_dead_or_redundant_assignment and fix indentation.
764
765 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
766
767 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
768 TARGET_VFP_DOUBLE.
769 (*fmsub<SDF:mode>4): Likewise.
770 *fnmsub<SDF:mode>4): Likewise.
771 (*fnmadd<SDF:mode>4): Likewise.
772
773 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
774
775 * doc/tree-ssa.texi: Update renamed macro name.
776
777 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
778
779 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
780 vector constants.
781
782 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
783
784 * config/darwin.c: Use unsigned ints for the picbase label
785 counters, initialise the vars explicitly.
786 (update_pic_label_number_if_needed): Move a variable declaration
787 to where it's needed.
788 (machopic_output_function_base_name): Use a more strict checking
789 assert, and and unsigned int for the picbase label counter.
790 (machopic_get_function_picbase): Likewise.
791
792 2019-10-14 Richard Biener <rguenther@suse.de>
793
794 PR middle-end/92046
795 * dse.c (scan_insn): Use param max_active_local_stores.
796 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
797 based on optimization level.
798 * loop-invariant.c (move_loop_invariants): Adjust
799 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
800 * opts.c (default_options_optimization): Do not adjust
801 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
802 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
803
804 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
805
806 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
807
808 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
809
810 * config/arm/arm.c (arm_option_override): Don't override sched
811 pressure algorithm.
812
813 2019-10-14 Richard Biener <rguenther@suse.de>
814
815 PR tree-optimization/92069
816 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
817 cycles do not set vect_nested_cycle on the latch definition.
818
819 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
820
821 * function-abi.h (expr_callee_abi): Declare.
822 * function-abi.cc (expr_callee_abi): New function.
823
824 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
825
826 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
827 into [1,MAX].
828 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
829 non-zero being represented as [1,MAX].
830
831 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
832
833 * tree-sra.c (dump_access): Add missing braces.
834
835 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
836
837 * config/darwin.c (machopic_indirection_name): Rework the
838 function to emit linker-visible symbols only for indirections
839 in the data section. Clean up the code and update comments.
840
841 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
842
843 * config/darwin.c (machopic_indirect_data_reference): Remove
844 redundant code.
845
846 2019-10-13 Nathan Sidwell <nathan@acm.org>
847
848 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
849
850 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
851
852 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
853 c99_runtime.
854
855 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
856
857 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
858 so non-virutal are before virutals.
859 (output_function): Avoid body modifications.
860
861 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
862
863 * config/pa/pa.c (pa_output_call): Load descriptor address to register
864 %r22. Load function address before global pointer.
865 (pa_attr_length_indirect_call): Adjust length of inline versions of
866 $$dyncall.
867 (pa_output_indirect_call): Remove fast inline version of $$dyncall
868 before normal cases. Update inline $$dyncall sequences to preserve
869 function descriptor address in register %r22.
870 (TRAMPOLINE_CODE_SIZE): Adjust.
871 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
872 register %r22 contains trampoline address.
873 (pa_trampoline_init): Adjust offsets.
874 (pa_trampoline_adjust_address): Likewise.
875 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
876
877 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
878
879 PR target/67183
880 * config/darwin.c (machopic_indirection): New field to flag
881 non-lazy-symbol-pointers in the data section.
882 (machopic_indirection_name): Compute if an indirection should
883 appear in the data section.
884 (machopic_output_data_section_indirection): New callback split
885 from machopic_output_indirection.
886 (machopic_output_stub_indirection): Likewise.
887 (machopic_output_indirection): Retain the code for non-lazy
888 symbol pointers in their regular section.
889 (machopic_finish): Use the new callbacks to order the indirection
890 output.
891
892 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
893
894 * config/darwin-protos.h (machopic_finish): Delete.
895 * config/darwin.c (machopic_finish): Make static.
896
897 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
898
899 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
900 sections when building kernel extension code.
901
902 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
903
904 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
905 later standard."
906
907 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
908
909 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
910 from warning.
911
912 2019-10-12 Jakub Jelinek <jakub@redhat.com>
913
914 PR middle-end/92063
915 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
916 <case VEC_COND_EXPR>: Return false with *handled = false.
917 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
918 recursing on the first operand.
919 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
920 instead of tree_could_trap_p.
921 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
922
923 2019-10-11 Jim Wilson <jimw@sifive.com>
924
925 PR rtl-optimization/91860
926 * combine.c (subst): If new_rtx is a constant, also check for
927 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
928
929 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
930
931 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
932 INTVAL when calling store_bit_field.
933
934 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
935
936 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
937 size.
938
939 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
940
941 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
942 vectorizable_live_operation.
943 (vectorizable_live_operation): Adjust parameters.
944 * tree-vect-stmts.c (vect_init_vector,
945 vect_gen_widened_results_half): Fix typo in function comment.
946 (can_vectorize_live_stmts): Adjust function comment.
947 Adjust parameters. Adjust call to vectorizable_live_operation.
948 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
949 (vect_transform_stmt): Adjust function comment. Adjust call to
950 can_vectorize_live_stmts.
951 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
952
953 2019-10-11 Richard Biener <rguenther@suse.de>
954
955 PR tree-optimization/90883
956 PR tree-optimization/91091
957 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
958 alias-sets both for recording VN table entries and continuing
959 walking after translating through copies. Handle same-sized
960 reads from SSA names by returning the plain SSA name.
961 (eliminate_dom_walker::eliminate_stmt): Properly handle
962 non-size precision stores in redundant store elimination.
963
964 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
965
966 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
967 (ggc_collect): Dump later to not interfere with release_page dump.
968 (ggc_trim): New function.
969 * ggc-none.c (ggc_trim): New.
970 * ggc.h (ggc_trim): Declare.
971
972 2019-10-11 Richard Biener <rguenther@suse.de>
973
974 PR tree-optimization/92066
975 PR tree-optimization/92046
976 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
977 Fix bogus cost model check.
978
979 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
980
981 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
982 (LANG_HOOKS_DECLS): Add it.
983 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
984 update comment for omp_is_optional_argument.
985 * omp-general.c (omp_is_allocatable_or_ptr): New.
986 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
987 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
988 Fortran's optional arguments and allocatable/pointer scalars
989 with use_device_addr.
990
991 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
992
993 PR target/77918
994 * config/s390/2827.md: Add new opcodes.
995 * config/s390/2964.md: Likewise.
996 * config/s390/3906.md: Likewise.
997 * config/s390/8561.md: Likewise.
998 * config/s390/s390-builtins.def (s390_vfchesb): Use
999 the new vec_cmpgev4sf_quiet_nocc.
1000 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
1001 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
1002 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
1003 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
1004 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
1005 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
1006 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
1007 * config/s390/s390-modes.def (CCSFPS): New mode.
1008 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
1009 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
1010 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
1011 (s390_expand_vec_compare): Use non-signaling patterns where
1012 necessary.
1013 (s390_reverse_condition): Support CCSFPS.
1014 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
1015 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
1016 (asm_fcmp_op): Likewise.
1017 (*smaxv2df3_vx): Use pattern for quiet comparison.
1018 (*sminv2df3_vx): Likewise.
1019 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
1020 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
1021 (vec_cmpgt<mode>_quiet_nocc): Likewise.
1022 (vec_cmplt<mode>_quiet_nocc): New expander.
1023 (vec_cmpge<mode>_quiet_nocc): New pattern.
1024 (vec_cmple<mode>_quiet_nocc): New expander.
1025 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
1026 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
1027 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
1028 (*vec_cmpge<mode>_signaling_nocc): Likewise.
1029 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
1030 (vec_cmpungt<mode>): New expander.
1031 (vec_cmpunge<mode>): Likewise.
1032 (vec_cmpuneq<mode>): Use quiet patterns.
1033 (vec_cmpltgt<mode>): Allow only on z14+.
1034 (vec_cmpordered<mode>): Use quiet patterns.
1035 (vec_cmpunordered<mode>): Likewise.
1036 (VEC_CMP_EXPAND): Add ungt and unge.
1037
1038 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1039
1040 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
1041 parameter.
1042 * lto-streamer-out.c: Include tree-dfa.h.
1043 (output_cfg): Do not use cfun.
1044 (lto_prepare_function_for_streaming): New.
1045 (output_function): Do not push cfun; do not initialize loop optimizer.
1046 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
1047 * passes.c (ipa_write_summaries): Use it.
1048 (ipa_write_optimization_summaries): Do not modify bodies.
1049 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
1050 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
1051 * tree-ssa-dse.c (pass_dse::execute): Update use of
1052 renumber_gimple_stmt_uids.
1053 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
1054
1055 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
1056
1057 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1058 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
1059
1060 2019-10-10 Joseph Myers <joseph@codesourcery.com>
1061
1062 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
1063 macros.
1064 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
1065 Also define DFP macros for these conditions.
1066 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
1067 DEC128_SUBNORMAL_MIN): Do not define.
1068 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
1069 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
1070
1071 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
1072 Sandra Loosemore <sandra@codesourcery.com>
1073
1074 PR middle-end/26241
1075 * doc/lto.texi (IPA): Reference to the IPA passes.
1076 * doc/passes.texi (Pass manager): Add node IPA passes and
1077 description for each IPA pass.
1078
1079 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1080
1081 * ipa-reference.c: Do not include splay-tree.h
1082 (reference_vars_to_consider): Turn to hash map.
1083 (get_static_name, ipa_init, analyze_function, propagate,
1084 stream_out_bitmap, ipa_reference_write_optimization_summary,
1085 ipa_reference_write_optimization_summary): Update.
1086
1087 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1088
1089 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
1090
1091 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
1092
1093 * config/darwin.c: Lookup Objective C metadata and force indirection
1094 for IVAR refs.
1095
1096 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
1097
1098 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
1099 addresses.
1100 (mem_operand_gpr): Add check for prefixed addresses.
1101 (mem_operand_ds_form): Add check for prefixed addresses.
1102 (rs6000_legitimate_offset_address_p): If we support prefixed
1103 addresses, check for a 34-bit offset instead of 16-bit.
1104 (rs6000_legitimate_address_p): Add check for prefixed addresses.
1105 Do not allow load/store with update if the address is prefixed.
1106 (rs6000_mode_dependent_address): If we support prefixed
1107 addresses, check for a 34-bit offset instead of 16-bit.
1108
1109 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
1110
1111 PR target/77918
1112 * config/s390/vector.md (vcond_comparison_operator): New
1113 predicate.
1114 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
1115
1116 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1117
1118 PR 87488
1119 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
1120 -D.
1121 * configure.ac (--with-documentation-root-url): New option.
1122 * configure: Regenerate.
1123 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
1124 option URL, add it as a new string field of the diagnostic option.
1125 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
1126 (print_option_information): If get_option_url is non-NULL, call
1127 it, and if the result is non-NULL, potentially emit an escape
1128 sequence to markup the option text with the resulting URL.
1129 * diagnostic.h (diagnostic_context::get_option_url): New callback.
1130 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
1131 example of JSON output.
1132 * opts-diagnostic.h (get_option_url): New decl.
1133 * opts.c (get_option_url): New function.
1134 * toplev.c (general_init): Initialize the get_option_url callback.
1135
1136 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1137
1138 PR 87488
1139 * common.opt (fdiagnostics-urls=): New option.
1140 (diagnostic-url.h): Add SourceInclude.
1141 (diagnostic_url_rule): New enum.
1142 * diagnostic-color.c: Include "diagnostic-url.h".
1143 (diagnostic_urls_enabled_p): New function.
1144 * diagnostic-url.h: New file.
1145 * diagnostic.c: Include "diagnostic-url.h".
1146 (diagnostic_urls_init): New function.
1147 * diagnostic.h (diagnostic_urls_init): New decl.
1148 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1149 -fdiagnostics-urls to the list.
1150 (-fdiagnostics-urls): New option.
1151 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1152 (driver::global_initializations): Call diagnostic_urls_init.
1153 * opts-global.c (init_options_once): Likewise.
1154 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1155 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1156 show_urls.
1157 (pp_begin_url): New function.
1158 (pp_end_url): New function.
1159 (selftest::test_urls): New selftest.
1160 (selftest::pretty_print_c_tests): Call it.
1161 * pretty-print.h (pretty_printer::show_urls): New field.
1162 (pp_begin_url): New decl.
1163 (pp_end_url): New decl.
1164
1165 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1166
1167 PR target/92022
1168 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1169
1170 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1171
1172 PR target/88630
1173 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1174 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1175 also for TARGET_FPU_SH4_300.
1176 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1177 TARGET_SH4_300.
1178 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1179 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1180 (*negsf2_i): Split into ...
1181 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1182 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1183 (**abssf2_i): Split into ...
1184 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1185 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1186 (*negdf2_i): Split into ...
1187 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1188 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1189 (**abssf2_i): Split into ...
1190 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1191
1192 2019-10-10 Richard Biener <rguenther@suse.de>
1193
1194 PR middle-end/92046
1195 * opts.c (finish_options): Do not influence global --params
1196 from options that are adjustable per function.
1197 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1198 Apply --param adjustment based on active cost-model.
1199 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1200 further store-sinking when vectorization or if-conversion
1201 are not enabled.
1202
1203 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1204
1205 PR middle-end/92037
1206 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1207 rather than ggc_alloc_cleared to alloc symbol table.
1208 * toplev.c (general_init): Likewise.
1209 * cgraph.h (symbol_table): Explicitly construct every field.
1210
1211 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1212
1213 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1214 (PF_Z15): ... this.
1215 * config.gcc: Add z15 as option for --with-arch and --with-tune
1216 configure switches.
1217 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1218 error reporting for unsupported builtins.
1219 * config/s390/s390-opts.h (enum processor_type): Rename
1220 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1221 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1222 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1223 Likewise.
1224 * config/s390/s390-builtins.def: Likewise.
1225 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1226 (s390_expand_builtin): Add missing check for unsupported builtins.
1227 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1228 (s390_rtx_costs): Likewise.
1229 (s390_get_sched_attrmask): Rename arch13 to z15.
1230 (s390_get_unit_mask): Likewise.
1231 (s390_is_fpd): Likewise.
1232 (s390_is_fxd): Likewise.
1233 * config/s390/s390.h (enum processor_flags): Likewise.
1234 * config/s390/s390.md: Likewise.
1235 * config/s390/vector.md: Likewise.
1236 * config/s390/vx-builtins.md: Likewise.
1237 * config/s390/s390.opt: Add z15 to processor_type value.
1238
1239 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1240
1241 PR target/91035
1242 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1243 prototype.
1244 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1245 ("split_stack_data", "split_stack_call")
1246 ("split_stack_call_<mode>", "split_stack_cond_call")
1247 ("split_stack_cond_call_<mode>"): Remove.
1248 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1249 insn definition.
1250 * config/s390/s390.c (s390_output_split_stack_data): New function.
1251 (s390_expand_split_stack_prologue): Use the merged expander.
1252
1253 2019-10-09 Martin Sebor <msebor@redhat.com>
1254
1255 PR tree-optimization/90879
1256 * builtins.c (check_access): Avoid using maxbound when null.
1257 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1258 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1259 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1260 conditional.
1261 (get_range_strlen): Overwrite initial maxbound when non-null.
1262 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1263 changes.
1264 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1265 (used_only_for_zero_equality): New function.
1266 (handle_builtin_memcmp): Call it.
1267 (determine_min_objsize): Return an integer instead of tree.
1268 (get_len_or_size, strxcmp_eqz_result): New functions.
1269 (maybe_warn_pointless_strcmp): New function.
1270 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1271 between a longer string and a smaller array.
1272 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1273
1274 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1275
1276 * config/darwin.c (darwin_override_options): Make the check for
1277 Objective-C ABI version more specific for 64bit code.
1278
1279 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1280
1281 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1282 indicate that the new symbol is an indirection.
1283 (machopic_indirect_call_target): Likewise.
1284 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1285 (MACHO_SYMBOL_INDIRECTION_P): New.
1286 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1287
1288 2019-10-08 Jason Merrill <jason@redhat.com>
1289
1290 * doc/invoke.texi: Document -fconcepts-ts.
1291
1292 2019-10-09 Richard Biener <rguenther@suse.de>
1293
1294 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1295 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1296
1297 2019-10-08 Richard Biener <rguenther@suse.de>
1298
1299 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1300 (_stmt_vec_info::force_single_cycle): Likewise.
1301 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1302 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1303 * tree-vect-loop.c (vectorizable_reduction): Set
1304 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1305 (vect_transform_reduction): Use them to remove redundant code.
1306 (vect_transform_cycle_phi): Likewise.
1307
1308 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1309
1310 PR tree-optimization/90836
1311 * gcc/match.pd (popcount): New pattern.
1312
1313 2019-10-08 Martin Sebor <msebor@redhat.com>
1314
1315 PR middle-end/92026
1316 PR middle-end/92014
1317 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1318 again once nbytes has been set. Set the access size when not yet set.
1319
1320 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1321
1322 * config/darwin.c (machopic_select_section): Remove dead code for
1323 old Objective-C section selection method, replace with unreachable.
1324
1325 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1326
1327 * config/darwin.c (machopic_indirect_data_reference): Check for
1328 required indirections before making direct access to defined
1329 values.
1330 (machopic_output_indirection): Place the indirected pointes for
1331 required indirections into the non-lazy symbol pointers section.
1332 (darwin_encode_section_info):
1333 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1334 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1335
1336 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1337
1338 PR target/91994
1339 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1340 instead of ALL_SSE_REG to check if function call preserves some
1341 256-bit SSE registers.
1342
1343 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1344
1345 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1346 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1347 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1348
1349 2019-10-08 Richard Biener <rguenther@suse.de>
1350
1351 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1352 (_stmt_vec_info::is_reduc_info): Add.
1353 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1354 (vectorizable_condition): Remove.
1355 (vectorizable_shift): Likewise.
1356 (vectorizable_reduction): Adjust.
1357 (info_for_reduction): New.
1358 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1359 (vect_analyze_scalar_cycles_1): ... here.
1360 (vect_analyze_loop_operations): Adjust.
1361 (needs_fold_left_reduction_p): Simplify for single caller.
1362 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1363 for nested cycles not part of double reductions.
1364 (vect_model_reduction_cost): Pass in the reduction type.
1365 (info_for_reduction): New function.
1366 (vect_create_epilog_for_reduction): Use it, access reduction
1367 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1368 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1369 (vectorize_fold_left_reduction): Remove pointless assert.
1370 (vectorizable_reduction): Analyze the full reduction when
1371 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1372 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1373 stmt code-generation to vectorizable_* in most cases. Verify
1374 code-generation only for cases handled by
1375 vect_transform_reductuon.
1376 (vect_transform_reduction): Use info_for_reduction to get at
1377 reduction meta. Simplify.
1378 (vect_transform_cycle_phi): Likewise.
1379 (vectorizable_live_operation): Likewise.
1380 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1381 at the PHI node for STMT_VINFO_REDUC_TYPE.
1382 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1383 longer necessary code.
1384 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1385 (vectorizable_condition): Likewise. Get at reduction related
1386 info via info_for_reduction.
1387 (vect_analyze_stmt): Adjust.
1388 (vect_transform_stmt): Likewise.
1389 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1390 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1391
1392 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1393
1394 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1395 -fno-fp-int-builtin-inexact default for C2X.
1396
1397 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1398 Richard Biener <rguenther@suse.de>
1399
1400 PR tree-optimization/91532
1401 * tree-if-conv.c: Include tree-ssa-dse.h.
1402 (ifcvt_local_dce): Change param from bb to loop,
1403 and call dse_classify_store.
1404 (tree_if_conversion): Pass loop instead of loop->header as arg
1405 to ifcvt_local_dce.
1406 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1407 (delete_dead_or_redundant_assignment): Remove static qualifier from
1408 declaration, and add prototype in tree-ssa-dse.h.
1409 (dse_store_status): Move to tree-ssa-dse.h.
1410 (dse_classify_store): Remove static qualifier and add new tree param
1411 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1412 * tree-ssa-dse.h: New header.
1413
1414 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1415
1416 * config/darwin.c (machopic_output_indirection): Don't put
1417 hidden symbol indirections into the .data section, use the
1418 non-lazy symbol pointers section as normal.
1419 (darwin_encode_section_info): Record if a symbol is hidden.
1420 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1421 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1422
1423 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1424
1425 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1426 predicates instead of accessing bits directly.
1427 (machopic_indirect_call_target): Likewise.
1428 (machopic_output_indirection): Likewise.
1429 (darwin_encode_section_info): Improve description. Use renamed
1430 symbol flags. Use predicate macros for variables and functions.
1431 * config/darwin.h:
1432 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1433 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1434 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1435 (MACHO_SYMBOL_VARIABLE_P): New.
1436 (MACHO_SYMBOL_DEFINED_P):New.
1437 (MACHO_SYMBOL_STATIC_P): New.
1438 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1439 (SYMBOL_FLAG_SUBT_DEP): New.
1440 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1441
1442 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1443
1444 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1445 (msp430_expand_epilogue): Likewise.
1446 * config/msp430/predicates.md: Likewise.
1447 * config/msp430/msp430.md: Likewise.
1448 Replace blocks of 8 spaces with tabs.
1449
1450 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1451
1452 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1453 * config/msp430/msp430.c (msp430_split_addsi): New.
1454 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1455 a block of C code for splitting addsi.
1456
1457 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1458
1459 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1460 ix86_expand_rounddf_32): Reorder functions.
1461 * config/i386/i386-protos.h: Update.
1462
1463 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1464
1465 * config.in: Regenerate.
1466 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1467 Add new "Yx" constraint.
1468 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1469 function.
1470 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1471 prototype.
1472 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1473 code/data region to be selected in the small memory model.
1474 (msp430_section_attr): Don't warn if the "section" and "lower"
1475 attributes are used together.
1476 (msp430_handle_generic_attribute): Likewise.
1477 (msp430_var_in_low_mem): New function.
1478 (TARGET_ENCODE_SECTION_INFO): Define.
1479 (msp430_encode_section_info): New function.
1480 (gen_prefix): Return early in the small memory model.
1481 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1482 ".lower" prefix if -m{code,data}-region=lower have been passed.
1483 (msp430_output_aligned_decl_common): Emit common symbols when
1484 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1485 set.
1486 (TARGET_ASM_FILE_END): Define.
1487 (msp430_file_end): New function.
1488 (msp430_do_not_relax_short_jumps): Allow relaxation when
1489 function will be in the lower region.
1490 (msp430_op_not_in_high_mem): New function.
1491 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1492 the 'X' operand selector.
1493 Clarify comment for 'x' operand selector.
1494 * config/msp430/msp430.h (LINK_SPEC): Propagate
1495 -m{code,data}-region to the linker via spec function
1496 msp430_propagate_region_opt.
1497 (msp430_propagate_region_opt): New prototype.
1498 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1499 (SYMBOL_FLAG_LOW_MEM): Define.
1500 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1501 selector.
1502 (zero_extendqihi2): Fix operand number used by "%X" selector.
1503 (zero_extendqisi2): Likewise.
1504 (zero_extendhisi2): Likewise.
1505 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1506 (movhi): Likewise.
1507 (addqi3): Likewise.
1508 (addhi3): Likewise.
1509 (addsi3): Likewise.
1510 (addhi3_cy): Likewise.
1511 (addchi4_cy): Likewise.
1512 (subqi3): Likewise.
1513 (subhi3): Likewise.
1514 (subsi3): Likewise.
1515 (bic<mode>3): Likewise.
1516 (and<mode>3): Likewise.
1517 (ior<mode>3): Likewise.
1518 (xor<mode>3): Likewise.
1519 (slli_1): Add missing "%X" operand selector.
1520 (slll_1): Likewise.
1521 (slll_2): Likewise.
1522 (srai_1): Likewise.
1523 (sral_1): Likewise.
1524 (sral_2): Likewise.
1525 (srli_1): Likewise.
1526 (srll_1): Likewise.
1527 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1528 selector.
1529 (cbranchhi4_real): Likewise.
1530 (cbranchqi4_reversed): Likewise.
1531 (cbranchhi4_reversed): Likewise.
1532 (*bitbranch<mode>4): Likewise.
1533 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1534 * config/msp430/msp430.opt (mcode-region=): Set default to
1535 MSP430_REGION_LOWER. Improve docstring.
1536 (mdata-region=): Likewise.
1537 (muse-lower-region-prefix): New option.
1538 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1539 mdata-region=none multilib.
1540 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1541 mdata-region=none multilib.
1542 MULTILIB_EXCEPTIONS: Remove.
1543 MULTILIB_REQUIRED: Define.
1544 * configure: Regenerate.
1545 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1546 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1547 * doc/extend.texi: Clarify comment for {upper,lower,either}
1548 function attributes.
1549 Add separate description for "lower" variable attribute.
1550
1551 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1552
1553 PR target/77918
1554 * optabs-tree.c (vcond_icode_p): New function.
1555 (vcond_eq_icode_p): Likewise.
1556 (expand_vec_cond_expr_p): Use vcond_icode_p and
1557 vcond_eq_icode_p.
1558 * optabs.c (can_vcond_compare_p): New function.
1559 * optabs.h (can_vcond_compare_p): Likewise.
1560
1561 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1562
1563 PR target/77918
1564 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1565 caller passes a non-trapping condition.
1566 (is_gimple_condexpr): Allow trapping conditions.
1567 (is_gimple_condexpr_1): New helper function.
1568 (is_gimple_condexpr_for_cond): New function, acts like old
1569 is_gimple_condexpr.
1570 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1571 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1572 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1573 * gimplify.c (gimplify_cond_expr): Use
1574 is_gimple_condexpr_for_cond.
1575 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1576 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1577 VEC_COND_EXPR.
1578 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1579 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1580 is_gimple_condexpr_for_cond, remove pointless tmp check
1581 (forward_propagate_into_cond): Remove pointless tmp check.
1582
1583 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1584
1585 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1586 match that of other gsi_next_* functions. Adjust the comment.
1587 (gsi_start_nonvirtual_phis): New function.
1588 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1589 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1590
1591 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1592
1593 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1594 setjmp situation here. Fix a verb's ending: "the exact variables or
1595 elements for which there are warnings depends" -> "... depend".
1596
1597 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1598
1599 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1600
1601 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1602
1603 * ipa-prop.c (ipa_vr::nonzero_p): New.
1604 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1605 non-zero range.
1606 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1607 * tree-vrp.c (range_has_numeric_bounds_p): New.
1608 (range_int_cst_p): Use range_has_numeric_bounds_p.
1609 (get_range_op_handler): New.
1610 (supported_types_p): New.
1611 (defined_ranges_p): New.
1612 (drop_undefines_to_varying): New.
1613 (range_fold_binary_symbolics_p): New.
1614 (range_fold_unary_symbolics_p): New.
1615 (range_fold_unary_expr): Extract out into above functions.
1616 (range_fold_binary_expr): Same.
1617 (value_range_base::normalize_addresses): New.
1618 (value_range_base::normalize_symbolics): Normalize addresses.
1619 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1620
1621 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1622
1623 * tree-vrp.c (value_range_base::singleton_p): Use
1624 value_range_base::num_pairs instead of vrp_val_is* to check
1625 if a range has one sub-range.
1626
1627 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1628
1629 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1630 DEF is not a true earlyclobber but is tied to a specific input
1631 operand, and so is effectively earlyclobber wrt inputs that have
1632 different values.
1633 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1634
1635 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1636
1637 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1638 (pod_mode): Mark operators likewise.
1639 (scalar_int_mode): Mark non-default constructors and
1640 operators with CONSTEXPR.
1641 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1642 (fixed_size_mode): Likewise.
1643
1644 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1645
1646 PR target/91994
1647 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1648 and wrap the unspec_volatile in a parallel.
1649 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1650 the unspec_volatile.
1651 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1652 unspec_volatile to be wrapped in a parallel.
1653 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1654 (ix86_add_reg_usage_to_vzerouppers): New functions.
1655 (rest_of_handle_insert_vzeroupper): Use them to add register
1656 usage information to the vzeroupper instructions.
1657
1658 2019-10-07 Richard Biener <rguenther@suse.de>
1659
1660 PR tree-optimization/91975
1661 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1662 handle invariants.
1663
1664 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1665
1666 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1667 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1668
1669 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1670
1671 * config/darwin.c (darwin_override_options): Adjust objective-c
1672 ABI version error messages to avoid punctuation and contracted
1673 negations.
1674
1675 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1676
1677 * ipa-inline.c: Fix type; compute size rather than self_size
1678 for size of caller function.
1679
1680 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1681
1682 PR target/59888
1683 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1684 choose const_data section for constants with relocations.
1685 (machopic_select_section): Pass relocation flag to
1686 darwin_rodata_section ().
1687
1688 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1689
1690 PR tree-optimization/91734
1691 * generic-match-head.c: Include fold-const-call.h.
1692 * match.pd (sqrt(x) cmp c): Check the boundary value and
1693 in case inexact computation of c*c affects comparison of the boundary,
1694 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1695 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1696 for -frounding-math. For c2, try the next smaller or larger floating
1697 point constant depending on comparison code and if it has the same
1698 sqrt as c2, use it instead of c2.
1699
1700 2019-10-04 Martin Sebor <msebor@redhat.com>
1701
1702 PR middle-end/91977
1703 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1704 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1705 uninitialized objects.
1706
1707 2019-10-04 Martin Sebor <msebor@redhat.com>
1708
1709 * builtins.c (compute_objsize): Add an argument.
1710 * tree-object-size.c (addr_object_size): Same.
1711 (compute_builtin_object_size): Same.
1712 * tree-object-size.h (compute_builtin_object): Same.
1713
1714 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1715
1716 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1717
1718 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1719
1720 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1721
1722 2019-10-04 Martin Jambor <mjambor@suse.cz>
1723
1724 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1725 fntype when switching to calling memcpy instead of memset.
1726
1727 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1728
1729 * hash-table.h (hash_table::empty_slow): Don't assign
1730 size_t values to int variables.
1731
1732 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1733
1734 * expr.c (convert_mode_scalar): Remove shadowing local var.
1735 (emit_block_move): Rename local vars.
1736 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1737 (emit_push_insn): Rename local vars.
1738 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1739 shadowing local vars.
1740 (store_constructor): Remove shadowing local vars. Rename local var.
1741 (store_field, expand_cond_expr_using_cmove,
1742 expand_expr_real_2): Remove shadowing local vars.
1743 (expand_expr_real_1,
1744 do_store_flag): Remove shadowing local vars. Rename local vars.
1745
1746 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1747
1748 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1749
1750 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1751
1752 * genmatch.c (commutate): Rename local var.
1753 (lower_cond): Reuse local var.
1754 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1755 dt_operand::gen, dt_operand::gen_gimple_expr,
1756 dt_simplify::gen): Add a param. Rename generated vars.
1757 (decision_tree::insert_operand,
1758 (capture_info::walk_match, capture_info::walk_result,
1759 capture_info::walk_c_expr): Rename local vars.
1760 (expr::gen_transform): Rename generated vars.
1761 Use snprintf. Rename local vars.
1762 (capture::gen_transform, dt_operand::get_name,
1763 dt_operand::gen_opname): Rename generated vars.
1764 (write_predicate): Adjust call to gen_kids.
1765 (parser::get_internal_capture_id): Rename generated vars.
1766 (parser::parse_expr): Rename local vars.
1767 (parser::parse_if): Remove local var.
1768 (parser::parse_pattern, add_operator): Rename local vars.
1769
1770 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1771
1772 * builtins.def (DEF_C2X_BUILTIN): New macro.
1773 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1774 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1775 (strndup): Use DEF_C2X_BUILTIN.
1776 * coretypes.h (enum function_class): Add function_c2x_misc.
1777
1778 2019-10-04 Maya Rashish <coypu@sdf.org>
1779
1780 * ira-color.c (update_costs_from_allocno): Call
1781 ira_init_register_move_cost_if_necessary.
1782
1783 2019-10-04 Jeff Law <law@redhat.com>
1784
1785 * config/h8300/h8300.md (cpymemsi): Disable.
1786 (movmd, movmd_internal_<mode>, movstr, movsd):
1787 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1788 (movmd splitter, movsd splitter): Likewise.
1789
1790 * range-op.cc (range_tests): Avoid two tests when ints and
1791 shorts are the same size.
1792
1793 2019-10-04 Richard Biener <rguenther@suse.de>
1794
1795 PR lto/91968
1796 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1797 BLOCK_VARS.
1798
1799 2019-10-04 Richard Biener <rguenther@suse.de>
1800
1801 PR tree-optimization/91982
1802 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1803 against EXTRACT_LAST_REDUCTION.
1804 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1805
1806 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1807
1808 * range-op.o (value_range_from_overflowed_bounds): Rename from
1809 adjust_overflow_bound.
1810 (value_range_with_overflow): Rename from
1811 create_range_with_overflow.
1812 (create_possibly_reversed_range): Adjusted for above renames.
1813 (operator_*::wi_fold): Same.
1814 (cross_product_operator::wi_cross_productor): Same.
1815
1816 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1817
1818 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1819 -Wshadow=compatible-local): Fix description.
1820 Add an example where -Wshadow=compatible-local does not
1821 warn.
1822
1823 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1824
1825 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1826
1827 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1828 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1829
1830 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1831
1832 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1833 can_move_by_pieces issue.
1834
1835 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1836
1837 PR target/87243
1838 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1839 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1840 is available and the user has not set one on the command line.
1841
1842 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1843
1844 PR target/91769
1845 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1846 instead of REGNO equality check on addr.reg.
1847
1848 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1849
1850 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1851 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1852 * doc/invoke.texi (inline-heuristics-hint-percent,
1853 inline-heuristics-hint-percent-O2): Document.
1854 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1855 hint attribute.
1856 (can_inline_edge_by_limits_p): Use it.
1857
1858 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1859
1860 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1861 to print CONST_DOUBLEs.
1862
1863 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1864
1865 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1866 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1867 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1868
1869 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1870
1871 * Makefile.in (OBJS): Add range.o and range-op.o.
1872 Remove wide-int-range.o.
1873 * function-tests.c (test_ranges): New.
1874 (function_tests_c_tests): Call test_ranges.
1875 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1876 range_fold_unary_expr instead of extract_range_from_unary_expr.
1877 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1878 * range-op.cc: New file.
1879 * range-op.h: New file.
1880 * range.cc: New file.
1881 * range.h: New file.
1882 * selftest.h (range_tests): New prototype.
1883 * ssa.h: Include range.h.
1884 * tree-vrp.c (value_range_base::value_range_base): New
1885 constructors.
1886 (value_range_base::singleton_p): Do not call
1887 ranges_from_anti_range until sure we will need to.
1888 (value_range_base::type): Rename gcc_assert to
1889 gcc_checking_assert.
1890 (vrp_val_is_max): New argument.
1891 (vrp_val_is_min): Same.
1892 (wide_int_range_set_zero_nonzero_bits): Move from
1893 wide-int-range.cc.
1894 (extract_range_into_wide_ints): Remove.
1895 (extract_range_from_multiplicative_op): Remove.
1896 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1897 from extract_range_from_binary_expr.
1898 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1899 from extract_range_from_binary_expr.
1900 (extract_range_from_binary_expr): Remove.
1901 (normalize_for_range_ops): New.
1902 (range_fold_binary_expr): New.
1903 (range_fold_unary_expr): New.
1904 (value_range_base::num_pairs): New.
1905 (value_range_base::lower_bound): New.
1906 (value_range_base::upper_bound): New.
1907 (value_range_base::upper_bound): New.
1908 (value_range_base::contains_p): New.
1909 (value_range_base::invert): New.
1910 (value_range_base::union_): New.
1911 (value_range_base::intersect): New.
1912 (range_compatible_p): New.
1913 (value_range_base::operator==): New.
1914 (determine_value_range_1): Call range_fold_*expr instead of
1915 extract_range_from_*expr.
1916 * tree-vrp.h (class value_range_base): Add new constructors.
1917 Add methods for union_, intersect, operator==, contains_p,
1918 num_pairs, lower_bound, upper_bound, invert.
1919 (vrp_val_is_min): Add handle_pointers argument.
1920 (vrp_val_is_max): Same.
1921 (extract_range_from_unary_expr): Remove.
1922 (extract_range_from_binary_expr): Remove.
1923 (range_fold_unary_expr): New.
1924 (range_fold_binary_expr): New.
1925 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1926 range_fold_binary_expr instead of extract_range_from_binary_expr.
1927 (vr_values::extract_range_basic): Same.
1928 (vr_values::extract_range_from_unary_expr): Call
1929 range_fold_unary_expr instead of extract_range_from_unary_expr.
1930 * wide-int-range.cc: Remove.
1931 * wide-int-range.h: Remove.
1932
1933 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1934
1935 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1936 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1937 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1938 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1939 macro.
1940
1941 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1942
1943 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1944 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1945 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1946 * glimits.h: Likewise.
1947
1948 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR rtl-optimization/91976
1951 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1952 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1953 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1954
1955 2019-10-02 Martin Sebor <msebor@redhat.com>
1956
1957 PR tree-optimization/80936
1958 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1959
1960 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1961
1962 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1963 instead of reg_class_contents[ALL_REGS].
1964
1965 2019-09-30 Jason Merrill <jason@redhat.com>
1966
1967 Add some hash_map_safe_* functions like vec_safe_*.
1968 * hash-map.h (default_hash_map_size): New variable.
1969 (create_ggc): Use it as default argument.
1970 (hash_map_maybe_create, hash_map_safe_get)
1971 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1972
1973 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1974
1975 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1976 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1977 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1978 (can_inline_edge_by_limits_p): Use it.
1979 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1980 (want_inline_small_function_p): Use O2 bounds.
1981 (edge_badness): LIkewise.
1982 * opts.c (default_options): Add OPT_finline_functions.
1983 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1984 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1985 New parameters.
1986 * doc/invoke.texi (-finline-functions): Update documentation.
1987 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1988 inline-min-speedup-O2): Document.
1989 (early-inlining-insns-O2): Simplify docs.
1990
1991 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1992
1993 PR rtl-optimization/87047
1994 * ifcvt.c (average_cost): New static function. Use it...
1995 (noce_process_if_block): ... here.
1996
1997 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1998
1999 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
2000 * config/rs6000/rs6000-string.c (expand_block_move): Add
2001 might_overlap parm.
2002 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
2003 (cpymemsi): Add might_overlap parm to expand_block_move() call.
2004
2005 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
2006
2007 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
2008 (expand_builtin_memcpy): Use might_overlap parm.
2009 (expand_builtin_mempcpy_args): Use might_overlap parm.
2010 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
2011 (expand_builtin_memory_copy_args): Add might_overlap parm.
2012 * expr.c (emit_block_move_via_cpymem): Rename to
2013 emit_block_move_via_pattern, add might_overlap parm, use cpymem
2014 or movmem optab as appropriate.
2015 (emit_block_move_hints): Add might_overlap parm, do the right
2016 thing for might_overlap==true.
2017 * expr.h (emit_block_move_hints): Update prototype.
2018
2019 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
2020
2021 * tree-eh.h (unsplit_eh_edges): Declare.
2022 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
2023 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
2024 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
2025 (struct store_immediate_info): Add lp_nr field.
2026 (store_immediate_info::store_immediate_info): Add NR2 parameter and
2027 initialize lp_nr with it.
2028 (struct merged_store_group): Add lp_nr and only_constants fields.
2029 (merged_store_group::merged_store_group): Initialize them.
2030 (merged_store_group::can_be_merged_into): Deal with them.
2031 (pass_store_merging): Rename terminate_and_release_chain into
2032 terminate_and_process_chain.
2033 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
2034 renaming and remove useless assertions.
2035 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
2036 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
2037 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
2038 instead of always recomputing it and compare lp_nr.
2039 (imm_store_chain_info::output_merged_store): If the group is in an
2040 active EH region, register new stores if they can throw. Moreover,
2041 if the insertion has created new basic blocks, adjust the PHI nodes
2042 of the post landing pad.
2043 (imm_store_chain_info::output_merged_stores): If the original stores
2044 are in an active EH region, deregister them.
2045 (lhs_valid_for_store_merging_p): Prettify.
2046 (adjust_bit_pos): New function extracted from...
2047 (mem_valid_for_store_merging): ...here. Use it for the base address
2048 and also for the offset if it is the addition of a constant.
2049 (lp_nr_for_store): New function.
2050 (pass_store_merging::process_store): Change return type to bool.
2051 Call lp_nr_for_store to initialize the store info. Propagate the
2052 return status of various called functions to the return value.
2053 (store_valid_for_store_merging_p): New predicate.
2054 (enum basic_block_status): New enumeration.
2055 (get_status_for_store_merging): New function.
2056 (pass_store_merging::execute): If the function can throw and catch
2057 non-call exceptions, unsplit the EH edges on entry and clean up the
2058 CFG on exit if something changed. Call get_status_for_store_merging
2059 for every basic block and keep the chains open across basic blocks
2060 when possible. Terminate and process open chains at the end, if any.
2061
2062 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2063
2064 * reginfo.c (globalize_reg): Fix shadowed variable in
2065 function_abis walk.
2066
2067 2019-10-02 Martin Jambor <mjambor@suse.cz>
2068
2069 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
2070 do not compute some stuff when set.
2071 (cgraph_node::create_edge): Likewise.
2072 (cgraph_node::create_indirect_edge): Renamed last parameter to
2073 coning_p and flipped its meaning, don't even calculate
2074 inline_failed when set.
2075 * cgraph.h (cgraph_node::create_edge): Add new parameter.
2076 (symbol_table::::create_edge): Likewise.
2077 (cgraph_node::create_indirect_edge): Rename last parameter, flip
2078 the default value.
2079 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
2080 call graph edge creating functions.
2081
2082 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2083
2084 PR c++/91222
2085 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
2086 namespace types.
2087
2088 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
2089
2090 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
2091
2092 2019-10-02 Richard Biener <rguenther@suse.de>
2093
2094 * tree-vectorizer.h (vect_transform_reduction): Declare.
2095 * tree-vect-stmts.c (vect_transform_stmt): Use it.
2096 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
2097 stmt transform to ...
2098 (vect_transform_reduction): ... this.
2099
2100 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
2101
2102 * omp-low.c (lower_omp_target): Dereference optional argument
2103 to work with the right pointer.
2104
2105 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
2106
2107 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
2108 false.
2109 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
2110 * langhooks.h (omp_is_optional_argument): New hook.
2111 * omp-general.c (omp_is_optional_argument): New.
2112 * omp-general.h (omp_is_optional_argument): New declaration.
2113 * omp-low.c (lower_omp_target): Create temporary for received value
2114 and take the address for new_var if the original variable was a
2115 DECL_BY_REFERENCE. Use size of referenced object when a
2116 pass-by-reference optional argument used as argument to firstprivate.
2117
2118 2019-10-02 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR tree-optimization/91940
2121 * tree-vect-patterns.c: Include tree-vector-builder.h and
2122 vec-perm-indices.h.
2123 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
2124 unpromoting the argument back to uint16_t, or by converting into a
2125 rotate, or into shifts plus ior.
2126
2127 2019-10-02 Richard Biener <rguenther@suse.de>
2128
2129 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
2130 New.
2131 (vect_transform_cycle_phi): Declare.
2132 * tree-vect-stmts.c (vect_transform_stmt): Call
2133 vect_transform_cycle_phi.
2134 * tree-vect-loop.c (vectorizable_reduction): Split out
2135 PHI transformation stage to ...
2136 (vect_transform_cycle_phi): ... here.
2137
2138 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2139
2140 PR middle-end/91957
2141 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
2142 eliminable registers.
2143 (make_hard_regno_live): Likewise, and don't make them live.
2144
2145 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2146
2147 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
2148 Call pp_emit_prefix.
2149 (layout::print_source_line): Likewise.
2150 (layout::start_annotation_line): Likewise.
2151 (diagnostic_show_locus): Remove call to temporarily clear the
2152 prefix.
2153 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2154 interaction of pp_set_prefix with rulers and fix-it hints.
2155 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2156 prefix when calling diagnostic_show_locus, rather than destroying
2157 it afterwards.
2158 (print_parseable_fixits): Temporarily clear prefix.
2159 * pretty-print.c (pp_format): Save and restore line_length, rather
2160 than assuming it is zero.
2161 (pp_output_formatted_text): Remove assertion that line_length is
2162 zero.
2163
2164 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2165
2166 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2167 Rename to ...
2168 (nonoverlapping_refs_since_match_p): ... this; handle also
2169 ARRAY_REFs.
2170 (alias_stats): Update stats.
2171 (dump_alias_stats): Likewise.
2172 (cheap_array_ref_low_bound): New function.
2173 (aliasing_matching_component_refs_p): Add partial_overlap
2174 argument;
2175 pass it to nonoverlapping_refs_since_match_p.
2176 (aliasing_component_refs_walk): Update call of
2177 aliasing_matching_component_refs_p
2178 (nonoverlapping_array_refs_p): New function.
2179 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2180 indirect_refs_may_alias_p): Update calls of
2181 nonoverlapping_refs_since_match_p.
2182
2183 2019-10-01 Maya Rashish <coypu@sdf.org>
2184
2185 PR target/85401
2186 * ira-color.c (allocno_copy_cost_saving): Call
2187 ira_init_register_move_cost_if_necessary.
2188
2189 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2190
2191 * Makefile.in (gnat_install_lib): New variable.
2192 * configure.ac: Substitute it.
2193 * configure: Regenerate.
2194
2195 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2196
2197 PR lto/91222
2198 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2199 is matched with non-C++ type
2200
2201 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2202
2203 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2204 after local CSE.
2205
2206 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2207
2208 * doc/invoke.texi (early-inlining-insns-O2): Document.
2209 (early-inlining-insns): Update.
2210 * params.def (early-inlining-insns-O2): New bound.
2211 (early-inlining-insns): Update docs.
2212 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2213
2214 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2215
2216 PR target/88562
2217 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2218 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2219 a memory access insn.
2220
2221 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2222
2223 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2224 vpmsumd.
2225
2226 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2227
2228 PR target/77918
2229 * config/s390/s390.c (s390_expand_vec_compare): Use
2230 gen_vec_cmpordered and gen_vec_cmpunordered.
2231 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2232 vec_unordered): Delete.
2233 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2234 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2235 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2236 (vec_cmp<code>): Generic dispatcher.
2237
2238 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2239
2240 PR target/77918
2241 * config/s390/vector.md (V_HW): Add V1TI in order to make
2242 vcond$a$b generate vcondv1tiv1tf.
2243
2244 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2245
2246 PR rtl-optimization/91948
2247 * ira-build.c (ira_create_allocno): Initialize
2248 ALLOCNO_CROSSED_CALLS_ABIS.
2249 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2250 than regno to ira_need_caller_save_p.
2251
2252 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2253
2254 * config/i386/i386-options.c
2255 (ix86_recompute_optlev_based_flags): New, moved out of...
2256 (ix86_option_override_internal): ... this. Call it.
2257 (ix86_override_options_after_change): Call it here too.
2258
2259 PR debug/91507
2260 * dwarf2out.c (override_type_for_decl_p): New.
2261 (gen_variable_die): Use it.
2262
2263 2019-10-01 Richard Biener <rguenther@suse.de>
2264
2265 * tree-vect-loop.c (vectorizable_reduction): Move variables
2266 to where they are used.
2267
2268 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2269
2270 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2271 (build_def_use): Use PC instead of CC0 in a comment.
2272
2273 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2274
2275 * rtl.def (CLOBBER_HIGH): Delete.
2276 * doc/rtl.texi (clobber_high): Remove documentation.
2277 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2278 (reg_is_clobbered_by_clobber_high): Delete.
2279 (gen_hard_reg_clobber_high): Likewise.
2280 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2281 * cfgexpand.c (expand_gimple_stmt): Likewise.
2282 * combine-stack-adj.c (single_set_for_csa): Likewise.
2283 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2284 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2285 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2286 * cse.c (invalidate_reg): Remove clobber_high parameter.
2287 (invalidate): Update call accordingly.
2288 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2289 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2290 (count_reg_usage, insn_live_p): Likewise.
2291 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2292 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2293 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2294 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2295 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2296 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2297 (mark_nonreg_stores_2): Likewise.
2298 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2299 (df_get_call_refs): Likewise.
2300 * dwarf2out.c (mem_loc_descriptor): Likewise.
2301 * emit-rtl.c (verify_rtx_sharing): Likewise.
2302 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2303 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2304 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2305 * genemit.c (gen_exp, gen_insn): Likewise.
2306 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2307 * haifa-sched.c (haifa_classify_rtx): Likewise.
2308 * ira-build.c (create_insn_allocnos): Likewise.
2309 * ira-costs.c (scan_one_insn): Likewise.
2310 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2311 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2312 * jump.c (mark_jump_label_1): Likewise.
2313 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2314 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2315 handling.
2316 (mark_not_eliminable): Likewise.
2317 * lra-lives.c (process_bb_lives): Likewise.
2318 * lra.c (new_insn_reg): Remove clobber_high parameter.
2319 (collect_non_operand_hard_regs): Likewise. Update call to new
2320 insn_reg. Remove CLOBBER_HIGH handling.
2321 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2322 to collect_non_operand_hard_regs.
2323 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2324 Update call to new_insn_reg.
2325 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2326 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2327 (move2add_note_store): Likewise.
2328 * print-rtl.c (print_pattern): Likewise.
2329 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2330 (if_test_bypass_p): Likewise.
2331 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2332 * reginfo.c (reg_scan_mark_refs): Likewise.
2333 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2334 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2335 (forget_old_reloads_1): Likewise.
2336 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2337 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2338 (dbr_schedule): Likewise.
2339 * resource.c (update_live_status, mark_referenced_resources)
2340 (mark_set_resources): Likewise.
2341 * rtl.c (copy_rtx): Likewise.
2342 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2343 (note_pattern_stores): Likewise.
2344 (reg_is_clobbered_by_clobber_high): Delete.
2345 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2346 CLOBBER_HIGH handling.
2347
2348 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2349
2350 PR target/91452
2351 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2352 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2353 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2354 Handle ARM_PCS_TLSDESC.
2355 (aarch64_tlsdesc_abi_id): New function.
2356 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2357 rtx instead of a list of clobbers and clobber_highs.
2358 (tlsdesc_small_<mode>): Update accordingly.
2359
2360 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2361
2362 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2363 extra callee_abi argument.
2364 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2365 Insert a CALLEE_ABI unspec into the call pattern as the second
2366 element in the PARALLEL.
2367 (aarch64_simd_call_p): Delete.
2368 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2369 the new CALLEE_ABI element of the PARALLEL.
2370 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2371 from the function type, if given.
2372 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2373 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2374 when passed the function_arg_info end marker.
2375 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2376 final argument of gen_sibcall.
2377 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2378 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2379 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2380 pattern.
2381 (call_value): Likewise operand 3.
2382 (sibcall): Likewise operand 2. Place the unspec before rather than
2383 after the return.
2384 (sibcall_value): Likewise operand 3.
2385 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2386 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2387 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2388 constraint strings.
2389 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2390
2391 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2392
2393 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2394 choose_hard_reg_mode.
2395 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2396
2397 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2398
2399 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2400 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2401 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2402
2403 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2404
2405 * diagnostic-show-locus.c (line_label::line_label): Initialize
2406 m_has_vbar.
2407 (line_label::comparator): Reverse the sort order by m_state_idx,
2408 so that when the list is walked backwards the labels appear in
2409 order of insertion into the rich_location.
2410 (line_label::m_has_vbar): New field.
2411 (layout::print_any_labels): When dealing with multiple labels at
2412 the same line and column, only print vertical bars for the one
2413 with the highest label_line.
2414 (selftest::test_one_liner_labels): Update test for multiple labels
2415 to expect the labels to be in the order of insertion into the
2416 rich_location. Add a test for many such labels, where the column
2417 numbers are out-of-order relative to the insertion order.
2418
2419 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2420
2421 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2422 (ix86_frame::expensive_count): Likewise.
2423 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2424 of use_fast_prologue_epilogue robust against incidental changes
2425 in function size.
2426
2427 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2428
2429 PR target/77918
2430 * config/s390/vector.md (vec_unordered<mode>): Call
2431 gen_vec_ordered<mode>.
2432
2433 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2434
2435 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2436 New pattern for ASRD.
2437 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2438 * internal-fn.def (IFN_DIV_POW2): New internal function.
2439 * optabs.def (sdiv_pow2_optab): New optab.
2440 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2441 Modify pattern to support new operation.
2442 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2443 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2444 Document new target selector.
2445
2446 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2447
2448 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2449 to test whether we're compiling a vector PCS function and to test
2450 whether the function needs to save a particular register.
2451 Remove the vector PCS handling of df_set_regs_ever_live.
2452 (aarch64_components_for_bb): Use crtl->abi to test whether
2453 the function needs to save a particular register.
2454 (aarch64_process_components): Use crtl->abi to test whether
2455 we're compiling a vector PCS function.
2456 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2457 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2458
2459 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2460
2461 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2462 Delete.
2463 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2464 whether the block calls a function that clobbers more registers
2465 than the current function is allowed to.
2466 (aarch64_use_simple_return_insn_p): Delete.
2467 * config/aarch64/aarch64.md (simple_return): Remove condition.
2468
2469 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2470
2471 * function-abi.h (function_abi_aggregator): New class.
2472 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2473 function.
2474 * ira.c (update_equiv_regs_prescan): New function. Call
2475 set_paradoxical_subreg here rather than...
2476 (update_equiv_regs): ...here.
2477 (ira): Call update_equiv_regs_prescan.
2478
2479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2480
2481 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2482 IN_TARGET_CODE.
2483 (call_used_or_fixed_regs): Likewise.
2484 (call_used_or_fixed_reg_p): Likewise.
2485 * reginfo.c (regs_invalidated_by_call): New macro.
2486
2487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2488
2489 * shrink-wrap.c: Include function-abi.h.
2490 (requires_stack_frame_p): Use crtl->abi to test whether the
2491 current function can use a register without saving it first.
2492
2493 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2494
2495 * sel-sched-ir.h (_def::crosses_call): Replace with...
2496 (_def::crossed_call_abis): ..this new field.
2497 (def_list_add): Take a mask of ABIs instead of a crosses_call
2498 boolean.
2499 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2500 of _def accordingly.
2501 * sel-sched.c: Include function-abi.h.
2502 (hard_regs_data::regs_for_call_clobbered): Delete.
2503 (reg_rename::crosses_call): Replace with...
2504 (reg_rename::crossed_call_abis): ...this new field.
2505 (fur_static_params::crosses_call): Replace with...
2506 (fur_static_params::crossed_call_abis): ...this new field.
2507 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2508 (init_hard_regs_data): Use crtl->abi to test which registers the
2509 current function would need to save before it uses them.
2510 (mark_unavailable_hard_regs): Update handling of call-clobbered
2511 registers, using call_clobbers_in_region to find out which registers
2512 might be call-clobbered (but without taking -fipa-ra into account
2513 for now). Remove separate handling of partially call-clobbered
2514 registers.
2515 (verify_target_availability): Use crossed_call_abis instead of
2516 crosses_call.
2517 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2518 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2519
2520 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2521
2522 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2523 function to test whether a register is fully or partly clobbered.
2524
2525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2526
2527 * rtlanal.c: Include function-abi.h.
2528 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2529 function and clobbers_reg_p to test whether the register
2530 is call-clobbered.
2531 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2532 to get the ABI of the called function and full_reg_clobbers to
2533 get the set of fully call-clobbered registers. Warn about the
2534 pitfalls of using this mode.
2535
2536 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2537
2538 * reload.c: Include function-abi.h.
2539 (find_equiv_reg): Use clobbers_reg_p to test whether either
2540 of the equivalent registers is clobbered by a call.
2541 * reload1.c: Include function-abi.h.
2542 (reg_reloaded_call_part_clobbered): Delete.
2543 (reload): Use crtl->abi to test which registers would need
2544 saving in the prologue before use.
2545 (find_reg): Likewise.
2546 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2547 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2548 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2549
2550 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * regrename.h (du_head::call_clobber_mask): New field.
2553 (du_head::need_caller_save_reg): Replace with...
2554 (du_head::call_abis): ...this new field.
2555 * regrename.c: Include function-abi.h.
2556 (call_clobbered_in_chain_p): New function.
2557 (check_new_reg_p): Use crtl->abi when deciding whether a register
2558 is free for use after RA. Use call_clobbered_in_chain_p to test
2559 whether a candidate register would be clobbered by a call.
2560 (find_rename_reg): Don't add call-clobber conflicts here.
2561 (rename_chains): Check call_abis instead of need_caller_save_reg.
2562 (merge_chains): Update for changes to du_head.
2563 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2564 target. Record the ABI identifier in call_abis and the set of
2565 fully or partially clobbered registers in call_clobber_mask.
2566 Add fully-clobbered registers to hard_conflicts here rather
2567 than in find_rename_reg.
2568 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2569 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2570 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2571 function-abi.h.
2572 * config/c6x/c6x.c: Likewise.
2573
2574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2575
2576 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2577 mode of the register when deciding whether it is no longer
2578 available after a call.
2579
2580 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2581
2582 * recog.c: Include function-abi.h.
2583 (peep2_find_free_register): Use crtl->abi when deciding whether
2584 a register is free for use after RA.
2585
2586 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2587
2588 * postreload-gcse.c: Include regs.h and function-abi.h.
2589 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2590 call insn target. Conservatively assume that partially-clobbered
2591 registers are altered.
2592
2593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2594
2595 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2596 when deciding whether a register is free for use after RA.
2597 (reload_combine): Remove unnecessary use of fixed_reg_set.
2598 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2599 call insn target. Use reg_mode when testing whether a register
2600 is no longer available.
2601
2602 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2603
2604 * target.def (return_call_with_max_clobbers): Delete.
2605 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2606 * doc/tm.texi: Regenerate.
2607 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2608 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2609 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2610 (lra_reg::call_insn): Delete.
2611 * lra.c: Include function-abi.h.
2612 (initialize_lra_reg_info_element): Don't initialize the fields above.
2613 (lra): Use crtl->abi to test whether the current function needs to
2614 save a register in the prologue. Remove special pre-inheritance
2615 lra_create_live_ranges pass for flag_ipa_ra.
2616 * lra-assigns.c: Include function-abi.h
2617 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2618 function needs to save a register in the prologue.
2619 (lra_assign): Assert that registers aren't allocated to a
2620 conflicting register, rather than checking only for overlaps
2621 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2622 and for registers that are not live across a call.
2623 * lra-constraints.c (last_call_for_abi): New variable.
2624 (full_and_partial_call_clobbers): Likewise.
2625 (setup_next_usage_insn): Remove the register from
2626 full_and_partial_call_clobbers.
2627 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2628 whether the register needs a caller save.
2629 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2630 of call_used_or_fixed_regs.
2631 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2632 full_and_partial_call_clobbers.
2633 * lra-lives.c (check_pseudos_live_through_calls): Replace
2634 last_call_used_reg_set and call_insn arguments with an abi argument.
2635 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2636 as the set of conflicting registers.
2637 (calls_have_same_clobbers_p): Delete.
2638 (process_bb_lives): Track the ABI of the last call instead of an
2639 insn/HARD_REG_SET pair. Update calls to
2640 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2641 the set of registers that could be clobbered by an EH edge.
2642 Include partially-clobbered as well as fully-clobbered registers.
2643 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2644 * lra-remat.c: Include function-abi.h.
2645 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2646 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2647 registers and bitmap_view to combine them into dead_regs.
2648 (call_used_input_regno_present_p): Take a function_abi argument
2649 and use it to test whether a register is call-clobbered.
2650 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2651 call insn target. Update tje call to call_used_input_regno_present_p.
2652 (do_remat): Likewise.
2653 (lra_remat): Remove the initialization of call_used_regs_arr_len
2654 and call_used_regs_arr.
2655
2656 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2657
2658 * loop-iv.c: Include regs.h and function-abi.h.
2659 (simplify_using_initial_values): Use insn_callee_abi to get the
2660 ABI of the call insn target. Conservatively assume that
2661 partially-clobbered registers are altered.
2662
2663 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * function-abi.h (call_clobbers_in_region): Declare.
2666 (call_clobbered_in_region_p): New function.
2667 * function-abi.cc (call_clobbers_in_region): Likewise.
2668 * ira-int.h: Include function-abi.h.
2669 (ira_allocno::crossed_calls_abis): New field.
2670 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2671 (ira_need_caller_save_regs): New function.
2672 (ira_need_caller_save_p): Likewise.
2673 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2674 of call_used_or_fixed_regs.
2675 (do_reload): Use crtl->abi to test whether the current function
2676 needs to save a register in the prologue. Count registers that
2677 need to be saved rather than registers that don't.
2678 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2679 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2680 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2681 (propagate_some_info_from_allocno): Likewise.
2682 (copy_info_to_removed_store_destinations): Likewise.
2683 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2684 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2685 (ira_build): Use ira_need_caller_save_regs instead of
2686 call_used_or_fixed_regs.
2687 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2688 whether the current function would need to save a register
2689 before using it.
2690 (calculate_spill_cost): Likewise.
2691 (allocno_reload_assign): Use ira_need_caller_save_regs and
2692 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2693 * ira-conflicts.c (ira_build_conflicts): Use
2694 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2695 as the set of call-clobbered registers. Remove the
2696 call_used_or_fixed_regs mask from the calculation of
2697 temp_hard_reg_set and mask its use instead. Remove special
2698 handling of partially-clobbered registers.
2699 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2700 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2701 calculate the set of conflicting registers for calls that
2702 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2703 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2704 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2705 Use eh_edge_abi to calculate the set of registers that could
2706 be clobbered by an EH edge. Include partially-clobbered as
2707 well as fully-clobbered registers.
2708
2709 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2710
2711 * haifa-sched.c: Include function-abi.h.
2712 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2713 the function would need to save a register before using it.
2714
2715 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2716
2717 * gcse.c: Include function-abi.h.
2718 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2719 the call insn target. Invalidate partially call-clobbered
2720 registers as well as fully call-clobbered ones.
2721
2722 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2723
2724 * function.c (aggregate_value_p): Work out which ABI the
2725 function is using before testing which registers are at least
2726 partly preserved by a call.
2727
2728 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2729
2730 * early-remat.c: Include regs.h and function-abi.h.
2731 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2732 registers here.
2733 (early_remat::restrict_remat_for_unavail_regs): New function.
2734 (early_remat::restrict_remat_for_call): Likewise.
2735 (early_remat::process_block): Before calling emit_remat_insns
2736 for a previous call in the block, invalidate any candidates
2737 that would clobber call-preserved registers.
2738 (early_remat::emit_remat_insns_for_block): Likewise for the
2739 final call in a block. Do the same thing for live-in registers
2740 when calling emit_remat_insns at the head of a block.
2741
2742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2743
2744 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2745 whether the current function needs to save at least part of a
2746 register before using it.
2747 (df_get_exit_block_use_set): Likewise for epilogue restores.
2748
2749 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2750
2751 * df-problems.c: Include regs.h and function-abi.h.
2752 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2753 sparse_invalidated_by_eh and dense_invalidated_by_call to
2754 dense_invalidated_by_eh.
2755 (df_print_bb_index): Update accordingly.
2756 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2757 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2758 that are clobbered by an EH edge. Clobber partially-clobbered
2759 registers as well as fully-clobbered ones.
2760 (df_md_confluence_n): Likewise.
2761 (df_rd_local_compute): Likewise. Update for changes to
2762 df_rd_problem_data.
2763 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2764 of registers that are clobbered by an EH edge. Includde partially-
2765 clobbered registers as well as fully-clobbered ones.
2766
2767 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2768
2769 * cselib.c (cselib_process_insn): If we know what mode a
2770 register was set in, check whether it is clobbered in that
2771 mode by a call. Only fall back to reg_raw_mode if that fails.
2772
2773 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2774
2775 * cse.c: Include regs.h and function-abi.h.
2776 (invalidate_for_call): Take the call insn as an argument.
2777 Use insn_callee_abi to get the ABI of the call and invalidate
2778 partially clobbered registers as well as fully clobbered ones.
2779 (cse_insn): Update call accordingly.
2780
2781 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2782
2783 * combine.c: Include function-abi.h.
2784 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2785 of the target of call insns. Invalidate partially-clobbered
2786 registers as well as fully-clobbered ones.
2787
2788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2789
2790 * cfgloopanal.c: Include regs.h and function-abi.h.
2791 (init_set_costs): Use default_function_abi to test whether
2792 a general register is call-clobbered.
2793
2794 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2795
2796 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2797 instead of the call-clobbered sets.
2798
2799 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2800
2801 * caller-save.c (setup_save_areas): Remove redundant |s of
2802 fixed_reg_set.
2803 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2804 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2805 value is useful.
2806
2807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2808
2809 * rtl.h (predefined_function_abi): Declare.
2810 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2811 instead of a boolean call_save flag.
2812 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2813 accordingly.
2814 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2815 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2816 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2817 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2818 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2819 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2820 * reginfo.c (init_reg_modes_target): Likewise.
2821 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2822 instead of a boolean call_save flag.
2823 * targhooks.c: Include function-abi.h.
2824 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2825 using eh_edge_abi to choose the mode.
2826
2827 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2828
2829 * target.def (hard_regno_call_part_clobbered): Take an ABI
2830 identifier instead of an rtx_insn.
2831 * doc/tm.texi: Regenerate.
2832 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2833 (hook_bool_uint_uint_mode_false): New function.
2834 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2835 (hook_bool_uint_uint_mode_false): New function.
2836 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2837 Take an ABI identifier instead of an rtx_insn.
2838 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2839 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2840 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2841 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2842 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2843 Likewise.
2844 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2845 * cselib.c: Include function-abi.h.
2846 (cselib_process_insn): Update call to
2847 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2848 to get the appropriate ABI identifier.
2849 * function-abi.cc (predefined_function_abi::initialize): Update call
2850 to targetm.hard_regno_call_part_clobbered.
2851 * ira-conflicts.c (ira_build_conflicts): Likewise.
2852 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2853 * lra-constraints.c: Include function-abi.h.
2854 (need_for_call_save_p): Update call to
2855 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2856 to get the appropriate ABI identifier.
2857 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2858 * regcprop.c (copyprop_hardreg_forward_1): Update call
2859 to targetm.hard_regno_call_part_clobbered.
2860 * reginfo.c (choose_hard_reg_mode): Likewise.
2861 * regrename.c (check_new_reg_p): Likewise.
2862 * reload.c (find_equiv_reg): Likewise.
2863 * reload1.c (emit_reload_insns): Likewise.
2864 * sched-deps.c: Include function-abi.h.
2865 (deps_analyze_insn): Update call to
2866 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2867 to get the appropriate ABI identifier.
2868 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2869 call to targetm.hard_regno_call_part_clobbered.
2870 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2871
2872 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2873
2874 * config/i386/i386.c: Include function-abi.h.
2875 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2876 if they preserve some 256-bit or 512-bit SSE registers.
2877
2878 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2879
2880 * target.def (insn_callee_abi): New hook.
2881 (remove_extra_call_preserved_regs): Delete.
2882 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2883 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2884 * doc/tm.texi: Regenerate.
2885 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2886 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2887 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2888 insn argument.
2889 (aarch64_remove_extra_call_preserved_regs): Delete.
2890 (aarch64_insn_callee_abi): New function.
2891 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2892 (TARGET_INSN_CALLEE_ABI): New macro.
2893 * rtl.h (get_call_fndecl): Declare.
2894 (cgraph_rtl_info): Fix formatting. Tweak comment for
2895 function_used_regs. Remove function_used_regs_valid.
2896 * rtlanal.c (get_call_fndecl): Moved from final.c
2897 * function-abi.h (insn_callee_abi): Declare.
2898 (target_function_abi_info): Mention insn_callee_abi.
2899 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2900 way to get_call_reg_set_usage did.
2901 (insn_callee_abi): New function.
2902 * regs.h (get_call_reg_set_usage): Delete.
2903 * final.c: Include function-abi.h.
2904 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2905 function_used_regs before the main loop rather than afterwards.
2906 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2907 if function_used_regs ends up not being useful.
2908 (get_call_fndecl): Move to rtlanal.c
2909 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2910 * caller-save.c: Include function-abi.h.
2911 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2912 instead of get_call_reg_set_usage.
2913 * cfgcleanup.c: Include function-abi.h.
2914 (old_insns_match_p): Use insn_callee_abi instead of
2915 get_call_reg_set_usage.
2916 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2917 a tree.
2918 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2919 function_used_regs.
2920 * df-scan.c: Include function-abi.h.
2921 (df_get_call_refs): Use insn_callee_abi instead of
2922 get_call_reg_set_usage.
2923 * ira-lives.c: Include function-abi.h.
2924 (process_bb_node_lives): Use insn_callee_abi instead of
2925 get_call_reg_set_usage.
2926 * lra-lives.c: Include function-abi.h.
2927 (process_bb_lives): Use insn_callee_abi instead of
2928 get_call_reg_set_usage.
2929 * postreload.c: Include function-abi.h.
2930 (reload_combine): Use insn_callee_abi instead of
2931 get_call_reg_set_usage.
2932 * regcprop.c: Include function-abi.h.
2933 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2934 get_call_reg_set_usage.
2935 * resource.c: Include function-abi.h.
2936 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2937 instead of get_call_reg_set_usage.
2938 * var-tracking.c: Include function-abi.h.
2939 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2940 get_call_reg_set_usage.
2941
2942 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2943
2944 * target.def (fntype_abi): New target hook.
2945 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2946 * doc/tm.texi: Regenerate.
2947 * target.h (predefined_function_abi): Declare.
2948 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2949 if defined.
2950 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2951 * config/aarch64/aarch64.c: Include function-abi.h.
2952 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2953 (TARGET_FNTYPE_ABI): Define.
2954
2955 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2956
2957 * Makefile.in (OBJS): Add function-abi.o.
2958 (GTFILES): Add function-abi.h.
2959 * function-abi.cc: New file.
2960 * function-abi.h: Likewise.
2961 * emit-rtl.h (rtl_data::abi): New field.
2962 * function.c: Include function-abi.h.
2963 (prepare_function_start): Initialize crtl->abi.
2964 * read-rtl-function.c: Include regs.h and function-abi.h.
2965 (read_rtl_function_body): Initialize crtl->abi.
2966 (read_rtl_function_body_from_file_range): Likewise.
2967 * reginfo.c: Include function-abi.h.
2968 (init_reg_sets_1): Initialize default_function_abi.
2969 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2970 when making a register global.
2971 * target-globals.h (this_target_function_abi_info): Declare.
2972 (target_globals::function_abi_info): New field.
2973 (restore_target_globals): Copy it.
2974 * target-globals.c: Include function-abi.h.
2975 (default_target_globals): Initialize the function_abi_info field.
2976 (target_globals): Allocate it.
2977 (save_target_globals): Free it.
2978
2979 2019-09-30 Nick Clifton <nickc@redhat.com>
2980
2981 PR target/85978
2982 * config/frv/frv.c (frv_register_move_cost): Add break statements
2983 to avoid falling through to the wrong cases. Tidy code.
2984
2985 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2986
2987 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2988 For multi-registers modes, test how big each register part is.
2989
2990 2019-09-30 Nick Clifton <nickc@redhat.com>
2991
2992 PR target/59205
2993 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2994 (TARGET_ASM_SELECT_SECTION): Remove definition.
2995 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2996
2997 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2998
2999 * emit-rtl.c (init_raw_REG): New function.
3000 (gen_raw_REG): Use init_raw_REG.
3001 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
3002 macros.
3003 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
3004 * rtl.h (rtx_init): New function.
3005 (rtx_alloca): New function.
3006 (init_raw_REG): New function.
3007 (alloca_raw_REG): New macro.
3008
3009 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
3010
3011 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
3012 (pcrel_local_address): Replace pcrel_address predicate, use the
3013 new function address_to_insn_form.
3014 (pcrel_external_address): Replace with new implementation using
3015 address_to_insn_form..
3016 (prefixed_mem_operand): Delete predicate which is now unused.
3017 (pcrel_external_mem_operand): Delete predicate which is now
3018 unused.
3019 * config/rs6000/rs6000-protos.h (enum insn_form): New
3020 enumeration.
3021 (enum non_prefixed_form): New enumeration.
3022 (address_to_insn_form): New declaration.
3023 (prefixed_load_p): New declaration.
3024 (prefixed_store_p): New declaration.
3025 (prefixed_paddi_p): New declaration.
3026 (rs6000_asm_output_opcode): New declaration.
3027 (rs6000_final_prescan_insn): Move declaration and update calling
3028 signature.
3029 (address_is_prefixed): New helper inline function.
3030 * config/rs6000/rs6000.c(print_operand_address): Check for either
3031 PC-relative local symbols or PC-relative external symbols.
3032 (rs6000_emit_move): Support loading PC-relative addresses.
3033 (mode_supports_prefixed_address_p): Delete, no longer used.
3034 (rs6000_prefixed_address_mode_p): Delete, no longer used.
3035 (address_to_insn_form): New function to decode an address format.
3036 (reg_to_non_prefixed): New function to identify what the
3037 non-prefixed memory instruction format is for a register.
3038 (prefixed_load_p): New function to identify prefixed loads.
3039 (prefixed_store_p): New function to identify prefixed stores.
3040 (prefixed_paddi_p): New function to identify prefixed load
3041 immediates.
3042 (next_insn_prefixed_p): New static state variable.
3043 (rs6000_final_prescan_insn): New function to determine if an insn
3044 uses a prefixed instruction.
3045 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
3046 prefixed instruction.
3047 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
3048 (ASM_OUTPUT_OPCODE): New target hook.
3049 * config/rs6000/rs6000.md (prefixed): New insn attribute for
3050 prefixed instructions.
3051 (prefixed_length): New insn attribute for the size of prefixed
3052 instructions.
3053 (non_prefixed_length): New insn attribute for the size of
3054 non-prefixed instructions.
3055 (pcrel_local_addr): New insn to load up a local PC-relative
3056 address.
3057 (pcrel_extern_addr): New insn to load up an external PC-relative
3058 address.
3059 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
3060 GPR and loading a 128-bit floating point type to a GPR.
3061
3062 2019-09-30 Richard Biener <rguenther@suse.de>
3063
3064 * gimple.c (gimple_get_lhs): For PHIs return the result.
3065 * tree-vectorizer.h (vectorizable_live_operation): Also get the
3066 SLP instance as argument.
3067 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
3068 double-reduction PHIs with vectorizable_lc_phi.
3069 (vect_analyze_loop_operations): Adjust.
3070 (vect_create_epilog_for_reduction): Remove all code not dealing
3071 with reduction LC PHI or epilogue generation.
3072 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
3073 for live stmts of reductions.
3074 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
3075 do not handle defs that are not vect_internal_def.
3076 (can_vectorize_live_stmts): Adjust.
3077 (vect_analyze_stmt): When the vectorized stmt defined a value
3078 used on backedges adjust the backedge uses of vectorized PHIs.
3079
3080 2019-09-30 Martin Jambor <mjambor@suse.cz>
3081
3082 PR ipa/91853
3083 * tree-inline.c (force_value_to_type): New function.
3084 (setup_one_parameter): Use force_value_to_type to convert type.
3085 * tree-inline.c (force_value_to_type): Declare.
3086 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
3087 with register type mismatches.
3088
3089 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
3090
3091 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
3092 32-bit PowerPC.
3093 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
3094 * config/rs6000/t-freebsd64: Make use of the above define and build
3095 the 32-bit libraries with secure-plt.
3096
3097 2019-09-30 Jakub Jelinek <jakub@redhat.com>
3098
3099 PR target/91931
3100 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
3101 gen_int_mode instead of GEN_INT.
3102
3103 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
3104
3105 * config/darwin.c (gen_macho_low): Amend to include the mode
3106 argument.
3107 (machopic_indirect_data_reference): Amend gen_macho_low call
3108 to include mode argument
3109 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
3110 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
3111 the macho_high expander and two define_insn entries.
3112
3113 2019-09-29 Jakub Jelinek <jakub@redhat.com>
3114
3115 PR bootstrap/90543
3116 * optc-save-gen.awk: Fix up printing string option differences.
3117
3118 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3119
3120 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
3121 vec_perm cost to 1 for non-Power7 VSX architectures.
3122
3123 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3124
3125 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
3126 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
3127 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
3128
3129 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
3130
3131 * config/darwin.c (gen_macho_high): Amend to include the mode
3132 argument.
3133 (machopic_indirect_data_reference): Amend gen_macho_high call
3134 to include mode argument.
3135 (machopic_legitimize_pic_address): Likewise.
3136 * config/rs6000/rs6000.c (rs6000_legitimize_address):
3137 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
3138 the macho_high expander and two define_insn entries.
3139
3140 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3141
3142 PR target/86805
3143 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3144
3145 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3146
3147 PR target/80672
3148 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3149 std::string::compare instead of std::string::find.
3150
3151 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3152
3153 * configure: Regenerate.
3154
3155 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3156
3157 PR middle-end/91920
3158 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3159 variables as shared.
3160
3161 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3162
3163 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3164 replaces the expander and two define_insn entries.
3165 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3166 call.
3167 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3168
3169 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3170
3171 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3172 (fibonacci_heap::nodes): Likewise.
3173 (fibonacci_heap::min_key): Likewise.
3174 (fibonacci_heap::min): Likewise.
3175
3176 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3177
3178 * cgraph.c (cgraph_node::get_fun): Make const.
3179 * cgraph.h (cgraph_node::get_fun): Likewise.
3180
3181 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3182
3183 PR target/91919
3184 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3185 of SImode MULT.
3186
3187 2019-09-27 Richard Biener <rguenther@suse.de>
3188
3189 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3190 (STMT_VINFO_REDUC_FN): Likewise.
3191 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3192 STMT_VINFO_REDUC_FN.
3193 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3194 for condition reductions.
3195 (vect_create_epilog_for_reduction): Compute all required state
3196 from the stmt to be vectorized.
3197 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3198 invocation and remove then dead code. For single def-use chains
3199 record only a single vector stmt.
3200
3201 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3202
3203 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3204 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3205 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3206 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3207 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3208 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3209 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3210 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3211 (aarch64_general_builtin_rsqrt): Declare.
3212 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3213 New function.
3214 (aarch64_mangle_builtin_type): Rename to...
3215 (aarch64_general_mangle_builtin_type): ...this.
3216 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3217 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3218 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3219 aarch64_general_add_builtin instead of add_builtin_function.
3220 (aarch64_init_builtins): Rename to...
3221 (aarch64_general_init_builtins): ...this. Use
3222 aarch64_general_add_builtin instead of add_builtin_function.
3223 (aarch64_builtin_decl): Rename to...
3224 (aarch64_general_builtin_decl): ...this and remove the unused
3225 arguments.
3226 (aarch64_expand_builtin): Rename to...
3227 (aarch64_general_expand_builtin): ...this and remove the unused
3228 arguments.
3229 (aarch64_builtin_rsqrt): Rename to...
3230 (aarch64_general_builtin_rsqrt): ...this.
3231 (aarch64_fold_builtin): Rename to...
3232 (aarch64_general_fold_builtin): ...this. Take the function subcode
3233 and return type as arguments. Remove the "ignored" argument.
3234 (aarch64_gimple_fold_builtin): Rename to...
3235 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3236 subcode and gcall as arguments, and return the new function call.
3237 * config/aarch64/aarch64.c (aarch64_init_builtins)
3238 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3239 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3240 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3241 instead of aarch64_builtin_rsqrt.
3242 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3243 instead of aarch64_mangle_builtin_type.
3244
3245 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * target.def (check_builtin_call): New target hook.
3248 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3249 * doc/tm.texi: Regenerate.
3250
3251 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3252
3253 PR tree-optimization/91909
3254 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3255 reduc_index parameter. When handling COND_REDUCTION, make sure
3256 that the reduction phi operand is in the correct arm of the
3257 VEC_COND_EXPR.
3258 (vectorizable_reduction): Pass reduc_index to the above.
3259
3260 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3261
3262 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3263 New combine pattern.
3264
3265 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3266
3267 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3268 loop instruction into new basic block before the loop when basic
3269 block that precedes the loop is empty.
3270
3271 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3272
3273 * function.c (gimplify_parameters): Use build_clobber function.
3274 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3275 * tree-inline.c (expand_call_inline): Likewise.
3276 * tree-sra.c (clobber_subtree): Likewise.
3277 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3278 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3279 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3280 lower_omp_target): Likewise.
3281 * omp-expand.c (expand_omp_for_generic): Likewise.
3282 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3283
3284 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3285
3286 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3287 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3288 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3289 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3290 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3291 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3292 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3293 LD_ELEMREV_V16QI): Use the PURE attribute.
3294
3295 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3296
3297 * config/rs6000/darwin.md: Replace the expanders for
3298 load_macho_picbase and reload_macho_picbase with use of '@'
3299 and <mode> in their respective define_insns.
3300 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3301 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3302 Pmode to gen_load_macho_picbase.
3303 * config/rs6000/rs6000.md: Likewise.
3304
3305 2019-09-25 Richard Biener <rguenther@suse.de>
3306
3307 PR tree-optimization/91896
3308 * tree-vect-loop.c (vectorizable_reduction): The single
3309 def-use cycle optimization cannot apply when there's more
3310 than one pattern stmt involved.
3311
3312 2019-09-26 Richard Biener <rguenther@suse.de>
3313
3314 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3315 loop-closed PHIs that are vect_internal_def.
3316 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3317 Simplify.
3318 (vectorizable_lc_phi): New.
3319 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3320 (vect_transform_stmt): Likewise.
3321 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3322 (vectorizable_lc_phi): Declare.
3323
3324 2019-09-26 Richard Biener <rguenther@suse.de>
3325
3326 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3327 vectorizable_reduction for vect_double_reduction_def.
3328 (vect_transform_loop): Likewise.
3329 (vect_create_epilog_for_reduction): Move double-reduction
3330 PHI creation and preheader argument setting of PHIs ...
3331 (vectorizable_reduction): ... here. Also process
3332 vect_double_reduction_def PHIs, creating the vectorized
3333 PHI nodes, remembering the scalar adjustment computed for
3334 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3335 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3336 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3337 Initialize STMT_VINFO_REDUC_CODE.
3338 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3339 (_stmt_vec_info::reduc_code): Likewise.
3340 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3341 (STMT_VINFO_REDUC_CODE): Likewise.
3342
3343 2019-09-26 Matt Turner <mattst88@gmail.com>
3344
3345 PR driver/69471
3346 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3347 (mtune=): Add Negative(mtune=).
3348 (mcpu=): Add Negative(mcpu=).
3349 * config/arm/arm.opt: Likewise.
3350
3351 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3352
3353 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3354 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3355 Define.
3356 * config/arm/arm_acle.h: Define builtins for the above.
3357 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3358 (simd32_op): Handle the above.
3359 * config/arm/unspecs.md: Define unspecs for the above.
3360
3361 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3362
3363 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3364 (arm_<sup>xtb16): Likewise.
3365 (arm_usada8): Likewise.
3366 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3367 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3368 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3369 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3370 __sxtb16, __uxtab16, __uxtb16): Define.
3371 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3372 * config/arm/unspecs.md: Define unspecs for the above.
3373 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3374 (USXTB16): Likewise.
3375 (simd32_op): New int_attribute.
3376 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3377 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3378
3379 2019-09-26 Martin Jambor <mjambor@suse.cz>
3380
3381 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3382 internal_error.
3383
3384 2019-09-26 Martin Jambor <mjambor@suse.cz>
3385
3386 * ipa-sra.c (process_scan_results): Fix continue condition.
3387
3388 2019-09-26 Martin Liska <mliska@suse.cz>
3389
3390 PR tree-optimization/91885
3391 * tree-vectorizer.c (try_vectorize_loop_1): Add
3392 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3393
3394 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3395
3396 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3397 aarch64_plus_immediate rather than aarch64_uimm12_shift
3398 to test for valid PLUS immediates.
3399
3400 2019-09-25 Martin Jambor <mjambor@suse.cz>
3401
3402 * tree-sra.c (no_accesses_p): Remove.
3403 (no_accesses_representant): Likewise.
3404
3405 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3406
3407 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3408 consistenly.
3409 (vaba_s16): Likewise.
3410 (vaba_s32): Likewise.
3411 (vaba_u8): Likewise.
3412 (vaba_u16): Likewise.
3413 (vaba_u32): Likewise.
3414 (vabal_high_s8): Likewise.
3415 (vabal_high_s16): Likewise.
3416 (vabal_high_s32): Likewise.
3417 (vabal_high_u8): Likewise.
3418 (vabal_high_u16): Likewise.
3419 (vabal_high_u32): Likewise.
3420 (vabal_s8): Likewise.
3421 (vabal_s16): Likewise.
3422 (vabal_s32): Likewise.
3423 (vabal_u8): Likewise.
3424 (vabal_u16): Likewise.
3425 (vabal_u32): Likewise.
3426 (vabaq_s8): Likewise.
3427 (vabaq_s16): Likewise.
3428 (vabaq_s32): Likewise.
3429 (vabaq_u8): Likewise.
3430 (vabaq_u16): Likewise.
3431 (vabaq_u32): Likewise.
3432 (vabd_s8): Likewise.
3433 (vabd_s16): Likewise.
3434 (vabd_s32): Likewise.
3435 (vabd_u8): Likewise.
3436 (vabd_u16): Likewise.
3437 (vabd_u32): Likewise.
3438 (vabdl_high_s8): Likewise.
3439 (vabdl_high_s16): Likewise.
3440 (vabdl_high_s32): Likewise.
3441 (vabdl_high_u8): Likewise.
3442 (vabdl_high_u16): Likewise.
3443 (vabdl_high_u32): Likewise.
3444 (vabdl_s8): Likewise.
3445 (vabdl_s16): Likewise.
3446 (vabdl_s32): Likewise.
3447 (vabdl_u8): Likewise.
3448 (vabdl_u16): Likewise.
3449 (vabdl_u32): Likewise.
3450 (vabdq_s8): Likewise.
3451 (vabdq_s16): Likewise.
3452 (vabdq_s32): Likewise.
3453 (vabdq_u8): Likewise.
3454 (vabdq_u16): Likewise.
3455 (vabdq_u32): Likewise.
3456 (vaddlv_s8): Likewise.
3457 (vaddlv_s16): Likewise.
3458 (vaddlv_u8): Likewise.
3459 (vaddlv_u16): Likewise.
3460 (vaddlvq_s8): Likewise.
3461 (vaddlvq_s16): Likewise.
3462 (vaddlvq_s32): Likewise.
3463 (vaddlvq_u8): Likewise.
3464 (vaddlvq_u16): Likewise.
3465 (vaddlvq_u32): Likewise.
3466 (vcvtx_f32_f64): Likewise.
3467 (vcvtx_high_f32_f64): Likewise.
3468 (vcvtxd_f32_f64): Likewise.
3469 (vmla_n_f32): Likewise.
3470 (vmla_n_s16): Likewise.
3471 (vmla_n_s32): Likewise.
3472 (vmla_n_u16): Likewise.
3473 (vmla_n_u32): Likewise.
3474 (vmla_s8): Likewise.
3475 (vmla_s16): Likewise.
3476 (vmla_s32): Likewise.
3477 (vmla_u8): Likewise.
3478 (vmla_u16): Likewise.
3479 (vmla_u32): Likewise.
3480 (vmlal_high_n_s16): Likewise.
3481 (vmlal_high_n_s32): Likewise.
3482 (vmlal_high_n_u16): Likewise.
3483 (vmlal_high_n_u32): Likewise.
3484 (vmlal_high_s8): Likewise.
3485 (vmlal_high_s16): Likewise.
3486 (vmlal_high_s32): Likewise.
3487 (vmlal_high_u8): Likewise.
3488 (vmlal_high_u16): Likewise.
3489 (vmlal_high_u32): Likewise.
3490 (vmlal_n_s16): Likewise.
3491 (vmlal_n_s32): Likewise.
3492 (vmlal_n_u16): Likewise.
3493 (vmlal_n_u32): Likewise.
3494 (vmlal_s8): Likewise.
3495 (vmlal_s16): Likewise.
3496 (vmlal_s32): Likewise.
3497 (vmlal_u8): Likewise.
3498 (vmlal_u16): Likewise.
3499 (vmlal_u32): Likewise.
3500 (vmlaq_n_f32): Likewise.
3501 (vmlaq_n_s16): Likewise.
3502 (vmlaq_n_s32): Likewise.
3503 (vmlaq_n_u16): Likewise.
3504 (vmlaq_n_u32): Likewise.
3505 (vmlaq_s8): Likewise.
3506 (vmlaq_s16): Likewise.
3507 (vmlaq_s32): Likewise.
3508 (vmlaq_u8): Likewise.
3509 (vmlaq_u16): Likewise.
3510 (vmlaq_u32): Likewise.
3511 (vmls_n_f32): Likewise.
3512 (vmls_n_s16): Likewise.
3513 (vmls_n_s32): Likewise.
3514 (vmls_n_u16): Likewise.
3515 (vmls_n_u32): Likewise.
3516 (vmls_s8): Likewise.
3517 (vmls_s16): Likewise.
3518 (vmls_s32): Likewise.
3519 (vmls_u8): Likewise.
3520 (vmls_u16): Likewise.
3521 (vmls_u32): Likewise.
3522 (vmlsl_high_n_s16): Likewise.
3523 (vmlsl_high_n_s32): Likewise.
3524 (vmlsl_high_n_u16): Likewise.
3525 (vmlsl_high_n_u32): Likewise.
3526 (vmlsl_high_s8): Likewise.
3527 (vmlsl_high_s16): Likewise.
3528 (vmlsl_high_s32): Likewise.
3529 (vmlsl_high_u8): Likewise.
3530 (vmlsl_high_u16): Likewise.
3531 (vmlsl_high_u32): Likewise.
3532 (vmlsl_n_s16): Likewise.
3533 (vmlsl_n_s32): Likewise.
3534 (vmlsl_n_u16): Likewise.
3535 (vmlsl_n_u32): Likewise.
3536 (vmlsl_s8): Likewise.
3537 (vmlsl_s16): Likewise.
3538 (vmlsl_s32): Likewise.
3539 (vmlsl_u8): Likewise.
3540 (vmlsl_u16): Likewise.
3541 (vmlsl_u32): Likewise.
3542 (vmlsq_n_f32): Likewise.
3543 (vmlsq_n_s16): Likewise.
3544 (vmlsq_n_s32): Likewise.
3545 (vmlsq_n_u16): Likewise.
3546 (vmlsq_n_u32): Likewise.
3547 (vmlsq_s8): Likewise.
3548 (vmlsq_s16): Likewise.
3549 (vmlsq_s32): Likewise.
3550 (vmlsq_u8): Likewise.
3551 (vmlsq_u16): Likewise.
3552 (vmlsq_u32): Likewise.
3553 (vmovl_high_s8): Likewise.
3554 (vmovl_high_s16): Likewise.
3555 (vmovl_high_s32): Likewise.
3556 (vmovl_high_u8): Likewise.
3557 (vmovl_high_u16): Likewise.
3558 (vmovl_high_u32): Likewise.
3559 (vmovl_s8): Likewise.
3560 (vmovl_s16): Likewise.
3561 (vmovl_s32): Likewise.
3562 (vmovl_u8): Likewise.
3563 (vmovl_u16): Likewise.
3564 (vmovl_u32): Likewise.
3565 (vmovn_high_s16): Likewise.
3566 (vmovn_high_s32): Likewise.
3567 (vmovn_high_s64): Likewise.
3568 (vmovn_high_u16): Likewise.
3569 (vmovn_high_u32): Likewise.
3570 (vmovn_high_u64): Likewise.
3571 (vmovn_s16): Likewise.
3572 (vmovn_s32): Likewise.
3573 (vmovn_s64): Likewise.
3574 (vmovn_u16): Likewise.
3575 (vmovn_u32): Likewise.
3576 (vmovn_u64): Likewise.
3577 (vmull_high_n_s16): Likewise.
3578 (vmull_high_n_s32): Likewise.
3579 (vmull_high_n_u16): Likewise.
3580 (vmull_high_n_u32): Likewise.
3581 (vmull_high_p8): Likewise.
3582 (vmull_high_s8): Likewise.
3583 (vmull_high_s16): Likewise.
3584 (vmull_high_s32): Likewise.
3585 (vmull_high_u8): Likewise.
3586 (vmull_high_u16): Likewise.
3587 (vmull_high_u32): Likewise.
3588 (vmull_n_s16): Likewise.
3589 (vmull_n_s32): Likewise.
3590 (vmull_n_u16): Likewise.
3591 (vmull_n_u32): Likewise.
3592 (vmull_p8): Likewise.
3593 (vmull_s8): Likewise.
3594 (vmull_s16): Likewise.
3595 (vmull_s32): Likewise.
3596 (vmull_u8): Likewise.
3597 (vmull_u16): Likewise.
3598 (vmull_u32): Likewise.
3599 (vpadal_s8): Likewise.
3600 (vpadal_s16): Likewise.
3601 (vpadal_s32): Likewise.
3602 (vpadal_u8): Likewise.
3603 (vpadal_u16): Likewise.
3604 (vpadal_u32): Likewise.
3605 (vpadalq_s8): Likewise.
3606 (vpadalq_s16): Likewise.
3607 (vpadalq_s32): Likewise.
3608 (vpadalq_u8): Likewise.
3609 (vpadalq_u16): Likewise.
3610 (vpadalq_u32): Likewise.
3611 (vpaddl_s8): Likewise.
3612 (vpaddl_s16): Likewise.
3613 (vpaddl_s32): Likewise.
3614 (vpaddl_u8): Likewise.
3615 (vpaddl_u16): Likewise.
3616 (vpaddl_u32): Likewise.
3617 (vpaddlq_s8): Likewise.
3618 (vpaddlq_s16): Likewise.
3619 (vpaddlq_s32): Likewise.
3620 (vpaddlq_u8): Likewise.
3621 (vpaddlq_u16): Likewise.
3622 (vpaddlq_u32): Likewise.
3623 (vpaddq_s8): Likewise.
3624 (vpaddq_s16): Likewise.
3625 (vpaddq_s32): Likewise.
3626 (vpaddq_s64): Likewise.
3627 (vpaddq_u8): Likewise.
3628 (vpaddq_u16): Likewise.
3629 (vpaddq_u32): Likewise.
3630 (vpaddq_u64): Likewise.
3631 (vqdmulh_n_s16): Likewise.
3632 (vqdmulh_n_s32): Likewise.
3633 (vqdmulhq_n_s16): Likewise.
3634 (vqdmulhq_n_s32): Likewise.
3635 (vqmovn_high_s16): Likewise.
3636 (vqmovn_high_s32): Likewise.
3637 (vqmovn_high_s64): Likewise.
3638 (vqmovn_high_u16): Likewise.
3639 (vqmovn_high_u32): Likewise.
3640 (vqmovn_high_u64): Likewise.
3641 (vqmovun_high_s16): Likewise.
3642 (vqmovun_high_s32): Likewise.
3643 (vqmovun_high_s64): Likewise.
3644 (vqrdmulh_n_s16): Likewise.
3645 (vqrdmulh_n_s32): Likewise.
3646 (vqrdmulhq_n_s16): Likewise.
3647 (vqrdmulhq_n_s32): Likewise.
3648 (vrsqrte_u32): Likewise.
3649 (vrsqrteq_u32): Likewise.
3650 (vtst_p8): Likewise.
3651 (vtst_p16): Likewise.
3652 (vtst_p64): Likewise.
3653 (vtstq_p8): Likewise.
3654 (vtstq_p16): Likewise.
3655 (vtstq_p64): Likewise.
3656 (vaddlv_s32): Likewise.
3657 (vaddlv_u32): Likewise.
3658 (vqtbl1_p8): Likewise.
3659 (vqtbl1_s8): Likewise.
3660 (vqtbl1_u8): Likewise.
3661 (vqtbl1q_p8): Likewise.
3662 (vqtbl1q_s8): Likewise.
3663 (vqtbl1q_u8): Likewise.
3664 (vqtbx1_s8): Likewise.
3665 (vqtbx1_u8): Likewise.
3666 (vqtbx1_p8): Likewise.
3667 (vqtbx1q_s8): Likewise.
3668 (vqtbx1q_u8): Likewise.
3669 (vqtbx1q_p8): Likewise.
3670 (vtbl1_s8): Likewise.
3671 (vtbl1_u8): Likewise.
3672 (vtbl1_p8): Likewise.
3673 (vtbl2_s8): Likewise.
3674 (vtbl2_u8): Likewise.
3675 (vtbl2_p8): Likewise.
3676 (vtbl3_s8): Likewise.
3677 (vtbl3_u8): Likewise.
3678 (vtbl3_p8): Likewise.
3679 (vtbl4_s8): Likewise.
3680 (vtbl4_u8): Likewise.
3681 (vtbl4_p8): Likewise.
3682 (vtbx2_s8): Likewise.
3683 (vtbx2_u8): Likewise.
3684 (vtbx2_p8): Likewise.
3685 (vld1_f32): Likewise.
3686 (vld1_f64): Likewise.
3687 (vld1_p8): Likewise.
3688 (vld1_p16): Likewise.
3689 (vld1_p64): Likewise.
3690 (vld1_s8): Likewise.
3691 (vld1_s16): Likewise.
3692 (vld1_s32): Likewise.
3693 (vld1_s64): Likewise.
3694 (vld1_u8): Likewise.
3695 (vld1_u16): Likewise.
3696 (vld1_u32): Likewise.
3697 (vld1_u64): Likewise.
3698 (vld1q_f32): Likewise.
3699 (vld1q_f64): Likewise.
3700 (vld1q_p8): Likewise.
3701 (vld1q_p16): Likewise.
3702 (vld1q_p64): Likewise.
3703 (vld1q_s8): Likewise.
3704 (vld1q_s16): Likewise.
3705 (vld1q_s32): Likewise.
3706 (vld1q_s64): Likewise.
3707 (vld1q_u8): Likewise.
3708 (vld1q_u16): Likewise.
3709 (vld1q_u32): Likewise.
3710 (vld1q_u64): Likewise.
3711 (vpmax_s8): Likewise.
3712 (vpmax_s16): Likewise.
3713 (vpmax_s32): Likewise.
3714 (vpmax_u8): Likewise.
3715 (vpmax_u16): Likewise.
3716 (vpmax_u32): Likewise.
3717 (vpmaxq_s8): Likewise.
3718 (vpmaxq_s16): Likewise.
3719 (vpmaxq_s32): Likewise.
3720 (vpmaxq_u8): Likewise.
3721 (vpmaxq_u16): Likewise.
3722 (vpmaxq_u32): Likewise.
3723 (vpmax_f32): Likewise.
3724 (vpmaxq_f32): Likewise.
3725 (vpmaxq_f64): Likewise.
3726 (vpmaxqd_f64): Likewise.
3727 (vpmaxs_f32): Likewise.
3728 (vpmaxnm_f32): Likewise.
3729 (vpmaxnmq_f32): Likewise.
3730 (vpmaxnmq_f64): Likewise.
3731 (vpmaxnmqd_f64): Likewise.
3732 (vpmaxnms_f32): Likewise.
3733 (vpmin_s8): Likewise.
3734 (vpmin_s16): Likewise.
3735 (vpmin_s32): Likewise.
3736 (vpmin_u8): Likewise.
3737 (vpmin_u16): Likewise.
3738 (vpmin_u32): Likewise.
3739 (vpminq_s8): Likewise.
3740 (vpminq_s16): Likewise.
3741 (vpminq_s32): Likewise.
3742 (vpminq_u8): Likewise.
3743 (vpminq_u16): Likewise.
3744 (vpminq_u32): Likewise.
3745 (vpmin_f32): Likewise.
3746 (vpminq_f32): Likewise.
3747 (vpminq_f64): Likewise.
3748 (vpminqd_f64): Likewise.
3749 (vpmins_f32): Likewise.
3750 (vpminnm_f32): Likewise.
3751 (vpminnmq_f32): Likewise.
3752 (vpminnmq_f64): Likewise.
3753 (vpminnmqd_f64): Likewise.
3754 (vpminnms_f32): Likewise.
3755 (vmla_f32): Likewise.
3756 (vmlaq_f32): Likewise.
3757 (vmlaq_f64): Likewise.
3758 (vmls_f32): Likewise.
3759 (vmlsq_f32): Likewise.
3760 (vmlsq_f64): Likewise.
3761 (vqtbl2_s8): Likewise.
3762 (vqtbl2_u8): Likewise.
3763 (vqtbl2_p8): Likewise.
3764 (vqtbl2q_s8): Likewise.
3765 (vqtbl2q_u8): Likewise.
3766 (vqtbl2q_p8): Likewise.
3767 (vqtbl3_s8): Likewise.
3768 (vqtbl3_u8): Likewise.
3769 (vqtbl3_p8): Likewise.
3770 (vqtbl3q_s8): Likewise.
3771 (vqtbl3q_u8): Likewise.
3772 (vqtbl3q_p8): Likewise.
3773 (vqtbl4_s8): Likewise.
3774 (vqtbl4_u8): Likewise.
3775 (vqtbl4_p8): Likewise.
3776 (vqtbl4q_s8): Likewise.
3777 (vqtbl4q_u8): Likewise.
3778 (vqtbl4q_p8): Likewise.
3779 (vqtbx2_s8): Likewise.
3780 (vqtbx2_u8): Likewise.
3781 (vqtbx2_p8): Likewise.
3782 (vqtbx2q_s8): Likewise.
3783 (vqtbx2q_u8): Likewise.
3784 (vqtbx2q_p8): Likewise.
3785 (vqtbx3_s8): Likewise.
3786 (vqtbx3_u8): Likewise.
3787 (vqtbx3_p8): Likewise.
3788 (vqtbx3q_s8): Likewise.
3789 (vqtbx3q_u8): Likewise.
3790 (vqtbx3q_p8): Likewise.
3791 (vqtbx4_s8): Likewise.
3792 (vqtbx4_u8): Likewise.
3793 (vqtbx4_p8): Likewise.
3794 (vqtbx4q_s8): Likewise.
3795 (vqtbx4q_u8): Likewise.
3796 (vqtbx4q_p8): Likewise.
3797 (vrev16_p8): Likewise.
3798 (vrev16_s8): Likewise.
3799 (vrev16_u8): Likewise.
3800 (vrev16q_p8): Likewise.
3801 (vrev16q_s8): Likewise.
3802 (vrev16q_u8): Likewise.
3803 (vrev32_p8): Likewise.
3804 (vrev32_p16): Likewise.
3805 (vrev32_s8): Likewise.
3806 (vrev32_s16): Likewise.
3807 (vrev32_u8): Likewise.
3808 (vrev32_u16): Likewise.
3809 (vrev32q_p8): Likewise.
3810 (vrev32q_p16): Likewise.
3811 (vrev32q_s8): Likewise.
3812 (vrev32q_s16): Likewise.
3813 (vrev32q_u8): Likewise.
3814 (vrev32q_u16): Likewise.
3815 (vrev64_f32): Likewise.
3816 (vrev64_p8): Likewise.
3817 (vrev64_p16): Likewise.
3818 (vrev64_s8): Likewise.
3819 (vrev64_s16): Likewise.
3820 (vrev64_s32): Likewise.
3821 (vrev64_u8): Likewise.
3822 (vrev64_u16): Likewise.
3823 (vrev64_u32): Likewise.
3824 (vrev64q_f32): Likewise.
3825 (vrev64q_p8): Likewise.
3826 (vrev64q_p16): Likewise.
3827 (vrev64q_s8): Likewise.
3828 (vrev64q_s16): Likewise.
3829 (vrev64q_s32): Likewise.
3830 (vrev64q_u8): Likewise.
3831 (vrev64q_u16): Likewise.
3832 (vrev64q_u32): Likewise.
3833 (vsha1cq_u32): Likewise.
3834 (vsha1mq_u32): Likewise.
3835 (vsha1pq_u32): Likewise.
3836 (vsha1h_u32): Likewise.
3837 (vsha1su0q_u32): Likewise.
3838 (vsha1su1q_u32): Likewise.
3839 (vsha256hq_u32): Likewise.
3840 (vsha256h2q_u32): Likewise.
3841 (vsha256su0q_u32): Likewise.
3842 (vsha256su1q_u32): Likewise.
3843 (vmull_p64): Likewise.
3844 (vmull_high_p64): Likewise.
3845 (vsqrt_f32): Likewise.
3846 (vsqrtq_f32): Likewise.
3847 (vsqrt_f64): Likewise.
3848 (vsqrtq_f64): Likewise.
3849 (vst1_f32): Likewise.
3850 (vst1_f64): Likewise.
3851 (vst1_p8): Likewise.
3852 (vst1_p16): Likewise.
3853 (vst1_p64): Likewise.
3854 (vst1_s8): Likewise.
3855 (vst1_s16): Likewise.
3856 (vst1_s32): Likewise.
3857 (vst1_s64): Likewise.
3858 (vst1_u8): Likewise.
3859 (vst1_u16): Likewise.
3860 (vst1_u32): Likewise.
3861 (vst1_u64): Likewise.
3862 (vst1q_f32): Likewise.
3863 (vst1q_f64): Likewise.
3864 (vst1q_p8): Likewise.
3865 (vst1q_p16): Likewise.
3866 (vst1q_p64): Likewise.
3867 (vst1q_s8): Likewise.
3868 (vst1q_s16): Likewise.
3869 (vst1q_s32): Likewise.
3870 (vst1q_s64): Likewise.
3871 (vst1q_u8): Likewise.
3872 (vst1q_u16): Likewise.
3873 (vst1q_u32): Likewise.
3874 (vst1q_u64): Likewise.
3875 (vst1_s64_x2): Likewise.
3876 (vst1_u64_x2): Likewise.
3877 (vst1_f64_x2): Likewise.
3878 (vst1_s8_x2): Likewise.
3879 (vst1_p8_x2): Likewise.
3880 (vst1_s16_x2): Likewise.
3881 (vst1_p16_x2): Likewise.
3882 (vst1_s32_x2): Likewise.
3883 (vst1_u8_x2): Likewise.
3884 (vst1_u16_x2): Likewise.
3885 (vst1_u32_x2): Likewise.
3886 (vst1_f16_x2): Likewise.
3887 (vst1_f32_x2): Likewise.
3888 (vst1_p64_x2): Likewise.
3889 (vst1q_s8_x2): Likewise.
3890 (vst1q_p8_x2): Likewise.
3891 (vst1q_s16_x2): Likewise.
3892 (vst1q_p16_x2): Likewise.
3893 (vst1q_s32_x2): Likewise.
3894 (vst1q_s64_x2): Likewise.
3895 (vst1q_u8_x2): Likewise.
3896 (vst1q_u16_x2): Likewise.
3897 (vst1q_u32_x2): Likewise.
3898 (vst1q_u64_x2): Likewise.
3899 (vst1q_f16_x2): Likewise.
3900 (vst1q_f32_x2): Likewise.
3901 (vst1q_f64_x2): Likewise.
3902 (vst1q_p64_x2): Likewise.
3903 (vst1_s64_x3): Likewise.
3904 (vst1_u64_x3): Likewise.
3905 (vst1_f64_x3): Likewise.
3906 (vst1_s8_x3): Likewise.
3907 (vst1_p8_x3): Likewise.
3908 (vst1_s16_x3): Likewise.
3909 (vst1_p16_x3): Likewise.
3910 (vst1_s32_x3): Likewise.
3911 (vst1_u8_x3): Likewise.
3912 (vst1_u16_x3): Likewise.
3913 (vst1_u32_x3): Likewise.
3914 (vst1_f16_x3): Likewise.
3915 (vst1_f32_x3): Likewise.
3916 (vst1_p64_x3): Likewise.
3917 (vst1q_s8_x3): Likewise.
3918 (vst1q_p8_x3): Likewise.
3919 (vst1q_s16_x3): Likewise.
3920 (vst1q_p16_x3): Likewise.
3921 (vst1q_s32_x3): Likewise.
3922 (vst1q_s64_x3): Likewise.
3923 (vst1q_u8_x3): Likewise.
3924 (vst1q_u16_x3): Likewise.
3925 (vst1q_u32_x3): Likewise.
3926 (vst1q_u64_x3): Likewise.
3927 (vst1q_f16_x3): Likewise.
3928 (vst1q_f32_x3): Likewise.
3929 (vst1q_f64_x3): Likewise.
3930 (vst1q_p64_x3): Likewise.
3931 (vst2_s64): Likewise.
3932 (vst2_u64): Likewise.
3933 (vst2_f64): Likewise.
3934 (vst2_s8): Likewise.
3935 (vst2_p8): Likewise.
3936 (vst2_s16): Likewise.
3937 (vst2_p16): Likewise.
3938 (vst2_s32): Likewise.
3939 (vst2_u8): Likewise.
3940 (vst2_u16): Likewise.
3941 (vst2_u32): Likewise.
3942 (vst2_f16): Likewise.
3943 (vst2_f32): Likewise.
3944 (vst2_p64): Likewise.
3945 (vst2q_s8): Likewise.
3946 (vst2q_p8): Likewise.
3947 (vst2q_s16): Likewise.
3948 (vst2q_p16): Likewise.
3949 (vst2q_s32): Likewise.
3950 (vst2q_s64): Likewise.
3951 (vst2q_u8): Likewise.
3952 (vst2q_u16): Likewise.
3953 (vst2q_u32): Likewise.
3954 (vst2q_u64): Likewise.
3955 (vst2q_f16): Likewise.
3956 (vst2q_f32): Likewise.
3957 (vst2q_f64): Likewise.
3958 (vst2q_p64): Likewise.
3959 (vst3_s64): Likewise.
3960 (vst3_u64): Likewise.
3961 (vst3_f64): Likewise.
3962 (vst3_s8): Likewise.
3963 (vst3_p8): Likewise.
3964 (vst3_s16): Likewise.
3965 (vst3_p16): Likewise.
3966 (vst3_s32): Likewise.
3967 (vst3_u8): Likewise.
3968 (vst3_u16): Likewise.
3969 (vst3_u32): Likewise.
3970 (vst3_f16): Likewise.
3971 (vst3_f32): Likewise.
3972 (vst3_p64): Likewise.
3973 (vst3q_s8): Likewise.
3974 (vst3q_p8): Likewise.
3975 (vst3q_s16): Likewise.
3976 (vst3q_p16): Likewise.
3977 (vst3q_s32): Likewise.
3978 (vst3q_s64): Likewise.
3979 (vst3q_u8): Likewise.
3980 (vst3q_u16): Likewise.
3981 (vst3q_u32): Likewise.
3982 (vst3q_u64): Likewise.
3983 (vst3q_f16): Likewise.
3984 (vst3q_f32): Likewise.
3985 (vst3q_f64): Likewise.
3986 (vst3q_p64): Likewise.
3987 (vst4_s64): Likewise.
3988 (vst4_u64): Likewise.
3989 (vst4_f64): Likewise.
3990 (vst4_s8): Likewise.
3991 (vst4_p8): Likewise.
3992 (vst4_s16): Likewise.
3993 (vst4_p16): Likewise.
3994 (vst4_s32): Likewise.
3995 (vst4_u8): Likewise.
3996 (vst4_u16): Likewise.
3997 (vst4_u32): Likewise.
3998 (vst4_f16): Likewise.
3999 (vst4_f32): Likewise.
4000 (vst4_p64): Likewise.
4001 (vst4q_s8): Likewise.
4002 (vst4q_p8): Likewise.
4003 (vst4q_s16): Likewise.
4004 (vst4q_p16): Likewise.
4005 (vst4q_s32): Likewise.
4006 (vst4q_s64): Likewise.
4007 (vst4q_u8): Likewise.
4008 (vst4q_u16): Likewise.
4009 (vst4q_u32): Likewise.
4010 (vst4q_u64): Likewise.
4011 (vst4q_f16): Likewise.
4012 (vst4q_f32): Likewise.
4013 (vst4q_f64): Likewise.
4014 (vst4q_p64): Likewise.
4015 (vtbx4_s8): Likewise.
4016 (vtbx4_u8): Likewise.
4017 (vtbx4_p8): Likewise.
4018 (vtrn_f32): Likewise.
4019 (vtrn_p8): Likewise.
4020 (vtrn_p16): Likewise.
4021 (vtrn_s8): Likewise.
4022 (vtrn_s16): Likewise.
4023 (vtrn_s32): Likewise.
4024 (vtrn_u8): Likewise.
4025 (vtrn_u16): Likewise.
4026 (vtrn_u32): Likewise.
4027 (vtrnq_f32): Likewise.
4028 (vtrnq_p8): Likewise.
4029 (vtrnq_p16): Likewise.
4030 (vtrnq_s8): Likewise.
4031 (vtrnq_s16): Likewise.
4032 (vtrnq_s32): Likewise.
4033 (vtrnq_u8): Likewise.
4034 (vtrnq_u16): Likewise.
4035 (vtrnq_u32): Likewise.
4036 (vrsqrte_f16): Likewise.
4037 (vrsqrteq_f16): Likewise.
4038 (vsqrt_f16): Likewise.
4039 (vsqrtq_f16): Likewise.
4040 (vabd_f16): Likewise.
4041 (vabdq_f16): Likewise.
4042 (vpadd_f16): Likewise.
4043 (vpaddq_f16): Likewise.
4044 (vpmax_f16): Likewise.
4045 (vpmaxq_f16): Likewise.
4046 (vpmaxnm_f16): Likewise.
4047 (vpmaxnmq_f16): Likewise.
4048 (vpmin_f16): Likewise.
4049 (vpminq_f16): Likewise.
4050 (vpminnm_f16): Likewise.
4051 (vpminnmq_f16): Likewise.
4052 (vrsqrts_f16): Likewise.
4053 (vrsqrtsq_f16): Likewise.
4054
4055 2019-09-25 Richard Biener <rguenther@suse.de>
4056
4057 PR tree-optimization/91896
4058 * tree-vect-loop.c (vectorizable_reduction): The single
4059 def-use cycle optimization cannot apply when there's more
4060 than one pattern stmt involved.
4061
4062 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4063
4064 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
4065 the 'P' mode iterator, replacing the (removed) SI and DI variants.
4066 (reload_macho_picbase_<mode>): Likewise.
4067
4068 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4069
4070 * config/rs6000/rs6000.md: Move darwin.md include until
4071 after the definition of the mode iterators.
4072
4073 2019-09-23 Martin Sebor <msebor@redhat.com>
4074
4075 PR tree-optimization/91570
4076 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
4077 non-constant minlen, maxlen and maxbound.
4078
4079 2019-09-24 Richard Biener <rguenther@suse.de>
4080
4081 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
4082 Rename to...
4083 (_stmt_vec_info::cond_reduc_code): ... this.
4084 (_stmt_vec_info::induc_cond_initial_val): Add.
4085 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
4086 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
4087 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
4088 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
4089 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
4090 the reduction code.
4091 (vect_create_epilog_for_reduction): Drop special
4092 induction condition reduction params, pass in reduction code
4093 and simplify.
4094 (vectorizable_reduction): Perform condition reduction kind
4095 selection only at analysis time. Adjust passing on state.
4096
4097 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4098
4099 * config/aarch64/aarch64.md (mov<mode>): Don't call
4100 aarch64_split_dimode_const_store on volatile MEM.
4101
4102 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
4103
4104 * config/aarch64/aarch64-option-extensions.def (fp16fml):
4105 Update hwcap string for fp16fml.
4106
4107 2019-09-24 Jakub Jelinek <jakub@redhat.com>
4108
4109 PR middle-end/91866
4110 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
4111 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
4112
4113 2019-09-24 Martin Liska <mliska@suse.cz>
4114
4115 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
4116 instead of if-elseif-elseif-...
4117 * gimple-expr.c (extract_ops_from_tree): Likewise.
4118 * gimple.c (get_gimple_rhs_num_ops): Likewise.
4119 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
4120
4121 2019-09-24 Martin Jambor <mjambor@suse.cz>
4122
4123 PR ipa/91831
4124 * ipa-param-manipulation.c (carry_over_param): Make a method of
4125 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
4126 in case of a context mismatch.
4127 (ipa_param_body_adjustments::common_initialization): Adjust call to
4128 carry_over_param.
4129 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
4130 private method carry_over_param.
4131
4132 2019-09-24 Martin Jambor <mjambor@suse.cz>
4133
4134 PR ipa/91832
4135 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
4136
4137 2019-09-24 Richard Biener <rguenther@suse.de>
4138
4139 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
4140 base.
4141
4142 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4143
4144 * config/arm/t-arm (arm-builtins.o): Add dependency on
4145 arm_acle_builtins.def.
4146
4147 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4148
4149 PR target/91823
4150 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4151 canonical CONST_INTs. Use gen_rtvec.
4152
4153 2019-09-23 Richard Biener <rguenther@suse.de>
4154
4155 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4156 avoid adjusting by + 0 or * 1.
4157 (vect_create_epilog_for_reduction): Get reduction code only
4158 when necessary. Deal with adjustment_def only when necessary.
4159
4160 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4161
4162 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4163 memmodel index.
4164
4165 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4166
4167 PR ipa/91835
4168 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4169 "ipa-sra".
4170
4171 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4172
4173 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4174 code. Merge code blocks with common conditionals. Use declared
4175 macro instead of a magic number for PIC level.
4176
4177 2019-09-21 Martin Sebor <msebor@redhat.com>
4178
4179 PR middle-end/91830
4180 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4181 Simplify computation of the offset of the referenced subobject.
4182
4183 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4184
4185 * config/darwin.c (machopic_legitimize_pic_address): Check
4186 for lra not reload.
4187
4188 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4189
4190 * ira-conflicts.c (can_use_same_reg_p): New function.
4191 (process_reg_shuffles): Take an insn parameter. Ignore cases
4192 in which input operand op_num could seemingly never be allocated
4193 to the same register as the destination.
4194 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4195
4196 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4197
4198 * simplify-rtx.c (neg_const_int): Replace with...
4199 (neg_poly_int_rtx): ...this new function.
4200 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4201 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4202 (simplify_plus_minus): Likewise for constant terms here.
4203
4204 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4205
4206 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4207 HOST_WIDE_PRINT_UNSIGNED.
4208
4209 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4210
4211 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4212 character.
4213
4214 2019-09-20 Maya Rashish <coypu@sdf.org>
4215
4216 PR target/86811
4217 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4218 Define to speculation_safe_value_not_needed.
4219
4220 2019-09-20 Richard Biener <rguenther@suse.de>
4221 Uros Bizjak <ubizjak@gmail.com>
4222
4223 PR target/91814
4224 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4225 previous change.
4226 (general_scalar_chain::convert_op): Force not suitable memory
4227 operands to a register.
4228
4229 2019-09-20 Richard Biener <rguenther@suse.de>
4230
4231 PR tree-optimization/91821
4232 * tree-vect-loop.c (check_reduction_path): Check we can compute
4233 reduc_idx.
4234 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4235 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4236 operands in canonical order.
4237 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4238 STMT_VINFO_REDUC_IDX.
4239 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4240 (STMT_VINFO_REDUC_IDX): Likewise.
4241
4242 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4243
4244 PR target/91269
4245 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4246
4247 2019-09-20 Richard Biener <rguenther@suse.de>
4248
4249 PR tree-optimization/91822
4250 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4251 parameter.
4252 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4253 for reduc_index in nested cycles, adjust vectorizable_condition
4254 calls.
4255 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4256 parameter.
4257 (vect_analyze_stmt): Adjust.
4258 (vect_transform_stmt): Likewise.
4259
4260 2019-09-20 Richard Biener <rguenther@suse.de>
4261
4262 PR target/91767
4263 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4264 Ensure there's a sequence point between allocating the new register
4265 and passing a reference to a reg via regno_reg_rtx.
4266
4267 2019-09-20 Martin Jambor <mjambor@suse.cz>
4268
4269 * coretypes.h (cgraph_edge): Declare.
4270 * ipa-param-manipulation.c: Rewrite.
4271 * ipa-param-manipulation.h: Likewise.
4272 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4273 (OBJS): Added ipa-sra.o.
4274 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4275 and ref_p, added fields param_adjustments and performed_splits.
4276 (struct cgraph_clone_info): Remove ags_to_skip and
4277 combined_args_to_skip, new field param_adjustments.
4278 (cgraph_node::create_clone): Changed parameters to use
4279 ipa_param_adjustments.
4280 (cgraph_node::create_virtual_clone): Likewise.
4281 (cgraph_node::create_virtual_clone_with_body): Likewise.
4282 (tree_function_versioning): Likewise.
4283 (cgraph_build_function_type_skip_args): Removed.
4284 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4285 using ipa_param_adjustments.
4286 (clone_of_p): Likewise.
4287 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4288 (build_function_decl_skip_args): Likewise.
4289 (duplicate_thunk_for_node): Adjust parameters using
4290 ipa_param_body_adjustments, copy param_adjustments instead of
4291 args_to_skip.
4292 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4293 (cgraph_node::create_virtual_clone): Likewise.
4294 (cgraph_node::create_version_clone_with_body): Likewise.
4295 (cgraph_materialize_clone): Likewise.
4296 (symbol_table::materialize_all_clones): Likewise.
4297 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4298 ipa_replace_map check.
4299 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4300 (initialize_node_lattices): Make aware that some parameters might have
4301 already been removed.
4302 (want_remove_some_param_p): New function.
4303 (create_specialized_node): Convert to using ipa_param_adjustments and
4304 deal with possibly pre-existing adjustments.
4305 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4306 (output_node_opt_summary): Do not stream removed fields. Stream
4307 parameter adjustments instead of argumetns to skip.
4308 (input_node_opt_summary): Likewise.
4309 (input_node_opt_summary): Likewise.
4310 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4311 * lto-streamer.h (lto_section_type): Likewise.
4312 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4313 param_body_adjs.
4314 (copy_decl_to_var): Declare.
4315 * tree-inline.c (update_clone_info): Do not remap old_tree.
4316 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4317 statements, walk all extra generated statements and remap their
4318 operands.
4319 (redirect_all_calls): Add killed SSA names to a hash set.
4320 (remap_ssa_name): Do not remap killed SSA names.
4321 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4322 half of functionality moved to ipa_param_body_adjustments.
4323 (copy_decl_to_var): Make exported.
4324 (copy_body): Destroy killed_new_ssa_names hash set.
4325 (expand_call_inline): Remap performed splits.
4326 (update_clone_info): Likewise.
4327 (tree_function_versioning): Simplify tree_map processing. Updated to
4328 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4329 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4330 for the new interface.
4331 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4332 (simd_clone_compute_base_data_type): Likewise.
4333 (simd_clone_init_simd_arrays): Adjust for the new interface.
4334 (simd_clone_adjust_argument_types): Likewise.
4335 (struct modify_stmt_info): Likewise.
4336 (ipa_simd_modify_stmt_ops): Likewise.
4337 (ipa_simd_modify_function_body): Likewise.
4338 (simd_clone_adjust): Likewise.
4339 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4340 (type_internals_preclude_sra_p): Make public.
4341 * tree-sra.h: New file.
4342 * ipa-inline-transform.c (save_inline_function_body): Update to
4343 refelct new tree_function_versioning signature.
4344 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4345 ipa_param_adjustments to get current parameter indices.
4346 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4347 (ipcp_update_bits): Likewise.
4348 (ipcp_update_vr): Likewise.
4349 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4350 * ipa-sra.c: New file.
4351 * multiple_target.c (create_target_clone): Update to reflet new type
4352 of create_version_clone_with_body.
4353 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4354 tree_function_versioning.
4355 (modify_function): Update to reflect new type of
4356 tree_function_versioning.
4357 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4358 * passes.def: Remove old IPA-SRA and add new one.
4359 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4360 (make_pass_ipa_sra): Declare.
4361 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4362 ipa_sra_retvalues.
4363 * doc/invoke.texi (ipa-sra-max-replacements): New.
4364
4365 2019-09-19 Martin Sebor <msebor@redhat.com>
4366
4367 PR middle-end/91631
4368 * builtins.c (component_size): Correct trailing array computation,
4369 rename to component_ref_size and move...
4370 (compute_objsize): Adjust.
4371 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4372 (builtin_access::strict): Do not consider memmove.
4373 (builtin_access::write_off): New function.
4374 (builtin_memref::builtin_memref): Initialize refsize.
4375 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4376 refsize.
4377 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4378 Handle refsize.
4379 (builtin_access::builtin_access): Initialize dstoff to destination
4380 refeence offset here instead of in maybe_diag_overlap. Adjust
4381 referencess even to unrelated objects. Adjust sizrange of bounded
4382 string functions to reflect bound. For strcat, adjust destination
4383 sizrange by that of source.
4384 (builtin_access::strcat_overlap): Adjust offsets and sizes
4385 to reflect the increase in destination sizrange above.
4386 (builtin_access::overlap): Do not set dstoff here but instead
4387 in builtin_access::builtin_access.
4388 (check_bounds_or_overlap): Use builtin_access::write_off.
4389 (maybe_diag_access_bounds): Add argument. Add informational notes.
4390 (dump_builtin_memref, dump_builtin_access): New functions.
4391 * tree.c (component_ref_size): ...to here.
4392 * tree.h (component_ref_size): Declare.
4393 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4394 nul in the size of the source string.
4395
4396 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4397
4398 PR c/67224
4399 * doc/cpp.texi: Document support for extended characters in
4400 identifiers.
4401 * doc/cppopts.texi: Likewise.
4402
4403 2019-09-19 Richard Biener <rguenther@suse.de>
4404
4405 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4406 (check_reduction_path): New overload having the path as result.
4407 (vect_is_simple_reduction): From the detected reduction
4408 path build a SLP reduction chain if possible.
4409
4410 2019-09-19 Richard Biener <rguenther@suse.de>
4411
4412 PR target/91814
4413 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4414 Force operand to a register if it isn't nonimmediate_operand.
4415
4416 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4417
4418 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4419 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4420 (logical_op): Remove code attribute.
4421 (logical_OP): Likewise.
4422
4423 2019-09-19 Martin Liska <mliska@suse.cz>
4424
4425 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4426 Use proper casting.
4427
4428 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4429
4430 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4431 registers with %R.
4432
4433 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4434 for NE comparison of TImode values.
4435 (aarch64_emit_load_exclusive): Add support for TImode.
4436 (aarch64_emit_store_exclusive): Likewise.
4437 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4438 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4439 Change iterator from ALLI to ALLI_TI.
4440 (@atomic_compare_and_swap<JUST_TI>): New.
4441 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4442 (aarch64_load_exclusive_pair): New.
4443 (aarch64_store_exclusive_pair): New.
4444 * config/aarch64/iterators.md (JUST_TI): New.
4445
4446 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4447 strong_zero_p for aarch64_track_speculation; unify some code paths;
4448 use aarch64_gen_compare_reg instead of open-coding.
4449
4450 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4451 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4452 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4453 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4454 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4455 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4456 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4457 (atomic_<atomic_op><ALLI>): Likewise.
4458 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4459 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4460 * doc/invoke.texi: Document -moutline-atomics.
4461
4462 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4463
4464 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4465 trivial predicate for condition branch.
4466 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4467 for switch case.
4468 (compute_bb_predicates): Update predicate based on post-dominating
4469 relationship.
4470 (analyze_function_body): Calculate post-dominating information.
4471
4472 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4473
4474 * tree-vectorizer.h (vectorizable_condition): Take an int
4475 reduction index instead of a boolean flag.
4476 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4477 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4478 reductions if the reduction accumulator is the "then" rather
4479 than the "else" value.
4480 (vect_analyze_stmt): Update call accordingly.
4481 (vect_transform_stmt): Likewise.
4482 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4483 asserting that the index is > 0.
4484
4485 2019-09-19 Martin Liska <mliska@suse.cz>
4486
4487 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4488 (sort_congruence_classes_by_decl_uid): Likewise.
4489 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4490 easier sorting.
4491 (sem_item_optimizer::merge_classes): Likewise.
4492
4493 2019-09-19 Richard Biener <rguenther@suse.de>
4494
4495 PR tree-optimization/91812
4496 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4497 volatile loads.
4498
4499 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4500
4501 * defaults.h (TARGET_UNIT): New macro.
4502 (target_unit): New type.
4503 * rtl.h (native_encode_rtx, native_decode_rtx)
4504 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4505 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4506 * rtlanal.c (subreg_lsb_1): Delete.
4507 (subreg_size_lsb): New function.
4508 * simplify-rtx.c: Include rtx-vector-builder.h
4509 (simplify_immed_subreg): Delete.
4510 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4511 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4512 functions.
4513 (simplify_subreg): Use them.
4514 (test_vector_subregs_modes, test_vector_subregs_repeating)
4515 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4516 (test_vector_subregs): New functions.
4517 (test_vector_ops): Call test_vector_subregs for integer vector
4518 modes with at least 2 elements.
4519
4520 2019-09-19 Richard Biener <rguenther@suse.de>
4521
4522 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4523 LOOP_VINFO_OPERANDS_SWAPPED.
4524 (parloops_is_simple_reduction): Likewise.
4525 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4526 initialize operands_swapped.
4527 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4528 (vect_is_slp_reduction): Do not swap operands.
4529 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4530 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4531
4532 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4533
4534 PR target/87007
4535 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4536 Add avx_partial_xmm_update.
4537
4538 2019-09-18 Jim Wilson <jimw@sifive.com>
4539
4540 PR target/91683
4541 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4542 (riscv_move_integer): Likewise.
4543 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4544 riscv_move_integer arg.
4545 (riscv_legitimize_move): Likewise.
4546 (riscv_force_temporary): New parameter in_splitter. Don't call
4547 force_reg if true.
4548 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4549 arg.
4550 (riscv_add_offset): Likewise.
4551 (riscv_split_symbol): New parameter in_splitter. Pass to
4552 riscv_force_temporary.
4553 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4554 arg.
4555 (riscv_move_integer): New parameter in_splitter. New local
4556 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4557 in_splitter TRUE.
4558 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4559 riscv_split_symbol, and riscv_force_temporary args.
4560 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4561 riscv_move_integer arg.
4562 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4563
4564 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4565
4566 PR target/90878
4567 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4568 hard register store cost to 6.
4569
4570 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4571
4572 PR target/91446
4573 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4574 pseudo register store cost from 3 to 6 to make it the same as
4575 QImode and HImode.
4576
4577 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4578
4579 PR target/91738
4580 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4581 (one_cmpldi2): Likewise.
4582 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4583 of the constant parts is simple.
4584 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4585 (logical_op): Add new code attribute.
4586 (logical_OP): Likewise.
4587 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4588 (arm_iordi_operand): Add predicate.
4589 (arm_xordi_operand): Add predicate.
4590
4591 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4592
4593 * config/arm/arm.md (maddsidi4): Remove expander.
4594 (mulsidi3adddi): Remove pattern.
4595 (mulsidi3adddi_v6): Likewise.
4596 (mulsidi3_nov6): Likewise.
4597 (mulsidi3_v6): Likewise.
4598 (umulsidi3): Remove expander.
4599 (umulsidi3_nov6): Remove pattern.
4600 (umulsidi3_v6): Likewise.
4601 (umulsidi3adddi): Likewise.
4602 (umulsidi3adddi_v6): Likewise.
4603 (<Us>mulsidi3): Add combined expander.
4604 (<Us>maddsidi4): Likewise.
4605 (<US>mull): Add combined umull and smull pattern.
4606 (<US>mlal): Likewise.
4607 * config/arm/iterators.md (Us): Add new iterator.
4608
4609 2019-09-18 Richard Biener <rguenther@suse.de>
4610
4611 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4612 swapping.
4613 (vectorize_fold_left_reduction): Remove assert.
4614 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4615 operand in position 2. Remove assert.
4616
4617 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4618
4619 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4620 (smulsi3_highpart_nov6): Remove pattern.
4621 (smulsi3_highpart_v6): Likewise.
4622 (umulsi3_highpart): Likewise.
4623 (umulsi3_highpart_nov6): Likewise.
4624 (umulsi3_highpart_v6): Likewise.
4625 (<US>mull_high): Add new combined multiply pattern.
4626
4627 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4628
4629 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4630 (arm_mulsi3_v6): Likewise.
4631 (mulsi3addsi_v6): Likewise.
4632 (mulsi3subsi): Likewise.
4633 (mul): Add new multiply pattern.
4634 (mla): Likewise.
4635 (mls): Likewise.
4636
4637 2019-09-18 Richard Biener <rguenther@suse.de>
4638
4639 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4640 (parloops_valid_reduction_input_p): Copy from
4641 valid_reduction_input_p.
4642 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4643 (parloops_needs_fold_left_reduction_p): Copy from
4644 needs_fold_left_reduction_p.
4645 (parloops_is_simple_reduction): Copy from
4646 vect_is_simple_reduction.
4647 (parloops_force_simple_reduction): Copy from
4648 vect_force_simple_reduction.
4649 (gather_scalar_reductions): Adjust.
4650 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4651 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4652
4653 2019-09-18 Richard Biener <rguenther@suse.de>
4654
4655 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4656 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4657 static.
4658 (vect_create_epilog_for_reduction): Remove dead code.
4659
4660 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4661
4662 * varasm.c (assemble_real): Generate canonical const_ints.
4663
4664 2019-09-18 Richard Biener <rguenther@suse.de>
4665
4666 PR lto/91763
4667 * lto-streamer-in.c (input_eh_regions): Move EH init to
4668 lto_materialize_function.
4669 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4670 Likewise.
4671
4672 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4673
4674 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4675 are INTEGER_CSTs.
4676
4677 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4678
4679 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4680 of checking specifically for INTEGER_CST.
4681
4682 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4683
4684 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4685 sizes instead of uhwi sizes.
4686
4687 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4688
4689 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4690 (add_const_value_attribute): Handle CONST_POLY_INT.
4691
4692 2019-09-18 Martin Liska <mliska@suse.cz>
4693
4694 * dbgcnt.def (store_merging): New counter.
4695 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4696 Use it in store merging.
4697
4698 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4699
4700 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4701 function.
4702 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4703 * config/arm/arm.c (arm_sched_variable_issue): New function.
4704 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4705
4706 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4707
4708 * config/arm/types.md (no_reservation): New reservation.
4709 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4710 no_insn here.
4711 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4712 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4713 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4714 * config/arm/arm1020e.md (1020alu_op): Likewise.
4715 * config/arm/arm1026ejs.md (alu_op): Likewise.
4716 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4717 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4718 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4719 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4720 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4721 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4722 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4723 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4724 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4725 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4726 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4727 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4728 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4729 * config/arm/fa526.md (526_alu_op): Likewise.
4730 * config/arm/fa606te.md (606te_alu_op): Likewise.
4731 * config/arm/fa626te.md (626te_alu_op): Likewise.
4732 * config/arm/fa726te.md (726te_alu_op): Likewise.
4733 * config/arm/xgene1.md (xgene1_nop): Likewise.
4734
4735 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4736
4737 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4738 "no_insn" to "branch".
4739
4740 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4741
4742 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4743
4744 2019-09-17 Richard Biener <rguenther@suse.de>
4745
4746 PR debug/91772
4747 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4748 was missing generate locations only once.
4749
4750 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4751
4752 PR ipa/91089
4753 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4754 option.
4755 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4756 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4757 for switch default case using range analysis information.
4758
4759 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4760
4761 PR target/91749
4762 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4763 mode attributed is supported by FDPIC.
4764
4765 2019-09-17 Richard Biener <rguenther@suse.de>
4766
4767 PR tree-optimization/91790
4768 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4769 use the correct DR for setting up realignment.
4770
4771 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4772
4773 PR target/91719
4774 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4775 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4776 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4777 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4778
4779 2019-09-16 Jason Merrill <jason@redhat.com>
4780
4781 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4782
4783 2019-09-16 Martin Liska <mliska@suse.cz>
4784
4785 * gimple-fold.c (or_comparisons_1): Remove rules moved
4786 to ...
4787 * match.pd: ... here.
4788
4789 2019-09-16 Martin Liska <mliska@suse.cz>
4790
4791 * gimple-fold.c (or_comparisons_1): Remove rules
4792 moved to ...
4793 * match.pd: ... here.
4794
4795 2019-09-16 Martin Liska <mliska@suse.cz>
4796
4797 * genmatch.c (dt_node::append_simplify): Do not print
4798 warning when we have duplicate patterns belonging
4799 to a same simplify rule.
4800 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4801 (maybe_fold_comparisons_from_match_pd): Handle
4802 tcc_comparison as a results.
4803 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4804
4805 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4806 Qi Feng <ffengqi@linux.ibm.com>
4807
4808 PR middle-end/88784
4809 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4810 (x > y && x == XXX_MIN): Optimize into 'false'.
4811 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4812 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4813 (x < y && x == XXX_MAX): Optimize into 'false'.
4814 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4815 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4816 (x <= y || x != XXX_MIN): Optimize into 'true'.
4817 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4818 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4819 (x >= y || x != XXX_MAX): Optimize into 'true'.
4820 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4821
4822 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4823 Martin Liska <mliska@suse.cz>
4824
4825 * gimple-fold.c (and_comparisons_1): Add type as first
4826 argument.
4827 (and_var_with_comparison): Likewise.
4828 (and_var_with_comparison_1): Likewise.
4829 (or_comparisons_1): Likewise.
4830 (or_var_with_comparison): Likewise.
4831 (or_var_with_comparison_1): Likewise.
4832 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4833 (maybe_fold_or_comparisons): Likewise.
4834 (maybe_fold_comparisons_from_match_pd): New.
4835 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4836 (maybe_fold_or_comparisons): Likewise.
4837 * gimple.c (gimple_size): Make it public and add num_ops argument.
4838 (gimple_init): New function.
4839 (gimple_alloc): Call gimple_init.
4840 * gimple.h (gimple_size): New.
4841 (gimple_init): Likewise.
4842 * tree-if-conv.c (fold_or_predicates): Pass type.
4843 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4844 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4845 (optimize_vec_cond_expr): Likewise.
4846 (ovce_extract_ops): Return type of conditional expression.
4847 * tree-ssanames.c (init_ssa_name_imm_use): New.
4848 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4849 * tree-ssanames.h (init_ssa_name_imm_use): New.
4850
4851 2019-09-16 Richard Biener <rguenther@suse.de>
4852
4853 PR tree-optimization/91756
4854 PR tree-optimization/87132
4855 * tree-ssa-alias.h (enum translate_flags): New.
4856 (get_continuation_for_phi): Use it instead of simple bool flag.
4857 (walk_non_aliased_vuses): Likewise.
4858 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4859 (get_continuation_for_phi): When looking across backedges only
4860 disallow valueization.
4861 (walk_non_aliased_vuses): Adjust.
4862 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4863 if requested.
4864
4865 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4866
4867 PR middle-end/80791
4868 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4869 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4870 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4871 * target.def (have_count_reg_decr_p): New hook.
4872 (doloop_cost_for_generic): Likewise.
4873 (doloop_cost_for_address): Likewise.
4874 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4875 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4876 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4877 * doc/tm.texi: Regenerate.
4878 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4879 addend.
4880 (record_group): Init doloop_p.
4881 (add_candidate_1): Add optional argument doloop, change the handlings
4882 accordingly.
4883 (add_candidate): Likewise.
4884 (generic_predict_doloop_p): Update attribute.
4885 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4886 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4887 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4888 MIN_EXPR.
4889 (get_computation_cost): Update for doloop IV cand extra cost.
4890 (determine_group_iv_cost_cond): Update for doloop IV cand.
4891 (determine_iv_cost): Likewise.
4892 (ivopts_estimate_reg_pressure): Likewise.
4893 (may_eliminate_iv): Update handlings for doloop IV cand.
4894 (add_iv_candidate_for_doloop): New function.
4895 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4896 (iv_ca_set_no_cp): Update for doloop IV cand.
4897 (iv_ca_set_cp): Likewise.
4898 (iv_ca_dump): Dump register cost.
4899 (find_doloop_use): New function.
4900 (analyze_and_mark_doloop_use): Likewise.
4901 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4902
4903 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4904
4905 PR middle-end/91708
4906 * cse.c (cse_insn): Do not replace anything with a
4907 MEM.
4908
4909 2019-09-13 Ian Lance Taylor <iant@golang.org>
4910
4911 * doc/invoke.texi (Optimize Options): Fix typo.
4912
4913 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4914
4915 PR tree-optimization/89386
4916 * config/i386/sse.md (smulhrs<mode>3): New expander.
4917 (smulhrsv4hi3): Ditto.
4918
4919 2019-09-12 Richard Biener <rguenther@suse.de>
4920
4921 PR tree-optimization/91750
4922 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4923 in the type of the evolution.
4924
4925 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4926
4927 PR tree-optimization/89386
4928 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4929 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4930 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4931 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4932 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4933 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4934 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4935 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4936 (su, r): Handle the unspecs above.
4937 (bt): New int attribute.
4938 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4939 * internal-fn.c (first_commutative_argument): Commutativity info for
4940 above.
4941 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4942 (umulhrs_optab): New optabs.
4943 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4944 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4945 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4946 function.
4947 (vect_vect_recog_func_ptrs): Add it.
4948
4949 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4950
4951 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4952 code.
4953
4954 2019-09-11 Nathan Sidwell <nathan@acm.org>
4955
4956 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4957 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4958
4959 2019-09-11 Richard Biener <rguenther@suse.de>
4960
4961 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4962 * lto-wrapper.c (merge_and_complain): Pick up -g.
4963 (append_compiler_options): Likewise.
4964 (run_gcc): Re-instantiate handling -g0 at link-time.
4965 * doc/invoke.texi (flto): Document debug info generation.
4966
4967 2019-09-11 Richard Biener <rguenther@suse.de>
4968
4969 PR tree-optimization/90387
4970 * vr-values.c (vr_values::extract_range_basic): After inlining
4971 simplify non-constant __builtin_constant_p to false.
4972
4973 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4974
4975 PR rtl-optimization/89795
4976 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4977 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4978
4979 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4980
4981 PR tree-optimization/91723
4982 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4983 instead of pointer equality when checking if argument vectypes are
4984 the same.
4985
4986 PR middle-end/91725
4987 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4988 of get_nonzero_bits, only call it for integral types.
4989
4990 2019-09-11 Richard Biener <rguenther@suse.de>
4991
4992 Revert
4993 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4994
4995 * match.pd: Add flag_unsafe_math_optimizations check
4996 before deciding on the widest type in a binary math operation.
4997
4998 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4999
5000 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
5001 and CALL_REALLY_USED_REGISTERS must be defined, and that
5002 CALL_REALLY_USED_REGISTERS is preferred.
5003 * doc/tm.texi: Regenerate.
5004 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
5005 (call_really_used_regs): Likewise.
5006 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
5007 CALL_REALLY_USED_REGISTERS are defined.
5008 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
5009 initial value if defined.
5010 (initial_call_really_used_regs): Delete.
5011 (saved_call_really_used_regs): Likewise.
5012 (CALL_REALLY_USED_REGNO_P): Likewise.
5013 (init_reg_sets): Remove handling of call_really_used_regs.
5014 (save_register_info, restore_register_info, globalize_reg): Likewise.
5015 (init_reg_sets_1): Likewise. Use call_used_regs instead of
5016 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
5017 outside operand_reg_set.
5018 (fix_register): Don't change call_used_regs if
5019 CALL_REALLY_USED_REGISTERS is defined.
5020 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
5021 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
5022 instead of call_really_used_regs.
5023 (csky_conditional_register_usage): Remove the old handling of
5024 call_used_regs and change the handling of call_really_used_regs
5025 to use call_used_regs instead.
5026 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
5027 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
5028 making a register fixed.
5029 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
5030 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
5031 instead of call_really_used_regs.
5032 (m32r_conditional_register_usage): Don't set call_used_regs when
5033 making a register fixed.
5034 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
5035 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
5036 instead of call_really_used_regs.
5037 (mips_interrupt_extra_call_saved_reg_p): Likewise.
5038 (mips_cfun_call_saved_reg_p): Likewise.
5039 (mips_swap_registers): Remove the old handling of call_used_regs
5040 and change the handling of call_really_used_regs to use call_used_regs
5041 instead.
5042 (mips_conditional_register_usage): Likewise.
5043 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
5044 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
5045 instead of call_really_used_regs.
5046 (mn10300_get_live_callee_saved_regs): Likewise.
5047 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
5048 (mn10300_conditional_register_usage): Don't set call_used_regs when
5049 making a register fixed.
5050 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
5051 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5052 Remove the old handling of call_used_regs and change the handling
5053 of call_really_used_regs to use call_used_regs instead.
5054 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
5055 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
5056 instead of call_really_used_regs.
5057 (s390_register_info_gprtofpr, s390_register_info): Likewise.
5058 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
5059 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
5060 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
5061 (s390_conditional_register_usage): Remove the old handling of
5062 call_used_regs and change the handling of call_really_used_regs
5063 to use call_used_regs instead.
5064 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
5065 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
5066 (sh_fix_range, reg_unused_after): Likewise.
5067 (sh_conditional_register_usage): Remove the old handling of
5068 call_used_regs and change the handling of call_really_used_regs
5069 to use call_used_regs instead.
5070 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
5071 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
5072 call_used_regs when making a register fixed.
5073 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
5074 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
5075 call_used_regs when making a register fixed.
5076 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
5077 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
5078 set call_used_regs when making a register fixed.
5079 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
5080 * config/visium/visium.c (visium_conditional_register_usage): Remove
5081 the old handling of call_used_regs and change the handling of
5082 call_really_used_regs to use call_used_regs instead.
5083
5084 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5085
5086 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
5087 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
5088 * reginfo.c (call_used_regs): New macro.
5089
5090 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5091
5092 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
5093 fixed_regs test.
5094 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5095 (bpf_expand_epilogue): Likewise.
5096 * config/c6x/c6x.c (c6x_save_reg): Likewise.
5097 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5098 (ft32_expand_epilogue): Likewise.
5099 * config/i386/i386.c (ix86_save_reg): Likewise.
5100 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
5101 (moxie_expand_epilogue): Likewise.
5102 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5103 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5104 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5105
5106 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5107
5108 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
5109 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
5110 instead of testing call_used_regs directly.
5111 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
5112 (aarch64_components_for_bb): Likewise.
5113 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
5114 * config/arc/arc.c (arc_must_save_register): Likewise.
5115 (arc_epilogue_uses): Likewise.
5116 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
5117 (legitimize_pic_address, callee_saved_reg_p): Likewise.
5118 (arm_compute_save_reg0_reg12_mask): Likewise.
5119 (arm_compute_save_core_reg_mask): Likewise.
5120 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
5121 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
5122 (cmse_nonsecure_entry_clear_before_return): Likewise.
5123 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
5124 (arm_expand_epilogue): Likewise.
5125 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
5126 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
5127 (_reg_unused_after): Likewise.
5128 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
5129 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
5130 (add_to_reg, hwloop_optimize): Likewise.
5131 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5132 (bpf_expand_epilogue): Likewise.
5133 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
5134 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5135 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
5136 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
5137 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
5138 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
5139 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
5140 * config/frv/frv.c (frv_stack_info): Likewise.
5141 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
5142 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
5143 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
5144 (move_callee_saved_registers): Likewise.
5145 * config/h8300/h8300.c (byte_reg): Likewise.
5146 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
5147 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
5148 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5149 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5150 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5151 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5152 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5153 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5154 * config/m32c/m32c.c (need_to_save): Likewise.
5155 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5156 * config/mcore/mcore.c (calc_live_regs): Likewise.
5157 * config/microblaze/microblaze.c (microblaze_must_save_register):
5158 Likewise.
5159 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5160 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5161 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5162 (mmix_expand_epilogue): Likewise.
5163 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5164 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5165 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5166 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5167 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5168 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5169 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5170 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5171 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5172 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5173 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5174 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5175 * config/rl78/rl78.c (need_to_save): Likewise.
5176 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5177 (rs6000_stack_info, generate_set_vrsave): Likewise.
5178 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5179 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5180 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5181 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5182 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5183 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5184 (save_local_or_in_reg_p): Likewise.
5185 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5186 (xstormy16_epilogue_uses): Likewise.
5187 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5188 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5189 * config/v850/v850.c (compute_register_save_size): Likewise.
5190 * config/vax/vax.c (vax_expand_prologue): Likewise.
5191 * config/visium/visium.c (visium_save_reg_p): Likewise.
5192 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5193 * cselib.c (cselib_process_insn): Likewise.
5194 * df-scan.c (df_get_entry_block_def_set): Likewise.
5195 * function.c (aggregate_value_p): Likewise.
5196 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5197 * ira-lives.c (process_bb_node_lives): Likewise.
5198 * ira.c (do_reload): Likewise.
5199 * lra-lives.c (process_bb_lives): Likewise.
5200 * lra-remat.c (lra_remat): Likewise.
5201 * lra.c (lra): Likewise.
5202 * postreload.c (reload_combine_recognize_pattern): Likewise.
5203 (reload_cse_move2add): Likewise.
5204 * recog.c (peep2_find_free_register): Likewise.
5205 * regrename.c (check_new_reg_p): Likewise.
5206 * reload.c (find_equiv_reg): Likewise.
5207 * reload1.c (reload, find_reg): Likewise.
5208 * sel-sched.c (init_hard_regs_data): Likewise.
5209
5210 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5211
5212 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5213 regs_invalidated_by_call & ~fixed_reg_set instead of
5214 call_used_or_fixed_regs & ~fixed_reg_set.
5215 * config/sh/sh.c (output_stack_adjust): Likewise.
5216
5217 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5218
5219 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5220 (call_used_reg_set): Delete.
5221 (call_used_or_fixed_regs): New macro.
5222 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5223 of call_used_reg_set.
5224 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5225 instead of call_used_regs.
5226 (save_call_clobbered_regs): Likewise.
5227 * cfgcleanup.c (old_insns_match_p): Likewise.
5228 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5229 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5230 Likewise.
5231 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5232 * config/sh/sh.c (output_stack_adjust): Likewise.
5233 * final.c (collect_fn_hard_reg_usage): Likewise.
5234 * ira-build.c (ira_build): Likewise.
5235 * ira-color.c (calculate_saved_nregs): Likewise.
5236 (allocno_reload_assign, calculate_spill_cost): Likewise.
5237 * ira-conflicts.c (ira_build_conflicts): Likewise.
5238 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5239 * ira-lives.c (process_bb_node_lives): Likewise.
5240 * ira.c (setup_reg_renumber): Likewise.
5241 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5242 * lra-constraints.c (need_for_call_save_p): Likewise.
5243 (need_for_split_p, inherit_in_ebb): Likewise.
5244 * lra-lives.c (process_bb_lives): Likewise.
5245 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5246 * postreload.c (reload_combine): Likewise.
5247 * regrename.c (find_rename_reg): Likewise.
5248 * reload1.c (reload_as_needed): Likewise.
5249 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5250 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5251 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5252
5253 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5254
5255 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5256 (no_caller_save_reg_set): Delete.
5257 * caller-save.c (init_caller_save): Don't initialize it.
5258 * ira-conflicts.c (ira_build_conflicts): Calculate
5259 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5260
5261 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5262
5263 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5264 (target_hard_regs::x_savable_regs): New field.
5265 (call_fixed_reg_set): Delete.
5266 (savable_regs): New macro,
5267 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5268 (init_reg_sets_1): Likewise. Initialize savable_regs.
5269 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5270 for all registers. Set savable_regs instead of call_fixed_reg_set.
5271 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5272 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5273 * config/sh/sh.c (output_stack_adjust): Likewise.
5274
5275 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5276
5277 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5278 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5279 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5280
5281 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5282
5283 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5284 * rtlanal.c (get_call_rtx_from): Likewise.
5285 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5286 than the pattern to get_call_rtx_from.
5287 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5288 an rtx_insn * instead of an rtx.
5289 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5290
5291 2019-09-10 Martin Liska <mliska@suse.cz>
5292
5293 * common.opt: Use newly added WarnRemoved.
5294 * config/aarch64/aarch64.opt: Likewise.
5295 * config/arm/arm.opt: Likewise.
5296 * config/i386/i386.opt: Likewise.
5297 * config/ia64/ia64.opt: Likewise.
5298 * config/rs6000/rs6000.opt: Likewise.
5299 * doc/options.texi: Document WarnRemoved properly.
5300 * dwarf2out.c (gen_producer_string): Handle renamed
5301 OPT_SPECIAL_warn_removed.
5302 * lto-opts.c (lto_write_options): Likewise.
5303 * lto-wrapper.c (merge_and_complain): Likewise.
5304 * opts-common.c (decode_cmdline_option): Likewise.
5305 (prune_options): Likewise.
5306 (read_cmdline_option): Likewise.
5307 (control_warning_option): Likewise.
5308 * opts.c (print_filtered_help): Likewise.
5309 * optc-gen.awk: Parse for WarnRemoved and make usage
5310 of Deprecated an error.
5311 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5312
5313 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5314
5315 * doc/install.texi: Fix syntax for html generation.
5316
5317 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5318
5319 PR middle-end/91680
5320 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5321 the shift type to type.
5322
5323 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5324
5325 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5326 FDPIC mode.
5327 (stack_protect_combined_test_insn): Likewise.
5328
5329 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5330 Mickaël Guêné <mickael.guene@st.com>
5331
5332 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5333 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5334 (load_tp_soft_fdpic): New pattern.
5335 (load_tp_soft): Disable in FDPIC mode.
5336
5337 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5338 Mickaël Guêné <mickael.guene@st.com>
5339
5340 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5341 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5342 (arm_call_tls_get_addr): Add FDPIC support.
5343 (legitimize_tls_address): Likewise.
5344 (arm_emit_tls_decoration): Likewise.
5345
5346 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5347 Mickaël Guêné <mickael.guene@st.com>
5348
5349 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5350 support.
5351 (arm_trampoline_init): Likewise.
5352 (arm_trampoline_adjust_address): Likewise.
5353 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5354
5355 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5356 Mickaël Guêné <mickael.guene@st.com>
5357
5358 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5359 (legitimize_pic_address): Enforce binding rules on function
5360 pointers in FDPIC mode.
5361 (arm_assemble_integer): Likewise.
5362
5363 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5364 Mickaël Guêné <mickael.guene@st.com>
5365
5366 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5367 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5368 FDPIC.
5369
5370 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5371 Mickaël Guêné <mickael.guene@st.com>
5372
5373 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5374 field.
5375
5376 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5377 Mickaël Guêné <mickael.guene@st.com>
5378
5379 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5380 in FDPIC mode.
5381 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5382 new function.
5383 * config/arm/arm.c (arm_option_override): Define pic register to
5384 FDPIC_REGNUM.
5385 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5386 have no decl or go through PLT.
5387 (calculate_pic_address_constant): New function.
5388 (legitimize_pic_address): Call calculate_pic_address_constant.
5389 (arm_load_pic_register): Handle TARGET_FDPIC.
5390 (arm_is_segment_info_known): New function.
5391 (arm_pic_static_addr): Add support for FDPIC.
5392 (arm_load_function_descriptor): New function.
5393 (arm_emit_call_insn): Add support for FDPIC.
5394 (arm_assemble_integer): Add support for FDPIC.
5395 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5396 Define. (FDPIC_REGNUM): New define.
5397 * config/arm/arm.md (call): Add support for FDPIC.
5398 (call_value): Likewise.
5399 (restore_pic_register_after_call): New pattern.
5400 (untyped_call): Disable if FDPIC.
5401 (untyped_return): Likewise.
5402 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5403
5404 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5405 Mickaël Guêné <mickael.guene@st.com>
5406
5407 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5408 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5409 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5410 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5411 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5412 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5413 * config/arm/uclinuxfdpiceabi.h: New file.
5414
5415 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5416
5417 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5418
5419 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5420 Mickaël Guêné <mickael.guene@st.com>
5421
5422 * config/arm/arm.opt: Add -mfdpic option.
5423 * doc/invoke.texi: Add documentation for -mfdpic.
5424
5425 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5426
5427 * expmed.c (extract_bit_field): Update function comment
5428 regarding alt_rtl.
5429 * expr.c (expand_expr_real): Update function comment
5430 regarding alt_rtl.
5431 (expand_misaligned_mem_ref): New helper function.
5432 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5433 Remove duplicate assignment to "base" at case MEM_REF.
5434 Remove a shadowed variable "unsignedp" at case VCE.
5435
5436 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5437
5438 * regset.h (regs_invalidated_by_call_regset): Delete.
5439 (fixed_reg_set_regset): Likewise.
5440 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5441 (fixed_reg_set_regset, persistent_obstack): Likewise.
5442 (init_reg_sets_1, globalize_reg): Update accordingly.
5443 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5444 instead of a bitmap.
5445 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5446 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5447 instead of regs_invalidated_by_call_regset.
5448 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5449 * df-scan.c (df_scan_start_dump): Likewise.
5450 * dse.c (copy_fixed_regs): Likewise.
5451 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5452
5453 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5454
5455 * array-traits.h: New file.
5456 * coretypes.h (array_traits, bitmap_view): New types.
5457 * bitmap.h: Include "array-traits.h"
5458 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5459 (base_bitmap_view, bitmap_view): New classes.
5460 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5461 * hard-reg-set.h: Include array-traits.h.
5462 (array_traits<HARD_REG_SET>): New struct.
5463 * regset.h (IOR_REG_SET_HRS): New macro.
5464 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5465 rather than iterating over each hard register.
5466 * sched-deps.c (sched_analyze_insn): Likewise.
5467 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5468
5469 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5470
5471 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5472 instead of a HARD_REG_SET *.
5473 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5474 (ira_build): Update call accordingly.
5475 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5476
5477 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5478
5479 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5480 (HARD_REG_SET::operator!=): Likewise.
5481 (hard_reg_set_equal_p): Delete.
5482 * cfgcleanup.c (old_insns_match_p): Use == instead of
5483 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5484 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5485 (add_allocno_hard_regs_to_forest): Likewise.
5486 (setup_allocno_available_regs_num): Likewise.
5487 * ira.c (setup_pressure_classes): Likewise.
5488 (setup_allocno_and_important_classes): Likewise.
5489 (setup_reg_class_relations): Likewise.
5490 * lra-lives.c (process_bb_lives): Likewise.
5491 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5492
5493 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5494
5495 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5496 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5497 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5498 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5499 Likewise.
5500 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5501 * ira.c (setup_reg_renumber): Likewise.
5502 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5503 * regrename.c (regrename_find_superclass): Likewise.
5504 * reload1.c (find_reg): Likewise.
5505
5506 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5507
5508 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5509 * caller-save.c (setup_save_areas): Use "&~" instead of
5510 AND_COMPL_HARD_REG_SET.
5511 (save_call_clobbered_regs): Likewise.
5512 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5513 Likewise.
5514 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5515 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5516 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5517 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5518 (mips_conditional_register_usage): Likewise.
5519 * config/sh/sh.c (output_stack_adjust): Likewise.
5520 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5521 (setup_profitable_hard_regs): Likewise.
5522 (get_conflict_and_start_profitable_regs): Likewise.
5523 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5524 (ira_build_conflicts): Likewise.
5525 * ira-costs.c (restrict_cost_classes): Likewise.
5526 (setup_regno_cost_classes_by_aclass): Likewise.
5527 * ira-lives.c (process_bb_node_lives): Likewise.
5528 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5529 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5530 (setup_allocno_and_important_classes, setup_class_translate_array)
5531 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5532 Likewise.
5533 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5534 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5535 (process_alt_operands, inherit_in_ebb): Likewise.
5536 * lra-eliminations.c (update_reg_eliminate): Likewise.
5537 * lra-lives.c (process_bb_lives): Likewise.
5538 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5539 * resource.c (find_dead_or_set_registers): Likewise.
5540 (mark_target_live_regs): Likewise.
5541 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5542 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5543 (implicit_clobber_conflict_p): Likewise.
5544 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5545 (try_shrink_wrapping): Likewise.
5546
5547 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5548
5549 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5550 (HARD_REG_SET::operator|=): Likewise.
5551 (IOR_HARD_REG_SET): Delete.
5552 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5553 IOR_HARD_REG_SET.
5554 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5555 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5556 * final.c (collect_fn_hard_reg_usage): Likewise.
5557 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5558 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5559 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5560 (propagate_some_info_from_allocno): Likewise.
5561 (copy_info_to_removed_store_destinations): Likewise.
5562 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5563 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5564 (fast_allocation): Likewise.
5565 * ira-conflicts.c (ira_build_conflicts): Likewise.
5566 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5567 (process_bb_node_lives): Likewise.
5568 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5569 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5570 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5571 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5572 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5573 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5574 (process_bb_lives): Likewise.
5575 * lra-spills.c (assign_spill_hard_regs): Likewise.
5576 * postreload.c (reload_combine): Likewise.
5577 * reginfo.c (init_reg_sets_1): Likewise.
5578 * regrename.c (merge_overlapping_regs, find_rename_reg)
5579 (merge_chains): Likewise.
5580 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5581 (find_reload_regs, finish_spills, choose_reload_regs_init)
5582 (emit_reload_insns): Likewise.
5583 * reorg.c (redundant_insn): Likewise.
5584 * resource.c (find_dead_or_set_registers, mark_set_resources)
5585 (mark_target_live_regs): Likewise.
5586 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5587 * sched-deps.c (sched_analyze_insn): Likewise.
5588 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5589 (find_best_reg_for_expr): Likewise.
5590 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5591
5592 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5593
5594 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5595 (HARD_REG_SET::operator&): Likewise.
5596 (AND_HARD_REG_SET): Delete.
5597 * caller-save.c (setup_save_areas): Use "&" instead of
5598 AND_HARD_REG_SET.
5599 (save_call_clobbered_regs): Likewise.
5600 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5601 * config/m32c/m32c.c (reduce_class): Likewise.
5602 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5603 * final.c (get_call_reg_set_usage): Likewise.
5604 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5605 (setup_left_conflict_sizes_p): Likewise.
5606 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5607 (ira_build_conflicts): Likewise.
5608 * ira-costs.c (restrict_cost_classes): Likewise.
5609 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5610 (setup_reg_class_relations): Likewise.
5611 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5612 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5613 * resource.c (find_dead_or_set_registers): Likewise.
5614 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5615
5616 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5617
5618 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5619 (COMPL_HARD_REG_SET): Delete.
5620 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5621 of COMPL_HARD_REG_SET.
5622 (try_rename_operands): Likewise.
5623 * config/sh/sh.c (push_regs): Likewise.
5624 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5625 * lra-constraints.c (contains_reg_p): Likewise.
5626 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5627
5628 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5629
5630 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5631 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5632 of COPY_HARD_REG_SET.
5633 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5634 (epiphany_conditional_register_usage): Likewise.
5635 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5636 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5637 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5638 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5639 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5640 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5641 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5642 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5643 * config/sh/sh.c (output_stack_adjust): Likewise.
5644 * final.c (collect_fn_hard_reg_usage): Likewise.
5645 (get_call_reg_set_usage): Likewise.
5646 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5647 (ira_flattening): Likewise.
5648 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5649 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5650 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5651 (ira_reassign_pseudos): Likewise.
5652 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5653 (ira_build_conflicts): Likewise.
5654 * ira-costs.c (restrict_cost_classes): Likewise.
5655 (setup_regno_cost_classes_by_aclass): Likewise.
5656 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5657 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5658 (setup_stack_reg_pressure_class, setup_pressure_classes)
5659 (setup_allocno_and_important_classes, setup_class_translate_array)
5660 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5661 (ira_setup_eliminable_regset): Likewise.
5662 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5663 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5664 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5665 (process_alt_operands, inherit_in_ebb): Likewise.
5666 * lra-lives.c (process_bb_lives): Likewise.
5667 * lra-spills.c (assign_spill_hard_regs): Likewise.
5668 * lra.c (lra): Likewise.
5669 * mode-switching.c (new_seginfo): Likewise.
5670 * postreload.c (reload_combine): Likewise.
5671 * reg-stack.c (straighten_stack): Likewise.
5672 * reginfo.c (save_register_info, restore_register_info): Likewise.
5673 (init_reg_sets_1, record_subregs_of_mode): Likewise
5674 * regrename.c (create_new_chain, rename_chains): Likewise.
5675 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5676 (find_reload_regs): Likewise.
5677 * resource.c (find_dead_or_set_registers): Likewise.
5678 (mark_target_live_regs): Likewise.
5679 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5680
5681 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5682
5683 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5684 (note_pattern_stores): Declare.
5685 (note_stores): Take an rtx_insn *.
5686 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5687 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5688 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5689 (note_stores): Take an rtx_insn * as argument and process
5690 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5691 (note_pattern_stores): ...this.
5692 (find_first_parameter_load): Pass the insn rather than
5693 its pattern to note_stores.
5694 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5695 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5696 (insert_one_insn): Likewise.
5697 * combine.c (combine_instructions): Likewise.
5698 (likely_spilled_retval_p): Likewise.
5699 (try_combine): Use note_pattern_stores instead of note_stores.
5700 (record_dead_and_set_regs): Pass the insn rather than its pattern
5701 to note_stores.
5702 (reg_dead_at_p): Likewise.
5703 * config/bfin/bfin.c (workaround_speculation): Likewise.
5704 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5705 rather than an rtx.
5706 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5707 instead of note_stores.
5708 (frv_optimize_membar_local): Pass the insn rather than its pattern
5709 to note_stores.
5710 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5711 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5712 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5713 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5714 (mips_reorg_process_insns): Likewise.
5715 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5716 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5717 rather than rtxes.
5718 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5719 its pattern to note_stores.
5720 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5721 of note_stores.
5722 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5723 the insn to note_stores.
5724 (prescan_insns_for_dce): Update call accordingly.
5725 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5726 to note_stores.
5727 * df-problems.c (can_move_insns_across): Likewise.
5728 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5729 * function.c (assign_parm_setup_reg): Likewise.
5730 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5731 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5732 (single_set_gcse): Likewise.
5733 * ira.c (validate_equiv_mem): Likewise.
5734 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5735 for no_equiv.
5736 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5737 pattern to note_stores.
5738 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5739 * loop-iv.c (simplify_using_initial_values): Likewise.
5740 * mode-switching.c (optimize_mode_switching): Likewise.
5741 * optabs.c (emit_libcall_block_1): Likewise.
5742 (expand_atomic_compare_and_swap): Likewise.
5743 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5744 (record_opr_changes): Likewise. Remove explicit handling of
5745 CALL_INSN_FUNCTION_USAGE.
5746 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5747 * regcprop.c (kill_clobbered_values): Likewise.
5748 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5749 to note_stores.
5750 * regrename.c (build_def_use): Likewise.
5751 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5752 for mark_not_eliminable.
5753 (reload_as_needed): Pass the insn rather than its pattern
5754 to note_stores.
5755 (emit_output_reload_insns): Likewise.
5756 * resource.c (mark_target_live_regs): Likewise.
5757 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5758 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5759 instead of note_stores.
5760 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5761 its pattern to note_stores.
5762 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5763 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5764
5765 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5766
5767 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5768 than a #define. Use a structure rather than an array as the
5769 fallback definition. Remove special cases for low array sizes.
5770 (const_hard_reg_set): New typedef.
5771 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5772 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5773 (hard_reg_set_empty_p): Likewise.
5774 (SET_HARD_REG_BIT): Use a function rather than a macro to
5775 handle the case in which HARD_REG_SET is a structure.
5776 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5777 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5778 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5779 (IOR_COMPL_HARD_REG_SET): Likewise.
5780 (hard_reg_set_iterator::pset): Constify the pointer target.
5781 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5782 of a "const HARD_REG_SET". Update the handling of non-integer
5783 HARD_REG_SETs.
5784 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5785 * reload.h: Likewise.
5786 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5787 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5788 of a "const HARD_REG_SET".
5789 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5790 (range_in_hard_reg_set_p): Likewise.
5791 * ira-costs.c (restrict_cost_classes): Likewise.
5792 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5793 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5794 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5795 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5796 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5797 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5798 take an unsigned int and open-code the HARD_REG_SET operations.
5799
5800 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5801
5802 * Makefile.in (OBJS): Remove bt-load.o.
5803 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5804 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5805 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5806 document that the option no longer does anything.
5807 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5808 * target.def (branch_target_register_class): Delete.
5809 (branch_target_register_callee_saved): Likewise.
5810 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5811 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5812 * doc/tm.texi: Regenerate.
5813 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5814 (make_pass_branch_target_load_optimize2): Likewise.
5815 * passes.def (pass_branch_target_load_optimize1): Likewise.
5816 (pass_branch_target_load_optimize2): Likewise.
5817 * targhooks.h (default_branch_target_register_class): Likewise.
5818 * targhooks.c (default_branch_target_register_class): Likewise.
5819 * opt-suggestions.c (test_completion_valid_options): Remove
5820 -fbtr-bb-exclusive from the list of test options.
5821 * bt-load.c: Remove.
5822
5823 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5824
5825 * match.pd: Add flag_unsafe_math_optimizations check
5826 before deciding on the widest type in a binary math operation.
5827
5828 2019-09-09 Martin Liska <mliska@suse.cz>
5829
5830 * config/i386/i386.opt: Update comment of removed
5831 options that are preserved only for backward
5832 compatibility.
5833
5834 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5835
5836 PR target/87853
5837 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5838 instead of __v16qs.
5839
5840 PR target/91704
5841 * config/i386/avxintrin.h (__v32qs): New typedef.
5842 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5843 instead of __v32qi.
5844
5845 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5846
5847 * doc/invoke.texi (Option Summary): Cover eBPF.
5848 (eBPF Options): New section.
5849 * doc/extend.texi (BPF Built-in Functions): Likewise.
5850 (BPF Kernel Helpers): Likewise.
5851
5852 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5853
5854 * config.gcc: Support for bpf-*-* targets.
5855 * common/config/bpf/bpf-common.c: New file.
5856 * config/bpf/t-bpf: Likewise.
5857 * config/bpf/predicates.md: Likewise.
5858 * config/bpf/constraints.md: Likewise.
5859 * config/bpf/bpf.opt: Likewise.
5860 * config/bpf/bpf.md: Likewise.
5861 * config/bpf/bpf.h: Likewise.
5862 * config/bpf/bpf.c: Likewise.
5863 * config/bpf/bpf-protos.h: Likewise.
5864 * config/bpf/bpf-opts.h: Likewise.
5865 * config/bpf/bpf-helpers.h: Likewise.
5866 * config/bpf/bpf-helpers.def: Likewise.
5867
5868 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5869
5870 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5871 indirect_calls.
5872
5873 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5874
5875 * opt-functions.awk (integer_range_info): Make sure values are in
5876 numeric context before operating with them.
5877
5878 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5879
5880 * genemit.c (gen_split): Print the filename and line number where the
5881 splitter (or peephole2) was defined, to the dump file.
5882
5883 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5884
5885 PR tree-optimization/91665
5886 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5887 incompatible with the type of PHI result.
5888
5889 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5890
5891 PR target/91684
5892 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5893 gen_unaligned_storedi for 4-byte aligned addresses.
5894
5895 2019-09-06 Jim Wilson <jimw@sifive.com>
5896
5897 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5898 change.
5899
5900 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5901
5902 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5903
5904 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5905
5906 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5907 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5908
5909 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5910
5911 PR target/91654
5912 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5913 cost of SSE->integer and integer->SSE moves from 2 to 6.
5914 (core_cost): Ditto.
5915
5916 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5917
5918 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5919 before testing TYPE_TRANSPARENT_AGGR.
5920 * calls.c (initialize_argument_information, load_register_parameters):
5921 Likewise.
5922
5923 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5924
5925 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5926 high regs.
5927 (cmp_ior): Likewise.
5928
5929 2019-09-06 Martin Liska <mliska@suse.cz>
5930
5931 * doc/match-and-simplify.texi: Separate tuples with ;.
5932
5933 2019-09-06 Martin Liska <mliska@suse.cz>
5934
5935 PR c++/91125
5936 * Makefile.in: Remove tlink.o.
5937 * collect2.c (do_link): New function isolated
5938 from do_tlink.
5939 (main): Use.
5940 * collect2.h (do_tlink): Remove declaration of do_tlink.
5941 * doc/extend.texi: Remove documentation of -frepo.
5942 * doc/invoke.texi: Likewise.
5943 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5944 * tlink.c: Remove.
5945
5946 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5947 Jim Wilson <jimw@sifive.com>
5948
5949 PR target/91635
5950 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5951 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5952 paradoxical_subreg_p (operands[0]).
5953 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5954 use as intermediate value.
5955
5956 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5957
5958 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5959 (sync_compare_and_swap<mode>_insn): Likewise.
5960
5961 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5962
5963 PR middle-end/91615
5964 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5965 without movmisalign optab.
5966
5967 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5968
5969 PR middle-end/91001
5970 PR middle-end/91105
5971 PR middle-end/91106
5972 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5973 types, use type of their first field instead of type of
5974 args[i].tree_value.
5975
5976 2019-09-05 Richard Biener <rguenther@suse.de>
5977
5978 PR rtl-optimization/91656
5979 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5980 of early out.
5981
5982 2019-09-05 Richard Biener <rguenther@suse.de>
5983
5984 PR middle-end/90501
5985 * tree-inline.c (declare_return_variable): Mark the return
5986 slot as addressable after building an address of it.
5987
5988 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5989
5990 * doc/install.texi: Update and clarify requirements to build GNAT.
5991
5992 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5993
5994 PR middle-end/91577
5995 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5996 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5997 call to be in memory.
5998 (pass_expand::execute): Call discover_nonconstant_array_refs before
5999 setting currently_expanding_to_rtl.
6000
6001 2019-09-04 Caroline Tice <cmtice@google.com>
6002
6003 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
6004 specified together.
6005
6006 2019-09-04 Marek Polacek <polacek@redhat.com>
6007
6008 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
6009
6010 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
6011
6012 PR target/32413
6013 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6014 for QI and HImode moves between SSE and general registers.
6015
6016 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6017
6018 PR c/78736
6019 * doc/invoke.texi: Document -Wenum-conversion.
6020
6021 2019-09-04 Richard Biener <rguenther@suse.de>
6022
6023 PR rtl-optimization/36262
6024 * postreload-gcse.c: Include intl.h and gcse.h.
6025 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
6026 to avoid linear list walk.
6027 (record_last_mem_set_info): Gate off if not computing transparentness.
6028 (get_bb_avail_insn): If transparentness isn't computed give up
6029 early.
6030 (gcse_after_reload_main): Skip compute_transp and extended PRE
6031 if gcse_or_cprop_is_too_expensive says so.
6032
6033 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6034
6035 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
6036 noinit section.
6037 (msp430_select_section): Handle decls with the "noinit" attribute with
6038 default_elf_select_section.
6039 Handle SECCAT_RODATA_MERGE_* section types with
6040 default_elf_select_section.
6041 Add comments about handling of unsupported section types.
6042 (msp430_section_type_flags): Remove handling of the noinit section.
6043
6044 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6045
6046 * config/msp430/msp430.c (msp430_attr): Remove warnings about
6047 conflicting msp430-specific attributes.
6048 (msp430_section_attr): Likewise.
6049 Add warnings about conflicts with generic "noinit" and "section"
6050 attributes.
6051 Fix grammar in -mlarge error message.
6052 (msp430_data_attr): Rename to msp430_persist_attr.
6053 Add warnings about conflicts with generic "noinit" and "section"
6054 attributes.
6055 Add warning for when variable is not initialized.
6056 Chain conditionals which prevent the attribute being added.
6057 (ATTR_EXCL): New helper.
6058 (attr_reent_exclusions): New exclusion table.
6059 (attr_naked_exclusions): Likewise.
6060 (attr_crit_exclusions): Likewise.
6061 (attr_lower_exclusions): Likewise.
6062 (attr_upper_exclusions): Likewise.
6063 (attr_either_exclusions): Likewise.
6064 (attr_persist_exclusions): Likewise.
6065 (msp430_attribute_table): Update with exclusion rules.
6066 (msp430_output_aligned_decl_common): Don't output common symbol if decl
6067 has a section.
6068
6069 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6070
6071 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
6072 (msp430_handle_generic_attribute): New function.
6073 * doc/tm.texi: Regenerate.
6074 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
6075 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6076 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6077 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
6078
6079 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
6080
6081 PR tree-optimization/91504
6082 * match.pd: Add ((~a & b) ^a) --> (a | b).
6083
6084 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6085
6086 PR target/91604
6087 * config/i386/i386-expand.c (split_double_mode): If there is more than
6088 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
6089 already split matching MEM operand instead of calling adjust_address
6090 again.
6091
6092 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
6093
6094 * config.gcc: Obsolete spu target. Remove references to spu.
6095 * configure.ac: Remove references to spu.
6096 * configure: Regenerate.
6097 * config/spu/: Remove directory.
6098 * common/config/spu/: Remove directory.
6099
6100 * doc/extend.texi: Remove references to spu.
6101 * doc/invoke.texi: Likewise.
6102 * doc/md.texi: Likewise.
6103 * doc/sourcebuild.texi: Likewise.
6104
6105 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6106
6107 PR middle-end/91603
6108 PR middle-end/91612
6109 PR middle-end/91613
6110 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
6111 and SSA_NAME referring to CONSTANT_P correctly.
6112
6113 2019-09-03 Richard Biener <rguenther@suse.de>
6114
6115 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
6116 (vn_nary_op_insert): Likewise.
6117 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
6118 (vn_nary_op_lookup): Likewise.
6119 (vn_nary_op_insert): Likewise.
6120
6121 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
6122
6123 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
6124 (*op0, 1) instead of XEXP (*op1, 0).
6125
6126 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6127
6128 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
6129 (aarch64_fjcvtzs): New define_insn.
6130 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
6131 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
6132 Add AARCH64_JSCVT.
6133 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
6134 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
6135 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6136 __ARM_FEATURE_JCVT where appropriate.
6137 * config/aarch64/arm_acle.h (__jcvt): Define.
6138
6139 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6140
6141 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
6142 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
6143 (aarch64_<frintnzs_op><mode>): New define_insn.
6144 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
6145 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6146 __ARM_FEATURE_FRINT when appropriate.
6147 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
6148 frint32x, frint64z, frint64x.
6149 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6150 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6151 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6152 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6153 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6154 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6155 * config/aarch64/iterators.md (VSFDF): Define.
6156 (FRINTNZX): Likewise.
6157 (frintnzs_op): Likewise.
6158
6159 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6160
6161 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6162 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6163 Cortex-A34.
6164 * config/aarch64/aarch64-tune.md: Regenerated.
6165 * doc/invoke.texi: Document the new processors.
6166
6167 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6168
6169 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6170 string.
6171 (ssbs): Likewise.
6172 (sve2): Likewise.
6173 (sve2-sm4): Likewise.
6174 (sveaes): Likewise.
6175 (svesha3): Likewise.
6176 (svebitperm): Likewise.
6177
6178 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6179 Richard Biener <rguenther@suse.de>
6180
6181 PR tree-optimization/91597
6182 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6183 BIT_AND_EXPR optimization for pointers, even if both operand
6184 ranges don't include NULL, the result can be NULL.
6185
6186 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6187
6188 PR middle-end/91605
6189 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6190 (non_mem_decl_p): ...this.
6191 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6192 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6193 unconditionally as before.
6194
6195 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6196
6197 PR target/91323
6198 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6199 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6200 * tree.def (LTGT_EXPR): Likewise.
6201 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6202
6203 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR go/91617
6206 * fold-const.c (range_check_type): For enumeral and boolean
6207 type, pass 1 to type_for_size langhook instead of
6208 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6209 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6210 (build_range_check): Don't call unsigned_type_for for pointer types.
6211 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6212 range_check_type result.
6213
6214 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6215
6216 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6217 (replace_ref): Do not replace a chain of only two candidates which are
6218 valid memory references.
6219
6220 2019-09-02 Martin Liska <mliska@suse.cz>
6221
6222 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6223 Bail out when we'll end up with the same number of clusters as
6224 at the beginning.
6225 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6226 (jump_table_cluster::can_be_handled): Remove the guard
6227 as it's already handled in ::is_enabled. Allocate output
6228 after early bail out.
6229
6230 2019-09-02 Martin Liska <mliska@suse.cz>
6231
6232 PR gcov-profile/91601
6233 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6234 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6235 also negative edges.
6236 (circuit): Handle also negative edges as they can happen
6237 in some situations.
6238
6239 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6240
6241 PR target/91472
6242 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6243 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6244 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6245
6246 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6247
6248 PR middle-end/91623
6249 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6250 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6251 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6252 zero vector.
6253
6254 PR lto/91572
6255 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6256 GIMPLE_ASM TREE_LIST operands.
6257
6258 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6259
6260 * doc/generic.texi (Unary and Binary Expressions): Mark up
6261 an instance of TYPE_MIN.
6262
6263 2019-08-31 Stafford Horne <shorne@gmail.com>
6264
6265 * config/or1k/constraints.md (t): New constraint.
6266 * config/or1k/or1k.h (GOT_REGS): New register class.
6267 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6268
6269 2019-08-30 Jim Wilson <jimw@sifive.com>
6270
6271 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6272 and -fpic and -mplt then disable -msave-restore and warn.
6273
6274 2019-08-30 Martin Sebor <msebor@redhat.com>
6275
6276 PR middle-end/91599
6277 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6278 the statement doesn't have one.
6279 * gimple-pretty-print.c (percent_G_format): Same.
6280
6281 PR middle-end/91584
6282 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6283 before using them to validate MEM_REF offset.
6284
6285 2019-08-30 Marek Polacek <polacek@redhat.com>
6286
6287 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6288
6289 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6290
6291 * config/arm/arm.md (unaligned_loaddi,
6292 unaligned_storedi): New unspec insn patterns.
6293 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6294 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6295 and unaligned_storedi for 4-byte aligned memory.
6296 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6297 4-byte aligned memory.
6298
6299 2019-08-30 Martin Jambor <mjambor@suse.cz>
6300
6301 tree-optimization/91579
6302 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6303 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6304 appropriate.
6305 (arg_needs_copy_p): Removed.
6306 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6307 arg_needs_copy_p.
6308 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6309
6310 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6311
6312 * config/i386/i386-features.c
6313 (general_scalar_chain::compute_convert_gain):
6314 Correct cost for double-word shifts.
6315 (general_scalar_to_vector_candidate_p): Reject count operands
6316 greater or equal to mode bitsize.
6317
6318 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6319
6320 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6321 for moves between SSE and non-general registers and between
6322 mask and non-general registers.
6323 (ix86_register_move_cost): Remove stalled comment.
6324
6325 2019-08-29 Richard Biener <rguenther@suse.de>
6326
6327 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6328 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6329
6330 2019-08-29 Richard Biener <rguenther@suse.de>
6331
6332 PR bootstrap/91580
6333 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6334 Do not emit scalar copies for debug-insns, instead replace
6335 their uses with the reg copy used in the chain or reset them
6336 if there is a reaching definition outside of the chain as well.
6337
6338 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6339
6340 PR target/91560
6341 * config/i386/i386-expand.c (expand_vec_perm_movs,
6342 expand_vec_perm_blend, expand_vec_perm_vpermil,
6343 expand_vec_perm_pshufb, expand_vec_perm_1,
6344 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6345 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6346 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6347 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6348 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6349 comments - replace ix86_expand_vec_perm_builtin_1 with
6350 ix86_expand_vec_perm_const_1.
6351 (expand_vec_perm2_vperm2f128_vblend): New function.
6352 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6353 expand_vec_perm2_vperm2f128_vblend as last resort.
6354 (canonicalize_perm): Formatting fix.
6355
6356 PR tree-optimization/91351
6357 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6358 unsigned_type_for.
6359 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6360 range_check_type returns NULL.
6361 * tree-switch-conversion.c (switch_conversion::build_one_array):
6362 Use range_check_type instead of unsigned_type_for, don't perform
6363 linear opt if it returns NULL.
6364 (bit_test_cluster::find_bit_tests): Formatting fix.
6365 (bit_test_cluster::emit): Use range_check_type instead of
6366 unsigned_type_for.
6367 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6368 returns NULL.
6369
6370 2019-08-29 Richard Biener <rguenther@suse.de>
6371
6372 PR tree-optimization/91568
6373 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6374 (vect_update_max_nunits): Add overload for poly_uint64.
6375 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6376 (vect_build_slp_tree): Record max_nunits into the subtree
6377 and merge it upwards.
6378 (vect_print_slp_tree): Print max_nunits.
6379
6380 2019-08-28 Marek Polacek <polacek@redhat.com>
6381
6382 Implement P1152R4: Deprecating some uses of volatile.
6383 PR c++/91361
6384 * doc/invoke.texi: Document -Wvolatile.
6385
6386 2019-08-28 Marek Polacek <polacek@redhat.com>
6387
6388 PR c++/91360 - Implement C++20 P1143R2: constinit.
6389 * doc/invoke.texi: Document -Wc++20-compat.
6390
6391 2019-08-28 Martin Sebor <msebor@redhat.com>
6392
6393 PR tree-optimization/91457
6394 * builtins.c (component_size): New function.
6395 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6396 * builtins.h (compute_objsize): Add argument.
6397 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6398 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6399 (vrp_prop::check_mem_ref): Same.
6400 (vrp_prop::search_for_addr_array): Set no-warning bit.
6401 (check_array_bounds): Same.
6402
6403 2019-08-28 Martin Sebor <msebor@redhat.com>
6404
6405 PR driver/80545
6406 * opts-common.c (option_enabled): Correct checking for language
6407 options.
6408
6409 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6410
6411 * config/i386/i386.c (ix86_register_move_cost): Do not
6412 limit the cost of moves to/from XMM register to minimum 8.
6413
6414 2019-08-28 Martin Jambor <mjambor@suse.cz>
6415
6416 PR ipa/91468
6417 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6418 checking assert a normal assert to test it really is redundant.
6419 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6420 redundant test.
6421 (update_jump_functions_after_inlining): Removed combining unary
6422 arithmetic operations with an ancestor jump function.
6423 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6424 instead of t.
6425
6426 2019-08-28 Richard Biener <rguenther@suse.de>
6427
6428 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6429 add the MD problem.
6430
6431 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6432 Richard Biener <rguenther@suse.de>
6433
6434 * expr.c (expand_assignment): Handle misaligned DECLs.
6435 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6436 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6437 too.
6438 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6439 * varasm.c (build_constant_desc): Align constants of misaligned types.
6440 * config/arm/predicates.md (aligned_operand): New predicate.
6441 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6442 aligned_operand to check restrictions on memory addresses.
6443 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6444 * config/arm/vec-common.md (mov<VALL>): Likewise.
6445
6446 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6447
6448 PR libgomp/91530
6449 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6450 V_128 iterator instead of VI_128.
6451
6452 2019-08-28 Martin Liska <mliska@suse.cz>
6453
6454 PR tree-optimization/90970
6455 * builtins.c (check_access): Remove assignment to maxread
6456 as it hasn't been used since when it was introduced in r255755.
6457
6458 2019-08-27 Martin Sebor <msebor@redhat.com>
6459
6460 PR tree-optimization/91567
6461 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6462 of unknown strings.
6463 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6464 to PTRDIFF_MAX - 2.
6465
6466 2019-08-27 Jeff Law <law@redhat.com>
6467
6468 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6469 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6470
6471 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6472
6473 PR target/91528
6474 * config/i386/i386-features.c (convert_scalars_to_vector):
6475 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6476 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6477 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6478 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6479
6480 2019-08-27 Richard Biener <rguenther@suse.de>
6481
6482 * config/i386/i386-features.h
6483 (general_scalar_chain::~general_scalar_chain): Add.
6484 (general_scalar_chain::insns_conv): New bitmap.
6485 (general_scalar_chain::n_sse_to_integer): New.
6486 (general_scalar_chain::n_integer_to_sse): Likewise.
6487 (general_scalar_chain::make_vector_copies): Adjust signature.
6488 * config/i386/i386-features.c
6489 (general_scalar_chain::general_scalar_chain): Outline,
6490 initialize new members.
6491 (general_scalar_chain::~general_scalar_chain): New.
6492 (general_scalar_chain::mark_dual_mode_def): Record insns
6493 we need to insert conversions at and count them.
6494 (general_scalar_chain::compute_convert_gain): Account
6495 for conversion instructions at chain boundary.
6496 (general_scalar_chain::make_vector_copies): Generate a single
6497 copy for a def by a specific insn.
6498 (general_scalar_chain::convert_registers): First populate
6499 defs_map, then make copies at out-of chain insns.
6500
6501 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6502
6503 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6504 comment.
6505 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6506
6507 2019-08-27 Martin Liska <mliska@suse.cz>
6508
6509 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6510 loop.
6511 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6512 Enclose in anonymous namespace.
6513 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6514 hard_register initialization in braces.
6515 * tree-vrp.h (value_range_base::supports_type_p): Return false
6516 for function with boolean return type.
6517
6518 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6519
6520 * config/i386/i386.c (emit_i387_cw_initialization)
6521 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6522
6523 2019-08-26 Martin Sebor <msebor@redhat.com>
6524
6525 PR c++/83431
6526 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6527 (sprintf_dom_walker): Remove class.
6528 (get_int_range): Make argument const.
6529 (directive::fmtfunc, directive::set_precision): Same.
6530 (format_none): Same.
6531 (build_intmax_type_nodes): Same.
6532 (adjust_range_for_overflow): Same.
6533 (format_floating): Same.
6534 (format_character): Same.
6535 (format_string): Same.
6536 (format_plain): Same.
6537 (get_int_range): Cast away constness.
6538 (format_integer): Same.
6539 (get_string_length): Call get_range_strlen_dynamic. Handle
6540 null lendata.maxbound.
6541 (should_warn_p): Adjust argument scope qualifier.
6542 (maybe_warn): Same.
6543 (format_directive): Same.
6544 (parse_directive): Same.
6545 (is_call_safe): Same.
6546 (try_substitute_return_value): Same.
6547 (sprintf_dom_walker::handle_printf_call): Rename...
6548 (handle_printf_call): ...to this. Initialize target to host charmap
6549 here instead of in pass_sprintf_length::execute.
6550 (struct call_info): Make global.
6551 (sprintf_dom_walker::compute_format_length): Make global.
6552 (sprintf_dom_walker::handle_gimple_call): Same.
6553 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6554 * print-rtl.c (print_pattern): Reduce the number of spaces to
6555 avoid -Wformat-truncation.
6556 * tree-pass.h (make_pass_warn_printf): New function.
6557 * tree-ssa-strlen.c (strlen_optimize): New variable.
6558 (get_string_length): Add comments.
6559 (get_range_strlen_dynamic): New function.
6560 (check_and_optimize_call): New function.
6561 (handle_integral_assign): New function.
6562 (strlen_check_and_optimize_stmt): Factor code out into
6563 strlen_check_and_optimize_call and handle_integral_assign.
6564 (strlen_dom_walker::evrp): New member.
6565 (strlen_dom_walker::before_dom_children): Use evrp member.
6566 (strlen_dom_walker::after_dom_children): Use evrp member.
6567 (printf_strlen_execute): New function.
6568 (pass_strlen::gate): Update to handle printf calls.
6569 (dump_strlen_info): New function.
6570 (pass_data_warn_printf): New variable.
6571 (pass_warn_printf): New class.
6572 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6573 (handle_printf_call): Same.
6574 * tree-vrp.c (value_range_base::type): Adjust assertion.
6575 * vr-values.c (vr_values::update_value_range): Use type of the first
6576 argument rather than the second.
6577
6578 2019-08-26 Richard Biener <rguenther@suse.de>
6579
6580 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6581 Remove.
6582 (convert_scalars_to_vector): Do not call it.
6583
6584 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6585 Uros Bizjak <ubizjak@gmail.com>
6586
6587 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6588 CASE_MATHFN_FLOATN for roundeven.
6589 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6590 I387_ROUNDEVEN.
6591 (ix86_mode_needed): Likewise.
6592 (ix86_mode_after): Likewise.
6593 (ix86_mode_entry): Likewise.
6594 (ix86_mode_exit): Likewise.
6595 (ix86_emit_mode_set): Likewise.
6596 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6597 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6598 (ix86_entity): Add I387_ROUNDEVEN.
6599 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6600 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6601 (define_int_iterator): Likewise.
6602 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6603 (define_constant): Define ROUND_ROUNDEVEN mode.
6604 (define_attr): Add roundeven mode for i387_cw.
6605 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6606 * internal-fn.def (ROUNDEVEN): New builtin function.
6607 * optabs.def (roundeven_optab): New optab.
6608
6609 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6610
6611 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6612 for ROUNDEVEN.
6613 * builtins.def: Added function definitions for roundeven function
6614 variants.
6615 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6616 function call. Adjust condition for floor, ceil, trunc and round.
6617 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6618 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6619 (integer_valued_real_call_p): Added case for roundeven function.
6620 * real.c (is_even): New function. Returns true if real number is even,
6621 otherwise returns false.
6622 (is_halfway_below): New function. Returns true if real number is
6623 halfway between two integers, else return false.
6624 (real_roundeven): New function. Round real number to nearest integer,
6625 rounding halfway cases towards even.
6626 * real.h (real_value): Added descriptive comments. Added function
6627 declaration for roundeven function.
6628 * doc/extend.texi (Other Builtins): List roundeven variants among
6629 functions which can be handled as builtins.
6630
6631 2019-08-26 Richard Biener <rguenther@suse.de>
6632
6633 PR target/91522
6634 PR target/91527
6635 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6636 New member.
6637 (general_scalar_chain::replace_with_subreg): Remove.
6638 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6639 (general_scalar_chain::convert_reg): Adjust signature.
6640 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6641 iterate over all defs of a reg.
6642 (general_scalar_chain::replace_with_subreg): Remove.
6643 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6644 (general_scalar_chain::make_vector_copies): Populate defs_map,
6645 place copy only after defs that are used as vectors in the chain.
6646 (general_scalar_chain::convert_reg): Emit a copy for a specific
6647 def in a specific instruction.
6648 (general_scalar_chain::convert_op): All reg uses are converted here.
6649 (general_scalar_chain::convert_insn): Emit copies for scalar
6650 uses of defs here. Replace uses with the copies we created.
6651 Replace and convert the def. Adjust REG_DEAD notes, remove
6652 REG_EQUIV/EQUAL notes.
6653 (general_scalar_chain::convert_registers): Only handle copies
6654 into the chain here.
6655
6656 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6657
6658 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6659
6660 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6661
6662 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6663 Add nop_convert case.
6664 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6665 Fold all statements if requested.
6666 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6667 Allow to fold all statements.
6668 * tree-vrp.c (class vrp_folder):
6669 Let substitute_and_fold_engine fold all statements.
6670
6671 2019-08-26 Richard Biener <rguenther@suse.de>
6672
6673 PR tree-optimization/91526
6674 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6675 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6676 TODO_update_address_taken.
6677
6678 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6679
6680 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6681 __STDC_HOSTED__.
6682
6683 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6684
6685 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6686 machine mode for unspec_volatile operand.
6687
6688 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6689
6690 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6691 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6692 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6693 (prefer_neon_for_64bits): Remove.
6694 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6695 (tune_params): Remove PREF_NEON_64_FALSE uses.
6696 (arm_option_override): Remove prefer_neon selection code.
6697 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6698 * gcc/config/arm/arm-protos.h (tune_params): Remove
6699 prefer_neon_for_64bits.
6700 (prefer_neon_for_64bits): Remove.
6701
6702 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6703
6704 PR pch/61250
6705 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6706 and issue any diagnostics needed before collecting the pre-PCH
6707 state.
6708
6709 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6710
6711 PR middle-end/91283
6712 * common.opt (fexcess-precision=): Add Optimization flag. Use
6713 flag_excess_precision variable instead of
6714 flag_excess_precision_cmdline.
6715 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6716 member.
6717 (flag_excess_precision): Don't define.
6718 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6719 flag_excess_precision_cmdline. Remove comment.
6720 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6721 and x_flag_excess_precision instead of
6722 frontend_set_flag_excess_precision_cmdline and
6723 x_flag_excess_precision_cmdline.
6724 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6725 x_flag_excess_precision_cmdline.
6726 * toplev.c (init_excess_precision): Remove.
6727 (lang_dependent_init_target): Don't call it.
6728
6729 2019-08-23 Martin Liska <mliska@suse.cz>
6730
6731 * lto-wrapper.c (run_gcc): When setting jobserver
6732 set also parallel to 1. This was done so before r273908.
6733
6734 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6735
6736 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6737 (cortex-a76ae): Likewise.
6738 (cortex-a77): Likewise
6739 * config/arm/arm-tables.opt: Regenerate.
6740 * config/arm/arm-tune.md: Likewise.
6741 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6742 cortex-a77 CPU options.
6743
6744 2019-08-23 Martin Liska <mliska@suse.cz>
6745
6746 * profile.c (instrument_values): Do not set
6747 0 as last argument.
6748 * tree-profile.c (gimple_gen_interval_profiler): Remove
6749 last argument.
6750 (gimple_gen_pow2_profiler): Likewise.
6751 (gimple_gen_topn_values_profiler): Likewise.
6752 (gimple_gen_ic_profiler): Likewise.
6753 (gimple_gen_time_profiler): Likewise.
6754 (gimple_gen_average_profiler): Likewise.
6755 (gimple_gen_ior_profiler): Likewise.
6756 * value-prof.c (dump_histogram_value): Use default
6757 in switch statement instead of HIST_TYPE_MAX.
6758 (stream_in_histogram_value): Likewise.
6759 (gimple_duplicate_stmt_histograms): Do not
6760 use NULL for implicitly set arguments.
6761 (gimple_divmod_values_to_profile): Do not use
6762 reserve+quick_push.
6763 (gimple_indirect_call_to_profile): Likewise.
6764 (gimple_find_values_to_profile): Use implicit
6765 function call arguments.
6766 * value-prof.h (gimple_alloc_histogram_value):
6767 Set default values.
6768 (gimple_gen_interval_profiler): Remove last argument.
6769 (gimple_gen_pow2_profiler): Likewise.
6770 (gimple_gen_topn_values_profiler): Likewise.
6771 (gimple_gen_ic_profiler): Likewise.
6772 (gimple_gen_time_profiler): Likewise.
6773 (gimple_gen_average_profiler): Likewise.
6774 (gimple_gen_ior_profiler): Likewise.
6775
6776 2019-08-22 Martin Sebor <msebor@redhat.com>
6777
6778 PR middle-end/91490
6779 * builtins.c (c_strlen): Rename argument and introduce new local.
6780 Set no-warning bit on original argument.
6781 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6782 Fold empty and zero constructors into empty strings.
6783 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6784 for missing initializers.
6785 * tree.c (build_string_literal): Handle optional argument.
6786 * tree.h (build_string_literal): Add defaulted argument.
6787 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6788 no-warning bit on original expression.
6789
6790 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6791
6792 PR target/91481
6793 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6794 and UNSPEC_DARN_RAW.
6795 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6796 UNSPECV_DARN_RAW.
6797 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6798 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6799 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6800
6801 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6802
6803 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6804 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6805 * config/rs6000/rs6000.md (unspec): ... here.
6806 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6807 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6808 cmpeqb, *cmpeqb_internal): Delete, move to...
6809 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6810 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6811 cmpeqb, *cmpeqb_internal): ... here.
6812
6813 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6814
6815 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6816 intrinsics if __ARM_FP.
6817 Use __ARM_FEATURE_CRC32 ifdef guard.
6818
6819 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6820
6821 * config/arm/arm.md (neon_for_64bits): Remove.
6822 (avoid_neon_for_64bits): Remove.
6823 (arm_adddi3): Always split early.
6824 (arm_subdi3): Always split early.
6825 (negdi2): Remove Neon expansion.
6826 (split zero_extend): Split before reload.
6827 (split sign_extend): Split before reload.
6828
6829 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6830
6831 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6832 (qhs_extenddi_cstr): Likewise.
6833 * config/arm/arm.md (ashldi3): Always expand early.
6834 (ashlsi3): Likewise.
6835 (ashrsi3): Likewise.
6836 (zero_extend<mode>di2): Remove Neon variants.
6837 (extend<mode>di2): Likewise.
6838 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6839 (signed_shift_di3_neon): Likewise.
6840 (unsigned_shift_di3_neon): Likewise.
6841 (ashrdi3_neon_imm_noclobber): Likewise.
6842 (lshrdi3_neon_imm_noclobber): Likewise.
6843 (<shift>di3_neon): Likewise.
6844 (split extend): Remove DI extend split patterns.
6845
6846 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6847
6848 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6849 (split not): Add DImode not splitter.
6850 (anddi3): Remove pattern.
6851 (anddi3_insn): Likewise.
6852 (anddi_zesidi_di): Likewise.
6853 (anddi_sesdi_di): Likewise.
6854 (anddi_notdi_di): Likewise.
6855 (anddi_notzesidi_di): Likewise.
6856 (anddi_notsesidi_di): Likewise.
6857 (iordi3): Likewise.
6858 (iordi3_insn): Likewise.
6859 (iordi_zesidi_di): Likewise.
6860 (iordi_sesidi_di): Likewise.
6861 (xordi3): Likewise.
6862 (xordi3_insn): Likewise.
6863 (xordi_sesidi_di): Likewise.
6864 (xordi_zesidi_di): Likewise.
6865 (one_cmpldi2): Likewise.
6866 (one_cmpldi2_insn): Likewise.
6867 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6868 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6869 alternative.
6870 (iwmmxt_xordi3): Likewise.
6871 (iwmmxt_anddi3): Likewise.
6872 * config/arm/neon.md (orndi3_neon): Remove pattern.
6873 (anddi_notdi_di): Likewise.
6874 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6875 (arm_iordi_operand_neon): Likewise.
6876 (arm_xordi_operand_neon): Likewise.
6877 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6878 (iordi_notzesidi_di): Likewise.
6879 (iordi_notdi_zesidi): Likewise.
6880 (iordi_notsesidi_di): Likewise.
6881
6882 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6883
6884 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6885 insn.
6886 (iorsi3_compare0_scratch): Likewise.
6887
6888 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6889
6890 * config/aarch64/aarch64-simd-builtins.def:
6891 (ld1x4): New.
6892 (st1x4): Likewise.
6893 * config/aarch64/aarch64-simd.md:
6894 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6895 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6896 (aarch64_ld1_x4_<mode>): Likewise.
6897 (aarch64_st1_x4_<mode>): Likewise.
6898 * config/aarch64/arm_neon.h:
6899 (vld1_s8_x4): New function.
6900 (vld1q_s8_x4): Likewise.
6901 (vld1_s16_x4): Likewise.
6902 (vld1q_s16_x4): Likewise.
6903 (vld1_s32_x4): Likewise.
6904 (vld1q_s32_x4): Likewise.
6905 (vld1_u8_x4): Likewise.
6906 (vld1q_u8_x4): Likewise.
6907 (vld1_u16_x4): Likewise.
6908 (vld1q_u16_x4): Likewise.
6909 (vld1_u32_x4): Likewise.
6910 (vld1q_u32_x4): Likewise.
6911 (vld1_f16_x4): Likewise.
6912 (vld1q_f16_x4): Likewise.
6913 (vld1_f32_x4): Likewise.
6914 (vld1q_f32_x4): Likewise.
6915 (vld1_p8_x4): Likewise.
6916 (vld1q_p8_x4): Likewise.
6917 (vld1_p16_x4): Likewise.
6918 (vld1q_p16_x4): Likewise.
6919 (vld1_s64_x4): Likewise.
6920 (vld1_u64_x4): Likewise.
6921 (vld1_p64_x4): Likewise.
6922 (vld1q_s64_x4): Likewise.
6923 (vld1q_u64_x4): Likewise.
6924 (vld1q_p64_x4): Likewise.
6925 (vld1_f64_x4): Likewise.
6926 (vld1q_f64_x4): Likewise.
6927 (vst1_s8_x4): Likewise.
6928 (vst1q_s8_x4): Likewise.
6929 (vst1_s16_x4): Likewise.
6930 (vst1q_s16_x4): Likewise.
6931 (vst1_s32_x4): Likewise.
6932 (vst1q_s32_x4): Likewise.
6933 (vst1_u8_x4): Likewise.
6934 (vst1q_u8_x4): Likewise.
6935 (vst1_u16_x4): Likewise.
6936 (vst1q_u16_x4): Likewise.
6937 (vst1_u32_x4): Likewise.
6938 (vst1q_u32_x4): Likewise.
6939 (vst1_f16_x4): Likewise.
6940 (vst1q_f16_x4): Likewise.
6941 (vst1_f32_x4): Likewise.
6942 (vst1q_f32_x4): Likewise.
6943 (vst1_p8_x4): Likewise.
6944 (vst1q_p8_x4): Likewise.
6945 (vst1_p16_x4): Likewise.
6946 (vst1q_p16_x4): Likewise.
6947 (vst1_s64_x4): Likewise.
6948 (vst1_u64_x4): Likewise.
6949 (vst1_p64_x4): Likewise.
6950 (vst1q_s64_x4): Likewise.
6951 (vst1q_u64_x4): Likewise.
6952 (vst1q_p64_x4): Likewise.
6953 (vst1_f64_x4): Likewise.
6954 (vst1q_f64_x4): Likewise.
6955
6956 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6957
6958 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6959
6960 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6961 Richard Sandiford <richard.sandiford@arm.com>
6962
6963 PR target/88839
6964 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6965 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6966
6967 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6968
6969 PR target/90724
6970 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6971 in reg if it fails aarch64_plus_operand predicate.
6972
6973 2019-08-21 Richard Biener <rguenther@suse.de>
6974
6975 PR tree-optimization/91482
6976 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6977 BUILT_IN_ASSUME_ALIGNED calls.
6978
6979 2019-08-21 Richard Biener <rguenther@suse.de>
6980
6981 PR target/91498
6982 PR target/91503
6983 * config/i386/i386-features.c
6984 (general_scalar_chain::make_vector_copies): Copy stack temporary
6985 rtx when using it multiple times.
6986 (general_scalar_chain::convert_reg): Likewise.
6987
6988 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6989
6990 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6991
6992 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6993
6994 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6995 catch more redundant zero initialization cases.
6996 (dse_dom_walker::dse_optimize_stmt): Likewise.
6997
6998 2019-08-20 Richard Biener <rguenther@suse.de>
6999
7000 PR lto/91307
7001 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
7002 by collect2 when targetm.have_ctors_dtors which avoids dragging
7003 in temporary filenames from LTO input objects.
7004
7005 2019-08-20 Richard Biener <rguenther@suse.de>
7006
7007 PR tree-optimization/37242
7008 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
7009 to (T)a + (T)b if we know that a + b does not overflow.
7010
7011 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
7012
7013 PR rtl-optimization/91347
7014 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
7015 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
7016
7017 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7018
7019 * calls.h (function_arg_info): Add a pass_by_reference field,
7020 defaulting to false.
7021 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
7022 when applying pass-by-reference semantics.
7023 (initialize_argument_information): Likewise.
7024 (emit_library_call_value_1): Likewise.
7025 * function.c (assign_parm_data_one): Remove passed_pointer field.
7026 (assign_parm_find_data_types): Don't set it.
7027 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
7028 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
7029 arg.pass_by_reference instead of passed_pointer.
7030
7031 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7032
7033 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
7034 into a single function_arg_info, updating its fields when we
7035 apply pass-by-reference and promotion semantics. Use the
7036 function_arg_info to track the mode rather than keeping it in
7037 a separate local variable.
7038 (initialize_argument_information): Likewise. Base the final
7039 arg_to_skip on this new function_arg_info rather than creating
7040 a new one from scratch.
7041
7042 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7043
7044 * function.c (assign_parm_data_one): Replace passed_type,
7045 promoted_mode and named_arg with a function_arg_info field.
7046 (assign_parm_find_data_types): Remove local variables and
7047 assign directly to "data". Make data->passed_mode shadow
7048 data->arg.mode until promotion, then assign the promoted
7049 mode to data->arg.mode.
7050 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
7051 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
7052 (assign_parm_remove_parallels, assign_parm_setup_block_p)
7053 (assign_parm_setup_block, assign_parm_setup_reg)
7054 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
7055 arg.mode instead of promoted_mode, arg.type instead of passed_type
7056 and arg.named instead of named_arg. Use data->arg for
7057 function_arg_info structures that had the field values passed_type,
7058 promoted_mode and named_arg. Base other function_arg_infos on
7059 data->arg, changing the necessary properties.
7060
7061 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7062
7063 * calls.h (apply_pass_by_reference_rules): Declare.
7064 * calls.c (apply_pass_by_reference_rules): New function.
7065 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
7066 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
7067 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7068 * function.c (assign_parm_find_data_types): Likewise.
7069 * var-tracking.c (prepare_call_arguments): Likewise.
7070
7071 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7072
7073 * target.def (must_pass_in_stack): Take a function_arg_info instead
7074 of a mode and a type.
7075 * doc/tm.texi: Regenerate.
7076 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
7077 instead of a mode and a type.
7078 (must_pass_in_stack_var_size_or_pad): Likewise.
7079 * calls.c (must_pass_in_stack_var_size): Likewise.
7080 (must_pass_in_stack_var_size_or_pad): Likewise.
7081 (initialize_argument_information): Update call to
7082 targetm.calls.must_pass_in_stack.
7083 (must_pass_va_arg_on_stack): Likewise.
7084 * function.c (assign_parm_find_entry_rtl): Likewise.
7085 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
7086 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7087 (alpha_function_arg_advance): Likewise.
7088 * config/cr16/cr16.c (cr16_function_arg): Likewise.
7089 (cr16_function_arg_advance): Likewise.
7090 * config/cris/cris.c (cris_pass_by_reference): Likewise.
7091 (cris_arg_partial_bytes): Likewise.
7092 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7093 * config/lm32/lm32.c (lm32_function_arg): Likewise.
7094 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
7095 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
7096 * config/mips/mips.c (mips_pass_by_reference): Likewise.
7097 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
7098 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
7099 * config/sh/sh.c (sh_pass_by_reference): Likewise.
7100 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7101 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7102 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
7103 instead of a mode and a type.
7104 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
7105 (fr30_num_arg_regs): Likewise.
7106 (fr30_setup_incoming_varargs): Update calls accordingly.
7107 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7108 (fr30_function_arg_advance): Likewise.
7109 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
7110 instead of a mode and a type.
7111 * config/gcn/gcn.c (num_arg_regs): Likewise.
7112 (gcn_function_arg, gcn_function_arg_advance): Update calls to
7113 num_arg_regs and targetm.calls.must_pass_in_stack.
7114 (gcn_arg_partial_bytes): Likewise.
7115 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
7116 function_arg_info instead of a mode and a type.
7117 (classify_argument): Update call accordingly.
7118 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
7119 function_arg_info instead of a mode and a type.
7120 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
7121 Likewise.
7122 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
7123 (rs6000_parm_needs_stack): Update call accordingly.
7124 (setup_incoming_varargs): Likewise.
7125
7126 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7127
7128 * target.def (callee_copies): Take a function_arg_info instead
7129 of a mode, type and named flag.
7130 * doc/tm.texi: Regenerate.
7131 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
7132 instead of a mode, type and named flag.
7133 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7134 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7135 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7136 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
7137 instead of a mode, type and named flag.
7138 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7139 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7140 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7141 * calls.h (reference_callee_copied): Take a function_arg_info
7142 instead of a mode, type and named flag.
7143 * calls.c (reference_callee_copied): Likewise.
7144 (initialize_argument_information): Update call accordingly.
7145 (emit_library_call_value_1): Likewise.
7146 * function.c (gimplify_parameters): Likewise.
7147 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
7148 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7149 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7150 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7151 (TARGET_CALLEE_COPIES): Define to
7152 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7153 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7154 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7155 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7156 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7157 instead of a mode, type and named flag.
7158 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7159 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7160 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7161 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7162 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7163 (TARGET_CALLEE_COPIES): Define to
7164 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7165 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7166 instead of a mode, type and named flag.
7167 * config/sh/sh.c (sh_callee_copies): Likewise.
7168 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7169 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7170 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7171
7172 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7173
7174 * target.def (function_arg_advance): Take a function_arg_info instead
7175 of a mode, type and named flag.
7176 * doc/tm.texi: Regenerate.
7177 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7178 instead of a mode, type and named flag.
7179 * targhooks.c (default_function_arg_advance): Likewise.
7180 * calls.c (initialize_argument_information): Update call to
7181 targetm.calls.function_arg_advance.
7182 (emit_library_call_value_1): Likewise.
7183 * dse.c (get_call_args): Likewise.
7184 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7185 * function.c (assign_parms, gimplify_parameters): Likewise.
7186 * var-tracking.c (prepare_call_arguments): Likewise.
7187 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7188 function_arg_info instead of a mode, type and named flag.
7189 (aarch64_setup_incoming_varargs): Update call accordingly.
7190 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7191 function_arg_info instead of a mode, type and named flag.
7192 (alpha_setup_incoming_varargs): Update call accordingly.
7193 * config/arc/arc.c (arc_function_arg_advance): Take a
7194 function_arg_info instead of a mode, type and named flag.
7195 (arc_setup_incoming_varargs): Update call accordingly.
7196 * config/arm/arm.c (arm_function_arg_advance): Take a
7197 function_arg_info instead of a mode, type and named flag.
7198 (cmse_func_args_or_return_in_stack): Update call accordingly.
7199 (arm_function_ok_for_sibcall): Likewise.
7200 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7201 * config/avr/avr.c (avr_function_arg_advance): Take a
7202 function_arg_info instead of a mode, type and named flag.
7203 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7204 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7205 (c6x_call_saved_register_used): Update call accordingly.
7206 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7207 function_arg_info instead of a mode, type and named flag.
7208 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7209 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7210 (csky_setup_incoming_varargs): Update call accordingly.
7211 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7212 function_arg_info instead of a mode, type and named flag.
7213 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7214 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7215 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7216 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7217 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7218 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7219 (ix86_setup_incoming_varargs): Update call accordingly.
7220 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7221 function_arg_info instead of a mode, type and named flag.
7222 (ia64_setup_incoming_varargs): Update call accordingly.
7223 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7224 function_arg_info instead of a mode, type and named flag.
7225 (iq2000_expand_prologue): Update call accordingly.
7226 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7227 function_arg_info instead of a mode, type and named flag.
7228 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7229 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7230 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7231 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7232 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7233 Likewise.
7234 (microblaze_expand_prologue): Update call accordingly.
7235 * config/mips/mips.c (mips_function_arg_advance): Take a
7236 function_arg_info instead of a mode, type and named flag.
7237 (mips_setup_incoming_varargs): Update call accordingly.
7238 (mips_output_args_xfer): Likewise.
7239 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7240 function_arg_info instead of a mode, type and named flag.
7241 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7242 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7243 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7244 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7245 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7246 (nios2_setup_incoming_varargs): Update call accordingly.
7247 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7248 function_arg_info instead of a mode, type and named flag.
7249 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7250 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7251 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7252 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7253 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7254 (riscv_setup_incoming_varargs): Update call accordingly.
7255 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7256 function_arg_info instead of a mode, type and named flag.
7257 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7258 Likewise.
7259 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7260 (rs6000_parm_needs_stack): Update call accordingly.
7261 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7262 instead of a mode, type and named flag.
7263 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7264 (s390_call_saved_register_used): Update call accordingly.
7265 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7266 instead of a mode, type and named flag.
7267 (sh_output_mi_thunk): Update call accordingly.
7268 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7269 function_arg_info instead of a mode, type and named flag.
7270 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7271 (spu_setup_incoming_varargs): Update call accordingly.
7272 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7273 function_arg_info instead of a mode, type and named flag.
7274 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7275 (tilegx_setup_incoming_varargs): Update call accordingly.
7276 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7277 function_arg_info instead of a mode, type and named flag.
7278 (tilegx_setup_incoming_varargs): Update call accordingly.
7279 * config/v850/v850.c (v850_function_arg_advance): Take a
7280 function_arg_info instead of a mode, type and named flag.
7281 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7282 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7283 (visium_setup_incoming_varargs): Update call accordingly.
7284 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7285 function_arg_info instead of a mode, type and named flag.
7286
7287 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7288
7289 * target.def (function_arg, function_incoming_arg): Take a
7290 function_arg_info instead of a mode, tree and named flag.
7291 * doc/tm.texi: Regenerate.
7292 * targhooks.h (default_function_arg): Take a function_arg_info
7293 instead of a mode, tree and named flag.
7294 (default_function_incoming_arg): Likewise.
7295 * targhooks.c (default_function_arg): Likewise.
7296 (default_function_incoming_arg): Likewise.
7297 * calls.h (function_arg_info::end_marker_p): New function.
7298 (function_arg_info::end_marker): Likewise.
7299 * calls.c (prepare_call_address, initialize_argument_information)
7300 (expand_call, emit_library_call_value_1): Update calls to
7301 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7302 * dse.c: Include calls.h.
7303 (get_call_args): Update call to targetm.calls.function_arg.
7304 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7305 * var-tracking.c (prepare_call_arguments): Likewise.
7306 * function.c (assign_parm_find_entry_rtl): Update call to
7307 targetm.calls.function_incoming_arg.
7308 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7309 function_arg_info instead of a mode, tree and named flag.
7310 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7311 * config/arc/arc.c (arc_function_arg): Likewise.
7312 * config/arm/arm.c (arm_function_arg): Likewise.
7313 (cmse_func_args_or_return_in_stack): Update call accordingly.
7314 (arm_function_ok_for_sibcall): Likewise.
7315 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7316 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7317 instead of a mode, tree and named flag.
7318 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7319 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7320 (c6x_call_saved_register_used): Update call accordingly.
7321 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7322 instead of a mode, tree and named flag.
7323 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7324 (cris_function_arg_1): Likewise.
7325 * config/csky/csky.c (csky_function_arg): Likewise.
7326 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7327 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7328 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7329 (frv_function_arg_1): Likewise.
7330 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7331 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7332 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7333 * config/i386/i386.c (ix86_function_arg): Likewise.
7334 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7335 (ia64_function_arg_1): Likewise.
7336 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7337 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7338 accordingly.
7339 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7340 instead of a mode, tree and named flag.
7341 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7342 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7343 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7344 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7345 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7346 (microblaze_expand_prologue): Update call accordingly.
7347 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7348 instead of a mode, tree and named flag.
7349 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7350 (mmix_function_arg_1): Likewise.
7351 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7352 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7353 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7354 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7355 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7356 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7357 (nvptx_function_incoming_arg): Likewise.
7358 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7359 * config/pa/pa.c (pa_function_arg): Likewise.
7360 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7361 * config/pru/pru.c (pru_function_arg): Likewise.
7362 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7363 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7364 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7365 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7366 (rs6000_parm_needs_stack): Update call accordingly.
7367 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7368 instead of a mode, tree and named flag.
7369 * config/s390/s390.c (s390_function_arg): Likewise.
7370 (s390_call_saved_register_used): Update call accordingly.
7371 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7372 instead of a mode, tree and named flag.
7373 (sh_output_mi_thunk): Update call accordingly.
7374 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7375 (sparc_function_incoming_arg): Take a function_arg_info instead of
7376 a mode, tree and named flag.
7377 * config/spu/spu.c (spu_function_arg): Likewise.
7378 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7379 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7380 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7381 * config/v850/v850.c (v850_function_arg): Likewise.
7382 * config/vax/vax.c (vax_function_arg): Likewise.
7383 * config/visium/visium.c (visium_function_arg): Likewise.
7384 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7385 (xtensa_function_incoming_arg): Likewise.
7386
7387 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7388
7389 * target.def (setup_incoming_varargs): Take a function_arg_info
7390 instead of a mode and tree.
7391 * doc/tm.texi: Regenerate.
7392 * targhooks.h (default_setup_incoming_varargs): Take a
7393 function_arg_info instead of a mode and tree.
7394 * targhooks.c (default_setup_incoming_varargs): Likewise.
7395 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7396 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7397 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7398 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7399 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7400 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7401 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7402 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7403 Likewise.
7404 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7405 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7406 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7407 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7408 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7409 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7410 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7411 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7412 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7413 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7414 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7415 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7416 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7417 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7418 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7419 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7420 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7421 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7422 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7423 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7424 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7425 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7426 * function.c (assign_parms_setup_varargs): Update call to
7427 targetm.calls.setup_incoming_varargs.
7428
7429 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7430
7431 * target.def (pass_by_reference): Take a function_arg_info instead
7432 of a mode, type and named flag.
7433 * doc/tm.texi: Regenerate.
7434 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7435 accordingly.
7436 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7437 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7438 function_arg_info instead of a mode, type and named flag.
7439 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7440 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7441 mode, type and named flag.
7442 * calls.c (pass_by_reference): Likewise.
7443 (pass_va_arg_by_reference): Update call accordingly.
7444 (initialize_argument_information): Likewise.
7445 (emit_library_call_value_1): Likewise.
7446 * function.c (assign_parm_find_data_types): Likewise.
7447 * var-tracking.c (prepare_call_arguments): Likewise.
7448 * stor-layout.c: Include calls.h.
7449 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7450 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7451 function_arg_info instead of a mode, type and named flag.
7452 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7453 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7454 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7455 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7456 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7457 (c6x_call_saved_register_used): Update call to pass_by_reference.
7458 * config/cris/cris.c (cris_pass_by_reference): Take a
7459 function_arg_info instead of a mode, type and named flag.
7460 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7461 function_arg_info instead of a mode, type and named flag.
7462 (epiphany_arg_partial_bytes): Update call accordingly.
7463 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7464 function_arg_info instead of a mode, type and named flag.
7465 (ft32_arg_partial_bytes): Update call accordingly.
7466 * config/i386/i386.c (ix86_pass_by_reference): Take a
7467 function_arg_info instead of a mode, type and named flag.
7468 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7469 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7470 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7471 (m32r_return_in_memory): Update call accordingly.
7472 * config/mips/mips.c (mips_pass_by_reference): Take a
7473 function_arg_info instead of a mode, type and named flag.
7474 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7475 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7476 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7477 (moxie_arg_partial_bytes): Update call accordingly.
7478 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7479 function_arg_info instead of a mode, type and named flag.
7480 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7481 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7482 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7483 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7484 (riscv_return_in_memory): Update call accordingly.
7485 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7486 function_arg_info instead of a mode, type and named flag.
7487 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7488 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7489 * config/s390/s390.c (s390_pass_by_reference): Take a
7490 function_arg_info instead of a mode, type and named flag.
7491 (s390_call_saved_register_used): Update call accordingly.
7492 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7493 instead of a mode, type and named flag.
7494 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7495 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7496 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7497 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7498 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7499 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7500
7501 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7502
7503 * target.def (arg_partial_bytes): Take a function_arg_info instead
7504 of a mode, type and named flag.
7505 * doc/tm.texi: Regenerate.
7506 * target.h (function_arg_info): Declare.
7507 * calls.h (function_arg_info): New class.
7508 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7509 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7510 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7511 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7512 * calls.c (initialize_argument_information): Update call to
7513 targetm.calls.partial_bytes.
7514 (emit_library_call_value_1): Likewise.
7515 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7516 * function.c (assign_parm_find_entry_rtl): Likewise.
7517 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7518 function_arg_info instead of a mode, type and named flag.
7519 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7520 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7521 (cmse_func_args_or_return_in_stack): Update accordingly.
7522 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7523 function_arg_info instead of a mode, type and named flag.
7524 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7525 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7526 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7527 * config/fr30/fr30.c: Include calls.h.
7528 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7529 type and named flag.
7530 * config/frv/frv.c: Include calls.h.
7531 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7532 type and named flag.
7533 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7534 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7535 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7536 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7537 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7538 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7539 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7540 Likewise.
7541 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7542 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7543 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7544 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7545 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7546 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7547 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7548 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7549 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7550 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7551 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7552 (rs6000_parm_needs_stack): Update call accordingly.
7553 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7554 function_arg_info instead of a mode, type and named flag.
7555 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7556 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7557
7558 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7559
7560 * calls.h (must_pass_va_arg_in_stack): Declare.
7561 * calls.c (must_pass_va_arg_in_stack): New function.
7562 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7563 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7564 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7565 Likewise.
7566 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7567
7568 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7569
7570 * calls.h (pass_va_arg_by_reference): Declare.
7571 * calls.c (pass_va_arg_by_reference): New function.
7572 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7573 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7574 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7575 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7576 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7577 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7578 (mips_gimplify_va_arg_expr): Likewise.
7579 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7580 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7581 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7582 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7583 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7584 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7585 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7586 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7587 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7588 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7589 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7590
7591 2019-08-20 Richard Biener <rguenther@suse.de>
7592
7593 PR target/91498
7594 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7595 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7596 (convert_scalars_to_vector): Add timode_p parameter and use it
7597 to guard TImode-only operation.
7598 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7599 (pass_stv::execute): Pass down timode_p.
7600
7601 2019-08-20 Lili Cui <lili.cui@intel.com>
7602
7603 * common/config/i386/i386-common.c
7604 (processor_names): Add tigerlake and cooperlake.
7605 (processor_alias_table): Add tigerlake and cooperlake.
7606 * config.gcc: Add -march=tigerlake and cooperlake.
7607 * config/i386/driver-i386.c
7608 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7609 Add "has_avx" to classify processor.
7610 * config/i386/i386-builtins.c (processor_model) :
7611 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7612 (arch_names_table): Add tigerlake and cooperlake.
7613 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7614 and PROCESSOR_COOPERLAKE.
7615 * config/i386/i386-c.c
7616 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7617 * config/i386/i386-options.c
7618 (m_TIGERLAKE) : Define.
7619 (m_COOPERLAKE) : Ditto.
7620 (m_CORE_AVX512): Ditto.
7621 (processor_cost_table): Add cascadelake.
7622 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7623 * config/i386/i386.h
7624 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7625 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7626 (PTA_MOVDIRI): Ditto.
7627 (PTA_MOVDIR64B): Ditto.
7628 (PTA_COOPERLAKE) : Ditto.
7629 (PTA_TIGERLAKE) : Ditto.
7630 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7631 * doc/extend.texi: Add tigerlake and cooperlake.
7632 * doc/invoke.texi: Add tigerlake and cooperlake.
7633
7634 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7635
7636 * doc/install.texi (Specific, alpha): Remove note to use
7637 binutils 2.11.2 or later.
7638
7639 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7640
7641 PR middle-end/89544
7642 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7643 when possible.
7644
7645 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7646
7647 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7648 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7649 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7650 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7651 * config/aarch64/constraints.md (Dt): New constraint
7652 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7653
7654 2019-08-19 Richard Biener <rguenther@suse.de>
7655
7656 PR tree-optimization/91403
7657 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7658 cases we can handle with tail-recursion...
7659 (follow_ssa_edge_expr): ... here. Do so.
7660
7661 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7662
7663 PR target/91441
7664 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7665 implemented for -fsanitize=kernel-address, and merge check logic
7666 with -fsanitize=address.
7667
7668 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7669
7670 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7671 for cpu and machine. Factor 64/32b builtins.
7672
7673 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7674
7675 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7676 gone, point to sourceforge.net.
7677
7678 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7679
7680 * doc/ux.texi (User Experience Guidelines): Update reference.
7681
7682 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7683
7684 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7685 not LGPL".
7686
7687 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7688
7689 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7690 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7691
7692 2019-08-16 Martin Sebor <msebor@redhat.com>
7693
7694 * tree.def (TYPE_SIZE): Clarify.
7695 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7696
7697 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7698
7699 PR tree-optimization/91109
7700 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7701 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7702 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7703
7704 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7705
7706 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7707 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7708 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7709 (uavg<mode>3_ceil): New expander.
7710 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7711 mode iterator when creating CONST1_RTX.
7712 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7713 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7714 mode iterator for const1_operand predicate.
7715
7716 2019-08-16 Richard Biener <rguenther@suse.de>
7717
7718 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7719 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7720 follow_ssa_edge.
7721 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7722 (analyze_evolution_in_loop): Likewise.
7723 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7724 (follow_ssa_edge_expr): ... here. Refactor code.
7725
7726 2019-08-16 Richard Biener <rguenther@suse.de>
7727
7728 PR target/91469
7729 * config/i386/i386-features.c
7730 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7731
7732 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7733
7734 PR other/91255
7735 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7736 only if subst_name matches curr_attr string.
7737
7738 2019-08-16 Richard Biener <rguenther@suse.de>
7739
7740 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7741 stmt at gsi_p, instead replace it with a NOP removed later.
7742 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7743 that became dead because of that.
7744
7745 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7746
7747 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7748 for which we can't represent a range.
7749 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7750 set_varying.
7751 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7752 Set VR_UNDEFINED if type is not supported.
7753 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7754 * tree-vrp.c (value_range_base::check): Assert that a varying has
7755 min/max set.
7756 (value_range_base::equal_p): Early bail for undefines.
7757 (value_range_base::set_varying): Accept a type.
7758 (value_range::set_varying): Same.
7759 (value_range_base::type): VARYING can have a type, while UNDEFINE
7760 is typeless.
7761 (value_range_base::dump): Print type for VARYING nodes.
7762 (value_range_base::set): Add type to VARYING.
7763 (extract_range_from_multiplicative_op): Pass type to set_varying.
7764 (extract_range_from_binary_expr): Same.
7765 (value_range_base::intersect_helper): Same.
7766 (value_range_base::union_helper): Same.
7767 (value_range_base::normalize_symbolics): Same.
7768 (determine_value_range_1): Same.
7769 * tree-vrp.h (class value_range_base): Add type to set_varying.
7770 Add prototype for dump(void).
7771 Add prototype for supports_type_p.
7772 (class value_range): Add type to set_varying.
7773 Add prototype for dump(void).
7774 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7775 set_varying.
7776 (vr_values::get_lattice_entry): Set varying even if propagation
7777 finished.
7778 Pass type to set_varying.
7779 (vr_values::get_value_range): Remove vr_const_varying.
7780 Reallocate the lattice if needed.
7781 (vr_values::update_value_range): Pass type to set_varying.
7782 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7783 (vr_values::extract_range_from_binary_expr): Same.
7784 (vr_values::extract_range_from_unary_expr): Same.
7785 (vr_values::extract_range_from_cond_expr): Same.
7786 (vr_values::check_for_binary_op_overflow): Same.
7787 (vr_values::extract_range_basic): Same.
7788 (vr_values::extract_range_from_assignment): Same.
7789 (vr_values::vr_values): Increase size of num_vr_values.
7790 (vr_values::extract_range_from_phi_node): Pass type to
7791 set_varying.
7792
7793 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7794
7795 PR target/90878
7796 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7797 for costs of hard register moves.
7798 (ix86_register_move_cost): Likewise.
7799 * config/i386/i386.h (processor_costs): Move costs of hard
7800 register moves to hard_register. Add int_load, int_store,
7801 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7802 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7803 for costs of RTL expressions.
7804 * config/i386/x86-tune-costs.h: Move costs of hard register
7805 moves to hard_register. Duplicate int_load, int_store,
7806 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7807 sse_load, sse_store for costs of RTL expressions.
7808
7809 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7810
7811 * target.def (setup_incoming_vararg_bounds): Remove.
7812 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7813 * doc/tm.texi: Regenerate.
7814 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7815 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7816 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7817 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7818
7819 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7820
7821 MSP430: Fix lines over 80 characters long in
7822 config/msp430/*.{c,h} files
7823
7824 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7825 specifier in string.
7826 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7827 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7828 redundant old comment.
7829 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7830 Split line more than 80 characters long.
7831 * config/msp430/msp430.c (msp430_option_override): Likewise.
7832 (msp430_return_in_memory): Likewise.
7833 (msp430_gimplify_va_arg_expr): Likewise.
7834 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7835 (msp430_legitimate_constant): Likewise.
7836 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7837 (msp430_attr): Likewise.
7838 (msp430_data_attr): Likewise.
7839 (msp430_start_function): Likewise.
7840 (gen_prefix): Likewise.
7841 (msp430_init_sections): Likewise.
7842 (msp430_select_section): Likewise.
7843 (msp430_function_section): Likewise.
7844 (msp430_unique_section): Likewise.
7845 (msp430_output_aligned_decl_common): Likewise.
7846 (msp430_do_not_relax_short_jumps): Likewise.
7847 (msp430_init_builtins): Likewise.
7848 (msp430_expand_delay_cycles): Likewise.
7849 (msp430_expand_prologue): Likewise.
7850 (msp430_expand_epilogue): Likewise.
7851 (msp430_expand_helper): Likewise.
7852 (msp430_split_movsi): Likewise.
7853 (msp430_print_operand): Likewise.
7854 (msp430_return_addr_rtx): Likewise.
7855 (msp430x_extendhisi): Likewise.
7856 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7857 (ASM_SPEC): Likewise.
7858 Remove very obvious comments.
7859 (LIB_SPEC): Split line more than 80 characters long.
7860 (EH_RETURN_HANDLER_RTX): Likewise.
7861 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7862
7863 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7864
7865 MSP430: Fix whitespace errors and incorrect indentation in
7866 config/msp430/*.{c,h} files
7867
7868 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7869 (msp430_select_hwmult_lib): Likewise.
7870 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7871 (msp430_extract_mcu_data): Likewise.
7872 (struct t_msp430_mcu_data): Likewise.
7873 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7874 before left square bracket.
7875 (msp430_option_override): Fix indentation.
7876 (msp430_hard_regno_nregs_with_padding): Likewise.
7877 (msp430_initial_elimination_offset): Likewise.
7878 (msp430_special_register_convention_p): Remove whitespace before left
7879 square bracket and after exclamation mark.
7880 (msp430_evaluate_arg): Likewise.
7881 (msp430_callee_copies): Fix indentation.
7882 (msp430_gimplify_va_arg_expr): Likewise.
7883 (msp430_function_arg_advance): Remove whitespace before left square
7884 bracket.
7885 (reg_ok_for_addr): Likewise.
7886 (msp430_preserve_reg_p): Likewise.
7887 (msp430_compute_frame_info): Likewise.
7888 (msp430_asm_output_addr_const_extra): Add space between function name
7889 and open parenthesis.
7890 (has_section_name): Fix indentation.
7891 (msp430_attr): Remove trailing whitespace.
7892 (msp430_section_attr): Likewise.
7893 (msp430_data_attr): Likewise.
7894 (struct msp430_attribute_table): Fix comment and whitespace.
7895 (msp430_start_function): Remove whitespace before left square bracket.
7896 Add space between function name and open parenthesis.
7897 (msp430_select_section): Remove trailing whitespace.
7898 (msp430_section_type_flags): Remove trailing whitespace.
7899 (msp430_unique_section): Remove space before closing parenthesis.
7900 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7901 (msp430_builtins): Remove whitespace before left square bracket.
7902 (msp430_init_builtins): Fix indentation.
7903 (msp430_expand_prologue): Remove whitespace before left square bracket.
7904 Remove space before closing parenthesis.
7905 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7906 (msp430_split_movsi): Remove space before closing parenthesis.
7907 (helper_function_name_mappings): Fix indentation.
7908 (msp430_use_f5_series_hwmult): Fix whitespace.
7909 (use_32bit_hwmult): Likewise.
7910 (msp430_no_hwmult): Likewise.
7911 (msp430_output_labelref): Remove whitespace before left square bracket.
7912 (msp430_print_operand_raw): Likewise.
7913 (msp430_print_operand_addr): Likewise.
7914 (msp430_print_operand): Add two spaces after '.' in comment.
7915 Fix trailing whitespace.
7916 (msp430x_extendhisi): Fix indentation.
7917 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7918 tab.
7919 (PC_REGNUM): Likewise.
7920 (STACK_POINTER_REGNUM): Likewise.
7921 (CC_REGNUM): Likewise.
7922
7923 2019-08-15 Richard Biener <rguenther@suse.de>
7924
7925 PR target/91454
7926 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7927 helper.
7928 (general_scalar_chain::make_vector_copies): Use it.
7929
7930 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7931
7932 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7933
7934 2019-08-15 Martin Liska <mliska@suse.cz>
7935
7936 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7937 operators with no arguments.
7938 (eliminate_unnecessary_stmts): Likewise here.
7939
7940 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7941
7942 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7943 <case COMPARE>: Revert 2019-08-14 change.
7944 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7945 for (TARGET_64BIT || mode != DImode).
7946
7947 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7948
7949 * tree-vrp.c (value_range_base::set): Merge in code from
7950 value_range_base::set_and_canonicalize.
7951 Enforce canonicalization at set time.
7952 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7953 (value_range_base::set_undefined): Inline call to set().
7954 (value_range_base::set_varying): Same.
7955 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7956 (vrp_val_max): New argument handle_pointers.
7957 (vrp_val_min): Same.
7958 (ranges_from_anti_range): Same.
7959 (extract_range_into_wide_ints): Use tree argument instead of sign
7960 and precision.
7961 (extract_range_from_multiplicative_op): Take in tree type instead
7962 of precision and sign. Adapt function for canonicalized ranges.
7963 (extract_range_from_binary_expr): Pass type to
7964 extract_range_from_multiplicative_op.
7965 Adapt for canonicalized ranges.
7966 (extract_range_from_unary_expr): Same.
7967 (value_range_base::intersect_helper): Adjust for canonicalized
7968 ranges.
7969 (value_range_base::union_helper): Same.
7970 (value_range_base::normalize_symbolics): New.
7971 * tree-vrp.h (class value_range_base): Remove
7972 set_and_canonicalize.
7973 New prototype for normalize_symbolics.
7974 (class value_range): Remove set_and_canonicalize.
7975 (vrp_val_min): Adjust prototype.
7976 (vrp_val_max): Same.
7977 * vr-values.c
7978 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7979 instead of set_and_canonicalize.
7980
7981 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7982
7983 PR middle-end/91444
7984 * tree-vect-stmts.c (vectorizable_call): Check that the function
7985 is a BUILT_IN_MD function before passing it to
7986 targetm.vectorize.builtin_md_vectorized_function.
7987
7988 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7989
7990 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7991 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7992 (aarch64_select_early_remat_modes): Use it.
7993
7994 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7995
7996 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7997 16 for SVE predicates even if they are fixed-length.
7998
7999 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8000
8001 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
8002 operand order match the MOV /Z alias.
8003
8004 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8005
8006 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
8007 the vector pattern as an aarch64_svpattern argument. Update the
8008 overloaded caller accordingly.
8009 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
8010 (aarch64_output_sve_vector_inc_dec): Likewise.
8011
8012 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8013
8014 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
8015 multiplication case, try to compute VG * (lowest set bit) directly
8016 rather than always basing the multiplication on VG. Use
8017 expand_mult for the multiplication if we can.
8018
8019 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8020
8021 * config/aarch64/aarch64-protos.h
8022 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
8023 (aarch64_sve_inc_dec_immediate_p): Rename to...
8024 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8025 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
8026 (aarch64_output_sve_scalar_inc_dec): Declare.
8027 (aarch64_output_sve_inc_dec_immediate): Rename to...
8028 (aarch64_output_sve_vector_inc_dec): ...this.
8029 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
8030 (aarch64_output_sve_scalar_inc_dec): New functions.
8031 (aarch64_output_sve_addvl_addpl): Remove the base and offset
8032 arguments. Only handle true ADDVL and ADDPL instructions;
8033 don't emit an INC or DEC.
8034 (aarch64_sve_inc_dec_immediate_p): Rename to...
8035 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8036 (aarch64_output_sve_inc_dec_immediate): Rename to...
8037 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
8038 aarch64_sve_vector_inc_dec_immediate_p.
8039 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
8040 (aarch64_sve_plus_immediate): New predicates.
8041 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
8042 rather than aarch64_sve_addvl_addpl_immediate.
8043 (aarch64_sve_inc_dec_immediate): Rename to...
8044 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
8045 aarch64_sve_vector_inc_dec_immediate_p.
8046 (aarch64_sve_add_operand): Update accordingly.
8047 * config/aarch64/constraints.md (Uai): New constraint.
8048 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
8049 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
8050 operand into a register if it satisfies aarch64_sve_plus_immediate.
8051 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
8052 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
8053 * config/aarch64/aarch64-sve.md (add<mode>3): Call
8054 aarch64_output_sve_vector_inc_dec instead of
8055 aarch64_output_sve_inc_dec_immediate.
8056
8057 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8058
8059 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
8060 (UNSPEC_REVW): New constants.
8061 (elem_bits): New mode attribute.
8062 (SVE_INT_UNARY): New int iterator.
8063 (optab): Handle UNSPEC_REV[BHW].
8064 (sve_int_op): New int attribute.
8065 (min_elem_bits): Handle VNx16QI and the predicate modes.
8066 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
8067 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
8068 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
8069 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
8070 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
8071 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
8072 unspecs based on the total width of the reversed data.
8073 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
8074 reinterpret followed by a subreg on big-endian targets.
8075
8076 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8077 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8078
8079 * config/aarch64/aarch64-sve.md
8080 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
8081 alternatives in which one of the inputs is in the same register
8082 as the output.
8083
8084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8085
8086 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
8087 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
8088
8089 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8090
8091 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
8092 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
8093
8094 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8095 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8096
8097 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
8098 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
8099 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
8100
8101 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8102 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8103
8104 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
8105 Add an alternative that uses reversed shifts.
8106
8107 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8108
8109 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
8110 struct.
8111
8112 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8113
8114 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
8115 a commutativity marker.
8116
8117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8118 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8119
8120 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
8121 (aarch64_prepare_sve_cond_int_fma): Declare.
8122 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
8123 (aarch64_prepare_sve_int_fma): New functions.
8124 (aarch64_prepare_sve_cond_int_fma): Likewise.
8125 * config/aarch64/aarch64-sve.md
8126 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
8127 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
8128 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
8129 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
8130 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
8131 (*madd<mode>): Rename to...
8132 (*fma<mode>4): ...this.
8133 (*msub<mode>): Rename to...
8134 (*fnma<mode>4): ...this.
8135
8136 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8137 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8138
8139 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
8140 Print 2.0 naturally.
8141 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
8142 * config/aarch64/predicates.md
8143 (aarch64_sve_float_negated_arith_immediate): New predicate,
8144 renamed from aarch64_sve_float_arith_with_sub_immediate.
8145 (aarch64_sve_float_arith_with_sub_immediate): Test for both
8146 positive and negative constants.
8147 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
8148 or an aarch64_sve_float_arith_with_sub_immediate.
8149 * config/aarch64/constraints.md (vsN): Use
8150 aarch64_sve_float_negated_arith_immediate.
8151 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8152 iterator.
8153 (sve_pred_fp_rhs2_immediate): New int attribute.
8154 * config/aarch64/aarch64-sve.md
8155 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8156 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8157 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8158 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8159 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8160 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8161
8162 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8163 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8164
8165 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8166 (*aarch64_cond_abd<SVE_F:mode>_3)
8167 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8168
8169 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8170 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8171
8172 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8173 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8174
8175 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8176 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8177
8178 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8179 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8180 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8181 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8182 optabs.
8183 * optabs.h (create_convert_operand_from): Expand comment.
8184 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8185 when mapping scalar rtxes to vector operands.
8186 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8187 ashiftrt and lshiftrt.
8188 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8189 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8190 (*cond_<optab><mode>_any_const): New patterns.
8191
8192 2019-08-15 Martin Liska <mliska@suse.cz>
8193
8194 PR ipa/91438
8195 * cgraph.c (cgraph_node::remove): When setting
8196 n->origin = NULL for all nested functions, reset
8197 also next_nested.
8198
8199 2019-08-15 Martin Liska <mliska@suse.cz>
8200
8201 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8202 and next_nested.
8203
8204 2019-08-15 Martin Liska <mliska@suse.cz>
8205
8206 PR ipa/91404
8207 * passes.c (order): Remove.
8208 (uid_hash_t): Likewise).
8209 (remove_cgraph_node_from_order): Remove from set
8210 of pointers (cgraph_node *).
8211 (insert_cgraph_node_to_order): New.
8212 (duplicate_cgraph_node_to_order): New.
8213 (do_per_function_toporder): Register all 3 cgraph hooks.
8214 Skip removed_nodes now as we know about all of them.
8215
8216 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8217
8218 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8219 <case E_V8QImode>: Use vector_set path for
8220 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8221 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8222 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8223
8224 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8225
8226 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8227
8228 2019-08-14 Martin Sebor <msebor@redhat.com>
8229
8230 PR tree-optimization/91294
8231 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8232 source length as exact.
8233
8234 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8235
8236 * doc/extend.texi: Add "noinit" attribute documentation.
8237 * doc/sourcebuild.texi: Add noinit effective target documentation.
8238 * varasm.c (default_section_type_flags): Add support for "noinit"
8239 section.
8240 (default_elf_select_section): Add support for "noinit" attribute.
8241 * config/msp430/msp430.c (msp430_attribute_table): Remove
8242 "noinit" entry.
8243
8244 2019-08-14 Richard Biener <rguenther@suse.de>
8245 Uroš Bizjak <ubizjak@gmail.com>
8246
8247 PR target/91154
8248 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8249 mode arguments.
8250 (scalar_chain::smode): New member.
8251 (scalar_chain::vmode): Likewise.
8252 (dimode_scalar_chain): Rename to...
8253 (general_scalar_chain): ... this.
8254 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8255 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8256 base with TImode and V1TImode.
8257 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8258 (general_scalar_chain::vector_const_cost): Adjust for SImode
8259 chains.
8260 (general_scalar_chain::compute_convert_gain): Likewise. Add
8261 {S,U}{MIN,MAX} support.
8262 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8263 (general_scalar_chain::make_vector_copies): Likewise. Handle
8264 non-DImode chains appropriately.
8265 (general_scalar_chain::convert_reg): Likewise.
8266 (general_scalar_chain::convert_op): Likewise.
8267 (general_scalar_chain::convert_insn): Likewise. Add
8268 fatal_insn_not_found if the result is not recognized.
8269 (convertible_comparison_p): Pass in the scalar mode and use that.
8270 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8271 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8272 (scalar_to_vector_candidate_p): Remove by inlining into single
8273 caller.
8274 (general_remove_non_convertible_regs): Rename from
8275 dimode_remove_non_convertible_regs.
8276 (remove_non_convertible_regs): Remove by inlining into single caller.
8277 (convert_scalars_to_vector): Handle SImode and DImode chains
8278 in addition to TImode chains.
8279 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8280 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8281 (*<maxmin>di3_doubleword): Likewise.
8282
8283 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8284 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8285
8286 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8287 (*cond_bic<mode>_any): New patterns.
8288
8289 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8290
8291 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8292 take the equivalent mask, as well as a bit count.
8293 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8294 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8295 (aarch64_sve_pred_and_operand): New predicates.
8296 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8297 code attribute.
8298 * config/aarch64/aarch64-sve.md
8299 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8300 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8301
8302 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8303
8304 * config/aarch64/aarch64-sve.md
8305 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8306 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8307 New patterns.
8308
8309 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8310 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8311
8312 * config/aarch64/aarch64-sve.md
8313 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8314 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8315
8316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8317 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8318
8319 * config/aarch64/aarch64-sve.md
8320 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8321 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8322
8323 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8324
8325 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8326 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8327 New pattern.
8328
8329 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8330 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8331
8332 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8333
8334 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8335 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8336
8337 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8338 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8339 (aarch64_print_operand): Add support for %I.
8340 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8341 Bitcast floating-point constants to the corresponding integer constant.
8342 (aarch64_float_const_representable_p): Handle vectors as well
8343 as scalars.
8344 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8345 for the new vcond_mask_<mode><vpred> expander.
8346 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8347 test aarch64_float_const_representable_p.
8348 (aarch64_sve_reg_or_dup_imm): New predicate.
8349 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8350 gen_vcond_mask_<mode><vpred> instead of
8351 gen_aarch64_sve_dup<mode>_const.
8352 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8353 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8354 for operands 1 and 2 respectively. Force operand 2 into a
8355 register if operand 1 is a register. Fold old define_insn...
8356 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8357 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8358 floating-point constants that can be moved as integers. Add
8359 alternatives for MOV /M and FMOV /M.
8360 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8361 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8362 1 and 2 respectively.
8363 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8364 as scalars.
8365 (vss): New constraint.
8366
8367 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8368
8369 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8370 (aarch64_sve_float_maxmin_operand): New predicates.
8371 * config/aarch64/constraints.md (vsB): New constraint.
8372 (vsM): Fix typo.
8373 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8374 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8375 UNSPEC_COND_FMINNM.
8376 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8377 Use aarch64_sve_float_maxmin_operand for operand 2.
8378 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8379 Add alternatives for the constant forms.
8380
8381 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8382
8383 * config/aarch64/constraints.md (vsb): New constraint.
8384 (vsm): Generalize description.
8385 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8386 iterator.
8387 (sve_imm_con): Handle smax, smin, umax and umin.
8388 (sve_imm_prefix): New code attribute.
8389 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8390 (aarch64_sve_vsb_operand): New predicates.
8391 (aarch64_sve_mul_immediate): Rename to...
8392 (aarch64_sve_vsm_immediate): ...this.
8393 (aarch64_sve_mul_operand): Rename to...
8394 (aarch64_sve_vsm_operand): ...this.
8395 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8396 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8397 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8398 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8399 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8400 add movprfx support for the immediate alternatives.
8401 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8402 of the above.
8403 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8404 for operand 3.
8405
8406 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8407
8408 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8409 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8410 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8411
8412 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8413
8414 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8415 (optab, sve_int_op): Handle them.
8416 * config/aarch64/aarch64-sve.md: Expand comment.
8417
8418 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8419
8420 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8421 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8422 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8423
8424 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8425
8426 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8427 (aarch64_expand_sve_const_pred_trn): New functions.
8428 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8429 use the above functions when the parameter is true.
8430 (aarch64_expand_sve_const_pred): Update call accordingly.
8431 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8432 Rename to...
8433 (@aarch64_sve_<perm_insn><mode>): ...this.
8434
8435 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8436
8437 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8438 Declare.
8439 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8440 (aarch64_sve_emit_int_cmp): New functions.
8441 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8442 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8443 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8444 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8445 (UNSPEC_PRED_Z): New unspec.
8446 (set_clobber_cc_nzc): Delete.
8447 * config/aarch64/aarch64-sve.md: Add a block comment about
8448 UNSPEC_PRED_Z.
8449 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8450 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8451 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8452 UNSPEC_MERGE_PTRUE.
8453 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8454 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8455 check for compatible predicates.
8456 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8457 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8458 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8459 comparisons above.
8460
8461 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8462
8463 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8464 * config/aarch64/aarch64-sve.md: Add a section describing it.
8465 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8466 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8467 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8468 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8469 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8470 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8471 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8472 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8473 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8474 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8475 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8476 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8477 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8478 (aarch64_evpc_rev_local): Update accordingly.
8479
8480 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8481
8482 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8483 iterators.
8484 (SVE_BHSI, SVE_SDI): Tweak comment.
8485 (SVE_HSDI): Likewise. Fix definition.
8486 (SVE_SDF): New mode iterator.
8487 (elem_bits): New mode attribute.
8488 (SVE_COND_FCVT): New int iterator.
8489 * config/aarch64/aarch64-sve.md
8490 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8491 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8492 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8493 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8494 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8495 ...these new patterns.
8496 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8497 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8498 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8499 Merge into...
8500 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8501 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8502 ...these new patterns.
8503 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8504 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8505 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8506 ...this new pattern.
8507 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8508 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8509 ...this new pattern.
8510 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8511
8512 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8513
8514 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8515 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8516 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8517 unspecs.
8518 (optab, su): Handle them.
8519 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8520 * config/aarch64/aarch64-sve.md
8521 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8522 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8523 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8524 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8525 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8526 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8527 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8528 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8529 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8530 FIXUORS.
8531 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8532 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8533 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8534 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8535 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8536 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8537 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8538 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8539 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8540 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8541 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8542 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8543 of UNSPEC_FLOAT_CONVERT.
8544 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8545 aarch64_sve_extend<mode><Vwide>2.
8546
8547 2019-08-14 Richard Biener <rguenther@suse.de>
8548
8549 PR target/91154
8550 * config/i386/i386-features.c
8551 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8552 individual instruction gain. Fix reg-reg copy GRP cost. Use
8553 ix86_cost->sse_op for vector instruction costs.
8554
8555 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8556
8557 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8558 (cmp_op): Handle it.
8559 (SVE_COND_FP_CMP): Rename to...
8560 (SVE_COND_FP_CMP_I0): ...this.
8561 (SVE_FP_CMP): Remove.
8562 * config/aarch64/aarch64-sve.md
8563 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8564 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8565 using unspecs to represent the comparison.
8566 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8567 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8568 accordingly.
8569 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8570 (aarch64_unspec_cond_code): Move after integer code. Handle
8571 UNORDERED.
8572 (aarch64_emit_sve_predicated_cond): Replace with...
8573 (aarch64_emit_sve_fp_cond): ...this new function.
8574 (aarch64_emit_sve_or_conds): Replace with...
8575 (aarch64_emit_sve_or_fp_conds): ...this new function.
8576 (aarch64_emit_sve_inverted_cond): Replace with...
8577 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8578 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8579
8580 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8581
8582 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8583 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8584 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8585 SVE_HSD instead of SVE_SD.
8586
8587 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8588 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8589
8590 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8591 iterator.
8592 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8593 attributes.
8594 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8595 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8596 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8597 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8598 (*div<SVE_F:mode>3): Generalize to...
8599 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8600
8601 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8602 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8603
8604 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8605 constants.
8606 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8607 predicate.
8608 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8609 Declare.
8610 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8611 function.
8612 * config/aarch64/aarch64-sve.md: Add a block comment about the
8613 handling of predicated FP operations.
8614 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8615 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8616 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8617 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8618 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8619 operand.
8620 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8621 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8622 operand.
8623 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8624 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8625 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8626 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8627 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8628 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8629 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8630 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8631 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8632 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8633 strictness operands. Use aarch64_sve_pred_dominates_p to check
8634 whether the predicate on the conditional operation is suitable
8635 for merging. Split patterns into the canonical equal-predicate form.
8636 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8637 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8638
8639 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8640 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8641
8642 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8643 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8644 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8645 rtx codes.
8646 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8647 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8648 unspecs.
8649
8650 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8651 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8652
8653 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8654 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8655 actually has, rather than relying on REG_EQUAL notes.
8656 Make the insn operand order match the SVE operand order.
8657 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8658 the SVE operand order.
8659
8660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8661
8662 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8663 (aarch64_emit_set_immediate): Likewise.
8664 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8665 (aarch64_pfalse_reg): Likewise.
8666 (aarch64_convert_sve_data_to_pred): New function.
8667 (aarch64_sve_move_pred_via_while): Take an optional target register
8668 and the required register mode.
8669 (aarch64_expand_sve_const_pred_1): New function.
8670 (aarch64_expand_sve_const_pred): Likewise.
8671 (aarch64_expand_mov_immediate): Build an all-true predicate
8672 if the significant bits of the immediate are all true. Use
8673 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8674 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8675 before register allocation.
8676 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8677 a VNx16BI PTRUE when splitting the memory alternative.
8678 (vec_duplicate<mode>): Update accordingly.
8679 (*pred_cmp<cmp_op><mode>): Rename to...
8680 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8681
8682 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8683
8684 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8685 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8686 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8687 (UNSPEC_PTEST): New unspec.
8688 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8689 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8690 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8691 * config/aarch64/aarch64-sve.md: Add a new section describing the
8692 handling of UNSPEC_PTEST.
8693 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8694 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8695 (ptest_ptrue<mode>): Replace with...
8696 (aarch64_ptest<mode>): ...this new pattern.
8697 (cbranch<mode>4): Update after above changes.
8698 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8699 UNSPEC_PTEST_PTRUE.
8700 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8701 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8702 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8703
8704 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8705
8706 PR lto/91287
8707 * builtins.c (builtin_with_linkage_p): New function.
8708 * builtins.h (builtin_with_linkage_p): New function.
8709 * symtab.c (write_symbol): Remove redundant assert.
8710 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8711 Remove FIXME and use builtin_with_linkage_p.
8712
8713 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8714
8715 PR middle-end/91421
8716 * tree-core.h (function_decl::function_code): Change type to
8717 unsigned int.
8718 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8719 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8720 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8721 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8722 is BUILT_IN_NORMAL.
8723 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8724 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8725 (fndecl_built_in_p): Change the type of the "name" argument to
8726 unsigned int.
8727 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8728 after check for DECL_BUILT_IN_CLASS.
8729 * cgraphclones.c (build_function_decl_skip_args): Use
8730 set_decl_built_in_function.
8731 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8732 * ipa-split.c (split_function): Likewise.
8733 * langhooks.c (add_builtin_function_common): Likewise.
8734 * omp-simd-clone.c (simd_clone_create): Likewise.
8735 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8736 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8737 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8738 DECL_FUNCTION_CODE.
8739 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8740 instead of DECL_FUNCTION_CODE.
8741 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8742 instead of DECL_FUNCTION_CODE.
8743 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8744 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8745 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8746 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8747 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8748 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8749 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8750 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8751 (alpha_gimple_fold_builtin): Likewise.
8752 * config/arc/arc.c (arc_expand_builtin): Likewise.
8753 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8754 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8755 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8756 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8757 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8758 * config/frv/frv.c (frv_expand_builtin): Likewise.
8759 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8760 (gcn_expand_builtin): Likewise.
8761 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8762 (fold_builtin_cpu): Likewise.
8763 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8764 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8765 (ix86_gimple_fold_builtin): Likewise.
8766 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8767 (ia64_expand_builtin): Likewise.
8768 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8769 * config/mips/mips.c (mips_expand_builtin): Likewise.
8770 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8771 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8772 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8773 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8774 * config/pa/pa.c (pa_expand_builtin): Likewise.
8775 * config/pru/pru.c (pru_expand_builtin): Likewise.
8776 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8777 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8778 Likewise.
8779 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8780 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8781 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8782 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8783 (rs6000_builtin_reciprocal): Likewise.
8784 * config/rx/rx.c (rx_expand_builtin): Likewise.
8785 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8786 * config/s390/s390.c (s390_expand_builtin): Likewise.
8787 * config/sh/sh.c (sh_expand_builtin): Likewise.
8788 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8789 (sparc_fold_builtin): Likewise.
8790 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8791 * config/spu/spu.c (spu_expand_builtin): Likewise.
8792 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8793 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8794 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8795 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8796 (xtensa_expand_builtin): Likewise.
8797
8798 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8799
8800 PR middle-end/91421
8801 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8802 before the DECL_FUNCTION_CODE.
8803 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8804 to check for a BUILT_IN_ALLOCA call.
8805 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8806 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8807 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8808 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8809 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8810 for BUILT_IN_NORMAL functions.
8811 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8812 test for BUILT_IN_TM_ABORT.
8813 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8814 to check for a BUILT_IN_STACK_RESTORE call.
8815 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8816 * tree-ssa-threadedge.c
8817 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8818 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8819 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8820 test for a BUILT_IN_NORMAL call instead of a negative test for
8821 an internal function call.
8822
8823 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8824
8825 * tree.h (build_vector_a_then_b): Declare.
8826 * tree.c (build_vector_a_then_b): New function.
8827 * fold-const-call.c (fold_while_ult): Likewise.
8828 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8829 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8830 (aarch64_svpattern): New enum.
8831 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8832 constants through aarch64_expand_mov_immediate.
8833 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8834 than general_operand as the predicate for operand 1.
8835 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8836 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8837 insn_type.
8838 (simd_immediate_info::simd_immediate_info): New overload that
8839 takes a scalar_int_mode and an svpattern.
8840 (simd_immediate_info::u): Add a "pattern" field.
8841 (svpattern_token): New function.
8842 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8843 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8844 (aarch64_sve_move_pred_via_while): New functions.
8845 (aarch64_expand_mov_immediate): Try using
8846 aarch64_sve_move_pred_via_while for predicates that contain N ones
8847 followed by M zeros but that do not correspond to a VLnnn pattern.
8848 (aarch64_sve_pred_valid_immediate): New function.
8849 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8850 with PTRUE and PFALSE.
8851 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8852 forms.
8853
8854 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8855
8856 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8857 flag.
8858 (darwin_override_options): Likewise.
8859 * config/darwin.h: Likewise.
8860 * config/darwin.opt: Likewise.
8861 * config/i386/i386.c (output_pic_addr_const): Likewise.
8862 * config/rs6000/darwin.h: Likewise.
8863 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8864 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8865 ... this TARGET_MACHO_SYMBOL_STUBS.
8866 (FUNCTION_PROFILER):Likewise.
8867 * config/i386/i386.h: Likewise.
8868
8869 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8870
8871 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8872 <case E_V2SImode>: Use vec_extr path for
8873 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8874 <case E_V8QImode>: Ditto.
8875 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8876 Use SWI48 mode iterator. Use %k to output operand 0.
8877 (*mmx_pextrw): New insn pattern.
8878 (*mmx_pextrb): Ditto.
8879 (*mmx_pextrb_zext): Ditto.
8880
8881 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8882
8883 * target.def (libc_has_function, libc_has_fast_function): Improve
8884 documentation strings.
8885 * doc/tm.texi: Regenerate.
8886
8887 2019-08-13 Caroline Tice <cmtice@google.com>
8888
8889 PR other/91396
8890 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8891 vtv_end.o or vtv_end_preinit.o files if !static.
8892
8893 2019-08-13 Olivier Hainque <hainque@adacore.com>
8894
8895 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8896
8897 2019-08-13 Olivier Hainque <hainque@adacore.com>
8898
8899 * rtlanal.c (tablejump_casesi_pattern): New function, to
8900 determine if a tablejump insn is a casesi dispatcher. Extracted
8901 from patch_jump_insn.
8902 * rtl.h (tablejump_casesi_pattern): Declare.
8903 * cfgrtl.c (patch_jump_insn): Use it.
8904 * dwarf2cfi.c (create_trace_edges): Use it.
8905
8906 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8907
8908 PR target/81800
8909 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8910 operand is larger than a long int.
8911
8912 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8913
8914 * machmode.h (opt_mode::else_mode): New function.
8915 (opt_mode::else_blk): Use it.
8916 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8917 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8918 (aarch64_gen_stepped_int_parallel): Likewise.
8919 (aarch64_stepped_int_parallel_p): Likewise.
8920 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8921 argument.
8922 * config/aarch64/aarch64.c
8923 (aarch64_expand_sve_widened_duplicate): Delete.
8924 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8925 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8926 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8927 argument. Use early returns in the !CONST_INT_P handling.
8928 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8929 than handling some inline.
8930 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8931 from...
8932 (aarch64_simd_container_mode): ...here.
8933 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8934 (aarch64_sve_ld1rq_operand_p): New functions.
8935 * config/aarch64/predicates.md (descending_int_parallel)
8936 (aarch64_sve_ld1rq_operand): New predicates.
8937 * config/aarch64/constraints.md (UtQ): New constraint.
8938 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8939 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8940 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8941 (@aarch64_sve_reinterpret<mode>): New expander.
8942 (*aarch64_sve_reinterpret<mode>): New pattern.
8943 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8944 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8945 (*sve_ld1rq<Vesize>): Replace with...
8946 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8947
8948 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8949
8950 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8951 16:12.
8952
8953 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8954
8955 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8956 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8957 (msp430_check_path_for_devices): New.
8958 (parse_devices_csv_1): New.
8959 (parse_devices_csv): New.
8960 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8961 MCU data in devices.csv before using the hard-coded data.
8962 Warn if devices.csv isn't found and the MCU wasn't found in the
8963 hard-coded data either.
8964 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8965 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8966 Search for devices.csv on -I and -L paths.
8967 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8968 msp430_set_driver_var.
8969 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8970 -mdevices-csv-loc=.
8971 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8972 searched for devices.csv.
8973 (mwarn-devices-csv): Document option.
8974
8975 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8976
8977 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8978 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8979 Use a single Dn alternative instead of separate Dz and Dm
8980 alternatives. Use aarch64_output_sve_move_immediate.
8981 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8982 function.
8983 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8984 for predicates too.
8985 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8986 (aarch64_output_ptrue): Delete.
8987
8988 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8989
8990 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8991 INDEX.
8992 (simd_immediate_info::value, simd_immediate_info::step)
8993 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8994 with...
8995 (simd_immediate_info::u): ...this new union.
8996 (simd_immediate_info::simd_immediate_info): Update accordingly.
8997 (aarch64_output_simd_mov_immediate): Likewise.
8998 (aarch64_output_sve_mov_immediate): Likewise.
8999
9000 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9001
9002 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
9003 extra_gcc_objs.
9004 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
9005 (msp430_select_cpu): New spec function.
9006 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
9007 MCU data.
9008 * config/msp430/msp430-devices.c: New file.
9009 * config/msp430/msp430-devices.h: New file.
9010 * config/msp430/msp430.c: Remove msp430_mcu_data.
9011 (msp430_option_override): Use msp430_extract_mcu_data to extract
9012 MCU data.
9013 (msp430_use_f5_series_hwmult): Likewise.
9014 (use_32bit_hwmult): Likewise.
9015 (msp430_no_hwmult): Likewise.
9016 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
9017 assembler.
9018 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
9019 and -mcpu option.
9020 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
9021 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
9022 Remove hard-coded MCU multilib data.
9023
9024 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9025
9026 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
9027 based on the mode instead of testing properties of it.
9028
9029 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9030
9031 * doc/md.texi: Document the x and y constraints for AArch64.
9032 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
9033 (FP_LO8_REGS): New reg_class.
9034 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
9035 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
9036 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
9037 * config/aarch64/predicates.md (aarch64_simd_register): Use
9038 FP_REGNUM_P instead of checking the classes manually.
9039 * config/aarch64/constraints.md (y): New constraint.
9040
9041 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9042
9043 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
9044 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
9045 * config/aarch64/aarch64-simd.md
9046 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
9047 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
9048 from the asm template.
9049 * config/aarch64/aarch64-sve.md
9050 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
9051 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
9052 from the asm template.
9053 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
9054 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
9055 from the asm template.
9056 * config/aarch64/aarch64-simd-builtins.def: Update comment.
9057
9058 2019-08-13 Martin Liska <mliska@suse.cz>
9059
9060 * value-prof.c (gimple_ic_transform): Add new line.
9061 Print details with MSG_NOTE.
9062
9063 2019-08-13 Martin Liska <mliska@suse.cz>
9064
9065 * doc/invoke.texi: Document automatic detection of jobserver.
9066 * lto-wrapper.c (run_gcc): Detect jobserver always.
9067
9068 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9069
9070 * config/i386/i386-expand.c (ix86_expand_vector_set)
9071 <case E_V2SImode>: Use vec_merge path for
9072 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9073 <case E_V8QImode>: Ditto.
9074 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
9075 (*mmx_pinsrb): Ditto.
9076
9077 2019-08-12 Jakub Jelinek <jakub@redhat.com>
9078
9079 PR target/83250
9080 PR target/91340
9081 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
9082 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
9083 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
9084 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
9085 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
9086
9087 2019-08-12 Richard Biener <rguenther@suse.de>
9088
9089 PR lto/91375
9090 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
9091 flag_devirtualize.
9092
9093 2019-08-12 Richard Biener <rguenther@suse.de>
9094
9095 PR driver/91130
9096 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
9097 lang_mask option, always use CL_DRIVER.
9098 (get_options_from_collect_gcc_options): Adjust.
9099 (find_and_merge_options): Likewise.
9100 (run_gcc): Likewise.
9101
9102 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9103
9104 * ipa-predicate.c (add_condition): Restore inverted test.
9105
9106 2019-08-10 Jakub Jelinek <jakub@redhat.com>
9107
9108 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
9109 (enum omp_clause_device_type_kind): New enum.
9110 (struct tree_omp_clause): Add subcode.device_type_kind.
9111 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
9112 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9113 for device_type clause.
9114 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
9115 * tree-pretty-print.c (dump_omp_clause): Likewise.
9116
9117 PR target/91408
9118 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
9119 vector_operand.
9120
9121 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
9122
9123 * reload1.c (finish_spills): Do not check ira_conflicts_p when
9124 handling spilled pseudos.
9125
9126 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9127
9128 PR target/91386
9129 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
9130 to preserve the contents of the original insns.
9131
9132 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9133
9134 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
9135 (addsi3_compare_op2): Likewise.
9136
9137 2019-08-09 Martin Liska <mliska@suse.cz>
9138
9139 * alias.c (alias_ptr_types_compatible_p): Strengten
9140 type comparison in LTO mode.
9141
9142 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
9143
9144 PR middle-end/90313
9145 * tree-tailcall.c (find_tail_calls): Reject calls that might
9146 read from an escaped RESULT_DECL.
9147
9148 2019-08-09 Martin Liska <mliska@suse.cz>
9149
9150 * doc/invoke.texi: Document the option value.
9151 * lto-wrapper.c (run_gcc): Set auto_parallel
9152 only with -flto=auto.
9153
9154 2019-08-09 Martin Liska <mliska@suse.cz>
9155
9156 * opts.c (common_handle_option): Error for an invalid argument
9157 to -flto=.
9158
9159 2019-08-09 Martin Liska <mliska@suse.cz>
9160
9161 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9162 use dump_printf to report optimization.
9163 (sem_variable::merge): Likwise.
9164 (sem_item_optimizer::merge_classes): Use dump_printf to report
9165 ICF hits.
9166
9167 2019-08-09 Martin Liska <mliska@suse.cz>
9168
9169 * value-prof.c (gimple_divmod_fixed_value_transform):
9170 Use dump_printf_loc.
9171 (gimple_mod_pow2_value_transform): Likewise.
9172 (gimple_mod_subtract_transform): Likewise.
9173 (init_node_map): Likewise.
9174 (gimple_ic_transform): Likewise.
9175 (gimple_stringops_transform): Likewise.
9176
9177 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9178
9179 * doc/extend.texi: Add const qualifier to ld intrinsics.
9180
9181 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9182
9183 * config/rs6000/dfp.md (D64_D128): Rename to ...
9184 (DDTD): ... this, throughout.
9185 (dfp_suffix): Rename to ...
9186 (q): ... this, throughout.
9187
9188 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9189
9190 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9191 (dfp_suffix): Ditto.
9192 (adddd3, addtd3): Merge to ...
9193 (add<mode>3 for D64_D128): ... this.
9194 (subdd3, subtd3): Merge to ...
9195 (sub<mode>3 for D64_D128): ... this.
9196 (muldd3, multd3): Merge to ...
9197 (mul<mode>3 for D64_D128): ... this.
9198 (divdd3, divtd3): Merge to ...
9199 (div<mode>3 for D64_D128): ... this.
9200 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9201 (*cmp<mode>_internal1 for D64_D128): ... this.
9202 (ftruncdd2, ftrunctd2): Merge to ...
9203 (ftrunc<mode>2 for D64_D128): ... this.
9204 (fixdddi2, fixtddi2): Merge to ...
9205 (fix<mode>di2 for D64_D128): ... this.
9206
9207 2019-08-08 Jim Wilson <jimw@sifive.com>
9208
9209 PR target/91229
9210 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9211 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9212 Pass into recursive call.
9213 (riscv_flatten_aggregate_argument): New arg. Pass to
9214 riscv_flatten_aggregate_field.
9215 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9216 riscv_flatten_aggregate_argument twice, with false and true as last
9217 arg. Process result twice. Compare results and warn if different.
9218 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9219
9220 2019-08-08 Martin Liska <mliska@suse.cz>
9221
9222 PR bootstrap/91352
9223 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9224 * lto-wrapper.c (jobserver_active_p): Likewise.
9225
9226 2019-08-08 Martin Liska <mliska@suse.cz>
9227
9228 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9229 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9230 (create_version_clone_with_body): Likewise.
9231
9232 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9233
9234 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9235 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9236 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9237 GOVD_EXPLICIT flags.
9238 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9239 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9240 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9241 call install_var_field with mask 11 instead of 3.
9242 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9243 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9244
9245 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9246
9247 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9248 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9249
9250 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9251
9252 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9253 MOVPRFX alternatives. Make the GPR alternatives more expensive
9254 than the FPR ones.
9255
9256 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9257
9258 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9259 Disparage the GPR alternative relative to the FPR one.
9260 Fix handling of 8-bit and 16-bit FPR values.
9261
9262 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9263
9264 * config/aarch64/iterators.md (BITWISEV): Delete.
9265 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9266 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9267 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9268 UNSPEC_FMINNMV, UNSPEC_FMINV.
9269 (bit_reduc_op): Delete.
9270 (sve_int_op): New int attribute.
9271 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9272 UNSPEC_FMINNMV, UNSPEC_FMINV.
9273 * config/aarch64/aarch64-sve.md
9274 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9275 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9276 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9277 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9278 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9279 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9280 new patterns.
9281 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9282 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9283 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9284 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9285 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9286 new patterns.
9287
9288 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9289
9290 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9291 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9292 (fms<mode>4, *fms<mode>4): Replace with...
9293 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9294 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9295 Use unspecs instead of rtx codes.
9296 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9297 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9298
9299 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9300
9301 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9302 int iterator.
9303 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9304 * config/aarch64/aarch64-sve.md
9305 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9306 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9307 use a single unspec for the rhs.
9308 (*<su><maxmin><mode>3): Delete.
9309 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9310
9311 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9312
9313 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9314 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9315 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9316 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9317 (optab, sve_fp_op): Handle them.
9318 (SVE_FP_UNARY): Delete.
9319 (optab): Remove sqrt entry.
9320 (sve_fp_op): Remove neg, abs and sqrt entries.
9321 (SVE_COND_FP_UNARY): New int iterator.
9322 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9323 (*<frint_pattern><mode>2): Delete.
9324 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9325 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9326 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9327 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9328
9329 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9330
9331 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9332
9333 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9334
9335 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9336 (UNSPEC_COND_FADD): ...this.
9337 (UNSPEC_COND_SUB): Rename to...
9338 (UNSPEC_COND_FSUB): ...this.
9339 (UNSPEC_COND_MUL): Rename to...
9340 (UNSPEC_COND_FMUL): ...this.
9341 (UNSPEC_COND_DIV): Rename to...
9342 (UNSPEC_COND_FDIV): ...this.
9343 (UNSPEC_COND_MAX): Rename to...
9344 (UNSPEC_COND_FMAXNM): ...this.
9345 (UNSPEC_COND_MIN): Rename to...
9346 (UNSPEC_COND_FMINNM): ...this.
9347 (UNSPEC_COND_LT): Rename to...
9348 (UNSPEC_COND_FCMLT): ...this.
9349 (UNSPEC_COND_LE): Rename to...
9350 (UNSPEC_COND_FCMLE): ...this.
9351 (UNSPEC_COND_EQ): Rename to...
9352 (UNSPEC_COND_FCMEQ): ...this.
9353 (UNSPEC_COND_NE): Rename to...
9354 (UNSPEC_COND_FCMNE): ...this.
9355 (UNSPEC_COND_GE): Rename to...
9356 (UNSPEC_COND_FCMGE): ...this.
9357 (UNSPEC_COND_GT): Rename to...
9358 (UNSPEC_COND_FCMGT): ...this.
9359 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9360 (sve_fp_op_rev): Update accordingly.
9361 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9362
9363 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9364
9365 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9366 banner comments.
9367 * config/aarch64/check-sve-md.awk: New file.
9368 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9369 (insn-conditions.md): Depend on it.
9370
9371 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9372
9373 PR target/91385
9374 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9375 (*negsi2_cmpz_zext): Ditto.
9376
9377 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9378
9379 * config/aarch64/iterators.md (commutative): Remove.
9380
9381 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9382
9383 PR driver/91130
9384 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9385 processing COLLECT_GCC_OPTIONS.
9386 (run_gcc): Likewise.
9387
9388 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9389
9390 PR tree-optimization/91109
9391 * lra-remat.c (update_scratch_ops): Remove assignment of the
9392 hard register.
9393
9394 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9395
9396 * data-streamer.h (streamer_write_poly_uint64): Declare.
9397 (streamer_read_poly_uint64): Likewise.
9398 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9399 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9400 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9401 (add_condition): Take a poly_int64 size.
9402 * ipa-predicate.c (add_condition): Likewise.
9403 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9404 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9405 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9406 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9407 condition::size as a poly_int64.
9408 (unmodified_parm_1): Take a poly_int64 size pointer.
9409 (unmodified_parm): Likewise.
9410 (unmodified_parm_or_parm_agg_item): Likewise.
9411 (set_cond_stmt_execution_predicate): Update accordingly.
9412 (set_switch_stmt_execution_predicate): Likewise.
9413 (will_be_nonconstant_expr_predicate): Likewise.
9414 (will_be_nonconstant_predicate): Likewise.
9415 (inline_read_section): Stream condition::size as a poly_int.
9416 (ipa_fn_summary_write): Likewise.
9417
9418 2019-08-07 Martin Liska <mliska@suse.cz>
9419
9420 * fold-const.c (twoval_comparison_p): Replace int
9421 with bool as a return type.
9422 (simple_operand_p): Likewise.
9423 (operand_equal_p): Replace int with bool as a return type.
9424 * fold-const.h (operand_equal_p): Likewise.
9425
9426 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9427
9428 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9429 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9430 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9431 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9432 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9433 * tree-pretty-print.c (dump_omp_clause): Likewise.
9434 * tree-nested.c (convert_nonlocal_omp_clauses,
9435 convert_local_omp_clauses): Likewise.
9436 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9437 Likewise.
9438 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9439 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9440 clause with array or reference to array types, no matter what type
9441 except for reference it has.
9442
9443 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9444
9445 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9446
9447 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9448
9449 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9450 (arch_canonicalize): Support rv32g and rv64g and fix error
9451 handling.
9452
9453 2019-08-06 Martin Liska <mliska@suse.cz>
9454
9455 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9456 and DECL_IS_OPERATOR_DELETE_P.
9457
9458 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9459
9460 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9461 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9462 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9463 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9464 (gimplify_omp_for): Don't do C++ random access iterator clause
9465 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9466 don't predetermine the artificial iterator in case of C++ random
9467 access iterators as lastprivate, but private. For OMP_LOOP, force
9468 bind expr around simd body and force for_pre_body before the
9469 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9470 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9471 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9472 diff var of C++ random access iterators. Handle
9473 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9474 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9475 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9476 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9477 * omp-low.c (lower_rec_input_clauses): For
9478 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9479 variables instead of default constructing them.
9480 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9481 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9482 is_taskloop_ctx check from the assert to the guarding condition.
9483
9484 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9485
9486 * config/riscv/multilib-generator: (canonical_order): New.
9487 (arch_canonicalize): Dito.
9488 Apply arch_canonicalize for alts.
9489
9490 2019-08-05 Martin Sebor <msebor@redhat.com>
9491
9492 * doc/extend.texi (Common Variable Attributes): Document alias
9493 attribute.
9494
9495 2019-08-05 Marek Polacek <polacek@redhat.com>
9496
9497 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9498 * doc/invoke.texi: Document -Wcomma-subscript.
9499
9500 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9501
9502 * tree-core.h (tree_function_decl): Make function_code an
9503 independent field. Group the remaining bitfields into bytes
9504 and move decl_type so that it contines to be at a byte boundary.
9505 Leave 12 bits for future expansion.
9506
9507 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9508
9509 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9510 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9511 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9512 IFN_MASK_STORE.
9513
9514 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9515
9516 * gimple.h (gimple_move_vops): Declare.
9517 * gimple.c (gimple_move_vops): New function
9518 * gimple-fold.c (replace_call_with_call_and_fold)
9519 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9520 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9521 (gimple_fold_call): Use it.
9522 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9523 * tree-call-cdce.c (use_internal_fn): Likewise.
9524 * tree-if-conv.c (predicate_load_or_store): Likewise.
9525 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9526 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9527 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9528 (update_call_from_tree): Likewise.
9529 * tree-vect-stmts.c (vectorizable_load): Likewise.
9530 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9531
9532 2019-08-05 Martin Liska <mliska@suse.cz>
9533
9534 PR c++/91334
9535 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9536 with not arguments.
9537 (eliminate_unnecessary_stmts): Likewise.
9538
9539 2019-08-05 Richard Biener <rguenther@suse.de>
9540
9541 PR middle-end/91169
9542 * fold-const.c (get_array_ctor_element_at_index): Create
9543 offset_ints according to the sign of the index type and treat
9544 that as signed if it is obviously so.
9545
9546 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9547
9548 PR target/91341
9549 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9550 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9551 _mm256_storeu2_m128i): New function.
9552
9553 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9554
9555 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9556 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9557
9558 2019-08-05 Alan Modra <amodra@gmail.com>
9559
9560 PR target/91349
9561 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9562 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9563
9564 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9565
9566 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9567 bug that was fixed in Tcl 8.6.1.
9568
9569 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9570
9571 * config/rs6000/future.md: New file.
9572 * config/rs6000/rs6000.md: Include future.md.
9573 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9574
9575 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9576
9577 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9578 check to use targetm.slow_unaligned_access instead.
9579
9580 * function.c (assign_param_data_one): Remove unused data members.
9581
9582 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9583
9584 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9585 build_distinct_type_copy.
9586 (simd_clone_adjust_argument_types): Ditto.
9587 (simd_clone_adjust): Call build_distinct_type_copy here.
9588 (expand_simd_clones): Ditto.
9589
9590 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9591
9592 PR target/91201
9593 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9594
9595 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9596
9597 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9598 from 'const void *'.
9599 (sort_locs_in_loop_postorder_cmp): Likewise.
9600
9601 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9602
9603 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9604 (hot-bb-count-ws-permille): Likewise.
9605 (hot-bb-frequency-fraction): Likewise.
9606 (unlikely-bb-count-fraction): Likewise.
9607 * params.def (hot-bb-count-fraction): Rework description.
9608 (hot-bb-count-ws-permille): Likewise.
9609 (hot-bb-frequency-fraction): Likewise.
9610 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9611 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9612
9613 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9614
9615 PR target/91323
9616 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9617 Return false.
9618
9619 2019-08-02 Richard Biener <rguenther@suse.de>
9620
9621 * vec.h (vec::sort): Add gcc_qsort_r support.
9622 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9623 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9624 to gcc_qsort_r style callback.
9625 (sort_locs_in_loop_postorder_cmp): Likewise.
9626 (analyze_memory_references): Use gcc_sort_r interfaces.
9627 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9628
9629 2019-08-02 Martin Liska <mliska@suse.cz>
9630
9631 PR lto/91313
9632 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9633 to detect working job server.
9634 (driver::detect_jobserver): Test whether jobserver
9635 is active from GCC driver. That will prevent situation where
9636 GCC is invoked from a LD plugin and the linker already uses
9637 file descriptors suggested by make. That leads to a wrong
9638 detection.
9639 * gcc.h (driver): Add detect_jobserver.
9640 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9641 not scanning for --jobserver-auth prefix.
9642
9643 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9644
9645 PR tree-optimization/91201
9646 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9647 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9648 extraction.
9649
9650 2019-08-01 Martin Sebor <msebor@redhat.com>
9651
9652 PR c++/90947
9653 * tree.c (type_initializer_zero_p): Define.
9654 * tree.h (type_initializer_zero_p): New function.
9655
9656 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9657
9658 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9659
9660 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9661
9662 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9663 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9664 * predict.c (maybe_hot_count_p): Likewise.
9665 (maybe_hot_bb_p): Tweak comment.
9666 (maybe_hot_edge_p): Likewise.
9667 (probably_never_executed): Likewise. Minor tweak.
9668 (probably_never_executed_bb_p): Likewise.
9669 (unlikely_executed_edge_p): Likewise.
9670 (probably_never_executed_edge_p): Likewise.
9671 (optimize_function_for_size_p): Likewise.
9672 (optimize_function_for_speed_p): Likewise.
9673 (function_optimization_type): Likewise.
9674 (optimize_bb_for_size_p): Likewise.
9675 (optimize_bb_for_speed_p): Likewise.
9676 (bb_optimization_type): Likewise.
9677 (optimize_edge_for_size_p): Likewise.
9678 (optimize_edge_for_speed_p): Likewise.
9679 (optimize_insn_for_size_p): Likewise.
9680 (optimize_insn_for_speed_p): Likewise.
9681 (optimize_loop_for_size_p): Likewise.
9682 (optimize_loop_for_speed_p): Likewise.
9683 (optimize_loop_nest_for_speed_p): Likewise.
9684 (optimize_loop_nest_for_size_p): Likewise.
9685 (predictable_edge_p): Likewise.
9686 (handle_missing_profiles): Minor tweak.
9687
9688 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9689
9690 * config/rs6000/predicates.md (pcrel_external_address): Update
9691 comment.
9692
9693 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9694
9695 PR target/85693
9696 * config/i386/mmx.md (usadv8qi): New expander.
9697
9698 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9699
9700 PR c++/90590
9701 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9702 with reserved names that are in a system header.
9703
9704 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9705
9706 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9707 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9708 (*vec_extractv2si_0_zext): Ditto.
9709 (*vec_extractv2si_1): Add (rm,x) alternative.
9710 (*vec_extractv2si_1_zext): New insn pattern.
9711 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9712 insn constraint.
9713
9714 2019-08-01 Richard Biener <rguenther@suse.de>
9715
9716 * domwalk.c (bb_postorder): Remove static variable.
9717 (cmp_bb_postorder): Adjust.
9718 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9719 (dom_walker::walk): Adjust.
9720
9721 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9722
9723 * sort.cc (sort_r_ctx): New struct.
9724 (reorder23): Make templated on context type.
9725 (reorder45): Ditto.
9726 (cmp1): Ditto. Adjust signature.
9727 (netsort): Ditto.
9728 (mergesort): Ditto.
9729 [CHECKING_P] (cmp2to3): New static function. Use it...
9730 (gcc_qsort) [CHECKING_P]: ...here.
9731 (gcc_sort_r): New function.
9732 * system.h (sort_r_cmp_fn): New function typedef.
9733 (qsort_chk): Adjust signature.
9734 (gcc_sort_r): Declare.
9735 * vec.c (qsort_chk_error): Adjust.
9736 (qsort_chk): Adjust.
9737
9738 2019-08-01 Richard Biener <rguenther@suse.de>
9739
9740 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9741 (compute_antic): Localize it here.
9742
9743 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9744
9745 * common/config/riscv/riscv-common.c: Check -march string ends
9746 with null.
9747
9748 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9749
9750 * ipa-devirt.c (type_warning_cmp): Make static.
9751 (decl_warning_cmp): Ditto.
9752
9753 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9754
9755 PR target/91050
9756 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9757 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9758 use of deleted rs6000_dejagnu_cpu_index variable.
9759 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9760 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9761 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9762 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9763 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9764 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9765
9766 2019-07-31 Richard Biener <rguenther@suse.de>
9767
9768 PR tree-optimization/91280
9769 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9770 Decompose MEM_REF manually for offset handling.
9771
9772 2019-07-31 Richard Biener <rguenther@suse.de>
9773
9774 PR tree-optimization/91293
9775 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9776 of reduction stmts.
9777
9778 2019-07-31 Matt Thomas <matt@3am-software.com>
9779 Nick Hudson <nick@nthcliff.demon.co.uk>
9780 Matthew Green <mrg@eterna.com.au>
9781 Maya Rashish <coypu@sdf.org>
9782
9783 * config.gcc (hppa*-*-netbsd*): New target.
9784 * config/pa/pa-netbsd.h: New file.
9785 * config/pa/pa32-netbsd.h: New file.
9786
9787 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR tree-optimization/91201
9790 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9791
9792 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9793
9794 * config/gcn/gcn-valu.md
9795 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9796 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9797 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9798 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9799 struct ilist. Add nops for delayeduse insns.
9800 * config/gcn/gcn.md (delayeduse): New attribute.
9801 (*movbi): Remove s_waitcnt from stores.
9802 (*mov<mode>_insn): Likewise.
9803 (*movti_insn): Likewise. Add delayeduse attribute.
9804 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9805 (atomic_store<mode>): Remove or adjust s_waitcnt.
9806
9807 2019-07-31 Richard Biener <rguenther@suse.de>
9808
9809 * vr-values.h (vr_values::swap_vr_value): New.
9810 (vr_values::free_value_range): likewise.
9811 * vr-values.c (vr_values::swap_vr_value): Implement.
9812 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9813 Do not return a range or take a var.
9814 (evrp_range_analyzer::stack): Change back to recording a non-const
9815 value_range *.
9816 * gimple-ssa-evrp-analyze.c
9817 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9818 value-range.
9819 (evrp_range_analyzer::pop_to_marker): Adjust.
9820 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9821 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9822 no longer needed value-range.
9823
9824 2019-07-31 Martin Liska <mliska@suse.cz>
9825
9826 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9827 have size and (or) alignment as 2nd and later arguments.
9828 Mark all of them as necessary.
9829
9830 2019-07-31 Richard Biener <rguenther@suse.de>
9831
9832 PR tree-optimization/91178
9833 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9834 Use tail-recursion.
9835
9836 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9837
9838 PR tree-optimization/91201
9839 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9840 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9841 TARGET_AVX512F.
9842 (reduc_plus_scal_<mode>): Improve formatting by introducing
9843 a temporary.
9844
9845 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9846
9847 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9848 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9849 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9850 (aarch64_init_tme_builtins): New.
9851 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9852 (aarch64_expand_builtin_tme): New.
9853 (aarch64_expand_builtin): Handle TME builtins.
9854 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9855 __ARM_FEATURE_TME when enabled.
9856 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9857 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9858 (TARGET_TME): New.
9859 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9860 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9861 UNSPECV_TCANCEL.
9862 (tstart, ttest, tcommit, tcancel): New instructions.
9863 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9864 (__tcancel, __ttest): New.
9865 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9866 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9867 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9868 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9869 * config/arm/types.md: Add new tme type attr.
9870 * doc/invoke.texi: Document "tme".
9871
9872 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9873
9874 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9875 warn_unused_result attribute.
9876 (cmse_check_address_range): Add warn_unused_result attribute.
9877
9878 2019-07-31 Richard Biener <rguenther@suse.de>
9879
9880 PR tree-optimization/91257
9881 * tree-vrp.c (union_ranges): Unify equality and less tests
9882 by using compare_values. Re-order cheap tests first.
9883
9884 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9885
9886 PR middle-end/91301
9887 * gimplify.c (gimplify_omp_for): If for class iterator on
9888 distribute parallel for there is no data sharing clause
9889 on inner_for_stmt, look for private clause on combined
9890 parallel too and if found, move it to inner_for_stmt.
9891
9892 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9893
9894 * lra-int.h (lra_operand_data): Remove early_clobber field.
9895 (lra_insn_reg): Likewise.
9896 * lra.c (debug_operand_data): Update accordingly.
9897 (setup_operand_alternative): Likewise.
9898 (new_insn_reg): Likewise. Remove early_clobber parameter.
9899 (collect_non_operand_hard_regs): Update call accordingly.
9900 Don't assign to lra_insn_reg::early_clobber.
9901 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9902 and update calls to new_insn_reg.
9903 (lra_update_insn_regno_info): Update calls accordingly.
9904 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9905 alternative number as a parameter and test whether the operand
9906 is earlyclobbered in that particular alternative.
9907 (process_alt_operands): Update call accordingly. Use per-alternative
9908 checks for earyclobber here too.
9909 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9910 against zero for IRA_UNKNOWN_ALT.
9911
9912 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9913
9914 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9915
9916 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9917
9918 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9919 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9920
9921 2019-07-30 Martin Liska <mliska@suse.cz>
9922
9923 PR ipa/89330
9924 * cgraph.c (cgraph_edge::make_direct): Use
9925 edge->indirect_unknown_callee as edge->resolve_speculation can
9926 deallocate edge which is this pointer.
9927
9928 2019-07-30 Richard Biener <rguenther@suse.de>
9929
9930 PR tree-optimization/91257
9931 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9932
9933 2019-07-30 Martin Liska <mliska@suse.cz>
9934
9935 * doc/invoke.texi: Document new behavior.
9936 * lto-wrapper.c (cpuset_popcount): New function
9937 is a copy of libgomp/config/linux/proc.c.
9938 (init_num_threads): Likewise.
9939 (run_gcc): Automatically detect core count for -flto.
9940 (jobserver_active_p): New function.
9941
9942 2019-07-30 Richard Biener <rguenther@suse.de>
9943
9944 PR tree-optimization/91257
9945 * bitmap.h (bitmap_ior_into_and_free): Declare.
9946 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9947 whether to add the unliked element to the freelist.
9948 (bitmap_list_insert_element_after): Add defaulted param for
9949 an already allocated element.
9950 (bitmap_ior_into_and_free): New function.
9951 * tree-ssa-structalias.c (condense_visit): Reduce the
9952 ponts-to and edge bitmaps of the SCC members in a
9953 logarithmic fashion rather than all to one.
9954
9955 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9956
9957 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9958 parameter. When nonnull, make sure that the addition or subtraction
9959 has the same condition.
9960 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9961 for CFN_COND_MUL too.
9962
9963 2019-07-30 Richard Biener <rguenther@suse.de>
9964
9965 PR tree-optimization/91291
9966 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9967 constant values.
9968
9969 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9970
9971 PR middle-end/91216
9972 * omp-low.c (global_nonaddressable_vars): New variable.
9973 (use_pointer_for_field): For global decls, if they are non-addressable,
9974 remember it in the global_nonaddressable_vars bitmap, if they are
9975 addressable and in the global_nonaddressable_vars bitmap, ignore their
9976 TREE_ADDRESSABLE bit.
9977 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9978 vars in global_nonaddressable_vars bitmap.
9979 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9980
9981 PR target/91150
9982 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9983 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9984 comparison to unsigned HOST_WIDE_INT before shifting it left.
9985
9986 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9987
9988 * config/i386/i386.md (movstrict<mode>): Use register_operand
9989 predicate for operand 0. Add expander condition. Assert that
9990 operand 0 is a SUBREG RTX.
9991 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9992 Update operand constraints and insn condition.
9993 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9994 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9995 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9996 Update operand 0 constraints.
9997 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9998
9999 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10000
10001 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
10002 when -m{code,data}-region are used without -mlarge.
10003 * config/msp430/msp430.c (msp430_option_override): Error when a
10004 non-default code or data region is used without -mlarge.
10005 (msp430_section_attr): Emit a warning and do not add upper/lower/either
10006 attributes when they are used without -mlarge.
10007
10008 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10009
10010 PR target/70320
10011 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
10012
10013 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10014
10015 PR middle-end/91242
10016 * wide-int.h (generic_wide_int::sext_elt): New function.
10017 * inchash.h (hash::add_wide_int): Use it instead of elt.
10018
10019 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10020
10021 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
10022 CODE_FOR_arm_##.
10023 * config/arm/arm.md (<crc_variant>): Rename to...
10024 (arm_<crc_variant>): ... This.
10025 (<cdp>): Rename to...
10026 (arm_<cdp>): ... This.
10027 (<ldc>): Rename to...
10028 (arm_<ldc>): ... This.
10029 (<stc>): Rename to...
10030 (arm_<stc>): ... This.
10031 (<mcr>): Rename to...
10032 (arm_<mcr>): ... This.
10033 (<mrc>): Rename to...
10034 (arm_<mrc>): ... This.
10035 (<mcrr>): Rename to...
10036 (arm_<mcrr>): ... This.
10037 (<mrrc>): Rename to...
10038 (arm_<mrrc>): ... This.
10039
10040 2019-07-29 Richard Biener <rguenther@suse.de>
10041
10042 PR tree-optimization/91257
10043 * tree-ssa-sccvn.h (struct vn_avail): New.
10044 (struct vn_ssa_aux): Add avail member.
10045 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
10046 member, add m_avail_freelist one.
10047 (rpo_elim::~rpo_elim): Remove.
10048 (rpo_elim::eliminate_avail): Adjust to new avail tracking
10049 data structure.
10050 (rpo_elim::eliminate_push_avail): Likewise.
10051 (do_unwind): Likewise.
10052 (do_rpo_vn): Likewise.
10053
10054 2019-07-29 Richard Biener <rguenther@suse.de>
10055
10056 PR tree-optimization/91257
10057 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
10058 most cases, instead call compare_values which handles the
10059 symbolic ranges we handle specially.
10060 (compare_values_warnv): Do not call operand_less_p but open-code
10061 the effective fold calls. Avoid converting so much.
10062
10063 2019-07-29 Martin Liska <mliska@suse.cz>
10064
10065 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
10066 remove LHS of operator new call. It's handled latter.
10067
10068 2019-07-29 Richard Biener <rguenther@suse.de>
10069
10070 PR tree-optimization/91267
10071 * vr-values.c (vr_values::update_value_range): Add early return
10072 for effectively VARYING lattice entry.
10073
10074 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10075
10076 PR debug/86638
10077 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
10078 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
10079 necessary if keep_all_vdefs_p is true.
10080 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
10081 that keep_all_vdefs_p is false.
10082 (mark_all_reaching_defs_necessary): Likewise.
10083 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
10084
10085 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10086
10087 * common.opt (Og): Change the initial value of flag_dse to 0.
10088 * opts.c (default_options_table): Move OPT_ftree_dse from
10089 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
10090 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
10091 entry before the OPT_ftree_sra entry.
10092 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
10093 of flags disabled by Og.
10094
10095 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10096
10097 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
10098 variables for -Og.
10099
10100 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10101
10102 * doc/sourcebuild.texi (check-function-bodies): Document.
10103
10104 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10105
10106 * simplify-rtx.c (simplify_const_unary_operation): Fold a
10107 VEC_DUPLICATE of a fixed-length vector even if the result
10108 is variable-length. Likewise fold a duplicate of a
10109 variable-length vector if the variable-length vector is
10110 itself a duplicate of a fixed-length sequence.
10111 (test_vector_ops_duplicate): Test more cases.
10112
10113 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10114
10115 * vector-builder.h (vector_builder): Add a shape template parameter.
10116 (vector_builder::new_unary_operation): New function, generalizing
10117 the old tree_vector_builder function.
10118 (vector_builder::new_binary_operation): Likewise.
10119 (vector_builder::binary_encoded_nelts): Likewise.
10120 * int-vector-builder.h (int_vector_builder): Update template
10121 parameters to vector_builder.
10122 (int_vector_builder::shape_nelts): New function.
10123 * rtx-vector-builder.h (rtx_vector_builder): Update template
10124 parameters to vector_builder.
10125 (rtx_vector_builder::shape_nelts): New function.
10126 (rtx_vector_builder::nelts_of): Likewise.
10127 (rtx_vector_builder::npatterns_of): Likewise.
10128 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
10129 * tree-vector-builder.h (tree_vector_builder): Update template
10130 parameters to vector_builder.
10131 (tree_vector_builder::shape_nelts): New function.
10132 (tree_vector_builder::nelts_of): Likewise.
10133 (tree_vector_builder::npatterns_of): Likewise.
10134 (tree_vector_builder::nelts_per_pattern_of): Likewise.
10135 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
10136 (tree_vector_builder::new_binary_operation): Delete.
10137 (tree_vector_builder::binary_encoded_nelts): Likewise.
10138 * simplify-rtx.c: Include rtx-vector-builder.h.
10139 (distributes_over_addition_p): New function.
10140 (simplify_const_unary_operation)
10141 (simplify_const_binary_operation): Generalize handling of vector
10142 constants to include variable-length vectors.
10143 (test_vector_ops_series): Add more tests.
10144
10145 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
10146
10147 PR lto/91222
10148 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10149 than INDENTIFIER_POINTER.
10150
10151 2019-07-28 Martin Liska <mliska@suse.cz>
10152
10153 PR ipa/89330
10154 * cgraph.c (symbol_table::create_edge): Always allocate
10155 a cgraph_edge.
10156 (symbol_table::free_edge): Store summary_id to
10157 edge_released_summary_ids if != -1;
10158 * cgraph.h (NEXT_FREE_NODE): Remove.
10159 (SET_NEXT_FREE_NODE): Likewise.
10160 (NEXT_FREE_EDGE): Likewise.
10161 (symbol_table::release_symbol): Store summary_id to
10162 cgraph_released_summary_ids if != -1;
10163 (symbol_table::allocate_cgraph_symbol): Always allocate
10164 a cgraph_node.
10165
10166 2019-07-28 Alan Modra <amodra@gmail.com>
10167
10168 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10169 gen_sibcall.
10170
10171 2019-07-28 Alan Modra <amodra@gmail.com>
10172
10173 PR target/91135
10174 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10175 define.
10176 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10177 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10178 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10179
10180 2019-07-28 Alan Modra <amodra@gmail.com>
10181
10182 PR target/91050
10183 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10184 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10185 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10186 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10187 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10188 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10189 in asm_default spec.
10190 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10191 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10192
10193 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10194
10195 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10196
10197 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10198
10199 PR target/89517
10200 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10201 * config/aarch64/aarch64-option-extensions.def: Add new comments
10202 and restore easier to read options.
10203
10204 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10205
10206 * convert.c (convert_to_real_1): Move part of conversion code...
10207 * match.pd: ...To here.
10208
10209 2019-07-26 Martin Jambor <mjambor@suse.cz>
10210
10211 PR ipa/89330
10212 * ipa-inline-transform.c (check_speculations_1): New function.
10213 (push_all_edges_in_set_to_vec): Likewise.
10214 (check_speculations): Use check_speculations_1, new parameter
10215 new_edges.
10216 (inline_call): Pass new_edges to check_speculations.
10217 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10218 NULL.
10219 (speculation_useful_p): Early return true if edge is inlined, remove
10220 later checks for inline_failed.
10221
10222 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10223
10224 PR rtl-optimization/91223
10225 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10226 matching with INOUT operand.
10227
10228 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10229
10230 * stmt.c (expand_case): Try to narrow the index type if it's larger
10231 than a word. Tidy up.
10232
10233 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10234
10235 * cif-code.def (NEVER_CALL): New code.
10236 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10237 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10238
10239 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10240
10241 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10242 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10243
10244 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10245
10246 * ipa-devirt.c (add_type_duplicate): Fix return value.
10247
10248 2019-07-25 Richard Biener <rguenther@suse.de>
10249
10250 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10251 type parameter and use it instead of guessing expression
10252 type from the first operand.
10253 (extract_range_from_binary_expr): Pass expr_type down.
10254
10255 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10256
10257 * config/arm/arm.md (SATrev): Change to code attribute.
10258 (*satsi_<SAT:code>): Adjust for the above.
10259 (*satsi_<SAT:code>_shift): Likewise.
10260
10261 2019-07-25 Richard Biener <rguenther@suse.de>
10262
10263 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10264 Make value_range * temporary const.
10265 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10266 Likewise.
10267 (evrp_range_analyzer::record_ranges_from_): Likewise.
10268 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10269 deal with having recorded a const one.
10270 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10271 Return a const value_range *.
10272 (evrp_range_analyzer::pop_value_range): Likewise.
10273 (evrp_range_analyzer::stack): Record const value_range *s.
10274 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10275 Adjust.
10276 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10277 (format_integer): Likewise.
10278 (sprintf_dom_walker::handle_gimple_call): Likewise.
10279 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10280 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10281 (vrp_prop::get_value_range): Adjust.
10282 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10283 modifying the lattice in-place.
10284 (vrp_prop::visit_stmt): Likewise.
10285 * vr-values.c (vr_values::get_lattice_entry): New private method.
10286 (vr_values::get_value_range): Wrap it and return a const
10287 value_range *.
10288 (vr_values::set_def_to_varying): New.
10289 (vr_values::set_defs_to_varying): Use it.
10290 (vr_values::update_value_range): Likewise.
10291 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10292 (values::op_with_constant_singleton_va): Likewise.
10293 (vr_values::extract_range_for_var_from_co): Likewise.
10294 (vr_values::extract_range_from_ssa_name): Likewise.
10295 (vr_values::extract_range_from_cond_expr): Likewise.
10296 (vr_values::extract_range_basic): Likewise.
10297 (compare_ranges): Take const value_range *, adjust.
10298 (compare_range_with_value): Likewise.
10299 (vrp_valueize): Adjust.
10300 (vrp_valueize_1): Likewise.
10301 (vr_values::get_vr_for_comparison): Return a const value_range *.
10302 (vr_values::compare_name_with_value): Adjust.
10303 (vr_values::compare_names): Likewise.
10304 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10305 Likewise.
10306 (vr_values::vrp_evaluate_conditional): Likewise.
10307 (find_case_label_ranges): Take a const value_range *.
10308 (vr_values::vrp_visit_switch_stmt): Adjust.
10309 (vr_values::extract_range_from_phi_node): Likewise.
10310 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10311 (vr_values::simplify_abs_using_ranges): Likewise.
10312 (test_for_singularity): Take a const value_range *.
10313 (range_fits_type_p): Likewise.
10314 (vr_values::simplify_cond_using_ranges_1): Adjust.
10315 (vr_values::simplify_cond_using_ranges_2): Likewise.
10316 (vr_values::simplify_switch_using_ranges): Likewise.
10317 (vr_values::simplify_float_conversion_usi): Likewise.
10318 (vr_values::two_valued_val_range_p): Likewise.
10319 * vr-values.h (vr_values::get_value_range): Return a const
10320 value_range *.
10321 (vr_values::set_def_to_varying): New.
10322 (vr_values::get_lattice_entry): New private method.
10323 (vr_values::get_vr_for_comparison): Return a const value_range *.
10324
10325 2019-07-25 Martin Liska <mliska@suse.cz>
10326 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10327
10328 PR c++/23383
10329 * common.opt: Add -fallocation-dce
10330 * gimple.c (gimple_call_operator_delete_p): New.
10331 * gimple.h (gimple_call_operator_delete_p): Likewise.
10332 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10333 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10334 DECL_IS_OPERATOR_DELETE_P.
10335 (mark_all_reaching_defs_necessary_1): Likewise.
10336 (propagate_necessity): Likewise.
10337 (eliminate_unnecessary_stmts): Handle
10338 gimple_call_operator_delete_p.
10339 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10340 Add packing of OPERATOR_DELETE.
10341 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10342 Similarly here.
10343 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10344 (DECL_SET_IS_OPERATOR_DELETE): New.
10345 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10346
10347 2019-07-25 Martin Liska <mliska@suse.cz>
10348
10349 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10350 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10351 * coverage.c (coverage_begin_function): Likewise.
10352 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10353 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10354 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10355 (sem_item::hash_referenced_symbol_properties): Likewise.
10356 * lto-streamer-out.c (hash_tree): Likewise.
10357 * predict.c (expr_expected_value_1): Likewise.
10358 * tree-inline.c (expand_call_inline): Likewise.
10359 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10360 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10361 * tree-core.h (enum function_decl_type): New enum.
10362 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10363 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10364 (set_function_decl_type): Likewise.
10365 (DECL_IS_OPERATOR_NEW_P): New.
10366 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10367 (DECL_LAMBDA_FUNCTION): Likewise.
10368 (DECL_LAMBDA_FUNCTION_P): Likewise.
10369 (DECL_IS_OPERATOR_NEW): Remove.
10370 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10371
10372 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10373
10374 * ipa-profile.c (get_most_common_single_value): Use
10375 get_nth_most_common_value.
10376 * profile.c (sort_hist_value): New function.
10377 (compute_value_histograms): Call sort_hist_value to sort the
10378 values after loading from disk.
10379 * value-prof.c (get_most_common_single_value): Rename to ...
10380 get_nth_most_common_value. Add input params n, return
10381 the n_th value and count.
10382 (gimple_divmod_fixed_value_transform): Use
10383 get_nth_most_common_value.
10384 (gimple_ic_transform): Likewise.
10385 (gimple_stringops_transform): Likewise.
10386 * value-prof.h (get_most_common_single_value): Add input params
10387 n, default to 0.
10388
10389 2019-07-25 Richard Biener <rguenther@suse.de>
10390
10391 PR tree-optimization/91236
10392 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10393 size of CONSTRUCTOR write. Fix buffer size we pass to
10394 native_encode_expr.
10395
10396 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10397
10398 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10399 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10400 r273773.
10401
10402 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10403
10404 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10405 explicitly disabled with --disable-initfini-array.
10406
10407 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10408
10409 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10410 if-exists.
10411
10412 2019-07-24 Martin Sebor <msebor@redhat.com>
10413
10414 PR tree-optimization/91183
10415 PR tree-optimization/86688
10416 * builtins.c (compute_objsize): Handle MEM_REF.
10417 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10418 (get_min_string_length): Remove.
10419 (count_nonzero_bytes): New function.
10420 (handle_char_store): Rename...
10421 (handle_store): to this. Handle multibyte stores via integer types.
10422 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10423 function name.
10424
10425 2019-07-24 Martin Sebor <msebor@redhat.com>
10426
10427 PR driver/80545
10428 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10429 (diagnostic_report_diagnostic): Same.
10430 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10431 (diagnostic_context::lang_mask): New data member.
10432 * ipa-pure-const.c (suggest_attribute): Use
10433 lang_hooks.option_lang_mask ().
10434 * opts-common.c (option_enabled): Handle new argument.
10435 (get_option_state): Pass an additional argument.
10436 * opts.c (print_filtered_help): Print supported languages for
10437 unsupported options. Adjust printing of current state.
10438 * opts.h (option_enabled): Add argument.
10439 * toplev.c (print_switch_values): Use lang_mask.
10440 (general_init): Set global_dc->lang_mask.
10441
10442 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10443
10444 PR bootstrap/87030
10445 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10446
10447 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10448
10449 * cgraphunit.c (symbol_table::compile): Start and stop
10450 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10451 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10452
10453 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10454
10455 * gimplify.c (flag_instrument_functions_exclude_p): Include
10456 namespace/class information in the printable name.
10457 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10458 to tokens entered into the vector.
10459
10460 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10461
10462 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10463 (get_static_chain): Call it instead of build_simple_mem_ref.
10464 (get_frame_field): Likewise.
10465 (get_nonlocal_debug_decl): Likewise.
10466 (convert_nonlocal_reference_op): Likewise.
10467
10468 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10469
10470 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10471 declaration.
10472 (arc_compute_frame_size): Millicode is disabled when compiling
10473 ISR.
10474 (arc_return_address_register): Likewise.
10475 (arc_compute_function_type): Likewise.
10476 (arc_compute_frame_size): Likewise.
10477 (secondary_reload_info): Likewise.
10478 (arc_get_unalign): Likewise.
10479 (arc_can_use_return_insn): Declare.
10480 * config/arc/arc.c (AUX_LP_START): Define
10481 (AUX_LP_END): Likewise.
10482 (arc_frame_info): Update gmask member to 64-bit datum.
10483 (GMASK_LEN): Update.
10484 (arc_compute_function_type): Make it static, move it forward.
10485 (arc_must_save_register): Update, consider the extra regs.
10486 (arc_compute_millicode_save_restore_regs): Update to use the 64
10487 bit gmask.
10488 (arc_compute_frame_size): Likewise.
10489 (arc_enter_leave_p): Likewise.
10490 (arc_save_callee_saves): Likewise.
10491 (arc_restore_callee_saves): Likewise.
10492 (arc_save_callee_enter): Likewise.
10493 (arc_restore_callee_leave): Likewise.
10494 (arc_save_callee_milli): Likewise.
10495 (arc_restore_callee_milli): Likewise.
10496 (arc_expand_prologue): Add new interrupt handling.
10497 (arc_return_address_register): Make it static, move it forward.
10498 (arc_expand_epilogue): Add new interrupt handling.
10499 (arc_get_unalign): Delete.
10500 (arc_epilogue_uses): Make sure we do not remove the extra
10501 saved/restored registers when interrupt.
10502 (arc_can_use_return_insn): New function.
10503 (push_reg): Likewise.
10504 (pop_reg): Likewise.
10505 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10506 procedures.
10507 (arc_restore_callee_saves): Likewise, but restoring.
10508 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10509 (R33_REG): Likewise.
10510 (R34_REG): Likewise.
10511 (R35_REG): Likewise.
10512 (R36_REG): Likewise.
10513 (R37_REG): Likewise.
10514 (R38_REG): Likewise.
10515 (R39_REG): Likewise.
10516 (R45_REG): Likewise.
10517 (R46_REG): Likewise.
10518 (R47_REG): Likewise.
10519 (R48_REG): Likewise.
10520 (R49_REG): Likewise.
10521 (R50_REG): Likewise.
10522 (R51_REG): Likewise.
10523 (R52_REG): Likewise.
10524 (R53_REG): Likewise.
10525 (R54_REG): Likewise.
10526 (R55_REG): Likewise.
10527 (R56_REG): Likewise.
10528 (R58_REG): Likewise.
10529 (type): Add rtie attribute.
10530 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10531 (movsi_insn): Accept moves to lp_count.
10532 (rtie): Update pattern.
10533 (simple_return): Simplify it, don't use this pattern as a return
10534 from an interrupt.
10535 (arc600_rtie): New pattern.
10536 (p_return_i): Clean up.
10537 (return): Likewise.
10538 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10539 family CPUs.
10540 * config/arc/predicates.md (move_src_operand): Consider lp_count
10541 as a register.
10542
10543 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10544
10545 * config/s390/predicates.md (addv_const_operand): New predicate.
10546 * config/s390/s390-modes.def (CCO): New condition code mode.
10547 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10548 (s390_branch_condition_mask): Likewise.
10549 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10550 ("mulv<mode>4"): New expanders.
10551 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10552 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10553 pattern definitions.
10554
10555 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10556
10557 PR middle-end/91166
10558 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10559 (define_predicates): Add entry for uniform_vector_p.
10560 (vec_same_elem_p): New match pattern.
10561
10562 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10563
10564 PR bootstrap/87030
10565 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10566 * config/i386/darwin32-biarch.h .. to here.
10567 * config/i386/darwin64-biarch.h: Adjust comments.
10568 * config/rs6000/darwin32-biarch.h: Likewise.
10569 * config/rs6000/darwin64-biarch.h: Likewise.
10570 * config.gcc: Missed commit from r273746
10571 (*-*-darwin*): Don't include CPU t-darwin here.
10572 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10573 an error message if i686-darwin configuration is attempted for
10574 Darwin >= 18.
10575
10576 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10577
10578 PR bootstrap/87030
10579 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10580 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10581 an error message if i686-darwin configuration is attempted for
10582 Darwin >= 18.
10583 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10584 (powerpc-*-darwin*): Use biarch files where needed.
10585 (powerpc64-*-darwin*): Likewise.
10586 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10587 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10588 arch case.
10589 * config/i386/darwin32-biarch.h: New.
10590 * config/i386/darwin64.h: Rename.
10591 * config/i386/darwin64-biarch.h: To this.
10592 * config/i386/t-darwin: Rename.
10593 * config/i386/t-darwin32-biarch: To this.
10594 * config/i386/t-darwin64: Rename.
10595 * config/i386/t-darwin64-biarch: To this.
10596 * config/rs6000/darwin32-biarch.h: New.
10597 * config/rs6000/darwin64.h: Rename.
10598 * config/rs6000/darwin64-biarch.h: To this.
10599 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10600 arch case.
10601 * config/rs6000/t-darwin8: Rename.
10602 * config/rs6000/t-darwin32-biarch: To this.
10603 * config/rs6000/t-darwin64 Rename.
10604 * config/rs6000/t-darwin64-biarch: To this.
10605
10606 2019-07-23 Martin Sebor <msebor@redhat.com>
10607
10608 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10609
10610 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10611
10612 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10613 (rh): New alias for it.
10614
10615 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10616
10617 * gdbhooks.py: Pass replace=True to
10618 gdb.printing.register_pretty_printer.
10619
10620 2019-07-23 Richard Biener <rguenther@suse.de>
10621
10622 PR debug/91231
10623 * lto-streamer-in.c (input_function): Drop inline-entry markers
10624 that ended up with an unknown location block.
10625
10626 2019-07-23 Richard Biener <rguenther@suse.de>
10627
10628 PR tree-optimization/83518
10629 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10630 init from a constant even when partial defs are already recorded.
10631
10632 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10633
10634 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10635 * config/i386/znver1.md: Enable patterns for znver2 and add store
10636 variants which use extra AGU unit.
10637
10638 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10639
10640 * config/i386/i386-options.c (ix86_option_override_internal): Default
10641 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10642 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10643 for ZNVER2.
10644
10645 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10646
10647 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10648 (znver2_costs): Update 256 bit SSE costs and multiplication.
10649
10650 2019-07-23 Jan Beulich <jbeulich@suse.com>
10651
10652 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10653 Require only AVX512F.
10654 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10655 alternative expanding to vpternlog.
10656
10657 2019-07-23 Martin Liska <mliska@suse.cz>
10658
10659 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10660 to -flto in dwarf producer string.
10661
10662 2019-07-23 Richard Biener <rguenther@suse.de>
10663
10664 * tree-cfg.c (label_for_bb): Remove global var.
10665 (main_block_label): Take label_for_bb as argument.
10666 (cleanup_dead_labels_eh): Likewise, adjust.
10667 (cleanup_dead_labels): Adjust.
10668
10669 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10670
10671 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10672 Configurations): Add documentation for __builtin_mtfsf.
10673
10674 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10675
10676 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10677 * config/riscv/riscv.c (riscv_constant_alignment): Use
10678 riscv_align_data_type.
10679 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10680 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10681 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10682 * config/riscv/riscv.opt (malign-data): New.
10683 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10684
10685 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10686
10687 * cgraph.c (dump_graphviz): New function.
10688 * cgraph.h (dump_graphviz): New function.
10689 * symtab.c (dump_graphviz): New function.
10690
10691 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10692
10693 * config/aarch64/aarch64-simd.md
10694 (*aarch64_simd_sra<mode>): New.
10695 * config/aarch64/iterators.md
10696 (SHIFTRT): New iterator.
10697 (sra_op): New attribute.
10698
10699 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10700
10701 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10702 callee-saved regs R4->R10 in an interrupt function that calls another
10703 function.
10704
10705 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10706
10707 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10708 (_mm_blendv_epi8): New.
10709
10710 2019-07-22 Richard Biener <rguenther@suse.de>
10711
10712 PR tree-optimization/91221
10713 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10714 restrict partial-def handling of empty constructors and
10715 memset to refs with known offset.
10716
10717 2019-07-22 Jan Beulich <jbeulich@suse.com>
10718
10719 * config/i386/sse.md (ternlogsuffix): New.
10720 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10721 AVX512F is in use.
10722 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10723
10724 2019-07-22 Martin Liska <mliska@suse.cz>
10725
10726 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10727 comment.
10728 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10729
10730 2019-07-22 Martin Liska <mliska@suse.cz>
10731
10732 * lto-section-in.c (lto_get_section_data):
10733 Use new function get_compression.
10734 * lto-streamer-out.c (produce_lto_section): Use
10735 set_compression to encode compression algorithm.
10736 * lto-streamer.h (struct lto_section): Do not
10737 use bitfields in the format.
10738
10739 2019-07-22 Martin Liska <mliska@suse.cz>
10740
10741 PR driver/91172
10742 * opts-common.c (decode_cmdline_option): Decode
10743 argument of -Werror and check it for a wrong language.
10744 * opts-global.c (complain_wrong_lang): Remove such case.
10745
10746 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10747
10748 * config/arc/arc.c (prepare_move_operands): Always use an
10749 intermediate register when storing a TLS symbols.
10750
10751 2019-07-22 Stafford Horne <shorne@gmail.com>
10752
10753 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10754 force_reg.
10755
10756 2019-07-22 Stafford Horne <shorne@gmail.com>
10757
10758 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10759 and munordered-float validations.
10760 * config/or1k/constraints.md (d): New register constraint.
10761 * config/or1k/predicates.md (fp_comparison_operator): New.
10762 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10763 operands.
10764 (or1k_expand_compare): Normalize unordered comparisons.
10765 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10766 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10767 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10768 * config/or1k/or1k.md (type): Add fpu.
10769 (fpu): New instruction reservation.
10770 (F, f, fr, fi, FI, FOP, fop): New.
10771 (<fop><F:mode>3): New ALU instruction definition.
10772 (float<fi><F:mode>2): New conversion instruction definition.
10773 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10774 (fpcmpcc): New code iterator.
10775 (*sf_fp_insn): New instruction definition.
10776 (cstore<F:mode>4): New expand definition.
10777 (cbranch<F:mode>4): New expand definition.
10778 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10779 munordered-float): New options.
10780 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10781 munordered-float.
10782
10783 2019-07-22 Stafford Horne <shorne@gmail.com>
10784
10785 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10786 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10787 documenation to be more clear.
10788 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10789 more clear.
10790 * config/or1k/or1k.opt (mrori): New option.
10791 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10792 msfimm, mshftimm): Rewrite documentation to be more clear.
10793 * config/or1k/or1k.md (insn_support): Add ror and rori.
10794 (enabled): Add conditions for ror and rori.
10795 (rotrsi3): Replace condition for shftimm with ror and rori.
10796
10797 2019-07-22 Stafford Horne <shorne@gmail.com>
10798
10799 PR target/90363
10800 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10801 (extend<mode>si2): Update predicate.
10802 * config/or1k/predicates.md (volatile_mem_operand): New.
10803 (reg_or_mem_operand): New.
10804
10805 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10806
10807 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10808 * config/rs6000/rs6000-call.c: ... to here.
10809
10810 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10811
10812 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10813 memory.
10814
10815 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10816
10817 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10818
10819 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10820
10821 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10822
10823 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10824
10825 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10826 (any_memory_operand): New predicate.
10827 (reg_or_mem_operand): Use it.
10828
10829 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10830
10831 PR target/91204
10832 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10833
10834 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10835
10836 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10837 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10838
10839 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10840
10841 * tree.def (OMP_LOOP): New tree code.
10842 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10843 (enum omp_clause_bind_kind): New enum.
10844 (struct tree_omp_clause): Add subcode.bind_kind.
10845 * tree.h (OMP_LOOP_CHECK): Rename to ...
10846 (OMP_LOOPING_CHECK): ... this.
10847 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10848 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10849 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10850 (OMP_CLAUSE_BIND_KIND): Define.
10851 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10852 bind clause entries.
10853 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10854 * tree-pretty-print.c (dump_omp_clause): Likewise.
10855 (dump_generic_node): Handle OMP_LOOP.
10856 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10857 (in_omp_construct): New variable.
10858 (is_gimple_stmt): Handle OMP_LOOP.
10859 (gimplify_scan_omp_clauses): For lastprivate don't set
10860 check_non_private if code == OMP_LOOP. For reduction clause
10861 on OMP_LOOP combined with parallel or teams propagate as shared
10862 on the combined construct. Handle OMP_CLAUSE_BIND.
10863 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10864 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10865 for constructs from a loop construct to gimplify_scan_omp_clauses.
10866 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10867 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10868 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10869 to match the implicit ORT_TARGET construct around whole body.
10870 Temporarily clear in_omp_construct when processing body.
10871 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10872 etc. temporarily set in_omp_construct when processing body.
10873 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10874 * omp-low.c (struct omp_context): Add loop_p.
10875 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10876 in that the original var might be private.
10877 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10878 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10879 addition of loop construct.
10880 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10881
10882 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10883 lastprivate non-addressable iterator of a collapse(1) simd.
10884
10885 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10886
10887 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10888 as in rs6000.c.
10889
10890 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10891
10892 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10893 refer to default conditions. Warn for the 'y' spec which is ignored
10894 by current linkers.
10895
10896 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10897
10898 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10899 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10900 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10901 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10902 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10903 init_cumulative_args, rs6000_promote_function_mode,
10904 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10905 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10906 rs6000_function_arg_boundary, rs6000_parm_offset,
10907 rs6000_parm_start, rs6000_arg_size,
10908 rs6000_darwin64_record_arg_advance_flush,
10909 rs6000_darwin64_record_arg_advance_recurse,
10910 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10911 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10912 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10913 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10914 rs6000_finish_function_arg, rs6000_function_arg,
10915 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10916 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10917 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10918 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10919 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10920 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10921 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10922 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10923 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10924 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10925 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10926 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10927 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10928 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10929 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10930 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10931 get_element_number, altivec_expand_vec_set_builtin,
10932 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10933 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10934 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10935 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10936 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10937 rs6000_expand_builtin, rs6000_vector_type,
10938 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10939 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10940 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10941 to rs6000-call.c.
10942 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10943 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10944 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10945 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10946 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10947 init_cumulative_args, rs6000_promote_function_mode,
10948 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10949 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10950 rs6000_function_arg_boundary, rs6000_parm_offset,
10951 rs6000_parm_start, rs6000_arg_size,
10952 rs6000_darwin64_record_arg_advance_flush,
10953 rs6000_darwin64_record_arg_advance_recurse,
10954 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10955 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10956 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10957 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10958 rs6000_finish_function_arg, rs6000_function_arg,
10959 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10960 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10961 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10962 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10963 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10964 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10965 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10966 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10967 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10968 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10969 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10970 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10971 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10972 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10973 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10974 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10975 get_element_number, altivec_expand_vec_set_builtin,
10976 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10977 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10978 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10979 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10980 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10981 rs6000_expand_builtin, rs6000_vector_type,
10982 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10983 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10984 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10985 to here from rs6000.c.
10986 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10987 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10988 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10989 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10990 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10991 rs6000_return_in_memory, rs6000_return_in_msb,
10992 rs6000_pass_by_reference, setup_incoming_varargs,
10993 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10994 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10995 rs6000_function_arg_padding, rs6000_function_arg,
10996 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10997 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10998 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10999 rs6000_passes_long_double, rs6000_passes_vector,
11000 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
11001 altivec_builtin_mask_for_load) Add declarations.
11002 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
11003 * config/config.gcc: Add new source file rs6000-call.c to garbage
11004 collector and extra_objs.
11005
11006 2019-07-19 Jeff Law <law@redhat.com>
11007
11008 PR tree-optimization/86061
11009 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
11010 strncpy. Drop some trivial dead code.
11011 (maybe_trim_memstar_call): Handle strncpy.
11012
11013 2019-07-19 Richard Biener <rguenther@suse.de>
11014
11015 PR tree-optimization/91211
11016 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
11017 memset encoding size.
11018
11019 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
11020
11021 PR target/91204
11022 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
11023
11024 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
11025
11026 PR ipa/91194
11027 * ipa-inline.c (recursive_inlining): Fix limits check.
11028
11029 2019-07-19 Richard Biener <rguenther@suse.de>
11030
11031 PR tree-optimization/91200
11032 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
11033 no PHI nodes in middle-bb.
11034
11035 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
11036
11037 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
11038 to +sve-bitperm.
11039 * config/aarch64/aarch64-option-extensions.def: Likewise.
11040
11041 2019-07-19 Jakub Jelinek <jakub@redhat.com>
11042
11043 PR middle-end/91190
11044 * function.c (insert_temp_slot_address): Store into the hash table
11045 a copy of address to avoid RTL sharing issues.
11046
11047 2019-07-19 Richard Biener <rguenther@suse.de>
11048
11049 PR tree-optimization/91207
11050 Revert
11051 2019-07-17 Richard Biener <rguenther@suse.de>
11052
11053 PR tree-optimization/91178
11054 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11055 loads with a gap larger than the vector size always use
11056 VMAT_STRIDED_SLP.
11057 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11058 avoid loading vectors that are only contained in the gap
11059 and thus are not needed.
11060
11061 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11062
11063 * config/i386/i386.md (*addqi_2_slp): Remove.
11064 (*<code>qi_2_slp): Ditto.
11065
11066 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
11067
11068 * config/rs6000/predicates.md (prefixed_mem_operand): Call
11069 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
11070 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
11071 Rename function from rs6000_prefixed_address.
11072 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11073 TARGET_HAS_TOC.
11074 (TARGET_TOC): Likewise.
11075 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11076 rs6000.h.
11077 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11078 TARGET_HAS_TOC.
11079 (TARGET_TOC): Likewise.
11080 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11081 rs6000.h.
11082 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11083 TARGET_HAS_TOC.
11084 (TARGET_TOC): Likewise.
11085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11086 check to require -mcmodel=medium for pc-relative addressing.
11087 (create_TOC_reference): Add assertion for TARGET_TOC.
11088 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
11089 TARGET_NO_TOC.
11090 (rs6000_emit_move): Likewise.
11091 (TOC_alias_set): Rename TOC alias set static variable from 'set'
11092 to 'TOC_alias_set'.
11093 (get_TOC_alias_set): Likewise.
11094 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
11095 TARGET_NO_TOC.
11096 (rs6000_can_eliminate): Likewise.
11097 (rs6000_prefixed_address_mode_p): Rename function from
11098 rs6000_prefixed_address.
11099 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
11100 TARGET_HAS_TOC and not pc-relative.
11101 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
11102 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11103 TARGET_HAS_TOC.
11104 (TARGET_TOC): Likewise.
11105 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11106 rs6000.h.
11107
11108 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11109
11110 PR target/91188
11111 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
11112 for operand 0. Do not use (match_dup) to match operand 1 with
11113 operand 0. Add check in insn constraint that either input operand
11114 matches operand 0. Use SWI12 mode iterator to also handle
11115 HImode operands.
11116 (*and<mode>_1_slp): Ditto.
11117 (*<code>qi_1_slp): Ditto.
11118 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
11119 Do not use (match_dup) to match operand 1 with operand 0. Add
11120 check in insn constraint that operand 1 matches operand 0.
11121 Use SWI12 mode iterator to also handle HImode operands.
11122 (*ashl<mode>3_1_slp): Ditto.
11123 (*<shift_insn><mode>3_1_slp): Ditto.
11124 (*<rotate_insn><mode>3_1_slp): Ditto.
11125
11126 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11127
11128 * config/arm/arm-builtins.c
11129 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
11130 (arm_expand_unop_builtin): Likewise.
11131 * config/arm/crypto.md
11132 (crypto_sha1h): Convert from define_insn to define_expand.
11133 (crypto_<crypto_pattern>): Likewise.
11134 (crypto_sha1h_lb): New define_insn.
11135 (crypto_<crypto_pattern>_lb): Likewise.
11136
11137 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11138
11139 PR target/90317
11140 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
11141 (vsha1cq_u32): Likewise.
11142 (vsha1pq_u32): Likewise.
11143 (vsha1mq_u32): Likewise.
11144 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
11145 vec select.
11146 (crypto_sha1c): Correct vec select.
11147 (crypto_sha1m): Likewise.
11148 (crypto_sha1p): Likewise.
11149
11150 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11151
11152 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11153 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11154 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11155 (subdi_zesidi_zesidi): Likewise.
11156 (negdi2_compare, negdi2_insn): Likewise.
11157 (negdi_extensidi): Likewise.
11158 (negdi_zero_extendsidi): Likewise.
11159 (arm_cmpdi_insn): Likewise.
11160 (subsi3_carryin): Use arm_borrow_operation.
11161 (subsi3_carryin_const): Likewise.
11162 (subsi3_carryin_const0): Likewise.
11163 (subsi3_carryin_compare): Likewise.
11164 (subsi3_carryin_compare_const): Likewise.
11165 (subsi3_carryin_compare_const0): Likewise.
11166 (subsi3_carryin_shift): Likewise.
11167 (rsbsi3_carryin_shift): Likewise.
11168 (negsi2_carryin_compare): Likewise.
11169
11170 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11171
11172 PR tree-optimization/91137
11173 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11174 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11175 Init, use and fini the above new field.
11176 (determine_base_object_1): New function.
11177 (determine_base_object): Reimplement using walk_tree.
11178
11179 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11180
11181 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11182 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11183 CLEANUP_FORCE_FAST_DCE is set.
11184 * ifcvt.c (rest_of_handle_if_conversion): Pass
11185 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11186 if-conversion succeeded.
11187
11188 2019-07-18 Richard Biener <rguenther@suse.de>
11189
11190 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11191 branches to make code less indented.
11192
11193 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11194
11195 PR middle-end/81824
11196 * attribs.c (decls_mismatched_attributes): Simplify the logic
11197 that avoids duplicates and false positives.
11198
11199 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11200
11201 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11202 data into data section when generating PIC code.
11203 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11204 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11205 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11206 return 2 for SOM and 0 for other targets.
11207
11208 2019-07-17 Jeff Law <law@redhat.com>
11209
11210 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11211 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11212 avoid unexpected switch statement fallthru.
11213
11214 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11215
11216 * config/i386/i386.md (*add<dwi>3_doubleword):
11217 Remove redundant constraints.
11218 (*add<mode>_1): Ditto.
11219 (*addhi_1): Ditto.
11220 (*addqi_1): Ditto.
11221 (*addqi_1_slp): Ditto.
11222 (*add<mode>_2): Ditto.
11223 (*addv<mode>4): Ditto.
11224 (*sub<dwi>3_doubleword): Ditto.
11225 (*sub<mode>_1): Ditto.
11226 (*subqi_1_slp): Ditto.
11227 (*sub<mode>_2): Ditto.
11228 (*subv<mode>4): Ditto.
11229 (*sub<mode>_3): Ditto.
11230 (@add<mode>3_carry): Ditto.
11231 (@sub<mode>3_carry): Ditto.
11232 (*add<mode>3_cc_overflow_1): Ditto.
11233 (*add<mode>3_zext_cc_overflow_2): Ditto.
11234 (*anddi_1): Ditto.
11235 (*and<mode>_1): Ditto.
11236 (*andqi_1): Ditto.
11237 (*andqi_1_slp): Ditto.
11238 (*anddi_2): Ditto.
11239 (*andqi_2_maybe_si): Ditto.
11240 (*and<mode>_2): Ditto.
11241 (*andqi_2_slp): Ditto.
11242 (*<code><mode>_1): Ditto.
11243 (*<code>qi_1): Ditto.
11244 (*<code>qi_1_slp): Ditto.
11245 (*<code><mode>_2): Ditto.
11246 (*<code>qi_2_slp): Ditto.
11247
11248 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11249
11250 * alias.c (record_component_aliases): Do not simplify pointed-to
11251 types of ODR types.
11252
11253 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11254
11255 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11256 partial reg stall on alternative 2.
11257
11258 2019-07-17 Richard Biener <rguenther@suse.de>
11259
11260 PR tree-optimization/91178
11261 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11262 lower SSA names to avoid quadratic behavior in the common case.
11263 * tree-data-ref.c (split_constant_offset): Add limit argument
11264 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11265 (split_constant_offset_1): Add limit argument and use it to
11266 limit SSA def walking. Optimize the common plus/minus case.
11267
11268 2019-07-17 Richard Biener <rguenther@suse.de>
11269
11270 PR tree-optimization/91178
11271 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11272 loads with a gap larger than the vector size always use
11273 VMAT_STRIDED_SLP.
11274 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11275 avoid loading vectors that are only contained in the gap
11276 and thus are not needed.
11277
11278 2019-07-17 Richard Biener <rguenther@suse.de>
11279
11280 PR tree-optimization/91180
11281 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11282 computation for memset partial defs.
11283
11284 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11285
11286 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11287 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11288 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11289 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11290 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11291 * omp-grid.c (grid_process_grid_body,
11292 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11293 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11294 == GF_OMP_FOR_KIND_SIMD.
11295 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11296 check_omp_nesting_restrictions, scan_omp_1_stmt,
11297 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11298 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11299 omp_find_scan): Likewise.
11300 * omp-expand.c (expand_omp_for): Likewise.
11301 * omp-general.c (omp_extract_for_data): Likewise.
11302
11303 PR tree-optimization/91157
11304 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11305 a vector boolean with scalar mode.
11306 (expand_vector_condition): Handle first operand being a vector boolean
11307 with scalar mode.
11308 (expand_vector_operations_1): For comparisons, don't bail out early
11309 if the return type is vector boolean with scalar mode, but comparison
11310 operand type is not.
11311
11312 2019-07-17 Richard Biener <rguenther@suse.de>
11313
11314 PR tree-optimization/91181
11315 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11316 IFN_LOADs as calls.
11317
11318 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11319
11320 * config/i386/i386.md (*testdi_1): Match CCZmode for
11321 constants that might have the SImode sign bit set.
11322 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11323 Use correct constraints for pentium pairing.
11324 (*test<mode>_1): Ditto.
11325
11326 2019-07-16 Jeff Law <law@redhat.com>
11327
11328 PR rtl-optimization/91173
11329 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11330 SSA_NAME with a constant value, fold its value into the offset
11331 and clear the base before calling gen_addr_rtx.
11332
11333 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11334
11335 PR rtl-optimization/91164
11336 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11337 invalidate dominance info.
11338
11339 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11340
11341 * read-md.h (md_reader::record_potential_iterator_use): Add a
11342 file_location parameter.
11343 * read-rtl.c (attribute_use::loc): New field.
11344 (map_attr_string): Take a file_location parameter. Report cases
11345 in which attributes map to multiple distinct values.
11346 (apply_attribute_uses): Update call accordingly.
11347 (md_reader::handle_overloaded_name): Likewise.
11348 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11349 nonnull strings.
11350 (record_attribute_use): Take a file_location parameter.
11351 Initialize attribute_use::loc.
11352 (md_reader::record_potential_iterator_use): Take a file_location
11353 parameter. Update call to record_attribute_use.
11354 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11355 (rtx_reader::read_rtx_code): Likewise.
11356 (rtx_reader::read_rtx_operand): Likewise. Record a location
11357 for implicitly-expanded empty strings.
11358
11359 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11360
11361 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11362 Use file_location instead of separate fields.
11363 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11364 separate filename and line number.
11365 * read-md.c (ptr_loc): As above.
11366 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11367 (md_reader::fprint_md_ptr_loc): Likewise.
11368 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11369 instead of a separate filename and line number.
11370 (md_reader::read_string): Update call accordingly.
11371
11372 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11373
11374 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11375 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11376 leaving the choice between SFDF and P implicit.
11377 (*mov<mode>_update2): Likewise.
11378 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11379 rather than leaving the choice betweem IBM128 and GPR implicit.
11380 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11381 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11382 QHSI implicit.
11383 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11384 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11385 * config/rs6000/vsx.md
11386 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11387 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11388 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11389 and VSX_EXTRACT_I implicit.
11390
11391 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11392
11393 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11394 Explicitly use <MOVEP1:MODE> for the mode attribute.
11395
11396 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11397
11398 PR bootstrap/91176
11399 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11400
11401 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11402
11403 PR target/91050
11404 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11405 .machine directive.
11406
11407 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11408
11409 * config/i386/i386.md (@test<mode>_ccno_1):
11410 Rename from test<mode>_ccno_1.
11411 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11412 (*testqi_1_maybe_si): Remove modrm attribute.
11413 (*test<mode>_1): Ditto.
11414 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11415 gen_test_ccno_1 and gen_extend_insn.
11416
11417 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11418
11419 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11420 to 0.
11421
11422 2019-07-15 Richard Biener <rguenther@suse.de>
11423
11424 PR middle-end/91162
11425 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11426 node make sure to replace all uses with something valid.
11427
11428 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11429
11430 PR tree-optimization/88497
11431 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11432 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11433 function undistribute_bitref_for_vector.
11434 (undistribute_bitref_for_vector): New function.
11435 (cleanup_vinfo_map): Likewise.
11436 (sort_by_mach_mode): Likewise.
11437
11438 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11439
11440 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11441 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11442 and testdi_ccno_1 using SWI48 mode attribute.
11443 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11444 x86_64_szext_general_operand.
11445 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11446 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11447 instead of genera_operand mode attribute.
11448
11449 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11450
11451 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11452 fopen and fclose to their respective types.
11453 (DotFn.invoke): Ditto.
11454
11455 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11456
11457 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11458 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11459 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11460 (array_index_predicate): Remove.
11461 (analyze_function_body): Account cost for variable ofsetted array
11462 indexing.
11463 (estimate_node_size_and_time): Do not compute array index hint.
11464 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11465 (inline_read_section): Do not read array index hint.
11466 (ipa_fn_summary_write): Do not write array index hint.
11467 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11468 * ipa-cp.c (hint_time_bonus): Remove.
11469 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11470 (ipa_fnsummary): Remove array_index.
11471 * ipa-inline.c (want_inline_small_function_p): Do not use
11472 array_index.
11473 (edge_badness): Likewise.
11474 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11475
11476 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11477
11478 PR target/91148
11479 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11480 superfluous "builtin function" phrasing.
11481
11482 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11483
11484 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11485 Break out from ...
11486 (aliasing_component_refs_walk): Break out from ...
11487 (aliasing_component_refs_p): ... here.
11488
11489 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11490
11491 PR target/91148
11492 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11493 "builtin function" phrasing.
11494
11495 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11496
11497 PR target/90723
11498 * recog.h (temporary_volatile_ok): New class.
11499 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11500 volatile_ok temporarily to true using temporary_volatile_ok.
11501 * expr.c (emit_block_move_via_cpymem): Likewise.
11502 * optabs.c (maybe_legitimize_operand): Likewise.
11503
11504 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11505
11506 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11507 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11508 uses inside of order(concurrent) constructs.
11509 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11510 OMP_CLAUSE_ORDER is seen.
11511 * omp-low.c (struct omp_context): Add order_concurrent member.
11512 (scan_sharing_clauses): Set ctx->order_concurrent if
11513 OMP_CLAUSE_ORDER is seen.
11514 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11515 of simd order(concurrent). Diagnose constructs not allowed inside of
11516 for order(concurrent).
11517 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11518 complaining about static double setjmp (double); or class static
11519 methods or non-global namespace setjmps.
11520 (omp_runtime_api_call): New function.
11521 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11522 order(concurrent) loops.
11523
11524 2019-07-12 Martin Sebor <msebor@redhat.com>
11525
11526 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11527 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11528 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11529 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11530
11531 2019-07-12 Jan Hubicka <jh@suse.cz>
11532
11533 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11534 (indirect_refs_may_alias_p): ... here.
11535 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11536 mem refs in the access paths.
11537
11538 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11539
11540 PR tree-optimization/89430
11541 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11542 store elimination for local variable without address escape.
11543
11544 2019-07-12 Jeff Law <law@redhat.com>
11545
11546 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11547 for the ".far" section.
11548
11549 2019-07-12 Richard Biener <rguenther@suse.de>
11550
11551 PR tree-optimization/91145
11552 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11553 chain check.
11554
11555 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11556
11557 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11558 rather than this_state as the lowering context for the ELSE
11559 seq in a GIMPLE_EH_ELSE.
11560
11561 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11562
11563 * vector-builder.h (vector_builder::elt): Allow already-supplied
11564 elements to be read back before building is complete.
11565
11566 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11567
11568 PR rtl-optimization/91136
11569 * df-core.c (ACCESSING REFS): Fix typos in comment.
11570 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11571 the beginning of the block to the initial set of live registers.
11572
11573 2019-07-12 Richard Biener <rguenther@suse.de>
11574
11575 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11576 * fold-const.c (get_array_ctor_element_at_index): Add
11577 ctor_idx output parameter informing the caller where in
11578 the constructor the element was (not) found. Add early exit
11579 for when the ctor is sorted.
11580 * gimple-fold.c (fold_array_ctor_reference): Support constant
11581 folding across multiple array elements.
11582
11583 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11584
11585 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11586 doesn't have location, set the current location to the function's end.
11587
11588 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11589
11590 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11591 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11592 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11593 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11594 * config/aarch64/aarch64-simd.md
11595 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11596 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11597 * config/aarch64/aarch64-sve.md
11598 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11599 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11600
11601 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11602
11603 * doc/md.texi: Document that @ patterns can have different
11604 numbers of operands.
11605 * genemit.c (handle_overloaded_gen): Handle this case.
11606 * genopinit.c (handle_overloaded_gen): Likewise.
11607 * gensupport.c (replace_operands_with_dups): Iterate over
11608 the new rtx's format rather than the old one's.
11609
11610 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11611
11612 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11613 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11614 order clause entries.
11615 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11616 * tree-pretty-print.c (dump_omp_clause): Likewise.
11617 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11618 Likewise.
11619 * omp-low.c (scan_sharing_clauses): Likewise.
11620 * tree-nested.c (convert_nonlocal_omp_clauses,
11621 convert_local_omp_clauses): Likewise.
11622
11623 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11624
11625 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11626 fallthrough target of current basic block isn't the placed
11627 right next.
11628
11629 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11630
11631 PR target/90980
11632 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11633 (_mm512_storeu_epi64): Likewise.
11634 (_mm512_loadu_epi32): Likewise.
11635 (_mm512_storeu_epi32): Likewise.
11636 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11637 (_mm_storeu_epi64): Likewise.
11638 (_mm256_storeu_epi32): Likewise.
11639 (_mm_storeu_epi32): Likewise.
11640
11641 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11642
11643 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11644
11645 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11646
11647 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11648 Handle Modula-2.
11649
11650 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11651
11652 PR target/91124
11653 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11654 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11655 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11656 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11657 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11658 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11659 define_insns.
11660 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11661 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11662 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11663 define_insns.
11664 (sse2_cvttpd2dq<mask_name>): Change into ...
11665 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11666 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11667 (*sse2_cvtpd2dq<mask_name>): Change into ...
11668 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11669 Add "C" constraint to const0_operand.
11670 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11671 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11672 changes.
11673
11674 PR target/91124
11675 * config/i386/i386-builtin-types.def
11676 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11677 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11678 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11679 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11680 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11681 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11682 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11683 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11684 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11685 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11686 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11687 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11688 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11689 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11690 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11691 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11692 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11693 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11694 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11695 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11696 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11697 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11698 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11699 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11700 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11701 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11702 __builtin_ia32_vpdpbusd_v4si_maskz,
11703 __builtin_ia32_vpdpbusds_v16si_mask,
11704 __builtin_ia32_vpdpbusds_v16si_maskz,
11705 __builtin_ia32_vpdpbusds_v8si_mask,
11706 __builtin_ia32_vpdpbusds_v8si_maskz,
11707 __builtin_ia32_vpdpbusds_v4si_mask,
11708 __builtin_ia32_vpdpbusds_v4si_maskz,
11709 __builtin_ia32_vpdpwssd_v16si_mask,
11710 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11711 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11712 __builtin_ia32_vpdpwssd_v4si_maskz,
11713 __builtin_ia32_vpdpwssds_v16si_mask,
11714 __builtin_ia32_vpdpwssds_v16si_maskz,
11715 __builtin_ia32_vpdpwssds_v8si_mask,
11716 __builtin_ia32_vpdpwssds_v8si_maskz,
11717 __builtin_ia32_vpdpwssds_v4si_mask,
11718 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11719 suffixed types rather than *_INT.
11720 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11721 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11722 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11723 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11724 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11725 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11726
11727 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11728
11729 * tree-vrp.c (intersect_ranges): If we know the intersection is
11730 empty, there is no need to conservatively add anything else to
11731 the set.
11732
11733 2019-07-11 Richard Biener <rguenther@suse.de>
11734
11735 PR middle-end/91131
11736 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11737 when the object is volatile and we have not cleared it even though
11738 there are no nonzero elements.
11739
11740 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11741
11742 * config/rs6000/predicates.md (cint34_operand): Update
11743 SIGNED_34BIT_OFFSET_P call.
11744 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11745 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11746 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11747 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11748 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11749 argument.
11750 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11751 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11752 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11753 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11754 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11755
11756 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11757
11758 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11759 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11760 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11761 (DEF_MIN_OSX_VERSION): New.
11762
11763 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11764
11765 * fold-const.c (fold_relational_const): Fix folding of
11766 vector-to-scalar NE_EXPRs.
11767 (test_vector_folding): Add more tests.
11768
11769 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11770
11771 PR target/91060
11772 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11773 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11774 (vec_setv2di_internal): Reexpress as...
11775 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11776 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11777 rather than gen_neon_vset_lane<mode>.
11778
11779 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11780
11781 PR target/91102
11782 * lra-constraints.c (process_alt_operands): Don't match user
11783 defined regs only if they are early clobbers.
11784
11785 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11786
11787 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11788
11789 2019-07-10 Richard Biener <rguenther@suse.de>
11790
11791 PR tree-optimization/91126
11792 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11793 native encoding offset for BYTES_BIG_ENDIAN.
11794 (vn_reference_lookup_3): Likewise.
11795
11796 2019-07-10 Richard Biener <rguenther@suse.de>
11797
11798 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11799 LHS whenever possible.
11800
11801 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11802
11803 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11804 from ...; work also on duplicated types.
11805 (nonoverlapping_component_refs_since_match): ... here
11806 (ncr_type_uid): Break out from ...
11807 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11808 available.
11809 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11810 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11811
11812 2019-07-09 Martin Sebor <msebor@redhat.com>
11813
11814 PR tree-optimization/90989
11815 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11816 optimization to just single character stores.
11817
11818 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11819
11820 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11821 Swap operands only once.
11822
11823 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11824
11825 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11826 for both call instructions.
11827
11828 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11829
11830 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11831 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11832
11833 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11834
11835 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11836 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11837 function from rs6000-logue.c back to rs6000.c.
11838 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11839
11840 2019-07-09 Martin Sebor <msebor@redhat.com>
11841
11842 PR c++/61339
11843 * auto-profile.c: Change class-key of PODs to struct and others
11844 to class.
11845 * basic-block.h: Same.
11846 * bitmap.c (bitmap_alloc): Same.
11847 * bitmap.h: Same.
11848 * builtins.c (expand_builtin_prefetch): Same.
11849 (expand_builtin_interclass_mathfn): Same.
11850 (expand_builtin_strlen): Same.
11851 (expand_builtin_mempcpy_args): Same.
11852 (expand_cmpstr): Same.
11853 (expand_builtin___clear_cache): Same.
11854 (expand_ifn_atomic_bit_test_and): Same.
11855 (expand_builtin_thread_pointer): Same.
11856 (expand_builtin_set_thread_pointer): Same.
11857 * caller-save.c (setup_save_areas): Same.
11858 (replace_reg_with_saved_mem): Same.
11859 (insert_restore): Same.
11860 (insert_save): Same.
11861 (add_used_regs): Same.
11862 * cfg.c (get_bb_copy): Same.
11863 (set_loop_copy): Same.
11864 * cfg.h: Same.
11865 * cfganal.h: Same.
11866 * cfgexpand.c (alloc_stack_frame_space): Same.
11867 (add_stack_var): Same.
11868 (add_stack_var_conflict): Same.
11869 (add_scope_conflicts_1): Same.
11870 (update_alias_info_with_stack_vars): Same.
11871 (expand_used_vars): Same.
11872 * cfghooks.c (redirect_edge_and_branch_force): Same.
11873 (delete_basic_block): Same.
11874 (split_edge): Same.
11875 (make_forwarder_block): Same.
11876 (force_nonfallthru): Same.
11877 (duplicate_block): Same.
11878 (lv_flush_pending_stmts): Same.
11879 * cfghooks.h: Same.
11880 * cfgloop.c (flow_loops_cfg_dump): Same.
11881 (flow_loop_nested_p): Same.
11882 (superloop_at_depth): Same.
11883 (get_loop_latch_edges): Same.
11884 (flow_loop_dump): Same.
11885 (flow_loops_dump): Same.
11886 (flow_loops_free): Same.
11887 (flow_loop_nodes_find): Same.
11888 (establish_preds): Same.
11889 (flow_loop_tree_node_add): Same.
11890 (flow_loop_tree_node_remove): Same.
11891 (flow_loops_find): Same.
11892 (find_subloop_latch_edge_by_profile): Same.
11893 (find_subloop_latch_edge_by_ivs): Same.
11894 (mfb_redirect_edges_in_set): Same.
11895 (form_subloop): Same.
11896 (merge_latch_edges): Same.
11897 (disambiguate_multiple_latches): Same.
11898 (disambiguate_loops_with_multiple_latches): Same.
11899 (flow_bb_inside_loop_p): Same.
11900 (glb_enum_p): Same.
11901 (get_loop_body_with_size): Same.
11902 (get_loop_body): Same.
11903 (fill_sons_in_loop): Same.
11904 (get_loop_body_in_dom_order): Same.
11905 (get_loop_body_in_custom_order): Same.
11906 (release_recorded_exits): Same.
11907 (get_loop_exit_edges): Same.
11908 (num_loop_branches): Same.
11909 (remove_bb_from_loops): Same.
11910 (find_common_loop): Same.
11911 (delete_loop): Same.
11912 (cancel_loop): Same.
11913 (verify_loop_structure): Same.
11914 (loop_preheader_edge): Same.
11915 (loop_exit_edge_p): Same.
11916 (single_exit): Same.
11917 (loop_exits_to_bb_p): Same.
11918 (loop_exits_from_bb_p): Same.
11919 (get_loop_location): Same.
11920 (record_niter_bound): Same.
11921 (get_estimated_loop_iterations_int): Same.
11922 (max_stmt_executions_int): Same.
11923 (likely_max_stmt_executions_int): Same.
11924 (get_estimated_loop_iterations): Same.
11925 (get_max_loop_iterations): Same.
11926 (get_max_loop_iterations_int): Same.
11927 (get_likely_max_loop_iterations): Same.
11928 * cfgloop.h (simple_loop_desc): Same.
11929 (get_loop): Same.
11930 (loop_depth): Same.
11931 (loop_outer): Same.
11932 (loop_iterator::next): Same.
11933 (loop_outermost): Same.
11934 * cfgloopanal.c (mark_irreducible_loops): Same.
11935 (num_loop_insns): Same.
11936 (average_num_loop_insns): Same.
11937 (expected_loop_iterations_unbounded): Same.
11938 (expected_loop_iterations): Same.
11939 (mark_loop_exit_edges): Same.
11940 (single_likely_exit): Same.
11941 * cfgloopmanip.c (fix_bb_placement): Same.
11942 (fix_bb_placements): Same.
11943 (remove_path): Same.
11944 (place_new_loop): Same.
11945 (add_loop): Same.
11946 (scale_loop_frequencies): Same.
11947 (scale_loop_profile): Same.
11948 (create_empty_if_region_on_edge): Same.
11949 (create_empty_loop_on_edge): Same.
11950 (loopify): Same.
11951 (unloop): Same.
11952 (fix_loop_placements): Same.
11953 (copy_loop_info): Same.
11954 (duplicate_loop): Same.
11955 (duplicate_subloops): Same.
11956 (loop_redirect_edge): Same.
11957 (can_duplicate_loop_p): Same.
11958 (duplicate_loop_to_header_edge): Same.
11959 (mfb_keep_just): Same.
11960 (has_preds_from_loop): Same.
11961 (create_preheader): Same.
11962 (create_preheaders): Same.
11963 (lv_adjust_loop_entry_edge): Same.
11964 (loop_version): Same.
11965 * cfgloopmanip.h: Same.
11966 * cgraph.h: Same.
11967 * cgraphbuild.c: Same.
11968 * combine.c (make_extraction): Same.
11969 * config/i386/i386-features.c: Same.
11970 * config/i386/i386-features.h: Same.
11971 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11972 (ix86_emit_outlined_ms2sysv_restore): Same.
11973 (ix86_noce_conversion_profitable_p): Same.
11974 (ix86_init_cost): Same.
11975 (ix86_simd_clone_usable): Same.
11976 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11977 Wstruct-not-pod.
11978 * coretypes.h: Same.
11979 * data-streamer-in.c (string_for_index): Change class-key of PODs
11980 to struct and others to class.
11981 (streamer_read_indexed_string): Same.
11982 (streamer_read_string): Same.
11983 (bp_unpack_indexed_string): Same.
11984 (bp_unpack_string): Same.
11985 (streamer_read_uhwi): Same.
11986 (streamer_read_hwi): Same.
11987 (streamer_read_gcov_count): Same.
11988 (streamer_read_wide_int): Same.
11989 * data-streamer.h (streamer_write_bitpack): Same.
11990 (bp_unpack_value): Same.
11991 (streamer_write_char_stream): Same.
11992 (streamer_write_hwi_in_range): Same.
11993 (streamer_write_record_start): Same.
11994 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11995 (add_cross_iteration_register_deps): Same.
11996 (build_intra_loop_deps): Same.
11997 * df-core.c (df_analyze): Same.
11998 (loop_post_order_compute): Same.
11999 (loop_inverted_post_order_compute): Same.
12000 * df-problems.c (df_rd_alloc): Same.
12001 (df_rd_simulate_one_insn): Same.
12002 (df_rd_local_compute): Same.
12003 (df_rd_init_solution): Same.
12004 (df_rd_confluence_n): Same.
12005 (df_rd_transfer_function): Same.
12006 (df_rd_free): Same.
12007 (df_rd_dump_defs_set): Same.
12008 (df_rd_top_dump): Same.
12009 (df_lr_alloc): Same.
12010 (df_lr_reset): Same.
12011 (df_lr_local_compute): Same.
12012 (df_lr_init): Same.
12013 (df_lr_confluence_n): Same.
12014 (df_lr_free): Same.
12015 (df_lr_top_dump): Same.
12016 (df_lr_verify_transfer_functions): Same.
12017 (df_live_alloc): Same.
12018 (df_live_reset): Same.
12019 (df_live_init): Same.
12020 (df_live_confluence_n): Same.
12021 (df_live_finalize): Same.
12022 (df_live_free): Same.
12023 (df_live_top_dump): Same.
12024 (df_live_verify_transfer_functions): Same.
12025 (df_mir_alloc): Same.
12026 (df_mir_reset): Same.
12027 (df_mir_init): Same.
12028 (df_mir_confluence_n): Same.
12029 (df_mir_free): Same.
12030 (df_mir_top_dump): Same.
12031 (df_word_lr_alloc): Same.
12032 (df_word_lr_reset): Same.
12033 (df_word_lr_init): Same.
12034 (df_word_lr_confluence_n): Same.
12035 (df_word_lr_free): Same.
12036 (df_word_lr_top_dump): Same.
12037 (df_md_alloc): Same.
12038 (df_md_simulate_one_insn): Same.
12039 (df_md_reset): Same.
12040 (df_md_init): Same.
12041 (df_md_free): Same.
12042 (df_md_top_dump): Same.
12043 * df-scan.c (df_insn_delete): Same.
12044 (df_insn_rescan): Same.
12045 (df_notes_rescan): Same.
12046 (df_sort_and_compress_mws): Same.
12047 (df_install_mws): Same.
12048 (df_refs_add_to_chains): Same.
12049 (df_ref_create_structure): Same.
12050 (df_ref_record): Same.
12051 (df_def_record_1): Same.
12052 (df_find_hard_reg_defs): Same.
12053 (df_uses_record): Same.
12054 (df_get_conditional_uses): Same.
12055 (df_get_call_refs): Same.
12056 (df_recompute_luids): Same.
12057 (df_get_entry_block_def_set): Same.
12058 (df_entry_block_defs_collect): Same.
12059 (df_get_exit_block_use_set): Same.
12060 (df_exit_block_uses_collect): Same.
12061 (df_mws_verify): Same.
12062 (df_bb_verify): Same.
12063 * df.h (df_scan_get_bb_info): Same.
12064 * doc/tm.texi: Same.
12065 * dse.c (record_store): Same.
12066 * dumpfile.h: Same.
12067 * emit-rtl.c (const_fixed_hasher::equal): Same.
12068 (set_mem_attributes_minus_bitpos): Same.
12069 (change_address): Same.
12070 (adjust_address_1): Same.
12071 (offset_address): Same.
12072 * emit-rtl.h: Same.
12073 * except.c (dw2_build_landing_pads): Same.
12074 (sjlj_emit_dispatch_table): Same.
12075 * explow.c (allocate_dynamic_stack_space): Same.
12076 (emit_stack_probe): Same.
12077 (probe_stack_range): Same.
12078 * expmed.c (store_bit_field_using_insv): Same.
12079 (store_bit_field_1): Same.
12080 (store_integral_bit_field): Same.
12081 (extract_bit_field_using_extv): Same.
12082 (extract_bit_field_1): Same.
12083 (emit_cstore): Same.
12084 * expr.c (emit_block_move_via_cpymem): Same.
12085 (expand_cmpstrn_or_cmpmem): Same.
12086 (set_storage_via_setmem): Same.
12087 (emit_single_push_insn_1): Same.
12088 (expand_assignment): Same.
12089 (store_constructor): Same.
12090 (expand_expr_real_2): Same.
12091 (expand_expr_real_1): Same.
12092 (try_casesi): Same.
12093 * flags.h: Same.
12094 * function.c (try_fit_stack_local): Same.
12095 (assign_stack_local_1): Same.
12096 (assign_stack_local): Same.
12097 (cut_slot_from_list): Same.
12098 (insert_slot_to_list): Same.
12099 (max_slot_level): Same.
12100 (move_slot_to_level): Same.
12101 (temp_address_hasher::equal): Same.
12102 (remove_unused_temp_slot_addresses): Same.
12103 (assign_temp): Same.
12104 (combine_temp_slots): Same.
12105 (update_temp_slot_address): Same.
12106 (preserve_temp_slots): Same.
12107 * function.h: Same.
12108 * fwprop.c: Same.
12109 * gcc-rich-location.h: Same.
12110 * gcov.c: Same.
12111 * genattrtab.c (check_attr_test): Same.
12112 (check_attr_value): Same.
12113 (convert_set_attr_alternative): Same.
12114 (convert_set_attr): Same.
12115 (check_defs): Same.
12116 (copy_boolean): Same.
12117 (get_attr_value): Same.
12118 (expand_delays): Same.
12119 (make_length_attrs): Same.
12120 (min_fn): Same.
12121 (make_alternative_compare): Same.
12122 (simplify_test_exp): Same.
12123 (tests_attr_p): Same.
12124 (get_attr_order): Same.
12125 (clear_struct_flag): Same.
12126 (gen_attr): Same.
12127 (compares_alternatives_p): Same.
12128 (gen_insn): Same.
12129 (gen_delay): Same.
12130 (find_attrs_to_cache): Same.
12131 (write_test_expr): Same.
12132 (walk_attr_value): Same.
12133 (write_attr_get): Same.
12134 (eliminate_known_true): Same.
12135 (write_insn_cases): Same.
12136 (write_attr_case): Same.
12137 (write_attr_valueq): Same.
12138 (write_attr_value): Same.
12139 (write_dummy_eligible_delay): Same.
12140 (next_comma_elt): Same.
12141 (find_attr): Same.
12142 (make_internal_attr): Same.
12143 (copy_rtx_unchanging): Same.
12144 (gen_insn_reserv): Same.
12145 (check_tune_attr): Same.
12146 (make_automaton_attrs): Same.
12147 (handle_arg): Same.
12148 * genextract.c (gen_insn): Same.
12149 (VEC_char_to_string): Same.
12150 * genmatch.c (print_operand): Same.
12151 (lower): Same.
12152 (parser::parse_operation): Same.
12153 (parser::parse_capture): Same.
12154 (parser::parse_c_expr): Same.
12155 (parser::parse_simplify): Same.
12156 (main): Same.
12157 * genoutput.c (output_operand_data): Same.
12158 (output_get_insn_name): Same.
12159 (compare_operands): Same.
12160 (place_operands): Same.
12161 (process_template): Same.
12162 (validate_insn_alternatives): Same.
12163 (validate_insn_operands): Same.
12164 (gen_expand): Same.
12165 (note_constraint): Same.
12166 * genpreds.c (write_one_predicate_function): Same.
12167 (add_constraint): Same.
12168 (process_define_register_constraint): Same.
12169 (write_lookup_constraint_1): Same.
12170 (write_lookup_constraint_array): Same.
12171 (write_insn_constraint_len): Same.
12172 (write_reg_class_for_constraint_1): Same.
12173 (write_constraint_satisfied_p_array): Same.
12174 * genrecog.c (optimize_subroutine_group): Same.
12175 * gensupport.c (process_define_predicate): Same.
12176 (queue_pattern): Same.
12177 (remove_from_queue): Same.
12178 (process_rtx): Same.
12179 (is_predicable): Same.
12180 (change_subst_attribute): Same.
12181 (subst_pattern_match): Same.
12182 (alter_constraints): Same.
12183 (alter_attrs_for_insn): Same.
12184 (shift_output_template): Same.
12185 (alter_output_for_subst_insn): Same.
12186 (process_one_cond_exec): Same.
12187 (subst_dup): Same.
12188 (process_define_cond_exec): Same.
12189 (mnemonic_htab_callback): Same.
12190 (gen_mnemonic_attr): Same.
12191 (read_md_rtx): Same.
12192 * ggc-page.c: Same.
12193 * gimple-loop-interchange.cc (dump_reduction): Same.
12194 (dump_induction): Same.
12195 (loop_cand::~loop_cand): Same.
12196 (free_data_refs_with_aux): Same.
12197 (tree_loop_interchange::interchange_loops): Same.
12198 (tree_loop_interchange::map_inductions_to_loop): Same.
12199 (tree_loop_interchange::move_code_to_inner_loop): Same.
12200 (compute_access_stride): Same.
12201 (compute_access_strides): Same.
12202 (proper_loop_form_for_interchange): Same.
12203 (tree_loop_interchange_compute_ddrs): Same.
12204 (prune_datarefs_not_in_loop): Same.
12205 (prepare_data_references): Same.
12206 (pass_linterchange::execute): Same.
12207 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12208 (unroll_jam_possible_p): Same.
12209 (fuse_loops): Same.
12210 (adjust_unroll_factor): Same.
12211 (tree_loop_unroll_and_jam): Same.
12212 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12213 (loop_versioning::expensive_stmt_p): Same.
12214 (loop_versioning::version_for_unity): Same.
12215 (loop_versioning::dump_inner_likelihood): Same.
12216 (loop_versioning::find_per_loop_multiplication): Same.
12217 (loop_versioning::analyze_term_using_scevs): Same.
12218 (loop_versioning::record_address_fragment): Same.
12219 (loop_versioning::analyze_expr): Same.
12220 (loop_versioning::analyze_blocks): Same.
12221 (loop_versioning::prune_conditions): Same.
12222 (loop_versioning::merge_loop_info): Same.
12223 (loop_versioning::add_loop_to_queue): Same.
12224 (loop_versioning::decide_whether_loop_is_versionable): Same.
12225 (loop_versioning::make_versioning_decisions): Same.
12226 (loop_versioning::implement_versioning_decisions): Same.
12227 * gimple-ssa-evrp-analyze.c
12228 (evrp_range_analyzer::record_ranges_from_phis): Same.
12229 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12230 (count_multiple_uses): Same.
12231 (split_group): Same.
12232 (imm_store_chain_info::output_merged_store): Same.
12233 (pass_store_merging::process_store): Same.
12234 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12235 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12236 (is_max): Same.
12237 (alloca_call_type): Same.
12238 (pass_walloca::execute): Same.
12239 * gimple-streamer-in.c (input_phi): Same.
12240 (input_gimple_stmt): Same.
12241 * gimple-streamer.h: Same.
12242 * godump.c (go_force_record_alignment): Same.
12243 (go_format_type): Same.
12244 (go_output_type): Same.
12245 (go_output_fndecl): Same.
12246 (go_output_typedef): Same.
12247 (keyword_hash_init): Same.
12248 (find_dummy_types): Same.
12249 * graph.c (draw_cfg_nodes_no_loops): Same.
12250 (draw_cfg_nodes_for_loop): Same.
12251 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12252 * hsa-brig.c: Same.
12253 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12254 * hsa-dump.c (dump_hsa_cfun): Same.
12255 * hsa-gen.c (gen_function_def_parameters): Same.
12256 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12257 * input.c (dump_line_table_statistics): Same.
12258 (test_lexer): Same.
12259 * input.h: Same.
12260 * internal-fn.c (get_multi_vector_move): Same.
12261 (expand_load_lanes_optab_fn): Same.
12262 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12263 (expand_GOMP_SIMT_EXIT): Same.
12264 (expand_GOMP_SIMT_LAST_LANE): Same.
12265 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12266 (expand_GOMP_SIMT_VOTE_ANY): Same.
12267 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12268 (expand_GOMP_SIMT_XCHG_IDX): Same.
12269 (expand_addsub_overflow): Same.
12270 (expand_neg_overflow): Same.
12271 (expand_mul_overflow): Same.
12272 (expand_call_mem_ref): Same.
12273 (expand_mask_load_optab_fn): Same.
12274 (expand_scatter_store_optab_fn): Same.
12275 (expand_gather_load_optab_fn): Same.
12276 * ipa-cp.c (ipa_get_parm_lattices): Same.
12277 (print_all_lattices): Same.
12278 (ignore_edge_p): Same.
12279 (build_toporder_info): Same.
12280 (free_toporder_info): Same.
12281 (push_node_to_stack): Same.
12282 (ipcp_lattice<valtype>::set_contains_variable): Same.
12283 (set_agg_lats_to_bottom): Same.
12284 (ipcp_bits_lattice::meet_with): Same.
12285 (set_single_call_flag): Same.
12286 (initialize_node_lattices): Same.
12287 (ipa_get_jf_ancestor_result): Same.
12288 (ipcp_verify_propagated_values): Same.
12289 (propagate_scalar_across_jump_function): Same.
12290 (propagate_context_across_jump_function): Same.
12291 (propagate_bits_across_jump_function): Same.
12292 (ipa_vr_operation_and_type_effects): Same.
12293 (propagate_vr_across_jump_function): Same.
12294 (set_check_aggs_by_ref): Same.
12295 (set_chain_of_aglats_contains_variable): Same.
12296 (merge_aggregate_lattices): Same.
12297 (agg_pass_through_permissible_p): Same.
12298 (propagate_aggs_across_jump_function): Same.
12299 (call_passes_through_thunk_p): Same.
12300 (propagate_constants_across_call): Same.
12301 (devirtualization_time_bonus): Same.
12302 (good_cloning_opportunity_p): Same.
12303 (context_independent_aggregate_values): Same.
12304 (gather_context_independent_values): Same.
12305 (perform_estimation_of_a_value): Same.
12306 (estimate_local_effects): Same.
12307 (value_topo_info<valtype>::add_val): Same.
12308 (add_all_node_vals_to_toposort): Same.
12309 (value_topo_info<valtype>::propagate_effects): Same.
12310 (ipcp_propagate_stage): Same.
12311 (ipcp_discover_new_direct_edges): Same.
12312 (same_node_or_its_all_contexts_clone_p): Same.
12313 (cgraph_edge_brings_value_p): Same.
12314 (gather_edges_for_value): Same.
12315 (create_specialized_node): Same.
12316 (find_more_scalar_values_for_callers_subset): Same.
12317 (find_more_contexts_for_caller_subset): Same.
12318 (copy_plats_to_inter): Same.
12319 (intersect_aggregates_with_edge): Same.
12320 (find_aggregate_values_for_callers_subset): Same.
12321 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12322 (decide_about_value): Same.
12323 (decide_whether_version_node): Same.
12324 (spread_undeadness): Same.
12325 (identify_dead_nodes): Same.
12326 (ipcp_store_vr_results): Same.
12327 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12328 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12329 (redirect_to_unreachable): Same.
12330 (edge_set_predicate): Same.
12331 (evaluate_conditions_for_known_args): Same.
12332 (evaluate_properties_for_edge): Same.
12333 (ipa_fn_summary_t::duplicate): Same.
12334 (ipa_call_summary_t::duplicate): Same.
12335 (dump_ipa_call_summary): Same.
12336 (ipa_dump_fn_summary): Same.
12337 (eliminated_by_inlining_prob): Same.
12338 (set_cond_stmt_execution_predicate): Same.
12339 (set_switch_stmt_execution_predicate): Same.
12340 (compute_bb_predicates): Same.
12341 (will_be_nonconstant_expr_predicate): Same.
12342 (phi_result_unknown_predicate): Same.
12343 (analyze_function_body): Same.
12344 (compute_fn_summary): Same.
12345 (estimate_edge_devirt_benefit): Same.
12346 (estimate_edge_size_and_time): Same.
12347 (estimate_calls_size_and_time): Same.
12348 (estimate_node_size_and_time): Same.
12349 (remap_edge_change_prob): Same.
12350 (remap_edge_summaries): Same.
12351 (ipa_merge_fn_summary_after_inlining): Same.
12352 (ipa_fn_summary_generate): Same.
12353 (inline_read_section): Same.
12354 (ipa_fn_summary_read): Same.
12355 (ipa_fn_summary_write): Same.
12356 * ipa-fnsummary.h: Same.
12357 * ipa-hsa.c (ipa_hsa_read_section): Same.
12358 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12359 * ipa-icf.c (sem_function::param_used_p): Same.
12360 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12361 * ipa-inline.c (edge_badness): Same.
12362 (inline_small_functions): Same.
12363 * ipa-polymorphic-call.c
12364 (ipa_polymorphic_call_context::stream_out): Same.
12365 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12366 (predicate::remap_after_inlining): Same.
12367 (predicate::stream_out): Same.
12368 * ipa-predicate.h: Same.
12369 * ipa-profile.c (ipa_profile_read_summary): Same.
12370 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12371 (count_formal_params): Same.
12372 (ipa_dump_param): Same.
12373 (ipa_alloc_node_params): Same.
12374 (ipa_print_node_jump_functions_for_edge): Same.
12375 (ipa_print_node_jump_functions): Same.
12376 (ipa_load_from_parm_agg): Same.
12377 (get_ancestor_addr_info): Same.
12378 (ipa_compute_jump_functions_for_edge): Same.
12379 (ipa_analyze_virtual_call_uses): Same.
12380 (ipa_analyze_stmt_uses): Same.
12381 (ipa_analyze_params_uses_in_bb): Same.
12382 (update_jump_functions_after_inlining): Same.
12383 (try_decrement_rdesc_refcount): Same.
12384 (ipa_impossible_devirt_target): Same.
12385 (update_indirect_edges_after_inlining): Same.
12386 (combine_controlled_uses_counters): Same.
12387 (ipa_edge_args_sum_t::duplicate): Same.
12388 (ipa_write_jump_function): Same.
12389 (ipa_write_indirect_edge_info): Same.
12390 (ipa_write_node_info): Same.
12391 (ipa_read_edge_info): Same.
12392 (ipa_prop_read_section): Same.
12393 (read_replacements_section): Same.
12394 * ipa-prop.h (ipa_get_param_count): Same.
12395 (ipa_get_param): Same.
12396 (ipa_get_type): Same.
12397 (ipa_get_param_move_cost): Same.
12398 (ipa_set_param_used): Same.
12399 (ipa_get_controlled_uses): Same.
12400 (ipa_set_controlled_uses): Same.
12401 (ipa_get_cs_argument_count): Same.
12402 * ipa-pure-const.c (analyze_function): Same.
12403 (pure_const_read_summary): Same.
12404 * ipa-ref.h: Same.
12405 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12406 * ipa-split.c (test_nonssa_use): Same.
12407 (dump_split_point): Same.
12408 (dominated_by_forbidden): Same.
12409 (split_part_set_ssa_name_p): Same.
12410 (find_split_points): Same.
12411 * ira-build.c (finish_loop_tree_nodes): Same.
12412 (low_pressure_loop_node_p): Same.
12413 * ira-color.c (ira_reuse_stack_slot): Same.
12414 * ira-int.h: Same.
12415 * ira.c (setup_reg_equiv): Same.
12416 (print_insn_chain): Same.
12417 (ira): Same.
12418 * loop-doloop.c (doloop_condition_get): Same.
12419 (add_test): Same.
12420 (record_reg_sets): Same.
12421 (doloop_optimize): Same.
12422 * loop-init.c (loop_optimizer_init): Same.
12423 (fix_loop_structure): Same.
12424 * loop-invariant.c (merge_identical_invariants): Same.
12425 (compute_always_reached): Same.
12426 (find_exits): Same.
12427 (may_assign_reg_p): Same.
12428 (find_invariants_bb): Same.
12429 (find_invariants_body): Same.
12430 (replace_uses): Same.
12431 (can_move_invariant_reg): Same.
12432 (free_inv_motion_data): Same.
12433 (move_single_loop_invariants): Same.
12434 (change_pressure): Same.
12435 (mark_ref_regs): Same.
12436 (calculate_loop_reg_pressure): Same.
12437 * loop-iv.c (biv_entry_hasher::equal): Same.
12438 (iv_extend_to_rtx_code): Same.
12439 (check_iv_ref_table_size): Same.
12440 (clear_iv_info): Same.
12441 (latch_dominating_def): Same.
12442 (iv_get_reaching_def): Same.
12443 (iv_constant): Same.
12444 (iv_subreg): Same.
12445 (iv_extend): Same.
12446 (iv_neg): Same.
12447 (iv_add): Same.
12448 (iv_mult): Same.
12449 (get_biv_step): Same.
12450 (record_iv): Same.
12451 (analyzed_for_bivness_p): Same.
12452 (record_biv): Same.
12453 (iv_analyze_biv): Same.
12454 (iv_analyze_expr): Same.
12455 (iv_analyze_def): Same.
12456 (iv_analyze_op): Same.
12457 (iv_analyze): Same.
12458 (iv_analyze_result): Same.
12459 (biv_p): Same.
12460 (eliminate_implied_conditions): Same.
12461 (simplify_using_initial_values): Same.
12462 (shorten_into_mode): Same.
12463 (canonicalize_iv_subregs): Same.
12464 (determine_max_iter): Same.
12465 (check_simple_exit): Same.
12466 (find_simple_exit): Same.
12467 (get_simple_loop_desc): Same.
12468 * loop-unroll.c (report_unroll): Same.
12469 (decide_unrolling): Same.
12470 (unroll_loops): Same.
12471 (loop_exit_at_end_p): Same.
12472 (decide_unroll_constant_iterations): Same.
12473 (unroll_loop_constant_iterations): Same.
12474 (compare_and_jump_seq): Same.
12475 (unroll_loop_runtime_iterations): Same.
12476 (decide_unroll_stupid): Same.
12477 (unroll_loop_stupid): Same.
12478 (referenced_in_one_insn_in_loop_p): Same.
12479 (reset_debug_uses_in_loop): Same.
12480 (analyze_iv_to_split_insn): Same.
12481 * lra-eliminations.c (lra_debug_elim_table): Same.
12482 (setup_can_eliminate): Same.
12483 (form_sum): Same.
12484 (lra_get_elimination_hard_regno): Same.
12485 (lra_eliminate_regs_1): Same.
12486 (eliminate_regs_in_insn): Same.
12487 (update_reg_eliminate): Same.
12488 (init_elimination): Same.
12489 (lra_eliminate): Same.
12490 * lra-int.h: Same.
12491 * lra-lives.c (initiate_live_solver): Same.
12492 * lra-remat.c (create_remat_bb_data): Same.
12493 * lra-spills.c (lra_spill): Same.
12494 * lra.c (lra_set_insn_recog_data): Same.
12495 (lra_set_used_insn_alternative_by_uid): Same.
12496 (init_reg_info): Same.
12497 (expand_reg_info): Same.
12498 * lto-cgraph.c (output_symtab): Same.
12499 (read_identifier): Same.
12500 (get_alias_symbol): Same.
12501 (input_node): Same.
12502 (input_varpool_node): Same.
12503 (input_ref): Same.
12504 (input_edge): Same.
12505 (input_cgraph_1): Same.
12506 (input_refs): Same.
12507 (input_symtab): Same.
12508 (input_offload_tables): Same.
12509 (output_cgraph_opt_summary): Same.
12510 (input_edge_opt_summary): Same.
12511 (input_cgraph_opt_section): Same.
12512 * lto-section-in.c (lto_free_raw_section_data): Same.
12513 (lto_create_simple_input_block): Same.
12514 (lto_free_function_in_decl_state_for_node): Same.
12515 * lto-streamer-in.c (lto_tag_check_set): Same.
12516 (lto_location_cache::revert_location_cache): Same.
12517 (lto_location_cache::input_location): Same.
12518 (lto_input_location): Same.
12519 (stream_input_location_now): Same.
12520 (lto_input_tree_ref): Same.
12521 (lto_input_eh_catch_list): Same.
12522 (input_eh_region): Same.
12523 (lto_init_eh): Same.
12524 (make_new_block): Same.
12525 (input_cfg): Same.
12526 (fixup_call_stmt_edges): Same.
12527 (input_struct_function_base): Same.
12528 (input_function): Same.
12529 (lto_read_body_or_constructor): Same.
12530 (lto_read_tree_1): Same.
12531 (lto_read_tree): Same.
12532 (lto_input_scc): Same.
12533 (lto_input_tree_1): Same.
12534 (lto_input_toplevel_asms): Same.
12535 (lto_input_mode_table): Same.
12536 (lto_reader_init): Same.
12537 (lto_data_in_create): Same.
12538 * lto-streamer-out.c (output_cfg): Same.
12539 * lto-streamer.h: Same.
12540 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12541 (generate_prolog_epilog): Same.
12542 (mark_loop_unsched): Same.
12543 (dump_insn_location): Same.
12544 (loop_canon_p): Same.
12545 (sms_schedule): Same.
12546 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12547 (expand_omp_for_generic): Same.
12548 (expand_omp_for_static_nochunk): Same.
12549 (expand_omp_for_static_chunk): Same.
12550 (expand_omp_simd): Same.
12551 (expand_omp_taskloop_for_inner): Same.
12552 (expand_oacc_for): Same.
12553 (expand_omp_atomic_pipeline): Same.
12554 (mark_loops_in_oacc_kernels_region): Same.
12555 * omp-offload.c (oacc_xform_loop): Same.
12556 * omp-simd-clone.c (simd_clone_adjust): Same.
12557 * optabs-query.c (get_traditional_extraction_insn): Same.
12558 * optabs.c (expand_vector_broadcast): Same.
12559 (expand_binop_directly): Same.
12560 (expand_twoval_unop): Same.
12561 (expand_twoval_binop): Same.
12562 (expand_unop_direct): Same.
12563 (emit_indirect_jump): Same.
12564 (emit_conditional_move): Same.
12565 (emit_conditional_neg_or_complement): Same.
12566 (emit_conditional_add): Same.
12567 (vector_compare_rtx): Same.
12568 (expand_vec_perm_1): Same.
12569 (expand_vec_perm_const): Same.
12570 (expand_vec_cond_expr): Same.
12571 (expand_vec_series_expr): Same.
12572 (maybe_emit_atomic_exchange): Same.
12573 (maybe_emit_sync_lock_test_and_set): Same.
12574 (expand_atomic_compare_and_swap): Same.
12575 (expand_atomic_load): Same.
12576 (expand_atomic_store): Same.
12577 (maybe_emit_op): Same.
12578 (valid_multiword_target_p): Same.
12579 (create_integer_operand): Same.
12580 (maybe_legitimize_operand_same_code): Same.
12581 (maybe_legitimize_operand): Same.
12582 (create_convert_operand_from_type): Same.
12583 (can_reuse_operands_p): Same.
12584 (maybe_legitimize_operands): Same.
12585 (maybe_gen_insn): Same.
12586 (maybe_expand_insn): Same.
12587 (maybe_expand_jump_insn): Same.
12588 (expand_insn): Same.
12589 * optabs.h (create_expand_operand): Same.
12590 (create_fixed_operand): Same.
12591 (create_output_operand): Same.
12592 (create_input_operand): Same.
12593 (create_convert_operand_to): Same.
12594 (create_convert_operand_from): Same.
12595 * optinfo.h: Same.
12596 * poly-int.h: Same.
12597 * predict.c (optimize_insn_for_speed_p): Same.
12598 (optimize_loop_for_size_p): Same.
12599 (optimize_loop_for_speed_p): Same.
12600 (optimize_loop_nest_for_speed_p): Same.
12601 (get_base_value): Same.
12602 (predicted_by_loop_heuristics_p): Same.
12603 (predict_extra_loop_exits): Same.
12604 (predict_loops): Same.
12605 (predict_paths_for_bb): Same.
12606 (predict_paths_leading_to): Same.
12607 (propagate_freq): Same.
12608 (pass_profile::execute): Same.
12609 * predict.h: Same.
12610 * profile-count.c (profile_count::differs_from_p): Same.
12611 (profile_probability::differs_lot_from_p): Same.
12612 * profile-count.h: Same.
12613 * profile.c (branch_prob): Same.
12614 * regrename.c (free_chain_data): Same.
12615 (mark_conflict): Same.
12616 (create_new_chain): Same.
12617 (merge_overlapping_regs): Same.
12618 (init_rename_info): Same.
12619 (merge_chains): Same.
12620 (regrename_analyze): Same.
12621 (regrename_do_replace): Same.
12622 (scan_rtx_reg): Same.
12623 (record_out_operands): Same.
12624 (build_def_use): Same.
12625 * regrename.h: Same.
12626 * reload.h: Same.
12627 * reload1.c (init_reload): Same.
12628 (maybe_fix_stack_asms): Same.
12629 (copy_reloads): Same.
12630 (count_pseudo): Same.
12631 (count_spilled_pseudo): Same.
12632 (find_reg): Same.
12633 (find_reload_regs): Same.
12634 (select_reload_regs): Same.
12635 (spill_hard_reg): Same.
12636 (fixup_eh_region_note): Same.
12637 (set_reload_reg): Same.
12638 (allocate_reload_reg): Same.
12639 (compute_reload_subreg_offset): Same.
12640 (reload_adjust_reg_for_icode): Same.
12641 (emit_input_reload_insns): Same.
12642 (emit_output_reload_insns): Same.
12643 (do_input_reload): Same.
12644 (inherit_piecemeal_p): Same.
12645 * rtl.h: Same.
12646 * sanopt.c (maybe_get_dominating_check): Same.
12647 (maybe_optimize_ubsan_ptr_ifn): Same.
12648 (can_remove_asan_check): Same.
12649 (maybe_optimize_asan_check_ifn): Same.
12650 (sanopt_optimize_walker): Same.
12651 * sched-deps.c (add_dependence_list): Same.
12652 (chain_to_prev_insn): Same.
12653 (add_insn_mem_dependence): Same.
12654 (create_insn_reg_set): Same.
12655 (maybe_extend_reg_info_p): Same.
12656 (sched_analyze_reg): Same.
12657 (sched_analyze_1): Same.
12658 (get_implicit_reg_pending_clobbers): Same.
12659 (chain_to_prev_insn_p): Same.
12660 (deps_analyze_insn): Same.
12661 (deps_start_bb): Same.
12662 (sched_free_deps): Same.
12663 (init_deps): Same.
12664 (init_deps_reg_last): Same.
12665 (free_deps): Same.
12666 * sched-ebb.c: Same.
12667 * sched-int.h: Same.
12668 * sched-rgn.c (add_branch_dependences): Same.
12669 (concat_insn_mem_list): Same.
12670 (deps_join): Same.
12671 (sched_rgn_compute_dependencies): Same.
12672 * sel-sched-ir.c (reset_target_context): Same.
12673 (copy_deps_context): Same.
12674 (init_id_from_df): Same.
12675 (has_dependence_p): Same.
12676 (change_loops_latches): Same.
12677 (bb_top_order_comparator): Same.
12678 (make_region_from_loop_preheader): Same.
12679 (sel_init_pipelining): Same.
12680 (get_loop_nest_for_rgn): Same.
12681 (make_regions_from_the_rest): Same.
12682 (sel_is_loop_preheader_p): Same.
12683 * sel-sched-ir.h (inner_loop_header_p): Same.
12684 (get_all_loop_exits): Same.
12685 * selftest.h: Same.
12686 * sese.c (sese_build_liveouts): Same.
12687 (sese_insert_phis_for_liveouts): Same.
12688 * sese.h (defined_in_sese_p): Same.
12689 * sreal.c (sreal::stream_out): Same.
12690 * sreal.h: Same.
12691 * streamer-hooks.h: Same.
12692 * target-globals.c (save_target_globals): Same.
12693 * target-globals.h: Same.
12694 * target.def: Same.
12695 * target.h: Same.
12696 * targhooks.c (default_has_ifunc_p): Same.
12697 (default_empty_mask_is_expensive): Same.
12698 (default_init_cost): Same.
12699 * targhooks.h: Same.
12700 * toplev.c: Same.
12701 * tree-affine.c (aff_combination_mult): Same.
12702 (aff_combination_expand): Same.
12703 (aff_combination_constant_multiple_p): Same.
12704 * tree-affine.h: Same.
12705 * tree-cfg.c (build_gimple_cfg): Same.
12706 (replace_loop_annotate_in_block): Same.
12707 (replace_uses_by): Same.
12708 (remove_bb): Same.
12709 (dump_cfg_stats): Same.
12710 (gimple_duplicate_sese_region): Same.
12711 (gimple_duplicate_sese_tail): Same.
12712 (move_block_to_fn): Same.
12713 (replace_block_vars_by_duplicates): Same.
12714 (move_sese_region_to_fn): Same.
12715 (print_loops_bb): Same.
12716 (print_loop): Same.
12717 (print_loops): Same.
12718 (debug): Same.
12719 (debug_loops): Same.
12720 * tree-cfg.h: Same.
12721 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12722 (chrec_fold_multiply_poly_poly): Same.
12723 (chrec_evaluate): Same.
12724 (chrec_component_in_loop_num): Same.
12725 (reset_evolution_in_loop): Same.
12726 (is_multivariate_chrec): Same.
12727 (chrec_contains_symbols): Same.
12728 (nb_vars_in_chrec): Same.
12729 (chrec_convert_1): Same.
12730 (chrec_convert_aggressive): Same.
12731 * tree-chrec.h: Same.
12732 * tree-core.h: Same.
12733 * tree-data-ref.c (dump_data_dependence_relation): Same.
12734 (canonicalize_base_object_address): Same.
12735 (data_ref_compare_tree): Same.
12736 (prune_runtime_alias_test_list): Same.
12737 (get_segment_min_max): Same.
12738 (create_intersect_range_checks): Same.
12739 (conflict_fn_no_dependence): Same.
12740 (object_address_invariant_in_loop_p): Same.
12741 (analyze_ziv_subscript): Same.
12742 (analyze_siv_subscript_cst_affine): Same.
12743 (analyze_miv_subscript): Same.
12744 (analyze_overlapping_iterations): Same.
12745 (build_classic_dist_vector_1): Same.
12746 (add_other_self_distances): Same.
12747 (same_access_functions): Same.
12748 (build_classic_dir_vector): Same.
12749 (subscript_dependence_tester_1): Same.
12750 (subscript_dependence_tester): Same.
12751 (access_functions_are_affine_or_constant_p): Same.
12752 (get_references_in_stmt): Same.
12753 (loop_nest_has_data_refs): Same.
12754 (graphite_find_data_references_in_stmt): Same.
12755 (find_data_references_in_bb): Same.
12756 (get_base_for_alignment): Same.
12757 (find_loop_nest_1): Same.
12758 (find_loop_nest): Same.
12759 * tree-data-ref.h (dr_alignment): Same.
12760 (ddr_dependence_level): Same.
12761 * tree-if-conv.c (fold_build_cond_expr): Same.
12762 (add_to_predicate_list): Same.
12763 (add_to_dst_predicate_list): Same.
12764 (phi_convertible_by_degenerating_args): Same.
12765 (idx_within_array_bound): Same.
12766 (all_preds_critical_p): Same.
12767 (pred_blocks_visited_p): Same.
12768 (predicate_bbs): Same.
12769 (build_region): Same.
12770 (if_convertible_loop_p_1): Same.
12771 (is_cond_scalar_reduction): Same.
12772 (predicate_scalar_phi): Same.
12773 (remove_conditions_and_labels): Same.
12774 (combine_blocks): Same.
12775 (version_loop_for_if_conversion): Same.
12776 (versionable_outer_loop_p): Same.
12777 (ifcvt_local_dce): Same.
12778 (tree_if_conversion): Same.
12779 (pass_if_conversion::gate): Same.
12780 * tree-if-conv.h: Same.
12781 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12782 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12783 (free_rdg): Same.
12784 (stmt_has_scalar_dependences_outside_loop): Same.
12785 (copy_loop_before): Same.
12786 (create_bb_after_loop): Same.
12787 (const_with_all_bytes_same): Same.
12788 (generate_memset_builtin): Same.
12789 (generate_memcpy_builtin): Same.
12790 (destroy_loop): Same.
12791 (build_rdg_partition_for_vertex): Same.
12792 (compute_access_range): Same.
12793 (data_ref_segment_size): Same.
12794 (latch_dominated_by_data_ref): Same.
12795 (compute_alias_check_pairs): Same.
12796 (fuse_memset_builtins): Same.
12797 (finalize_partitions): Same.
12798 (find_seed_stmts_for_distribution): Same.
12799 (prepare_perfect_loop_nest): Same.
12800 * tree-parloops.c (lambda_transform_legal_p): Same.
12801 (loop_parallel_p): Same.
12802 (reduc_stmt_res): Same.
12803 (add_field_for_name): Same.
12804 (create_call_for_reduction_1): Same.
12805 (replace_uses_in_bb_by): Same.
12806 (transform_to_exit_first_loop_alt): Same.
12807 (try_transform_to_exit_first_loop_alt): Same.
12808 (transform_to_exit_first_loop): Same.
12809 (num_phis): Same.
12810 (gen_parallel_loop): Same.
12811 (gather_scalar_reductions): Same.
12812 (get_omp_data_i_param): Same.
12813 (try_create_reduction_list): Same.
12814 (oacc_entry_exit_single_gang): Same.
12815 (parallelize_loops): Same.
12816 * tree-pass.h: Same.
12817 * tree-predcom.c (determine_offset): Same.
12818 (last_always_executed_block): Same.
12819 (split_data_refs_to_components): Same.
12820 (suitable_component_p): Same.
12821 (valid_initializer_p): Same.
12822 (find_looparound_phi): Same.
12823 (insert_looparound_copy): Same.
12824 (add_looparound_copies): Same.
12825 (determine_roots_comp): Same.
12826 (predcom_tmp_var): Same.
12827 (initialize_root_vars): Same.
12828 (initialize_root_vars_store_elim_1): Same.
12829 (initialize_root_vars_store_elim_2): Same.
12830 (finalize_eliminated_stores): Same.
12831 (initialize_root_vars_lm): Same.
12832 (remove_stmt): Same.
12833 (determine_unroll_factor): Same.
12834 (execute_pred_commoning_cbck): Same.
12835 (base_names_in_chain_on): Same.
12836 (combine_chains): Same.
12837 (pcom_stmt_dominates_stmt_p): Same.
12838 (try_combine_chains): Same.
12839 (prepare_initializers_chain_store_elim): Same.
12840 (prepare_initializers_chain): Same.
12841 (prepare_initializers): Same.
12842 (prepare_finalizers_chain): Same.
12843 (prepare_finalizers): Same.
12844 (insert_init_seqs): Same.
12845 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12846 (compute_overall_effect_of_inner_loop): Same.
12847 (add_to_evolution_1): Same.
12848 (add_to_evolution): Same.
12849 (follow_ssa_edge_binary): Same.
12850 (follow_ssa_edge_expr): Same.
12851 (backedge_phi_arg_p): Same.
12852 (follow_ssa_edge_in_condition_phi_branch): Same.
12853 (follow_ssa_edge_in_condition_phi): Same.
12854 (follow_ssa_edge_inner_loop_phi): Same.
12855 (follow_ssa_edge): Same.
12856 (analyze_evolution_in_loop): Same.
12857 (analyze_initial_condition): Same.
12858 (interpret_loop_phi): Same.
12859 (interpret_condition_phi): Same.
12860 (interpret_rhs_expr): Same.
12861 (interpret_expr): Same.
12862 (interpret_gimple_assign): Same.
12863 (analyze_scalar_evolution_1): Same.
12864 (analyze_scalar_evolution): Same.
12865 (analyze_scalar_evolution_for_address_of): Same.
12866 (get_instantiated_value_entry): Same.
12867 (loop_closed_phi_def): Same.
12868 (instantiate_scev_name): Same.
12869 (instantiate_scev_poly): Same.
12870 (instantiate_scev_binary): Same.
12871 (instantiate_scev_convert): Same.
12872 (instantiate_scev_not): Same.
12873 (instantiate_scev_r): Same.
12874 (instantiate_scev): Same.
12875 (resolve_mixers): Same.
12876 (initialize_scalar_evolutions_analyzer): Same.
12877 (scev_reset_htab): Same.
12878 (scev_reset): Same.
12879 (derive_simple_iv_with_niters): Same.
12880 (simple_iv_with_niters): Same.
12881 (expression_expensive_p): Same.
12882 (final_value_replacement_loop): Same.
12883 * tree-scalar-evolution.h (block_before_loop): Same.
12884 * tree-ssa-address.h: Same.
12885 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12886 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12887 (record_edge_info): Same.
12888 * tree-ssa-live.c (var_map_base_fini): Same.
12889 (remove_unused_locals): Same.
12890 * tree-ssa-live.h: Same.
12891 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12892 (pass_ch_vect::execute): Same.
12893 (pass_ch::process_loop_p): Same.
12894 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12895 (movement_possibility): Same.
12896 (outermost_invariant_loop): Same.
12897 (stmt_cost): Same.
12898 (determine_max_movement): Same.
12899 (invariantness_dom_walker::before_dom_children): Same.
12900 (move_computations): Same.
12901 (may_move_till): Same.
12902 (force_move_till_op): Same.
12903 (force_move_till): Same.
12904 (memref_free): Same.
12905 (record_mem_ref_loc): Same.
12906 (set_ref_stored_in_loop): Same.
12907 (mark_ref_stored): Same.
12908 (sort_bbs_in_loop_postorder_cmp): Same.
12909 (sort_locs_in_loop_postorder_cmp): Same.
12910 (analyze_memory_references): Same.
12911 (mem_refs_may_alias_p): Same.
12912 (find_ref_loc_in_loop_cmp): Same.
12913 (rewrite_mem_ref_loc::operator): Same.
12914 (first_mem_ref_loc_1::operator): Same.
12915 (sm_set_flag_if_changed::operator): Same.
12916 (execute_sm_if_changed_flag_set): Same.
12917 (execute_sm): Same.
12918 (hoist_memory_references): Same.
12919 (ref_always_accessed::operator): Same.
12920 (refs_independent_p): Same.
12921 (record_dep_loop): Same.
12922 (ref_indep_loop_p_1): Same.
12923 (ref_indep_loop_p): Same.
12924 (can_sm_ref_p): Same.
12925 (find_refs_for_sm): Same.
12926 (loop_suitable_for_sm): Same.
12927 (store_motion_loop): Same.
12928 (store_motion): Same.
12929 (fill_always_executed_in): Same.
12930 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12931 (estimated_unrolled_size): Same.
12932 (loop_edge_to_cancel): Same.
12933 (remove_exits_and_undefined_stmts): Same.
12934 (remove_redundant_iv_tests): Same.
12935 (unloop_loops): Same.
12936 (estimated_peeled_sequence_size): Same.
12937 (try_peel_loop): Same.
12938 (canonicalize_loop_induction_variables): Same.
12939 (canonicalize_induction_variables): Same.
12940 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12941 (name_info): Same.
12942 (stmt_after_inc_pos): Same.
12943 (contains_abnormal_ssa_name_p): Same.
12944 (niter_for_exit): Same.
12945 (find_bivs): Same.
12946 (mark_bivs): Same.
12947 (find_givs_in_bb): Same.
12948 (find_induction_variables): Same.
12949 (find_interesting_uses_cond): Same.
12950 (outermost_invariant_loop_for_expr): Same.
12951 (idx_find_step): Same.
12952 (add_candidate_1): Same.
12953 (add_iv_candidate_derived_from_uses): Same.
12954 (alloc_use_cost_map): Same.
12955 (prepare_decl_rtl): Same.
12956 (generic_predict_doloop_p): Same.
12957 (computation_cost): Same.
12958 (determine_common_wider_type): Same.
12959 (get_computation_aff_1): Same.
12960 (get_use_type): Same.
12961 (determine_group_iv_cost_address): Same.
12962 (iv_period): Same.
12963 (difference_cannot_overflow_p): Same.
12964 (may_eliminate_iv): Same.
12965 (determine_set_costs): Same.
12966 (cheaper_cost_pair): Same.
12967 (compare_cost_pair): Same.
12968 (iv_ca_cand_for_group): Same.
12969 (iv_ca_recount_cost): Same.
12970 (iv_ca_set_remove_invs): Same.
12971 (iv_ca_set_no_cp): Same.
12972 (iv_ca_set_add_invs): Same.
12973 (iv_ca_set_cp): Same.
12974 (iv_ca_add_group): Same.
12975 (iv_ca_cost): Same.
12976 (iv_ca_compare_deps): Same.
12977 (iv_ca_delta_reverse): Same.
12978 (iv_ca_delta_commit): Same.
12979 (iv_ca_cand_used_p): Same.
12980 (iv_ca_delta_free): Same.
12981 (iv_ca_new): Same.
12982 (iv_ca_free): Same.
12983 (iv_ca_dump): Same.
12984 (iv_ca_extend): Same.
12985 (iv_ca_narrow): Same.
12986 (iv_ca_prune): Same.
12987 (cheaper_cost_with_cand): Same.
12988 (iv_ca_replace): Same.
12989 (try_add_cand_for): Same.
12990 (get_initial_solution): Same.
12991 (try_improve_iv_set): Same.
12992 (find_optimal_iv_set_1): Same.
12993 (create_new_iv): Same.
12994 (rewrite_use_compare): Same.
12995 (remove_unused_ivs): Same.
12996 (determine_scaling_factor): Same.
12997 * tree-ssa-loop-ivopts.h: Same.
12998 * tree-ssa-loop-manip.c (create_iv): Same.
12999 (compute_live_loop_exits): Same.
13000 (add_exit_phi): Same.
13001 (add_exit_phis): Same.
13002 (find_uses_to_rename_use): Same.
13003 (find_uses_to_rename_def): Same.
13004 (find_uses_to_rename_in_loop): Same.
13005 (rewrite_into_loop_closed_ssa): Same.
13006 (check_loop_closed_ssa_bb): Same.
13007 (split_loop_exit_edge): Same.
13008 (ip_end_pos): Same.
13009 (ip_normal_pos): Same.
13010 (copy_phi_node_args): Same.
13011 (gimple_duplicate_loop_to_header_edge): Same.
13012 (can_unroll_loop_p): Same.
13013 (determine_exit_conditions): Same.
13014 (scale_dominated_blocks_in_loop): Same.
13015 (niter_for_unrolled_loop): Same.
13016 (tree_transform_and_unroll_loop): Same.
13017 (rewrite_all_phi_nodes_with_iv): Same.
13018 * tree-ssa-loop-manip.h: Same.
13019 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
13020 (number_of_iterations_ne): Same.
13021 (assert_no_overflow_lt): Same.
13022 (assert_loop_rolls_lt): Same.
13023 (number_of_iterations_lt): Same.
13024 (adjust_cond_for_loop_until_wrap): Same.
13025 (tree_simplify_using_condition): Same.
13026 (simplify_using_initial_conditions): Same.
13027 (simplify_using_outer_evolutions): Same.
13028 (loop_only_exit_p): Same.
13029 (ssa_defined_by_minus_one_stmt_p): Same.
13030 (number_of_iterations_popcount): Same.
13031 (number_of_iterations_exit): Same.
13032 (find_loop_niter): Same.
13033 (finite_loop_p): Same.
13034 (chain_of_csts_start): Same.
13035 (get_val_for): Same.
13036 (loop_niter_by_eval): Same.
13037 (derive_constant_upper_bound_ops): Same.
13038 (do_warn_aggressive_loop_optimizations): Same.
13039 (record_estimate): Same.
13040 (get_cst_init_from_scev): Same.
13041 (record_nonwrapping_iv): Same.
13042 (idx_infer_loop_bounds): Same.
13043 (infer_loop_bounds_from_ref): Same.
13044 (infer_loop_bounds_from_array): Same.
13045 (infer_loop_bounds_from_pointer_arith): Same.
13046 (infer_loop_bounds_from_signedness): Same.
13047 (bound_index): Same.
13048 (discover_iteration_bound_by_body_walk): Same.
13049 (maybe_lower_iteration_bound): Same.
13050 (estimate_numbers_of_iterations): Same.
13051 (estimated_loop_iterations): Same.
13052 (estimated_loop_iterations_int): Same.
13053 (max_loop_iterations): Same.
13054 (max_loop_iterations_int): Same.
13055 (likely_max_loop_iterations): Same.
13056 (likely_max_loop_iterations_int): Same.
13057 (estimated_stmt_executions_int): Same.
13058 (max_stmt_executions): Same.
13059 (likely_max_stmt_executions): Same.
13060 (estimated_stmt_executions): Same.
13061 (stmt_dominates_stmt_p): Same.
13062 (nowrap_type_p): Same.
13063 (loop_exits_before_overflow): Same.
13064 (scev_var_range_cant_overflow): Same.
13065 (scev_probably_wraps_p): Same.
13066 (free_numbers_of_iterations_estimates): Same.
13067 * tree-ssa-loop-niter.h: Same.
13068 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
13069 (idx_analyze_ref): Same.
13070 (analyze_ref): Same.
13071 (gather_memory_references_ref): Same.
13072 (mark_nontemporal_store): Same.
13073 (emit_mfence_after_loop): Same.
13074 (may_use_storent_in_loop_p): Same.
13075 (mark_nontemporal_stores): Same.
13076 (should_unroll_loop_p): Same.
13077 (volume_of_dist_vector): Same.
13078 (add_subscript_strides): Same.
13079 (self_reuse_distance): Same.
13080 (insn_to_prefetch_ratio_too_small_p): Same.
13081 * tree-ssa-loop-split.c (split_at_bb_p): Same.
13082 (patch_loop_exit): Same.
13083 (find_or_create_guard_phi): Same.
13084 (easy_exit_values): Same.
13085 (connect_loop_phis): Same.
13086 (connect_loops): Same.
13087 (compute_new_first_bound): Same.
13088 (split_loop): Same.
13089 (tree_ssa_split_loops): Same.
13090 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
13091 (is_maybe_undefined): Same.
13092 (tree_may_unswitch_on): Same.
13093 (simplify_using_entry_checks): Same.
13094 (tree_unswitch_single_loop): Same.
13095 (tree_unswitch_loop): Same.
13096 (tree_unswitch_outer_loop): Same.
13097 (empty_bb_without_guard_p): Same.
13098 (used_outside_loop_p): Same.
13099 (get_vop_from_header): Same.
13100 (hoist_guard): Same.
13101 * tree-ssa-loop.c (gate_oacc_kernels): Same.
13102 (get_lsm_tmp_name): Same.
13103 * tree-ssa-loop.h: Same.
13104 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
13105 (build_and_add_sum): Same.
13106 (no_side_effect_bb): Same.
13107 (get_ops): Same.
13108 (linearize_expr): Same.
13109 (should_break_up_subtract): Same.
13110 (linearize_expr_tree): Same.
13111 * tree-ssa-scopedtables.c: Same.
13112 * tree-ssa-scopedtables.h: Same.
13113 * tree-ssa-structalias.c (condense_visit): Same.
13114 (label_visit): Same.
13115 (dump_pred_graph): Same.
13116 (perform_var_substitution): Same.
13117 (move_complex_constraints): Same.
13118 (remove_preds_and_fake_succs): Same.
13119 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
13120 (determine_bb_domination_status): Same.
13121 (duplicate_thread_path): Same.
13122 (thread_through_all_blocks): Same.
13123 * tree-ssa-threadupdate.h: Same.
13124 * tree-streamer-in.c (streamer_read_string_cst): Same.
13125 (input_identifier): Same.
13126 (unpack_ts_type_common_value_fields): Same.
13127 (unpack_ts_block_value_fields): Same.
13128 (unpack_ts_translation_unit_decl_value_fields): Same.
13129 (unpack_ts_omp_clause_value_fields): Same.
13130 (streamer_read_tree_bitfields): Same.
13131 (streamer_alloc_tree): Same.
13132 (lto_input_ts_common_tree_pointers): Same.
13133 (lto_input_ts_vector_tree_pointers): Same.
13134 (lto_input_ts_poly_tree_pointers): Same.
13135 (lto_input_ts_complex_tree_pointers): Same.
13136 (lto_input_ts_decl_minimal_tree_pointers): Same.
13137 (lto_input_ts_decl_common_tree_pointers): Same.
13138 (lto_input_ts_decl_non_common_tree_pointers): Same.
13139 (lto_input_ts_decl_with_vis_tree_pointers): Same.
13140 (lto_input_ts_field_decl_tree_pointers): Same.
13141 (lto_input_ts_function_decl_tree_pointers): Same.
13142 (lto_input_ts_type_common_tree_pointers): Same.
13143 (lto_input_ts_type_non_common_tree_pointers): Same.
13144 (lto_input_ts_list_tree_pointers): Same.
13145 (lto_input_ts_vec_tree_pointers): Same.
13146 (lto_input_ts_exp_tree_pointers): Same.
13147 (lto_input_ts_block_tree_pointers): Same.
13148 (lto_input_ts_binfo_tree_pointers): Same.
13149 (lto_input_ts_constructor_tree_pointers): Same.
13150 (lto_input_ts_omp_clause_tree_pointers): Same.
13151 (streamer_read_tree_body): Same.
13152 * tree-streamer.h: Same.
13153 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13154 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13155 (vect_analyze_possibly_independent_ddr): Same.
13156 (vect_analyze_data_ref_dependence): Same.
13157 (vect_compute_data_ref_alignment): Same.
13158 (vect_enhance_data_refs_alignment): Same.
13159 (vect_analyze_data_ref_access): Same.
13160 (vect_check_gather_scatter): Same.
13161 (vect_find_stmt_data_reference): Same.
13162 (vect_create_addr_base_for_vector_ref): Same.
13163 (vect_setup_realignment): Same.
13164 (vect_supportable_dr_alignment): Same.
13165 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13166 (adjust_phi_and_debug_stmts): Same.
13167 (vect_set_loop_mask): Same.
13168 (add_preheader_seq): Same.
13169 (vect_maybe_permute_loop_masks): Same.
13170 (vect_set_loop_masks_directly): Same.
13171 (vect_set_loop_condition_masked): Same.
13172 (vect_set_loop_condition_unmasked): Same.
13173 (slpeel_duplicate_current_defs_from_edges): Same.
13174 (slpeel_add_loop_guard): Same.
13175 (slpeel_can_duplicate_loop_p): Same.
13176 (create_lcssa_for_virtual_phi): Same.
13177 (iv_phi_p): Same.
13178 (vect_update_ivs_after_vectorizer): Same.
13179 (vect_gen_vector_loop_niters_mult_vf): Same.
13180 (slpeel_update_phi_nodes_for_loops): Same.
13181 (slpeel_update_phi_nodes_for_guard1): Same.
13182 (find_guard_arg): Same.
13183 (slpeel_update_phi_nodes_for_guard2): Same.
13184 (slpeel_update_phi_nodes_for_lcssa): Same.
13185 (vect_do_peeling): Same.
13186 (vect_create_cond_for_alias_checks): Same.
13187 (vect_loop_versioning): Same.
13188 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13189 (vect_inner_phi_in_double_reduction_p): Same.
13190 (vect_analyze_scalar_cycles_1): Same.
13191 (vect_fixup_scalar_cycles_with_patterns): Same.
13192 (vect_get_loop_niters): Same.
13193 (bb_in_loop_p): Same.
13194 (vect_get_max_nscalars_per_iter): Same.
13195 (vect_verify_full_masking): Same.
13196 (vect_compute_single_scalar_iteration_cost): Same.
13197 (vect_analyze_loop_form_1): Same.
13198 (vect_analyze_loop_form): Same.
13199 (vect_active_double_reduction_p): Same.
13200 (vect_analyze_loop_operations): Same.
13201 (neutral_op_for_slp_reduction): Same.
13202 (vect_is_simple_reduction): Same.
13203 (vect_model_reduction_cost): Same.
13204 (get_initial_def_for_reduction): Same.
13205 (get_initial_defs_for_reduction): Same.
13206 (vect_create_epilog_for_reduction): Same.
13207 (vectorize_fold_left_reduction): Same.
13208 (vectorizable_reduction): Same.
13209 (vectorizable_induction): Same.
13210 (vectorizable_live_operation): Same.
13211 (loop_niters_no_overflow): Same.
13212 (vect_get_loop_mask): Same.
13213 (vect_transform_loop_stmt): Same.
13214 (vect_transform_loop): Same.
13215 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13216 (vect_determine_precisions): Same.
13217 (vect_pattern_recog_1): Same.
13218 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13219 * tree-vect-stmts.c (stmt_vectype): Same.
13220 (process_use): Same.
13221 (vect_init_vector_1): Same.
13222 (vect_truncate_gather_scatter_offset): Same.
13223 (get_group_load_store_type): Same.
13224 (vect_build_gather_load_calls): Same.
13225 (vect_get_strided_load_store_ops): Same.
13226 (vectorizable_simd_clone_call): Same.
13227 (vectorizable_store): Same.
13228 (permute_vec_elements): Same.
13229 (vectorizable_load): Same.
13230 (vect_transform_stmt): Same.
13231 (supportable_widening_operation): Same.
13232 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13233 (vec_info::free_stmt_vec_info): Same.
13234 (vect_free_loop_info_assumptions): Same.
13235 (vect_loop_vectorized_call): Same.
13236 (set_uid_loop_bbs): Same.
13237 (vectorize_loops): Same.
13238 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13239 * tree.c (add_tree_to_fld_list): Same.
13240 (fld_type_variant_equal_p): Same.
13241 (fld_decl_context): Same.
13242 (fld_incomplete_type_of): Same.
13243 (free_lang_data_in_binfo): Same.
13244 (need_assembler_name_p): Same.
13245 (find_decls_types_r): Same.
13246 (get_eh_types_for_runtime): Same.
13247 (find_decls_types_in_eh_region): Same.
13248 (find_decls_types_in_node): Same.
13249 (assign_assembler_name_if_needed): Same.
13250 * value-prof.c (stream_out_histogram_value): Same.
13251 * value-prof.h: Same.
13252 * var-tracking.c (use_narrower_mode): Same.
13253 (prepare_call_arguments): Same.
13254 (vt_expand_loc_callback): Same.
13255 (resolve_expansions_pending_recursion): Same.
13256 (vt_expand_loc): Same.
13257 * varasm.c (const_hash_1): Same.
13258 (compare_constant): Same.
13259 (tree_output_constant_def): Same.
13260 (simplify_subtraction): Same.
13261 (get_pool_constant): Same.
13262 (output_constant_pool_2): Same.
13263 (output_constant_pool_1): Same.
13264 (mark_constants_in_pattern): Same.
13265 (mark_constant_pool): Same.
13266 (get_section_anchor): Same.
13267 * vr-values.c (compare_range_with_value): Same.
13268 (vr_values::extract_range_from_phi_node): Same.
13269 * vr-values.h: Same.
13270 * web.c (unionfind_union): Same.
13271 * wide-int.h: Same.
13272
13273 2019-07-09 Martin Sebor <msebor@redhat.com>
13274
13275 PR c++/61339
13276 * align.h: Change class-key from class to struct and vice versa
13277 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13278 * alloc-pool.h: Same.
13279 * asan.c (shadow_mem_size): Same.
13280 * auto-profile.c: Same.
13281 * basic-block.h: Same.
13282 * bitmap.h: Same.
13283 * cfgexpand.c (set_rtl): Same.
13284 (expand_one_stack_var_at): Same.
13285 * cfghooks.h: Same.
13286 * cfgloop.h: Same.
13287 * cgraph.h: Same.
13288 * config/i386/i386.h: Same.
13289 * df-problems.c (df_print_bb_index): Same.
13290 * df-scan.c: Same.
13291 * df.h (df_single_use): Same.
13292 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13293 (layout::annotation_line_showed_range_p): Same.
13294 (get_printed_columns): Same.
13295 (correction::ensure_terminated): Same.
13296 (line_corrections::~line_corrections): Same.
13297 * dojump.h: Same.
13298 * dse.c: Same.
13299 * dump-context.h: Same.
13300 * dumpfile.h: Same.
13301 * dwarf2out.c: Same.
13302 * edit-context.c: Same.
13303 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13304 * flags.h: Same.
13305 * function.c (assign_stack_local): Same.
13306 * function.h: Same.
13307 * gcc.c: Same.
13308 * gcov.c (block_info::block_info): Same.
13309 * genattrtab.c: Same.
13310 * genextract.c: Same.
13311 * genmatch.c (comparison_code_p): Same.
13312 (id_base::id_base): Same.
13313 (decision_tree::print): Same.
13314 * genoutput.c: Same.
13315 * genpreds.c (write_one_predicate_function): Same.
13316 * genrecog.c (validate_pattern): Same.
13317 (find_operand_positions): Same.
13318 (optimize_subroutine_group): Same.
13319 (merge_pattern_transition::merge_pattern_transition): Same.
13320 (merge_pattern_info::merge_pattern_info): Same.
13321 (merge_state_result::merge_state_result): Same.
13322 (merge_into_state): Same.
13323 * gensupport.c: Same.
13324 * gensupport.h: Same.
13325 * ggc-common.c (init_ggc_heuristics): Same.
13326 * ggc-tests.c (test_union): Same.
13327 * gimple-loop-interchange.cc (dump_induction): Same.
13328 * gimple-loop-versioning.cc: Same.
13329 * gimple-match.h (gimple_match_cond::any_else): Same.
13330 * gimple-ssa-backprop.c: Same.
13331 * gimple-ssa-sprintf.c: Same.
13332 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13333 Same.
13334 (store_immediate_info::store_immediate_info): Same.
13335 (merged_store_group::apply_stores): Same.
13336 (get_location_for_stmts): Same.
13337 * gimple-ssa-strength-reduction.c: Same.
13338 * gimple-ssa-warn-alloca.c: Same.
13339 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13340 * godump.c (go_type_decl): Same.
13341 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13342 * hash-map.h: Same.
13343 * hash-set-tests.c (test_set_of_strings): Same.
13344 * hsa-brig.c: Same.
13345 * hsa-common.h: Same.
13346 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13347 * input.c (assert_loceq): Same.
13348 * input.h: Same.
13349 * ipa-cp.c: Same.
13350 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13351 * ipa-fnsummary.h: Same.
13352 * ipa-inline.h: Same.
13353 * ipa-prop.h: Same.
13354 * ipa-split.c (visit_bb): Same.
13355 * ira-int.h (minmax_set_iter_next): Same.
13356 * loop-invariant.c: Same.
13357 * loop-iv.c: Same.
13358 * lra-eliminations.c: Same.
13359 * lra-int.h: Same.
13360 * lra-lives.c (mark_regno_dead): Same.
13361 * lra-remat.c: Same.
13362 * lra-spills.c: Same.
13363 * lto-streamer.h: Same.
13364 * mem-stats.h: Same.
13365 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13366 * omp-low.c (omp_clause_aligned_alignment): Same.
13367 * optabs-query.h (get_vcond_eq_icode): Same.
13368 * optabs.h: Same.
13369 * opts.c (wrap_help): Same.
13370 * poly-int.h: Same.
13371 * predict.c (predict_paths_leading_to_edge): Same.
13372 * pretty-print.h: Same.
13373 * profile-count.h: Same.
13374 * read-md.h: Same.
13375 * read-rtl-function.c: Same.
13376 * ree.c: Same.
13377 * reginfo.c: Same.
13378 * regrename.c: Same.
13379 * regrename.h: Same.
13380 * reload.h: Same.
13381 * rtl-iter.h: Same.
13382 * rtl.h (costs_add_n_insns): Same.
13383 * sanopt.c: Same.
13384 * sched-int.h: Same.
13385 * sel-sched-ir.h: Same.
13386 * selftest.h: Same.
13387 * sese.h (vec_find): Same.
13388 * stmt.c: Same.
13389 * target-globals.h: Same.
13390 * tree-affine.c (aff_combination_find_elt): Same.
13391 * tree-affine.h: Same.
13392 * tree-data-ref.h: Same.
13393 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13394 * tree-predcom.c: Same.
13395 * tree-scalar-evolution.c (find_var_scev_info): Same.
13396 * tree-ssa-alias.h: Same.
13397 * tree-ssa-ccp.c: Same.
13398 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13399 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13400 (rewrite_mem_refs): Same.
13401 (execute_sm_if_changed): Same.
13402 (hoist_memory_references): Same.
13403 * tree-ssa-loop-ivopts.c (operator<=): Same.
13404 * tree-ssa-loop.h: Same.
13405 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13406 * tree-ssa-structalias.c: Same.
13407 * tree-switch-conversion.h (cluster::cluster): Same.
13408 (simple_cluster::simple_cluster): Same.
13409 * tree-vect-patterns.c (type_conversion_p): Same.
13410 * tree-vectorizer.c (dump_stmt_cost): Same.
13411 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13412 * tree.c (protected_set_expr_location): Same.
13413 * tree.h (desired_pro_or_demotion_p): Same.
13414 (fndecl_built_in_p): Same.
13415 * unique-ptr-tests.cc: Same.
13416 * var-tracking.c (delete_variable_part): Same.
13417 * varasm.c (assemble_real): Same.
13418 (tree_output_constant_def): Same.
13419 * vec.c: Same.
13420 * wide-int-bitmask.h: Same.
13421 * wide-int.h (decompose): Same.
13422
13423 2019-07-09 Richard Biener <rguenther@suse.de>
13424
13425 PR tree-optimization/91114
13426 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13427 find a vector type isn't fatal.
13428
13429 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13430
13431 * config/aarch64/aarch64-simd.md
13432 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13433 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13434 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13435 (*aarch64_crypto_aese_fused,
13436 *aarch64_crypto_aesd_fused): Update to new definition.
13437 * config/aarch64/aarch64.c
13438 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13439
13440 2019-07-09 Richard Biener <rguenther@suse.de>
13441
13442 * gimple-match.h (gimple_match_op::resimplify): New.
13443 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13444 gimple_resimplify4, gimple_resimplify5): Remove.
13445 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13446 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13447 Make static.
13448 (gimple_match_op::resimplify): New.
13449 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13450 according to availability. Use gimple_match_op::resimplify.
13451
13452 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13453
13454 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13455
13456 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13457
13458 * config/arm/crypto.md:
13459 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13460 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13461 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13462 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13463 * config/arm/arm.c
13464 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13465 * config/arm/aarch-common-protos.h
13466 (aarch_crypto_can_dual_issue): Remove.
13467 * config/arm/aarch-common.c
13468 (aarch_crypto_can_dual_issue): Likewise.
13469 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13470 * config/arm/cortex-a53.md: Likewise.
13471 * config/arm/cortex-a57.md: Likewise.
13472 * config/arm/iterators.md:
13473 (CRYPTO_BINARY): Redefine.
13474 (CRYPTO_UNARY): Removed.
13475 (CRYPTO_AES, CRYPTO_AESMC): New.
13476
13477 2019-07-09 Richard Biener <rguenther@suse.de>
13478
13479 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13480 (vn_reference_lookup_3): If the main ref has no access path recorded
13481 but orig_ref has use it to do access-path based disambiguation.
13482 (vn_reference_lookup_pieces): Adjust.
13483 (vn_reference_lookup): Pass down original ref if we valueized.
13484
13485 2019-07-09 Martin Liska <mliska@suse.cz>
13486
13487 * doc/extend.texi: Document influence on loop
13488 optimizers.
13489
13490 2019-07-09 Martin Liska <mliska@suse.cz>
13491
13492 * lto-compress.c (lto_normalized_zstd_level): Do not use
13493 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13494 of libzstd. One can use 0 as a default compression level.
13495
13496 2019-07-09 Martin Liska <mliska@suse.cz>
13497
13498 * doc/invoke.texi: Add link from -fprofile-dir option.
13499 Use better wording for 'gcno filename'.
13500
13501 2019-07-08 Martin Sebor <msebor@redhat.com>
13502
13503 PR middle-end/71924
13504 PR middle-end/90549
13505 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13506 comment.
13507 (args_loc_t): New type.
13508 (args_loc_t, locmap_t): same.
13509 (diag_returned_locals): New function.
13510 (is_addr_local): Same.
13511 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13512 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13513 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13514
13515 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13516
13517 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13518 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13519 and casts in offset when different, both through gimple stmts
13520 and through trees. Rewritten using loops to minimize code duplication
13521 for each operand.
13522
13523 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13524
13525 * emit-rtl.c (set_insn_locations): New function moved from...
13526 * function.c (set_insn_locations): ...here.
13527 * ira-emit.c (emit_moves): Propagate location of the first instruction
13528 to the inserted move instructions.
13529 * reg-stack.c (compensate_edge): Set the location if the sequence is
13530 inserted on the edge.
13531 * rtl.h (set_insn_locations): Declare.
13532
13533 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13534
13535 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13536 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13537 .machine string.
13538
13539 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13540
13541 PR rtl-optimization/88233
13542 * common.opt (fsplit-wide-types-early): New option.
13543 * common/config/rs6000/rs6000-common.c
13544 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13545 OPT_LEVELS_ALL.
13546 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13547 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13548 flag_split_wide_types_early.
13549 (pass_data_lower_subreg3): New.
13550 (pass_lower_subreg3): New.
13551 (make_pass_lower_subreg3): New.
13552 * passes.def (pass_lower_subreg2): Move after the loop passes.
13553 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13554 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13555 the pass pipeline; its previous place is taken by ...
13556 (make_pass_lower_subreg3): ... this.
13557
13558 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13559
13560 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13561 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13562
13563 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13564
13565 * config/s390/constraints.md: Add new jsc constraint.
13566 * config/s390/predicates.md: New predicates.
13567 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13568 * config/s390/s390.c (s390_valid_shift_count): New function.
13569 (print_shift_count_operand): Use s390_valid_shift_count.
13570 (print_operand): Likewise.
13571 * config/s390/s390.md: Use new predicate.
13572 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13573 * config/s390/vector.md: Use new predicate.
13574
13575 2019-07-08 Andrew Waterman <andrew@sifive.com>
13576 Jim Wilson <jimw@sifive.com>
13577
13578 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13579 bitsize instead of BITS_PER_WORD.
13580
13581 2019-07-08 Martin Liska <mliska@suse.cz>
13582
13583 * collect2.c (defined): Revert to before r254460.
13584 (scan_prog_file): Revert to before r254460.
13585
13586 2019-07-08 Richard Biener <rguenther@suse.de>
13587
13588 PR tree-optimization/83518
13589 * tree-ssa-sccvn.c: Include splay-tree.h.
13590 (struct pd_range, struct pd_data): New.
13591 (struct vn_walk_cb_data): Add data to track partial definitions.
13592 (vn_walk_cb_data::~vn_walk_cb_data): New.
13593 (vn_walk_cb_data::push_partial_def): New.
13594 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13595 (vn_reference_lookup_2): When partial defs are registered give up.
13596 (vn_reference_lookup_3): Track partial defs for memset and
13597 constructor zeroing and for defs from constants.
13598
13599 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13600
13601 * doc/install.texi (bootstrap-Og): Document.
13602
13603 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13604
13605 * config/riscv/pic.md (*local_pic_load_s<mode>)
13606 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13607 referenced by <mode>, giving...
13608 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13609 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13610 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13611 use <X:MODE> for the mode attribute.
13612
13613 2019-07-07 Jeff Law <law@redhat.com>
13614
13615 PR tree-optimization/91090
13616 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13617 in handling of ranges to simplify switch statements.
13618
13619 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13620
13621 * config/darwin.c (darwin_override_options): Make a final check on PIC
13622 options.
13623
13624 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13625
13626 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13627 on for kernel code.
13628
13629 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13630
13631 PR target/91068
13632 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13633 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13634 instead of matching them to "l" output operands.
13635
13636 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13637
13638 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13639 and check whether addr.reg is nonnull before using it.
13640
13641 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13642
13643 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13644 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13645 variable(s). For conditional lastprivate look through outer
13646 GIMPLE_OMP_SCAN context.
13647 (lower_omp_1): For conditional lastprivate look through outer
13648 GIMPLE_OMP_SCAN context.
13649
13650 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13651 member to combined_into_simd_safelen1.
13652 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13653 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13654 clauses if ctx->combined_into_simd_safelen1 put statements after the
13655 predicate conditionalized block rather than into it.
13656
13657 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13658
13659 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13660 operand 1.
13661 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13662 Make the choice of <mode> explicit, giving...
13663 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13664
13665 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13666
13667 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13668 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13669 of .md attributes.
13670 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13671 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13672 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13673 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13674 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13675 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13676 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13677 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13678 (*avx512f_scatterdi<mode>): Likewise.
13679 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13680
13681 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13682
13683 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13684 specify the mode iterator referenced by <mode>, giving...
13685 (*push1_h8300hs_<QHI:mode>): ...this.
13686
13687 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13688
13689 * config/gcn/gcn-valu.md
13690 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13691 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13692 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13693 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13694 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13695 but using the _exec comparison patterns.
13696 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13697 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13698 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13699 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13700 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13701 but using the _exec comparison patterns.
13702
13703 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13704
13705 * config/arm/sync.md
13706 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13707 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13708 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13709 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13710 <SIDI:cas_cmp_str>.
13711
13712 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13713
13714 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13715 (maybe_lookup_ctx): Add forward declaration.
13716 (omp_find_scan): Likewise. Walk into body of simd if composited
13717 with worksharing loop.
13718 (scan_omp_simd_scan): New function.
13719 (scan_omp_1_stmt): Call it.
13720 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13721 ctx->for_simd_scan_phase.
13722 (lower_rec_input_clauses): Do much less work for inscan reductions
13723 in ctx->for_simd_scan_phase is_simd regions.
13724 (lower_omp_scan): Set is_simd also on simd constructs composited
13725 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13726 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13727 emit their body after in simd constructs composited with worksharing
13728 loop.
13729 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13730
13731 * omp-low.c (omp_find_scan): Make static.
13732 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13733 the second loop, var2 represents the first partial sum and so needs
13734 to go before rprivb[ivar].
13735
13736 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13737
13738 * config/rs6000/rs6000-logue.c: Remove unused code.
13739
13740 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13741
13742 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13743
13744 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13745
13746 PR target/90712
13747 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13748 check with a frame laid out check.
13749
13750 2019-07-05 Richard Biener <rguenther@suse.de>
13751
13752 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13753 when comparing against a store with possibly the same value.
13754
13755 2019-07-05 Richard Biener <rguenther@suse.de>
13756
13757 PR tree-optimization/91091
13758 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13759 (walk_non_aliased_vuses): Likewise.
13760 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13761 (get_continuation_for_phi): New tbaa_p parameter and pass
13762 it down.
13763 (walk_non_aliased_vuses): Likewise.
13764 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13765 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13766 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13767 Likewise.
13768 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13769 (adjust_offsets_for_equal_base_address): New function.
13770 (vn_reference_lookup_3): Use it to catch more base equivalences.
13771 Handle and pass down tbaa_p flag.
13772 (vn_reference_lookup_pieces): Adjust.
13773 (vn_reference_lookup): Remove alias-set altering, instead pass
13774 down false as tbaa_p.
13775
13776 2019-07-05 Richard Biener <rguenther@suse.de>
13777
13778 PR tree-optimization/91091
13779 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13780 accesses can happen with -fno-strict-aliasing.
13781
13782 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13783
13784 * tree-ssa-alias.c (alias_stats): Add
13785 nonoverlapping_component_refs_since_match_p_must_overlap.
13786 (dump_alias_stats): Print it.
13787 (nonoverlapping_component_refs_since_match_p): Add early exit.
13788 (nonoverlapping_component_refs_p): Do not account early exit.
13789
13790 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13791
13792 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13793 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13794 (emit_eh_dispatch): Delete.
13795 (lower_catch): Emit the eh_dispatch manually and set the location of
13796 the first catch statement onto it.
13797 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13798 (lower_eh_dispatch): Propagate location.
13799 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13800 (eliminate_build): Likewise.
13801
13802 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13803
13804 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13805 phi nodes if possible.
13806 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13807 location info on the newly created statement.
13808 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13809 newly created increment if needed.
13810
13811 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13812
13813 PR middle-end/78884
13814 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13815 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13816 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13817 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13818 ctx->add_safelen1 is set.
13819
13820 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13821 GOMP_loop_start at the start of second worksharing loop in a scan.
13822 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13823 worksharing loop in a scan even if there are conditional lastprivates,
13824 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13825
13826 2019-07-04 Jan Hubicka <jh@suse.cz>
13827
13828 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13829 Fix check for match in the ref walk.
13830
13831 2019-07-04 Martin Liska <mliska@suse.cz>
13832
13833 * tree-ssa-loop-niter.c
13834 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13835 (estimate_numbers_of_iterations):
13836 Support __builtin_expect_with_probability for analysis
13837 of # of loop iterations.
13838
13839 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13840
13841 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13842 * except.c: Likewise.
13843 * expr.c (expand_expr_real_1): Reject it.
13844 * gimplify.c (gimplify_expr): Gimplify it, within
13845 TRY_FINALLY_EXPR.
13846 * tree-dump.c (dequeue_and_dump): Dump it.
13847 * tree-pretty-print.c (dump_generic_node): Likewise.
13848 * tree.c (block_may_fallthru): Handle it.
13849 * tree.def (EH_ELSE_EXPR): Introduce it.
13850 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13851 with GIMPLE_EH_ELSE as try/finally/else.
13852
13853 2019-07-04 Richard Biener <rguenther@suse.de>
13854
13855 PR ipa/91062
13856 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13857 parameter whether to disable GC collection.
13858 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13859 honor it.
13860 (execute_all_ipa_transforms): Likewise and pass it down.
13861 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13862 collection from applying IPA transforms.
13863 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13864 from applying IPA transforms.
13865
13866 2019-07-04 Richard Biener <rguenther@suse.de>
13867
13868 PR tree-optimization/90911
13869 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13870 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13871 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13872 scalar_loop_scaling.
13873 (vect_transform_loop): Scale scalar loop profile if needed.
13874 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13875 the loop copy from if-conversion adjust edge probabilities
13876 and scale the vectorized loop body profile, queue the scalar
13877 profile for updating after peeling.
13878
13879 2019-07-04 Jan Hubicka <jh@suse.cz>
13880
13881 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13882 parameters; return early for must-alias.
13883 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13884 outer types match, try nonoverlapping_component_refs
13885 if must-alias is not obvious.
13886 (indirect_refs_may_alias_p): Likewise.
13887 (refs_may_alias_p_2): Likewise.
13888
13889 2019-07-04 Richard Biener <rguenther@suse.de>
13890
13891 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13892 argument.
13893 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13894 globals into...
13895 (struct vn_walk_cb_data): New callback data struct.
13896 (vn_reference_lookup_2): Adjust.
13897 (vn_reference_lookup_3): Likewise.
13898 (vn_reference_lookup_pieces): Likewise.
13899 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13900 (visit_reference_op_load): Adjust.
13901
13902 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13903
13904 PR tree-optimization/91063
13905 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13906 stmt from stmts sequence before calling vect_init_vector_1.
13907 Formatting fix.
13908
13909 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13910
13911 PR target/88833
13912 * fwprop.c (reg_single_def_p): New function.
13913 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13914 (forward_propagate_into): New parameter reg_prop_only
13915 with default value false.
13916 Propagate def's src into loop only if SET_SRC and SET_DEST
13917 of def_set have single definitions.
13918 Likewise if reg_prop_only is set to true.
13919 (fwprop): New param fwprop_addr_p.
13920 Integrate fwprop_addr into fwprop.
13921 (fwprop_addr): Remove.
13922 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13923 to true.
13924 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13925 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13926 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13927
13928 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13929
13930 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13931 in worksharing loop scans.
13932
13933 PR tree-optimization/91074
13934 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13935 temporary.
13936
13937 PR rtl-optimization/90756
13938 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13939 for VECTOR_TYPE_P.
13940
13941 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13942
13943 * config/aarch64/aarch64.md: Remove redundant constraints from
13944 define_expand but keep some patterns untouched if they are
13945 specially selected by TARGET_SECONDARY_RELOAD hook.
13946 * config/aarch64/aarch64-sve.md: Likewise.
13947 * config/aarch64/atomics.md: Remove redundant constraints from
13948 define_expand.
13949 * config/aarch64/aarch64-simd.md: Likewise.
13950
13951 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13952
13953 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13954 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13955 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13956 clauses.
13957 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13958 DARWIN_NOPIE_SPEC.
13959
13960 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13961
13962 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13963 (STARTFILE_SPEC): Split crt3 into a separate spec.
13964 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13965 (DARWIN_CRT2_SPEC): New.
13966 (DARWIN_CRT3_SPEC): New.
13967 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13968 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13969 (DARWIN_CRT3_SPEC): New.
13970
13971 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13972
13973 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13974 Change the RTL attribute "length" from "4" to "*" to allow the
13975 length attribute to be adjusted automatically for prefixed load,
13976 store, and add immediate instructions.
13977 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13978 Likewise.
13979 (extendsi<mode>2, EXTSI iterator): Likewise.
13980 (movsi_internal1): Likewise.
13981 (movsi_from_sf): Likewise.
13982 (movdi_from_sf_zero_ext): Likewise.
13983 (mov<mode>_internal): Likewise.
13984 (movcc_internal1, QHI iterator): Likewise.
13985 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13986 (movsf_from_si): Likewise.
13987 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13988 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13989 (mov<mode>, FMOVE128 iterator): Likewise.
13990 (movdi_internal64): Likewise.
13991 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13992 Likewise.
13993 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13994 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13995 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13996 (vsx_splat_v4sf): Likewise.
13997
13998 2019-07-03 Mark Wielaard <mark@klomp.org>
13999
14000 PR debug/90981
14001 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
14002 DW_AT_addr_base if there is actually a .debug_addr section with
14003 addresses.
14004 (output_addr_table): Add DWARF5 table header generation here after
14005 checking there are actually any addresses from...
14006 (dwarf2out_finish): ...here.
14007
14008 2019-07-03 Richard Biener <rguenther@suse.de>
14009
14010 PR middle-end/91069
14011 * match.pd (vec_perm -> bit_insert): Fix element read from
14012 first vector.
14013
14014 2019-07-03 Martin Liska <mliska@suse.cz>
14015
14016 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
14017 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
14018 condition.
14019 * generic-match-head.c: Include dbgcnt.h.
14020 * gimple-match-head.c: Likewise.
14021
14022 2019-07-03 Martin Liska <mliska@suse.cz>
14023
14024 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
14025 (GCOV_COUNTER_V_TOPN): New.
14026 (GCOV_COUNTER_V_INDIR): Use _topn.
14027 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
14028 (GCOV_TOPN_VALUES): New.
14029 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
14030 (GCOV_TOPN_VALUES_COUNTERS): New.
14031 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
14032 * tree-profile.c:
14033 (gimple_init_gcov_profiler): Rename variables from one_value
14034 to topn_values.
14035 (gimple_gen_one_value_profiler): Remove.
14036 (gimple_gen_topn_values_profiler): New function.
14037 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
14038 names instead of SINGLE_VALUE.
14039 (stream_out_histogram_value): Likewise.
14040 (stream_in_histogram_value): Likewise.
14041 (get_most_common_single_value): Likewise.
14042 (gimple_divmod_fixed_value_transform): Likewise.
14043 (gimple_stringops_transform): Likewise.
14044 (gimple_divmod_values_to_profile): Likewise.
14045 (gimple_stringops_values_to_profile): Likewise.
14046 (gimple_find_values_to_profile): Likewise.
14047 * value-prof.h (enum hist_type): Rename to TOPN.
14048 (gimple_gen_one_value_profiler): Remove.
14049 (gimple_gen_topn_values_profiler): New.
14050
14051 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
14052
14053 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
14054 if it has the DW_AT_data_member_location attribute.
14055
14056 2019-07-03 Richard Biener <rguenther@suse.de>
14057
14058 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
14059 dumping.
14060
14061 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
14062
14063 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
14064 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
14065 (tlsdesc_small_sve_<mode>): Likewise.
14066
14067 2019-07-03 Martin Liska <mliska@suse.cz>
14068
14069 * Makefile.in: Define ZSTD_LIB.
14070 * common.opt: Adjust compression level
14071 to support also zstd levels.
14072 * config.in: Regenerate.
14073 * configure: Likewise.
14074 * configure.ac: Add --with-zstd and --with-zstd-include options
14075 and detect ZSTD.
14076 * doc/install.texi: Mention zstd dependency.
14077 * gcc.c: Print supported LTO compression algorithms.
14078 * lto-compress.c (lto_normalized_zstd_level): Likewise.
14079 (lto_compression_zstd): Likewise.
14080 (lto_uncompression_zstd): Likewise.
14081 (lto_end_compression): Dispatch in between zlib and zstd.
14082 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
14083 (lto_uncompression_zlib): Make it static.
14084 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
14085 * lto-section-in.c (lto_get_section_data): Pass info
14086 about used compression.
14087 * lto-streamer-out.c: By default use zstd when possible.
14088 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
14089 (TV_IPA_LTO_COMPRESS): Likewise for compression.
14090
14091 2019-07-03 Martin Liska <mliska@suse.cz>
14092
14093 * lto-section-in.c (lto_get_section_data): Add "lto" section.
14094 * lto-section-out.c (lto_destroy_simple_output_block): Never
14095 compress LTO_section_lto section.
14096 * lto-streamer-out.c (produce_asm): Do not set major_version
14097 and minor_version.
14098 (lto_output_toplevel_asms): Likewise.
14099 (produce_lto_section): New function.
14100 (lto_output): Call produce_lto_section.
14101 (lto_write_mode_table): Do not set major_version and
14102 minor_version.
14103 (produce_asm_for_decls): Likewise.
14104 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
14105 type.
14106 (struct lto_header): Remove.
14107 (struct lto_section): New struct.
14108 (struct lto_simple_header): Do not inherit from lto_header.
14109 (struct lto_file_decl_data): Add lto_section_header field.
14110
14111 2019-07-03 Martin Liska <mliska@suse.cz>
14112
14113 * lra-eliminations.c (eliminate_regs_in_insn): Remove
14114 dead assignemts.
14115 * reg-stack.c (check_asm_stack_operands): Likewise.
14116 * tree-ssa-structalias.c (create_function_info_for): Likewise.
14117 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14118 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
14119 force_expand_binop.
14120
14121 2019-07-03 Martin Liska <mliska@suse.cz>
14122
14123 PR tree-optimization/90892
14124 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
14125 in string constants.
14126
14127 2019-07-03 Martin Liska <mliska@suse.cz>
14128
14129 PR middle-end/90899
14130 * multiple_target.c (create_dispatcher_calls): Add to comdat
14131 group only if set for ifunc.
14132
14133 2019-07-03 Martin Liska <mliska@suse.cz>
14134
14135 PR target/88056
14136 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
14137 Define local_object_name in outer scope in order to handle
14138 use-after-scope issue.
14139
14140 2019-07-03 Martin Liska <mliska@suse.cz>
14141
14142 * common.opt: Add fprofile-note.
14143 * coverage.c (coverage_init): Append the option
14144 to bbg_file_name.
14145 * doc/invoke.texi: Document -fprofile-note.
14146
14147 2019-07-03 Jakub Jelinek <jakub@redhat.com>
14148
14149 PR tree-optimization/91033
14150 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14151 vect_analyze_data_refs): Add bool * arguments.
14152 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14153 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14154 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14155 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14156 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14157 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14158 vect_analyze_data_refs caller.
14159
14160 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14161 clause.
14162 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14163 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14164 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14165 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14166 OMP_CLAUSE__SCANTEMP_ entry.
14167 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14168 * tree-pretty-print.c (dump_omp_clause): Likewise.
14169 * tree-nested.c (convert_nonlocal_omp_clauses,
14170 convert_local_omp_clauses): Likewise.
14171 * omp-general.h (struct omp_for_data): Add have_scantemp and
14172 have_nonctrl_scantemp members.
14173 * omp-general.c (omp_extract_for_data): Initialize them.
14174 * omp-low.c (struct omp_context): Add scan_exclusive member.
14175 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14176 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14177 ctx->scan_exclusive.
14178 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14179 of !ctx->scan_inclusive.
14180 (lower_rec_input_clauses): Simplify gimplification of dtors using
14181 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14182 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14183 loops. Don't add barrier for reduction_omp_orig_ref if
14184 ctx->scan_??xclusive.
14185 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14186 (lower_omp_scan): Use ctx->scan_exclusive instead
14187 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14188 reductions. Use new_vard != new_var instead of repeated
14189 omp_is_reference calls.
14190 (omp_find_scan, lower_omp_for_scan): New functions.
14191 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14192 inscan reductions.
14193 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14194 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14195 and fd->have_scantemp.
14196
14197 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14198 on worksharing loop propagate it as shared clause to containing
14199 combined parallel.
14200
14201 * omp-expand.c (expand_omp_for_static_nochunk,
14202 expand_omp_for_static_chunk): For nowait worksharing loop with
14203 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14204 at the end.
14205
14206 2019-07-02 qing zhao <qing.zhao@oracle.com>
14207
14208 PR preprocessor/90581
14209 * doc/cppopts.texi: Add document for -fmax-include-depth.
14210 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14211
14212 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14213
14214 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14215 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14216 (mmx_packssdw): Ditto.
14217 (mmx_punpckhbw): Ditto.
14218 (mmx_punpcklbw): Ditto.
14219 (mmx_punpckhwd): Ditto.
14220 (mmx_punpcklwd): Ditto.
14221 (mmx_punpckhdq): Ditto.
14222 (mmx_punpckldq): Ditto.
14223 (*vec_dupv4hi): Ditto.
14224 (*vec_dupv2si): Ditto.
14225 (mmx_pmovmskb): Ditto.
14226 * config/i386/sse.md (sse_cvtpi2ps): Use
14227 TARGET_SSE2 && SSE_REG_P in split condition.
14228 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14229 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14230 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14231 (ssse3_pshufbv8qi3): Ditto.
14232 (ssse3_palignrdi): Ditto.
14233
14234 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14235
14236 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14237 with inlined save and restore.
14238
14239 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14240
14241 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14242 to be inserted on single successor edge of the entry block. Then call
14243 commit_edge_insertions instead of inserting the instructions manually.
14244 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14245 RTL expansion and rebuild jump labels chain.
14246
14247 2019-07-02 Richard Biener <rguenther@suse.de>
14248
14249 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14250 TI_CHREC_KNOWN.
14251 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14252 Define here.
14253 * tree.c (build_common_tree_nodes): Initialize them.
14254 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14255 Make declarations comments.
14256 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14257 chrec_known): Remove definitions.
14258 (initialize_scalar_evolutions_analyzer): Remove.
14259 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14260 * tree-streamer.c (preload_common_nodes): Do not preload
14261 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14262
14263 2019-07-02 Jan Hubicka <jh@suse.cz>
14264
14265 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14266 sanity check.
14267
14268 2019-07-02 Jan Hubicka <jh@suse.cz>
14269
14270 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14271 to ..
14272 (nonoverlapping_component_refs_since_match_p): ... this one;
14273 handle also non-decl bases; return -1 if search gave up.
14274 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14275 nonoverlapping_component_refs_of_decl_p_no_alias to
14276 nonoverlapping_component_refs_since_match_p_may_alias,
14277 nonoverlapping_component_refs_since_match_p_no_alias.
14278 (dump_alias_stats): Update dumping.
14279 (aliasing_matching_component_refs_p): Break out from ...;
14280 dispatch to nonoverlapping_component_refs_for_decl_p
14281 and nonoverlapping_component_refs_since_match_p.
14282 (aliasing_component_refs_p): ... here; call
14283 nonoverlapping_component_refs_p in scenarios where we can not
14284 precisely determine base match.
14285 (decl_refs_may_alias_p): Use
14286 nonoverlapping_component_refs_since_match_p.
14287 (indirect_ref_may_alias_decl_p): Do not call
14288 nonoverlapping_component_refs_p.
14289 (indirect_refs_may_alias_p): Likewise.
14290
14291 2019-07-02 Jan Hubicka <jh@suse.cz>
14292
14293 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14294 to clobber of return value.
14295
14296 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14297
14298 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14299 for is_neon_type instructions that have not already been categorized.
14300
14301 2019-07-02 Richard Biener <rguenther@suse.de>
14302
14303 PR tree-optimization/58483
14304 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14305 for MEM_REF base hashing.
14306 (equal_mem_array_ref_p): Likewise for base comparison.
14307
14308 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14309
14310 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14311 parameterized name.
14312 (signbit<mode>2): Use that name. Simplify.
14313
14314 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14315
14316 PR middle-end/66726
14317 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14318 Tune heuristic from PR71016 to allow MIN / MAX.
14319
14320 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14321
14322 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14323 parameterized name.
14324 (abs<mode>2): Use that name. Simplify.
14325
14326 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14327
14328 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14329 parameterized name.
14330 (neg<mode>2): Use that name. Simplify.
14331
14332 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14333
14334 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14335 name.
14336 (abs<mode>2): Use that name. Simplify.
14337
14338 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14339
14340 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14341 name.
14342 (neg<mode>2): Use that name. Simplify.
14343
14344 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14345
14346 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14347 ("enabled" attribute): Handle sse_noavx isa attribute.
14348 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14349 Use TARGET_SSE && SSE_REGNO_P in split condition.
14350 (*vec_dupv2sf): Ditto.
14351
14352 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14353
14354 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14355 name.
14356 (floatsi<mode>2): Use that name. Simplify.
14357
14358 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14359
14360 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14361 parameterized name.
14362 (extenddf<mode>2_vsx): Make this a parameterized name.
14363 (extenddf<mode>2): Use those names. Simplify.
14364
14365 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14366
14367 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14368 name.
14369 (eh_return): Use that name. Simplify.
14370
14371 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14372
14373 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14374 (doloop_end): Use that name. Simplify.
14375
14376 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14377
14378 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14379 parameterized name.
14380 (indirect_jump): Use that name. Simplify.
14381
14382 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14383
14384 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14385 parameterized name.
14386 (abs<mode>2): Use that name. Simplify.
14387
14388 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14389
14390 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14391 parameterized name.
14392 (fix_trunc<mode>si2): Use that name. Simplify.
14393
14394 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14395
14396 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14397 (allocate_stack): Use that name. Simplify.
14398
14399 2019-07-01 Martin Sebor <msebor@redhat.com>
14400
14401 PR middle-end/90923
14402 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14403 (hash_map::get_or_insert): Same. Reformat comment.
14404 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14405 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14406 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14407 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14408 (hash_table::hash_table (const hash_table&)): Use copy ctor
14409 instead of assignment to copy elements.
14410
14411 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14412 John David Anglin <danglin@gcc.gnu.org>
14413
14414 PR target/90963
14415 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14416 using saved frame pointer.
14417
14418 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14419
14420 PR middle-end/64242
14421 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14422 Add frame clobber and schedule blockage.
14423
14424 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14425
14426 * doc/invoke.texi (Link Options): Further editorial changes to
14427 -flinker-output docs.
14428
14429 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14430
14431 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14432 Load both operands of a PLUS into registers separately.
14433
14434 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14435
14436 * config/s390/vector.md: Fix shift count operand printing.
14437
14438 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14439
14440 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14441
14442 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14443
14444 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14445 Use recog_data to test for an output operand.
14446
14447 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14448
14449 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14450 exclude any others that are disparaged or that are bound to need
14451 a reload or spill.
14452 (ira_get_dup_out_num): Expand comment.
14453
14454 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14455
14456 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14457 constraint string for each operand/alternative combo. Only handle
14458 '%' at the start of constraint strings, and look for it outside
14459 the main loop.
14460
14461 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14462
14463 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14464 alternative_mask instead of HARD_REG_SET to represent a
14465 bitmask of alternatives.
14466 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14467 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14468
14469 2019-07-01 Martin Liska <mliska@suse.cz>
14470
14471 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14472 use () for a constructor call.
14473 (test_applying_fixits_line_out_of_range): Likewise.
14474 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14475 argument.
14476 (free_page): Likewise.
14477
14478 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14479
14480 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14481 parameter names to match usage (no functional change).
14482 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14483
14484 2019-07-01 Richard Biener <rguenther@suse.de>
14485
14486 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14487 pass parameter.
14488 (pass_fre::execute): Honor it.
14489 * passes.def: Adjust pass_fre invocations to allow iterating,
14490 add non-iterating pass_fre before late threading/dom.
14491
14492 2019-07-01 Richard Biener <rguenther@suse.de>
14493
14494 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14495 TARGET_MEM_REF handling to also handle address-taken ones.
14496
14497 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14498
14499 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14500 hardware attributes): Document avx512vp2intersect.
14501
14502 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14503
14504 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14505 (abs<mode>2): New expander.
14506 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14507 Use CODE_FOR_ssse3_absv8qi2.
14508 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14509 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14510
14511 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14512
14513 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14514 to sse, sse_noavx and avx. Update all uses.
14515
14516 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14517
14518 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14519 (*mmx_<plusminus_insn><mode>3): Ditto.
14520 (*mmx_mulv4hi3"): Ditto.
14521 (*mmx_smulv4hi3_highpart): Ditto.
14522 (*mmx_umulv4hi3_highpart): Ditto.
14523 (*mmx_pmaddwd): Ditto.
14524 (*sse2_umulv1siv1di3): Ditto.
14525 (*mmx_<code>v4hi3): Ditto.
14526 (*mmx_<code>v8qi3): Ditto.
14527 (mmx_ashr<mode>3): Ditto.
14528 ("mmx_<shift_insn><mode>3): Ditto.
14529 (*mmx_eq<mode>3): Ditto.
14530 (mmx_gt<mode>3): Ditto.
14531 (mmx_andnot<mode>3): Ditto.
14532 (*mmx_<code><mode>3): Ditto.
14533 (*mmx_pinsrw): Ditto.
14534 (*mmx_pextrw): Ditto.
14535 (mmx_pshufw_1): Ditto.
14536 (*mmx_uavgv8qi3): Ditto.
14537 (*mmx_uavgv4hi3): Ditto.
14538 ("mmx_psadbw): Ditto.
14539 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14540 (sse_cvttps2pi): Ditto.
14541 (ssse3_pmaddubsw): Ditto.
14542 (*ssse3_pmulhrswv4hi3): Ditto.
14543 (ssse3_psign<mode>3): Ditto.
14544
14545 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14546
14547 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14548 adjustment for bit-fields to all aggregate types.
14549
14550 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14551
14552 * config/rs6000/predicates.md (pcrel_address): Use
14553 SYMBOL_REF_LOCAL_P to determine if a label is local.
14554 (pcrel_external_address): New predicate.
14555 (non_prefixed_mem_operand): Delete, predicate not used.
14556 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14557 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14558 addressing.
14559 (SYMBOL_REF_PCREL_P): Likewise.
14560
14561 PR target/91009
14562 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14563 alternative.
14564 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14565 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14566 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14567
14568 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14569
14570 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14571 override on extra_headers.
14572
14573 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14574
14575 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14576 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14577 from warning.
14578 (darwin_driver_init): Likewise.
14579
14580 2019-06-28 Jan Beulich <jbeulich@suse.com>
14581
14582 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14583 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14584 Eliminate redundant alternative.
14585
14586 2019-06-28 Jan Beulich <jbeulich@suse.com>
14587
14588 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14589 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14590 Use vector_operand.
14591
14592 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14593
14594 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14595 having a lower cost regardless of the speed option.
14596
14597 2019-06-28 Jan Beulich <jbeulich@suse.com>
14598
14599 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14600 vector_operand plus, on both alternatives, "Bm" constraint.
14601
14602 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14603
14604 * config/arm/arm.md: Remove redundant constraints from
14605 define_expand but leave reload_inm and reload_outm patterns
14606 untouched since they need special constraints to work.
14607 * config/arm/arm-fixed.md: Remove redundant constraints from
14608 define_expand.
14609 * config/arm/iwmmxt.md: Likewise.
14610 * config/arm/neon.md: Likewise.
14611 * config/arm/sync.md: Likewise.
14612 * config/arm/thumb1.md: Likewise.
14613 * config/arm/vec-common.md: Likewise.
14614
14615 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14616
14617 * doc/install.texi: Document --disable-tm-clone-registry.
14618
14619 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14620
14621 PR c++/91024
14622 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14623 statements.
14624
14625 PR tree-optimization/91010
14626 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14627 return true. Otherwise, don't call operand_equal_p if offset1 or
14628 offset2 is NULL and just return false.
14629
14630 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14631
14632 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14633 user-specified float mode choice for kernel mode code.
14634
14635 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14636
14637 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14638 spec.
14639
14640 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14641
14642 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14643 use longcall for 64b code.
14644
14645 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14646
14647 * builtins.c (get_memory_rtx): Fix comment.
14648 * optabs.def (movmem_optab): Change to cpymem_optab.
14649 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14650 (emit_block_move_hints): Change movmem to cpymem.
14651 * defaults.h: Change movmem to cpymem.
14652 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14653 (default_use_by_pieces_infrastructure_p): Ditto.
14654 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14655 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14656 to cpymem.
14657 * config/aarch64/aarch64.h: Change movmem to cpymem.
14658 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14659 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14660 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14661 movmem to cpymem.
14662 * config/arc/arc-protos.h: Change movmem to cpymem.
14663 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14664 * config/arc/arc.h: Change movmem to cpymem in comment.
14665 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14666 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14667 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14668 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14669 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14670 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14671 * config/avr/avr-protos.h: Change movmem to cpymem.
14672 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14673 avr_out_movmem): Change movmem to cpymem.
14674 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14675 Change movmem to cpymem.
14676 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14677 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14678 Change movmem to cpymem.
14679 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14680 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14681 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14682 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14683 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14684 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14685 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14686 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14687 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14688 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14689 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14690 expand_small_cpymem_or_setmem,
14691 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14692 expand_set_or_cpymem_constant_prologue,
14693 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14694 * config/i386/i386-protos.h: Change movmem to cpymem.
14695 * config/i386/i386.h: Change movmem to cpymem in comment.
14696 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14697 (setmem<mode>): Change expansion function name.
14698 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14699 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14700 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14701 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14702 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14703 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14704 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14705 to cpymem.
14706 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14707 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14708 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14709 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14710 Change movmem to cpymem.
14711 * config/mips/mips.h: Change movmem to cpymem.
14712 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14713 * config/nds32/nds32-memory-manipulation.c
14714 (nds32_expand_movmemsi_loop_unknown_size,
14715 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14716 nds32_expand_movmemsi_unroll,
14717 nds32_expand_movmemsi): Change movmem to cpymem.
14718 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14719 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14720 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14721 (pa_adjust_insn_length): Change call to compute_movmem_length.
14722 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14723 movmemdi, movmemdi_prereload,
14724 movmemdi_postreload): Change movmem to cpymem.
14725 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14726 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14727 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14728 * config/riscv/riscv.h: Change movmem to cpymem.
14729 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14730 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14731 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14732 movmem to cpymem.
14733 * config/s390/s390-protos.h: Change movmem to cpymem.
14734 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14735 s390_expand_insv): Change movmem to cpymem.
14736 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14737 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14738 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14739 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14740 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14741 for nonexistent function.
14742 * config/vax/vax.h: Change movmem to cpymem in comment.
14743 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14744 * config/visium/visium.h: Change movmem to cpymem in comment.
14745 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14746 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14747 * doc/md.texi: Change movmem to cpymem and update description to match.
14748 * doc/rtl.texi: Change movmem to cpymem.
14749 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14750 * doc/tm.texi: Regenerate.
14751
14752 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14753
14754 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14755 -fvariable-expansion-in-unroller by default.
14756 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14757 default for Power.
14758
14759 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14760
14761 Revert
14762 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14763 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14764
14765 * config.gcc(rs6000-*-*): Define target_gtfiles.
14766
14767 2019-06-27 Jan Hubicka <jh@suse.cz>
14768
14769 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14770 (add_type_duplicate): When odr hash is not allocated, to nothing.
14771 (odr_based_tbaa_p): New function.
14772 (set_type_canonical_for_odr_type): New function.
14773 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14774 set_type_canonical_for_odr_type): New.
14775 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14776 ODR based TBAA are not equivalent to non-ODR types.
14777
14778 2019-06-27 Martin Liska <mliska@suse.cz>
14779
14780 PR tree-optimization/90974
14781 PR rtl-optimization/90975
14782 PR rtl-optimization/90976
14783 PR target/91016
14784 PR tree-optimization/91017
14785 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14786 unused tmp.
14787 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14788 initial commit of IRA.
14789 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14790 of op0 and op1.
14791 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14792 Remove unused mode1.
14793 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14794 to new_stmt_info.
14795
14796 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14797
14798 PR target/90991
14799 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14800 instead of register_operand for operands[1], add m to its constraints
14801 if operands[2] uses "C" constraint. Ensure in condition that if
14802 operands[2] is not 0, then operands[1] is not a MEM. For last two
14803 alternatives, use unaligned loads instead of aligned if operands[1] is
14804 misaligned_operand.
14805
14806 2019-06-27 Martin Liska <mliska@suse.cz>
14807
14808 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14809 dead assignments.
14810 * bt-load.c (move_btr_def): Likewise.
14811 * builtins.c (expand_builtin_apply_args_1): Likewise.
14812 (expand_builtin_apply): Likewise.
14813 * cfgexpand.c (expand_asm_stmt): Likewise.
14814 (construct_init_block): Likewise.
14815 * cfghooks.c (verify_flow_info): Likewise.
14816 * cfgloopmanip.c (remove_path): Likewise.
14817 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14818 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14819 * combine.c (simplify_if_then_else): Likewise.
14820 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14821 (choose_basereg): Likewise.
14822 (ix86_expand_prologue): Likewise.
14823 (ix86_preferred_output_reload_class): Likewise.
14824 * cselib.c (cselib_record_sets): Likewise.
14825 * df-scan.c (df_scan_alloc): Likewise.
14826 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14827 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14828 * emit-rtl.c (try_split): Likewise.
14829 * graphite-scop-detection.c (assign_parameter_index_in_region):
14830 Likewise.
14831 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14832 * ira-color.c (setup_profitable_hard_regs): Likewise.
14833 * ira.c (rtx_moveable_p): Likewise.
14834 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14835 * read-rtl.c (read_subst_mapping): Likewise.
14836 * regrename.c (scan_rtx): Likewise.
14837 * reorg.c (fill_slots_from_thread): Likewise.
14838 * tree-inline.c (tree_function_versioning): Likewise.
14839 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14840 * tree-ssa-sink.c (statement_sink_location): Likewise.
14841 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14842 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14843 (vect_create_epilog_for_reduction): Likewise.
14844 * tree.c (build_nonstandard_integer_type): Likewise.
14845
14846 2019-06-27 Richard Biener <rguenther@suse.de>
14847
14848 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14849
14850 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14851
14852 PR tree-optimization/89772
14853 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14854 out-of-bound accesses checking.
14855
14856 2019-06-27 Martin Liska <mliska@suse.cz>
14857
14858 PR tree-optimization/91014
14859 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14860 when LHS is NULL_TREE.
14861
14862 2019-06-27 Martin Liska <mliska@suse.cz>
14863
14864 * symbol-summary.h (traverse): Pass
14865 argument a to the call of callback.
14866 (gt_ggc_mx): Mark arguments as unused.
14867 (gt_pch_nx): Likewise.
14868
14869 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14870
14871 PR target/62147
14872 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14873 finiteness.
14874
14875 2019-06-26 Jeff Law <law@redhat.com>
14876
14877 PR tree-optimization/90883
14878 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14879 (delete_dead_or_redundant_assignment): Likewise.
14880
14881 PR tree-optimization/90883
14882 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14883 * tree-ssa-dse.c: Update various comments to distinguish between
14884 dead and redundant stores.
14885 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14886 (dse_optimize_redundant_stores): New function.
14887 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14888 Distinguish between dead and redundant calls in dump output. All
14889 callers updated.
14890 (delete_dead_or_redundant_assignment): Similarly for assignments.
14891 (dse_optimize_stmt): Handle _CHK variants. For statements which
14892 store 0 into multiple memory locations, try to prove a subsequent
14893 store is redundant.
14894
14895 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14896
14897 PR target/89021
14898 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14899 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14900
14901 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14902
14903 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14904 (branch_islands): New extern.
14905 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14906 * config/rs6000/rs6000.c: .. here.
14907
14908 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14909
14910 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14911 (powerpc*-*-*) ... to here.
14912
14913 2019-06-26 Jeff Law <law@redhat.com>
14914
14915 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14916 memcpy, memmove and memset builtins.
14917 (maybe_trim_memstar_call): Likewise.
14918
14919 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14920
14921 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14922
14923 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14924
14925 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14926
14927 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14928
14929 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14930 declaration.
14931 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14932 "static".
14933 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14934 declaration.
14935
14936 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14937
14938 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14939
14940 2019-06-26 Richard Biener <rguenther@suse.de>
14941
14942 PR ipa/90982
14943 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14944
14945 2019-06-26 Richard Biener <rguenther@suse.de>
14946
14947 * lto-streamer.h (lto_bitmap_alloc): Remove.
14948 (lto_bitmap_free): Likewise.
14949 * lto-streamer.c (lto_bitmap_alloc): Remove.
14950 (lto_bitmap_free): Likewise.
14951 (lto_obstack): Likewise.
14952 (lto_obstack_initialized): Likewise.
14953 * lto-streamer-out.c (lto_output): Use own obstack for local
14954 bitmap, free it consistently.
14955
14956 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14957
14958 PR target/90991
14959 * config/i386/sse.md
14960 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14961 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14962 insns if operands[2] is misaligned_operand.
14963
14964 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14965
14966 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14967 TARGET_POWERPC64.
14968 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14969 to GPR.
14970
14971 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14972
14973 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14974
14975 2019-06-26 Martin Liska <mliska@suse.cz>
14976
14977 PR tree-optimization/90973
14978 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14979 epilogue_cost_vec instead of prologue_cost_vec for
14980 a epilogue cost.
14981
14982 2019-06-26 Martin Liska <mliska@suse.cz>
14983
14984 * bb-reorder.c (connect_better_edge_p): Add missing else
14985 statement in the middle of if-else statements.
14986
14987 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14988 H.J. Lu <hongjiu.lu@intel.com>
14989 Olga Makhotina <olga.makhotina@intel.com>
14990
14991 * common/config/i386/i386-common.c
14992 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14993 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14994 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14995 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14996 (ix86_handle_option): Handle -mavx512vp2intersect.
14997 * config/i386/avx512vp2intersectintrin.h: New.
14998 * config/i386/avx512vp2intersectvlintrin.h: New.
14999 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
15000 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15001 AVX512VP2INTERSECT.
15002 * config/i386/i386-builtin-types.def: Add new types.
15003 * config/i386/i386-builtin.def: Add new builtins.
15004 * config/i386/i386-builtins.c: (enum processor_features): Add
15005 F_AVX512VP2INTERSECT.
15006 (static const _isa_names_table isa_names_table): Ditto.
15007 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15008 __AVX512VP2INTERSECT__.
15009 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
15010 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
15011 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
15012 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
15013 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
15014 * config/i386/i386-options.c (ix86_target_string): Add
15015 -mavx512vp2intersect.
15016 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
15017 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
15018 P2HImode and P2QImode.
15019 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
15020 number for P2QImode and P2HImode.
15021 (ix86_regmode_natural_size): New function.
15022 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
15023 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
15024 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
15025 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
15026 * config/i386/i386.opt: Add -mavx512vp2intersect.
15027 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
15028 avx512vp2intersectvlintrin.h.
15029 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
15030 (define_mode_iterator VI48_AVX512VP2VL): New.
15031 (avx512vp2intersect_2intersect<mode>,
15032 avx512vp2intersect_2intersectv16si): New define_insn patterns.
15033 * config.gcc: Add avx512vp2intersectvlintrin.h and
15034 avx512vp2intersectintrin.h to extra_headers.
15035 * doc/invoke.texi: Document -mavx512vp2intersect.
15036
15037 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
15038
15039 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
15040
15041 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15042
15043 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
15044 savres_routine_syms, savres_routine_name, morestack_ref,
15045 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15046 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15047 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15048 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15049 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15050 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15051 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15052 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15053 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15054 get_stack_clash_protection_probe_interval,
15055 get_stack_clash_protection_guard_size,
15056 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15057 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15058 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15059 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15060 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15061 gen_frame_mem_offset, rs6000_savres_routine_name,
15062 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15063 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15064 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15065 rs6000_global_entry_point_prologue_needed_p,
15066 rs6000_get_separate_components, rs6000_components_for_bb,
15067 rs6000_disqualify_components, rs6000_emit_prologue_components,
15068 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15069 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15070 rs6000_output_savres_externs, rs6000_output_function_prologue,
15071 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15072 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15073 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15074 rs6000_output_function_epilogue, gen_add3_const,
15075 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15076 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15077 to rs6000-logue.c.
15078 (machine_function): Moved to rs6000.h.
15079 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
15080 rs6000-internal.h.
15081 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
15082 savres_routine_syms, savres_routine_name, morestack_ref,
15083 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15084 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15085 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15086 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15087 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15088 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15089 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15090 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15091 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15092 get_stack_clash_protection_probe_interval,
15093 get_stack_clash_protection_guard_size,
15094 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15095 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15096 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15097 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15098 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15099 gen_frame_mem_offset, rs6000_savres_routine_name,
15100 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15101 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15102 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15103 rs6000_global_entry_point_prologue_needed_p,
15104 rs6000_get_separate_components, rs6000_components_for_bb,
15105 rs6000_disqualify_components, rs6000_emit_prologue_components,
15106 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15107 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15108 rs6000_output_savres_externs, rs6000_output_function_prologue,
15109 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15110 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15111 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15112 rs6000_output_function_epilogue, gen_add3_const,
15113 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15114 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15115 to here from rs6000.c.
15116 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
15117 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
15118 quad_address_offset_p) Moved to here from rs6000.c.
15119 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
15120 * config/config.gcc: Add new source file rs6000-logue.c to garbage
15121 collector.
15122
15123 2019-06-25 Martin Liska <mliska@suse.cz>
15124
15125 * hash-table.c (hashtab_chk_error): Move here from ...
15126 * hash-table.h (hashtab_chk_error): ... here.
15127
15128 2019-06-25 Martin Liska <mliska@suse.cz>
15129
15130 PR tree-optimization/90978
15131 * df-scan.c (df_update_entry_block_defs): Remove dead else
15132 branch.
15133 (df_update_exit_block_uses): Likewise.
15134
15135 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
15136 Andrew Stubbs <ams@codesourcery.com>
15137
15138 * config.gcc (thread_file): Set to gcn for AMD GCN.
15139 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
15140 (TARGET_EMUTLS_VAR_INIT): New hook.
15141
15142 2019-06-25 Martin Jambor <mjambor@suse.cz>
15143
15144 PR ipa/90939
15145 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
15146
15147 2019-06-25 Richard Biener <rguenther@suse.de>
15148
15149 PR tree-optimization/90930
15150 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15151 into parallel form in the last pass instance.
15152
15153 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15154
15155 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15156 (arc_legitimize_pic_address): Simplify and cleanup the function.
15157 (SYMBOLIC_CONST): Remove.
15158 (prepare_pic_move): Likewise.
15159 (prepare_move_operands): Handle complex mov cases here.
15160 (arc_legitimize_address_0): Remove call to
15161 arc_legitimize_pic_address.
15162 (arc_legitimize_address): Remove call to
15163 arc_legitimize_tls_address.
15164 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15165 (movhi_insn): Likewise.
15166
15167 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15168
15169 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15170 PTRDIFF_TYPE.
15171 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15172 format of "__intN" types for UINTMAX_TYPE.
15173 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15174 format of "__intN" types for SIZETYPE.
15175 * tree.c (build_common_tree_nodes): Accept "__intN__"
15176 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15177 * doc/invoke.texi: Document that __intN__ disables pedantic
15178 warnings.
15179
15180 2019-06-25 Jan Hubicka <jh@suse.cz>
15181
15182 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15183 base2_alias_set is non-zero before doing TBAA based disambiguation.
15184
15185 2019-06-25 Martin Liska <mliska@suse.cz>
15186
15187 PR tree-optimization/90973
15188 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15189 of prologue and epilogue.
15190
15191 2019-06-24 Jan Hubicka <jh@suse.cz>
15192
15193 * ipa-utils.h (type_with_linkage_p): Verify that type is
15194 CXX_ODR_P.
15195 (odr_type_p): Remove extra return.
15196 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15197 hash STRING_FLAG only for arrays and integers.
15198 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15199 Update analogously.
15200 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15201 Likewise.
15202 * print-tree.c (print_node): Print cxx-odr-p
15203 and string-flag.
15204 * tree.c (need_assembler_name_p): Also check that type
15205 is CXX_ODR_TYPE_P
15206 (verify_type_variant): Update verification of SRING_FLAG;
15207 also check CXX_ODR_P.
15208 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15209 (TYPE_STRING_FLAG): Use it.
15210 (TYPE_CXX_ODR_P): New macro.
15211 * dwarf2out.c (gen_array_type_die): First check that type
15212 is an array and then test string flag.
15213
15214 2019-06-24 Richard Biener <rguenther@suse.de>
15215
15216 PR tree-optimization/90972
15217 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15218 in common code, dealing with STRING_CST properly.
15219
15220 2019-06-24 Richard Biener <rguenther@suse.de>
15221
15222 PR tree-optimization/90930
15223 PR tree-optimization/90316
15224 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15225 decrement of limit.
15226
15227 2019-06-24 Martin Sebor <msebor@redhat.com>
15228
15229 * tree-pretty-print.h: Remove unnecessary punctuation characters
15230 from a diagnostic.
15231 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15232
15233 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15234
15235 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15236 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15237 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15238
15239 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15240
15241 * config/rs6000/darwin.h: Handle GCC target pragma.
15242
15243 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15244
15245 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15246
15247 2019-06-22 Jeff Law <law@redhat.com>
15248
15249 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15250
15251 2019-06-22 Jan Hubicka <jh@suse.cz>
15252
15253 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15254 give up on bitfields; continue searching for different refs
15255 appearing later.
15256
15257 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15258
15259 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15260 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15261 containing the offset as possible simd lane access. Look through
15262 widening conversion. Move the
15263 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15264
15265 2019-06-21 Richard Biener <rguenther@suse.de>
15266
15267 PR tree-optimization/90930
15268 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15269 flag on new stmts to avoid re-processing them.
15270
15271 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15272
15273 PR c++/90875 - added -Wswitch-outside-range option
15274 * doc/invoke.texi (Wswitch-outside-range): Document.
15275
15276 2019-06-21 Jeff Law <law@redhat.com>
15277
15278 PR tree-optimization/90949
15279 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15280 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15281
15282 2019-06-21 Richard Biener <rguenther@suse.de>
15283
15284 PR debug/90914
15285 * dwarf2out.c (prune_unused_types_walk): Always consider
15286 function-local extern declarations as used.
15287
15288 2019-06-21 Richard Biener <rguenther@suse.de>
15289
15290 PR tree-optimization/90913
15291 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15292 the scalar variant of if-conversion versioning.
15293
15294 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15295
15296 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15297 create another "omp scan inscan exclusive" array if
15298 !ctx->scan_inclusive.
15299 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15300 (lower_omp_scan): Likewise.
15301 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15302 2-bit bitfield for simd_lane_access_p member.
15303 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15304 aux == (void *)-4 as simd lane access.
15305 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15306 comment with permutations to show the canonical permutation order.
15307 (vectorizable_scan_store): Handle exclusive scan.
15308 (vectorizable_store): Call vectorizable_scan_store even for
15309 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15310
15311 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15312 "omp simd array" arrays with one byte elements.
15313
15314 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15315
15316 * config/alpha/alpha.md (@unaligned_store<mode>):
15317 Rename from unaligned_store<mode>.
15318 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15319 * config/alpha/sync.md (@load_locked_<mode>): Rename
15320 from load_locked_<mode>.
15321 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15322 (@atomic_compare_and_swap<mode>_1): Rename
15323 from atomic_compare_and_swap<mode>_1.
15324 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15325 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15326 Use gen_reload_in_aligned and gen_unaligned_store.
15327 (emit_load_locked): Remove.
15328 (emit_store_conditional): Ditto.
15329 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15330 (alpha_split_compare_and_swap): Ditto.
15331 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15332 (alpha_split_compare_and_swap_12): Use gen_load_locked
15333 and gen_store_conditional.
15334 (alpha_split_atomic_exchange): Ditto.
15335 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15336 (alpha_split_atomic_exchange_12): Use gen_load_locked
15337 and gen_store_conditional.
15338
15339 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15340
15341 * config/aarch64/aarch64-errata.h: New file.
15342 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15343 (CA53_ERR_843419_SPEC): Delete.
15344 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15345 * config/aarch64/aarch64-linux.h: Likewise.
15346 * config/aarch64/aarch64-netbsd.h: Likewise.
15347 * config/aarch64/aarch64-freebsd.h: Likewise.
15348
15349 2019-06-20 Marek Polacek <polacek@redhat.com>
15350
15351 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15352
15353 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15354
15355 * config/rs6000/rs6000.md (isa attribute): Add support for
15356 for a future processor.
15357
15358 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15359
15360 PR target/54855
15361 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15362 standard scalar operation pattern for V2DF.
15363 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15364 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15365 (*ieee_<ieee_maxmin><mode>3): Likewise.
15366 (vec_setv2df_0): Likewise.
15367
15368 2019-06-20 Jan Hubicka <jh@suse.cz>
15369
15370 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15371 parameter; it has no use in gimple memory model.
15372 (indirect_ref_may_alias_decl_p): Update.
15373
15374 2019-06-20 Martin Liska <mliska@suse.cz>
15375
15376 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15377 to 10.
15378
15379 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15380
15381 * tree-vect-stmts.c (enum scan_store_kind): New type.
15382 (scan_store_can_perm_p): Change last argument from int * to
15383 vec<enum scan_store_kind> *, record precisely which permutations
15384 need whole vector left shift or that plus VEC_COND_EXPR.
15385 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15386 and additional VEC_COND_EXPR only for those iterations that need it.
15387
15388 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15389
15390 * config.gcc: Fix ARM --with-fpu checking and error message.
15391
15392 2019-06-19 Marek Polacek <polacek@redhat.com>
15393
15394 PR c++/60364 - noreturn after first decl not diagnosed.
15395 * attribs.c (get_attribute_namespace): No longer static.
15396 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15397 attributes.
15398 (attr_noreturn_exclusions): Make it extern.
15399 * attribs.h (get_attribute_namespace): Declare.
15400 * tree-inline.c (function_attribute_inlinable_p): Use
15401 get_attribute_name.
15402
15403 2019-06-19 Martin Sebor <msebor@redhat.com>
15404
15405 PR tree-optimization/90626
15406 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15407
15408 PR tree-optimization/90626
15409 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15410 (handle_builtin_string_cmp): Call it.
15411
15412 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15413
15414 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15415 and DARWIN_NOPIE_SPEC.
15416 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15417 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15418 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15419 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15420 (DARWIN_EXPORT_DYNAMIC): Delete.
15421 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15422 and pie options processing to darwin.h.
15423 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15424
15425 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15426
15427 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15428 in computing the number of options to be moved.
15429
15430 2019-06-19 Maya Rashish <coypu@sdf.org>
15431
15432 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15433 (CLEAR_INSN_CACHE) Use it.
15434
15435 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15436
15437 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15438
15439 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15440
15441 PR middle-end/84521
15442 * builtins.c (expand_builtin_setjmp_setup): Save
15443 hard_frame_pointer_rtx.
15444 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15445 restore fp.
15446 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15447 non-local goto.
15448 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15449 elimination code.
15450 (remove_reg_equal_offset_note): Remove unused function.
15451 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15452 code.
15453 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15454 (arc_builtin_setjmp_frame_value): Remove function.
15455 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15456 (avr_builtin_setjmp_frame_value): Remove function.
15457 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15458 (ix86_builtin_setjmp_frame_value): Remove function.
15459 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15460 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15461 (sparc_builtin_setjmp_frame_value): Remove function.
15462 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15463 (vax_builtin_setjmp_frame_value): Remove function.
15464 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15465 pointer if has_nonlocal_label.
15466
15467 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15468
15469 * doc/md.texi: Document vec_shl_<mode> pattern.
15470 * optabs.def (vec_shl_optab): New optab.
15471 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15472 argument, if == vec_shl_optab, check for left whole vector shift
15473 pattern rather than right shift.
15474 (expand_vec_perm_const): Add vec_shl_optab support.
15475 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15476 in the comment.
15477 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15478 can be handled by vec_shl_optab.
15479 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15480 (check_scan_store): Use it.
15481 (vectorizable_scan_store): If target can't do normal permutations,
15482 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15483 after it.
15484 * config/i386/sse.md (vec_shl_<mode>): New expander.
15485
15486 * omp-low.c (lower_rec_input_clauses): Handle references properly
15487 in inscan clauses.
15488 (lower_omp_scan): Likewise.
15489
15490 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15491
15492 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15493 mem_mode is BLKmode.
15494
15495 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15496
15497 PR target/90922
15498 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15499 pointer adjustment for the case of no callee-saved registers and
15500 stack frame bigger than 128 bytes.
15501
15502 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15503
15504 PR middle-end/90862
15505 * omp-low.c (check_omp_nesting_restrictions): Handle
15506 GF_OMP_TARGET_KIND_OACC_DECLARE.
15507
15508 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15509
15510 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15511 (@add<mode>3_carry): Rename from add<mode>3_carry.
15512 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15513 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15514 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15515 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15516 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15517 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15518 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15519 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15520 (cmpstrnsi): Use gen_cmp_1.
15521 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15522 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15523 (@umonitor_<mode>): Rename from umonitor_<mode>.
15524 * config/i386/i386-expand.c (ix86_expand_copysign):
15525 Use gen_copysign3_const and gen_copysign3_var.
15526 (ix86_expand_xorsign): Use gen_xorsign3_1.
15527 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15528 gen_sub3_carry_ccgz and gen_cmp1.
15529 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15530 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15531 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15532 (ix86_split_lshr): Ditto.
15533 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15534
15535 2019-06-18 Jason Merrill <jason@redhat.com>
15536
15537 * tree.c (build_constructor): Add MEM_STAT_DECL.
15538
15539 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15540
15541 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15542 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15543 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15544 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15545 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15546 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15547 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15548 Use CC_NZC instead of CC.
15549 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15550 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15551 (aarch64_print_operand): Handle E_CC_NZCmode.
15552 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15553 of gen_set_clobber_cc.
15554
15555 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15556
15557 * config/aarch64/aarch64-sve.md: Tabify file.
15558
15559 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15560
15561 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15562 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15563 * config/aarch64/aarch64-sve.md: Use it.
15564
15565 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15566
15567 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15568 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15569 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15570 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15571 (aarch64_expand_sve_vec_cmp_int): Use it.
15572 (aarch64_expand_sve_vec_cmp_float): Likewise.
15573 * config/aarch64/aarch64-sve.md: Likewise throughout.
15574
15575 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15576 Kugan Vivekanandarajah <kuganv@linaro.org>
15577
15578 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15579 (*cond_<optab><mode>_z): Fold into...
15580 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15581 operand 4 can be tied to operand 0 (either inherently or via RA).
15582
15583 2019-06-18 Richard Biener <rguenther@suse.de>
15584
15585 PR debug/90900
15586 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15587 as if optimized away.
15588
15589 2019-06-18 Tom de Vries <tdevries@suse.de>
15590
15591 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15592 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15593 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15594 Rename to ...
15595 (define_insn "@set_softstack_<mode>"): ... this.
15596 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15597 (define_insn "@omp_simt_enter_<mode>"): ... this.
15598 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15599 (define_insn "@omp_simt_exit_<mode>"): ... this.
15600
15601 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15602
15603 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15604 vf parameter. Restore the previous iv step of nscalars_step,
15605 but give it iv_type rather than compare_type. Tweak code order
15606 to match the comments.
15607 (vect_set_loop_condition_masked): Update accordingly.
15608 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15609 for iv_precision. Tweak comment formatting.
15610
15611 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15612
15613 * config/darwin.c: Strip trailing whitespace.
15614
15615 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15616
15617 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15618 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15619
15620 2019-06-18 Martin Jambor <mjambor@suse.cz>
15621
15622 PR ipa/90889
15623 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15624 caller does not have flag_ipa_cp set.
15625
15626 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15627
15628 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15629 from "*fold_left_plus_<mode>", updated operands order.
15630 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15631 * internal-fn.c (mask_fold_left_direct): New define.
15632 (expand_mask_fold_left_optab_fn): Likewise.
15633 (direct_mask_fold_left_optab_supported_p): Likewise.
15634 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15635 * optabs.def (mask_fold_left_plus_optab): New optab.
15636 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15637 masked internal_fn for a reduction ifn.
15638 (vectorize_fold_left_reduction): Add support for masking reductions.
15639
15640 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15641
15642 PR middle-end/80791
15643 * target.def (predict_doloop_p): New hook.
15644 * targhooks.h (default_predict_doloop_p): New declaration.
15645 * targhooks.c (default_predict_doloop_p): New function.
15646 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15647 * doc/tm.texi: Regenerate.
15648 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15649 (TARGET_PREDICT_DOLOOP_P): New macro.
15650 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15651
15652 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15653
15654 * omp-low.c (struct omp_context): Add scan_inclusive field.
15655 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15656 if inclusive scan.
15657 (struct omplow_simd_context): Add lastlane member.
15658 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15659 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15660 1 or 2 argument.
15661 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15662 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15663 (lower_omp_scan): New function.
15664 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15665 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15666 check 3rd argument if present rather than 2nd.
15667 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15668 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15669 2-bit bitfield.
15670 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15671 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15672 than 2nd.
15673 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15674 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15675 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15676 init.
15677 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15678 IFN_GOMP_SIMD_LANE argument.
15679 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15680 encoded ->aux value.
15681 * tree-vect-stmts.c: Include attribs.h.
15682 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15683 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15684 functions.
15685 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15686 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15687
15688 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15689
15690 PR target/62055
15691 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15692 (*nabs<mode>2_1): Ditto.
15693 (nabs sse-reg splitter): New splitter.
15694 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15695
15696 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15697
15698 PR bootstrap/90873.
15699 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15700 TMR index check.
15701
15702 2019-06-17 Tom de Vries <tdevries@suse.de>
15703
15704 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15705 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15706 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15707 ...
15708 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15709 match_operand 0.
15710 (define_insn "omp_simt_enter_insn"): Rename to ...
15711 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15712 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15713 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15714 gen_omp_simt_enter_si.
15715 (define_expand "omp_simt_exit"): New.
15716 (define_insn "omp_simt_exit"): Rename to ...
15717 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15718 match_operand 0.
15719
15720 2019-06-17 Matthew Green <mrg@eterna.com.au>
15721 Maya Rashish <coypu@sdf.org>
15722
15723 * config.gcc (aarch64*-*-netbsd*): New target.
15724 * config/aarch64/aarch64-netbsd.h: New file.
15725 * config/aarch64/t-aarch64-netbsd: Likewise.
15726
15727 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15728
15729 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15730 the access path from base to first VIEW_CONVERT_EXPR or
15731 BIT_FIELD_REF.
15732
15733 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15734
15735 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15736 access path on BIT_FIELD_REFs.
15737
15738 2019-06-17 Martin Liska <mliska@suse.cz>
15739
15740 PR ipa/90874
15741 * ipa-utils.h (odr_type_p): Remove dead code.
15742
15743 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15744
15745 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15746 alternative Solaris 11.4 format.
15747 * configure: Regenerate.
15748
15749 2019-06-17 Tom de Vries <tdevries@suse.de>
15750
15751 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15752 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15753 match_operand 0.
15754 (define_insn "call_value_insn"): Rename to ...
15755 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15756 match_operand 0.
15757 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15758 DI.
15759
15760 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15761
15762 PR middle-end/64242
15763 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15764 frame clobbers and schedule block.
15765 (builtin_longjmp): Likewise.
15766
15767 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15768
15769 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15770 describe how to perform MSPABI compliant 64-bit shift.
15771 * config/msp430/msp430.md (ashldi3): New define_expand.
15772 (ashrdi3): New define_expand.
15773 (lshrdi3): New define_expand.
15774
15775 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15776
15777 * doc/sourcebuild.texi: Document new effective target keyword
15778 longlong64.
15779
15780 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15781
15782 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15783 indirect_refs_may_alias_p): Revert accidental commits.
15784
15785 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15786 at the end of structures.
15787
15788 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15789
15790 * config/darwin.c (machopic_indirect_call_target): Use renamed
15791 darwin_picsymbol_stubs to decide on output.
15792 (darwin_override_options): Handle darwin_picsymbol_stubs.
15793 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15794 (LD64_VERSION): Revise default.
15795 * config/darwin.opt: (mpic-symbol-stubs): New option.
15796 (darwin_picsymbol_stubs): New variable.
15797 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15798 rename to TARGET_MACHO_PICSYM_STUBS.
15799 * config/i386/i386.c (output_pic_addr_const): Likewise.
15800 * config/i386/i386.h Likewise.
15801 * config/rs6000/darwin.h: Likewise.
15802 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15803 darwin_picsymbol_stubs.
15804
15805 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15806
15807 * config/darwin.opt (prebind, noprebind, seglinkedit,
15808 noseglinkedit): Add RejectNegative.
15809
15810 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15811
15812 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15813 in my previous patch.
15814
15815 2019-06-16 Tom de Vries <tdevries@suse.de>
15816
15817 PR tree-optimization/89376
15818 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15819
15820 2019-06-15 Maya Rashish <coypu@sdf.org>
15821
15822 * doc/invoke.texi (Spec Files): Update location of the
15823 Fortran spec file.
15824
15825 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15826
15827 * doc/extend.texi (Common Function Attributes): Clarify
15828 no_sanitize. Fix grammar.
15829
15830 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15831
15832 * tree-ssa-alias.c (alias_stats): Add
15833 nonoverlapping_component_refs_p_may_alias,
15834 nonoverlapping_component_refs_p_no_alias,
15835 nonoverlapping_component_refs_of_decl_p_may_alias,
15836 nonoverlapping_component_refs_of_decl_p_no_alias.
15837 (dump_alias_stats): Dump them.
15838 (nonoverlapping_component_refs_of_decl_p): Add stats.
15839 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15840 ARRAY_REF.
15841
15842 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15843
15844 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15845 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15846 only.
15847 (*anddi3_doubleword): Split before reload. Merge with
15848 anddi->zext pre-reload splitter.
15849 (*andndi3_doubleword): Split before reload.
15850 (*<code>di3_doubleword): Ditto.
15851 (*one_cmpldi2_doubleword): Ditto.
15852
15853 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15854
15855 PR middle-end/90779
15856 * gimplify.c: Include omp-offload.h and context.h.
15857 (gimplify_bind_expr): Add "omp declare target" attributes
15858 to static block scope variables inside of target region or target
15859 functions.
15860
15861 2019-06-15 Tom de Vries <tdevries@suse.de>
15862
15863 PR tree-optimization/90009
15864 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15865 Return NULL if bb contains IFN_UNIQUE.
15866
15867 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15868
15869 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15870 (un): New define_mode_attr.
15871 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15872 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15873 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15874 merge into ...
15875 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15876
15877 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15878
15879 * config/darwin.opt: Add RejectNegative where needed, reorder
15880 and add minimal functional descriptions.
15881
15882 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15883
15884 PR rtl-optimization/90765
15885 * calls.c (update_stack_alignment_for_call): New function.
15886 (expand_call): Call update_stack_alignment_for_call when
15887 outgoing parameter is passed in the stack.
15888 (emit_library_call_value_1): Likewise.
15889 * function.c (locate_and_pad_parm): Don't update
15890 stack_alignment_needed and preferred_stack_boundary.
15891
15892 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15893
15894 PR target/90877
15895 * config/i386/i386-features.c
15896 (dimode_scalar_chain::compute_convert_gain): Replace
15897 mmxsse_to_integer with sse_to_integer.
15898 * config/i386/i386.c (ix86_register_move_cost): Verify that
15899 moves between MMX and non-MMX units require secondary memory.
15900 Correct costs of moves between SSE and integer units.
15901 * config/i386/i386.h (processor_costs): Rename cost of moving
15902 SSE register to integer to sse_to_integer. Rename cost of
15903
15904 2019-06-14 Matt Thomas <matt@3am-software.com>
15905 Matthew Green <mrg@eterna.com.au>
15906 Nick Hudson <skrll@netbsd.org>
15907 Maya Rashish <coypu@sdf.org>
15908 Richard Earnshaw <rearnsha@arm.com>
15909
15910 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15911 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15912 * config/arm/netbsd-eabi.h: New file.
15913 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15914 redefining.
15915 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15916 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15917 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15918 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15919
15920 2019-06-14 Richard Biener <rguenther@suse.de>
15921
15922 * tree-loop-distribution.c (classify_partition): Return
15923 whether a reduction appeared in all partitions and do not
15924 stop builtin detection because of this.
15925 (distribute_loop): Sort a non-builtin partition last if
15926 there's a reduction in all partitions and make sure the
15927 partition prevailing as last is not a builtin.
15928
15929 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15930
15931 PR ipa/90401
15932 * ipa-prop.c (add_to_agg_contents_list): New function.
15933 (clobber_by_agg_contents_list_p): Likewise.
15934 (extract_mem_content): Likewise.
15935 (get_place_in_agg_contents_list): Delete.
15936 (determine_known_aggregate_parts): Renamed from
15937 determine_locally_known_aggregate_parts. New parameter
15938 aa_walk_budget_p.
15939
15940 2019-06-13 Martin Sebor <msebor@redhat.com>
15941
15942 PR tree-optimization/90662
15943 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15944 to the same type.
15945
15946 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15947
15948 PR bootstrap/90873
15949 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15950 dbase is not TARGET_MEM_REF.
15951
15952 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15953
15954 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15955 Update all uses.
15956 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15957 Do not generate DImode extends for 32bit targets.
15958 (and->zext post-reload splitter): Use gen_extend_insn
15959 instead of indirect functions.
15960 (anddi->zext pre-reload splitter): New.
15961 (*zext<mode>_doubleword_and): Remove.
15962 (*zext<mode>_doubleword): Ditto.
15963 (*zextsi_doubleword): Dittto.
15964
15965 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15966
15967 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15968 Use gen_sub3_insn instead of indirect function.
15969 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15970 indirect function.
15971 (ix86_adjust_counter): Ditto.
15972
15973 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15974 Lijia He <helijia@linux.ibm.com>
15975
15976 PR tree-optimization/77820
15977 * tree-ssa-threadedge.c
15978 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15979 function.
15980 (thread_across_edge): Add call to
15981 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15982
15983 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15984
15985 * config/darwin-driver.c (validate_macosx_version_min): New.
15986 (darwin_default_min_version): Cleanup and validate supplied version.
15987 (darwin_driver_init): Likewise and push cleaned version into opts.
15988
15989 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15990
15991 PR tree-optimization/90869
15992 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15993 converts in MEM_REF referencing decl rather than view converts
15994 from decl type to MEM_REF type.
15995
15996 2019-06-13 Richard Biener <rguenther@suse.de>
15997
15998 PR tree-optimization/90856
15999 * tree-sra.c (build_ref_for_model): Only use
16000 build_reconstructed_reference when address-spaces are the same.
16001
16002 2019-06-13 Jakub Jelinek <jakub@redhat.com>
16003
16004 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
16005 wrap ei variable name in the declaration in ()s.
16006 (nvptx_single): Actually use mode_label variable. Formatting fix.
16007
16008 2019-06-13 Richard Biener <rguenther@suse.de>
16009
16010 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
16011 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
16012 also return the condition stmt.
16013 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
16014 loop we can version and version that, reusing the loop version
16015 created by if-conversion instead of versioning again.
16016
16017 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
16018
16019 * gimple-loop-versioning.cc (prune_loop_conditions): Use
16020 may_contain_p.
16021 * tree-vrp (value_range_base::may_contain_p): Call into
16022 value_inside_range.
16023 (value_inside_range): Make private inside value_range_base class.
16024 Take min/max from *this.
16025 (range_includes_p): Remove.
16026 * tree-vrp.h (value_range_base): Add value_inside_range.
16027 (range_includes_p): Remove.
16028 (range_includes_zero_p): Call may_contain_p.
16029 * vr-values.c (compare_range_with_value): Same.
16030
16031 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
16032
16033 * doc/extend.texi (ARC Function Attributes): Update info.
16034
16035 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
16036
16037 PR tree-optimization/89713
16038 * doc/invoke.texi (-ffinite-loops): Document new option.
16039 * common.opt (-ffinite-loops): New option.
16040 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
16041 IFN_GOACC_LOOP calls as necessary.
16042 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
16043 is finite.
16044 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
16045 IFN_GOACC_LOOP call is not used.
16046 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
16047
16048 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16049
16050 PR target/88838
16051 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
16052 compare_type is not with Pmode size, we will create an IV with
16053 Pmode size with truncated use (i.e. converted to the correct type).
16054 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
16055 (vect_iv_limit_for_full_masking): New. Factored out of
16056 vect_set_loop_condition_masked.
16057 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
16058 (vect_iv_limit_for_full_masking): Declare.
16059
16060 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16061
16062 PR target/88834
16063 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
16064 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
16065 (get_alias_ptr_type_for_ptr_address): Likewise.
16066 (add_iv_candidate_for_use): Add scaled index candidate if useful.
16067 * tree-ssa-address.c (preferred_mem_scale_factor): New.
16068 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
16069 allow_reg_index_p.
16070
16071 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16072
16073 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
16074
16075 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
16076
16077 * common/config/pru/pru-common.c: New file.
16078 * config.gcc: Add PRU target.
16079 * config/pru/alu-zext.md: New file.
16080 * config/pru/constraints.md: New file.
16081 * config/pru/predicates.md: New file.
16082 * config/pru/pru-opts.h: New file.
16083 * config/pru/pru-passes.c: New file.
16084 * config/pru/pru-pragma.c: New file.
16085 * config/pru/pru-protos.h: New file.
16086 * config/pru/pru.c: New file.
16087 * config/pru/pru.h: New file.
16088 * config/pru/pru.md: New file.
16089 * config/pru/pru.opt: New file.
16090 * config/pru/t-pru: New file.
16091 * doc/extend.texi: Document PRU pragmas.
16092 * doc/invoke.texi: Document PRU-specific options.
16093 * doc/md.texi: Document PRU asm constraints.
16094
16095 2019-06-12 Martin Sebor <msebor@redhat.com>
16096
16097 PR middle-end/90676
16098 * tree-pretty-print.c (dump_mem_ref): New function. Include
16099 MEM_REF type in output when different size than operand.
16100 (dump_generic_node): Move code to dump_mem_ref and call it.
16101
16102 2019-06-12 Martin Sebor <msebor@redhat.com>
16103
16104 PR tree-optimization/90662
16105 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
16106 to arrays.
16107
16108 2019-06-12 Tom de Vries <tdevries@suse.de>
16109
16110 PR tree-optimization/90009
16111 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
16112
16113 2019-06-12 Martin Liska <mliska@suse.cz>
16114
16115 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
16116 the created map.
16117 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
16118 * mem-stats.h (mem_alloc_description::mem_alloc_description):
16119 Do not sanitize created maps.
16120
16121 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
16122
16123 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
16124 value_range::singleton_p.
16125 * tree-vrp.c (value_range_constant_singleton): Remove.
16126 * tree-vrp.h (value_range_constant_singleton): Remove.
16127 * vr-values.c (vr_values::singleton): Use
16128 value_range::singleton_p.
16129
16130 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16131
16132 PR target/90811
16133 * cfgexpand.c (align_local_variable): Add really_expand argument,
16134 don't SET_DECL_ALIGN if it is false.
16135 (add_stack_var): Add really_expand argument, pass it through to
16136 align_local_variable.
16137 (expand_one_stack_var_1): Pass true as really_expand to
16138 align_local_variable.
16139 (expand_one_ssa_partition): Pass true as really_expand to
16140 add_stack_var.
16141 (expand_one_var): Pass really_expand through to add_stack_var.
16142
16143 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16144
16145 * config/arm/iterators.md (VABAL): New int iterator.
16146 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
16147 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
16148 UNSPEC_VABAL_U values.
16149
16150 2019-06-12 Martin Liska <mliska@suse.cz>
16151
16152 * value-prof.c (stream_out_histogram_value): Only first value
16153 can't be negative.
16154
16155 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16156
16157 PR c/90760
16158 * symtab.c (symtab_node::set_section): Allow being called on aliases
16159 as long as they aren't analyzed yet.
16160
16161 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16162
16163 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16164 to `mips_set_text_contents_type' to indicate whether a
16165 non-debug insn follows.
16166
16167 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16168
16169 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16170 enabling -mpcrel by default.
16171 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16172 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16173 that the test against -mcpu=future is done first. Then test if
16174 -mprefixed-addr is on for -mpcrel.
16175 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16176
16177 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16178
16179 PR target/90811
16180 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16181 instead of and.u%d.
16182
16183 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16184
16185 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16186
16187 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16188
16189 PR c++/90449 - add -Winaccessible-base option.
16190 * doc/invoke.texi (Winaccessible-base): Document.
16191
16192 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16193
16194 PR tree-optimization/62041
16195 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16196
16197 2019-06-11 Jason Merrill <jason@redhat.com>
16198
16199 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16200 * tree.c (get_tree_code_name): Likewise.
16201 * print-tree.c (print_node): Only briefly print a node with an
16202 invalid code.
16203
16204 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16205
16206 PR bootstrap/90819
16207 * trans-mem.c (tm_memopt_compute_available): Add assertion
16208 that blocks is not empty. Formatting fix.
16209
16210 2019-06-11 Martin Liska <mliska@suse.cz>
16211
16212 PR c++/87847
16213 * hash-table.h: Extend create_gcc, add one parameter
16214 that is passed into hash_table::hash_table.
16215
16216 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16217
16218 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16219 New prototype.
16220 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16221 Emit clobber also for non-sse operations.
16222 (ix86_split_fp_absneg_operator): New function.
16223 * config/i386/i386.md (SSEMODEF): New mode iterator.
16224 (ssevecmodef): New mode attribute.
16225 (<code>tf2): Use absneg code iterator.
16226 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16227 Add three-operand AVX alternatives.
16228 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16229 Use absneg code iterator and X87MODEF mode iterator.
16230 (absneg fp_reg non-sse splitter): Call absneg code iterator
16231 and X87MODEF mode iterator.
16232 (absneg general_reg non-sse splitter): Use absneg code iterator
16233 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16234 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16235 code iterator. Add three-operand AVX alternative.
16236 (absneg sse_reg splitter): Use absneg code iterator
16237 and SSEMODEF mode iterator. Handle AVX operands.
16238 (absneg fp_reg splitter): Use absneg code iterator
16239 and MODEF mode iterator.
16240 (absneg general_reg splitter): Merge splitters using MODEF mode
16241 iterator. Use absneg code iterator. Call
16242 ix86_split_fp_absneg_operator.
16243 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16244 Do not enable for non-sse modes before reload.
16245 (CSGNMODE): Remove.
16246 (CSGNVMODE): Ditto.
16247 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16248 ssevecmodef mode attribute instaed of CSGNVMODE.
16249 (copysign<mode>3_const): Ditto.
16250 (copysign<mode>3_var): Ditto.
16251 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16252 Use absneg code iterator. Simplify code using std::swap.
16253 * config/i386/predicates.md (absneg_operator): Remove.
16254
16255 2019-06-10 Martin Sebor <msebor@redhat.com>
16256
16257 * gimple-fold.c (get_range_strlen): Update comment that didn't
16258 make it into r267503 or related commits.
16259
16260 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16261
16262 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16263 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16264
16265 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16266
16267 * tree.def (OMP_SCAN): New tree code.
16268 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16269 OMP_CLAUSE_EXCLUSIVE.
16270 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16271 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16272 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16273 OMP_CLAUSE_{IN,EX}CLUSIVE.
16274 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16275 * tree-nested.c (convert_nonlocal_reference_stmt,
16276 convert_local_reference_stmt, convert_gimple_call): Handle
16277 GIMPLE_OMP_SCAN.
16278 * tree-pretty-print.c (dump_omp_clause): Handle
16279 OMP_CLAUSE_{IN,EX}CLUSIVE.
16280 (dump_generic_node): Handle OMP_SCAN.
16281 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16282 * gimple.h (gomp_scan): New type.
16283 (is_a_helper <gomp_scan *>::test,
16284 is_a_helper <const gomp_scan *>::test): New templates.
16285 (gimple_build_omp_scan): Declare.
16286 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16287 gimple_omp_scan_set_clauses): New inline functions.
16288 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16289 * gimple.c (gimple_build_omp_scan): New function.
16290 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16291 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16292 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16293 GIMPLE_OMP_TASKGROUP.
16294 (dump_gimple_omp_scan): New function.
16295 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16296 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16297 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16298 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16299 (is_gimple_stmt): Handle OMP_SCAN.
16300 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16301 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16302 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16303 mentioned in nested #pragma omp scan. Handle
16304 OMP_CLAUSE_{IN,EX}CLUSIVE.
16305 (gimplify_expr): Handle OMP_SCAN.
16306 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16307 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16308 simd constructs.
16309 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16310 GIMPLE_OMP_SCAN.
16311
16312 2019-06-10 Martin Liska <mliska@suse.cz>
16313
16314 * ipa-cp.c (ignore_edge_p): New function.
16315 (build_toporder_info): Use it.
16316 * ipa-inline.c (ignore_edge_p): New function.
16317 (inline_small_functions): Use it.
16318 * ipa-pure-const.c (ignore_edge_for_nothrow):
16319 Verify opt_for_fn for caller and callee.
16320 (ignore_edge_for_pure_const): Likewise.
16321 * ipa-reference.c (ignore_edge_p): Extend to check
16322 for opt_for_fn.
16323 * ipa-utils.c (searchc): Refactor.
16324 * ipa-utils.h: Fix coding style.
16325
16326 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16327
16328 * config/arc/arc.c (arc_rtx_costs): Update costs.
16329
16330 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16331
16332 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16333 (arc_split_ior): Likewise.
16334 (arc_check_mov_const): Likewise.
16335 (arc_split_mov_const): Likewise.
16336 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16337 (arc_rtx_costs): Replace check Crr with Cax constraint.
16338 (prepare_move_operands): Cleanup, remove unused code.
16339 (arc_split_ior): New function.
16340 (arc_check_ior_const): Likewise.
16341 (arc_split_mov_const): Likewise.
16342 (arc_check_mov_const): Likewise.
16343 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16344 in define_insn_and_split pattern.
16345 (iorsi3): Likewise.
16346 (mulsi3_v2): Add new matching variant.
16347 (andsi3_i): Cleanup pattern.
16348 (rotrsi3_cnt1): Update pattern.
16349 (rotrsi3_cnt8): New pattern.
16350 (ashlsi2_cnt8): Likewise.
16351 (ashlsi2_cnt16): Likewise.
16352 * config/arc/constraints.md (C0p): Update constraint.
16353 (Crr): Remove it.
16354 (C0x): New pattern.
16355 (Cax): New pattern.
16356
16357 2019-06-10 Martin Liska <mliska@suse.cz>
16358
16359 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16360 Update coding style.
16361 (sem_item_optimizer::dump_cong_classes):
16362 Print how many items are in a non-singular class. Improve
16363 coding style.
16364
16365 2019-06-10 Martin Liska <mliska@suse.cz>
16366
16367 * value-prof.c (dump_histogram_value): Change dump format.
16368 (gimple_mod_subtract_transform): Remove legacy comment.
16369
16370 2019-06-10 Martin Liska <mliska@suse.cz>
16371
16372 * value-prof.c (dump_histogram_value): Print histogram values
16373 only if present.
16374
16375 2019-06-10 Martin Liska <mliska@suse.cz>
16376
16377 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16378 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16379 * ipa-profile.c (ipa_profile_generate_summary):
16380 Use get_most_common_single_value.
16381 * tree-profile.c (gimple_init_gcov_profiler):
16382 Instrument with __gcov_one_value_profiler_v2
16383 and __gcov_indirect_call_profiler_v4.
16384 * value-prof.c (dump_histogram_value):
16385 Print all values for HIST_TYPE_SINGLE_VALUE.
16386 (stream_out_histogram_value): Update assert for
16387 N values.
16388 (stream_in_histogram_value): Set number of
16389 counters for HIST_TYPE_SINGLE_VALUE.
16390 (get_most_common_single_value): New.
16391 (gimple_divmod_fixed_value_transform):
16392 Use get_most_common_single_value.
16393 (gimple_ic_transform): Likewise.
16394 (gimple_stringops_transform): Likewise.
16395 (gimple_find_values_to_profile): Set number
16396 of counters for HIST_TYPE_SINGLE_VALUE.
16397 * value-prof.h (get_most_common_single_value): New.
16398
16399 2019-06-10 Martin Liska <mliska@suse.cz>
16400
16401 * hash-map.h: Pass default value to hash_table ctor.
16402 * hash-table.h: Add default value to call of a ctor.
16403
16404 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16405
16406 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16407 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16408
16409 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16410
16411 PR target/90751
16412 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16413 Call pa_output_function_label.
16414 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16415 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16416 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16417 to declaration.
16418 (pa_linux_output_function_prologue): Declare.
16419 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16420 (pa_output_function_label): New.
16421 (pa_output_function_prologue): Revise to use pa_output_function_label.
16422 (pa_linux_output_function_prologue): New.
16423 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16424
16425 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16426
16427 * tree-vrp.h (value_range_base::intersect): New.
16428 (value_range::intersect_helper): Move from here...
16429 (value_range_base::intersect_helper): ...to here.
16430 * tree-vrp.c (value_range::intersect_helper): Rename to...
16431 (value_range_base::intersect_helper): ...this, and rewrite to
16432 return a value instead of modifying THIS in place.
16433 Also, move equivalence handling...
16434 (value_range::intersect): ...here, while calling intersect_helper.
16435 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16436 calling intersect.
16437 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16438 Same.
16439 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16440
16441 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16442
16443 * Makefile.in (genprogerr): Add condmd.
16444 (genprog): Remove it here.
16445
16446 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16447
16448 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16449
16450 2019-06-07 Richard Biener <rguenther@suse.de>
16451
16452 PR debug/90574
16453 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16454 that appear after user labels.
16455
16456 2019-06-07 Martin Liska <mliska@suse.cz>
16457
16458 * cselib.c (cselib_init): Disable hash table
16459 sanitization.
16460 * hash-set.h: Pass new default argument to m_table.
16461 * hash-table.c: Add global variable with hash table
16462 sanitization limit.
16463 * hash-table.h (Allocator>::hash_table): Add new argument
16464 to ctor.
16465 (hashtab_chk_error): New.
16466 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16467 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16468 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16469
16470 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16471
16472 * common.opt (flto-odr-type-merging): Ignore.
16473 * invoke.texi (-flto-odr-type-merging): Remove.
16474 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16475 (can_be_vtable_hashed_p): Remove.
16476 (hash_odr_vtable): Remove.
16477 (odr_vtable_hasher::hash): Remove.
16478 (types_same_for_odr): Remove.
16479 (types_odr_comparable): Remove.
16480 (odr_vtable_hasher::equal): Remove.
16481 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16482 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16483 (get_odr_type): Do not use vtable hash.
16484 (dump_odr_type): Remove commented out code.
16485 (build_type_inheritance_graph): Do not allocate vtable hash.
16486 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16487 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16488 (odr_type_p): Likewise.
16489 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16490 test.
16491
16492 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16493
16494 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16495 immediately after same_types_for_tbaa_p returns -1 and continue
16496 looking for possible exact match; if matching types are arrays
16497 watch for partial overlaps.
16498 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16499 (indirect_refs_may_alias_p): Do type based disambiguation first;
16500 update comment.
16501
16502 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16503
16504 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16505
16506 2019-06-07 Martin Liska <mliska@suse.cz>
16507
16508 * doc/invoke.texi: Remove param.
16509 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16510 Remove.
16511 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16512 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16513 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16514 * profile.c (instrument_values): Remove
16515 HIST_TYPE_INDIR_CALL_TOPN.
16516 * tree-profile.c (init_ic_make_global_vars):
16517 Always build __gcov_indirect_call only.
16518 (gimple_init_gcov_profiler): Remove usage
16519 of PARAM_INDIR_CALL_TOPN_PROFILE.
16520 (gimple_gen_ic_profiler): Likewise.
16521 * value-prof.c (dump_histogram_value): Likewise.
16522 (stream_in_histogram_value): Likewise.
16523 (gimple_indirect_call_to_profile): Likewise.
16524 (gimple_find_values_to_profile): Likewise.
16525 * value-prof.h (enum hist_type): Likewise.
16526
16527 2019-06-07 Martin Liska <mliska@suse.cz>
16528
16529 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16530 function.
16531
16532 2019-06-07 Martin Liska <mliska@suse.cz>
16533
16534 PR tree-optimization/78902
16535 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16536 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16537 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16538 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16539 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16540 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16541 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16542 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16543 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16544 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16545 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16546 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16547 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16548 New.
16549 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16550 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16551 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16552 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16553 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16554 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16555 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16556 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16557 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16558 warn_unused_result attribute.
16559 (BUILT_IN_STRDUP): Likewise.
16560 (BUILT_IN_STRNDUP): Likewise.
16561 (BUILT_IN_ALLOCA): Likewise.
16562 (BUILT_IN_CALLOC): Likewise.
16563 (BUILT_IN_MALLOC): Likewise.
16564 (BUILT_IN_REALLOC): Likewise.
16565
16566 2019-06-06 Jim Wilson <jimw@sifive.com>
16567
16568 PR target/89955
16569 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16570 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16571 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16572
16573 2019-06-06 Martin Sebor <msebor@redhat.com>
16574
16575 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16576 (handle_builtin_malloc): Remove trailing spaces.
16577 (handle_builtin_memset): Same.
16578 (handle_builtin_memcmp): Same.
16579 (compute_string_length): Same.
16580 (determine_min_objsize): Same.
16581 (handle_builtin_string_cmp): Same.
16582 (handle_char_store): Same. Break up excessively long line.
16583
16584 2019-06-06 Martin Jambor <mjambor@suse.cz>
16585
16586 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16587 check.
16588
16589 2019-06-06 Martin Jambor <mjambor@suse.cz>
16590
16591 * tree-sra.c (struct access): New field grp_same_access_path.
16592 (dump_access): Dump it.
16593 (build_reconstructed_reference): New function.
16594 (build_ref_for_model): Use it if possible.
16595 (path_comparable_for_same_access): New function.
16596 (same_access_path_p): Likewise.
16597 (sort_and_splice_var_accesses): Set the new flag.
16598 (analyze_access_subtree): Likewise.
16599 (propagate_subaccesses_across_link): Propagate zero value of the new
16600 flag down the access tree.
16601
16602 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16603
16604 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16605 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16606 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16607 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16608 Add gfx906.
16609
16610 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16611
16612 PR tree-optimization/90332
16613 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16614 Handle VALS containing two vectors.
16615 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16616 to...
16617 (@aarch64_combinez<mode>): ... This.
16618 (*aarch64_combinez_be<mode>): Rename to...
16619 (@aarch64_combinez_be<mode>): ... This.
16620 (vec_init<mode><Vhalf>): New define_expand.
16621 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16622
16623 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16624
16625 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16626 library functions only when not optimizing for size.
16627 (ashlsi3): Likewise.
16628 (ashrhi3): Likewise.
16629 (ashrsi3): Likewise.
16630 (lshrhi3): Likewise.
16631 (lshrsi3): Likewise.
16632
16633 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16634
16635 PR rtl-optimization/88751
16636 * ira.c (ira): Use the number of the actually referenced registers
16637 when calculating the threshold.
16638
16639 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16640
16641 * configure: Regenerate.
16642
16643 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16644
16645 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16646 register if it is in memory, so the shift can be emulated with a rotate
16647 instruction.
16648 (ashrhi3): Likewise.
16649 (lshrhi3): Likewise.
16650
16651 2019-06-06 Martin Liska <mliska@suse.cz>
16652
16653 PR tree-optimization/87954
16654 * match.pd: Simplify mult where both arguments are 0 or 1.
16655
16656 2019-06-06 Richard Biener <rguenther@suse.de>
16657
16658 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16659 put equivalences on UNDEFINED ranges.
16660 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16661 Make sure to drop defs of stmts added during simplification
16662 to VARYING.
16663
16664 2019-06-06 Richard Biener <rguenther@suse.de>
16665
16666 * tree-ssa-structalias.c: Include tree-cfg.h.
16667 (make_heapvar): Do not make heap vars artificial.
16668 (find_func_aliases_for_builtin_call): Handle stack allocation
16669 functions.
16670 (find_func_aliases): Delay processing of simple enough returns
16671 in non-IPA mode.
16672 (set_uids_in_ptset): Adjust.
16673 (find_what_var_points_to): Likewise.
16674 (solve_constraints): Do not dump points-to sets here.
16675 (compute_points_to_sets): Post-process return statements,
16676 amending the escaped solution. Dump points-to sets afterwards.
16677 (ipa_pta_execute): Dump points-to sets.
16678
16679 2019-06-06 Martin Liska <mliska@suse.cz>
16680
16681 PR web/87933
16682 * doc/install.texi: Fix HTML headers and
16683 titles for 'Installing GCC' pages.
16684
16685 2019-06-06 Martin Liska <mliska@suse.cz>
16686
16687 * ipa-icf-gimple.h (dump_message_1): Remove.
16688 (dump_message): Likewise.
16689 (return_false_with_message_1): Print also file.
16690 (return_false_with_msg): Likewise.
16691 (return_with_result): Likewise.
16692 (return_with_debug): Likewise.
16693 * ipa-icf.c (sem_function::equals_private): Remove call
16694 to dump_message.
16695
16696 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16697
16698 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16699 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16700 memory operand for it.
16701 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16702
16703 2019-06-05 Martin Sebor <msebor@redhat.com>
16704
16705 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16706 Adjust quoting and hyphenation.
16707 * convert.c (convert_to_real_1): Same.
16708 * gcc.c (driver_wrong_lang_callback): Same.
16709 (driver::handle_unrecognized_options): Same.
16710 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16711 * opts-common.c (cmdline_handle_error): Same.
16712 (read_cmdline_option): Same.
16713 * opts-global.c (complain_wrong_lang): Same.
16714 (print_ignored_options): Same.
16715 (handle_common_deferred_options): Same.
16716 * pretty-print.h: Same.
16717 * print-rtl.c (debug_bb_n_slim): Same.
16718 * sched-rgn.c (make_pass_sched_fusion): Same.
16719 * tree-cfg.c (verify_gimple_assign_unary): Same.
16720 (verify_gimple_label): Same.
16721 * tree-ssa-operands.c (verify_ssa_operands): Same.
16722 * varasm.c (do_assemble_alias): Same.
16723 (assemble_alias): Same.
16724
16725 2019-06-05 Richard Henderson <rth@twiddle.net>
16726
16727 * config/alpha/alpha.c (direct_return): Move down after
16728 struct machine_function definition; use saved frame_size;
16729 return bool.
16730 (struct machine_function): Add sa_mask, sa_size, frame_size.
16731 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16732 (alpha_compute_frame_layout): ... new function.
16733 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16734 (alpha_initial_elimination_offset): Use saved sa_size.
16735 (alpha_vms_initial_elimination_offset): Likewise.
16736 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16737 (alpha_expand_prologue): Use saved frame data. Merge integer
16738 and fp register save loops.
16739 (alpha_expand_epilogue): Likewise.
16740 (alpha_start_function): Use saved frame data.
16741 * config/alpha/alpha-protos.h (direct_return): Update.
16742 (alpha_sa_size): Remove.
16743
16744 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16745
16746 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16747 multiplication by a power-of-two value.
16748 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16749 and turn the modulo operation into a masking operation.
16750
16751 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16752
16753 PR debug/90733
16754 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16755 with VOIDmode inner operands.
16756
16757 2019-06-05 Richard Biener <rguenther@suse.de>
16758
16759 PR middle-end/90726
16760 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16761 turn an expression graph into a tree.
16762
16763 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16764
16765 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16766 member.
16767 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16768 treat it like explicit monotonic schedule modifier.
16769 (expand_omp_for): Initialize has_lastprivate_conditional.
16770 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16771 schedule modifier.
16772
16773 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16774 references, lookup in in hash map MEM_REF operand instead of the
16775 MEM_REF itself.
16776 (lower_omp_1): When looking for lastprivate conditional assignments,
16777 handle MEM_REFs with REFERENCE_TYPE operands.
16778
16779 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16780 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16781 and references a VLA. Handle references to non-VLAs if is_simd
16782 all privatization clauses like reductions.
16783 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16784 If omp_is_reference, use always omp simd arrays and set
16785 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16786 fails, emit reference initialization.
16787
16788 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16789
16790 PR target/89803
16791 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16792 _mm_mask_fpclass_sd_mask): New intrinsics.
16793 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16794 * config/i386/i386-builtin.def
16795 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16796 New builtins.
16797 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16798 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16799 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16800 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16801 case QI_FTYPE_V2SF_INT): Ditto.
16802 * config/i386/sse.md
16803 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16804 Extended to insnstructions with mask operands.
16805
16806 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16807
16808 * config/rs6000/constraints.md (define_register_constraint "wp"):
16809 Delete.
16810 (define_register_constraint "wq"): Delete.
16811 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16812 (rs6000_init_hard_regno_mode_ok): Adjust.
16813 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16814 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16815 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16816 (define_mode_attr VSa): Delete.
16817 (define_mode_attr VSisa): New.
16818 (rest of file): Adjust.
16819 * doc/md.texi (Machine Constraints): Adjust.
16820
16821 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16822
16823 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16824 (define_attr "enabled"): Handle those new isa values.
16825
16826 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16827
16828 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16829 (define_mode_attr VSr5): Delete.
16830 (define_mode_attr VStype_sqrt): Delete.
16831 (define_mode_iterator VSX_SPDP): Delete.
16832 (define_mode_attr VS_spdp_res): Delete.
16833 (define_mode_attr VS_spdp_insn): Delete.
16834 (define_mode_attr VS_spdp_type): Delete.
16835 (*vsx_sqrt<mode>2): Adjust.
16836 (vsx_<VS_spdp_insn>): Delete, split to...
16837 (vsx_xscvdpsp): ... this. New. And...
16838 (vsx_xvcvspdp): ... this. New. And...
16839 (vsx_xvcvdpsp): ... this. New.
16840
16841 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16842
16843 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16844 and V2DF.
16845 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16846 (rest of file): Adjust.
16847
16848 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16849
16850 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16851 (vsx_extract_<mode>_var): Ditto.
16852
16853 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16854
16855 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16856 with just "wa".
16857
16858 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16859
16860 * config/rs6000/constraints.md (define_register_constraint "ww"):
16861 Delete.
16862 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16863 (rs6000_init_hard_regno_mode_ok): Adjust.
16864 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16865 RS6000_CONSTRAINT_ww.
16866 * config/rs6000/rs6000.md: Adjust.
16867 * config/rs6000/vsx.md: Adjust.
16868 * doc/md.texi (Machine Constraints): Adjust.
16869
16870 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16871
16872 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16873 (define_mode_attr sd): New.
16874 (define_mode_attr s): New.
16875 (define_mode_attr Ftrad): Delete.
16876 (define_mode_attr Fvsx): Delete.
16877 (define_mode_attr Fs): Delete.
16878 (rest of file): Use the new mode attributes.
16879 * config.rs6000/vsx.md: Use the new mode attributes.
16880
16881 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16882
16883 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16884 with just "wa".
16885
16886 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16887
16888 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16889 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16890 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16891
16892 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16893
16894 PR target/78263
16895 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16896 C++ with strict ANSI requirements.
16897
16898 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16899
16900 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16901 computations when step is 1.
16902
16903 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16904
16905 * config/rs6000/constraints.md (define_register_constraint "wf"):
16906 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_wf.
16911 * config/rs6000/rs6000.md: Adjust.
16912 * config/rs6000/vsx.md: Adjust.
16913 * doc/md.texi (Machine Constraints): Adjust.
16914
16915 2019-06-04 Andrew Pinski <apinski@marvell.com>
16916
16917 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16918 Fix ILP32 value.
16919
16920 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16921
16922 * config/rs6000/constraints.md (define_register_constraint "wd"):
16923 Delete.
16924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16925 (rs6000_init_hard_regno_mode_ok): Adjust.
16926 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16927 RS6000_CONSTRAINT_wd.
16928 * config/rs6000/rs6000.md: Adjust.
16929 * config/rs6000/vsx.md: Adjust.
16930 * doc/md.texi (Machine Constraints): Adjust.
16931
16932 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16933
16934 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16935 (rest of file): Adjust.
16936
16937 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16938
16939 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16940 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16941 (vsx_splat_<mode>_reg): Adjust.
16942
16943 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16944
16945 * config/rs6000/constraints.md (define_register_constraint "ws"):
16946 Delete.
16947 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16948 (rs6000_init_hard_regno_mode_ok): Adjust.
16949 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16950 RS6000_CONSTRAINT_ws.
16951 * config/rs6000/rs6000.md: Adjust.
16952 * config/rs6000/vsx.md: Adjust.
16953 * doc/md.texi (Machine Constraints): Adjust.
16954
16955 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16956
16957 * config/rs6000/constraints.md (define_register_constraint "wv"):
16958 Delete.
16959 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16960 (rs6000_init_hard_regno_mode_ok): Adjust.
16961 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16962 RS6000_CONSTRAINT_wv.
16963 * config/rs6000/rs6000.md: Adjust.
16964 * config/rs6000/vsx.md: Adjust.
16965 * doc/md.texi (Machine Constraints): Adjust.
16966
16967 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16968
16969 * config/rs6000/constraints.md (define_register_constraint "wi"):
16970 Delete.
16971 (define_register_constraint "wt"): Delete.
16972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16973 (rs6000_init_hard_regno_mode_ok): Adjust.
16974 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16975 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16976 * config/rs6000/rs6000.md: Adjust.
16977 * config/rs6000/vsx.md: Adjust.
16978 * doc/md.texi (Machine Constraints): Adjust.
16979
16980 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16981
16982 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16983 const.
16984 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16985 default_elf_asm_output_external.
16986
16987 2019-06-04 Martin Liska <mliska@suse.cz>
16988
16989 * ipa-icf.c (INCLUDE_LIST): Remove.
16990 (sem_item_optimizer::execute): Remove call to init_wpa.
16991 * ipa-icf.h (init_wpa): Remove.
16992
16993 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16994
16995 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16996 conditional on combined for simd.
16997 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16998 member.
16999 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
17000 constructs, don't remove lastprivate_conditional_map, but instead set
17001 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
17002 to parent construct temporaries.
17003 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
17004 like !ctx->lastprivate_conditional_map.
17005 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
17006 use up->outer context instead of up.
17007 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
17008 gimple_omp_for_combined_p.
17009 (expand_omp_for_static_nochunk): Likewise.
17010 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
17011 probably moved over into expand_omp_for_generic rather than being copied
17012 there.
17013
17014 2019-06-04 Martin Liska <mliska@suse.cz>
17015
17016 * value-prof.c (dump_histogram_value): Fix typo.
17017 (gimple_mod_subtract_transform): Likewise.
17018
17019 2019-06-04 Richard Biener <rguenther@suse.de>
17020
17021 PR middle-end/90726
17022 * tree-chrec.c (chrec_contains_symbols): Add to visited.
17023 (tree_contains_chrecs): Likewise.
17024 (chrec_contains_symbols_defined_in_loop): Move here and avoid
17025 exponential behaivor from ...
17026 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17027 ... here.
17028 (expression_expensive_p): Avoid exponential behavior and compute
17029 expanded size, rejecting any expansion.
17030 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
17031 (idx_contains_abnormal_ssa_name_p): Likewise.
17032 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
17033 (contains_abnormal_ssa_name_p): Simplify and use
17034 walk_tree_without_duplicates.
17035
17036 2019-06-04 Richard Biener <rguenther@suse.de>
17037
17038 PR tree-optimization/90738
17039 Revert
17040 2019-06-03 Richard Biener <rguenther@suse.de>
17041
17042 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17043 full reference tree and record in ref->ref.
17044 (vn_reference_lookup_3): Pass in original ref to
17045 ao_ref_init_from_vn_reference.
17046 (vn_reference_lookup): Likewise.
17047 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17048 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17049 Handle non-decl bases in the original reference.
17050
17051 2019-06-04 Martin Liska <mliska@suse.cz>
17052
17053 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
17054 number of references.
17055 (sem_item_optimizer::do_congruence_step):
17056 (sem_item_optimizer::worklist_push): Dump how references
17057 a class has.
17058 (sem_item_optimizer::worklist_pop): Use heap.
17059 (sem_item_optimizer::process_cong_reduction): Likewise.
17060 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
17061
17062 2019-06-04 Martin Liska <mliska@suse.cz>
17063
17064 * ipa-icf.h (struct sem_usage_pair_hash): New.
17065 (sem_usage_pair_hash::hash): Likewise.
17066 (sem_usage_pair_hash::equal): Likewise.
17067 (struct sem_usage_hash): Likewise.
17068 * ipa-icf.c (sem_item::sem_item): Initialize
17069 referenced_by_count.
17070 (sem_item::add_reference): Register a reference
17071 in ref_map and not in target->usages.
17072 (sem_item::setup): Remove initialization of
17073 dead vectors.
17074 (sem_item::~sem_item): Remove usage of dead vectors.
17075 (sem_item::dump): Remove dump of references.
17076 (sem_item_optimizer::sem_item_optimizer): Initialize
17077 m_references.
17078 (sem_item_optimizer::read_section): Remove useless
17079 dump.
17080 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
17081 (sem_item_optimizer::build_graph): Pass m_references
17082 to ::add_reference.
17083 (sem_item_optimizer::verify_classes): Remove usage of dead
17084 vectors.
17085 (sem_item_optimizer::traverse_congruence_split): Return true
17086 when a class is split.
17087 (sem_item_optimizer::do_congruence_step_for_index): Use
17088 hash_map for look up of (sem_item *, index). That brings
17089 significant speed up.
17090 (sem_item_optimizer::do_congruence_step): Return true
17091 when a split is done.
17092 (congruence_class::is_class_used): Use referenced_by_count.
17093
17094 2019-06-04 Alan Modra <amodra@gmail.com>
17095
17096 PR target/90689
17097 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
17098 error.
17099
17100 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17101
17102 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
17103 * config/rs6000/rs6000.c (direct_move_p): Adjust.
17104 (rs6000_secondary_reload_simple_move): Adjust.
17105 (rs6000_opt_masks): Neuter the "mfpgpr" option.
17106 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
17107 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
17108 comment.
17109 (power6x): Adjust.
17110 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
17111 (floatunssi<mode>2_lfiwzx): Adjust.
17112 (fix_trunc<mode>si2_stfiwx): Adjust.
17113 (fixuns_trunc<mode>si2_stfiwx): Adjust.
17114 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
17115 (mfpgpr): Mark as deprecated.
17116 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
17117 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
17118 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
17119
17120 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17121
17122 * config/rs6000/constraints.md (define_register_constraint "wg"):
17123 Delete.
17124 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17125 RS6000_CONSTRAINT_wg.
17126 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17127 (rs6000_init_hard_regno_mode_ok): Adjust.
17128 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
17129 Delete "wg" alternatives.
17130 * doc/md.texi (Machine Constraints): Adjust.
17131
17132 2019-06-03 Alan Modra <amodra@gmail.com>
17133
17134 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
17135 (get_uncond_jump_length): Assert length less than INT_MAX and
17136 non-negative.
17137
17138 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17139
17140 PR middle-end/64242
17141 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
17142 block.
17143 (expand_builtin_nonlocal_goto): Likewise.
17144
17145 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17146
17147 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
17148 (aarch64_asm_output_external): Declare.
17149 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17150 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17151 (aarch64_asm_output_alias): New.
17152 (aarch64_asm_output_external): New.
17153 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17154 (ASM_OUTPUT_EXTERNAL): Define.
17155
17156 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17157 * tree-vrp.h (value_range_base::nonzero_p): New.
17158 (value_range_base::set_nonnull): Rename to...
17159 (value_range_base::set_nonzero): ...this.
17160 (value_range_base::set_null): Rename to...
17161 (value_range_base::set_zero): ...this.
17162 (value_range::set_nonnull): Remove.
17163 (value_range::set_null): Remove.
17164 * tree-vrp.c (range_is_null): Remove.
17165 (range_is_nonnull): Remove.
17166 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17167 instead of range_is_*null.
17168 (extract_range_from_unary_expr): Same.
17169 (value_range_base::set_nonnull): Rename to...
17170 (value_range_base::set_nonzero): ...this.
17171 (value_range::set_nonnull): Remove.
17172 (value_range_base::set_null): Rename to...
17173 (value_range_base::set_zero): ...this.
17174 (value_range::set_null): Remove.
17175 (extract_range_from_binary_expr): Rename set_*null uses to
17176 set_*zero.
17177 (extract_range_from_unary_expr): Same.
17178 (union_helper): Same.
17179 * vr-values.c (get_value_range): Use set_*zero instead of
17180 set_*null.
17181 (vr_values::extract_range_from_binary_expr): Same.
17182 (vr_values::extract_range_basic): Same.
17183
17184 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17185
17186 PR driver/90684
17187 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17188
17189 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17190
17191 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17192 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17193 Rename to...
17194 (aarch64_<su>abd<mode>_3): ... This.
17195 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17196
17197 2019-06-03 Richard Biener <rguenther@suse.de>
17198
17199 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17200 full reference tree and record in ref->ref.
17201 (vn_reference_lookup_3): Pass in original ref to
17202 ao_ref_init_from_vn_reference.
17203 (vn_reference_lookup): Likewise.
17204 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17205 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17206 Handle non-decl bases in the original reference.
17207
17208 2019-06-03 Martin Liska <mliska@suse.cz>
17209
17210 * doc/generic.texi: Remove Java Trees.
17211
17212 2019-06-03 Martin Liska <mliska@suse.cz>
17213
17214 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17215 returns 0 when operands are equal.
17216
17217 2019-06-03 Richard Biener <rguenther@suse.de>
17218
17219 PR tree-optimization/90716
17220 * tree-loop-distribution.c (destroy_loop): Process blocks in
17221 correct order.
17222
17223 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17224
17225 PR target/88837
17226 * vector-builder.h (vector_builder::count_dups): New method.
17227 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17228 Declare prototype.
17229 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17230 (vec_init<mode><Vel>): New pattern.
17231 * config/aarch64/aarch64.c (emit_insr): New function.
17232 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17233 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17234 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17235 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17236
17237 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17238
17239 PR tree-optimization/90681
17240 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17241 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17242 special case for SLP, but fail on non-groupped loads.
17243
17244 2019-06-03 Martin Liska <mliska@suse.cz>
17245
17246 * cfg.c (debug): Use TDF_DETAILS for debug and
17247 print edge info only once.
17248
17249 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17250
17251 PR fortran/90539
17252 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17253
17254 2019-06-01 Martin Sebor <msebor@redhat.com>
17255
17256 PR middle-end/90694
17257 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17258
17259 2019-05-31 Jan Hubicka <jh@suse.cz>
17260
17261 * alias.c: Include ipa-utils.h.
17262 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17263 * ipa-devirt.c (prevailing_odr_type): New.
17264 * ipa-utils.h (previaling_odr_type): Declare.
17265
17266 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17267 Hongtao Liu <hongtao.liu@intel.com>
17268
17269 PR target/89355
17270 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17271 NOTE_INSN_DELETED_LABEL check.
17272
17273 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17274 Robert Suchanek <robert.suchanek@mips.com>
17275
17276 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17277 and 3rd operands of the fmadd/fmsub/maddv builtin.
17278
17279 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17280
17281 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17282 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17283 on OMP_SIMD if not nested inside of worksharing loop that also has
17284 lastprivate conditional clause for the same decl.
17285 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17286 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17287 on simd.
17288 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17289 on simd construct.
17290 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17291 on simd construct.
17292 (lower_lastprivate_clauses): Likewise.
17293 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17294 calling lower_rec_input_clauses.
17295 (lower_omp_for): Likewise.
17296 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17297 clause on simd construct.
17298 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17299 OMP_CLAUSE__CONDTEMP_ clause is present.
17300
17301 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17302 ivar and lvar.
17303
17304 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17305
17306 PR c/43673
17307 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17308 TEX_D32, TEX_D64 or TEX_D128.
17309
17310 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17311
17312 * match.pd (~(vec?cst1:cst2)): New transformation.
17313
17314 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17315
17316 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17317 ((size_t)(A /[ex] B) CMP C): New transformation.
17318
17319 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17320
17321 * doc/md.texi: Document define_insn_and_rewrite.
17322 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17323 * gensupport.c (queue_elem): Update comment.
17324 (replace_operands_with_dups): New function.
17325 (gen_rewrite_sequence): Likewise.
17326 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17327 * read-rtl.c (apply_subst_iterator): Likewise.
17328 (add_condition_to_rtx, named_rtx_p): Likewise.
17329 (rtx_reader::read_rtx_operand): Likewise.
17330 * config/aarch64/aarch64-sve.md
17331 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17332 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17333 define_insn_and_rewrite.
17334 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17335 Remove separate define_split.
17336
17337 2019-05-31 Jan Hubicka <jh@suse.cz>
17338
17339 * tree-ssa-alias.c (type_has_components_p): New function.
17340 (aliasing_component_refs_p): Use it.
17341
17342 2019-05-31 Martin Liska <mliska@suse.cz>
17343
17344 * gdbhooks.py: Add const_tree to TreePrinter.
17345
17346 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17347
17348 PR debug/86964
17349 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17350 * doc/invoke.texi (Debugging Options): Document new default of
17351 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17352
17353 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17354
17355 PR tree-optimization/90671
17356 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17357 template_block used to be empty on the first call, don't use
17358 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17359 seq with bb_seq and set it with set_bb_seq.
17360
17361 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17362
17363 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17364
17365 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17366 Michael Meissner <meissner@linux.ibm.com>
17367
17368 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17369 (prefixed_mem_operand): Likewise.
17370 (non_prefixed_mem_operand): Likewise.
17371 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17372 prototype.
17373 * config/rs6000/rs6000.c (print_operand_address): Handle
17374 PC-relative addresses.
17375 (mode_supports_prefixed_address_p): New function.
17376 (rs6000_prefixed_address): New function.
17377 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17378 (SYMBOL_REF_PCREL_P): Likewise.
17379
17380 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17381
17382 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17383 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17384 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17385 is nested inside of parallel region, add _condtemp_ clause to both.
17386 * tree-nested.c (convert_nonlocal_omp_clauses,
17387 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17388 assertion failure.
17389 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17390 member.
17391 * omp-general.c (omp_extract_for_data): Compute it.
17392 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17393 (lower_rec_input_clauses): Likewise.
17394 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17395 clause is already present, just add one further one after it.
17396 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17397 (lower_send_shared_vars): Clear _condtemp_ vars.
17398 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17399 or section or taskgroup.
17400 * omp-expand.c (determine_parallel_type): Disallow combining only if
17401 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17402 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17403 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17404 expand_omp_for_static_chunk, expand_omp_for): Use
17405 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17406 determine if a special set of API routines are needed and if condtemp
17407 needs to be initialized, while always initialize cond_var if
17408 fd->lastprivate_conditional is non-zero.
17409
17410 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17411 Michael Meissner <meissner@linux.ibm.com>
17412
17413 * config/rs6000/constraints.md (eI): New constraint.
17414 * config/rs6000/predicates.md (cint34_operand): New predicate.
17415 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17416 (SIGNED_34BIT_OFFSET_P): Likewise.
17417 * doc/md.texi (eI): Document constraint.
17418
17419 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17420
17421 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17422
17423 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17424 Michael Meissner <meissner@linux.ibm.com>
17425
17426 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17427 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17428 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17429 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17430 (OTHER_FUTURE_MASKS): Likewise.
17431 (POWERPC_MASKS): Likewise.
17432 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17433 specified without -mprefixed-addr or -mcpu=future. Error if
17434 -mprefixed-addr is specified without -mcpu=future.
17435 (rs6000_opt_masks): Add entry for prefixed-addr.
17436 * rs6000.opt (mprefixed-addr): New option.
17437
17438 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17439
17440 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17441 cfun->is_thunk check.
17442
17443 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17444
17445 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17446 to length.
17447
17448 2019-05-30 Martin Liska <mliska@suse.cz>
17449
17450 * gdbinit.in: Fix 'ptc' command. Add trt
17451 that prints TREE_TYPE($).
17452
17453 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17454 Alan Modra <amodra@gmail.com>
17455
17456 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17457 calls here...
17458 (rs6000_indirect_call_template_1): ...and here.
17459 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17460 plt16_ha, plt16_lo, mtctr indirect calls. Use
17461 rs6000_pltseq_enum.
17462 (rs6000_decl_ok_for_sibcall): New function.
17463 (rs6000_function_ok_for_sibcall): Refactor.
17464 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17465 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17466 when pcrel. Reorganize.
17467 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17468 * rs6000.h (rs6000_pltseq_enum): New enum.
17469 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17470 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17471 (*pltseq_plt16_ha): Likewise.
17472 (*pltseq_plt16_lo): Likewise.
17473 (*pltseq_mtctr): Likewise.
17474 (*pltseq_plt_pcrel): New insn.
17475 (*call_local_aix): Handle @notoc calls.
17476 (*call_value_local_aix): Likewise.
17477 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17478 (*call_value_nonlocal_aix): Likewise.
17479 (*call_indirect_pcrel): New insn.
17480 (*call_value_indirect_pcrel): Likewise.
17481
17482 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17483
17484 * config/i386/sse.md (*save_multiple<mode>): Rename from
17485 save_multiple<mode>.
17486 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17487 (*restore_multiple_and_return<mode>): Rename from
17488 restore_multiple_and_return<mode>.
17489 (*restore_multiple_leave_return<mode>): Rename from
17490 restore_multiple_leave_return<mode>.
17491
17492 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17493
17494 * config.gcc (rx-*-linux*): New target.
17495 * config/rx/elf.opt: New file.
17496 * config/rx/linux.h: Likewise.
17497 * config/rx/t-linux: Likewise.
17498 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17499 make it zero.
17500 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17501 (ASM_APP_OFF): Likewise.
17502 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17503 moved elsewhere.
17504
17505 2019-05-29 Jan Hubicka <jh@suse.cz>
17506
17507 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17508 variants are pointer equivalent.
17509
17510 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17511
17512 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17513 * config/aarch64/aarch64-sve2.md: New file.
17514 (<u>avg<mode>3_floor): New pattern.
17515 (<u>avg<mode>3_ceil): Likewise.
17516 (*<sur>h<addsub><mode>): Likewise.
17517 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17518 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17519
17520 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17521
17522 PR bootstrap/90543
17523 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17524 for var_opt_string printing. In cl_optimization_print_diff, print
17525 (null) instead of invoking undefined behavior if one of the
17526 var_opt_string pointers is NULL and use && instead of first || in the
17527 guarding condition. For var_target_other options, handle const char *
17528 target variables similarly to const char * optimize node variables.
17529
17530 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17531
17532 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17533 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17534 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17535 Add autib1716 and pacib1716 initialisation.
17536 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17537 for autib1716 and pacib1716.
17538 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17539 aarch64_post_cfi_startproc): Define.
17540 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17541 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17542 aarch64_handle_pac_ret_protection): Set default sign key to A.
17543 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17544 aarch64_expand_prologue): Add check for b-key.
17545 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17546 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17547 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17548 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17549 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17550 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17551 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17552 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17553 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17554 pauth_hint_num_a with pauth_hint_num.
17555 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17556 pauth_hint_num_a with pauth_hint_num.
17557 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17558 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17559 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17560 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17561 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17562 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17563 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17564 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17565 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17566 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17567 UNSPEC_AUTIA1716 respectively.
17568 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17569 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17570 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17571 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17572 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17573 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17574
17575 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17576
17577 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17578 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17579 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17580 explicit clause on combined parallel into implicit shared clause.
17581 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17582 and firstprivate if the decl has one too from combined parallel to
17583 the worksharing construct.
17584
17585 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17586 Michael Meissner <meissner@linux.ibm.com>
17587
17588 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17589
17590 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17591
17592 * rtl.h (LABEL_REF_P): New #define.
17593
17594 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17595
17596 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17597
17598 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17599
17600 * internal-fn.c: Marked mask_load_direct as vectorizable.
17601 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17602 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17603 combined even if masks different with allow_slp_p param.
17604 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17605 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17606 dissolve SLP-only vectorizable groups when SLP has been discarded.
17607 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17608 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17609 masks.
17610 (vect_build_slp_tree_1): Fixed comment typo.
17611 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17612 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17613 loads for SLP only.
17614 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17615 vectorizable.
17616 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17617
17618 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17619
17620 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17621 Remove obsolete use_thunk reference.
17622 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17623 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17624 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17625 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17626 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17627 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17628 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17629 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17630 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17631
17632 2019-05-28 Nathan Sidwell <nathan@acm.org>
17633
17634 * tree.h (IDENTIFIER_ANON_P): New.
17635 (anon_aggrname_format, anon_aggname_p): Don't declare.
17636 (make_anon_name): Declare.
17637 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17638 (hash_tree): Likewise.
17639 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17640 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17641 (anon_cnt, make_anon_name): New.
17642
17643 2019-05-28 Martin Liska <mliska@suse.cz>
17644
17645 PR other/90315
17646 * opts-global.c (decode_options): Print help for all
17647 help_option_arguments.
17648 * opts.c (print_help): Add new argument.
17649 (common_handle_option): Remember all values into
17650 help_option_arguments.
17651 * opts.h (print_help): Add new argument.
17652
17653 2019-05-28 Martin Liska <mliska@suse.cz>
17654
17655 PR ipa/90555
17656 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17657 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17658 (func_checker::compare_bb): Call compare_loops.
17659
17660 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17661
17662 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17663 on sections construct.
17664 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17665 construct.
17666 (lower_omp_sections): Handle lastprivate conditional.
17667 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17668 lastprivate_conditional_map.
17669 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17670
17671 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17672 critical, taskgroup and section regions when looking for a region
17673 with non-NULL lastprivate_conditional_map.
17674
17675 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17676
17677 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17678 (*ix86_gen_sub3): Ditto.
17679 (*ix86_gen_sub3_carry): Ditto.
17680 (*ix86_gen_one_cmpl2): Ditto.
17681 (*ix86_gen_andsp): Ditto.
17682 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17683 (gen_and2_insn): New static function.
17684 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17685 Use gen_add3_insn instead of ix86_gen_add3.
17686 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17687 instead of ix86_gen_add3.
17688 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17689 Use gen_sub3_insn instead of ix86_gen_sub3.
17690 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17691 instead of ix86_gen_add3.
17692 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17693 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17694 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17695 * config/i386/i386-options.c (ix86_option_override_internal):
17696 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17697 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17698
17699 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17700
17701 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17702 and DW_OP_GNU_const_index opcodes.
17703
17704 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17705
17706 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17707
17708 2019-05-27 Richard Biener <rguenther@suse.de>
17709
17710 PR tree-optimization/90637
17711 * tree-ssa-sink.c (statement_sink_location): Honor the
17712 computed sink location for single-uses.
17713
17714 2019-05-27 Richard Biener <rguenther@suse.de>
17715
17716 PR middle-end/90610
17717 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17718 a bit-insert.
17719
17720 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17721
17722 * config/i386/i386.md (@sub<mode>3_carry): Rename
17723 from sub<mode>3_carry.
17724 (@leave_<mode>): New expander.
17725 (*leave): Rename from leave.
17726 (*leave_rex64): Rename from leave_rex64.
17727 (@monitorx_<mode>): Rename from monitorx_<mode>.
17728 (@clzero_<mode>): Rename from clzero_<mode>.
17729 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17730 from sse3_monitor_<mode>.
17731 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17732 (*ix86_gen_leave): Ditto.
17733 (*ix86_gen_monitor): Ditto.
17734 (*ix86_gen_monitorx): Ditto.
17735 (*ix86_gen_clzero): Ditto.
17736 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17737 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17738 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17739 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17740 Use gen_sse3_monitor instead of ix86_gen_monitor.
17741 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17742 instead of ix86_gen_monitorx.
17743 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17744 instead of ix86_gen_clzero.
17745 * config/i386/i386-options.c (ix86_option_override_internal):
17746 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17747 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17748
17749 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17750
17751 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17752 Rename from tls_global_dynamic_64_<mode>.
17753 (@tls_local_dynamic_base_64_<mode>): Rename from
17754 tls_local_dynamic_base_64_<mode>.
17755 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17756 Remove indirect function.
17757 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17758 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17759 instead of ix86_gen_tls_global_dynamic_64.
17760 Use gen_tls_local_dynamic_base_64 instead of
17761 ix86_gen_tls_local_dynamic_base_64.
17762 * config/i386/i386-options.c (ix86_option_override_internal):
17763 Do not initialize ix86_gen_tls_global_dynamic_64 and
17764 ix86_gen_tls_local_dynamic_base_64.
17765
17766 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17767
17768 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17769 Rename from pro_epilogue_adjust_stack_<mode>_add.
17770 (@pro_epilogue_adjust_stack_sub_<mode>)
17771 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17772 (@allocate_stack_worker_probe_<mode>):
17773 Rename from allocate_stack_worker_probe_<mode>.
17774 (allocate_stack): Use gen_allocate_stack_worker_probe.
17775 (probe_stack): Use gen_probe_stack_1.
17776 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17777 (@adjust_stack_and_probe_<mode>): Rename from
17778 adjust_stack_and_probe<mode>.
17779 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17780 (stack_protect_set): Use gen_stack_protect_set_1.
17781 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17782 (stack_protect_test): Use gen_stack_protect_test_1.
17783 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17784 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17785 Remove indirect function.
17786 (*ix86_gen_adjust_stack_and_probe): Ditto.
17787 (*ix86_gen_probe_stack_range): Ditto.
17788 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17789 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17790 (ix86_adjust_stack_and_probe_stack_clash): Use
17791 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17792 (ix86_adjust_stack_and_probe): Ditto.
17793 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17794 of ix86_gen_probe_stack_range.
17795 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17796 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17797 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17798 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17799 CODE_FOR_stack_protect_test_{si,di}.
17800 * config/i386/i386-options.c (ix86_option_override_internal):
17801 Do not initialize ix86_gen_allocate_stack_worker,
17802 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17803
17804 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17805
17806 * doc/invoke.texi (Link Options): Many editorial changes around
17807 -flinker-output.
17808
17809 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17810
17811 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17812 pre-Solaris 11 referene and most Studio compiler details.
17813
17814 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17815
17816 PR target/90530
17817 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17818 DImode to SImode in floating-point registers on 64-bit target.
17819 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17820 register_operand in xmpyu patterns.
17821
17822 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17823
17824 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17825 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17826 OMP_CLAUSE__REDUCTEMP_.
17827 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17828 OMP_CLAUSE__CONDTEMP_.
17829 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17830 * tree-pretty-print.c (dump_omp_clause): Likewise.
17831 * tree-nested.c (convert_nonlocal_omp_clauses,
17832 convert_local_omp_clauses): Likewise.
17833 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17834 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17835 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17836 on OMP_FOR.
17837 (gimplify_omp_for): Warn and disable conditional modifier from
17838 lastprivate on loop iterators.
17839 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17840 member.
17841 * omp-general.c (omp_extract_for_data): Initialize it.
17842 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17843 member.
17844 (delete_omp_context): Delete it.
17845 (lower_lastprivate_conditional_clauses): New function.
17846 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17847 handle lastprivate conditional clauses.
17848 (lower_reduction_clauses): Add CLIST argument, emit it into
17849 the critical section if any.
17850 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17851 lower_reduction_clauses callers.
17852 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17853 to lower_lastprivate_clauses.
17854 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17855 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17856 clist into a critical section if not emitted there already by
17857 lower_reduction_clauses.
17858 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17859 callers.
17860 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17861 conditional variables.
17862 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17863 clause is present.
17864 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17865 expand_omp_for_static_chunk): Handle lastprivate conditional.
17866 (expand_omp_for): Handle fd.lastprivate_conditional like
17867 fd.have_reductemp.
17868
17869 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17870
17871 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17872 kernel does not exit cleanly.
17873 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17874
17875 2019-05-24 Jason Merrill <jason@redhat.com>
17876
17877 Revert:
17878 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17879
17880 2019-05-24 Richard Biener <rguenther@suse.de>
17881
17882 PR testsuite/90607
17883 * tree-loop-distribution.c (struct partition): Add location
17884 member.
17885 (partition_alloc): Initialize all fields.
17886 (generate_memset_builtin): Use the location recorded in the
17887 partition for the generated call.
17888 (generate_memcpy_builtin): Likewise.
17889 (classify_partition): Record the location of a single store
17890 as location for the partition.
17891
17892 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17893
17894 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17895 for lo-part.
17896
17897 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17898
17899 PR target/90588
17900 * common/config/aarch64/aarch64-common.c
17901 (aarch64_rewrite_selected_cpu): Change local temporary variable
17902 type from unsigned long to uint64_t.
17903 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17904 aarch64_get_extension_string_for_isa_flags): Change declaration to
17905 match new definition by replacing unsigned long with uint64_t.
17906
17907 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17908
17909 PR target/90568
17910 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17911 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17912 Handle stack_protect_test_<mode> codegen similarly to corresponding
17913 sub instruction.
17914
17915 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17916
17917 * config/i386/darwin.h: Reject -mfentry*.
17918 * doc/sourcebuild.texi: Document mfentry target support.
17919
17920 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17921
17922 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17923 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17924 false for PC-relative functions.
17925 (rs6000_output_function_prologue): Change called function name to
17926 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17927 name,1" for PC-relative functions.
17928 (rs6000_elf_declare_function_name): Change called function name to
17929 rs6000_global_entry_point_prologue_needed_p.
17930
17931 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17932
17933 PR target/90552
17934 * config/i386/i386.c (gen_rtx_cost):
17935 Use ix86_tune_cost instead of ix86_cost.
17936
17937 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17938 Michael Meissner <meissner@linux.ibm.com>
17939 Segher Boessenkool <segher@kernel.crashing.org>
17940
17941 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17942 OPTION_MASK_PCREL.
17943 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17944 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17945 (rs6000_fndecl_pcrel_p): Likewise.
17946 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17947 error if -mpcrel is requested without -mcpu=future.
17948 (rs6000_opt_masks): Add entry for pcrel.
17949 (rs6000_fndecl_pcrel_p): New function.
17950 (rs6000_pcrel_p): Likewise.
17951 * config/rs6000/rs6000.opt (mpcrel): New option.
17952 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17953
17954 2019-05-23 Jan Hubicka <jh@suse.cz>
17955 Martin Liska <mliska@suse.cz>
17956
17957 PR tree-optimization/90576
17958 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17959 poly_int_tree_p.
17960 (aliasing_component_refs_p): Fix three way size compare conditional;
17961 give up earlier in case we can not decide on equivalence.
17962
17963 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17964 Michael Meissner <meissner@linux.ibm.com>
17965 Segher Boessenkool <segher@kernel.crashing.org>
17966
17967 * config.gcc: Add future cpu.
17968 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17969 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17970 #define.
17971 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17972 (RS6000_CPU): New instantiation for future cpu.
17973 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17974 PROCESSOR_FUTURE.
17975 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17976 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17977 * config/rs6000/rs6000-tables.opt: Regenerate.
17978 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17979 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17980 (rs6000_machine_from_flags): Handle future cpu.
17981 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17982 PROCESSOR_POWER9 for now.
17983 (rs6000_adjust_cost): Likewise.
17984 (rs6000_issue_rate): Likewise.
17985 (rs6000_register_move_cost): Likewise.
17986 (rs6000_opt_masks): Add entry for future.
17987 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17988 (MASK_FUTURE): New #define.
17989 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17990 * config/rs6000/rs6000.opt (mfuture): New target option.
17991 * doc/invoke.texi (mcpu): Add future cpu.
17992
17993 2019-05-23 Martin Liska <mliska@suse.cz>
17994
17995 PR c++/90587
17996 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17997 operation points to a temporary (pointed via tree_to_wide_ref)
17998 that is out of scope after the &.
17999
18000 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
18001
18002 PR c++/90592
18003 * doc/extend.texi (Function Names): Add missing word.
18004
18005 2019-05-23 Richard Biener <rguenther@suse.de>
18006
18007 PR tree-optimization/88440
18008 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
18009 at -O[2s]+.
18010 * tree-loop-distribution.c (generate_memset_builtin): Fold the
18011 generated call.
18012 (generate_memcpy_builtin): Likewise.
18013 (distribute_loop): Pass in whether to only distribute patterns.
18014 (prepare_perfect_loop_nest): Also allow size optimization.
18015 (pass_loop_distribution::execute): When optimizing a loop
18016 nest for size allow pattern replacement.
18017
18018 2019-05-23 Jakub Jelinek <jakub@redhat.com>
18019
18020 PR target/90568
18021 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
18022 of xor.
18023
18024 2019-05-23 Martin Liska <mliska@suse.cz>
18025
18026 PR sanitizer/90570
18027 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
18028 expression similarly to gimplify_decl_expr.
18029
18030 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18031
18032 * cse.c (cse_dump_path): s/dump_file/f.
18033
18034 2019-05-22 David Malcolm <dmalcolm@redhat.com>
18035
18036 PR c++/90462
18037 * diagnostic-format-json.cc: Include "selftest.h".
18038 (json_from_expanded_location): Only add "file" key for non-NULL
18039 file strings.
18040 (json_from_location_range): Don't add "start" and "finish"
18041 children if they are UNKNOWN_LOCATION.
18042 (selftest::test_unknown_location): New selftest.
18043 (selftest::test_bad_endpoints): New selftest.
18044 (selftest::diagnostic_format_json_cc_tests): New function.
18045 * json.cc (json::object::get): New function.
18046 (selftest::test_object_get): New selftest.
18047 (selftest::json_cc_tests): Call it.
18048 * json.h (json::object::get): New decl.
18049 * selftest-run-tests.c (selftest::run_tests): Call
18050 selftest::diagnostic_format_json_cc_tests.
18051 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
18052 decl.
18053
18054 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
18055 Andrew Stubbs <amd@codesourcery.com>
18056
18057 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
18058 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
18059 (kernel): Rename to...
18060 (main_kernel): ... this.
18061 (load_image): Load _init_array and _fini_array kernels.
18062 (run): Add argument for kernel to run.
18063 (main): Run init_array_kernel before main_kernel, and
18064 fini_array_kernel after.
18065 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
18066 amdgpu_hsa_kernel attribute on functions.
18067 (gcn_disable_constructors): Delete.
18068 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
18069 * config/gcn/crt0.c (size_t): Define.
18070 (_init_array, _fini_array): New.
18071 (__preinit_array_start, __preinit_array_end,
18072 __init_array_start, __init_array_end,
18073 __fini_array_start, __fini_array_end): Declare weak references.
18074
18075 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
18076
18077 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
18078
18079 2019-05-22 Jason Merrill <jason@redhat.com>
18080
18081 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18082
18083 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
18084
18085 PR target/88483
18086 * config/i386/i386-options.c (ix86_init_machine_status): Set
18087 stack_frame_required to true.
18088 * config/i386/i386.c (ix86_get_frame_size): New function.
18089 (ix86_frame_pointer_required): Replace get_frame_size with
18090 ix86_get_frame_size.
18091 (ix86_compute_frame_layout): Likewise.
18092 (ix86_find_max_used_stack_alignment): Changed to void. Set
18093 stack_frame_required.
18094 (ix86_finalize_stack_frame_flags): Always call
18095 ix86_find_max_used_stack_alignment. Replace get_frame_size with
18096 ix86_get_frame_size.
18097 * config/i386/i386.h (machine_function): Add stack_frame_required.
18098
18099 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
18100
18101 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
18102
18103 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
18104
18105 * common/config/aarch64/aarch64-common.c
18106 (struct aarch64_option_extension, struct processor_name_to_arch,
18107 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
18108 aarch64_contains_opt,
18109 aarch64_get_extension_string_for_isa_flags): Change type of
18110 variables storing flags to uint64_t.
18111 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
18112 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
18113 * config/aarch64/aarch64.c (struct processor,
18114 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
18115 aarch64_validate_march, aarch64_override_options,
18116 aarch64_option_print, aarch64_handle_attr_isa_flags,
18117 aarch64_declare_function_name, aarch64_start_file): Make flag
18118 variables uint64_t.
18119 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
18120 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
18121 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
18122 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
18123 * config/aarch64/driver-aarch64.c
18124 (struct aarch64_arch_extension, struct aarch64_core_data,
18125 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
18126 flag variables uint64_t.
18127 * doc/invoke.texi: Add documentation for new arguments.
18128
18129 2019-05-22 Richard Biener <rguenther@suse.de>
18130
18131 * alias.c (ao_ref_from_mem): Move stack-slot sharing
18132 rewrite ...
18133 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
18134
18135 2019-05-22 Martin Liska <mliska@suse.cz>
18136
18137 PR lto/90500
18138 * doc/extend.texi: Document the change.
18139
18140 2019-05-22 Richard Biener <rguenther@suse.de>
18141
18142 PR tree-optimization/90450
18143 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
18144 (mem_ref_hasher::equal): Check it.
18145 (mem_ref_alloc): Initialize it.
18146 (gather_mem_refs_stmt): Set it.
18147
18148 2019-05-22 Richard Biener <rguenther@suse.de>
18149
18150 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18151 Add ABS_EXPR.
18152 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18153 as ABSU_EXPR.
18154
18155 2019-05-22 Alan Modra <amodra@gmail.com>
18156
18157 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18158 (ASM_CPU_SPEC): Conditionally add -many.
18159 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18160 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18161 (rs6000_file_start): ..extracted from here, and modified to
18162 test all ISA bits.
18163 (rs6000_output_function_prologue): Emit .machine as necessary.
18164
18165 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18166
18167 PR middle-end/90553
18168 * ira-lives.c (process_bb_node_lives): Consider defs
18169 for a call insn to be die before the call, not after.
18170
18171 * function.c (assign_parm_setup_block): Raise alignment of
18172 stacked parameter only for STRICT_ALIGNMENT targets.
18173
18174 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18175
18176 * config/rs6000/constraints.md (define_register_constraint "wz"):
18177 Delete.
18178 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18179 RS6000_CONSTRAINT_wz.
18180 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18181 (rs6000_init_hard_regno_mode_ok): Adjust.
18182 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18183 * doc/md.texi (Machine Constraints): Adjust.
18184
18185 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18186
18187 * config/rs6000/constraints.md (define_register_constraint "wl"):
18188 Delete.
18189 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18190 RS6000_CONSTRAINT_wl.
18191 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18192 (rs6000_init_hard_regno_mode_ok): Adjust.
18193 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18194 * doc/md.texi (Machine Constraints): Adjust.
18195
18196 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18197
18198 * config/rs6000/constraints.md (define_register_constraint "wm"):
18199 Delete.
18200 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18201 RS6000_CONSTRAINT_wm.
18202 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18203 (rs6000_init_hard_regno_mode_ok): Adjust.
18204 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18205 * doc/md.texi (Machine Constraints): Adjust.
18206
18207 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18208
18209 * config/rs6000/constraints.md (define_register_constraint "wk"):
18210 Delete.
18211 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18212 RS6000_CONSTRAINT_wk.
18213 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18214 (rs6000_init_hard_regno_mode_ok): Adjust.
18215 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18216 * doc/md.texi (Machine Constraints): Adjust.
18217
18218 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18219
18220 * config/rs6000/constraints.md (define_register_constraint "wj"):
18221 Delete.
18222 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18223 RS6000_CONSTRAINT_wj.
18224 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18225 (rs6000_init_hard_regno_mode_ok): Adjust.
18226 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18227 (VS_64dm): Delete.
18228 * config/rs6000/vsx.md: Ditto.
18229 * doc/md.texi (Machine Constraints): Adjust.
18230
18231 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18232
18233 * config/rs6000/constraints.md (define_register_constraint "wh"):
18234 Delete.
18235 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18236 RS6000_CONSTRAINT_wh.
18237 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18238 (rs6000_init_hard_regno_mode_ok): Adjust.
18239 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18240 * doc/md.texi (Machine Constraints): Adjust.
18241
18242 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18243
18244 PR target/90547
18245 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18246 Avoid calling gen_lowpart with CONST operand.
18247
18248 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18249
18250 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18251 field template_last_to_copy.
18252 (ssa_create_duplicates): Set it, and use it. Attempt to
18253 preserve more debug stmts.
18254
18255 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18256
18257 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18258 (signbit<mode>2): New expander
18259
18260 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18261
18262 PR bootstrap/87338
18263 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18264 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18265
18266 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18267
18268 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18269 %ebx and %ecx bafore calling cpuid with leaf 1 or
18270 non-constant leaf argument.
18271
18272 2019-05-21 Alan Modra <amodra@gmail.com>
18273
18274 PR target/90545
18275 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18276 power9 direct move cost.
18277
18278 2019-05-21 Richard Biener <rguenther@suse.de>
18279
18280 PR middle-end/90510
18281 * fold-const.c (fold_read_from_vector): New function.
18282 * fold-const.h (fold_read_from_vector): Declare.
18283 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18284 single-element insert permutations. Canonicalize selector
18285 further and fix issue with last commit.
18286
18287 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18288
18289 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18290 parameter with default value false to declaration.
18291 (split_edges_for_insertion): New inline function. Wrapper for
18292 split_critical_edges with for_edge_insertion_p = true.
18293 * tree-cfg.c (split_critical_edges): Don't split non-critical
18294 edges if for_edge_insertion_p is false. Fix whitespace.
18295 * tree-ssa-pre.c (pass_pre::execute): Call
18296 split_edges_for_insertion instead of split_critical_edges.
18297 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18298 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18299 (pass_data_sink_code): Update function name in the comment.
18300
18301 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18302
18303 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18304 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18305 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18306 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18307 positives.
18308
18309 2019-05-21 Martin Liska <mliska@suse.cz>
18310
18311 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18312 an extra newline.
18313 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18314 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18315 vec_lvsr.
18316 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18317 Quote a C type.
18318 (rs6000_function_arg): Likewise.
18319 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18320 (rs6000_expand_ternop_builtin): Use interval syntax.
18321 (get_element_number): Likewise.
18322 (altivec_expand_builtin): Likewise.
18323 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18324
18325 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18326
18327 PR c++/59813
18328 PR target/90418
18329 * function.h (struct function): Add calls_eh_return member.
18330 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18331 gimplifying __builtin_eh_return call.
18332 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18333 to cfun.
18334 (expand_call_inline): Or in src_cfun->calls_eh_return into
18335 dst_cfun->calls_eh_return.
18336 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18337 cfun->calls_eh_return.
18338 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18339 * lto-streamer-out.c (output_struct_function_base): Write
18340 calls_eh_return.
18341
18342 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18343
18344 PR rtl-optimization/43147
18345 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18346 IX86_BUILTIN_SHUFPD.
18347
18348 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18349
18350 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18351 (refs_may_alias_p_1): ... here; update stats.
18352 (refs_may_alias_p): Do not update stats here.
18353
18354 2019-05-20 Richard Biener <rguenther@suse.de>
18355
18356 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18357 doesn't produce pointers.
18358 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18359 the first operand points to.
18360
18361 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18362
18363 * tree-ssa-alias.c (compare_sizes): New function.
18364 (sompare_type_sizes): New function
18365 (aliasing_component_refs_p): Use it.
18366 (indirect_ref_may_alias_decl_p): Likewise.
18367
18368 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18369
18370 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18371
18372 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18373
18374 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18375 (LIBLSAN_EARLY_SPEC): Likewise.
18376 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18377
18378 2019-05-20 Martin Liska <mliska@suse.cz>
18379
18380 * config/i386/i386.c (ix86_libc_has_fast_function):
18381 Add ATTRIBUTE_UNUSED for the argument.
18382
18383 2019-05-20 Richard Biener <rguenther@suse.de>
18384
18385 * gimple-match-head.c: Include vec-perm-indices.h.
18386 * generic-match-head.c: Likewise.
18387 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18388 is included.
18389 * fold-const.c (fold_vec_perm): Export.
18390 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18391 (match.pd): ...here.
18392
18393 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18394
18395 * cfgloop.h (struct loop): Add simdlen member.
18396 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18397 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18398 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18399 as new argument to autovectorize_vector_sizes target hook. If
18400 loop->simdlen, pick up vector size where the vectorization factor
18401 is equal to loop->simd, and if there is none, fall back to the first
18402 successful one.
18403 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18404 caller.
18405 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18406 * omp-general.c (omp_max_vf): Likewise.
18407 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18408 * tree-vect-slp.c (vect_slp_bb): Likewise.
18409 * target.def (autovectorize_vector_sizes): Add ALL argument and
18410 document it.
18411 * doc/tm.texi: Adjust documentation.
18412 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18413 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18414 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18415 bool argument.
18416 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18417 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18418 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18419 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18420 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18421 preferred vector size is not 512-bit or 256-bit, just put those
18422 unpreferred ones last.
18423
18424 2019-05-20 Martin Liska <mliska@suse.cz>
18425
18426 * targhooks.c (default_libc_has_fast_function): New function.
18427 * targhooks.h (default_libc_has_fast_function): Likewise.
18428
18429 2019-05-20 Martin Liska <mliska@suse.cz>
18430
18431 PR middle-end/90263
18432 * builtins.c (expand_builtin_memory_copy_args): When having a
18433 target with fast mempcpy implementation do now use memcpy.
18434 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18435 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18436 * doc/tm.texi: Likewise.
18437 * doc/tm.texi.in: Likewise.
18438 * target.def:
18439 * expr.c (emit_block_move_hints): Add 2 new arguments.
18440 * expr.h (emit_block_move_hints): Bail out when libcall
18441 to memcpy would be used.
18442
18443 2019-05-20 Martin Liska <mliska@suse.cz>
18444
18445 * profile-count.c: Add vertical spacing in order
18446 to separate functions.
18447 * profile-count.h: Likewise.
18448
18449 2019-05-20 Martin Liska <mliska@suse.cz>
18450
18451 * profile-count.h: Do not use full qualified
18452 names if possible.
18453 * profile-count.c (profile_count::to_frequency): Likewise.
18454
18455 2019-05-20 Martin Liska <mliska@suse.cz>
18456
18457 * profile-count.h (enum profile_quality): Use capital letters
18458 for enum value names. Use the adjusted names.
18459 * profile-count.c: Use the adjusted names.
18460
18461 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18462
18463 * config/rs6000/constraints.md (define_register_constraint "wH"):
18464 Delete.
18465 (define_register_constraint "wI"): Delete.
18466 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18467 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18468 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18469 (rs6000_init_hard_regno_mode_ok): Adjust.
18470 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18471 resp. "d", or with "wa" as appropriate, all with "p8v".
18472 * config/rs6000/vsx.md: Ditto.
18473 * doc/md.texi (Machine Constraints): Adjust.
18474
18475 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18476
18477 * config/rs6000/constraints.md (define_register_constraint "wy"):
18478 Delete.
18479 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18480 RS6000_CONSTRAINT_wy.
18481 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18482 (rs6000_init_hard_regno_mode_ok): Adjust.
18483 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18484 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18485 (define_mode_attr Fisa): New.
18486 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18487 * doc/md.texi (Machine Constraints): Adjust.
18488
18489 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18490
18491 * config/rs6000/constraints.md (define_register_constraint "wu"):
18492 Delete.
18493 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18494 RS6000_CONSTRAINT_wu.
18495 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18496 (rs6000_init_hard_regno_mode_ok): Adjust.
18497 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18498 both with "p8v".
18499 (define_mode_attr Fa): Delete.
18500 * config/rs6000/vsx.md: Ditto.
18501 * doc/md.texi (Machine Constraints): Adjust.
18502
18503 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18504
18505 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18506 Delete.
18507 (define_register_constraint "wK"): Delete.
18508 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18509 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18510 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18511 (rs6000_init_hard_regno_mode_ok): Adjust.
18512 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18513 Replace "wK" constraint by "wH" with "p9v".
18514 * config/rs6000/vsx.md: Ditto.
18515 * doc/md.texi (Machine Constraints): Adjust.
18516
18517 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18518
18519 * config/rs6000/constraints.md (define_register_constraint "wb"):
18520 Delete.
18521 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18522 RS6000_CONSTRAINT_wb.
18523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18524 (rs6000_init_hard_regno_mode_ok): Adjust.
18525 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18526 * config/rs6000/vsx.md: Ditto.
18527 * doc/md.texi (Machine Constraints): Adjust.
18528
18529 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18530
18531 * config/rs6000/constraints.md (define_register_constraint "wo"):
18532 Delete.
18533 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18534 RS6000_CONSTRAINT_wo.
18535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18536 (rs6000_init_hard_regno_mode_ok): Adjust.
18537 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18538 * config/rs6000/altivec.md: Ditto.
18539 * doc/md.texi (Machine Constraints): Adjust.
18540
18541 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18542
18543 * config/darwin-c.c (darwin_register_objc_includes): Do not
18544 prepend the sysroot when building gnu-runtime header search
18545 paths.
18546
18547 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18548
18549 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18550 instead of direct output of the asm.
18551
18552 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18553
18554 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18555 argument to be type bool (was int before).
18556 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18557 at first use. Use type bool for some variables. Fix a theoretical
18558 eh_return bug for svr4.
18559
18560 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18561
18562 * config/rs6000/rs6000.md (isa): New attribute.
18563 (enabled): New attribute.
18564
18565 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18566
18567 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18568 assemble_start_function and assemble_end_function.
18569
18570 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18571
18572 PR middle-end/89433
18573 * omp-general.c (oacc_verify_routine_clauses): Change formal
18574 parameters. Add checking if already marked with an OpenACC
18575 'routine' directive. Adjust all users.
18576
18577 PR middle-end/89433
18578 * omp-general.c (oacc_build_routine_dims): Move some of its
18579 processing into...
18580 (oacc_verify_routine_clauses): ... this new function.
18581 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18582
18583 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18584
18585 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18586 formating of picbase labels to match other ports.
18587
18588 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18589
18590 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18591 in the generated code.
18592
18593 2019-05-16 Martin Sebor <msebor@redhat.com>
18594
18595 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18596 identifiers, keywords, operators, and types in diagnostics. Correct
18597 quoting, spelling, and sentence capitalization issues.
18598 (expand_builtin_atomic_is_lock_free): Same.
18599 (fold_builtin_next_arg): Same.
18600 * cfgexpand.c (expand_one_var): Same.
18601 (tree_conflicts_with_clobbers_p): Same.
18602 (expand_asm_stmt): Same.
18603 (verify_loop_structure): Same.
18604 * cgraphunit.c (process_function_and_variable_attributes): Same.
18605 * collect-utils.c (collect_execute): Same.
18606 * collect2.c (maybe_run_lto_and_relink): Same.
18607 (is_lto_object_file): Same.
18608 (scan_prog_file): Same.
18609 * convert.c (convert_to_real_1): Same.
18610 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18611 * except.c (verify_eh_tree): Same.
18612 * gcc.c (execute): Same.
18613 (eval_spec_function): Same.
18614 (run_attempt): Same.
18615 (driver::set_up_specs): Same.
18616 (compare_debug_auxbase_opt_spec_function): Same.
18617 * gcov-tool.c (unlink_gcda_file): Same.
18618 (do_merge): Same.
18619 (do_rewrite): Same.
18620 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18621 * gimplify.c (gimplify_asm_expr): Same.
18622 (gimplify_adjust_omp_clauses): Same.
18623 * hsa-gen.c (gen_hsa_addr_insns): Same.
18624 (gen_hsa_insns_for_load): Same.
18625 (gen_hsa_cmp_insn_from_gimple): Same.
18626 (gen_hsa_insns_for_operation_assignment): Same.
18627 (gen_get_level): Same.
18628 (gen_hsa_alloca): Same.
18629 (omp_simple_builtin::generate): Same.
18630 (gen_hsa_atomic_for_builtin): Same.
18631 (gen_hsa_insns_for_call): Same.
18632 * input.c (dump_location_info): Same.
18633 * ipa-devirt.c (compare_virtual_tables): Same.
18634 * ira.c (ira_setup_eliminable_regset): Same.
18635 * lra-assigns.c (lra_assign): Same.
18636 * lra-constraints.c (lra_constraints): Same.
18637 * lto-streamer-in.c (lto_input_mode_table): Same.
18638 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18639 (merge_and_complain): Same.
18640 (compile_offload_image): Same.
18641 (compile_images_for_offload_targets): Same.
18642 (debug_objcopy): Same.
18643 (run_gcc): Same.
18644 (main): Same.
18645 * opts.c (print_specific_help): Same.
18646 (parse_no_sanitize_attribute): Same.
18647 (print_help): Same.
18648 (handle_param): Same.
18649 * plugin.c (add_new_plugin): Same.
18650 (parse_plugin_arg_opt): Same.
18651 (try_init_one_plugin): Same.
18652 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18653 operators, and types in diagnostics. Correct quoting and spelling
18654 issues.
18655 * read-rtl-function.c (parse_edge_flag_token): Same.
18656 (function_reader::parse_enum_value): Same.
18657 * reg-stack.c (check_asm_stack_operands): Same.
18658 * regcprop.c (validate_value_data): Same.
18659 * sched-rgn.c (make_pass_sched_fusion): Same.
18660 * stmt.c (check_unique_operand_names): Same.
18661 * targhooks.c (default_target_option_pragma_parse): Same.
18662 * tlink.c (recompile_files): Same.
18663 * toplev.c (process_options): Same.
18664 (do_compile): Same.
18665 * trans-mem.c (diagnose_tm_1): Same.
18666 (ipa_tm_scan_irr_block): Same.
18667 (ipa_tm_diagnose_transaction): Same.
18668 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18669 format a tree code name in a diagnostic.
18670 (verify_types_in_gimple_min_lval): Same.
18671 (verify_types_in_gimple_reference): Same.
18672 (verify_gimple_call): Same.
18673 (verify_gimple_assign_unary): Same.
18674 (verify_gimple_assign_binary): Same.
18675 (verify_gimple_assign_ternary): Same.
18676 (verify_gimple_assign_single): Same.
18677 (verify_gimple_switch): Same.
18678 (verify_gimple_label): Same.
18679 (verify_gimple_phi): Same.
18680 (verify_gimple_in_seq): Same.
18681 (verify_eh_throw_stmt_node): Same.
18682 (collect_subblocks): Same.
18683 (gimple_verify_flow_info): Same.
18684 (do_warn_unused_result): Same.
18685 * tree-inline.c (expand_call_inline): Same.
18686 * tree-into-ssa.c (update_ssa): Same.
18687 * tree.c (tree_int_cst_elt_check_failed): Same.
18688 (tree_vec_elt_check_failed): Same.
18689 (omp_clause_operand_check_failed): Same.
18690 (verify_type_variant): Same.
18691 (verify_type): Same.
18692 * value-prof.c (verify_histograms): Same.
18693 * varasm.c (assemble_start_function): Same.
18694
18695 2019-05-16 Martin Sebor <msebor@redhat.com>
18696
18697 * config/i386/i386-expand.c (get_element_number): Quote keywords
18698 and other internal names in diagnostics. Adjust other diagnostic
18699 formatting issues noted by -Wformat-diag.
18700 * config/i386/i386-features.c
18701 (ix86_mangle_function_version_assembler_name): Same.
18702 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18703 * config/i386/i386.c (ix86_function_type_abi): Same.
18704 (ix86_function_ms_hook_prologue): Same.
18705 (classify_argument): Same.
18706 (ix86_expand_prologue): Same.
18707 (ix86_md_asm_adjust): Same.
18708 (ix86_memmodel_check): Same.
18709
18710 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18711
18712 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18713 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18714 and fpxx modes.
18715
18716 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18717
18718 PR target/90497
18719 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18720 intrinsics without SSE/SSE2/SSSE3.
18721 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18722 check.
18723 (*mmx_uavgv8qi3): Likewise.
18724
18725 2019-05-17 Richard Biener <rguenther@suse.de>
18726
18727 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18728 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18729
18730 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18731
18732 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18733 vec_sldw insn pattern.
18734
18735 2019-05-17 Richard Biener <rguenther@suse.de>
18736
18737 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18738
18739 2019-05-17 Martin Liska <mliska@suse.cz>
18740
18741 PR driver/90496
18742 * toplev.c (output_stack_usage): With LTO and sanitizer it
18743 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18744 has no file location.
18745
18746 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18747
18748 PR c++/90484
18749 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18750 sz0 is equal to sz1, instead return false in that case.
18751
18752 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18753 has non-constant expression, force sctx.lane and use two
18754 argument IFN_GOMP_SIMD_LANE instead of single argument.
18755 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18756 two argument IFN_GOMP_SIMD_LANE without lhs.
18757 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18758 member.
18759 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18760 Define.
18761 (LOOP_REQUIRES_VERSIONING): Or in
18762 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18763 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18764 simd_if_cond.
18765 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18766 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18767 from simd if clause if needed.
18768
18769 2019-05-16 Richard Biener <rguenther@suse.de>
18770
18771 * tree-affine.c (expr_to_aff_combination): New function split
18772 out from...
18773 (tree_to_aff_combination): ... here.
18774 (aff_combination_expand): Avoid building a GENERIC tree.
18775
18776 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18777
18778 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18779 assemble_start_function and assemble_end_function calls.
18780 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18781 assemble_start_function and assemble_end_function.
18782 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18783 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18784 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18785 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18786 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18787 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18788 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18789 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18790 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18791 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18792 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18793 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18794 Likewise.
18795 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18796 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18797 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18798 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18799 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18800 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18801 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18802 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18803 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18804 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18805 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18806 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18807 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18808 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18809 Likewise.
18810 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18811 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18812 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18813
18814 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18815
18816 * tree-ssa-alias.c (alias_stats): Add
18817 aliasing_component_refs_p_may_alias and
18818 aliasing_component_refs_p_no_alias.
18819 (dump_alias_stats): Print aliasing_component_refs_p stats.
18820 (aliasing_component_refs_p): Update stats.
18821
18822 2019-05-16 Martin Liska <mliska@suse.cz>
18823
18824 PR lto/90500
18825 * multiple_target.c (expand_target_clones): Do not allow
18826 target_clones being used with a symbol that is an alias.
18827
18828 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18829
18830 PR tree-optimization/90394
18831 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18832 positives rather than ICE for cases where (code2 == NE_EXPR
18833 && code1 == BIT_AND_EXPR).
18834
18835 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18836
18837 PR fortran/90329
18838 * tree-core.h (struct tree_decl_common): Document
18839 decl_nonshareable_flag for PARM_DECLs.
18840 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18841 * calls.c (expand_call): Don't try tail call if caller
18842 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18843 passed on the stack and callee needs to pass any arguments on the
18844 stack.
18845 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18846 else if instead of series of mutually exclusive ifs. Handle
18847 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18848 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18849
18850 * lto-streamer.h (LTO_major_version): Bump to 9.
18851
18852 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18853
18854 PR tree-optimization/90106
18855 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18856 new parameter as new internal function call, also move it to new
18857 basic block.
18858 (use_internal_fn): Pass internal function call to
18859 shrink_wrap_one_built_in_call_with_conds.
18860
18861 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18862
18863 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18864 max_vf to 1.
18865 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18866 safelen_int and set loop->dont_vectorize.
18867
18868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18869
18870 PR target/89021
18871 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18872 SSE/SSE2/SSSE3.
18873 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18874 Likewise.
18875 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18876 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18877 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18878 is defined.
18879
18880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18881
18882 PR target/89021
18883 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18884 define_insn_and_split to support SSE emulation.
18885 (*vec_extractv2sf_0): Likewise.
18886 (*vec_extractv2sf_1): Likewise.
18887 (*vec_extractv2si_0): Likewise.
18888 (*vec_extractv2si_1): Likewise.
18889 (*vec_extractv2si_zext_mem): Likewise.
18890 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18891 (vec_extractv2sf_1 splitter): Likewise.
18892 (vec_extractv2sfsf): Likewise.
18893 (vec_setv2si): Likewise.
18894 (vec_extractv2si_1 splitter): Likewise.
18895 (vec_extractv2sisi): Likewise.
18896 (vec_setv4hi): Likewise.
18897 (vec_extractv4hihi): Likewise.
18898 (vec_setv8qi): Likewise.
18899 (vec_extractv8qiqi): Likewise.
18900 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18901 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18902 (vec_extractv2sisi): Likewise.
18903 (vec_extractv4hihi): Likewise.
18904 (vec_extractv8qiqi): Likewise.
18905 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18906 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18907 (vec_initv2sisi): Likewise.
18908 (vec_initv4hihi): Likewise.
18909 (vec_initv8qiqi): Likewise.
18910 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18911 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18912 (vec_setv4hi): Likewise.
18913 (vec_setv8qi): Likewise.
18914
18915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18916
18917 PR target/89021
18918 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18919 TARGET_MMX_WITH_SSE.
18920 (MMXMODE:*mov<mode>_internal): Likewise.
18921 (MMXMODE:movmisalign<mode>): Likewise.
18922
18923 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18924
18925 PR target/89021
18926 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18927 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18928 (sse2_cvtpd2pi): Ditto.
18929 (sse2_cvttpd2pi): Ditto.
18930 (*vec_concatv2sf_sse4_1): Ditto.
18931 (*vec_concatv2sf_sse): Ditto.
18932 (*vec_concatv2si_sse4_1): Ditto.
18933 (*vec_concatv2si): Ditto.
18934 (*vec_concatv4si_0): Ditto.
18935 (*vec_concatv2di_0): Ditto.
18936
18937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18938
18939 PR target/89021
18940 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18941
18942 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18943
18944 PR target/89021
18945 * config/i386/sse.md (ssse3_palignrdi): Changed to
18946 define_insn_and_split to support SSE emulation.
18947
18948 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18949
18950 PR target/89021
18951 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18952
18953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18954
18955 PR target/89021
18956 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18957 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18958 SSE emulation.
18959
18960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18961
18962 PR target/89021
18963 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18964 or TARGET_MMX_WITH_SSE.
18965 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18966
18967 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 PR target/89021
18970 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18971
18972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18973
18974 PR target/89021
18975 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18976 Changed to define_insn_and_split to support SSE emulation.
18977
18978 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18979
18980 PR target/89021
18981 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18982 Changed to define_insn_and_split to support SSE emulation.
18983
18984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18985
18986 PR target/89021
18987 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18988 (*mmx_<emms>): This.
18989 (mmx_<emms>): New expander.
18990
18991 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18992
18993 PR target/89021
18994 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18995 support.
18996 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18997
18998 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18999
19000 PR target/89021
19001 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
19002
19003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19004
19005 PR target/89021
19006 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
19007
19008 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19009
19010 PR target/89021
19011 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
19012 TARGET_MMX_WITH_SSE.
19013 (*mmx_uavgv4hi3): Add SSE emulation.
19014
19015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19016
19017 PR target/89021
19018 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
19019 and TARGET_MMX_WITH_SSE.
19020 (*mmx_uavgv8qi3): Add SSE emulation.
19021
19022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19023
19024 PR target/89021
19025 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
19026 maskmovdqu for __MMX_WITH_SSE__.
19027
19028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19029
19030 PR target/89021
19031 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
19032 TARGET_MMX and TARGET_MMX_WITH_SSE.
19033 (*mmx_umulv4hi3_highpart): Add SSE emulation.
19034
19035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19036
19037 PR target/89021
19038 * config/i386/mmx.md (mmx_pmovmskb): Changed to
19039 define_insn_and_split to support SSE emulation.
19040
19041 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19042
19043 PR target/89021
19044 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
19045 and TARGET_MMX_WITH_SSE.
19046 (mmx_<code>v8qi3): Likewise.
19047 (smaxmin:<code>v4hi3): New.
19048 (umaxmin:<code>v8qi3): Likewise.
19049 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
19050 (umaxmin:*mmx_<code>v8qi3): Likewise.
19051
19052 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19053
19054 PR target/89021
19055 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
19056 TARGET_MMX_WITH_SSE.
19057 (*mmx_pinsrw): Add SSE emulation.
19058
19059 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19060
19061 PR target/89021
19062 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
19063
19064 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19065
19066 PR target/89021
19067 * config/i386/sse.md (sse_cvtpi2ps): Changed to
19068 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19069 SSE emulation.
19070
19071 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19072
19073 PR target/89021
19074 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
19075 (sse_cvttps2pi): Likewise.
19076
19077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19078
19079 PR target/89021
19080 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
19081 TARGET_MMX_WITH_SSE.
19082 (mmx_pshufw_1): Add SSE emulation.
19083 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
19084 TARGET_MMX_WITH_SSE to support SSE emulation.
19085
19086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19087
19088 PR target/89021
19089 * config/i386/constraints.md (Yw): New constraint.
19090 * config/i386/mmx.md (*vec_dupv2si): Changed to
19091 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
19092 support SSE emulation.
19093
19094 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19095
19096 PR target/89021
19097 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
19098 TARGET_MMX_WITH_SSE.
19099 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19100 support.
19101 (mmx_gt<mode>3): Likewise.
19102
19103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19104
19105 PR target/89021
19106 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
19107 TARGET_MMX_WITH_SSE. Add SSE support.
19108
19109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19110
19111 PR target/89021
19112 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
19113 TARGET_MMX_WITH_SSE.
19114 (any_logic:<code><mode>3): New.
19115 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
19116 Add SSE support.
19117
19118 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19119
19120 PR target/89021
19121 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
19122 TARGET_MMX_WITH_SSE. Add SSE emulation.
19123 (mmx_<shift_insn><mode>3): Likewise.
19124 (ashr<mode>3): New.
19125 (<shift_insn><mode>3): Likewise.
19126
19127 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19128
19129 PR target/89021
19130 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
19131 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
19132
19133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19134
19135 PR target/89021
19136 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
19137 TARGET_MMX_WITH_SSE.
19138 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
19139 SSE support.
19140
19141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19142
19143 PR target/89021
19144 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
19145 TARGET_MMX_WITH_SSE.
19146 (mulv4hi3): New.
19147 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19148 support.
19149
19150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19151
19152 PR target/89021
19153 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19154 (plusminus:mmx_<plusminus_insn><mode>3): Check
19155 TARGET_MMX_WITH_SSE.
19156 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19157 (<plusminus_insn><mode>3): New.
19158 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19159 (*mmx_<plusminus_insn><mode>3): Likewise.
19160
19161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19162
19163 PR target/89021
19164 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19165 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19166 prototype.
19167 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19168 define_insn_and_split to support SSE emulation.
19169 (mmx_punpcklbw): Likewise.
19170 (mmx_punpckhwd): Likewise.
19171 (mmx_punpcklwd): Likewise.
19172 (mmx_punpckhdq): Likewise.
19173 (mmx_punpckldq): Likewise.
19174
19175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19176 Uros Bizjak <ubizjak@gmail.com>
19177
19178 PR target/89021
19179 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19180 New function.
19181 (ix86_split_mmx_pack): Likewise.
19182 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19183 New prototype.
19184 (ix86_split_mmx_pack): Likewise.
19185 * config/i386/i386.md (mmx_isa): New.
19186 (enabled): Also check mmx_isa.
19187 * config/i386/mmx.md (any_s_truncate): New code iterator.
19188 (s_trunsuffix): New code attr.
19189 (mmx_packsswb): Removed.
19190 (mmx_packssdw): Likewise.
19191 (mmx_packuswb): Likewise.
19192 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19193 MMX packsswb/packuswb with SSE2.
19194 (mmx_packssdw): Likewise.
19195 * config/i386/predicates.md (register_mmxmem_operand): New.
19196
19197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19198
19199 PR target/89021
19200 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19201 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19202 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19203 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19204 (ix86_vector_mode_supported_p): Likewise.
19205 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19206
19207 2019-05-15 Martin Liska <mliska@suse.cz>
19208
19209 PR middle-end/90478
19210 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19211 Check for overflow.
19212
19213 2019-05-15 Richard Biener <rguenther@suse.de>
19214
19215 * tree-into-ssa.c (pass_build_ssa::execute): Run
19216 update_address_taken before going into SSA.
19217
19218 2019-05-15 Richard Biener <rguenther@suse.de>
19219
19220 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19221 as __BIT_FIELD_REF with type with -gimple.
19222
19223 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19224
19225 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19226 semantically equivalent branches (left over after prior refactorings).
19227
19228 2019-05-15 Richard Biener <rguenther@suse.de>
19229
19230 PR tree-optimization/88828
19231 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19232 bogus check.
19233
19234 2019-05-14 Richard Biener <rguenther@suse.de>
19235
19236 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19237 as __VIEW_CONVERT with -gimple.
19238
19239 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19240
19241 PR target/82920
19242 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19243 Darwin.
19244
19245 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19246
19247 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19248 define_split to become a define_insn_and_split.
19249
19250 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19251
19252 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19253 arguments.
19254 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19255 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19256 (sibcall_epilogue): Adjust.
19257 (epilogue): Adjust.
19258
19259 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19260
19261 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19262 to unsupported ones.
19263 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19264 * config.host: Likewise.
19265 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19266 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19267 __svr4__]: Remove "brand" fallback.
19268 [!KSTAT_DATA_STRING]: Remove.
19269 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19270 to *-*-solaris2*.
19271 (comdat_group): Likewise.
19272 (set_have_as_tls): Likewise.
19273 (gcc_cv_target_dl_iterate_phdr): Likewise.
19274 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19275 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19276 * configure: Regenerate.
19277 * doc/install.texi: Simplify Solaris target triplets.
19278 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19279 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19280 Remove Solaris 10 references.
19281 Remove obsolete Solaris bug reference.
19282 (Specific, sparc-sun-solaris2.10): Remove.
19283
19284 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19285
19286 * config/i386/i386.md (any_div): New code iterator.
19287 (paired_mod): New code attribute.
19288 (sgnprefix): Handle DIV and UDIV RTXes.
19289 (u): Ditto.
19290 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19291 and udivmod<mode>4 patterns using any_div code iterator.
19292 (divmod splitters): Macroize splitters using any_div code iterator.
19293 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19294 (*udivmodsi4_pow2_zext_2): Ditto.
19295 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19296 and *udivmod<mode>4_noext patterns using any_div code iterator.
19297 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19298 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19299 patterns using any_div code iterator.
19300 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19301 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19302 patterns using any_div code iterator.
19303 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19304 udivmodhiqi3 patterns using any_extend code iterator.
19305
19306 2019-05-14 Richard Biener <rguenther@suse.de>
19307 H.J. Lu <hongjiu.lu@intel.com>
19308
19309 PR tree-optimization/88828
19310 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19311 permuting in a single non-constant element not extracted
19312 from a vector.
19313
19314 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19315
19316 * internal-fn.def (SIGNBIT): New.
19317 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19318 defined.
19319 (signbitv4sf2): Likewise.
19320
19321 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19322
19323 PR target/90357
19324 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19325 next insn when the SRC reg is dead.
19326
19327 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19328
19329 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19330 (alloc_cand_and_find_basis): Ditto.
19331 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19332 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19333 (create_add_imm_cand, slsr_process_cast): Ditto.
19334 (slsr_process_copy, replace_mult_candidate): Ditto.
19335 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19336 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19337 (pass_strength_reduction::execute): Init the first NULL element.
19338
19339 2019-05-13 Nathan Sidwell <nathan@acm.org>
19340
19341 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19342 (run_attempt): Reformat line break.
19343
19344 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19345
19346 PR target/90418
19347 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19348 data registers in sibcall epilogues.
19349 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19350
19351 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19352
19353 PR target/89221
19354 * configure.ac (--enable-frame-pointer):
19355 Disable by default for cygwin and mingw.
19356 * configure: Regenerate.
19357
19358 2019-05-13 Nathan Sidwell <nathan@acm.org>
19359
19360 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19361 piece of code.
19362 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19363 (gen_member_die): Move abstract origin check earlier. Only VARs
19364 can be static_inline_p. Simplify splicing control flow.
19365
19366 2019-05-13 Richard Biener <rguenther@suse.de>
19367
19368 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19369 VIEW_CONVERT_EXPR.
19370 (vect_build_slp_tree_1): Likewise.
19371
19372 2019-05-13 Richard Biener <rguenther@suse.de>
19373
19374 PR tree-optimization/90402
19375 * tree-if-conv.c (tree_if_conversion): Value number only
19376 the loop body by making the latch an exit of the region
19377 as well.
19378 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19379 processing PHIs.
19380 (do_rpo_vn): Deal with multiple edges into the entry block
19381 that are not backedges inside the region by skipping PHIs
19382 of the entry block.
19383
19384 2019-05-13 Richard Biener <rguenther@suse.de>
19385
19386 PR tree-optimization/90316
19387 * tree-ssa-pre.c (insert_aux): Fold into ...
19388 (insert): ... this function. Use a RPO walk to reduce the
19389 number of required iterations.
19390
19391 2019-05-13 Martin Liska <mliska@suse.cz>
19392
19393 PR tree-optimization/90416
19394 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19395 string instead of passing the second part as va_arg argument.
19396
19397 2019-05-13 Martin Liska <mliska@suse.cz>
19398
19399 PR gcov-profile/90380
19400 * gcov.c (handle_cycle): Do not support zero cycle count,
19401 it should not be possible.
19402 (path_contains_zero_cycle_arc): New function.
19403 (circuit): Ignore zero cycle arc counts.
19404
19405 2019-05-13 Martin Liska <mliska@suse.cz>
19406
19407 PR gcov-profile/90380
19408 * gcov.c (enum loop_type): Remove the enum and
19409 the operator.
19410 (handle_cycle): Assert that we should not reach
19411 a negative count.
19412 (circuit): Use loop_found instead of a tri-state loop_type.
19413 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19414 happen.
19415
19416 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19417
19418 PR target/82920
19419 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19420 (ix86_output_indirect_branch_via_reg): Use output mechanism
19421 accounting for __USER_LABEL_PREFIX__.
19422 (ix86_output_indirect_branch_via_push): Likewise.
19423 (ix86_output_function_return): Likewise.
19424 (ix86_output_indirect_function_return): Likewise.
19425
19426 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19427
19428 * doc/md.texi: Document use of code attributes in rtx patterns.
19429 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19430 * read-rtl.c (find_code): Split out search loops into...
19431 (maybe_find_code): ...this new function.
19432 (check_code_iterator): Make the error message more informative.
19433 (check_code_attribute): New function.
19434 (rtx_reader::rtx_alloc_for_name): Likewise.
19435 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19436 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19437 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19438 <max_opp> directly as an rtx code instead of via a match_operator.
19439 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19440 (<su>abd<mode>_3): Update accordingly.
19441
19442 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19443
19444 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19445 is given, print the state of the EH "save world" computation for
19446 Darwin.
19447
19448 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR c++/59813
19451 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19452 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19453
19454 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19455
19456 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19457 Use pinsrd for TARGET_SSE4_1.
19458 * config/i386/sse.md (movdi_to_sse): Ditto.
19459
19460 2019-05-10 Richard Biener <rguenther@suse.de>
19461
19462 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19463 (do_rpo_vn): Initialize next_value_id.
19464
19465 2019-05-10 Martin Liska <mliska@suse.cz>
19466
19467 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19468 Fix plural form.
19469
19470 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19471
19472 PR tree-optimization/90385
19473 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19474 arguments of the exit phis.
19475
19476 PR c++/90383
19477 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19478 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19479 id->do_not_fold.
19480 (copy_tree_body_r): Likewise.
19481 (copy_fn): Set id.do_not_fold to true.
19482
19483 2019-05-10 Martin Liska <mliska@suse.cz>
19484
19485 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19486 Reapply changes from r269790.
19487
19488 2019-05-10 Martin Liska <mliska@suse.cz>
19489
19490 PR middle-end/90340
19491 * doc/invoke.texi: New params.
19492 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19493 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19494 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19495 Use it.
19496 * tree-switch-conversion.h (struct jump_table_cluster):
19497 Likewise.
19498
19499 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19500
19501 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19502
19503 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19504
19505 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19506
19507 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19508
19509 PR rtl-optimization/88879
19510 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19511
19512 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19513
19514 PR target/90405
19515 * config/arm/arm.c (callee_saved_reg_p): Move before
19516 thumb_find_work_register.
19517 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19518 thumb_find_work_register. Only call df_get_live_out once.
19519 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19520 (thumb_find_work_register): Use
19521 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19522 algorithms to locate a spare call clobbered reg.
19523
19524 2019-05-09 Martin Liska <mliska@suse.cz>
19525
19526 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19527 and MAX_EXPR in GIMPLE FE format.
19528
19529 2019-05-09 Martin Liska <mliska@suse.cz>
19530
19531 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19532 * gimple-pretty-print.c (dump_gimple_bb_header):
19533 Dump BB count.
19534 (pp_cfg_jump): Dump edge probability.
19535 * profile-count.c (profile_quality_as_string): Simplify
19536 with a static array.
19537 (parse_profile_quality): New function.
19538 (profile_count::dump): Simplify with a static array.
19539 (profile_count::from_gcov_type): Add new argument.
19540 * profile-count.h (parse_profile_quality): Likewise.
19541 * predict.h (set_hot_bb_threshold): New.
19542 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19543 New param.
19544 * predict.c (get_hot_bb_threshold): Set from the new param.
19545 (set_hot_bb_threshold): New.
19546
19547 2019-05-09 Richard Biener <rguenther@suse.de>
19548
19549 PR tree-optimization/90395
19550 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19551 rewrite vector stores that throw internally.
19552
19553 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19554
19555 * cif-code.def (CHKP): Remove.
19556
19557 PR target/89221
19558 * configure.ac (--enable-frame-pointer): Disable by default for
19559 GNU systems.
19560 * configure: Regenerate.
19561
19562 2019-05-09 Alan Modra <amodra@gmail.com>
19563
19564 PR target/89271
19565 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19566 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19567 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19568 cost for general <-> vsx when direct moves are available.
19569 Cost union classes at minimal cost for any reg in the class.
19570 Correct calculation for moves between vsx, float, and altivec.
19571 Don't return a low cost for moves between special regs. Don't
19572 use hard coded register numbers.
19573 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19574 (rs6000_ira_change_pseudo_allocno_class): New function.
19575 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19576 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19577 alternatives.
19578 (movsi_internal1): Don't disparage vector alternatives.
19579 (mov<mode>_internal): Likewise, excepting alternative that
19580 will be split.
19581 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19582 we <- b alternative.
19583
19584 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19585
19586 PR c++/59813
19587 PR tree-optimization/89060
19588 * tree-ssa-live.h (live_vars_map): New typedef.
19589 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19590 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19591 (struct compute_live_vars_data): New type.
19592 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19593 live_vars_at_stmt, destroy_live_vars): New functions.
19594 * tree-tailcall.c: Include tree-ssa-live.h.
19595 (live_vars, live_vars_vec): New global variables.
19596 (find_tail_calls): Perform variable life analysis before punting.
19597 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19598 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19599 member.
19600 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19601 Perform variable life analysis to select variables that really need
19602 clobbers added.
19603 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19604 instead set id->eh_landing_pad_dest and assert it is the same.
19605 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19606
19607 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19608 Richard Earnshaw <rearnsha@arm.com>
19609
19610 PR target/88167
19611 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19612 function.
19613 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19614 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19615 register if both the epilogue and prologue can use call-clobbered
19616 regs.
19617 (thumb1_unexpanded_epilogue): Use
19618 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19619 picking temporaries for restoring high regs to match that of the
19620 prologue where possible.
19621 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19622 the list of work registers. Detect if the return address is still live
19623 at the end of the prologue and avoid using it for a work register if so.
19624 If the return address is not live, add LR to the list of pushable regs
19625 after the first pass.
19626
19627 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19628
19629 PR tree-optimization/90078
19630 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19631 (INFTY): Increase the value for infinite cost.
19632 (struct comp_cost): Promote type of members to int64_t.
19633 (infinite_cost): Don't set complexity in initialization.
19634 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19635 overflows to infinite_cost.
19636 (adjust_setup_cost): Promote type of parameter and cost computation
19637 to int64_t.
19638 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19639 int64_t.
19640 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19641 cost computation to int64_t.
19642 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19643 int64_t's format specifier in dump.
19644
19645 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19646
19647 PR tree-optimization/90240
19648 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19649 with respect to scaling factor pre-computed for each basic block.
19650 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19651 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19652 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19653 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19654 live range for array of loop's basic blocks. Cleanup aux field of
19655 loop's basic blocks.
19656
19657 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19658
19659 PR tree-optimization/90356
19660 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19661
19662 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19663
19664 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19665 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19666 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19667 (ix86_handle_option): Handle -mavx512bf16.
19668 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19669 to extra_headers.
19670 * config/i386/avx512bf16vlintrin.h: New.
19671 * config/i386/avx512bf16intrin.h: New.
19672 * config/i386/cpuid.h (bit_AVX512BF16): New.
19673 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19674 * config/i386/i386-builtin-types.def: Add new types.
19675 * config/i386/i386-builtin.def: Add new builtins.
19676 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19677 __AVX512BF16__.
19678 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19679 (ix86_option_override_internal): Handle BF16.
19680 (ix86_valid_target_attribute_inner_p): Ditto.
19681 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19682 * config/i386/i386-builtin.c (enum processor_features): Add
19683 F_AVX512BF16.
19684 (static const _isa_names_table isa_names_table): Ditto.
19685 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19686 (PTA_AVX512BF16): Ditto.
19687 * config/i386/i386.opt: Add -mavx512bf16.
19688 * config/i386/immintrin.h: Include avx512bf16intrin.h
19689 and avx512bf16vlintrin.h.
19690 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19691 avx512f_cvtneps2bf16_<mode><mask_name>,
19692 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19693 * config/i386/subst.md (mask_half): Add new subst.
19694 * doc/invoke.texi: Document -mavx512bf16.
19695
19696 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19697
19698 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19699 Delete declaration.
19700 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19701 (rs6000_debug_legitimize_reload_address): Delete.
19702 (rs6000_legitimize_reload_address_ptr): Delete.
19703 (rs6000_option_override_internal): Adjust.
19704 (mem_operand_gpr): Adjust comment.
19705 (legitimate_lo_sum_address_p): Ditto.
19706 (rs6000_legitimize_reload_address): Delete.
19707 (rs6000_debug_legitimize_reload_address): Delete.
19708 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19709
19710 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19711
19712 PR target/89765
19713 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19714 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19715 to compute vector element selector for both constant and variable
19716 operands.
19717
19718 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19719
19720 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19721 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19722 ashrdi3_cvt using SWI48 mode iterator.
19723
19724 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19725
19726 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19727 (aarch64_<su>abd<mode>_3): Likewise.
19728 (*aarch64_<su>abd<mode>_3): New define_insn.
19729 (<sur>sad<vsi2qi>): New define_expand.
19730 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19731 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19732 (build_vect_cond_expr): Likewise.
19733
19734 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19735
19736 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19737 clobbers outside of accessible_reg_set.
19738 * config/i386/i386.c (ix86_conditional_register_usage):
19739 Disable register sets by clearing corresponding bits in
19740 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19741 call_used_regs and don't clear corresponding reg_names array members.
19742
19743 2019-05-07 Richard Biener <rguenther@suse.de>
19744
19745 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19746 not specified still compute a comp_vectype for invariant
19747 compares.
19748
19749 2019-05-07 Richard Biener <rguenther@suse.de>
19750
19751 PR tree-optimization/90316
19752 * tree-ssa-pre.c (translate_vuse_through_block): When
19753 same_valid is NULL do not bother to search for a virtual
19754 PHI continuation.
19755 (phi_translate_1): When operands changed we cannot keep
19756 the same value-number so do not bother to ask whether
19757 that's possible from translate_vuse_through_block.
19758
19759 2019-05-07 Martin Liska <mliska@suse.cz>
19760
19761 * bitmap.c (bitmap_register): Come up with
19762 alloc_descriptor_max_uid and assign it for
19763 a new bitmap.
19764 (register_overhead): Use get_descriptor as
19765 a descriptor.
19766 (release_overhead): New.
19767 (bitmap_elem_to_freelist): Call it.
19768 (bitmap_elt_clear_from): Likewise.
19769 (bitmap_obstack_free): Likewise.
19770 (bitmap_move): Sensitively release memory.
19771 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19772 (bitmap_initialize): Initialize alloc_descriptor to zero.
19773 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19774
19775 2019-05-07 Richard Biener <rguenther@suse.de>
19776
19777 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19778 we build a SLP node. Remove max_size and limiting.
19779 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19780
19781 2019-05-07 Richard Biener <rguenther@suse.de>
19782
19783 PR tree-optimization/90316
19784 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19785 limit by reference.
19786 (walk_non_aliased_vuses): Take walking limit argument.
19787 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19788 walking if it is reached instead of just counting.
19789 (get_continuation_for_phi): Likewise.
19790 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19791 limiting to the callback.
19792 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19793 (vn_reference_lookup_3): Likewise.
19794 (vn_reference_lookup_pieces): Likewise.
19795 (vn_reference_lookup): Likewise.
19796 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19797 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19798 (avail_exprs_stack::lookup_avail_expr): Likewise.
19799
19800 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19801
19802 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19803 for comparaible types in the second direction even if first one
19804 hits incomparable type.
19805
19806 2019-05-07 Richard Biener <rguenther@suse.de>
19807
19808 PR lto/90369
19809 * lto-wrapper.c (debug_objcopy): Use the original filename
19810 including archive offset for the filename used for -save-temps.
19811
19812 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19813
19814 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19815 detection.
19816
19817 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19818 Hongtao Liu <hongtao.liu@intel.com>
19819
19820 PR target/89750
19821 PR target/86444
19822 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19823 Modified, original implementation isn't correct.
19824
19825 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19826
19827 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19828 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19829 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19830 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19831 (FRAME_POINTER_REGNUM): Change numbering.
19832 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19833 (alt_reg_names): Adjust.
19834 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19835 fixed.
19836 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19837 (DWARF_FRAME_REGISTERS): Delete.
19838 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19839 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19840 Adjust.
19841 (REG_ALLOC_ORDER): Adjust.
19842 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19843 (REG_CLASS_CONTENTS): Adjust.
19844 (RETURN_ADDR_RTX): Change comment.
19845 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19846 instead of 67.
19847 (REGISTER_NAMES): Adjust.
19848 (ADDITIONAL_REGISTER_NAMES): Adjust.
19849 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19850
19851 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19852
19853 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19854 Delete.
19855 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19856 (DWARF_FRAME_REGISTERS): Adjust.
19857 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19858 Adjust.
19859 (REG_ALLOC_ORDER): Adjust.
19860 (enum reg_class): Delete SPR_REGS.
19861 (REG_CLASS_NAMES): Delete SPR_REGS.
19862 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19863 (REGISTER_NAMES): Adjust.
19864 (ADDITIONAL_REGISTER_NAMES): Adjust.
19865 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19866 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19867 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19868 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19869 (htm_spr_regno): Delete.
19870 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19871 argument.
19872 (rs6000_dbx_register_number): Adjust.
19873
19874 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19875
19876 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19877
19878 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19879
19880 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19881 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19882
19883 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19884
19885 PR tree-optimization/88709
19886 PR tree-optimization/90271
19887 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19888 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19889 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19890 variable.
19891 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19892 of the store merging group is larger than
19893 PARAM_STORE_MERGING_MAX_SIZE parameter.
19894 (split_group): Add bzero_first argument. If set, always emit first
19895 the first store which must be = {} of the whole area and then for the
19896 rest of the stores consider all zero bytes as paddings.
19897 (imm_store_chain_info::output_merged_store): Check if first store
19898 is = {} of the whole area and if yes, determine which setting of
19899 bzero_first for split_group gives smaller number of stores. Adjust
19900 split_group callers.
19901 (lhs_valid_for_store_merging_p): Allow decls.
19902 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19903 no elts.
19904 (pass_store_merging::process_store): Likewise.
19905
19906 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19907
19908 PR target/89424
19909 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19910 handling of V1TImode.
19911
19912 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19913
19914 PR target/89221
19915 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19916 and enable_frame_pointer ...
19917 * configure.ac: ... here. Update help strings for
19918 --enable-frame-pointer.
19919 * configure: Regenerate.
19920 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19921 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19922 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19923 (USE_X86_64_FRAME_POINTER): Ditto.
19924
19925 2019-05-06 Martin Liska <mliska@suse.cz>
19926
19927 * config.gcc: Append to target_gtfiles and fix indentation.
19928
19929 2019-05-06 Richard Biener <rguenther@suse.de>
19930
19931 PR tree-optimization/90358
19932 * tree-vect-stmts.c (get_group_load_store_type): Properly
19933 detect unused upper half of load.
19934 (vectorizable_load): Likewise.
19935
19936 2019-05-06 Richard Biener <rguenther@suse.de>
19937
19938 PR tree-optimization/88828
19939 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19940 (simplify_vector_constructor): ...here. Handle constants in
19941 the constructor.
19942
19943 2019-05-06 Richard Biener <rguenther@suse.de>
19944
19945 PR tree-optimization/90328
19946 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19947 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19948 is valid in the loop nest before using it.
19949 (initialize_data_dependence_relation): Adjust.
19950 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19951 loop as loop-nest to dr_may_alias_p.
19952
19953 2019-05-06 Richard Biener <rguenther@suse.de>
19954
19955 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19956
19957 2019-05-06 Richard Biener <rguenther@suse.de>
19958
19959 PR tree-optimization/90316
19960 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19961 compute target on demand.
19962 (get_continuation_for_phi): Remove code walking stmts to
19963 get to a target virtual operand which could end up being
19964 quadratic.
19965
19966 2019-05-06 Martin Liska <mliska@suse.cz>
19967
19968 PR sanitizer/90312
19969 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19970 when -mabi is selected to a non-default version.
19971
19972 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19973 Martin Liska <mliska@suse.cz>
19974
19975 * Makefile.in: Add lto-dump.texi.
19976 * cgraph.h: Add new functions get_visibility_string and
19977 get_symtab_type_string.
19978 * doc/gcc.texi: Include lto-dump section.
19979 * doc/lto-dump.texi: New file.
19980 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19981 (parse_dump_option): Factor out this function.
19982 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19983 (parse_dump_option): Export the function.
19984 * symtab.c (symtab_node::get_visibility_string): New function.
19985 (symtab_node::get_symtab_type_string): Likewise.
19986
19987 2019-05-06 Martin Liska <mliska@suse.cz>
19988
19989 * config/i386/i386-builtins.c: New file.
19990 * config/i386/i386-builtins.h: New file.
19991 * config/i386/i386-expand.c: New file.
19992 * config/i386/i386-expand.h: New file.
19993 * config/i386/i386-features.c: New file.
19994 * config/i386/i386-features.h: New file.
19995 * config/i386/i386-options.c: New file.
19996 * config/i386/i386-options.h: New file.
19997 * config.gcc: Add new files into extra_objs and
19998 target_gtfiles.
19999 * config/i386/i386.c: Split content of the file
20000 into newly introduced files.
20001 * config/i386/i386.h: Declare common variables
20002 and macros.
20003 * config/i386/t-i386: Define dependencies for new files.
20004
20005 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
20006
20007 PR target/89400
20008 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
20009 Restrict 'all' variant to 32-bit configurations.
20010 (unaligned_loadhiu): Likewise.
20011 (unaligned_storehi): Likewise.
20012 (unaligned_storesi): Likewise.
20013 (unaligned_loadhis): Disable when compiling for thumb1.
20014
20015 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
20016
20017 PR tree-optimization/90269
20018 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
20019 Ignore clobbers.
20020
20021 2019-05-03 Martin Liska <mliska@suse.cz>
20022
20023 * hash-map.h: Add is_empty function.
20024 * hash-set.h: Likewise.
20025 * hash-table.h: Likewise.
20026 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
20027 elements () == 0 (and similar usages).
20028 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
20029 * gimplify.c (gimplify_bind_expr): Likewise.
20030 (gimplify_switch_expr): Likewise.
20031 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
20032 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
20033 * postreload-gcse.c (dump_hash_table): Likewise.
20034 (gcse_after_reload_main): Likewise.
20035 * predict.c (combine_predictions_for_bb): Likewise.
20036 * tree-parloops.c (reduction_phi): Likewise.
20037 (separate_decls_in_region): Likewise.
20038 (transform_to_exit_first_loop): Likewise.
20039 (gen_parallel_loop): Likewise.
20040 (gather_scalar_reductions): Likewise.
20041 (try_create_reduction_list): Likewise.
20042 * var-tracking.c (dump_vars): Likewise.
20043 (emit_notes_for_changes): Likewise.
20044 (vt_emit_notes): Likewise.
20045
20046 2019-05-03 Richard Biener <rguenther@suse.de>
20047
20048 PR tree-optimization/90316
20049 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
20050 before running VN.
20051
20052 2019-05-03 Richard Biener <rguenther@suse.de>
20053
20054 * tree-vect-stmts.c (get_group_load_store_type): Avoid
20055 peeling for gaps by loading only lower halves of vectors
20056 if possible.
20057 (vectorizable_load): Likewise.
20058
20059 2019-05-03 Richard Biener <rguenther@suse.de>
20060
20061 PR middle-end/89518
20062 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
20063
20064 2019-05-03 Richard Biener <rguenther@suse.de>
20065
20066 PR middle-end/87314
20067 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
20068 Handle STRING_CST vs DECL or STRING_CST.
20069
20070 2019-05-03 Richard Biener <rguenther@suse.de>
20071
20072 PR tree-optimization/88963
20073 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
20074 vector loads feeding only BIT_FIELD_REFs to component
20075 loads. Rewrite stores fed by CONSTRUCTORs to component
20076 stores.
20077
20078 2019-05-03 Jakub Jelinek <jakub@redhat.com>
20079
20080 * opts.h (finish_options): Remove lang_mask argument.
20081 (print_help, help_option_argument): Declare.
20082 * opts.c (print_help): Remove forward declaration, no longer static.
20083 (finish_options): Remove lang_mask argument, don't call print_help
20084 here.
20085 * opts-global.c (decode_options): Adjust finish_option caller, call
20086 print_help here.
20087
20088 PR tree-optimization/90303
20089 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
20090 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
20091
20092 2019-05-03 Richard Biener <rguenther@suse.de>
20093
20094 PR tree-optimization/89698
20095 * gimple-fold.c (canonicalize_constructor_val): Early out
20096 for constants, handle unfolded INTEGER_CSTs as they appear in
20097 C++ virtual table ctors.
20098
20099 2019-05-03 Richard Biener <rguenther@suse.de>
20100
20101 * passes.c (execute_function_todo): Remove dead code.
20102
20103 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20104
20105 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
20106 the internal register number, for any "real" register.
20107
20108 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20109
20110 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
20111 correct numbers for TFHAR, TFIAR, TEXASR.
20112
20113 2019-05-02 Richard Biener <rguenther@suse.de>
20114
20115 PR tree-optimization/89653
20116 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
20117 update-address-taken before the pass.
20118 * passes.def (pass_tree_loop_init): Put comment before it.
20119
20120 2019-05-02 Richard Biener <rguenther@suse.de>
20121
20122 PR tree-optimization/89509
20123 * tree-ssa-structalias.c (compute_dependence_clique): Look
20124 at the first subvar when determining whether it is restrict.
20125
20126 2019-05-02 Richard Biener <rguenther@suse.de>
20127
20128 PR tree-optimization/90273
20129 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
20130 useless debug stmts.
20131
20132 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20133
20134 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
20135 ACLE branch.
20136 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
20137 SVE ACLE branch.
20138 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
20139 VEC_COND_EXPR be inserted to emulate a conditional internal function.
20140 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
20141 (vectorizable_reduction): Use the functions above to vectorize in a
20142 fully masked loop codes that don't have a conditional internal
20143 function.
20144
20145 2019-05-02 Martin Liska <mliska@suse.cz>
20146
20147 * cgraphclones.c: Call valid_attribute_p with 1 for
20148 target_clone.
20149 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20150 it's for target attribute.
20151 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20152 Add new boolean argument.
20153 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20154 Likewise.
20155 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20156 to ix86_valid_target_attribute_inner_p.
20157 (ix86_valid_target_attribute_p): Pass flags argument to
20158 ix86_valid_target_attribute_inner_p.
20159 (get_builtin_code_for_version): Use 0 as it's target attribute.
20160
20161 2019-05-02 Martin Liska <mliska@suse.cz>
20162
20163 * gcc.c (process_command): Add dummy file only
20164 if n_infiles == 0.
20165 * opts-global.c (decode_options): Pass lang_mask.
20166 * opts.c (print_help): New function.
20167 (finish_options): Print --help if help_option_argument
20168 is set.
20169 (common_handle_option): Factor out content of OPT__help_
20170 into print_help.
20171 * opts.h (finish_options): Add new argument.
20172
20173 2019-05-02 Martin Liska <mliska@suse.cz>
20174
20175 PR target/88809
20176 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20177 With -minline-all-stringops use inline expansion using 4B loop.
20178 * doc/invoke.texi: Document the change of
20179 -minline-all-stringops.
20180
20181 2019-05-01 Jeff Law <law@redhat.com>
20182
20183 PR tree-optimization/88797
20184 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20185 PHI feeds a conditional on the RHS of an assignment.
20186
20187 2019-04-30 Andrew Waterman <andrew@sifive.com>
20188 Jim Wilson <jimw@sifive.com>
20189
20190 * config/riscv/constraints.md (L): New.
20191 * config/riscv/predicates.md (lui_operand): New.
20192 (sfb_alu_operand): New.
20193 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20194 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20195 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20196 * config/riscv/risc.md (type): Add sfb_alu.
20197 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20198 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20199 (branch_zero<mode>): Delete.
20200 (mov<mode>cc): New.
20201 (mov<GPR:mode><X:mode>cc): Likewise.
20202 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20203
20204 2019-04-30 Nathan Sidwell <nathan@acm.org>
20205
20206 * tree.h (MARK_TS_EXP): New.
20207
20208 2019-04-30 Martin Liska <mliska@suse.cz>
20209
20210 * opts.c (enable_warning_as_error): Provide hints
20211 for unknown options.
20212
20213 2019-04-30 Martin Liska <mliska@suse.cz>
20214
20215 PR debug/90288
20216 * doc/invoke.texi: Add missing dash for gas-locview-support
20217 and gno-as-locview-support.
20218
20219 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20220
20221 PR target/89093
20222 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20223 whitespace at the start of target attribute string.
20224
20225 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20226
20227 PR target/86538
20228 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20229 Define __ARM_FEATURE_ATOMICS.
20230
20231 2019-04-30 Martin Liska <mliska@suse.cz>
20232
20233 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20234 into built_in_function enum. Remove code for endp == 2 and
20235 use BUILT_IN_* constants.
20236 (gimple_fold_builtin): Call the function with fcode.
20237
20238 2019-04-30 Martin Liska <mliska@suse.cz>
20239
20240 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20241 DECL_FUNCTION_CODE into ix86_builtins enum before
20242 the switch statement.
20243
20244 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20245
20246 PR tree-optimization/89475
20247 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20248 calls.
20249
20250 2019-04-30 Martin Liska <mliska@suse.cz>
20251
20252 PR translation/90274
20253 * opts.c (print_filtered_help): Wrap string in _(...).
20254
20255 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20256
20257 PR tree-optimization/90240
20258 Revert:
20259 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20260
20261 PR tree-optimization/90078
20262 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20263 checks for infinite_cost overflow.
20264
20265 2019-04-29 Jeff Law <law@redhat.com>
20266
20267 * passes.def: Move -Wrestrict pass after copy propagation.
20268
20269 2019-04-29 Maya Rashish <coypu@sdf.org>
20270
20271 * config.gcc (default_gnu_indirect_function): Default to yes
20272 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20273 sparc*-*-netbsd*, x86_64-*-netbsd*.
20274
20275 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20276
20277 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20278 where cond2 is NE_EXPR.
20279 (is_value_included_in): Update comment.
20280
20281 2019-04-29 Richard Biener <rguenther@suse.de>
20282
20283 PR tree-optimization/90278
20284 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20285 EH on comparison simplification.
20286
20287 2019-04-29 Jason Merrill <jason@redhat.com>
20288
20289 PR c++/82081 - tail call optimization breaks noexcept
20290 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20291 nothrow function to a might-throw function into a tail call.
20292
20293 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20294
20295 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20296 (DDR_INNER_LOOP): Likewise.
20297 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20298 (initialize_data_dependence_relation): Likewise.
20299 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20300
20301 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20302
20303 PR rtl-optimization/90257
20304 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20305 return value.
20306
20307 Revert the revert:
20308 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20309
20310 PR target/90178
20311 Revert:
20312 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20313
20314 Revert the revert:
20315 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20316
20317 Revert:
20318 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20319
20320 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20321
20322 2019-04-29 Richard Biener <rguenther@suse.de>
20323
20324 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20325 rhs issue a reset.
20326
20327 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20328
20329 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20330 varasm.h, and netbsd-protos.h.
20331
20332 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20333
20334 PR target/89261
20335 * config/i386/i386-protos.h (ix86_data_alignment): Change
20336 the second argument type to unsigned int.
20337 * config/i386/i386.c (ix86_data_alignment): Change "align"
20338 argument type to unsigned int.
20339
20340 2019-04-27 Martin Liska <mliska@suse.cz>
20341
20342 PR middle-end/90258
20343 * opt-suggestions.c (option_proposer::build_option_suggestions):
20344 When get_valid_option_values returns empty values, add the
20345 misspelling candidate.
20346
20347 2019-04-26 Jim Wilson <jimw@sifive.com>
20348
20349 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20350 parameter.
20351 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20352 Pass orig_mode to riscv_build_integer.
20353 (riscv_split_integer): Pass mode to riscv_move_integer.
20354 (riscv_legitimize_const_move): Likewise.
20355 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20356 promoted_mode. Replace force_reg call with code to load constant into
20357 promoted reg and then subreg it for the store.
20358 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20359 riscv_move_integer.
20360
20361 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20362
20363 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20364 corrupt codes.
20365
20366 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20367
20368 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20369 commentary about the encoding of precision.
20370
20371 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20372
20373 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20374 * config/i386/t-freebsd64: New file.
20375 * config.gcc: Add the t-freebsd64 for multilib support.
20376
20377 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20378
20379 * doc/extend.texi (vector_size): Add missing comma after @xref.
20380
20381 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20382
20383 * BASE-VER: Set to 10.0.0.
20384
20385 2019-04-25 Richard Biener <rguenther@suse.de>
20386
20387 PR middle-end/89765
20388 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20389 VIEW_CONVERT_EXPR into one operating on an rvalue.
20390
20391 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20392
20393 PR target/89929
20394 * config/i386/i386.c (feature_priority): Moved to file scope.
20395 (processor_features): Likewise.
20396 (processor_model): Likewise.
20397 (_arch_names_table): Likewise.
20398 (arch_names_table): Likewise.
20399 (_feature_list): Removed.
20400 (feature_list): Likewise.
20401 (_isa_names_table): Moved to file scope. Add priority.
20402 (isa_names_table): Likewise.
20403 (get_builtin_code_for_version): Replace feature_list with
20404 isa_names_table. Update error message for P_ZERO priority.
20405
20406 2019-04-25 Richard Biener <rguenther@suse.de>
20407
20408 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20409 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20410
20411 2019-04-24 Jeff Law <law@redhat.com>
20412
20413 PR tree-optimization/90037
20414 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20415 * passes.def: Replace all instance of phi-only cprop with the
20416 lattice propagator. Move propagation pass from after erroneous
20417 path isolation to before erroneous path isolation.
20418 * tree-ssa-phionlycprop.c: Remove.
20419
20420 2019-04-24 Richard Biener <rguenther@suse.de>
20421
20422 PR middle-end/90213
20423 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20424 by size and BITS_PER_UNIT on poly-wide-ints.
20425
20426 2019-04-25 Richard Biener <rguenther@suse.de>
20427
20428 PR middle-end/90194
20429 * match.pd: Add pattern to simplify view-conversion of an
20430 empty constructor.
20431
20432 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20433
20434 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20435 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20436 for Go on 32 bit AIX.
20437 * config/rs6000/aix72.h: Likewise.
20438
20439 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20440
20441 PR target/90193
20442 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20443 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20444
20445 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20446
20447 PR target/89952
20448 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20449 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20450 for restored hard frame pointer.
20451 (s390_sched_dependencies_evaluation): Implement new target hook.
20452 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20453
20454 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20455
20456 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20457 * config/arc/arc.c (arc_init): Cleanup warning message.
20458 (arc_override_options): Likewise.
20459
20460 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20461
20462 PR target/90187
20463 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20464 a register if both if_true and if_false are MEMs.
20465
20466 PR tree-optimization/90208
20467 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20468 after labels of new_bb, not before them.
20469
20470 PR tree-optimization/90211
20471 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20472 which are not SSA_NAMEs.
20473
20474 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20475
20476 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20477 AArch64.
20478 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20479
20480 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20481
20482 PR rtl-optimization/87979
20483 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20484 not equal zero.
20485
20486 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20487
20488 PR rtl-optimization/84032
20489 * modulo-sched.c (ps_insn_find_column): Change condition so that
20490 branch will always be the last insn in a row inside partial
20491 schedule.
20492
20493 2019-04-23 Richard Biener <rguenther@suse.de>
20494
20495 PR debug/90131
20496 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20497 dest_single_pred_p argument.
20498 (remove_forwarder_block): Adjust.
20499 (remove_forwarder_block_with_phi): Likewise.
20500
20501 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20502 Bernd Edlinger <bernd.edlinger@hotmail.de>
20503 Jakub Jelinek <jakub@redhat.com>
20504
20505 PR target/89093
20506 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20507 if used with general-regs-only.
20508 (arm_conditional_register_usage): Don't add non-general regs if
20509 general-regs-only.
20510 (arm_valid_target_attribute_rec): Handle general-regs-only.
20511 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20512 general-regs-only.
20513 (TARGET_HARD_FLOAT_SUB): Define.
20514 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20515 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20516 (TARGET_REALLY_IWMMXT2): Likewise.
20517 * config/arm/arm.opt: Add -mgeneral-regs-only.
20518 * doc/extend.texi: Document ARM general-regs-only target.
20519 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20520
20521 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20522
20523 PR tree-optimization/90078
20524 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20525 checks for infinite_cost overflow.
20526
20527 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20528
20529 PR tree-optimization/90021
20530 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20531 and check univariate against it.
20532 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20533 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20534
20535 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20536
20537 PR target/90178
20538 Revert:
20539 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20540
20541 Revert the revert:
20542 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20543
20544 Revert:
20545 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20546
20547 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20548
20549 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20550
20551 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20552 names using operand format, rather than hard-wired.
20553 (speculation_barrier): Likewise.
20554
20555 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20556
20557 PR tree-optimization/88055
20558 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20559 (gen_one_condition): Use it if !HONOR_NANS.
20560
20561 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20562
20563 PR middle-end/90139
20564 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20565 assign_temp instead of gen_reg_rtx.
20566
20567 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20568
20569 PR translation/90118
20570 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20571 Add missing space before %<.
20572
20573 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20574
20575 PR rtl-optimization/87871
20576 * ira-lives.c (make_object_dead): Don't add conflicts to
20577 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20578
20579 2019-04-18 Martin Sebor <msebor@redhat.com>
20580
20581 PR middle-end/89797
20582 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20583 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20584 assuming type size fits in SHWI.
20585
20586 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20587
20588 PR ipa/85051
20589 * ipa-inline.c (flatten_function): New parameter UPDATE.
20590 (ipa_inline, early_inliner): Use it.
20591
20592 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20593
20594 * fold-const.c (int_const_binop): Return early on failure.
20595
20596 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20597
20598 PR middle-end/85164
20599 * combine.c (force_int_to_mode): Cast the argument rather than
20600 the result of known_alignment.
20601 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20602
20603 2019-04-18 Richard Biener <rguenther@suse.de>
20604
20605 PR debug/90131
20606 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20607 out from ...
20608 (remove_forwarder_block): ... here.
20609 (remove_forwarder_block_with_phi): Also move debug stmts here.
20610
20611 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20612
20613 PR translation/79183
20614 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20615 inform where appropriate.
20616
20617 2019-04-18 Richard Biener <rguenther@suse.de>
20618
20619 * tree.c (get_qualified_type): Put found type variants at the
20620 head of the variant list.
20621
20622 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20623
20624 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20625
20626 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20627
20628 PR target/90125
20629 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20630 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20631 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20632 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20633 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20634
20635 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20636
20637 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20638 even for allocno's with no conflicts.
20639 (print_conflicts): Print an extra newline.
20640
20641 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20642
20643 * auto-inc-dec.c (attempt_change): Set the alignment of the
20644 temporary memory to that of the original.
20645
20646 2019-04-17 Joao Moreira <jmoreira@suse.de>
20647
20648 * targhooks.c (default_print_patchable_function_entry): Emit
20649 __patchable_function_entries section with writable flags to allow
20650 relocation resolution.
20651
20652 2019-04-17 Jonny Grant <jg@jguk.org>
20653
20654 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20655
20656 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20657
20658 PR middle-end/90095
20659 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20660 on lowpart SUBREGs.
20661
20662 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20663
20664 * config/arc/arc.c (arc_init): Format diagnostic string.
20665 (arc_override_options): Likewise.
20666 (check_if_valid_regno_const): Likewise.
20667 (arc_reorg): Likewise.
20668
20669 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20670
20671 PR target/17108
20672 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20673 name.
20674 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20675 name.
20676 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20677 (*movdi_update1): Use Pmode.
20678 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20679 (movdi_<mode>_update_stack): Rename to ...
20680 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20681 use Pmode.
20682 (*movsi_update1): Use Pmode.
20683 (*movsi_update2): Use Pmode.
20684 (movsi_update): Rename to ...
20685 (movsi_<mode>_update): ... this. Use Pmode.
20686 (movsi_update_stack): Fix condition.
20687 (*movhi_update1): Use Pmode. Fix argument to
20688 avoiding_indexed_address_p.
20689 (*movhi_update2): Ditto.
20690 (*movhi_update3): Ditto.
20691 (*movhi_update4): Ditto.
20692 (*movqi_update1): Ditto.
20693 (*movqi_update2): Ditto.
20694 (*movqi_update3): Ditto.
20695 (*movsf_update1, *movdf_update1): Merge, rename to...
20696 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20697 avoiding_indexed_address_p. Add "size" attribute.
20698 (*movsf_update2, *movdf_update2): Merge, rename to...
20699 (*mov<mode>_update2): This. Ditto.
20700 (*movsf_update3): Use Pmode. Fix argument to
20701 avoiding_indexed_address_p.
20702 (*movsf_update4): Ditto.
20703 (allocate_stack): Simplify condition. Adjust pattern names.
20704
20705 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20706
20707 PR target/89093
20708 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20709 whitespace at the start of target attribute string.
20710
20711 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20712
20713 PR target/84369
20714 * config/rs6000/power9.md: Add store forwarding bypass.
20715
20716 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20717
20718 PR debug/89528
20719 * valtrack.c (dead_debug_insert_temp): Reset debug references
20720 to the return value of a call being removed.
20721
20722 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20723
20724 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20725 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20726 implement target hook.
20727 (arc_memory_move_cost): New function.
20728 (TARGET_REGISTER_MOVE_COST): Define.
20729 (TARGET_MEMORY_MOVE_COST): Likewise.
20730 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20731 (MEMORY_MOVE_COST): Likewise.
20732
20733 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20734
20735 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20736 (sibcall_value_insn): Likewise.
20737 * config/arc/constraints.md (Rs5): Remove.
20738
20739 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20740
20741 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20742 for last two fake registers.
20743 (arc_conditional_register_usage): Make sure fake frame and arg
20744 pointer regs are in general regs class.
20745 (FRAME_POINTER_MASK): Remove.
20746 (RETURN_ADDR_MASK): Remove.
20747 (arc_must_save_register): Use hard frame regnum.
20748 (frame_restore_reg): Use hard_frame_pointer_rtx.
20749 (arc_save_callee_saves): Likewise.
20750 (arc_restore_callee_saves): Likewise.
20751 (arc_save_callee_enter): Likewise.
20752 (arc_restore_callee_leave): Likewise.
20753 (arc_save_callee_milli): Likewise.
20754 (arc_eh_return_address_location): Likewise.
20755 (arc_check_multi): Use hard frame regnum.
20756 (arc_can_eliminate): Likewise.
20757 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20758 for register allocator.
20759 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20760 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20761 (FRAME_POINTER_REGNUM): Change it to a fake register.
20762 (HARD_FRAME_POINTER_REGNUM): Defined.
20763 (ARG_POINTER_REGNUM): Change it to a new fake register.
20764 (ELIMINABLE_REGS): Update.
20765 (REGISTER_NAMES): Update names.
20766 * config/arc/arc.md (LP_START): Remove.
20767 (LP_END): Likewise.
20768 (shift_si3_loop): Update pattern.
20769
20770 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20771
20772 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20773 to avoid delay slot scheduling.
20774 (arc_must_save_register): Don't save SP.
20775 * config/arc/arc.md (stack_tie): Remove.
20776 (UNSPEC_ARC_STKTIE): Likewise.
20777
20778 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20779 Shiva Chen <shiva0217@gmail.com>
20780
20781 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20782 code gen with large shift amount.
20783
20784 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20785
20786 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20787 subreg.
20788
20789 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20790
20791 PR target/90096
20792 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20793 print -m64/-mx32/-m32 if it is true.
20794 (ix86_debug_options, ix86_function_specific_print): Pass true as
20795 ADD_ABI_P to ix86_target_string.
20796 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20797 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20798 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20799
20800 PR rtl-optimization/90082
20801 * dce.c (can_delete_call): New function.
20802 (deletable_insn_p, mark_insn): Use it.
20803
20804 PR tree-optimization/90090
20805 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20806 throw internally.
20807 (is_division_by_square): Likewise. Formatting fix.
20808
20809 2019-04-16 Richard Biener <rguenther@suse.de>
20810
20811 PR tree-optimization/56049
20812 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20813 equality check if alias-set zero will prevail.
20814
20815 2019-04-15 Jeff Law <law@redhat.com>
20816
20817 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20818 size and alignment as unsigned.
20819
20820 2019-04-15 Richard Biener <rguenther@suse.de>
20821
20822 PR debug/90074
20823 * tree-loop-distribution.c (destroy_loop): Preserve correct
20824 debug info.
20825
20826 2019-04-15 Richard Biener <rguenther@suse.de>
20827
20828 PR tree-optimization/90071
20829 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20830 abnormal operands from def stmts.
20831
20832 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20833
20834 PR rtl-optimization/89794
20835 * combine.c (count_auto_inc): New function.
20836 (try_combine): Count how many auto_inc expressions there were in the
20837 original instructions. Ensure we have the same number in the new
20838 instructions. Remove the code that tried to ensure auto_inc side
20839 effects on i1 and i0 are not lost.
20840
20841 2019-04-15 Richard Biener <rguenther@suse.de>
20842
20843 PR ipa/88936
20844 * tree.h (auto_var_p): Declare.
20845 * tree.c (auto_var_p): New function, split out from ...
20846 (auto_var_in_fn_p): ... here.
20847 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20848 member.
20849 (new_var_info): Initialize it.
20850 (set_uids_in_ptset): Also set the shadow variable uid if required.
20851 (ipa_pta_execute): Postprocess points-to solutions assigning
20852 shadow variable uids for locals that may reach their containing
20853 function recursively.
20854 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20855 assert but instead check whether the points-to solution is
20856 a singleton.
20857
20858 2019-04-15 Martin Jambor <mjambor@suse.cz>
20859
20860 PR ipa/pr89693
20861 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20862 the thunk chain.
20863
20864 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20865
20866 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20867
20868 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20869 Kito Cheng <kito.cheng@gmail.com>
20870 Shiva Chen <shiva0217@gmail.com>
20871
20872 * config/nds32/nds32-md-auxiliary.c
20873 (nds32_legitimize_pic_address): Use new PIC pattern.
20874 (nds32_legitimize_tls_address): Use new TLS pattern.
20875 (nds32_output_symrel): New.
20876 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20877 (nds32_alloc_relax_group_id): Ditto.
20878 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20879 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20880 relax_group_id.
20881 (nds32_group_tls_insn): Ditto.
20882 (nds32_group_float_insns): Ditto.
20883 * config/nds32/nds32.md (tls_le): New.
20884 (sym_got): Ditto.
20885
20886 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20887
20888 * configure: Add nds32 target for dwarf2 debug_line checking.
20889 * configure.ac: Regenerated.
20890
20891 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20892
20893 PR lto/89358
20894 * ipa-devirt.c (skip_in_fields_list_p): New.
20895 (odr_types_equivalent_p): Use it.
20896
20897 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20898
20899 PR target/89093
20900 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20901 instead of strncmp when checking for thumb and arm. Formatting fixes.
20902
20903 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20904
20905 * doc/install.texi: Document --with-target-system-zlib.
20906
20907 2019-04-12 Martin Sebor <msebor@redhat.com>
20908
20909 PR c/88383
20910 PR c/89288
20911 PR c/89798
20912 PR c/89797
20913 * targhooks.c (default_vector_alignment): Avoid assuming
20914 argument fits in SHWI.
20915 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20916 a shift expression.
20917 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20918
20919 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20920
20921 PR rtl-optimization/89965
20922 * dce.c: Include rtl-iter.h.
20923 (struct check_argument_load_data): New type.
20924 (check_argument_load): New function.
20925 (find_call_stack_args): Check for loads from stack slots still tracked
20926 in sp_bytes and punt if any is found.
20927
20928 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20929
20930 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20931
20932 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20933 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20934
20935 2019-04-12 Martin Liska <mliska@suse.cz>
20936
20937 PR middle-end/89970
20938 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20939 in error message.
20940 (separate_attrs): Handle multiple 'default's.
20941 (expand_target_clones): Rework error handling code.
20942
20943 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20944
20945 PR target/87532
20946 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20947 mode of vector rather than mode of destination for move instruction.
20948 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20949 Use QI inner mode with V16QI vector mode.
20950
20951 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20952
20953 PR target/52726
20954 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20955 "invalid %%t operand" in output_operand_lossage message.
20956
20957 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20958
20959 * config/s390/predicates.md (permute_pattern_operand): New
20960 predicate.
20961 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20962 operand for the permute pattern.
20963 ("*vec_perm<mode>"): New insn definition.
20964 ("bswap<mode>"): Generate the permute pattern operand in the
20965 expander and perform the operand reloads for pre arch13 level
20966 already.
20967 ("*bswap<mode>_emu"): Rename to ...
20968 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20969 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20970 Add the USE operand for the permute pattern.
20971 ("*vec_set_bswap_vec<mode>"): Likewise.
20972
20973 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20974
20975 PR c/89946
20976 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20977 and gcc_unreachable if it fails, just call tree_to_uhwi which
20978 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20979 Start warning message with a lower-case letter. Formatting fixes.
20980
20981 PR rtl-optimization/90026
20982 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20983 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20984 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20985 in cfglayout mode, use emit_barrier_after_bb.
20986
20987 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20988
20989 PR rtl-optimization/87763
20990 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20991 New Instruction.
20992
20993 2019-04-11 Tom de Vries <tdevries@suse.de>
20994
20995 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20996 max macro using statement expression.
20997
20998 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20999
21000 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
21001 * xcoffout.c (xcoff_private_rodata_section_name): Define.
21002 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
21003 read_only_private_data_section using xcoff_private_rodata_section_name.
21004 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
21005
21006 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
21007
21008 PR target/90016
21009 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
21010
21011 2019-04-11 Jakub Jelinek <jakub@redhat.com>
21012
21013 PR rtl-optimization/89965
21014 * dce.c (sp_based_mem_offset): New function.
21015 (find_call_stack_args): Use sp_based_mem_offset.
21016
21017 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
21018
21019 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
21020
21021 2019-04-11 Richard Biener <rguenther@suse.de>
21022
21023 PR tree-optimization/90020
21024 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
21025 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
21026 * tree-ssa-pre.c (compute_avail): Use it to not put
21027 possibly trapping references after a call that might not
21028 return into EXP_GEN.
21029 * gcse.c (compute_hash_table_work): Do not elide
21030 marking a block containing a call if the call might not
21031 return.
21032
21033 2019-04-11 Richard Biener <rguenther@suse.de>
21034
21035 PR tree-optimization/90018
21036 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
21037 Test both SLP and interleaving variants.
21038
21039 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
21040
21041 * config/s390/8561.md: New file.
21042 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21043 Add arch13 cpu model.
21044 * config/s390/s390-opts.h (enum processor_type): Likewise.
21045 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
21046 (s390_get_unit_mask): Likewise.
21047 (s390_is_fpd): Likewise.
21048 (s390_is_fxd): Likewise.
21049 * config/s390/s390.h (s390_tune_attr): Likewise.
21050 * config/s390/s390.md: Include arch13 pipeline description.
21051 * config/s390/s390.opt: Add arch13.
21052
21053 2018-04-10 Steve Ellcey <sellcey@marvell.com>
21054
21055 PR rtl-optimization/87763
21056 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
21057 New prototype.
21058 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
21059 New function.
21060 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
21061 New instruction.
21062 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
21063 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
21064 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
21065 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
21066
21067 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
21068
21069 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
21070 "Although" in -fipa-icf documentation.
21071
21072 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
21073 of using multiple -g options.
21074
21075 2019-04-10 Martin Liska <mliska@suse.cz>
21076
21077 PR gcov-profile/89959
21078 * doc/gcov.texi: Make documentation of -x option
21079 more precise.
21080
21081 2019-04-10 Richard Biener <rguenther@suse.de>
21082
21083 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
21084 member.
21085 (DR_GROUP_SAME_DR_STMT): Remove.
21086 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
21087 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
21088 replace with assert.
21089 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
21090 (vect_record_grouped_load_vectors): Remove unreachable code.
21091
21092 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
21093
21094 PR target/90016
21095 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
21096 obsolete reference to N.
21097
21098 2019-04-10 Jakub Jelinek <jakub@redhat.com>
21099
21100 PR middle-end/90025
21101 * expr.c (store_expr): Set properly size on the MEM passed to
21102 clear_storage.
21103
21104 PR c++/90010
21105 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
21106 with strlen in between hostsz-3 and hostsz-1 inclusive when no
21107 translation is needed, and when translation is needed, only append
21108 ... if the string length is hostsz or more bytes long. Avoid using
21109 strncpy or strcat.
21110
21111 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
21112
21113 PR target/90024
21114 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
21115 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
21116 into three.
21117 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
21118 differences directly.
21119 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
21120
21121 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21122
21123 PR translation/90011
21124 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21125 from diagnostics.
21126 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
21127 diagnostics.
21128 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21129 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
21130 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
21131 trailing space from -gsplit-dwarf diagnostics.
21132
21133 PR tree-optimization/89998
21134 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
21135 instead of integer_type_node if possible, don't add ranges if return
21136 type is not compatible with int.
21137 * gimple-fold.c (gimple_fold_builtin_sprintf,
21138 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
21139 integer_type_node.
21140
21141 2019-04-09 Martin Liska <mliska@suse.cz>
21142
21143 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
21144 * doc/install.texi: Document the new config.
21145
21146 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
21147
21148 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21149 use gimple_expr_type for load and store calls. Skip over the
21150 condition argument in a conditional internal function.
21151 Protect use of TREE_INT_CST_LOW.
21152
21153 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21154
21155 PR target/90015
21156 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21157 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21158 trailing period from it too.
21159
21160 2019-04-08 wu yuan <wuyuan5@huawei.com>
21161
21162 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21163 * config/aarch64/aarch64.md : Add "tsv110.md"
21164 * config/aarch64/tsv110.md: New file.
21165
21166 2019-04-08 Richard Biener <rguenther@suse.de>
21167
21168 PR tree-optimization/90006
21169 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21170 calls like lrint.
21171
21172 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21173
21174 PR target/83033
21175 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21176 construction.
21177 (fma_root_node): Likewise.
21178 (func_fma_steering): Likewise.
21179
21180 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21181
21182 PR rtl-optimization/89865
21183 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21184
21185 PR rtl-optimization/89865
21186 * config/i386/i386.md
21187 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21188 numbers not to clash with the additional operands[4].
21189 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21190 with extra register copy in the middle.
21191
21192 2019-04-08 Martin Liska <mliska@suse.cz>
21193
21194 PR gcov-profile/89961
21195 * doc/gcov.texi: Document data_file.
21196 * gcov.c (generate_results): Add data_info into JSON output.
21197
21198 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21199
21200 PR tree-optimization/89725
21201 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21202 loop's chrec as invariant symbol.
21203 * tree-chrec.h (chrec_contains_symbols): New parameter.
21204 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21205 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21206 function of loops not in DDR's loop_nest.
21207 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21208
21209 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21210
21211 PR target/89623
21212 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21213 Mask.
21214
21215 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21216
21217 PR target/89945
21218 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21219 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21220
21221 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21222
21223 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21224 targetm.fixed_condition_code_regs.
21225
21226 2019-04-05 Richard Biener <rguenther@suse.de>
21227
21228 PR debug/89892
21229 PR debug/89905
21230 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21231 debug bind stmts but reset them if they are not valid at the
21232 destination.
21233
21234 2019-04-05 Martin Liska <mliska@suse.cz>
21235
21236 PR translation/89936
21237 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21238 order to wrap keywords or arguments.
21239 * collect2.c (main): Likewise.
21240 (scan_prog_file): Likewise.
21241 (scan_libraries): Likewise.
21242 * common/config/riscv/riscv-common.c
21243 (riscv_subset_list::parsing_subset_version): Likewise.
21244 (riscv_subset_list::parse_std_ext): Likewise.
21245 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21246 Likewise.
21247 * config/arm/arm.c (arm_option_override): Likewise.
21248 * config/cris/cris.c (cris_print_operand): Likewise.
21249 * config/darwin-c.c (darwin_pragma_options): Likewise.
21250 (darwin_pragma_unused): Likewise.
21251 (darwin_pragma_ms_struct): Likewise.
21252 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21253 * config/i386/i386.c (print_reg): Likewise.
21254 (ix86_print_operand): Likewise.
21255 * config/i386/xm-djgpp.h: Likewise.
21256 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21257 * config/m32c/m32c.c (m32c_option_override): Likewise.
21258 * config/msp430/msp430.c (msp430_option_override): Likewise.
21259 * config/nds32/nds32.c (nds32_option_override): Likewise.
21260 * config/nvptx/mkoffload.c (main): Likewise.
21261 * config/rx/rx.c (rx_print_operand): Likewise.
21262 (valid_psw_flag): Likewise.
21263 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21264 (vms_pragma_nomember_alignment): Likewise.
21265 (vms_pragma_extern_model): Likewise.
21266 * lto-wrapper.c (compile_offload_image): Likewise.
21267 * omp-offload.c (oacc_parse_default_dims): Likewise.
21268 * symtab.c (symtab_node::verify_base): Likewise.
21269 * tlink.c (recompile_files): Likewise.
21270 (start_tweaking): Likewise.
21271 * tree-profile.c (parse_profile_filter): Likewise.
21272
21273 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21274
21275 PR tree-optimization/89956
21276 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21277 multiple negates of the same value.
21278
21279 2019-04-04 Martin Sebor <msebor@redhat.com>
21280
21281 PR middle-end/89957
21282 PR middle-end/89911
21283 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21284 have the same precision since the function crashes otherwise.
21285 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21286 has non-zero arguments.
21287
21288 2019-04-04 Martin Sebor <msebor@redhat.com>
21289
21290 PR middle-end/89934
21291 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21292 out if the number of arguments is less than expected.
21293
21294 2019-04-04 Jeff Law <law@redhat.com>
21295
21296 PR rtl-optimization/89399
21297 * ree.c (combine_set_extension): Use single_set rather than
21298 digging into PATTERN for items on the candidate list.
21299 (combine_reaching_defs): Likewise.
21300
21301 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21302
21303 PR rtl-optimization/46590
21304 * loop-invariant.c (find_defs): Move df_remove_problem and
21305 df_process_deferred_rescans to move_invariants.
21306 Move df_live_add_problem and df_live_set_all_dirty calls
21307 to move_invariants.
21308 (move_invariants): Likewise.
21309 (move_loop_invariants): Likewise, making the df_live calls
21310 conditional on -O. Remove the problem again if we added it
21311 locally.
21312
21313 2019-04-03 qing zhao <qing.zhao@oracle.com>
21314
21315 PR tree-optimization/89730
21316 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21317 -flive-patching=inline-only-static.
21318 (can_inline_edge_by_limits_p): Add the checking for
21319 -flive-patching=inline-only-static and grant always_inline
21320 even when -flive-patching=inline-only-static is specified.
21321
21322 2019-04-03 Jeff Law <law@redhat.com>
21323
21324 PR rtl-optimization/81025
21325 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21326
21327 2019-04-03 Richard Biener <rguenther@suse.de>
21328
21329 PR tree-optimization/84101
21330 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21331 regs.h for hard_regno_nregs.
21332 (cfun_returns): New helper.
21333 (vect_model_store_cost): When vectorizing a store to a decl
21334 we return and the function ABI returns in a multi-reg location
21335 account for the possible spilling that will happen.
21336
21337 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21338
21339 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21340 displacement addresses for vector mode operands.
21341
21342 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21343
21344 * config/arc/arc.c (GMASK_LEN): Define.
21345 (arc_restore_callee_saves): Restore first blink when
21346 !optimize_size.
21347
21348 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21349
21350 * doc/extend.texi: Add deprecated comment on sign-return-address
21351 function attribute and add mbranch-protection.
21352 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21353
21354 2019-04-03 Richard Biener <rguenther@suse.de>
21355
21356 PR lto/89896
21357 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21358 the all target phony.
21359
21360 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21361
21362 PR target/89902
21363 PR target/89903
21364 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21365 Return false for variable DImode shifts.
21366 (dimode_scalar_chain::compute_convert_gain): Do not handle
21367 register count operand in variable DImode shifts.
21368 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21369 count argument of a variable shift instruction to a vector register.
21370 (dimode_scalar_chain::convert_reg): Remove support to convert
21371 count argument of a variable shift instruction.
21372
21373 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21374
21375 PR rtl-optimization/84206
21376 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21377 iterating over loop headers.
21378
21379 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21380
21381 PR rtl-optimization/85876
21382 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21383 beyond the original fence.
21384
21385 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21386
21387 * config.gcc: Mark spu* targets as deprecated/obsolete.
21388
21389 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21390
21391 * config/s390/s390-builtin-types.def: New builtin function type
21392 definitions. Remove unused types.
21393 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21394 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21395 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21396 overloaded builtins.
21397 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21398 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21399 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21400 (vec_double, vec_signed, vec_unsigned): Define to use the new
21401 overloaded builtins.
21402 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21403 Remove expanders.
21404
21405 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21406
21407 * config/s390/s390-builtin-types.def: New builtin function type
21408 definitions.
21409 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21410 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21411 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21412 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21413 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21414 constant definitions.
21415 * config/s390/vecintrin.h (vec_search_string_cc)
21416 (vec_search_string_until_zero_cc): New builtin name definitions.
21417 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21418 expanders.
21419 ("vec_vstrs<mode>"): New insn definition.
21420
21421 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21422
21423 * config/s390/s390-builtin-types.def: Add new builtin function
21424 types.
21425 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21426 New overloaded builtins.
21427 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21428 s390_vsrd.
21429 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21430 (UNSPEC_VEC_SLDBYTE): ... this.
21431 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21432 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21433 definitions.
21434 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21435 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21436 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21437
21438 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21439
21440 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21441 New insn definition.
21442 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21443 * config/s390/vector.md (V_HW_HSD): ... here.
21444
21445 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21446
21447 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21448 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21449 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21450 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21451 New insn definitions.
21452
21453 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21454
21455 * config/s390/s390-builtin-types.def: Add new builtin function type.
21456 * config/s390/s390-builtins.def: Add overloaded builtin
21457 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21458 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21459 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21460 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21461 ("eltswap<mode>"): New expander.
21462 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21463 insn definitions.
21464
21465 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21466
21467 * config/s390/s390-builtin-types.def: Add new builtin function types.
21468 * config/s390/s390-builtins.def: Add overloaded builtin
21469 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21470 instructions.
21471 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21472 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21473 ("bswap<mode>"): New expander.
21474 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21475
21476 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21477
21478 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21479 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21480 vector builtin version number in __VEC__.
21481
21482 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21483
21484 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21485 iterators.
21486 (SFSI): New mode attribute.
21487 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21488 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21489 rename to ...
21490 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21491 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21492 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21493 ("floatsi<mode>2"): Add wcefb instruction.
21494
21495 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21496
21497 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21498 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21499 mode iterators.
21500 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21501 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21502 support 32 bit fp-int conversions. Rename to ...
21503 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21504 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21505 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21506 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21507 ... to these.
21508
21509 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21510
21511 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21512 if-then-else constructs if we can use the select instruction.
21513 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21514
21515 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21516
21517 * config/s390/s390.md ("*popcountdi_arch13_cc")
21518 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21519 definition.
21520 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21521 Append _z196 to make it ...
21522 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21523 ("popcounthi2_z196"): ... this.
21524 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21525 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21526
21527 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21528
21529 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21530 certain compares for arch13 in order to make use of the condition
21531 code result produced by the new instructions.
21532 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21533 nxrk, and nxgrk instruction patterns.
21534 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21535 (inv_no): Add new code iterator together with some attributes.
21536 ("*andc_split_<mode>"): Disable splitter for arch13.
21537 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21538 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21539 ("*<ANDOR:bitops_name>c<GPR:mode>")
21540 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21541 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21542 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21543 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21544
21545 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21546
21547 * common/config/s390/s390-common.c (processor_flags_table): New
21548 entry for arch13.
21549 * config.gcc: Support arch13 with the --with-arch= configure flag.
21550 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21551 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21552 * config/s390/s390.c (s390_get_sched_attrmask)
21553 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21554 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21555 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21556 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21557 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21558 definitions.
21559 * config/s390/s390.opt: Support arch13 as processor type in
21560 command line options.
21561
21562 2019-04-02 Martin Liska <mliska@suse.cz>
21563
21564 PR translation/89912
21565 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21566 Fix param description of graphite-max-arrays-per-scop.
21567
21568 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21569
21570 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21571 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21572 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21573
21574 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21575
21576 PR rtl-optimization/85412
21577 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21578 sel_sched_region_1, not after.
21579
21580 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21581
21582 PR rtl-optimization/86928
21583 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21584 compute_live if necessary.
21585 (sel_redirect_edge_and_branch): Likewise.
21586
21587 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21588
21589 PR rtl-optimization/89865
21590 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21591 register if it is a part of small class.
21592
21593 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21594
21595 PR rtl-optimization/87273
21596 * sel-sched-ir.c (merge_fences): Remove assert.
21597
21598 2019-04-01 Richard Biener <rguenther@suse.de>
21599
21600 PR tree-optimization/46590
21601 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21602 (dom_walker::m_reachability): Add in place of...
21603 (dom_walker::m_skip_unreachable_blocks): ...this.
21604 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21605 Move complex initialization ...
21606 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21607 lazily and initialize edge flags on each invocation.
21608 (dom_walker::bb_reachable): Use m_reachability.
21609
21610 2019-04-01 Martin Liska <mliska@suse.cz>
21611
21612 PR driver/89861
21613 * opt-suggestions.c (option_proposer::build_option_suggestions):
21614 Add variant without any argument in order to provide better
21615 hints.
21616
21617 2019-04-01 Richard Biener <rguenther@suse.de>
21618
21619 PR c/71598
21620 * gimple.c: Include langhooks.h.
21621 (gimple_get_alias_set): Treat enumeral types as the underlying
21622 integer type.
21623
21624 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21625 Eric Botcazou <ebotcazou@adacore.com>
21626
21627 PR rtl-optimization/89862
21628 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21629 that operates on the full registers for WORD_REGISTER_OPERATIONS
21630 architectures.
21631
21632 2019-03-29 Jim Wilson <jimw@sifive.com>
21633
21634 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21635 Clear MASK_RVC and then set if C subset supported.
21636
21637 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21638
21639 PR c/89872
21640 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21641 non-addressable complit into its initializer if it is volatile.
21642
21643 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21644
21645 * opts-common.c (integral_argument): Set errno properly in one case.
21646
21647 2019-03-29 Martin Liska <mliska@suse.cz>
21648
21649 * doc/invoke.texi: Remove -Wchkp from documentation.
21650
21651 2019-03-29 Martin Liska <mliska@suse.cz>
21652
21653 * dbgcnt.c (print_limit_reach): New function.
21654 (dbg_cnt): Use it.
21655
21656 2019-03-29 Martin Liska <mliska@suse.cz>
21657
21658 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21659 (dbg_cnt_process_opt): Parse first tokens aas
21660 dbg_cnt_process_single_pair is also using strtok.
21661
21662 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21663
21664 PR rtl-optimization/87485
21665 * function.c (expand_function_end): Move stack_protect_epilogue
21666 before loading of return value into hard register(s).
21667
21668 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21669
21670 PR middle-end/89621
21671 * tree-inline.h (struct copy_body_data): Add
21672 dont_remap_vla_if_no_change flag.
21673 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21674 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21675 and remap_type_2 returns false.
21676 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21677 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21678 only from where it is copied to nested contexts.
21679
21680 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21681
21682 PR target/89865
21683 * config/i386/i386.md (RMW operation with LEA peephole):
21684 Use LEAMODE mode attribute instead of SWI mode iterator for
21685 LEA pattern.
21686
21687 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21688
21689 PR target/89848
21690 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21691 Also process XEXP (src, 0) of a shift insn.
21692
21693 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21694
21695 PR middle-end/89725
21696 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21697 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21698
21699 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21700
21701 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21702 test.
21703 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21704 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21705 immediately after first one with df_analyze in between, but rather
21706 process all bbs, queueing ones that need second pass in a worklist,
21707 df_analyze, process queued debug insn changes and if second pass is
21708 needed, process bbs from worklist, df_analyze, process queued debug
21709 insns again.
21710
21711 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21712 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21713 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21714
21715 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21716
21717 PR c/79022
21718 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21719 definition.
21720
21721 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21722
21723 PR target/85667
21724 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21725 function for 32-bit MS_ABI.
21726 (function_value_ms_32): New function.
21727
21728 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21729
21730 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21731 (movdi): Call gen_movdi_symbol_save_scc.
21732 (gen_movdi_symbol_save_scc): New insn and split.
21733
21734 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21735
21736 PR rtl-optimization/89313
21737 * function.c (matching_constraint_num): New static function.
21738 (match_asm_constraints_1): Use it. Fixup white space and comment.
21739 Don't replace inputs with non-matching constraints which conflict
21740 with early clobber outputs.
21741
21742 2019-03-27 Jeff Law <law@redhat.com>
21743
21744 PR rtl-optimization/87761
21745 PR rtl-optimization/89826
21746 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21747 slightly later.
21748 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21749 note problem to get REG_DEAD/REG_UNUSED notes updated.
21750
21751 2019-03-27 Richard Biener <rguenther@suse.de>
21752
21753 PR tree-optimization/89463
21754 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21755 queue edges to remove.
21756 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21757 dead stmts. Delay edge removal until PHIs are removed to
21758 make debug-stmt creation not confused by seemingly degenerate
21759 PHIs.
21760
21761 2019-03-27 Alan Modra <amodra@gmail.com>
21762
21763 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21764 throughout file.
21765 * config/rs6000/darwin.h: Likewise.
21766 * config/rs6000/rs6000.c: Likewise.
21767
21768 2019-03-27 Alan Modra <amodra@gmail.com>
21769
21770 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21771 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21772
21773 2019-03-26 Andrew Waterman <andrew@sifive.com>
21774 Jim Wilson <jimw@sifive.com>
21775
21776 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21777 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21778 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21779 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21780 (generic_alu): Add auipc to type list.
21781 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21782 (riscv_microarchitecture): Declare.
21783 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21784 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21785 field.
21786 (riscv_microarchitecture): New.
21787 (sifive_7_tune_info): New.
21788 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21789 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21790 entries.
21791 (riscv_store_data_bypass_p): New.
21792 (riscv_option_override): Set riscv_microarchitecture from
21793 cpu->microarchitecture.
21794 * config/riscv/riscv.md: Include sifive-7.md.
21795 (type): Add auipc.
21796 (tune): New.
21797 (auipc<mode>): Change type to auipc.
21798 (restore_stack_nonlocal): New.
21799 * config/riscv/sifive-7.md: New.
21800 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21801
21802 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21803
21804 PR target/89827
21805 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21806 Also process XEXP (src, 0) of a shift insn.
21807
21808 2019-03-26 Richard Biener <rguenther@suse.de>
21809
21810 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21811 (copy_debug_stmt): Likewise.
21812 (expand_call_inline): Likewise.
21813 (copy_bb): Avoid redundant lookup & set of gimple_block.
21814 * gimple-low.c (lower_gimple_return): Likewise.
21815 (lower_builtin_setjmp): Likewise.
21816
21817 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21818
21819 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21820 is constant 0, turn into static const data member initialized to false.
21821 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21822 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21823
21824 2019-03-26 Jason Merrill <jason@redhat.com>
21825 Jakub Jelinek <jakub@redhat.com>
21826
21827 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21828 method.
21829 (mem_alloc_description::release_object_overhead): Fix comment typos.
21830 * hash-table.h (hash_table::~hash_table): Call
21831 release_instance_overhead only if m_entries is non-NULL, otherwise
21832 call unregister_descriptor.
21833
21834 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21835
21836 PR tree-optimization/81740
21837 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21838 In case of outer loop vectorization, check for backward dependence
21839 at the inner loop if outer loop dependence is reversed.
21840
21841 2019-03-26 Alan Modra <amodra@gmail.com>
21842
21843 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21844 rs6000_vector_mem init. Correct wI and wJ comment.
21845
21846 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21847
21848 PR rtl-optimization/88347
21849 PR rtl-optimization/88423
21850 * sched-deps.c (sched_analyze_insn): Take into account that for
21851 tablejumps the barrier appears after a label and a jump_table_data.
21852
21853 2019-03-25 Martin Sebor <msebor@redhat.com>
21854
21855 PR c/89812
21856 * c-common.c (check_user_alignment): Rename local. Correct maximum
21857 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21858 convert it to UHWI when it fits.
21859
21860 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21861
21862 PR debug/86964
21863 * dwarf2out.c (premark_used_variables): New function.
21864 (prune_unused_types_walk): Do not mark not premarked external
21865 variables.
21866 (prune_unused_types): Call premark_used_variables.
21867
21868 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21869
21870 PR rtl-optimization/89676
21871 * lra-constraints.c (curr_insn_transform): Do match reload for
21872 early clobbers when the match was successful only for different
21873 registers.
21874
21875 2019-03-25 Martin Sebor <msebor@redhat.com>
21876
21877 * doc/extend.texi (Common Type Attributes): Document vector_size.
21878 (Common Variable Attributes): Mention size constraint. Correct
21879 quoting and typos.
21880 (Vector Extensions): Use @dfn when defining bas type. Clarify
21881 base type and size constraints.
21882
21883 2019-03-25 Richard Biener <rguenther@suse.de>
21884
21885 PR tree-optimization/89789
21886 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21887 changes from non-undefined back to undefined.
21888
21889 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21890
21891 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21892 heap string and a gc string, but since this variable is unknown to
21893 ggc the gc string might get reused and corrupted. Fixed by always
21894 using a heap string.
21895
21896 2019-03-25 Richard Biener <rguenther@suse.de>
21897
21898 PR tree-optimization/89779
21899 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21900 to remove IV defs, delay actual removal.
21901 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21902 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21903 very end, properly also reset loop control IV information.
21904
21905 2019-03-25 Richard Biener <rguenther@suse.de>
21906
21907 PR tree-optimization/89802
21908 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21909 move EH data to folded stmt.
21910
21911 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21912
21913 * config/s390/s390-builtin-types.def: Remove few unused types and
21914 fix sort order for others.
21915
21916 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21917
21918 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21919 expected and found types with -mdebug during builtin matching.
21920
21921 2019-03-25 Richard Biener <rguenther@suse.de>
21922
21923 PR middle-end/89790
21924 * fold-const.c (operand_equal_p): Revert last change with
21925 updated comment.
21926
21927 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21928
21929 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21930 notes for the result of the __tls_get_addr calls.
21931 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21932
21933 2019-03-24 Jeff Law <law@redhat.com>
21934
21935 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21936
21937 PR rtl-optimization/87761
21938 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21939 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21940 as needed.
21941 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21942 rescans. Reprocess blocks as needed, calling df_analyze before
21943 reprocessing. Always call df_analyze before fixing up debug bind
21944 insns.
21945
21946 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21947
21948 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21949 big endian.
21950
21951 2019-03-22 Andrew Pinski <apinski@marvell.com>
21952
21953 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21954 attrribute for uxtw.
21955
21956 2019-03-26 Jeff Law <law@redhat.com>
21957
21958 PR rtl-optimization/87761
21959 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21960 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21961 (mips_split_move): Accept new INSN argument. Try to forward SRC
21962 into the next instruction.
21963 (mips_split_move_insn): Pass INSN through to mips_split_move.
21964
21965 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21966
21967 PR rtl-optimization/89676
21968 * lra-constraints.c (curr_insn_transform): Do match reload for
21969 early clobbers even if the match was successful.
21970
21971 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21972
21973 PR c++/87481
21974 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21975
21976 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21977
21978 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21979
21980 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21981
21982 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21983 <avx512>_fmsub_<mode>_mask3<round_name>,
21984 <avx512>_fnmadd_<mode>_mask3<round_name>,
21985 <avx512>_fnmsub_<mode>_mask3<round_name>,
21986 avx512f_vmfmadd_<mode>_mask3<round_name>,
21987 avx512f_vmfmsub_<mode>_mask3<round_name>,
21988 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21989 instead of register_operand and %v instead of v for match_operand 1.
21990 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21991 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21992 <round_nimm_predicate> instead of register_operand and %v instead of v
21993 for match_operand 1.
21994
21995 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21996 <avx512>_fmadd_<mode>_mask3<round_name>,
21997 <avx512>_fmsub_<mode>_mask<round_name>,
21998 <avx512>_fmsub_<mode>_mask3<round_name>,
21999 <avx512>_fnmadd_<mode>_mask<round_name>,
22000 <avx512>_fnmadd_<mode>_mask3<round_name>,
22001 <avx512>_fnmsub_<mode>_mask<round_name>,
22002 <avx512>_fnmsub_<mode>_mask3<round_name>,
22003 <avx512>_fmaddsub_<mode>_mask<round_name>,
22004 <avx512>_fmaddsub_<mode>_mask3<round_name>,
22005 <avx512>_fmsubadd_<mode>_mask<round_name>,
22006 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
22007 <round_nimm_predicate> instead of nonimmediate_operand.
22008 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
22009 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
22010 Use register_operand instead of <round_nimm_predicate> for the
22011 operand that needs to match output.
22012 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
22013 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
22014 Likewise. Formatting fixes.
22015
22016 PR target/89784
22017 * config/i386/i386.c (enum ix86_builtins): Remove
22018 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
22019 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
22020 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
22021 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
22022 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
22023 __builtin_ia32_vfmsubss3_mask3): New builtins.
22024 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
22025 avx512f_vmfmadd_<mode>_mask3<round_name>,
22026 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
22027 *avx512f_vmfmsub_<mode>_mask<round_name>,
22028 avx512f_vmfmsub_<mode>_mask3<round_name>,
22029 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
22030 *avx512f_vmfnmadd_<mode>_mask<round_name>,
22031 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
22032 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
22033 *avx512f_vmfnmsub_<mode>_mask<round_name>,
22034 avx512f_vmfnmsub_<mode>_mask3<round_name>,
22035 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
22036 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
22037 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
22038 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
22039 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
22040 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
22041 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
22042 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
22043 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
22044 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
22045 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
22046 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
22047 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
22048 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
22049 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
22050 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
22051 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
22052 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
22053 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
22054 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
22055 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
22056 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
22057
22058 2019-03-21 Martin Sebor <msebor@redhat.com>
22059
22060 PR tree-optimization/89350
22061 * builtins.c (compute_objsize): Also ignore offsets whose upper
22062 bound is negative.
22063 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
22064 (builtin_memref::builtin_memref): Initialize new member.
22065 Allow EXPR to be null.
22066 (builtin_memref::extend_offset_range): Replace local with a member.
22067 Avoid assuming pointer offsets are unsigned.
22068 (builtin_memref::set_base_and_offset): Determine base object
22069 before computing offset range.
22070 (builtin_access::builtin_access): Handle memset.
22071 (builtin_access::generic_overlap): Replace local with a member.
22072 (builtin_access::strcat_overlap): Same.
22073 (builtin_access::overlap): Same.
22074 (maybe_diag_overlap): Same.
22075 (maybe_diag_access_bounds): Same.
22076 (wrestrict_dom_walker::check_call): Handle memset.
22077 (check_bounds_or_overlap): Same.
22078
22079 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
22080 Jakub Jelinek <jakub@redhat.com>
22081
22082 PR lto/89692
22083 * tree.c (fld_type_variant, fld_incomplete_type_of,
22084 fld_process_array_type): Call fld->pset.add and don't call
22085 add_tree_to_fld_list if it returns true.
22086 (free_lang_data_in_type): Similarly with self-recursive call. Purge
22087 non-marked types from TYPE_NEXT_VARIANT list.
22088 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
22089
22090 2019-03-21 Jakub Jelinek <jakub@redhat.com>
22091
22092 * hash-table.h (hash_table): Add Lazy template parameter defaulted
22093 to false, if true, don't alloc_entries during construction, but defer
22094 it to the first method that needs m_entries allocated.
22095 (hash_table::hash_table, hash_table::~hash_table,
22096 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
22097 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
22098 hash_table::clear_slot, hash_table::traverse_noresize,
22099 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
22100 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
22101 false.
22102 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
22103 NO_INSERT instead of find_with_hash.
22104 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
22105 hash_set::m_table): Add Lazy to template params of hash_table.
22106 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
22107 * attribs.c (test_attribute_exclusions): Likewise.
22108 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
22109 hash_set. Add tests for hash_set with Lazy = true.
22110
22111 2019-03-21 Richard Biener <rguenther@suse.de>
22112
22113 PR tree-optimization/89779
22114 * tree.c (tree_nop_conversion): Consolidate and fix defensive
22115 checks with respect to released SSA names now having error_mark_node
22116 type.
22117 * fold-const.c (operand_equal_p): Likewise.
22118
22119 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
22120
22121 PR target/89775
22122 * config/s390/s390.c (global_not_special_regno_p): Move to make it
22123 available to ...
22124 (s390_optimize_register_info): Use global_not_special_regno_p to
22125 check for global regs.
22126
22127 2019-03-20 Jakub Jelinek <jakub@redhat.com>
22128
22129 PR target/89752
22130 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
22131 update this_alternative nor this_alternative_set.
22132
22133 2019-03-19 Jim Wilson <jimw@sifive.com>
22134
22135 PR target/89411
22136 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
22137 align, size, offset. Use them to handle a BLKmode reference. Update
22138 comment.
22139 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
22140
22141 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22142
22143 PR rtl-optimization/89768
22144 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
22145 instead of GEN_INT.
22146 (unroll_loop_runtime_iterations): Likewise.
22147
22148 2019-03-19 Martin Sebor <msebor@redhat.com>
22149
22150 PR tree-optimization/89644
22151 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22152 rather than endptr as an indicator of nul-termination.
22153
22154 PR tree-optimization/89644
22155 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22156 arrays in determining sequence sizes in strncpy and stpncpy.
22157
22158 2019-03-19 Martin Liska <mliska@suse.cz>
22159
22160 PR middle-end/89737
22161 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22162 unlikely_edges if there's an edge that belongs to both these sets.
22163
22164 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22165
22166 PR target/89746
22167 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22168 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22169 go via a stack temporary.
22170
22171 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22172
22173 PR target/89378
22174 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22175 instead of gen_rtx_SUBREG.
22176 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22177
22178 2019-03-19 Richard Biener <rguenther@suse.de>
22179
22180 PR debug/88389
22181 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22182
22183 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22184
22185 PR lto/87809
22186 PR lto/89335
22187 * tree.c (free_lang_data_in_decl): Do not free context of C++
22188 destrutors.
22189
22190 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22191
22192 PR target/89506
22193 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22194 subs for the first alternative except when operands[3] is 1.
22195
22196 PR target/89752
22197 * gimplify.c (gimplify_asm_expr): For output argument with
22198 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22199 diagnose error.
22200
22201 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22202
22203 PR rtl-optimization/89753
22204 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22205 explicit unrolling factor even more robust.
22206
22207 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22208
22209 PR target/89726
22210 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22211 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22212 signed zeros, do another copysign after the compensation.
22213
22214 2019-03-18 Martin Sebor <msebor@redhat.com>
22215
22216 PR tree-optimization/89720
22217 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22218 more conservatively, the same as anti-range.
22219
22220 2019-03-18 Richard Biener <rguenther@suse.de>
22221
22222 PR middle-end/88945
22223 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22224 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22225 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22226 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22227
22228 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22229
22230 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22231 Extend queue to 1024 entries.
22232 Add "consumed" field.
22233 (gomp_print_output): Remove print_index parameter.
22234 Add final parameter.
22235 Change limit to unsigned.
22236 Use consumed field to implement circular buffer.
22237 Detect interrupted print in final pass.
22238 Flush output at the end.
22239 (run): Update gomp_print_output usage.
22240 (main): Initialize kernargs->output_data.consumed.
22241
22242 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22243
22244 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22245 calculation of the minimum number of scalar iterations for
22246 fully-predicated loops.
22247
22248 2019-03-18 Martin Jambor <mjambor@suse.cz>
22249
22250 PR tree-optimization/89546
22251 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22252 any propagation to its children took place.
22253
22254 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22255
22256 PR target/89627
22257 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22258 parameter, and make use of it.
22259 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22260
22261 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22262
22263 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22264 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22265 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22266 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22267 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22268 match what the ops is doing.
22269 (push_multi_fp_blink): Likewise.
22270 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22271 compiling for size and elf target.
22272 (arc_save_callee_enter): Adjust note to match what enter/leave
22273 operation does.
22274
22275 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22276
22277 * config/arc/arc.md (tst_movb): Fix constraint.
22278
22279 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22280
22281 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22282
22283 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22284
22285 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22286 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22287 reg_alloc_order references.
22288 (size_alloc_order): Define.
22289 (arc_adjust_reg_alloc_order): New function.
22290 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22291 order.
22292 (ADJUST_REG_ALLOC_ORDER): Define.
22293 (HONOR_REG_ALLOC_ORDER): Likewise.
22294
22295 2019-03-18 Richard Biener <rguenther@suse.de>
22296
22297 PR target/87561
22298 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22299 loads and stores a bit more.
22300
22301 2019-03-18 Richard Biener <rguenther@suse.de>
22302
22303 PR target/87561
22304 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22305 load pessimization to stores as well.
22306
22307 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22308
22309 PR middle-end/86979
22310 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22311 successor, use NULL as its av set.
22312
22313 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22314
22315 PR rtl-optimization/89721
22316 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22317
22318 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22319
22320 PR target/87532
22321 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22322 When handling vec_extract, use modular arithmetic to allow
22323 constant selectors greater than vector length.
22324 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22325 V1TImode vectors to have constant selector values greater than 0.
22326 Use modular arithmetic to compute vector index.
22327 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22328 index for in-memory vectors. Correct code generation for
22329 in-register vectors.
22330 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22331 compute index.
22332
22333 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22334
22335 PR c++/88534
22336 PR c++/88537
22337 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22338 VAR_DECL args.
22339
22340 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22341
22342 PR c++/89709
22343 * tree.c (inchash::add_expr): Strip any location wrappers.
22344 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22345 after hash verification.
22346
22347 PR debug/89704
22348 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22349 SIGN_EXTEND and ZERO_EXTEND.
22350
22351 2019-03-14 Jason Merrill <jason@redhat.com>
22352 Jakub Jelinek <jakub@redhat.com>
22353
22354 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22355 than if is_empty (*slot).
22356 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22357 existing elt and for elt removal.
22358 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22359 of already removed elt.
22360
22361 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22362
22363 PR target/89650
22364 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22365 REG_EH_REGION note.
22366
22367 2019-03-14 Martin Liska <mliska@suse.cz>
22368
22369 PR other/89712
22370 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22371
22372 2019-03-14 Richard Biener <rguenther@suse.de>
22373
22374 PR target/89711
22375 * config/i386/i386.c (make_resolver_func): Properly set
22376 DECL_CONTEXT on the RESULT_DECL.
22377 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22378
22379 2019-03-14 Richard Biener <rguenther@suse.de>
22380
22381 * gimple-pretty-print.c: Include cfgloop.h.
22382 (dump_gimple_phi): Adjust.
22383 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22384 (pp_cfg_jump): Adjust.
22385 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22386 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22387 (lower_phi_internal_fn): Remove.
22388 (verify_gimple_call): Remove IFN_PHI special-casing.
22389 (dump_function_to_file): Dump IL state.
22390 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22391 done to deal with PHI nodes being present in non-SSA state.
22392
22393 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22394
22395 PR ipa/89684
22396 * multiple_target.c (create_dispatcher_calls): Change
22397 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22398 In the node->iterate_referring loop, push *ref rather than ref, call
22399 ref->remove_reference () and always pass 0 to iterate_referring.
22400
22401 PR rtl-optimization/89679
22402 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22403 would contain a paradoxical SUBREG.
22404
22405 2019-03-14 Richard Biener <rguenther@suse.de>
22406
22407 PR tree-optimization/89710
22408 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22409 safe_dyn_cast.
22410
22411 2019-03-14 Martin Liska <mliska@suse.cz>
22412
22413 * coverage.c (coverage_begin_function): Stream also
22414 end_column.
22415 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22416 documentation about function declaration location.
22417 * gcov-dump.c (tag_function): Print whole range
22418 of function declaration.
22419 * gcov.c (struct function_info): Add end_column field.
22420 (function_info::function_info): Initialize it.
22421 (output_json_intermediate_file): Output {start,end}_column
22422 fields.
22423 (read_graph_file): Read end_column.
22424
22425 2019-03-14 Richard Biener <rguenther@suse.de>
22426
22427 PR middle-end/89698
22428 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22429 that the access types are similar.
22430
22431 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22432
22433 PR tree-optimization/89703
22434 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22435 aren't compatible also with builtin_decl_explicit. Check pure
22436 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22437 and BUILT_IN_STPNCPY{,_CHK}.
22438
22439 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22440
22441 PR target/89523
22442 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22443 addr32 prefix to VSIB address for X32.
22444 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22445 "%M2" to opcode.
22446 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22447 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22448 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22449 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22450 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22451 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22452 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22453 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22454 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22455 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22456 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22457 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22458 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22459 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22460 (*avx512f_scatterdi<mode>): Likewise.
22461
22462 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22463
22464 PR target/85860
22465 * lra-constraints.c (inherit_in_ebb): Update
22466 potential_reload_hard_regs along with live_hard_regs.
22467
22468 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22469
22470 PR debug/89498
22471 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22472 DWARF_OFFSET_SIZE.
22473 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22474
22475 2019-03-13 Martin Sebor <msebor@redhat.com>
22476
22477 PR tree-optimization/89662
22478 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22479 has a size.
22480
22481 2019-03-13 Richard Biener <rguenther@suse.de>
22482
22483 PR middle-end/89677
22484 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22485 throw FP expressions at tree-affine.
22486
22487 2019-03-14 Richard Biener <rguenther@suse.de>
22488
22489 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22490 dump negative integer constants using _Literal (type) -num.
22491
22492 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22493
22494 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22495 nonlocal_value member.
22496
22497 PR middle-end/88588
22498 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22499 (ipa_simd_modify_function_body): Handle PHIs.
22500
22501 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22502
22503 * config/s390/s390.c (s390_option_override_internal): Use more
22504 aggressive inlining parameters.
22505
22506 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22507
22508 * config/s390/3906.md: New file.
22509 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22510 (LONGRUNNING_THRESHOLD): Remove.
22511 (MAX_SCHED_MIX_SCORE): Decrease.
22512 (MAX_SCHED_MIX_DISTANCE): Decrease.
22513 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22514 (struct s390_sched_state): New struct to hold scheduling state.
22515 (S390_SCHED_STATE_NORMAL): Remove.
22516 (S390_SCHED_STATE_CRACKED): Remove.
22517 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22518 (s390_get_sched_attrmask): Use new attribute.
22519 (s390_get_unit_mask): Use new units.
22520 (s390_is_fpd): New function.
22521 (s390_is_fxd): New function.
22522 (s390_is_longrunning): New function.
22523 (s390_sched_score): Use new functions.
22524 (s390_sched_reorder): Likewise.
22525 (s390_sched_variable_issue): Rework and use new functions.
22526 (s390_sched_init): Use new functions.
22527 * config/s390/s390.h (s390_tune_attr): Add z14.
22528 * config/s390/s390.md: Add z14.
22529
22530 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22531
22532 * config/s390/2964.md: Update pipeline description.
22533 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22534 (LONGRUNNING_THRESHOLD): Remove.
22535 (LATENCY_FACTOR): Remove.
22536 (s390_get_unit_mask): Add unit.
22537 (s390_sched_score): Use fxd/fpd.
22538 (s390_sched_variable_issue): Use fxd/fpd.
22539
22540 2019-03-12 Martin Liska <mliska@suse.cz>
22541
22542 * config/i386/i386.c: Reword an error message.
22543
22544 2019-03-12 Martin Jambor <mjambor@suse.cz>
22545
22546 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22547 terminate with newline.
22548
22549 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22550
22551 PR target/52726
22552 * config/s390/s390.md (tabort): Use %wd instead of
22553 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22554 letters and periods.
22555 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22556 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22557 's with %< and %>.
22558
22559 PR middle-end/89663
22560 * builtins.c (expand_builtin_int_roundingfn,
22561 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22562 gcc_unreachable if validate_arglist fails.
22563
22564 2019-03-12 Richard Biener <rguenther@suse.de>
22565
22566 PR tree-optimization/89664
22567 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22568 free the occurance tree after the early out.
22569
22570 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22571
22572 PR middle-end/89655
22573 PR bootstrap/89656
22574 * vr-values.c (vr_values::update_value_range): If
22575 old_vr->varying_p (), don't update it, make new_vr also VARYING
22576 and return false.
22577
22578 2019-03-11 Martin Liska <mliska@suse.cz>
22579
22580 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22581 Fix double string quoting.
22582
22583 2019-03-11 Martin Liska <mliska@suse.cz>
22584
22585 * collect-utils.c (collect_wait): Wrap apostrophes
22586 in gcc internal format with %'.
22587 * collect2.c (main): Likewise.
22588 (scan_prog_file): Likewise.
22589 (scan_libraries): Likewise.
22590 * config/i386/i386.c (ix86_expand_call): Likewise.
22591 (ix86_handle_interrupt_attribute): Likewise.
22592 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22593 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22594 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22595 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22596 * symtab.c (symtab_node::verify_base): Likewise.
22597 * tree-cfg.c (verify_gimple_label): Likewise.
22598 * tree.c (verify_type_variant): Likewise.
22599
22600 2019-03-11 Martin Liska <mliska@suse.cz>
22601
22602 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22603 in a string format message and fix GNU coding style.
22604 (expand_builtin_set_thread_pointer): Likewise.
22605 * common/config/aarch64/aarch64-common.c
22606 (aarch64_rewrite_selected_cpu): Likewise.
22607 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22608 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22609 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22610 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22611 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22612 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22613 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22614 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22615 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22616 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22617 Likewise.
22618 * common/config/riscv/riscv-common.c
22619 (riscv_subset_list::parsing_subset_version): Likewise.
22620 (riscv_subset_list::parse_std_ext): Likewise.
22621 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22622 (riscv_subset_list::parse): Likewise.
22623 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22624 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22625 (aarch64_override_options_internal): Likewise.
22626 (aarch64_validate_mcpu): Likewise.
22627 (aarch64_validate_march): Likewise.
22628 (aarch64_validate_mtune): Likewise.
22629 (aarch64_override_options): Likewise.
22630 * config/alpha/alpha.c (alpha_option_override): Likewise.
22631 * config/arc/arc.c (arc_init): Likewise.
22632 (parse_mrgf_banked_regs_option): Likewise.
22633 (arc_override_options): Likewise.
22634 (arc_expand_builtin_aligned): Likewise.
22635 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22636 (arm_expand_builtin): Likewise.
22637 * config/arm/arm.c (arm_option_check_internal): Likewise.
22638 (arm_configure_build_target): Likewise.
22639 (arm_option_override): Likewise.
22640 (arm_options_perform_arch_sanity_checks): Likewise.
22641 (arm_handle_cmse_nonsecure_entry): Likewise.
22642 (arm_handle_cmse_nonsecure_call): Likewise.
22643 (arm_tls_referenced_p): Likewise.
22644 (thumb1_expand_prologue): Likewise.
22645 * config/avr/avr.c (avr_option_override): Likewise.
22646 * config/bfin/bfin.c (bfin_option_override): Likewise.
22647 * config/c6x/c6x.c (c6x_option_override): Likewise.
22648 * config/cr16/cr16.c (cr16_override_options): Likewise.
22649 * config/cris/cris.c (cris_option_override): Likewise.
22650 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22651 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22652 * config/darwin.c (darwin_override_options): Likewise.
22653 * config/frv/frv.c (frv_expand_builtin): Likewise.
22654 * config/h8300/h8300.c (h8300_option_override): Likewise.
22655 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22656 (ix86_option_override_internal): Likewise.
22657 (warn_once_call_ms2sysv_xlogues): Likewise.
22658 (ix86_expand_prologue): Likewise.
22659 (split_stack_prologue_scratch_regno): Likewise.
22660 (ix86_warn_parameter_passing_abi): Likewise.
22661 * config/ia64/ia64.c (fix_range): Likewise.
22662 * config/m68k/m68k.c (m68k_option_override): Likewise.
22663 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22664 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22665 (mips_set_compression_mode): Likewise.
22666 * config/mmix/mmix.c (mmix_option_override): Likewise.
22667 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22668 * config/msp430/msp430.c (msp430_option_override): Likewise.
22669 * config/nds32/nds32.c (nds32_option_override): Likewise.
22670 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22671 (nios2_option_override): Likewise.
22672 (nios2_expand_custom_builtin): Likewise.
22673 * config/nvptx/mkoffload.c (main): Likewise.
22674 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22675 * config/pa/pa.c (fix_range): Likewise.
22676 (pa_option_override): Likewise.
22677 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22678 (riscv_option_override): Likewise.
22679 * config/rl78/rl78.c (rl78_option_override): Likewise.
22680 * config/rs6000/aix61.h: Likewise.
22681 * config/rs6000/aix71.h: Likewise.
22682 * config/rs6000/aix72.h: Likewise.
22683 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22684 * config/rs6000/freebsd64.h: Likewise.
22685 * config/rs6000/linux64.h: Likewise.
22686 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22687 (rs6000_expand_zeroop_builtin): Likewise.
22688 (rs6000_expand_mtfsb_builtin): Likewise.
22689 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22690 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22691 (rs6000_invalid_builtin): Likewise.
22692 (rs6000_expand_split_stack_prologue): Likewise.
22693 * config/rs6000/rtems.h: Likewise.
22694 * config/rx/rx.c (valid_psw_flag): Likewise.
22695 (rx_expand_builtin): Likewise.
22696 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22697 * config/s390/s390.c (s390_expand_builtin): Likewise.
22698 (s390_function_profiler): Likewise.
22699 (s390_option_override_internal): Likewise.
22700 (s390_option_override): Likewise.
22701 * config/sh/sh.c (sh_option_override): Likewise.
22702 (sh_builtin_saveregs): Likewise.
22703 (sh_fix_range): Likewise.
22704 * config/sh/vxworks.h: Likewise.
22705 * config/sparc/sparc.c (sparc_option_override): Likewise.
22706 * config/spu/spu.c (spu_option_override): Likewise.
22707 (fix_range): Likewise.
22708 * config/visium/visium.c (visium_option_override): Likewise.
22709 (visium_handle_interrupt_attr): Likewise.
22710 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22711 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22712 (dbg_cnt_process_opt): Likewise.
22713 * dwarf2out.c (output_dwarf_version): Likewise.
22714 * except.c (expand_eh_return): Likewise.
22715 * gcc.c (defined): Likewise.
22716 (driver_handle_option): Likewise.
22717 (process_command): Likewise.
22718 (compare_files): Likewise.
22719 (driver::prepare_infiles): Likewise.
22720 (driver::do_spec_on_infiles): Likewise.
22721 (driver::maybe_run_linker): Likewise.
22722 * omp-offload.c (oacc_parse_default_dims): Likewise.
22723 * opts-global.c (handle_common_deferred_options): Likewise.
22724 * opts.c (parse_sanitizer_options): Likewise.
22725 (common_handle_option): Likewise.
22726 (enable_warning_as_error): Likewise.
22727 * passes.c (enable_disable_pass): Likewise.
22728 * plugin.c (parse_plugin_arg_opt): Likewise.
22729 (default_plugin_dir_name): Likewise.
22730 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22731 (default_pch_valid_p): Likewise.
22732 * toplev.c (init_asm_output): Likewise.
22733 (process_options): Likewise.
22734 (toplev::run_self_tests): Likewise.
22735 * tree-cfg.c (verify_gimple_call): Likewise.
22736 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22737 (tree_inlinable_function_p): Likewise.
22738 * var-tracking.c (vt_find_locations): Likewise.
22739
22740 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22741
22742 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22743 only on the else branch.
22744
22745 2019-03-11 Martin Liska <mliska@suse.cz>
22746
22747 * gcov.c (output_intermediate_json_line): Print function
22748 name of each line.
22749 (output_json_intermediate_file): Add new argument.
22750 * doc/gcov.texi: Document the change.
22751
22752 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22753
22754 PR rtl-optimization/89588
22755 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22756 explicit unrolling factor more robust.
22757
22758 2019-03-11 Richard Biener <rguenther@suse.de>
22759
22760 PR tree-optimization/89649
22761 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22762 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22763 on the prolog and epilog loops.
22764 (vect_loop_versioning): Return copy of loop.
22765 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22766 on the non-vectorized version of the loop.
22767
22768 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22769
22770 PR target/68924
22771 * config/i386/sse.md (*vec_extractv2di_0_sse):
22772 Add (=r,x) alternative and corresponding splitter.
22773
22774 2019-03-10 Martin Jambor <mjambor@suse.cz>
22775
22776 PR tree-optimization/85762
22777 PR tree-optimization/87008
22778 PR tree-optimization/85459
22779 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22780 it points to if there is a type changing MEM_REF. Adjust all callers.
22781 (build_accesses_from_assign): Disable total scalarization if
22782 contains_vce_or_bfcref_p returns true through the new parameter, for
22783 both rhs and lhs.
22784
22785 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22786
22787 PR c/88568
22788 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22789 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22790
22791 PR target/79645
22792 * common.opt (fdiagnostics-show-labels,
22793 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22794 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22795 gas-locview-support, ginline-points, ginternal-reset-location-views):
22796 Terminate description text with a dot.
22797 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22798 * config/mcore/mcore.opt (m210, m340): Likewise.
22799 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22800 mnops=): Start description text with a capital letter.
22801 * config/arc/arc.opt (msize-level=): Likewise.
22802 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22803 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22804 mnewlib): Likewise.
22805 * config/ft32/ft32.opt (msim): Likewise.
22806 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22807 (mnodiv, mnopm): Terminate description text with a dot.
22808 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22809 a colon.
22810 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22811 Likewise.
22812 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22813 text.
22814
22815 PR rtl-optimization/89634
22816 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22817 are modified in BB_END (e->src) instruction.
22818
22819 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22820
22821 PR target/79926
22822 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22823 messages more amenable to translation, and improve wording.
22824
22825 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22826
22827 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22828 ud- and du-chains between phases.
22829
22830 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22831
22832 PR debug/89631
22833 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22834 instead of POLY_INT_CST.
22835
22836 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22837
22838 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22839 requirement.
22840
22841 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22842
22843 PR target/68924
22844 PR target/78782
22845 PR target/87558
22846 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22847 (_mm_storeu_si64): Ditto.
22848
22849 2019-03-08 Martin Liska <mliska@suse.cz>
22850
22851 PR target/86952
22852 * config/i386/i386.c (ix86_option_override_internal): Disable
22853 jump tables when retpolines are used.
22854
22855 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22856
22857 PR go/63560
22858 * ipa-split.c (execute_split_functions): Do not split
22859 'noinline' or 'section' function.
22860
22861 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22862
22863 PR target/79846
22864 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22865 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22866 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22867
22868 PR ipa/80000
22869 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22870 from diagnostics. Formatting fixes.
22871
22872 PR target/85665
22873 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22874 warn_odr diagnostics.
22875
22876 PR other/80058
22877 * lra-constraints.c (process_alt_operands): Avoid one space before
22878 " at the end of line and another after " on another line in a string
22879 literal.
22880 * attribs.c (handle_dll_attribute): Likewise.
22881 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22882
22883 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22884 warning_at or inform messages in G_() if there is no ?:.
22885
22886 PR tree-optimization/89550
22887 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22888 returned true. Formatting fixes.
22889 (expand_builtin_strnlen): Formatting fixes.
22890 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22891 if warning_at returned true.
22892 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22893
22894 2019-03-08 Richard Biener <rguenther@suse.de>
22895
22896 PR middle-end/89578
22897 * cfgloop.h (struct loop): Add owned_clique field.
22898 * cfgloopmanip.c (copy_loop_info): Copy it.
22899 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22900 cliques.
22901 * tree-inline.c (copy_loops): Remap owned_clique.
22902 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22903 * lto-streamer-out.c (output_cfg): Likewise.
22904
22905 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22906
22907 PR target/80190
22908 * config/darwin.c: Include intl.h.
22909 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22910 composing the message out of two separate parts.
22911
22912 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22913
22914 PR target/80003
22915 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22916 doesn't start with a capital letter and doesn't end with a dot.
22917 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22918 with a capital letter.
22919 (ix86_mangle_function_version_assembler_name): Likewise.
22920 (ix86_generate_version_dispatcher_body): Likewise.
22921 (fold_builtin_cpu): Likewise.
22922 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22923 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22924 translators, wrap full type name in %qs.
22925
22926 PR translation/79999
22927 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22928 depend clause with source (or sink) modifier.
22929 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22930
22931 PR target/89602
22932 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22933 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22934 (avx512f_load<mode>_mask): New define_expand.
22935 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22936 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22937 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22938 __builtin_ia32_movess_mask): New builtins.
22939 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22940 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22941 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22942 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22943
22944 2019-03-07 Martin Jambor <mjambor@suse.cz>
22945
22946 PR lto/87525
22947 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22948 for extern inline functions.
22949
22950 2019-03-07 Martin Jambor <mjambor@suse.cz>
22951
22952 PR ipa/88235
22953 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22954 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22955 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22956 have multiple callees. At the end check if declarations match as
22957 opposed to cgraph_nodes.
22958
22959 2019-03-07 Martin Liska <mliska@suse.cz>
22960
22961 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22962 which is equivalent to searching for this in clones chain.
22963 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22964 names with a neighbour and special case first node in a chain.
22965
22966 2019-01-25 Jason Merrill <jason@redhat.com>
22967
22968 PR c++/80916 - spurious "static but not defined" warning.
22969 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22970 for an internal symbol with DECL_EXTERNAL.
22971
22972 2019-04-07 Richard Biener <rguenther@suse.de>
22973
22974 PR middle-end/89618
22975 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22976 * tree-inline.c (copy_loops): Simplify.
22977
22978 2019-03-07 Martin Liska <mliska@suse.cz>
22979
22980 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22981
22982 2019-03-07 Richard Biener <rguenther@suse.de>
22983
22984 PR tree-optimization/89595
22985 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22986 stmt iterator as reference, take boolean output parameter to
22987 indicate whether the stmt was removed and thus the iterator
22988 already advanced.
22989 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22990 stmts created by folding.
22991
22992 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22993
22994 PR c++/89585
22995 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22996 at toplevel.
22997
22998 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22999
23000 PR rtl-optimization/88845
23001 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
23002 LRA.
23003 * lra.c (remove_scratches_1): New function.
23004 (remove_scratches): Use it.
23005 (lra_emit_move): Likewise.
23006
23007 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
23008
23009 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
23010 unaligned_access variable.
23011 * config/arc/arc.c (arc_override_options): Set unaligned access
23012 default on for HS CPUs.
23013 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
23014
23015 2019-03-06 Martin Liska <mliska@suse.cz>
23016
23017 PR gcov-profile/89577
23018 * doc/gcov.texi: Prefer to use --coverage.
23019 * doc/sourcebuild.texi: Likewise.
23020
23021 2019-03-02 Jason Merrill <jason@redhat.com>
23022
23023 PR c++/86485 - -Wmaybe-unused with empty class ?:
23024 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
23025
23026 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23027
23028 PR target/89587
23029 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
23030 if_multiarch.
23031
23032 PR middle-end/89590
23033 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
23034 exactly one argument.
23035
23036 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23037 Richard Sandiford <richard.sandiford@arm.com>
23038
23039 PR tree-optimization/89570
23040 * match.pd (vec_cond into cond_op simplification): Don't use
23041 get_conditional_internal_fn, use as_internal_fn (cond_op).
23042
23043 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
23044
23045 PR target/89222
23046 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
23047 to decide when to split off a non-zero offset from a symbol.
23048 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
23049 in function symbols.
23050
23051 2019-03-05 Richard Biener <rguenther@suse.de>
23052
23053 PR tree-optimization/89594
23054 * tree-if-conv.c (pass_if_conversion::execute): Handle
23055 case where .LOOP_VECTORIZED_FUNCTION was removed.
23056
23057 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23058
23059 PR bootstrap/89560
23060 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
23061 instead alloca it only when needed with the needed size.
23062
23063 PR tree-optimization/89570
23064 * match.pd (vec_cond into cond_op simplification): Guard with
23065 vectorized_internal_fn_supported_p test and #if GIMPLE.
23066
23067 PR tree-optimization/89566
23068 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
23069 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
23070 Punt if get_user_idx_format succeeds, but idx_format argument is
23071 not provided or doesn't have pointer type, or if idx_args is above
23072 number of provided arguments.
23073
23074 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
23075
23076 PR tree-optimization/89437
23077 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
23078
23079 2019-03-04 Richard Biener <rguenther@suse.de>
23080
23081 PR middle-end/89572
23082 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
23083 safe_dyn_cast.
23084
23085 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
23086
23087 PR tree-optimization/89487
23088 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
23089 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
23090 (distribute_loop): Don't do runtime alias check if there is non-
23091 addressable data reference.
23092 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
23093 is a register variable.
23094
23095 2019-03-02 Jakub Jelinek <jakub@redhat.com>
23096
23097 PR target/89506
23098 * config/arm/arm.md (cmpsi2_addneg): Use
23099 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
23100 If operands[2] is 0 or INT_MIN, force use of subs.
23101 (*compare_scc splitter): Use gen_int_mode.
23102 (*negscc): Likewise.
23103 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
23104
23105 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
23106 Monk Chiang <sh.chiang04@gmail.com>
23107
23108 * common/config/riscv/riscv-common.c: Include sstream.
23109 (riscv_subset_list::to_string): New.
23110 (riscv_arch_str): Likewise.
23111 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
23112 * config.in: Regen.
23113 * config/riscv/riscv-protos.h (riscv_arch_str): New.
23114 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
23115 (riscv_emit_attribute): New.
23116 (riscv_file_start): Emit attribute if needed.
23117 (riscv_option_override): Init riscv_emit_attribute_p.
23118 * config/riscv/riscv.opt (mriscv-attribute): New option.
23119 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
23120 * configure: Regen.
23121 * doc/install.texi: Document --with-riscv-attribute.
23122 * doc/invoke.texi: Document -mriscv-attribute.
23123
23124 * common/config/riscv/riscv-common.c:
23125 Include config/riscv/riscv-protos.h.
23126 (INCLUDE_STRING): Defined.
23127 (RISCV_DONT_CARE_VERSION): Defined.
23128 (riscv_subset_t): Declare.
23129 (riscv_subset_t::riscv_subset_t): New.
23130 (riscv_subset_list): Declare.
23131 (riscv_subset_list::riscv_subset_list): New.
23132 (riscv_subset_list::~riscv_subset_list): Likewise.
23133 (riscv_subset_list::parsing_subset_version): Likewise.
23134 (riscv_subset_list::parse_std_ext): Likewise.
23135 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23136 (riscv_subset_list::add): Likewise.
23137 (riscv_subset_list::lookup): Likewise.
23138 (riscv_subset_list::xlen): Likewise.
23139 (riscv_subset_list::parse): Likewise.
23140 (riscv_supported_std_ext): Likewise.
23141 (current_subset_list): Likewise.
23142 (riscv_parse_arch_string): Using riscv_subset_list::parse to
23143 parse.
23144
23145 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
23146
23147 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23148 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23149 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23150
23151 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23152
23153 PR rtl-optimization/85899
23154 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23155 fallthru edges leading to the exit block.
23156
23157 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23158
23159 PR target/89517
23160 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23161 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23162
23163 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23164
23165 PR tree-optimization/89535
23166 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23167 for each operand. Calculate the fallback choice for mask operands
23168 and pass it to vect_get_vec_def_for_operand.
23169
23170 2019-03-01 Richard Biener <rguenther@suse.de>
23171
23172 PR middle-end/89541
23173 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23174 get virtual operands.
23175 (get_expr_operands): Handle CONST_DECL like other decls.
23176
23177 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23178
23179 PR middle-end/89503
23180 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23181 on DECL_P and EXPR_P.
23182
23183 2019-03-01 Richard Biener <rguenther@suse.de>
23184
23185 PR middle-end/89497
23186 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23187 argument, defaulted to zero.
23188 * passes.c (execute_function_todo): Pass down SSA update flags
23189 to cleanup_tree_cfg.
23190 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23191 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23192 form if requested.
23193 (cleanup_tree_cfg): Get and pass down SSA update flags.
23194
23195 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23196
23197 PR bootstrap/89539
23198 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23199 early_lto_debug argument.
23200
23201 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23202
23203 PR tree-optimization/89536
23204 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23205 only whether bit #0 of the value is 0 instead of the entire value.
23206
23207 2019-02-28 Marek Polacek <polacek@redhat.com>
23208
23209 PR c++/87068 - missing diagnostic with fallthrough statement.
23210 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23211 at the end of a seq, save its location to walk_stmt_info.
23212 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23213 a switch.
23214
23215 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23216
23217 PR lto/88585
23218 * tree.c (find_atomic_core_type): Move ahead in file.
23219 (check_base_type): Correctly compare alignments of atomic types.
23220
23221 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23222
23223 PR target/89455
23224 * config/i386/i386.c (get_builtin_code_for_version): Identify
23225 Westmere from PCLMUL, instead of AES.
23226
23227 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23228
23229 PR target/89434
23230 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23231 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23232 -UINTVAL (...).
23233
23234 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23235
23236 PR target/88530
23237 * config/aarch64/aarch64-option-extensions.def: Document it.
23238 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23239 if empty hwcaps.
23240
23241 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23242
23243 PR c/89520
23244 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23245 builtins if they don't have a single scalar floating point argument.
23246 Formatting fixes.
23247
23248 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23249
23250 PR rtl-optimization/89490
23251 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23252 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23253 block section is not mergeable.
23254
23255 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23256
23257 PR target/70341
23258 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23259 old define_insn to ...
23260 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23261 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23262 Rename old define_insn to ...
23263 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23264 (thumb2_casesi_internal_pic): New define_expand. Rename old
23265 define_insn to ...
23266 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23267 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23268 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23269
23270 2019-02-27 Richard Biener <rguenther@suse.de>
23271
23272 PR debug/88878
23273 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23274
23275 2019-02-27 Richard Biener <rguenther@suse.de>
23276
23277 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23278 building.
23279
23280 2019-02-27 Richard Biener <rguenther@suse.de>
23281
23282 PR debug/88878
23283 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23284 parameter, prefix section name with .gnu.debuglto_ if true.
23285 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23286 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23287
23288 2019-02-27 Richard Biener <rguenther@suse.de>
23289
23290 PR debug/89514
23291 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23292 rather than on use_debug_types, doing what output_die does.
23293 (value_format): Likewise.
23294
23295 2019-02-27 Martin Jambor <mjambor@suse.cz>
23296 Martin Sebor <msebor@redhat.com>
23297
23298 * doc/invoke.texi (Warning Options): Reword description of
23299 -Wno-absolute-value.
23300
23301 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23302
23303 PR tree-optimization/89280
23304 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23305 builtin_setjmp_setup_bb): New functions.
23306 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23307 When visiting __builtin_setjmp_setup block, queue in special
23308 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23309 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23310 from visited after the loop if they don't have any visited successor
23311 blocks.
23312
23313 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23314
23315 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23316 New function.
23317 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23318
23319 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23320
23321 PR c++/89507
23322 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23323 with types other than sizetype/ssizetype.
23324
23325 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23326
23327 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23328 (enum sparc_processor_type): ...this.
23329 (enum sparc_code_model_type): New enumeration type.
23330 (enum sparc_memory_model_type): Tweak comments.
23331 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23332 (mtune): Likewise.
23333 (mcmodel): Use sparc_code_model enumeration and variable.
23334 (sparc_code_model): New enumeration.
23335 (mdebug): Add Undocumented marker.
23336 * config/sparc/sparc.h (enum cmodel): Delete.
23337 (sparc_cmodel): Likewise.
23338 (TARGET_CM_MEDLOW): Adjust to above renaming.
23339 (TARGET_CM_MEDMID): Likewise.
23340 (TARGET_CM_MEDANY): Likewise.
23341 (TARGET_CM_EMBMEDANY): Likewise.
23342 * config/sparc/sparc.c (sparc_cmodel): Delete.
23343 (sparc_option_override): Remove string/value mapping support for the
23344 code model. Move code and memory model support to after the handling
23345 of target flags. Do private machine setup last.
23346 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23347 (sparc_legitimize_reload_address): Likewise.
23348 (sparc_output_mi_thunk): Likewise.
23349 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23350
23351 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23352
23353 PR tree-optimization/89500
23354 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23355 (handle_builtin_strlen): Remove noncst_bound variable. Always
23356 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23357 cst if the first cst bytes starting at x are known to be non-zero,
23358 even if the string is not zero terminated. Don't try to modify
23359 *si for strnlen. Update strlen_to_stridx only for strlen or if
23360 we can prove strnlen returns the same value as strlen would.
23361
23362 2019-02-26 Martin Liska <mliska@suse.cz>
23363
23364 * alloc-pool.h (struct pool_usage): Remove extra
23365 print_dash_line.
23366 * bitmap.h (struct bitmap_usage): Likewise.
23367 * ggc-common.c (struct ggc_usage): Likewise.
23368 * mem-stats.h (struct mem_usage): Likewise.
23369 (mem_alloc_description::dump): Print dash lines
23370 here and repeat header at the end of a table report.
23371 It's then more readable.
23372 * tree-phinodes.c (phinodes_print_statistics): Make
23373 horizontal alignment.
23374 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23375 * vec.c (struct vec_usage): Remove extra print_dash_line.
23376 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23377
23378 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23379
23380 * doc/extend.texi (__builtin_object_size):
23381 Use @pxref instead of @xref inside parenthesis.
23382 (__builtin_has_attribute): Add missing comma after @xref.
23383 (__builtin_object_size): Ditto.
23384 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23385
23386 2019-02-26 Jeff Law <law@redhat.com>
23387
23388 PR rtl-optimization/87761
23389 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23390 detect obviously dead insns and delete them.
23391
23392 2019-02-26 Richard Biener <rguenther@suse.de>
23393
23394 PR tree-optimization/89505
23395 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23396 to handle restrict pointed-to vars with multiple subvars
23397 correctly.
23398
23399 2019-02-26 Richard Biener <rguenther@suse.de>
23400
23401 PR tree-optimization/89489
23402 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23403
23404 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23405
23406 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23407 and move around comment.
23408 <BIT_AND_EXPR>: Likewise.
23409 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23410
23411 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23412
23413 PR target/89474
23414 * config/i386/i386.c (remove_partial_avx_dependency): Call
23415 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23416 after changing possibly many instructions to use that pseudo. Fix up
23417 insertion of v4sf_const0 setter at the start of bb.
23418
23419 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23420
23421 PR c/80409
23422 * doc/extend.texi (Variadic Pointer Args): New section.
23423
23424 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23425 Martin Sebor <msebor@gmail.com>
23426
23427 * common.opt (Wattribute-alias): Likewise.
23428 * doc/invoke.texi (Option Summary): List general form of
23429 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23430 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23431 Add cross-references.
23432 (-Wattribute-alias): Rewrite and correct default. Mention
23433 considered attributes (same as for -Wmissing-attributes).
23434
23435 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23436
23437 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23438 (_mm_cvtpd_ps): Likewise.
23439 (_mm_cvttpd_epi32): Likewise.
23440
23441 PR target/89338
23442 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23443 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23444
23445 PR target/89339
23446 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23447
23448 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23449
23450 PR target/88530
23451 * common/config/aarch64/aarch64-common.c
23452 (struct aarch64_option_extension): Add is_synthetic.
23453 (all_extensions): Use it.
23454 (TARGET_OPTION_INIT_STRUCT): Define hook.
23455 (struct gcc_targetm_common): Moved to end.
23456 (all_extensions_by_on): New.
23457 (opt_ext_cmp, typedef opt_ext): New.
23458 (aarch64_option_init_struct): New.
23459 (aarch64_contains_opt): New.
23460 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23461 * config/aarch64/aarch64-option-extensions.def
23462 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23463 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23464 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23465 Set is_synthetic to false.
23466 (crypto): Set is_synthetic to true.
23467 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23468 SYNTHETIC.
23469
23470 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23471
23472 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23473 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23474 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23475 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23476 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23477 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23478 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23479 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23480 Rename ...
23481 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23482 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23483 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23484 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23485 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23486 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23487 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23488 vfmlsl_laneq_high_f16): ... To this.
23489 * config/arm/neon.md: Update comments.
23490
23491 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23492
23493 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23494 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23495 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23496 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23497 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23498 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23499 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23500 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23501 Rename ...
23502 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23503 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23504 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23505 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23506 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23507 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23508 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23509 vfmlslq_laneq_high_f16): ... To this.
23510
23511 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23512
23513 PR rtl-optimization/86096
23514 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23515 comparing mw_order values.
23516
23517 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23518
23519 PR target/89434
23520 * config/arm/arm.md (*subsi3_carryin_const): Use
23521 arm_neg_immediate_operand predicate instead of
23522 arm_not_immediate_operand, "L" constraint instead of "K" and
23523 print it using %n2 instead of %B2.
23524 (*subsi3_carryin_const0): New define_insn.
23525 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23526 instead of arm_not_operand and "I" constraint instead of "K" and
23527 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23528 another match_operand and in the condition check that it is negation
23529 of operands[2].
23530 (*subsi3_carryin_compare_const0): New define_ins.
23531 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23532 *subsi3_carryin_const.
23533 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23534 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23535
23536 PR target/89438
23537 * config/arm.vfp.md (*negdf2_vfp): Use
23538 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23539 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23540
23541 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23542
23543 PR rtl-optimization/89445
23544 * simplify-rtx.c (simplify_ternary_operation): Don't use
23545 simplify_merge_mask on operands that may trap.
23546 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23547 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23548 second operand is CONST_VECTOR, check if any element could be zero.
23549 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23550 their operands can trap.
23551
23552 2019-02-23 Martin Sebor <msebor@redhat.com>
23553
23554 * gimple-ssa-sprintf.c (target_strtol): Rename...
23555 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23556 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23557 check for range error.
23558
23559 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23560
23561 PR driver/69471
23562 * opts-common.c (prune_options): Also prune joined switches
23563 with Negative and RejectNegative.
23564 * config/i386/i386.opt (march=): Add Negative(march=).
23565 (mtune=): Add Negative(mtune=).
23566 * doc/options.texi: Document Negative used together with Joined
23567 and RejectNegative.
23568
23569 2019-02-22 Martin Sebor <msebor@redhat.com>
23570
23571 * doc/extend.texi (Other Builtins): Add
23572 __builtin_is_constant_evaluated.
23573
23574 2019-02-22 Richard Biener <rguenther@suse.de>
23575
23576 PR tree-optimization/87609
23577 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23578
23579 2019-02-22 Jeff Law <law@redhat.com>
23580
23581 PR rtl-optimization/87761
23582 * config/mips/mips.md: Add new combiner pattern to recognize
23583 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23584
23585 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23586
23587 PR target/89324
23588 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23589 destination register in peepholes generating patterns for ADDS/SUBS.
23590 (add<mode>3_compare0,
23591 *addsi3_compare0_uxtw, add<mode>3_compareC,
23592 add<mode>3_compareV_imm, add<mode>3_compareV,
23593 *adds_<optab><ALLX:mode>_<GPI:mode>,
23594 *subs_<optab><ALLX:mode>_<GPI:mode>,
23595 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23596 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23597 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23598 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23599 sub<mode>3_compare1): Allow stack pointer for source register.
23600 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23601
23602 2019-02-22 Martin Sebor <msebor@redhat.com>
23603
23604 PR tree-optimization/88993
23605 PR tree-optimization/88853
23606 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23607 New helper.
23608 (sprintf_dom_walker::call_info::is_string_func): New helper.
23609 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23610 for formatted string functions.
23611 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23612
23613 2019-02-22 Martin Sebor <msebor@redhat.com>
23614
23615 PR c/89425
23616 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23617 unreachable subexpressions.
23618
23619 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23620 Hongtao Liu <hongtao.liu@intel.com>
23621 Sunil K Pandey <sunil.k.pandey@intel.com>
23622
23623 PR target/87007
23624 * config/i386/i386-passes.def: Add
23625 pass_remove_partial_avx_dependency.
23626 * config/i386/i386-protos.h
23627 (make_pass_remove_partial_avx_dependency): New.
23628 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23629 New function.
23630 (pass_data_remove_partial_avx_dependency): New.
23631 (pass_remove_partial_avx_dependency): Likewise.
23632 (make_pass_remove_partial_avx_dependency): Likewise.
23633 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23634 (*extendsfdf2): Add avx_partial_xmm_update.
23635 (truncdfsf2): Likewise.
23636 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23637 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23638
23639 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23640
23641 PR middle-end/85598
23642 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23643 analysis for pass.
23644
23645 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23646
23647 PR target/89444
23648 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23649 (PTA_SKYLAKE): Add PTA_AES.
23650 (PTA_GOLDMONT): Likewise.
23651
23652 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23653
23654 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23655 instruction if enabled.
23656 (aarch64_override_options): Remove reference to return address key.
23657
23658 2019-02-22 Richard Biener <rguenther@suse.de>
23659
23660 PR tree-optimization/89440
23661 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23662 not necessary assert.
23663
23664 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23665
23666 PR fortran/72741
23667 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23668 (oacc_replace_fn_attrib_attr): ... this new function.
23669 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23670 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23671
23672 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23673
23674 * config/arm/arm-cpus.in (ares): Rename to...
23675 (neoverse-n1): ... This. Add ares as alias.
23676 * config/arm/arm-tables.opt: Regenerate.
23677 * config/arm/arm-tune.md: Likewise.
23678 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23679
23680 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23681
23682 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23683 * config/aarch64/aarch64-tune.md: Regenerate.
23684 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23685
23686 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23687
23688 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23689 (neoversen1_tunings): ... This.
23690 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23691 (neoverse-n1): New CPU.
23692 * config/aarch64/aarch64-tune.md: Regenerate.
23693 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23694
23695 2019-02-22 Richard Biener <rguenther@suse.de>
23696
23697 PR middle-end/87609
23698 * cfghooks.h (dependence_hash): New typedef.
23699 (struct copy_bb_data): New type.
23700 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23701 (duplicate_block): Likewise.
23702 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23703 (copy_bbs): Create and pass down copy_bb_data.
23704 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23705 (rtl_duplicate_bb): Likewise.
23706 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23707 remap dependence info.
23708
23709 2019-02-22 Richard Biener <rguenther@suse.de>
23710
23711 PR tree-optimization/87609
23712 * tree-core.h (tree_base): Document special clique values.
23713 * tree-inline.c (remap_dependence_clique): Do not use the
23714 special clique value of one.
23715 (maybe_set_dependence_info): Use clique one.
23716 (clear_dependence_clique): New callback.
23717 (compute_dependence_clique): Clear clique one from all refs
23718 before assigning it (again).
23719
23720 2019-02-21 Martin Sebor <msebor@redhat.com>
23721
23722 * doc/extend.texi (__clear_cache): Correct signature.
23723
23724 2019-02-21 Ian Lance Taylor <iant@golang.org>
23725
23726 PR go/89170
23727 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23728 than output_constant_def.
23729 (add_constant_to_table): New static function.
23730 (output_constant_def): Call add_constant_to_table.
23731 (tree_output_constant_def): Likewise.
23732
23733 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23734
23735 PR c++/89285
23736 * builtins.c (fold_builtin_arith_overflow): If first two args are
23737 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23738 to ifn.
23739
23740 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23741
23742 PR target/87412
23743 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23744 error for -mindirect-branch/-mfunction-return with incompatible
23745 -fcf-protection.
23746
23747 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23748
23749 PR bootstrap/88714
23750 * constraints.md (q): Remove.
23751 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23752 instead of q.
23753
23754 2019-02-21 Martin Jambor <mjambor@suse.cz>
23755
23756 PR hsa/89302
23757 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23758 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23759 (omp_adjust_for_condition): ...here. Added necessary parameters.
23760 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23761 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23762 proper values to new parameters of omp_adjust_for_condition.
23763
23764 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23765
23766 PR middle-end/89412
23767 * expr.c (expand_assignment): If result is a MEM, use change_address
23768 instead of simplify_gen_subreg.
23769
23770 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23771 David Malcolm <dmalcolm@redhat.com>
23772
23773 PR middle-end/89091
23774 * fold-const.c (decode_field_reference): Return NULL_TREE if
23775 lang_hooks.types.type_for_size returns NULL. Check it before
23776 overwriting *exp_. Use return NULL_TREE instead of return 0.
23777
23778 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23779
23780 PR middle-end/88074
23781 PR middle-end/89415
23782 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23783 buggy mpc_norm.
23784
23785 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23786
23787 PR target/89397
23788 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23789 TARGET_SSE in addition to TARGET_SSE_MATH.
23790
23791 (ix86_excess_precision): Ditto.
23792 (ix86_float_exceptions_rounding_supported_p): Ditto.
23793 (use_rsqrt_p): Ditto.
23794 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23795
23796 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23797
23798 PR c/89410
23799 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23800 linenum_arith_t when determining if two adjacent line spans are
23801 close enough to merge.
23802 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23803 lines within each line_span.
23804
23805 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23806
23807 PR target/86487
23808 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23809 paradoxical SUBREGS.
23810
23811 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23812
23813 PR target/88100
23814 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23815 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23816 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23817 range checking it.
23818
23819 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23820
23821 * config/gcn/gcn.c (print_operand): Fix typo.
23822
23823 2019-02-19 Richard Biener <rguenther@suse.de>
23824
23825 PR middle-end/88074
23826 * toplev.c (do_compile): Initialize mpfr's exponent range
23827 based on available float modes.
23828
23829 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23830
23831 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23832 as long as the epilogue isn't completed.
23833
23834 2019-02-18 Martin Sebor <msebor@redhat.com>
23835
23836 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23837 __has_cpp_attribute, and __has_include.
23838
23839 2019-02-18 Martin Sebor <msebor@redhat.com>
23840
23841 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23842
23843 2019-02-18 Martin Sebor <msebor@redhat.com>
23844
23845 PR middle-end/89294
23846 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23847 expression.
23848 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23849
23850 2019-02-18 Richard Biener <rguenther@suse.de>
23851
23852 PR tree-optimization/89296
23853 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23854 of no-warning flag to cases that might emit the bogus warning.
23855
23856 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23857
23858 PR bootstrap/88714
23859 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23860 "q" constraint.
23861 * config/arm/vfp.md (*movdi_vfp): Likewise.
23862 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23863 "q" constraint for operands[0].
23864
23865 PR target/89369
23866 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23867 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23868 pattern in a temporary buffer.
23869 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23870 than 64-operands[2].
23871
23872 PR target/89361
23873 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23874 s390_indirect_branch_settings): Define unconditionally.
23875 (s390_set_current_function): Likewise, but guard the whole body except
23876 the s390_indirect_branch_settings call with
23877 #if S390_USE_TARGET_ATTRIBUTE.
23878 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23879
23880 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23881 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23882 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23883 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23884 HOST_WIDE_INT_1U instead of 1ULL.
23885 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23886 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23887 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23888 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23889 instead of 1UL.
23890 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23891 instead of 1ul.
23892
23893 2019-02-18 Martin Jambor <mjambor@suse.cz>
23894
23895 PR tree-optimization/89209
23896 * tree-sra.c (create_access_replacement): New optional parameter
23897 reg_tree. Use it as a type if non-NULL and access type is not of
23898 a register type.
23899 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23900 to create_access_replacement.
23901 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23902 Check lacc is non-NULL before attempting to re-create it on the RHS.
23903
23904 2019-02-18 Martin Liska <mliska@suse.cz>
23905
23906 PR ipa/89306
23907 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23908 by default.
23909 (symbol_table::free_edge): Recycle m_summary_id.
23910 * cgraph.h (get_summary_id): New.
23911 (symbol_table::release_symbol): Set m_summary_id to -1
23912 by default.
23913 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23914 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23915 function_summary to fast_function_summary.
23916 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23917 * ipa-pure-const.c (class funct_state_summary_t):
23918 Switch from function_summary to fast_function_summary.
23919 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23920 (class ipa_ref_opt_summary_t): Switch from function_summary
23921 to fast_function_summary.
23922 * symbol-summary.h (class function_summary_base): New class
23923 that is created from base of former function_summary.
23924 (function_summary_base::unregister_hooks): New.
23925 (class function_summary): Inherit from function_summary_base.
23926 (class call_summary_base): New class
23927 that is created from base of former call_summary.
23928 (class call_summary): Inherit from call_summary_base.
23929 (struct is_same): New.
23930 (class fast_function_summary): New summary class.
23931 (class fast_call_summary): New summary class.
23932 * vec.h (vec_safe_grow_cleared): New function.
23933
23934 2019-02-18 Martin Liska <mliska@suse.cz>
23935
23936 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23937 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23938 * doc/tm.texi: Document new target hook.
23939 * doc/tm.texi.in: Likewise.
23940 * target.def: Add new target macro.
23941 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23942 suffixes.
23943
23944 2019-02-17 Alan Modra <amodra@gmail.com>
23945
23946 PR target/89271
23947 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23948 output reg on add insn.
23949 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23950
23951 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23952
23953 PR target/89372
23954 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23955 (PMULHRSW): Likewise.
23956 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23957 TARGET_AVX2.
23958 (ssse3_pmulhrswv4hi3): New expander.
23959
23960 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23961
23962 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23963 MMX. Add isa attribute.
23964
23965 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23966
23967 PR rtl-optimization/66152
23968 * builtins.h (c_readstr): Declare.
23969 * builtins.c (c_readstr): Remove forward declaration. Add
23970 null_terminated_p argument, if false, read all bytes from the
23971 string instead of stopping after '\0'.
23972 * expr.c (string_cst_read_str): New function.
23973 (store_expr): Use string_cst_read_str instead of
23974 builtin_strncpy_read_str. Try to store by pieces the whole
23975 exp_len first, and only if that fails, split it up into
23976 store by pieces followed by clear_storage. Formatting fix.
23977
23978 * config/i386/i386.md (*movqi_internal): Remove static from
23979 buf variable. Use output_asm_insn (buf, operands); return "";
23980 instead of return buf;.
23981 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23982 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23983 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23984
23985 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23986
23987 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23988 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23989 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23990 (CC1_SPEC): Likewise.
23991 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23992
23993 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23994
23995 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23996 the base address on 64-bit strict-alignment platforms.
23997
23998 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23999
24000 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
24001
24002 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24003
24004 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
24005
24006 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
24007
24008 PR rtl-optimization/88308
24009 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
24010 on copied instruction.
24011
24012 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
24013
24014 * final.c (insn_current_reference_address): Replace test on JUMP_P
24015 with test on jump_to_label_p.
24016 * config/visium/visium-passes.def: New file.
24017 * config/visium/t-visium (PASSES_EXTRA): Define.
24018 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
24019 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
24020 (TRAMPOLINE_ALIGNMENT): Define.
24021 * config/visium/visium.c (visium_option_override): Do not register
24022 the machine-specific reorg pass here.
24023 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
24024 for the GR6.
24025 (output_branch): Adjust threshold for long branch instruction.
24026 * config/visium/visium.md (cpu): Move around.
24027 (length): Adjust for the GR6.
24028
24029 2019-02-15 Richard Biener <rguenther@suse.de>
24030 Jakub Jelinek <jakub@redhat.com>
24031
24032 PR tree-optimization/89278
24033 * tree-loop-distribution.c: Include tree-eh.h.
24034 (generate_memset_builtin, generate_memcpy_builtin): Call
24035 rewrite_to_non_trapping_overflow on builtin->size before passing it
24036 to force_gimple_operand_gsi.
24037
24038 2019-02-15 Jakub Jelinek <jakub@redhat.com>
24039
24040 PR other/89342
24041 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
24042 optimize_debug.
24043 * opth-gen.awk: Likewise.
24044
24045 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24046
24047 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
24048 Enable MMX, SSE and SSE2 by default.
24049 * config/i386/i386.c (ix86_option_override_internal): Do not
24050 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
24051
24052 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24053
24054 PR rtl-optimization/89354
24055 * combine.c (make_extraction): Punt if extraction_mode is narrower
24056 than len bits.
24057
24058 2019-02-14 Maya Rashish <coypu@sdf.org>
24059
24060 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
24061 * config/netbsd-d.c: New file.
24062 * config/t-netbsd: Add netbsd-d.o
24063
24064 2018-02-14 Steve Ellcey <sellcey@marvell.com>
24065
24066 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
24067 affects_type_identity to true for aarch64_vector_pcs.
24068 (aarch64_comp_type_attributes): New function.
24069 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
24070
24071 2019-02-14 Tamar Christina <tamar.christina@arm.com>
24072
24073 PR target/88850
24074 * config/arm/iterators.md (ANY64): Add V4HF.
24075
24076 2019-02-14 Martin Liska <mliska@suse.cz>
24077
24078 PR rtl-optimization/89242
24079 * dce.c (delete_unmarked_insns): Call free_dominance_info we
24080 process a transformation.
24081
24082 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24083
24084 PR tree-optimization/89314
24085 * fold-const.c (fold_binary_loc): Cast strlen argument to
24086 const char * before dereferencing it. Formatting fixes.
24087
24088 PR middle-end/89284
24089 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
24090
24091 2019-02-13 Ian Lance Taylor <iant@golang.org>
24092
24093 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
24094 and set current index for other optimizations.
24095
24096 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
24097
24098 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
24099 nonimmediate_operand as operand 2 predicate.
24100 (vec_set<VF2_512_256:mode>_0): Ditto.
24101 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
24102 (*vec_concatv2si): Remove alternative 2.
24103 (*vec_concatv4si_0): Use vm constraint for alternative 0.
24104 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
24105 (vec_concatv2di): Split alternatives 4,5,6 to ...
24106 (*vec_concatv2di_0) ... new pattern.
24107
24108 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
24109
24110 PR target/89190
24111 * config/arm/arm.c (ldm_stm_operation_p) Set
24112 addr_reg_in_reglist correctly for first register.
24113 (load_multiple_sequence): Remove dead base check.
24114 (gen_ldm_seq): Correctly set write_back for Thumb-1.
24115
24116 2019-02-13 Tamar Christina <tamar.christina@arm.com>
24117
24118 PR target/88847
24119 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
24120 Expose as @aarch64_pred_mov.
24121 * config/aarch64/aarch64.c (aarch64_classify_address):
24122 Use expand_insn which legitimizes operands.
24123
24124 2019-02-13 Martin Liska <mliska@suse.cz>
24125
24126 * builtins.h (expand_builtin_with_bounds): Remove declaration.
24127 * calls.c (struct arg_data): Remove special_slot, pointer_arg
24128 and pointer_offset fields.
24129 (initialize_argument_information): Remove usage of dead
24130 fields.
24131 * cgraph.h (struct cgraph_thunk_info): Remove
24132 add_pointer_bounds_args.
24133 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
24134 fields.
24135 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
24136 fields.
24137 * config/i386/i386.c (ix86_function_arg_advance): Remove
24138 unrelated comment.
24139 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
24140 (def_builtin): Remove usage of dead fields.
24141 (ix86_add_new_builtins): Likewise.
24142 * ipa-fnsummary.c (compute_fn_summary): Likewise.
24143 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24144 (sem_function::init): Likewise.
24145 (sem_variable::merge): Likewise.
24146 * ipa-visibility.c (function_and_variable_visibility): Likewise.
24147 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
24148 * lto-cgraph.c (lto_output_node): Likewise.
24149 (lto_output_varpool_node): Likewise.
24150 (input_node): Likewise.
24151 (input_varpool_node): Likewise.
24152 * lto-streamer-out.c (lto_output): Likewise.
24153 * tree-inline.c (expand_call_inline): Remove usage of
24154 assign_stmts.
24155 * tree-inline.h (struct copy_body_data): Likewise.
24156 * varpool.c (varpool_node::dump): Likewise.
24157
24158 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24159
24160 PR middle-end/89303
24161 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24162 into pt->vars_contains_escaped_heap instead of setting
24163 pt->vars_contains_escaped_heap to it.
24164
24165 PR middle-end/89281
24166 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24167 INTVAL (size), compare it to GET_MODE_MASK instead of
24168 1 << GET_MODE_BITSIZE.
24169
24170 PR target/89290
24171 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24172 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24173 -mcmodel=large.
24174
24175 2019-02-13 Martin Liska <mliska@suse.cz>
24176
24177 PR lto/88858
24178 * cfgrtl.c (remove_barriers_from_footer): New function.
24179 (try_redirect_by_replacing_jump): Use it.
24180 (cfg_layout_redirect_edge_and_branch): Likewise.
24181
24182 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24183
24184 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24185 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24186 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24187 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24188 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24189 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24190 New BU_CRYPTO_2.
24191 * config/rs6000/rs6000.c (builtin_function_type)
24192 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24193 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24194 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24195 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24196 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24197
24198 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24199
24200 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24201 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24202
24203 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24204
24205 PR target/89229
24206 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24207 268678 and revision 268657.
24208 (*movti_internal): Likewise.
24209
24210 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24211
24212 PR target/89233
24213 * config/s390/s390.c (s390_decompose_address): Update comment.
24214 (s390_check_qrst_address): Reject invalid address forms after
24215 LRA.
24216
24217 2019-02-12 Martin Liska <mliska@suse.cz>
24218
24219 PR lto/88876
24220 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24221 we need default values of funct_state for a function that
24222 is not optimized.
24223
24224 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24225
24226 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24227 the object to pick the size of stores on strict-alignment platforms.
24228
24229 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24230 (*movdi_insn_sp32): Likewise.
24231 (*movdi_insn_sp64): Likewise.
24232
24233 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24234
24235 PR lto/88677
24236 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24237 types that needs constructiong.
24238 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24239
24240 2019-02-12 Richard Biener <rguenther@suse.de>
24241
24242 PR tree-optimization/89253
24243 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24244 duplicate the loop.
24245
24246 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24247
24248 PR lto/88147
24249 * input.c (selftest::test_line_offset_overflow): New selftest.
24250 (selftest::input_c_tests): Call it.
24251
24252 2019-02-11 Martin Sebor <msebor@redhat.com>
24253
24254 PR tree-optimization/88771
24255 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24256 when -Wstringop-overflow is set.
24257 (builtin_memref::builtin_memref): Adjust excessive upper bound
24258 only when lower bound is not excessive.
24259 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24260 -Wstringop-ovefflow.
24261 (maybe_diag_offset_bounds): Rename...
24262 (maybe_diag_access_bounds): ...to this.
24263 (check_bounds_or_overlap): Adjust for name change above.
24264
24265 2019-02-11 Martin Sebor <msebor@redhat.com>
24266
24267 PR c++/87996
24268 * builtins.c (max_object_size): Move from here...
24269 * builtins.h (max_object_size): ...and here...
24270 * tree.c (max_object_size): ...to here...
24271 * tree.h (max_object_size): ...and here.
24272
24273 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24274
24275 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24276 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24277 for correct semantics.
24278
24279 2019-02-11 Alan Modra <amodra@gmail.com>
24280
24281 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24282 -mlongcall and -mpltseq.
24283 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24284 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24285 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24286 * config/rs6000/sysv4.opt (mpltseq): New option.
24287 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24288 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24289 support is lacking. Don't allow -mpltseq with -mbss-plt.
24290 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24291 -mpltseq given for ELFv1.
24292 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24293 Only use UNSPEC_PLTSEQ for inline PLT calls.
24294 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24295 use UNSPEC_PLTSEQ for inline PLT calls.
24296 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24297 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24298 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24299 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24300 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24301 (pltseq_mtctr_<mode>): Likewise.
24302
24303 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24304
24305 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24306 Solaris ld.
24307 * configure: Regenerate.
24308
24309 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24310
24311 PR bootstrap/88714
24312 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24313 instead of r.
24314
24315 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24316
24317 * function.c (assign_parm_setup_block): Use the stored
24318 size, not the passed size, when allocating stack-space,
24319 also for a parameter with alignment larger than
24320 MAX_SUPPORTED_STACK_ALIGNMENT.
24321
24322 2019-02-11 Martin Liska <mliska@suse.cz>
24323
24324 PR ipa/89009
24325 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24326 * ipa-inline.c (inline_small_functions): Likewise.
24327 * ipa-pure-const.c (propagate_pure_const): Likewise.
24328 (propagate_nothrow): Likewise.
24329 * ipa-reference.c (propagate): Likewise.
24330 * ipa-utils.c (struct searchc_env): Remove unused field.
24331 (searchc): Always search across AVAIL_INTERPOSABLE.
24332 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24333 the only called IPA pure const can properly not propagate
24334 across interposable boundary.
24335 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24336
24337 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24338
24339 * config/nds32/nds32.md (call_internal, call_value_internal,
24340 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24341
24342 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24343
24344 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24345 typo.
24346
24347 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24348
24349 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24350 in comments
24351
24352 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24353
24354 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24355
24356 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24357
24358 PR tree-optimization/89268
24359 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24360 if preds is non-NULL.
24361
24362 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24363
24364 PR lto/89272
24365 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24366 polymorphic types.
24367
24368 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24369
24370 * config/nds32/nds32.md (trap): New pattern.
24371
24372 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24373
24374 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24375 dwarf span.
24376
24377 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24378
24379 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24380 to split POST_INC.
24381
24382 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24383
24384 * ipa-visibility.c (localize_node): Also do not localize
24385 LDPR_PREVAILING_DEF_IRONLY_EXP.
24386
24387 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24388
24389 PR lto/87957
24390 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24391 instead of type_with_linkage.
24392
24393 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24394
24395 PR ipa/88755
24396 * params.def (uninlined-function-insns, uninlined-function-time,
24397 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24398 bound so we don't get overflows.
24399
24400 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24401
24402 * config/rs6000/rs6000-string.c (expand_compare_loop,
24403 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24404 memcmp/strncmp.
24405
24406 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24407
24408 PR middle-end/89246
24409 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24410 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24411 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24412
24413 2019-02-09 Alan Modra <amodra@gmail.com>
24414
24415 PR target/88343
24416 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24417 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24418 setup.
24419
24420 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24421
24422 PR middle-end/88560
24423 * lra-constraints.c (process_alt_operands): Don't increase reject
24424 for memory when offset memory is required.
24425
24426 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24427
24428 * config/s390/vector.md: Implement vector copysign.
24429
24430 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24431
24432 * expr.c (expand_constructor): Correct indentations.
24433
24434 2019-02-08 Richard Biener <rguenther@suse.de>
24435
24436 PR tree-optimization/89247
24437 * tree-if-conv.c: Include tree-cfgcleanup.h.
24438 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24439 (tree_if_conversion): Pass through predicate vector.
24440 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24441 inline, see if any if-converted loops we refrece in
24442 LOOP_VECTORIZED calls vanished and fixup.
24443 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24444
24445 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24446
24447 * config/s390/constraints.md (jdd): New constraint.
24448
24449 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24450
24451 PR target/89229
24452 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24453 upper 16 vector registers without TARGET_AVX512VL.
24454 (*movti_internal): Likewise.
24455
24456 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24457
24458 PR rtl-optimization/89234
24459 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24460 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24461 (copy_reg_eh_region_note_backward): Likewise.
24462
24463 2019-02-08 Richard Biener <rguenther@suse.de>
24464
24465 PR middle-end/89223
24466 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24467 doesn't fit in HWI.
24468 (analyze_subscript_affine_affine): Handle failure from
24469 initialize_matrix_A.
24470
24471 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24472
24473 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24474 cfun everywhere.
24475
24476 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24477
24478 PR tree-optimization/86637
24479 PR tree-optimization/89235
24480 * tree-vect-loop.c (optimize_mask_stores): Add an
24481 auto_purge_vect_location sentinel to ensure that vect_location is
24482 purged on exit.
24483 * tree-vectorizer.c
24484 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24485 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24486 to ensure that vect_location is purged on exit.
24487 (pass_slp_vectorize::execute): Likewise, replacing the manual
24488 reset.
24489 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24490
24491 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24492
24493 * config/aarch64/iterators.md (max_opp): New code_attr.
24494 (USMAX): New code iterator.
24495 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24496 (aarch64_smax): Likewise.
24497 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24498 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24499 MINUS (MAX MIN).
24500
24501 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24502
24503 PR target/89229
24504 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24505 for TARGET_AVX512VL.
24506 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24507
24508 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24509
24510 * config/s390/s390-builtin-types.def: Add new types.
24511 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24512 (s390_vec_xlw4): Make the memory operand into a const pointer.
24513 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24514 float.
24515 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24516 a new vector type with the alignment of the scalar memory operand.
24517
24518 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24519 Jakub Jelinek <jakub@redhat.com>
24520
24521 PR bootstrap/88714
24522 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24523 arm_count_ldrdstrd_insns): New declarations.
24524 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24525 MINUS.
24526 (valid_operands_ldrd_strd): New function.
24527 (arm_count_ldrdstrd_insns): New function.
24528 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24529 sets instead of single DImode set and define new insns to match this.
24530
24531 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24532
24533 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24534 Make it a C initializer.
24535
24536 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24537
24538 PR/target 88850
24539 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24540
24541 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24542
24543 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24544 Use neon_dot<q> for type.
24545 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24546
24547 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24548
24549 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24550 Use neon_dot<q> for type.
24551 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24552 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24553
24554 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24555
24556 PR rtl-optimization/89225
24557 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24558 sizes check.
24559
24560 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24561
24562 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24563 after restoring registers saved to allocate the frame on Windows.
24564
24565 2019-02-06 Richard Biener <rguenther@suse.de>
24566
24567 PR tree-optimization/89182
24568 * graphite.h (cached_scalar_evolution_in_region): Declare.
24569 * graphite.c (struct seir_cache_key): New.
24570 (struct sese_scev_hash): Likewise.
24571 (seir_cache): New global.
24572 (cached_scalar_evolution_in_region): New function.
24573 (graphite_transform_loops): Allocate and release seir_cache.
24574 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24575 cached_scalar_evolution_in_region.
24576 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24577 Simplify.
24578 (scop_detection::graphite_can_represent_expr: Use
24579 cached_scalar_evolution_in_region.
24580 (scop_detection::stmt_simple_for_scop_p): Likewise.
24581 (find_params_in_bb): Likewise.
24582 (gather_bbs::before_dom_children): Likewise.
24583 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24584 (add_loop_constraints): Likewise.
24585
24586 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24587
24588 PR middle-end/89210
24589 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24590 operand to new_unary_operation only if both element types are integral
24591 and it isn't a widening conversion. Return NULL_TREE if
24592 new_unary_operation failed.
24593
24594 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24595
24596 PR target/88856
24597 * config/s390/s390.md: Remove load and test FP splitter.
24598
24599 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24600
24601 PR target/89112
24602 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24603 expand_compare_loop, expand_block_compare_gpr,
24604 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24605 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24606 #include "profile-count.h" and "predict.h" for types and functions
24607 needed to work with REG_BR_PROB notes.
24608
24609 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24610
24611 PR target/89112
24612 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24613 for the long branch case.
24614
24615 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24616
24617 PR target/89188
24618 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24619 can throw, non-call exceptions are enabled and we can't delete
24620 dead exceptions or alter cfg. Set must_clean if
24621 delete_insn_and_edges returns true, don't set it blindly for calls.
24622 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24623
24624 PR rtl-optimization/89195
24625 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24626 of the original MEM.
24627
24628 2019-02-05 Martin Liska <mliska@suse.cz>
24629
24630 PR gcov-profile/89000
24631 * gcov.c (function_summary): Remove argument.
24632 (file_summary): New function.
24633 (print_usage): Replace tabs with spaces.
24634 (generate_results): Use new function file_summary.
24635
24636 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24637
24638 PR target/89186
24639 * optabs.c (prepare_cmp_insn): Pass x and y to
24640 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24641
24642 2019-02-05 Richard Biener <rguenther@suse.de>
24643
24644 PR middle-end/89150
24645 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24646 (struct bitmap_element): Drop chain_prev so we properly recurse on
24647 the prev member, supporting tree views.
24648 (struct bitmap_head): GTY skip the obstack member.
24649
24650 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24651
24652 PR c/88698
24653 * doc/extend.texi (Vector Extensions): Add an example of using vector
24654 types together with x86 intrinsics.
24655
24656 2019-02-04 Alan Modra <amodra@gmail.com>
24657
24658 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24659 str[] size to 160, and comment.
24660
24661 2019-02-04 Alan Modra <amodra@gmail.com>
24662
24663 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24664 (rs6000_pltseq_template): Guard output of TLS markers with
24665 TARGET_TLS_MARKERS.
24666 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24667 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24668 to use inline PLT sequences.
24669 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24670 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24671 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24672
24673 2019-02-04 Martin Liska <mliska@suse.cz>
24674
24675 PR ipa/88985
24676 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24677 out when ipa_fn_summaries does not contain entry for callee.
24678
24679 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24680
24681 * config/sparc/sparc.h: Remove superfluous blank lines.
24682 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24683 (got_register_rtx): ...this.
24684 (sparc_got): Adjust to above renaming.
24685 (sparc_tls_got): Likewise.
24686 (sparc_delegitimize_address): Likewise.
24687 (sparc_output_mi_thunk): Likewise.
24688 (sparc_init_pic_reg): Likewise.
24689 (save_local_or_in_reg_p): Fix test on the GOT register.
24690 (USE_HIDDEN_LINKONCE): Move around.
24691 (get_pc_thunk_name): Likewise.
24692 (gen_load_pcrel_sym): Likewise.
24693 (load_got_register): Likewise.
24694
24695 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24696
24697 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24698 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24699
24700 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24701
24702 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24703 into consideration.
24704
24705 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24706
24707 * config.gcc (with_nds32_lib, glibc):
24708 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24709 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24710 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24711
24712 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24713
24714 PR target/89071
24715 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24716 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24717 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24718 (*rcpsf2_sse): Ditto.
24719 (*rsqrtsf2_sse): Ditto.
24720 (sse4_1_round<mode<2): Ditto.
24721
24722 2019-02-03 Richard Biener <rguenther@suse.de>
24723
24724 PR debug/87295
24725 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24726 orig.
24727
24728 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24729
24730 PR middle-end/87887
24731 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24732 Punt with warning on aggregate return or argument types. Ignore
24733 type/mode checking for uniform arguments.
24734
24735 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24736
24737 * combine.c (try_combine): Do not print "Can't combine" messages unless
24738 printing failed combination attempts.
24739
24740 2019-02-01 Martin Jambor <mjambor@suse.cz>
24741
24742 PR hsa/87863
24743 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24744 segment and global segment variables before making them static.
24745
24746 2019-02-01 Martin Jambor <mjambor@suse.cz>
24747
24748 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24749 missed optimization dump with dump_enabled_p.
24750
24751 2019-02-01 Richard Biener <rguenther@suse.de>
24752
24753 PR middle-end/88597
24754 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24755 the instantiate cache.
24756 (instantiate_scev_binary): Elide second operand procesing
24757 if equal to the first.
24758 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24759 (chrec_contains_undetermined): Likewise.
24760 (tree_contains_chrecs): Likewise.
24761
24762 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24763
24764 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24765
24766 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24767
24768 PR tree-optimization/89143
24769 * wide-int-range.h (wide_int_range_absu): Declare.
24770 * wide-int-range.cc (wide_int_range_absu): New function.
24771 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24772
24773 PR tree-optimization/88107
24774 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24775 instead of assertion that eh_region_outermost is non-NULL, if it
24776 is NULL, set *ALL to true and return NULL.
24777 (move_sese_region_to_fn): Adjust caller, if all is set, call
24778 duplicate_eh_regions with NULL region.
24779
24780 2019-02-01 Richard Biener <rguenth@suse.de>
24781
24782 PR rtl-optimization/88593
24783 * mode-switching.c (optimize_mode_switching): Free dominators before
24784 calling cleanup_cfg.
24785
24786 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24787
24788 PR tree-optimization/88932
24789 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24790
24791 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24792
24793 PR middle-end/89137
24794 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24795 bogus clang warning.
24796
24797 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24798
24799 PR target/89071
24800 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24801 alternative to avoid partial SSE register stall for TARGET_AVX.
24802 (truncdfsf2): Ditto.
24803 (sse4_1_round<mode>2): Ditto.
24804
24805 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24806
24807 PR tree-optimization/89008
24808 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24809 process anything of the form X * 0.
24810
24811 2019-01-31 Richard Biener <rguenther@suse.de>
24812
24813 PR tree-optimization/89135
24814 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24815 with abnormal preds.
24816
24817 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24818
24819 PR sanitizer/89124
24820 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24821 always_inline callees into no_sanitize_address callers.
24822
24823 2019-01-31 Richard Biener <rguenther@suse.de>
24824
24825 PR rtl-optimization/89115
24826 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24827
24828 2019-01-30 Martin Sebor <msebor@redhat.com>
24829
24830 PR other/89106
24831 * doc/extend.texi (cast to a union): Correct and expand.
24832
24833 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24834
24835 PR rtl-optimization/87246
24836 * lra-constraints.c (simplify_operand_subreg): Reload memory
24837 in subreg if the address became invalid.
24838
24839 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24840
24841 PR target/87064
24842 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24843 Disable for little-endian.
24844
24845 2019-01-30 Richard Biener <rguenther@suse.de>
24846
24847 PR rtl-optimization/89115
24848 * opts.c (default_options_optimization): Reduce
24849 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24850 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24851 to the default.
24852
24853 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24854
24855 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24856 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24857 type of vector element when vec_extract is implemented by direct
24858 move.
24859
24860 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24861
24862 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24863
24864 2019-01-30 Richard Biener <rguenther@suse.de>
24865
24866 PR tree-optimization/89111
24867 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24868 canonicalization to appropriately sized access types.
24869
24870 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24871
24872 PR c++/89105
24873 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24874 for arguments to functions that are TU-local and shouldn't be
24875 referenced by assembly.
24876
24877 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24878
24879 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24880 after '='.
24881
24882 2019-01-29 Martin Sebor <msebor@redhat.com>
24883
24884 PR c/88956
24885 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24886
24887 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24888
24889 PR c++/66676
24890 PR ipa/89104
24891 * omp-simd-clone.c (simd_clone_clauses_extract)
24892 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24893 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24894
24895 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24896
24897 * config.gcc: Force .init_array for ARC.
24898
24899 2019-01-29 Richard Biener <rguenther@suse.de>
24900
24901 PR debug/87295
24902 * dwarf2out.c (collect_skeleton_dies): New helper.
24903 (copy_decls_for_unworthy_types): Call it.
24904 (build_abbrev_table): Assert we do not try to replace
24905 DW_AT_signature refs with local refs.
24906
24907 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24908
24909 PR middle-end/89002
24910 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24911 for lastprivate/linear IV, push gimplify context around gimplify_assign
24912 and, if it needed any temporaries, pop it into a gimple bind around the
24913 sequence.
24914
24915 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24916
24917 * common.opt (-Wattribute-alias): Remove "no-" from name.
24918 Make -Wattribute-alias command line option and
24919 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24920
24921 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24922
24923 PR target/89073
24924 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24925 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24926 x86 ISA options.
24927 (bmi2): Add missing @opindex.
24928 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24929 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24930 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24931 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24932 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24933 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24934 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24935 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24936 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24937 xsavec, xsaveopt and xsaves options.
24938
24939 2019-01-28 Richard Biener <rguenther@suse.de>
24940
24941 PR debug/89076
24942 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24943 support removal.
24944
24945 2019-01-28 Richard Biener <rguenther@suse.de>
24946
24947 PR tree-optimization/88739
24948 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24949 BIT_FIELD_REFs only are applied to mode-precision operands
24950 when they are integral.
24951 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24952 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24953 BIT_FIELD_REFs of non-mode-precision integral operands.
24954
24955 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24956
24957 PR target/87214
24958 * config/i386/sse.md
24959 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24960 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24961 first constants in pairs are multiples of 2. Formatting fixes.
24962 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24963 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24964 first constants in each quadruple are multiples of 4. Formatting fixes.
24965
24966 2019-01-26 Martin Jambor <mjambor@suse.cz>
24967
24968 PR ipa/88933
24969 * tree-inline.c: Include tree-cfgcleanup.h.
24970 (delete_unreachable_blocks_update_callgraph): Move...
24971 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24972 ...here, make externally visible, make second argument bool, adjust
24973 all callers.
24974 * tree-cfgcleanup.c: Include cgraph.h.
24975 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24976 Declare.
24977 * ipa-prop.c: Include tree-cfgcleanup.h.
24978 (ipcp_transform_function): Call
24979 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24980
24981 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24982
24983 PR rtl-optimization/88846
24984 * ira.c (process_set_for_memref_referenced_p): New.
24985 (memref_referenced_p): Add new param. Use
24986 process_set_for_memref_referenced_p. Add new switch cases.
24987 (memref_used_between_p): Pass new arg to memref_referenced_p.
24988
24989 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24990
24991 PR target/88469
24992 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24993 argument ABI_BREAK. Set to true if the calculated alignment has
24994 changed in gcc-9. Check bit-fields for their base type alignment.
24995 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24996 (aarch64_function_arg_boundary): Likewise.
24997 (aarch64_gimplify_va_arg_expr): Likewise.
24998
24999 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25000
25001 PR middle-end/89037
25002 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
25003 instead of accessing TREE_INT_CST_ELT directly.
25004
25005 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
25006
25007 * doc/sourcebuild.texi (Environment attributes): Add fenv and
25008 fenv_exceptions description.
25009
25010 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
25011
25012 PR rtl-optimization/87763
25013 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
25014 Allow SUBREG when matching CC_NZmode compare.
25015
25016 2019-01-25 Richard Biener <rguenther@suse.de>
25017
25018 PR tree-optimization/89049
25019 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
25020 Look at the pattern stmt to determine if the stmt is vectorized.
25021
25022 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
25023
25024 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
25025 (pred_mov<mode>): Handle all-register forms using both a new
25026 alternative and a split.
25027
25028 2019-01-25 Richard Biener <rguenther@suse.de>
25029
25030 PR tree-optimization/86865
25031 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25032 Reject non-do-while loops.
25033
25034 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
25035
25036 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
25037 * config/rs6000/constraints.md (Q constraint): Use REG_P.
25038 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
25039 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25040 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
25041 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25042 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
25043 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
25044 vlogical_operand, gpc_reg_operand, int_reg_operand,
25045 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
25046 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
25047 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
25048 (save_world_operation, restore_world_operation, lmw_operation,
25049 stmw_operation): Use MEM_P and REG_P.
25050 (tie_operand): Use MEM_P.
25051 (vrsave_operation, crsave_operation): Use REG_P.
25052 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
25053 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
25054 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
25055 (call_operand): Use HARD_REGISTER_P.
25056 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
25057 Use CONST_INT_P.
25058 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
25059 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
25060 quad_aligned_load_p, replace_swapped_aligned_store,
25061 recombine_lvx_pattern, replace_swapped_aligned_load,
25062 recombine_stvx_pattern): Use MEM_P.
25063 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
25064 Use MEM_P and SYMBOL_REF_P.
25065 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
25066 (insn_is_swappable_p): Use REG_P and MEM_P.
25067 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
25068 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
25069 Use CONST_INT_P.
25070 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
25071 Use CONST_DOUBLE_P.
25072 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
25073 CONST_WIDE_INT_P.
25074 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
25075 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
25076 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
25077 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
25078 reg_or_subregno:
25079 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25080 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
25081 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
25082 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
25083 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
25084 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
25085 rs6000_split_logical_di): Use CONST_INT_P.
25086 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
25087 REG_P and SYMBOL_REF_P.
25088 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
25089 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
25090 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
25091 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
25092 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
25093 (small_data_operand, print_operand_address): Use CONST_INT_P and
25094 SYMBOL_REF_P.
25095 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
25096 (rs6000_init_hard_regno_mode_ok, direct_move_p):
25097 Use HARD_REGISTER_NUM_P.
25098 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
25099 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
25100 SUBREG_P and SYMBOL_REF_P.
25101 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
25102 and HARD_REGISTER_NUM_P.
25103 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
25104 reg_or_subregno.
25105 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
25106 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
25107 MEM_P and REG_P.
25108 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
25109 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
25110 find_addr_reg): Use REG_P.
25111 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
25112 (rs6000_emit_le_vsx_move): Use SUBREG_P.
25113 (offsettable_ok_by_alignment, constant_pool_expr_p,
25114 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
25115 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
25116 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
25117 rs6000_assemble_integer, create_TOC_reference,
25118 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
25119 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
25120 (rs6000_split_vec_extract_var): Use reg_or_subregno.
25121 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25122 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25123 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25124 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25125 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
25126 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
25127 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
25128 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
25129 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
25130 and cbranch<mode>4): Use CONST_INT_P.
25131 (multiple define_splits): Use REG_P and SUBREG_P.
25132 (define_expands call, call_value): Use MEM_P.
25133 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
25134 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
25135 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
25136 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
25137 and HARD_REGISTER_NUM_P.
25138 (multiple define_splits): Use HARD_REGISTER_NUM_P.
25139
25140 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
25141
25142 PR rtl-optimization/88948
25143 * rtl.h (prepare_copy_insn): New prototype.
25144 * gcse.c (prepare_copy_insn): New function, split out from
25145 process_insert_insn.
25146 (process_insert_insn): Use prepare_copy_insn.
25147 * store-motion.c (replace_store_insn): Use prepare_copy_insn
25148 instead of gen_move_insn.
25149
25150 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25151
25152 PR debug/89006
25153 * config/i386/i386.c (ix86_pic_register_p): Return true for
25154 UNSPEC_SET_GOT too.
25155
25156 PR tree-optimization/88964
25157 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25158 punt if HONOR_SNANS (chrec).
25159
25160 PR middle-end/89015
25161 * tree-nested.c (convert_nonlocal_reference_stmt,
25162 convert_local_reference_stmt, convert_tramp_reference_stmt,
25163 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25164 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25165 or GIMPLE_OMP_TASK.
25166
25167 PR tree-optimization/89027
25168 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25169 for "omp simd array" variables.
25170
25171 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25172
25173 PR target/88469
25174 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25175 force the alignment of m_val.
25176
25177 2019-01-24 Richard Biener <rguenther@suse.de>
25178
25179 PR lto/87187
25180 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25181 When in "legacy" debug mode make sure to reset self-origins.
25182
25183 2019-01-24 Martin Liska <mliska@suse.cz>
25184
25185 PR gcov-profile/88994
25186 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25187 result will be always smaller or equal to the original.
25188 * gcov.c (mangle_name): Fix else branch where we should
25189 also copy to PTR and shift the pointer.
25190
25191 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25192
25193 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25194 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25195
25196 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25197
25198 * common/config/i386/i386-common.c
25199 (OPTION_MASK_ISA_ENQCMD_SET,
25200 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25201 (ix86_handle_option): Handle -menqcmd.
25202 * config.gcc (enqcmdintrin.h): New header file.
25203 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25204 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25205 -menqcmd.
25206 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25207 function type.
25208 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25209 __builtin_ia32_enqcmds): New builtins.
25210 * config/i386/i386-c.c (__ENQCMD__): New macro.
25211 * config/i386/i386-option.c (ix86_target_string): Add
25212 -menqcmd.
25213 (ix86_valid_target_attribute_inner_p): Likewise.
25214 * config/i386/i386-expand.c
25215 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25216 IX86_BUILTIN_ENQCMDS.
25217 * config/i386/i386.h (TARGET_ENQCMD): New.
25218 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25219 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25220 (movdir64b_<mode>): Parameterize to enable share expansion code
25221 with ENQCMD in function ix86_expand_builtin.
25222 * config/i386/i386.opt: Add -menqcmd.
25223 * config/i386/immintrin.h: Include enqcmdintrin.h.
25224 * config/i386/enqcmdintrin.h: New intrinsic file.
25225 * doc/invoke.texi: Add -menqcmd.
25226
25227 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25228 Steve Ellcey <sellcey@marvell.com>
25229
25230 PR target/85711
25231 * recog.c (address_operand): Return false on wrong mode for address.
25232 (constrain_operands): Check for mode with 'p' constraint.
25233
25234 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25235
25236 PR target/88998
25237 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25238 Disparage MMX alternative.
25239 (sse2_cvtpd2pi): Ditto.
25240 (sse2_cvttpd2pi): Ditto.
25241
25242 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25243
25244 PR driver/89014
25245 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25246 use-after-free of the result of
25247 aarch64_get_extension_string_for_isa_flags.
25248
25249 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25250
25251 PR c/44715
25252 * doc/extend.texi: Document break and continue behavior in
25253 statement expressions.
25254
25255 2019-01-23 Richard Biener <rguenther@suse.de>
25256
25257 PR tree-optimization/89008
25258 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25259 not leave another stray operand.
25260
25261 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25262
25263 * BASE-VER: Bump to 9.0.1.
25264
25265 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25266
25267 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25268 thunk that returns by reference, use the type of the return object
25269 of the thunk instead of that of the alias to build the dereference.
25270
25271 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25272
25273 * config/arc/atomic.md: Add operand to DMB instruction.
25274
25275 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25276
25277 PR tree-optimization/88964
25278 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25279 build_zero_cst instead of build_int_cst. Return false for loop
25280 invariants which honor signed zeros.
25281
25282 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25283
25284 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25285
25286 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25287
25288 PR target/88965
25289 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25290 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25291 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25292
25293 PR middle-end/88968
25294 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25295 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25296
25297 PR target/87064
25298 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25299 Disable for little endian.
25300
25301 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25302
25303 PR target/88469
25304 * config/arm/arm.c (arm_needs_double_word_align): Check
25305 DECL_BIT_FIELD_TYPE.
25306
25307 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25308 H.J. Lu <hongjiu.lu@intel.com>
25309
25310 PR target/88909
25311 * config/i386/i386-builtin.def: Add mask2 to all builtin
25312 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25313 SPECIAL_ARGS.
25314 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25315 (BDESC_FIRST): Likewise.
25316 (define_builtin): Add an argument for mask2. Updated to handle
25317 both ix86_isa_flags and ix86_isa_flags2.
25318 (define_builtin_const): Likewise.
25319 (define_builtin_pure): Likewise.
25320 (define_builtin2): Deleted.
25321 (define_builtin_const2): Likewise.
25322 (builtin_description): Add a member, mask2.
25323 (bdesc_*): Add mask2 to builtin initializations.
25324 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25325 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25326 support.
25327 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25328
25329 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25330
25331 PR target/88954
25332 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25333 noplt attribute.
25334
25335 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25336
25337 PR target/88469
25338 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25339 alignment is dominated by a bitfield with 64-bit aligned base type.
25340 (arm_function_arg): Emit a warning if the alignment has changed since
25341 earlier GCC releases.
25342 (arm_function_arg_boundary): Likewise.
25343 (arm_setup_incoming_varargs): Likewise.
25344
25345 2019-01-22 Richard Biener <rguenther@suse.de>
25346
25347 PR tree-optimization/88862
25348 * graphite-scop-detection.c
25349 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25350
25351 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25352
25353 * doc/extend.tex (AMD GCN Function Attributes): New section.
25354 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25355 * doc/invoke.texi (AMD GCN Options): New section.
25356 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25357
25358 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25359
25360 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25361 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25362
25363 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25364
25365 PR tree-optimization/88044
25366 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25367 is false in the first iteration, but !every_iteration, return false
25368 instead of true with niter->niter zero.
25369
25370 PR rtl-optimization/88904
25371 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25372 any nonequal registers before processing BB_END (b).
25373
25374 PR target/88905
25375 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25376 GET_MODE (op0).
25377 (expand_binop_directly, expand_doubleword_clz,
25378 expand_doubleword_popcount, expand_ctz, expand_ffs,
25379 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25380
25381 PR rtl-optimization/49429
25382 PR target/49454
25383 PR rtl-optimization/86334
25384 PR target/88906
25385 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25386 addressable from here...
25387 (emit_block_op_via_libcall): ... to here.
25388
25389 2019-01-22 Richard Biener <rguenther@suse.de>
25390
25391 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25392 auto_vec for cost vector to fix memleak.
25393 (vectorize_fold_left_reduction): Properly gather SLP defs.
25394 (vectorizable_comparison): Do not swap operands to properly
25395 gather SLP defs.
25396
25397 2019-01-22 Alan Modra <amodra@gmail.com>
25398
25399 PR target/88614
25400 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25401 stays a reg. Allow a const_int.
25402 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25403 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25404 (IS_NOMARK_TLSGETADDR): Define.
25405 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25406 (rs6000_output_tlsargs): New function.
25407 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25408 __tls_get_addr call takes an arg.
25409 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25410 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25411 delete split..
25412 (call_value_nonlocal_sysv): ..or here, delete split.
25413 (tls_gdld_nomark): Delete.
25414 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25415 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25416 (call_value_nonlocal_sysv): Likewise.
25417 (call_value_nonlocal_sysv_secure): Likewise.
25418 (call_value_nonlocal_aix): Likewise.
25419 (call_value_indirect_aix): Likewise.
25420 (call_value_indirect_elfv2): Likewise.
25421 (call_value_local32, call_value_local64): Disable for no-mark tls.
25422 (call_value_local_aix): Likewise.
25423
25424 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25425
25426 PR target/88938
25427 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25428 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25429
25430 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25431
25432 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25433 string contents as hash_map keys.
25434
25435 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25436
25437 PR c/88928
25438 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25439 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25440 instead of TYPE_ALIGN.
25441 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25442 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25443 pointer from TYPE_STUB_DECL.
25444
25445 2019-01-21 Richard Biener <rguenther@suse.de>
25446
25447 PR tree-optimization/88934
25448 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25449 at the possibly non-constant operand.
25450 (vect_get_constant_vectors): Adjust.
25451
25452 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25453
25454 PR target/71659
25455 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25456 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25457 instead of _X86INTRIN_H_INCLUDED.
25458 * onfig/i386/clwbintrin.h: Likewise.
25459 * config/i386/pkuintrin.h: Likewise.
25460 * config/i386/prfchwintrin.h: Likewise.
25461 * config/i386/rdseedintrin.h: Likewise.
25462 * config/i386/wbnoinvdintrin.h: Likewise.
25463 * config/i386/xsavecintrin.h: Likewise.
25464 * config/i386/xsavesintrin.h: Likewise.
25465 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25466 * config/i386/xsaveintrin.h: Likewise.
25467 * config/i386/xsaveoptintrin.h: Likewise.
25468 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25469 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25470 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25471 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25472 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25473 * config/i386/immintrin.h: Here.
25474
25475 2019-01-20 Martin Jambor <mjambor@suse.cz>
25476
25477 PR ipa/87615
25478 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25479 with aa_walk_budget.
25480 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25481 aa_walk_budget_p parameter.
25482 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25483 walk. Updated all callers.
25484 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25485 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25486 unmodified_parm.
25487 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25488 parameter info. Extract info from fbi. Pass fbi to recursive calls
25489 and to unmodified_parm.
25490 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25491 info, updated call to will_be_nonconstant_expr_predicate.
25492 (param_change_prob): New parameter fbi, limit AA walking.
25493 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25494 calls to various above functions.
25495 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25496 parameter. Use it to limit AA walking.
25497 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25498 fbi, limit AA walk.
25499 (detect_type_change): New parameter fbi, pass it on to
25500 detect_type_change_from_memory_writes.
25501 (detect_type_change_ssa): Likewise.
25502 (aa_overwalked): Removed.
25503 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25504 accordingly, adjust to the neew AA limiting scheme.
25505 (parm_ref_data_preserved_p): Likewise.
25506 (ipa_compute_jump_functions_for_edge): Adjust call to
25507 get_dynamic_type.
25508 (ipa_analyze_call_uses): Likewise.
25509 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25510 (ipa_analyze_node): Initialize aa_walk_budget.
25511 (ipcp_transform_function): Likewise.
25512 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25513 to get_dynamic_type.
25514
25515 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25516
25517 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25518 outside of #if CHECKING_P code.
25519
25520 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25521
25522 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25523 New function, split out from...
25524 (loop_versioning::analyze_stride): ...here.
25525 (loop_versioning::find_per_loop_multiplication): Use gassign.
25526 (loop_versioning::analyze_term_using_scevs): Return a success code.
25527 (loop_versioning::analyze_arbitrary_term): New function.
25528 (loop_versioning::analyze_address_fragment): Use
25529 analyze_arbitrary_term if all else fails.
25530
25531 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25532
25533 PR target/88892
25534 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25535 operands.
25536
25537 2019-01-18 Richard Biener <rguenther@suse.de>
25538
25539 PR tree-optimization/88903
25540 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25541 scalar stmts a SLP shift amount is composed of when detecting
25542 shifts by scalars.
25543
25544 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25545
25546 PR target/88799
25547 * config/arm/arm-cpus.in (mp): New feature.
25548 (sec): New feature.
25549 (fgroup ARMv7ve): Add mp and sec features.
25550 (arch armv7-a): Add options to allow mp and sec extensions.
25551 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25552 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25553 extenstions to the base architecture.
25554 (cpu cortex-a8): Add sec extension to the base architecture.
25555 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25556 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25557 variants down to the base v7-a varaint.
25558 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25559 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25560 of permitted extensions for -march=armv7-a and for
25561 -mcpu=generic-armv7-a.
25562
25563 2019-01-18 Martin Liska <mliska@suse.cz>
25564
25565 * params.def: Fix comment.
25566 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25567 name.
25568 (gimple_gen_ic_func_profiler): Likewise.
25569
25570 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25571
25572 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25573 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25574 and put in error checks for stack protector guard options.
25575 (aarch64_stack_protect_guard): New.
25576 (TARGET_STACK_PROTECT_GUARD): Define.
25577 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25578 (reg_stack_protect_address<mode>): New.
25579 (stack_protect_set): Adjust for SSP_GLOBAL.
25580 (stack_protect_test): Likewise.
25581 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25582 (-mstack-protector-guard): Likewise.
25583 (-mstack-protector-guard-offset): Likewise.
25584
25585 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25586
25587 PR tree-optimization/86214
25588 * tree-inline.h (struct copy_body_data): Add
25589 add_clobbers_to_eh_landing_pads member.
25590 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25591 (copy_edges_for_bb): Call it if EH edge destination is <
25592 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25593 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25594 if flag_stack_reuse != SR_NONE and clear it afterwards.
25595
25596 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25597
25598 PR target/85596
25599 * doc/install.texi (with-multilib-list): Document for aarch64.
25600
25601 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25602
25603 PR target/88734
25604 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25605 (("..."))) with ("...").
25606
25607 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25608
25609 * doc/extend.texi (Built-in Functions for Memory Model Aware
25610 Atomic Operations): Document atomic fetch and nand.
25611
25612 2019-01-18 Martin Liska <mliska@suse.cz>
25613 Richard Biener <rguenther@suse.de>
25614
25615 PR middle-end/88587
25616 * cgraph.h (create_version_clone_with_body): Add new argument
25617 with attributes.
25618 * cgraphclones.c (cgraph_node::create_version_clone): Add
25619 DECL_ATTRIBUTES to a newly created decl. And call
25620 valid_attribute_p so that proper cl_target_optimization_node
25621 is set for the newly created declaration.
25622 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25623 for declaration.
25624 (expand_target_clones): Do not call valid_attribute_p, it must
25625 be already done.
25626 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25627 vector types.
25628
25629 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25630
25631 PR target/88734
25632 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25633 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25634 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25635
25636 2019-01-17 Martin Sebor <msebor@redhat.com>
25637
25638 PR middle-end/88273
25639 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25640 Handle anti-ranges the same as no range at all.
25641
25642 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25643
25644 * config/aarch64/aarch64.c (cgraph.h): New include.
25645 (intl.h): New include.
25646 (supported_simd_type): New function.
25647 (currently_supported_simd_type): Ditto.
25648 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25649 (aarch64_simd_clone_adjust): Ditto.
25650 (aarch64_simd_clone_usable): Ditto.
25651 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25652 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25653 (TARGET_SIMD_CLONE_USABLE): Ditto.
25654 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25655 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25656 call.
25657
25658 2019-01-17 Martin Sebor <msebor@redhat.com>
25659
25660 PR tree-optimization/88800
25661 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25662 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25663 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25664 redundant argument. Add new argument and issue diagnostics under
25665 its control. Detect out-of-bounds access even with warnings
25666 disabled.
25667 (check_bounds_or_overlap): Change return type. Add argument.
25668 (wrestrict_dom_walker::check_call): Adjust.
25669 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25670 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25671 check_bounds_or_overlap's return value.
25672 (handle_builtin_stxncpy): Same.
25673 (handle_builtin_strcat): Same.
25674
25675 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25676 Kwok Cheung Yeung <kcy@codesourcery.com>
25677 Julian Brown <julian@codesourcery.com>
25678 Tom de Vries <tom@codesourcery.com>
25679
25680 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25681
25682 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25683
25684 * doc/sourcebuild.texi: Document dg-require-effective-target
25685 llvm_binutils and offload_gcn.
25686
25687 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25688 Kwok Cheung Yeung <kcy@codesourcery.com>
25689 Julian Brown <julian@codesourcery.com>
25690 Tom de Vries <tom@codesourcery.com>
25691
25692 * doc/sourcebuild.texi: Document dg-required-effective-target
25693 exceptions.
25694
25695 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25696 Kwok Cheung Yeung <kcy@codesourcery.com>
25697 Julian Brown <julian@codesourcery.com>
25698 Tom de Vries <tom@codesourcery.com>
25699 Jan Hubicka <hubicka@ucw.cz>
25700 Martin Jambor <mjambor@suse.cz>
25701
25702 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25703 * configure.ac: Check for dlopen.
25704 * configure: Regenerate.
25705
25706 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25707 Kwok Cheung Yeung <kcy@codesourcery.com>
25708 Julian Brown <julian@codesourcery.com>
25709 Tom de Vries <tom@codesourcery.com>
25710 Jan Hubicka <hubicka@ucw.cz>
25711 Martin Jambor <mjambor@suse.cz>
25712
25713 * common/config/gcn/gcn-common.c: New file.
25714 * config/gcn/driver-gcn.c: New file.
25715 * config/gcn/gcn-builtins.def: New file.
25716 * config/gcn/gcn-hsa.h: New file.
25717 * config/gcn/gcn-modes.def: New file.
25718 * config/gcn/gcn-opts.h: New file.
25719 * config/gcn/gcn-passes.def: New file.
25720 * config/gcn/gcn-protos.h: New file.
25721 * config/gcn/gcn-run.c: New file.
25722 * config/gcn/gcn-tree.c: New file.
25723 * config/gcn/gcn.c: New file.
25724 * config/gcn/gcn.h: New file.
25725 * config/gcn/gcn.opt: New file.
25726 * config/gcn/t-gcn-hsa: New file.
25727
25728 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25729 Kwok Cheung Yeung <kcy@codesourcery.com>
25730 Julian Brown <julian@codesourcery.com>
25731 Tom de Vries <tom@codesourcery.com>
25732 Jan Hubicka <hubicka@ucw.cz>
25733 Martin Jambor <mjambor@suse.cz>
25734
25735 * config/gcn/constraints.md: New file.
25736 * config/gcn/gcn-valu.md: New file.
25737 * config/gcn/gcn.md: New file.
25738 * config/gcn/predicates.md: New file.
25739
25740 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25741
25742 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25743 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25744 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25745 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25746
25747 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25748
25749 PR target/88851
25750 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25751 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25752 it and document registers.
25753
25754 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25755
25756 * config/aarch64/aarch64.c (ares_tunings): Define.
25757 * config/aarch64/aarch64-cores.def (ares): Use the above.
25758
25759 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25760
25761 PR target/88794
25762 Revert:
25763 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25764
25765 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25766 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25767 (_mm512_maskz_fixupimm_round_pd): Ditto.
25768 (_mm512_fixupimm_round_ps): Ditto.
25769 (_mm512_maskz_fixupimm_round_ps): Ditto.
25770 (_mm_fixupimm_round_sd): Ditto.
25771 (_mm_maskz_fixupimm_round_sd): Ditto.
25772 (_mm_fixupimm_round_ss): Ditto.
25773 (_mm_maskz_fixupimm_round_ss): Ditto.
25774 (_mm512_fixupimm_pd): Ditto.
25775 (_mm512_maskz_fixupimm_pd): Ditto.
25776 (_mm512_fixupimm_ps): Ditto.
25777 (_mm512_maskz_fixupimm_ps): Ditto.
25778 (_mm_fixupimm_sd): Ditto.
25779 (_mm_maskz_fixupimm_sd): Ditto.
25780 (_mm_fixupimm_ss): Ditto.
25781 (_mm_maskz_fixupimm_ss): Ditto.
25782 (_mm512_mask_fixupimm_round_pd): Update builtin.
25783 (_mm512_mask_fixupimm_round_ps): Ditto.
25784 (_mm_mask_fixupimm_round_sd): Ditto.
25785 (_mm_mask_fixupimm_round_ss): Ditto.
25786 (_mm512_mask_fixupimm_pd): Ditto.
25787 (_mm512_mask_fixupimm_ps): Ditto.
25788 (_mm_mask_fixupimm_sd): Ditto.
25789 (_mm_mask_fixupimm_ss): Ditto.
25790 * config/i386/avx512vlintrin.h:
25791 (_mm256_fixupimm_pd): Update parameters and builtin.
25792 (_mm256_maskz_fixupimm_pd): Ditto.
25793 (_mm256_fixupimm_ps): Ditto.
25794 (_mm256_maskz_fixupimm_ps): Ditto.
25795 (_mm_fixupimm_pd): Ditto.
25796 (_mm_maskz_fixupimm_pd): Ditto.
25797 (_mm_fixupimm_ps): Ditto.
25798 (_mm_maskz_fixupimm_ps): Ditto.
25799 (_mm256_mask_fixupimm_pd): Update builtin.
25800 (_mm256_mask_fixupimm_ps): Ditto.
25801 (_mm_mask_fixupimm_pd): Ditto.
25802 (_mm_mask_fixupimm_ps): Ditto.
25803 * config/i386/i386-builtin-types.def: Add new types and remove
25804 useless ones.
25805 * config/i386/i386-builtin.def: Update builtin definitions.
25806 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25807 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25808 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25809 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25810 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25811 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25812 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25813 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25814 * config/i386/subst.md:
25815 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25816 (round_saeonly_sd_mask_op4): Ditto.
25817 (round_saeonly_expand_operand5): Ditto.
25818 (round_saeonly_expand): Update.
25819
25820 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25821
25822 PR target/88794
25823 Revert:
25824 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25825
25826 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25827 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25828 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25829 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25830 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25831 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25832 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25833
25834 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25835
25836 PR target/88794
25837 Revert:
25838 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25839
25840 PR target/88489
25841 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25842 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25843 instead of UNSPEC_FIXUPIMM.
25844
25845 2019-01-17 Richard Biener <rguenther@suse.de>
25846
25847 PR lto/86736
25848 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25849 and friends for the LTO part of debug info.
25850
25851 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25852
25853 PR tree-optimization/86214
25854 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25855 if x == y.
25856
25857 PR rtl-optimization/88870
25858 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25859 throw if we can't alter the cfg or delete dead exceptions.
25860 (mark_insn): Don't call find_call_stack_args for such calls.
25861
25862 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25863
25864 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25865 prototypes for vec_st.
25866 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25867 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25868 mainly on signed/unsigned long long and double.
25869
25870 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25871
25872 PR target/88861
25873 * combine.c (delete_noop_moves): Convert to "bool" return,
25874 returning true if any edges are eliminated.
25875 (combine_instructions): Also return true if delete_noop_moves
25876 returns true.
25877
25878 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25879
25880 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25881 correct max nunits for endian swap.
25882 (aarch64_expand_fcmla_builtin): Correct subreg code.
25883 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25884 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25885 lane endianness.
25886
25887 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25888
25889 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25890 Handle split indirect COMPLEX_TYPE arguments.
25891
25892 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25893
25894 PR target/86891
25895 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25896 bit is set by add and compare.
25897 (CC_ADC): New CC_MODE.
25898 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25899 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25900 comparison. Add detection for CC_ADCmode.
25901 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25902 CC_ADCmode.
25903 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25904 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25905 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25906 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25907 to eliminate the need for zero-extending the operands.
25908 (add<mode>3_compareC_imm): Delete. Merge into ...
25909 (add<mode>3_compareC): ... this. Restructure the comparison to
25910 eliminate the need for zero-extending the operands.
25911 (add<mode>3_carryin): Use LTU for the overflow detection.
25912 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25913 Reexpress comparison for overflow.
25914 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25915 (add<mode>3_carryinC): Likewise.
25916 (add<mode>3_carryinV): Use LTU for carry between partials.
25917 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25918 handling of CC_Cmode and add CC_ADCmode.
25919 (aarch64_borrow_operation): Likewise.
25920
25921 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25922
25923 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25924 Remove patternmode.
25925 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25926 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25927 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25928 Remove endianness conversion.
25929
25930 2019-01-16 Martin Liska <mliska@suse.cz>
25931
25932 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25933 for GCC driver.
25934 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25935 a new argument.
25936 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25937 (path_prefix_reset): Move up in the source file.
25938 (find_fortran_preinclude_file): Make complex search for the
25939 fortran header files.
25940
25941 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25942
25943 * godump.c (go_output_typedef): When outputting a typedef, refer
25944 to the underlying type by its name and not its structure.
25945
25946 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25947
25948 PR c++/88795
25949 * tree.c (build_function_type): Assert that arg_types is not
25950 error_mark_node.
25951
25952 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25953
25954 PR inline-asm/52813
25955 * doc/extend.texi: Document that listing the stack pointer in the
25956 clobber list of an asm is a deprecated feature.
25957 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25958 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25959 warning instead of an error for clobbers of the stack pointer.
25960 Add a note explaining why.
25961
25962 2019-01-15 Richard Biener <rguenther@suse.de>
25963
25964 PR debug/88046
25965 * dwarf2out.c (gen_member_die): Do not generate inheritance
25966 DIEs late.
25967
25968 2019-01-15 Richard Biener <rguenther@suse.de>
25969
25970 PR tree-optimization/88855
25971 * tree-if-conv.c (combine_blocks): Collect
25972 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25973
25974 2019-01-15 Tom de Vries <tdevries@suse.de>
25975
25976 PR target/80547
25977 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25978 lhs == NULL_TREE for gang-level reduction.
25979
25980 2019-01-15 Richard Biener <rguenther@suse.de>
25981 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25982
25983 PR ipa/88788
25984 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25985 return true if SSA_NAME is already marked in visited bitmap.
25986 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25987
25988 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25989
25990 PR tree-optimization/88775
25991 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25992 equal == 0 equality pointer comparisons some more if compared in
25993 integral types and either one points to an automatic var and the
25994 other to a global, or we can prove at least one points to the middle
25995 or both point to start or both point to end.
25996
25997 2019-01-14 Andi Kleen <ak@linux.intel.com>
25998
25999 * Makefile.in: Lower autofdo sampling rate by 10x.
26000 * Makefile.tpl: Dito.
26001
26002 2019-01-14 Tom Honermann <tom@honermann.net>
26003
26004 * defaults.h: Define CHAR8_TYPE.
26005
26006 2019-01-14 Martin Sebor <msebor@redhat.com>
26007
26008 PR target/88638
26009 * doc/extend.texi (Darwin Format Checks): Clarify.
26010
26011 2019-01-14 Richard Biener <rguenther@suse.de>
26012
26013 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
26014 whether we are in (simplify ...) or (match ...) context.
26015
26016 2019-01-14 Jakub Jelinek <jakub@redhat.com>
26017
26018 PR rtl-optimization/88796
26019 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
26020 * cfgexpand.c (stack_protect_prologue): Initialize
26021 crtl->stack_protect_guard_decl.
26022 * function.c (stack_protect_epilogue): Use it instead of calling
26023 targetm.stack_protect_guard again.
26024 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
26025 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
26026 crtl->stack_protect_guard_decl.
26027 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
26028 on the returned MEM_EXPR.
26029
26030 2019-01-12 Tom de Vries <tdevries@suse.de>
26031
26032 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
26033 vector length using -fopenacc-dim.
26034
26035 2019-01-12 Tom de Vries <tdevries@suse.de>
26036
26037 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
26038 lengths into account.
26039
26040 2019-01-12 Svante Signell <svante.signell@gmail.com>
26041
26042 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
26043 (TARGET_CAN_SPLIT_STACK): Define.
26044 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
26045
26046 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26047
26048 * params.def (inline-unit-growth): Set to 40.
26049
26050 2019-01-12 Jakub Jelinek <jakub@redhat.com>
26051
26052 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
26053
26054 2019-01-12 Tom de Vries <tdevries@suse.de>
26055
26056 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
26057 region calling vector-partitionable routine, set default_vector_length
26058 to WARP_SIZE.
26059
26060 2019-01-12 Tom de Vries <tdevries@suse.de>
26061
26062 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
26063 variable default_vector_length.
26064
26065 2019-01-12 Tom de Vries <tdevries@suse.de>
26066
26067 PR middle-end/88703
26068 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
26069 from oacc_default_dims, as oacc_validate_dims would do it, and apply
26070 dimensions limits.
26071
26072 2019-01-12 Tom de Vries <tdevries@suse.de>
26073
26074 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
26075 (nvptx_goacc_validate_dims): Add used parameter.
26076 * doc/tm.texi: Regenerate.
26077 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
26078 argument to call to targetm.goacc.validate_dims.
26079 (default_goacc_validate_dims): Add used
26080 parameter.
26081 * target.def (validate_dims): Add used parameter in DEFHOOK.
26082 * targhooks.h (default_goacc_validate_dims): Add used parameter.
26083
26084 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26085
26086 PR middle-end/85956
26087 PR lto/88733
26088 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
26089 field.
26090 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
26091 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
26092 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
26093 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
26094
26095 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
26096
26097 PR rtl-optimization/87305
26098 * lra-assigns.c
26099 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
26100 for little endian pseudos used as paradoxical subreg.
26101
26102 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26103
26104 PR tree-optimization/88693
26105 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
26106 for STRING_CSTs that don't contain any NUL characters in the first
26107 TREE_STRING_LENGTH bytes.
26108
26109 2019-01-11 Alan Modra <amodra@gmail.com>
26110
26111 PR 88777
26112 PR 88614
26113 * genattrtab.c (min_fn): Don't translate values.
26114 (min_attr_value): Return INT_MAX when the value can't be calculated.
26115 Return minimum among any values that can be calculated.
26116 (max_attr_value): Adjust.
26117
26118 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26119
26120 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
26121
26122 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26123
26124 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26125 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
26126 (aarch64_return_call_with_max_clobbers): New function.
26127 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
26128 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
26129 argument.
26130 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
26131 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
26132 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
26133 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
26134 * cselib.c (cselib_process_insn): Add argument to
26135 targetm.hard_regno_call_part_clobbered call.
26136 * ira-conflicts.c (ira_build_conflicts): Ditto.
26137 * ira-costs.c (ira_tune_allocno_costs): Ditto.
26138 * lra-constraints.c (inherit_reload_reg): Ditto.
26139 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
26140 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
26141 argument. Call targetm.return_call_with_max_clobbers.
26142 Add argument to targetm.hard_regno_call_part_clobbered call.
26143 (calls_have_same_clobbers_p): New function.
26144 (process_bb_lives): Add call_insn and last_call_insn variables.
26145 Pass call_insn to check_pseudos_live_through_calls.
26146 Modify if stmt to check targetm.return_call_with_max_clobbers.
26147 Update setting of flush variable.
26148 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26149 to false.
26150 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26151 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26152 targetm.hard_regno_call_part_clobbered call.
26153 * reginfo.c (choose_hard_reg_mode): Ditto.
26154 * regrename.c (check_new_reg_p): Ditto.
26155 * reload.c (find_equiv_reg): Ditto.
26156 * reload1.c (emit_reload_insns): Ditto.
26157 * sched-deps.c (deps_analyze_insn): Ditto.
26158 * sel-sched.c (init_regs_for_mode): Ditto.
26159 (mark_unavailable_hard_regs): Ditto.
26160 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26161 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26162 (return_call_with_max_clobbers): New target function.
26163 * doc/tm.texi: Regenerate.
26164 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26165 * hooks.c (hook_bool_uint_mode_false): Change to
26166 hook_bool_insn_uint_mode_false.
26167 * hooks.h (hook_bool_uint_mode_false): Ditto.
26168
26169 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26170
26171 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26172 (aarch64_remove_extra_call_preserved_regs): New function.
26173 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26174 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26175 * doc/tm.texi: Regenerate.
26176 * final.c (get_call_reg_set_usage): Call new hook.
26177 * target.def (remove_extra_call_preserved_regs): New hook.
26178 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26179 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26180
26181 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26182
26183 PR bootstrap/88714
26184 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26185 inside of pass_combine_1 dump rather than pass_profile_1.
26186
26187 2019-01-11 Tom de Vries <tdevries@suse.de>
26188
26189 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26190 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26191 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26192 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26193 num_workers 16.
26194
26195 2019-01-11 Tom de Vries <tdevries@suse.de>
26196
26197 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26198
26199 2019-01-11 Jan Beulich <jbeulich@suse.com>
26200
26201 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26202 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26203 sse2_cvtsi2sd): Add {l}.
26204 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26205 syntax.
26206
26207 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26208
26209 PR target/88785
26210 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26211 define_expand.
26212 (*float<floatunssuffix>v2div2sf2): New define_insn.
26213 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26214 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26215 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26216 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26217 match_operands with "const0_operand" "C".
26218
26219 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26220
26221 * config/aarch64/aarch64-builtins.c
26222 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26223 (aarch64_init_simd_builtins): ...Here
26224
26225 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26226
26227 PR rtl-optimization/87305
26228 * lra-assigns.c
26229 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26230 allocation for big endian pseudos used as paradoxical subregs and
26231 spill them if it is wrong.
26232 * lra-constraints.c (lra_constraints): Add a comment.
26233
26234 2019-01-10 Richard Biener <rguenther@suse.de>
26235
26236 PR tree-optimization/88792
26237 * tree-ssa-pre.c (get_representative_for): Do not return a
26238 value-number here.
26239
26240 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26241
26242 PR middle-end/84877
26243 PR bootstrap/88450
26244 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26245 (assign_parm_setup_block): Do the argument slot realignment here
26246 instead.
26247
26248 2019-01-10 Stefan Agner <stefan@agner.ch>
26249
26250 PR target/88648
26251 * config/arm/arm.c (arm_option_override_internal): Force
26252 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26253
26254 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26255
26256 PR c/88568
26257 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26258 DECL_EXTERNAL.
26259
26260 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26261
26262 * config/arm/arm-builtins.c
26263 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26264 (MAC_LANE_PAIR_QUALIFIERS): New.
26265 (arm_expand_builtin_args): Use it.
26266 (arm_expand_builtin_1): Likewise.
26267 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26268 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26269 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26270 * config/arm/arm_neon.h:
26271 (vcadd_rot90_f16): New.
26272 (vcaddq_rot90_f16): New.
26273 (vcadd_rot270_f16): New.
26274 (vcaddq_rot270_f16): New.
26275 (vcmla_f16): New.
26276 (vcmlaq_f16): New.
26277 (vcmla_lane_f16): New.
26278 (vcmla_laneq_f16): New.
26279 (vcmlaq_lane_f16): New.
26280 (vcmlaq_laneq_f16): New.
26281 (vcmla_rot90_f16): New.
26282 (vcmlaq_rot90_f16): New.
26283 (vcmla_rot90_lane_f16): New.
26284 (vcmla_rot90_laneq_f16): New.
26285 (vcmlaq_rot90_lane_f16): New.
26286 (vcmlaq_rot90_laneq_f16): New.
26287 (vcmla_rot180_f16): New.
26288 (vcmlaq_rot180_f16): New.
26289 (vcmla_rot180_lane_f16): New.
26290 (vcmla_rot180_laneq_f16): New.
26291 (vcmlaq_rot180_lane_f16): New.
26292 (vcmlaq_rot180_laneq_f16): New.
26293 (vcmla_rot270_f16): New.
26294 (vcmlaq_rot270_f16): New.
26295 (vcmla_rot270_lane_f16): New.
26296 (vcmla_rot270_laneq_f16): New.
26297 (vcmlaq_rot270_lane_f16): New.
26298 (vcmlaq_rot270_laneq_f16): New.
26299 (vcadd_rot90_f32): New.
26300 (vcaddq_rot90_f32): New.
26301 (vcadd_rot270_f32): New.
26302 (vcaddq_rot270_f32): New.
26303 (vcmla_f32): New.
26304 (vcmlaq_f32): New.
26305 (vcmla_lane_f32): New.
26306 (vcmla_laneq_f32): New.
26307 (vcmlaq_lane_f32): New.
26308 (vcmlaq_laneq_f32): New.
26309 (vcmla_rot90_f32): New.
26310 (vcmlaq_rot90_f32): New.
26311 (vcmla_rot90_lane_f32): New.
26312 (vcmla_rot90_laneq_f32): New.
26313 (vcmlaq_rot90_lane_f32): New.
26314 (vcmlaq_rot90_laneq_f32): New.
26315 (vcmla_rot180_f32): New.
26316 (vcmlaq_rot180_f32): New.
26317 (vcmla_rot180_lane_f32): New.
26318 (vcmla_rot180_laneq_f32): New.
26319 (vcmlaq_rot180_lane_f32): New.
26320 (vcmlaq_rot180_laneq_f32): New.
26321 (vcmla_rot270_f32): New.
26322 (vcmlaq_rot270_f32): New.
26323 (vcmla_rot270_lane_f32): New.
26324 (vcmla_rot270_laneq_f32): New.
26325 (vcmlaq_rot270_lane_f32): New.
26326 (vcmlaq_rot270_laneq_f32): New.
26327 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26328 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26329 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26330 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26331 vcmlaq_lane270): New.
26332 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26333 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26334 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26335 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26336 (arm_option_reconfigure_globals): Use them.
26337 * config/arm/iterators.md (VDF, VQ_HSF): New.
26338 (VCADD, VCMLA): New.
26339 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26340 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26341 New.
26342 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26343 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26344
26345 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26346
26347 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26348 Add qualifier_lane_pair_index.
26349 (emit-rtl.h): Include.
26350 (TYPES_QUADOP_LANE_PAIR): New.
26351 (aarch64_simd_expand_args): Use it.
26352 (aarch64_simd_expand_builtin): Likewise.
26353 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26354 New.
26355 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26356 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26357 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26358 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26359 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26360 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26361 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26362 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26363 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26364 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26365 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26366 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26367 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26368 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26369 Add __ARM_FEATURE_COMPLEX.
26370 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26371 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26372 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26373 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26374 fcmlaq_lane270): New.
26375 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26376 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26377 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26378 * config/aarch64/arm_neon.h:
26379 (vcadd_rot90_f16): New.
26380 (vcaddq_rot90_f16): New.
26381 (vcadd_rot270_f16): New.
26382 (vcaddq_rot270_f16): New.
26383 (vcmla_f16): New.
26384 (vcmlaq_f16): New.
26385 (vcmla_lane_f16): New.
26386 (vcmla_laneq_f16): New.
26387 (vcmlaq_lane_f16): New.
26388 (vcmlaq_rot90_lane_f16): New.
26389 (vcmla_rot90_laneq_f16): New.
26390 (vcmla_rot90_lane_f16): New.
26391 (vcmlaq_rot90_f16): New.
26392 (vcmla_rot90_f16): New.
26393 (vcmlaq_laneq_f16): New.
26394 (vcmla_rot180_laneq_f16): New.
26395 (vcmla_rot180_lane_f16): New.
26396 (vcmlaq_rot180_f16): New.
26397 (vcmla_rot180_f16): New.
26398 (vcmlaq_rot90_laneq_f16): New.
26399 (vcmlaq_rot270_laneq_f16): New.
26400 (vcmlaq_rot270_lane_f16): New.
26401 (vcmla_rot270_laneq_f16): New.
26402 (vcmlaq_rot270_f16): New.
26403 (vcmla_rot270_f16): New.
26404 (vcmlaq_rot180_laneq_f16): New.
26405 (vcmlaq_rot180_lane_f16): New.
26406 (vcmla_rot270_lane_f16): New.
26407 (vcadd_rot90_f32): New.
26408 (vcaddq_rot90_f32): New.
26409 (vcaddq_rot90_f64): New.
26410 (vcadd_rot270_f32): New.
26411 (vcaddq_rot270_f32): New.
26412 (vcaddq_rot270_f64): New.
26413 (vcmla_f32): New.
26414 (vcmlaq_f32): New.
26415 (vcmlaq_f64): New.
26416 (vcmla_lane_f32): New.
26417 (vcmla_laneq_f32): New.
26418 (vcmlaq_lane_f32): New.
26419 (vcmlaq_laneq_f32): New.
26420 (vcmla_rot90_f32): New.
26421 (vcmlaq_rot90_f32): New.
26422 (vcmlaq_rot90_f64): New.
26423 (vcmla_rot90_lane_f32): New.
26424 (vcmla_rot90_laneq_f32): New.
26425 (vcmlaq_rot90_lane_f32): New.
26426 (vcmlaq_rot90_laneq_f32): New.
26427 (vcmla_rot180_f32): New.
26428 (vcmlaq_rot180_f32): New.
26429 (vcmlaq_rot180_f64): New.
26430 (vcmla_rot180_lane_f32): New.
26431 (vcmla_rot180_laneq_f32): New.
26432 (vcmlaq_rot180_lane_f32): New.
26433 (vcmlaq_rot180_laneq_f32): New.
26434 (vcmla_rot270_f32): New.
26435 (vcmlaq_rot270_f32): New.
26436 (vcmlaq_rot270_f64): New.
26437 (vcmla_rot270_lane_f32): New.
26438 (vcmla_rot270_laneq_f32): New.
26439 (vcmlaq_rot270_lane_f32): New.
26440 (vcmlaq_rot270_laneq_f32): New.
26441 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26442 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26443 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26444 (FCADD, FCMLA): New.
26445 (rot): New.
26446 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26447
26448 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26449
26450 PR other/16615
26451
26452 * config/pa/pa.c: Change "can not" to "cannot".
26453 * gimple-ssa-evrp-analyze.c: Likewise.
26454 * ipa-icf.c: Likewise.
26455 * ipa-polymorphic-call.c: Likewise.
26456 * ipa-pure-const.c: Likewise.
26457 * lra-constraints.c: Likewise.
26458 * lra-remat.c: Likewise.
26459 * reload1.c: Likewise.
26460 * reorg.c: Likewise.
26461 * tree-ssa-uninit.c: Likewise.
26462
26463 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26464
26465 PR other/16615
26466
26467 * Makefile.in: Mechanically replace "can not" with "cannot".
26468 * alias.c: Likewise.
26469 * builtins.c: Likewise.
26470 * calls.c: Likewise.
26471 * cgraph.c: Likewise.
26472 * cgraph.h: Likewise.
26473 * cgraphclones.c: Likewise.
26474 * cgraphunit.c: Likewise.
26475 * combine-stack-adj.c: Likewise.
26476 * combine.c: Likewise.
26477 * common/config/i386/i386-common.c: Likewise.
26478 * config/aarch64/aarch64.c: Likewise.
26479 * config/alpha/sync.md: Likewise.
26480 * config/arc/arc.c: Likewise.
26481 * config/arc/predicates.md: Likewise.
26482 * config/arm/arm-c.c: Likewise.
26483 * config/arm/arm.c: Likewise.
26484 * config/arm/arm.h: Likewise.
26485 * config/arm/arm.md: Likewise.
26486 * config/arm/cortex-r4f.md: Likewise.
26487 * config/csky/csky.c: Likewise.
26488 * config/csky/csky.h: Likewise.
26489 * config/darwin-f.c: Likewise.
26490 * config/epiphany/epiphany.md: Likewise.
26491 * config/i386/i386.c: Likewise.
26492 * config/i386/sol2.h: Likewise.
26493 * config/m68k/m68k.c: Likewise.
26494 * config/mcore/mcore.h: Likewise.
26495 * config/microblaze/microblaze.md: Likewise.
26496 * config/mips/20kc.md: Likewise.
26497 * config/mips/sb1.md: Likewise.
26498 * config/nds32/nds32.c: Likewise.
26499 * config/nds32/predicates.md: Likewise.
26500 * config/pa/pa.c: Likewise.
26501 * config/rs6000/e300c2c3.md: Likewise.
26502 * config/rs6000/rs6000.c: Likewise.
26503 * config/s390/s390.h: Likewise.
26504 * config/sh/sh.c: Likewise.
26505 * config/sh/sh.md: Likewise.
26506 * config/spu/vmx2spu.h: Likewise.
26507 * cprop.c: Likewise.
26508 * dbxout.c: Likewise.
26509 * df-scan.c: Likewise.
26510 * doc/cfg.texi: Likewise.
26511 * doc/extend.texi: Likewise.
26512 * doc/fragments.texi: Likewise.
26513 * doc/gty.texi: Likewise.
26514 * doc/invoke.texi: Likewise.
26515 * doc/lto.texi: Likewise.
26516 * doc/md.texi: Likewise.
26517 * doc/objc.texi: Likewise.
26518 * doc/rtl.texi: Likewise.
26519 * doc/tm.texi: Likewise.
26520 * dse.c: Likewise.
26521 * emit-rtl.c: Likewise.
26522 * emit-rtl.h: Likewise.
26523 * except.c: Likewise.
26524 * expmed.c: Likewise.
26525 * expr.c: Likewise.
26526 * fold-const.c: Likewise.
26527 * genautomata.c: Likewise.
26528 * gimple-fold.c: Likewise.
26529 * hard-reg-set.h: Likewise.
26530 * ifcvt.c: Likewise.
26531 * ipa-comdats.c: Likewise.
26532 * ipa-cp.c: Likewise.
26533 * ipa-devirt.c: Likewise.
26534 * ipa-fnsummary.c: Likewise.
26535 * ipa-icf.c: Likewise.
26536 * ipa-inline-transform.c: Likewise.
26537 * ipa-inline.c: Likewise.
26538 * ipa-polymorphic-call.c: Likewise.
26539 * ipa-profile.c: Likewise.
26540 * ipa-prop.c: Likewise.
26541 * ipa-pure-const.c: Likewise.
26542 * ipa-reference.c: Likewise.
26543 * ipa-split.c: Likewise.
26544 * ipa-visibility.c: Likewise.
26545 * ipa.c: Likewise.
26546 * ira-build.c: Likewise.
26547 * ira-color.c: Likewise.
26548 * ira-conflicts.c: Likewise.
26549 * ira-costs.c: Likewise.
26550 * ira-int.h: Likewise.
26551 * ira-lives.c: Likewise.
26552 * ira.c: Likewise.
26553 * ira.h: Likewise.
26554 * loop-invariant.c: Likewise.
26555 * loop-unroll.c: Likewise.
26556 * lower-subreg.c: Likewise.
26557 * lra-assigns.c: Likewise.
26558 * lra-constraints.c: Likewise.
26559 * lra-eliminations.c: Likewise.
26560 * lra-lives.c: Likewise.
26561 * lra-remat.c: Likewise.
26562 * lra-spills.c: Likewise.
26563 * lra.c: Likewise.
26564 * lto-cgraph.c: Likewise.
26565 * lto-streamer-out.c: Likewise.
26566 * postreload-gcse.c: Likewise.
26567 * predict.c: Likewise.
26568 * profile-count.h: Likewise.
26569 * profile.c: Likewise.
26570 * recog.c: Likewise.
26571 * ree.c: Likewise.
26572 * reload.c: Likewise.
26573 * reload1.c: Likewise.
26574 * reorg.c: Likewise.
26575 * resource.c: Likewise.
26576 * rtl.def: Likewise.
26577 * rtl.h: Likewise.
26578 * rtlanal.c: Likewise.
26579 * sched-deps.c: Likewise.
26580 * sched-ebb.c: Likewise.
26581 * sched-rgn.c: Likewise.
26582 * sel-sched-ir.c: Likewise.
26583 * sel-sched.c: Likewise.
26584 * shrink-wrap.c: Likewise.
26585 * simplify-rtx.c: Likewise.
26586 * symtab.c: Likewise.
26587 * target.def: Likewise.
26588 * toplev.c: Likewise.
26589 * tree-call-cdce.c: Likewise.
26590 * tree-cfg.c: Likewise.
26591 * tree-complex.c: Likewise.
26592 * tree-core.h: Likewise.
26593 * tree-eh.c: Likewise.
26594 * tree-inline.c: Likewise.
26595 * tree-loop-distribution.c: Likewise.
26596 * tree-nrv.c: Likewise.
26597 * tree-profile.c: Likewise.
26598 * tree-sra.c: Likewise.
26599 * tree-ssa-alias.c: Likewise.
26600 * tree-ssa-dce.c: Likewise.
26601 * tree-ssa-dom.c: Likewise.
26602 * tree-ssa-forwprop.c: Likewise.
26603 * tree-ssa-loop-im.c: Likewise.
26604 * tree-ssa-loop-ivcanon.c: Likewise.
26605 * tree-ssa-loop-ivopts.c: Likewise.
26606 * tree-ssa-loop-niter.c: Likewise.
26607 * tree-ssa-phionlycprop.c: Likewise.
26608 * tree-ssa-phiopt.c: Likewise.
26609 * tree-ssa-propagate.c: Likewise.
26610 * tree-ssa-threadedge.c: Likewise.
26611 * tree-ssa-threadupdate.c: Likewise.
26612 * tree-ssa-uninit.c: Likewise.
26613 * tree-ssanames.c: Likewise.
26614 * tree-streamer-out.c: Likewise.
26615 * tree.c: Likewise.
26616 * tree.h: Likewise.
26617 * vr-values.c: Likewise.
26618
26619 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26620
26621 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26622 (ix86_split_xorsign): Ditto.
26623 * config/i386/i386.c (ix86_expand_xorsign): New function.
26624 (ix86_split_xorsign): Ditto.
26625 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26626 (xorsign<mode>3): New expander.
26627 (xorsign<mode>3_1): New insn_and_split pattern.
26628 * config/i386/sse.md (xorsign<mode>3): New expander.
26629
26630 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26631
26632 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26633 (*tablejump_sp64): Likewise.
26634 (*tablejump<P:mode>): ...this.
26635 (*call_address_sp32): Merge into...
26636 (*call_address_sp64): Likewise.
26637 (*call_address<P:mode>): ...this.
26638 (*call_symbolic_sp32): Merge into...
26639 (*call_symbolic_sp64): Likewise.
26640 (*call_symbolic<P:mode>): ...this.
26641 (call_value): Remove constraint and add predicate.
26642 (*call_value_address_sp32): Merge into...
26643 (*call_value_address_sp64): Likewise.
26644 (*call_value_address<P:mode>): ...this.
26645 (*call_value_symbolic_sp32): Merge into...
26646 (*call_value_symbolic_sp64): Likewise.
26647 (*call_value_symbolic<P:mode>): ...this.
26648 (*sibcall_symbolic_sp32): Merge into...
26649 (*sibcall_symbolic_sp64): Likewise.
26650 (*sibcall_symbolic<P:mode>): ...this.
26651 (sibcall_value): Remove constraint and add predicate.
26652 (*sibcall_value_symbolic_sp32): Merge into...
26653 (*sibcall_value_symbolic_sp64): Likewise.
26654 (*sibcall_value_symbolic<P:mode>): ...this.
26655 (window_save): Minor tweak.
26656 (*branch_sp32): Merge into...
26657 (*branch_sp64): Likewise.
26658 (*branch<P:mode>): ...this.
26659
26660 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26661 James Clarke <jrtc27@jrtc27.com>
26662
26663 PR target/84010
26664 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26665 consistently in TLS address generation and adjust code to the renaming
26666 of patterns. Mark calls to __tls_get_addr as const.
26667 * config/sparc/sparc.md (tgd_hi22): Turn into...
26668 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26669 (tgd_lo10): Turn into...
26670 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26671 (tgd_add32): Merge into...
26672 (tgd_add64): Likewise.
26673 (tgd_add<P:mode>): ...this and use Pmode throughout.
26674 (tldm_hi22): Turn into...
26675 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26676 (tldm_lo10): Turn into...
26677 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26678 (tldm_add32): Merge into...
26679 (tldm_add64): Likewise.
26680 (tldm_add<P:mode>): ...this and use Pmode throughout.
26681 (tldm_call32): Merge into...
26682 (tldm_call64): Likewise.
26683 (tldm_call<P:mode>): ...this and use Pmode throughout.
26684 (tldo_hix22): Turn into...
26685 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26686 (tldo_lox10): Turn into...
26687 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26688 (tldo_add32): Merge into...
26689 (tldo_add64): Likewise.
26690 (tldo_add<P:mode>): ...this and use Pmode throughout.
26691 (tie_hi22): Turn into...
26692 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26693 (tie_lo10): Turn into...
26694 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26695 (tie_ld64): Use DImode throughout.
26696 (tie_add32): Merge into...
26697 (tie_add64): Likewise.
26698 (tie_add<P:mode>): ...this and use Pmode throughout.
26699 (tle_hix22_sp32): Merge into...
26700 (tle_hix22_sp64): Likewise.
26701 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26702 (tle_lox22_sp32): Merge into...
26703 (tle_lox22_sp64): Likewise.
26704 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26705 (*tldo_ldub_sp32): Merge into...
26706 (*tldo_ldub_sp64): Likewise.
26707 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26708 (*tldo_ldub1_sp32): Merge into...
26709 (*tldo_ldub1_sp64): Likewise.
26710 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26711 (*tldo_ldub2_sp32): Merge into...
26712 (*tldo_ldub2_sp64): Likewise.
26713 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26714 (*tldo_ldsb1_sp32): Merge into...
26715 (*tldo_ldsb1_sp64): Likewise.
26716 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26717 (*tldo_ldsb2_sp32): Merge into...
26718 (*tldo_ldsb2_sp64): Likewise.
26719 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26720 (*tldo_ldub3_sp64): Use DImode throughout.
26721 (*tldo_ldsb3_sp64): Likewise.
26722 (*tldo_lduh_sp32): Merge into...
26723 (*tldo_lduh_sp64): Likewise.
26724 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26725 (*tldo_lduh1_sp32): Merge into...
26726 (*tldo_lduh1_sp64): Likewise.
26727 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26728 (*tldo_ldsh1_sp32): Merge into...
26729 (*tldo_ldsh1_sp64): Likewise.
26730 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26731 (*tldo_lduh2_sp64): Use DImode throughout.
26732 (*tldo_ldsh2_sp64): Likewise.
26733 (*tldo_lduw_sp32): Merge into...
26734 (*tldo_lduw_sp64): Likewise.
26735 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26736 (*tldo_lduw1_sp64): Use DImode throughout.
26737 (*tldo_ldsw1_sp64): Likewise.
26738 (*tldo_ldx_sp64): Likewise.
26739 (*tldo_stb_sp32): Merge into...
26740 (*tldo_stb_sp64): Likewise.
26741 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26742 (*tldo_sth_sp32): Merge into...
26743 (*tldo_sth_sp64): Likewise.
26744 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26745 (*tldo_stw_sp32): Merge into...
26746 (*tldo_stw_sp64): Likewise.
26747 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26748 (*tldo_stx_sp64): Use DImode throughout.
26749
26750 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26751
26752 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26753 check configure option to set BTI and Return Address Signing.
26754 * configure.ac: Add --enable-standard-branch-protection and
26755 --disable-standard-branch-protection.
26756 * configure: Regenerated.
26757 * doc/install.texi: Document the same.
26758
26759 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26760 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26761
26762 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26763 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26764 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26765 if bti is enabled.
26766 * config/aarch64/aarch64-bti-insert.c: New file.
26767 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26768 pass.
26769 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26770 new bti pass.
26771 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26772 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26773 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26774 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26775
26776 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26777
26778 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26779 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26780 Disable bti for -mbranch-protection=none.
26781 (aarch64_handle_standard_branch_protection): Enable bti for
26782 -mbranch-protection=standard.
26783 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26784 -mbranch-protection.
26785 (aarch64_bti_enabled): Check if bti is enabled.
26786 * config/aarch64/aarch64.opt: Declare target variable.
26787 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26788
26789 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26790
26791 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26792 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26793 (aarch64_expand_epilogue): Likewise.
26794 (aarch64_output_mi_thunk): Likewise.
26795 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26796 TAILCALL_ADDR_REGS to x16 and x17.
26797 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26798
26799 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26800
26801 * config/aarch64/aarch64-option-extensions.def: Define
26802 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26803 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26804 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26805 (AARCH64_FL_PREDRES): New.
26806 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26807 AARCH64_FL_PREDRES by default.
26808 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26809
26810 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26811
26812 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26813 ARMv8.5-A.
26814 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26815 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26816 * doc/invoke.texi: Document ARMv8.5-A.
26817
26818 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26819
26820 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26821 (xorsign<mode>3): Likewise.
26822
26823 2019-01-09 Jelinek <jakub@redhat.com>
26824
26825 PR middle-end/88758
26826 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26827 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26828
26829 PR rtl-optimization/88331
26830 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26831 not currently_expanding_to_rtl.
26832
26833 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26834
26835 * doc/invoke.texi (-Os): Remove trailing spaces.
26836 (-finline-functions): Remove reference to -O2.
26837
26838 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26839
26840 PR rtl-optimization/79593
26841 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26842
26843 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26844 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26845
26846 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26847
26848 PR bootstrap/88721
26849 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26850 to -1 on entry.
26851
26852 PR debug/88723
26853 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26854 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26855
26856 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26857
26858 PR target/88717
26859 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26860 ix86_avx_u128_mode_entry.
26861
26862 2019-01-08 Martin Liska <mliska@suse.cz>
26863
26864 PR tree-optimization/88753
26865 * tree-switch-conversion.c (switch_conversion::build_one_array):
26866 Come up with local variable constructor. Convert first to
26867 type of constructor values.
26868
26869 2019-01-08 Richard Biener <rguenther@suse.de>
26870
26871 PR tree-optimization/86554
26872 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26873 rpo_avail): Move earlier.
26874 (visit_nary_op): When value-numbering to expressions
26875 with different overflow behavior make sure there's an
26876 available expression on the path.
26877
26878 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26879
26880 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26881 aarch64_parse_branch_protection,
26882 struct aarch64_branch_protect_type,
26883 aarch64_handle_no_branch_protection,
26884 aarch64_handle_standard_branch_protection,
26885 aarch64_validate_mbranch_protection,
26886 aarch64_handle_pac_ret_protection,
26887 aarch64_handle_attr_branch_protection,
26888 accepted_branch_protection_string,
26889 aarch64_pac_ret_subtypes,
26890 aarch64_branch_protect_types,
26891 aarch64_handle_pac_ret_leaf): Define.
26892 (aarch64_override_options_after_change_1, aarch64_override_options):
26893 Add check for accepted_branch_protection_string.
26894 (aarch64_option_save): Save accepted_branch_protection_string.
26895 (aarch64_option_restore): Save accepted_branch_protection_string.
26896 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26897 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26898 msign-return-address.
26899 * doc/invoke.texi: Add mbranch-protection.
26900
26901 2019-01-08 Alan Modra <amodra@gmail.com>
26902
26903 PR target/88614
26904 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26905 Delete "unknownp" parameter. Adjust callers. Handle
26906 CONST_INT, PLUS, MINUS, and MULT.
26907 (attr_value_aligned): Renamed from or_attr_value.
26908 (min_attr_value): Return INT_MIN for unhandled rtl case..
26909 (min_fn): ..and translate to INT_MAX here.
26910 (write_length_unit_log): Modify to cope without "unknown".
26911 (write_attr_value): Handle IF_THEN_ELSE.
26912
26913 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26914
26915 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26916 optimization for masked stores.
26917
26918 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26919
26920 PR middle-end/88567
26921 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26922 output vector directly to duplicate_and_interleave instead of
26923 going through a temporary. Postpone insertion of ctor_seq to
26924 the end of the loop.
26925
26926 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26927
26928 PR target/86891
26929 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26930 unsigned_p. Handle signed and unsigned overflow correction as
26931 required.
26932 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26933 prototype.
26934 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26935 for operand 2.
26936 (add<mode>3_compareV_imm): Make this callable for expanding.
26937 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26938 aarch64_plus_operand for operand 2.
26939 (subv<GPI:mode>_insn): New insn pattern.
26940 (subv<GPI:mode>_imm): Likewise.
26941 (negv<GPI:mode>3): New expand pattern.
26942 (negv<GPI:mode>_insn): New insn pattern.
26943 (negv<GPI:mode>_cmp_only): Likewise.
26944 (cmpv<GPI:mode>_insn): Likewise.
26945 (subvti4): Use register_operand for operand 1. Update call to
26946 aarch64_expand_subvti.
26947 (usubvti4): Likewise.
26948 (negvti3): New expand pattern.
26949 (negdi_carryout): New insn pattern.
26950 (negvdi_carryinV): New insn pattern.
26951 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26952 version the named version.
26953 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26954 operands.
26955 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26956 patterns.
26957 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26958 patterns.
26959 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26960 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26961 (sub<mode>3_carryinCV): Delete.
26962 (sub<GPI:mode>3_carryinV): New expand pattern.
26963 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26964
26965 2019-01-07 Richard Biener <rguenther@suse.de>
26966
26967 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26968 of tree_operand_hash.
26969
26970 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26971
26972 PR tree-optimization/88598
26973 * tree.h (single_nonzero_element): Declare.
26974 * tree.c (single_nonzero_element): New function.
26975 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26976 if I is the only nonzero element of CST.
26977
26978 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26979
26980 PR tree-optimization/88598
26981 * tree.h (initializer_each_zero_or_onep): Declare.
26982 * tree.c (initializer_each_zero_or_onep): New function.
26983 (signed_or_unsigned_type_for): Handle float types too.
26984 (unsigned_type_for, signed_type_for): Update comments accordingly.
26985 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26986 x & { 0 or -1, 0 or -1, ... }.
26987
26988 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26989
26990 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26991 with x86_64-pc-linux-gnu.
26992
26993 2019-01-07 Tom de Vries <tdevries@suse.de>
26994
26995 PR target/85486
26996 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26997 function.
26998 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26999 routines.
27000
27001 2019-01-07 Jakub Jelinek <jakub@redhat.com>
27002
27003 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
27004 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
27005 TARGET_AVX512F as condition.
27006
27007 PR debug/88723
27008 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
27009 const_not_ok_for_debug_p target hook.
27010 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
27011 on UNSPEC and subexpressions thereof if all subexpressions of the
27012 UNSPEC are CONSTANT_P.
27013
27014 PR tree-optimization/88676
27015 * tree-ssa-phiopt.c (two_value_replacement): New function.
27016 (tree_ssa_phiopt_worker): Call it.
27017
27018 PR sanitizer/88619
27019 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
27020 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
27021
27022 PR c++/85052
27023 * tree-vect-generic.c: Include insn-config.h and recog.h.
27024 (expand_vector_piecewise): Add defaulted ret_type argument,
27025 if non-NULL, use that in preference to type for the result type.
27026 (expand_vector_parallel): Formatting fix.
27027 (do_vec_conversion, do_vec_narrowing_conversion,
27028 expand_vector_conversion): New functions.
27029 (expand_vector_operations_1): Call expand_vector_conversion
27030 for VEC_CONVERT ifn calls.
27031 * internal-fn.def (VEC_CONVERT): New internal function.
27032 * internal-fn.c (expand_VEC_CONVERT): New function.
27033 * fold-const-call.c (fold_const_vec_convert): New function.
27034 (fold_const_call): Use it for CFN_VEC_CONVERT.
27035 * doc/extend.texi (__builtin_convertvector): Document.
27036
27037 2019-01-07 Tom de Vries <tdevries@suse.de>
27038
27039 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
27040 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
27041 vector_red_partition, vector_red_sym): New global variables.
27042 (nvptx_option_override): Initialize vector_red_sym.
27043 (nvptx_declare_function_name): Restore red_partition register.
27044 (nvptx_file_end): Emit code to declare the vector reduction variables.
27045 (nvptx_output_red_partition): New function.
27046 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
27047 large vector reductions.
27048 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
27049 (nvptx_init_builtins): Add VECTOR_ADDR.
27050 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
27051 Handle nvptx_expand_shared_addr.
27052 (nvptx_get_shared_red_addr): Add vector argument and handle large
27053 vectors.
27054 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
27055 large vectors.
27056 (nvptx_goacc_reduction_init): Likewise.
27057 (nvptx_goacc_reduction_fini): Likewise.
27058 (nvptx_goacc_reduction_teardown): Likewise.
27059 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
27060 init,fini,teardown}.
27061 (nvptx_init_axis_predicate): Initialize vector_red_partition.
27062 (nvptx_set_current_function): Init vector_red_partition.
27063 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
27064 (nvptx_red_partition): New insn.
27065 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
27066
27067 2019-01-07 Tom de Vries <tdevries@suse.de>
27068
27069 PR target/85381
27070 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
27071 empty loops.
27072
27073 2019-01-07 Tom de Vries <tdevries@suse.de>
27074
27075 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
27076 (nvptx_option_override): Init oacc_bcast_partition.
27077 (nvptx_init_oacc_workers): New function.
27078 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
27079 (nvptx_needs_shared_bcast): New function.
27080 (nvptx_find_par): Generalize to enable vectors to use shared-memory
27081 to propagate state.
27082 (nvptx_shared_propagate): Initialize vector bcast partition and
27083 synchronization state.
27084 (nvptx_single): Generalize to enable vectors to use shared-memory
27085 to propagate state.
27086 (nvptx_process_pars): Likewise.
27087 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
27088 * config/nvptx/nvptx.h (struct machine_function): Add
27089 bcast_partition and sync_bar members.
27090
27091 2019-01-07 Tom de Vries <tdevries@suse.de>
27092
27093 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
27094 (nvptx_apply_dim_limits): New function.
27095 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
27096 PTX_WARP_SIZE.
27097
27098 2019-01-07 Tom de Vries <tdevries@suse.de>
27099
27100 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
27101 as late as possible.
27102
27103 2019-01-07 Tom de Vries <tdevries@suse.de>
27104
27105 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
27106 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
27107 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
27108 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
27109 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
27110
27111 2019-01-07 Tom de Vries <tdevries@suse.de>
27112
27113 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
27114
27115 2019-01-07 Tom de Vries <tdevries@suse.de>
27116
27117 * omp-offload.c (oacc_get_min_dim): New function.
27118 * omp-offload.h (oacc_get_min_dim): Declare.
27119
27120 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
27121
27122 PR target/88521
27123 * config/i386/i386.c (function_value_ms_64): Return small sturct in
27124 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
27125
27126 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27127
27128 PR tree-opt/86020
27129 Revert:
27130 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
27131
27132 * ipa-inline.c (edge_badness): Use inlined_time instead of
27133 inline_summaries->get.
27134
27135 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27136
27137 * opts.c (enable_fdo_optimizations): Enable
27138 version-loops-for-strides, loop-interchange, unrol-and-jam
27139 and tree-loop-distribution.
27140 * invoke.texi: Document newly enabled options.
27141
27142 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27143
27144 * doc/invoke.texi (max-inline-insns-small): New parameters.
27145 * ipa-inline.c (want_early_inline_function_p): simplify.
27146 (want_inline_small_function_p): Fix pasto from previous patch;
27147 use max-inline-insns-small bound.
27148 * params.def (max-inline-insns-small): New param.
27149 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27150 variables correctly.
27151
27152 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27153
27154 * doc/invoke.texi: Document max-inline-insns-size,
27155 uninlined-function-insns, uninlined-function-time,
27156 uninlined-thunk-insns and uninlined-thunk-time.
27157 * params.def: Add max-inline-insns-size,
27158 uninlined-function-insns, uninlined-function-time,
27159 uninlined-thunk-insns and uninlined-thunk-time.
27160 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27161 new parameters.
27162 * ipa-inline.c (can_inline_edge_by_limits_p,
27163 want_inline_small_function_p): Use new parameters.
27164
27165 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27166
27167 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27168
27169 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27170
27171 PR middle-end/82564
27172 PR target/88620
27173 * expr.c (expand_assignment): For calls returning VLA structures
27174 if to_rtx is not a MEM, force it into a stack temporary.
27175
27176 PR debug/88635
27177 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27178 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27179 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27180 subexpressions of both operands.
27181 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27182 subrtxes are CONSTANT_P.
27183 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27184 2018-11-09 changes.
27185
27186 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27187
27188 * params.def (hot-bb-count-ws-permille): Set to 990.
27189
27190 2019-01-04 Martin Sebor <msebor@redhat.com>
27191
27192 PR c/88546
27193 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27194 leaf.
27195
27196 2019-01-04 Martin Sebor <msebor@redhat.com>
27197
27198 PR c/88363
27199 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27200
27201 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27202
27203 * gdbinit.in: Turn off pagination for the skip commands, restore
27204 it to previous state afterwards.
27205
27206 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27207
27208 PR target/88594
27209 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27210 of GET_MODE (opN) as modes of the libcall arguments.
27211
27212 2019-01-04 Jan Beulich <jbeulich@suse.com>
27213
27214 * config/i386/sse.md
27215 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27216 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27217 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27218 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27219 avx512f_vmcmp<mode>3<round_saeonly_name>,
27220 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27221 avx512f_maskcmp<mode>3,
27222 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27223 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27224 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27225 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27226 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27227 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27228 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27229 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27230 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27231 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27232 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27233 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27234 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27235 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27236 avx512cd_maskb_vec_dup<mode>,
27237 avx512cd_maskw_vec_dup<mode>,
27238 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27239 avx512dq_vmfpclass<mode>,
27240 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27241 instead of =Yk.
27242
27243 2019-01-03 Martin Sebor <msebor@redhat.com>
27244
27245 PR tree-optimization/88659
27246 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27247
27248 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27249
27250 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27251 unaligned vsx and avoid lxvd2x/stxvd2x.
27252 (gen_lvx_v4si_move): New function.
27253
27254 2019-01-03 Tom de Vries <tdevries@suse.de>
27255
27256 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27257 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27258 function.
27259 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27260
27261 2019-01-03 Tom de Vries <tdevries@suse.de>
27262
27263 * config/nvptx/nvptx.c (struct offload_attrs): New.
27264 (populate_offload_attrs): New function. Factor mask extraction out of
27265 nvptx_reorg. Add extraction of dimensions.
27266 (nvptx_reorg): Use populate_offload_attrs.
27267
27268 2019-01-03 Tom de Vries <tdevries@suse.de>
27269
27270 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27271 cases for oacc_min_dims_p and routine_p. Add asserts for
27272 oacc_default_dims_p and offload_region_p.
27273
27274 2019-01-03 Tom de Vries <tdevries@suse.de>
27275
27276 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27277 factored out of ...
27278 (nvptx_goacc_validate_dims): ... here.
27279
27280 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27281
27282 PR tree-optimization/85574
27283 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27284 structure.
27285 (struct ssa_equip_hash_traits): Declare.
27286 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27287
27288 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27289
27290 PR debug/88644
27291 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27292 change it to qualified_type.
27293
27294 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27295
27296 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27297 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27298
27299 2019-01-02 Martin Sebor <msebor@redhat.com>
27300 Jeff Law <law@redhat.com>
27301
27302 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27303 (get_range_strlen_tree): Update appropriately.
27304 (get_range_strlen)
27305 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27306
27307 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27308 rather than set_range_info.
27309 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27310 maybe_set_strlen_range. Handle potentially boundary crossing
27311 cases more conservatively.
27312 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27313 Call set_strlen_range.
27314 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27315
27316 PR middle-end/88663
27317 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27318 need the flexp argument.
27319 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27320 from calls to get_range_strlen. Update comments. Just update
27321 VAL for an unterminated const char array and let the reset of the
27322 code handle it normally. No longer try to set *flexp. Adjust
27323 return value.
27324 (get_range_strlen): Update for the new get_range_strlen API.
27325 (get_maxval_strlen): Similarly.
27326 (gimple_fold_builtin_strlen): Handle update meaning of return value
27327 from get_range_strlen.
27328 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27329 get_range_strlen API.
27330
27331 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27332
27333 PR lto/88130
27334 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27335 false at WPA time when body was removed.
27336
27337 2019-01-02 Martin Liska <mliska@suse.cz>
27338
27339 PR tree-optimization/88650
27340 * predict.c (set_even_probabilities): Calculate probability
27341 remainer only when really used.
27342
27343 2019-01-02 Richard Biener <rguenther@suse.de>
27344
27345 PR middle-end/88651
27346 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27347 widest_ints when mangling max_stmt_execution results.
27348
27349 2019-01-02 Richard Biener <rguenther@suse.de>
27350
27351 PR tree-optimization/88621
27352 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27353 bitfields when canoncalizing.
27354
27355 2019-01-02 Richard Biener <rguenther@suse.de>
27356
27357 PR target/87545
27358 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27359 cost of cheap SSE instruction.
27360
27361 2019-01-02 Richard Biener <rguenther@suse.de>
27362
27363 PR ipa/85574
27364 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27365 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27366 function.
27367 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27368 set after UIDs before splitting them.
27369
27370 2019-01-01 Martin Sebor <msebor@redhat.com>
27371 Jeff Law <law@redhat.com>
27372
27373 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27374 length is optimistic. If it is, then arrange to compute the
27375 conservative length as well.
27376
27377 * gimple-fold.h (get_range_strlen): Update prototype.
27378 * builtins.c (check_access): Update call to get_range_strlen to use
27379 c_strlen_data pointer. Change various variable accesses to instead
27380 pull data from the c_strlen_data structure.
27381 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27382 * calls.c (maybe_warn_nonstring_arg): Likewise.
27383 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27384 minimum length if maximum lengh is unknown.
27385 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27386 that used c_strlen, it's no longer needed. Restructure slightly.
27387 (format_string): Set unlikely range appropriately.
27388 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27389 formatting issues.
27390 (get_range_strlen): Accept c_strlen_data pointer for external
27391 call sites as well. Pass through to call to internal get_range_strlen.
27392 Adjust minlen, maxlen and maxbound as needed.
27393 (get_maxval_strlen): Update comments.
27394 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27395 to use c_strlen_data pointer. Change variable accesses to instead
27396 use c_strlen_data data members.
27397
27398 * gimple-fold.c (get_range_strlen): Update prototype.
27399 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27400 local variables. Use pdata to return information to caller.
27401 Update calls to get_range_strlen. Update pdata->maxbound.
27402 (get_range_strlen -- static version): Similarly.
27403 (get_range_strlen -- extern version): Update for internal
27404 get_range_strlen API change. Convert to external data format.
27405 (get_maxval_strlen): Similarly.
27406
27407 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27408
27409 * coverage.c (get_coverage_counts): Use current_function_decl.
27410 * profile.c (read_thunk_profile): New function.
27411 (branch_prob): Add THUNK parameter.
27412 * tree-profile.c (tree_profiling): Handle thunks.
27413 * value-prof.c (init_node_map): Handle thunks.
27414 * value-prof.h (branch_prob): Upate prototype.
27415 (read_thunk_profile): Declare.
27416
27417 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27418
27419 Update copyright years.
27420
27421 * gcc.c (process_command): Update copyright notice dates.
27422 * gcov-dump.c (print_version): Ditto.
27423 * gcov.c (print_version): Ditto.
27424 * gcov-tool.c (print_version): Ditto.
27425 * gengtype.c (create_file): Ditto.
27426 * doc/cpp.texi: Bump @copying's copyright year.
27427 * doc/cppinternals.texi: Ditto.
27428 * doc/gcc.texi: Ditto.
27429 * doc/gccint.texi: Ditto.
27430 * doc/gcov.texi: Ditto.
27431 * doc/install.texi: Ditto.
27432 * doc/invoke.texi: Ditto.
27433 \f
27434 Copyright (C) 2019 Free Software Foundation, Inc.
27435
27436 Copying and distribution of this file, with or without modification,
27437 are permitted in any medium without royalty provided the copyright
27438 notice and this notice are preserved.