]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[arm] Early expansion of usubvdi4.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/arm.md (usubvdi4): Allow registers or integers for
4 incoming operands. Early split the calculation into SImode
5 operations.
6 (usubvsi3_borrow): New insn pattern.
7 (usubvsi3_borrow_imm): Likewise.
8
9 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
10
11 * config/arm/arm.md (usubv<mode>4): Delete expansion.
12 (usubvsi4): New pattern. Allow some immediate values for inputs.
13 (usubvdi4): New pattern.
14
15 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
16
17 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
18 or second operand of the PLUS inside a DImode equality test to be
19 sign-extend when selecting CC_Vmode.
20 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
21 instructions.
22 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
23 expand patterns.
24 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
25 (addsi3_cin_vout_0): Likewise.
26 (adddi3_compareV): Delete.
27
28 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
29
30 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
31 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
32 to transform this back into the summation version when that leads
33 to smaller code.
34
35 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
36
37 * config/arm/arm.md (addv<mode>4): Delete.
38 (addvsi4): New pattern. Handle immediate values that the architecture
39 supports.
40 (addvdi4): New pattern.
41 (addsi3_compareV): Rename to ...
42 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
43 and use COMPARE rather than NE.
44 (addsi3_compareV_imm): New pattern.
45 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
46 a signed-overflow check.
47
48 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
49
50 * config/arm/arm-modes.def (CC_ADC): New CC mode.
51 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
52 CC_ADCmode.
53 (maybe_get_arm_condition_code): Handle CC_ADCmode.
54 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
55 with overflow.
56 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
57 expand patterns.
58 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
59 (addsi3_cin_cout_imm_insn): Likewise.
60 (adddi3_compareC): Delete insn.
61 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
62
63 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
64
65 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
66 * (uaddv<mode>4): Delete expansion pattern.
67 (uaddvsi4): New pattern.
68 (uaddvdi4): Likewise.
69 (addsi3_compareC): Delete pattern, change callers to use
70 addsi3_compare_op1.
71 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
72 reduce the number of alternatives and re-work type attribute handling.
73 (addsi3_compare_op2): Clean up constraints to reduce the number of
74 alternatives and re-work type attribute handling.
75 (compare_addsi2_op0): Likewise.
76 (compare_addsi2_op1): Likewise.
77
78 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
79
80 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
81 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
82 for DImode operands.
83 (arm_gen_dicompare_reg): Remove unreachable expansion code.
84 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
85 CC_NCVmode.
86 * config/arm/arm.md (arm_cmpdi_insn): Delete.
87 (arm_cmpdi_unsigned): Delete.
88
89 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
90
91 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
92 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
93 unchanged only if that will be cheaper.
94 (arm_select_cc_mode): Recognize a swapped comparison that will
95 be regenerated using RSBS or RSCS. Relax restriction on selecting
96 CC_RSBmode.
97 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
98 a constant.
99 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
100 is CC_RSBmode.
101 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
102 as CCmode.
103 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
104 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
105
106 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
107
108 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
109 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
110 need these modes.
111 (arm_gen_dicompare_reg): New code to early expand the sub-operations
112 of EQ, NE, LT, GE, LTU and GEU.
113 * config/arm/iterators.md (CC_EXTEND): New code attribute.
114 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
115 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
116 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
117 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
118
119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
120
121 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
122 operand 2.
123 (cstoredi4): Similarly, but for operand 3.
124 * config/arm/arm.c (arm_canoncialize_comparison): Allow
125 canonicalization of unsigned compares with a constant on Arm.
126 Prefer using const+1 and adjusting the comparison over swapping the
127 operands whenever the original constant was not valid.
128 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
129 register here.
130 (arm_validize_comparison): Do not force invalid DImode operands to
131 registers here.
132
133 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
134
135 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
136 return CC_Zmode if comparing against a constant where one word is
137 zero.
138 (arm_gen_compare_reg): Split DImode handling to ...
139 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
140 against simple constants.
141 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
142
143 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
144
145 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
146 (rsbsi3_carryin_shift_alt): Likewise.
147
148 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
149
150 * config/arm/arm.md (negscc_borrow): New pattern.
151 (mov_negscc): Don't split if the insn would match negscc_borrow.
152 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
153 (thumb2_mov_negscc_strict_it): Likewise.
154
155 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
156
157 * config/arm/arm.c (arm_insn_cost): New function.
158 (TARGET_INSN_COST): Override default definition.
159
160 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
161
162 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
163 borrow operations.
164
165 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
166
167 * config/arm/arm.c (strip_carry_operation): New function.
168 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
169 for SImode.
170
171 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
172
173 * config/arm/predicates.md (arm_carry_operation): New special
174 predicate.
175 * config/arm/iterators.md (LTUGEU): Delete iterator.
176 (cnb): Delete code attribute.
177 (optab): Delete ltu and geu elements.
178 * config/arm/arm.md (addsi3_carryin): Renamed from
179 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
180 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
181 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
182 (addsi3_carryin_clobercc): Similarly.
183 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
184 Thumb2 state.
185
186 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
187
188 * config/arm/arm.md (arm_subdi3): Delete insn.
189 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
190
191 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
192
193 * config/arm/arm-modes.def (CC_RSB): New CC mode.
194 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
195 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
196 return CC_RSBmode.
197 (maybe_get_arm_condition_code): Handle CC_RSBmode.
198 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
199 expand.
200 (subdi3): Rewrite to early-expand the sub-operations.
201 (rsb_im_compare): New pattern.
202 (negdi2): Delete.
203 (negdi2_insn): Delete.
204 (arm_negsi2): Correct type attribute to alu_imm.
205 (negsi2_0compare): New insn pattern.
206 (negsi2_carryin): New insn pattern.
207
208 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
209
210 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
211 operand 2.
212
213 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
214
215 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
216 to match canonical form.
217
218 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
219
220 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
221 (extend<mode>di2): Likewise.
222
223 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
224
225 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
226 * config/arm/arm.c (arm_decompose_di_binop): New function.
227 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
228 If not generating Thumb-1 code, decompose the operation into 32-bit
229 pieces.
230 * add0si_carryin_<optab>: New pattern.
231
232 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
233
234 * arm.md (adddi3): Only accept register operands.
235 (arm_adddi3): Convert to simple insn with no split. Do not accept
236 constants.
237 (adddi_sesidi_di): Delete patern.
238 (adddi_zesidi_di): Likewise.
239 (uaddv<mode>4): Use LTU as condition for branch.
240 (adddi3_compareV): Convert to simple insn with no split.
241 (addsi3_compareV_upper): Delete pattern.
242 (adddi3_compareC): Convert to simple insn with no split. Correct
243 flags setting expression.
244 (addsi3_compareC_upper): Delete pattern.
245 (addsi3_compareC): Correct flags setting expression.
246 (subdi3_compare1): Convert to simple insn with no split.
247 (subsi3_carryin_compare): Delete pattern.
248 (arm_subdi3): Convert to simple insn with no split.
249 (subdi_zesidi): Delete pattern.
250 (subdi_di_sesidi): Delete pattern.
251 (subdi_zesidi_di): Delete pattern.
252 (subdi_sesidi_di): Delete pattern.
253 (subdi_zesidi_zesidi): Delete pattern.
254 (negvdi3): Use s_register_operand.
255 (negdi2_compare): Convert to simple insn with no split.
256 (negdi2_insn): Likewise.
257 (negsi2_carryin_compare): Delete pattern.
258 (negdi_zero_extendsidi): Delete pattern.
259 (arm_cmpdi_insn): Convert to simple insn with no split.
260 (negdi2): Don't call gen_negdi2_neon.
261 * config/arm/neon.md (adddi3_neon): Delete pattern.
262 (subdi3_neon): Delete pattern.
263 (negdi2_neon): Delete pattern.
264 (splits for negdi2_neon): Delete splits.
265
266 2019-10-18 Jakub Jelinek <jakub@redhat.com>
267
268 PR middle-end/92153
269 * ggc-page.c (release_pages): Read g->alloc_size before free rather
270 than after it.
271
272 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
273
274 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
275 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
276 new multilib variants and new mappings.
277
278 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
279
280 PR target/86040
281 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
282
283 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
284 Richard Sandiford <richard.sandiford@arm.com>
285
286 PR target/86753
287 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
288 and define hashmap traits for it.
289 (loop_vec_info::scalar_cond_masked_set): New member.
290 (vect_record_loop_mask): Adjust prototype.
291 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
292 Implement method.
293 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
294 vect_record_loop_mask.
295 (vectorizable_live_operation): Likewise.
296 (vect_record_loop_mask): New param scalar_mask. Add entry
297 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
298 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
299 Pass it as last arg to vect_record_loop_mask.
300 (vectorizable_call): Pass scalar_mask as last arg to
301 vect_record_loop_mask.
302 (vectorizable_store): Likewise.
303 (vectorizable_load): Likewise.
304 (vectorizable_condition): Check if another part of vectorized code
305 applies loop_mask to condition or to it's inverse, and if yes,
306 apply loop_mask to result of vector comparison.
307
308 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
309
310 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
311
312 2019-10-18 Jakub Jelinek <jakub@redhat.com>
313
314 PR tree-optimization/92056
315 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
316 before calling compute_builtin_object_size.
317
318 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
319
320 PR target/65342
321 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
322 (movdi_low_st): Delete.
323 * config/rs6000/rs6000.c
324 (darwin_rs6000_legitimate_lo_sum_const_p): New.
325 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
326 * config/rs6000/rs6000.md (movsi_low): Delete.
327
328 2019-10-17 Jason Merrill <jason@redhat.com>
329
330 * gimplify.h (get_initialized_tmp_var): Add default argument to
331 post_p.
332 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
333 NULL post_p argument.
334 * targhooks (std_gimplify_va_arg_expr): Likewise.
335
336 2019-10-17 Richard Biener <rguenther@suse.de>
337
338 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
339 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
340 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
341 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
342 * tree-vect-loop.c (vect_is_simple_reduction): Set
343 STMT_VINFO_REDUC_CODE.
344 (vectorizable_reduction): Remove dead and redundant code, use
345 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
346
347 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
348
349 Fix breakage introduced by r276985.
350
351 * config/avr/avr.c (avr_option_override): Remove set of
352 PARAM_ALLOW_STORE_DATA_RACES.
353 * common/config/avr/avr-common.c (avr_option_optimization_table)
354 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
355
356 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
357
358 * config/i386/i386.h (processor_costs): Add clear_ratio.
359 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
360 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
361 of 6 and move_ratio in all cost models.
362
363 2019-10-17 Richard Biener <rguenther@suse.de>
364
365 * tree-vect-loop.c (check_reduction_path): Compute reduction
366 operation here.
367 (vect_is_simple_reduction): Remove special-case of single-stmt
368 reduction path detection.
369
370 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
371
372 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
373
374 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
375
376 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
377 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
378 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
379 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
380 New combine patterns.
381 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
382 above.
383 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
384
385 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
386
387 * tree-vrp.c (value_range_base::dump): Display +INF for both
388 pointers and integers when appropriate.
389
390 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
391
392 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
393 when to use versioning threshold.
394
395 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
396
397 * tree-vect-loop.c (determine_peel_for_niter): New function contained
398 outlined code from ...
399 (vect_analyze_loop_2): ... here.
400
401 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
402
403 * tree-vect-loop.c (vect_transform_loop): Move code from here...
404 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
405 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
406
407 2019-10-17 Richard Biener <rguenther@suse.de>
408
409 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
410 (vect_is_simple_reduction): Move all validity checks ...
411 (vectorizable_reduction): ... here. Compute whether we
412 need a fold-left reduction here.
413 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
414 both overloads, check needs_fold_left_reduction_p directly.
415 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
416
417 2019-10-17 Richard Biener <rguenther@suse.de>
418
419 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
420 TARGET_MEM_REF creation.
421
422 2019-10-17 Richard Biener <rguenther@suse.de>
423
424 PR tree-optimization/92129
425 * tree-vect-loop.c (vectorizable_reduction): Also fail
426 on GIMPLE_SINGLE_RHS.
427
428 2019-10-17 Jakub Jelinek <jakub@redhat.com>
429
430 PR tree-optimization/92056
431 * tree-object-size.c (cond_expr_object_size): Return early if then_
432 processing resulted in unknown size.
433
434 PR tree-optimization/92115
435 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
436 temporary if it could trap.
437
438 2019-10-17 Richard Biener <rguenther@suse.de>
439
440 PR debug/91887
441 * dwarf2out.c (gen_formal_parameter_die): Also try to match
442 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
443
444 2019-10-16 Jakub Jelinek <jakub@redhat.com>
445
446 * tree-ssa-strlen.c (maybe_invalidate): Use
447 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
448
449 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
450 Jim Wilson <jimw@sifive.com>
451
452 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
453 regs to SIBCALL_REGS.
454 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
455 passing regs to SIBCALL_REGS.
456
457 2019-10-16 Martin Sebor <msebor@redhat.com>
458
459 PR tree-optimization/83821
460 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
461 the length of a string when available.
462 (handle_builtin_memset) Add argument.
463 (handle_store, strlen_check_and_optimize_call): Same.
464 (check_and_optimize_stmt): Same. Pass it to callees.
465
466 2019-10-16 Martin Sebor <msebor@redhat.com>
467
468 PR tree-optimization/91996
469 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
470 information.
471 (compare_nonzero_chars): Add an overload.
472 (count_nonzero_bytes): Add an argument. Call overload above.
473 Handle non-constant lengths in some range.
474 (handle_store): Add an argument.
475 (check_and_optimize_stmt): Pass an argument to handle_store.
476
477 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
478
479 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
480
481 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
482
483 * config/mips/mips.c (mips_expand_builtin_insn): Force the
484 operands which correspond to the same input-output register to
485 have the same pseudo assigned to them.
486
487 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
488
489 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
490
491 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
492
493 * config/aarch64/aarch64.c (aarch64_classify_symbol):
494 Apply reasonable limit to symbol offsets.
495
496 2019-10-16 Richard Biener <rguenther@suse.de>
497
498 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
499 (vect_is_simple_reduction): Delay checking to
500 vectorizable_reduction and relax the checking.
501 (vectorizable_reduction): Check we have a simple use. Check
502 for bogus condition reductions.
503 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
504 are looking at the last stmt in a pattern sequence when
505 filling in backedge PHI values.
506
507 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
508 Jiufu Guo <guojiufu@linux.ibm.com>
509
510 PR target/70010
511 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
512 the callee explicitly disables some isa_flags the caller is using.
513
514 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
515
516 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
517
518 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
519
520 * genmodes.c (mode_data::order): New field.
521 (blank_mode): Update accordingly.
522 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
523 (make_vector_modes): Likewise.
524 (VECTOR_MODES): Update use accordingly.
525 (cmp_modes): Sort by the new order field ahead of sorting by size.
526 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
527 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
528 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
529 (aarch64_classify_vector_mode): Handle the new partial modes.
530 (aarch64_vl_bytes): New function.
531 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
532 when counting the number of registers in an SVE mode.
533 (aarch64_class_max_nregs): Likewise.
534 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
535 in registers yet.
536 (aarch64_classify_address): Treat partial vectors analogously
537 to full vectors.
538 (aarch64_print_address_internal): Consolidate the printing of
539 MUL VL addresses, using aarch64_vl_bytes as the number of
540 bytes represented by "VL".
541 (aarch64_vector_mode_supported_p): Reject partial vector modes.
542
543 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
544
545 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
546 rather than known_lt when choosing frame layouts.
547
548 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
549
550 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
551 that all the adjustments add up to the full frame size.
552 Use crtl->outgoing_args_size directly as the final adjustment
553 where appropriate.
554
555 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
556
557 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
558 "frame" reference instead of always referring directly to
559 "cfun->machine->frame".
560
561 2019-10-16 Richard Biener <rguenther@suse.de>
562
563 PR tree-optimization/92119
564 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
565 against missing bswap lhs.
566
567 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
568
569 PR middle-end/92033
570 * poly-int.h (constant_lower_bound_with_limit): New function.
571 (constant_upper_bound_with_limit): Likewise.
572 * doc/poly-int.texi: Document them.
573 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
574 into the worst-case INTEGER_CST bounds.
575
576 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
577
578 PR ipa/91088
579 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
580 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
581 * ipa-predicat.h (struct expr_eval_op): New struct.
582 (expr_eval_ops): New typedef.
583 (struct condition): Add type and param_ops fields, remove size field.
584 (add_condition): Replace size parameter with type parameter, add
585 param_ops parameter.
586 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
587 (predicate::add_clause): Add comparisons on type and param_ops.
588 (dump_condition): Add debug dump for param_ops.
589 (remap_after_inlining): Adjust call arguments to add_condition.
590 (add_condition): Replace size parameter with type parameter, add
591 param_ops parameter. Unshare constant value used in conditions.
592 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
593 parameter expressions using param_ops.
594 (decompose_param_expr): New function.
595 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
596 to replace call to unmodified_parm_or_parm_agg_item.
597 (set_switch_stmt_execution_predicate): Likewise.
598 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
599 with type.
600 (inline_read_section): Read param_ops from summary stream.
601 (ipa_fn_summary_write): Write param_ops to summary stream.
602
603 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
604
605 PR rtl-optimization/92107
606 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
607 expression written.
608
609 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
610
611 * config/darwin.c: Update description of fix and continue.
612
613 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
614
615 * config/darwin.c (darwin_binds_local_p): Update to call
616 default_binds_local_p_3 () directly. amend comments.
617
618 2019-10-15 Richard Biener <rguenther@suse.de>
619
620 * lto-streamer-out.c (lto_variably_modified_type_p): New.
621 (tree_is_indexable): Use it.
622 * tree-streamer-out.c (pack_ts_type_common_value_fields):
623 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
624 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
625
626 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
627
628 * config/msp430/msp430.md (zero_extendqipsi2): New.
629 (zero_extendqisi2): Optimize case where src register and base dst
630 register are the same.
631 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
632 (zero_extendpsisi2): Optimize r->m case.
633 Add unnamed insn patterns to catch insns combine searches for when
634 optimizing pointer manipulation.
635
636 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
637
638 * config/msp430/msp430.md: Group zero_extend* insns together.
639
640 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
641
642 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
643 constraint.
644 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
645 POST_INC.
646 (msp430_subreg): Likewise.
647 (msp430_split_addsi): Likewise.
648 (msp430_print_operand_addr): Likewise.
649 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
650 (USE_STORE_POST_INCREMENT): Define.
651 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
652 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
653 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
654 (msp430_general_dst_operand): New.
655 (msp430_general_dst_nonv_operand): New.
656 (msp430_nonsubreg_operand): Remove.
657 (msp430_nonsubreg_dst_operand): New.
658 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
659 of defunct msp430_nonsubreg_operand.
660 (msp430_nonsubregnonpostinc_or_imm_operand): New.
661
662 2019-10-15 Richard Biener <rguenther@suse.de>
663
664 PR tree-optimization/91929
665 * tree-ssa-pre.c (pre_expr_d::loc): New member.
666 (get_or_alloc_expr_for_name): Initialize it.
667 (get_or_alloc_expr_for_constant): Likewise.
668 (phi_translate_1): Copy it.
669 (create_expression_by_pieces): Use the original location
670 of the expression for the inserted stmt.
671 (compute_avail): Record the location of the stmt for the
672 expressions created.
673
674 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
675
676 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
677 before using tree_to_uhwi.
678
679 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
680
681 * config/s390/s390.md: Run %a0:DI splitters only after reload.
682
683 2019-10-15 Richard Biener <rguenther@suse.de>
684
685 PR tree-optimization/92094
686 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
687 do not adjust the reduction definition def type.
688 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
689 defines the latch argument of the PHI.
690
691 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
692
693 PR target/92035
694 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
695 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
696 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
697 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
698 _mm_maskz_roundscale_round_sd): New intrinsics.
699 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
700 __builtin_ia32_rndscales?_mask_round builtins instead of
701 __builtin_ia32_rndscales?_round.
702 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
703 __builtin_ia32_rndscalesd_round): Remove.
704 (__builtin_ia32_rndscaless_mask_round,
705 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
706 * config/i386/sse.md
707 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
708 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
709 ... this, adjust and add subst atrributes to make it maskable.
710
711 2019-10-15 Richard Biener <rguenther@suse.de>
712
713 PR middle-end/92046
714 * common.opt (fallow-store-data-races): New.
715 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
716 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
717 * doc/invoke.texi (fallow-store-data-races): Document.
718 (--param allow-store-data-races): Remove docs.
719 * opts.c (default_options_table): Enable -fallow-store-data-races
720 at -Ofast.
721 (default_options_optimization): Do not enable --param
722 allow-store-data-races at -Ofast.
723 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
724 instead of PARAM_ALLOW_STORE_DATA_RACES.
725 * tree-ssa-loop-im.c (execute_sm): Likewise.
726
727 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
728
729 PR tree-optimization/92085
730 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
731 instead of calling it unconditionally after
732 delete_dead_or_redundant_assignment and fix indentation.
733
734 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
735
736 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
737 TARGET_VFP_DOUBLE.
738 (*fmsub<SDF:mode>4): Likewise.
739 *fnmsub<SDF:mode>4): Likewise.
740 (*fnmadd<SDF:mode>4): Likewise.
741
742 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
743
744 * doc/tree-ssa.texi: Update renamed macro name.
745
746 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
747
748 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
749 vector constants.
750
751 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
752
753 * config/darwin.c: Use unsigned ints for the picbase label
754 counters, initialise the vars explicitly.
755 (update_pic_label_number_if_needed): Move a variable declaration
756 to where it's needed.
757 (machopic_output_function_base_name): Use a more strict checking
758 assert, and and unsigned int for the picbase label counter.
759 (machopic_get_function_picbase): Likewise.
760
761 2019-10-14 Richard Biener <rguenther@suse.de>
762
763 PR middle-end/92046
764 * dse.c (scan_insn): Use param max_active_local_stores.
765 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
766 based on optimization level.
767 * loop-invariant.c (move_loop_invariants): Adjust
768 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
769 * opts.c (default_options_optimization): Do not adjust
770 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
771 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
772
773 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
774
775 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
776
777 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
778
779 * config/arm/arm.c (arm_option_override): Don't override sched
780 pressure algorithm.
781
782 2019-10-14 Richard Biener <rguenther@suse.de>
783
784 PR tree-optimization/92069
785 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
786 cycles do not set vect_nested_cycle on the latch definition.
787
788 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
789
790 * function-abi.h (expr_callee_abi): Declare.
791 * function-abi.cc (expr_callee_abi): New function.
792
793 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
794
795 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
796 into [1,MAX].
797 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
798 non-zero being represented as [1,MAX].
799
800 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
801
802 * tree-sra.c (dump_access): Add missing braces.
803
804 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
805
806 * config/darwin.c (machopic_indirection_name): Rework the
807 function to emit linker-visible symbols only for indirections
808 in the data section. Clean up the code and update comments.
809
810 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
811
812 * config/darwin.c (machopic_indirect_data_reference): Remove
813 redundant code.
814
815 2019-10-13 Nathan Sidwell <nathan@acm.org>
816
817 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
818
819 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820
821 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
822 c99_runtime.
823
824 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
825
826 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
827 so non-virutal are before virutals.
828 (output_function): Avoid body modifications.
829
830 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
831
832 * config/pa/pa.c (pa_output_call): Load descriptor address to register
833 %r22. Load function address before global pointer.
834 (pa_attr_length_indirect_call): Adjust length of inline versions of
835 $$dyncall.
836 (pa_output_indirect_call): Remove fast inline version of $$dyncall
837 before normal cases. Update inline $$dyncall sequences to preserve
838 function descriptor address in register %r22.
839 (TRAMPOLINE_CODE_SIZE): Adjust.
840 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
841 register %r22 contains trampoline address.
842 (pa_trampoline_init): Adjust offsets.
843 (pa_trampoline_adjust_address): Likewise.
844 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
845
846 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
847
848 PR target/67183
849 * config/darwin.c (machopic_indirection): New field to flag
850 non-lazy-symbol-pointers in the data section.
851 (machopic_indirection_name): Compute if an indirection should
852 appear in the data section.
853 (machopic_output_data_section_indirection): New callback split
854 from machopic_output_indirection.
855 (machopic_output_stub_indirection): Likewise.
856 (machopic_output_indirection): Retain the code for non-lazy
857 symbol pointers in their regular section.
858 (machopic_finish): Use the new callbacks to order the indirection
859 output.
860
861 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
862
863 * config/darwin-protos.h (machopic_finish): Delete.
864 * config/darwin.c (machopic_finish): Make static.
865
866 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
867
868 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
869 sections when building kernel extension code.
870
871 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
872
873 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
874 later standard."
875
876 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
877
878 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
879 from warning.
880
881 2019-10-12 Jakub Jelinek <jakub@redhat.com>
882
883 PR middle-end/92063
884 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
885 <case VEC_COND_EXPR>: Return false with *handled = false.
886 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
887 recursing on the first operand.
888 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
889 instead of tree_could_trap_p.
890 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
891
892 2019-10-11 Jim Wilson <jimw@sifive.com>
893
894 PR rtl-optimization/91860
895 * combine.c (subst): If new_rtx is a constant, also check for
896 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
897
898 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
899
900 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
901 INTVAL when calling store_bit_field.
902
903 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
904
905 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
906 size.
907
908 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
909
910 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
911 vectorizable_live_operation.
912 (vectorizable_live_operation): Adjust parameters.
913 * tree-vect-stmts.c (vect_init_vector,
914 vect_gen_widened_results_half): Fix typo in function comment.
915 (can_vectorize_live_stmts): Adjust function comment.
916 Adjust parameters. Adjust call to vectorizable_live_operation.
917 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
918 (vect_transform_stmt): Adjust function comment. Adjust call to
919 can_vectorize_live_stmts.
920 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
921
922 2019-10-11 Richard Biener <rguenther@suse.de>
923
924 PR tree-optimization/90883
925 PR tree-optimization/91091
926 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
927 alias-sets both for recording VN table entries and continuing
928 walking after translating through copies. Handle same-sized
929 reads from SSA names by returning the plain SSA name.
930 (eliminate_dom_walker::eliminate_stmt): Properly handle
931 non-size precision stores in redundant store elimination.
932
933 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
934
935 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
936 (ggc_collect): Dump later to not interfere with release_page dump.
937 (ggc_trim): New function.
938 * ggc-none.c (ggc_trim): New.
939 * ggc.h (ggc_trim): Declare.
940
941 2019-10-11 Richard Biener <rguenther@suse.de>
942
943 PR tree-optimization/92066
944 PR tree-optimization/92046
945 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
946 Fix bogus cost model check.
947
948 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
949
950 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
951 (LANG_HOOKS_DECLS): Add it.
952 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
953 update comment for omp_is_optional_argument.
954 * omp-general.c (omp_is_allocatable_or_ptr): New.
955 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
956 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
957 Fortran's optional arguments and allocatable/pointer scalars
958 with use_device_addr.
959
960 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
961
962 PR target/77918
963 * config/s390/2827.md: Add new opcodes.
964 * config/s390/2964.md: Likewise.
965 * config/s390/3906.md: Likewise.
966 * config/s390/8561.md: Likewise.
967 * config/s390/s390-builtins.def (s390_vfchesb): Use
968 the new vec_cmpgev4sf_quiet_nocc.
969 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
970 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
971 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
972 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
973 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
974 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
975 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
976 * config/s390/s390-modes.def (CCSFPS): New mode.
977 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
978 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
979 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
980 (s390_expand_vec_compare): Use non-signaling patterns where
981 necessary.
982 (s390_reverse_condition): Support CCSFPS.
983 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
984 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
985 (asm_fcmp_op): Likewise.
986 (*smaxv2df3_vx): Use pattern for quiet comparison.
987 (*sminv2df3_vx): Likewise.
988 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
989 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
990 (vec_cmpgt<mode>_quiet_nocc): Likewise.
991 (vec_cmplt<mode>_quiet_nocc): New expander.
992 (vec_cmpge<mode>_quiet_nocc): New pattern.
993 (vec_cmple<mode>_quiet_nocc): New expander.
994 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
995 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
996 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
997 (*vec_cmpge<mode>_signaling_nocc): Likewise.
998 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
999 (vec_cmpungt<mode>): New expander.
1000 (vec_cmpunge<mode>): Likewise.
1001 (vec_cmpuneq<mode>): Use quiet patterns.
1002 (vec_cmpltgt<mode>): Allow only on z14+.
1003 (vec_cmpordered<mode>): Use quiet patterns.
1004 (vec_cmpunordered<mode>): Likewise.
1005 (VEC_CMP_EXPAND): Add ungt and unge.
1006
1007 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
1008
1009 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
1010 parameter.
1011 * lto-streamer-out.c: Include tree-dfa.h.
1012 (output_cfg): Do not use cfun.
1013 (lto_prepare_function_for_streaming): New.
1014 (output_function): Do not push cfun; do not initialize loop optimizer.
1015 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
1016 * passes.c (ipa_write_summaries): Use it.
1017 (ipa_write_optimization_summaries): Do not modify bodies.
1018 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
1019 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
1020 * tree-ssa-dse.c (pass_dse::execute): Update use of
1021 renumber_gimple_stmt_uids.
1022 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
1023
1024 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
1025
1026 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1027 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
1028
1029 2019-10-10 Joseph Myers <joseph@codesourcery.com>
1030
1031 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
1032 macros.
1033 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
1034 Also define DFP macros for these conditions.
1035 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
1036 DEC128_SUBNORMAL_MIN): Do not define.
1037 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
1038 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
1039
1040 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
1041 Sandra Loosemore <sandra@codesourcery.com>
1042
1043 PR middle-end/26241
1044 * doc/lto.texi (IPA): Reference to the IPA passes.
1045 * doc/passes.texi (Pass manager): Add node IPA passes and
1046 description for each IPA pass.
1047
1048 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1049
1050 * ipa-reference.c: Do not include splay-tree.h
1051 (reference_vars_to_consider): Turn to hash map.
1052 (get_static_name, ipa_init, analyze_function, propagate,
1053 stream_out_bitmap, ipa_reference_write_optimization_summary,
1054 ipa_reference_write_optimization_summary): Update.
1055
1056 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1057
1058 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
1059
1060 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
1061
1062 * config/darwin.c: Lookup Objective C metadata and force indirection
1063 for IVAR refs.
1064
1065 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
1066
1067 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
1068 addresses.
1069 (mem_operand_gpr): Add check for prefixed addresses.
1070 (mem_operand_ds_form): Add check for prefixed addresses.
1071 (rs6000_legitimate_offset_address_p): If we support prefixed
1072 addresses, check for a 34-bit offset instead of 16-bit.
1073 (rs6000_legitimate_address_p): Add check for prefixed addresses.
1074 Do not allow load/store with update if the address is prefixed.
1075 (rs6000_mode_dependent_address): If we support prefixed
1076 addresses, check for a 34-bit offset instead of 16-bit.
1077
1078 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
1079
1080 PR target/77918
1081 * config/s390/vector.md (vcond_comparison_operator): New
1082 predicate.
1083 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
1084
1085 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1086
1087 PR 87488
1088 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
1089 -D.
1090 * configure.ac (--with-documentation-root-url): New option.
1091 * configure: Regenerate.
1092 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
1093 option URL, add it as a new string field of the diagnostic option.
1094 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
1095 (print_option_information): If get_option_url is non-NULL, call
1096 it, and if the result is non-NULL, potentially emit an escape
1097 sequence to markup the option text with the resulting URL.
1098 * diagnostic.h (diagnostic_context::get_option_url): New callback.
1099 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
1100 example of JSON output.
1101 * opts-diagnostic.h (get_option_url): New decl.
1102 * opts.c (get_option_url): New function.
1103 * toplev.c (general_init): Initialize the get_option_url callback.
1104
1105 2019-10-10 David Malcolm <dmalcolm@redhat.com>
1106
1107 PR 87488
1108 * common.opt (fdiagnostics-urls=): New option.
1109 (diagnostic-url.h): Add SourceInclude.
1110 (diagnostic_url_rule): New enum.
1111 * diagnostic-color.c: Include "diagnostic-url.h".
1112 (diagnostic_urls_enabled_p): New function.
1113 * diagnostic-url.h: New file.
1114 * diagnostic.c: Include "diagnostic-url.h".
1115 (diagnostic_urls_init): New function.
1116 * diagnostic.h (diagnostic_urls_init): New decl.
1117 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1118 -fdiagnostics-urls to the list.
1119 (-fdiagnostics-urls): New option.
1120 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
1121 (driver::global_initializations): Call diagnostic_urls_init.
1122 * opts-global.c (init_options_once): Likewise.
1123 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
1124 * pretty-print.c (pretty_printer::pretty_printer): Initialize
1125 show_urls.
1126 (pp_begin_url): New function.
1127 (pp_end_url): New function.
1128 (selftest::test_urls): New selftest.
1129 (selftest::pretty_print_c_tests): Call it.
1130 * pretty-print.h (pretty_printer::show_urls): New field.
1131 (pp_begin_url): New decl.
1132 (pp_end_url): New decl.
1133
1134 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
1135
1136 PR target/92022
1137 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
1138
1139 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
1140
1141 PR target/88630
1142 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
1143 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
1144 also for TARGET_FPU_SH4_300.
1145 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
1146 TARGET_SH4_300.
1147 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
1148 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
1149 (*negsf2_i): Split into ...
1150 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
1151 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
1152 (**abssf2_i): Split into ...
1153 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
1154 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
1155 (*negdf2_i): Split into ...
1156 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
1157 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
1158 (**abssf2_i): Split into ...
1159 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
1160
1161 2019-10-10 Richard Biener <rguenther@suse.de>
1162
1163 PR middle-end/92046
1164 * opts.c (finish_options): Do not influence global --params
1165 from options that are adjustable per function.
1166 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1167 Apply --param adjustment based on active cost-model.
1168 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
1169 further store-sinking when vectorization or if-conversion
1170 are not enabled.
1171
1172 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
1173
1174 PR middle-end/92037
1175 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
1176 rather than ggc_alloc_cleared to alloc symbol table.
1177 * toplev.c (general_init): Likewise.
1178 * cgraph.h (symbol_table): Explicitly construct every field.
1179
1180 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1181
1182 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
1183 (PF_Z15): ... this.
1184 * config.gcc: Add z15 as option for --with-arch and --with-tune
1185 configure switches.
1186 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
1187 error reporting for unsupported builtins.
1188 * config/s390/s390-opts.h (enum processor_type): Rename
1189 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
1190 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
1191 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1192 Likewise.
1193 * config/s390/s390-builtins.def: Likewise.
1194 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
1195 (s390_expand_builtin): Add missing check for unsupported builtins.
1196 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
1197 (s390_rtx_costs): Likewise.
1198 (s390_get_sched_attrmask): Rename arch13 to z15.
1199 (s390_get_unit_mask): Likewise.
1200 (s390_is_fpd): Likewise.
1201 (s390_is_fxd): Likewise.
1202 * config/s390/s390.h (enum processor_flags): Likewise.
1203 * config/s390/s390.md: Likewise.
1204 * config/s390/vector.md: Likewise.
1205 * config/s390/vx-builtins.md: Likewise.
1206 * config/s390/s390.opt: Add z15 to processor_type value.
1207
1208 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
1209
1210 PR target/91035
1211 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
1212 prototype.
1213 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
1214 ("split_stack_data", "split_stack_call")
1215 ("split_stack_call_<mode>", "split_stack_cond_call")
1216 ("split_stack_cond_call_<mode>"): Remove.
1217 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
1218 insn definition.
1219 * config/s390/s390.c (s390_output_split_stack_data): New function.
1220 (s390_expand_split_stack_prologue): Use the merged expander.
1221
1222 2019-10-09 Martin Sebor <msebor@redhat.com>
1223
1224 PR tree-optimization/90879
1225 * builtins.c (check_access): Avoid using maxbound when null.
1226 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
1227 * doc/invoke.texi (-Wstring-compare): Document new warning option.
1228 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
1229 conditional.
1230 (get_range_strlen): Overwrite initial maxbound when non-null.
1231 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
1232 changes.
1233 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
1234 (used_only_for_zero_equality): New function.
1235 (handle_builtin_memcmp): Call it.
1236 (determine_min_objsize): Return an integer instead of tree.
1237 (get_len_or_size, strxcmp_eqz_result): New functions.
1238 (maybe_warn_pointless_strcmp): New function.
1239 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
1240 between a longer string and a smaller array.
1241 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
1242
1243 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1244
1245 * config/darwin.c (darwin_override_options): Make the check for
1246 Objective-C ABI version more specific for 64bit code.
1247
1248 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
1249
1250 * config/darwin.c (machopic_indirect_data_reference): Set flag to
1251 indicate that the new symbol is an indirection.
1252 (machopic_indirect_call_target): Likewise.
1253 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
1254 (MACHO_SYMBOL_INDIRECTION_P): New.
1255 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
1256
1257 2019-10-08 Jason Merrill <jason@redhat.com>
1258
1259 * doc/invoke.texi: Document -fconcepts-ts.
1260
1261 2019-10-09 Richard Biener <rguenther@suse.de>
1262
1263 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
1264 allow stmts other than GIMPLE_ASSIGN in nested cycles.
1265
1266 2019-10-08 Richard Biener <rguenther@suse.de>
1267
1268 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
1269 (_stmt_vec_info::force_single_cycle): Likewise.
1270 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
1271 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
1272 * tree-vect-loop.c (vectorizable_reduction): Set
1273 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
1274 (vect_transform_reduction): Use them to remove redundant code.
1275 (vect_transform_cycle_phi): Likewise.
1276
1277 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
1278
1279 PR tree-optimization/90836
1280 * gcc/match.pd (popcount): New pattern.
1281
1282 2019-10-08 Martin Sebor <msebor@redhat.com>
1283
1284 PR middle-end/92026
1285 PR middle-end/92014
1286 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
1287 again once nbytes has been set. Set the access size when not yet set.
1288
1289 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1290
1291 * config/darwin.c (machopic_select_section): Remove dead code for
1292 old Objective-C section selection method, replace with unreachable.
1293
1294 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
1295
1296 * config/darwin.c (machopic_indirect_data_reference): Check for
1297 required indirections before making direct access to defined
1298 values.
1299 (machopic_output_indirection): Place the indirected pointes for
1300 required indirections into the non-lazy symbol pointers section.
1301 (darwin_encode_section_info):
1302 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
1303 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
1304
1305 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
1306
1307 PR target/91994
1308 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
1309 instead of ALL_SSE_REG to check if function call preserves some
1310 256-bit SSE registers.
1311
1312 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1313
1314 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
1315 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
1316 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
1317
1318 2019-10-08 Richard Biener <rguenther@suse.de>
1319
1320 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
1321 (_stmt_vec_info::is_reduc_info): Add.
1322 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
1323 (vectorizable_condition): Remove.
1324 (vectorizable_shift): Likewise.
1325 (vectorizable_reduction): Adjust.
1326 (info_for_reduction): New.
1327 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
1328 (vect_analyze_scalar_cycles_1): ... here.
1329 (vect_analyze_loop_operations): Adjust.
1330 (needs_fold_left_reduction_p): Simplify for single caller.
1331 (vect_is_simple_reduction): Likewise. Remove stmt restriction
1332 for nested cycles not part of double reductions.
1333 (vect_model_reduction_cost): Pass in the reduction type.
1334 (info_for_reduction): New function.
1335 (vect_create_epilog_for_reduction): Use it, access reduction
1336 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
1337 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1338 (vectorize_fold_left_reduction): Remove pointless assert.
1339 (vectorizable_reduction): Analyze the full reduction when
1340 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
1341 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
1342 stmt code-generation to vectorizable_* in most cases. Verify
1343 code-generation only for cases handled by
1344 vect_transform_reductuon.
1345 (vect_transform_reduction): Use info_for_reduction to get at
1346 reduction meta. Simplify.
1347 (vect_transform_cycle_phi): Likewise.
1348 (vectorizable_live_operation): Likewise.
1349 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
1350 at the PHI node for STMT_VINFO_REDUC_TYPE.
1351 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
1352 longer necessary code.
1353 * tree-vect-stmts.c (vectorizable_shift): Make static again.
1354 (vectorizable_condition): Likewise. Get at reduction related
1355 info via info_for_reduction.
1356 (vect_analyze_stmt): Adjust.
1357 (vect_transform_stmt): Likewise.
1358 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1359 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
1360
1361 2019-10-08 Joseph Myers <joseph@codesourcery.com>
1362
1363 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
1364 -fno-fp-int-builtin-inexact default for C2X.
1365
1366 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1367 Richard Biener <rguenther@suse.de>
1368
1369 PR tree-optimization/91532
1370 * tree-if-conv.c: Include tree-ssa-dse.h.
1371 (ifcvt_local_dce): Change param from bb to loop,
1372 and call dse_classify_store.
1373 (tree_if_conversion): Pass loop instead of loop->header as arg
1374 to ifcvt_local_dce.
1375 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1376 (delete_dead_or_redundant_assignment): Remove static qualifier from
1377 declaration, and add prototype in tree-ssa-dse.h.
1378 (dse_store_status): Move to tree-ssa-dse.h.
1379 (dse_classify_store): Remove static qualifier and add new tree param
1380 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1381 * tree-ssa-dse.h: New header.
1382
1383 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1384
1385 * config/darwin.c (machopic_output_indirection): Don't put
1386 hidden symbol indirections into the .data section, use the
1387 non-lazy symbol pointers section as normal.
1388 (darwin_encode_section_info): Record if a symbol is hidden.
1389 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1390 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1391
1392 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1393
1394 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1395 predicates instead of accessing bits directly.
1396 (machopic_indirect_call_target): Likewise.
1397 (machopic_output_indirection): Likewise.
1398 (darwin_encode_section_info): Improve description. Use renamed
1399 symbol flags. Use predicate macros for variables and functions.
1400 * config/darwin.h:
1401 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1402 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1403 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1404 (MACHO_SYMBOL_VARIABLE_P): New.
1405 (MACHO_SYMBOL_DEFINED_P):New.
1406 (MACHO_SYMBOL_STATIC_P): New.
1407 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1408 (SYMBOL_FLAG_SUBT_DEP): New.
1409 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1410
1411 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1412
1413 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1414 (msp430_expand_epilogue): Likewise.
1415 * config/msp430/predicates.md: Likewise.
1416 * config/msp430/msp430.md: Likewise.
1417 Replace blocks of 8 spaces with tabs.
1418
1419 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1420
1421 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1422 * config/msp430/msp430.c (msp430_split_addsi): New.
1423 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1424 a block of C code for splitting addsi.
1425
1426 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1427
1428 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1429 ix86_expand_rounddf_32): Reorder functions.
1430 * config/i386/i386-protos.h: Update.
1431
1432 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1433
1434 * config.in: Regenerate.
1435 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1436 Add new "Yx" constraint.
1437 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1438 function.
1439 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1440 prototype.
1441 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1442 code/data region to be selected in the small memory model.
1443 (msp430_section_attr): Don't warn if the "section" and "lower"
1444 attributes are used together.
1445 (msp430_handle_generic_attribute): Likewise.
1446 (msp430_var_in_low_mem): New function.
1447 (TARGET_ENCODE_SECTION_INFO): Define.
1448 (msp430_encode_section_info): New function.
1449 (gen_prefix): Return early in the small memory model.
1450 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1451 ".lower" prefix if -m{code,data}-region=lower have been passed.
1452 (msp430_output_aligned_decl_common): Emit common symbols when
1453 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1454 set.
1455 (TARGET_ASM_FILE_END): Define.
1456 (msp430_file_end): New function.
1457 (msp430_do_not_relax_short_jumps): Allow relaxation when
1458 function will be in the lower region.
1459 (msp430_op_not_in_high_mem): New function.
1460 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1461 the 'X' operand selector.
1462 Clarify comment for 'x' operand selector.
1463 * config/msp430/msp430.h (LINK_SPEC): Propagate
1464 -m{code,data}-region to the linker via spec function
1465 msp430_propagate_region_opt.
1466 (msp430_propagate_region_opt): New prototype.
1467 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1468 (SYMBOL_FLAG_LOW_MEM): Define.
1469 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1470 selector.
1471 (zero_extendqihi2): Fix operand number used by "%X" selector.
1472 (zero_extendqisi2): Likewise.
1473 (zero_extendhisi2): Likewise.
1474 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1475 (movhi): Likewise.
1476 (addqi3): Likewise.
1477 (addhi3): Likewise.
1478 (addsi3): Likewise.
1479 (addhi3_cy): Likewise.
1480 (addchi4_cy): Likewise.
1481 (subqi3): Likewise.
1482 (subhi3): Likewise.
1483 (subsi3): Likewise.
1484 (bic<mode>3): Likewise.
1485 (and<mode>3): Likewise.
1486 (ior<mode>3): Likewise.
1487 (xor<mode>3): Likewise.
1488 (slli_1): Add missing "%X" operand selector.
1489 (slll_1): Likewise.
1490 (slll_2): Likewise.
1491 (srai_1): Likewise.
1492 (sral_1): Likewise.
1493 (sral_2): Likewise.
1494 (srli_1): Likewise.
1495 (srll_1): Likewise.
1496 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1497 selector.
1498 (cbranchhi4_real): Likewise.
1499 (cbranchqi4_reversed): Likewise.
1500 (cbranchhi4_reversed): Likewise.
1501 (*bitbranch<mode>4): Likewise.
1502 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1503 * config/msp430/msp430.opt (mcode-region=): Set default to
1504 MSP430_REGION_LOWER. Improve docstring.
1505 (mdata-region=): Likewise.
1506 (muse-lower-region-prefix): New option.
1507 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1508 mdata-region=none multilib.
1509 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1510 mdata-region=none multilib.
1511 MULTILIB_EXCEPTIONS: Remove.
1512 MULTILIB_REQUIRED: Define.
1513 * configure: Regenerate.
1514 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1515 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1516 * doc/extend.texi: Clarify comment for {upper,lower,either}
1517 function attributes.
1518 Add separate description for "lower" variable attribute.
1519
1520 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1521
1522 PR target/77918
1523 * optabs-tree.c (vcond_icode_p): New function.
1524 (vcond_eq_icode_p): Likewise.
1525 (expand_vec_cond_expr_p): Use vcond_icode_p and
1526 vcond_eq_icode_p.
1527 * optabs.c (can_vcond_compare_p): New function.
1528 * optabs.h (can_vcond_compare_p): Likewise.
1529
1530 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1531
1532 PR target/77918
1533 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1534 caller passes a non-trapping condition.
1535 (is_gimple_condexpr): Allow trapping conditions.
1536 (is_gimple_condexpr_1): New helper function.
1537 (is_gimple_condexpr_for_cond): New function, acts like old
1538 is_gimple_condexpr.
1539 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1540 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1541 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1542 * gimplify.c (gimplify_cond_expr): Use
1543 is_gimple_condexpr_for_cond.
1544 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1545 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1546 VEC_COND_EXPR.
1547 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1548 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1549 is_gimple_condexpr_for_cond, remove pointless tmp check
1550 (forward_propagate_into_cond): Remove pointless tmp check.
1551
1552 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1553
1554 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1555 match that of other gsi_next_* functions. Adjust the comment.
1556 (gsi_start_nonvirtual_phis): New function.
1557 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1558 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1559
1560 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1561
1562 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1563 setjmp situation here. Fix a verb's ending: "the exact variables or
1564 elements for which there are warnings depends" -> "... depend".
1565
1566 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1567
1568 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1569
1570 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1571
1572 * ipa-prop.c (ipa_vr::nonzero_p): New.
1573 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1574 non-zero range.
1575 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1576 * tree-vrp.c (range_has_numeric_bounds_p): New.
1577 (range_int_cst_p): Use range_has_numeric_bounds_p.
1578 (get_range_op_handler): New.
1579 (supported_types_p): New.
1580 (defined_ranges_p): New.
1581 (drop_undefines_to_varying): New.
1582 (range_fold_binary_symbolics_p): New.
1583 (range_fold_unary_symbolics_p): New.
1584 (range_fold_unary_expr): Extract out into above functions.
1585 (range_fold_binary_expr): Same.
1586 (value_range_base::normalize_addresses): New.
1587 (value_range_base::normalize_symbolics): Normalize addresses.
1588 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1589
1590 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1591
1592 * tree-vrp.c (value_range_base::singleton_p): Use
1593 value_range_base::num_pairs instead of vrp_val_is* to check
1594 if a range has one sub-range.
1595
1596 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1597
1598 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1599 DEF is not a true earlyclobber but is tied to a specific input
1600 operand, and so is effectively earlyclobber wrt inputs that have
1601 different values.
1602 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1603
1604 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1605
1606 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1607 (pod_mode): Mark operators likewise.
1608 (scalar_int_mode): Mark non-default constructors and
1609 operators with CONSTEXPR.
1610 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1611 (fixed_size_mode): Likewise.
1612
1613 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1614
1615 PR target/91994
1616 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1617 and wrap the unspec_volatile in a parallel.
1618 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1619 the unspec_volatile.
1620 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1621 unspec_volatile to be wrapped in a parallel.
1622 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1623 (ix86_add_reg_usage_to_vzerouppers): New functions.
1624 (rest_of_handle_insert_vzeroupper): Use them to add register
1625 usage information to the vzeroupper instructions.
1626
1627 2019-10-07 Richard Biener <rguenther@suse.de>
1628
1629 PR tree-optimization/91975
1630 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1631 handle invariants.
1632
1633 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1634
1635 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1636 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1637
1638 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1639
1640 * config/darwin.c (darwin_override_options): Adjust objective-c
1641 ABI version error messages to avoid punctuation and contracted
1642 negations.
1643
1644 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1645
1646 * ipa-inline.c: Fix type; compute size rather than self_size
1647 for size of caller function.
1648
1649 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1650
1651 PR target/59888
1652 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1653 choose const_data section for constants with relocations.
1654 (machopic_select_section): Pass relocation flag to
1655 darwin_rodata_section ().
1656
1657 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1658
1659 PR tree-optimization/91734
1660 * generic-match-head.c: Include fold-const-call.h.
1661 * match.pd (sqrt(x) cmp c): Check the boundary value and
1662 in case inexact computation of c*c affects comparison of the boundary,
1663 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1664 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1665 for -frounding-math. For c2, try the next smaller or larger floating
1666 point constant depending on comparison code and if it has the same
1667 sqrt as c2, use it instead of c2.
1668
1669 2019-10-04 Martin Sebor <msebor@redhat.com>
1670
1671 PR middle-end/91977
1672 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1673 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1674 uninitialized objects.
1675
1676 2019-10-04 Martin Sebor <msebor@redhat.com>
1677
1678 * builtins.c (compute_objsize): Add an argument.
1679 * tree-object-size.c (addr_object_size): Same.
1680 (compute_builtin_object_size): Same.
1681 * tree-object-size.h (compute_builtin_object): Same.
1682
1683 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1684
1685 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1686
1687 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1688
1689 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1690
1691 2019-10-04 Martin Jambor <mjambor@suse.cz>
1692
1693 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1694 fntype when switching to calling memcpy instead of memset.
1695
1696 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1697
1698 * hash-table.h (hash_table::empty_slow): Don't assign
1699 size_t values to int variables.
1700
1701 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1702
1703 * expr.c (convert_mode_scalar): Remove shadowing local var.
1704 (emit_block_move): Rename local vars.
1705 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1706 (emit_push_insn): Rename local vars.
1707 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1708 shadowing local vars.
1709 (store_constructor): Remove shadowing local vars. Rename local var.
1710 (store_field, expand_cond_expr_using_cmove,
1711 expand_expr_real_2): Remove shadowing local vars.
1712 (expand_expr_real_1,
1713 do_store_flag): Remove shadowing local vars. Rename local vars.
1714
1715 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1716
1717 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1718
1719 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1720
1721 * genmatch.c (commutate): Rename local var.
1722 (lower_cond): Reuse local var.
1723 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1724 dt_operand::gen, dt_operand::gen_gimple_expr,
1725 dt_simplify::gen): Add a param. Rename generated vars.
1726 (decision_tree::insert_operand,
1727 (capture_info::walk_match, capture_info::walk_result,
1728 capture_info::walk_c_expr): Rename local vars.
1729 (expr::gen_transform): Rename generated vars.
1730 Use snprintf. Rename local vars.
1731 (capture::gen_transform, dt_operand::get_name,
1732 dt_operand::gen_opname): Rename generated vars.
1733 (write_predicate): Adjust call to gen_kids.
1734 (parser::get_internal_capture_id): Rename generated vars.
1735 (parser::parse_expr): Rename local vars.
1736 (parser::parse_if): Remove local var.
1737 (parser::parse_pattern, add_operator): Rename local vars.
1738
1739 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1740
1741 * builtins.def (DEF_C2X_BUILTIN): New macro.
1742 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1743 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1744 (strndup): Use DEF_C2X_BUILTIN.
1745 * coretypes.h (enum function_class): Add function_c2x_misc.
1746
1747 2019-10-04 Maya Rashish <coypu@sdf.org>
1748
1749 * ira-color.c (update_costs_from_allocno): Call
1750 ira_init_register_move_cost_if_necessary.
1751
1752 2019-10-04 Jeff Law <law@redhat.com>
1753
1754 * config/h8300/h8300.md (cpymemsi): Disable.
1755 (movmd, movmd_internal_<mode>, movstr, movsd):
1756 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1757 (movmd splitter, movsd splitter): Likewise.
1758
1759 * range-op.cc (range_tests): Avoid two tests when ints and
1760 shorts are the same size.
1761
1762 2019-10-04 Richard Biener <rguenther@suse.de>
1763
1764 PR lto/91968
1765 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1766 BLOCK_VARS.
1767
1768 2019-10-04 Richard Biener <rguenther@suse.de>
1769
1770 PR tree-optimization/91982
1771 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1772 against EXTRACT_LAST_REDUCTION.
1773 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1774
1775 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1776
1777 * range-op.o (value_range_from_overflowed_bounds): Rename from
1778 adjust_overflow_bound.
1779 (value_range_with_overflow): Rename from
1780 create_range_with_overflow.
1781 (create_possibly_reversed_range): Adjusted for above renames.
1782 (operator_*::wi_fold): Same.
1783 (cross_product_operator::wi_cross_productor): Same.
1784
1785 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1786
1787 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1788 -Wshadow=compatible-local): Fix description.
1789 Add an example where -Wshadow=compatible-local does not
1790 warn.
1791
1792 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1793
1794 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1795
1796 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1797 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1798
1799 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1800
1801 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1802 can_move_by_pieces issue.
1803
1804 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1805
1806 PR target/87243
1807 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1808 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1809 is available and the user has not set one on the command line.
1810
1811 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1812
1813 PR target/91769
1814 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1815 instead of REGNO equality check on addr.reg.
1816
1817 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1818
1819 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1820 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1821 * doc/invoke.texi (inline-heuristics-hint-percent,
1822 inline-heuristics-hint-percent-O2): Document.
1823 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1824 hint attribute.
1825 (can_inline_edge_by_limits_p): Use it.
1826
1827 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1828
1829 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1830 to print CONST_DOUBLEs.
1831
1832 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1833
1834 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1835 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1836 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1837
1838 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1839
1840 * Makefile.in (OBJS): Add range.o and range-op.o.
1841 Remove wide-int-range.o.
1842 * function-tests.c (test_ranges): New.
1843 (function_tests_c_tests): Call test_ranges.
1844 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1845 range_fold_unary_expr instead of extract_range_from_unary_expr.
1846 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1847 * range-op.cc: New file.
1848 * range-op.h: New file.
1849 * range.cc: New file.
1850 * range.h: New file.
1851 * selftest.h (range_tests): New prototype.
1852 * ssa.h: Include range.h.
1853 * tree-vrp.c (value_range_base::value_range_base): New
1854 constructors.
1855 (value_range_base::singleton_p): Do not call
1856 ranges_from_anti_range until sure we will need to.
1857 (value_range_base::type): Rename gcc_assert to
1858 gcc_checking_assert.
1859 (vrp_val_is_max): New argument.
1860 (vrp_val_is_min): Same.
1861 (wide_int_range_set_zero_nonzero_bits): Move from
1862 wide-int-range.cc.
1863 (extract_range_into_wide_ints): Remove.
1864 (extract_range_from_multiplicative_op): Remove.
1865 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1866 from extract_range_from_binary_expr.
1867 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1868 from extract_range_from_binary_expr.
1869 (extract_range_from_binary_expr): Remove.
1870 (normalize_for_range_ops): New.
1871 (range_fold_binary_expr): New.
1872 (range_fold_unary_expr): New.
1873 (value_range_base::num_pairs): New.
1874 (value_range_base::lower_bound): New.
1875 (value_range_base::upper_bound): New.
1876 (value_range_base::upper_bound): New.
1877 (value_range_base::contains_p): New.
1878 (value_range_base::invert): New.
1879 (value_range_base::union_): New.
1880 (value_range_base::intersect): New.
1881 (range_compatible_p): New.
1882 (value_range_base::operator==): New.
1883 (determine_value_range_1): Call range_fold_*expr instead of
1884 extract_range_from_*expr.
1885 * tree-vrp.h (class value_range_base): Add new constructors.
1886 Add methods for union_, intersect, operator==, contains_p,
1887 num_pairs, lower_bound, upper_bound, invert.
1888 (vrp_val_is_min): Add handle_pointers argument.
1889 (vrp_val_is_max): Same.
1890 (extract_range_from_unary_expr): Remove.
1891 (extract_range_from_binary_expr): Remove.
1892 (range_fold_unary_expr): New.
1893 (range_fold_binary_expr): New.
1894 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1895 range_fold_binary_expr instead of extract_range_from_binary_expr.
1896 (vr_values::extract_range_basic): Same.
1897 (vr_values::extract_range_from_unary_expr): Call
1898 range_fold_unary_expr instead of extract_range_from_unary_expr.
1899 * wide-int-range.cc: Remove.
1900 * wide-int-range.h: Remove.
1901
1902 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1903
1904 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1905 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1906 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1907 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1908 macro.
1909
1910 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1911
1912 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1913 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1914 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1915 * glimits.h: Likewise.
1916
1917 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1918
1919 PR rtl-optimization/91976
1920 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1921 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1922 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1923
1924 2019-10-02 Martin Sebor <msebor@redhat.com>
1925
1926 PR tree-optimization/80936
1927 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1928
1929 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1930
1931 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1932 instead of reg_class_contents[ALL_REGS].
1933
1934 2019-09-30 Jason Merrill <jason@redhat.com>
1935
1936 Add some hash_map_safe_* functions like vec_safe_*.
1937 * hash-map.h (default_hash_map_size): New variable.
1938 (create_ggc): Use it as default argument.
1939 (hash_map_maybe_create, hash_map_safe_get)
1940 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1941
1942 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1943
1944 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1945 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1946 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1947 (can_inline_edge_by_limits_p): Use it.
1948 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1949 (want_inline_small_function_p): Use O2 bounds.
1950 (edge_badness): LIkewise.
1951 * opts.c (default_options): Add OPT_finline_functions.
1952 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1953 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1954 New parameters.
1955 * doc/invoke.texi (-finline-functions): Update documentation.
1956 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1957 inline-min-speedup-O2): Document.
1958 (early-inlining-insns-O2): Simplify docs.
1959
1960 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1961
1962 PR rtl-optimization/87047
1963 * ifcvt.c (average_cost): New static function. Use it...
1964 (noce_process_if_block): ... here.
1965
1966 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1967
1968 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1969 * config/rs6000/rs6000-string.c (expand_block_move): Add
1970 might_overlap parm.
1971 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1972 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1973
1974 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1975
1976 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1977 (expand_builtin_memcpy): Use might_overlap parm.
1978 (expand_builtin_mempcpy_args): Use might_overlap parm.
1979 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1980 (expand_builtin_memory_copy_args): Add might_overlap parm.
1981 * expr.c (emit_block_move_via_cpymem): Rename to
1982 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1983 or movmem optab as appropriate.
1984 (emit_block_move_hints): Add might_overlap parm, do the right
1985 thing for might_overlap==true.
1986 * expr.h (emit_block_move_hints): Update prototype.
1987
1988 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1989
1990 * tree-eh.h (unsplit_eh_edges): Declare.
1991 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1992 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1993 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1994 (struct store_immediate_info): Add lp_nr field.
1995 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1996 initialize lp_nr with it.
1997 (struct merged_store_group): Add lp_nr and only_constants fields.
1998 (merged_store_group::merged_store_group): Initialize them.
1999 (merged_store_group::can_be_merged_into): Deal with them.
2000 (pass_store_merging): Rename terminate_and_release_chain into
2001 terminate_and_process_chain.
2002 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
2003 renaming and remove useless assertions.
2004 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
2005 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
2006 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
2007 instead of always recomputing it and compare lp_nr.
2008 (imm_store_chain_info::output_merged_store): If the group is in an
2009 active EH region, register new stores if they can throw. Moreover,
2010 if the insertion has created new basic blocks, adjust the PHI nodes
2011 of the post landing pad.
2012 (imm_store_chain_info::output_merged_stores): If the original stores
2013 are in an active EH region, deregister them.
2014 (lhs_valid_for_store_merging_p): Prettify.
2015 (adjust_bit_pos): New function extracted from...
2016 (mem_valid_for_store_merging): ...here. Use it for the base address
2017 and also for the offset if it is the addition of a constant.
2018 (lp_nr_for_store): New function.
2019 (pass_store_merging::process_store): Change return type to bool.
2020 Call lp_nr_for_store to initialize the store info. Propagate the
2021 return status of various called functions to the return value.
2022 (store_valid_for_store_merging_p): New predicate.
2023 (enum basic_block_status): New enumeration.
2024 (get_status_for_store_merging): New function.
2025 (pass_store_merging::execute): If the function can throw and catch
2026 non-call exceptions, unsplit the EH edges on entry and clean up the
2027 CFG on exit if something changed. Call get_status_for_store_merging
2028 for every basic block and keep the chains open across basic blocks
2029 when possible. Terminate and process open chains at the end, if any.
2030
2031 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2032
2033 * reginfo.c (globalize_reg): Fix shadowed variable in
2034 function_abis walk.
2035
2036 2019-10-02 Martin Jambor <mjambor@suse.cz>
2037
2038 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
2039 do not compute some stuff when set.
2040 (cgraph_node::create_edge): Likewise.
2041 (cgraph_node::create_indirect_edge): Renamed last parameter to
2042 coning_p and flipped its meaning, don't even calculate
2043 inline_failed when set.
2044 * cgraph.h (cgraph_node::create_edge): Add new parameter.
2045 (symbol_table::::create_edge): Likewise.
2046 (cgraph_node::create_indirect_edge): Rename last parameter, flip
2047 the default value.
2048 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
2049 call graph edge creating functions.
2050
2051 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2052
2053 PR c++/91222
2054 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
2055 namespace types.
2056
2057 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
2058
2059 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
2060
2061 2019-10-02 Richard Biener <rguenther@suse.de>
2062
2063 * tree-vectorizer.h (vect_transform_reduction): Declare.
2064 * tree-vect-stmts.c (vect_transform_stmt): Use it.
2065 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
2066 stmt transform to ...
2067 (vect_transform_reduction): ... this.
2068
2069 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
2070
2071 * omp-low.c (lower_omp_target): Dereference optional argument
2072 to work with the right pointer.
2073
2074 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
2075
2076 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
2077 false.
2078 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
2079 * langhooks.h (omp_is_optional_argument): New hook.
2080 * omp-general.c (omp_is_optional_argument): New.
2081 * omp-general.h (omp_is_optional_argument): New declaration.
2082 * omp-low.c (lower_omp_target): Create temporary for received value
2083 and take the address for new_var if the original variable was a
2084 DECL_BY_REFERENCE. Use size of referenced object when a
2085 pass-by-reference optional argument used as argument to firstprivate.
2086
2087 2019-10-02 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR tree-optimization/91940
2090 * tree-vect-patterns.c: Include tree-vector-builder.h and
2091 vec-perm-indices.h.
2092 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
2093 unpromoting the argument back to uint16_t, or by converting into a
2094 rotate, or into shifts plus ior.
2095
2096 2019-10-02 Richard Biener <rguenther@suse.de>
2097
2098 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
2099 New.
2100 (vect_transform_cycle_phi): Declare.
2101 * tree-vect-stmts.c (vect_transform_stmt): Call
2102 vect_transform_cycle_phi.
2103 * tree-vect-loop.c (vectorizable_reduction): Split out
2104 PHI transformation stage to ...
2105 (vect_transform_cycle_phi): ... here.
2106
2107 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
2108
2109 PR middle-end/91957
2110 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
2111 eliminable registers.
2112 (make_hard_regno_live): Likewise, and don't make them live.
2113
2114 2019-10-01 David Malcolm <dmalcolm@redhat.com>
2115
2116 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
2117 Call pp_emit_prefix.
2118 (layout::print_source_line): Likewise.
2119 (layout::start_annotation_line): Likewise.
2120 (diagnostic_show_locus): Remove call to temporarily clear the
2121 prefix.
2122 (selftest::test_one_liner_fixit_remove): Add test coverage for the
2123 interaction of pp_set_prefix with rulers and fix-it hints.
2124 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
2125 prefix when calling diagnostic_show_locus, rather than destroying
2126 it afterwards.
2127 (print_parseable_fixits): Temporarily clear prefix.
2128 * pretty-print.c (pp_format): Save and restore line_length, rather
2129 than assuming it is zero.
2130 (pp_output_formatted_text): Remove assertion that line_length is
2131 zero.
2132
2133 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2134
2135 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2136 Rename to ...
2137 (nonoverlapping_refs_since_match_p): ... this; handle also
2138 ARRAY_REFs.
2139 (alias_stats): Update stats.
2140 (dump_alias_stats): Likewise.
2141 (cheap_array_ref_low_bound): New function.
2142 (aliasing_matching_component_refs_p): Add partial_overlap
2143 argument;
2144 pass it to nonoverlapping_refs_since_match_p.
2145 (aliasing_component_refs_walk): Update call of
2146 aliasing_matching_component_refs_p
2147 (nonoverlapping_array_refs_p): New function.
2148 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
2149 indirect_refs_may_alias_p): Update calls of
2150 nonoverlapping_refs_since_match_p.
2151
2152 2019-10-01 Maya Rashish <coypu@sdf.org>
2153
2154 PR target/85401
2155 * ira-color.c (allocno_copy_cost_saving): Call
2156 ira_init_register_move_cost_if_necessary.
2157
2158 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
2159
2160 * Makefile.in (gnat_install_lib): New variable.
2161 * configure.ac: Substitute it.
2162 * configure: Regenerate.
2163
2164 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2165
2166 PR lto/91222
2167 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
2168 is matched with non-C++ type
2169
2170 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2171
2172 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
2173 after local CSE.
2174
2175 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
2176
2177 * doc/invoke.texi (early-inlining-insns-O2): Document.
2178 (early-inlining-insns): Update.
2179 * params.def (early-inlining-insns-O2): New bound.
2180 (early-inlining-insns): Update docs.
2181 * ipa-inline.c (want_early_inline_function_p): Use new bound.
2182
2183 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
2184
2185 PR target/88562
2186 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
2187 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
2188 a memory access insn.
2189
2190 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
2191
2192 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
2193 vpmsumd.
2194
2195 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2196
2197 PR target/77918
2198 * config/s390/s390.c (s390_expand_vec_compare): Use
2199 gen_vec_cmpordered and gen_vec_cmpunordered.
2200 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
2201 vec_unordered): Delete.
2202 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
2203 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
2204 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
2205 (vec_cmp<code>): Generic dispatcher.
2206
2207 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
2208
2209 PR target/77918
2210 * config/s390/vector.md (V_HW): Add V1TI in order to make
2211 vcond$a$b generate vcondv1tiv1tf.
2212
2213 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2214
2215 PR rtl-optimization/91948
2216 * ira-build.c (ira_create_allocno): Initialize
2217 ALLOCNO_CROSSED_CALLS_ABIS.
2218 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
2219 than regno to ira_need_caller_save_p.
2220
2221 2019-10-01 Alexandre Oliva <oliva@adacore.com>
2222
2223 * config/i386/i386-options.c
2224 (ix86_recompute_optlev_based_flags): New, moved out of...
2225 (ix86_option_override_internal): ... this. Call it.
2226 (ix86_override_options_after_change): Call it here too.
2227
2228 PR debug/91507
2229 * dwarf2out.c (override_type_for_decl_p): New.
2230 (gen_variable_die): Use it.
2231
2232 2019-10-01 Richard Biener <rguenther@suse.de>
2233
2234 * tree-vect-loop.c (vectorizable_reduction): Move variables
2235 to where they are used.
2236
2237 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2238
2239 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
2240 (build_def_use): Use PC instead of CC0 in a comment.
2241
2242 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * rtl.def (CLOBBER_HIGH): Delete.
2245 * doc/rtl.texi (clobber_high): Remove documentation.
2246 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
2247 (reg_is_clobbered_by_clobber_high): Delete.
2248 (gen_hard_reg_clobber_high): Likewise.
2249 * alias.c (record_set): Remove CLOBBER_HIGH handling.
2250 * cfgexpand.c (expand_gimple_stmt): Likewise.
2251 * combine-stack-adj.c (single_set_for_csa): Likewise.
2252 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
2253 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
2254 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
2255 * cse.c (invalidate_reg): Remove clobber_high parameter.
2256 (invalidate): Update call accordingly.
2257 (canonicalize_insn): Remove CLOBBER_HIGH handling.
2258 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
2259 (count_reg_usage, insn_live_p): Likewise.
2260 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
2261 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
2262 (cselib_invalidate_rtx_note_stores): Update call accordingly.
2263 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
2264 (cselib_invalidate_regno, cselib_process_insn): Likewise.
2265 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
2266 (mark_nonreg_stores_2): Likewise.
2267 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
2268 (df_get_call_refs): Likewise.
2269 * dwarf2out.c (mem_loc_descriptor): Likewise.
2270 * emit-rtl.c (verify_rtx_sharing): Likewise.
2271 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
2272 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
2273 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
2274 * genemit.c (gen_exp, gen_insn): Likewise.
2275 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
2276 * haifa-sched.c (haifa_classify_rtx): Likewise.
2277 * ira-build.c (create_insn_allocnos): Likewise.
2278 * ira-costs.c (scan_one_insn): Likewise.
2279 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
2280 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
2281 * jump.c (mark_jump_label_1): Likewise.
2282 * lra-int.h (lra_insn_reg::clobber_high): Delete.
2283 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
2284 handling.
2285 (mark_not_eliminable): Likewise.
2286 * lra-lives.c (process_bb_lives): Likewise.
2287 * lra.c (new_insn_reg): Remove clobber_high parameter.
2288 (collect_non_operand_hard_regs): Likewise. Update call to new
2289 insn_reg. Remove CLOBBER_HIGH handling.
2290 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
2291 to collect_non_operand_hard_regs.
2292 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
2293 Update call to new_insn_reg.
2294 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
2295 * postreload.c (reload_cse_simplify, reload_combine_note_use)
2296 (move2add_note_store): Likewise.
2297 * print-rtl.c (print_pattern): Likewise.
2298 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
2299 (if_test_bypass_p): Likewise.
2300 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
2301 * reginfo.c (reg_scan_mark_refs): Likewise.
2302 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
2303 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
2304 (forget_old_reloads_1): Likewise.
2305 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
2306 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
2307 (dbr_schedule): Likewise.
2308 * resource.c (update_live_status, mark_referenced_resources)
2309 (mark_set_resources): Likewise.
2310 * rtl.c (copy_rtx): Likewise.
2311 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
2312 (note_pattern_stores): Likewise.
2313 (reg_is_clobbered_by_clobber_high): Delete.
2314 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
2315 CLOBBER_HIGH handling.
2316
2317 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2318
2319 PR target/91452
2320 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
2321 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
2322 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2323 Handle ARM_PCS_TLSDESC.
2324 (aarch64_tlsdesc_abi_id): New function.
2325 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
2326 rtx instead of a list of clobbers and clobber_highs.
2327 (tlsdesc_small_<mode>): Update accordingly.
2328
2329 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2330
2331 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
2332 extra callee_abi argument.
2333 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
2334 Insert a CALLEE_ABI unspec into the call pattern as the second
2335 element in the PARALLEL.
2336 (aarch64_simd_call_p): Delete.
2337 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
2338 the new CALLEE_ABI element of the PARALLEL.
2339 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
2340 from the function type, if given.
2341 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
2342 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
2343 when passed the function_arg_info end marker.
2344 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
2345 final argument of gen_sibcall.
2346 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
2347 (call): Make operand 2 a const_int_operand and pass it to expand_call.
2348 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
2349 pattern.
2350 (call_value): Likewise operand 3.
2351 (sibcall): Likewise operand 2. Place the unspec before rather than
2352 after the return.
2353 (sibcall_value): Likewise operand 3.
2354 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
2355 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
2356 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
2357 constraint strings.
2358 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
2359
2360 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2361
2362 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
2363 choose_hard_reg_mode.
2364 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2365
2366 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2367
2368 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
2369 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
2370 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
2371
2372 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2373
2374 * diagnostic-show-locus.c (line_label::line_label): Initialize
2375 m_has_vbar.
2376 (line_label::comparator): Reverse the sort order by m_state_idx,
2377 so that when the list is walked backwards the labels appear in
2378 order of insertion into the rich_location.
2379 (line_label::m_has_vbar): New field.
2380 (layout::print_any_labels): When dealing with multiple labels at
2381 the same line and column, only print vertical bars for the one
2382 with the highest label_line.
2383 (selftest::test_one_liner_labels): Update test for multiple labels
2384 to expect the labels to be in the order of insertion into the
2385 rich_location. Add a test for many such labels, where the column
2386 numbers are out-of-order relative to the insertion order.
2387
2388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2389
2390 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2391 (ix86_frame::expensive_count): Likewise.
2392 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2393 of use_fast_prologue_epilogue robust against incidental changes
2394 in function size.
2395
2396 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2397
2398 PR target/77918
2399 * config/s390/vector.md (vec_unordered<mode>): Call
2400 gen_vec_ordered<mode>.
2401
2402 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2403
2404 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2405 New pattern for ASRD.
2406 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2407 * internal-fn.def (IFN_DIV_POW2): New internal function.
2408 * optabs.def (sdiv_pow2_optab): New optab.
2409 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2410 Modify pattern to support new operation.
2411 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2412 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2413 Document new target selector.
2414
2415 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2416
2417 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2418 to test whether we're compiling a vector PCS function and to test
2419 whether the function needs to save a particular register.
2420 Remove the vector PCS handling of df_set_regs_ever_live.
2421 (aarch64_components_for_bb): Use crtl->abi to test whether
2422 the function needs to save a particular register.
2423 (aarch64_process_components): Use crtl->abi to test whether
2424 we're compiling a vector PCS function.
2425 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2426 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2427
2428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2429
2430 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2431 Delete.
2432 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2433 whether the block calls a function that clobbers more registers
2434 than the current function is allowed to.
2435 (aarch64_use_simple_return_insn_p): Delete.
2436 * config/aarch64/aarch64.md (simple_return): Remove condition.
2437
2438 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2439
2440 * function-abi.h (function_abi_aggregator): New class.
2441 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2442 function.
2443 * ira.c (update_equiv_regs_prescan): New function. Call
2444 set_paradoxical_subreg here rather than...
2445 (update_equiv_regs): ...here.
2446 (ira): Call update_equiv_regs_prescan.
2447
2448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2449
2450 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2451 IN_TARGET_CODE.
2452 (call_used_or_fixed_regs): Likewise.
2453 (call_used_or_fixed_reg_p): Likewise.
2454 * reginfo.c (regs_invalidated_by_call): New macro.
2455
2456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2457
2458 * shrink-wrap.c: Include function-abi.h.
2459 (requires_stack_frame_p): Use crtl->abi to test whether the
2460 current function can use a register without saving it first.
2461
2462 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2463
2464 * sel-sched-ir.h (_def::crosses_call): Replace with...
2465 (_def::crossed_call_abis): ..this new field.
2466 (def_list_add): Take a mask of ABIs instead of a crosses_call
2467 boolean.
2468 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2469 of _def accordingly.
2470 * sel-sched.c: Include function-abi.h.
2471 (hard_regs_data::regs_for_call_clobbered): Delete.
2472 (reg_rename::crosses_call): Replace with...
2473 (reg_rename::crossed_call_abis): ...this new field.
2474 (fur_static_params::crosses_call): Replace with...
2475 (fur_static_params::crossed_call_abis): ...this new field.
2476 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2477 (init_hard_regs_data): Use crtl->abi to test which registers the
2478 current function would need to save before it uses them.
2479 (mark_unavailable_hard_regs): Update handling of call-clobbered
2480 registers, using call_clobbers_in_region to find out which registers
2481 might be call-clobbered (but without taking -fipa-ra into account
2482 for now). Remove separate handling of partially call-clobbered
2483 registers.
2484 (verify_target_availability): Use crossed_call_abis instead of
2485 crosses_call.
2486 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2487 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2488
2489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2490
2491 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2492 function to test whether a register is fully or partly clobbered.
2493
2494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2495
2496 * rtlanal.c: Include function-abi.h.
2497 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2498 function and clobbers_reg_p to test whether the register
2499 is call-clobbered.
2500 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2501 to get the ABI of the called function and full_reg_clobbers to
2502 get the set of fully call-clobbered registers. Warn about the
2503 pitfalls of using this mode.
2504
2505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2506
2507 * reload.c: Include function-abi.h.
2508 (find_equiv_reg): Use clobbers_reg_p to test whether either
2509 of the equivalent registers is clobbered by a call.
2510 * reload1.c: Include function-abi.h.
2511 (reg_reloaded_call_part_clobbered): Delete.
2512 (reload): Use crtl->abi to test which registers would need
2513 saving in the prologue before use.
2514 (find_reg): Likewise.
2515 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2516 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2517 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2518
2519 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2520
2521 * regrename.h (du_head::call_clobber_mask): New field.
2522 (du_head::need_caller_save_reg): Replace with...
2523 (du_head::call_abis): ...this new field.
2524 * regrename.c: Include function-abi.h.
2525 (call_clobbered_in_chain_p): New function.
2526 (check_new_reg_p): Use crtl->abi when deciding whether a register
2527 is free for use after RA. Use call_clobbered_in_chain_p to test
2528 whether a candidate register would be clobbered by a call.
2529 (find_rename_reg): Don't add call-clobber conflicts here.
2530 (rename_chains): Check call_abis instead of need_caller_save_reg.
2531 (merge_chains): Update for changes to du_head.
2532 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2533 target. Record the ABI identifier in call_abis and the set of
2534 fully or partially clobbered registers in call_clobber_mask.
2535 Add fully-clobbered registers to hard_conflicts here rather
2536 than in find_rename_reg.
2537 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2538 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2539 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2540 function-abi.h.
2541 * config/c6x/c6x.c: Likewise.
2542
2543 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2544
2545 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2546 mode of the register when deciding whether it is no longer
2547 available after a call.
2548
2549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2550
2551 * recog.c: Include function-abi.h.
2552 (peep2_find_free_register): Use crtl->abi when deciding whether
2553 a register is free for use after RA.
2554
2555 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2556
2557 * postreload-gcse.c: Include regs.h and function-abi.h.
2558 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2559 call insn target. Conservatively assume that partially-clobbered
2560 registers are altered.
2561
2562 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2563
2564 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2565 when deciding whether a register is free for use after RA.
2566 (reload_combine): Remove unnecessary use of fixed_reg_set.
2567 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2568 call insn target. Use reg_mode when testing whether a register
2569 is no longer available.
2570
2571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2572
2573 * target.def (return_call_with_max_clobbers): Delete.
2574 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2575 * doc/tm.texi: Regenerate.
2576 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2577 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2578 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2579 (lra_reg::call_insn): Delete.
2580 * lra.c: Include function-abi.h.
2581 (initialize_lra_reg_info_element): Don't initialize the fields above.
2582 (lra): Use crtl->abi to test whether the current function needs to
2583 save a register in the prologue. Remove special pre-inheritance
2584 lra_create_live_ranges pass for flag_ipa_ra.
2585 * lra-assigns.c: Include function-abi.h
2586 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2587 function needs to save a register in the prologue.
2588 (lra_assign): Assert that registers aren't allocated to a
2589 conflicting register, rather than checking only for overlaps
2590 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2591 and for registers that are not live across a call.
2592 * lra-constraints.c (last_call_for_abi): New variable.
2593 (full_and_partial_call_clobbers): Likewise.
2594 (setup_next_usage_insn): Remove the register from
2595 full_and_partial_call_clobbers.
2596 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2597 whether the register needs a caller save.
2598 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2599 of call_used_or_fixed_regs.
2600 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2601 full_and_partial_call_clobbers.
2602 * lra-lives.c (check_pseudos_live_through_calls): Replace
2603 last_call_used_reg_set and call_insn arguments with an abi argument.
2604 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2605 as the set of conflicting registers.
2606 (calls_have_same_clobbers_p): Delete.
2607 (process_bb_lives): Track the ABI of the last call instead of an
2608 insn/HARD_REG_SET pair. Update calls to
2609 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2610 the set of registers that could be clobbered by an EH edge.
2611 Include partially-clobbered as well as fully-clobbered registers.
2612 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2613 * lra-remat.c: Include function-abi.h.
2614 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2615 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2616 registers and bitmap_view to combine them into dead_regs.
2617 (call_used_input_regno_present_p): Take a function_abi argument
2618 and use it to test whether a register is call-clobbered.
2619 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2620 call insn target. Update tje call to call_used_input_regno_present_p.
2621 (do_remat): Likewise.
2622 (lra_remat): Remove the initialization of call_used_regs_arr_len
2623 and call_used_regs_arr.
2624
2625 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2626
2627 * loop-iv.c: Include regs.h and function-abi.h.
2628 (simplify_using_initial_values): Use insn_callee_abi to get the
2629 ABI of the call insn target. Conservatively assume that
2630 partially-clobbered registers are altered.
2631
2632 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2633
2634 * function-abi.h (call_clobbers_in_region): Declare.
2635 (call_clobbered_in_region_p): New function.
2636 * function-abi.cc (call_clobbers_in_region): Likewise.
2637 * ira-int.h: Include function-abi.h.
2638 (ira_allocno::crossed_calls_abis): New field.
2639 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2640 (ira_need_caller_save_regs): New function.
2641 (ira_need_caller_save_p): Likewise.
2642 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2643 of call_used_or_fixed_regs.
2644 (do_reload): Use crtl->abi to test whether the current function
2645 needs to save a register in the prologue. Count registers that
2646 need to be saved rather than registers that don't.
2647 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2648 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2649 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2650 (propagate_some_info_from_allocno): Likewise.
2651 (copy_info_to_removed_store_destinations): Likewise.
2652 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2653 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2654 (ira_build): Use ira_need_caller_save_regs instead of
2655 call_used_or_fixed_regs.
2656 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2657 whether the current function would need to save a register
2658 before using it.
2659 (calculate_spill_cost): Likewise.
2660 (allocno_reload_assign): Use ira_need_caller_save_regs and
2661 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2662 * ira-conflicts.c (ira_build_conflicts): Use
2663 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2664 as the set of call-clobbered registers. Remove the
2665 call_used_or_fixed_regs mask from the calculation of
2666 temp_hard_reg_set and mask its use instead. Remove special
2667 handling of partially-clobbered registers.
2668 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2669 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2670 calculate the set of conflicting registers for calls that
2671 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2672 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2673 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2674 Use eh_edge_abi to calculate the set of registers that could
2675 be clobbered by an EH edge. Include partially-clobbered as
2676 well as fully-clobbered registers.
2677
2678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2679
2680 * haifa-sched.c: Include function-abi.h.
2681 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2682 the function would need to save a register before using it.
2683
2684 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2685
2686 * gcse.c: Include function-abi.h.
2687 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2688 the call insn target. Invalidate partially call-clobbered
2689 registers as well as fully call-clobbered ones.
2690
2691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2692
2693 * function.c (aggregate_value_p): Work out which ABI the
2694 function is using before testing which registers are at least
2695 partly preserved by a call.
2696
2697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2698
2699 * early-remat.c: Include regs.h and function-abi.h.
2700 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2701 registers here.
2702 (early_remat::restrict_remat_for_unavail_regs): New function.
2703 (early_remat::restrict_remat_for_call): Likewise.
2704 (early_remat::process_block): Before calling emit_remat_insns
2705 for a previous call in the block, invalidate any candidates
2706 that would clobber call-preserved registers.
2707 (early_remat::emit_remat_insns_for_block): Likewise for the
2708 final call in a block. Do the same thing for live-in registers
2709 when calling emit_remat_insns at the head of a block.
2710
2711 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2712
2713 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2714 whether the current function needs to save at least part of a
2715 register before using it.
2716 (df_get_exit_block_use_set): Likewise for epilogue restores.
2717
2718 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2719
2720 * df-problems.c: Include regs.h and function-abi.h.
2721 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2722 sparse_invalidated_by_eh and dense_invalidated_by_call to
2723 dense_invalidated_by_eh.
2724 (df_print_bb_index): Update accordingly.
2725 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2726 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2727 that are clobbered by an EH edge. Clobber partially-clobbered
2728 registers as well as fully-clobbered ones.
2729 (df_md_confluence_n): Likewise.
2730 (df_rd_local_compute): Likewise. Update for changes to
2731 df_rd_problem_data.
2732 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2733 of registers that are clobbered by an EH edge. Includde partially-
2734 clobbered registers as well as fully-clobbered ones.
2735
2736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2737
2738 * cselib.c (cselib_process_insn): If we know what mode a
2739 register was set in, check whether it is clobbered in that
2740 mode by a call. Only fall back to reg_raw_mode if that fails.
2741
2742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2743
2744 * cse.c: Include regs.h and function-abi.h.
2745 (invalidate_for_call): Take the call insn as an argument.
2746 Use insn_callee_abi to get the ABI of the call and invalidate
2747 partially clobbered registers as well as fully clobbered ones.
2748 (cse_insn): Update call accordingly.
2749
2750 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2751
2752 * combine.c: Include function-abi.h.
2753 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2754 of the target of call insns. Invalidate partially-clobbered
2755 registers as well as fully-clobbered ones.
2756
2757 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2758
2759 * cfgloopanal.c: Include regs.h and function-abi.h.
2760 (init_set_costs): Use default_function_abi to test whether
2761 a general register is call-clobbered.
2762
2763 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2764
2765 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2766 instead of the call-clobbered sets.
2767
2768 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2769
2770 * caller-save.c (setup_save_areas): Remove redundant |s of
2771 fixed_reg_set.
2772 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2773 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2774 value is useful.
2775
2776 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2777
2778 * rtl.h (predefined_function_abi): Declare.
2779 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2780 instead of a boolean call_save flag.
2781 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2782 accordingly.
2783 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2784 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2785 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2786 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2787 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2788 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2789 * reginfo.c (init_reg_modes_target): Likewise.
2790 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2791 instead of a boolean call_save flag.
2792 * targhooks.c: Include function-abi.h.
2793 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2794 using eh_edge_abi to choose the mode.
2795
2796 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2797
2798 * target.def (hard_regno_call_part_clobbered): Take an ABI
2799 identifier instead of an rtx_insn.
2800 * doc/tm.texi: Regenerate.
2801 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2802 (hook_bool_uint_uint_mode_false): New function.
2803 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2804 (hook_bool_uint_uint_mode_false): New function.
2805 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2806 Take an ABI identifier instead of an rtx_insn.
2807 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2808 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2809 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2810 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2811 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2812 Likewise.
2813 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2814 * cselib.c: Include function-abi.h.
2815 (cselib_process_insn): Update call to
2816 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2817 to get the appropriate ABI identifier.
2818 * function-abi.cc (predefined_function_abi::initialize): Update call
2819 to targetm.hard_regno_call_part_clobbered.
2820 * ira-conflicts.c (ira_build_conflicts): Likewise.
2821 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2822 * lra-constraints.c: Include function-abi.h.
2823 (need_for_call_save_p): Update call to
2824 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2825 to get the appropriate ABI identifier.
2826 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2827 * regcprop.c (copyprop_hardreg_forward_1): Update call
2828 to targetm.hard_regno_call_part_clobbered.
2829 * reginfo.c (choose_hard_reg_mode): Likewise.
2830 * regrename.c (check_new_reg_p): Likewise.
2831 * reload.c (find_equiv_reg): Likewise.
2832 * reload1.c (emit_reload_insns): Likewise.
2833 * sched-deps.c: Include function-abi.h.
2834 (deps_analyze_insn): Update call to
2835 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2836 to get the appropriate ABI identifier.
2837 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2838 call to targetm.hard_regno_call_part_clobbered.
2839 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2840
2841 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2842
2843 * config/i386/i386.c: Include function-abi.h.
2844 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2845 if they preserve some 256-bit or 512-bit SSE registers.
2846
2847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2848
2849 * target.def (insn_callee_abi): New hook.
2850 (remove_extra_call_preserved_regs): Delete.
2851 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2852 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2853 * doc/tm.texi: Regenerate.
2854 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2855 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2856 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2857 insn argument.
2858 (aarch64_remove_extra_call_preserved_regs): Delete.
2859 (aarch64_insn_callee_abi): New function.
2860 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2861 (TARGET_INSN_CALLEE_ABI): New macro.
2862 * rtl.h (get_call_fndecl): Declare.
2863 (cgraph_rtl_info): Fix formatting. Tweak comment for
2864 function_used_regs. Remove function_used_regs_valid.
2865 * rtlanal.c (get_call_fndecl): Moved from final.c
2866 * function-abi.h (insn_callee_abi): Declare.
2867 (target_function_abi_info): Mention insn_callee_abi.
2868 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2869 way to get_call_reg_set_usage did.
2870 (insn_callee_abi): New function.
2871 * regs.h (get_call_reg_set_usage): Delete.
2872 * final.c: Include function-abi.h.
2873 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2874 function_used_regs before the main loop rather than afterwards.
2875 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2876 if function_used_regs ends up not being useful.
2877 (get_call_fndecl): Move to rtlanal.c
2878 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2879 * caller-save.c: Include function-abi.h.
2880 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2881 instead of get_call_reg_set_usage.
2882 * cfgcleanup.c: Include function-abi.h.
2883 (old_insns_match_p): Use insn_callee_abi instead of
2884 get_call_reg_set_usage.
2885 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2886 a tree.
2887 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2888 function_used_regs.
2889 * df-scan.c: Include function-abi.h.
2890 (df_get_call_refs): Use insn_callee_abi instead of
2891 get_call_reg_set_usage.
2892 * ira-lives.c: Include function-abi.h.
2893 (process_bb_node_lives): Use insn_callee_abi instead of
2894 get_call_reg_set_usage.
2895 * lra-lives.c: Include function-abi.h.
2896 (process_bb_lives): Use insn_callee_abi instead of
2897 get_call_reg_set_usage.
2898 * postreload.c: Include function-abi.h.
2899 (reload_combine): Use insn_callee_abi instead of
2900 get_call_reg_set_usage.
2901 * regcprop.c: Include function-abi.h.
2902 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2903 get_call_reg_set_usage.
2904 * resource.c: Include function-abi.h.
2905 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2906 instead of get_call_reg_set_usage.
2907 * var-tracking.c: Include function-abi.h.
2908 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2909 get_call_reg_set_usage.
2910
2911 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2912
2913 * target.def (fntype_abi): New target hook.
2914 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2915 * doc/tm.texi: Regenerate.
2916 * target.h (predefined_function_abi): Declare.
2917 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2918 if defined.
2919 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2920 * config/aarch64/aarch64.c: Include function-abi.h.
2921 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2922 (TARGET_FNTYPE_ABI): Define.
2923
2924 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2925
2926 * Makefile.in (OBJS): Add function-abi.o.
2927 (GTFILES): Add function-abi.h.
2928 * function-abi.cc: New file.
2929 * function-abi.h: Likewise.
2930 * emit-rtl.h (rtl_data::abi): New field.
2931 * function.c: Include function-abi.h.
2932 (prepare_function_start): Initialize crtl->abi.
2933 * read-rtl-function.c: Include regs.h and function-abi.h.
2934 (read_rtl_function_body): Initialize crtl->abi.
2935 (read_rtl_function_body_from_file_range): Likewise.
2936 * reginfo.c: Include function-abi.h.
2937 (init_reg_sets_1): Initialize default_function_abi.
2938 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2939 when making a register global.
2940 * target-globals.h (this_target_function_abi_info): Declare.
2941 (target_globals::function_abi_info): New field.
2942 (restore_target_globals): Copy it.
2943 * target-globals.c: Include function-abi.h.
2944 (default_target_globals): Initialize the function_abi_info field.
2945 (target_globals): Allocate it.
2946 (save_target_globals): Free it.
2947
2948 2019-09-30 Nick Clifton <nickc@redhat.com>
2949
2950 PR target/85978
2951 * config/frv/frv.c (frv_register_move_cost): Add break statements
2952 to avoid falling through to the wrong cases. Tidy code.
2953
2954 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2955
2956 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2957 For multi-registers modes, test how big each register part is.
2958
2959 2019-09-30 Nick Clifton <nickc@redhat.com>
2960
2961 PR target/59205
2962 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2963 (TARGET_ASM_SELECT_SECTION): Remove definition.
2964 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2965
2966 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2967
2968 * emit-rtl.c (init_raw_REG): New function.
2969 (gen_raw_REG): Use init_raw_REG.
2970 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2971 macros.
2972 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2973 * rtl.h (rtx_init): New function.
2974 (rtx_alloca): New function.
2975 (init_raw_REG): New function.
2976 (alloca_raw_REG): New macro.
2977
2978 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2979
2980 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2981 (pcrel_local_address): Replace pcrel_address predicate, use the
2982 new function address_to_insn_form.
2983 (pcrel_external_address): Replace with new implementation using
2984 address_to_insn_form..
2985 (prefixed_mem_operand): Delete predicate which is now unused.
2986 (pcrel_external_mem_operand): Delete predicate which is now
2987 unused.
2988 * config/rs6000/rs6000-protos.h (enum insn_form): New
2989 enumeration.
2990 (enum non_prefixed_form): New enumeration.
2991 (address_to_insn_form): New declaration.
2992 (prefixed_load_p): New declaration.
2993 (prefixed_store_p): New declaration.
2994 (prefixed_paddi_p): New declaration.
2995 (rs6000_asm_output_opcode): New declaration.
2996 (rs6000_final_prescan_insn): Move declaration and update calling
2997 signature.
2998 (address_is_prefixed): New helper inline function.
2999 * config/rs6000/rs6000.c(print_operand_address): Check for either
3000 PC-relative local symbols or PC-relative external symbols.
3001 (rs6000_emit_move): Support loading PC-relative addresses.
3002 (mode_supports_prefixed_address_p): Delete, no longer used.
3003 (rs6000_prefixed_address_mode_p): Delete, no longer used.
3004 (address_to_insn_form): New function to decode an address format.
3005 (reg_to_non_prefixed): New function to identify what the
3006 non-prefixed memory instruction format is for a register.
3007 (prefixed_load_p): New function to identify prefixed loads.
3008 (prefixed_store_p): New function to identify prefixed stores.
3009 (prefixed_paddi_p): New function to identify prefixed load
3010 immediates.
3011 (next_insn_prefixed_p): New static state variable.
3012 (rs6000_final_prescan_insn): New function to determine if an insn
3013 uses a prefixed instruction.
3014 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
3015 prefixed instruction.
3016 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
3017 (ASM_OUTPUT_OPCODE): New target hook.
3018 * config/rs6000/rs6000.md (prefixed): New insn attribute for
3019 prefixed instructions.
3020 (prefixed_length): New insn attribute for the size of prefixed
3021 instructions.
3022 (non_prefixed_length): New insn attribute for the size of
3023 non-prefixed instructions.
3024 (pcrel_local_addr): New insn to load up a local PC-relative
3025 address.
3026 (pcrel_extern_addr): New insn to load up an external PC-relative
3027 address.
3028 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
3029 GPR and loading a 128-bit floating point type to a GPR.
3030
3031 2019-09-30 Richard Biener <rguenther@suse.de>
3032
3033 * gimple.c (gimple_get_lhs): For PHIs return the result.
3034 * tree-vectorizer.h (vectorizable_live_operation): Also get the
3035 SLP instance as argument.
3036 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
3037 double-reduction PHIs with vectorizable_lc_phi.
3038 (vect_analyze_loop_operations): Adjust.
3039 (vect_create_epilog_for_reduction): Remove all code not dealing
3040 with reduction LC PHI or epilogue generation.
3041 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
3042 for live stmts of reductions.
3043 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
3044 do not handle defs that are not vect_internal_def.
3045 (can_vectorize_live_stmts): Adjust.
3046 (vect_analyze_stmt): When the vectorized stmt defined a value
3047 used on backedges adjust the backedge uses of vectorized PHIs.
3048
3049 2019-09-30 Martin Jambor <mjambor@suse.cz>
3050
3051 PR ipa/91853
3052 * tree-inline.c (force_value_to_type): New function.
3053 (setup_one_parameter): Use force_value_to_type to convert type.
3054 * tree-inline.c (force_value_to_type): Declare.
3055 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
3056 with register type mismatches.
3057
3058 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
3059
3060 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
3061 32-bit PowerPC.
3062 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
3063 * config/rs6000/t-freebsd64: Make use of the above define and build
3064 the 32-bit libraries with secure-plt.
3065
3066 2019-09-30 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR target/91931
3069 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
3070 gen_int_mode instead of GEN_INT.
3071
3072 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
3073
3074 * config/darwin.c (gen_macho_low): Amend to include the mode
3075 argument.
3076 (machopic_indirect_data_reference): Amend gen_macho_low call
3077 to include mode argument
3078 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
3079 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
3080 the macho_high expander and two define_insn entries.
3081
3082 2019-09-29 Jakub Jelinek <jakub@redhat.com>
3083
3084 PR bootstrap/90543
3085 * optc-save-gen.awk: Fix up printing string option differences.
3086
3087 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3088
3089 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
3090 vec_perm cost to 1 for non-Power7 VSX architectures.
3091
3092 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
3093
3094 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
3095 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
3096 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
3097
3098 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
3099
3100 * config/darwin.c (gen_macho_high): Amend to include the mode
3101 argument.
3102 (machopic_indirect_data_reference): Amend gen_macho_high call
3103 to include mode argument.
3104 (machopic_legitimize_pic_address): Likewise.
3105 * config/rs6000/rs6000.c (rs6000_legitimize_address):
3106 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
3107 the macho_high expander and two define_insn entries.
3108
3109 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3110
3111 PR target/86805
3112 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3113
3114 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3115
3116 PR target/80672
3117 * config/sh/sh.c (parse_validate_atomic_model_option): Use
3118 std::string::compare instead of std::string::find.
3119
3120 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3121
3122 * configure: Regenerate.
3123
3124 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3125
3126 PR middle-end/91920
3127 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
3128 variables as shared.
3129
3130 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
3131
3132 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
3133 replaces the expander and two define_insn entries.
3134 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
3135 call.
3136 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
3137
3138 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3139
3140 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
3141 (fibonacci_heap::nodes): Likewise.
3142 (fibonacci_heap::min_key): Likewise.
3143 (fibonacci_heap::min): Likewise.
3144
3145 2019-09-27 David Malcolm <dmalcolm@redhat.com>
3146
3147 * cgraph.c (cgraph_node::get_fun): Make const.
3148 * cgraph.h (cgraph_node::get_fun): Likewise.
3149
3150 2019-09-27 Jakub Jelinek <jakub@redhat.com>
3151
3152 PR target/91919
3153 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
3154 of SImode MULT.
3155
3156 2019-09-27 Richard Biener <rguenther@suse.de>
3157
3158 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
3159 (STMT_VINFO_REDUC_FN): Likewise.
3160 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3161 STMT_VINFO_REDUC_FN.
3162 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
3163 for condition reductions.
3164 (vect_create_epilog_for_reduction): Compute all required state
3165 from the stmt to be vectorized.
3166 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
3167 invocation and remove then dead code. For single def-use chains
3168 record only a single vector stmt.
3169
3170 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3171
3172 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
3173 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
3174 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
3175 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
3176 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
3177 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
3178 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
3179 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
3180 (aarch64_general_builtin_rsqrt): Declare.
3181 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
3182 New function.
3183 (aarch64_mangle_builtin_type): Rename to...
3184 (aarch64_general_mangle_builtin_type): ...this.
3185 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
3186 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
3187 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
3188 aarch64_general_add_builtin instead of add_builtin_function.
3189 (aarch64_init_builtins): Rename to...
3190 (aarch64_general_init_builtins): ...this. Use
3191 aarch64_general_add_builtin instead of add_builtin_function.
3192 (aarch64_builtin_decl): Rename to...
3193 (aarch64_general_builtin_decl): ...this and remove the unused
3194 arguments.
3195 (aarch64_expand_builtin): Rename to...
3196 (aarch64_general_expand_builtin): ...this and remove the unused
3197 arguments.
3198 (aarch64_builtin_rsqrt): Rename to...
3199 (aarch64_general_builtin_rsqrt): ...this.
3200 (aarch64_fold_builtin): Rename to...
3201 (aarch64_general_fold_builtin): ...this. Take the function subcode
3202 and return type as arguments. Remove the "ignored" argument.
3203 (aarch64_gimple_fold_builtin): Rename to...
3204 (aarch64_general_gimple_fold_builtin): ...this. Take the function
3205 subcode and gcall as arguments, and return the new function call.
3206 * config/aarch64/aarch64.c (aarch64_init_builtins)
3207 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
3208 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
3209 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
3210 instead of aarch64_builtin_rsqrt.
3211 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
3212 instead of aarch64_mangle_builtin_type.
3213
3214 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3215
3216 * target.def (check_builtin_call): New target hook.
3217 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
3218 * doc/tm.texi: Regenerate.
3219
3220 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
3221
3222 PR tree-optimization/91909
3223 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
3224 reduc_index parameter. When handling COND_REDUCTION, make sure
3225 that the reduction phi operand is in the correct arm of the
3226 VEC_COND_EXPR.
3227 (vectorizable_reduction): Pass reduc_index to the above.
3228
3229 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
3230
3231 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
3232 New combine pattern.
3233
3234 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
3235
3236 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
3237 loop instruction into new basic block before the loop when basic
3238 block that precedes the loop is empty.
3239
3240 2019-09-26 Jakub Jelinek <jakub@redhat.com>
3241
3242 * function.c (gimplify_parameters): Use build_clobber function.
3243 * tree-ssa.c (execute_update_addresses_taken): Likewise.
3244 * tree-inline.c (expand_call_inline): Likewise.
3245 * tree-sra.c (clobber_subtree): Likewise.
3246 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
3247 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
3248 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
3249 lower_omp_target): Likewise.
3250 * omp-expand.c (expand_omp_for_generic): Likewise.
3251 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
3252
3253 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3254
3255 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
3256 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
3257 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
3258 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
3259 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
3260 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
3261 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
3262 LD_ELEMREV_V16QI): Use the PURE attribute.
3263
3264 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
3265
3266 * config/rs6000/darwin.md: Replace the expanders for
3267 load_macho_picbase and reload_macho_picbase with use of '@'
3268 and <mode> in their respective define_insns.
3269 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
3270 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
3271 Pmode to gen_load_macho_picbase.
3272 * config/rs6000/rs6000.md: Likewise.
3273
3274 2019-09-25 Richard Biener <rguenther@suse.de>
3275
3276 PR tree-optimization/91896
3277 * tree-vect-loop.c (vectorizable_reduction): The single
3278 def-use cycle optimization cannot apply when there's more
3279 than one pattern stmt involved.
3280
3281 2019-09-26 Richard Biener <rguenther@suse.de>
3282
3283 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
3284 loop-closed PHIs that are vect_internal_def.
3285 (vect_create_epilog_for_reduction): Exit early for nested cycles.
3286 Simplify.
3287 (vectorizable_lc_phi): New.
3288 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
3289 (vect_transform_stmt): Likewise.
3290 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
3291 (vectorizable_lc_phi): Declare.
3292
3293 2019-09-26 Richard Biener <rguenther@suse.de>
3294
3295 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
3296 vectorizable_reduction for vect_double_reduction_def.
3297 (vect_transform_loop): Likewise.
3298 (vect_create_epilog_for_reduction): Move double-reduction
3299 PHI creation and preheader argument setting of PHIs ...
3300 (vectorizable_reduction): ... here. Also process
3301 vect_double_reduction_def PHIs, creating the vectorized
3302 PHI nodes, remembering the scalar adjustment computed for
3303 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
3304 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
3305 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
3306 Initialize STMT_VINFO_REDUC_CODE.
3307 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
3308 (_stmt_vec_info::reduc_code): Likewise.
3309 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
3310 (STMT_VINFO_REDUC_CODE): Likewise.
3311
3312 2019-09-26 Matt Turner <mattst88@gmail.com>
3313
3314 PR driver/69471
3315 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
3316 (mtune=): Add Negative(mtune=).
3317 (mcpu=): Add Negative(mcpu=).
3318 * config/arm/arm.opt: Likewise.
3319
3320 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3321
3322 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3323 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
3324 Define.
3325 * config/arm/arm_acle.h: Define builtins for the above.
3326 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
3327 (simd32_op): Handle the above.
3328 * config/arm/unspecs.md: Define unspecs for the above.
3329
3330 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3331
3332 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
3333 (arm_<sup>xtb16): Likewise.
3334 (arm_usada8): Likewise.
3335 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
3336 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
3337 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
3338 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
3339 __sxtb16, __uxtab16, __uxtb16): Define.
3340 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3341 * config/arm/unspecs.md: Define unspecs for the above.
3342 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
3343 (USXTB16): Likewise.
3344 (simd32_op): New int_attribute.
3345 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
3346 * doc/sourcebuild.exp (arm_simd32_ok): Document.
3347
3348 2019-09-26 Martin Jambor <mjambor@suse.cz>
3349
3350 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
3351 internal_error.
3352
3353 2019-09-26 Martin Jambor <mjambor@suse.cz>
3354
3355 * ipa-sra.c (process_scan_results): Fix continue condition.
3356
3357 2019-09-26 Martin Liska <mliska@suse.cz>
3358
3359 PR tree-optimization/91885
3360 * tree-vectorizer.c (try_vectorize_loop_1): Add
3361 TODO_update_ssa_only_virtuals similarly to what slp pass does.
3362
3363 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
3364
3365 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3366 aarch64_plus_immediate rather than aarch64_uimm12_shift
3367 to test for valid PLUS immediates.
3368
3369 2019-09-25 Martin Jambor <mjambor@suse.cz>
3370
3371 * tree-sra.c (no_accesses_p): Remove.
3372 (no_accesses_representant): Likewise.
3373
3374 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3375
3376 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3377 consistenly.
3378 (vaba_s16): Likewise.
3379 (vaba_s32): Likewise.
3380 (vaba_u8): Likewise.
3381 (vaba_u16): Likewise.
3382 (vaba_u32): Likewise.
3383 (vabal_high_s8): Likewise.
3384 (vabal_high_s16): Likewise.
3385 (vabal_high_s32): Likewise.
3386 (vabal_high_u8): Likewise.
3387 (vabal_high_u16): Likewise.
3388 (vabal_high_u32): Likewise.
3389 (vabal_s8): Likewise.
3390 (vabal_s16): Likewise.
3391 (vabal_s32): Likewise.
3392 (vabal_u8): Likewise.
3393 (vabal_u16): Likewise.
3394 (vabal_u32): Likewise.
3395 (vabaq_s8): Likewise.
3396 (vabaq_s16): Likewise.
3397 (vabaq_s32): Likewise.
3398 (vabaq_u8): Likewise.
3399 (vabaq_u16): Likewise.
3400 (vabaq_u32): Likewise.
3401 (vabd_s8): Likewise.
3402 (vabd_s16): Likewise.
3403 (vabd_s32): Likewise.
3404 (vabd_u8): Likewise.
3405 (vabd_u16): Likewise.
3406 (vabd_u32): Likewise.
3407 (vabdl_high_s8): Likewise.
3408 (vabdl_high_s16): Likewise.
3409 (vabdl_high_s32): Likewise.
3410 (vabdl_high_u8): Likewise.
3411 (vabdl_high_u16): Likewise.
3412 (vabdl_high_u32): Likewise.
3413 (vabdl_s8): Likewise.
3414 (vabdl_s16): Likewise.
3415 (vabdl_s32): Likewise.
3416 (vabdl_u8): Likewise.
3417 (vabdl_u16): Likewise.
3418 (vabdl_u32): Likewise.
3419 (vabdq_s8): Likewise.
3420 (vabdq_s16): Likewise.
3421 (vabdq_s32): Likewise.
3422 (vabdq_u8): Likewise.
3423 (vabdq_u16): Likewise.
3424 (vabdq_u32): Likewise.
3425 (vaddlv_s8): Likewise.
3426 (vaddlv_s16): Likewise.
3427 (vaddlv_u8): Likewise.
3428 (vaddlv_u16): Likewise.
3429 (vaddlvq_s8): Likewise.
3430 (vaddlvq_s16): Likewise.
3431 (vaddlvq_s32): Likewise.
3432 (vaddlvq_u8): Likewise.
3433 (vaddlvq_u16): Likewise.
3434 (vaddlvq_u32): Likewise.
3435 (vcvtx_f32_f64): Likewise.
3436 (vcvtx_high_f32_f64): Likewise.
3437 (vcvtxd_f32_f64): Likewise.
3438 (vmla_n_f32): Likewise.
3439 (vmla_n_s16): Likewise.
3440 (vmla_n_s32): Likewise.
3441 (vmla_n_u16): Likewise.
3442 (vmla_n_u32): Likewise.
3443 (vmla_s8): Likewise.
3444 (vmla_s16): Likewise.
3445 (vmla_s32): Likewise.
3446 (vmla_u8): Likewise.
3447 (vmla_u16): Likewise.
3448 (vmla_u32): Likewise.
3449 (vmlal_high_n_s16): Likewise.
3450 (vmlal_high_n_s32): Likewise.
3451 (vmlal_high_n_u16): Likewise.
3452 (vmlal_high_n_u32): Likewise.
3453 (vmlal_high_s8): Likewise.
3454 (vmlal_high_s16): Likewise.
3455 (vmlal_high_s32): Likewise.
3456 (vmlal_high_u8): Likewise.
3457 (vmlal_high_u16): Likewise.
3458 (vmlal_high_u32): Likewise.
3459 (vmlal_n_s16): Likewise.
3460 (vmlal_n_s32): Likewise.
3461 (vmlal_n_u16): Likewise.
3462 (vmlal_n_u32): Likewise.
3463 (vmlal_s8): Likewise.
3464 (vmlal_s16): Likewise.
3465 (vmlal_s32): Likewise.
3466 (vmlal_u8): Likewise.
3467 (vmlal_u16): Likewise.
3468 (vmlal_u32): Likewise.
3469 (vmlaq_n_f32): Likewise.
3470 (vmlaq_n_s16): Likewise.
3471 (vmlaq_n_s32): Likewise.
3472 (vmlaq_n_u16): Likewise.
3473 (vmlaq_n_u32): Likewise.
3474 (vmlaq_s8): Likewise.
3475 (vmlaq_s16): Likewise.
3476 (vmlaq_s32): Likewise.
3477 (vmlaq_u8): Likewise.
3478 (vmlaq_u16): Likewise.
3479 (vmlaq_u32): Likewise.
3480 (vmls_n_f32): Likewise.
3481 (vmls_n_s16): Likewise.
3482 (vmls_n_s32): Likewise.
3483 (vmls_n_u16): Likewise.
3484 (vmls_n_u32): Likewise.
3485 (vmls_s8): Likewise.
3486 (vmls_s16): Likewise.
3487 (vmls_s32): Likewise.
3488 (vmls_u8): Likewise.
3489 (vmls_u16): Likewise.
3490 (vmls_u32): Likewise.
3491 (vmlsl_high_n_s16): Likewise.
3492 (vmlsl_high_n_s32): Likewise.
3493 (vmlsl_high_n_u16): Likewise.
3494 (vmlsl_high_n_u32): Likewise.
3495 (vmlsl_high_s8): Likewise.
3496 (vmlsl_high_s16): Likewise.
3497 (vmlsl_high_s32): Likewise.
3498 (vmlsl_high_u8): Likewise.
3499 (vmlsl_high_u16): Likewise.
3500 (vmlsl_high_u32): Likewise.
3501 (vmlsl_n_s16): Likewise.
3502 (vmlsl_n_s32): Likewise.
3503 (vmlsl_n_u16): Likewise.
3504 (vmlsl_n_u32): Likewise.
3505 (vmlsl_s8): Likewise.
3506 (vmlsl_s16): Likewise.
3507 (vmlsl_s32): Likewise.
3508 (vmlsl_u8): Likewise.
3509 (vmlsl_u16): Likewise.
3510 (vmlsl_u32): Likewise.
3511 (vmlsq_n_f32): Likewise.
3512 (vmlsq_n_s16): Likewise.
3513 (vmlsq_n_s32): Likewise.
3514 (vmlsq_n_u16): Likewise.
3515 (vmlsq_n_u32): Likewise.
3516 (vmlsq_s8): Likewise.
3517 (vmlsq_s16): Likewise.
3518 (vmlsq_s32): Likewise.
3519 (vmlsq_u8): Likewise.
3520 (vmlsq_u16): Likewise.
3521 (vmlsq_u32): Likewise.
3522 (vmovl_high_s8): Likewise.
3523 (vmovl_high_s16): Likewise.
3524 (vmovl_high_s32): Likewise.
3525 (vmovl_high_u8): Likewise.
3526 (vmovl_high_u16): Likewise.
3527 (vmovl_high_u32): Likewise.
3528 (vmovl_s8): Likewise.
3529 (vmovl_s16): Likewise.
3530 (vmovl_s32): Likewise.
3531 (vmovl_u8): Likewise.
3532 (vmovl_u16): Likewise.
3533 (vmovl_u32): Likewise.
3534 (vmovn_high_s16): Likewise.
3535 (vmovn_high_s32): Likewise.
3536 (vmovn_high_s64): Likewise.
3537 (vmovn_high_u16): Likewise.
3538 (vmovn_high_u32): Likewise.
3539 (vmovn_high_u64): Likewise.
3540 (vmovn_s16): Likewise.
3541 (vmovn_s32): Likewise.
3542 (vmovn_s64): Likewise.
3543 (vmovn_u16): Likewise.
3544 (vmovn_u32): Likewise.
3545 (vmovn_u64): Likewise.
3546 (vmull_high_n_s16): Likewise.
3547 (vmull_high_n_s32): Likewise.
3548 (vmull_high_n_u16): Likewise.
3549 (vmull_high_n_u32): Likewise.
3550 (vmull_high_p8): Likewise.
3551 (vmull_high_s8): Likewise.
3552 (vmull_high_s16): Likewise.
3553 (vmull_high_s32): Likewise.
3554 (vmull_high_u8): Likewise.
3555 (vmull_high_u16): Likewise.
3556 (vmull_high_u32): Likewise.
3557 (vmull_n_s16): Likewise.
3558 (vmull_n_s32): Likewise.
3559 (vmull_n_u16): Likewise.
3560 (vmull_n_u32): Likewise.
3561 (vmull_p8): Likewise.
3562 (vmull_s8): Likewise.
3563 (vmull_s16): Likewise.
3564 (vmull_s32): Likewise.
3565 (vmull_u8): Likewise.
3566 (vmull_u16): Likewise.
3567 (vmull_u32): Likewise.
3568 (vpadal_s8): Likewise.
3569 (vpadal_s16): Likewise.
3570 (vpadal_s32): Likewise.
3571 (vpadal_u8): Likewise.
3572 (vpadal_u16): Likewise.
3573 (vpadal_u32): Likewise.
3574 (vpadalq_s8): Likewise.
3575 (vpadalq_s16): Likewise.
3576 (vpadalq_s32): Likewise.
3577 (vpadalq_u8): Likewise.
3578 (vpadalq_u16): Likewise.
3579 (vpadalq_u32): Likewise.
3580 (vpaddl_s8): Likewise.
3581 (vpaddl_s16): Likewise.
3582 (vpaddl_s32): Likewise.
3583 (vpaddl_u8): Likewise.
3584 (vpaddl_u16): Likewise.
3585 (vpaddl_u32): Likewise.
3586 (vpaddlq_s8): Likewise.
3587 (vpaddlq_s16): Likewise.
3588 (vpaddlq_s32): Likewise.
3589 (vpaddlq_u8): Likewise.
3590 (vpaddlq_u16): Likewise.
3591 (vpaddlq_u32): Likewise.
3592 (vpaddq_s8): Likewise.
3593 (vpaddq_s16): Likewise.
3594 (vpaddq_s32): Likewise.
3595 (vpaddq_s64): Likewise.
3596 (vpaddq_u8): Likewise.
3597 (vpaddq_u16): Likewise.
3598 (vpaddq_u32): Likewise.
3599 (vpaddq_u64): Likewise.
3600 (vqdmulh_n_s16): Likewise.
3601 (vqdmulh_n_s32): Likewise.
3602 (vqdmulhq_n_s16): Likewise.
3603 (vqdmulhq_n_s32): Likewise.
3604 (vqmovn_high_s16): Likewise.
3605 (vqmovn_high_s32): Likewise.
3606 (vqmovn_high_s64): Likewise.
3607 (vqmovn_high_u16): Likewise.
3608 (vqmovn_high_u32): Likewise.
3609 (vqmovn_high_u64): Likewise.
3610 (vqmovun_high_s16): Likewise.
3611 (vqmovun_high_s32): Likewise.
3612 (vqmovun_high_s64): Likewise.
3613 (vqrdmulh_n_s16): Likewise.
3614 (vqrdmulh_n_s32): Likewise.
3615 (vqrdmulhq_n_s16): Likewise.
3616 (vqrdmulhq_n_s32): Likewise.
3617 (vrsqrte_u32): Likewise.
3618 (vrsqrteq_u32): Likewise.
3619 (vtst_p8): Likewise.
3620 (vtst_p16): Likewise.
3621 (vtst_p64): Likewise.
3622 (vtstq_p8): Likewise.
3623 (vtstq_p16): Likewise.
3624 (vtstq_p64): Likewise.
3625 (vaddlv_s32): Likewise.
3626 (vaddlv_u32): Likewise.
3627 (vqtbl1_p8): Likewise.
3628 (vqtbl1_s8): Likewise.
3629 (vqtbl1_u8): Likewise.
3630 (vqtbl1q_p8): Likewise.
3631 (vqtbl1q_s8): Likewise.
3632 (vqtbl1q_u8): Likewise.
3633 (vqtbx1_s8): Likewise.
3634 (vqtbx1_u8): Likewise.
3635 (vqtbx1_p8): Likewise.
3636 (vqtbx1q_s8): Likewise.
3637 (vqtbx1q_u8): Likewise.
3638 (vqtbx1q_p8): Likewise.
3639 (vtbl1_s8): Likewise.
3640 (vtbl1_u8): Likewise.
3641 (vtbl1_p8): Likewise.
3642 (vtbl2_s8): Likewise.
3643 (vtbl2_u8): Likewise.
3644 (vtbl2_p8): Likewise.
3645 (vtbl3_s8): Likewise.
3646 (vtbl3_u8): Likewise.
3647 (vtbl3_p8): Likewise.
3648 (vtbl4_s8): Likewise.
3649 (vtbl4_u8): Likewise.
3650 (vtbl4_p8): Likewise.
3651 (vtbx2_s8): Likewise.
3652 (vtbx2_u8): Likewise.
3653 (vtbx2_p8): Likewise.
3654 (vld1_f32): Likewise.
3655 (vld1_f64): Likewise.
3656 (vld1_p8): Likewise.
3657 (vld1_p16): Likewise.
3658 (vld1_p64): Likewise.
3659 (vld1_s8): Likewise.
3660 (vld1_s16): Likewise.
3661 (vld1_s32): Likewise.
3662 (vld1_s64): Likewise.
3663 (vld1_u8): Likewise.
3664 (vld1_u16): Likewise.
3665 (vld1_u32): Likewise.
3666 (vld1_u64): Likewise.
3667 (vld1q_f32): Likewise.
3668 (vld1q_f64): Likewise.
3669 (vld1q_p8): Likewise.
3670 (vld1q_p16): Likewise.
3671 (vld1q_p64): Likewise.
3672 (vld1q_s8): Likewise.
3673 (vld1q_s16): Likewise.
3674 (vld1q_s32): Likewise.
3675 (vld1q_s64): Likewise.
3676 (vld1q_u8): Likewise.
3677 (vld1q_u16): Likewise.
3678 (vld1q_u32): Likewise.
3679 (vld1q_u64): Likewise.
3680 (vpmax_s8): Likewise.
3681 (vpmax_s16): Likewise.
3682 (vpmax_s32): Likewise.
3683 (vpmax_u8): Likewise.
3684 (vpmax_u16): Likewise.
3685 (vpmax_u32): Likewise.
3686 (vpmaxq_s8): Likewise.
3687 (vpmaxq_s16): Likewise.
3688 (vpmaxq_s32): Likewise.
3689 (vpmaxq_u8): Likewise.
3690 (vpmaxq_u16): Likewise.
3691 (vpmaxq_u32): Likewise.
3692 (vpmax_f32): Likewise.
3693 (vpmaxq_f32): Likewise.
3694 (vpmaxq_f64): Likewise.
3695 (vpmaxqd_f64): Likewise.
3696 (vpmaxs_f32): Likewise.
3697 (vpmaxnm_f32): Likewise.
3698 (vpmaxnmq_f32): Likewise.
3699 (vpmaxnmq_f64): Likewise.
3700 (vpmaxnmqd_f64): Likewise.
3701 (vpmaxnms_f32): Likewise.
3702 (vpmin_s8): Likewise.
3703 (vpmin_s16): Likewise.
3704 (vpmin_s32): Likewise.
3705 (vpmin_u8): Likewise.
3706 (vpmin_u16): Likewise.
3707 (vpmin_u32): Likewise.
3708 (vpminq_s8): Likewise.
3709 (vpminq_s16): Likewise.
3710 (vpminq_s32): Likewise.
3711 (vpminq_u8): Likewise.
3712 (vpminq_u16): Likewise.
3713 (vpminq_u32): Likewise.
3714 (vpmin_f32): Likewise.
3715 (vpminq_f32): Likewise.
3716 (vpminq_f64): Likewise.
3717 (vpminqd_f64): Likewise.
3718 (vpmins_f32): Likewise.
3719 (vpminnm_f32): Likewise.
3720 (vpminnmq_f32): Likewise.
3721 (vpminnmq_f64): Likewise.
3722 (vpminnmqd_f64): Likewise.
3723 (vpminnms_f32): Likewise.
3724 (vmla_f32): Likewise.
3725 (vmlaq_f32): Likewise.
3726 (vmlaq_f64): Likewise.
3727 (vmls_f32): Likewise.
3728 (vmlsq_f32): Likewise.
3729 (vmlsq_f64): Likewise.
3730 (vqtbl2_s8): Likewise.
3731 (vqtbl2_u8): Likewise.
3732 (vqtbl2_p8): Likewise.
3733 (vqtbl2q_s8): Likewise.
3734 (vqtbl2q_u8): Likewise.
3735 (vqtbl2q_p8): Likewise.
3736 (vqtbl3_s8): Likewise.
3737 (vqtbl3_u8): Likewise.
3738 (vqtbl3_p8): Likewise.
3739 (vqtbl3q_s8): Likewise.
3740 (vqtbl3q_u8): Likewise.
3741 (vqtbl3q_p8): Likewise.
3742 (vqtbl4_s8): Likewise.
3743 (vqtbl4_u8): Likewise.
3744 (vqtbl4_p8): Likewise.
3745 (vqtbl4q_s8): Likewise.
3746 (vqtbl4q_u8): Likewise.
3747 (vqtbl4q_p8): Likewise.
3748 (vqtbx2_s8): Likewise.
3749 (vqtbx2_u8): Likewise.
3750 (vqtbx2_p8): Likewise.
3751 (vqtbx2q_s8): Likewise.
3752 (vqtbx2q_u8): Likewise.
3753 (vqtbx2q_p8): Likewise.
3754 (vqtbx3_s8): Likewise.
3755 (vqtbx3_u8): Likewise.
3756 (vqtbx3_p8): Likewise.
3757 (vqtbx3q_s8): Likewise.
3758 (vqtbx3q_u8): Likewise.
3759 (vqtbx3q_p8): Likewise.
3760 (vqtbx4_s8): Likewise.
3761 (vqtbx4_u8): Likewise.
3762 (vqtbx4_p8): Likewise.
3763 (vqtbx4q_s8): Likewise.
3764 (vqtbx4q_u8): Likewise.
3765 (vqtbx4q_p8): Likewise.
3766 (vrev16_p8): Likewise.
3767 (vrev16_s8): Likewise.
3768 (vrev16_u8): Likewise.
3769 (vrev16q_p8): Likewise.
3770 (vrev16q_s8): Likewise.
3771 (vrev16q_u8): Likewise.
3772 (vrev32_p8): Likewise.
3773 (vrev32_p16): Likewise.
3774 (vrev32_s8): Likewise.
3775 (vrev32_s16): Likewise.
3776 (vrev32_u8): Likewise.
3777 (vrev32_u16): Likewise.
3778 (vrev32q_p8): Likewise.
3779 (vrev32q_p16): Likewise.
3780 (vrev32q_s8): Likewise.
3781 (vrev32q_s16): Likewise.
3782 (vrev32q_u8): Likewise.
3783 (vrev32q_u16): Likewise.
3784 (vrev64_f32): Likewise.
3785 (vrev64_p8): Likewise.
3786 (vrev64_p16): Likewise.
3787 (vrev64_s8): Likewise.
3788 (vrev64_s16): Likewise.
3789 (vrev64_s32): Likewise.
3790 (vrev64_u8): Likewise.
3791 (vrev64_u16): Likewise.
3792 (vrev64_u32): Likewise.
3793 (vrev64q_f32): Likewise.
3794 (vrev64q_p8): Likewise.
3795 (vrev64q_p16): Likewise.
3796 (vrev64q_s8): Likewise.
3797 (vrev64q_s16): Likewise.
3798 (vrev64q_s32): Likewise.
3799 (vrev64q_u8): Likewise.
3800 (vrev64q_u16): Likewise.
3801 (vrev64q_u32): Likewise.
3802 (vsha1cq_u32): Likewise.
3803 (vsha1mq_u32): Likewise.
3804 (vsha1pq_u32): Likewise.
3805 (vsha1h_u32): Likewise.
3806 (vsha1su0q_u32): Likewise.
3807 (vsha1su1q_u32): Likewise.
3808 (vsha256hq_u32): Likewise.
3809 (vsha256h2q_u32): Likewise.
3810 (vsha256su0q_u32): Likewise.
3811 (vsha256su1q_u32): Likewise.
3812 (vmull_p64): Likewise.
3813 (vmull_high_p64): Likewise.
3814 (vsqrt_f32): Likewise.
3815 (vsqrtq_f32): Likewise.
3816 (vsqrt_f64): Likewise.
3817 (vsqrtq_f64): Likewise.
3818 (vst1_f32): Likewise.
3819 (vst1_f64): Likewise.
3820 (vst1_p8): Likewise.
3821 (vst1_p16): Likewise.
3822 (vst1_p64): Likewise.
3823 (vst1_s8): Likewise.
3824 (vst1_s16): Likewise.
3825 (vst1_s32): Likewise.
3826 (vst1_s64): Likewise.
3827 (vst1_u8): Likewise.
3828 (vst1_u16): Likewise.
3829 (vst1_u32): Likewise.
3830 (vst1_u64): Likewise.
3831 (vst1q_f32): Likewise.
3832 (vst1q_f64): Likewise.
3833 (vst1q_p8): Likewise.
3834 (vst1q_p16): Likewise.
3835 (vst1q_p64): Likewise.
3836 (vst1q_s8): Likewise.
3837 (vst1q_s16): Likewise.
3838 (vst1q_s32): Likewise.
3839 (vst1q_s64): Likewise.
3840 (vst1q_u8): Likewise.
3841 (vst1q_u16): Likewise.
3842 (vst1q_u32): Likewise.
3843 (vst1q_u64): Likewise.
3844 (vst1_s64_x2): Likewise.
3845 (vst1_u64_x2): Likewise.
3846 (vst1_f64_x2): Likewise.
3847 (vst1_s8_x2): Likewise.
3848 (vst1_p8_x2): Likewise.
3849 (vst1_s16_x2): Likewise.
3850 (vst1_p16_x2): Likewise.
3851 (vst1_s32_x2): Likewise.
3852 (vst1_u8_x2): Likewise.
3853 (vst1_u16_x2): Likewise.
3854 (vst1_u32_x2): Likewise.
3855 (vst1_f16_x2): Likewise.
3856 (vst1_f32_x2): Likewise.
3857 (vst1_p64_x2): Likewise.
3858 (vst1q_s8_x2): Likewise.
3859 (vst1q_p8_x2): Likewise.
3860 (vst1q_s16_x2): Likewise.
3861 (vst1q_p16_x2): Likewise.
3862 (vst1q_s32_x2): Likewise.
3863 (vst1q_s64_x2): Likewise.
3864 (vst1q_u8_x2): Likewise.
3865 (vst1q_u16_x2): Likewise.
3866 (vst1q_u32_x2): Likewise.
3867 (vst1q_u64_x2): Likewise.
3868 (vst1q_f16_x2): Likewise.
3869 (vst1q_f32_x2): Likewise.
3870 (vst1q_f64_x2): Likewise.
3871 (vst1q_p64_x2): Likewise.
3872 (vst1_s64_x3): Likewise.
3873 (vst1_u64_x3): Likewise.
3874 (vst1_f64_x3): Likewise.
3875 (vst1_s8_x3): Likewise.
3876 (vst1_p8_x3): Likewise.
3877 (vst1_s16_x3): Likewise.
3878 (vst1_p16_x3): Likewise.
3879 (vst1_s32_x3): Likewise.
3880 (vst1_u8_x3): Likewise.
3881 (vst1_u16_x3): Likewise.
3882 (vst1_u32_x3): Likewise.
3883 (vst1_f16_x3): Likewise.
3884 (vst1_f32_x3): Likewise.
3885 (vst1_p64_x3): Likewise.
3886 (vst1q_s8_x3): Likewise.
3887 (vst1q_p8_x3): Likewise.
3888 (vst1q_s16_x3): Likewise.
3889 (vst1q_p16_x3): Likewise.
3890 (vst1q_s32_x3): Likewise.
3891 (vst1q_s64_x3): Likewise.
3892 (vst1q_u8_x3): Likewise.
3893 (vst1q_u16_x3): Likewise.
3894 (vst1q_u32_x3): Likewise.
3895 (vst1q_u64_x3): Likewise.
3896 (vst1q_f16_x3): Likewise.
3897 (vst1q_f32_x3): Likewise.
3898 (vst1q_f64_x3): Likewise.
3899 (vst1q_p64_x3): Likewise.
3900 (vst2_s64): Likewise.
3901 (vst2_u64): Likewise.
3902 (vst2_f64): Likewise.
3903 (vst2_s8): Likewise.
3904 (vst2_p8): Likewise.
3905 (vst2_s16): Likewise.
3906 (vst2_p16): Likewise.
3907 (vst2_s32): Likewise.
3908 (vst2_u8): Likewise.
3909 (vst2_u16): Likewise.
3910 (vst2_u32): Likewise.
3911 (vst2_f16): Likewise.
3912 (vst2_f32): Likewise.
3913 (vst2_p64): Likewise.
3914 (vst2q_s8): Likewise.
3915 (vst2q_p8): Likewise.
3916 (vst2q_s16): Likewise.
3917 (vst2q_p16): Likewise.
3918 (vst2q_s32): Likewise.
3919 (vst2q_s64): Likewise.
3920 (vst2q_u8): Likewise.
3921 (vst2q_u16): Likewise.
3922 (vst2q_u32): Likewise.
3923 (vst2q_u64): Likewise.
3924 (vst2q_f16): Likewise.
3925 (vst2q_f32): Likewise.
3926 (vst2q_f64): Likewise.
3927 (vst2q_p64): Likewise.
3928 (vst3_s64): Likewise.
3929 (vst3_u64): Likewise.
3930 (vst3_f64): Likewise.
3931 (vst3_s8): Likewise.
3932 (vst3_p8): Likewise.
3933 (vst3_s16): Likewise.
3934 (vst3_p16): Likewise.
3935 (vst3_s32): Likewise.
3936 (vst3_u8): Likewise.
3937 (vst3_u16): Likewise.
3938 (vst3_u32): Likewise.
3939 (vst3_f16): Likewise.
3940 (vst3_f32): Likewise.
3941 (vst3_p64): Likewise.
3942 (vst3q_s8): Likewise.
3943 (vst3q_p8): Likewise.
3944 (vst3q_s16): Likewise.
3945 (vst3q_p16): Likewise.
3946 (vst3q_s32): Likewise.
3947 (vst3q_s64): Likewise.
3948 (vst3q_u8): Likewise.
3949 (vst3q_u16): Likewise.
3950 (vst3q_u32): Likewise.
3951 (vst3q_u64): Likewise.
3952 (vst3q_f16): Likewise.
3953 (vst3q_f32): Likewise.
3954 (vst3q_f64): Likewise.
3955 (vst3q_p64): Likewise.
3956 (vst4_s64): Likewise.
3957 (vst4_u64): Likewise.
3958 (vst4_f64): Likewise.
3959 (vst4_s8): Likewise.
3960 (vst4_p8): Likewise.
3961 (vst4_s16): Likewise.
3962 (vst4_p16): Likewise.
3963 (vst4_s32): Likewise.
3964 (vst4_u8): Likewise.
3965 (vst4_u16): Likewise.
3966 (vst4_u32): Likewise.
3967 (vst4_f16): Likewise.
3968 (vst4_f32): Likewise.
3969 (vst4_p64): Likewise.
3970 (vst4q_s8): Likewise.
3971 (vst4q_p8): Likewise.
3972 (vst4q_s16): Likewise.
3973 (vst4q_p16): Likewise.
3974 (vst4q_s32): Likewise.
3975 (vst4q_s64): Likewise.
3976 (vst4q_u8): Likewise.
3977 (vst4q_u16): Likewise.
3978 (vst4q_u32): Likewise.
3979 (vst4q_u64): Likewise.
3980 (vst4q_f16): Likewise.
3981 (vst4q_f32): Likewise.
3982 (vst4q_f64): Likewise.
3983 (vst4q_p64): Likewise.
3984 (vtbx4_s8): Likewise.
3985 (vtbx4_u8): Likewise.
3986 (vtbx4_p8): Likewise.
3987 (vtrn_f32): Likewise.
3988 (vtrn_p8): Likewise.
3989 (vtrn_p16): Likewise.
3990 (vtrn_s8): Likewise.
3991 (vtrn_s16): Likewise.
3992 (vtrn_s32): Likewise.
3993 (vtrn_u8): Likewise.
3994 (vtrn_u16): Likewise.
3995 (vtrn_u32): Likewise.
3996 (vtrnq_f32): Likewise.
3997 (vtrnq_p8): Likewise.
3998 (vtrnq_p16): Likewise.
3999 (vtrnq_s8): Likewise.
4000 (vtrnq_s16): Likewise.
4001 (vtrnq_s32): Likewise.
4002 (vtrnq_u8): Likewise.
4003 (vtrnq_u16): Likewise.
4004 (vtrnq_u32): Likewise.
4005 (vrsqrte_f16): Likewise.
4006 (vrsqrteq_f16): Likewise.
4007 (vsqrt_f16): Likewise.
4008 (vsqrtq_f16): Likewise.
4009 (vabd_f16): Likewise.
4010 (vabdq_f16): Likewise.
4011 (vpadd_f16): Likewise.
4012 (vpaddq_f16): Likewise.
4013 (vpmax_f16): Likewise.
4014 (vpmaxq_f16): Likewise.
4015 (vpmaxnm_f16): Likewise.
4016 (vpmaxnmq_f16): Likewise.
4017 (vpmin_f16): Likewise.
4018 (vpminq_f16): Likewise.
4019 (vpminnm_f16): Likewise.
4020 (vpminnmq_f16): Likewise.
4021 (vrsqrts_f16): Likewise.
4022 (vrsqrtsq_f16): Likewise.
4023
4024 2019-09-25 Richard Biener <rguenther@suse.de>
4025
4026 PR tree-optimization/91896
4027 * tree-vect-loop.c (vectorizable_reduction): The single
4028 def-use cycle optimization cannot apply when there's more
4029 than one pattern stmt involved.
4030
4031 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4032
4033 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
4034 the 'P' mode iterator, replacing the (removed) SI and DI variants.
4035 (reload_macho_picbase_<mode>): Likewise.
4036
4037 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
4038
4039 * config/rs6000/rs6000.md: Move darwin.md include until
4040 after the definition of the mode iterators.
4041
4042 2019-09-23 Martin Sebor <msebor@redhat.com>
4043
4044 PR tree-optimization/91570
4045 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
4046 non-constant minlen, maxlen and maxbound.
4047
4048 2019-09-24 Richard Biener <rguenther@suse.de>
4049
4050 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
4051 Rename to...
4052 (_stmt_vec_info::cond_reduc_code): ... this.
4053 (_stmt_vec_info::induc_cond_initial_val): Add.
4054 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
4055 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
4056 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
4057 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
4058 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
4059 the reduction code.
4060 (vect_create_epilog_for_reduction): Drop special
4061 induction condition reduction params, pass in reduction code
4062 and simplify.
4063 (vectorizable_reduction): Perform condition reduction kind
4064 selection only at analysis time. Adjust passing on state.
4065
4066 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4067
4068 * config/aarch64/aarch64.md (mov<mode>): Don't call
4069 aarch64_split_dimode_const_store on volatile MEM.
4070
4071 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
4072
4073 * config/aarch64/aarch64-option-extensions.def (fp16fml):
4074 Update hwcap string for fp16fml.
4075
4076 2019-09-24 Jakub Jelinek <jakub@redhat.com>
4077
4078 PR middle-end/91866
4079 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
4080 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
4081
4082 2019-09-24 Martin Liska <mliska@suse.cz>
4083
4084 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
4085 instead of if-elseif-elseif-...
4086 * gimple-expr.c (extract_ops_from_tree): Likewise.
4087 * gimple.c (get_gimple_rhs_num_ops): Likewise.
4088 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
4089
4090 2019-09-24 Martin Jambor <mjambor@suse.cz>
4091
4092 PR ipa/91831
4093 * ipa-param-manipulation.c (carry_over_param): Make a method of
4094 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
4095 in case of a context mismatch.
4096 (ipa_param_body_adjustments::common_initialization): Adjust call to
4097 carry_over_param.
4098 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
4099 private method carry_over_param.
4100
4101 2019-09-24 Martin Jambor <mjambor@suse.cz>
4102
4103 PR ipa/91832
4104 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
4105
4106 2019-09-24 Richard Biener <rguenther@suse.de>
4107
4108 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
4109 base.
4110
4111 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4112
4113 * config/arm/t-arm (arm-builtins.o): Add dependency on
4114 arm_acle_builtins.def.
4115
4116 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4117
4118 PR target/91823
4119 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
4120 canonical CONST_INTs. Use gen_rtvec.
4121
4122 2019-09-23 Richard Biener <rguenther@suse.de>
4123
4124 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
4125 avoid adjusting by + 0 or * 1.
4126 (vect_create_epilog_for_reduction): Get reduction code only
4127 when necessary. Deal with adjustment_def only when necessary.
4128
4129 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
4130
4131 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
4132 memmodel index.
4133
4134 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4135
4136 PR ipa/91835
4137 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
4138 "ipa-sra".
4139
4140 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
4141
4142 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
4143 code. Merge code blocks with common conditionals. Use declared
4144 macro instead of a magic number for PIC level.
4145
4146 2019-09-21 Martin Sebor <msebor@redhat.com>
4147
4148 PR middle-end/91830
4149 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
4150 Simplify computation of the offset of the referenced subobject.
4151
4152 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
4153
4154 * config/darwin.c (machopic_legitimize_pic_address): Check
4155 for lra not reload.
4156
4157 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4158
4159 * ira-conflicts.c (can_use_same_reg_p): New function.
4160 (process_reg_shuffles): Take an insn parameter. Ignore cases
4161 in which input operand op_num could seemingly never be allocated
4162 to the same register as the destination.
4163 (add_insn_allocno_copies): Update call to process_reg_shuffles.
4164
4165 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
4166
4167 * simplify-rtx.c (neg_const_int): Replace with...
4168 (neg_poly_int_rtx): ...this new function.
4169 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
4170 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
4171 (simplify_plus_minus): Likewise for constant terms here.
4172
4173 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
4174
4175 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
4176 HOST_WIDE_PRINT_UNSIGNED.
4177
4178 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
4179
4180 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
4181 character.
4182
4183 2019-09-20 Maya Rashish <coypu@sdf.org>
4184
4185 PR target/86811
4186 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
4187 Define to speculation_safe_value_not_needed.
4188
4189 2019-09-20 Richard Biener <rguenther@suse.de>
4190 Uros Bizjak <ubizjak@gmail.com>
4191
4192 PR target/91814
4193 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
4194 previous change.
4195 (general_scalar_chain::convert_op): Force not suitable memory
4196 operands to a register.
4197
4198 2019-09-20 Richard Biener <rguenther@suse.de>
4199
4200 PR tree-optimization/91821
4201 * tree-vect-loop.c (check_reduction_path): Check we can compute
4202 reduc_idx.
4203 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
4204 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
4205 operands in canonical order.
4206 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4207 STMT_VINFO_REDUC_IDX.
4208 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
4209 (STMT_VINFO_REDUC_IDX): Likewise.
4210
4211 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
4212
4213 PR target/91269
4214 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4215
4216 2019-09-20 Richard Biener <rguenther@suse.de>
4217
4218 PR tree-optimization/91822
4219 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
4220 parameter.
4221 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
4222 for reduc_index in nested cycles, adjust vectorizable_condition
4223 calls.
4224 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
4225 parameter.
4226 (vect_analyze_stmt): Adjust.
4227 (vect_transform_stmt): Likewise.
4228
4229 2019-09-20 Richard Biener <rguenther@suse.de>
4230
4231 PR target/91767
4232 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
4233 Ensure there's a sequence point between allocating the new register
4234 and passing a reference to a reg via regno_reg_rtx.
4235
4236 2019-09-20 Martin Jambor <mjambor@suse.cz>
4237
4238 * coretypes.h (cgraph_edge): Declare.
4239 * ipa-param-manipulation.c: Rewrite.
4240 * ipa-param-manipulation.h: Likewise.
4241 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
4242 (OBJS): Added ipa-sra.o.
4243 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
4244 and ref_p, added fields param_adjustments and performed_splits.
4245 (struct cgraph_clone_info): Remove ags_to_skip and
4246 combined_args_to_skip, new field param_adjustments.
4247 (cgraph_node::create_clone): Changed parameters to use
4248 ipa_param_adjustments.
4249 (cgraph_node::create_virtual_clone): Likewise.
4250 (cgraph_node::create_virtual_clone_with_body): Likewise.
4251 (tree_function_versioning): Likewise.
4252 (cgraph_build_function_type_skip_args): Removed.
4253 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
4254 using ipa_param_adjustments.
4255 (clone_of_p): Likewise.
4256 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
4257 (build_function_decl_skip_args): Likewise.
4258 (duplicate_thunk_for_node): Adjust parameters using
4259 ipa_param_body_adjustments, copy param_adjustments instead of
4260 args_to_skip.
4261 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
4262 (cgraph_node::create_virtual_clone): Likewise.
4263 (cgraph_node::create_version_clone_with_body): Likewise.
4264 (cgraph_materialize_clone): Likewise.
4265 (symbol_table::materialize_all_clones): Likewise.
4266 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
4267 ipa_replace_map check.
4268 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
4269 (initialize_node_lattices): Make aware that some parameters might have
4270 already been removed.
4271 (want_remove_some_param_p): New function.
4272 (create_specialized_node): Convert to using ipa_param_adjustments and
4273 deal with possibly pre-existing adjustments.
4274 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
4275 (output_node_opt_summary): Do not stream removed fields. Stream
4276 parameter adjustments instead of argumetns to skip.
4277 (input_node_opt_summary): Likewise.
4278 (input_node_opt_summary): Likewise.
4279 * lto-section-in.c (lto_section_name): Added ipa-sra section.
4280 * lto-streamer.h (lto_section_type): Likewise.
4281 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
4282 param_body_adjs.
4283 (copy_decl_to_var): Declare.
4284 * tree-inline.c (update_clone_info): Do not remap old_tree.
4285 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
4286 statements, walk all extra generated statements and remap their
4287 operands.
4288 (redirect_all_calls): Add killed SSA names to a hash set.
4289 (remap_ssa_name): Do not remap killed SSA names.
4290 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
4291 half of functionality moved to ipa_param_body_adjustments.
4292 (copy_decl_to_var): Make exported.
4293 (copy_body): Destroy killed_new_ssa_names hash set.
4294 (expand_call_inline): Remap performed splits.
4295 (update_clone_info): Likewise.
4296 (tree_function_versioning): Simplify tree_map processing. Updated to
4297 accept ipa_param_adjustments and use ipa_param_body_adjustments.
4298 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
4299 for the new interface.
4300 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
4301 (simd_clone_compute_base_data_type): Likewise.
4302 (simd_clone_init_simd_arrays): Adjust for the new interface.
4303 (simd_clone_adjust_argument_types): Likewise.
4304 (struct modify_stmt_info): Likewise.
4305 (ipa_simd_modify_stmt_ops): Likewise.
4306 (ipa_simd_modify_function_body): Likewise.
4307 (simd_clone_adjust): Likewise.
4308 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
4309 (type_internals_preclude_sra_p): Make public.
4310 * tree-sra.h: New file.
4311 * ipa-inline-transform.c (save_inline_function_body): Update to
4312 refelct new tree_function_versioning signature.
4313 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
4314 ipa_param_adjustments to get current parameter indices.
4315 (ipcp_modif_dom_walker::before_dom_children): Likewise.
4316 (ipcp_update_bits): Likewise.
4317 (ipcp_update_vr): Likewise.
4318 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
4319 * ipa-sra.c: New file.
4320 * multiple_target.c (create_target_clone): Update to reflet new type
4321 of create_version_clone_with_body.
4322 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
4323 tree_function_versioning.
4324 (modify_function): Update to reflect new type of
4325 tree_function_versioning.
4326 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
4327 * passes.def: Remove old IPA-SRA and add new one.
4328 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
4329 (make_pass_ipa_sra): Declare.
4330 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
4331 ipa_sra_retvalues.
4332 * doc/invoke.texi (ipa-sra-max-replacements): New.
4333
4334 2019-09-19 Martin Sebor <msebor@redhat.com>
4335
4336 PR middle-end/91631
4337 * builtins.c (component_size): Correct trailing array computation,
4338 rename to component_ref_size and move...
4339 (compute_objsize): Adjust.
4340 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
4341 (builtin_access::strict): Do not consider memmove.
4342 (builtin_access::write_off): New function.
4343 (builtin_memref::builtin_memref): Initialize refsize.
4344 (builtin_memref::set_base_and_offset): Adjust refoff and compute
4345 refsize.
4346 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
4347 Handle refsize.
4348 (builtin_access::builtin_access): Initialize dstoff to destination
4349 refeence offset here instead of in maybe_diag_overlap. Adjust
4350 referencess even to unrelated objects. Adjust sizrange of bounded
4351 string functions to reflect bound. For strcat, adjust destination
4352 sizrange by that of source.
4353 (builtin_access::strcat_overlap): Adjust offsets and sizes
4354 to reflect the increase in destination sizrange above.
4355 (builtin_access::overlap): Do not set dstoff here but instead
4356 in builtin_access::builtin_access.
4357 (check_bounds_or_overlap): Use builtin_access::write_off.
4358 (maybe_diag_access_bounds): Add argument. Add informational notes.
4359 (dump_builtin_memref, dump_builtin_access): New functions.
4360 * tree.c (component_ref_size): ...to here.
4361 * tree.h (component_ref_size): Declare.
4362 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
4363 nul in the size of the source string.
4364
4365 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
4366
4367 PR c/67224
4368 * doc/cpp.texi: Document support for extended characters in
4369 identifiers.
4370 * doc/cppopts.texi: Likewise.
4371
4372 2019-09-19 Richard Biener <rguenther@suse.de>
4373
4374 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4375 (check_reduction_path): New overload having the path as result.
4376 (vect_is_simple_reduction): From the detected reduction
4377 path build a SLP reduction chain if possible.
4378
4379 2019-09-19 Richard Biener <rguenther@suse.de>
4380
4381 PR target/91814
4382 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4383 Force operand to a register if it isn't nonimmediate_operand.
4384
4385 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4386
4387 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4388 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4389 (logical_op): Remove code attribute.
4390 (logical_OP): Likewise.
4391
4392 2019-09-19 Martin Liska <mliska@suse.cz>
4393
4394 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4395 Use proper casting.
4396
4397 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4398
4399 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4400 registers with %R.
4401
4402 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4403 for NE comparison of TImode values.
4404 (aarch64_emit_load_exclusive): Add support for TImode.
4405 (aarch64_emit_store_exclusive): Likewise.
4406 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4407 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4408 Change iterator from ALLI to ALLI_TI.
4409 (@atomic_compare_and_swap<JUST_TI>): New.
4410 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4411 (aarch64_load_exclusive_pair): New.
4412 (aarch64_store_exclusive_pair): New.
4413 * config/aarch64/iterators.md (JUST_TI): New.
4414
4415 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4416 strong_zero_p for aarch64_track_speculation; unify some code paths;
4417 use aarch64_gen_compare_reg instead of open-coding.
4418
4419 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4420 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4421 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4422 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4423 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4424 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4425 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4426 (atomic_<atomic_op><ALLI>): Likewise.
4427 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4428 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4429 * doc/invoke.texi: Document -moutline-atomics.
4430
4431 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4432
4433 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4434 trivial predicate for condition branch.
4435 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4436 for switch case.
4437 (compute_bb_predicates): Update predicate based on post-dominating
4438 relationship.
4439 (analyze_function_body): Calculate post-dominating information.
4440
4441 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4442
4443 * tree-vectorizer.h (vectorizable_condition): Take an int
4444 reduction index instead of a boolean flag.
4445 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4446 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4447 reductions if the reduction accumulator is the "then" rather
4448 than the "else" value.
4449 (vect_analyze_stmt): Update call accordingly.
4450 (vect_transform_stmt): Likewise.
4451 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4452 asserting that the index is > 0.
4453
4454 2019-09-19 Martin Liska <mliska@suse.cz>
4455
4456 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4457 (sort_congruence_classes_by_decl_uid): Likewise.
4458 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4459 easier sorting.
4460 (sem_item_optimizer::merge_classes): Likewise.
4461
4462 2019-09-19 Richard Biener <rguenther@suse.de>
4463
4464 PR tree-optimization/91812
4465 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4466 volatile loads.
4467
4468 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4469
4470 * defaults.h (TARGET_UNIT): New macro.
4471 (target_unit): New type.
4472 * rtl.h (native_encode_rtx, native_decode_rtx)
4473 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4474 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4475 * rtlanal.c (subreg_lsb_1): Delete.
4476 (subreg_size_lsb): New function.
4477 * simplify-rtx.c: Include rtx-vector-builder.h
4478 (simplify_immed_subreg): Delete.
4479 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4480 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4481 functions.
4482 (simplify_subreg): Use them.
4483 (test_vector_subregs_modes, test_vector_subregs_repeating)
4484 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4485 (test_vector_subregs): New functions.
4486 (test_vector_ops): Call test_vector_subregs for integer vector
4487 modes with at least 2 elements.
4488
4489 2019-09-19 Richard Biener <rguenther@suse.de>
4490
4491 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4492 LOOP_VINFO_OPERANDS_SWAPPED.
4493 (parloops_is_simple_reduction): Likewise.
4494 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4495 initialize operands_swapped.
4496 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4497 (vect_is_slp_reduction): Do not swap operands.
4498 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4499 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4500
4501 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4502
4503 PR target/87007
4504 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4505 Add avx_partial_xmm_update.
4506
4507 2019-09-18 Jim Wilson <jimw@sifive.com>
4508
4509 PR target/91683
4510 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4511 (riscv_move_integer): Likewise.
4512 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4513 riscv_move_integer arg.
4514 (riscv_legitimize_move): Likewise.
4515 (riscv_force_temporary): New parameter in_splitter. Don't call
4516 force_reg if true.
4517 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4518 arg.
4519 (riscv_add_offset): Likewise.
4520 (riscv_split_symbol): New parameter in_splitter. Pass to
4521 riscv_force_temporary.
4522 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4523 arg.
4524 (riscv_move_integer): New parameter in_splitter. New local
4525 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4526 in_splitter TRUE.
4527 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4528 riscv_split_symbol, and riscv_force_temporary args.
4529 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4530 riscv_move_integer arg.
4531 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4532
4533 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4534
4535 PR target/90878
4536 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4537 hard register store cost to 6.
4538
4539 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4540
4541 PR target/91446
4542 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4543 pseudo register store cost from 3 to 6 to make it the same as
4544 QImode and HImode.
4545
4546 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4547
4548 PR target/91738
4549 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4550 (one_cmpldi2): Likewise.
4551 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4552 of the constant parts is simple.
4553 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4554 (logical_op): Add new code attribute.
4555 (logical_OP): Likewise.
4556 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4557 (arm_iordi_operand): Add predicate.
4558 (arm_xordi_operand): Add predicate.
4559
4560 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4561
4562 * config/arm/arm.md (maddsidi4): Remove expander.
4563 (mulsidi3adddi): Remove pattern.
4564 (mulsidi3adddi_v6): Likewise.
4565 (mulsidi3_nov6): Likewise.
4566 (mulsidi3_v6): Likewise.
4567 (umulsidi3): Remove expander.
4568 (umulsidi3_nov6): Remove pattern.
4569 (umulsidi3_v6): Likewise.
4570 (umulsidi3adddi): Likewise.
4571 (umulsidi3adddi_v6): Likewise.
4572 (<Us>mulsidi3): Add combined expander.
4573 (<Us>maddsidi4): Likewise.
4574 (<US>mull): Add combined umull and smull pattern.
4575 (<US>mlal): Likewise.
4576 * config/arm/iterators.md (Us): Add new iterator.
4577
4578 2019-09-18 Richard Biener <rguenther@suse.de>
4579
4580 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4581 swapping.
4582 (vectorize_fold_left_reduction): Remove assert.
4583 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4584 operand in position 2. Remove assert.
4585
4586 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4587
4588 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4589 (smulsi3_highpart_nov6): Remove pattern.
4590 (smulsi3_highpart_v6): Likewise.
4591 (umulsi3_highpart): Likewise.
4592 (umulsi3_highpart_nov6): Likewise.
4593 (umulsi3_highpart_v6): Likewise.
4594 (<US>mull_high): Add new combined multiply pattern.
4595
4596 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4597
4598 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4599 (arm_mulsi3_v6): Likewise.
4600 (mulsi3addsi_v6): Likewise.
4601 (mulsi3subsi): Likewise.
4602 (mul): Add new multiply pattern.
4603 (mla): Likewise.
4604 (mls): Likewise.
4605
4606 2019-09-18 Richard Biener <rguenther@suse.de>
4607
4608 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4609 (parloops_valid_reduction_input_p): Copy from
4610 valid_reduction_input_p.
4611 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4612 (parloops_needs_fold_left_reduction_p): Copy from
4613 needs_fold_left_reduction_p.
4614 (parloops_is_simple_reduction): Copy from
4615 vect_is_simple_reduction.
4616 (parloops_force_simple_reduction): Copy from
4617 vect_force_simple_reduction.
4618 (gather_scalar_reductions): Adjust.
4619 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4620 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4621
4622 2019-09-18 Richard Biener <rguenther@suse.de>
4623
4624 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4625 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4626 static.
4627 (vect_create_epilog_for_reduction): Remove dead code.
4628
4629 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4630
4631 * varasm.c (assemble_real): Generate canonical const_ints.
4632
4633 2019-09-18 Richard Biener <rguenther@suse.de>
4634
4635 PR lto/91763
4636 * lto-streamer-in.c (input_eh_regions): Move EH init to
4637 lto_materialize_function.
4638 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4639 Likewise.
4640
4641 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4642
4643 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4644 are INTEGER_CSTs.
4645
4646 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4647
4648 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4649 of checking specifically for INTEGER_CST.
4650
4651 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4652
4653 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4654 sizes instead of uhwi sizes.
4655
4656 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4657
4658 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4659 (add_const_value_attribute): Handle CONST_POLY_INT.
4660
4661 2019-09-18 Martin Liska <mliska@suse.cz>
4662
4663 * dbgcnt.def (store_merging): New counter.
4664 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4665 Use it in store merging.
4666
4667 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4668
4669 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4670 function.
4671 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4672 * config/arm/arm.c (arm_sched_variable_issue): New function.
4673 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4674
4675 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4676
4677 * config/arm/types.md (no_reservation): New reservation.
4678 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4679 no_insn here.
4680 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4681 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4682 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4683 * config/arm/arm1020e.md (1020alu_op): Likewise.
4684 * config/arm/arm1026ejs.md (alu_op): Likewise.
4685 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4686 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4687 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4688 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4689 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4690 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4691 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4692 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4693 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4694 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4695 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4696 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4697 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4698 * config/arm/fa526.md (526_alu_op): Likewise.
4699 * config/arm/fa606te.md (606te_alu_op): Likewise.
4700 * config/arm/fa626te.md (626te_alu_op): Likewise.
4701 * config/arm/fa726te.md (726te_alu_op): Likewise.
4702 * config/arm/xgene1.md (xgene1_nop): Likewise.
4703
4704 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4705
4706 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4707 "no_insn" to "branch".
4708
4709 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4710
4711 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4712
4713 2019-09-17 Richard Biener <rguenther@suse.de>
4714
4715 PR debug/91772
4716 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4717 was missing generate locations only once.
4718
4719 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4720
4721 PR ipa/91089
4722 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4723 option.
4724 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4725 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4726 for switch default case using range analysis information.
4727
4728 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4729
4730 PR target/91749
4731 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4732 mode attributed is supported by FDPIC.
4733
4734 2019-09-17 Richard Biener <rguenther@suse.de>
4735
4736 PR tree-optimization/91790
4737 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4738 use the correct DR for setting up realignment.
4739
4740 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4741
4742 PR target/91719
4743 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4744 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4745 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4746 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4747
4748 2019-09-16 Jason Merrill <jason@redhat.com>
4749
4750 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4751
4752 2019-09-16 Martin Liska <mliska@suse.cz>
4753
4754 * gimple-fold.c (or_comparisons_1): Remove rules moved
4755 to ...
4756 * match.pd: ... here.
4757
4758 2019-09-16 Martin Liska <mliska@suse.cz>
4759
4760 * gimple-fold.c (or_comparisons_1): Remove rules
4761 moved to ...
4762 * match.pd: ... here.
4763
4764 2019-09-16 Martin Liska <mliska@suse.cz>
4765
4766 * genmatch.c (dt_node::append_simplify): Do not print
4767 warning when we have duplicate patterns belonging
4768 to a same simplify rule.
4769 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4770 (maybe_fold_comparisons_from_match_pd): Handle
4771 tcc_comparison as a results.
4772 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4773
4774 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4775 Qi Feng <ffengqi@linux.ibm.com>
4776
4777 PR middle-end/88784
4778 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4779 (x > y && x == XXX_MIN): Optimize into 'false'.
4780 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4781 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4782 (x < y && x == XXX_MAX): Optimize into 'false'.
4783 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4784 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4785 (x <= y || x != XXX_MIN): Optimize into 'true'.
4786 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4787 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4788 (x >= y || x != XXX_MAX): Optimize into 'true'.
4789 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4790
4791 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4792 Martin Liska <mliska@suse.cz>
4793
4794 * gimple-fold.c (and_comparisons_1): Add type as first
4795 argument.
4796 (and_var_with_comparison): Likewise.
4797 (and_var_with_comparison_1): Likewise.
4798 (or_comparisons_1): Likewise.
4799 (or_var_with_comparison): Likewise.
4800 (or_var_with_comparison_1): Likewise.
4801 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4802 (maybe_fold_or_comparisons): Likewise.
4803 (maybe_fold_comparisons_from_match_pd): New.
4804 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4805 (maybe_fold_or_comparisons): Likewise.
4806 * gimple.c (gimple_size): Make it public and add num_ops argument.
4807 (gimple_init): New function.
4808 (gimple_alloc): Call gimple_init.
4809 * gimple.h (gimple_size): New.
4810 (gimple_init): Likewise.
4811 * tree-if-conv.c (fold_or_predicates): Pass type.
4812 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4813 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4814 (optimize_vec_cond_expr): Likewise.
4815 (ovce_extract_ops): Return type of conditional expression.
4816 * tree-ssanames.c (init_ssa_name_imm_use): New.
4817 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4818 * tree-ssanames.h (init_ssa_name_imm_use): New.
4819
4820 2019-09-16 Richard Biener <rguenther@suse.de>
4821
4822 PR tree-optimization/91756
4823 PR tree-optimization/87132
4824 * tree-ssa-alias.h (enum translate_flags): New.
4825 (get_continuation_for_phi): Use it instead of simple bool flag.
4826 (walk_non_aliased_vuses): Likewise.
4827 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4828 (get_continuation_for_phi): When looking across backedges only
4829 disallow valueization.
4830 (walk_non_aliased_vuses): Adjust.
4831 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4832 if requested.
4833
4834 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4835
4836 PR middle-end/80791
4837 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4838 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4839 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4840 * target.def (have_count_reg_decr_p): New hook.
4841 (doloop_cost_for_generic): Likewise.
4842 (doloop_cost_for_address): Likewise.
4843 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4844 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4845 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4846 * doc/tm.texi: Regenerate.
4847 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4848 addend.
4849 (record_group): Init doloop_p.
4850 (add_candidate_1): Add optional argument doloop, change the handlings
4851 accordingly.
4852 (add_candidate): Likewise.
4853 (generic_predict_doloop_p): Update attribute.
4854 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4855 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4856 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4857 MIN_EXPR.
4858 (get_computation_cost): Update for doloop IV cand extra cost.
4859 (determine_group_iv_cost_cond): Update for doloop IV cand.
4860 (determine_iv_cost): Likewise.
4861 (ivopts_estimate_reg_pressure): Likewise.
4862 (may_eliminate_iv): Update handlings for doloop IV cand.
4863 (add_iv_candidate_for_doloop): New function.
4864 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4865 (iv_ca_set_no_cp): Update for doloop IV cand.
4866 (iv_ca_set_cp): Likewise.
4867 (iv_ca_dump): Dump register cost.
4868 (find_doloop_use): New function.
4869 (analyze_and_mark_doloop_use): Likewise.
4870 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4871
4872 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4873
4874 PR middle-end/91708
4875 * cse.c (cse_insn): Do not replace anything with a
4876 MEM.
4877
4878 2019-09-13 Ian Lance Taylor <iant@golang.org>
4879
4880 * doc/invoke.texi (Optimize Options): Fix typo.
4881
4882 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4883
4884 PR tree-optimization/89386
4885 * config/i386/sse.md (smulhrs<mode>3): New expander.
4886 (smulhrsv4hi3): Ditto.
4887
4888 2019-09-12 Richard Biener <rguenther@suse.de>
4889
4890 PR tree-optimization/91750
4891 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4892 in the type of the evolution.
4893
4894 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4895
4896 PR tree-optimization/89386
4897 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4898 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4899 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4900 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4901 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4902 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4903 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4904 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4905 (su, r): Handle the unspecs above.
4906 (bt): New int attribute.
4907 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4908 * internal-fn.c (first_commutative_argument): Commutativity info for
4909 above.
4910 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4911 (umulhrs_optab): New optabs.
4912 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4913 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4914 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4915 function.
4916 (vect_vect_recog_func_ptrs): Add it.
4917
4918 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4919
4920 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4921 code.
4922
4923 2019-09-11 Nathan Sidwell <nathan@acm.org>
4924
4925 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4926 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4927
4928 2019-09-11 Richard Biener <rguenther@suse.de>
4929
4930 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4931 * lto-wrapper.c (merge_and_complain): Pick up -g.
4932 (append_compiler_options): Likewise.
4933 (run_gcc): Re-instantiate handling -g0 at link-time.
4934 * doc/invoke.texi (flto): Document debug info generation.
4935
4936 2019-09-11 Richard Biener <rguenther@suse.de>
4937
4938 PR tree-optimization/90387
4939 * vr-values.c (vr_values::extract_range_basic): After inlining
4940 simplify non-constant __builtin_constant_p to false.
4941
4942 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4943
4944 PR rtl-optimization/89795
4945 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4946 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4947
4948 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4949
4950 PR tree-optimization/91723
4951 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4952 instead of pointer equality when checking if argument vectypes are
4953 the same.
4954
4955 PR middle-end/91725
4956 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4957 of get_nonzero_bits, only call it for integral types.
4958
4959 2019-09-11 Richard Biener <rguenther@suse.de>
4960
4961 Revert
4962 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4963
4964 * match.pd: Add flag_unsafe_math_optimizations check
4965 before deciding on the widest type in a binary math operation.
4966
4967 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4968
4969 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4970 and CALL_REALLY_USED_REGISTERS must be defined, and that
4971 CALL_REALLY_USED_REGISTERS is preferred.
4972 * doc/tm.texi: Regenerate.
4973 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4974 (call_really_used_regs): Likewise.
4975 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4976 CALL_REALLY_USED_REGISTERS are defined.
4977 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4978 initial value if defined.
4979 (initial_call_really_used_regs): Delete.
4980 (saved_call_really_used_regs): Likewise.
4981 (CALL_REALLY_USED_REGNO_P): Likewise.
4982 (init_reg_sets): Remove handling of call_really_used_regs.
4983 (save_register_info, restore_register_info, globalize_reg): Likewise.
4984 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4985 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4986 outside operand_reg_set.
4987 (fix_register): Don't change call_used_regs if
4988 CALL_REALLY_USED_REGISTERS is defined.
4989 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4990 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4991 instead of call_really_used_regs.
4992 (csky_conditional_register_usage): Remove the old handling of
4993 call_used_regs and change the handling of call_really_used_regs
4994 to use call_used_regs instead.
4995 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4996 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4997 making a register fixed.
4998 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4999 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
5000 instead of call_really_used_regs.
5001 (m32r_conditional_register_usage): Don't set call_used_regs when
5002 making a register fixed.
5003 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
5004 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
5005 instead of call_really_used_regs.
5006 (mips_interrupt_extra_call_saved_reg_p): Likewise.
5007 (mips_cfun_call_saved_reg_p): Likewise.
5008 (mips_swap_registers): Remove the old handling of call_used_regs
5009 and change the handling of call_really_used_regs to use call_used_regs
5010 instead.
5011 (mips_conditional_register_usage): Likewise.
5012 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
5013 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
5014 instead of call_really_used_regs.
5015 (mn10300_get_live_callee_saved_regs): Likewise.
5016 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
5017 (mn10300_conditional_register_usage): Don't set call_used_regs when
5018 making a register fixed.
5019 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
5020 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5021 Remove the old handling of call_used_regs and change the handling
5022 of call_really_used_regs to use call_used_regs instead.
5023 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
5024 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
5025 instead of call_really_used_regs.
5026 (s390_register_info_gprtofpr, s390_register_info): Likewise.
5027 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
5028 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
5029 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
5030 (s390_conditional_register_usage): Remove the old handling of
5031 call_used_regs and change the handling of call_really_used_regs
5032 to use call_used_regs instead.
5033 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
5034 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
5035 (sh_fix_range, reg_unused_after): Likewise.
5036 (sh_conditional_register_usage): Remove the old handling of
5037 call_used_regs and change the handling of call_really_used_regs
5038 to use call_used_regs instead.
5039 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
5040 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
5041 call_used_regs when making a register fixed.
5042 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
5043 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
5044 call_used_regs when making a register fixed.
5045 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
5046 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
5047 set call_used_regs when making a register fixed.
5048 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
5049 * config/visium/visium.c (visium_conditional_register_usage): Remove
5050 the old handling of call_used_regs and change the handling of
5051 call_really_used_regs to use call_used_regs instead.
5052
5053 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5054
5055 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
5056 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
5057 * reginfo.c (call_used_regs): New macro.
5058
5059 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5060
5061 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
5062 fixed_regs test.
5063 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5064 (bpf_expand_epilogue): Likewise.
5065 * config/c6x/c6x.c (c6x_save_reg): Likewise.
5066 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5067 (ft32_expand_epilogue): Likewise.
5068 * config/i386/i386.c (ix86_save_reg): Likewise.
5069 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
5070 (moxie_expand_epilogue): Likewise.
5071 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5072 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5073 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5074
5075 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5076
5077 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
5078 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
5079 instead of testing call_used_regs directly.
5080 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
5081 (aarch64_components_for_bb): Likewise.
5082 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
5083 * config/arc/arc.c (arc_must_save_register): Likewise.
5084 (arc_epilogue_uses): Likewise.
5085 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
5086 (legitimize_pic_address, callee_saved_reg_p): Likewise.
5087 (arm_compute_save_reg0_reg12_mask): Likewise.
5088 (arm_compute_save_core_reg_mask): Likewise.
5089 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
5090 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
5091 (cmse_nonsecure_entry_clear_before_return): Likewise.
5092 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
5093 (arm_expand_epilogue): Likewise.
5094 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
5095 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
5096 (_reg_unused_after): Likewise.
5097 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
5098 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
5099 (add_to_reg, hwloop_optimize): Likewise.
5100 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
5101 (bpf_expand_epilogue): Likewise.
5102 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
5103 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5104 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
5105 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
5106 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
5107 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
5108 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
5109 * config/frv/frv.c (frv_stack_info): Likewise.
5110 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
5111 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
5112 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
5113 (move_callee_saved_registers): Likewise.
5114 * config/h8300/h8300.c (byte_reg): Likewise.
5115 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
5116 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
5117 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
5118 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
5119 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
5120 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
5121 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
5122 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5123 * config/m32c/m32c.c (need_to_save): Likewise.
5124 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5125 * config/mcore/mcore.c (calc_live_regs): Likewise.
5126 * config/microblaze/microblaze.c (microblaze_must_save_register):
5127 Likewise.
5128 * config/mmix/mmix.c (mmix_local_regno): Likewise.
5129 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
5130 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
5131 (mmix_expand_epilogue): Likewise.
5132 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
5133 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
5134 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
5135 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
5136 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
5137 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
5138 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
5139 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
5140 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
5141 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
5142 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
5143 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
5144 * config/rl78/rl78.c (need_to_save): Likewise.
5145 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
5146 (rs6000_stack_info, generate_set_vrsave): Likewise.
5147 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
5148 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
5149 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5150 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5151 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
5152 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
5153 (save_local_or_in_reg_p): Likewise.
5154 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
5155 (xstormy16_epilogue_uses): Likewise.
5156 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
5157 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
5158 * config/v850/v850.c (compute_register_save_size): Likewise.
5159 * config/vax/vax.c (vax_expand_prologue): Likewise.
5160 * config/visium/visium.c (visium_save_reg_p): Likewise.
5161 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
5162 * cselib.c (cselib_process_insn): Likewise.
5163 * df-scan.c (df_get_entry_block_def_set): Likewise.
5164 * function.c (aggregate_value_p): Likewise.
5165 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
5166 * ira-lives.c (process_bb_node_lives): Likewise.
5167 * ira.c (do_reload): Likewise.
5168 * lra-lives.c (process_bb_lives): Likewise.
5169 * lra-remat.c (lra_remat): Likewise.
5170 * lra.c (lra): Likewise.
5171 * postreload.c (reload_combine_recognize_pattern): Likewise.
5172 (reload_cse_move2add): Likewise.
5173 * recog.c (peep2_find_free_register): Likewise.
5174 * regrename.c (check_new_reg_p): Likewise.
5175 * reload.c (find_equiv_reg): Likewise.
5176 * reload1.c (reload, find_reg): Likewise.
5177 * sel-sched.c (init_hard_regs_data): Likewise.
5178
5179 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5180
5181 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
5182 regs_invalidated_by_call & ~fixed_reg_set instead of
5183 call_used_or_fixed_regs & ~fixed_reg_set.
5184 * config/sh/sh.c (output_stack_adjust): Likewise.
5185
5186 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5187
5188 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
5189 (call_used_reg_set): Delete.
5190 (call_used_or_fixed_regs): New macro.
5191 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
5192 of call_used_reg_set.
5193 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
5194 instead of call_used_regs.
5195 (save_call_clobbered_regs): Likewise.
5196 * cfgcleanup.c (old_insns_match_p): Likewise.
5197 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
5198 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5199 Likewise.
5200 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5201 * config/sh/sh.c (output_stack_adjust): Likewise.
5202 * final.c (collect_fn_hard_reg_usage): Likewise.
5203 * ira-build.c (ira_build): Likewise.
5204 * ira-color.c (calculate_saved_nregs): Likewise.
5205 (allocno_reload_assign, calculate_spill_cost): Likewise.
5206 * ira-conflicts.c (ira_build_conflicts): Likewise.
5207 * ira-costs.c (ira_tune_allocno_costs): Likewise.
5208 * ira-lives.c (process_bb_node_lives): Likewise.
5209 * ira.c (setup_reg_renumber): Likewise.
5210 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
5211 * lra-constraints.c (need_for_call_save_p): Likewise.
5212 (need_for_split_p, inherit_in_ebb): Likewise.
5213 * lra-lives.c (process_bb_lives): Likewise.
5214 * lra-remat.c (call_used_input_regno_present_p): Likewise.
5215 * postreload.c (reload_combine): Likewise.
5216 * regrename.c (find_rename_reg): Likewise.
5217 * reload1.c (reload_as_needed): Likewise.
5218 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5219 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5220 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5221
5222 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5223
5224 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
5225 (no_caller_save_reg_set): Delete.
5226 * caller-save.c (init_caller_save): Don't initialize it.
5227 * ira-conflicts.c (ira_build_conflicts): Calculate
5228 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
5229
5230 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5231
5232 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
5233 (target_hard_regs::x_savable_regs): New field.
5234 (call_fixed_reg_set): Delete.
5235 (savable_regs): New macro,
5236 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
5237 (init_reg_sets_1): Likewise. Initialize savable_regs.
5238 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
5239 for all registers. Set savable_regs instead of call_fixed_reg_set.
5240 (setup_save_areas, save_call_clobbered_regs): Replace uses of
5241 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
5242 * config/sh/sh.c (output_stack_adjust): Likewise.
5243
5244 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5245
5246 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
5247 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
5248 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
5249
5250 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
5251
5252 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
5253 * rtlanal.c (get_call_rtx_from): Likewise.
5254 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
5255 than the pattern to get_call_rtx_from.
5256 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
5257 an rtx_insn * instead of an rtx.
5258 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
5259
5260 2019-09-10 Martin Liska <mliska@suse.cz>
5261
5262 * common.opt: Use newly added WarnRemoved.
5263 * config/aarch64/aarch64.opt: Likewise.
5264 * config/arm/arm.opt: Likewise.
5265 * config/i386/i386.opt: Likewise.
5266 * config/ia64/ia64.opt: Likewise.
5267 * config/rs6000/rs6000.opt: Likewise.
5268 * doc/options.texi: Document WarnRemoved properly.
5269 * dwarf2out.c (gen_producer_string): Handle renamed
5270 OPT_SPECIAL_warn_removed.
5271 * lto-opts.c (lto_write_options): Likewise.
5272 * lto-wrapper.c (merge_and_complain): Likewise.
5273 * opts-common.c (decode_cmdline_option): Likewise.
5274 (prune_options): Likewise.
5275 (read_cmdline_option): Likewise.
5276 (control_warning_option): Likewise.
5277 * opts.c (print_filtered_help): Likewise.
5278 * optc-gen.awk: Parse for WarnRemoved and make usage
5279 of Deprecated an error.
5280 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
5281
5282 2019-09-10 Arnaud Charlet <charlet@adacore.com>
5283
5284 * doc/install.texi: Fix syntax for html generation.
5285
5286 2019-09-10 Jakub Jelinek <jakub@redhat.com>
5287
5288 PR middle-end/91680
5289 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
5290 the shift type to type.
5291
5292 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5293
5294 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
5295 FDPIC mode.
5296 (stack_protect_combined_test_insn): Likewise.
5297
5298 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5299 Mickaël Guêné <mickael.guene@st.com>
5300
5301 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
5302 * config/arm/arm.md (FDPIC_REGNUM): New constant.
5303 (load_tp_soft_fdpic): New pattern.
5304 (load_tp_soft): Disable in FDPIC mode.
5305
5306 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5307 Mickaël Guêné <mickael.guene@st.com>
5308
5309 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
5310 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
5311 (arm_call_tls_get_addr): Add FDPIC support.
5312 (legitimize_tls_address): Likewise.
5313 (arm_emit_tls_decoration): Likewise.
5314
5315 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5316 Mickaël Guêné <mickael.guene@st.com>
5317
5318 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
5319 support.
5320 (arm_trampoline_init): Likewise.
5321 (arm_trampoline_adjust_address): Likewise.
5322 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
5323
5324 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5325 Mickaël Guêné <mickael.guene@st.com>
5326
5327 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
5328 (legitimize_pic_address): Enforce binding rules on function
5329 pointers in FDPIC mode.
5330 (arm_assemble_integer): Likewise.
5331
5332 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5333 Mickaël Guêné <mickael.guene@st.com>
5334
5335 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
5336 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
5337 FDPIC.
5338
5339 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5340 Mickaël Guêné <mickael.guene@st.com>
5341
5342 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
5343 field.
5344
5345 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5346 Mickaël Guêné <mickael.guene@st.com>
5347
5348 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
5349 in FDPIC mode.
5350 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
5351 new function.
5352 * config/arm/arm.c (arm_option_override): Define pic register to
5353 FDPIC_REGNUM.
5354 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
5355 have no decl or go through PLT.
5356 (calculate_pic_address_constant): New function.
5357 (legitimize_pic_address): Call calculate_pic_address_constant.
5358 (arm_load_pic_register): Handle TARGET_FDPIC.
5359 (arm_is_segment_info_known): New function.
5360 (arm_pic_static_addr): Add support for FDPIC.
5361 (arm_load_function_descriptor): New function.
5362 (arm_emit_call_insn): Add support for FDPIC.
5363 (arm_assemble_integer): Add support for FDPIC.
5364 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
5365 Define. (FDPIC_REGNUM): New define.
5366 * config/arm/arm.md (call): Add support for FDPIC.
5367 (call_value): Likewise.
5368 (restore_pic_register_after_call): New pattern.
5369 (untyped_call): Disable if FDPIC.
5370 (untyped_return): Likewise.
5371 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5372
5373 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5374 Mickaël Guêné <mickael.guene@st.com>
5375
5376 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5377 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5378 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5379 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5380 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5381 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5382 * config/arm/uclinuxfdpiceabi.h: New file.
5383
5384 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5385
5386 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5387
5388 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5389 Mickaël Guêné <mickael.guene@st.com>
5390
5391 * config/arm/arm.opt: Add -mfdpic option.
5392 * doc/invoke.texi: Add documentation for -mfdpic.
5393
5394 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5395
5396 * expmed.c (extract_bit_field): Update function comment
5397 regarding alt_rtl.
5398 * expr.c (expand_expr_real): Update function comment
5399 regarding alt_rtl.
5400 (expand_misaligned_mem_ref): New helper function.
5401 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5402 Remove duplicate assignment to "base" at case MEM_REF.
5403 Remove a shadowed variable "unsignedp" at case VCE.
5404
5405 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5406
5407 * regset.h (regs_invalidated_by_call_regset): Delete.
5408 (fixed_reg_set_regset): Likewise.
5409 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5410 (fixed_reg_set_regset, persistent_obstack): Likewise.
5411 (init_reg_sets_1, globalize_reg): Update accordingly.
5412 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5413 instead of a bitmap.
5414 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5415 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5416 instead of regs_invalidated_by_call_regset.
5417 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5418 * df-scan.c (df_scan_start_dump): Likewise.
5419 * dse.c (copy_fixed_regs): Likewise.
5420 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5421
5422 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5423
5424 * array-traits.h: New file.
5425 * coretypes.h (array_traits, bitmap_view): New types.
5426 * bitmap.h: Include "array-traits.h"
5427 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5428 (base_bitmap_view, bitmap_view): New classes.
5429 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5430 * hard-reg-set.h: Include array-traits.h.
5431 (array_traits<HARD_REG_SET>): New struct.
5432 * regset.h (IOR_REG_SET_HRS): New macro.
5433 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5434 rather than iterating over each hard register.
5435 * sched-deps.c (sched_analyze_insn): Likewise.
5436 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5437
5438 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5439
5440 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5441 instead of a HARD_REG_SET *.
5442 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5443 (ira_build): Update call accordingly.
5444 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5445
5446 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5447
5448 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5449 (HARD_REG_SET::operator!=): Likewise.
5450 (hard_reg_set_equal_p): Delete.
5451 * cfgcleanup.c (old_insns_match_p): Use == instead of
5452 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5453 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5454 (add_allocno_hard_regs_to_forest): Likewise.
5455 (setup_allocno_available_regs_num): Likewise.
5456 * ira.c (setup_pressure_classes): Likewise.
5457 (setup_allocno_and_important_classes): Likewise.
5458 (setup_reg_class_relations): Likewise.
5459 * lra-lives.c (process_bb_lives): Likewise.
5460 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5461
5462 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5463
5464 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5465 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5466 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5467 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5468 Likewise.
5469 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5470 * ira.c (setup_reg_renumber): Likewise.
5471 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5472 * regrename.c (regrename_find_superclass): Likewise.
5473 * reload1.c (find_reg): Likewise.
5474
5475 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5476
5477 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5478 * caller-save.c (setup_save_areas): Use "&~" instead of
5479 AND_COMPL_HARD_REG_SET.
5480 (save_call_clobbered_regs): Likewise.
5481 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5482 Likewise.
5483 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5484 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5485 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5486 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5487 (mips_conditional_register_usage): Likewise.
5488 * config/sh/sh.c (output_stack_adjust): Likewise.
5489 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5490 (setup_profitable_hard_regs): Likewise.
5491 (get_conflict_and_start_profitable_regs): Likewise.
5492 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5493 (ira_build_conflicts): Likewise.
5494 * ira-costs.c (restrict_cost_classes): Likewise.
5495 (setup_regno_cost_classes_by_aclass): Likewise.
5496 * ira-lives.c (process_bb_node_lives): Likewise.
5497 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5498 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5499 (setup_allocno_and_important_classes, setup_class_translate_array)
5500 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5501 Likewise.
5502 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5503 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5504 (process_alt_operands, inherit_in_ebb): Likewise.
5505 * lra-eliminations.c (update_reg_eliminate): Likewise.
5506 * lra-lives.c (process_bb_lives): Likewise.
5507 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5508 * resource.c (find_dead_or_set_registers): Likewise.
5509 (mark_target_live_regs): Likewise.
5510 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5511 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5512 (implicit_clobber_conflict_p): Likewise.
5513 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5514 (try_shrink_wrapping): Likewise.
5515
5516 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5517
5518 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5519 (HARD_REG_SET::operator|=): Likewise.
5520 (IOR_HARD_REG_SET): Delete.
5521 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5522 IOR_HARD_REG_SET.
5523 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5524 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5525 * final.c (collect_fn_hard_reg_usage): Likewise.
5526 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5527 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5528 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5529 (propagate_some_info_from_allocno): Likewise.
5530 (copy_info_to_removed_store_destinations): Likewise.
5531 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5532 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5533 (fast_allocation): Likewise.
5534 * ira-conflicts.c (ira_build_conflicts): Likewise.
5535 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5536 (process_bb_node_lives): Likewise.
5537 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5538 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5539 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5540 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5541 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5542 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5543 (process_bb_lives): Likewise.
5544 * lra-spills.c (assign_spill_hard_regs): Likewise.
5545 * postreload.c (reload_combine): Likewise.
5546 * reginfo.c (init_reg_sets_1): Likewise.
5547 * regrename.c (merge_overlapping_regs, find_rename_reg)
5548 (merge_chains): Likewise.
5549 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5550 (find_reload_regs, finish_spills, choose_reload_regs_init)
5551 (emit_reload_insns): Likewise.
5552 * reorg.c (redundant_insn): Likewise.
5553 * resource.c (find_dead_or_set_registers, mark_set_resources)
5554 (mark_target_live_regs): Likewise.
5555 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5556 * sched-deps.c (sched_analyze_insn): Likewise.
5557 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5558 (find_best_reg_for_expr): Likewise.
5559 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5560
5561 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5562
5563 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5564 (HARD_REG_SET::operator&): Likewise.
5565 (AND_HARD_REG_SET): Delete.
5566 * caller-save.c (setup_save_areas): Use "&" instead of
5567 AND_HARD_REG_SET.
5568 (save_call_clobbered_regs): Likewise.
5569 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5570 * config/m32c/m32c.c (reduce_class): Likewise.
5571 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5572 * final.c (get_call_reg_set_usage): Likewise.
5573 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5574 (setup_left_conflict_sizes_p): Likewise.
5575 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5576 (ira_build_conflicts): Likewise.
5577 * ira-costs.c (restrict_cost_classes): Likewise.
5578 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5579 (setup_reg_class_relations): Likewise.
5580 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5581 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5582 * resource.c (find_dead_or_set_registers): Likewise.
5583 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5584
5585 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5586
5587 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5588 (COMPL_HARD_REG_SET): Delete.
5589 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5590 of COMPL_HARD_REG_SET.
5591 (try_rename_operands): Likewise.
5592 * config/sh/sh.c (push_regs): Likewise.
5593 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5594 * lra-constraints.c (contains_reg_p): Likewise.
5595 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5596
5597 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5598
5599 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5600 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5601 of COPY_HARD_REG_SET.
5602 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5603 (epiphany_conditional_register_usage): Likewise.
5604 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5605 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5606 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5607 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5608 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5609 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5610 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5611 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5612 * config/sh/sh.c (output_stack_adjust): Likewise.
5613 * final.c (collect_fn_hard_reg_usage): Likewise.
5614 (get_call_reg_set_usage): Likewise.
5615 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5616 (ira_flattening): Likewise.
5617 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5618 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5619 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5620 (ira_reassign_pseudos): Likewise.
5621 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5622 (ira_build_conflicts): Likewise.
5623 * ira-costs.c (restrict_cost_classes): Likewise.
5624 (setup_regno_cost_classes_by_aclass): Likewise.
5625 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5626 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5627 (setup_stack_reg_pressure_class, setup_pressure_classes)
5628 (setup_allocno_and_important_classes, setup_class_translate_array)
5629 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5630 (ira_setup_eliminable_regset): Likewise.
5631 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5632 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5633 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5634 (process_alt_operands, inherit_in_ebb): Likewise.
5635 * lra-lives.c (process_bb_lives): Likewise.
5636 * lra-spills.c (assign_spill_hard_regs): Likewise.
5637 * lra.c (lra): Likewise.
5638 * mode-switching.c (new_seginfo): Likewise.
5639 * postreload.c (reload_combine): Likewise.
5640 * reg-stack.c (straighten_stack): Likewise.
5641 * reginfo.c (save_register_info, restore_register_info): Likewise.
5642 (init_reg_sets_1, record_subregs_of_mode): Likewise
5643 * regrename.c (create_new_chain, rename_chains): Likewise.
5644 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5645 (find_reload_regs): Likewise.
5646 * resource.c (find_dead_or_set_registers): Likewise.
5647 (mark_target_live_regs): Likewise.
5648 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5649
5650 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5651
5652 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5653 (note_pattern_stores): Declare.
5654 (note_stores): Take an rtx_insn *.
5655 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5656 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5657 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5658 (note_stores): Take an rtx_insn * as argument and process
5659 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5660 (note_pattern_stores): ...this.
5661 (find_first_parameter_load): Pass the insn rather than
5662 its pattern to note_stores.
5663 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5664 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5665 (insert_one_insn): Likewise.
5666 * combine.c (combine_instructions): Likewise.
5667 (likely_spilled_retval_p): Likewise.
5668 (try_combine): Use note_pattern_stores instead of note_stores.
5669 (record_dead_and_set_regs): Pass the insn rather than its pattern
5670 to note_stores.
5671 (reg_dead_at_p): Likewise.
5672 * config/bfin/bfin.c (workaround_speculation): Likewise.
5673 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5674 rather than an rtx.
5675 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5676 instead of note_stores.
5677 (frv_optimize_membar_local): Pass the insn rather than its pattern
5678 to note_stores.
5679 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5680 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5681 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5682 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5683 (mips_reorg_process_insns): Likewise.
5684 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5685 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5686 rather than rtxes.
5687 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5688 its pattern to note_stores.
5689 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5690 of note_stores.
5691 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5692 the insn to note_stores.
5693 (prescan_insns_for_dce): Update call accordingly.
5694 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5695 to note_stores.
5696 * df-problems.c (can_move_insns_across): Likewise.
5697 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5698 * function.c (assign_parm_setup_reg): Likewise.
5699 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5700 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5701 (single_set_gcse): Likewise.
5702 * ira.c (validate_equiv_mem): Likewise.
5703 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5704 for no_equiv.
5705 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5706 pattern to note_stores.
5707 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5708 * loop-iv.c (simplify_using_initial_values): Likewise.
5709 * mode-switching.c (optimize_mode_switching): Likewise.
5710 * optabs.c (emit_libcall_block_1): Likewise.
5711 (expand_atomic_compare_and_swap): Likewise.
5712 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5713 (record_opr_changes): Likewise. Remove explicit handling of
5714 CALL_INSN_FUNCTION_USAGE.
5715 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5716 * regcprop.c (kill_clobbered_values): Likewise.
5717 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5718 to note_stores.
5719 * regrename.c (build_def_use): Likewise.
5720 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5721 for mark_not_eliminable.
5722 (reload_as_needed): Pass the insn rather than its pattern
5723 to note_stores.
5724 (emit_output_reload_insns): Likewise.
5725 * resource.c (mark_target_live_regs): Likewise.
5726 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5727 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5728 instead of note_stores.
5729 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5730 its pattern to note_stores.
5731 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5732 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5733
5734 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5735
5736 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5737 than a #define. Use a structure rather than an array as the
5738 fallback definition. Remove special cases for low array sizes.
5739 (const_hard_reg_set): New typedef.
5740 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5741 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5742 (hard_reg_set_empty_p): Likewise.
5743 (SET_HARD_REG_BIT): Use a function rather than a macro to
5744 handle the case in which HARD_REG_SET is a structure.
5745 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5746 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5747 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5748 (IOR_COMPL_HARD_REG_SET): Likewise.
5749 (hard_reg_set_iterator::pset): Constify the pointer target.
5750 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5751 of a "const HARD_REG_SET". Update the handling of non-integer
5752 HARD_REG_SETs.
5753 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5754 * reload.h: Likewise.
5755 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5756 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5757 of a "const HARD_REG_SET".
5758 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5759 (range_in_hard_reg_set_p): Likewise.
5760 * ira-costs.c (restrict_cost_classes): Likewise.
5761 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5762 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5763 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5764 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5765 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5766 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5767 take an unsigned int and open-code the HARD_REG_SET operations.
5768
5769 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5770
5771 * Makefile.in (OBJS): Remove bt-load.o.
5772 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5773 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5774 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5775 document that the option no longer does anything.
5776 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5777 * target.def (branch_target_register_class): Delete.
5778 (branch_target_register_callee_saved): Likewise.
5779 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5780 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5781 * doc/tm.texi: Regenerate.
5782 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5783 (make_pass_branch_target_load_optimize2): Likewise.
5784 * passes.def (pass_branch_target_load_optimize1): Likewise.
5785 (pass_branch_target_load_optimize2): Likewise.
5786 * targhooks.h (default_branch_target_register_class): Likewise.
5787 * targhooks.c (default_branch_target_register_class): Likewise.
5788 * opt-suggestions.c (test_completion_valid_options): Remove
5789 -fbtr-bb-exclusive from the list of test options.
5790 * bt-load.c: Remove.
5791
5792 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5793
5794 * match.pd: Add flag_unsafe_math_optimizations check
5795 before deciding on the widest type in a binary math operation.
5796
5797 2019-09-09 Martin Liska <mliska@suse.cz>
5798
5799 * config/i386/i386.opt: Update comment of removed
5800 options that are preserved only for backward
5801 compatibility.
5802
5803 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5804
5805 PR target/87853
5806 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5807 instead of __v16qs.
5808
5809 PR target/91704
5810 * config/i386/avxintrin.h (__v32qs): New typedef.
5811 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5812 instead of __v32qi.
5813
5814 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5815
5816 * doc/invoke.texi (Option Summary): Cover eBPF.
5817 (eBPF Options): New section.
5818 * doc/extend.texi (BPF Built-in Functions): Likewise.
5819 (BPF Kernel Helpers): Likewise.
5820
5821 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5822
5823 * config.gcc: Support for bpf-*-* targets.
5824 * common/config/bpf/bpf-common.c: New file.
5825 * config/bpf/t-bpf: Likewise.
5826 * config/bpf/predicates.md: Likewise.
5827 * config/bpf/constraints.md: Likewise.
5828 * config/bpf/bpf.opt: Likewise.
5829 * config/bpf/bpf.md: Likewise.
5830 * config/bpf/bpf.h: Likewise.
5831 * config/bpf/bpf.c: Likewise.
5832 * config/bpf/bpf-protos.h: Likewise.
5833 * config/bpf/bpf-opts.h: Likewise.
5834 * config/bpf/bpf-helpers.h: Likewise.
5835 * config/bpf/bpf-helpers.def: Likewise.
5836
5837 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5838
5839 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5840 indirect_calls.
5841
5842 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5843
5844 * opt-functions.awk (integer_range_info): Make sure values are in
5845 numeric context before operating with them.
5846
5847 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5848
5849 * genemit.c (gen_split): Print the filename and line number where the
5850 splitter (or peephole2) was defined, to the dump file.
5851
5852 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5853
5854 PR tree-optimization/91665
5855 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5856 incompatible with the type of PHI result.
5857
5858 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5859
5860 PR target/91684
5861 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5862 gen_unaligned_storedi for 4-byte aligned addresses.
5863
5864 2019-09-06 Jim Wilson <jimw@sifive.com>
5865
5866 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5867 change.
5868
5869 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5870
5871 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5872
5873 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5874
5875 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5876 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5877
5878 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5879
5880 PR target/91654
5881 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5882 cost of SSE->integer and integer->SSE moves from 2 to 6.
5883 (core_cost): Ditto.
5884
5885 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5886
5887 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5888 before testing TYPE_TRANSPARENT_AGGR.
5889 * calls.c (initialize_argument_information, load_register_parameters):
5890 Likewise.
5891
5892 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5893
5894 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5895 high regs.
5896 (cmp_ior): Likewise.
5897
5898 2019-09-06 Martin Liska <mliska@suse.cz>
5899
5900 * doc/match-and-simplify.texi: Separate tuples with ;.
5901
5902 2019-09-06 Martin Liska <mliska@suse.cz>
5903
5904 PR c++/91125
5905 * Makefile.in: Remove tlink.o.
5906 * collect2.c (do_link): New function isolated
5907 from do_tlink.
5908 (main): Use.
5909 * collect2.h (do_tlink): Remove declaration of do_tlink.
5910 * doc/extend.texi: Remove documentation of -frepo.
5911 * doc/invoke.texi: Likewise.
5912 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5913 * tlink.c: Remove.
5914
5915 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5916 Jim Wilson <jimw@sifive.com>
5917
5918 PR target/91635
5919 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5920 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5921 paradoxical_subreg_p (operands[0]).
5922 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5923 use as intermediate value.
5924
5925 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5926
5927 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5928 (sync_compare_and_swap<mode>_insn): Likewise.
5929
5930 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5931
5932 PR middle-end/91615
5933 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5934 without movmisalign optab.
5935
5936 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5937
5938 PR middle-end/91001
5939 PR middle-end/91105
5940 PR middle-end/91106
5941 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5942 types, use type of their first field instead of type of
5943 args[i].tree_value.
5944
5945 2019-09-05 Richard Biener <rguenther@suse.de>
5946
5947 PR rtl-optimization/91656
5948 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5949 of early out.
5950
5951 2019-09-05 Richard Biener <rguenther@suse.de>
5952
5953 PR middle-end/90501
5954 * tree-inline.c (declare_return_variable): Mark the return
5955 slot as addressable after building an address of it.
5956
5957 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5958
5959 * doc/install.texi: Update and clarify requirements to build GNAT.
5960
5961 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5962
5963 PR middle-end/91577
5964 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5965 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5966 call to be in memory.
5967 (pass_expand::execute): Call discover_nonconstant_array_refs before
5968 setting currently_expanding_to_rtl.
5969
5970 2019-09-04 Caroline Tice <cmtice@google.com>
5971
5972 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5973 specified together.
5974
5975 2019-09-04 Marek Polacek <polacek@redhat.com>
5976
5977 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5978
5979 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5980
5981 PR target/32413
5982 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5983 for QI and HImode moves between SSE and general registers.
5984
5985 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5986
5987 PR c/78736
5988 * doc/invoke.texi: Document -Wenum-conversion.
5989
5990 2019-09-04 Richard Biener <rguenther@suse.de>
5991
5992 PR rtl-optimization/36262
5993 * postreload-gcse.c: Include intl.h and gcse.h.
5994 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5995 to avoid linear list walk.
5996 (record_last_mem_set_info): Gate off if not computing transparentness.
5997 (get_bb_avail_insn): If transparentness isn't computed give up
5998 early.
5999 (gcse_after_reload_main): Skip compute_transp and extended PRE
6000 if gcse_or_cprop_is_too_expensive says so.
6001
6002 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6003
6004 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
6005 noinit section.
6006 (msp430_select_section): Handle decls with the "noinit" attribute with
6007 default_elf_select_section.
6008 Handle SECCAT_RODATA_MERGE_* section types with
6009 default_elf_select_section.
6010 Add comments about handling of unsupported section types.
6011 (msp430_section_type_flags): Remove handling of the noinit section.
6012
6013 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6014
6015 * config/msp430/msp430.c (msp430_attr): Remove warnings about
6016 conflicting msp430-specific attributes.
6017 (msp430_section_attr): Likewise.
6018 Add warnings about conflicts with generic "noinit" and "section"
6019 attributes.
6020 Fix grammar in -mlarge error message.
6021 (msp430_data_attr): Rename to msp430_persist_attr.
6022 Add warnings about conflicts with generic "noinit" and "section"
6023 attributes.
6024 Add warning for when variable is not initialized.
6025 Chain conditionals which prevent the attribute being added.
6026 (ATTR_EXCL): New helper.
6027 (attr_reent_exclusions): New exclusion table.
6028 (attr_naked_exclusions): Likewise.
6029 (attr_crit_exclusions): Likewise.
6030 (attr_lower_exclusions): Likewise.
6031 (attr_upper_exclusions): Likewise.
6032 (attr_either_exclusions): Likewise.
6033 (attr_persist_exclusions): Likewise.
6034 (msp430_attribute_table): Update with exclusion rules.
6035 (msp430_output_aligned_decl_common): Don't output common symbol if decl
6036 has a section.
6037
6038 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6039
6040 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
6041 (msp430_handle_generic_attribute): New function.
6042 * doc/tm.texi: Regenerate.
6043 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
6044 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6045 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
6046 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
6047
6048 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
6049
6050 PR tree-optimization/91504
6051 * match.pd: Add ((~a & b) ^a) --> (a | b).
6052
6053 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6054
6055 PR target/91604
6056 * config/i386/i386-expand.c (split_double_mode): If there is more than
6057 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
6058 already split matching MEM operand instead of calling adjust_address
6059 again.
6060
6061 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
6062
6063 * config.gcc: Obsolete spu target. Remove references to spu.
6064 * configure.ac: Remove references to spu.
6065 * configure: Regenerate.
6066 * config/spu/: Remove directory.
6067 * common/config/spu/: Remove directory.
6068
6069 * doc/extend.texi: Remove references to spu.
6070 * doc/invoke.texi: Likewise.
6071 * doc/md.texi: Likewise.
6072 * doc/sourcebuild.texi: Likewise.
6073
6074 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6075
6076 PR middle-end/91603
6077 PR middle-end/91612
6078 PR middle-end/91613
6079 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
6080 and SSA_NAME referring to CONSTANT_P correctly.
6081
6082 2019-09-03 Richard Biener <rguenther@suse.de>
6083
6084 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
6085 (vn_nary_op_insert): Likewise.
6086 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
6087 (vn_nary_op_lookup): Likewise.
6088 (vn_nary_op_insert): Likewise.
6089
6090 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
6091
6092 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
6093 (*op0, 1) instead of XEXP (*op1, 0).
6094
6095 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6096
6097 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
6098 (aarch64_fjcvtzs): New define_insn.
6099 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
6100 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
6101 Add AARCH64_JSCVT.
6102 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
6103 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
6104 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6105 __ARM_FEATURE_JCVT where appropriate.
6106 * config/aarch64/arm_acle.h (__jcvt): Define.
6107
6108 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6109
6110 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
6111 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
6112 (aarch64_<frintnzs_op><mode>): New define_insn.
6113 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
6114 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6115 __ARM_FEATURE_FRINT when appropriate.
6116 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
6117 frint32x, frint64z, frint64x.
6118 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
6119 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
6120 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
6121 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
6122 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
6123 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
6124 * config/aarch64/iterators.md (VSFDF): Define.
6125 (FRINTNZX): Likewise.
6126 (frintnzs_op): Likewise.
6127
6128 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
6129
6130 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
6131 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
6132 Cortex-A34.
6133 * config/aarch64/aarch64-tune.md: Regenerated.
6134 * doc/invoke.texi: Document the new processors.
6135
6136 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6137
6138 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
6139 string.
6140 (ssbs): Likewise.
6141 (sve2): Likewise.
6142 (sve2-sm4): Likewise.
6143 (sveaes): Likewise.
6144 (svesha3): Likewise.
6145 (svebitperm): Likewise.
6146
6147 2019-09-03 Jakub Jelinek <jakub@redhat.com>
6148 Richard Biener <rguenther@suse.de>
6149
6150 PR tree-optimization/91597
6151 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
6152 BIT_AND_EXPR optimization for pointers, even if both operand
6153 ranges don't include NULL, the result can be NULL.
6154
6155 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6156
6157 PR middle-end/91605
6158 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
6159 (non_mem_decl_p): ...this.
6160 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
6161 (expand_assignment): Call mem_ref_referes_to_non_mem_p
6162 unconditionally as before.
6163
6164 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6165
6166 PR target/91323
6167 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
6168 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
6169 * tree.def (LTGT_EXPR): Likewise.
6170 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
6171
6172 2019-09-02 Jakub Jelinek <jakub@redhat.com>
6173
6174 PR go/91617
6175 * fold-const.c (range_check_type): For enumeral and boolean
6176 type, pass 1 to type_for_size langhook instead of
6177 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
6178 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
6179 (build_range_check): Don't call unsigned_type_for for pointer types.
6180 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
6181 range_check_type result.
6182
6183 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
6184
6185 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
6186 (replace_ref): Do not replace a chain of only two candidates which are
6187 valid memory references.
6188
6189 2019-09-02 Martin Liska <mliska@suse.cz>
6190
6191 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6192 Bail out when we'll end up with the same number of clusters as
6193 at the beginning.
6194 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
6195 (jump_table_cluster::can_be_handled): Remove the guard
6196 as it's already handled in ::is_enabled. Allocate output
6197 after early bail out.
6198
6199 2019-09-02 Martin Liska <mliska@suse.cz>
6200
6201 PR gcov-profile/91601
6202 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
6203 (path_contains_zero_or_negative_cycle_arc): ... this and handle
6204 also negative edges.
6205 (circuit): Handle also negative edges as they can happen
6206 in some situations.
6207
6208 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
6209
6210 PR target/91472
6211 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
6212 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
6213 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
6214
6215 2019-09-01 Jakub Jelinek <jakub@redhat.com>
6216
6217 PR middle-end/91623
6218 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
6219 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
6220 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
6221 zero vector.
6222
6223 PR lto/91572
6224 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
6225 GIMPLE_ASM TREE_LIST operands.
6226
6227 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6228
6229 * doc/generic.texi (Unary and Binary Expressions): Mark up
6230 an instance of TYPE_MIN.
6231
6232 2019-08-31 Stafford Horne <shorne@gmail.com>
6233
6234 * config/or1k/constraints.md (t): New constraint.
6235 * config/or1k/or1k.h (GOT_REGS): New register class.
6236 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
6237
6238 2019-08-30 Jim Wilson <jimw@sifive.com>
6239
6240 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
6241 and -fpic and -mplt then disable -msave-restore and warn.
6242
6243 2019-08-30 Martin Sebor <msebor@redhat.com>
6244
6245 PR middle-end/91599
6246 * tree-ssa-strlen.c (handle_store): Use a fallback location if
6247 the statement doesn't have one.
6248 * gimple-pretty-print.c (percent_G_format): Same.
6249
6250 PR middle-end/91584
6251 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
6252 before using them to validate MEM_REF offset.
6253
6254 2019-08-30 Marek Polacek <polacek@redhat.com>
6255
6256 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
6257
6258 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6259
6260 * config/arm/arm.md (unaligned_loaddi,
6261 unaligned_storedi): New unspec insn patterns.
6262 * config/arm/neon.md (unaligned_storev8qi): Likewise.
6263 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
6264 and unaligned_storedi for 4-byte aligned memory.
6265 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
6266 4-byte aligned memory.
6267
6268 2019-08-30 Martin Jambor <mjambor@suse.cz>
6269
6270 tree-optimization/91579
6271 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
6272 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
6273 appropriate.
6274 (arg_needs_copy_p): Removed.
6275 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
6276 arg_needs_copy_p.
6277 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
6278
6279 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6280
6281 * config/i386/i386-features.c
6282 (general_scalar_chain::compute_convert_gain):
6283 Correct cost for double-word shifts.
6284 (general_scalar_to_vector_candidate_p): Reject count operands
6285 greater or equal to mode bitsize.
6286
6287 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
6288
6289 * config/i386/i386.c (inline_secondary_memory_needed): Return true
6290 for moves between SSE and non-general registers and between
6291 mask and non-general registers.
6292 (ix86_register_move_cost): Remove stalled comment.
6293
6294 2019-08-29 Richard Biener <rguenther@suse.de>
6295
6296 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6297 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
6298
6299 2019-08-29 Richard Biener <rguenther@suse.de>
6300
6301 PR bootstrap/91580
6302 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
6303 Do not emit scalar copies for debug-insns, instead replace
6304 their uses with the reg copy used in the chain or reset them
6305 if there is a reaching definition outside of the chain as well.
6306
6307 2019-08-29 Jakub Jelinek <jakub@redhat.com>
6308
6309 PR target/91560
6310 * config/i386/i386-expand.c (expand_vec_perm_movs,
6311 expand_vec_perm_blend, expand_vec_perm_vpermil,
6312 expand_vec_perm_pshufb, expand_vec_perm_1,
6313 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
6314 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
6315 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
6316 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
6317 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
6318 comments - replace ix86_expand_vec_perm_builtin_1 with
6319 ix86_expand_vec_perm_const_1.
6320 (expand_vec_perm2_vperm2f128_vblend): New function.
6321 (ix86_expand_vec_perm_const_1): New forward declaration. Call
6322 expand_vec_perm2_vperm2f128_vblend as last resort.
6323 (canonicalize_perm): Formatting fix.
6324
6325 PR tree-optimization/91351
6326 * tree-cfg.c (generate_range_test): Use range_check_type instead of
6327 unsigned_type_for.
6328 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
6329 range_check_type returns NULL.
6330 * tree-switch-conversion.c (switch_conversion::build_one_array):
6331 Use range_check_type instead of unsigned_type_for, don't perform
6332 linear opt if it returns NULL.
6333 (bit_test_cluster::find_bit_tests): Formatting fix.
6334 (bit_test_cluster::emit): Use range_check_type instead of
6335 unsigned_type_for.
6336 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
6337 returns NULL.
6338
6339 2019-08-29 Richard Biener <rguenther@suse.de>
6340
6341 PR tree-optimization/91568
6342 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
6343 (vect_update_max_nunits): Add overload for poly_uint64.
6344 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
6345 (vect_build_slp_tree): Record max_nunits into the subtree
6346 and merge it upwards.
6347 (vect_print_slp_tree): Print max_nunits.
6348
6349 2019-08-28 Marek Polacek <polacek@redhat.com>
6350
6351 Implement P1152R4: Deprecating some uses of volatile.
6352 PR c++/91361
6353 * doc/invoke.texi: Document -Wvolatile.
6354
6355 2019-08-28 Marek Polacek <polacek@redhat.com>
6356
6357 PR c++/91360 - Implement C++20 P1143R2: constinit.
6358 * doc/invoke.texi: Document -Wc++20-compat.
6359
6360 2019-08-28 Martin Sebor <msebor@redhat.com>
6361
6362 PR tree-optimization/91457
6363 * builtins.c (component_size): New function.
6364 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
6365 * builtins.h (compute_objsize): Add argument.
6366 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
6367 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
6368 (vrp_prop::check_mem_ref): Same.
6369 (vrp_prop::search_for_addr_array): Set no-warning bit.
6370 (check_array_bounds): Same.
6371
6372 2019-08-28 Martin Sebor <msebor@redhat.com>
6373
6374 PR driver/80545
6375 * opts-common.c (option_enabled): Correct checking for language
6376 options.
6377
6378 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6379
6380 * config/i386/i386.c (ix86_register_move_cost): Do not
6381 limit the cost of moves to/from XMM register to minimum 8.
6382
6383 2019-08-28 Martin Jambor <mjambor@suse.cz>
6384
6385 PR ipa/91468
6386 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6387 checking assert a normal assert to test it really is redundant.
6388 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6389 redundant test.
6390 (update_jump_functions_after_inlining): Removed combining unary
6391 arithmetic operations with an ancestor jump function.
6392 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6393 instead of t.
6394
6395 2019-08-28 Richard Biener <rguenther@suse.de>
6396
6397 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6398 add the MD problem.
6399
6400 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6401 Richard Biener <rguenther@suse.de>
6402
6403 * expr.c (expand_assignment): Handle misaligned DECLs.
6404 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6405 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6406 too.
6407 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6408 * varasm.c (build_constant_desc): Align constants of misaligned types.
6409 * config/arm/predicates.md (aligned_operand): New predicate.
6410 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6411 aligned_operand to check restrictions on memory addresses.
6412 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6413 * config/arm/vec-common.md (mov<VALL>): Likewise.
6414
6415 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6416
6417 PR libgomp/91530
6418 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6419 V_128 iterator instead of VI_128.
6420
6421 2019-08-28 Martin Liska <mliska@suse.cz>
6422
6423 PR tree-optimization/90970
6424 * builtins.c (check_access): Remove assignment to maxread
6425 as it hasn't been used since when it was introduced in r255755.
6426
6427 2019-08-27 Martin Sebor <msebor@redhat.com>
6428
6429 PR tree-optimization/91567
6430 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6431 of unknown strings.
6432 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6433 to PTRDIFF_MAX - 2.
6434
6435 2019-08-27 Jeff Law <law@redhat.com>
6436
6437 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6438 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6439
6440 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6441
6442 PR target/91528
6443 * config/i386/i386-features.c (convert_scalars_to_vector):
6444 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6445 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6446 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6447 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6448
6449 2019-08-27 Richard Biener <rguenther@suse.de>
6450
6451 * config/i386/i386-features.h
6452 (general_scalar_chain::~general_scalar_chain): Add.
6453 (general_scalar_chain::insns_conv): New bitmap.
6454 (general_scalar_chain::n_sse_to_integer): New.
6455 (general_scalar_chain::n_integer_to_sse): Likewise.
6456 (general_scalar_chain::make_vector_copies): Adjust signature.
6457 * config/i386/i386-features.c
6458 (general_scalar_chain::general_scalar_chain): Outline,
6459 initialize new members.
6460 (general_scalar_chain::~general_scalar_chain): New.
6461 (general_scalar_chain::mark_dual_mode_def): Record insns
6462 we need to insert conversions at and count them.
6463 (general_scalar_chain::compute_convert_gain): Account
6464 for conversion instructions at chain boundary.
6465 (general_scalar_chain::make_vector_copies): Generate a single
6466 copy for a def by a specific insn.
6467 (general_scalar_chain::convert_registers): First populate
6468 defs_map, then make copies at out-of chain insns.
6469
6470 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6471
6472 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6473 comment.
6474 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6475
6476 2019-08-27 Martin Liska <mliska@suse.cz>
6477
6478 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6479 loop.
6480 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6481 Enclose in anonymous namespace.
6482 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6483 hard_register initialization in braces.
6484 * tree-vrp.h (value_range_base::supports_type_p): Return false
6485 for function with boolean return type.
6486
6487 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6488
6489 * config/i386/i386.c (emit_i387_cw_initialization)
6490 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6491
6492 2019-08-26 Martin Sebor <msebor@redhat.com>
6493
6494 PR c++/83431
6495 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6496 (sprintf_dom_walker): Remove class.
6497 (get_int_range): Make argument const.
6498 (directive::fmtfunc, directive::set_precision): Same.
6499 (format_none): Same.
6500 (build_intmax_type_nodes): Same.
6501 (adjust_range_for_overflow): Same.
6502 (format_floating): Same.
6503 (format_character): Same.
6504 (format_string): Same.
6505 (format_plain): Same.
6506 (get_int_range): Cast away constness.
6507 (format_integer): Same.
6508 (get_string_length): Call get_range_strlen_dynamic. Handle
6509 null lendata.maxbound.
6510 (should_warn_p): Adjust argument scope qualifier.
6511 (maybe_warn): Same.
6512 (format_directive): Same.
6513 (parse_directive): Same.
6514 (is_call_safe): Same.
6515 (try_substitute_return_value): Same.
6516 (sprintf_dom_walker::handle_printf_call): Rename...
6517 (handle_printf_call): ...to this. Initialize target to host charmap
6518 here instead of in pass_sprintf_length::execute.
6519 (struct call_info): Make global.
6520 (sprintf_dom_walker::compute_format_length): Make global.
6521 (sprintf_dom_walker::handle_gimple_call): Same.
6522 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6523 * print-rtl.c (print_pattern): Reduce the number of spaces to
6524 avoid -Wformat-truncation.
6525 * tree-pass.h (make_pass_warn_printf): New function.
6526 * tree-ssa-strlen.c (strlen_optimize): New variable.
6527 (get_string_length): Add comments.
6528 (get_range_strlen_dynamic): New function.
6529 (check_and_optimize_call): New function.
6530 (handle_integral_assign): New function.
6531 (strlen_check_and_optimize_stmt): Factor code out into
6532 strlen_check_and_optimize_call and handle_integral_assign.
6533 (strlen_dom_walker::evrp): New member.
6534 (strlen_dom_walker::before_dom_children): Use evrp member.
6535 (strlen_dom_walker::after_dom_children): Use evrp member.
6536 (printf_strlen_execute): New function.
6537 (pass_strlen::gate): Update to handle printf calls.
6538 (dump_strlen_info): New function.
6539 (pass_data_warn_printf): New variable.
6540 (pass_warn_printf): New class.
6541 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6542 (handle_printf_call): Same.
6543 * tree-vrp.c (value_range_base::type): Adjust assertion.
6544 * vr-values.c (vr_values::update_value_range): Use type of the first
6545 argument rather than the second.
6546
6547 2019-08-26 Richard Biener <rguenther@suse.de>
6548
6549 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6550 Remove.
6551 (convert_scalars_to_vector): Do not call it.
6552
6553 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6554 Uros Bizjak <ubizjak@gmail.com>
6555
6556 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6557 CASE_MATHFN_FLOATN for roundeven.
6558 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6559 I387_ROUNDEVEN.
6560 (ix86_mode_needed): Likewise.
6561 (ix86_mode_after): Likewise.
6562 (ix86_mode_entry): Likewise.
6563 (ix86_mode_exit): Likewise.
6564 (ix86_emit_mode_set): Likewise.
6565 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6566 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6567 (ix86_entity): Add I387_ROUNDEVEN.
6568 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6569 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6570 (define_int_iterator): Likewise.
6571 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6572 (define_constant): Define ROUND_ROUNDEVEN mode.
6573 (define_attr): Add roundeven mode for i387_cw.
6574 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6575 * internal-fn.def (ROUNDEVEN): New builtin function.
6576 * optabs.def (roundeven_optab): New optab.
6577
6578 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6579
6580 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6581 for ROUNDEVEN.
6582 * builtins.def: Added function definitions for roundeven function
6583 variants.
6584 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6585 function call. Adjust condition for floor, ceil, trunc and round.
6586 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6587 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6588 (integer_valued_real_call_p): Added case for roundeven function.
6589 * real.c (is_even): New function. Returns true if real number is even,
6590 otherwise returns false.
6591 (is_halfway_below): New function. Returns true if real number is
6592 halfway between two integers, else return false.
6593 (real_roundeven): New function. Round real number to nearest integer,
6594 rounding halfway cases towards even.
6595 * real.h (real_value): Added descriptive comments. Added function
6596 declaration for roundeven function.
6597 * doc/extend.texi (Other Builtins): List roundeven variants among
6598 functions which can be handled as builtins.
6599
6600 2019-08-26 Richard Biener <rguenther@suse.de>
6601
6602 PR target/91522
6603 PR target/91527
6604 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6605 New member.
6606 (general_scalar_chain::replace_with_subreg): Remove.
6607 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6608 (general_scalar_chain::convert_reg): Adjust signature.
6609 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6610 iterate over all defs of a reg.
6611 (general_scalar_chain::replace_with_subreg): Remove.
6612 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6613 (general_scalar_chain::make_vector_copies): Populate defs_map,
6614 place copy only after defs that are used as vectors in the chain.
6615 (general_scalar_chain::convert_reg): Emit a copy for a specific
6616 def in a specific instruction.
6617 (general_scalar_chain::convert_op): All reg uses are converted here.
6618 (general_scalar_chain::convert_insn): Emit copies for scalar
6619 uses of defs here. Replace uses with the copies we created.
6620 Replace and convert the def. Adjust REG_DEAD notes, remove
6621 REG_EQUIV/EQUAL notes.
6622 (general_scalar_chain::convert_registers): Only handle copies
6623 into the chain here.
6624
6625 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6626
6627 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6628
6629 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6630
6631 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6632 Add nop_convert case.
6633 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6634 Fold all statements if requested.
6635 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6636 Allow to fold all statements.
6637 * tree-vrp.c (class vrp_folder):
6638 Let substitute_and_fold_engine fold all statements.
6639
6640 2019-08-26 Richard Biener <rguenther@suse.de>
6641
6642 PR tree-optimization/91526
6643 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6644 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6645 TODO_update_address_taken.
6646
6647 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6648
6649 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6650 __STDC_HOSTED__.
6651
6652 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6653
6654 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6655 machine mode for unspec_volatile operand.
6656
6657 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6658
6659 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6660 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6661 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6662 (prefer_neon_for_64bits): Remove.
6663 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6664 (tune_params): Remove PREF_NEON_64_FALSE uses.
6665 (arm_option_override): Remove prefer_neon selection code.
6666 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6667 * gcc/config/arm/arm-protos.h (tune_params): Remove
6668 prefer_neon_for_64bits.
6669 (prefer_neon_for_64bits): Remove.
6670
6671 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6672
6673 PR pch/61250
6674 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6675 and issue any diagnostics needed before collecting the pre-PCH
6676 state.
6677
6678 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6679
6680 PR middle-end/91283
6681 * common.opt (fexcess-precision=): Add Optimization flag. Use
6682 flag_excess_precision variable instead of
6683 flag_excess_precision_cmdline.
6684 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6685 member.
6686 (flag_excess_precision): Don't define.
6687 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6688 flag_excess_precision_cmdline. Remove comment.
6689 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6690 and x_flag_excess_precision instead of
6691 frontend_set_flag_excess_precision_cmdline and
6692 x_flag_excess_precision_cmdline.
6693 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6694 x_flag_excess_precision_cmdline.
6695 * toplev.c (init_excess_precision): Remove.
6696 (lang_dependent_init_target): Don't call it.
6697
6698 2019-08-23 Martin Liska <mliska@suse.cz>
6699
6700 * lto-wrapper.c (run_gcc): When setting jobserver
6701 set also parallel to 1. This was done so before r273908.
6702
6703 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6704
6705 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6706 (cortex-a76ae): Likewise.
6707 (cortex-a77): Likewise
6708 * config/arm/arm-tables.opt: Regenerate.
6709 * config/arm/arm-tune.md: Likewise.
6710 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6711 cortex-a77 CPU options.
6712
6713 2019-08-23 Martin Liska <mliska@suse.cz>
6714
6715 * profile.c (instrument_values): Do not set
6716 0 as last argument.
6717 * tree-profile.c (gimple_gen_interval_profiler): Remove
6718 last argument.
6719 (gimple_gen_pow2_profiler): Likewise.
6720 (gimple_gen_topn_values_profiler): Likewise.
6721 (gimple_gen_ic_profiler): Likewise.
6722 (gimple_gen_time_profiler): Likewise.
6723 (gimple_gen_average_profiler): Likewise.
6724 (gimple_gen_ior_profiler): Likewise.
6725 * value-prof.c (dump_histogram_value): Use default
6726 in switch statement instead of HIST_TYPE_MAX.
6727 (stream_in_histogram_value): Likewise.
6728 (gimple_duplicate_stmt_histograms): Do not
6729 use NULL for implicitly set arguments.
6730 (gimple_divmod_values_to_profile): Do not use
6731 reserve+quick_push.
6732 (gimple_indirect_call_to_profile): Likewise.
6733 (gimple_find_values_to_profile): Use implicit
6734 function call arguments.
6735 * value-prof.h (gimple_alloc_histogram_value):
6736 Set default values.
6737 (gimple_gen_interval_profiler): Remove last argument.
6738 (gimple_gen_pow2_profiler): Likewise.
6739 (gimple_gen_topn_values_profiler): Likewise.
6740 (gimple_gen_ic_profiler): Likewise.
6741 (gimple_gen_time_profiler): Likewise.
6742 (gimple_gen_average_profiler): Likewise.
6743 (gimple_gen_ior_profiler): Likewise.
6744
6745 2019-08-22 Martin Sebor <msebor@redhat.com>
6746
6747 PR middle-end/91490
6748 * builtins.c (c_strlen): Rename argument and introduce new local.
6749 Set no-warning bit on original argument.
6750 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6751 Fold empty and zero constructors into empty strings.
6752 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6753 for missing initializers.
6754 * tree.c (build_string_literal): Handle optional argument.
6755 * tree.h (build_string_literal): Add defaulted argument.
6756 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6757 no-warning bit on original expression.
6758
6759 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6760
6761 PR target/91481
6762 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6763 and UNSPEC_DARN_RAW.
6764 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6765 UNSPECV_DARN_RAW.
6766 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6767 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6768 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6769
6770 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6771
6772 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6773 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6774 * config/rs6000/rs6000.md (unspec): ... here.
6775 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6776 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6777 cmpeqb, *cmpeqb_internal): Delete, move to...
6778 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6779 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6780 cmpeqb, *cmpeqb_internal): ... here.
6781
6782 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6783
6784 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6785 intrinsics if __ARM_FP.
6786 Use __ARM_FEATURE_CRC32 ifdef guard.
6787
6788 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6789
6790 * config/arm/arm.md (neon_for_64bits): Remove.
6791 (avoid_neon_for_64bits): Remove.
6792 (arm_adddi3): Always split early.
6793 (arm_subdi3): Always split early.
6794 (negdi2): Remove Neon expansion.
6795 (split zero_extend): Split before reload.
6796 (split sign_extend): Split before reload.
6797
6798 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6799
6800 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6801 (qhs_extenddi_cstr): Likewise.
6802 * config/arm/arm.md (ashldi3): Always expand early.
6803 (ashlsi3): Likewise.
6804 (ashrsi3): Likewise.
6805 (zero_extend<mode>di2): Remove Neon variants.
6806 (extend<mode>di2): Likewise.
6807 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6808 (signed_shift_di3_neon): Likewise.
6809 (unsigned_shift_di3_neon): Likewise.
6810 (ashrdi3_neon_imm_noclobber): Likewise.
6811 (lshrdi3_neon_imm_noclobber): Likewise.
6812 (<shift>di3_neon): Likewise.
6813 (split extend): Remove DI extend split patterns.
6814
6815 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6816
6817 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6818 (split not): Add DImode not splitter.
6819 (anddi3): Remove pattern.
6820 (anddi3_insn): Likewise.
6821 (anddi_zesidi_di): Likewise.
6822 (anddi_sesdi_di): Likewise.
6823 (anddi_notdi_di): Likewise.
6824 (anddi_notzesidi_di): Likewise.
6825 (anddi_notsesidi_di): Likewise.
6826 (iordi3): Likewise.
6827 (iordi3_insn): Likewise.
6828 (iordi_zesidi_di): Likewise.
6829 (iordi_sesidi_di): Likewise.
6830 (xordi3): Likewise.
6831 (xordi3_insn): Likewise.
6832 (xordi_sesidi_di): Likewise.
6833 (xordi_zesidi_di): Likewise.
6834 (one_cmpldi2): Likewise.
6835 (one_cmpldi2_insn): Likewise.
6836 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6837 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6838 alternative.
6839 (iwmmxt_xordi3): Likewise.
6840 (iwmmxt_anddi3): Likewise.
6841 * config/arm/neon.md (orndi3_neon): Remove pattern.
6842 (anddi_notdi_di): Likewise.
6843 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6844 (arm_iordi_operand_neon): Likewise.
6845 (arm_xordi_operand_neon): Likewise.
6846 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6847 (iordi_notzesidi_di): Likewise.
6848 (iordi_notdi_zesidi): Likewise.
6849 (iordi_notsesidi_di): Likewise.
6850
6851 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6852
6853 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6854 insn.
6855 (iorsi3_compare0_scratch): Likewise.
6856
6857 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6858
6859 * config/aarch64/aarch64-simd-builtins.def:
6860 (ld1x4): New.
6861 (st1x4): Likewise.
6862 * config/aarch64/aarch64-simd.md:
6863 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6864 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6865 (aarch64_ld1_x4_<mode>): Likewise.
6866 (aarch64_st1_x4_<mode>): Likewise.
6867 * config/aarch64/arm_neon.h:
6868 (vld1_s8_x4): New function.
6869 (vld1q_s8_x4): Likewise.
6870 (vld1_s16_x4): Likewise.
6871 (vld1q_s16_x4): Likewise.
6872 (vld1_s32_x4): Likewise.
6873 (vld1q_s32_x4): Likewise.
6874 (vld1_u8_x4): Likewise.
6875 (vld1q_u8_x4): Likewise.
6876 (vld1_u16_x4): Likewise.
6877 (vld1q_u16_x4): Likewise.
6878 (vld1_u32_x4): Likewise.
6879 (vld1q_u32_x4): Likewise.
6880 (vld1_f16_x4): Likewise.
6881 (vld1q_f16_x4): Likewise.
6882 (vld1_f32_x4): Likewise.
6883 (vld1q_f32_x4): Likewise.
6884 (vld1_p8_x4): Likewise.
6885 (vld1q_p8_x4): Likewise.
6886 (vld1_p16_x4): Likewise.
6887 (vld1q_p16_x4): Likewise.
6888 (vld1_s64_x4): Likewise.
6889 (vld1_u64_x4): Likewise.
6890 (vld1_p64_x4): Likewise.
6891 (vld1q_s64_x4): Likewise.
6892 (vld1q_u64_x4): Likewise.
6893 (vld1q_p64_x4): Likewise.
6894 (vld1_f64_x4): Likewise.
6895 (vld1q_f64_x4): Likewise.
6896 (vst1_s8_x4): Likewise.
6897 (vst1q_s8_x4): Likewise.
6898 (vst1_s16_x4): Likewise.
6899 (vst1q_s16_x4): Likewise.
6900 (vst1_s32_x4): Likewise.
6901 (vst1q_s32_x4): Likewise.
6902 (vst1_u8_x4): Likewise.
6903 (vst1q_u8_x4): Likewise.
6904 (vst1_u16_x4): Likewise.
6905 (vst1q_u16_x4): Likewise.
6906 (vst1_u32_x4): Likewise.
6907 (vst1q_u32_x4): Likewise.
6908 (vst1_f16_x4): Likewise.
6909 (vst1q_f16_x4): Likewise.
6910 (vst1_f32_x4): Likewise.
6911 (vst1q_f32_x4): Likewise.
6912 (vst1_p8_x4): Likewise.
6913 (vst1q_p8_x4): Likewise.
6914 (vst1_p16_x4): Likewise.
6915 (vst1q_p16_x4): Likewise.
6916 (vst1_s64_x4): Likewise.
6917 (vst1_u64_x4): Likewise.
6918 (vst1_p64_x4): Likewise.
6919 (vst1q_s64_x4): Likewise.
6920 (vst1q_u64_x4): Likewise.
6921 (vst1q_p64_x4): Likewise.
6922 (vst1_f64_x4): Likewise.
6923 (vst1q_f64_x4): Likewise.
6924
6925 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6926
6927 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6928
6929 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6930 Richard Sandiford <richard.sandiford@arm.com>
6931
6932 PR target/88839
6933 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6934 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6935
6936 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6937
6938 PR target/90724
6939 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6940 in reg if it fails aarch64_plus_operand predicate.
6941
6942 2019-08-21 Richard Biener <rguenther@suse.de>
6943
6944 PR tree-optimization/91482
6945 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6946 BUILT_IN_ASSUME_ALIGNED calls.
6947
6948 2019-08-21 Richard Biener <rguenther@suse.de>
6949
6950 PR target/91498
6951 PR target/91503
6952 * config/i386/i386-features.c
6953 (general_scalar_chain::make_vector_copies): Copy stack temporary
6954 rtx when using it multiple times.
6955 (general_scalar_chain::convert_reg): Likewise.
6956
6957 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6958
6959 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6960
6961 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6962
6963 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6964 catch more redundant zero initialization cases.
6965 (dse_dom_walker::dse_optimize_stmt): Likewise.
6966
6967 2019-08-20 Richard Biener <rguenther@suse.de>
6968
6969 PR lto/91307
6970 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6971 by collect2 when targetm.have_ctors_dtors which avoids dragging
6972 in temporary filenames from LTO input objects.
6973
6974 2019-08-20 Richard Biener <rguenther@suse.de>
6975
6976 PR tree-optimization/37242
6977 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6978 to (T)a + (T)b if we know that a + b does not overflow.
6979
6980 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6981
6982 PR rtl-optimization/91347
6983 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6984 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6985
6986 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6987
6988 * calls.h (function_arg_info): Add a pass_by_reference field,
6989 defaulting to false.
6990 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6991 when applying pass-by-reference semantics.
6992 (initialize_argument_information): Likewise.
6993 (emit_library_call_value_1): Likewise.
6994 * function.c (assign_parm_data_one): Remove passed_pointer field.
6995 (assign_parm_find_data_types): Don't set it.
6996 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6997 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6998 arg.pass_by_reference instead of passed_pointer.
6999
7000 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7001
7002 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
7003 into a single function_arg_info, updating its fields when we
7004 apply pass-by-reference and promotion semantics. Use the
7005 function_arg_info to track the mode rather than keeping it in
7006 a separate local variable.
7007 (initialize_argument_information): Likewise. Base the final
7008 arg_to_skip on this new function_arg_info rather than creating
7009 a new one from scratch.
7010
7011 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7012
7013 * function.c (assign_parm_data_one): Replace passed_type,
7014 promoted_mode and named_arg with a function_arg_info field.
7015 (assign_parm_find_data_types): Remove local variables and
7016 assign directly to "data". Make data->passed_mode shadow
7017 data->arg.mode until promotion, then assign the promoted
7018 mode to data->arg.mode.
7019 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
7020 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
7021 (assign_parm_remove_parallels, assign_parm_setup_block_p)
7022 (assign_parm_setup_block, assign_parm_setup_reg)
7023 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
7024 arg.mode instead of promoted_mode, arg.type instead of passed_type
7025 and arg.named instead of named_arg. Use data->arg for
7026 function_arg_info structures that had the field values passed_type,
7027 promoted_mode and named_arg. Base other function_arg_infos on
7028 data->arg, changing the necessary properties.
7029
7030 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7031
7032 * calls.h (apply_pass_by_reference_rules): Declare.
7033 * calls.c (apply_pass_by_reference_rules): New function.
7034 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
7035 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
7036 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7037 * function.c (assign_parm_find_data_types): Likewise.
7038 * var-tracking.c (prepare_call_arguments): Likewise.
7039
7040 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7041
7042 * target.def (must_pass_in_stack): Take a function_arg_info instead
7043 of a mode and a type.
7044 * doc/tm.texi: Regenerate.
7045 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
7046 instead of a mode and a type.
7047 (must_pass_in_stack_var_size_or_pad): Likewise.
7048 * calls.c (must_pass_in_stack_var_size): Likewise.
7049 (must_pass_in_stack_var_size_or_pad): Likewise.
7050 (initialize_argument_information): Update call to
7051 targetm.calls.must_pass_in_stack.
7052 (must_pass_va_arg_on_stack): Likewise.
7053 * function.c (assign_parm_find_entry_rtl): Likewise.
7054 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
7055 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7056 (alpha_function_arg_advance): Likewise.
7057 * config/cr16/cr16.c (cr16_function_arg): Likewise.
7058 (cr16_function_arg_advance): Likewise.
7059 * config/cris/cris.c (cris_pass_by_reference): Likewise.
7060 (cris_arg_partial_bytes): Likewise.
7061 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7062 * config/lm32/lm32.c (lm32_function_arg): Likewise.
7063 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
7064 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
7065 * config/mips/mips.c (mips_pass_by_reference): Likewise.
7066 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
7067 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
7068 * config/sh/sh.c (sh_pass_by_reference): Likewise.
7069 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7070 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7071 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
7072 instead of a mode and a type.
7073 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
7074 (fr30_num_arg_regs): Likewise.
7075 (fr30_setup_incoming_varargs): Update calls accordingly.
7076 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7077 (fr30_function_arg_advance): Likewise.
7078 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
7079 instead of a mode and a type.
7080 * config/gcn/gcn.c (num_arg_regs): Likewise.
7081 (gcn_function_arg, gcn_function_arg_advance): Update calls to
7082 num_arg_regs and targetm.calls.must_pass_in_stack.
7083 (gcn_arg_partial_bytes): Likewise.
7084 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
7085 function_arg_info instead of a mode and a type.
7086 (classify_argument): Update call accordingly.
7087 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
7088 function_arg_info instead of a mode and a type.
7089 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
7090 Likewise.
7091 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
7092 (rs6000_parm_needs_stack): Update call accordingly.
7093 (setup_incoming_varargs): Likewise.
7094
7095 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7096
7097 * target.def (callee_copies): Take a function_arg_info instead
7098 of a mode, type and named flag.
7099 * doc/tm.texi: Regenerate.
7100 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
7101 instead of a mode, type and named flag.
7102 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7103 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7104 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7105 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
7106 instead of a mode, type and named flag.
7107 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
7108 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7109 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
7110 * calls.h (reference_callee_copied): Take a function_arg_info
7111 instead of a mode, type and named flag.
7112 * calls.c (reference_callee_copied): Likewise.
7113 (initialize_argument_information): Update call accordingly.
7114 (emit_library_call_value_1): Likewise.
7115 * function.c (gimplify_parameters): Likewise.
7116 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
7117 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
7118 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
7119 * config/c6x/c6x.c (c6x_callee_copies): Delete.
7120 (TARGET_CALLEE_COPIES): Define to
7121 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7122 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
7123 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7124 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7125 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
7126 instead of a mode, type and named flag.
7127 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
7128 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7129 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7130 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
7131 * config/msp430/msp430.c (msp430_callee_copies): Delete.
7132 (TARGET_CALLEE_COPIES): Define to
7133 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
7134 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
7135 instead of a mode, type and named flag.
7136 * config/sh/sh.c (sh_callee_copies): Likewise.
7137 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
7138 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
7139 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
7140
7141 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7142
7143 * target.def (function_arg_advance): Take a function_arg_info instead
7144 of a mode, type and named flag.
7145 * doc/tm.texi: Regenerate.
7146 * targhooks.h (default_function_arg_advance): Take a function_arg_info
7147 instead of a mode, type and named flag.
7148 * targhooks.c (default_function_arg_advance): Likewise.
7149 * calls.c (initialize_argument_information): Update call to
7150 targetm.calls.function_arg_advance.
7151 (emit_library_call_value_1): Likewise.
7152 * dse.c (get_call_args): Likewise.
7153 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7154 * function.c (assign_parms, gimplify_parameters): Likewise.
7155 * var-tracking.c (prepare_call_arguments): Likewise.
7156 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
7157 function_arg_info instead of a mode, type and named flag.
7158 (aarch64_setup_incoming_varargs): Update call accordingly.
7159 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
7160 function_arg_info instead of a mode, type and named flag.
7161 (alpha_setup_incoming_varargs): Update call accordingly.
7162 * config/arc/arc.c (arc_function_arg_advance): Take a
7163 function_arg_info instead of a mode, type and named flag.
7164 (arc_setup_incoming_varargs): Update call accordingly.
7165 * config/arm/arm.c (arm_function_arg_advance): Take a
7166 function_arg_info instead of a mode, type and named flag.
7167 (cmse_func_args_or_return_in_stack): Update call accordingly.
7168 (arm_function_ok_for_sibcall): Likewise.
7169 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7170 * config/avr/avr.c (avr_function_arg_advance): Take a
7171 function_arg_info instead of a mode, type and named flag.
7172 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
7173 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
7174 (c6x_call_saved_register_used): Update call accordingly.
7175 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
7176 function_arg_info instead of a mode, type and named flag.
7177 * config/cris/cris.c (cris_function_arg_advance): Likewise.
7178 * config/csky/csky.c (csky_function_arg_advance): Likewise.
7179 (csky_setup_incoming_varargs): Update call accordingly.
7180 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
7181 function_arg_info instead of a mode, type and named flag.
7182 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
7183 * config/frv/frv.c (frv_function_arg_advance): Likewise.
7184 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
7185 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
7186 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
7187 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7188 (ix86_setup_incoming_varargs): Update call accordingly.
7189 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
7190 function_arg_info instead of a mode, type and named flag.
7191 (ia64_setup_incoming_varargs): Update call accordingly.
7192 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
7193 function_arg_info instead of a mode, type and named flag.
7194 (iq2000_expand_prologue): Update call accordingly.
7195 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
7196 function_arg_info instead of a mode, type and named flag.
7197 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
7198 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
7199 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7200 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
7201 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7202 Likewise.
7203 (microblaze_expand_prologue): Update call accordingly.
7204 * config/mips/mips.c (mips_function_arg_advance): Take a
7205 function_arg_info instead of a mode, type and named flag.
7206 (mips_setup_incoming_varargs): Update call accordingly.
7207 (mips_output_args_xfer): Likewise.
7208 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
7209 function_arg_info instead of a mode, type and named flag.
7210 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
7211 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
7212 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
7213 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
7214 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
7215 (nios2_setup_incoming_varargs): Update call accordingly.
7216 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
7217 function_arg_info instead of a mode, type and named flag.
7218 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
7219 * config/pa/pa.c (pa_function_arg_advance): Likewise.
7220 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
7221 * config/pru/pru.c (pru_function_arg_advance): Likewise.
7222 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
7223 (riscv_setup_incoming_varargs): Update call accordingly.
7224 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
7225 function_arg_info instead of a mode, type and named flag.
7226 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
7227 Likewise.
7228 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
7229 (rs6000_parm_needs_stack): Update call accordingly.
7230 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
7231 instead of a mode, type and named flag.
7232 * config/s390/s390.c (s390_function_arg_advance): Likewise.
7233 (s390_call_saved_register_used): Update call accordingly.
7234 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
7235 instead of a mode, type and named flag.
7236 (sh_output_mi_thunk): Update call accordingly.
7237 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
7238 function_arg_info instead of a mode, type and named flag.
7239 * config/spu/spu.c (spu_function_arg_advance): Likewise.
7240 (spu_setup_incoming_varargs): Update call accordingly.
7241 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
7242 function_arg_info instead of a mode, type and named flag.
7243 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
7244 (tilegx_setup_incoming_varargs): Update call accordingly.
7245 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
7246 function_arg_info instead of a mode, type and named flag.
7247 (tilegx_setup_incoming_varargs): Update call accordingly.
7248 * config/v850/v850.c (v850_function_arg_advance): Take a
7249 function_arg_info instead of a mode, type and named flag.
7250 * config/vax/vax.c (vax_function_arg_advance): Likewise.
7251 * config/visium/visium.c (visium_function_arg_advance): Likewise.
7252 (visium_setup_incoming_varargs): Update call accordingly.
7253 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
7254 function_arg_info instead of a mode, type and named flag.
7255
7256 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7257
7258 * target.def (function_arg, function_incoming_arg): Take a
7259 function_arg_info instead of a mode, tree and named flag.
7260 * doc/tm.texi: Regenerate.
7261 * targhooks.h (default_function_arg): Take a function_arg_info
7262 instead of a mode, tree and named flag.
7263 (default_function_incoming_arg): Likewise.
7264 * targhooks.c (default_function_arg): Likewise.
7265 (default_function_incoming_arg): Likewise.
7266 * calls.h (function_arg_info::end_marker_p): New function.
7267 (function_arg_info::end_marker): Likewise.
7268 * calls.c (prepare_call_address, initialize_argument_information)
7269 (expand_call, emit_library_call_value_1): Update calls to
7270 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
7271 * dse.c: Include calls.h.
7272 (get_call_args): Update call to targetm.calls.function_arg.
7273 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7274 * var-tracking.c (prepare_call_arguments): Likewise.
7275 * function.c (assign_parm_find_entry_rtl): Update call to
7276 targetm.calls.function_incoming_arg.
7277 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
7278 function_arg_info instead of a mode, tree and named flag.
7279 * config/alpha/alpha.c (alpha_function_arg): Likewise.
7280 * config/arc/arc.c (arc_function_arg): Likewise.
7281 * config/arm/arm.c (arm_function_arg): Likewise.
7282 (cmse_func_args_or_return_in_stack): Update call accordingly.
7283 (arm_function_ok_for_sibcall): Likewise.
7284 (cmse_nonsecure_call_clear_caller_saved): Likewise.
7285 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
7286 instead of a mode, tree and named flag.
7287 * config/bfin/bfin.c (bfin_function_arg): Likewise.
7288 * config/c6x/c6x.c (c6x_function_arg): Likewise.
7289 (c6x_call_saved_register_used): Update call accordingly.
7290 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
7291 instead of a mode, tree and named flag.
7292 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
7293 (cris_function_arg_1): Likewise.
7294 * config/csky/csky.c (csky_function_arg): Likewise.
7295 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
7296 * config/fr30/fr30.c (fr30_function_arg): Likewise.
7297 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
7298 (frv_function_arg_1): Likewise.
7299 * config/ft32/ft32.c (ft32_function_arg): Likewise.
7300 * config/gcn/gcn.c (gcn_function_arg): Likewise.
7301 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7302 * config/i386/i386.c (ix86_function_arg): Likewise.
7303 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
7304 (ia64_function_arg_1): Likewise.
7305 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
7306 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
7307 accordingly.
7308 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
7309 instead of a mode, tree and named flag.
7310 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7311 * config/m32r/m32r.c (m32r_function_arg): Likewise.
7312 * config/m68k/m68k.c (m68k_function_arg): Likewise.
7313 * config/mcore/mcore.c (mcore_function_arg): Likewise.
7314 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
7315 (microblaze_expand_prologue): Update call accordingly.
7316 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
7317 instead of a mode, tree and named flag.
7318 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
7319 (mmix_function_arg_1): Likewise.
7320 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
7321 * config/moxie/moxie.c (moxie_function_arg): Likewise.
7322 * config/msp430/msp430.c (msp430_function_arg): Likewise.
7323 * config/nds32/nds32.c (nds32_function_arg): Likewise.
7324 * config/nios2/nios2.c (nios2_function_arg): Likewise.
7325 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
7326 (nvptx_function_incoming_arg): Likewise.
7327 * config/or1k/or1k.c (or1k_function_arg): Likewise.
7328 * config/pa/pa.c (pa_function_arg): Likewise.
7329 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7330 * config/pru/pru.c (pru_function_arg): Likewise.
7331 * config/riscv/riscv.c (riscv_function_arg): Likewise.
7332 * config/rl78/rl78.c (rl78_function_arg): Likewise.
7333 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
7334 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
7335 (rs6000_parm_needs_stack): Update call accordingly.
7336 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
7337 instead of a mode, tree and named flag.
7338 * config/s390/s390.c (s390_function_arg): Likewise.
7339 (s390_call_saved_register_used): Update call accordingly.
7340 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
7341 instead of a mode, tree and named flag.
7342 (sh_output_mi_thunk): Update call accordingly.
7343 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
7344 (sparc_function_incoming_arg): Take a function_arg_info instead of
7345 a mode, tree and named flag.
7346 * config/spu/spu.c (spu_function_arg): Likewise.
7347 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
7348 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
7349 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
7350 * config/v850/v850.c (v850_function_arg): Likewise.
7351 * config/vax/vax.c (vax_function_arg): Likewise.
7352 * config/visium/visium.c (visium_function_arg): Likewise.
7353 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
7354 (xtensa_function_incoming_arg): Likewise.
7355
7356 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7357
7358 * target.def (setup_incoming_varargs): Take a function_arg_info
7359 instead of a mode and tree.
7360 * doc/tm.texi: Regenerate.
7361 * targhooks.h (default_setup_incoming_varargs): Take a
7362 function_arg_info instead of a mode and tree.
7363 * targhooks.c (default_setup_incoming_varargs): Likewise.
7364 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
7365 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7366 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7367 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
7368 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
7369 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7370 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
7371 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7372 Likewise.
7373 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7374 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7375 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7376 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7377 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7378 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7379 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7380 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7381 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7382 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7383 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7384 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7385 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7386 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7387 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7388 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7389 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7390 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7391 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7392 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7393 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7394 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7395 * function.c (assign_parms_setup_varargs): Update call to
7396 targetm.calls.setup_incoming_varargs.
7397
7398 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7399
7400 * target.def (pass_by_reference): Take a function_arg_info instead
7401 of a mode, type and named flag.
7402 * doc/tm.texi: Regenerate.
7403 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7404 accordingly.
7405 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7406 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7407 function_arg_info instead of a mode, type and named flag.
7408 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7409 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7410 mode, type and named flag.
7411 * calls.c (pass_by_reference): Likewise.
7412 (pass_va_arg_by_reference): Update call accordingly.
7413 (initialize_argument_information): Likewise.
7414 (emit_library_call_value_1): Likewise.
7415 * function.c (assign_parm_find_data_types): Likewise.
7416 * var-tracking.c (prepare_call_arguments): Likewise.
7417 * stor-layout.c: Include calls.h.
7418 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7419 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7420 function_arg_info instead of a mode, type and named flag.
7421 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7422 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7423 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7424 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7425 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7426 (c6x_call_saved_register_used): Update call to pass_by_reference.
7427 * config/cris/cris.c (cris_pass_by_reference): Take a
7428 function_arg_info instead of a mode, type and named flag.
7429 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7430 function_arg_info instead of a mode, type and named flag.
7431 (epiphany_arg_partial_bytes): Update call accordingly.
7432 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7433 function_arg_info instead of a mode, type and named flag.
7434 (ft32_arg_partial_bytes): Update call accordingly.
7435 * config/i386/i386.c (ix86_pass_by_reference): Take a
7436 function_arg_info instead of a mode, type and named flag.
7437 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7438 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7439 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7440 (m32r_return_in_memory): Update call accordingly.
7441 * config/mips/mips.c (mips_pass_by_reference): Take a
7442 function_arg_info instead of a mode, type and named flag.
7443 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7444 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7445 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7446 (moxie_arg_partial_bytes): Update call accordingly.
7447 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7448 function_arg_info instead of a mode, type and named flag.
7449 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7450 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7451 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7452 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7453 (riscv_return_in_memory): Update call accordingly.
7454 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7455 function_arg_info instead of a mode, type and named flag.
7456 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7457 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7458 * config/s390/s390.c (s390_pass_by_reference): Take a
7459 function_arg_info instead of a mode, type and named flag.
7460 (s390_call_saved_register_used): Update call accordingly.
7461 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7462 instead of a mode, type and named flag.
7463 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7464 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7465 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7466 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7467 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7468 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7469
7470 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7471
7472 * target.def (arg_partial_bytes): Take a function_arg_info instead
7473 of a mode, type and named flag.
7474 * doc/tm.texi: Regenerate.
7475 * target.h (function_arg_info): Declare.
7476 * calls.h (function_arg_info): New class.
7477 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7478 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7479 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7480 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7481 * calls.c (initialize_argument_information): Update call to
7482 targetm.calls.partial_bytes.
7483 (emit_library_call_value_1): Likewise.
7484 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7485 * function.c (assign_parm_find_entry_rtl): Likewise.
7486 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7487 function_arg_info instead of a mode, type and named flag.
7488 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7489 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7490 (cmse_func_args_or_return_in_stack): Update accordingly.
7491 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7492 function_arg_info instead of a mode, type and named flag.
7493 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7494 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7495 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7496 * config/fr30/fr30.c: Include calls.h.
7497 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7498 type and named flag.
7499 * config/frv/frv.c: Include calls.h.
7500 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7501 type and named flag.
7502 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7503 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7504 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7505 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7506 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7507 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7508 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7509 Likewise.
7510 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7511 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7512 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7513 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7514 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7515 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7516 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7517 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7518 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7519 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7520 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7521 (rs6000_parm_needs_stack): Update call accordingly.
7522 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7523 function_arg_info instead of a mode, type and named flag.
7524 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7525 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7526
7527 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7528
7529 * calls.h (must_pass_va_arg_in_stack): Declare.
7530 * calls.c (must_pass_va_arg_in_stack): New function.
7531 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7532 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7533 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7534 Likewise.
7535 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7536
7537 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7538
7539 * calls.h (pass_va_arg_by_reference): Declare.
7540 * calls.c (pass_va_arg_by_reference): New function.
7541 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7542 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7543 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7544 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7545 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7546 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7547 (mips_gimplify_va_arg_expr): Likewise.
7548 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7549 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7550 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7551 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7552 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7553 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7554 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7555 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7556 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7557 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7558 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7559
7560 2019-08-20 Richard Biener <rguenther@suse.de>
7561
7562 PR target/91498
7563 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7564 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7565 (convert_scalars_to_vector): Add timode_p parameter and use it
7566 to guard TImode-only operation.
7567 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7568 (pass_stv::execute): Pass down timode_p.
7569
7570 2019-08-20 Lili Cui <lili.cui@intel.com>
7571
7572 * common/config/i386/i386-common.c
7573 (processor_names): Add tigerlake and cooperlake.
7574 (processor_alias_table): Add tigerlake and cooperlake.
7575 * config.gcc: Add -march=tigerlake and cooperlake.
7576 * config/i386/driver-i386.c
7577 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7578 Add "has_avx" to classify processor.
7579 * config/i386/i386-builtins.c (processor_model) :
7580 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7581 (arch_names_table): Add tigerlake and cooperlake.
7582 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7583 and PROCESSOR_COOPERLAKE.
7584 * config/i386/i386-c.c
7585 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7586 * config/i386/i386-options.c
7587 (m_TIGERLAKE) : Define.
7588 (m_COOPERLAKE) : Ditto.
7589 (m_CORE_AVX512): Ditto.
7590 (processor_cost_table): Add cascadelake.
7591 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7592 * config/i386/i386.h
7593 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7594 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7595 (PTA_MOVDIRI): Ditto.
7596 (PTA_MOVDIR64B): Ditto.
7597 (PTA_COOPERLAKE) : Ditto.
7598 (PTA_TIGERLAKE) : Ditto.
7599 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7600 * doc/extend.texi: Add tigerlake and cooperlake.
7601 * doc/invoke.texi: Add tigerlake and cooperlake.
7602
7603 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7604
7605 * doc/install.texi (Specific, alpha): Remove note to use
7606 binutils 2.11.2 or later.
7607
7608 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7609
7610 PR middle-end/89544
7611 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7612 when possible.
7613
7614 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7615
7616 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7617 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7618 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7619 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7620 * config/aarch64/constraints.md (Dt): New constraint
7621 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7622
7623 2019-08-19 Richard Biener <rguenther@suse.de>
7624
7625 PR tree-optimization/91403
7626 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7627 cases we can handle with tail-recursion...
7628 (follow_ssa_edge_expr): ... here. Do so.
7629
7630 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7631
7632 PR target/91441
7633 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7634 implemented for -fsanitize=kernel-address, and merge check logic
7635 with -fsanitize=address.
7636
7637 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7638
7639 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7640 for cpu and machine. Factor 64/32b builtins.
7641
7642 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7643
7644 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7645 gone, point to sourceforge.net.
7646
7647 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7648
7649 * doc/ux.texi (User Experience Guidelines): Update reference.
7650
7651 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7652
7653 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7654 not LGPL".
7655
7656 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7657
7658 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7659 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7660
7661 2019-08-16 Martin Sebor <msebor@redhat.com>
7662
7663 * tree.def (TYPE_SIZE): Clarify.
7664 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7665
7666 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7667
7668 PR tree-optimization/91109
7669 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7670 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7671 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7672
7673 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7674
7675 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7676 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7677 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7678 (uavg<mode>3_ceil): New expander.
7679 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7680 mode iterator when creating CONST1_RTX.
7681 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7682 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7683 mode iterator for const1_operand predicate.
7684
7685 2019-08-16 Richard Biener <rguenther@suse.de>
7686
7687 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7688 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7689 follow_ssa_edge.
7690 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7691 (analyze_evolution_in_loop): Likewise.
7692 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7693 (follow_ssa_edge_expr): ... here. Refactor code.
7694
7695 2019-08-16 Richard Biener <rguenther@suse.de>
7696
7697 PR target/91469
7698 * config/i386/i386-features.c
7699 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7700
7701 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7702
7703 PR other/91255
7704 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7705 only if subst_name matches curr_attr string.
7706
7707 2019-08-16 Richard Biener <rguenther@suse.de>
7708
7709 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7710 stmt at gsi_p, instead replace it with a NOP removed later.
7711 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7712 that became dead because of that.
7713
7714 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7715
7716 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7717 for which we can't represent a range.
7718 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7719 set_varying.
7720 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7721 Set VR_UNDEFINED if type is not supported.
7722 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7723 * tree-vrp.c (value_range_base::check): Assert that a varying has
7724 min/max set.
7725 (value_range_base::equal_p): Early bail for undefines.
7726 (value_range_base::set_varying): Accept a type.
7727 (value_range::set_varying): Same.
7728 (value_range_base::type): VARYING can have a type, while UNDEFINE
7729 is typeless.
7730 (value_range_base::dump): Print type for VARYING nodes.
7731 (value_range_base::set): Add type to VARYING.
7732 (extract_range_from_multiplicative_op): Pass type to set_varying.
7733 (extract_range_from_binary_expr): Same.
7734 (value_range_base::intersect_helper): Same.
7735 (value_range_base::union_helper): Same.
7736 (value_range_base::normalize_symbolics): Same.
7737 (determine_value_range_1): Same.
7738 * tree-vrp.h (class value_range_base): Add type to set_varying.
7739 Add prototype for dump(void).
7740 Add prototype for supports_type_p.
7741 (class value_range): Add type to set_varying.
7742 Add prototype for dump(void).
7743 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7744 set_varying.
7745 (vr_values::get_lattice_entry): Set varying even if propagation
7746 finished.
7747 Pass type to set_varying.
7748 (vr_values::get_value_range): Remove vr_const_varying.
7749 Reallocate the lattice if needed.
7750 (vr_values::update_value_range): Pass type to set_varying.
7751 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7752 (vr_values::extract_range_from_binary_expr): Same.
7753 (vr_values::extract_range_from_unary_expr): Same.
7754 (vr_values::extract_range_from_cond_expr): Same.
7755 (vr_values::check_for_binary_op_overflow): Same.
7756 (vr_values::extract_range_basic): Same.
7757 (vr_values::extract_range_from_assignment): Same.
7758 (vr_values::vr_values): Increase size of num_vr_values.
7759 (vr_values::extract_range_from_phi_node): Pass type to
7760 set_varying.
7761
7762 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7763
7764 PR target/90878
7765 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7766 for costs of hard register moves.
7767 (ix86_register_move_cost): Likewise.
7768 * config/i386/i386.h (processor_costs): Move costs of hard
7769 register moves to hard_register. Add int_load, int_store,
7770 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7771 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7772 for costs of RTL expressions.
7773 * config/i386/x86-tune-costs.h: Move costs of hard register
7774 moves to hard_register. Duplicate int_load, int_store,
7775 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7776 sse_load, sse_store for costs of RTL expressions.
7777
7778 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7779
7780 * target.def (setup_incoming_vararg_bounds): Remove.
7781 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7782 * doc/tm.texi: Regenerate.
7783 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7784 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7785 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7786 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7787
7788 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7789
7790 MSP430: Fix lines over 80 characters long in
7791 config/msp430/*.{c,h} files
7792
7793 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7794 specifier in string.
7795 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7796 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7797 redundant old comment.
7798 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7799 Split line more than 80 characters long.
7800 * config/msp430/msp430.c (msp430_option_override): Likewise.
7801 (msp430_return_in_memory): Likewise.
7802 (msp430_gimplify_va_arg_expr): Likewise.
7803 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7804 (msp430_legitimate_constant): Likewise.
7805 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7806 (msp430_attr): Likewise.
7807 (msp430_data_attr): Likewise.
7808 (msp430_start_function): Likewise.
7809 (gen_prefix): Likewise.
7810 (msp430_init_sections): Likewise.
7811 (msp430_select_section): Likewise.
7812 (msp430_function_section): Likewise.
7813 (msp430_unique_section): Likewise.
7814 (msp430_output_aligned_decl_common): Likewise.
7815 (msp430_do_not_relax_short_jumps): Likewise.
7816 (msp430_init_builtins): Likewise.
7817 (msp430_expand_delay_cycles): Likewise.
7818 (msp430_expand_prologue): Likewise.
7819 (msp430_expand_epilogue): Likewise.
7820 (msp430_expand_helper): Likewise.
7821 (msp430_split_movsi): Likewise.
7822 (msp430_print_operand): Likewise.
7823 (msp430_return_addr_rtx): Likewise.
7824 (msp430x_extendhisi): Likewise.
7825 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7826 (ASM_SPEC): Likewise.
7827 Remove very obvious comments.
7828 (LIB_SPEC): Split line more than 80 characters long.
7829 (EH_RETURN_HANDLER_RTX): Likewise.
7830 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7831
7832 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7833
7834 MSP430: Fix whitespace errors and incorrect indentation in
7835 config/msp430/*.{c,h} files
7836
7837 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7838 (msp430_select_hwmult_lib): Likewise.
7839 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7840 (msp430_extract_mcu_data): Likewise.
7841 (struct t_msp430_mcu_data): Likewise.
7842 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7843 before left square bracket.
7844 (msp430_option_override): Fix indentation.
7845 (msp430_hard_regno_nregs_with_padding): Likewise.
7846 (msp430_initial_elimination_offset): Likewise.
7847 (msp430_special_register_convention_p): Remove whitespace before left
7848 square bracket and after exclamation mark.
7849 (msp430_evaluate_arg): Likewise.
7850 (msp430_callee_copies): Fix indentation.
7851 (msp430_gimplify_va_arg_expr): Likewise.
7852 (msp430_function_arg_advance): Remove whitespace before left square
7853 bracket.
7854 (reg_ok_for_addr): Likewise.
7855 (msp430_preserve_reg_p): Likewise.
7856 (msp430_compute_frame_info): Likewise.
7857 (msp430_asm_output_addr_const_extra): Add space between function name
7858 and open parenthesis.
7859 (has_section_name): Fix indentation.
7860 (msp430_attr): Remove trailing whitespace.
7861 (msp430_section_attr): Likewise.
7862 (msp430_data_attr): Likewise.
7863 (struct msp430_attribute_table): Fix comment and whitespace.
7864 (msp430_start_function): Remove whitespace before left square bracket.
7865 Add space between function name and open parenthesis.
7866 (msp430_select_section): Remove trailing whitespace.
7867 (msp430_section_type_flags): Remove trailing whitespace.
7868 (msp430_unique_section): Remove space before closing parenthesis.
7869 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7870 (msp430_builtins): Remove whitespace before left square bracket.
7871 (msp430_init_builtins): Fix indentation.
7872 (msp430_expand_prologue): Remove whitespace before left square bracket.
7873 Remove space before closing parenthesis.
7874 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7875 (msp430_split_movsi): Remove space before closing parenthesis.
7876 (helper_function_name_mappings): Fix indentation.
7877 (msp430_use_f5_series_hwmult): Fix whitespace.
7878 (use_32bit_hwmult): Likewise.
7879 (msp430_no_hwmult): Likewise.
7880 (msp430_output_labelref): Remove whitespace before left square bracket.
7881 (msp430_print_operand_raw): Likewise.
7882 (msp430_print_operand_addr): Likewise.
7883 (msp430_print_operand): Add two spaces after '.' in comment.
7884 Fix trailing whitespace.
7885 (msp430x_extendhisi): Fix indentation.
7886 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7887 tab.
7888 (PC_REGNUM): Likewise.
7889 (STACK_POINTER_REGNUM): Likewise.
7890 (CC_REGNUM): Likewise.
7891
7892 2019-08-15 Richard Biener <rguenther@suse.de>
7893
7894 PR target/91454
7895 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7896 helper.
7897 (general_scalar_chain::make_vector_copies): Use it.
7898
7899 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7900
7901 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7902
7903 2019-08-15 Martin Liska <mliska@suse.cz>
7904
7905 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7906 operators with no arguments.
7907 (eliminate_unnecessary_stmts): Likewise here.
7908
7909 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7910
7911 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7912 <case COMPARE>: Revert 2019-08-14 change.
7913 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7914 for (TARGET_64BIT || mode != DImode).
7915
7916 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7917
7918 * tree-vrp.c (value_range_base::set): Merge in code from
7919 value_range_base::set_and_canonicalize.
7920 Enforce canonicalization at set time.
7921 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7922 (value_range_base::set_undefined): Inline call to set().
7923 (value_range_base::set_varying): Same.
7924 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7925 (vrp_val_max): New argument handle_pointers.
7926 (vrp_val_min): Same.
7927 (ranges_from_anti_range): Same.
7928 (extract_range_into_wide_ints): Use tree argument instead of sign
7929 and precision.
7930 (extract_range_from_multiplicative_op): Take in tree type instead
7931 of precision and sign. Adapt function for canonicalized ranges.
7932 (extract_range_from_binary_expr): Pass type to
7933 extract_range_from_multiplicative_op.
7934 Adapt for canonicalized ranges.
7935 (extract_range_from_unary_expr): Same.
7936 (value_range_base::intersect_helper): Adjust for canonicalized
7937 ranges.
7938 (value_range_base::union_helper): Same.
7939 (value_range_base::normalize_symbolics): New.
7940 * tree-vrp.h (class value_range_base): Remove
7941 set_and_canonicalize.
7942 New prototype for normalize_symbolics.
7943 (class value_range): Remove set_and_canonicalize.
7944 (vrp_val_min): Adjust prototype.
7945 (vrp_val_max): Same.
7946 * vr-values.c
7947 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7948 instead of set_and_canonicalize.
7949
7950 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7951
7952 PR middle-end/91444
7953 * tree-vect-stmts.c (vectorizable_call): Check that the function
7954 is a BUILT_IN_MD function before passing it to
7955 targetm.vectorize.builtin_md_vectorized_function.
7956
7957 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7958
7959 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7960 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7961 (aarch64_select_early_remat_modes): Use it.
7962
7963 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7964
7965 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7966 16 for SVE predicates even if they are fixed-length.
7967
7968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7969
7970 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7971 operand order match the MOV /Z alias.
7972
7973 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7974
7975 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7976 the vector pattern as an aarch64_svpattern argument. Update the
7977 overloaded caller accordingly.
7978 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7979 (aarch64_output_sve_vector_inc_dec): Likewise.
7980
7981 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7982
7983 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7984 multiplication case, try to compute VG * (lowest set bit) directly
7985 rather than always basing the multiplication on VG. Use
7986 expand_mult for the multiplication if we can.
7987
7988 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7989
7990 * config/aarch64/aarch64-protos.h
7991 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7992 (aarch64_sve_inc_dec_immediate_p): Rename to...
7993 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7994 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7995 (aarch64_output_sve_scalar_inc_dec): Declare.
7996 (aarch64_output_sve_inc_dec_immediate): Rename to...
7997 (aarch64_output_sve_vector_inc_dec): ...this.
7998 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7999 (aarch64_output_sve_scalar_inc_dec): New functions.
8000 (aarch64_output_sve_addvl_addpl): Remove the base and offset
8001 arguments. Only handle true ADDVL and ADDPL instructions;
8002 don't emit an INC or DEC.
8003 (aarch64_sve_inc_dec_immediate_p): Rename to...
8004 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
8005 (aarch64_output_sve_inc_dec_immediate): Rename to...
8006 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
8007 aarch64_sve_vector_inc_dec_immediate_p.
8008 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
8009 (aarch64_sve_plus_immediate): New predicates.
8010 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
8011 rather than aarch64_sve_addvl_addpl_immediate.
8012 (aarch64_sve_inc_dec_immediate): Rename to...
8013 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
8014 aarch64_sve_vector_inc_dec_immediate_p.
8015 (aarch64_sve_add_operand): Update accordingly.
8016 * config/aarch64/constraints.md (Uai): New constraint.
8017 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
8018 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
8019 operand into a register if it satisfies aarch64_sve_plus_immediate.
8020 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
8021 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
8022 * config/aarch64/aarch64-sve.md (add<mode>3): Call
8023 aarch64_output_sve_vector_inc_dec instead of
8024 aarch64_output_sve_inc_dec_immediate.
8025
8026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8027
8028 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
8029 (UNSPEC_REVW): New constants.
8030 (elem_bits): New mode attribute.
8031 (SVE_INT_UNARY): New int iterator.
8032 (optab): Handle UNSPEC_REV[BHW].
8033 (sve_int_op): New int attribute.
8034 (min_elem_bits): Handle VNx16QI and the predicate modes.
8035 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
8036 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
8037 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
8038 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
8039 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
8040 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
8041 unspecs based on the total width of the reversed data.
8042 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
8043 reinterpret followed by a subreg on big-endian targets.
8044
8045 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8047
8048 * config/aarch64/aarch64-sve.md
8049 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
8050 alternatives in which one of the inputs is in the same register
8051 as the output.
8052
8053 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8054
8055 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
8056 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
8057
8058 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8059
8060 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
8061 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
8062
8063 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8064 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8065
8066 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
8067 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
8068 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
8069
8070 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8071 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8072
8073 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
8074 Add an alternative that uses reversed shifts.
8075
8076 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8077
8078 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
8079 struct.
8080
8081 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8082
8083 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
8084 a commutativity marker.
8085
8086 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8087 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8088
8089 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
8090 (aarch64_prepare_sve_cond_int_fma): Declare.
8091 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
8092 (aarch64_prepare_sve_int_fma): New functions.
8093 (aarch64_prepare_sve_cond_int_fma): Likewise.
8094 * config/aarch64/aarch64-sve.md
8095 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
8096 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
8097 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
8098 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
8099 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
8100 (*madd<mode>): Rename to...
8101 (*fma<mode>4): ...this.
8102 (*msub<mode>): Rename to...
8103 (*fnma<mode>4): ...this.
8104
8105 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8106 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8107
8108 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
8109 Print 2.0 naturally.
8110 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
8111 * config/aarch64/predicates.md
8112 (aarch64_sve_float_negated_arith_immediate): New predicate,
8113 renamed from aarch64_sve_float_arith_with_sub_immediate.
8114 (aarch64_sve_float_arith_with_sub_immediate): Test for both
8115 positive and negative constants.
8116 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
8117 or an aarch64_sve_float_arith_with_sub_immediate.
8118 * config/aarch64/constraints.md (vsN): Use
8119 aarch64_sve_float_negated_arith_immediate.
8120 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
8121 iterator.
8122 (sve_pred_fp_rhs2_immediate): New int attribute.
8123 * config/aarch64/aarch64-sve.md
8124 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
8125 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
8126 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
8127 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
8128 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
8129 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
8130
8131 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8132 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8133
8134 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
8135 (*aarch64_cond_abd<SVE_F:mode>_3)
8136 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
8137
8138 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8139 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8140
8141 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
8142 (*aarch64_cond_<su>abd<mode>_any): New patterns.
8143
8144 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
8145 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8146
8147 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
8148 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
8149 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
8150 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
8151 optabs.
8152 * optabs.h (create_convert_operand_from): Expand comment.
8153 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
8154 when mapping scalar rtxes to vector operands.
8155 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
8156 ashiftrt and lshiftrt.
8157 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
8158 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
8159 (*cond_<optab><mode>_any_const): New patterns.
8160
8161 2019-08-15 Martin Liska <mliska@suse.cz>
8162
8163 PR ipa/91438
8164 * cgraph.c (cgraph_node::remove): When setting
8165 n->origin = NULL for all nested functions, reset
8166 also next_nested.
8167
8168 2019-08-15 Martin Liska <mliska@suse.cz>
8169
8170 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
8171 and next_nested.
8172
8173 2019-08-15 Martin Liska <mliska@suse.cz>
8174
8175 PR ipa/91404
8176 * passes.c (order): Remove.
8177 (uid_hash_t): Likewise).
8178 (remove_cgraph_node_from_order): Remove from set
8179 of pointers (cgraph_node *).
8180 (insert_cgraph_node_to_order): New.
8181 (duplicate_cgraph_node_to_order): New.
8182 (do_per_function_toporder): Register all 3 cgraph hooks.
8183 Skip removed_nodes now as we know about all of them.
8184
8185 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
8186
8187 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
8188 <case E_V8QImode>: Use vector_set path for
8189 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8190 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
8191 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8192
8193 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8194
8195 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
8196
8197 2019-08-14 Martin Sebor <msebor@redhat.com>
8198
8199 PR tree-optimization/91294
8200 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
8201 source length as exact.
8202
8203 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8204
8205 * doc/extend.texi: Add "noinit" attribute documentation.
8206 * doc/sourcebuild.texi: Add noinit effective target documentation.
8207 * varasm.c (default_section_type_flags): Add support for "noinit"
8208 section.
8209 (default_elf_select_section): Add support for "noinit" attribute.
8210 * config/msp430/msp430.c (msp430_attribute_table): Remove
8211 "noinit" entry.
8212
8213 2019-08-14 Richard Biener <rguenther@suse.de>
8214 Uroš Bizjak <ubizjak@gmail.com>
8215
8216 PR target/91154
8217 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
8218 mode arguments.
8219 (scalar_chain::smode): New member.
8220 (scalar_chain::vmode): Likewise.
8221 (dimode_scalar_chain): Rename to...
8222 (general_scalar_chain): ... this.
8223 (general_scalar_chain::general_scalar_chain): Take mode arguments.
8224 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
8225 base with TImode and V1TImode.
8226 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
8227 (general_scalar_chain::vector_const_cost): Adjust for SImode
8228 chains.
8229 (general_scalar_chain::compute_convert_gain): Likewise. Add
8230 {S,U}{MIN,MAX} support.
8231 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
8232 (general_scalar_chain::make_vector_copies): Likewise. Handle
8233 non-DImode chains appropriately.
8234 (general_scalar_chain::convert_reg): Likewise.
8235 (general_scalar_chain::convert_op): Likewise.
8236 (general_scalar_chain::convert_insn): Likewise. Add
8237 fatal_insn_not_found if the result is not recognized.
8238 (convertible_comparison_p): Pass in the scalar mode and use that.
8239 (general_scalar_to_vector_candidate_p): Likewise. Rename from
8240 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
8241 (scalar_to_vector_candidate_p): Remove by inlining into single
8242 caller.
8243 (general_remove_non_convertible_regs): Rename from
8244 dimode_remove_non_convertible_regs.
8245 (remove_non_convertible_regs): Remove by inlining into single caller.
8246 (convert_scalars_to_vector): Handle SImode and DImode chains
8247 in addition to TImode chains.
8248 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
8249 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
8250 (*<maxmin>di3_doubleword): Likewise.
8251
8252 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8253 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8254
8255 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
8256 (*cond_bic<mode>_any): New patterns.
8257
8258 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8259
8260 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
8261 take the equivalent mask, as well as a bit count.
8262 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
8263 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
8264 (aarch64_sve_pred_and_operand): New predicates.
8265 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
8266 code attribute.
8267 * config/aarch64/aarch64-sve.md
8268 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
8269 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
8270
8271 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8272
8273 * config/aarch64/aarch64-sve.md
8274 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8275 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
8276 New patterns.
8277
8278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8279 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8280
8281 * config/aarch64/aarch64-sve.md
8282 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
8283 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
8284
8285 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8286 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8287
8288 * config/aarch64/aarch64-sve.md
8289 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
8290 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
8291
8292 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8293
8294 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
8295 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
8296 New pattern.
8297
8298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8299 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8300
8301 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
8302
8303 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8304 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8305
8306 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
8307 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
8308 (aarch64_print_operand): Add support for %I.
8309 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
8310 Bitcast floating-point constants to the corresponding integer constant.
8311 (aarch64_float_const_representable_p): Handle vectors as well
8312 as scalars.
8313 (aarch64_expand_sve_vcond): Make sure that the operands are valid
8314 for the new vcond_mask_<mode><vpred> expander.
8315 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
8316 test aarch64_float_const_representable_p.
8317 (aarch64_sve_reg_or_dup_imm): New predicate.
8318 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
8319 gen_vcond_mask_<mode><vpred> instead of
8320 gen_aarch64_sve_dup<mode>_const.
8321 (vcond_mask_<mode><vpred>): Turn into a define_expand that
8322 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
8323 for operands 1 and 2 respectively. Force operand 2 into a
8324 register if operand 1 is a register. Fold old define_insn...
8325 (aarch64_sve_dup<mode>_const): ...and this define_insn...
8326 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
8327 floating-point constants that can be moved as integers. Add
8328 alternatives for MOV /M and FMOV /M.
8329 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
8330 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
8331 1 and 2 respectively.
8332 * config/aarch64/constraints.md (Ufc): Handle vectors as well
8333 as scalars.
8334 (vss): New constraint.
8335
8336 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8337
8338 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
8339 (aarch64_sve_float_maxmin_operand): New predicates.
8340 * config/aarch64/constraints.md (vsB): New constraint.
8341 (vsM): Fix typo.
8342 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
8343 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
8344 UNSPEC_COND_FMINNM.
8345 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
8346 Use aarch64_sve_float_maxmin_operand for operand 2.
8347 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
8348 Add alternatives for the constant forms.
8349
8350 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8351
8352 * config/aarch64/constraints.md (vsb): New constraint.
8353 (vsm): Generalize description.
8354 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
8355 iterator.
8356 (sve_imm_con): Handle smax, smin, umax and umin.
8357 (sve_imm_prefix): New code attribute.
8358 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
8359 (aarch64_sve_vsb_operand): New predicates.
8360 (aarch64_sve_mul_immediate): Rename to...
8361 (aarch64_sve_vsm_immediate): ...this.
8362 (aarch64_sve_mul_operand): Rename to...
8363 (aarch64_sve_vsm_operand): ...this.
8364 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
8365 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
8366 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
8367 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
8368 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
8369 add movprfx support for the immediate alternatives.
8370 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
8371 of the above.
8372 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8373 for operand 3.
8374
8375 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8376
8377 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8378 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8379 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8380
8381 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8382
8383 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8384 (optab, sve_int_op): Handle them.
8385 * config/aarch64/aarch64-sve.md: Expand comment.
8386
8387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8388
8389 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8390 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8391 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8392
8393 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8394
8395 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8396 (aarch64_expand_sve_const_pred_trn): New functions.
8397 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8398 use the above functions when the parameter is true.
8399 (aarch64_expand_sve_const_pred): Update call accordingly.
8400 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8401 Rename to...
8402 (@aarch64_sve_<perm_insn><mode>): ...this.
8403
8404 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8405
8406 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8407 Declare.
8408 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8409 (aarch64_sve_emit_int_cmp): New functions.
8410 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8411 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8412 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8413 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8414 (UNSPEC_PRED_Z): New unspec.
8415 (set_clobber_cc_nzc): Delete.
8416 * config/aarch64/aarch64-sve.md: Add a block comment about
8417 UNSPEC_PRED_Z.
8418 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8419 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8420 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8421 UNSPEC_MERGE_PTRUE.
8422 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8423 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8424 check for compatible predicates.
8425 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8426 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8427 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8428 comparisons above.
8429
8430 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8431
8432 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8433 * config/aarch64/aarch64-sve.md: Add a section describing it.
8434 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8435 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8436 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8437 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8438 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8439 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8440 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8441 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8442 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8443 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8444 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8445 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8446 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8447 (aarch64_evpc_rev_local): Update accordingly.
8448
8449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8450
8451 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8452 iterators.
8453 (SVE_BHSI, SVE_SDI): Tweak comment.
8454 (SVE_HSDI): Likewise. Fix definition.
8455 (SVE_SDF): New mode iterator.
8456 (elem_bits): New mode attribute.
8457 (SVE_COND_FCVT): New int iterator.
8458 * config/aarch64/aarch64-sve.md
8459 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8460 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8461 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8462 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8463 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8464 ...these new patterns.
8465 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8466 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8467 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8468 Merge into...
8469 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8470 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8471 ...these new patterns.
8472 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8473 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8474 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8475 ...this new pattern.
8476 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8477 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8478 ...this new pattern.
8479 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8480
8481 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8482
8483 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8484 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8485 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8486 unspecs.
8487 (optab, su): Handle them.
8488 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8489 * config/aarch64/aarch64-sve.md
8490 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8491 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8492 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8493 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8494 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8495 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8496 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8497 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8498 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8499 FIXUORS.
8500 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8501 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8502 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8503 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8504 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8505 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8506 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8507 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8508 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8509 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8510 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8511 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8512 of UNSPEC_FLOAT_CONVERT.
8513 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8514 aarch64_sve_extend<mode><Vwide>2.
8515
8516 2019-08-14 Richard Biener <rguenther@suse.de>
8517
8518 PR target/91154
8519 * config/i386/i386-features.c
8520 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8521 individual instruction gain. Fix reg-reg copy GRP cost. Use
8522 ix86_cost->sse_op for vector instruction costs.
8523
8524 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8525
8526 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8527 (cmp_op): Handle it.
8528 (SVE_COND_FP_CMP): Rename to...
8529 (SVE_COND_FP_CMP_I0): ...this.
8530 (SVE_FP_CMP): Remove.
8531 * config/aarch64/aarch64-sve.md
8532 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8533 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8534 using unspecs to represent the comparison.
8535 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8536 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8537 accordingly.
8538 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8539 (aarch64_unspec_cond_code): Move after integer code. Handle
8540 UNORDERED.
8541 (aarch64_emit_sve_predicated_cond): Replace with...
8542 (aarch64_emit_sve_fp_cond): ...this new function.
8543 (aarch64_emit_sve_or_conds): Replace with...
8544 (aarch64_emit_sve_or_fp_conds): ...this new function.
8545 (aarch64_emit_sve_inverted_cond): Replace with...
8546 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8547 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8548
8549 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8550
8551 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8552 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8553 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8554 SVE_HSD instead of SVE_SD.
8555
8556 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8557 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8558
8559 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8560 iterator.
8561 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8562 attributes.
8563 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8564 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8565 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8566 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8567 (*div<SVE_F:mode>3): Generalize to...
8568 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8569
8570 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8571 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8572
8573 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8574 constants.
8575 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8576 predicate.
8577 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8578 Declare.
8579 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8580 function.
8581 * config/aarch64/aarch64-sve.md: Add a block comment about the
8582 handling of predicated FP operations.
8583 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8584 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8585 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8586 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8587 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8588 operand.
8589 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8590 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8591 operand.
8592 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8593 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8594 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8595 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8596 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8597 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8598 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8599 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8600 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8601 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8602 strictness operands. Use aarch64_sve_pred_dominates_p to check
8603 whether the predicate on the conditional operation is suitable
8604 for merging. Split patterns into the canonical equal-predicate form.
8605 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8606 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8607
8608 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8610
8611 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8612 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8613 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8614 rtx codes.
8615 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8616 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8617 unspecs.
8618
8619 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8620 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8621
8622 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8623 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8624 actually has, rather than relying on REG_EQUAL notes.
8625 Make the insn operand order match the SVE operand order.
8626 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8627 the SVE operand order.
8628
8629 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8630
8631 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8632 (aarch64_emit_set_immediate): Likewise.
8633 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8634 (aarch64_pfalse_reg): Likewise.
8635 (aarch64_convert_sve_data_to_pred): New function.
8636 (aarch64_sve_move_pred_via_while): Take an optional target register
8637 and the required register mode.
8638 (aarch64_expand_sve_const_pred_1): New function.
8639 (aarch64_expand_sve_const_pred): Likewise.
8640 (aarch64_expand_mov_immediate): Build an all-true predicate
8641 if the significant bits of the immediate are all true. Use
8642 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8643 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8644 before register allocation.
8645 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8646 a VNx16BI PTRUE when splitting the memory alternative.
8647 (vec_duplicate<mode>): Update accordingly.
8648 (*pred_cmp<cmp_op><mode>): Rename to...
8649 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8650
8651 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8652
8653 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8654 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8655 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8656 (UNSPEC_PTEST): New unspec.
8657 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8658 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8659 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8660 * config/aarch64/aarch64-sve.md: Add a new section describing the
8661 handling of UNSPEC_PTEST.
8662 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8663 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8664 (ptest_ptrue<mode>): Replace with...
8665 (aarch64_ptest<mode>): ...this new pattern.
8666 (cbranch<mode>4): Update after above changes.
8667 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8668 UNSPEC_PTEST_PTRUE.
8669 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8670 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8671 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8672
8673 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8674
8675 PR lto/91287
8676 * builtins.c (builtin_with_linkage_p): New function.
8677 * builtins.h (builtin_with_linkage_p): New function.
8678 * symtab.c (write_symbol): Remove redundant assert.
8679 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8680 Remove FIXME and use builtin_with_linkage_p.
8681
8682 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8683
8684 PR middle-end/91421
8685 * tree-core.h (function_decl::function_code): Change type to
8686 unsigned int.
8687 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8688 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8689 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8690 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8691 is BUILT_IN_NORMAL.
8692 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8693 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8694 (fndecl_built_in_p): Change the type of the "name" argument to
8695 unsigned int.
8696 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8697 after check for DECL_BUILT_IN_CLASS.
8698 * cgraphclones.c (build_function_decl_skip_args): Use
8699 set_decl_built_in_function.
8700 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8701 * ipa-split.c (split_function): Likewise.
8702 * langhooks.c (add_builtin_function_common): Likewise.
8703 * omp-simd-clone.c (simd_clone_create): Likewise.
8704 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8705 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8706 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8707 DECL_FUNCTION_CODE.
8708 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8709 instead of DECL_FUNCTION_CODE.
8710 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8711 instead of DECL_FUNCTION_CODE.
8712 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8713 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8714 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8715 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8716 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8717 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8718 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8719 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8720 (alpha_gimple_fold_builtin): Likewise.
8721 * config/arc/arc.c (arc_expand_builtin): Likewise.
8722 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8723 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8724 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8725 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8726 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8727 * config/frv/frv.c (frv_expand_builtin): Likewise.
8728 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8729 (gcn_expand_builtin): Likewise.
8730 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8731 (fold_builtin_cpu): Likewise.
8732 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8733 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8734 (ix86_gimple_fold_builtin): Likewise.
8735 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8736 (ia64_expand_builtin): Likewise.
8737 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8738 * config/mips/mips.c (mips_expand_builtin): Likewise.
8739 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8740 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8741 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8742 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8743 * config/pa/pa.c (pa_expand_builtin): Likewise.
8744 * config/pru/pru.c (pru_expand_builtin): Likewise.
8745 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8747 Likewise.
8748 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8749 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8750 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8751 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8752 (rs6000_builtin_reciprocal): Likewise.
8753 * config/rx/rx.c (rx_expand_builtin): Likewise.
8754 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8755 * config/s390/s390.c (s390_expand_builtin): Likewise.
8756 * config/sh/sh.c (sh_expand_builtin): Likewise.
8757 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8758 (sparc_fold_builtin): Likewise.
8759 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8760 * config/spu/spu.c (spu_expand_builtin): Likewise.
8761 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8762 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8763 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8764 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8765 (xtensa_expand_builtin): Likewise.
8766
8767 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8768
8769 PR middle-end/91421
8770 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8771 before the DECL_FUNCTION_CODE.
8772 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8773 to check for a BUILT_IN_ALLOCA call.
8774 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8775 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8776 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8777 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8778 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8779 for BUILT_IN_NORMAL functions.
8780 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8781 test for BUILT_IN_TM_ABORT.
8782 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8783 to check for a BUILT_IN_STACK_RESTORE call.
8784 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8785 * tree-ssa-threadedge.c
8786 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8787 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8788 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8789 test for a BUILT_IN_NORMAL call instead of a negative test for
8790 an internal function call.
8791
8792 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * tree.h (build_vector_a_then_b): Declare.
8795 * tree.c (build_vector_a_then_b): New function.
8796 * fold-const-call.c (fold_while_ult): Likewise.
8797 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8798 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8799 (aarch64_svpattern): New enum.
8800 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8801 constants through aarch64_expand_mov_immediate.
8802 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8803 than general_operand as the predicate for operand 1.
8804 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8805 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8806 insn_type.
8807 (simd_immediate_info::simd_immediate_info): New overload that
8808 takes a scalar_int_mode and an svpattern.
8809 (simd_immediate_info::u): Add a "pattern" field.
8810 (svpattern_token): New function.
8811 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8812 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8813 (aarch64_sve_move_pred_via_while): New functions.
8814 (aarch64_expand_mov_immediate): Try using
8815 aarch64_sve_move_pred_via_while for predicates that contain N ones
8816 followed by M zeros but that do not correspond to a VLnnn pattern.
8817 (aarch64_sve_pred_valid_immediate): New function.
8818 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8819 with PTRUE and PFALSE.
8820 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8821 forms.
8822
8823 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8824
8825 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8826 flag.
8827 (darwin_override_options): Likewise.
8828 * config/darwin.h: Likewise.
8829 * config/darwin.opt: Likewise.
8830 * config/i386/i386.c (output_pic_addr_const): Likewise.
8831 * config/rs6000/darwin.h: Likewise.
8832 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8833 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8834 ... this TARGET_MACHO_SYMBOL_STUBS.
8835 (FUNCTION_PROFILER):Likewise.
8836 * config/i386/i386.h: Likewise.
8837
8838 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8839
8840 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8841 <case E_V2SImode>: Use vec_extr path for
8842 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8843 <case E_V8QImode>: Ditto.
8844 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8845 Use SWI48 mode iterator. Use %k to output operand 0.
8846 (*mmx_pextrw): New insn pattern.
8847 (*mmx_pextrb): Ditto.
8848 (*mmx_pextrb_zext): Ditto.
8849
8850 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8851
8852 * target.def (libc_has_function, libc_has_fast_function): Improve
8853 documentation strings.
8854 * doc/tm.texi: Regenerate.
8855
8856 2019-08-13 Caroline Tice <cmtice@google.com>
8857
8858 PR other/91396
8859 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8860 vtv_end.o or vtv_end_preinit.o files if !static.
8861
8862 2019-08-13 Olivier Hainque <hainque@adacore.com>
8863
8864 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8865
8866 2019-08-13 Olivier Hainque <hainque@adacore.com>
8867
8868 * rtlanal.c (tablejump_casesi_pattern): New function, to
8869 determine if a tablejump insn is a casesi dispatcher. Extracted
8870 from patch_jump_insn.
8871 * rtl.h (tablejump_casesi_pattern): Declare.
8872 * cfgrtl.c (patch_jump_insn): Use it.
8873 * dwarf2cfi.c (create_trace_edges): Use it.
8874
8875 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8876
8877 PR target/81800
8878 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8879 operand is larger than a long int.
8880
8881 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8882
8883 * machmode.h (opt_mode::else_mode): New function.
8884 (opt_mode::else_blk): Use it.
8885 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8886 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8887 (aarch64_gen_stepped_int_parallel): Likewise.
8888 (aarch64_stepped_int_parallel_p): Likewise.
8889 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8890 argument.
8891 * config/aarch64/aarch64.c
8892 (aarch64_expand_sve_widened_duplicate): Delete.
8893 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8894 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8895 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8896 argument. Use early returns in the !CONST_INT_P handling.
8897 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8898 than handling some inline.
8899 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8900 from...
8901 (aarch64_simd_container_mode): ...here.
8902 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8903 (aarch64_sve_ld1rq_operand_p): New functions.
8904 * config/aarch64/predicates.md (descending_int_parallel)
8905 (aarch64_sve_ld1rq_operand): New predicates.
8906 * config/aarch64/constraints.md (UtQ): New constraint.
8907 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8908 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8909 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8910 (@aarch64_sve_reinterpret<mode>): New expander.
8911 (*aarch64_sve_reinterpret<mode>): New pattern.
8912 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8913 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8914 (*sve_ld1rq<Vesize>): Replace with...
8915 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8916
8917 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8918
8919 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8920 16:12.
8921
8922 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8923
8924 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8925 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8926 (msp430_check_path_for_devices): New.
8927 (parse_devices_csv_1): New.
8928 (parse_devices_csv): New.
8929 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8930 MCU data in devices.csv before using the hard-coded data.
8931 Warn if devices.csv isn't found and the MCU wasn't found in the
8932 hard-coded data either.
8933 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8934 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8935 Search for devices.csv on -I and -L paths.
8936 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8937 msp430_set_driver_var.
8938 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8939 -mdevices-csv-loc=.
8940 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8941 searched for devices.csv.
8942 (mwarn-devices-csv): Document option.
8943
8944 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8945
8946 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8947 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8948 Use a single Dn alternative instead of separate Dz and Dm
8949 alternatives. Use aarch64_output_sve_move_immediate.
8950 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8951 function.
8952 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8953 for predicates too.
8954 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8955 (aarch64_output_ptrue): Delete.
8956
8957 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8958
8959 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8960 INDEX.
8961 (simd_immediate_info::value, simd_immediate_info::step)
8962 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8963 with...
8964 (simd_immediate_info::u): ...this new union.
8965 (simd_immediate_info::simd_immediate_info): Update accordingly.
8966 (aarch64_output_simd_mov_immediate): Likewise.
8967 (aarch64_output_sve_mov_immediate): Likewise.
8968
8969 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8970
8971 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8972 extra_gcc_objs.
8973 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8974 (msp430_select_cpu): New spec function.
8975 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8976 MCU data.
8977 * config/msp430/msp430-devices.c: New file.
8978 * config/msp430/msp430-devices.h: New file.
8979 * config/msp430/msp430.c: Remove msp430_mcu_data.
8980 (msp430_option_override): Use msp430_extract_mcu_data to extract
8981 MCU data.
8982 (msp430_use_f5_series_hwmult): Likewise.
8983 (use_32bit_hwmult): Likewise.
8984 (msp430_no_hwmult): Likewise.
8985 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8986 assembler.
8987 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8988 and -mcpu option.
8989 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8990 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8991 Remove hard-coded MCU multilib data.
8992
8993 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8994
8995 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8996 based on the mode instead of testing properties of it.
8997
8998 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8999
9000 * doc/md.texi: Document the x and y constraints for AArch64.
9001 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
9002 (FP_LO8_REGS): New reg_class.
9003 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
9004 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
9005 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
9006 * config/aarch64/predicates.md (aarch64_simd_register): Use
9007 FP_REGNUM_P instead of checking the classes manually.
9008 * config/aarch64/constraints.md (y): New constraint.
9009
9010 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
9011
9012 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
9013 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
9014 * config/aarch64/aarch64-simd.md
9015 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
9016 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
9017 from the asm template.
9018 * config/aarch64/aarch64-sve.md
9019 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
9020 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
9021 from the asm template.
9022 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
9023 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
9024 from the asm template.
9025 * config/aarch64/aarch64-simd-builtins.def: Update comment.
9026
9027 2019-08-13 Martin Liska <mliska@suse.cz>
9028
9029 * value-prof.c (gimple_ic_transform): Add new line.
9030 Print details with MSG_NOTE.
9031
9032 2019-08-13 Martin Liska <mliska@suse.cz>
9033
9034 * doc/invoke.texi: Document automatic detection of jobserver.
9035 * lto-wrapper.c (run_gcc): Detect jobserver always.
9036
9037 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
9038
9039 * config/i386/i386-expand.c (ix86_expand_vector_set)
9040 <case E_V2SImode>: Use vec_merge path for
9041 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
9042 <case E_V8QImode>: Ditto.
9043 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
9044 (*mmx_pinsrb): Ditto.
9045
9046 2019-08-12 Jakub Jelinek <jakub@redhat.com>
9047
9048 PR target/83250
9049 PR target/91340
9050 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
9051 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
9052 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
9053 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
9054 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
9055
9056 2019-08-12 Richard Biener <rguenther@suse.de>
9057
9058 PR lto/91375
9059 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
9060 flag_devirtualize.
9061
9062 2019-08-12 Richard Biener <rguenther@suse.de>
9063
9064 PR driver/91130
9065 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
9066 lang_mask option, always use CL_DRIVER.
9067 (get_options_from_collect_gcc_options): Adjust.
9068 (find_and_merge_options): Likewise.
9069 (run_gcc): Likewise.
9070
9071 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9072
9073 * ipa-predicate.c (add_condition): Restore inverted test.
9074
9075 2019-08-10 Jakub Jelinek <jakub@redhat.com>
9076
9077 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
9078 (enum omp_clause_device_type_kind): New enum.
9079 (struct tree_omp_clause): Add subcode.device_type_kind.
9080 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
9081 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9082 for device_type clause.
9083 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
9084 * tree-pretty-print.c (dump_omp_clause): Likewise.
9085
9086 PR target/91408
9087 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
9088 vector_operand.
9089
9090 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
9091
9092 * reload1.c (finish_spills): Do not check ira_conflicts_p when
9093 handling spilled pseudos.
9094
9095 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9096
9097 PR target/91386
9098 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
9099 to preserve the contents of the original insns.
9100
9101 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
9102
9103 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
9104 (addsi3_compare_op2): Likewise.
9105
9106 2019-08-09 Martin Liska <mliska@suse.cz>
9107
9108 * alias.c (alias_ptr_types_compatible_p): Strengten
9109 type comparison in LTO mode.
9110
9111 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
9112
9113 PR middle-end/90313
9114 * tree-tailcall.c (find_tail_calls): Reject calls that might
9115 read from an escaped RESULT_DECL.
9116
9117 2019-08-09 Martin Liska <mliska@suse.cz>
9118
9119 * doc/invoke.texi: Document the option value.
9120 * lto-wrapper.c (run_gcc): Set auto_parallel
9121 only with -flto=auto.
9122
9123 2019-08-09 Martin Liska <mliska@suse.cz>
9124
9125 * opts.c (common_handle_option): Error for an invalid argument
9126 to -flto=.
9127
9128 2019-08-09 Martin Liska <mliska@suse.cz>
9129
9130 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
9131 use dump_printf to report optimization.
9132 (sem_variable::merge): Likwise.
9133 (sem_item_optimizer::merge_classes): Use dump_printf to report
9134 ICF hits.
9135
9136 2019-08-09 Martin Liska <mliska@suse.cz>
9137
9138 * value-prof.c (gimple_divmod_fixed_value_transform):
9139 Use dump_printf_loc.
9140 (gimple_mod_pow2_value_transform): Likewise.
9141 (gimple_mod_subtract_transform): Likewise.
9142 (init_node_map): Likewise.
9143 (gimple_ic_transform): Likewise.
9144 (gimple_stringops_transform): Likewise.
9145
9146 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9147
9148 * doc/extend.texi: Add const qualifier to ld intrinsics.
9149
9150 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9151
9152 * config/rs6000/dfp.md (D64_D128): Rename to ...
9153 (DDTD): ... this, throughout.
9154 (dfp_suffix): Rename to ...
9155 (q): ... this, throughout.
9156
9157 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
9158
9159 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
9160 (dfp_suffix): Ditto.
9161 (adddd3, addtd3): Merge to ...
9162 (add<mode>3 for D64_D128): ... this.
9163 (subdd3, subtd3): Merge to ...
9164 (sub<mode>3 for D64_D128): ... this.
9165 (muldd3, multd3): Merge to ...
9166 (mul<mode>3 for D64_D128): ... this.
9167 (divdd3, divtd3): Merge to ...
9168 (div<mode>3 for D64_D128): ... this.
9169 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
9170 (*cmp<mode>_internal1 for D64_D128): ... this.
9171 (ftruncdd2, ftrunctd2): Merge to ...
9172 (ftrunc<mode>2 for D64_D128): ... this.
9173 (fixdddi2, fixtddi2): Merge to ...
9174 (fix<mode>di2 for D64_D128): ... this.
9175
9176 2019-08-08 Jim Wilson <jimw@sifive.com>
9177
9178 PR target/91229
9179 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
9180 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
9181 Pass into recursive call.
9182 (riscv_flatten_aggregate_argument): New arg. Pass to
9183 riscv_flatten_aggregate_field.
9184 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
9185 riscv_flatten_aggregate_argument twice, with false and true as last
9186 arg. Process result twice. Compare results and warn if different.
9187 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
9188
9189 2019-08-08 Martin Liska <mliska@suse.cz>
9190
9191 PR bootstrap/91352
9192 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
9193 * lto-wrapper.c (jobserver_active_p): Likewise.
9194
9195 2019-08-08 Martin Liska <mliska@suse.cz>
9196
9197 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
9198 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
9199 (create_version_clone_with_body): Likewise.
9200
9201 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9202
9203 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
9204 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
9205 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
9206 GOVD_EXPLICIT flags.
9207 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
9208 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
9209 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
9210 call install_var_field with mask 11 instead of 3.
9211 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
9212 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
9213
9214 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9215
9216 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
9217 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
9218
9219 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9220
9221 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
9222 MOVPRFX alternatives. Make the GPR alternatives more expensive
9223 than the FPR ones.
9224
9225 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9226
9227 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
9228 Disparage the GPR alternative relative to the FPR one.
9229 Fix handling of 8-bit and 16-bit FPR values.
9230
9231 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9232
9233 * config/aarch64/iterators.md (BITWISEV): Delete.
9234 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
9235 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
9236 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9237 UNSPEC_FMINNMV, UNSPEC_FMINV.
9238 (bit_reduc_op): Delete.
9239 (sve_int_op): New int attribute.
9240 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
9241 UNSPEC_FMINNMV, UNSPEC_FMINV.
9242 * config/aarch64/aarch64-sve.md
9243 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9244 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
9245 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
9246 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
9247 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
9248 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
9249 new patterns.
9250 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
9251 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
9252 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
9253 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
9254 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
9255 new patterns.
9256
9257 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9258
9259 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
9260 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
9261 (fms<mode>4, *fms<mode>4): Replace with...
9262 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
9263 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
9264 Use unspecs instead of rtx codes.
9265 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
9266 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
9267
9268 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9269
9270 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
9271 int iterator.
9272 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
9273 * config/aarch64/aarch64-sve.md
9274 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
9275 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
9276 use a single unspec for the rhs.
9277 (*<su><maxmin><mode>3): Delete.
9278 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
9279
9280 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9281
9282 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
9283 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
9284 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
9285 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
9286 (optab, sve_fp_op): Handle them.
9287 (SVE_FP_UNARY): Delete.
9288 (optab): Remove sqrt entry.
9289 (sve_fp_op): Remove neg, abs and sqrt entries.
9290 (SVE_COND_FP_UNARY): New int iterator.
9291 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
9292 (*<frint_pattern><mode>2): Delete.
9293 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9294 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9295 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
9296 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
9297
9298 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9299
9300 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
9301
9302 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9303
9304 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
9305 (UNSPEC_COND_FADD): ...this.
9306 (UNSPEC_COND_SUB): Rename to...
9307 (UNSPEC_COND_FSUB): ...this.
9308 (UNSPEC_COND_MUL): Rename to...
9309 (UNSPEC_COND_FMUL): ...this.
9310 (UNSPEC_COND_DIV): Rename to...
9311 (UNSPEC_COND_FDIV): ...this.
9312 (UNSPEC_COND_MAX): Rename to...
9313 (UNSPEC_COND_FMAXNM): ...this.
9314 (UNSPEC_COND_MIN): Rename to...
9315 (UNSPEC_COND_FMINNM): ...this.
9316 (UNSPEC_COND_LT): Rename to...
9317 (UNSPEC_COND_FCMLT): ...this.
9318 (UNSPEC_COND_LE): Rename to...
9319 (UNSPEC_COND_FCMLE): ...this.
9320 (UNSPEC_COND_EQ): Rename to...
9321 (UNSPEC_COND_FCMEQ): ...this.
9322 (UNSPEC_COND_NE): Rename to...
9323 (UNSPEC_COND_FCMNE): ...this.
9324 (UNSPEC_COND_GE): Rename to...
9325 (UNSPEC_COND_FCMGE): ...this.
9326 (UNSPEC_COND_GT): Rename to...
9327 (UNSPEC_COND_FCMGT): ...this.
9328 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
9329 (sve_fp_op_rev): Update accordingly.
9330 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
9331
9332 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9333
9334 * config/aarch64/aarch64-sve.md: Reorganize contents and add
9335 banner comments.
9336 * config/aarch64/check-sve-md.awk: New file.
9337 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
9338 (insn-conditions.md): Depend on it.
9339
9340 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
9341
9342 PR target/91385
9343 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
9344 (*negsi2_cmpz_zext): Ditto.
9345
9346 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9347
9348 * config/aarch64/iterators.md (commutative): Remove.
9349
9350 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
9351
9352 PR driver/91130
9353 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
9354 processing COLLECT_GCC_OPTIONS.
9355 (run_gcc): Likewise.
9356
9357 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
9358
9359 PR tree-optimization/91109
9360 * lra-remat.c (update_scratch_ops): Remove assignment of the
9361 hard register.
9362
9363 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
9364
9365 * data-streamer.h (streamer_write_poly_uint64): Declare.
9366 (streamer_read_poly_uint64): Likewise.
9367 * data-streamer-in.c (streamer_read_poly_uint64): New function.
9368 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
9369 * ipa-predicate.h (condition::size): Turn into a poly_int64.
9370 (add_condition): Take a poly_int64 size.
9371 * ipa-predicate.c (add_condition): Likewise.
9372 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9373 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9374 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9375 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9376 condition::size as a poly_int64.
9377 (unmodified_parm_1): Take a poly_int64 size pointer.
9378 (unmodified_parm): Likewise.
9379 (unmodified_parm_or_parm_agg_item): Likewise.
9380 (set_cond_stmt_execution_predicate): Update accordingly.
9381 (set_switch_stmt_execution_predicate): Likewise.
9382 (will_be_nonconstant_expr_predicate): Likewise.
9383 (will_be_nonconstant_predicate): Likewise.
9384 (inline_read_section): Stream condition::size as a poly_int.
9385 (ipa_fn_summary_write): Likewise.
9386
9387 2019-08-07 Martin Liska <mliska@suse.cz>
9388
9389 * fold-const.c (twoval_comparison_p): Replace int
9390 with bool as a return type.
9391 (simple_operand_p): Likewise.
9392 (operand_equal_p): Replace int with bool as a return type.
9393 * fold-const.h (operand_equal_p): Likewise.
9394
9395 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9396
9397 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9398 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9399 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9400 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9401 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9402 * tree-pretty-print.c (dump_omp_clause): Likewise.
9403 * tree-nested.c (convert_nonlocal_omp_clauses,
9404 convert_local_omp_clauses): Likewise.
9405 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9406 Likewise.
9407 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9408 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9409 clause with array or reference to array types, no matter what type
9410 except for reference it has.
9411
9412 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9413
9414 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9415
9416 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9417
9418 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9419 (arch_canonicalize): Support rv32g and rv64g and fix error
9420 handling.
9421
9422 2019-08-06 Martin Liska <mliska@suse.cz>
9423
9424 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9425 and DECL_IS_OPERATOR_DELETE_P.
9426
9427 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9428
9429 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9430 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9431 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9432 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9433 (gimplify_omp_for): Don't do C++ random access iterator clause
9434 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9435 don't predetermine the artificial iterator in case of C++ random
9436 access iterators as lastprivate, but private. For OMP_LOOP, force
9437 bind expr around simd body and force for_pre_body before the
9438 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9439 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9440 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9441 diff var of C++ random access iterators. Handle
9442 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9443 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9444 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9445 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9446 * omp-low.c (lower_rec_input_clauses): For
9447 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9448 variables instead of default constructing them.
9449 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9450 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9451 is_taskloop_ctx check from the assert to the guarding condition.
9452
9453 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9454
9455 * config/riscv/multilib-generator: (canonical_order): New.
9456 (arch_canonicalize): Dito.
9457 Apply arch_canonicalize for alts.
9458
9459 2019-08-05 Martin Sebor <msebor@redhat.com>
9460
9461 * doc/extend.texi (Common Variable Attributes): Document alias
9462 attribute.
9463
9464 2019-08-05 Marek Polacek <polacek@redhat.com>
9465
9466 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9467 * doc/invoke.texi: Document -Wcomma-subscript.
9468
9469 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9470
9471 * tree-core.h (tree_function_decl): Make function_code an
9472 independent field. Group the remaining bitfields into bytes
9473 and move decl_type so that it contines to be at a byte boundary.
9474 Leave 12 bits for future expansion.
9475
9476 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9477
9478 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9479 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9480 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9481 IFN_MASK_STORE.
9482
9483 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9484
9485 * gimple.h (gimple_move_vops): Declare.
9486 * gimple.c (gimple_move_vops): New function
9487 * gimple-fold.c (replace_call_with_call_and_fold)
9488 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9489 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9490 (gimple_fold_call): Use it.
9491 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9492 * tree-call-cdce.c (use_internal_fn): Likewise.
9493 * tree-if-conv.c (predicate_load_or_store): Likewise.
9494 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9495 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9496 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9497 (update_call_from_tree): Likewise.
9498 * tree-vect-stmts.c (vectorizable_load): Likewise.
9499 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9500
9501 2019-08-05 Martin Liska <mliska@suse.cz>
9502
9503 PR c++/91334
9504 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9505 with not arguments.
9506 (eliminate_unnecessary_stmts): Likewise.
9507
9508 2019-08-05 Richard Biener <rguenther@suse.de>
9509
9510 PR middle-end/91169
9511 * fold-const.c (get_array_ctor_element_at_index): Create
9512 offset_ints according to the sign of the index type and treat
9513 that as signed if it is obviously so.
9514
9515 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9516
9517 PR target/91341
9518 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9519 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9520 _mm256_storeu2_m128i): New function.
9521
9522 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9523
9524 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9525 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9526
9527 2019-08-05 Alan Modra <amodra@gmail.com>
9528
9529 PR target/91349
9530 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9531 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9532
9533 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9534
9535 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9536 bug that was fixed in Tcl 8.6.1.
9537
9538 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9539
9540 * config/rs6000/future.md: New file.
9541 * config/rs6000/rs6000.md: Include future.md.
9542 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9543
9544 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9545
9546 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9547 check to use targetm.slow_unaligned_access instead.
9548
9549 * function.c (assign_param_data_one): Remove unused data members.
9550
9551 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9552
9553 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9554 build_distinct_type_copy.
9555 (simd_clone_adjust_argument_types): Ditto.
9556 (simd_clone_adjust): Call build_distinct_type_copy here.
9557 (expand_simd_clones): Ditto.
9558
9559 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9560
9561 PR target/91201
9562 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9563
9564 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9565
9566 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9567 from 'const void *'.
9568 (sort_locs_in_loop_postorder_cmp): Likewise.
9569
9570 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9571
9572 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9573 (hot-bb-count-ws-permille): Likewise.
9574 (hot-bb-frequency-fraction): Likewise.
9575 (unlikely-bb-count-fraction): Likewise.
9576 * params.def (hot-bb-count-fraction): Rework description.
9577 (hot-bb-count-ws-permille): Likewise.
9578 (hot-bb-frequency-fraction): Likewise.
9579 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9580 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9581
9582 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9583
9584 PR target/91323
9585 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9586 Return false.
9587
9588 2019-08-02 Richard Biener <rguenther@suse.de>
9589
9590 * vec.h (vec::sort): Add gcc_qsort_r support.
9591 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9592 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9593 to gcc_qsort_r style callback.
9594 (sort_locs_in_loop_postorder_cmp): Likewise.
9595 (analyze_memory_references): Use gcc_sort_r interfaces.
9596 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9597
9598 2019-08-02 Martin Liska <mliska@suse.cz>
9599
9600 PR lto/91313
9601 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9602 to detect working job server.
9603 (driver::detect_jobserver): Test whether jobserver
9604 is active from GCC driver. That will prevent situation where
9605 GCC is invoked from a LD plugin and the linker already uses
9606 file descriptors suggested by make. That leads to a wrong
9607 detection.
9608 * gcc.h (driver): Add detect_jobserver.
9609 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9610 not scanning for --jobserver-auth prefix.
9611
9612 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9613
9614 PR tree-optimization/91201
9615 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9616 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9617 extraction.
9618
9619 2019-08-01 Martin Sebor <msebor@redhat.com>
9620
9621 PR c++/90947
9622 * tree.c (type_initializer_zero_p): Define.
9623 * tree.h (type_initializer_zero_p): New function.
9624
9625 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9626
9627 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9628
9629 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9630
9631 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9632 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9633 * predict.c (maybe_hot_count_p): Likewise.
9634 (maybe_hot_bb_p): Tweak comment.
9635 (maybe_hot_edge_p): Likewise.
9636 (probably_never_executed): Likewise. Minor tweak.
9637 (probably_never_executed_bb_p): Likewise.
9638 (unlikely_executed_edge_p): Likewise.
9639 (probably_never_executed_edge_p): Likewise.
9640 (optimize_function_for_size_p): Likewise.
9641 (optimize_function_for_speed_p): Likewise.
9642 (function_optimization_type): Likewise.
9643 (optimize_bb_for_size_p): Likewise.
9644 (optimize_bb_for_speed_p): Likewise.
9645 (bb_optimization_type): Likewise.
9646 (optimize_edge_for_size_p): Likewise.
9647 (optimize_edge_for_speed_p): Likewise.
9648 (optimize_insn_for_size_p): Likewise.
9649 (optimize_insn_for_speed_p): Likewise.
9650 (optimize_loop_for_size_p): Likewise.
9651 (optimize_loop_for_speed_p): Likewise.
9652 (optimize_loop_nest_for_speed_p): Likewise.
9653 (optimize_loop_nest_for_size_p): Likewise.
9654 (predictable_edge_p): Likewise.
9655 (handle_missing_profiles): Minor tweak.
9656
9657 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9658
9659 * config/rs6000/predicates.md (pcrel_external_address): Update
9660 comment.
9661
9662 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9663
9664 PR target/85693
9665 * config/i386/mmx.md (usadv8qi): New expander.
9666
9667 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9668
9669 PR c++/90590
9670 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9671 with reserved names that are in a system header.
9672
9673 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9674
9675 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9676 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9677 (*vec_extractv2si_0_zext): Ditto.
9678 (*vec_extractv2si_1): Add (rm,x) alternative.
9679 (*vec_extractv2si_1_zext): New insn pattern.
9680 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9681 insn constraint.
9682
9683 2019-08-01 Richard Biener <rguenther@suse.de>
9684
9685 * domwalk.c (bb_postorder): Remove static variable.
9686 (cmp_bb_postorder): Adjust.
9687 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9688 (dom_walker::walk): Adjust.
9689
9690 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9691
9692 * sort.cc (sort_r_ctx): New struct.
9693 (reorder23): Make templated on context type.
9694 (reorder45): Ditto.
9695 (cmp1): Ditto. Adjust signature.
9696 (netsort): Ditto.
9697 (mergesort): Ditto.
9698 [CHECKING_P] (cmp2to3): New static function. Use it...
9699 (gcc_qsort) [CHECKING_P]: ...here.
9700 (gcc_sort_r): New function.
9701 * system.h (sort_r_cmp_fn): New function typedef.
9702 (qsort_chk): Adjust signature.
9703 (gcc_sort_r): Declare.
9704 * vec.c (qsort_chk_error): Adjust.
9705 (qsort_chk): Adjust.
9706
9707 2019-08-01 Richard Biener <rguenther@suse.de>
9708
9709 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9710 (compute_antic): Localize it here.
9711
9712 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9713
9714 * common/config/riscv/riscv-common.c: Check -march string ends
9715 with null.
9716
9717 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9718
9719 * ipa-devirt.c (type_warning_cmp): Make static.
9720 (decl_warning_cmp): Ditto.
9721
9722 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9723
9724 PR target/91050
9725 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9726 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9727 use of deleted rs6000_dejagnu_cpu_index variable.
9728 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9729 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9730 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9731 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9732 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9733 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9734
9735 2019-07-31 Richard Biener <rguenther@suse.de>
9736
9737 PR tree-optimization/91280
9738 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9739 Decompose MEM_REF manually for offset handling.
9740
9741 2019-07-31 Richard Biener <rguenther@suse.de>
9742
9743 PR tree-optimization/91293
9744 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9745 of reduction stmts.
9746
9747 2019-07-31 Matt Thomas <matt@3am-software.com>
9748 Nick Hudson <nick@nthcliff.demon.co.uk>
9749 Matthew Green <mrg@eterna.com.au>
9750 Maya Rashish <coypu@sdf.org>
9751
9752 * config.gcc (hppa*-*-netbsd*): New target.
9753 * config/pa/pa-netbsd.h: New file.
9754 * config/pa/pa32-netbsd.h: New file.
9755
9756 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR tree-optimization/91201
9759 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9760
9761 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9762
9763 * config/gcn/gcn-valu.md
9764 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9765 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9766 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9767 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9768 struct ilist. Add nops for delayeduse insns.
9769 * config/gcn/gcn.md (delayeduse): New attribute.
9770 (*movbi): Remove s_waitcnt from stores.
9771 (*mov<mode>_insn): Likewise.
9772 (*movti_insn): Likewise. Add delayeduse attribute.
9773 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9774 (atomic_store<mode>): Remove or adjust s_waitcnt.
9775
9776 2019-07-31 Richard Biener <rguenther@suse.de>
9777
9778 * vr-values.h (vr_values::swap_vr_value): New.
9779 (vr_values::free_value_range): likewise.
9780 * vr-values.c (vr_values::swap_vr_value): Implement.
9781 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9782 Do not return a range or take a var.
9783 (evrp_range_analyzer::stack): Change back to recording a non-const
9784 value_range *.
9785 * gimple-ssa-evrp-analyze.c
9786 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9787 value-range.
9788 (evrp_range_analyzer::pop_to_marker): Adjust.
9789 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9790 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9791 no longer needed value-range.
9792
9793 2019-07-31 Martin Liska <mliska@suse.cz>
9794
9795 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9796 have size and (or) alignment as 2nd and later arguments.
9797 Mark all of them as necessary.
9798
9799 2019-07-31 Richard Biener <rguenther@suse.de>
9800
9801 PR tree-optimization/91178
9802 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9803 Use tail-recursion.
9804
9805 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9806
9807 PR tree-optimization/91201
9808 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9809 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9810 TARGET_AVX512F.
9811 (reduc_plus_scal_<mode>): Improve formatting by introducing
9812 a temporary.
9813
9814 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9815
9816 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9817 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9818 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9819 (aarch64_init_tme_builtins): New.
9820 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9821 (aarch64_expand_builtin_tme): New.
9822 (aarch64_expand_builtin): Handle TME builtins.
9823 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9824 __ARM_FEATURE_TME when enabled.
9825 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9826 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9827 (TARGET_TME): New.
9828 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9829 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9830 UNSPECV_TCANCEL.
9831 (tstart, ttest, tcommit, tcancel): New instructions.
9832 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9833 (__tcancel, __ttest): New.
9834 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9835 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9836 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9837 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9838 * config/arm/types.md: Add new tme type attr.
9839 * doc/invoke.texi: Document "tme".
9840
9841 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9842
9843 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9844 warn_unused_result attribute.
9845 (cmse_check_address_range): Add warn_unused_result attribute.
9846
9847 2019-07-31 Richard Biener <rguenther@suse.de>
9848
9849 PR tree-optimization/91257
9850 * tree-vrp.c (union_ranges): Unify equality and less tests
9851 by using compare_values. Re-order cheap tests first.
9852
9853 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9854
9855 PR middle-end/91301
9856 * gimplify.c (gimplify_omp_for): If for class iterator on
9857 distribute parallel for there is no data sharing clause
9858 on inner_for_stmt, look for private clause on combined
9859 parallel too and if found, move it to inner_for_stmt.
9860
9861 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9862
9863 * lra-int.h (lra_operand_data): Remove early_clobber field.
9864 (lra_insn_reg): Likewise.
9865 * lra.c (debug_operand_data): Update accordingly.
9866 (setup_operand_alternative): Likewise.
9867 (new_insn_reg): Likewise. Remove early_clobber parameter.
9868 (collect_non_operand_hard_regs): Update call accordingly.
9869 Don't assign to lra_insn_reg::early_clobber.
9870 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9871 and update calls to new_insn_reg.
9872 (lra_update_insn_regno_info): Update calls accordingly.
9873 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9874 alternative number as a parameter and test whether the operand
9875 is earlyclobbered in that particular alternative.
9876 (process_alt_operands): Update call accordingly. Use per-alternative
9877 checks for earyclobber here too.
9878 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9879 against zero for IRA_UNKNOWN_ALT.
9880
9881 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9882
9883 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9884
9885 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9886
9887 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9888 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9889
9890 2019-07-30 Martin Liska <mliska@suse.cz>
9891
9892 PR ipa/89330
9893 * cgraph.c (cgraph_edge::make_direct): Use
9894 edge->indirect_unknown_callee as edge->resolve_speculation can
9895 deallocate edge which is this pointer.
9896
9897 2019-07-30 Richard Biener <rguenther@suse.de>
9898
9899 PR tree-optimization/91257
9900 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9901
9902 2019-07-30 Martin Liska <mliska@suse.cz>
9903
9904 * doc/invoke.texi: Document new behavior.
9905 * lto-wrapper.c (cpuset_popcount): New function
9906 is a copy of libgomp/config/linux/proc.c.
9907 (init_num_threads): Likewise.
9908 (run_gcc): Automatically detect core count for -flto.
9909 (jobserver_active_p): New function.
9910
9911 2019-07-30 Richard Biener <rguenther@suse.de>
9912
9913 PR tree-optimization/91257
9914 * bitmap.h (bitmap_ior_into_and_free): Declare.
9915 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9916 whether to add the unliked element to the freelist.
9917 (bitmap_list_insert_element_after): Add defaulted param for
9918 an already allocated element.
9919 (bitmap_ior_into_and_free): New function.
9920 * tree-ssa-structalias.c (condense_visit): Reduce the
9921 ponts-to and edge bitmaps of the SCC members in a
9922 logarithmic fashion rather than all to one.
9923
9924 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9925
9926 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9927 parameter. When nonnull, make sure that the addition or subtraction
9928 has the same condition.
9929 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9930 for CFN_COND_MUL too.
9931
9932 2019-07-30 Richard Biener <rguenther@suse.de>
9933
9934 PR tree-optimization/91291
9935 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9936 constant values.
9937
9938 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9939
9940 PR middle-end/91216
9941 * omp-low.c (global_nonaddressable_vars): New variable.
9942 (use_pointer_for_field): For global decls, if they are non-addressable,
9943 remember it in the global_nonaddressable_vars bitmap, if they are
9944 addressable and in the global_nonaddressable_vars bitmap, ignore their
9945 TREE_ADDRESSABLE bit.
9946 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9947 vars in global_nonaddressable_vars bitmap.
9948 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9949
9950 PR target/91150
9951 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9952 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9953 comparison to unsigned HOST_WIDE_INT before shifting it left.
9954
9955 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9956
9957 * config/i386/i386.md (movstrict<mode>): Use register_operand
9958 predicate for operand 0. Add expander condition. Assert that
9959 operand 0 is a SUBREG RTX.
9960 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9961 Update operand constraints and insn condition.
9962 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9963 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9964 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9965 Update operand 0 constraints.
9966 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9967
9968 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9969
9970 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9971 when -m{code,data}-region are used without -mlarge.
9972 * config/msp430/msp430.c (msp430_option_override): Error when a
9973 non-default code or data region is used without -mlarge.
9974 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9975 attributes when they are used without -mlarge.
9976
9977 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9978
9979 PR target/70320
9980 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9981
9982 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9983
9984 PR middle-end/91242
9985 * wide-int.h (generic_wide_int::sext_elt): New function.
9986 * inchash.h (hash::add_wide_int): Use it instead of elt.
9987
9988 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9989
9990 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9991 CODE_FOR_arm_##.
9992 * config/arm/arm.md (<crc_variant>): Rename to...
9993 (arm_<crc_variant>): ... This.
9994 (<cdp>): Rename to...
9995 (arm_<cdp>): ... This.
9996 (<ldc>): Rename to...
9997 (arm_<ldc>): ... This.
9998 (<stc>): Rename to...
9999 (arm_<stc>): ... This.
10000 (<mcr>): Rename to...
10001 (arm_<mcr>): ... This.
10002 (<mrc>): Rename to...
10003 (arm_<mrc>): ... This.
10004 (<mcrr>): Rename to...
10005 (arm_<mcrr>): ... This.
10006 (<mrrc>): Rename to...
10007 (arm_<mrrc>): ... This.
10008
10009 2019-07-29 Richard Biener <rguenther@suse.de>
10010
10011 PR tree-optimization/91257
10012 * tree-ssa-sccvn.h (struct vn_avail): New.
10013 (struct vn_ssa_aux): Add avail member.
10014 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
10015 member, add m_avail_freelist one.
10016 (rpo_elim::~rpo_elim): Remove.
10017 (rpo_elim::eliminate_avail): Adjust to new avail tracking
10018 data structure.
10019 (rpo_elim::eliminate_push_avail): Likewise.
10020 (do_unwind): Likewise.
10021 (do_rpo_vn): Likewise.
10022
10023 2019-07-29 Richard Biener <rguenther@suse.de>
10024
10025 PR tree-optimization/91257
10026 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
10027 most cases, instead call compare_values which handles the
10028 symbolic ranges we handle specially.
10029 (compare_values_warnv): Do not call operand_less_p but open-code
10030 the effective fold calls. Avoid converting so much.
10031
10032 2019-07-29 Martin Liska <mliska@suse.cz>
10033
10034 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
10035 remove LHS of operator new call. It's handled latter.
10036
10037 2019-07-29 Richard Biener <rguenther@suse.de>
10038
10039 PR tree-optimization/91267
10040 * vr-values.c (vr_values::update_value_range): Add early return
10041 for effectively VARYING lattice entry.
10042
10043 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10044
10045 PR debug/86638
10046 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
10047 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
10048 necessary if keep_all_vdefs_p is true.
10049 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
10050 that keep_all_vdefs_p is false.
10051 (mark_all_reaching_defs_necessary): Likewise.
10052 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
10053
10054 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10055
10056 * common.opt (Og): Change the initial value of flag_dse to 0.
10057 * opts.c (default_options_table): Move OPT_ftree_dse from
10058 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
10059 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
10060 entry before the OPT_ftree_sra entry.
10061 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
10062 of flags disabled by Og.
10063
10064 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10065
10066 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
10067 variables for -Og.
10068
10069 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10070
10071 * doc/sourcebuild.texi (check-function-bodies): Document.
10072
10073 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10074
10075 * simplify-rtx.c (simplify_const_unary_operation): Fold a
10076 VEC_DUPLICATE of a fixed-length vector even if the result
10077 is variable-length. Likewise fold a duplicate of a
10078 variable-length vector if the variable-length vector is
10079 itself a duplicate of a fixed-length sequence.
10080 (test_vector_ops_duplicate): Test more cases.
10081
10082 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
10083
10084 * vector-builder.h (vector_builder): Add a shape template parameter.
10085 (vector_builder::new_unary_operation): New function, generalizing
10086 the old tree_vector_builder function.
10087 (vector_builder::new_binary_operation): Likewise.
10088 (vector_builder::binary_encoded_nelts): Likewise.
10089 * int-vector-builder.h (int_vector_builder): Update template
10090 parameters to vector_builder.
10091 (int_vector_builder::shape_nelts): New function.
10092 * rtx-vector-builder.h (rtx_vector_builder): Update template
10093 parameters to vector_builder.
10094 (rtx_vector_builder::shape_nelts): New function.
10095 (rtx_vector_builder::nelts_of): Likewise.
10096 (rtx_vector_builder::npatterns_of): Likewise.
10097 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
10098 * tree-vector-builder.h (tree_vector_builder): Update template
10099 parameters to vector_builder.
10100 (tree_vector_builder::shape_nelts): New function.
10101 (tree_vector_builder::nelts_of): Likewise.
10102 (tree_vector_builder::npatterns_of): Likewise.
10103 (tree_vector_builder::nelts_per_pattern_of): Likewise.
10104 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
10105 (tree_vector_builder::new_binary_operation): Delete.
10106 (tree_vector_builder::binary_encoded_nelts): Likewise.
10107 * simplify-rtx.c: Include rtx-vector-builder.h.
10108 (distributes_over_addition_p): New function.
10109 (simplify_const_unary_operation)
10110 (simplify_const_binary_operation): Generalize handling of vector
10111 constants to include variable-length vectors.
10112 (test_vector_ops_series): Add more tests.
10113
10114 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
10115
10116 PR lto/91222
10117 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
10118 than INDENTIFIER_POINTER.
10119
10120 2019-07-28 Martin Liska <mliska@suse.cz>
10121
10122 PR ipa/89330
10123 * cgraph.c (symbol_table::create_edge): Always allocate
10124 a cgraph_edge.
10125 (symbol_table::free_edge): Store summary_id to
10126 edge_released_summary_ids if != -1;
10127 * cgraph.h (NEXT_FREE_NODE): Remove.
10128 (SET_NEXT_FREE_NODE): Likewise.
10129 (NEXT_FREE_EDGE): Likewise.
10130 (symbol_table::release_symbol): Store summary_id to
10131 cgraph_released_summary_ids if != -1;
10132 (symbol_table::allocate_cgraph_symbol): Always allocate
10133 a cgraph_node.
10134
10135 2019-07-28 Alan Modra <amodra@gmail.com>
10136
10137 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10138 gen_sibcall.
10139
10140 2019-07-28 Alan Modra <amodra@gmail.com>
10141
10142 PR target/91135
10143 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
10144 define.
10145 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
10146 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
10147 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10148
10149 2019-07-28 Alan Modra <amodra@gmail.com>
10150
10151 PR target/91050
10152 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
10153 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
10154 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
10155 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
10156 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
10157 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
10158 in asm_default spec.
10159 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
10160 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
10161
10162 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
10163
10164 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
10165
10166 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10167
10168 PR target/89517
10169 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
10170 * config/aarch64/aarch64-option-extensions.def: Add new comments
10171 and restore easier to read options.
10172
10173 2019-07-26 Tamar Christina <tamar.christina@arm.com>
10174
10175 * convert.c (convert_to_real_1): Move part of conversion code...
10176 * match.pd: ...To here.
10177
10178 2019-07-26 Martin Jambor <mjambor@suse.cz>
10179
10180 PR ipa/89330
10181 * ipa-inline-transform.c (check_speculations_1): New function.
10182 (push_all_edges_in_set_to_vec): Likewise.
10183 (check_speculations): Use check_speculations_1, new parameter
10184 new_edges.
10185 (inline_call): Pass new_edges to check_speculations.
10186 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
10187 NULL.
10188 (speculation_useful_p): Early return true if edge is inlined, remove
10189 later checks for inline_failed.
10190
10191 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
10192
10193 PR rtl-optimization/91223
10194 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
10195 matching with INOUT operand.
10196
10197 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * stmt.c (expand_case): Try to narrow the index type if it's larger
10200 than a word. Tidy up.
10201
10202 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
10203
10204 * cif-code.def (NEVER_CALL): New code.
10205 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
10206 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
10207
10208 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
10209
10210 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
10211 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10212
10213 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10214
10215 * ipa-devirt.c (add_type_duplicate): Fix return value.
10216
10217 2019-07-25 Richard Biener <rguenther@suse.de>
10218
10219 * tree-vrp.c (extract_range_from_multiplicative_op): Add
10220 type parameter and use it instead of guessing expression
10221 type from the first operand.
10222 (extract_range_from_binary_expr): Pass expr_type down.
10223
10224 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10225
10226 * config/arm/arm.md (SATrev): Change to code attribute.
10227 (*satsi_<SAT:code>): Adjust for the above.
10228 (*satsi_<SAT:code>_shift): Likewise.
10229
10230 2019-07-25 Richard Biener <rguenther@suse.de>
10231
10232 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
10233 Make value_range * temporary const.
10234 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
10235 Likewise.
10236 (evrp_range_analyzer::record_ranges_from_): Likewise.
10237 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
10238 deal with having recorded a const one.
10239 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
10240 Return a const value_range *.
10241 (evrp_range_analyzer::pop_value_range): Likewise.
10242 (evrp_range_analyzer::stack): Record const value_range *s.
10243 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10244 Adjust.
10245 * gimple-ssa-sprintf.c (get_int_range): Likewise.
10246 (format_integer): Likewise.
10247 (sprintf_dom_walker::handle_gimple_call): Likewise.
10248 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
10249 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
10250 (vrp_prop::get_value_range): Adjust.
10251 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
10252 modifying the lattice in-place.
10253 (vrp_prop::visit_stmt): Likewise.
10254 * vr-values.c (vr_values::get_lattice_entry): New private method.
10255 (vr_values::get_value_range): Wrap it and return a const
10256 value_range *.
10257 (vr_values::set_def_to_varying): New.
10258 (vr_values::set_defs_to_varying): Use it.
10259 (vr_values::update_value_range): Likewise.
10260 (vr_values::vrp_stmt_computes_nonzero): Adjust.
10261 (values::op_with_constant_singleton_va): Likewise.
10262 (vr_values::extract_range_for_var_from_co): Likewise.
10263 (vr_values::extract_range_from_ssa_name): Likewise.
10264 (vr_values::extract_range_from_cond_expr): Likewise.
10265 (vr_values::extract_range_basic): Likewise.
10266 (compare_ranges): Take const value_range *, adjust.
10267 (compare_range_with_value): Likewise.
10268 (vrp_valueize): Adjust.
10269 (vrp_valueize_1): Likewise.
10270 (vr_values::get_vr_for_comparison): Return a const value_range *.
10271 (vr_values::compare_name_with_value): Adjust.
10272 (vr_values::compare_names): Likewise.
10273 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10274 Likewise.
10275 (vr_values::vrp_evaluate_conditional): Likewise.
10276 (find_case_label_ranges): Take a const value_range *.
10277 (vr_values::vrp_visit_switch_stmt): Adjust.
10278 (vr_values::extract_range_from_phi_node): Likewise.
10279 (vr_values::simplify_div_or_mod_using_ran): Likewise.
10280 (vr_values::simplify_abs_using_ranges): Likewise.
10281 (test_for_singularity): Take a const value_range *.
10282 (range_fits_type_p): Likewise.
10283 (vr_values::simplify_cond_using_ranges_1): Adjust.
10284 (vr_values::simplify_cond_using_ranges_2): Likewise.
10285 (vr_values::simplify_switch_using_ranges): Likewise.
10286 (vr_values::simplify_float_conversion_usi): Likewise.
10287 (vr_values::two_valued_val_range_p): Likewise.
10288 * vr-values.h (vr_values::get_value_range): Return a const
10289 value_range *.
10290 (vr_values::set_def_to_varying): New.
10291 (vr_values::get_lattice_entry): New private method.
10292 (vr_values::get_vr_for_comparison): Return a const value_range *.
10293
10294 2019-07-25 Martin Liska <mliska@suse.cz>
10295 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
10296
10297 PR c++/23383
10298 * common.opt: Add -fallocation-dce
10299 * gimple.c (gimple_call_operator_delete_p): New.
10300 * gimple.h (gimple_call_operator_delete_p): Likewise.
10301 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
10302 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
10303 DECL_IS_OPERATOR_DELETE_P.
10304 (mark_all_reaching_defs_necessary_1): Likewise.
10305 (propagate_necessity): Likewise.
10306 (eliminate_unnecessary_stmts): Handle
10307 gimple_call_operator_delete_p.
10308 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
10309 Add packing of OPERATOR_DELETE.
10310 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
10311 Similarly here.
10312 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
10313 (DECL_SET_IS_OPERATOR_DELETE): New.
10314 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
10315
10316 2019-07-25 Martin Liska <mliska@suse.cz>
10317
10318 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
10319 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
10320 * coverage.c (coverage_begin_function): Likewise.
10321 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
10322 * gimple.c (gimple_call_nonnull_result_p): Likewise.
10323 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
10324 (sem_item::hash_referenced_symbol_properties): Likewise.
10325 * lto-streamer-out.c (hash_tree): Likewise.
10326 * predict.c (expr_expected_value_1): Likewise.
10327 * tree-inline.c (expand_call_inline): Likewise.
10328 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
10329 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
10330 * tree-core.h (enum function_decl_type): New enum.
10331 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
10332 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
10333 (set_function_decl_type): Likewise.
10334 (DECL_IS_OPERATOR_NEW_P): New.
10335 (DECL_SET_IS_OPERATOR_NEW): Likewise.
10336 (DECL_LAMBDA_FUNCTION): Likewise.
10337 (DECL_LAMBDA_FUNCTION_P): Likewise.
10338 (DECL_IS_OPERATOR_NEW): Remove.
10339 (DECL_SET_LAMBDA_FUNCTION): Likewise.
10340
10341 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
10342
10343 * ipa-profile.c (get_most_common_single_value): Use
10344 get_nth_most_common_value.
10345 * profile.c (sort_hist_value): New function.
10346 (compute_value_histograms): Call sort_hist_value to sort the
10347 values after loading from disk.
10348 * value-prof.c (get_most_common_single_value): Rename to ...
10349 get_nth_most_common_value. Add input params n, return
10350 the n_th value and count.
10351 (gimple_divmod_fixed_value_transform): Use
10352 get_nth_most_common_value.
10353 (gimple_ic_transform): Likewise.
10354 (gimple_stringops_transform): Likewise.
10355 * value-prof.h (get_most_common_single_value): Add input params
10356 n, default to 0.
10357
10358 2019-07-25 Richard Biener <rguenther@suse.de>
10359
10360 PR tree-optimization/91236
10361 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10362 size of CONSTRUCTOR write. Fix buffer size we pass to
10363 native_encode_expr.
10364
10365 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10366
10367 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
10368 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
10369 r273773.
10370
10371 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10372
10373 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10374 explicitly disabled with --disable-initfini-array.
10375
10376 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10377
10378 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10379 if-exists.
10380
10381 2019-07-24 Martin Sebor <msebor@redhat.com>
10382
10383 PR tree-optimization/91183
10384 PR tree-optimization/86688
10385 * builtins.c (compute_objsize): Handle MEM_REF.
10386 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10387 (get_min_string_length): Remove.
10388 (count_nonzero_bytes): New function.
10389 (handle_char_store): Rename...
10390 (handle_store): to this. Handle multibyte stores via integer types.
10391 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10392 function name.
10393
10394 2019-07-24 Martin Sebor <msebor@redhat.com>
10395
10396 PR driver/80545
10397 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10398 (diagnostic_report_diagnostic): Same.
10399 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10400 (diagnostic_context::lang_mask): New data member.
10401 * ipa-pure-const.c (suggest_attribute): Use
10402 lang_hooks.option_lang_mask ().
10403 * opts-common.c (option_enabled): Handle new argument.
10404 (get_option_state): Pass an additional argument.
10405 * opts.c (print_filtered_help): Print supported languages for
10406 unsupported options. Adjust printing of current state.
10407 * opts.h (option_enabled): Add argument.
10408 * toplev.c (print_switch_values): Use lang_mask.
10409 (general_init): Set global_dc->lang_mask.
10410
10411 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10412
10413 PR bootstrap/87030
10414 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10415
10416 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10417
10418 * cgraphunit.c (symbol_table::compile): Start and stop
10419 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10420 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10421
10422 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10423
10424 * gimplify.c (flag_instrument_functions_exclude_p): Include
10425 namespace/class information in the printable name.
10426 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10427 to tokens entered into the vector.
10428
10429 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10430
10431 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10432 (get_static_chain): Call it instead of build_simple_mem_ref.
10433 (get_frame_field): Likewise.
10434 (get_nonlocal_debug_decl): Likewise.
10435 (convert_nonlocal_reference_op): Likewise.
10436
10437 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10438
10439 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10440 declaration.
10441 (arc_compute_frame_size): Millicode is disabled when compiling
10442 ISR.
10443 (arc_return_address_register): Likewise.
10444 (arc_compute_function_type): Likewise.
10445 (arc_compute_frame_size): Likewise.
10446 (secondary_reload_info): Likewise.
10447 (arc_get_unalign): Likewise.
10448 (arc_can_use_return_insn): Declare.
10449 * config/arc/arc.c (AUX_LP_START): Define
10450 (AUX_LP_END): Likewise.
10451 (arc_frame_info): Update gmask member to 64-bit datum.
10452 (GMASK_LEN): Update.
10453 (arc_compute_function_type): Make it static, move it forward.
10454 (arc_must_save_register): Update, consider the extra regs.
10455 (arc_compute_millicode_save_restore_regs): Update to use the 64
10456 bit gmask.
10457 (arc_compute_frame_size): Likewise.
10458 (arc_enter_leave_p): Likewise.
10459 (arc_save_callee_saves): Likewise.
10460 (arc_restore_callee_saves): Likewise.
10461 (arc_save_callee_enter): Likewise.
10462 (arc_restore_callee_leave): Likewise.
10463 (arc_save_callee_milli): Likewise.
10464 (arc_restore_callee_milli): Likewise.
10465 (arc_expand_prologue): Add new interrupt handling.
10466 (arc_return_address_register): Make it static, move it forward.
10467 (arc_expand_epilogue): Add new interrupt handling.
10468 (arc_get_unalign): Delete.
10469 (arc_epilogue_uses): Make sure we do not remove the extra
10470 saved/restored registers when interrupt.
10471 (arc_can_use_return_insn): New function.
10472 (push_reg): Likewise.
10473 (pop_reg): Likewise.
10474 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10475 procedures.
10476 (arc_restore_callee_saves): Likewise, but restoring.
10477 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10478 (R33_REG): Likewise.
10479 (R34_REG): Likewise.
10480 (R35_REG): Likewise.
10481 (R36_REG): Likewise.
10482 (R37_REG): Likewise.
10483 (R38_REG): Likewise.
10484 (R39_REG): Likewise.
10485 (R45_REG): Likewise.
10486 (R46_REG): Likewise.
10487 (R47_REG): Likewise.
10488 (R48_REG): Likewise.
10489 (R49_REG): Likewise.
10490 (R50_REG): Likewise.
10491 (R51_REG): Likewise.
10492 (R52_REG): Likewise.
10493 (R53_REG): Likewise.
10494 (R54_REG): Likewise.
10495 (R55_REG): Likewise.
10496 (R56_REG): Likewise.
10497 (R58_REG): Likewise.
10498 (type): Add rtie attribute.
10499 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10500 (movsi_insn): Accept moves to lp_count.
10501 (rtie): Update pattern.
10502 (simple_return): Simplify it, don't use this pattern as a return
10503 from an interrupt.
10504 (arc600_rtie): New pattern.
10505 (p_return_i): Clean up.
10506 (return): Likewise.
10507 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10508 family CPUs.
10509 * config/arc/predicates.md (move_src_operand): Consider lp_count
10510 as a register.
10511
10512 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10513
10514 * config/s390/predicates.md (addv_const_operand): New predicate.
10515 * config/s390/s390-modes.def (CCO): New condition code mode.
10516 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10517 (s390_branch_condition_mask): Likewise.
10518 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10519 ("mulv<mode>4"): New expanders.
10520 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10521 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10522 pattern definitions.
10523
10524 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10525
10526 PR middle-end/91166
10527 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10528 (define_predicates): Add entry for uniform_vector_p.
10529 (vec_same_elem_p): New match pattern.
10530
10531 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10532
10533 PR bootstrap/87030
10534 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10535 * config/i386/darwin32-biarch.h .. to here.
10536 * config/i386/darwin64-biarch.h: Adjust comments.
10537 * config/rs6000/darwin32-biarch.h: Likewise.
10538 * config/rs6000/darwin64-biarch.h: Likewise.
10539 * config.gcc: Missed commit from r273746
10540 (*-*-darwin*): Don't include CPU t-darwin here.
10541 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10542 an error message if i686-darwin configuration is attempted for
10543 Darwin >= 18.
10544
10545 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10546
10547 PR bootstrap/87030
10548 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10549 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10550 an error message if i686-darwin configuration is attempted for
10551 Darwin >= 18.
10552 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10553 (powerpc-*-darwin*): Use biarch files where needed.
10554 (powerpc64-*-darwin*): Likewise.
10555 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10556 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10557 arch case.
10558 * config/i386/darwin32-biarch.h: New.
10559 * config/i386/darwin64.h: Rename.
10560 * config/i386/darwin64-biarch.h: To this.
10561 * config/i386/t-darwin: Rename.
10562 * config/i386/t-darwin32-biarch: To this.
10563 * config/i386/t-darwin64: Rename.
10564 * config/i386/t-darwin64-biarch: To this.
10565 * config/rs6000/darwin32-biarch.h: New.
10566 * config/rs6000/darwin64.h: Rename.
10567 * config/rs6000/darwin64-biarch.h: To this.
10568 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10569 arch case.
10570 * config/rs6000/t-darwin8: Rename.
10571 * config/rs6000/t-darwin32-biarch: To this.
10572 * config/rs6000/t-darwin64 Rename.
10573 * config/rs6000/t-darwin64-biarch: To this.
10574
10575 2019-07-23 Martin Sebor <msebor@redhat.com>
10576
10577 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10578
10579 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10580
10581 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10582 (rh): New alias for it.
10583
10584 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10585
10586 * gdbhooks.py: Pass replace=True to
10587 gdb.printing.register_pretty_printer.
10588
10589 2019-07-23 Richard Biener <rguenther@suse.de>
10590
10591 PR debug/91231
10592 * lto-streamer-in.c (input_function): Drop inline-entry markers
10593 that ended up with an unknown location block.
10594
10595 2019-07-23 Richard Biener <rguenther@suse.de>
10596
10597 PR tree-optimization/83518
10598 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10599 init from a constant even when partial defs are already recorded.
10600
10601 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10602
10603 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10604 * config/i386/znver1.md: Enable patterns for znver2 and add store
10605 variants which use extra AGU unit.
10606
10607 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10608
10609 * config/i386/i386-options.c (ix86_option_override_internal): Default
10610 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10611 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10612 for ZNVER2.
10613
10614 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10615
10616 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10617 (znver2_costs): Update 256 bit SSE costs and multiplication.
10618
10619 2019-07-23 Jan Beulich <jbeulich@suse.com>
10620
10621 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10622 Require only AVX512F.
10623 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10624 alternative expanding to vpternlog.
10625
10626 2019-07-23 Martin Liska <mliska@suse.cz>
10627
10628 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10629 to -flto in dwarf producer string.
10630
10631 2019-07-23 Richard Biener <rguenther@suse.de>
10632
10633 * tree-cfg.c (label_for_bb): Remove global var.
10634 (main_block_label): Take label_for_bb as argument.
10635 (cleanup_dead_labels_eh): Likewise, adjust.
10636 (cleanup_dead_labels): Adjust.
10637
10638 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10639
10640 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10641 Configurations): Add documentation for __builtin_mtfsf.
10642
10643 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10644
10645 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10646 * config/riscv/riscv.c (riscv_constant_alignment): Use
10647 riscv_align_data_type.
10648 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10649 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10650 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10651 * config/riscv/riscv.opt (malign-data): New.
10652 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10653
10654 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10655
10656 * cgraph.c (dump_graphviz): New function.
10657 * cgraph.h (dump_graphviz): New function.
10658 * symtab.c (dump_graphviz): New function.
10659
10660 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10661
10662 * config/aarch64/aarch64-simd.md
10663 (*aarch64_simd_sra<mode>): New.
10664 * config/aarch64/iterators.md
10665 (SHIFTRT): New iterator.
10666 (sra_op): New attribute.
10667
10668 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10669
10670 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10671 callee-saved regs R4->R10 in an interrupt function that calls another
10672 function.
10673
10674 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10675
10676 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10677 (_mm_blendv_epi8): New.
10678
10679 2019-07-22 Richard Biener <rguenther@suse.de>
10680
10681 PR tree-optimization/91221
10682 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10683 restrict partial-def handling of empty constructors and
10684 memset to refs with known offset.
10685
10686 2019-07-22 Jan Beulich <jbeulich@suse.com>
10687
10688 * config/i386/sse.md (ternlogsuffix): New.
10689 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10690 AVX512F is in use.
10691 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10692
10693 2019-07-22 Martin Liska <mliska@suse.cz>
10694
10695 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10696 comment.
10697 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10698
10699 2019-07-22 Martin Liska <mliska@suse.cz>
10700
10701 * lto-section-in.c (lto_get_section_data):
10702 Use new function get_compression.
10703 * lto-streamer-out.c (produce_lto_section): Use
10704 set_compression to encode compression algorithm.
10705 * lto-streamer.h (struct lto_section): Do not
10706 use bitfields in the format.
10707
10708 2019-07-22 Martin Liska <mliska@suse.cz>
10709
10710 PR driver/91172
10711 * opts-common.c (decode_cmdline_option): Decode
10712 argument of -Werror and check it for a wrong language.
10713 * opts-global.c (complain_wrong_lang): Remove such case.
10714
10715 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10716
10717 * config/arc/arc.c (prepare_move_operands): Always use an
10718 intermediate register when storing a TLS symbols.
10719
10720 2019-07-22 Stafford Horne <shorne@gmail.com>
10721
10722 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10723 force_reg.
10724
10725 2019-07-22 Stafford Horne <shorne@gmail.com>
10726
10727 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10728 and munordered-float validations.
10729 * config/or1k/constraints.md (d): New register constraint.
10730 * config/or1k/predicates.md (fp_comparison_operator): New.
10731 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10732 operands.
10733 (or1k_expand_compare): Normalize unordered comparisons.
10734 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10735 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10736 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10737 * config/or1k/or1k.md (type): Add fpu.
10738 (fpu): New instruction reservation.
10739 (F, f, fr, fi, FI, FOP, fop): New.
10740 (<fop><F:mode>3): New ALU instruction definition.
10741 (float<fi><F:mode>2): New conversion instruction definition.
10742 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10743 (fpcmpcc): New code iterator.
10744 (*sf_fp_insn): New instruction definition.
10745 (cstore<F:mode>4): New expand definition.
10746 (cbranch<F:mode>4): New expand definition.
10747 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10748 munordered-float): New options.
10749 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10750 munordered-float.
10751
10752 2019-07-22 Stafford Horne <shorne@gmail.com>
10753
10754 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10755 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10756 documenation to be more clear.
10757 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10758 more clear.
10759 * config/or1k/or1k.opt (mrori): New option.
10760 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10761 msfimm, mshftimm): Rewrite documentation to be more clear.
10762 * config/or1k/or1k.md (insn_support): Add ror and rori.
10763 (enabled): Add conditions for ror and rori.
10764 (rotrsi3): Replace condition for shftimm with ror and rori.
10765
10766 2019-07-22 Stafford Horne <shorne@gmail.com>
10767
10768 PR target/90363
10769 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10770 (extend<mode>si2): Update predicate.
10771 * config/or1k/predicates.md (volatile_mem_operand): New.
10772 (reg_or_mem_operand): New.
10773
10774 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10775
10776 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10777 * config/rs6000/rs6000-call.c: ... to here.
10778
10779 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10780
10781 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10782 memory.
10783
10784 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10785
10786 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10787
10788 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10789
10790 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10791
10792 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10793
10794 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10795 (any_memory_operand): New predicate.
10796 (reg_or_mem_operand): Use it.
10797
10798 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10799
10800 PR target/91204
10801 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10802
10803 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10804
10805 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10806 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10807
10808 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10809
10810 * tree.def (OMP_LOOP): New tree code.
10811 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10812 (enum omp_clause_bind_kind): New enum.
10813 (struct tree_omp_clause): Add subcode.bind_kind.
10814 * tree.h (OMP_LOOP_CHECK): Rename to ...
10815 (OMP_LOOPING_CHECK): ... this.
10816 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10817 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10818 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10819 (OMP_CLAUSE_BIND_KIND): Define.
10820 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10821 bind clause entries.
10822 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10823 * tree-pretty-print.c (dump_omp_clause): Likewise.
10824 (dump_generic_node): Handle OMP_LOOP.
10825 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10826 (in_omp_construct): New variable.
10827 (is_gimple_stmt): Handle OMP_LOOP.
10828 (gimplify_scan_omp_clauses): For lastprivate don't set
10829 check_non_private if code == OMP_LOOP. For reduction clause
10830 on OMP_LOOP combined with parallel or teams propagate as shared
10831 on the combined construct. Handle OMP_CLAUSE_BIND.
10832 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10833 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10834 for constructs from a loop construct to gimplify_scan_omp_clauses.
10835 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10836 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10837 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10838 to match the implicit ORT_TARGET construct around whole body.
10839 Temporarily clear in_omp_construct when processing body.
10840 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10841 etc. temporarily set in_omp_construct when processing body.
10842 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10843 * omp-low.c (struct omp_context): Add loop_p.
10844 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10845 in that the original var might be private.
10846 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10847 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10848 addition of loop construct.
10849 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10850
10851 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10852 lastprivate non-addressable iterator of a collapse(1) simd.
10853
10854 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10855
10856 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10857 as in rs6000.c.
10858
10859 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10860
10861 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10862 refer to default conditions. Warn for the 'y' spec which is ignored
10863 by current linkers.
10864
10865 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10866
10867 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10868 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10869 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10870 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10871 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10872 init_cumulative_args, rs6000_promote_function_mode,
10873 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10874 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10875 rs6000_function_arg_boundary, rs6000_parm_offset,
10876 rs6000_parm_start, rs6000_arg_size,
10877 rs6000_darwin64_record_arg_advance_flush,
10878 rs6000_darwin64_record_arg_advance_recurse,
10879 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10880 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10881 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10882 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10883 rs6000_finish_function_arg, rs6000_function_arg,
10884 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10885 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10886 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10887 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10888 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10889 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10890 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10891 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10892 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10893 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10894 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10895 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10896 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10897 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10898 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10899 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10900 get_element_number, altivec_expand_vec_set_builtin,
10901 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10902 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10903 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10904 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10905 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10906 rs6000_expand_builtin, rs6000_vector_type,
10907 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10908 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10909 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10910 to rs6000-call.c.
10911 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10912 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10913 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10914 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10915 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10916 init_cumulative_args, rs6000_promote_function_mode,
10917 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10918 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10919 rs6000_function_arg_boundary, rs6000_parm_offset,
10920 rs6000_parm_start, rs6000_arg_size,
10921 rs6000_darwin64_record_arg_advance_flush,
10922 rs6000_darwin64_record_arg_advance_recurse,
10923 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10924 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10925 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10926 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10927 rs6000_finish_function_arg, rs6000_function_arg,
10928 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10929 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10930 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10931 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10932 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10933 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10934 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10935 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10936 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10937 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10938 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10939 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10940 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10941 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10942 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10943 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10944 get_element_number, altivec_expand_vec_set_builtin,
10945 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10946 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10947 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10948 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10949 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10950 rs6000_expand_builtin, rs6000_vector_type,
10951 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10952 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10953 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10954 to here from rs6000.c.
10955 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10956 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10957 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10958 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10959 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10960 rs6000_return_in_memory, rs6000_return_in_msb,
10961 rs6000_pass_by_reference, setup_incoming_varargs,
10962 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10963 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10964 rs6000_function_arg_padding, rs6000_function_arg,
10965 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10966 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10967 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10968 rs6000_passes_long_double, rs6000_passes_vector,
10969 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10970 altivec_builtin_mask_for_load) Add declarations.
10971 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10972 * config/config.gcc: Add new source file rs6000-call.c to garbage
10973 collector and extra_objs.
10974
10975 2019-07-19 Jeff Law <law@redhat.com>
10976
10977 PR tree-optimization/86061
10978 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10979 strncpy. Drop some trivial dead code.
10980 (maybe_trim_memstar_call): Handle strncpy.
10981
10982 2019-07-19 Richard Biener <rguenther@suse.de>
10983
10984 PR tree-optimization/91211
10985 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10986 memset encoding size.
10987
10988 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10989
10990 PR target/91204
10991 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10992
10993 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10994
10995 PR ipa/91194
10996 * ipa-inline.c (recursive_inlining): Fix limits check.
10997
10998 2019-07-19 Richard Biener <rguenther@suse.de>
10999
11000 PR tree-optimization/91200
11001 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
11002 no PHI nodes in middle-bb.
11003
11004 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
11005
11006 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
11007 to +sve-bitperm.
11008 * config/aarch64/aarch64-option-extensions.def: Likewise.
11009
11010 2019-07-19 Jakub Jelinek <jakub@redhat.com>
11011
11012 PR middle-end/91190
11013 * function.c (insert_temp_slot_address): Store into the hash table
11014 a copy of address to avoid RTL sharing issues.
11015
11016 2019-07-19 Richard Biener <rguenther@suse.de>
11017
11018 PR tree-optimization/91207
11019 Revert
11020 2019-07-17 Richard Biener <rguenther@suse.de>
11021
11022 PR tree-optimization/91178
11023 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11024 loads with a gap larger than the vector size always use
11025 VMAT_STRIDED_SLP.
11026 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11027 avoid loading vectors that are only contained in the gap
11028 and thus are not needed.
11029
11030 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11031
11032 * config/i386/i386.md (*addqi_2_slp): Remove.
11033 (*<code>qi_2_slp): Ditto.
11034
11035 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
11036
11037 * config/rs6000/predicates.md (prefixed_mem_operand): Call
11038 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
11039 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
11040 Rename function from rs6000_prefixed_address.
11041 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11042 TARGET_HAS_TOC.
11043 (TARGET_TOC): Likewise.
11044 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11045 rs6000.h.
11046 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11047 TARGET_HAS_TOC.
11048 (TARGET_TOC): Likewise.
11049 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11050 rs6000.h.
11051 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11052 TARGET_HAS_TOC.
11053 (TARGET_TOC): Likewise.
11054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11055 check to require -mcmodel=medium for pc-relative addressing.
11056 (create_TOC_reference): Add assertion for TARGET_TOC.
11057 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
11058 TARGET_NO_TOC.
11059 (rs6000_emit_move): Likewise.
11060 (TOC_alias_set): Rename TOC alias set static variable from 'set'
11061 to 'TOC_alias_set'.
11062 (get_TOC_alias_set): Likewise.
11063 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
11064 TARGET_NO_TOC.
11065 (rs6000_can_eliminate): Likewise.
11066 (rs6000_prefixed_address_mode_p): Rename function from
11067 rs6000_prefixed_address.
11068 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
11069 TARGET_HAS_TOC and not pc-relative.
11070 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
11071 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
11072 TARGET_HAS_TOC.
11073 (TARGET_TOC): Likewise.
11074 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
11075 rs6000.h.
11076
11077 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
11078
11079 PR target/91188
11080 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
11081 for operand 0. Do not use (match_dup) to match operand 1 with
11082 operand 0. Add check in insn constraint that either input operand
11083 matches operand 0. Use SWI12 mode iterator to also handle
11084 HImode operands.
11085 (*and<mode>_1_slp): Ditto.
11086 (*<code>qi_1_slp): Ditto.
11087 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
11088 Do not use (match_dup) to match operand 1 with operand 0. Add
11089 check in insn constraint that operand 1 matches operand 0.
11090 Use SWI12 mode iterator to also handle HImode operands.
11091 (*ashl<mode>3_1_slp): Ditto.
11092 (*<shift_insn><mode>3_1_slp): Ditto.
11093 (*<rotate_insn><mode>3_1_slp): Ditto.
11094
11095 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11096
11097 * config/arm/arm-builtins.c
11098 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
11099 (arm_expand_unop_builtin): Likewise.
11100 * config/arm/crypto.md
11101 (crypto_sha1h): Convert from define_insn to define_expand.
11102 (crypto_<crypto_pattern>): Likewise.
11103 (crypto_sha1h_lb): New define_insn.
11104 (crypto_<crypto_pattern>_lb): Likewise.
11105
11106 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
11107
11108 PR target/90317
11109 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
11110 (vsha1cq_u32): Likewise.
11111 (vsha1pq_u32): Likewise.
11112 (vsha1mq_u32): Likewise.
11113 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
11114 vec select.
11115 (crypto_sha1c): Correct vec select.
11116 (crypto_sha1m): Likewise.
11117 (crypto_sha1p): Likewise.
11118
11119 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
11120
11121 * config/arm/predicates.md (arm_borrow_operation): New predicate.
11122 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
11123 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
11124 (subdi_zesidi_zesidi): Likewise.
11125 (negdi2_compare, negdi2_insn): Likewise.
11126 (negdi_extensidi): Likewise.
11127 (negdi_zero_extendsidi): Likewise.
11128 (arm_cmpdi_insn): Likewise.
11129 (subsi3_carryin): Use arm_borrow_operation.
11130 (subsi3_carryin_const): Likewise.
11131 (subsi3_carryin_const0): Likewise.
11132 (subsi3_carryin_compare): Likewise.
11133 (subsi3_carryin_compare_const): Likewise.
11134 (subsi3_carryin_compare_const0): Likewise.
11135 (subsi3_carryin_shift): Likewise.
11136 (rsbsi3_carryin_shift): Likewise.
11137 (negsi2_carryin_compare): Likewise.
11138
11139 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
11140
11141 PR tree-optimization/91137
11142 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
11143 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
11144 Init, use and fini the above new field.
11145 (determine_base_object_1): New function.
11146 (determine_base_object): Reimplement using walk_tree.
11147
11148 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
11149
11150 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
11151 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
11152 CLEANUP_FORCE_FAST_DCE is set.
11153 * ifcvt.c (rest_of_handle_if_conversion): Pass
11154 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
11155 if-conversion succeeded.
11156
11157 2019-07-18 Richard Biener <rguenther@suse.de>
11158
11159 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
11160 branches to make code less indented.
11161
11162 2019-07-17 Alexandre Oliva <oliva@adacore.com>
11163
11164 PR middle-end/81824
11165 * attribs.c (decls_mismatched_attributes): Simplify the logic
11166 that avoids duplicates and false positives.
11167
11168 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
11169
11170 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
11171 data into data section when generating PIC code.
11172 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
11173 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
11174 generating code for SOM targets earlier than HP-UX 11. Otherwise,
11175 return 2 for SOM and 0 for other targets.
11176
11177 2019-07-17 Jeff Law <law@redhat.com>
11178
11179 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
11180 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
11181 avoid unexpected switch statement fallthru.
11182
11183 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11184
11185 * config/i386/i386.md (*add<dwi>3_doubleword):
11186 Remove redundant constraints.
11187 (*add<mode>_1): Ditto.
11188 (*addhi_1): Ditto.
11189 (*addqi_1): Ditto.
11190 (*addqi_1_slp): Ditto.
11191 (*add<mode>_2): Ditto.
11192 (*addv<mode>4): Ditto.
11193 (*sub<dwi>3_doubleword): Ditto.
11194 (*sub<mode>_1): Ditto.
11195 (*subqi_1_slp): Ditto.
11196 (*sub<mode>_2): Ditto.
11197 (*subv<mode>4): Ditto.
11198 (*sub<mode>_3): Ditto.
11199 (@add<mode>3_carry): Ditto.
11200 (@sub<mode>3_carry): Ditto.
11201 (*add<mode>3_cc_overflow_1): Ditto.
11202 (*add<mode>3_zext_cc_overflow_2): Ditto.
11203 (*anddi_1): Ditto.
11204 (*and<mode>_1): Ditto.
11205 (*andqi_1): Ditto.
11206 (*andqi_1_slp): Ditto.
11207 (*anddi_2): Ditto.
11208 (*andqi_2_maybe_si): Ditto.
11209 (*and<mode>_2): Ditto.
11210 (*andqi_2_slp): Ditto.
11211 (*<code><mode>_1): Ditto.
11212 (*<code>qi_1): Ditto.
11213 (*<code>qi_1_slp): Ditto.
11214 (*<code><mode>_2): Ditto.
11215 (*<code>qi_2_slp): Ditto.
11216
11217 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
11218
11219 * alias.c (record_component_aliases): Do not simplify pointed-to
11220 types of ODR types.
11221
11222 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
11223
11224 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
11225 partial reg stall on alternative 2.
11226
11227 2019-07-17 Richard Biener <rguenther@suse.de>
11228
11229 PR tree-optimization/91178
11230 * tree-ssa.c (release_defs_bitset): Iterate from higher to
11231 lower SSA names to avoid quadratic behavior in the common case.
11232 * tree-data-ref.c (split_constant_offset): Add limit argument
11233 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11234 (split_constant_offset_1): Add limit argument and use it to
11235 limit SSA def walking. Optimize the common plus/minus case.
11236
11237 2019-07-17 Richard Biener <rguenther@suse.de>
11238
11239 PR tree-optimization/91178
11240 * tree-vect-stmts.c (get_group_load_store_type): For SLP
11241 loads with a gap larger than the vector size always use
11242 VMAT_STRIDED_SLP.
11243 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
11244 avoid loading vectors that are only contained in the gap
11245 and thus are not needed.
11246
11247 2019-07-17 Richard Biener <rguenther@suse.de>
11248
11249 PR tree-optimization/91180
11250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
11251 computation for memset partial defs.
11252
11253 2019-07-17 Jakub Jelinek <jakub@redhat.com>
11254
11255 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
11256 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
11257 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
11258 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
11259 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
11260 * omp-grid.c (grid_process_grid_body,
11261 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
11262 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
11263 == GF_OMP_FOR_KIND_SIMD.
11264 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
11265 check_omp_nesting_restrictions, scan_omp_1_stmt,
11266 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
11267 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
11268 omp_find_scan): Likewise.
11269 * omp-expand.c (expand_omp_for): Likewise.
11270 * omp-general.c (omp_extract_for_data): Likewise.
11271
11272 PR tree-optimization/91157
11273 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
11274 a vector boolean with scalar mode.
11275 (expand_vector_condition): Handle first operand being a vector boolean
11276 with scalar mode.
11277 (expand_vector_operations_1): For comparisons, don't bail out early
11278 if the return type is vector boolean with scalar mode, but comparison
11279 operand type is not.
11280
11281 2019-07-17 Richard Biener <rguenther@suse.de>
11282
11283 PR tree-optimization/91181
11284 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
11285 IFN_LOADs as calls.
11286
11287 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
11288
11289 * config/i386/i386.md (*testdi_1): Match CCZmode for
11290 constants that might have the SImode sign bit set.
11291 (*testqi_1_maybe_si): Remove "!" constraint modifier.
11292 Use correct constraints for pentium pairing.
11293 (*test<mode>_1): Ditto.
11294
11295 2019-07-16 Jeff Law <law@redhat.com>
11296
11297 PR rtl-optimization/91173
11298 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
11299 SSA_NAME with a constant value, fold its value into the offset
11300 and clear the base before calling gen_addr_rtx.
11301
11302 2019-07-16 Jakub Jelinek <jakub@redhat.com>
11303
11304 PR rtl-optimization/91164
11305 * dse.c (rest_of_handle_dse): If dead edges have been purged,
11306 invalidate dominance info.
11307
11308 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11309
11310 * read-md.h (md_reader::record_potential_iterator_use): Add a
11311 file_location parameter.
11312 * read-rtl.c (attribute_use::loc): New field.
11313 (map_attr_string): Take a file_location parameter. Report cases
11314 in which attributes map to multiple distinct values.
11315 (apply_attribute_uses): Update call accordingly.
11316 (md_reader::handle_overloaded_name): Likewise.
11317 (md_reader::apply_iterator_to_string): Likewise. Skip empty
11318 nonnull strings.
11319 (record_attribute_use): Take a file_location parameter.
11320 Initialize attribute_use::loc.
11321 (md_reader::record_potential_iterator_use): Take a file_location
11322 parameter. Update call to record_attribute_use.
11323 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
11324 (rtx_reader::read_rtx_code): Likewise.
11325 (rtx_reader::read_rtx_operand): Likewise. Record a location
11326 for implicitly-expanded empty strings.
11327
11328 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11329
11330 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
11331 Use file_location instead of separate fields.
11332 (md_reader::set_md_ptr_loc): Take a file_location instead of a
11333 separate filename and line number.
11334 * read-md.c (ptr_loc): As above.
11335 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
11336 (md_reader::fprint_md_ptr_loc): Likewise.
11337 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
11338 instead of a separate filename and line number.
11339 (md_reader::read_string): Update call accordingly.
11340
11341 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11342
11343 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
11344 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
11345 leaving the choice between SFDF and P implicit.
11346 (*mov<mode>_update2): Likewise.
11347 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
11348 rather than leaving the choice betweem IBM128 and GPR implicit.
11349 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
11350 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
11351 QHSI implicit.
11352 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
11353 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
11354 * config/rs6000/vsx.md
11355 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
11356 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
11357 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
11358 and VSX_EXTRACT_I implicit.
11359
11360 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
11361
11362 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
11363 Explicitly use <MOVEP1:MODE> for the mode attribute.
11364
11365 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
11366
11367 PR bootstrap/91176
11368 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
11369
11370 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11371
11372 PR target/91050
11373 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11374 .machine directive.
11375
11376 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11377
11378 * config/i386/i386.md (@test<mode>_ccno_1):
11379 Rename from test<mode>_ccno_1.
11380 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11381 (*testqi_1_maybe_si): Remove modrm attribute.
11382 (*test<mode>_1): Ditto.
11383 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11384 gen_test_ccno_1 and gen_extend_insn.
11385
11386 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11387
11388 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11389 to 0.
11390
11391 2019-07-15 Richard Biener <rguenther@suse.de>
11392
11393 PR middle-end/91162
11394 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11395 node make sure to replace all uses with something valid.
11396
11397 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11398
11399 PR tree-optimization/88497
11400 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11401 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11402 function undistribute_bitref_for_vector.
11403 (undistribute_bitref_for_vector): New function.
11404 (cleanup_vinfo_map): Likewise.
11405 (sort_by_mach_mode): Likewise.
11406
11407 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11408
11409 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11410 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11411 and testdi_ccno_1 using SWI48 mode attribute.
11412 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11413 x86_64_szext_general_operand.
11414 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11415 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11416 instead of genera_operand mode attribute.
11417
11418 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11419
11420 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11421 fopen and fclose to their respective types.
11422 (DotFn.invoke): Ditto.
11423
11424 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11425
11426 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11427 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11428 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11429 (array_index_predicate): Remove.
11430 (analyze_function_body): Account cost for variable ofsetted array
11431 indexing.
11432 (estimate_node_size_and_time): Do not compute array index hint.
11433 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11434 (inline_read_section): Do not read array index hint.
11435 (ipa_fn_summary_write): Do not write array index hint.
11436 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11437 * ipa-cp.c (hint_time_bonus): Remove.
11438 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11439 (ipa_fnsummary): Remove array_index.
11440 * ipa-inline.c (want_inline_small_function_p): Do not use
11441 array_index.
11442 (edge_badness): Likewise.
11443 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11444
11445 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11446
11447 PR target/91148
11448 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11449 superfluous "builtin function" phrasing.
11450
11451 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11452
11453 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11454 Break out from ...
11455 (aliasing_component_refs_walk): Break out from ...
11456 (aliasing_component_refs_p): ... here.
11457
11458 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11459
11460 PR target/91148
11461 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11462 "builtin function" phrasing.
11463
11464 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11465
11466 PR target/90723
11467 * recog.h (temporary_volatile_ok): New class.
11468 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11469 volatile_ok temporarily to true using temporary_volatile_ok.
11470 * expr.c (emit_block_move_via_cpymem): Likewise.
11471 * optabs.c (maybe_legitimize_operand): Likewise.
11472
11473 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11474
11475 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11476 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11477 uses inside of order(concurrent) constructs.
11478 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11479 OMP_CLAUSE_ORDER is seen.
11480 * omp-low.c (struct omp_context): Add order_concurrent member.
11481 (scan_sharing_clauses): Set ctx->order_concurrent if
11482 OMP_CLAUSE_ORDER is seen.
11483 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11484 of simd order(concurrent). Diagnose constructs not allowed inside of
11485 for order(concurrent).
11486 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11487 complaining about static double setjmp (double); or class static
11488 methods or non-global namespace setjmps.
11489 (omp_runtime_api_call): New function.
11490 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11491 order(concurrent) loops.
11492
11493 2019-07-12 Martin Sebor <msebor@redhat.com>
11494
11495 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11496 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11497 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11498 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11499
11500 2019-07-12 Jan Hubicka <jh@suse.cz>
11501
11502 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11503 (indirect_refs_may_alias_p): ... here.
11504 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11505 mem refs in the access paths.
11506
11507 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11508
11509 PR tree-optimization/89430
11510 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11511 store elimination for local variable without address escape.
11512
11513 2019-07-12 Jeff Law <law@redhat.com>
11514
11515 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11516 for the ".far" section.
11517
11518 2019-07-12 Richard Biener <rguenther@suse.de>
11519
11520 PR tree-optimization/91145
11521 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11522 chain check.
11523
11524 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11525
11526 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11527 rather than this_state as the lowering context for the ELSE
11528 seq in a GIMPLE_EH_ELSE.
11529
11530 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11531
11532 * vector-builder.h (vector_builder::elt): Allow already-supplied
11533 elements to be read back before building is complete.
11534
11535 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11536
11537 PR rtl-optimization/91136
11538 * df-core.c (ACCESSING REFS): Fix typos in comment.
11539 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11540 the beginning of the block to the initial set of live registers.
11541
11542 2019-07-12 Richard Biener <rguenther@suse.de>
11543
11544 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11545 * fold-const.c (get_array_ctor_element_at_index): Add
11546 ctor_idx output parameter informing the caller where in
11547 the constructor the element was (not) found. Add early exit
11548 for when the ctor is sorted.
11549 * gimple-fold.c (fold_array_ctor_reference): Support constant
11550 folding across multiple array elements.
11551
11552 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11553
11554 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11555 doesn't have location, set the current location to the function's end.
11556
11557 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11558
11559 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11560 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11561 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11562 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11563 * config/aarch64/aarch64-simd.md
11564 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11565 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11566 * config/aarch64/aarch64-sve.md
11567 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11568 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11569
11570 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11571
11572 * doc/md.texi: Document that @ patterns can have different
11573 numbers of operands.
11574 * genemit.c (handle_overloaded_gen): Handle this case.
11575 * genopinit.c (handle_overloaded_gen): Likewise.
11576 * gensupport.c (replace_operands_with_dups): Iterate over
11577 the new rtx's format rather than the old one's.
11578
11579 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11580
11581 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11582 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11583 order clause entries.
11584 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11585 * tree-pretty-print.c (dump_omp_clause): Likewise.
11586 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11587 Likewise.
11588 * omp-low.c (scan_sharing_clauses): Likewise.
11589 * tree-nested.c (convert_nonlocal_omp_clauses,
11590 convert_local_omp_clauses): Likewise.
11591
11592 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11593
11594 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11595 fallthrough target of current basic block isn't the placed
11596 right next.
11597
11598 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11599
11600 PR target/90980
11601 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11602 (_mm512_storeu_epi64): Likewise.
11603 (_mm512_loadu_epi32): Likewise.
11604 (_mm512_storeu_epi32): Likewise.
11605 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11606 (_mm_storeu_epi64): Likewise.
11607 (_mm256_storeu_epi32): Likewise.
11608 (_mm_storeu_epi32): Likewise.
11609
11610 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11611
11612 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11613
11614 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11615
11616 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11617 Handle Modula-2.
11618
11619 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11620
11621 PR target/91124
11622 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11623 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11624 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11625 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11626 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11627 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11628 define_insns.
11629 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11630 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11631 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11632 define_insns.
11633 (sse2_cvttpd2dq<mask_name>): Change into ...
11634 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11635 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11636 (*sse2_cvtpd2dq<mask_name>): Change into ...
11637 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11638 Add "C" constraint to const0_operand.
11639 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11640 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11641 changes.
11642
11643 PR target/91124
11644 * config/i386/i386-builtin-types.def
11645 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11646 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11647 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11648 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11649 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11650 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11651 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11652 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11653 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11654 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11655 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11656 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11657 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11658 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11659 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11660 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11661 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11662 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11663 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11664 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11665 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11666 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11667 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11668 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11669 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11670 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11671 __builtin_ia32_vpdpbusd_v4si_maskz,
11672 __builtin_ia32_vpdpbusds_v16si_mask,
11673 __builtin_ia32_vpdpbusds_v16si_maskz,
11674 __builtin_ia32_vpdpbusds_v8si_mask,
11675 __builtin_ia32_vpdpbusds_v8si_maskz,
11676 __builtin_ia32_vpdpbusds_v4si_mask,
11677 __builtin_ia32_vpdpbusds_v4si_maskz,
11678 __builtin_ia32_vpdpwssd_v16si_mask,
11679 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11680 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11681 __builtin_ia32_vpdpwssd_v4si_maskz,
11682 __builtin_ia32_vpdpwssds_v16si_mask,
11683 __builtin_ia32_vpdpwssds_v16si_maskz,
11684 __builtin_ia32_vpdpwssds_v8si_mask,
11685 __builtin_ia32_vpdpwssds_v8si_maskz,
11686 __builtin_ia32_vpdpwssds_v4si_mask,
11687 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11688 suffixed types rather than *_INT.
11689 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11690 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11691 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11692 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11693 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11694 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11695
11696 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11697
11698 * tree-vrp.c (intersect_ranges): If we know the intersection is
11699 empty, there is no need to conservatively add anything else to
11700 the set.
11701
11702 2019-07-11 Richard Biener <rguenther@suse.de>
11703
11704 PR middle-end/91131
11705 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11706 when the object is volatile and we have not cleared it even though
11707 there are no nonzero elements.
11708
11709 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11710
11711 * config/rs6000/predicates.md (cint34_operand): Update
11712 SIGNED_34BIT_OFFSET_P call.
11713 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11714 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11715 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11716 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11717 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11718 argument.
11719 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11720 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11721 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11722 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11723 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11724
11725 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11726
11727 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11728 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11729 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11730 (DEF_MIN_OSX_VERSION): New.
11731
11732 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11733
11734 * fold-const.c (fold_relational_const): Fix folding of
11735 vector-to-scalar NE_EXPRs.
11736 (test_vector_folding): Add more tests.
11737
11738 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11739
11740 PR target/91060
11741 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11742 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11743 (vec_setv2di_internal): Reexpress as...
11744 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11745 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11746 rather than gen_neon_vset_lane<mode>.
11747
11748 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11749
11750 PR target/91102
11751 * lra-constraints.c (process_alt_operands): Don't match user
11752 defined regs only if they are early clobbers.
11753
11754 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11755
11756 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11757
11758 2019-07-10 Richard Biener <rguenther@suse.de>
11759
11760 PR tree-optimization/91126
11761 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11762 native encoding offset for BYTES_BIG_ENDIAN.
11763 (vn_reference_lookup_3): Likewise.
11764
11765 2019-07-10 Richard Biener <rguenther@suse.de>
11766
11767 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11768 LHS whenever possible.
11769
11770 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11771
11772 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11773 from ...; work also on duplicated types.
11774 (nonoverlapping_component_refs_since_match): ... here
11775 (ncr_type_uid): Break out from ...
11776 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11777 available.
11778 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11779 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11780
11781 2019-07-09 Martin Sebor <msebor@redhat.com>
11782
11783 PR tree-optimization/90989
11784 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11785 optimization to just single character stores.
11786
11787 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11788
11789 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11790 Swap operands only once.
11791
11792 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11793
11794 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11795 for both call instructions.
11796
11797 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11798
11799 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11800 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11801
11802 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11803
11804 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11805 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11806 function from rs6000-logue.c back to rs6000.c.
11807 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11808
11809 2019-07-09 Martin Sebor <msebor@redhat.com>
11810
11811 PR c++/61339
11812 * auto-profile.c: Change class-key of PODs to struct and others
11813 to class.
11814 * basic-block.h: Same.
11815 * bitmap.c (bitmap_alloc): Same.
11816 * bitmap.h: Same.
11817 * builtins.c (expand_builtin_prefetch): Same.
11818 (expand_builtin_interclass_mathfn): Same.
11819 (expand_builtin_strlen): Same.
11820 (expand_builtin_mempcpy_args): Same.
11821 (expand_cmpstr): Same.
11822 (expand_builtin___clear_cache): Same.
11823 (expand_ifn_atomic_bit_test_and): Same.
11824 (expand_builtin_thread_pointer): Same.
11825 (expand_builtin_set_thread_pointer): Same.
11826 * caller-save.c (setup_save_areas): Same.
11827 (replace_reg_with_saved_mem): Same.
11828 (insert_restore): Same.
11829 (insert_save): Same.
11830 (add_used_regs): Same.
11831 * cfg.c (get_bb_copy): Same.
11832 (set_loop_copy): Same.
11833 * cfg.h: Same.
11834 * cfganal.h: Same.
11835 * cfgexpand.c (alloc_stack_frame_space): Same.
11836 (add_stack_var): Same.
11837 (add_stack_var_conflict): Same.
11838 (add_scope_conflicts_1): Same.
11839 (update_alias_info_with_stack_vars): Same.
11840 (expand_used_vars): Same.
11841 * cfghooks.c (redirect_edge_and_branch_force): Same.
11842 (delete_basic_block): Same.
11843 (split_edge): Same.
11844 (make_forwarder_block): Same.
11845 (force_nonfallthru): Same.
11846 (duplicate_block): Same.
11847 (lv_flush_pending_stmts): Same.
11848 * cfghooks.h: Same.
11849 * cfgloop.c (flow_loops_cfg_dump): Same.
11850 (flow_loop_nested_p): Same.
11851 (superloop_at_depth): Same.
11852 (get_loop_latch_edges): Same.
11853 (flow_loop_dump): Same.
11854 (flow_loops_dump): Same.
11855 (flow_loops_free): Same.
11856 (flow_loop_nodes_find): Same.
11857 (establish_preds): Same.
11858 (flow_loop_tree_node_add): Same.
11859 (flow_loop_tree_node_remove): Same.
11860 (flow_loops_find): Same.
11861 (find_subloop_latch_edge_by_profile): Same.
11862 (find_subloop_latch_edge_by_ivs): Same.
11863 (mfb_redirect_edges_in_set): Same.
11864 (form_subloop): Same.
11865 (merge_latch_edges): Same.
11866 (disambiguate_multiple_latches): Same.
11867 (disambiguate_loops_with_multiple_latches): Same.
11868 (flow_bb_inside_loop_p): Same.
11869 (glb_enum_p): Same.
11870 (get_loop_body_with_size): Same.
11871 (get_loop_body): Same.
11872 (fill_sons_in_loop): Same.
11873 (get_loop_body_in_dom_order): Same.
11874 (get_loop_body_in_custom_order): Same.
11875 (release_recorded_exits): Same.
11876 (get_loop_exit_edges): Same.
11877 (num_loop_branches): Same.
11878 (remove_bb_from_loops): Same.
11879 (find_common_loop): Same.
11880 (delete_loop): Same.
11881 (cancel_loop): Same.
11882 (verify_loop_structure): Same.
11883 (loop_preheader_edge): Same.
11884 (loop_exit_edge_p): Same.
11885 (single_exit): Same.
11886 (loop_exits_to_bb_p): Same.
11887 (loop_exits_from_bb_p): Same.
11888 (get_loop_location): Same.
11889 (record_niter_bound): Same.
11890 (get_estimated_loop_iterations_int): Same.
11891 (max_stmt_executions_int): Same.
11892 (likely_max_stmt_executions_int): Same.
11893 (get_estimated_loop_iterations): Same.
11894 (get_max_loop_iterations): Same.
11895 (get_max_loop_iterations_int): Same.
11896 (get_likely_max_loop_iterations): Same.
11897 * cfgloop.h (simple_loop_desc): Same.
11898 (get_loop): Same.
11899 (loop_depth): Same.
11900 (loop_outer): Same.
11901 (loop_iterator::next): Same.
11902 (loop_outermost): Same.
11903 * cfgloopanal.c (mark_irreducible_loops): Same.
11904 (num_loop_insns): Same.
11905 (average_num_loop_insns): Same.
11906 (expected_loop_iterations_unbounded): Same.
11907 (expected_loop_iterations): Same.
11908 (mark_loop_exit_edges): Same.
11909 (single_likely_exit): Same.
11910 * cfgloopmanip.c (fix_bb_placement): Same.
11911 (fix_bb_placements): Same.
11912 (remove_path): Same.
11913 (place_new_loop): Same.
11914 (add_loop): Same.
11915 (scale_loop_frequencies): Same.
11916 (scale_loop_profile): Same.
11917 (create_empty_if_region_on_edge): Same.
11918 (create_empty_loop_on_edge): Same.
11919 (loopify): Same.
11920 (unloop): Same.
11921 (fix_loop_placements): Same.
11922 (copy_loop_info): Same.
11923 (duplicate_loop): Same.
11924 (duplicate_subloops): Same.
11925 (loop_redirect_edge): Same.
11926 (can_duplicate_loop_p): Same.
11927 (duplicate_loop_to_header_edge): Same.
11928 (mfb_keep_just): Same.
11929 (has_preds_from_loop): Same.
11930 (create_preheader): Same.
11931 (create_preheaders): Same.
11932 (lv_adjust_loop_entry_edge): Same.
11933 (loop_version): Same.
11934 * cfgloopmanip.h: Same.
11935 * cgraph.h: Same.
11936 * cgraphbuild.c: Same.
11937 * combine.c (make_extraction): Same.
11938 * config/i386/i386-features.c: Same.
11939 * config/i386/i386-features.h: Same.
11940 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11941 (ix86_emit_outlined_ms2sysv_restore): Same.
11942 (ix86_noce_conversion_profitable_p): Same.
11943 (ix86_init_cost): Same.
11944 (ix86_simd_clone_usable): Same.
11945 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11946 Wstruct-not-pod.
11947 * coretypes.h: Same.
11948 * data-streamer-in.c (string_for_index): Change class-key of PODs
11949 to struct and others to class.
11950 (streamer_read_indexed_string): Same.
11951 (streamer_read_string): Same.
11952 (bp_unpack_indexed_string): Same.
11953 (bp_unpack_string): Same.
11954 (streamer_read_uhwi): Same.
11955 (streamer_read_hwi): Same.
11956 (streamer_read_gcov_count): Same.
11957 (streamer_read_wide_int): Same.
11958 * data-streamer.h (streamer_write_bitpack): Same.
11959 (bp_unpack_value): Same.
11960 (streamer_write_char_stream): Same.
11961 (streamer_write_hwi_in_range): Same.
11962 (streamer_write_record_start): Same.
11963 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11964 (add_cross_iteration_register_deps): Same.
11965 (build_intra_loop_deps): Same.
11966 * df-core.c (df_analyze): Same.
11967 (loop_post_order_compute): Same.
11968 (loop_inverted_post_order_compute): Same.
11969 * df-problems.c (df_rd_alloc): Same.
11970 (df_rd_simulate_one_insn): Same.
11971 (df_rd_local_compute): Same.
11972 (df_rd_init_solution): Same.
11973 (df_rd_confluence_n): Same.
11974 (df_rd_transfer_function): Same.
11975 (df_rd_free): Same.
11976 (df_rd_dump_defs_set): Same.
11977 (df_rd_top_dump): Same.
11978 (df_lr_alloc): Same.
11979 (df_lr_reset): Same.
11980 (df_lr_local_compute): Same.
11981 (df_lr_init): Same.
11982 (df_lr_confluence_n): Same.
11983 (df_lr_free): Same.
11984 (df_lr_top_dump): Same.
11985 (df_lr_verify_transfer_functions): Same.
11986 (df_live_alloc): Same.
11987 (df_live_reset): Same.
11988 (df_live_init): Same.
11989 (df_live_confluence_n): Same.
11990 (df_live_finalize): Same.
11991 (df_live_free): Same.
11992 (df_live_top_dump): Same.
11993 (df_live_verify_transfer_functions): Same.
11994 (df_mir_alloc): Same.
11995 (df_mir_reset): Same.
11996 (df_mir_init): Same.
11997 (df_mir_confluence_n): Same.
11998 (df_mir_free): Same.
11999 (df_mir_top_dump): Same.
12000 (df_word_lr_alloc): Same.
12001 (df_word_lr_reset): Same.
12002 (df_word_lr_init): Same.
12003 (df_word_lr_confluence_n): Same.
12004 (df_word_lr_free): Same.
12005 (df_word_lr_top_dump): Same.
12006 (df_md_alloc): Same.
12007 (df_md_simulate_one_insn): Same.
12008 (df_md_reset): Same.
12009 (df_md_init): Same.
12010 (df_md_free): Same.
12011 (df_md_top_dump): Same.
12012 * df-scan.c (df_insn_delete): Same.
12013 (df_insn_rescan): Same.
12014 (df_notes_rescan): Same.
12015 (df_sort_and_compress_mws): Same.
12016 (df_install_mws): Same.
12017 (df_refs_add_to_chains): Same.
12018 (df_ref_create_structure): Same.
12019 (df_ref_record): Same.
12020 (df_def_record_1): Same.
12021 (df_find_hard_reg_defs): Same.
12022 (df_uses_record): Same.
12023 (df_get_conditional_uses): Same.
12024 (df_get_call_refs): Same.
12025 (df_recompute_luids): Same.
12026 (df_get_entry_block_def_set): Same.
12027 (df_entry_block_defs_collect): Same.
12028 (df_get_exit_block_use_set): Same.
12029 (df_exit_block_uses_collect): Same.
12030 (df_mws_verify): Same.
12031 (df_bb_verify): Same.
12032 * df.h (df_scan_get_bb_info): Same.
12033 * doc/tm.texi: Same.
12034 * dse.c (record_store): Same.
12035 * dumpfile.h: Same.
12036 * emit-rtl.c (const_fixed_hasher::equal): Same.
12037 (set_mem_attributes_minus_bitpos): Same.
12038 (change_address): Same.
12039 (adjust_address_1): Same.
12040 (offset_address): Same.
12041 * emit-rtl.h: Same.
12042 * except.c (dw2_build_landing_pads): Same.
12043 (sjlj_emit_dispatch_table): Same.
12044 * explow.c (allocate_dynamic_stack_space): Same.
12045 (emit_stack_probe): Same.
12046 (probe_stack_range): Same.
12047 * expmed.c (store_bit_field_using_insv): Same.
12048 (store_bit_field_1): Same.
12049 (store_integral_bit_field): Same.
12050 (extract_bit_field_using_extv): Same.
12051 (extract_bit_field_1): Same.
12052 (emit_cstore): Same.
12053 * expr.c (emit_block_move_via_cpymem): Same.
12054 (expand_cmpstrn_or_cmpmem): Same.
12055 (set_storage_via_setmem): Same.
12056 (emit_single_push_insn_1): Same.
12057 (expand_assignment): Same.
12058 (store_constructor): Same.
12059 (expand_expr_real_2): Same.
12060 (expand_expr_real_1): Same.
12061 (try_casesi): Same.
12062 * flags.h: Same.
12063 * function.c (try_fit_stack_local): Same.
12064 (assign_stack_local_1): Same.
12065 (assign_stack_local): Same.
12066 (cut_slot_from_list): Same.
12067 (insert_slot_to_list): Same.
12068 (max_slot_level): Same.
12069 (move_slot_to_level): Same.
12070 (temp_address_hasher::equal): Same.
12071 (remove_unused_temp_slot_addresses): Same.
12072 (assign_temp): Same.
12073 (combine_temp_slots): Same.
12074 (update_temp_slot_address): Same.
12075 (preserve_temp_slots): Same.
12076 * function.h: Same.
12077 * fwprop.c: Same.
12078 * gcc-rich-location.h: Same.
12079 * gcov.c: Same.
12080 * genattrtab.c (check_attr_test): Same.
12081 (check_attr_value): Same.
12082 (convert_set_attr_alternative): Same.
12083 (convert_set_attr): Same.
12084 (check_defs): Same.
12085 (copy_boolean): Same.
12086 (get_attr_value): Same.
12087 (expand_delays): Same.
12088 (make_length_attrs): Same.
12089 (min_fn): Same.
12090 (make_alternative_compare): Same.
12091 (simplify_test_exp): Same.
12092 (tests_attr_p): Same.
12093 (get_attr_order): Same.
12094 (clear_struct_flag): Same.
12095 (gen_attr): Same.
12096 (compares_alternatives_p): Same.
12097 (gen_insn): Same.
12098 (gen_delay): Same.
12099 (find_attrs_to_cache): Same.
12100 (write_test_expr): Same.
12101 (walk_attr_value): Same.
12102 (write_attr_get): Same.
12103 (eliminate_known_true): Same.
12104 (write_insn_cases): Same.
12105 (write_attr_case): Same.
12106 (write_attr_valueq): Same.
12107 (write_attr_value): Same.
12108 (write_dummy_eligible_delay): Same.
12109 (next_comma_elt): Same.
12110 (find_attr): Same.
12111 (make_internal_attr): Same.
12112 (copy_rtx_unchanging): Same.
12113 (gen_insn_reserv): Same.
12114 (check_tune_attr): Same.
12115 (make_automaton_attrs): Same.
12116 (handle_arg): Same.
12117 * genextract.c (gen_insn): Same.
12118 (VEC_char_to_string): Same.
12119 * genmatch.c (print_operand): Same.
12120 (lower): Same.
12121 (parser::parse_operation): Same.
12122 (parser::parse_capture): Same.
12123 (parser::parse_c_expr): Same.
12124 (parser::parse_simplify): Same.
12125 (main): Same.
12126 * genoutput.c (output_operand_data): Same.
12127 (output_get_insn_name): Same.
12128 (compare_operands): Same.
12129 (place_operands): Same.
12130 (process_template): Same.
12131 (validate_insn_alternatives): Same.
12132 (validate_insn_operands): Same.
12133 (gen_expand): Same.
12134 (note_constraint): Same.
12135 * genpreds.c (write_one_predicate_function): Same.
12136 (add_constraint): Same.
12137 (process_define_register_constraint): Same.
12138 (write_lookup_constraint_1): Same.
12139 (write_lookup_constraint_array): Same.
12140 (write_insn_constraint_len): Same.
12141 (write_reg_class_for_constraint_1): Same.
12142 (write_constraint_satisfied_p_array): Same.
12143 * genrecog.c (optimize_subroutine_group): Same.
12144 * gensupport.c (process_define_predicate): Same.
12145 (queue_pattern): Same.
12146 (remove_from_queue): Same.
12147 (process_rtx): Same.
12148 (is_predicable): Same.
12149 (change_subst_attribute): Same.
12150 (subst_pattern_match): Same.
12151 (alter_constraints): Same.
12152 (alter_attrs_for_insn): Same.
12153 (shift_output_template): Same.
12154 (alter_output_for_subst_insn): Same.
12155 (process_one_cond_exec): Same.
12156 (subst_dup): Same.
12157 (process_define_cond_exec): Same.
12158 (mnemonic_htab_callback): Same.
12159 (gen_mnemonic_attr): Same.
12160 (read_md_rtx): Same.
12161 * ggc-page.c: Same.
12162 * gimple-loop-interchange.cc (dump_reduction): Same.
12163 (dump_induction): Same.
12164 (loop_cand::~loop_cand): Same.
12165 (free_data_refs_with_aux): Same.
12166 (tree_loop_interchange::interchange_loops): Same.
12167 (tree_loop_interchange::map_inductions_to_loop): Same.
12168 (tree_loop_interchange::move_code_to_inner_loop): Same.
12169 (compute_access_stride): Same.
12170 (compute_access_strides): Same.
12171 (proper_loop_form_for_interchange): Same.
12172 (tree_loop_interchange_compute_ddrs): Same.
12173 (prune_datarefs_not_in_loop): Same.
12174 (prepare_data_references): Same.
12175 (pass_linterchange::execute): Same.
12176 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
12177 (unroll_jam_possible_p): Same.
12178 (fuse_loops): Same.
12179 (adjust_unroll_factor): Same.
12180 (tree_loop_unroll_and_jam): Same.
12181 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
12182 (loop_versioning::expensive_stmt_p): Same.
12183 (loop_versioning::version_for_unity): Same.
12184 (loop_versioning::dump_inner_likelihood): Same.
12185 (loop_versioning::find_per_loop_multiplication): Same.
12186 (loop_versioning::analyze_term_using_scevs): Same.
12187 (loop_versioning::record_address_fragment): Same.
12188 (loop_versioning::analyze_expr): Same.
12189 (loop_versioning::analyze_blocks): Same.
12190 (loop_versioning::prune_conditions): Same.
12191 (loop_versioning::merge_loop_info): Same.
12192 (loop_versioning::add_loop_to_queue): Same.
12193 (loop_versioning::decide_whether_loop_is_versionable): Same.
12194 (loop_versioning::make_versioning_decisions): Same.
12195 (loop_versioning::implement_versioning_decisions): Same.
12196 * gimple-ssa-evrp-analyze.c
12197 (evrp_range_analyzer::record_ranges_from_phis): Same.
12198 * gimple-ssa-store-merging.c (split_store::split_store): Same.
12199 (count_multiple_uses): Same.
12200 (split_group): Same.
12201 (imm_store_chain_info::output_merged_store): Same.
12202 (pass_store_merging::process_store): Same.
12203 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
12204 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
12205 (is_max): Same.
12206 (alloca_call_type): Same.
12207 (pass_walloca::execute): Same.
12208 * gimple-streamer-in.c (input_phi): Same.
12209 (input_gimple_stmt): Same.
12210 * gimple-streamer.h: Same.
12211 * godump.c (go_force_record_alignment): Same.
12212 (go_format_type): Same.
12213 (go_output_type): Same.
12214 (go_output_fndecl): Same.
12215 (go_output_typedef): Same.
12216 (keyword_hash_init): Same.
12217 (find_dummy_types): Same.
12218 * graph.c (draw_cfg_nodes_no_loops): Same.
12219 (draw_cfg_nodes_for_loop): Same.
12220 * hard-reg-set.h (hard_reg_set_iter_next): Same.
12221 * hsa-brig.c: Same.
12222 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
12223 * hsa-dump.c (dump_hsa_cfun): Same.
12224 * hsa-gen.c (gen_function_def_parameters): Same.
12225 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
12226 * input.c (dump_line_table_statistics): Same.
12227 (test_lexer): Same.
12228 * input.h: Same.
12229 * internal-fn.c (get_multi_vector_move): Same.
12230 (expand_load_lanes_optab_fn): Same.
12231 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
12232 (expand_GOMP_SIMT_EXIT): Same.
12233 (expand_GOMP_SIMT_LAST_LANE): Same.
12234 (expand_GOMP_SIMT_ORDERED_PRED): Same.
12235 (expand_GOMP_SIMT_VOTE_ANY): Same.
12236 (expand_GOMP_SIMT_XCHG_BFLY): Same.
12237 (expand_GOMP_SIMT_XCHG_IDX): Same.
12238 (expand_addsub_overflow): Same.
12239 (expand_neg_overflow): Same.
12240 (expand_mul_overflow): Same.
12241 (expand_call_mem_ref): Same.
12242 (expand_mask_load_optab_fn): Same.
12243 (expand_scatter_store_optab_fn): Same.
12244 (expand_gather_load_optab_fn): Same.
12245 * ipa-cp.c (ipa_get_parm_lattices): Same.
12246 (print_all_lattices): Same.
12247 (ignore_edge_p): Same.
12248 (build_toporder_info): Same.
12249 (free_toporder_info): Same.
12250 (push_node_to_stack): Same.
12251 (ipcp_lattice<valtype>::set_contains_variable): Same.
12252 (set_agg_lats_to_bottom): Same.
12253 (ipcp_bits_lattice::meet_with): Same.
12254 (set_single_call_flag): Same.
12255 (initialize_node_lattices): Same.
12256 (ipa_get_jf_ancestor_result): Same.
12257 (ipcp_verify_propagated_values): Same.
12258 (propagate_scalar_across_jump_function): Same.
12259 (propagate_context_across_jump_function): Same.
12260 (propagate_bits_across_jump_function): Same.
12261 (ipa_vr_operation_and_type_effects): Same.
12262 (propagate_vr_across_jump_function): Same.
12263 (set_check_aggs_by_ref): Same.
12264 (set_chain_of_aglats_contains_variable): Same.
12265 (merge_aggregate_lattices): Same.
12266 (agg_pass_through_permissible_p): Same.
12267 (propagate_aggs_across_jump_function): Same.
12268 (call_passes_through_thunk_p): Same.
12269 (propagate_constants_across_call): Same.
12270 (devirtualization_time_bonus): Same.
12271 (good_cloning_opportunity_p): Same.
12272 (context_independent_aggregate_values): Same.
12273 (gather_context_independent_values): Same.
12274 (perform_estimation_of_a_value): Same.
12275 (estimate_local_effects): Same.
12276 (value_topo_info<valtype>::add_val): Same.
12277 (add_all_node_vals_to_toposort): Same.
12278 (value_topo_info<valtype>::propagate_effects): Same.
12279 (ipcp_propagate_stage): Same.
12280 (ipcp_discover_new_direct_edges): Same.
12281 (same_node_or_its_all_contexts_clone_p): Same.
12282 (cgraph_edge_brings_value_p): Same.
12283 (gather_edges_for_value): Same.
12284 (create_specialized_node): Same.
12285 (find_more_scalar_values_for_callers_subset): Same.
12286 (find_more_contexts_for_caller_subset): Same.
12287 (copy_plats_to_inter): Same.
12288 (intersect_aggregates_with_edge): Same.
12289 (find_aggregate_values_for_callers_subset): Same.
12290 (cgraph_edge_brings_all_agg_vals_for_node): Same.
12291 (decide_about_value): Same.
12292 (decide_whether_version_node): Same.
12293 (spread_undeadness): Same.
12294 (identify_dead_nodes): Same.
12295 (ipcp_store_vr_results): Same.
12296 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
12297 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
12298 (redirect_to_unreachable): Same.
12299 (edge_set_predicate): Same.
12300 (evaluate_conditions_for_known_args): Same.
12301 (evaluate_properties_for_edge): Same.
12302 (ipa_fn_summary_t::duplicate): Same.
12303 (ipa_call_summary_t::duplicate): Same.
12304 (dump_ipa_call_summary): Same.
12305 (ipa_dump_fn_summary): Same.
12306 (eliminated_by_inlining_prob): Same.
12307 (set_cond_stmt_execution_predicate): Same.
12308 (set_switch_stmt_execution_predicate): Same.
12309 (compute_bb_predicates): Same.
12310 (will_be_nonconstant_expr_predicate): Same.
12311 (phi_result_unknown_predicate): Same.
12312 (analyze_function_body): Same.
12313 (compute_fn_summary): Same.
12314 (estimate_edge_devirt_benefit): Same.
12315 (estimate_edge_size_and_time): Same.
12316 (estimate_calls_size_and_time): Same.
12317 (estimate_node_size_and_time): Same.
12318 (remap_edge_change_prob): Same.
12319 (remap_edge_summaries): Same.
12320 (ipa_merge_fn_summary_after_inlining): Same.
12321 (ipa_fn_summary_generate): Same.
12322 (inline_read_section): Same.
12323 (ipa_fn_summary_read): Same.
12324 (ipa_fn_summary_write): Same.
12325 * ipa-fnsummary.h: Same.
12326 * ipa-hsa.c (ipa_hsa_read_section): Same.
12327 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
12328 * ipa-icf.c (sem_function::param_used_p): Same.
12329 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
12330 * ipa-inline.c (edge_badness): Same.
12331 (inline_small_functions): Same.
12332 * ipa-polymorphic-call.c
12333 (ipa_polymorphic_call_context::stream_out): Same.
12334 * ipa-predicate.c (predicate::remap_after_duplication): Same.
12335 (predicate::remap_after_inlining): Same.
12336 (predicate::stream_out): Same.
12337 * ipa-predicate.h: Same.
12338 * ipa-profile.c (ipa_profile_read_summary): Same.
12339 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
12340 (count_formal_params): Same.
12341 (ipa_dump_param): Same.
12342 (ipa_alloc_node_params): Same.
12343 (ipa_print_node_jump_functions_for_edge): Same.
12344 (ipa_print_node_jump_functions): Same.
12345 (ipa_load_from_parm_agg): Same.
12346 (get_ancestor_addr_info): Same.
12347 (ipa_compute_jump_functions_for_edge): Same.
12348 (ipa_analyze_virtual_call_uses): Same.
12349 (ipa_analyze_stmt_uses): Same.
12350 (ipa_analyze_params_uses_in_bb): Same.
12351 (update_jump_functions_after_inlining): Same.
12352 (try_decrement_rdesc_refcount): Same.
12353 (ipa_impossible_devirt_target): Same.
12354 (update_indirect_edges_after_inlining): Same.
12355 (combine_controlled_uses_counters): Same.
12356 (ipa_edge_args_sum_t::duplicate): Same.
12357 (ipa_write_jump_function): Same.
12358 (ipa_write_indirect_edge_info): Same.
12359 (ipa_write_node_info): Same.
12360 (ipa_read_edge_info): Same.
12361 (ipa_prop_read_section): Same.
12362 (read_replacements_section): Same.
12363 * ipa-prop.h (ipa_get_param_count): Same.
12364 (ipa_get_param): Same.
12365 (ipa_get_type): Same.
12366 (ipa_get_param_move_cost): Same.
12367 (ipa_set_param_used): Same.
12368 (ipa_get_controlled_uses): Same.
12369 (ipa_set_controlled_uses): Same.
12370 (ipa_get_cs_argument_count): Same.
12371 * ipa-pure-const.c (analyze_function): Same.
12372 (pure_const_read_summary): Same.
12373 * ipa-ref.h: Same.
12374 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12375 * ipa-split.c (test_nonssa_use): Same.
12376 (dump_split_point): Same.
12377 (dominated_by_forbidden): Same.
12378 (split_part_set_ssa_name_p): Same.
12379 (find_split_points): Same.
12380 * ira-build.c (finish_loop_tree_nodes): Same.
12381 (low_pressure_loop_node_p): Same.
12382 * ira-color.c (ira_reuse_stack_slot): Same.
12383 * ira-int.h: Same.
12384 * ira.c (setup_reg_equiv): Same.
12385 (print_insn_chain): Same.
12386 (ira): Same.
12387 * loop-doloop.c (doloop_condition_get): Same.
12388 (add_test): Same.
12389 (record_reg_sets): Same.
12390 (doloop_optimize): Same.
12391 * loop-init.c (loop_optimizer_init): Same.
12392 (fix_loop_structure): Same.
12393 * loop-invariant.c (merge_identical_invariants): Same.
12394 (compute_always_reached): Same.
12395 (find_exits): Same.
12396 (may_assign_reg_p): Same.
12397 (find_invariants_bb): Same.
12398 (find_invariants_body): Same.
12399 (replace_uses): Same.
12400 (can_move_invariant_reg): Same.
12401 (free_inv_motion_data): Same.
12402 (move_single_loop_invariants): Same.
12403 (change_pressure): Same.
12404 (mark_ref_regs): Same.
12405 (calculate_loop_reg_pressure): Same.
12406 * loop-iv.c (biv_entry_hasher::equal): Same.
12407 (iv_extend_to_rtx_code): Same.
12408 (check_iv_ref_table_size): Same.
12409 (clear_iv_info): Same.
12410 (latch_dominating_def): Same.
12411 (iv_get_reaching_def): Same.
12412 (iv_constant): Same.
12413 (iv_subreg): Same.
12414 (iv_extend): Same.
12415 (iv_neg): Same.
12416 (iv_add): Same.
12417 (iv_mult): Same.
12418 (get_biv_step): Same.
12419 (record_iv): Same.
12420 (analyzed_for_bivness_p): Same.
12421 (record_biv): Same.
12422 (iv_analyze_biv): Same.
12423 (iv_analyze_expr): Same.
12424 (iv_analyze_def): Same.
12425 (iv_analyze_op): Same.
12426 (iv_analyze): Same.
12427 (iv_analyze_result): Same.
12428 (biv_p): Same.
12429 (eliminate_implied_conditions): Same.
12430 (simplify_using_initial_values): Same.
12431 (shorten_into_mode): Same.
12432 (canonicalize_iv_subregs): Same.
12433 (determine_max_iter): Same.
12434 (check_simple_exit): Same.
12435 (find_simple_exit): Same.
12436 (get_simple_loop_desc): Same.
12437 * loop-unroll.c (report_unroll): Same.
12438 (decide_unrolling): Same.
12439 (unroll_loops): Same.
12440 (loop_exit_at_end_p): Same.
12441 (decide_unroll_constant_iterations): Same.
12442 (unroll_loop_constant_iterations): Same.
12443 (compare_and_jump_seq): Same.
12444 (unroll_loop_runtime_iterations): Same.
12445 (decide_unroll_stupid): Same.
12446 (unroll_loop_stupid): Same.
12447 (referenced_in_one_insn_in_loop_p): Same.
12448 (reset_debug_uses_in_loop): Same.
12449 (analyze_iv_to_split_insn): Same.
12450 * lra-eliminations.c (lra_debug_elim_table): Same.
12451 (setup_can_eliminate): Same.
12452 (form_sum): Same.
12453 (lra_get_elimination_hard_regno): Same.
12454 (lra_eliminate_regs_1): Same.
12455 (eliminate_regs_in_insn): Same.
12456 (update_reg_eliminate): Same.
12457 (init_elimination): Same.
12458 (lra_eliminate): Same.
12459 * lra-int.h: Same.
12460 * lra-lives.c (initiate_live_solver): Same.
12461 * lra-remat.c (create_remat_bb_data): Same.
12462 * lra-spills.c (lra_spill): Same.
12463 * lra.c (lra_set_insn_recog_data): Same.
12464 (lra_set_used_insn_alternative_by_uid): Same.
12465 (init_reg_info): Same.
12466 (expand_reg_info): Same.
12467 * lto-cgraph.c (output_symtab): Same.
12468 (read_identifier): Same.
12469 (get_alias_symbol): Same.
12470 (input_node): Same.
12471 (input_varpool_node): Same.
12472 (input_ref): Same.
12473 (input_edge): Same.
12474 (input_cgraph_1): Same.
12475 (input_refs): Same.
12476 (input_symtab): Same.
12477 (input_offload_tables): Same.
12478 (output_cgraph_opt_summary): Same.
12479 (input_edge_opt_summary): Same.
12480 (input_cgraph_opt_section): Same.
12481 * lto-section-in.c (lto_free_raw_section_data): Same.
12482 (lto_create_simple_input_block): Same.
12483 (lto_free_function_in_decl_state_for_node): Same.
12484 * lto-streamer-in.c (lto_tag_check_set): Same.
12485 (lto_location_cache::revert_location_cache): Same.
12486 (lto_location_cache::input_location): Same.
12487 (lto_input_location): Same.
12488 (stream_input_location_now): Same.
12489 (lto_input_tree_ref): Same.
12490 (lto_input_eh_catch_list): Same.
12491 (input_eh_region): Same.
12492 (lto_init_eh): Same.
12493 (make_new_block): Same.
12494 (input_cfg): Same.
12495 (fixup_call_stmt_edges): Same.
12496 (input_struct_function_base): Same.
12497 (input_function): Same.
12498 (lto_read_body_or_constructor): Same.
12499 (lto_read_tree_1): Same.
12500 (lto_read_tree): Same.
12501 (lto_input_scc): Same.
12502 (lto_input_tree_1): Same.
12503 (lto_input_toplevel_asms): Same.
12504 (lto_input_mode_table): Same.
12505 (lto_reader_init): Same.
12506 (lto_data_in_create): Same.
12507 * lto-streamer-out.c (output_cfg): Same.
12508 * lto-streamer.h: Same.
12509 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12510 (generate_prolog_epilog): Same.
12511 (mark_loop_unsched): Same.
12512 (dump_insn_location): Same.
12513 (loop_canon_p): Same.
12514 (sms_schedule): Same.
12515 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12516 (expand_omp_for_generic): Same.
12517 (expand_omp_for_static_nochunk): Same.
12518 (expand_omp_for_static_chunk): Same.
12519 (expand_omp_simd): Same.
12520 (expand_omp_taskloop_for_inner): Same.
12521 (expand_oacc_for): Same.
12522 (expand_omp_atomic_pipeline): Same.
12523 (mark_loops_in_oacc_kernels_region): Same.
12524 * omp-offload.c (oacc_xform_loop): Same.
12525 * omp-simd-clone.c (simd_clone_adjust): Same.
12526 * optabs-query.c (get_traditional_extraction_insn): Same.
12527 * optabs.c (expand_vector_broadcast): Same.
12528 (expand_binop_directly): Same.
12529 (expand_twoval_unop): Same.
12530 (expand_twoval_binop): Same.
12531 (expand_unop_direct): Same.
12532 (emit_indirect_jump): Same.
12533 (emit_conditional_move): Same.
12534 (emit_conditional_neg_or_complement): Same.
12535 (emit_conditional_add): Same.
12536 (vector_compare_rtx): Same.
12537 (expand_vec_perm_1): Same.
12538 (expand_vec_perm_const): Same.
12539 (expand_vec_cond_expr): Same.
12540 (expand_vec_series_expr): Same.
12541 (maybe_emit_atomic_exchange): Same.
12542 (maybe_emit_sync_lock_test_and_set): Same.
12543 (expand_atomic_compare_and_swap): Same.
12544 (expand_atomic_load): Same.
12545 (expand_atomic_store): Same.
12546 (maybe_emit_op): Same.
12547 (valid_multiword_target_p): Same.
12548 (create_integer_operand): Same.
12549 (maybe_legitimize_operand_same_code): Same.
12550 (maybe_legitimize_operand): Same.
12551 (create_convert_operand_from_type): Same.
12552 (can_reuse_operands_p): Same.
12553 (maybe_legitimize_operands): Same.
12554 (maybe_gen_insn): Same.
12555 (maybe_expand_insn): Same.
12556 (maybe_expand_jump_insn): Same.
12557 (expand_insn): Same.
12558 * optabs.h (create_expand_operand): Same.
12559 (create_fixed_operand): Same.
12560 (create_output_operand): Same.
12561 (create_input_operand): Same.
12562 (create_convert_operand_to): Same.
12563 (create_convert_operand_from): Same.
12564 * optinfo.h: Same.
12565 * poly-int.h: Same.
12566 * predict.c (optimize_insn_for_speed_p): Same.
12567 (optimize_loop_for_size_p): Same.
12568 (optimize_loop_for_speed_p): Same.
12569 (optimize_loop_nest_for_speed_p): Same.
12570 (get_base_value): Same.
12571 (predicted_by_loop_heuristics_p): Same.
12572 (predict_extra_loop_exits): Same.
12573 (predict_loops): Same.
12574 (predict_paths_for_bb): Same.
12575 (predict_paths_leading_to): Same.
12576 (propagate_freq): Same.
12577 (pass_profile::execute): Same.
12578 * predict.h: Same.
12579 * profile-count.c (profile_count::differs_from_p): Same.
12580 (profile_probability::differs_lot_from_p): Same.
12581 * profile-count.h: Same.
12582 * profile.c (branch_prob): Same.
12583 * regrename.c (free_chain_data): Same.
12584 (mark_conflict): Same.
12585 (create_new_chain): Same.
12586 (merge_overlapping_regs): Same.
12587 (init_rename_info): Same.
12588 (merge_chains): Same.
12589 (regrename_analyze): Same.
12590 (regrename_do_replace): Same.
12591 (scan_rtx_reg): Same.
12592 (record_out_operands): Same.
12593 (build_def_use): Same.
12594 * regrename.h: Same.
12595 * reload.h: Same.
12596 * reload1.c (init_reload): Same.
12597 (maybe_fix_stack_asms): Same.
12598 (copy_reloads): Same.
12599 (count_pseudo): Same.
12600 (count_spilled_pseudo): Same.
12601 (find_reg): Same.
12602 (find_reload_regs): Same.
12603 (select_reload_regs): Same.
12604 (spill_hard_reg): Same.
12605 (fixup_eh_region_note): Same.
12606 (set_reload_reg): Same.
12607 (allocate_reload_reg): Same.
12608 (compute_reload_subreg_offset): Same.
12609 (reload_adjust_reg_for_icode): Same.
12610 (emit_input_reload_insns): Same.
12611 (emit_output_reload_insns): Same.
12612 (do_input_reload): Same.
12613 (inherit_piecemeal_p): Same.
12614 * rtl.h: Same.
12615 * sanopt.c (maybe_get_dominating_check): Same.
12616 (maybe_optimize_ubsan_ptr_ifn): Same.
12617 (can_remove_asan_check): Same.
12618 (maybe_optimize_asan_check_ifn): Same.
12619 (sanopt_optimize_walker): Same.
12620 * sched-deps.c (add_dependence_list): Same.
12621 (chain_to_prev_insn): Same.
12622 (add_insn_mem_dependence): Same.
12623 (create_insn_reg_set): Same.
12624 (maybe_extend_reg_info_p): Same.
12625 (sched_analyze_reg): Same.
12626 (sched_analyze_1): Same.
12627 (get_implicit_reg_pending_clobbers): Same.
12628 (chain_to_prev_insn_p): Same.
12629 (deps_analyze_insn): Same.
12630 (deps_start_bb): Same.
12631 (sched_free_deps): Same.
12632 (init_deps): Same.
12633 (init_deps_reg_last): Same.
12634 (free_deps): Same.
12635 * sched-ebb.c: Same.
12636 * sched-int.h: Same.
12637 * sched-rgn.c (add_branch_dependences): Same.
12638 (concat_insn_mem_list): Same.
12639 (deps_join): Same.
12640 (sched_rgn_compute_dependencies): Same.
12641 * sel-sched-ir.c (reset_target_context): Same.
12642 (copy_deps_context): Same.
12643 (init_id_from_df): Same.
12644 (has_dependence_p): Same.
12645 (change_loops_latches): Same.
12646 (bb_top_order_comparator): Same.
12647 (make_region_from_loop_preheader): Same.
12648 (sel_init_pipelining): Same.
12649 (get_loop_nest_for_rgn): Same.
12650 (make_regions_from_the_rest): Same.
12651 (sel_is_loop_preheader_p): Same.
12652 * sel-sched-ir.h (inner_loop_header_p): Same.
12653 (get_all_loop_exits): Same.
12654 * selftest.h: Same.
12655 * sese.c (sese_build_liveouts): Same.
12656 (sese_insert_phis_for_liveouts): Same.
12657 * sese.h (defined_in_sese_p): Same.
12658 * sreal.c (sreal::stream_out): Same.
12659 * sreal.h: Same.
12660 * streamer-hooks.h: Same.
12661 * target-globals.c (save_target_globals): Same.
12662 * target-globals.h: Same.
12663 * target.def: Same.
12664 * target.h: Same.
12665 * targhooks.c (default_has_ifunc_p): Same.
12666 (default_empty_mask_is_expensive): Same.
12667 (default_init_cost): Same.
12668 * targhooks.h: Same.
12669 * toplev.c: Same.
12670 * tree-affine.c (aff_combination_mult): Same.
12671 (aff_combination_expand): Same.
12672 (aff_combination_constant_multiple_p): Same.
12673 * tree-affine.h: Same.
12674 * tree-cfg.c (build_gimple_cfg): Same.
12675 (replace_loop_annotate_in_block): Same.
12676 (replace_uses_by): Same.
12677 (remove_bb): Same.
12678 (dump_cfg_stats): Same.
12679 (gimple_duplicate_sese_region): Same.
12680 (gimple_duplicate_sese_tail): Same.
12681 (move_block_to_fn): Same.
12682 (replace_block_vars_by_duplicates): Same.
12683 (move_sese_region_to_fn): Same.
12684 (print_loops_bb): Same.
12685 (print_loop): Same.
12686 (print_loops): Same.
12687 (debug): Same.
12688 (debug_loops): Same.
12689 * tree-cfg.h: Same.
12690 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12691 (chrec_fold_multiply_poly_poly): Same.
12692 (chrec_evaluate): Same.
12693 (chrec_component_in_loop_num): Same.
12694 (reset_evolution_in_loop): Same.
12695 (is_multivariate_chrec): Same.
12696 (chrec_contains_symbols): Same.
12697 (nb_vars_in_chrec): Same.
12698 (chrec_convert_1): Same.
12699 (chrec_convert_aggressive): Same.
12700 * tree-chrec.h: Same.
12701 * tree-core.h: Same.
12702 * tree-data-ref.c (dump_data_dependence_relation): Same.
12703 (canonicalize_base_object_address): Same.
12704 (data_ref_compare_tree): Same.
12705 (prune_runtime_alias_test_list): Same.
12706 (get_segment_min_max): Same.
12707 (create_intersect_range_checks): Same.
12708 (conflict_fn_no_dependence): Same.
12709 (object_address_invariant_in_loop_p): Same.
12710 (analyze_ziv_subscript): Same.
12711 (analyze_siv_subscript_cst_affine): Same.
12712 (analyze_miv_subscript): Same.
12713 (analyze_overlapping_iterations): Same.
12714 (build_classic_dist_vector_1): Same.
12715 (add_other_self_distances): Same.
12716 (same_access_functions): Same.
12717 (build_classic_dir_vector): Same.
12718 (subscript_dependence_tester_1): Same.
12719 (subscript_dependence_tester): Same.
12720 (access_functions_are_affine_or_constant_p): Same.
12721 (get_references_in_stmt): Same.
12722 (loop_nest_has_data_refs): Same.
12723 (graphite_find_data_references_in_stmt): Same.
12724 (find_data_references_in_bb): Same.
12725 (get_base_for_alignment): Same.
12726 (find_loop_nest_1): Same.
12727 (find_loop_nest): Same.
12728 * tree-data-ref.h (dr_alignment): Same.
12729 (ddr_dependence_level): Same.
12730 * tree-if-conv.c (fold_build_cond_expr): Same.
12731 (add_to_predicate_list): Same.
12732 (add_to_dst_predicate_list): Same.
12733 (phi_convertible_by_degenerating_args): Same.
12734 (idx_within_array_bound): Same.
12735 (all_preds_critical_p): Same.
12736 (pred_blocks_visited_p): Same.
12737 (predicate_bbs): Same.
12738 (build_region): Same.
12739 (if_convertible_loop_p_1): Same.
12740 (is_cond_scalar_reduction): Same.
12741 (predicate_scalar_phi): Same.
12742 (remove_conditions_and_labels): Same.
12743 (combine_blocks): Same.
12744 (version_loop_for_if_conversion): Same.
12745 (versionable_outer_loop_p): Same.
12746 (ifcvt_local_dce): Same.
12747 (tree_if_conversion): Same.
12748 (pass_if_conversion::gate): Same.
12749 * tree-if-conv.h: Same.
12750 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12751 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12752 (free_rdg): Same.
12753 (stmt_has_scalar_dependences_outside_loop): Same.
12754 (copy_loop_before): Same.
12755 (create_bb_after_loop): Same.
12756 (const_with_all_bytes_same): Same.
12757 (generate_memset_builtin): Same.
12758 (generate_memcpy_builtin): Same.
12759 (destroy_loop): Same.
12760 (build_rdg_partition_for_vertex): Same.
12761 (compute_access_range): Same.
12762 (data_ref_segment_size): Same.
12763 (latch_dominated_by_data_ref): Same.
12764 (compute_alias_check_pairs): Same.
12765 (fuse_memset_builtins): Same.
12766 (finalize_partitions): Same.
12767 (find_seed_stmts_for_distribution): Same.
12768 (prepare_perfect_loop_nest): Same.
12769 * tree-parloops.c (lambda_transform_legal_p): Same.
12770 (loop_parallel_p): Same.
12771 (reduc_stmt_res): Same.
12772 (add_field_for_name): Same.
12773 (create_call_for_reduction_1): Same.
12774 (replace_uses_in_bb_by): Same.
12775 (transform_to_exit_first_loop_alt): Same.
12776 (try_transform_to_exit_first_loop_alt): Same.
12777 (transform_to_exit_first_loop): Same.
12778 (num_phis): Same.
12779 (gen_parallel_loop): Same.
12780 (gather_scalar_reductions): Same.
12781 (get_omp_data_i_param): Same.
12782 (try_create_reduction_list): Same.
12783 (oacc_entry_exit_single_gang): Same.
12784 (parallelize_loops): Same.
12785 * tree-pass.h: Same.
12786 * tree-predcom.c (determine_offset): Same.
12787 (last_always_executed_block): Same.
12788 (split_data_refs_to_components): Same.
12789 (suitable_component_p): Same.
12790 (valid_initializer_p): Same.
12791 (find_looparound_phi): Same.
12792 (insert_looparound_copy): Same.
12793 (add_looparound_copies): Same.
12794 (determine_roots_comp): Same.
12795 (predcom_tmp_var): Same.
12796 (initialize_root_vars): Same.
12797 (initialize_root_vars_store_elim_1): Same.
12798 (initialize_root_vars_store_elim_2): Same.
12799 (finalize_eliminated_stores): Same.
12800 (initialize_root_vars_lm): Same.
12801 (remove_stmt): Same.
12802 (determine_unroll_factor): Same.
12803 (execute_pred_commoning_cbck): Same.
12804 (base_names_in_chain_on): Same.
12805 (combine_chains): Same.
12806 (pcom_stmt_dominates_stmt_p): Same.
12807 (try_combine_chains): Same.
12808 (prepare_initializers_chain_store_elim): Same.
12809 (prepare_initializers_chain): Same.
12810 (prepare_initializers): Same.
12811 (prepare_finalizers_chain): Same.
12812 (prepare_finalizers): Same.
12813 (insert_init_seqs): Same.
12814 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12815 (compute_overall_effect_of_inner_loop): Same.
12816 (add_to_evolution_1): Same.
12817 (add_to_evolution): Same.
12818 (follow_ssa_edge_binary): Same.
12819 (follow_ssa_edge_expr): Same.
12820 (backedge_phi_arg_p): Same.
12821 (follow_ssa_edge_in_condition_phi_branch): Same.
12822 (follow_ssa_edge_in_condition_phi): Same.
12823 (follow_ssa_edge_inner_loop_phi): Same.
12824 (follow_ssa_edge): Same.
12825 (analyze_evolution_in_loop): Same.
12826 (analyze_initial_condition): Same.
12827 (interpret_loop_phi): Same.
12828 (interpret_condition_phi): Same.
12829 (interpret_rhs_expr): Same.
12830 (interpret_expr): Same.
12831 (interpret_gimple_assign): Same.
12832 (analyze_scalar_evolution_1): Same.
12833 (analyze_scalar_evolution): Same.
12834 (analyze_scalar_evolution_for_address_of): Same.
12835 (get_instantiated_value_entry): Same.
12836 (loop_closed_phi_def): Same.
12837 (instantiate_scev_name): Same.
12838 (instantiate_scev_poly): Same.
12839 (instantiate_scev_binary): Same.
12840 (instantiate_scev_convert): Same.
12841 (instantiate_scev_not): Same.
12842 (instantiate_scev_r): Same.
12843 (instantiate_scev): Same.
12844 (resolve_mixers): Same.
12845 (initialize_scalar_evolutions_analyzer): Same.
12846 (scev_reset_htab): Same.
12847 (scev_reset): Same.
12848 (derive_simple_iv_with_niters): Same.
12849 (simple_iv_with_niters): Same.
12850 (expression_expensive_p): Same.
12851 (final_value_replacement_loop): Same.
12852 * tree-scalar-evolution.h (block_before_loop): Same.
12853 * tree-ssa-address.h: Same.
12854 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12855 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12856 (record_edge_info): Same.
12857 * tree-ssa-live.c (var_map_base_fini): Same.
12858 (remove_unused_locals): Same.
12859 * tree-ssa-live.h: Same.
12860 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12861 (pass_ch_vect::execute): Same.
12862 (pass_ch::process_loop_p): Same.
12863 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12864 (movement_possibility): Same.
12865 (outermost_invariant_loop): Same.
12866 (stmt_cost): Same.
12867 (determine_max_movement): Same.
12868 (invariantness_dom_walker::before_dom_children): Same.
12869 (move_computations): Same.
12870 (may_move_till): Same.
12871 (force_move_till_op): Same.
12872 (force_move_till): Same.
12873 (memref_free): Same.
12874 (record_mem_ref_loc): Same.
12875 (set_ref_stored_in_loop): Same.
12876 (mark_ref_stored): Same.
12877 (sort_bbs_in_loop_postorder_cmp): Same.
12878 (sort_locs_in_loop_postorder_cmp): Same.
12879 (analyze_memory_references): Same.
12880 (mem_refs_may_alias_p): Same.
12881 (find_ref_loc_in_loop_cmp): Same.
12882 (rewrite_mem_ref_loc::operator): Same.
12883 (first_mem_ref_loc_1::operator): Same.
12884 (sm_set_flag_if_changed::operator): Same.
12885 (execute_sm_if_changed_flag_set): Same.
12886 (execute_sm): Same.
12887 (hoist_memory_references): Same.
12888 (ref_always_accessed::operator): Same.
12889 (refs_independent_p): Same.
12890 (record_dep_loop): Same.
12891 (ref_indep_loop_p_1): Same.
12892 (ref_indep_loop_p): Same.
12893 (can_sm_ref_p): Same.
12894 (find_refs_for_sm): Same.
12895 (loop_suitable_for_sm): Same.
12896 (store_motion_loop): Same.
12897 (store_motion): Same.
12898 (fill_always_executed_in): Same.
12899 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12900 (estimated_unrolled_size): Same.
12901 (loop_edge_to_cancel): Same.
12902 (remove_exits_and_undefined_stmts): Same.
12903 (remove_redundant_iv_tests): Same.
12904 (unloop_loops): Same.
12905 (estimated_peeled_sequence_size): Same.
12906 (try_peel_loop): Same.
12907 (canonicalize_loop_induction_variables): Same.
12908 (canonicalize_induction_variables): Same.
12909 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12910 (name_info): Same.
12911 (stmt_after_inc_pos): Same.
12912 (contains_abnormal_ssa_name_p): Same.
12913 (niter_for_exit): Same.
12914 (find_bivs): Same.
12915 (mark_bivs): Same.
12916 (find_givs_in_bb): Same.
12917 (find_induction_variables): Same.
12918 (find_interesting_uses_cond): Same.
12919 (outermost_invariant_loop_for_expr): Same.
12920 (idx_find_step): Same.
12921 (add_candidate_1): Same.
12922 (add_iv_candidate_derived_from_uses): Same.
12923 (alloc_use_cost_map): Same.
12924 (prepare_decl_rtl): Same.
12925 (generic_predict_doloop_p): Same.
12926 (computation_cost): Same.
12927 (determine_common_wider_type): Same.
12928 (get_computation_aff_1): Same.
12929 (get_use_type): Same.
12930 (determine_group_iv_cost_address): Same.
12931 (iv_period): Same.
12932 (difference_cannot_overflow_p): Same.
12933 (may_eliminate_iv): Same.
12934 (determine_set_costs): Same.
12935 (cheaper_cost_pair): Same.
12936 (compare_cost_pair): Same.
12937 (iv_ca_cand_for_group): Same.
12938 (iv_ca_recount_cost): Same.
12939 (iv_ca_set_remove_invs): Same.
12940 (iv_ca_set_no_cp): Same.
12941 (iv_ca_set_add_invs): Same.
12942 (iv_ca_set_cp): Same.
12943 (iv_ca_add_group): Same.
12944 (iv_ca_cost): Same.
12945 (iv_ca_compare_deps): Same.
12946 (iv_ca_delta_reverse): Same.
12947 (iv_ca_delta_commit): Same.
12948 (iv_ca_cand_used_p): Same.
12949 (iv_ca_delta_free): Same.
12950 (iv_ca_new): Same.
12951 (iv_ca_free): Same.
12952 (iv_ca_dump): Same.
12953 (iv_ca_extend): Same.
12954 (iv_ca_narrow): Same.
12955 (iv_ca_prune): Same.
12956 (cheaper_cost_with_cand): Same.
12957 (iv_ca_replace): Same.
12958 (try_add_cand_for): Same.
12959 (get_initial_solution): Same.
12960 (try_improve_iv_set): Same.
12961 (find_optimal_iv_set_1): Same.
12962 (create_new_iv): Same.
12963 (rewrite_use_compare): Same.
12964 (remove_unused_ivs): Same.
12965 (determine_scaling_factor): Same.
12966 * tree-ssa-loop-ivopts.h: Same.
12967 * tree-ssa-loop-manip.c (create_iv): Same.
12968 (compute_live_loop_exits): Same.
12969 (add_exit_phi): Same.
12970 (add_exit_phis): Same.
12971 (find_uses_to_rename_use): Same.
12972 (find_uses_to_rename_def): Same.
12973 (find_uses_to_rename_in_loop): Same.
12974 (rewrite_into_loop_closed_ssa): Same.
12975 (check_loop_closed_ssa_bb): Same.
12976 (split_loop_exit_edge): Same.
12977 (ip_end_pos): Same.
12978 (ip_normal_pos): Same.
12979 (copy_phi_node_args): Same.
12980 (gimple_duplicate_loop_to_header_edge): Same.
12981 (can_unroll_loop_p): Same.
12982 (determine_exit_conditions): Same.
12983 (scale_dominated_blocks_in_loop): Same.
12984 (niter_for_unrolled_loop): Same.
12985 (tree_transform_and_unroll_loop): Same.
12986 (rewrite_all_phi_nodes_with_iv): Same.
12987 * tree-ssa-loop-manip.h: Same.
12988 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12989 (number_of_iterations_ne): Same.
12990 (assert_no_overflow_lt): Same.
12991 (assert_loop_rolls_lt): Same.
12992 (number_of_iterations_lt): Same.
12993 (adjust_cond_for_loop_until_wrap): Same.
12994 (tree_simplify_using_condition): Same.
12995 (simplify_using_initial_conditions): Same.
12996 (simplify_using_outer_evolutions): Same.
12997 (loop_only_exit_p): Same.
12998 (ssa_defined_by_minus_one_stmt_p): Same.
12999 (number_of_iterations_popcount): Same.
13000 (number_of_iterations_exit): Same.
13001 (find_loop_niter): Same.
13002 (finite_loop_p): Same.
13003 (chain_of_csts_start): Same.
13004 (get_val_for): Same.
13005 (loop_niter_by_eval): Same.
13006 (derive_constant_upper_bound_ops): Same.
13007 (do_warn_aggressive_loop_optimizations): Same.
13008 (record_estimate): Same.
13009 (get_cst_init_from_scev): Same.
13010 (record_nonwrapping_iv): Same.
13011 (idx_infer_loop_bounds): Same.
13012 (infer_loop_bounds_from_ref): Same.
13013 (infer_loop_bounds_from_array): Same.
13014 (infer_loop_bounds_from_pointer_arith): Same.
13015 (infer_loop_bounds_from_signedness): Same.
13016 (bound_index): Same.
13017 (discover_iteration_bound_by_body_walk): Same.
13018 (maybe_lower_iteration_bound): Same.
13019 (estimate_numbers_of_iterations): Same.
13020 (estimated_loop_iterations): Same.
13021 (estimated_loop_iterations_int): Same.
13022 (max_loop_iterations): Same.
13023 (max_loop_iterations_int): Same.
13024 (likely_max_loop_iterations): Same.
13025 (likely_max_loop_iterations_int): Same.
13026 (estimated_stmt_executions_int): Same.
13027 (max_stmt_executions): Same.
13028 (likely_max_stmt_executions): Same.
13029 (estimated_stmt_executions): Same.
13030 (stmt_dominates_stmt_p): Same.
13031 (nowrap_type_p): Same.
13032 (loop_exits_before_overflow): Same.
13033 (scev_var_range_cant_overflow): Same.
13034 (scev_probably_wraps_p): Same.
13035 (free_numbers_of_iterations_estimates): Same.
13036 * tree-ssa-loop-niter.h: Same.
13037 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
13038 (idx_analyze_ref): Same.
13039 (analyze_ref): Same.
13040 (gather_memory_references_ref): Same.
13041 (mark_nontemporal_store): Same.
13042 (emit_mfence_after_loop): Same.
13043 (may_use_storent_in_loop_p): Same.
13044 (mark_nontemporal_stores): Same.
13045 (should_unroll_loop_p): Same.
13046 (volume_of_dist_vector): Same.
13047 (add_subscript_strides): Same.
13048 (self_reuse_distance): Same.
13049 (insn_to_prefetch_ratio_too_small_p): Same.
13050 * tree-ssa-loop-split.c (split_at_bb_p): Same.
13051 (patch_loop_exit): Same.
13052 (find_or_create_guard_phi): Same.
13053 (easy_exit_values): Same.
13054 (connect_loop_phis): Same.
13055 (connect_loops): Same.
13056 (compute_new_first_bound): Same.
13057 (split_loop): Same.
13058 (tree_ssa_split_loops): Same.
13059 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
13060 (is_maybe_undefined): Same.
13061 (tree_may_unswitch_on): Same.
13062 (simplify_using_entry_checks): Same.
13063 (tree_unswitch_single_loop): Same.
13064 (tree_unswitch_loop): Same.
13065 (tree_unswitch_outer_loop): Same.
13066 (empty_bb_without_guard_p): Same.
13067 (used_outside_loop_p): Same.
13068 (get_vop_from_header): Same.
13069 (hoist_guard): Same.
13070 * tree-ssa-loop.c (gate_oacc_kernels): Same.
13071 (get_lsm_tmp_name): Same.
13072 * tree-ssa-loop.h: Same.
13073 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
13074 (build_and_add_sum): Same.
13075 (no_side_effect_bb): Same.
13076 (get_ops): Same.
13077 (linearize_expr): Same.
13078 (should_break_up_subtract): Same.
13079 (linearize_expr_tree): Same.
13080 * tree-ssa-scopedtables.c: Same.
13081 * tree-ssa-scopedtables.h: Same.
13082 * tree-ssa-structalias.c (condense_visit): Same.
13083 (label_visit): Same.
13084 (dump_pred_graph): Same.
13085 (perform_var_substitution): Same.
13086 (move_complex_constraints): Same.
13087 (remove_preds_and_fake_succs): Same.
13088 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
13089 (determine_bb_domination_status): Same.
13090 (duplicate_thread_path): Same.
13091 (thread_through_all_blocks): Same.
13092 * tree-ssa-threadupdate.h: Same.
13093 * tree-streamer-in.c (streamer_read_string_cst): Same.
13094 (input_identifier): Same.
13095 (unpack_ts_type_common_value_fields): Same.
13096 (unpack_ts_block_value_fields): Same.
13097 (unpack_ts_translation_unit_decl_value_fields): Same.
13098 (unpack_ts_omp_clause_value_fields): Same.
13099 (streamer_read_tree_bitfields): Same.
13100 (streamer_alloc_tree): Same.
13101 (lto_input_ts_common_tree_pointers): Same.
13102 (lto_input_ts_vector_tree_pointers): Same.
13103 (lto_input_ts_poly_tree_pointers): Same.
13104 (lto_input_ts_complex_tree_pointers): Same.
13105 (lto_input_ts_decl_minimal_tree_pointers): Same.
13106 (lto_input_ts_decl_common_tree_pointers): Same.
13107 (lto_input_ts_decl_non_common_tree_pointers): Same.
13108 (lto_input_ts_decl_with_vis_tree_pointers): Same.
13109 (lto_input_ts_field_decl_tree_pointers): Same.
13110 (lto_input_ts_function_decl_tree_pointers): Same.
13111 (lto_input_ts_type_common_tree_pointers): Same.
13112 (lto_input_ts_type_non_common_tree_pointers): Same.
13113 (lto_input_ts_list_tree_pointers): Same.
13114 (lto_input_ts_vec_tree_pointers): Same.
13115 (lto_input_ts_exp_tree_pointers): Same.
13116 (lto_input_ts_block_tree_pointers): Same.
13117 (lto_input_ts_binfo_tree_pointers): Same.
13118 (lto_input_ts_constructor_tree_pointers): Same.
13119 (lto_input_ts_omp_clause_tree_pointers): Same.
13120 (streamer_read_tree_body): Same.
13121 * tree-streamer.h: Same.
13122 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
13123 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
13124 (vect_analyze_possibly_independent_ddr): Same.
13125 (vect_analyze_data_ref_dependence): Same.
13126 (vect_compute_data_ref_alignment): Same.
13127 (vect_enhance_data_refs_alignment): Same.
13128 (vect_analyze_data_ref_access): Same.
13129 (vect_check_gather_scatter): Same.
13130 (vect_find_stmt_data_reference): Same.
13131 (vect_create_addr_base_for_vector_ref): Same.
13132 (vect_setup_realignment): Same.
13133 (vect_supportable_dr_alignment): Same.
13134 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
13135 (adjust_phi_and_debug_stmts): Same.
13136 (vect_set_loop_mask): Same.
13137 (add_preheader_seq): Same.
13138 (vect_maybe_permute_loop_masks): Same.
13139 (vect_set_loop_masks_directly): Same.
13140 (vect_set_loop_condition_masked): Same.
13141 (vect_set_loop_condition_unmasked): Same.
13142 (slpeel_duplicate_current_defs_from_edges): Same.
13143 (slpeel_add_loop_guard): Same.
13144 (slpeel_can_duplicate_loop_p): Same.
13145 (create_lcssa_for_virtual_phi): Same.
13146 (iv_phi_p): Same.
13147 (vect_update_ivs_after_vectorizer): Same.
13148 (vect_gen_vector_loop_niters_mult_vf): Same.
13149 (slpeel_update_phi_nodes_for_loops): Same.
13150 (slpeel_update_phi_nodes_for_guard1): Same.
13151 (find_guard_arg): Same.
13152 (slpeel_update_phi_nodes_for_guard2): Same.
13153 (slpeel_update_phi_nodes_for_lcssa): Same.
13154 (vect_do_peeling): Same.
13155 (vect_create_cond_for_alias_checks): Same.
13156 (vect_loop_versioning): Same.
13157 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
13158 (vect_inner_phi_in_double_reduction_p): Same.
13159 (vect_analyze_scalar_cycles_1): Same.
13160 (vect_fixup_scalar_cycles_with_patterns): Same.
13161 (vect_get_loop_niters): Same.
13162 (bb_in_loop_p): Same.
13163 (vect_get_max_nscalars_per_iter): Same.
13164 (vect_verify_full_masking): Same.
13165 (vect_compute_single_scalar_iteration_cost): Same.
13166 (vect_analyze_loop_form_1): Same.
13167 (vect_analyze_loop_form): Same.
13168 (vect_active_double_reduction_p): Same.
13169 (vect_analyze_loop_operations): Same.
13170 (neutral_op_for_slp_reduction): Same.
13171 (vect_is_simple_reduction): Same.
13172 (vect_model_reduction_cost): Same.
13173 (get_initial_def_for_reduction): Same.
13174 (get_initial_defs_for_reduction): Same.
13175 (vect_create_epilog_for_reduction): Same.
13176 (vectorize_fold_left_reduction): Same.
13177 (vectorizable_reduction): Same.
13178 (vectorizable_induction): Same.
13179 (vectorizable_live_operation): Same.
13180 (loop_niters_no_overflow): Same.
13181 (vect_get_loop_mask): Same.
13182 (vect_transform_loop_stmt): Same.
13183 (vect_transform_loop): Same.
13184 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
13185 (vect_determine_precisions): Same.
13186 (vect_pattern_recog_1): Same.
13187 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
13188 * tree-vect-stmts.c (stmt_vectype): Same.
13189 (process_use): Same.
13190 (vect_init_vector_1): Same.
13191 (vect_truncate_gather_scatter_offset): Same.
13192 (get_group_load_store_type): Same.
13193 (vect_build_gather_load_calls): Same.
13194 (vect_get_strided_load_store_ops): Same.
13195 (vectorizable_simd_clone_call): Same.
13196 (vectorizable_store): Same.
13197 (permute_vec_elements): Same.
13198 (vectorizable_load): Same.
13199 (vect_transform_stmt): Same.
13200 (supportable_widening_operation): Same.
13201 * tree-vectorizer.c (vec_info::replace_stmt): Same.
13202 (vec_info::free_stmt_vec_info): Same.
13203 (vect_free_loop_info_assumptions): Same.
13204 (vect_loop_vectorized_call): Same.
13205 (set_uid_loop_bbs): Same.
13206 (vectorize_loops): Same.
13207 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
13208 * tree.c (add_tree_to_fld_list): Same.
13209 (fld_type_variant_equal_p): Same.
13210 (fld_decl_context): Same.
13211 (fld_incomplete_type_of): Same.
13212 (free_lang_data_in_binfo): Same.
13213 (need_assembler_name_p): Same.
13214 (find_decls_types_r): Same.
13215 (get_eh_types_for_runtime): Same.
13216 (find_decls_types_in_eh_region): Same.
13217 (find_decls_types_in_node): Same.
13218 (assign_assembler_name_if_needed): Same.
13219 * value-prof.c (stream_out_histogram_value): Same.
13220 * value-prof.h: Same.
13221 * var-tracking.c (use_narrower_mode): Same.
13222 (prepare_call_arguments): Same.
13223 (vt_expand_loc_callback): Same.
13224 (resolve_expansions_pending_recursion): Same.
13225 (vt_expand_loc): Same.
13226 * varasm.c (const_hash_1): Same.
13227 (compare_constant): Same.
13228 (tree_output_constant_def): Same.
13229 (simplify_subtraction): Same.
13230 (get_pool_constant): Same.
13231 (output_constant_pool_2): Same.
13232 (output_constant_pool_1): Same.
13233 (mark_constants_in_pattern): Same.
13234 (mark_constant_pool): Same.
13235 (get_section_anchor): Same.
13236 * vr-values.c (compare_range_with_value): Same.
13237 (vr_values::extract_range_from_phi_node): Same.
13238 * vr-values.h: Same.
13239 * web.c (unionfind_union): Same.
13240 * wide-int.h: Same.
13241
13242 2019-07-09 Martin Sebor <msebor@redhat.com>
13243
13244 PR c++/61339
13245 * align.h: Change class-key from class to struct and vice versa
13246 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
13247 * alloc-pool.h: Same.
13248 * asan.c (shadow_mem_size): Same.
13249 * auto-profile.c: Same.
13250 * basic-block.h: Same.
13251 * bitmap.h: Same.
13252 * cfgexpand.c (set_rtl): Same.
13253 (expand_one_stack_var_at): Same.
13254 * cfghooks.h: Same.
13255 * cfgloop.h: Same.
13256 * cgraph.h: Same.
13257 * config/i386/i386.h: Same.
13258 * df-problems.c (df_print_bb_index): Same.
13259 * df-scan.c: Same.
13260 * df.h (df_single_use): Same.
13261 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
13262 (layout::annotation_line_showed_range_p): Same.
13263 (get_printed_columns): Same.
13264 (correction::ensure_terminated): Same.
13265 (line_corrections::~line_corrections): Same.
13266 * dojump.h: Same.
13267 * dse.c: Same.
13268 * dump-context.h: Same.
13269 * dumpfile.h: Same.
13270 * dwarf2out.c: Same.
13271 * edit-context.c: Same.
13272 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
13273 * flags.h: Same.
13274 * function.c (assign_stack_local): Same.
13275 * function.h: Same.
13276 * gcc.c: Same.
13277 * gcov.c (block_info::block_info): Same.
13278 * genattrtab.c: Same.
13279 * genextract.c: Same.
13280 * genmatch.c (comparison_code_p): Same.
13281 (id_base::id_base): Same.
13282 (decision_tree::print): Same.
13283 * genoutput.c: Same.
13284 * genpreds.c (write_one_predicate_function): Same.
13285 * genrecog.c (validate_pattern): Same.
13286 (find_operand_positions): Same.
13287 (optimize_subroutine_group): Same.
13288 (merge_pattern_transition::merge_pattern_transition): Same.
13289 (merge_pattern_info::merge_pattern_info): Same.
13290 (merge_state_result::merge_state_result): Same.
13291 (merge_into_state): Same.
13292 * gensupport.c: Same.
13293 * gensupport.h: Same.
13294 * ggc-common.c (init_ggc_heuristics): Same.
13295 * ggc-tests.c (test_union): Same.
13296 * gimple-loop-interchange.cc (dump_induction): Same.
13297 * gimple-loop-versioning.cc: Same.
13298 * gimple-match.h (gimple_match_cond::any_else): Same.
13299 * gimple-ssa-backprop.c: Same.
13300 * gimple-ssa-sprintf.c: Same.
13301 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
13302 Same.
13303 (store_immediate_info::store_immediate_info): Same.
13304 (merged_store_group::apply_stores): Same.
13305 (get_location_for_stmts): Same.
13306 * gimple-ssa-strength-reduction.c: Same.
13307 * gimple-ssa-warn-alloca.c: Same.
13308 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
13309 * godump.c (go_type_decl): Same.
13310 * hash-map-tests.c (test_map_of_strings_to_int): Same.
13311 * hash-map.h: Same.
13312 * hash-set-tests.c (test_set_of_strings): Same.
13313 * hsa-brig.c: Same.
13314 * hsa-common.h: Same.
13315 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
13316 * input.c (assert_loceq): Same.
13317 * input.h: Same.
13318 * ipa-cp.c: Same.
13319 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
13320 * ipa-fnsummary.h: Same.
13321 * ipa-inline.h: Same.
13322 * ipa-prop.h: Same.
13323 * ipa-split.c (visit_bb): Same.
13324 * ira-int.h (minmax_set_iter_next): Same.
13325 * loop-invariant.c: Same.
13326 * loop-iv.c: Same.
13327 * lra-eliminations.c: Same.
13328 * lra-int.h: Same.
13329 * lra-lives.c (mark_regno_dead): Same.
13330 * lra-remat.c: Same.
13331 * lra-spills.c: Same.
13332 * lto-streamer.h: Same.
13333 * mem-stats.h: Same.
13334 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
13335 * omp-low.c (omp_clause_aligned_alignment): Same.
13336 * optabs-query.h (get_vcond_eq_icode): Same.
13337 * optabs.h: Same.
13338 * opts.c (wrap_help): Same.
13339 * poly-int.h: Same.
13340 * predict.c (predict_paths_leading_to_edge): Same.
13341 * pretty-print.h: Same.
13342 * profile-count.h: Same.
13343 * read-md.h: Same.
13344 * read-rtl-function.c: Same.
13345 * ree.c: Same.
13346 * reginfo.c: Same.
13347 * regrename.c: Same.
13348 * regrename.h: Same.
13349 * reload.h: Same.
13350 * rtl-iter.h: Same.
13351 * rtl.h (costs_add_n_insns): Same.
13352 * sanopt.c: Same.
13353 * sched-int.h: Same.
13354 * sel-sched-ir.h: Same.
13355 * selftest.h: Same.
13356 * sese.h (vec_find): Same.
13357 * stmt.c: Same.
13358 * target-globals.h: Same.
13359 * tree-affine.c (aff_combination_find_elt): Same.
13360 * tree-affine.h: Same.
13361 * tree-data-ref.h: Same.
13362 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
13363 * tree-predcom.c: Same.
13364 * tree-scalar-evolution.c (find_var_scev_info): Same.
13365 * tree-ssa-alias.h: Same.
13366 * tree-ssa-ccp.c: Same.
13367 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
13368 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
13369 (rewrite_mem_refs): Same.
13370 (execute_sm_if_changed): Same.
13371 (hoist_memory_references): Same.
13372 * tree-ssa-loop-ivopts.c (operator<=): Same.
13373 * tree-ssa-loop.h: Same.
13374 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13375 * tree-ssa-structalias.c: Same.
13376 * tree-switch-conversion.h (cluster::cluster): Same.
13377 (simple_cluster::simple_cluster): Same.
13378 * tree-vect-patterns.c (type_conversion_p): Same.
13379 * tree-vectorizer.c (dump_stmt_cost): Same.
13380 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13381 * tree.c (protected_set_expr_location): Same.
13382 * tree.h (desired_pro_or_demotion_p): Same.
13383 (fndecl_built_in_p): Same.
13384 * unique-ptr-tests.cc: Same.
13385 * var-tracking.c (delete_variable_part): Same.
13386 * varasm.c (assemble_real): Same.
13387 (tree_output_constant_def): Same.
13388 * vec.c: Same.
13389 * wide-int-bitmask.h: Same.
13390 * wide-int.h (decompose): Same.
13391
13392 2019-07-09 Richard Biener <rguenther@suse.de>
13393
13394 PR tree-optimization/91114
13395 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13396 find a vector type isn't fatal.
13397
13398 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13399
13400 * config/aarch64/aarch64-simd.md
13401 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13402 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13403 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13404 (*aarch64_crypto_aese_fused,
13405 *aarch64_crypto_aesd_fused): Update to new definition.
13406 * config/aarch64/aarch64.c
13407 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13408
13409 2019-07-09 Richard Biener <rguenther@suse.de>
13410
13411 * gimple-match.h (gimple_match_op::resimplify): New.
13412 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13413 gimple_resimplify4, gimple_resimplify5): Remove.
13414 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13415 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13416 Make static.
13417 (gimple_match_op::resimplify): New.
13418 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13419 according to availability. Use gimple_match_op::resimplify.
13420
13421 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13422
13423 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13424
13425 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13426
13427 * config/arm/crypto.md:
13428 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13429 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13430 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13431 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13432 * config/arm/arm.c
13433 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13434 * config/arm/aarch-common-protos.h
13435 (aarch_crypto_can_dual_issue): Remove.
13436 * config/arm/aarch-common.c
13437 (aarch_crypto_can_dual_issue): Likewise.
13438 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13439 * config/arm/cortex-a53.md: Likewise.
13440 * config/arm/cortex-a57.md: Likewise.
13441 * config/arm/iterators.md:
13442 (CRYPTO_BINARY): Redefine.
13443 (CRYPTO_UNARY): Removed.
13444 (CRYPTO_AES, CRYPTO_AESMC): New.
13445
13446 2019-07-09 Richard Biener <rguenther@suse.de>
13447
13448 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13449 (vn_reference_lookup_3): If the main ref has no access path recorded
13450 but orig_ref has use it to do access-path based disambiguation.
13451 (vn_reference_lookup_pieces): Adjust.
13452 (vn_reference_lookup): Pass down original ref if we valueized.
13453
13454 2019-07-09 Martin Liska <mliska@suse.cz>
13455
13456 * doc/extend.texi: Document influence on loop
13457 optimizers.
13458
13459 2019-07-09 Martin Liska <mliska@suse.cz>
13460
13461 * lto-compress.c (lto_normalized_zstd_level): Do not use
13462 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13463 of libzstd. One can use 0 as a default compression level.
13464
13465 2019-07-09 Martin Liska <mliska@suse.cz>
13466
13467 * doc/invoke.texi: Add link from -fprofile-dir option.
13468 Use better wording for 'gcno filename'.
13469
13470 2019-07-08 Martin Sebor <msebor@redhat.com>
13471
13472 PR middle-end/71924
13473 PR middle-end/90549
13474 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13475 comment.
13476 (args_loc_t): New type.
13477 (args_loc_t, locmap_t): same.
13478 (diag_returned_locals): New function.
13479 (is_addr_local): Same.
13480 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13481 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13482 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13483
13484 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13485
13486 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13487 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13488 and casts in offset when different, both through gimple stmts
13489 and through trees. Rewritten using loops to minimize code duplication
13490 for each operand.
13491
13492 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13493
13494 * emit-rtl.c (set_insn_locations): New function moved from...
13495 * function.c (set_insn_locations): ...here.
13496 * ira-emit.c (emit_moves): Propagate location of the first instruction
13497 to the inserted move instructions.
13498 * reg-stack.c (compensate_edge): Set the location if the sequence is
13499 inserted on the edge.
13500 * rtl.h (set_insn_locations): Declare.
13501
13502 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13503
13504 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13505 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13506 .machine string.
13507
13508 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13509
13510 PR rtl-optimization/88233
13511 * common.opt (fsplit-wide-types-early): New option.
13512 * common/config/rs6000/rs6000-common.c
13513 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13514 OPT_LEVELS_ALL.
13515 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13516 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13517 flag_split_wide_types_early.
13518 (pass_data_lower_subreg3): New.
13519 (pass_lower_subreg3): New.
13520 (make_pass_lower_subreg3): New.
13521 * passes.def (pass_lower_subreg2): Move after the loop passes.
13522 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13523 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13524 the pass pipeline; its previous place is taken by ...
13525 (make_pass_lower_subreg3): ... this.
13526
13527 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13528
13529 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13530 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13531
13532 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13533
13534 * config/s390/constraints.md: Add new jsc constraint.
13535 * config/s390/predicates.md: New predicates.
13536 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13537 * config/s390/s390.c (s390_valid_shift_count): New function.
13538 (print_shift_count_operand): Use s390_valid_shift_count.
13539 (print_operand): Likewise.
13540 * config/s390/s390.md: Use new predicate.
13541 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13542 * config/s390/vector.md: Use new predicate.
13543
13544 2019-07-08 Andrew Waterman <andrew@sifive.com>
13545 Jim Wilson <jimw@sifive.com>
13546
13547 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13548 bitsize instead of BITS_PER_WORD.
13549
13550 2019-07-08 Martin Liska <mliska@suse.cz>
13551
13552 * collect2.c (defined): Revert to before r254460.
13553 (scan_prog_file): Revert to before r254460.
13554
13555 2019-07-08 Richard Biener <rguenther@suse.de>
13556
13557 PR tree-optimization/83518
13558 * tree-ssa-sccvn.c: Include splay-tree.h.
13559 (struct pd_range, struct pd_data): New.
13560 (struct vn_walk_cb_data): Add data to track partial definitions.
13561 (vn_walk_cb_data::~vn_walk_cb_data): New.
13562 (vn_walk_cb_data::push_partial_def): New.
13563 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13564 (vn_reference_lookup_2): When partial defs are registered give up.
13565 (vn_reference_lookup_3): Track partial defs for memset and
13566 constructor zeroing and for defs from constants.
13567
13568 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13569
13570 * doc/install.texi (bootstrap-Og): Document.
13571
13572 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13573
13574 * config/riscv/pic.md (*local_pic_load_s<mode>)
13575 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13576 referenced by <mode>, giving...
13577 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13578 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13579 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13580 use <X:MODE> for the mode attribute.
13581
13582 2019-07-07 Jeff Law <law@redhat.com>
13583
13584 PR tree-optimization/91090
13585 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13586 in handling of ranges to simplify switch statements.
13587
13588 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13589
13590 * config/darwin.c (darwin_override_options): Make a final check on PIC
13591 options.
13592
13593 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13594
13595 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13596 on for kernel code.
13597
13598 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13599
13600 PR target/91068
13601 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13602 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13603 instead of matching them to "l" output operands.
13604
13605 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13606
13607 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13608 and check whether addr.reg is nonnull before using it.
13609
13610 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13611
13612 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13613 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13614 variable(s). For conditional lastprivate look through outer
13615 GIMPLE_OMP_SCAN context.
13616 (lower_omp_1): For conditional lastprivate look through outer
13617 GIMPLE_OMP_SCAN context.
13618
13619 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13620 member to combined_into_simd_safelen1.
13621 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13622 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13623 clauses if ctx->combined_into_simd_safelen1 put statements after the
13624 predicate conditionalized block rather than into it.
13625
13626 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13627
13628 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13629 operand 1.
13630 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13631 Make the choice of <mode> explicit, giving...
13632 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13633
13634 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13635
13636 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13637 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13638 of .md attributes.
13639 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13640 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13641 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13642 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13643 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13644 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13645 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13646 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13647 (*avx512f_scatterdi<mode>): Likewise.
13648 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13649
13650 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13651
13652 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13653 specify the mode iterator referenced by <mode>, giving...
13654 (*push1_h8300hs_<QHI:mode>): ...this.
13655
13656 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13657
13658 * config/gcn/gcn-valu.md
13659 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13660 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13661 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13662 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13663 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13664 but using the _exec comparison patterns.
13665 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13666 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13667 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13668 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13669 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13670 but using the _exec comparison patterns.
13671
13672 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13673
13674 * config/arm/sync.md
13675 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13676 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13677 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13678 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13679 <SIDI:cas_cmp_str>.
13680
13681 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13682
13683 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13684 (maybe_lookup_ctx): Add forward declaration.
13685 (omp_find_scan): Likewise. Walk into body of simd if composited
13686 with worksharing loop.
13687 (scan_omp_simd_scan): New function.
13688 (scan_omp_1_stmt): Call it.
13689 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13690 ctx->for_simd_scan_phase.
13691 (lower_rec_input_clauses): Do much less work for inscan reductions
13692 in ctx->for_simd_scan_phase is_simd regions.
13693 (lower_omp_scan): Set is_simd also on simd constructs composited
13694 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13695 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13696 emit their body after in simd constructs composited with worksharing
13697 loop.
13698 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13699
13700 * omp-low.c (omp_find_scan): Make static.
13701 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13702 the second loop, var2 represents the first partial sum and so needs
13703 to go before rprivb[ivar].
13704
13705 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13706
13707 * config/rs6000/rs6000-logue.c: Remove unused code.
13708
13709 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13710
13711 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13712
13713 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13714
13715 PR target/90712
13716 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13717 check with a frame laid out check.
13718
13719 2019-07-05 Richard Biener <rguenther@suse.de>
13720
13721 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13722 when comparing against a store with possibly the same value.
13723
13724 2019-07-05 Richard Biener <rguenther@suse.de>
13725
13726 PR tree-optimization/91091
13727 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13728 (walk_non_aliased_vuses): Likewise.
13729 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13730 (get_continuation_for_phi): New tbaa_p parameter and pass
13731 it down.
13732 (walk_non_aliased_vuses): Likewise.
13733 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13734 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13735 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13736 Likewise.
13737 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13738 (adjust_offsets_for_equal_base_address): New function.
13739 (vn_reference_lookup_3): Use it to catch more base equivalences.
13740 Handle and pass down tbaa_p flag.
13741 (vn_reference_lookup_pieces): Adjust.
13742 (vn_reference_lookup): Remove alias-set altering, instead pass
13743 down false as tbaa_p.
13744
13745 2019-07-05 Richard Biener <rguenther@suse.de>
13746
13747 PR tree-optimization/91091
13748 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13749 accesses can happen with -fno-strict-aliasing.
13750
13751 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13752
13753 * tree-ssa-alias.c (alias_stats): Add
13754 nonoverlapping_component_refs_since_match_p_must_overlap.
13755 (dump_alias_stats): Print it.
13756 (nonoverlapping_component_refs_since_match_p): Add early exit.
13757 (nonoverlapping_component_refs_p): Do not account early exit.
13758
13759 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13760
13761 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13762 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13763 (emit_eh_dispatch): Delete.
13764 (lower_catch): Emit the eh_dispatch manually and set the location of
13765 the first catch statement onto it.
13766 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13767 (lower_eh_dispatch): Propagate location.
13768 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13769 (eliminate_build): Likewise.
13770
13771 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13772
13773 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13774 phi nodes if possible.
13775 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13776 location info on the newly created statement.
13777 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13778 newly created increment if needed.
13779
13780 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13781
13782 PR middle-end/78884
13783 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13784 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13785 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13786 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13787 ctx->add_safelen1 is set.
13788
13789 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13790 GOMP_loop_start at the start of second worksharing loop in a scan.
13791 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13792 worksharing loop in a scan even if there are conditional lastprivates,
13793 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13794
13795 2019-07-04 Jan Hubicka <jh@suse.cz>
13796
13797 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13798 Fix check for match in the ref walk.
13799
13800 2019-07-04 Martin Liska <mliska@suse.cz>
13801
13802 * tree-ssa-loop-niter.c
13803 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13804 (estimate_numbers_of_iterations):
13805 Support __builtin_expect_with_probability for analysis
13806 of # of loop iterations.
13807
13808 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13809
13810 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13811 * except.c: Likewise.
13812 * expr.c (expand_expr_real_1): Reject it.
13813 * gimplify.c (gimplify_expr): Gimplify it, within
13814 TRY_FINALLY_EXPR.
13815 * tree-dump.c (dequeue_and_dump): Dump it.
13816 * tree-pretty-print.c (dump_generic_node): Likewise.
13817 * tree.c (block_may_fallthru): Handle it.
13818 * tree.def (EH_ELSE_EXPR): Introduce it.
13819 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13820 with GIMPLE_EH_ELSE as try/finally/else.
13821
13822 2019-07-04 Richard Biener <rguenther@suse.de>
13823
13824 PR ipa/91062
13825 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13826 parameter whether to disable GC collection.
13827 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13828 honor it.
13829 (execute_all_ipa_transforms): Likewise and pass it down.
13830 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13831 collection from applying IPA transforms.
13832 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13833 from applying IPA transforms.
13834
13835 2019-07-04 Richard Biener <rguenther@suse.de>
13836
13837 PR tree-optimization/90911
13838 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13839 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13840 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13841 scalar_loop_scaling.
13842 (vect_transform_loop): Scale scalar loop profile if needed.
13843 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13844 the loop copy from if-conversion adjust edge probabilities
13845 and scale the vectorized loop body profile, queue the scalar
13846 profile for updating after peeling.
13847
13848 2019-07-04 Jan Hubicka <jh@suse.cz>
13849
13850 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13851 parameters; return early for must-alias.
13852 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13853 outer types match, try nonoverlapping_component_refs
13854 if must-alias is not obvious.
13855 (indirect_refs_may_alias_p): Likewise.
13856 (refs_may_alias_p_2): Likewise.
13857
13858 2019-07-04 Richard Biener <rguenther@suse.de>
13859
13860 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13861 argument.
13862 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13863 globals into...
13864 (struct vn_walk_cb_data): New callback data struct.
13865 (vn_reference_lookup_2): Adjust.
13866 (vn_reference_lookup_3): Likewise.
13867 (vn_reference_lookup_pieces): Likewise.
13868 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13869 (visit_reference_op_load): Adjust.
13870
13871 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13872
13873 PR tree-optimization/91063
13874 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13875 stmt from stmts sequence before calling vect_init_vector_1.
13876 Formatting fix.
13877
13878 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13879
13880 PR target/88833
13881 * fwprop.c (reg_single_def_p): New function.
13882 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13883 (forward_propagate_into): New parameter reg_prop_only
13884 with default value false.
13885 Propagate def's src into loop only if SET_SRC and SET_DEST
13886 of def_set have single definitions.
13887 Likewise if reg_prop_only is set to true.
13888 (fwprop): New param fwprop_addr_p.
13889 Integrate fwprop_addr into fwprop.
13890 (fwprop_addr): Remove.
13891 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13892 to true.
13893 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13894 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13895 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13896
13897 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13898
13899 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13900 in worksharing loop scans.
13901
13902 PR tree-optimization/91074
13903 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13904 temporary.
13905
13906 PR rtl-optimization/90756
13907 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13908 for VECTOR_TYPE_P.
13909
13910 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13911
13912 * config/aarch64/aarch64.md: Remove redundant constraints from
13913 define_expand but keep some patterns untouched if they are
13914 specially selected by TARGET_SECONDARY_RELOAD hook.
13915 * config/aarch64/aarch64-sve.md: Likewise.
13916 * config/aarch64/atomics.md: Remove redundant constraints from
13917 define_expand.
13918 * config/aarch64/aarch64-simd.md: Likewise.
13919
13920 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13921
13922 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13923 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13924 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13925 clauses.
13926 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13927 DARWIN_NOPIE_SPEC.
13928
13929 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13930
13931 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13932 (STARTFILE_SPEC): Split crt3 into a separate spec.
13933 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13934 (DARWIN_CRT2_SPEC): New.
13935 (DARWIN_CRT3_SPEC): New.
13936 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13937 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13938 (DARWIN_CRT3_SPEC): New.
13939
13940 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13941
13942 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13943 Change the RTL attribute "length" from "4" to "*" to allow the
13944 length attribute to be adjusted automatically for prefixed load,
13945 store, and add immediate instructions.
13946 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13947 Likewise.
13948 (extendsi<mode>2, EXTSI iterator): Likewise.
13949 (movsi_internal1): Likewise.
13950 (movsi_from_sf): Likewise.
13951 (movdi_from_sf_zero_ext): Likewise.
13952 (mov<mode>_internal): Likewise.
13953 (movcc_internal1, QHI iterator): Likewise.
13954 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13955 (movsf_from_si): Likewise.
13956 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13957 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13958 (mov<mode>, FMOVE128 iterator): Likewise.
13959 (movdi_internal64): Likewise.
13960 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13961 Likewise.
13962 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13963 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13964 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13965 (vsx_splat_v4sf): Likewise.
13966
13967 2019-07-03 Mark Wielaard <mark@klomp.org>
13968
13969 PR debug/90981
13970 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13971 DW_AT_addr_base if there is actually a .debug_addr section with
13972 addresses.
13973 (output_addr_table): Add DWARF5 table header generation here after
13974 checking there are actually any addresses from...
13975 (dwarf2out_finish): ...here.
13976
13977 2019-07-03 Richard Biener <rguenther@suse.de>
13978
13979 PR middle-end/91069
13980 * match.pd (vec_perm -> bit_insert): Fix element read from
13981 first vector.
13982
13983 2019-07-03 Martin Liska <mliska@suse.cz>
13984
13985 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13986 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13987 condition.
13988 * generic-match-head.c: Include dbgcnt.h.
13989 * gimple-match-head.c: Likewise.
13990
13991 2019-07-03 Martin Liska <mliska@suse.cz>
13992
13993 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13994 (GCOV_COUNTER_V_TOPN): New.
13995 (GCOV_COUNTER_V_INDIR): Use _topn.
13996 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13997 (GCOV_TOPN_VALUES): New.
13998 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13999 (GCOV_TOPN_VALUES_COUNTERS): New.
14000 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
14001 * tree-profile.c:
14002 (gimple_init_gcov_profiler): Rename variables from one_value
14003 to topn_values.
14004 (gimple_gen_one_value_profiler): Remove.
14005 (gimple_gen_topn_values_profiler): New function.
14006 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
14007 names instead of SINGLE_VALUE.
14008 (stream_out_histogram_value): Likewise.
14009 (stream_in_histogram_value): Likewise.
14010 (get_most_common_single_value): Likewise.
14011 (gimple_divmod_fixed_value_transform): Likewise.
14012 (gimple_stringops_transform): Likewise.
14013 (gimple_divmod_values_to_profile): Likewise.
14014 (gimple_stringops_values_to_profile): Likewise.
14015 (gimple_find_values_to_profile): Likewise.
14016 * value-prof.h (enum hist_type): Rename to TOPN.
14017 (gimple_gen_one_value_profiler): Remove.
14018 (gimple_gen_topn_values_profiler): New.
14019
14020 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
14021
14022 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
14023 if it has the DW_AT_data_member_location attribute.
14024
14025 2019-07-03 Richard Biener <rguenther@suse.de>
14026
14027 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
14028 dumping.
14029
14030 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
14031
14032 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
14033 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
14034 (tlsdesc_small_sve_<mode>): Likewise.
14035
14036 2019-07-03 Martin Liska <mliska@suse.cz>
14037
14038 * Makefile.in: Define ZSTD_LIB.
14039 * common.opt: Adjust compression level
14040 to support also zstd levels.
14041 * config.in: Regenerate.
14042 * configure: Likewise.
14043 * configure.ac: Add --with-zstd and --with-zstd-include options
14044 and detect ZSTD.
14045 * doc/install.texi: Mention zstd dependency.
14046 * gcc.c: Print supported LTO compression algorithms.
14047 * lto-compress.c (lto_normalized_zstd_level): Likewise.
14048 (lto_compression_zstd): Likewise.
14049 (lto_uncompression_zstd): Likewise.
14050 (lto_end_compression): Dispatch in between zlib and zstd.
14051 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
14052 (lto_uncompression_zlib): Make it static.
14053 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
14054 * lto-section-in.c (lto_get_section_data): Pass info
14055 about used compression.
14056 * lto-streamer-out.c: By default use zstd when possible.
14057 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
14058 (TV_IPA_LTO_COMPRESS): Likewise for compression.
14059
14060 2019-07-03 Martin Liska <mliska@suse.cz>
14061
14062 * lto-section-in.c (lto_get_section_data): Add "lto" section.
14063 * lto-section-out.c (lto_destroy_simple_output_block): Never
14064 compress LTO_section_lto section.
14065 * lto-streamer-out.c (produce_asm): Do not set major_version
14066 and minor_version.
14067 (lto_output_toplevel_asms): Likewise.
14068 (produce_lto_section): New function.
14069 (lto_output): Call produce_lto_section.
14070 (lto_write_mode_table): Do not set major_version and
14071 minor_version.
14072 (produce_asm_for_decls): Likewise.
14073 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
14074 type.
14075 (struct lto_header): Remove.
14076 (struct lto_section): New struct.
14077 (struct lto_simple_header): Do not inherit from lto_header.
14078 (struct lto_file_decl_data): Add lto_section_header field.
14079
14080 2019-07-03 Martin Liska <mliska@suse.cz>
14081
14082 * lra-eliminations.c (eliminate_regs_in_insn): Remove
14083 dead assignemts.
14084 * reg-stack.c (check_asm_stack_operands): Likewise.
14085 * tree-ssa-structalias.c (create_function_info_for): Likewise.
14086 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14087 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
14088 force_expand_binop.
14089
14090 2019-07-03 Martin Liska <mliska@suse.cz>
14091
14092 PR tree-optimization/90892
14093 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
14094 in string constants.
14095
14096 2019-07-03 Martin Liska <mliska@suse.cz>
14097
14098 PR middle-end/90899
14099 * multiple_target.c (create_dispatcher_calls): Add to comdat
14100 group only if set for ifunc.
14101
14102 2019-07-03 Martin Liska <mliska@suse.cz>
14103
14104 PR target/88056
14105 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
14106 Define local_object_name in outer scope in order to handle
14107 use-after-scope issue.
14108
14109 2019-07-03 Martin Liska <mliska@suse.cz>
14110
14111 * common.opt: Add fprofile-note.
14112 * coverage.c (coverage_init): Append the option
14113 to bbg_file_name.
14114 * doc/invoke.texi: Document -fprofile-note.
14115
14116 2019-07-03 Jakub Jelinek <jakub@redhat.com>
14117
14118 PR tree-optimization/91033
14119 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
14120 vect_analyze_data_refs): Add bool * arguments.
14121 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
14122 if failure is due to scatter/gather, set *fatal to false if non-NULL.
14123 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14124 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
14125 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
14126 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
14127 vect_analyze_data_refs caller.
14128
14129 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
14130 clause.
14131 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
14132 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
14133 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
14134 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
14135 OMP_CLAUSE__SCANTEMP_ entry.
14136 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
14137 * tree-pretty-print.c (dump_omp_clause): Likewise.
14138 * tree-nested.c (convert_nonlocal_omp_clauses,
14139 convert_local_omp_clauses): Likewise.
14140 * omp-general.h (struct omp_for_data): Add have_scantemp and
14141 have_nonctrl_scantemp members.
14142 * omp-general.c (omp_extract_for_data): Initialize them.
14143 * omp-low.c (struct omp_context): Add scan_exclusive member.
14144 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
14145 result again with GF_OMP_FOR_KIND_MASK. Initialize also
14146 ctx->scan_exclusive.
14147 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
14148 of !ctx->scan_inclusive.
14149 (lower_rec_input_clauses): Simplify gimplification of dtors using
14150 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
14151 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
14152 loops. Don't add barrier for reduction_omp_orig_ref if
14153 ctx->scan_??xclusive.
14154 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
14155 (lower_omp_scan): Use ctx->scan_exclusive instead
14156 of !ctx->scan_inclusive. Handle worksharing loops with inscan
14157 reductions. Use new_vard != new_var instead of repeated
14158 omp_is_reference calls.
14159 (omp_find_scan, lower_omp_for_scan): New functions.
14160 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
14161 inscan reductions.
14162 * omp-expand.c (expand_omp_scantemp_alloc): New function.
14163 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
14164 and fd->have_scantemp.
14165
14166 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
14167 on worksharing loop propagate it as shared clause to containing
14168 combined parallel.
14169
14170 * omp-expand.c (expand_omp_for_static_nochunk,
14171 expand_omp_for_static_chunk): For nowait worksharing loop with
14172 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
14173 at the end.
14174
14175 2019-07-02 qing zhao <qing.zhao@oracle.com>
14176
14177 PR preprocessor/90581
14178 * doc/cppopts.texi: Add document for -fmax-include-depth.
14179 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
14180
14181 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
14182
14183 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
14184 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
14185 (mmx_packssdw): Ditto.
14186 (mmx_punpckhbw): Ditto.
14187 (mmx_punpcklbw): Ditto.
14188 (mmx_punpckhwd): Ditto.
14189 (mmx_punpcklwd): Ditto.
14190 (mmx_punpckhdq): Ditto.
14191 (mmx_punpckldq): Ditto.
14192 (*vec_dupv4hi): Ditto.
14193 (*vec_dupv2si): Ditto.
14194 (mmx_pmovmskb): Ditto.
14195 * config/i386/sse.md (sse_cvtpi2ps): Use
14196 TARGET_SSE2 && SSE_REG_P in split condition.
14197 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
14198 TARGET_SSSE3 && SSE_REGNO_P in split condition.
14199 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
14200 (ssse3_pshufbv8qi3): Ditto.
14201 (ssse3_palignrdi): Ditto.
14202
14203 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
14204
14205 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
14206 with inlined save and restore.
14207
14208 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
14209
14210 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
14211 to be inserted on single successor edge of the entry block. Then call
14212 commit_edge_insertions instead of inserting the instructions manually.
14213 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
14214 RTL expansion and rebuild jump labels chain.
14215
14216 2019-07-02 Richard Biener <rguenther@suse.de>
14217
14218 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
14219 TI_CHREC_KNOWN.
14220 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14221 Define here.
14222 * tree.c (build_common_tree_nodes): Initialize them.
14223 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
14224 Make declarations comments.
14225 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
14226 chrec_known): Remove definitions.
14227 (initialize_scalar_evolutions_analyzer): Remove.
14228 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
14229 * tree-streamer.c (preload_common_nodes): Do not preload
14230 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
14231
14232 2019-07-02 Jan Hubicka <jh@suse.cz>
14233
14234 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
14235 sanity check.
14236
14237 2019-07-02 Jan Hubicka <jh@suse.cz>
14238
14239 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
14240 to ..
14241 (nonoverlapping_component_refs_since_match_p): ... this one;
14242 handle also non-decl bases; return -1 if search gave up.
14243 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
14244 nonoverlapping_component_refs_of_decl_p_no_alias to
14245 nonoverlapping_component_refs_since_match_p_may_alias,
14246 nonoverlapping_component_refs_since_match_p_no_alias.
14247 (dump_alias_stats): Update dumping.
14248 (aliasing_matching_component_refs_p): Break out from ...;
14249 dispatch to nonoverlapping_component_refs_for_decl_p
14250 and nonoverlapping_component_refs_since_match_p.
14251 (aliasing_component_refs_p): ... here; call
14252 nonoverlapping_component_refs_p in scenarios where we can not
14253 precisely determine base match.
14254 (decl_refs_may_alias_p): Use
14255 nonoverlapping_component_refs_since_match_p.
14256 (indirect_ref_may_alias_decl_p): Do not call
14257 nonoverlapping_component_refs_p.
14258 (indirect_refs_may_alias_p): Likewise.
14259
14260 2019-07-02 Jan Hubicka <jh@suse.cz>
14261
14262 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
14263 to clobber of return value.
14264
14265 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14266
14267 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
14268 for is_neon_type instructions that have not already been categorized.
14269
14270 2019-07-02 Richard Biener <rguenther@suse.de>
14271
14272 PR tree-optimization/58483
14273 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
14274 for MEM_REF base hashing.
14275 (equal_mem_array_ref_p): Likewise for base comparison.
14276
14277 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14278
14279 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
14280 parameterized name.
14281 (signbit<mode>2): Use that name. Simplify.
14282
14283 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
14284
14285 PR middle-end/66726
14286 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
14287 Tune heuristic from PR71016 to allow MIN / MAX.
14288
14289 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14290
14291 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
14292 parameterized name.
14293 (abs<mode>2): Use that name. Simplify.
14294
14295 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14296
14297 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
14298 parameterized name.
14299 (neg<mode>2): Use that name. Simplify.
14300
14301 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14302
14303 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
14304 name.
14305 (abs<mode>2): Use that name. Simplify.
14306
14307 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14308
14309 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
14310 name.
14311 (neg<mode>2): Use that name. Simplify.
14312
14313 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
14314
14315 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
14316 ("enabled" attribute): Handle sse_noavx isa attribute.
14317 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
14318 Use TARGET_SSE && SSE_REGNO_P in split condition.
14319 (*vec_dupv2sf): Ditto.
14320
14321 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14322
14323 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
14324 name.
14325 (floatsi<mode>2): Use that name. Simplify.
14326
14327 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14328
14329 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
14330 parameterized name.
14331 (extenddf<mode>2_vsx): Make this a parameterized name.
14332 (extenddf<mode>2): Use those names. Simplify.
14333
14334 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14335
14336 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
14337 name.
14338 (eh_return): Use that name. Simplify.
14339
14340 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14341
14342 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
14343 (doloop_end): Use that name. Simplify.
14344
14345 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14346
14347 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
14348 parameterized name.
14349 (indirect_jump): Use that name. Simplify.
14350
14351 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14352
14353 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
14354 parameterized name.
14355 (abs<mode>2): Use that name. Simplify.
14356
14357 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14358
14359 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
14360 parameterized name.
14361 (fix_trunc<mode>si2): Use that name. Simplify.
14362
14363 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14364
14365 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
14366 (allocate_stack): Use that name. Simplify.
14367
14368 2019-07-01 Martin Sebor <msebor@redhat.com>
14369
14370 PR middle-end/90923
14371 * hash-map.h (hash_map::put): On insertion invoke element ctor.
14372 (hash_map::get_or_insert): Same. Reformat comment.
14373 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14374 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14375 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14376 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14377 (hash_table::hash_table (const hash_table&)): Use copy ctor
14378 instead of assignment to copy elements.
14379
14380 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14381 John David Anglin <danglin@gcc.gnu.org>
14382
14383 PR target/90963
14384 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14385 using saved frame pointer.
14386
14387 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14388
14389 PR middle-end/64242
14390 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14391 Add frame clobber and schedule blockage.
14392
14393 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14394
14395 * doc/invoke.texi (Link Options): Further editorial changes to
14396 -flinker-output docs.
14397
14398 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14399
14400 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14401 Load both operands of a PLUS into registers separately.
14402
14403 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14404
14405 * config/s390/vector.md: Fix shift count operand printing.
14406
14407 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14408
14409 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14410
14411 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14412
14413 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14414 Use recog_data to test for an output operand.
14415
14416 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14417
14418 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14419 exclude any others that are disparaged or that are bound to need
14420 a reload or spill.
14421 (ira_get_dup_out_num): Expand comment.
14422
14423 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14424
14425 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14426 constraint string for each operand/alternative combo. Only handle
14427 '%' at the start of constraint strings, and look for it outside
14428 the main loop.
14429
14430 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14431
14432 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14433 alternative_mask instead of HARD_REG_SET to represent a
14434 bitmask of alternatives.
14435 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14436 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14437
14438 2019-07-01 Martin Liska <mliska@suse.cz>
14439
14440 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14441 use () for a constructor call.
14442 (test_applying_fixits_line_out_of_range): Likewise.
14443 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14444 argument.
14445 (free_page): Likewise.
14446
14447 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14448
14449 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14450 parameter names to match usage (no functional change).
14451 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14452
14453 2019-07-01 Richard Biener <rguenther@suse.de>
14454
14455 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14456 pass parameter.
14457 (pass_fre::execute): Honor it.
14458 * passes.def: Adjust pass_fre invocations to allow iterating,
14459 add non-iterating pass_fre before late threading/dom.
14460
14461 2019-07-01 Richard Biener <rguenther@suse.de>
14462
14463 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14464 TARGET_MEM_REF handling to also handle address-taken ones.
14465
14466 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14467
14468 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14469 hardware attributes): Document avx512vp2intersect.
14470
14471 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14472
14473 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14474 (abs<mode>2): New expander.
14475 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14476 Use CODE_FOR_ssse3_absv8qi2.
14477 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14478 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14479
14480 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14481
14482 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14483 to sse, sse_noavx and avx. Update all uses.
14484
14485 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14486
14487 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14488 (*mmx_<plusminus_insn><mode>3): Ditto.
14489 (*mmx_mulv4hi3"): Ditto.
14490 (*mmx_smulv4hi3_highpart): Ditto.
14491 (*mmx_umulv4hi3_highpart): Ditto.
14492 (*mmx_pmaddwd): Ditto.
14493 (*sse2_umulv1siv1di3): Ditto.
14494 (*mmx_<code>v4hi3): Ditto.
14495 (*mmx_<code>v8qi3): Ditto.
14496 (mmx_ashr<mode>3): Ditto.
14497 ("mmx_<shift_insn><mode>3): Ditto.
14498 (*mmx_eq<mode>3): Ditto.
14499 (mmx_gt<mode>3): Ditto.
14500 (mmx_andnot<mode>3): Ditto.
14501 (*mmx_<code><mode>3): Ditto.
14502 (*mmx_pinsrw): Ditto.
14503 (*mmx_pextrw): Ditto.
14504 (mmx_pshufw_1): Ditto.
14505 (*mmx_uavgv8qi3): Ditto.
14506 (*mmx_uavgv4hi3): Ditto.
14507 ("mmx_psadbw): Ditto.
14508 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14509 (sse_cvttps2pi): Ditto.
14510 (ssse3_pmaddubsw): Ditto.
14511 (*ssse3_pmulhrswv4hi3): Ditto.
14512 (ssse3_psign<mode>3): Ditto.
14513
14514 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14515
14516 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14517 adjustment for bit-fields to all aggregate types.
14518
14519 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14520
14521 * config/rs6000/predicates.md (pcrel_address): Use
14522 SYMBOL_REF_LOCAL_P to determine if a label is local.
14523 (pcrel_external_address): New predicate.
14524 (non_prefixed_mem_operand): Delete, predicate not used.
14525 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14526 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14527 addressing.
14528 (SYMBOL_REF_PCREL_P): Likewise.
14529
14530 PR target/91009
14531 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14532 alternative.
14533 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14534 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14535 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14536
14537 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14538
14539 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14540 override on extra_headers.
14541
14542 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14543
14544 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14545 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14546 from warning.
14547 (darwin_driver_init): Likewise.
14548
14549 2019-06-28 Jan Beulich <jbeulich@suse.com>
14550
14551 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14552 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14553 Eliminate redundant alternative.
14554
14555 2019-06-28 Jan Beulich <jbeulich@suse.com>
14556
14557 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14558 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14559 Use vector_operand.
14560
14561 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14562
14563 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14564 having a lower cost regardless of the speed option.
14565
14566 2019-06-28 Jan Beulich <jbeulich@suse.com>
14567
14568 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14569 vector_operand plus, on both alternatives, "Bm" constraint.
14570
14571 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14572
14573 * config/arm/arm.md: Remove redundant constraints from
14574 define_expand but leave reload_inm and reload_outm patterns
14575 untouched since they need special constraints to work.
14576 * config/arm/arm-fixed.md: Remove redundant constraints from
14577 define_expand.
14578 * config/arm/iwmmxt.md: Likewise.
14579 * config/arm/neon.md: Likewise.
14580 * config/arm/sync.md: Likewise.
14581 * config/arm/thumb1.md: Likewise.
14582 * config/arm/vec-common.md: Likewise.
14583
14584 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14585
14586 * doc/install.texi: Document --disable-tm-clone-registry.
14587
14588 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14589
14590 PR c++/91024
14591 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14592 statements.
14593
14594 PR tree-optimization/91010
14595 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14596 return true. Otherwise, don't call operand_equal_p if offset1 or
14597 offset2 is NULL and just return false.
14598
14599 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14600
14601 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14602 user-specified float mode choice for kernel mode code.
14603
14604 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14605
14606 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14607 spec.
14608
14609 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14610
14611 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14612 use longcall for 64b code.
14613
14614 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14615
14616 * builtins.c (get_memory_rtx): Fix comment.
14617 * optabs.def (movmem_optab): Change to cpymem_optab.
14618 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14619 (emit_block_move_hints): Change movmem to cpymem.
14620 * defaults.h: Change movmem to cpymem.
14621 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14622 (default_use_by_pieces_infrastructure_p): Ditto.
14623 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14624 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14625 to cpymem.
14626 * config/aarch64/aarch64.h: Change movmem to cpymem.
14627 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14628 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14629 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14630 movmem to cpymem.
14631 * config/arc/arc-protos.h: Change movmem to cpymem.
14632 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14633 * config/arc/arc.h: Change movmem to cpymem in comment.
14634 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14635 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14636 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14637 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14638 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14639 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14640 * config/avr/avr-protos.h: Change movmem to cpymem.
14641 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14642 avr_out_movmem): Change movmem to cpymem.
14643 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14644 Change movmem to cpymem.
14645 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14646 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14647 Change movmem to cpymem.
14648 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14649 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14650 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14651 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14652 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14653 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14654 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14655 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14656 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14657 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14658 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14659 expand_small_cpymem_or_setmem,
14660 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14661 expand_set_or_cpymem_constant_prologue,
14662 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14663 * config/i386/i386-protos.h: Change movmem to cpymem.
14664 * config/i386/i386.h: Change movmem to cpymem in comment.
14665 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14666 (setmem<mode>): Change expansion function name.
14667 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14668 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14669 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14670 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14671 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14672 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14673 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14674 to cpymem.
14675 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14676 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14677 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14678 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14679 Change movmem to cpymem.
14680 * config/mips/mips.h: Change movmem to cpymem.
14681 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14682 * config/nds32/nds32-memory-manipulation.c
14683 (nds32_expand_movmemsi_loop_unknown_size,
14684 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14685 nds32_expand_movmemsi_unroll,
14686 nds32_expand_movmemsi): Change movmem to cpymem.
14687 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14688 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14689 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14690 (pa_adjust_insn_length): Change call to compute_movmem_length.
14691 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14692 movmemdi, movmemdi_prereload,
14693 movmemdi_postreload): Change movmem to cpymem.
14694 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14695 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14696 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14697 * config/riscv/riscv.h: Change movmem to cpymem.
14698 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14699 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14700 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14701 movmem to cpymem.
14702 * config/s390/s390-protos.h: Change movmem to cpymem.
14703 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14704 s390_expand_insv): Change movmem to cpymem.
14705 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14706 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14707 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14708 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14709 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14710 for nonexistent function.
14711 * config/vax/vax.h: Change movmem to cpymem in comment.
14712 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14713 * config/visium/visium.h: Change movmem to cpymem in comment.
14714 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14715 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14716 * doc/md.texi: Change movmem to cpymem and update description to match.
14717 * doc/rtl.texi: Change movmem to cpymem.
14718 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14719 * doc/tm.texi: Regenerate.
14720
14721 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14722
14723 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14724 -fvariable-expansion-in-unroller by default.
14725 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14726 default for Power.
14727
14728 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14729
14730 Revert
14731 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14732 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14733
14734 * config.gcc(rs6000-*-*): Define target_gtfiles.
14735
14736 2019-06-27 Jan Hubicka <jh@suse.cz>
14737
14738 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14739 (add_type_duplicate): When odr hash is not allocated, to nothing.
14740 (odr_based_tbaa_p): New function.
14741 (set_type_canonical_for_odr_type): New function.
14742 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14743 set_type_canonical_for_odr_type): New.
14744 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14745 ODR based TBAA are not equivalent to non-ODR types.
14746
14747 2019-06-27 Martin Liska <mliska@suse.cz>
14748
14749 PR tree-optimization/90974
14750 PR rtl-optimization/90975
14751 PR rtl-optimization/90976
14752 PR target/91016
14753 PR tree-optimization/91017
14754 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14755 unused tmp.
14756 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14757 initial commit of IRA.
14758 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14759 of op0 and op1.
14760 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14761 Remove unused mode1.
14762 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14763 to new_stmt_info.
14764
14765 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14766
14767 PR target/90991
14768 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14769 instead of register_operand for operands[1], add m to its constraints
14770 if operands[2] uses "C" constraint. Ensure in condition that if
14771 operands[2] is not 0, then operands[1] is not a MEM. For last two
14772 alternatives, use unaligned loads instead of aligned if operands[1] is
14773 misaligned_operand.
14774
14775 2019-06-27 Martin Liska <mliska@suse.cz>
14776
14777 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14778 dead assignments.
14779 * bt-load.c (move_btr_def): Likewise.
14780 * builtins.c (expand_builtin_apply_args_1): Likewise.
14781 (expand_builtin_apply): Likewise.
14782 * cfgexpand.c (expand_asm_stmt): Likewise.
14783 (construct_init_block): Likewise.
14784 * cfghooks.c (verify_flow_info): Likewise.
14785 * cfgloopmanip.c (remove_path): Likewise.
14786 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14787 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14788 * combine.c (simplify_if_then_else): Likewise.
14789 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14790 (choose_basereg): Likewise.
14791 (ix86_expand_prologue): Likewise.
14792 (ix86_preferred_output_reload_class): Likewise.
14793 * cselib.c (cselib_record_sets): Likewise.
14794 * df-scan.c (df_scan_alloc): Likewise.
14795 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14796 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14797 * emit-rtl.c (try_split): Likewise.
14798 * graphite-scop-detection.c (assign_parameter_index_in_region):
14799 Likewise.
14800 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14801 * ira-color.c (setup_profitable_hard_regs): Likewise.
14802 * ira.c (rtx_moveable_p): Likewise.
14803 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14804 * read-rtl.c (read_subst_mapping): Likewise.
14805 * regrename.c (scan_rtx): Likewise.
14806 * reorg.c (fill_slots_from_thread): Likewise.
14807 * tree-inline.c (tree_function_versioning): Likewise.
14808 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14809 * tree-ssa-sink.c (statement_sink_location): Likewise.
14810 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14811 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14812 (vect_create_epilog_for_reduction): Likewise.
14813 * tree.c (build_nonstandard_integer_type): Likewise.
14814
14815 2019-06-27 Richard Biener <rguenther@suse.de>
14816
14817 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14818
14819 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14820
14821 PR tree-optimization/89772
14822 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14823 out-of-bound accesses checking.
14824
14825 2019-06-27 Martin Liska <mliska@suse.cz>
14826
14827 PR tree-optimization/91014
14828 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14829 when LHS is NULL_TREE.
14830
14831 2019-06-27 Martin Liska <mliska@suse.cz>
14832
14833 * symbol-summary.h (traverse): Pass
14834 argument a to the call of callback.
14835 (gt_ggc_mx): Mark arguments as unused.
14836 (gt_pch_nx): Likewise.
14837
14838 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14839
14840 PR target/62147
14841 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14842 finiteness.
14843
14844 2019-06-26 Jeff Law <law@redhat.com>
14845
14846 PR tree-optimization/90883
14847 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14848 (delete_dead_or_redundant_assignment): Likewise.
14849
14850 PR tree-optimization/90883
14851 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14852 * tree-ssa-dse.c: Update various comments to distinguish between
14853 dead and redundant stores.
14854 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14855 (dse_optimize_redundant_stores): New function.
14856 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14857 Distinguish between dead and redundant calls in dump output. All
14858 callers updated.
14859 (delete_dead_or_redundant_assignment): Similarly for assignments.
14860 (dse_optimize_stmt): Handle _CHK variants. For statements which
14861 store 0 into multiple memory locations, try to prove a subsequent
14862 store is redundant.
14863
14864 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14865
14866 PR target/89021
14867 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14868 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14869
14870 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14871
14872 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14873 (branch_islands): New extern.
14874 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14875 * config/rs6000/rs6000.c: .. here.
14876
14877 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14878
14879 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14880 (powerpc*-*-*) ... to here.
14881
14882 2019-06-26 Jeff Law <law@redhat.com>
14883
14884 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14885 memcpy, memmove and memset builtins.
14886 (maybe_trim_memstar_call): Likewise.
14887
14888 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14889
14890 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14891
14892 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14893
14894 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14895
14896 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14897
14898 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14899 declaration.
14900 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14901 "static".
14902 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14903 declaration.
14904
14905 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14906
14907 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14908
14909 2019-06-26 Richard Biener <rguenther@suse.de>
14910
14911 PR ipa/90982
14912 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14913
14914 2019-06-26 Richard Biener <rguenther@suse.de>
14915
14916 * lto-streamer.h (lto_bitmap_alloc): Remove.
14917 (lto_bitmap_free): Likewise.
14918 * lto-streamer.c (lto_bitmap_alloc): Remove.
14919 (lto_bitmap_free): Likewise.
14920 (lto_obstack): Likewise.
14921 (lto_obstack_initialized): Likewise.
14922 * lto-streamer-out.c (lto_output): Use own obstack for local
14923 bitmap, free it consistently.
14924
14925 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14926
14927 PR target/90991
14928 * config/i386/sse.md
14929 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14930 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14931 insns if operands[2] is misaligned_operand.
14932
14933 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14934
14935 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14936 TARGET_POWERPC64.
14937 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14938 to GPR.
14939
14940 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14941
14942 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14943
14944 2019-06-26 Martin Liska <mliska@suse.cz>
14945
14946 PR tree-optimization/90973
14947 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14948 epilogue_cost_vec instead of prologue_cost_vec for
14949 a epilogue cost.
14950
14951 2019-06-26 Martin Liska <mliska@suse.cz>
14952
14953 * bb-reorder.c (connect_better_edge_p): Add missing else
14954 statement in the middle of if-else statements.
14955
14956 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14957 H.J. Lu <hongjiu.lu@intel.com>
14958 Olga Makhotina <olga.makhotina@intel.com>
14959
14960 * common/config/i386/i386-common.c
14961 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14962 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14963 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14964 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14965 (ix86_handle_option): Handle -mavx512vp2intersect.
14966 * config/i386/avx512vp2intersectintrin.h: New.
14967 * config/i386/avx512vp2intersectvlintrin.h: New.
14968 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14969 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14970 AVX512VP2INTERSECT.
14971 * config/i386/i386-builtin-types.def: Add new types.
14972 * config/i386/i386-builtin.def: Add new builtins.
14973 * config/i386/i386-builtins.c: (enum processor_features): Add
14974 F_AVX512VP2INTERSECT.
14975 (static const _isa_names_table isa_names_table): Ditto.
14976 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14977 __AVX512VP2INTERSECT__.
14978 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14979 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14980 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14981 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14982 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14983 * config/i386/i386-options.c (ix86_target_string): Add
14984 -mavx512vp2intersect.
14985 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14986 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14987 P2HImode and P2QImode.
14988 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14989 number for P2QImode and P2HImode.
14990 (ix86_regmode_natural_size): New function.
14991 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14992 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14993 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14994 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14995 * config/i386/i386.opt: Add -mavx512vp2intersect.
14996 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14997 avx512vp2intersectvlintrin.h.
14998 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14999 (define_mode_iterator VI48_AVX512VP2VL): New.
15000 (avx512vp2intersect_2intersect<mode>,
15001 avx512vp2intersect_2intersectv16si): New define_insn patterns.
15002 * config.gcc: Add avx512vp2intersectvlintrin.h and
15003 avx512vp2intersectintrin.h to extra_headers.
15004 * doc/invoke.texi: Document -mavx512vp2intersect.
15005
15006 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
15007
15008 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
15009
15010 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
15011
15012 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
15013 savres_routine_syms, savres_routine_name, morestack_ref,
15014 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15015 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15016 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15017 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15018 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15019 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15020 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15021 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15022 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15023 get_stack_clash_protection_probe_interval,
15024 get_stack_clash_protection_guard_size,
15025 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15026 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15027 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15028 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15029 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15030 gen_frame_mem_offset, rs6000_savres_routine_name,
15031 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15032 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15033 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15034 rs6000_global_entry_point_prologue_needed_p,
15035 rs6000_get_separate_components, rs6000_components_for_bb,
15036 rs6000_disqualify_components, rs6000_emit_prologue_components,
15037 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15038 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15039 rs6000_output_savres_externs, rs6000_output_function_prologue,
15040 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15041 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15042 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15043 rs6000_output_function_epilogue, gen_add3_const,
15044 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15045 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15046 to rs6000-logue.c.
15047 (machine_function): Moved to rs6000.h.
15048 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
15049 rs6000-internal.h.
15050 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
15051 savres_routine_syms, savres_routine_name, morestack_ref,
15052 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
15053 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
15054 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
15055 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
15056 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
15057 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
15058 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
15059 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
15060 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
15061 get_stack_clash_protection_probe_interval,
15062 get_stack_clash_protection_guard_size,
15063 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
15064 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
15065 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
15066 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
15067 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
15068 gen_frame_mem_offset, rs6000_savres_routine_name,
15069 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
15070 ptr_regno_for_savres, rs6000_emit_savres_rtx,
15071 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
15072 rs6000_global_entry_point_prologue_needed_p,
15073 rs6000_get_separate_components, rs6000_components_for_bb,
15074 rs6000_disqualify_components, rs6000_emit_prologue_components,
15075 rs6000_emit_epilogue_components, rs6000_set_handled_components,
15076 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
15077 rs6000_output_savres_externs, rs6000_output_function_prologue,
15078 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
15079 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
15080 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
15081 rs6000_output_function_epilogue, gen_add3_const,
15082 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
15083 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
15084 to here from rs6000.c.
15085 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
15086 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
15087 quad_address_offset_p) Moved to here from rs6000.c.
15088 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
15089 * config/config.gcc: Add new source file rs6000-logue.c to garbage
15090 collector.
15091
15092 2019-06-25 Martin Liska <mliska@suse.cz>
15093
15094 * hash-table.c (hashtab_chk_error): Move here from ...
15095 * hash-table.h (hashtab_chk_error): ... here.
15096
15097 2019-06-25 Martin Liska <mliska@suse.cz>
15098
15099 PR tree-optimization/90978
15100 * df-scan.c (df_update_entry_block_defs): Remove dead else
15101 branch.
15102 (df_update_exit_block_uses): Likewise.
15103
15104 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
15105 Andrew Stubbs <ams@codesourcery.com>
15106
15107 * config.gcc (thread_file): Set to gcn for AMD GCN.
15108 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
15109 (TARGET_EMUTLS_VAR_INIT): New hook.
15110
15111 2019-06-25 Martin Jambor <mjambor@suse.cz>
15112
15113 PR ipa/90939
15114 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
15115
15116 2019-06-25 Richard Biener <rguenther@suse.de>
15117
15118 PR tree-optimization/90930
15119 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
15120 into parallel form in the last pass instance.
15121
15122 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
15123
15124 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
15125 (arc_legitimize_pic_address): Simplify and cleanup the function.
15126 (SYMBOLIC_CONST): Remove.
15127 (prepare_pic_move): Likewise.
15128 (prepare_move_operands): Handle complex mov cases here.
15129 (arc_legitimize_address_0): Remove call to
15130 arc_legitimize_pic_address.
15131 (arc_legitimize_address): Remove call to
15132 arc_legitimize_tls_address.
15133 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
15134 (movhi_insn): Likewise.
15135
15136 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15137
15138 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
15139 PTRDIFF_TYPE.
15140 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
15141 format of "__intN" types for UINTMAX_TYPE.
15142 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
15143 format of "__intN" types for SIZETYPE.
15144 * tree.c (build_common_tree_nodes): Accept "__intN__"
15145 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
15146 * doc/invoke.texi: Document that __intN__ disables pedantic
15147 warnings.
15148
15149 2019-06-25 Jan Hubicka <jh@suse.cz>
15150
15151 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
15152 base2_alias_set is non-zero before doing TBAA based disambiguation.
15153
15154 2019-06-25 Martin Liska <mliska@suse.cz>
15155
15156 PR tree-optimization/90973
15157 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
15158 of prologue and epilogue.
15159
15160 2019-06-24 Jan Hubicka <jh@suse.cz>
15161
15162 * ipa-utils.h (type_with_linkage_p): Verify that type is
15163 CXX_ODR_P.
15164 (odr_type_p): Remove extra return.
15165 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
15166 hash STRING_FLAG only for arrays and integers.
15167 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
15168 Update analogously.
15169 * tree-streamer-out.c (pack_ts_type_common_value_fields):
15170 Likewise.
15171 * print-tree.c (print_node): Print cxx-odr-p
15172 and string-flag.
15173 * tree.c (need_assembler_name_p): Also check that type
15174 is CXX_ODR_TYPE_P
15175 (verify_type_variant): Update verification of SRING_FLAG;
15176 also check CXX_ODR_P.
15177 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
15178 (TYPE_STRING_FLAG): Use it.
15179 (TYPE_CXX_ODR_P): New macro.
15180 * dwarf2out.c (gen_array_type_die): First check that type
15181 is an array and then test string flag.
15182
15183 2019-06-24 Richard Biener <rguenther@suse.de>
15184
15185 PR tree-optimization/90972
15186 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
15187 in common code, dealing with STRING_CST properly.
15188
15189 2019-06-24 Richard Biener <rguenther@suse.de>
15190
15191 PR tree-optimization/90930
15192 PR tree-optimization/90316
15193 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
15194 decrement of limit.
15195
15196 2019-06-24 Martin Sebor <msebor@redhat.com>
15197
15198 * tree-pretty-print.h: Remove unnecessary punctuation characters
15199 from a diagnostic.
15200 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
15201
15202 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
15203
15204 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
15205 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
15206 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
15207
15208 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15209
15210 * config/rs6000/darwin.h: Handle GCC target pragma.
15211
15212 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
15213
15214 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
15215
15216 2019-06-22 Jeff Law <law@redhat.com>
15217
15218 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15219
15220 2019-06-22 Jan Hubicka <jh@suse.cz>
15221
15222 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
15223 give up on bitfields; continue searching for different refs
15224 appearing later.
15225
15226 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15227
15228 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15229 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
15230 containing the offset as possible simd lane access. Look through
15231 widening conversion. Move the
15232 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
15233
15234 2019-06-21 Richard Biener <rguenther@suse.de>
15235
15236 PR tree-optimization/90930
15237 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
15238 flag on new stmts to avoid re-processing them.
15239
15240 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
15241
15242 PR c++/90875 - added -Wswitch-outside-range option
15243 * doc/invoke.texi (Wswitch-outside-range): Document.
15244
15245 2019-06-21 Jeff Law <law@redhat.com>
15246
15247 PR tree-optimization/90949
15248 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
15249 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
15250
15251 2019-06-21 Richard Biener <rguenther@suse.de>
15252
15253 PR debug/90914
15254 * dwarf2out.c (prune_unused_types_walk): Always consider
15255 function-local extern declarations as used.
15256
15257 2019-06-21 Richard Biener <rguenther@suse.de>
15258
15259 PR tree-optimization/90913
15260 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
15261 the scalar variant of if-conversion versioning.
15262
15263 2019-06-21 Jakub Jelinek <jakub@redhat.com>
15264
15265 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
15266 create another "omp scan inscan exclusive" array if
15267 !ctx->scan_inclusive.
15268 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
15269 (lower_omp_scan): Likewise.
15270 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
15271 2-bit bitfield for simd_lane_access_p member.
15272 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
15273 aux == (void *)-4 as simd lane access.
15274 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
15275 comment with permutations to show the canonical permutation order.
15276 (vectorizable_scan_store): Handle exclusive scan.
15277 (vectorizable_store): Call vectorizable_scan_store even for
15278 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
15279
15280 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
15281 "omp simd array" arrays with one byte elements.
15282
15283 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
15284
15285 * config/alpha/alpha.md (@unaligned_store<mode>):
15286 Rename from unaligned_store<mode>.
15287 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
15288 * config/alpha/sync.md (@load_locked_<mode>): Rename
15289 from load_locked_<mode>.
15290 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
15291 (@atomic_compare_and_swap<mode>_1): Rename
15292 from atomic_compare_and_swap<mode>_1.
15293 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
15294 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
15295 Use gen_reload_in_aligned and gen_unaligned_store.
15296 (emit_load_locked): Remove.
15297 (emit_store_conditional): Ditto.
15298 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
15299 (alpha_split_compare_and_swap): Ditto.
15300 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
15301 (alpha_split_compare_and_swap_12): Use gen_load_locked
15302 and gen_store_conditional.
15303 (alpha_split_atomic_exchange): Ditto.
15304 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
15305 (alpha_split_atomic_exchange_12): Use gen_load_locked
15306 and gen_store_conditional.
15307
15308 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
15309
15310 * config/aarch64/aarch64-errata.h: New file.
15311 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
15312 (CA53_ERR_843419_SPEC): Delete.
15313 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
15314 * config/aarch64/aarch64-linux.h: Likewise.
15315 * config/aarch64/aarch64-netbsd.h: Likewise.
15316 * config/aarch64/aarch64-freebsd.h: Likewise.
15317
15318 2019-06-20 Marek Polacek <polacek@redhat.com>
15319
15320 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
15321
15322 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
15323
15324 * config/rs6000/rs6000.md (isa attribute): Add support for
15325 for a future processor.
15326
15327 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
15328
15329 PR target/54855
15330 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
15331 standard scalar operation pattern for V2DF.
15332 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
15333 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
15334 (*ieee_<ieee_maxmin><mode>3): Likewise.
15335 (vec_setv2df_0): Likewise.
15336
15337 2019-06-20 Jan Hubicka <jh@suse.cz>
15338
15339 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
15340 parameter; it has no use in gimple memory model.
15341 (indirect_ref_may_alias_decl_p): Update.
15342
15343 2019-06-20 Martin Liska <mliska@suse.cz>
15344
15345 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
15346 to 10.
15347
15348 2019-06-20 Jakub Jelinek <jakub@redhat.com>
15349
15350 * tree-vect-stmts.c (enum scan_store_kind): New type.
15351 (scan_store_can_perm_p): Change last argument from int * to
15352 vec<enum scan_store_kind> *, record precisely which permutations
15353 need whole vector left shift or that plus VEC_COND_EXPR.
15354 (vectorizable_scan_store): Adjust caller, use whole vector left shift
15355 and additional VEC_COND_EXPR only for those iterations that need it.
15356
15357 2019-06-20 Alexandre Oliva <oliva@adacore.com>
15358
15359 * config.gcc: Fix ARM --with-fpu checking and error message.
15360
15361 2019-06-19 Marek Polacek <polacek@redhat.com>
15362
15363 PR c++/60364 - noreturn after first decl not diagnosed.
15364 * attribs.c (get_attribute_namespace): No longer static.
15365 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
15366 attributes.
15367 (attr_noreturn_exclusions): Make it extern.
15368 * attribs.h (get_attribute_namespace): Declare.
15369 * tree-inline.c (function_attribute_inlinable_p): Use
15370 get_attribute_name.
15371
15372 2019-06-19 Martin Sebor <msebor@redhat.com>
15373
15374 PR tree-optimization/90626
15375 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15376
15377 PR tree-optimization/90626
15378 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15379 (handle_builtin_string_cmp): Call it.
15380
15381 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15382
15383 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15384 and DARWIN_NOPIE_SPEC.
15385 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15386 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15387 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15388 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15389 (DARWIN_EXPORT_DYNAMIC): Delete.
15390 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15391 and pie options processing to darwin.h.
15392 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15393
15394 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15395
15396 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15397 in computing the number of options to be moved.
15398
15399 2019-06-19 Maya Rashish <coypu@sdf.org>
15400
15401 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15402 (CLEAR_INSN_CACHE) Use it.
15403
15404 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15405
15406 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15407
15408 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15409
15410 PR middle-end/84521
15411 * builtins.c (expand_builtin_setjmp_setup): Save
15412 hard_frame_pointer_rtx.
15413 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15414 restore fp.
15415 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15416 non-local goto.
15417 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15418 elimination code.
15419 (remove_reg_equal_offset_note): Remove unused function.
15420 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15421 code.
15422 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15423 (arc_builtin_setjmp_frame_value): Remove function.
15424 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15425 (avr_builtin_setjmp_frame_value): Remove function.
15426 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15427 (ix86_builtin_setjmp_frame_value): Remove function.
15428 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15429 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15430 (sparc_builtin_setjmp_frame_value): Remove function.
15431 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15432 (vax_builtin_setjmp_frame_value): Remove function.
15433 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15434 pointer if has_nonlocal_label.
15435
15436 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15437
15438 * doc/md.texi: Document vec_shl_<mode> pattern.
15439 * optabs.def (vec_shl_optab): New optab.
15440 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15441 argument, if == vec_shl_optab, check for left whole vector shift
15442 pattern rather than right shift.
15443 (expand_vec_perm_const): Add vec_shl_optab support.
15444 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15445 in the comment.
15446 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15447 can be handled by vec_shl_optab.
15448 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15449 (check_scan_store): Use it.
15450 (vectorizable_scan_store): If target can't do normal permutations,
15451 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15452 after it.
15453 * config/i386/sse.md (vec_shl_<mode>): New expander.
15454
15455 * omp-low.c (lower_rec_input_clauses): Handle references properly
15456 in inscan clauses.
15457 (lower_omp_scan): Likewise.
15458
15459 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15460
15461 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15462 mem_mode is BLKmode.
15463
15464 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15465
15466 PR target/90922
15467 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15468 pointer adjustment for the case of no callee-saved registers and
15469 stack frame bigger than 128 bytes.
15470
15471 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15472
15473 PR middle-end/90862
15474 * omp-low.c (check_omp_nesting_restrictions): Handle
15475 GF_OMP_TARGET_KIND_OACC_DECLARE.
15476
15477 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15478
15479 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15480 (@add<mode>3_carry): Rename from add<mode>3_carry.
15481 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15482 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15483 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15484 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15485 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15486 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15487 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15488 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15489 (cmpstrnsi): Use gen_cmp_1.
15490 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15491 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15492 (@umonitor_<mode>): Rename from umonitor_<mode>.
15493 * config/i386/i386-expand.c (ix86_expand_copysign):
15494 Use gen_copysign3_const and gen_copysign3_var.
15495 (ix86_expand_xorsign): Use gen_xorsign3_1.
15496 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15497 gen_sub3_carry_ccgz and gen_cmp1.
15498 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15499 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15500 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15501 (ix86_split_lshr): Ditto.
15502 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15503
15504 2019-06-18 Jason Merrill <jason@redhat.com>
15505
15506 * tree.c (build_constructor): Add MEM_STAT_DECL.
15507
15508 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15509
15510 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15511 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15512 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15513 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15514 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15515 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15516 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15517 Use CC_NZC instead of CC.
15518 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15519 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15520 (aarch64_print_operand): Handle E_CC_NZCmode.
15521 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15522 of gen_set_clobber_cc.
15523
15524 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15525
15526 * config/aarch64/aarch64-sve.md: Tabify file.
15527
15528 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15529
15530 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15531 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15532 * config/aarch64/aarch64-sve.md: Use it.
15533
15534 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15535
15536 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15537 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15538 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15539 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15540 (aarch64_expand_sve_vec_cmp_int): Use it.
15541 (aarch64_expand_sve_vec_cmp_float): Likewise.
15542 * config/aarch64/aarch64-sve.md: Likewise throughout.
15543
15544 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15545 Kugan Vivekanandarajah <kuganv@linaro.org>
15546
15547 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15548 (*cond_<optab><mode>_z): Fold into...
15549 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15550 operand 4 can be tied to operand 0 (either inherently or via RA).
15551
15552 2019-06-18 Richard Biener <rguenther@suse.de>
15553
15554 PR debug/90900
15555 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15556 as if optimized away.
15557
15558 2019-06-18 Tom de Vries <tdevries@suse.de>
15559
15560 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15561 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15562 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15563 Rename to ...
15564 (define_insn "@set_softstack_<mode>"): ... this.
15565 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15566 (define_insn "@omp_simt_enter_<mode>"): ... this.
15567 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15568 (define_insn "@omp_simt_exit_<mode>"): ... this.
15569
15570 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15571
15572 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15573 vf parameter. Restore the previous iv step of nscalars_step,
15574 but give it iv_type rather than compare_type. Tweak code order
15575 to match the comments.
15576 (vect_set_loop_condition_masked): Update accordingly.
15577 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15578 for iv_precision. Tweak comment formatting.
15579
15580 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15581
15582 * config/darwin.c: Strip trailing whitespace.
15583
15584 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15585
15586 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15587 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15588
15589 2019-06-18 Martin Jambor <mjambor@suse.cz>
15590
15591 PR ipa/90889
15592 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15593 caller does not have flag_ipa_cp set.
15594
15595 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15596
15597 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15598 from "*fold_left_plus_<mode>", updated operands order.
15599 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15600 * internal-fn.c (mask_fold_left_direct): New define.
15601 (expand_mask_fold_left_optab_fn): Likewise.
15602 (direct_mask_fold_left_optab_supported_p): Likewise.
15603 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15604 * optabs.def (mask_fold_left_plus_optab): New optab.
15605 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15606 masked internal_fn for a reduction ifn.
15607 (vectorize_fold_left_reduction): Add support for masking reductions.
15608
15609 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15610
15611 PR middle-end/80791
15612 * target.def (predict_doloop_p): New hook.
15613 * targhooks.h (default_predict_doloop_p): New declaration.
15614 * targhooks.c (default_predict_doloop_p): New function.
15615 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15616 * doc/tm.texi: Regenerate.
15617 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15618 (TARGET_PREDICT_DOLOOP_P): New macro.
15619 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15620
15621 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15622
15623 * omp-low.c (struct omp_context): Add scan_inclusive field.
15624 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15625 if inclusive scan.
15626 (struct omplow_simd_context): Add lastlane member.
15627 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15628 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15629 1 or 2 argument.
15630 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15631 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15632 (lower_omp_scan): New function.
15633 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15634 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15635 check 3rd argument if present rather than 2nd.
15636 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15637 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15638 2-bit bitfield.
15639 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15640 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15641 than 2nd.
15642 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15643 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15644 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15645 init.
15646 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15647 IFN_GOMP_SIMD_LANE argument.
15648 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15649 encoded ->aux value.
15650 * tree-vect-stmts.c: Include attribs.h.
15651 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15652 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15653 functions.
15654 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15655 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15656
15657 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15658
15659 PR target/62055
15660 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15661 (*nabs<mode>2_1): Ditto.
15662 (nabs sse-reg splitter): New splitter.
15663 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15664
15665 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15666
15667 PR bootstrap/90873.
15668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15669 TMR index check.
15670
15671 2019-06-17 Tom de Vries <tdevries@suse.de>
15672
15673 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15674 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15675 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15676 ...
15677 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15678 match_operand 0.
15679 (define_insn "omp_simt_enter_insn"): Rename to ...
15680 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15681 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15682 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15683 gen_omp_simt_enter_si.
15684 (define_expand "omp_simt_exit"): New.
15685 (define_insn "omp_simt_exit"): Rename to ...
15686 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15687 match_operand 0.
15688
15689 2019-06-17 Matthew Green <mrg@eterna.com.au>
15690 Maya Rashish <coypu@sdf.org>
15691
15692 * config.gcc (aarch64*-*-netbsd*): New target.
15693 * config/aarch64/aarch64-netbsd.h: New file.
15694 * config/aarch64/t-aarch64-netbsd: Likewise.
15695
15696 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15697
15698 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15699 the access path from base to first VIEW_CONVERT_EXPR or
15700 BIT_FIELD_REF.
15701
15702 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15703
15704 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15705 access path on BIT_FIELD_REFs.
15706
15707 2019-06-17 Martin Liska <mliska@suse.cz>
15708
15709 PR ipa/90874
15710 * ipa-utils.h (odr_type_p): Remove dead code.
15711
15712 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15713
15714 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15715 alternative Solaris 11.4 format.
15716 * configure: Regenerate.
15717
15718 2019-06-17 Tom de Vries <tdevries@suse.de>
15719
15720 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15721 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15722 match_operand 0.
15723 (define_insn "call_value_insn"): Rename to ...
15724 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15725 match_operand 0.
15726 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15727 DI.
15728
15729 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15730
15731 PR middle-end/64242
15732 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15733 frame clobbers and schedule block.
15734 (builtin_longjmp): Likewise.
15735
15736 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15737
15738 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15739 describe how to perform MSPABI compliant 64-bit shift.
15740 * config/msp430/msp430.md (ashldi3): New define_expand.
15741 (ashrdi3): New define_expand.
15742 (lshrdi3): New define_expand.
15743
15744 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15745
15746 * doc/sourcebuild.texi: Document new effective target keyword
15747 longlong64.
15748
15749 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15750
15751 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15752 indirect_refs_may_alias_p): Revert accidental commits.
15753
15754 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15755 at the end of structures.
15756
15757 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15758
15759 * config/darwin.c (machopic_indirect_call_target): Use renamed
15760 darwin_picsymbol_stubs to decide on output.
15761 (darwin_override_options): Handle darwin_picsymbol_stubs.
15762 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15763 (LD64_VERSION): Revise default.
15764 * config/darwin.opt: (mpic-symbol-stubs): New option.
15765 (darwin_picsymbol_stubs): New variable.
15766 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15767 rename to TARGET_MACHO_PICSYM_STUBS.
15768 * config/i386/i386.c (output_pic_addr_const): Likewise.
15769 * config/i386/i386.h Likewise.
15770 * config/rs6000/darwin.h: Likewise.
15771 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15772 darwin_picsymbol_stubs.
15773
15774 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15775
15776 * config/darwin.opt (prebind, noprebind, seglinkedit,
15777 noseglinkedit): Add RejectNegative.
15778
15779 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15780
15781 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15782 in my previous patch.
15783
15784 2019-06-16 Tom de Vries <tdevries@suse.de>
15785
15786 PR tree-optimization/89376
15787 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15788
15789 2019-06-15 Maya Rashish <coypu@sdf.org>
15790
15791 * doc/invoke.texi (Spec Files): Update location of the
15792 Fortran spec file.
15793
15794 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15795
15796 * doc/extend.texi (Common Function Attributes): Clarify
15797 no_sanitize. Fix grammar.
15798
15799 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15800
15801 * tree-ssa-alias.c (alias_stats): Add
15802 nonoverlapping_component_refs_p_may_alias,
15803 nonoverlapping_component_refs_p_no_alias,
15804 nonoverlapping_component_refs_of_decl_p_may_alias,
15805 nonoverlapping_component_refs_of_decl_p_no_alias.
15806 (dump_alias_stats): Dump them.
15807 (nonoverlapping_component_refs_of_decl_p): Add stats.
15808 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15809 ARRAY_REF.
15810
15811 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15812
15813 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15814 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15815 only.
15816 (*anddi3_doubleword): Split before reload. Merge with
15817 anddi->zext pre-reload splitter.
15818 (*andndi3_doubleword): Split before reload.
15819 (*<code>di3_doubleword): Ditto.
15820 (*one_cmpldi2_doubleword): Ditto.
15821
15822 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15823
15824 PR middle-end/90779
15825 * gimplify.c: Include omp-offload.h and context.h.
15826 (gimplify_bind_expr): Add "omp declare target" attributes
15827 to static block scope variables inside of target region or target
15828 functions.
15829
15830 2019-06-15 Tom de Vries <tdevries@suse.de>
15831
15832 PR tree-optimization/90009
15833 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15834 Return NULL if bb contains IFN_UNIQUE.
15835
15836 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15837
15838 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15839 (un): New define_mode_attr.
15840 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15841 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15842 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15843 merge into ...
15844 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15845
15846 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15847
15848 * config/darwin.opt: Add RejectNegative where needed, reorder
15849 and add minimal functional descriptions.
15850
15851 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 PR rtl-optimization/90765
15854 * calls.c (update_stack_alignment_for_call): New function.
15855 (expand_call): Call update_stack_alignment_for_call when
15856 outgoing parameter is passed in the stack.
15857 (emit_library_call_value_1): Likewise.
15858 * function.c (locate_and_pad_parm): Don't update
15859 stack_alignment_needed and preferred_stack_boundary.
15860
15861 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15862
15863 PR target/90877
15864 * config/i386/i386-features.c
15865 (dimode_scalar_chain::compute_convert_gain): Replace
15866 mmxsse_to_integer with sse_to_integer.
15867 * config/i386/i386.c (ix86_register_move_cost): Verify that
15868 moves between MMX and non-MMX units require secondary memory.
15869 Correct costs of moves between SSE and integer units.
15870 * config/i386/i386.h (processor_costs): Rename cost of moving
15871 SSE register to integer to sse_to_integer. Rename cost of
15872
15873 2019-06-14 Matt Thomas <matt@3am-software.com>
15874 Matthew Green <mrg@eterna.com.au>
15875 Nick Hudson <skrll@netbsd.org>
15876 Maya Rashish <coypu@sdf.org>
15877 Richard Earnshaw <rearnsha@arm.com>
15878
15879 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15880 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15881 * config/arm/netbsd-eabi.h: New file.
15882 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15883 redefining.
15884 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15885 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15886 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15887 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15888
15889 2019-06-14 Richard Biener <rguenther@suse.de>
15890
15891 * tree-loop-distribution.c (classify_partition): Return
15892 whether a reduction appeared in all partitions and do not
15893 stop builtin detection because of this.
15894 (distribute_loop): Sort a non-builtin partition last if
15895 there's a reduction in all partitions and make sure the
15896 partition prevailing as last is not a builtin.
15897
15898 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15899
15900 PR ipa/90401
15901 * ipa-prop.c (add_to_agg_contents_list): New function.
15902 (clobber_by_agg_contents_list_p): Likewise.
15903 (extract_mem_content): Likewise.
15904 (get_place_in_agg_contents_list): Delete.
15905 (determine_known_aggregate_parts): Renamed from
15906 determine_locally_known_aggregate_parts. New parameter
15907 aa_walk_budget_p.
15908
15909 2019-06-13 Martin Sebor <msebor@redhat.com>
15910
15911 PR tree-optimization/90662
15912 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15913 to the same type.
15914
15915 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15916
15917 PR bootstrap/90873
15918 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15919 dbase is not TARGET_MEM_REF.
15920
15921 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15922
15923 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15924 Update all uses.
15925 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15926 Do not generate DImode extends for 32bit targets.
15927 (and->zext post-reload splitter): Use gen_extend_insn
15928 instead of indirect functions.
15929 (anddi->zext pre-reload splitter): New.
15930 (*zext<mode>_doubleword_and): Remove.
15931 (*zext<mode>_doubleword): Ditto.
15932 (*zextsi_doubleword): Dittto.
15933
15934 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15935
15936 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15937 Use gen_sub3_insn instead of indirect function.
15938 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15939 indirect function.
15940 (ix86_adjust_counter): Ditto.
15941
15942 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15943 Lijia He <helijia@linux.ibm.com>
15944
15945 PR tree-optimization/77820
15946 * tree-ssa-threadedge.c
15947 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15948 function.
15949 (thread_across_edge): Add call to
15950 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15951
15952 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15953
15954 * config/darwin-driver.c (validate_macosx_version_min): New.
15955 (darwin_default_min_version): Cleanup and validate supplied version.
15956 (darwin_driver_init): Likewise and push cleaned version into opts.
15957
15958 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15959
15960 PR tree-optimization/90869
15961 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15962 converts in MEM_REF referencing decl rather than view converts
15963 from decl type to MEM_REF type.
15964
15965 2019-06-13 Richard Biener <rguenther@suse.de>
15966
15967 PR tree-optimization/90856
15968 * tree-sra.c (build_ref_for_model): Only use
15969 build_reconstructed_reference when address-spaces are the same.
15970
15971 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15972
15973 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15974 wrap ei variable name in the declaration in ()s.
15975 (nvptx_single): Actually use mode_label variable. Formatting fix.
15976
15977 2019-06-13 Richard Biener <rguenther@suse.de>
15978
15979 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15980 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15981 also return the condition stmt.
15982 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15983 loop we can version and version that, reusing the loop version
15984 created by if-conversion instead of versioning again.
15985
15986 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15987
15988 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15989 may_contain_p.
15990 * tree-vrp (value_range_base::may_contain_p): Call into
15991 value_inside_range.
15992 (value_inside_range): Make private inside value_range_base class.
15993 Take min/max from *this.
15994 (range_includes_p): Remove.
15995 * tree-vrp.h (value_range_base): Add value_inside_range.
15996 (range_includes_p): Remove.
15997 (range_includes_zero_p): Call may_contain_p.
15998 * vr-values.c (compare_range_with_value): Same.
15999
16000 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
16001
16002 * doc/extend.texi (ARC Function Attributes): Update info.
16003
16004 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
16005
16006 PR tree-optimization/89713
16007 * doc/invoke.texi (-ffinite-loops): Document new option.
16008 * common.opt (-ffinite-loops): New option.
16009 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
16010 IFN_GOACC_LOOP calls as necessary.
16011 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
16012 is finite.
16013 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
16014 IFN_GOACC_LOOP call is not used.
16015 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
16016
16017 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16018
16019 PR target/88838
16020 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
16021 compare_type is not with Pmode size, we will create an IV with
16022 Pmode size with truncated use (i.e. converted to the correct type).
16023 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
16024 (vect_iv_limit_for_full_masking): New. Factored out of
16025 vect_set_loop_condition_masked.
16026 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
16027 (vect_iv_limit_for_full_masking): Declare.
16028
16029 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16030
16031 PR target/88834
16032 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
16033 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
16034 (get_alias_ptr_type_for_ptr_address): Likewise.
16035 (add_iv_candidate_for_use): Add scaled index candidate if useful.
16036 * tree-ssa-address.c (preferred_mem_scale_factor): New.
16037 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
16038 allow_reg_index_p.
16039
16040 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16041
16042 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
16043
16044 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
16045
16046 * common/config/pru/pru-common.c: New file.
16047 * config.gcc: Add PRU target.
16048 * config/pru/alu-zext.md: New file.
16049 * config/pru/constraints.md: New file.
16050 * config/pru/predicates.md: New file.
16051 * config/pru/pru-opts.h: New file.
16052 * config/pru/pru-passes.c: New file.
16053 * config/pru/pru-pragma.c: New file.
16054 * config/pru/pru-protos.h: New file.
16055 * config/pru/pru.c: New file.
16056 * config/pru/pru.h: New file.
16057 * config/pru/pru.md: New file.
16058 * config/pru/pru.opt: New file.
16059 * config/pru/t-pru: New file.
16060 * doc/extend.texi: Document PRU pragmas.
16061 * doc/invoke.texi: Document PRU-specific options.
16062 * doc/md.texi: Document PRU asm constraints.
16063
16064 2019-06-12 Martin Sebor <msebor@redhat.com>
16065
16066 PR middle-end/90676
16067 * tree-pretty-print.c (dump_mem_ref): New function. Include
16068 MEM_REF type in output when different size than operand.
16069 (dump_generic_node): Move code to dump_mem_ref and call it.
16070
16071 2019-06-12 Martin Sebor <msebor@redhat.com>
16072
16073 PR tree-optimization/90662
16074 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
16075 to arrays.
16076
16077 2019-06-12 Tom de Vries <tdevries@suse.de>
16078
16079 PR tree-optimization/90009
16080 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
16081
16082 2019-06-12 Martin Liska <mliska@suse.cz>
16083
16084 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
16085 the created map.
16086 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
16087 * mem-stats.h (mem_alloc_description::mem_alloc_description):
16088 Do not sanitize created maps.
16089
16090 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
16091
16092 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
16093 value_range::singleton_p.
16094 * tree-vrp.c (value_range_constant_singleton): Remove.
16095 * tree-vrp.h (value_range_constant_singleton): Remove.
16096 * vr-values.c (vr_values::singleton): Use
16097 value_range::singleton_p.
16098
16099 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16100
16101 PR target/90811
16102 * cfgexpand.c (align_local_variable): Add really_expand argument,
16103 don't SET_DECL_ALIGN if it is false.
16104 (add_stack_var): Add really_expand argument, pass it through to
16105 align_local_variable.
16106 (expand_one_stack_var_1): Pass true as really_expand to
16107 align_local_variable.
16108 (expand_one_ssa_partition): Pass true as really_expand to
16109 add_stack_var.
16110 (expand_one_var): Pass really_expand through to add_stack_var.
16111
16112 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16113
16114 * config/arm/iterators.md (VABAL): New int iterator.
16115 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
16116 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
16117 UNSPEC_VABAL_U values.
16118
16119 2019-06-12 Martin Liska <mliska@suse.cz>
16120
16121 * value-prof.c (stream_out_histogram_value): Only first value
16122 can't be negative.
16123
16124 2019-06-12 Jakub Jelinek <jakub@redhat.com>
16125
16126 PR c/90760
16127 * symtab.c (symtab_node::set_section): Allow being called on aliases
16128 as long as they aren't analyzed yet.
16129
16130 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
16131
16132 * config/mips/mips.c (mips_final_postscan_insn): Modify call
16133 to `mips_set_text_contents_type' to indicate whether a
16134 non-debug insn follows.
16135
16136 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
16137
16138 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
16139 enabling -mpcrel by default.
16140 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
16141 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
16142 that the test against -mcpu=future is done first. Then test if
16143 -mprefixed-addr is on for -mpcrel.
16144 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
16145
16146 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16147
16148 PR target/90811
16149 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
16150 instead of and.u%d.
16151
16152 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16153
16154 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
16155
16156 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
16157
16158 PR c++/90449 - add -Winaccessible-base option.
16159 * doc/invoke.texi (Winaccessible-base): Document.
16160
16161 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
16162
16163 PR tree-optimization/62041
16164 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
16165
16166 2019-06-11 Jason Merrill <jason@redhat.com>
16167
16168 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
16169 * tree.c (get_tree_code_name): Likewise.
16170 * print-tree.c (print_node): Only briefly print a node with an
16171 invalid code.
16172
16173 2019-06-11 Jakub Jelinek <jakub@redhat.com>
16174
16175 PR bootstrap/90819
16176 * trans-mem.c (tm_memopt_compute_available): Add assertion
16177 that blocks is not empty. Formatting fix.
16178
16179 2019-06-11 Martin Liska <mliska@suse.cz>
16180
16181 PR c++/87847
16182 * hash-table.h: Extend create_gcc, add one parameter
16183 that is passed into hash_table::hash_table.
16184
16185 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
16186
16187 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
16188 New prototype.
16189 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16190 Emit clobber also for non-sse operations.
16191 (ix86_split_fp_absneg_operator): New function.
16192 * config/i386/i386.md (SSEMODEF): New mode iterator.
16193 (ssevecmodef): New mode attribute.
16194 (<code>tf2): Use absneg code iterator.
16195 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
16196 Add three-operand AVX alternatives.
16197 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
16198 Use absneg code iterator and X87MODEF mode iterator.
16199 (absneg fp_reg non-sse splitter): Call absneg code iterator
16200 and X87MODEF mode iterator.
16201 (absneg general_reg non-sse splitter): Use absneg code iterator
16202 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
16203 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
16204 code iterator. Add three-operand AVX alternative.
16205 (absneg sse_reg splitter): Use absneg code iterator
16206 and SSEMODEF mode iterator. Handle AVX operands.
16207 (absneg fp_reg splitter): Use absneg code iterator
16208 and MODEF mode iterator.
16209 (absneg general_reg splitter): Merge splitters using MODEF mode
16210 iterator. Use absneg code iterator. Call
16211 ix86_split_fp_absneg_operator.
16212 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
16213 Do not enable for non-sse modes before reload.
16214 (CSGNMODE): Remove.
16215 (CSGNVMODE): Ditto.
16216 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
16217 ssevecmodef mode attribute instaed of CSGNVMODE.
16218 (copysign<mode>3_const): Ditto.
16219 (copysign<mode>3_var): Ditto.
16220 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
16221 Use absneg code iterator. Simplify code using std::swap.
16222 * config/i386/predicates.md (absneg_operator): Remove.
16223
16224 2019-06-10 Martin Sebor <msebor@redhat.com>
16225
16226 * gimple-fold.c (get_range_strlen): Update comment that didn't
16227 make it into r267503 or related commits.
16228
16229 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
16230
16231 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
16232 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
16233
16234 2019-06-10 Jakub Jelinek <jakub@redhat.com>
16235
16236 * tree.def (OMP_SCAN): New tree code.
16237 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
16238 OMP_CLAUSE_EXCLUSIVE.
16239 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
16240 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
16241 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
16242 OMP_CLAUSE_{IN,EX}CLUSIVE.
16243 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16244 * tree-nested.c (convert_nonlocal_reference_stmt,
16245 convert_local_reference_stmt, convert_gimple_call): Handle
16246 GIMPLE_OMP_SCAN.
16247 * tree-pretty-print.c (dump_omp_clause): Handle
16248 OMP_CLAUSE_{IN,EX}CLUSIVE.
16249 (dump_generic_node): Handle OMP_SCAN.
16250 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
16251 * gimple.h (gomp_scan): New type.
16252 (is_a_helper <gomp_scan *>::test,
16253 is_a_helper <const gomp_scan *>::test): New templates.
16254 (gimple_build_omp_scan): Declare.
16255 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
16256 gimple_omp_scan_set_clauses): New inline functions.
16257 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
16258 * gimple.c (gimple_build_omp_scan): New function.
16259 (gimple_copy): Handle GIMPLE_OMP_SCAN.
16260 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
16261 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
16262 GIMPLE_OMP_TASKGROUP.
16263 (dump_gimple_omp_scan): New function.
16264 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
16265 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
16266 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
16267 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
16268 (is_gimple_stmt): Handle OMP_SCAN.
16269 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
16270 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
16271 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
16272 mentioned in nested #pragma omp scan. Handle
16273 OMP_CLAUSE_{IN,EX}CLUSIVE.
16274 (gimplify_expr): Handle OMP_SCAN.
16275 * omp-low.c (check_omp_nesting_restrictions): For parent context,
16276 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
16277 simd constructs.
16278 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
16279 GIMPLE_OMP_SCAN.
16280
16281 2019-06-10 Martin Liska <mliska@suse.cz>
16282
16283 * ipa-cp.c (ignore_edge_p): New function.
16284 (build_toporder_info): Use it.
16285 * ipa-inline.c (ignore_edge_p): New function.
16286 (inline_small_functions): Use it.
16287 * ipa-pure-const.c (ignore_edge_for_nothrow):
16288 Verify opt_for_fn for caller and callee.
16289 (ignore_edge_for_pure_const): Likewise.
16290 * ipa-reference.c (ignore_edge_p): Extend to check
16291 for opt_for_fn.
16292 * ipa-utils.c (searchc): Refactor.
16293 * ipa-utils.h: Fix coding style.
16294
16295 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16296
16297 * config/arc/arc.c (arc_rtx_costs): Update costs.
16298
16299 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
16300
16301 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
16302 (arc_split_ior): Likewise.
16303 (arc_check_mov_const): Likewise.
16304 (arc_split_mov_const): Likewise.
16305 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
16306 (arc_rtx_costs): Replace check Crr with Cax constraint.
16307 (prepare_move_operands): Cleanup, remove unused code.
16308 (arc_split_ior): New function.
16309 (arc_check_ior_const): Likewise.
16310 (arc_split_mov_const): Likewise.
16311 (arc_check_mov_const): Likewise.
16312 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
16313 in define_insn_and_split pattern.
16314 (iorsi3): Likewise.
16315 (mulsi3_v2): Add new matching variant.
16316 (andsi3_i): Cleanup pattern.
16317 (rotrsi3_cnt1): Update pattern.
16318 (rotrsi3_cnt8): New pattern.
16319 (ashlsi2_cnt8): Likewise.
16320 (ashlsi2_cnt16): Likewise.
16321 * config/arc/constraints.md (C0p): Update constraint.
16322 (Crr): Remove it.
16323 (C0x): New pattern.
16324 (Cax): New pattern.
16325
16326 2019-06-10 Martin Liska <mliska@suse.cz>
16327
16328 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
16329 Update coding style.
16330 (sem_item_optimizer::dump_cong_classes):
16331 Print how many items are in a non-singular class. Improve
16332 coding style.
16333
16334 2019-06-10 Martin Liska <mliska@suse.cz>
16335
16336 * value-prof.c (dump_histogram_value): Change dump format.
16337 (gimple_mod_subtract_transform): Remove legacy comment.
16338
16339 2019-06-10 Martin Liska <mliska@suse.cz>
16340
16341 * value-prof.c (dump_histogram_value): Print histogram values
16342 only if present.
16343
16344 2019-06-10 Martin Liska <mliska@suse.cz>
16345
16346 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
16347 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
16348 * ipa-profile.c (ipa_profile_generate_summary):
16349 Use get_most_common_single_value.
16350 * tree-profile.c (gimple_init_gcov_profiler):
16351 Instrument with __gcov_one_value_profiler_v2
16352 and __gcov_indirect_call_profiler_v4.
16353 * value-prof.c (dump_histogram_value):
16354 Print all values for HIST_TYPE_SINGLE_VALUE.
16355 (stream_out_histogram_value): Update assert for
16356 N values.
16357 (stream_in_histogram_value): Set number of
16358 counters for HIST_TYPE_SINGLE_VALUE.
16359 (get_most_common_single_value): New.
16360 (gimple_divmod_fixed_value_transform):
16361 Use get_most_common_single_value.
16362 (gimple_ic_transform): Likewise.
16363 (gimple_stringops_transform): Likewise.
16364 (gimple_find_values_to_profile): Set number
16365 of counters for HIST_TYPE_SINGLE_VALUE.
16366 * value-prof.h (get_most_common_single_value): New.
16367
16368 2019-06-10 Martin Liska <mliska@suse.cz>
16369
16370 * hash-map.h: Pass default value to hash_table ctor.
16371 * hash-table.h: Add default value to call of a ctor.
16372
16373 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16374
16375 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16376 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16377
16378 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16379
16380 PR target/90751
16381 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16382 Call pa_output_function_label.
16383 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16384 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16385 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16386 to declaration.
16387 (pa_linux_output_function_prologue): Declare.
16388 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16389 (pa_output_function_label): New.
16390 (pa_output_function_prologue): Revise to use pa_output_function_label.
16391 (pa_linux_output_function_prologue): New.
16392 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16393
16394 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16395
16396 * tree-vrp.h (value_range_base::intersect): New.
16397 (value_range::intersect_helper): Move from here...
16398 (value_range_base::intersect_helper): ...to here.
16399 * tree-vrp.c (value_range::intersect_helper): Rename to...
16400 (value_range_base::intersect_helper): ...this, and rewrite to
16401 return a value instead of modifying THIS in place.
16402 Also, move equivalence handling...
16403 (value_range::intersect): ...here, while calling intersect_helper.
16404 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16405 calling intersect.
16406 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16407 Same.
16408 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16409
16410 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16411
16412 * Makefile.in (genprogerr): Add condmd.
16413 (genprog): Remove it here.
16414
16415 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16416
16417 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16418
16419 2019-06-07 Richard Biener <rguenther@suse.de>
16420
16421 PR debug/90574
16422 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16423 that appear after user labels.
16424
16425 2019-06-07 Martin Liska <mliska@suse.cz>
16426
16427 * cselib.c (cselib_init): Disable hash table
16428 sanitization.
16429 * hash-set.h: Pass new default argument to m_table.
16430 * hash-table.c: Add global variable with hash table
16431 sanitization limit.
16432 * hash-table.h (Allocator>::hash_table): Add new argument
16433 to ctor.
16434 (hashtab_chk_error): New.
16435 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16436 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16437 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16438
16439 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16440
16441 * common.opt (flto-odr-type-merging): Ignore.
16442 * invoke.texi (-flto-odr-type-merging): Remove.
16443 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16444 (can_be_vtable_hashed_p): Remove.
16445 (hash_odr_vtable): Remove.
16446 (odr_vtable_hasher::hash): Remove.
16447 (types_same_for_odr): Remove.
16448 (types_odr_comparable): Remove.
16449 (odr_vtable_hasher::equal): Remove.
16450 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16451 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16452 (get_odr_type): Do not use vtable hash.
16453 (dump_odr_type): Remove commented out code.
16454 (build_type_inheritance_graph): Do not allocate vtable hash.
16455 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16456 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16457 (odr_type_p): Likewise.
16458 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16459 test.
16460
16461 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16462
16463 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16464 immediately after same_types_for_tbaa_p returns -1 and continue
16465 looking for possible exact match; if matching types are arrays
16466 watch for partial overlaps.
16467 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16468 (indirect_refs_may_alias_p): Do type based disambiguation first;
16469 update comment.
16470
16471 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16472
16473 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16474
16475 2019-06-07 Martin Liska <mliska@suse.cz>
16476
16477 * doc/invoke.texi: Remove param.
16478 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16479 Remove.
16480 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16481 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16482 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16483 * profile.c (instrument_values): Remove
16484 HIST_TYPE_INDIR_CALL_TOPN.
16485 * tree-profile.c (init_ic_make_global_vars):
16486 Always build __gcov_indirect_call only.
16487 (gimple_init_gcov_profiler): Remove usage
16488 of PARAM_INDIR_CALL_TOPN_PROFILE.
16489 (gimple_gen_ic_profiler): Likewise.
16490 * value-prof.c (dump_histogram_value): Likewise.
16491 (stream_in_histogram_value): Likewise.
16492 (gimple_indirect_call_to_profile): Likewise.
16493 (gimple_find_values_to_profile): Likewise.
16494 * value-prof.h (enum hist_type): Likewise.
16495
16496 2019-06-07 Martin Liska <mliska@suse.cz>
16497
16498 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16499 function.
16500
16501 2019-06-07 Martin Liska <mliska@suse.cz>
16502
16503 PR tree-optimization/78902
16504 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16505 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16506 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16507 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16508 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16509 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16510 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16511 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16512 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16513 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16514 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16515 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16516 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16517 New.
16518 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16519 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16520 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16521 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16522 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16523 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16524 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16525 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16526 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16527 warn_unused_result attribute.
16528 (BUILT_IN_STRDUP): Likewise.
16529 (BUILT_IN_STRNDUP): Likewise.
16530 (BUILT_IN_ALLOCA): Likewise.
16531 (BUILT_IN_CALLOC): Likewise.
16532 (BUILT_IN_MALLOC): Likewise.
16533 (BUILT_IN_REALLOC): Likewise.
16534
16535 2019-06-06 Jim Wilson <jimw@sifive.com>
16536
16537 PR target/89955
16538 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16539 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16540 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16541
16542 2019-06-06 Martin Sebor <msebor@redhat.com>
16543
16544 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16545 (handle_builtin_malloc): Remove trailing spaces.
16546 (handle_builtin_memset): Same.
16547 (handle_builtin_memcmp): Same.
16548 (compute_string_length): Same.
16549 (determine_min_objsize): Same.
16550 (handle_builtin_string_cmp): Same.
16551 (handle_char_store): Same. Break up excessively long line.
16552
16553 2019-06-06 Martin Jambor <mjambor@suse.cz>
16554
16555 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16556 check.
16557
16558 2019-06-06 Martin Jambor <mjambor@suse.cz>
16559
16560 * tree-sra.c (struct access): New field grp_same_access_path.
16561 (dump_access): Dump it.
16562 (build_reconstructed_reference): New function.
16563 (build_ref_for_model): Use it if possible.
16564 (path_comparable_for_same_access): New function.
16565 (same_access_path_p): Likewise.
16566 (sort_and_splice_var_accesses): Set the new flag.
16567 (analyze_access_subtree): Likewise.
16568 (propagate_subaccesses_across_link): Propagate zero value of the new
16569 flag down the access tree.
16570
16571 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16572
16573 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16574 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16575 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16576 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16577 Add gfx906.
16578
16579 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16580
16581 PR tree-optimization/90332
16582 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16583 Handle VALS containing two vectors.
16584 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16585 to...
16586 (@aarch64_combinez<mode>): ... This.
16587 (*aarch64_combinez_be<mode>): Rename to...
16588 (@aarch64_combinez_be<mode>): ... This.
16589 (vec_init<mode><Vhalf>): New define_expand.
16590 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16591
16592 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16593
16594 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16595 library functions only when not optimizing for size.
16596 (ashlsi3): Likewise.
16597 (ashrhi3): Likewise.
16598 (ashrsi3): Likewise.
16599 (lshrhi3): Likewise.
16600 (lshrsi3): Likewise.
16601
16602 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16603
16604 PR rtl-optimization/88751
16605 * ira.c (ira): Use the number of the actually referenced registers
16606 when calculating the threshold.
16607
16608 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16609
16610 * configure: Regenerate.
16611
16612 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16613
16614 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16615 register if it is in memory, so the shift can be emulated with a rotate
16616 instruction.
16617 (ashrhi3): Likewise.
16618 (lshrhi3): Likewise.
16619
16620 2019-06-06 Martin Liska <mliska@suse.cz>
16621
16622 PR tree-optimization/87954
16623 * match.pd: Simplify mult where both arguments are 0 or 1.
16624
16625 2019-06-06 Richard Biener <rguenther@suse.de>
16626
16627 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16628 put equivalences on UNDEFINED ranges.
16629 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16630 Make sure to drop defs of stmts added during simplification
16631 to VARYING.
16632
16633 2019-06-06 Richard Biener <rguenther@suse.de>
16634
16635 * tree-ssa-structalias.c: Include tree-cfg.h.
16636 (make_heapvar): Do not make heap vars artificial.
16637 (find_func_aliases_for_builtin_call): Handle stack allocation
16638 functions.
16639 (find_func_aliases): Delay processing of simple enough returns
16640 in non-IPA mode.
16641 (set_uids_in_ptset): Adjust.
16642 (find_what_var_points_to): Likewise.
16643 (solve_constraints): Do not dump points-to sets here.
16644 (compute_points_to_sets): Post-process return statements,
16645 amending the escaped solution. Dump points-to sets afterwards.
16646 (ipa_pta_execute): Dump points-to sets.
16647
16648 2019-06-06 Martin Liska <mliska@suse.cz>
16649
16650 PR web/87933
16651 * doc/install.texi: Fix HTML headers and
16652 titles for 'Installing GCC' pages.
16653
16654 2019-06-06 Martin Liska <mliska@suse.cz>
16655
16656 * ipa-icf-gimple.h (dump_message_1): Remove.
16657 (dump_message): Likewise.
16658 (return_false_with_message_1): Print also file.
16659 (return_false_with_msg): Likewise.
16660 (return_with_result): Likewise.
16661 (return_with_debug): Likewise.
16662 * ipa-icf.c (sem_function::equals_private): Remove call
16663 to dump_message.
16664
16665 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16666
16667 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16668 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16669 memory operand for it.
16670 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16671
16672 2019-06-05 Martin Sebor <msebor@redhat.com>
16673
16674 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16675 Adjust quoting and hyphenation.
16676 * convert.c (convert_to_real_1): Same.
16677 * gcc.c (driver_wrong_lang_callback): Same.
16678 (driver::handle_unrecognized_options): Same.
16679 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16680 * opts-common.c (cmdline_handle_error): Same.
16681 (read_cmdline_option): Same.
16682 * opts-global.c (complain_wrong_lang): Same.
16683 (print_ignored_options): Same.
16684 (handle_common_deferred_options): Same.
16685 * pretty-print.h: Same.
16686 * print-rtl.c (debug_bb_n_slim): Same.
16687 * sched-rgn.c (make_pass_sched_fusion): Same.
16688 * tree-cfg.c (verify_gimple_assign_unary): Same.
16689 (verify_gimple_label): Same.
16690 * tree-ssa-operands.c (verify_ssa_operands): Same.
16691 * varasm.c (do_assemble_alias): Same.
16692 (assemble_alias): Same.
16693
16694 2019-06-05 Richard Henderson <rth@twiddle.net>
16695
16696 * config/alpha/alpha.c (direct_return): Move down after
16697 struct machine_function definition; use saved frame_size;
16698 return bool.
16699 (struct machine_function): Add sa_mask, sa_size, frame_size.
16700 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16701 (alpha_compute_frame_layout): ... new function.
16702 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16703 (alpha_initial_elimination_offset): Use saved sa_size.
16704 (alpha_vms_initial_elimination_offset): Likewise.
16705 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16706 (alpha_expand_prologue): Use saved frame data. Merge integer
16707 and fp register save loops.
16708 (alpha_expand_epilogue): Likewise.
16709 (alpha_start_function): Use saved frame data.
16710 * config/alpha/alpha-protos.h (direct_return): Update.
16711 (alpha_sa_size): Remove.
16712
16713 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16714
16715 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16716 multiplication by a power-of-two value.
16717 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16718 and turn the modulo operation into a masking operation.
16719
16720 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16721
16722 PR debug/90733
16723 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16724 with VOIDmode inner operands.
16725
16726 2019-06-05 Richard Biener <rguenther@suse.de>
16727
16728 PR middle-end/90726
16729 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16730 turn an expression graph into a tree.
16731
16732 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16733
16734 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16735 member.
16736 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16737 treat it like explicit monotonic schedule modifier.
16738 (expand_omp_for): Initialize has_lastprivate_conditional.
16739 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16740 schedule modifier.
16741
16742 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16743 references, lookup in in hash map MEM_REF operand instead of the
16744 MEM_REF itself.
16745 (lower_omp_1): When looking for lastprivate conditional assignments,
16746 handle MEM_REFs with REFERENCE_TYPE operands.
16747
16748 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16749 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16750 and references a VLA. Handle references to non-VLAs if is_simd
16751 all privatization clauses like reductions.
16752 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16753 If omp_is_reference, use always omp simd arrays and set
16754 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16755 fails, emit reference initialization.
16756
16757 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16758
16759 PR target/89803
16760 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16761 _mm_mask_fpclass_sd_mask): New intrinsics.
16762 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16763 * config/i386/i386-builtin.def
16764 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16765 New builtins.
16766 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16767 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16768 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16769 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16770 case QI_FTYPE_V2SF_INT): Ditto.
16771 * config/i386/sse.md
16772 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16773 Extended to insnstructions with mask operands.
16774
16775 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16776
16777 * config/rs6000/constraints.md (define_register_constraint "wp"):
16778 Delete.
16779 (define_register_constraint "wq"): Delete.
16780 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16781 (rs6000_init_hard_regno_mode_ok): Adjust.
16782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16783 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16784 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16785 (define_mode_attr VSa): Delete.
16786 (define_mode_attr VSisa): New.
16787 (rest of file): Adjust.
16788 * doc/md.texi (Machine Constraints): Adjust.
16789
16790 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16791
16792 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16793 (define_attr "enabled"): Handle those new isa values.
16794
16795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16796
16797 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16798 (define_mode_attr VSr5): Delete.
16799 (define_mode_attr VStype_sqrt): Delete.
16800 (define_mode_iterator VSX_SPDP): Delete.
16801 (define_mode_attr VS_spdp_res): Delete.
16802 (define_mode_attr VS_spdp_insn): Delete.
16803 (define_mode_attr VS_spdp_type): Delete.
16804 (*vsx_sqrt<mode>2): Adjust.
16805 (vsx_<VS_spdp_insn>): Delete, split to...
16806 (vsx_xscvdpsp): ... this. New. And...
16807 (vsx_xvcvspdp): ... this. New. And...
16808 (vsx_xvcvdpsp): ... this. New.
16809
16810 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16811
16812 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16813 and V2DF.
16814 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16815 (rest of file): Adjust.
16816
16817 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16818
16819 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16820 (vsx_extract_<mode>_var): Ditto.
16821
16822 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16823
16824 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16825 with just "wa".
16826
16827 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16828
16829 * config/rs6000/constraints.md (define_register_constraint "ww"):
16830 Delete.
16831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16832 (rs6000_init_hard_regno_mode_ok): Adjust.
16833 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16834 RS6000_CONSTRAINT_ww.
16835 * config/rs6000/rs6000.md: Adjust.
16836 * config/rs6000/vsx.md: Adjust.
16837 * doc/md.texi (Machine Constraints): Adjust.
16838
16839 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16840
16841 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16842 (define_mode_attr sd): New.
16843 (define_mode_attr s): New.
16844 (define_mode_attr Ftrad): Delete.
16845 (define_mode_attr Fvsx): Delete.
16846 (define_mode_attr Fs): Delete.
16847 (rest of file): Use the new mode attributes.
16848 * config.rs6000/vsx.md: Use the new mode attributes.
16849
16850 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16851
16852 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16853 with just "wa".
16854
16855 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16856
16857 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16858 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16859 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16860
16861 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16862
16863 PR target/78263
16864 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16865 C++ with strict ANSI requirements.
16866
16867 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16868
16869 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16870 computations when step is 1.
16871
16872 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16873
16874 * config/rs6000/constraints.md (define_register_constraint "wf"):
16875 Delete.
16876 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16877 (rs6000_init_hard_regno_mode_ok): Adjust.
16878 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16879 RS6000_CONSTRAINT_wf.
16880 * config/rs6000/rs6000.md: Adjust.
16881 * config/rs6000/vsx.md: Adjust.
16882 * doc/md.texi (Machine Constraints): Adjust.
16883
16884 2019-06-04 Andrew Pinski <apinski@marvell.com>
16885
16886 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16887 Fix ILP32 value.
16888
16889 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16890
16891 * config/rs6000/constraints.md (define_register_constraint "wd"):
16892 Delete.
16893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16894 (rs6000_init_hard_regno_mode_ok): Adjust.
16895 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16896 RS6000_CONSTRAINT_wd.
16897 * config/rs6000/rs6000.md: Adjust.
16898 * config/rs6000/vsx.md: Adjust.
16899 * doc/md.texi (Machine Constraints): Adjust.
16900
16901 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16902
16903 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16904 (rest of file): Adjust.
16905
16906 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16907
16908 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16909 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16910 (vsx_splat_<mode>_reg): Adjust.
16911
16912 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16913
16914 * config/rs6000/constraints.md (define_register_constraint "ws"):
16915 Delete.
16916 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16917 (rs6000_init_hard_regno_mode_ok): Adjust.
16918 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16919 RS6000_CONSTRAINT_ws.
16920 * config/rs6000/rs6000.md: Adjust.
16921 * config/rs6000/vsx.md: Adjust.
16922 * doc/md.texi (Machine Constraints): Adjust.
16923
16924 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16925
16926 * config/rs6000/constraints.md (define_register_constraint "wv"):
16927 Delete.
16928 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16929 (rs6000_init_hard_regno_mode_ok): Adjust.
16930 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16931 RS6000_CONSTRAINT_wv.
16932 * config/rs6000/rs6000.md: Adjust.
16933 * config/rs6000/vsx.md: Adjust.
16934 * doc/md.texi (Machine Constraints): Adjust.
16935
16936 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16937
16938 * config/rs6000/constraints.md (define_register_constraint "wi"):
16939 Delete.
16940 (define_register_constraint "wt"): Delete.
16941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16942 (rs6000_init_hard_regno_mode_ok): Adjust.
16943 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16944 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16945 * config/rs6000/rs6000.md: Adjust.
16946 * config/rs6000/vsx.md: Adjust.
16947 * doc/md.texi (Machine Constraints): Adjust.
16948
16949 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16950
16951 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16952 const.
16953 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16954 default_elf_asm_output_external.
16955
16956 2019-06-04 Martin Liska <mliska@suse.cz>
16957
16958 * ipa-icf.c (INCLUDE_LIST): Remove.
16959 (sem_item_optimizer::execute): Remove call to init_wpa.
16960 * ipa-icf.h (init_wpa): Remove.
16961
16962 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16963
16964 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16965 conditional on combined for simd.
16966 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16967 member.
16968 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16969 constructs, don't remove lastprivate_conditional_map, but instead set
16970 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16971 to parent construct temporaries.
16972 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16973 like !ctx->lastprivate_conditional_map.
16974 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16975 use up->outer context instead of up.
16976 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16977 gimple_omp_for_combined_p.
16978 (expand_omp_for_static_nochunk): Likewise.
16979 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16980 probably moved over into expand_omp_for_generic rather than being copied
16981 there.
16982
16983 2019-06-04 Martin Liska <mliska@suse.cz>
16984
16985 * value-prof.c (dump_histogram_value): Fix typo.
16986 (gimple_mod_subtract_transform): Likewise.
16987
16988 2019-06-04 Richard Biener <rguenther@suse.de>
16989
16990 PR middle-end/90726
16991 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16992 (tree_contains_chrecs): Likewise.
16993 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16994 exponential behaivor from ...
16995 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16996 ... here.
16997 (expression_expensive_p): Avoid exponential behavior and compute
16998 expanded size, rejecting any expansion.
16999 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
17000 (idx_contains_abnormal_ssa_name_p): Likewise.
17001 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
17002 (contains_abnormal_ssa_name_p): Simplify and use
17003 walk_tree_without_duplicates.
17004
17005 2019-06-04 Richard Biener <rguenther@suse.de>
17006
17007 PR tree-optimization/90738
17008 Revert
17009 2019-06-03 Richard Biener <rguenther@suse.de>
17010
17011 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17012 full reference tree and record in ref->ref.
17013 (vn_reference_lookup_3): Pass in original ref to
17014 ao_ref_init_from_vn_reference.
17015 (vn_reference_lookup): Likewise.
17016 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17017 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17018 Handle non-decl bases in the original reference.
17019
17020 2019-06-04 Martin Liska <mliska@suse.cz>
17021
17022 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
17023 number of references.
17024 (sem_item_optimizer::do_congruence_step):
17025 (sem_item_optimizer::worklist_push): Dump how references
17026 a class has.
17027 (sem_item_optimizer::worklist_pop): Use heap.
17028 (sem_item_optimizer::process_cong_reduction): Likewise.
17029 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
17030
17031 2019-06-04 Martin Liska <mliska@suse.cz>
17032
17033 * ipa-icf.h (struct sem_usage_pair_hash): New.
17034 (sem_usage_pair_hash::hash): Likewise.
17035 (sem_usage_pair_hash::equal): Likewise.
17036 (struct sem_usage_hash): Likewise.
17037 * ipa-icf.c (sem_item::sem_item): Initialize
17038 referenced_by_count.
17039 (sem_item::add_reference): Register a reference
17040 in ref_map and not in target->usages.
17041 (sem_item::setup): Remove initialization of
17042 dead vectors.
17043 (sem_item::~sem_item): Remove usage of dead vectors.
17044 (sem_item::dump): Remove dump of references.
17045 (sem_item_optimizer::sem_item_optimizer): Initialize
17046 m_references.
17047 (sem_item_optimizer::read_section): Remove useless
17048 dump.
17049 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
17050 (sem_item_optimizer::build_graph): Pass m_references
17051 to ::add_reference.
17052 (sem_item_optimizer::verify_classes): Remove usage of dead
17053 vectors.
17054 (sem_item_optimizer::traverse_congruence_split): Return true
17055 when a class is split.
17056 (sem_item_optimizer::do_congruence_step_for_index): Use
17057 hash_map for look up of (sem_item *, index). That brings
17058 significant speed up.
17059 (sem_item_optimizer::do_congruence_step): Return true
17060 when a split is done.
17061 (congruence_class::is_class_used): Use referenced_by_count.
17062
17063 2019-06-04 Alan Modra <amodra@gmail.com>
17064
17065 PR target/90689
17066 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
17067 error.
17068
17069 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17070
17071 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
17072 * config/rs6000/rs6000.c (direct_move_p): Adjust.
17073 (rs6000_secondary_reload_simple_move): Adjust.
17074 (rs6000_opt_masks): Neuter the "mfpgpr" option.
17075 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
17076 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
17077 comment.
17078 (power6x): Adjust.
17079 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
17080 (floatunssi<mode>2_lfiwzx): Adjust.
17081 (fix_trunc<mode>si2_stfiwx): Adjust.
17082 (fixuns_trunc<mode>si2_stfiwx): Adjust.
17083 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
17084 (mfpgpr): Mark as deprecated.
17085 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
17086 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
17087 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
17088
17089 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17090
17091 * config/rs6000/constraints.md (define_register_constraint "wg"):
17092 Delete.
17093 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17094 RS6000_CONSTRAINT_wg.
17095 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17096 (rs6000_init_hard_regno_mode_ok): Adjust.
17097 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
17098 Delete "wg" alternatives.
17099 * doc/md.texi (Machine Constraints): Adjust.
17100
17101 2019-06-03 Alan Modra <amodra@gmail.com>
17102
17103 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
17104 (get_uncond_jump_length): Assert length less than INT_MAX and
17105 non-negative.
17106
17107 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17108
17109 PR middle-end/64242
17110 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
17111 block.
17112 (expand_builtin_nonlocal_goto): Likewise.
17113
17114 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17115
17116 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
17117 (aarch64_asm_output_external): Declare.
17118 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
17119 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
17120 (aarch64_asm_output_alias): New.
17121 (aarch64_asm_output_external): New.
17122 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
17123 (ASM_OUTPUT_EXTERNAL): Define.
17124
17125 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
17126 * tree-vrp.h (value_range_base::nonzero_p): New.
17127 (value_range_base::set_nonnull): Rename to...
17128 (value_range_base::set_nonzero): ...this.
17129 (value_range_base::set_null): Rename to...
17130 (value_range_base::set_zero): ...this.
17131 (value_range::set_nonnull): Remove.
17132 (value_range::set_null): Remove.
17133 * tree-vrp.c (range_is_null): Remove.
17134 (range_is_nonnull): Remove.
17135 (extract_range_from_binary_expr): Use value_range_base::*zero_p
17136 instead of range_is_*null.
17137 (extract_range_from_unary_expr): Same.
17138 (value_range_base::set_nonnull): Rename to...
17139 (value_range_base::set_nonzero): ...this.
17140 (value_range::set_nonnull): Remove.
17141 (value_range_base::set_null): Rename to...
17142 (value_range_base::set_zero): ...this.
17143 (value_range::set_null): Remove.
17144 (extract_range_from_binary_expr): Rename set_*null uses to
17145 set_*zero.
17146 (extract_range_from_unary_expr): Same.
17147 (union_helper): Same.
17148 * vr-values.c (get_value_range): Use set_*zero instead of
17149 set_*null.
17150 (vr_values::extract_range_from_binary_expr): Same.
17151 (vr_values::extract_range_basic): Same.
17152
17153 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
17154
17155 PR driver/90684
17156 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
17157
17158 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17159
17160 * config/aarch64/iterators.md (MAX_OPP): New code attr.
17161 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
17162 Rename to...
17163 (aarch64_<su>abd<mode>_3): ... This.
17164 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
17165
17166 2019-06-03 Richard Biener <rguenther@suse.de>
17167
17168 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
17169 full reference tree and record in ref->ref.
17170 (vn_reference_lookup_3): Pass in original ref to
17171 ao_ref_init_from_vn_reference.
17172 (vn_reference_lookup): Likewise.
17173 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
17174 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17175 Handle non-decl bases in the original reference.
17176
17177 2019-06-03 Martin Liska <mliska@suse.cz>
17178
17179 * doc/generic.texi: Remove Java Trees.
17180
17181 2019-06-03 Martin Liska <mliska@suse.cz>
17182
17183 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
17184 returns 0 when operands are equal.
17185
17186 2019-06-03 Richard Biener <rguenther@suse.de>
17187
17188 PR tree-optimization/90716
17189 * tree-loop-distribution.c (destroy_loop): Process blocks in
17190 correct order.
17191
17192 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17193
17194 PR target/88837
17195 * vector-builder.h (vector_builder::count_dups): New method.
17196 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
17197 Declare prototype.
17198 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
17199 (vec_init<mode><Vel>): New pattern.
17200 * config/aarch64/aarch64.c (emit_insr): New function.
17201 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
17202 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
17203 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
17204 (aarch64_sve_expand_vector_init): Define two overloaded functions.
17205
17206 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17207
17208 PR tree-optimization/90681
17209 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
17210 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
17211 special case for SLP, but fail on non-groupped loads.
17212
17213 2019-06-03 Martin Liska <mliska@suse.cz>
17214
17215 * cfg.c (debug): Use TDF_DETAILS for debug and
17216 print edge info only once.
17217
17218 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
17219
17220 PR fortran/90539
17221 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
17222
17223 2019-06-01 Martin Sebor <msebor@redhat.com>
17224
17225 PR middle-end/90694
17226 * tree-pretty-print.c (dump_generic_node): Add parentheses.
17227
17228 2019-05-31 Jan Hubicka <jh@suse.cz>
17229
17230 * alias.c: Include ipa-utils.h.
17231 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
17232 * ipa-devirt.c (prevailing_odr_type): New.
17233 * ipa-utils.h (previaling_odr_type): Declare.
17234
17235 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
17236 Hongtao Liu <hongtao.liu@intel.com>
17237
17238 PR target/89355
17239 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
17240 NOTE_INSN_DELETED_LABEL check.
17241
17242 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
17243 Robert Suchanek <robert.suchanek@mips.com>
17244
17245 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
17246 and 3rd operands of the fmadd/fmsub/maddv builtin.
17247
17248 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17249
17250 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
17251 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17252 on OMP_SIMD if not nested inside of worksharing loop that also has
17253 lastprivate conditional clause for the same decl.
17254 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
17255 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
17256 on simd.
17257 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
17258 on simd construct.
17259 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
17260 on simd construct.
17261 (lower_lastprivate_clauses): Likewise.
17262 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
17263 calling lower_rec_input_clauses.
17264 (lower_omp_for): Likewise.
17265 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
17266 clause on simd construct.
17267 * omp-expand.c (expand_omp_simd): Initialize cond_var if
17268 OMP_CLAUSE__CONDTEMP_ clause is present.
17269
17270 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
17271 ivar and lvar.
17272
17273 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
17274
17275 PR c/43673
17276 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
17277 TEX_D32, TEX_D64 or TEX_D128.
17278
17279 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17280
17281 * match.pd (~(vec?cst1:cst2)): New transformation.
17282
17283 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
17284
17285 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
17286 ((size_t)(A /[ex] B) CMP C): New transformation.
17287
17288 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
17289
17290 * doc/md.texi: Document define_insn_and_rewrite.
17291 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
17292 * gensupport.c (queue_elem): Update comment.
17293 (replace_operands_with_dups): New function.
17294 (gen_rewrite_sequence): Likewise.
17295 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
17296 * read-rtl.c (apply_subst_iterator): Likewise.
17297 (add_condition_to_rtx, named_rtx_p): Likewise.
17298 (rtx_reader::read_rtx_operand): Likewise.
17299 * config/aarch64/aarch64-sve.md
17300 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
17301 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
17302 define_insn_and_rewrite.
17303 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
17304 Remove separate define_split.
17305
17306 2019-05-31 Jan Hubicka <jh@suse.cz>
17307
17308 * tree-ssa-alias.c (type_has_components_p): New function.
17309 (aliasing_component_refs_p): Use it.
17310
17311 2019-05-31 Martin Liska <mliska@suse.cz>
17312
17313 * gdbhooks.py: Add const_tree to TreePrinter.
17314
17315 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
17316
17317 PR debug/86964
17318 * common.opt (feliminate-unused-debug-symbols): Enable by default.
17319 * doc/invoke.texi (Debugging Options): Document new default of
17320 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
17321
17322 2019-05-31 Jakub Jelinek <jakub@redhat.com>
17323
17324 PR tree-optimization/90671
17325 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
17326 template_block used to be empty on the first call, don't use
17327 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
17328 seq with bb_seq and set it with set_bb_seq.
17329
17330 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
17331
17332 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
17333
17334 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17335 Michael Meissner <meissner@linux.ibm.com>
17336
17337 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
17338 (prefixed_mem_operand): Likewise.
17339 (non_prefixed_mem_operand): Likewise.
17340 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
17341 prototype.
17342 * config/rs6000/rs6000.c (print_operand_address): Handle
17343 PC-relative addresses.
17344 (mode_supports_prefixed_address_p): New function.
17345 (rs6000_prefixed_address): New function.
17346 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
17347 (SYMBOL_REF_PCREL_P): Likewise.
17348
17349 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17350
17351 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
17352 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
17353 (gimplify_omp_for): If worksharing loop with lastprivate conditional
17354 is nested inside of parallel region, add _condtemp_ clause to both.
17355 * tree-nested.c (convert_nonlocal_omp_clauses,
17356 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
17357 assertion failure.
17358 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
17359 member.
17360 * omp-general.c (omp_extract_for_data): Compute it.
17361 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
17362 (lower_rec_input_clauses): Likewise.
17363 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
17364 clause is already present, just add one further one after it.
17365 (lower_lastprivate_clauses): Handle cond_ptr with array type.
17366 (lower_send_shared_vars): Clear _condtemp_ vars.
17367 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
17368 or section or taskgroup.
17369 * omp-expand.c (determine_parallel_type): Disallow combining only if
17370 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
17371 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
17372 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17373 expand_omp_for_static_chunk, expand_omp_for): Use
17374 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17375 determine if a special set of API routines are needed and if condtemp
17376 needs to be initialized, while always initialize cond_var if
17377 fd->lastprivate_conditional is non-zero.
17378
17379 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17380 Michael Meissner <meissner@linux.ibm.com>
17381
17382 * config/rs6000/constraints.md (eI): New constraint.
17383 * config/rs6000/predicates.md (cint34_operand): New predicate.
17384 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17385 (SIGNED_34BIT_OFFSET_P): Likewise.
17386 * doc/md.texi (eI): Document constraint.
17387
17388 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17389
17390 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17391
17392 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17393 Michael Meissner <meissner@linux.ibm.com>
17394
17395 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17396 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17397 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17398 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17399 (OTHER_FUTURE_MASKS): Likewise.
17400 (POWERPC_MASKS): Likewise.
17401 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17402 specified without -mprefixed-addr or -mcpu=future. Error if
17403 -mprefixed-addr is specified without -mcpu=future.
17404 (rs6000_opt_masks): Add entry for prefixed-addr.
17405 * rs6000.opt (mprefixed-addr): New option.
17406
17407 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17408
17409 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17410 cfun->is_thunk check.
17411
17412 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17413
17414 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17415 to length.
17416
17417 2019-05-30 Martin Liska <mliska@suse.cz>
17418
17419 * gdbinit.in: Fix 'ptc' command. Add trt
17420 that prints TREE_TYPE($).
17421
17422 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17423 Alan Modra <amodra@gmail.com>
17424
17425 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17426 calls here...
17427 (rs6000_indirect_call_template_1): ...and here.
17428 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17429 plt16_ha, plt16_lo, mtctr indirect calls. Use
17430 rs6000_pltseq_enum.
17431 (rs6000_decl_ok_for_sibcall): New function.
17432 (rs6000_function_ok_for_sibcall): Refactor.
17433 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17434 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17435 when pcrel. Reorganize.
17436 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17437 * rs6000.h (rs6000_pltseq_enum): New enum.
17438 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17439 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17440 (*pltseq_plt16_ha): Likewise.
17441 (*pltseq_plt16_lo): Likewise.
17442 (*pltseq_mtctr): Likewise.
17443 (*pltseq_plt_pcrel): New insn.
17444 (*call_local_aix): Handle @notoc calls.
17445 (*call_value_local_aix): Likewise.
17446 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17447 (*call_value_nonlocal_aix): Likewise.
17448 (*call_indirect_pcrel): New insn.
17449 (*call_value_indirect_pcrel): Likewise.
17450
17451 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17452
17453 * config/i386/sse.md (*save_multiple<mode>): Rename from
17454 save_multiple<mode>.
17455 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17456 (*restore_multiple_and_return<mode>): Rename from
17457 restore_multiple_and_return<mode>.
17458 (*restore_multiple_leave_return<mode>): Rename from
17459 restore_multiple_leave_return<mode>.
17460
17461 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17462
17463 * config.gcc (rx-*-linux*): New target.
17464 * config/rx/elf.opt: New file.
17465 * config/rx/linux.h: Likewise.
17466 * config/rx/t-linux: Likewise.
17467 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17468 make it zero.
17469 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17470 (ASM_APP_OFF): Likewise.
17471 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17472 moved elsewhere.
17473
17474 2019-05-29 Jan Hubicka <jh@suse.cz>
17475
17476 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17477 variants are pointer equivalent.
17478
17479 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17480
17481 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17482 * config/aarch64/aarch64-sve2.md: New file.
17483 (<u>avg<mode>3_floor): New pattern.
17484 (<u>avg<mode>3_ceil): Likewise.
17485 (*<sur>h<addsub><mode>): Likewise.
17486 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17487 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17488
17489 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17490
17491 PR bootstrap/90543
17492 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17493 for var_opt_string printing. In cl_optimization_print_diff, print
17494 (null) instead of invoking undefined behavior if one of the
17495 var_opt_string pointers is NULL and use && instead of first || in the
17496 guarding condition. For var_target_other options, handle const char *
17497 target variables similarly to const char * optimize node variables.
17498
17499 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17500
17501 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17502 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17503 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17504 Add autib1716 and pacib1716 initialisation.
17505 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17506 for autib1716 and pacib1716.
17507 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17508 aarch64_post_cfi_startproc): Define.
17509 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17510 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17511 aarch64_handle_pac_ret_protection): Set default sign key to A.
17512 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17513 aarch64_expand_prologue): Add check for b-key.
17514 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17515 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17516 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17517 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17518 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17519 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17520 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17521 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17522 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17523 pauth_hint_num_a with pauth_hint_num.
17524 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17525 pauth_hint_num_a with pauth_hint_num.
17526 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17527 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17528 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17529 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17530 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17531 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17532 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17533 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17534 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17535 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17536 UNSPEC_AUTIA1716 respectively.
17537 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17538 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17539 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17540 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17541 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17542 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17543
17544 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17545
17546 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17547 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17548 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17549 explicit clause on combined parallel into implicit shared clause.
17550 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17551 and firstprivate if the decl has one too from combined parallel to
17552 the worksharing construct.
17553
17554 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17555 Michael Meissner <meissner@linux.ibm.com>
17556
17557 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17558
17559 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17560
17561 * rtl.h (LABEL_REF_P): New #define.
17562
17563 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17564
17565 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17566
17567 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17568
17569 * internal-fn.c: Marked mask_load_direct as vectorizable.
17570 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17571 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17572 combined even if masks different with allow_slp_p param.
17573 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17574 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17575 dissolve SLP-only vectorizable groups when SLP has been discarded.
17576 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17577 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17578 masks.
17579 (vect_build_slp_tree_1): Fixed comment typo.
17580 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17581 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17582 loads for SLP only.
17583 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17584 vectorizable.
17585 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17586
17587 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17588
17589 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17590 Remove obsolete use_thunk reference.
17591 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17592 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17593 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17594 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17595 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17596 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17597 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17598 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17599 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17600
17601 2019-05-28 Nathan Sidwell <nathan@acm.org>
17602
17603 * tree.h (IDENTIFIER_ANON_P): New.
17604 (anon_aggrname_format, anon_aggname_p): Don't declare.
17605 (make_anon_name): Declare.
17606 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17607 (hash_tree): Likewise.
17608 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17609 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17610 (anon_cnt, make_anon_name): New.
17611
17612 2019-05-28 Martin Liska <mliska@suse.cz>
17613
17614 PR other/90315
17615 * opts-global.c (decode_options): Print help for all
17616 help_option_arguments.
17617 * opts.c (print_help): Add new argument.
17618 (common_handle_option): Remember all values into
17619 help_option_arguments.
17620 * opts.h (print_help): Add new argument.
17621
17622 2019-05-28 Martin Liska <mliska@suse.cz>
17623
17624 PR ipa/90555
17625 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17626 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17627 (func_checker::compare_bb): Call compare_loops.
17628
17629 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17630
17631 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17632 on sections construct.
17633 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17634 construct.
17635 (lower_omp_sections): Handle lastprivate conditional.
17636 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17637 lastprivate_conditional_map.
17638 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17639
17640 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17641 critical, taskgroup and section regions when looking for a region
17642 with non-NULL lastprivate_conditional_map.
17643
17644 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17645
17646 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17647 (*ix86_gen_sub3): Ditto.
17648 (*ix86_gen_sub3_carry): Ditto.
17649 (*ix86_gen_one_cmpl2): Ditto.
17650 (*ix86_gen_andsp): Ditto.
17651 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17652 (gen_and2_insn): New static function.
17653 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17654 Use gen_add3_insn instead of ix86_gen_add3.
17655 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17656 instead of ix86_gen_add3.
17657 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17658 Use gen_sub3_insn instead of ix86_gen_sub3.
17659 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17660 instead of ix86_gen_add3.
17661 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17662 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17663 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17664 * config/i386/i386-options.c (ix86_option_override_internal):
17665 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17666 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17667
17668 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17669
17670 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17671 and DW_OP_GNU_const_index opcodes.
17672
17673 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17674
17675 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17676
17677 2019-05-27 Richard Biener <rguenther@suse.de>
17678
17679 PR tree-optimization/90637
17680 * tree-ssa-sink.c (statement_sink_location): Honor the
17681 computed sink location for single-uses.
17682
17683 2019-05-27 Richard Biener <rguenther@suse.de>
17684
17685 PR middle-end/90610
17686 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17687 a bit-insert.
17688
17689 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17690
17691 * config/i386/i386.md (@sub<mode>3_carry): Rename
17692 from sub<mode>3_carry.
17693 (@leave_<mode>): New expander.
17694 (*leave): Rename from leave.
17695 (*leave_rex64): Rename from leave_rex64.
17696 (@monitorx_<mode>): Rename from monitorx_<mode>.
17697 (@clzero_<mode>): Rename from clzero_<mode>.
17698 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17699 from sse3_monitor_<mode>.
17700 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17701 (*ix86_gen_leave): Ditto.
17702 (*ix86_gen_monitor): Ditto.
17703 (*ix86_gen_monitorx): Ditto.
17704 (*ix86_gen_clzero): Ditto.
17705 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17706 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17707 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17708 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17709 Use gen_sse3_monitor instead of ix86_gen_monitor.
17710 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17711 instead of ix86_gen_monitorx.
17712 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17713 instead of ix86_gen_clzero.
17714 * config/i386/i386-options.c (ix86_option_override_internal):
17715 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17716 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17717
17718 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17719
17720 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17721 Rename from tls_global_dynamic_64_<mode>.
17722 (@tls_local_dynamic_base_64_<mode>): Rename from
17723 tls_local_dynamic_base_64_<mode>.
17724 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17725 Remove indirect function.
17726 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17727 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17728 instead of ix86_gen_tls_global_dynamic_64.
17729 Use gen_tls_local_dynamic_base_64 instead of
17730 ix86_gen_tls_local_dynamic_base_64.
17731 * config/i386/i386-options.c (ix86_option_override_internal):
17732 Do not initialize ix86_gen_tls_global_dynamic_64 and
17733 ix86_gen_tls_local_dynamic_base_64.
17734
17735 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17736
17737 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17738 Rename from pro_epilogue_adjust_stack_<mode>_add.
17739 (@pro_epilogue_adjust_stack_sub_<mode>)
17740 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17741 (@allocate_stack_worker_probe_<mode>):
17742 Rename from allocate_stack_worker_probe_<mode>.
17743 (allocate_stack): Use gen_allocate_stack_worker_probe.
17744 (probe_stack): Use gen_probe_stack_1.
17745 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17746 (@adjust_stack_and_probe_<mode>): Rename from
17747 adjust_stack_and_probe<mode>.
17748 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17749 (stack_protect_set): Use gen_stack_protect_set_1.
17750 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17751 (stack_protect_test): Use gen_stack_protect_test_1.
17752 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17753 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17754 Remove indirect function.
17755 (*ix86_gen_adjust_stack_and_probe): Ditto.
17756 (*ix86_gen_probe_stack_range): Ditto.
17757 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17758 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17759 (ix86_adjust_stack_and_probe_stack_clash): Use
17760 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17761 (ix86_adjust_stack_and_probe): Ditto.
17762 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17763 of ix86_gen_probe_stack_range.
17764 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17765 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17766 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17767 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17768 CODE_FOR_stack_protect_test_{si,di}.
17769 * config/i386/i386-options.c (ix86_option_override_internal):
17770 Do not initialize ix86_gen_allocate_stack_worker,
17771 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17772
17773 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17774
17775 * doc/invoke.texi (Link Options): Many editorial changes around
17776 -flinker-output.
17777
17778 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17779
17780 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17781 pre-Solaris 11 referene and most Studio compiler details.
17782
17783 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17784
17785 PR target/90530
17786 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17787 DImode to SImode in floating-point registers on 64-bit target.
17788 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17789 register_operand in xmpyu patterns.
17790
17791 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17792
17793 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17794 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17795 OMP_CLAUSE__REDUCTEMP_.
17796 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17797 OMP_CLAUSE__CONDTEMP_.
17798 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17799 * tree-pretty-print.c (dump_omp_clause): Likewise.
17800 * tree-nested.c (convert_nonlocal_omp_clauses,
17801 convert_local_omp_clauses): Likewise.
17802 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17803 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17804 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17805 on OMP_FOR.
17806 (gimplify_omp_for): Warn and disable conditional modifier from
17807 lastprivate on loop iterators.
17808 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17809 member.
17810 * omp-general.c (omp_extract_for_data): Initialize it.
17811 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17812 member.
17813 (delete_omp_context): Delete it.
17814 (lower_lastprivate_conditional_clauses): New function.
17815 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17816 handle lastprivate conditional clauses.
17817 (lower_reduction_clauses): Add CLIST argument, emit it into
17818 the critical section if any.
17819 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17820 lower_reduction_clauses callers.
17821 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17822 to lower_lastprivate_clauses.
17823 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17824 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17825 clist into a critical section if not emitted there already by
17826 lower_reduction_clauses.
17827 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17828 callers.
17829 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17830 conditional variables.
17831 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17832 clause is present.
17833 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17834 expand_omp_for_static_chunk): Handle lastprivate conditional.
17835 (expand_omp_for): Handle fd.lastprivate_conditional like
17836 fd.have_reductemp.
17837
17838 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17839
17840 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17841 kernel does not exit cleanly.
17842 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17843
17844 2019-05-24 Jason Merrill <jason@redhat.com>
17845
17846 Revert:
17847 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17848
17849 2019-05-24 Richard Biener <rguenther@suse.de>
17850
17851 PR testsuite/90607
17852 * tree-loop-distribution.c (struct partition): Add location
17853 member.
17854 (partition_alloc): Initialize all fields.
17855 (generate_memset_builtin): Use the location recorded in the
17856 partition for the generated call.
17857 (generate_memcpy_builtin): Likewise.
17858 (classify_partition): Record the location of a single store
17859 as location for the partition.
17860
17861 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17862
17863 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17864 for lo-part.
17865
17866 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17867
17868 PR target/90588
17869 * common/config/aarch64/aarch64-common.c
17870 (aarch64_rewrite_selected_cpu): Change local temporary variable
17871 type from unsigned long to uint64_t.
17872 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17873 aarch64_get_extension_string_for_isa_flags): Change declaration to
17874 match new definition by replacing unsigned long with uint64_t.
17875
17876 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17877
17878 PR target/90568
17879 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17880 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17881 Handle stack_protect_test_<mode> codegen similarly to corresponding
17882 sub instruction.
17883
17884 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17885
17886 * config/i386/darwin.h: Reject -mfentry*.
17887 * doc/sourcebuild.texi: Document mfentry target support.
17888
17889 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17890
17891 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17892 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17893 false for PC-relative functions.
17894 (rs6000_output_function_prologue): Change called function name to
17895 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17896 name,1" for PC-relative functions.
17897 (rs6000_elf_declare_function_name): Change called function name to
17898 rs6000_global_entry_point_prologue_needed_p.
17899
17900 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17901
17902 PR target/90552
17903 * config/i386/i386.c (gen_rtx_cost):
17904 Use ix86_tune_cost instead of ix86_cost.
17905
17906 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17907 Michael Meissner <meissner@linux.ibm.com>
17908 Segher Boessenkool <segher@kernel.crashing.org>
17909
17910 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17911 OPTION_MASK_PCREL.
17912 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17913 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17914 (rs6000_fndecl_pcrel_p): Likewise.
17915 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17916 error if -mpcrel is requested without -mcpu=future.
17917 (rs6000_opt_masks): Add entry for pcrel.
17918 (rs6000_fndecl_pcrel_p): New function.
17919 (rs6000_pcrel_p): Likewise.
17920 * config/rs6000/rs6000.opt (mpcrel): New option.
17921 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17922
17923 2019-05-23 Jan Hubicka <jh@suse.cz>
17924 Martin Liska <mliska@suse.cz>
17925
17926 PR tree-optimization/90576
17927 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17928 poly_int_tree_p.
17929 (aliasing_component_refs_p): Fix three way size compare conditional;
17930 give up earlier in case we can not decide on equivalence.
17931
17932 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17933 Michael Meissner <meissner@linux.ibm.com>
17934 Segher Boessenkool <segher@kernel.crashing.org>
17935
17936 * config.gcc: Add future cpu.
17937 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17938 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17939 #define.
17940 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17941 (RS6000_CPU): New instantiation for future cpu.
17942 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17943 PROCESSOR_FUTURE.
17944 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17945 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17946 * config/rs6000/rs6000-tables.opt: Regenerate.
17947 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17948 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17949 (rs6000_machine_from_flags): Handle future cpu.
17950 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17951 PROCESSOR_POWER9 for now.
17952 (rs6000_adjust_cost): Likewise.
17953 (rs6000_issue_rate): Likewise.
17954 (rs6000_register_move_cost): Likewise.
17955 (rs6000_opt_masks): Add entry for future.
17956 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17957 (MASK_FUTURE): New #define.
17958 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17959 * config/rs6000/rs6000.opt (mfuture): New target option.
17960 * doc/invoke.texi (mcpu): Add future cpu.
17961
17962 2019-05-23 Martin Liska <mliska@suse.cz>
17963
17964 PR c++/90587
17965 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17966 operation points to a temporary (pointed via tree_to_wide_ref)
17967 that is out of scope after the &.
17968
17969 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17970
17971 PR c++/90592
17972 * doc/extend.texi (Function Names): Add missing word.
17973
17974 2019-05-23 Richard Biener <rguenther@suse.de>
17975
17976 PR tree-optimization/88440
17977 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17978 at -O[2s]+.
17979 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17980 generated call.
17981 (generate_memcpy_builtin): Likewise.
17982 (distribute_loop): Pass in whether to only distribute patterns.
17983 (prepare_perfect_loop_nest): Also allow size optimization.
17984 (pass_loop_distribution::execute): When optimizing a loop
17985 nest for size allow pattern replacement.
17986
17987 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17988
17989 PR target/90568
17990 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17991 of xor.
17992
17993 2019-05-23 Martin Liska <mliska@suse.cz>
17994
17995 PR sanitizer/90570
17996 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17997 expression similarly to gimplify_decl_expr.
17998
17999 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18000
18001 * cse.c (cse_dump_path): s/dump_file/f.
18002
18003 2019-05-22 David Malcolm <dmalcolm@redhat.com>
18004
18005 PR c++/90462
18006 * diagnostic-format-json.cc: Include "selftest.h".
18007 (json_from_expanded_location): Only add "file" key for non-NULL
18008 file strings.
18009 (json_from_location_range): Don't add "start" and "finish"
18010 children if they are UNKNOWN_LOCATION.
18011 (selftest::test_unknown_location): New selftest.
18012 (selftest::test_bad_endpoints): New selftest.
18013 (selftest::diagnostic_format_json_cc_tests): New function.
18014 * json.cc (json::object::get): New function.
18015 (selftest::test_object_get): New selftest.
18016 (selftest::json_cc_tests): Call it.
18017 * json.h (json::object::get): New decl.
18018 * selftest-run-tests.c (selftest::run_tests): Call
18019 selftest::diagnostic_format_json_cc_tests.
18020 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
18021 decl.
18022
18023 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
18024 Andrew Stubbs <amd@codesourcery.com>
18025
18026 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
18027 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
18028 (kernel): Rename to...
18029 (main_kernel): ... this.
18030 (load_image): Load _init_array and _fini_array kernels.
18031 (run): Add argument for kernel to run.
18032 (main): Run init_array_kernel before main_kernel, and
18033 fini_array_kernel after.
18034 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
18035 amdgpu_hsa_kernel attribute on functions.
18036 (gcn_disable_constructors): Delete.
18037 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
18038 * config/gcn/crt0.c (size_t): Define.
18039 (_init_array, _fini_array): New.
18040 (__preinit_array_start, __preinit_array_end,
18041 __init_array_start, __init_array_end,
18042 __fini_array_start, __fini_array_end): Declare weak references.
18043
18044 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
18045
18046 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
18047
18048 2019-05-22 Jason Merrill <jason@redhat.com>
18049
18050 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
18051
18052 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
18053
18054 PR target/88483
18055 * config/i386/i386-options.c (ix86_init_machine_status): Set
18056 stack_frame_required to true.
18057 * config/i386/i386.c (ix86_get_frame_size): New function.
18058 (ix86_frame_pointer_required): Replace get_frame_size with
18059 ix86_get_frame_size.
18060 (ix86_compute_frame_layout): Likewise.
18061 (ix86_find_max_used_stack_alignment): Changed to void. Set
18062 stack_frame_required.
18063 (ix86_finalize_stack_frame_flags): Always call
18064 ix86_find_max_used_stack_alignment. Replace get_frame_size with
18065 ix86_get_frame_size.
18066 * config/i386/i386.h (machine_function): Add stack_frame_required.
18067
18068 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
18069
18070 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
18071
18072 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
18073
18074 * common/config/aarch64/aarch64-common.c
18075 (struct aarch64_option_extension, struct processor_name_to_arch,
18076 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
18077 aarch64_contains_opt,
18078 aarch64_get_extension_string_for_isa_flags): Change type of
18079 variables storing flags to uint64_t.
18080 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
18081 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
18082 * config/aarch64/aarch64.c (struct processor,
18083 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
18084 aarch64_validate_march, aarch64_override_options,
18085 aarch64_option_print, aarch64_handle_attr_isa_flags,
18086 aarch64_declare_function_name, aarch64_start_file): Make flag
18087 variables uint64_t.
18088 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
18089 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
18090 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
18091 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
18092 * config/aarch64/driver-aarch64.c
18093 (struct aarch64_arch_extension, struct aarch64_core_data,
18094 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
18095 flag variables uint64_t.
18096 * doc/invoke.texi: Add documentation for new arguments.
18097
18098 2019-05-22 Richard Biener <rguenther@suse.de>
18099
18100 * alias.c (ao_ref_from_mem): Move stack-slot sharing
18101 rewrite ...
18102 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
18103
18104 2019-05-22 Martin Liska <mliska@suse.cz>
18105
18106 PR lto/90500
18107 * doc/extend.texi: Document the change.
18108
18109 2019-05-22 Richard Biener <rguenther@suse.de>
18110
18111 PR tree-optimization/90450
18112 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
18113 (mem_ref_hasher::equal): Check it.
18114 (mem_ref_alloc): Initialize it.
18115 (gather_mem_refs_stmt): Set it.
18116
18117 2019-05-22 Richard Biener <rguenther@suse.de>
18118
18119 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
18120 Add ABS_EXPR.
18121 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
18122 as ABSU_EXPR.
18123
18124 2019-05-22 Alan Modra <amodra@gmail.com>
18125
18126 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
18127 (ASM_CPU_SPEC): Conditionally add -many.
18128 * config/rs6000/rs6000.c (rs6000_machine): New static var.
18129 (rs6000_machine_from_flags, emit_asm_machine): New functions..
18130 (rs6000_file_start): ..extracted from here, and modified to
18131 test all ISA bits.
18132 (rs6000_output_function_prologue): Emit .machine as necessary.
18133
18134 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
18135
18136 PR middle-end/90553
18137 * ira-lives.c (process_bb_node_lives): Consider defs
18138 for a call insn to be die before the call, not after.
18139
18140 * function.c (assign_parm_setup_block): Raise alignment of
18141 stacked parameter only for STRICT_ALIGNMENT targets.
18142
18143 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18144
18145 * config/rs6000/constraints.md (define_register_constraint "wz"):
18146 Delete.
18147 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18148 RS6000_CONSTRAINT_wz.
18149 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18150 (rs6000_init_hard_regno_mode_ok): Adjust.
18151 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
18152 * doc/md.texi (Machine Constraints): Adjust.
18153
18154 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18155
18156 * config/rs6000/constraints.md (define_register_constraint "wl"):
18157 Delete.
18158 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18159 RS6000_CONSTRAINT_wl.
18160 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18161 (rs6000_init_hard_regno_mode_ok): Adjust.
18162 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
18163 * doc/md.texi (Machine Constraints): Adjust.
18164
18165 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18166
18167 * config/rs6000/constraints.md (define_register_constraint "wm"):
18168 Delete.
18169 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18170 RS6000_CONSTRAINT_wm.
18171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18172 (rs6000_init_hard_regno_mode_ok): Adjust.
18173 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
18174 * doc/md.texi (Machine Constraints): Adjust.
18175
18176 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18177
18178 * config/rs6000/constraints.md (define_register_constraint "wk"):
18179 Delete.
18180 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18181 RS6000_CONSTRAINT_wk.
18182 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18183 (rs6000_init_hard_regno_mode_ok): Adjust.
18184 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
18185 * doc/md.texi (Machine Constraints): Adjust.
18186
18187 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18188
18189 * config/rs6000/constraints.md (define_register_constraint "wj"):
18190 Delete.
18191 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18192 RS6000_CONSTRAINT_wj.
18193 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18194 (rs6000_init_hard_regno_mode_ok): Adjust.
18195 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
18196 (VS_64dm): Delete.
18197 * config/rs6000/vsx.md: Ditto.
18198 * doc/md.texi (Machine Constraints): Adjust.
18199
18200 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18201
18202 * config/rs6000/constraints.md (define_register_constraint "wh"):
18203 Delete.
18204 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18205 RS6000_CONSTRAINT_wh.
18206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18207 (rs6000_init_hard_regno_mode_ok): Adjust.
18208 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
18209 * doc/md.texi (Machine Constraints): Adjust.
18210
18211 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18212
18213 PR target/90547
18214 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18215 Avoid calling gen_lowpart with CONST operand.
18216
18217 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
18218
18219 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
18220 field template_last_to_copy.
18221 (ssa_create_duplicates): Set it, and use it. Attempt to
18222 preserve more debug stmts.
18223
18224 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18225
18226 * config/i386/sse.md (VF1_AVX2): New mode iterator.
18227 (signbit<mode>2): New expander
18228
18229 2019-05-21 James Clarke <jrtc27@jrtc27.com>
18230
18231 PR bootstrap/87338
18232 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
18233 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
18234
18235 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
18236
18237 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
18238 %ebx and %ecx bafore calling cpuid with leaf 1 or
18239 non-constant leaf argument.
18240
18241 2019-05-21 Alan Modra <amodra@gmail.com>
18242
18243 PR target/90545
18244 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
18245 power9 direct move cost.
18246
18247 2019-05-21 Richard Biener <rguenther@suse.de>
18248
18249 PR middle-end/90510
18250 * fold-const.c (fold_read_from_vector): New function.
18251 * fold-const.h (fold_read_from_vector): Declare.
18252 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
18253 single-element insert permutations. Canonicalize selector
18254 further and fix issue with last commit.
18255
18256 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18257
18258 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
18259 parameter with default value false to declaration.
18260 (split_edges_for_insertion): New inline function. Wrapper for
18261 split_critical_edges with for_edge_insertion_p = true.
18262 * tree-cfg.c (split_critical_edges): Don't split non-critical
18263 edges if for_edge_insertion_p is false. Fix whitespace.
18264 * tree-ssa-pre.c (pass_pre::execute): Call
18265 split_edges_for_insertion instead of split_critical_edges.
18266 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
18267 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
18268 (pass_data_sink_code): Update function name in the comment.
18269
18270 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
18271
18272 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
18273 around is_value_included_in that knows how to handle BIT_AND_EXPR.
18274 (is_pred_expr_subset_of): Use the new function. Handle more cases where
18275 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
18276 positives.
18277
18278 2019-05-21 Martin Liska <mliska@suse.cz>
18279
18280 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
18281 an extra newline.
18282 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
18283 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
18284 vec_lvsr.
18285 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18286 Quote a C type.
18287 (rs6000_function_arg): Likewise.
18288 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
18289 (rs6000_expand_ternop_builtin): Use interval syntax.
18290 (get_element_number): Likewise.
18291 (altivec_expand_builtin): Likewise.
18292 (rs6000_get_function_versions_dispatcher): Quote target_clones.
18293
18294 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18295
18296 PR c++/59813
18297 PR target/90418
18298 * function.h (struct function): Add calls_eh_return member.
18299 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
18300 gimplifying __builtin_eh_return call.
18301 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
18302 to cfun.
18303 (expand_call_inline): Or in src_cfun->calls_eh_return into
18304 dst_cfun->calls_eh_return.
18305 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
18306 cfun->calls_eh_return.
18307 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
18308 * lto-streamer-out.c (output_struct_function_base): Write
18309 calls_eh_return.
18310
18311 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
18312
18313 PR rtl-optimization/43147
18314 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
18315 IX86_BUILTIN_SHUFPD.
18316
18317 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18318
18319 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
18320 (refs_may_alias_p_1): ... here; update stats.
18321 (refs_may_alias_p): Do not update stats here.
18322
18323 2019-05-20 Richard Biener <rguenther@suse.de>
18324
18325 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
18326 doesn't produce pointers.
18327 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
18328 the first operand points to.
18329
18330 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
18331
18332 * tree-ssa-alias.c (compare_sizes): New function.
18333 (sompare_type_sizes): New function
18334 (aliasing_component_refs_p): Use it.
18335 (indirect_ref_may_alias_decl_p): Likewise.
18336
18337 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18338
18339 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
18340
18341 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18342
18343 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
18344 (LIBLSAN_EARLY_SPEC): Likewise.
18345 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
18346
18347 2019-05-20 Martin Liska <mliska@suse.cz>
18348
18349 * config/i386/i386.c (ix86_libc_has_fast_function):
18350 Add ATTRIBUTE_UNUSED for the argument.
18351
18352 2019-05-20 Richard Biener <rguenther@suse.de>
18353
18354 * gimple-match-head.c: Include vec-perm-indices.h.
18355 * generic-match-head.c: Likewise.
18356 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
18357 is included.
18358 * fold-const.c (fold_vec_perm): Export.
18359 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
18360 (match.pd): ...here.
18361
18362 2019-05-20 Jakub Jelinek <jakub@redhat.com>
18363
18364 * cfgloop.h (struct loop): Add simdlen member.
18365 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
18366 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
18367 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
18368 as new argument to autovectorize_vector_sizes target hook. If
18369 loop->simdlen, pick up vector size where the vectorization factor
18370 is equal to loop->simd, and if there is none, fall back to the first
18371 successful one.
18372 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18373 caller.
18374 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18375 * omp-general.c (omp_max_vf): Likewise.
18376 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18377 * tree-vect-slp.c (vect_slp_bb): Likewise.
18378 * target.def (autovectorize_vector_sizes): Add ALL argument and
18379 document it.
18380 * doc/tm.texi: Adjust documentation.
18381 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18382 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18383 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18384 bool argument.
18385 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18386 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18387 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18388 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18389 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18390 preferred vector size is not 512-bit or 256-bit, just put those
18391 unpreferred ones last.
18392
18393 2019-05-20 Martin Liska <mliska@suse.cz>
18394
18395 * targhooks.c (default_libc_has_fast_function): New function.
18396 * targhooks.h (default_libc_has_fast_function): Likewise.
18397
18398 2019-05-20 Martin Liska <mliska@suse.cz>
18399
18400 PR middle-end/90263
18401 * builtins.c (expand_builtin_memory_copy_args): When having a
18402 target with fast mempcpy implementation do now use memcpy.
18403 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18404 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18405 * doc/tm.texi: Likewise.
18406 * doc/tm.texi.in: Likewise.
18407 * target.def:
18408 * expr.c (emit_block_move_hints): Add 2 new arguments.
18409 * expr.h (emit_block_move_hints): Bail out when libcall
18410 to memcpy would be used.
18411
18412 2019-05-20 Martin Liska <mliska@suse.cz>
18413
18414 * profile-count.c: Add vertical spacing in order
18415 to separate functions.
18416 * profile-count.h: Likewise.
18417
18418 2019-05-20 Martin Liska <mliska@suse.cz>
18419
18420 * profile-count.h: Do not use full qualified
18421 names if possible.
18422 * profile-count.c (profile_count::to_frequency): Likewise.
18423
18424 2019-05-20 Martin Liska <mliska@suse.cz>
18425
18426 * profile-count.h (enum profile_quality): Use capital letters
18427 for enum value names. Use the adjusted names.
18428 * profile-count.c: Use the adjusted names.
18429
18430 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18431
18432 * config/rs6000/constraints.md (define_register_constraint "wH"):
18433 Delete.
18434 (define_register_constraint "wI"): Delete.
18435 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18436 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18437 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18438 (rs6000_init_hard_regno_mode_ok): Adjust.
18439 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18440 resp. "d", or with "wa" as appropriate, all with "p8v".
18441 * config/rs6000/vsx.md: Ditto.
18442 * doc/md.texi (Machine Constraints): Adjust.
18443
18444 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18445
18446 * config/rs6000/constraints.md (define_register_constraint "wy"):
18447 Delete.
18448 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18449 RS6000_CONSTRAINT_wy.
18450 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18451 (rs6000_init_hard_regno_mode_ok): Adjust.
18452 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18453 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18454 (define_mode_attr Fisa): New.
18455 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18456 * doc/md.texi (Machine Constraints): Adjust.
18457
18458 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18459
18460 * config/rs6000/constraints.md (define_register_constraint "wu"):
18461 Delete.
18462 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18463 RS6000_CONSTRAINT_wu.
18464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18465 (rs6000_init_hard_regno_mode_ok): Adjust.
18466 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18467 both with "p8v".
18468 (define_mode_attr Fa): Delete.
18469 * config/rs6000/vsx.md: Ditto.
18470 * doc/md.texi (Machine Constraints): Adjust.
18471
18472 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18473
18474 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18475 Delete.
18476 (define_register_constraint "wK"): Delete.
18477 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18478 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18479 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18480 (rs6000_init_hard_regno_mode_ok): Adjust.
18481 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18482 Replace "wK" constraint by "wH" with "p9v".
18483 * config/rs6000/vsx.md: Ditto.
18484 * doc/md.texi (Machine Constraints): Adjust.
18485
18486 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18487
18488 * config/rs6000/constraints.md (define_register_constraint "wb"):
18489 Delete.
18490 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18491 RS6000_CONSTRAINT_wb.
18492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18493 (rs6000_init_hard_regno_mode_ok): Adjust.
18494 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18495 * config/rs6000/vsx.md: Ditto.
18496 * doc/md.texi (Machine Constraints): Adjust.
18497
18498 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18499
18500 * config/rs6000/constraints.md (define_register_constraint "wo"):
18501 Delete.
18502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18503 RS6000_CONSTRAINT_wo.
18504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18505 (rs6000_init_hard_regno_mode_ok): Adjust.
18506 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18507 * config/rs6000/altivec.md: Ditto.
18508 * doc/md.texi (Machine Constraints): Adjust.
18509
18510 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18511
18512 * config/darwin-c.c (darwin_register_objc_includes): Do not
18513 prepend the sysroot when building gnu-runtime header search
18514 paths.
18515
18516 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18517
18518 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18519 instead of direct output of the asm.
18520
18521 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18522
18523 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18524 argument to be type bool (was int before).
18525 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18526 at first use. Use type bool for some variables. Fix a theoretical
18527 eh_return bug for svr4.
18528
18529 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18530
18531 * config/rs6000/rs6000.md (isa): New attribute.
18532 (enabled): New attribute.
18533
18534 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18535
18536 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18537 assemble_start_function and assemble_end_function.
18538
18539 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18540
18541 PR middle-end/89433
18542 * omp-general.c (oacc_verify_routine_clauses): Change formal
18543 parameters. Add checking if already marked with an OpenACC
18544 'routine' directive. Adjust all users.
18545
18546 PR middle-end/89433
18547 * omp-general.c (oacc_build_routine_dims): Move some of its
18548 processing into...
18549 (oacc_verify_routine_clauses): ... this new function.
18550 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18551
18552 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18553
18554 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18555 formating of picbase labels to match other ports.
18556
18557 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18558
18559 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18560 in the generated code.
18561
18562 2019-05-16 Martin Sebor <msebor@redhat.com>
18563
18564 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18565 identifiers, keywords, operators, and types in diagnostics. Correct
18566 quoting, spelling, and sentence capitalization issues.
18567 (expand_builtin_atomic_is_lock_free): Same.
18568 (fold_builtin_next_arg): Same.
18569 * cfgexpand.c (expand_one_var): Same.
18570 (tree_conflicts_with_clobbers_p): Same.
18571 (expand_asm_stmt): Same.
18572 (verify_loop_structure): Same.
18573 * cgraphunit.c (process_function_and_variable_attributes): Same.
18574 * collect-utils.c (collect_execute): Same.
18575 * collect2.c (maybe_run_lto_and_relink): Same.
18576 (is_lto_object_file): Same.
18577 (scan_prog_file): Same.
18578 * convert.c (convert_to_real_1): Same.
18579 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18580 * except.c (verify_eh_tree): Same.
18581 * gcc.c (execute): Same.
18582 (eval_spec_function): Same.
18583 (run_attempt): Same.
18584 (driver::set_up_specs): Same.
18585 (compare_debug_auxbase_opt_spec_function): Same.
18586 * gcov-tool.c (unlink_gcda_file): Same.
18587 (do_merge): Same.
18588 (do_rewrite): Same.
18589 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18590 * gimplify.c (gimplify_asm_expr): Same.
18591 (gimplify_adjust_omp_clauses): Same.
18592 * hsa-gen.c (gen_hsa_addr_insns): Same.
18593 (gen_hsa_insns_for_load): Same.
18594 (gen_hsa_cmp_insn_from_gimple): Same.
18595 (gen_hsa_insns_for_operation_assignment): Same.
18596 (gen_get_level): Same.
18597 (gen_hsa_alloca): Same.
18598 (omp_simple_builtin::generate): Same.
18599 (gen_hsa_atomic_for_builtin): Same.
18600 (gen_hsa_insns_for_call): Same.
18601 * input.c (dump_location_info): Same.
18602 * ipa-devirt.c (compare_virtual_tables): Same.
18603 * ira.c (ira_setup_eliminable_regset): Same.
18604 * lra-assigns.c (lra_assign): Same.
18605 * lra-constraints.c (lra_constraints): Same.
18606 * lto-streamer-in.c (lto_input_mode_table): Same.
18607 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18608 (merge_and_complain): Same.
18609 (compile_offload_image): Same.
18610 (compile_images_for_offload_targets): Same.
18611 (debug_objcopy): Same.
18612 (run_gcc): Same.
18613 (main): Same.
18614 * opts.c (print_specific_help): Same.
18615 (parse_no_sanitize_attribute): Same.
18616 (print_help): Same.
18617 (handle_param): Same.
18618 * plugin.c (add_new_plugin): Same.
18619 (parse_plugin_arg_opt): Same.
18620 (try_init_one_plugin): Same.
18621 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18622 operators, and types in diagnostics. Correct quoting and spelling
18623 issues.
18624 * read-rtl-function.c (parse_edge_flag_token): Same.
18625 (function_reader::parse_enum_value): Same.
18626 * reg-stack.c (check_asm_stack_operands): Same.
18627 * regcprop.c (validate_value_data): Same.
18628 * sched-rgn.c (make_pass_sched_fusion): Same.
18629 * stmt.c (check_unique_operand_names): Same.
18630 * targhooks.c (default_target_option_pragma_parse): Same.
18631 * tlink.c (recompile_files): Same.
18632 * toplev.c (process_options): Same.
18633 (do_compile): Same.
18634 * trans-mem.c (diagnose_tm_1): Same.
18635 (ipa_tm_scan_irr_block): Same.
18636 (ipa_tm_diagnose_transaction): Same.
18637 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18638 format a tree code name in a diagnostic.
18639 (verify_types_in_gimple_min_lval): Same.
18640 (verify_types_in_gimple_reference): Same.
18641 (verify_gimple_call): Same.
18642 (verify_gimple_assign_unary): Same.
18643 (verify_gimple_assign_binary): Same.
18644 (verify_gimple_assign_ternary): Same.
18645 (verify_gimple_assign_single): Same.
18646 (verify_gimple_switch): Same.
18647 (verify_gimple_label): Same.
18648 (verify_gimple_phi): Same.
18649 (verify_gimple_in_seq): Same.
18650 (verify_eh_throw_stmt_node): Same.
18651 (collect_subblocks): Same.
18652 (gimple_verify_flow_info): Same.
18653 (do_warn_unused_result): Same.
18654 * tree-inline.c (expand_call_inline): Same.
18655 * tree-into-ssa.c (update_ssa): Same.
18656 * tree.c (tree_int_cst_elt_check_failed): Same.
18657 (tree_vec_elt_check_failed): Same.
18658 (omp_clause_operand_check_failed): Same.
18659 (verify_type_variant): Same.
18660 (verify_type): Same.
18661 * value-prof.c (verify_histograms): Same.
18662 * varasm.c (assemble_start_function): Same.
18663
18664 2019-05-16 Martin Sebor <msebor@redhat.com>
18665
18666 * config/i386/i386-expand.c (get_element_number): Quote keywords
18667 and other internal names in diagnostics. Adjust other diagnostic
18668 formatting issues noted by -Wformat-diag.
18669 * config/i386/i386-features.c
18670 (ix86_mangle_function_version_assembler_name): Same.
18671 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18672 * config/i386/i386.c (ix86_function_type_abi): Same.
18673 (ix86_function_ms_hook_prologue): Same.
18674 (classify_argument): Same.
18675 (ix86_expand_prologue): Same.
18676 (ix86_md_asm_adjust): Same.
18677 (ix86_memmodel_check): Same.
18678
18679 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18680
18681 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18682 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18683 and fpxx modes.
18684
18685 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18686
18687 PR target/90497
18688 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18689 intrinsics without SSE/SSE2/SSSE3.
18690 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18691 check.
18692 (*mmx_uavgv8qi3): Likewise.
18693
18694 2019-05-17 Richard Biener <rguenther@suse.de>
18695
18696 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18697 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18698
18699 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18700
18701 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18702 vec_sldw insn pattern.
18703
18704 2019-05-17 Richard Biener <rguenther@suse.de>
18705
18706 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18707
18708 2019-05-17 Martin Liska <mliska@suse.cz>
18709
18710 PR driver/90496
18711 * toplev.c (output_stack_usage): With LTO and sanitizer it
18712 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18713 has no file location.
18714
18715 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18716
18717 PR c++/90484
18718 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18719 sz0 is equal to sz1, instead return false in that case.
18720
18721 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18722 has non-constant expression, force sctx.lane and use two
18723 argument IFN_GOMP_SIMD_LANE instead of single argument.
18724 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18725 two argument IFN_GOMP_SIMD_LANE without lhs.
18726 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18727 member.
18728 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18729 Define.
18730 (LOOP_REQUIRES_VERSIONING): Or in
18731 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18732 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18733 simd_if_cond.
18734 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18735 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18736 from simd if clause if needed.
18737
18738 2019-05-16 Richard Biener <rguenther@suse.de>
18739
18740 * tree-affine.c (expr_to_aff_combination): New function split
18741 out from...
18742 (tree_to_aff_combination): ... here.
18743 (aff_combination_expand): Avoid building a GENERIC tree.
18744
18745 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18746
18747 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18748 assemble_start_function and assemble_end_function calls.
18749 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18750 assemble_start_function and assemble_end_function.
18751 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18752 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18753 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18754 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18755 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18756 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18757 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18758 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18759 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18760 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18761 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18762 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18763 Likewise.
18764 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18765 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18766 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18767 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18768 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18769 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18770 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18771 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18772 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18773 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18774 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18775 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18776 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18777 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18778 Likewise.
18779 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18780 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18781 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18782
18783 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18784
18785 * tree-ssa-alias.c (alias_stats): Add
18786 aliasing_component_refs_p_may_alias and
18787 aliasing_component_refs_p_no_alias.
18788 (dump_alias_stats): Print aliasing_component_refs_p stats.
18789 (aliasing_component_refs_p): Update stats.
18790
18791 2019-05-16 Martin Liska <mliska@suse.cz>
18792
18793 PR lto/90500
18794 * multiple_target.c (expand_target_clones): Do not allow
18795 target_clones being used with a symbol that is an alias.
18796
18797 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18798
18799 PR tree-optimization/90394
18800 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18801 positives rather than ICE for cases where (code2 == NE_EXPR
18802 && code1 == BIT_AND_EXPR).
18803
18804 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18805
18806 PR fortran/90329
18807 * tree-core.h (struct tree_decl_common): Document
18808 decl_nonshareable_flag for PARM_DECLs.
18809 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18810 * calls.c (expand_call): Don't try tail call if caller
18811 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18812 passed on the stack and callee needs to pass any arguments on the
18813 stack.
18814 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18815 else if instead of series of mutually exclusive ifs. Handle
18816 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18817 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18818
18819 * lto-streamer.h (LTO_major_version): Bump to 9.
18820
18821 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18822
18823 PR tree-optimization/90106
18824 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18825 new parameter as new internal function call, also move it to new
18826 basic block.
18827 (use_internal_fn): Pass internal function call to
18828 shrink_wrap_one_built_in_call_with_conds.
18829
18830 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18831
18832 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18833 max_vf to 1.
18834 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18835 safelen_int and set loop->dont_vectorize.
18836
18837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18838
18839 PR target/89021
18840 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18841 SSE/SSE2/SSSE3.
18842 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18843 Likewise.
18844 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18845 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18846 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18847 is defined.
18848
18849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18850
18851 PR target/89021
18852 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18853 define_insn_and_split to support SSE emulation.
18854 (*vec_extractv2sf_0): Likewise.
18855 (*vec_extractv2sf_1): Likewise.
18856 (*vec_extractv2si_0): Likewise.
18857 (*vec_extractv2si_1): Likewise.
18858 (*vec_extractv2si_zext_mem): Likewise.
18859 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18860 (vec_extractv2sf_1 splitter): Likewise.
18861 (vec_extractv2sfsf): Likewise.
18862 (vec_setv2si): Likewise.
18863 (vec_extractv2si_1 splitter): Likewise.
18864 (vec_extractv2sisi): Likewise.
18865 (vec_setv4hi): Likewise.
18866 (vec_extractv4hihi): Likewise.
18867 (vec_setv8qi): Likewise.
18868 (vec_extractv8qiqi): Likewise.
18869 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18870 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18871 (vec_extractv2sisi): Likewise.
18872 (vec_extractv4hihi): Likewise.
18873 (vec_extractv8qiqi): Likewise.
18874 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18875 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18876 (vec_initv2sisi): Likewise.
18877 (vec_initv4hihi): Likewise.
18878 (vec_initv8qiqi): Likewise.
18879 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18880 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18881 (vec_setv4hi): Likewise.
18882 (vec_setv8qi): Likewise.
18883
18884 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18885
18886 PR target/89021
18887 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18888 TARGET_MMX_WITH_SSE.
18889 (MMXMODE:*mov<mode>_internal): Likewise.
18890 (MMXMODE:movmisalign<mode>): Likewise.
18891
18892 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18893
18894 PR target/89021
18895 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18896 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18897 (sse2_cvtpd2pi): Ditto.
18898 (sse2_cvttpd2pi): Ditto.
18899 (*vec_concatv2sf_sse4_1): Ditto.
18900 (*vec_concatv2sf_sse): Ditto.
18901 (*vec_concatv2si_sse4_1): Ditto.
18902 (*vec_concatv2si): Ditto.
18903 (*vec_concatv4si_0): Ditto.
18904 (*vec_concatv2di_0): Ditto.
18905
18906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18907
18908 PR target/89021
18909 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18910
18911 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18912
18913 PR target/89021
18914 * config/i386/sse.md (ssse3_palignrdi): Changed to
18915 define_insn_and_split to support SSE emulation.
18916
18917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18918
18919 PR target/89021
18920 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18921
18922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18923
18924 PR target/89021
18925 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18926 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18927 SSE emulation.
18928
18929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18930
18931 PR target/89021
18932 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18933 or TARGET_MMX_WITH_SSE.
18934 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18935
18936 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18937
18938 PR target/89021
18939 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18940
18941 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18942
18943 PR target/89021
18944 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18945 Changed to define_insn_and_split to support SSE emulation.
18946
18947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18948
18949 PR target/89021
18950 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18951 Changed to define_insn_and_split to support SSE emulation.
18952
18953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18954
18955 PR target/89021
18956 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18957 (*mmx_<emms>): This.
18958 (mmx_<emms>): New expander.
18959
18960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18961
18962 PR target/89021
18963 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18964 support.
18965 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18966
18967 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 PR target/89021
18970 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18971
18972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18973
18974 PR target/89021
18975 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18976
18977 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18978
18979 PR target/89021
18980 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18981 TARGET_MMX_WITH_SSE.
18982 (*mmx_uavgv4hi3): Add 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_uavgv8qi3): Also check TARGET_MMX
18988 and TARGET_MMX_WITH_SSE.
18989 (*mmx_uavgv8qi3): Add SSE emulation.
18990
18991 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18992
18993 PR target/89021
18994 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18995 maskmovdqu for __MMX_WITH_SSE__.
18996
18997 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18998
18999 PR target/89021
19000 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
19001 TARGET_MMX and TARGET_MMX_WITH_SSE.
19002 (*mmx_umulv4hi3_highpart): Add SSE emulation.
19003
19004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19005
19006 PR target/89021
19007 * config/i386/mmx.md (mmx_pmovmskb): Changed to
19008 define_insn_and_split to support SSE emulation.
19009
19010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19011
19012 PR target/89021
19013 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
19014 and TARGET_MMX_WITH_SSE.
19015 (mmx_<code>v8qi3): Likewise.
19016 (smaxmin:<code>v4hi3): New.
19017 (umaxmin:<code>v8qi3): Likewise.
19018 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
19019 (umaxmin:*mmx_<code>v8qi3): Likewise.
19020
19021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19022
19023 PR target/89021
19024 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
19025 TARGET_MMX_WITH_SSE.
19026 (*mmx_pinsrw): Add SSE emulation.
19027
19028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19029
19030 PR target/89021
19031 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
19032
19033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19034
19035 PR target/89021
19036 * config/i386/sse.md (sse_cvtpi2ps): Changed to
19037 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
19038 SSE emulation.
19039
19040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19041
19042 PR target/89021
19043 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
19044 (sse_cvttps2pi): Likewise.
19045
19046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19047
19048 PR target/89021
19049 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
19050 TARGET_MMX_WITH_SSE.
19051 (mmx_pshufw_1): Add SSE emulation.
19052 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
19053 TARGET_MMX_WITH_SSE to support SSE emulation.
19054
19055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19056
19057 PR target/89021
19058 * config/i386/constraints.md (Yw): New constraint.
19059 * config/i386/mmx.md (*vec_dupv2si): Changed to
19060 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
19061 support SSE emulation.
19062
19063 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19064
19065 PR target/89021
19066 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
19067 TARGET_MMX_WITH_SSE.
19068 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19069 support.
19070 (mmx_gt<mode>3): Likewise.
19071
19072 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19073
19074 PR target/89021
19075 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
19076 TARGET_MMX_WITH_SSE. Add SSE support.
19077
19078 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19079
19080 PR target/89021
19081 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
19082 TARGET_MMX_WITH_SSE.
19083 (any_logic:<code><mode>3): New.
19084 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
19085 Add SSE support.
19086
19087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19088
19089 PR target/89021
19090 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
19091 TARGET_MMX_WITH_SSE. Add SSE emulation.
19092 (mmx_<shift_insn><mode>3): Likewise.
19093 (ashr<mode>3): New.
19094 (<shift_insn><mode>3): Likewise.
19095
19096 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19097
19098 PR target/89021
19099 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
19100 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
19101
19102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19103
19104 PR target/89021
19105 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
19106 TARGET_MMX_WITH_SSE.
19107 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
19108 SSE support.
19109
19110 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19111
19112 PR target/89021
19113 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
19114 TARGET_MMX_WITH_SSE.
19115 (mulv4hi3): New.
19116 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
19117 support.
19118
19119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19120
19121 PR target/89021
19122 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
19123 (plusminus:mmx_<plusminus_insn><mode>3): Check
19124 TARGET_MMX_WITH_SSE.
19125 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
19126 (<plusminus_insn><mode>3): New.
19127 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
19128 (*mmx_<plusminus_insn><mode>3): Likewise.
19129
19130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19131
19132 PR target/89021
19133 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
19134 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
19135 prototype.
19136 * config/i386/mmx.m (mmx_punpckhbw): Changed to
19137 define_insn_and_split to support SSE emulation.
19138 (mmx_punpcklbw): Likewise.
19139 (mmx_punpckhwd): Likewise.
19140 (mmx_punpcklwd): Likewise.
19141 (mmx_punpckhdq): Likewise.
19142 (mmx_punpckldq): Likewise.
19143
19144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19145 Uros Bizjak <ubizjak@gmail.com>
19146
19147 PR target/89021
19148 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
19149 New function.
19150 (ix86_split_mmx_pack): Likewise.
19151 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
19152 New prototype.
19153 (ix86_split_mmx_pack): Likewise.
19154 * config/i386/i386.md (mmx_isa): New.
19155 (enabled): Also check mmx_isa.
19156 * config/i386/mmx.md (any_s_truncate): New code iterator.
19157 (s_trunsuffix): New code attr.
19158 (mmx_packsswb): Removed.
19159 (mmx_packssdw): Likewise.
19160 (mmx_packuswb): Likewise.
19161 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
19162 MMX packsswb/packuswb with SSE2.
19163 (mmx_packssdw): Likewise.
19164 * config/i386/predicates.md (register_mmxmem_operand): New.
19165
19166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19167
19168 PR target/89021
19169 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19170 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
19171 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
19172 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
19173 (ix86_vector_mode_supported_p): Likewise.
19174 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
19175
19176 2019-05-15 Martin Liska <mliska@suse.cz>
19177
19178 PR middle-end/90478
19179 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19180 Check for overflow.
19181
19182 2019-05-15 Richard Biener <rguenther@suse.de>
19183
19184 * tree-into-ssa.c (pass_build_ssa::execute): Run
19185 update_address_taken before going into SSA.
19186
19187 2019-05-15 Richard Biener <rguenther@suse.de>
19188
19189 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
19190 as __BIT_FIELD_REF with type with -gimple.
19191
19192 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
19193
19194 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
19195 semantically equivalent branches (left over after prior refactorings).
19196
19197 2019-05-15 Richard Biener <rguenther@suse.de>
19198
19199 PR tree-optimization/88828
19200 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
19201 bogus check.
19202
19203 2019-05-14 Richard Biener <rguenther@suse.de>
19204
19205 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
19206 as __VIEW_CONVERT with -gimple.
19207
19208 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19209
19210 PR target/82920
19211 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
19212 Darwin.
19213
19214 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19215
19216 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
19217 define_split to become a define_insn_and_split.
19218
19219 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
19220
19221 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
19222 arguments.
19223 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
19224 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
19225 (sibcall_epilogue): Adjust.
19226 (epilogue): Adjust.
19227
19228 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19229
19230 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
19231 to unsupported ones.
19232 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
19233 * config.host: Likewise.
19234 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
19235 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
19236 __svr4__]: Remove "brand" fallback.
19237 [!KSTAT_DATA_STRING]: Remove.
19238 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
19239 to *-*-solaris2*.
19240 (comdat_group): Likewise.
19241 (set_have_as_tls): Likewise.
19242 (gcc_cv_target_dl_iterate_phdr): Likewise.
19243 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
19244 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
19245 * configure: Regenerate.
19246 * doc/install.texi: Simplify Solaris target triplets.
19247 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
19248 (Specific, *-*-solaris2*): Document Solaris 10 removal.
19249 Remove Solaris 10 references.
19250 Remove obsolete Solaris bug reference.
19251 (Specific, sparc-sun-solaris2.10): Remove.
19252
19253 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
19254
19255 * config/i386/i386.md (any_div): New code iterator.
19256 (paired_mod): New code attribute.
19257 (sgnprefix): Handle DIV and UDIV RTXes.
19258 (u): Ditto.
19259 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
19260 and udivmod<mode>4 patterns using any_div code iterator.
19261 (divmod splitters): Macroize splitters using any_div code iterator.
19262 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
19263 (*udivmodsi4_pow2_zext_2): Ditto.
19264 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
19265 and *udivmod<mode>4_noext patterns using any_div code iterator.
19266 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
19267 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
19268 patterns using any_div code iterator.
19269 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
19270 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
19271 patterns using any_div code iterator.
19272 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
19273 udivmodhiqi3 patterns using any_extend code iterator.
19274
19275 2019-05-14 Richard Biener <rguenther@suse.de>
19276 H.J. Lu <hongjiu.lu@intel.com>
19277
19278 PR tree-optimization/88828
19279 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
19280 permuting in a single non-constant element not extracted
19281 from a vector.
19282
19283 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
19284
19285 * internal-fn.def (SIGNBIT): New.
19286 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
19287 defined.
19288 (signbitv4sf2): Likewise.
19289
19290 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
19291
19292 PR target/90357
19293 * config/mips/mips.c (mips_split_move): Skip forward SRC into
19294 next insn when the SRC reg is dead.
19295
19296 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
19297
19298 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
19299 (alloc_cand_and_find_basis): Ditto.
19300 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
19301 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
19302 (create_add_imm_cand, slsr_process_cast): Ditto.
19303 (slsr_process_copy, replace_mult_candidate): Ditto.
19304 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
19305 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
19306 (pass_strength_reduction::execute): Init the first NULL element.
19307
19308 2019-05-13 Nathan Sidwell <nathan@acm.org>
19309
19310 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
19311 (run_attempt): Reformat line break.
19312
19313 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
19314
19315 PR target/90418
19316 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
19317 data registers in sibcall epilogues.
19318 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19319
19320 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
19321
19322 PR target/89221
19323 * configure.ac (--enable-frame-pointer):
19324 Disable by default for cygwin and mingw.
19325 * configure: Regenerate.
19326
19327 2019-05-13 Nathan Sidwell <nathan@acm.org>
19328
19329 * dwarf2out.c (breakout_comdat_types): Move comment to correct
19330 piece of code.
19331 (const_ok_for_output_1): Balance parens around #if/#else/#endif
19332 (gen_member_die): Move abstract origin check earlier. Only VARs
19333 can be static_inline_p. Simplify splicing control flow.
19334
19335 2019-05-13 Richard Biener <rguenther@suse.de>
19336
19337 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
19338 VIEW_CONVERT_EXPR.
19339 (vect_build_slp_tree_1): Likewise.
19340
19341 2019-05-13 Richard Biener <rguenther@suse.de>
19342
19343 PR tree-optimization/90402
19344 * tree-if-conv.c (tree_if_conversion): Value number only
19345 the loop body by making the latch an exit of the region
19346 as well.
19347 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
19348 processing PHIs.
19349 (do_rpo_vn): Deal with multiple edges into the entry block
19350 that are not backedges inside the region by skipping PHIs
19351 of the entry block.
19352
19353 2019-05-13 Richard Biener <rguenther@suse.de>
19354
19355 PR tree-optimization/90316
19356 * tree-ssa-pre.c (insert_aux): Fold into ...
19357 (insert): ... this function. Use a RPO walk to reduce the
19358 number of required iterations.
19359
19360 2019-05-13 Martin Liska <mliska@suse.cz>
19361
19362 PR tree-optimization/90416
19363 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
19364 string instead of passing the second part as va_arg argument.
19365
19366 2019-05-13 Martin Liska <mliska@suse.cz>
19367
19368 PR gcov-profile/90380
19369 * gcov.c (handle_cycle): Do not support zero cycle count,
19370 it should not be possible.
19371 (path_contains_zero_cycle_arc): New function.
19372 (circuit): Ignore zero cycle arc counts.
19373
19374 2019-05-13 Martin Liska <mliska@suse.cz>
19375
19376 PR gcov-profile/90380
19377 * gcov.c (enum loop_type): Remove the enum and
19378 the operator.
19379 (handle_cycle): Assert that we should not reach
19380 a negative count.
19381 (circuit): Use loop_found instead of a tri-state loop_type.
19382 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19383 happen.
19384
19385 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19386
19387 PR target/82920
19388 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19389 (ix86_output_indirect_branch_via_reg): Use output mechanism
19390 accounting for __USER_LABEL_PREFIX__.
19391 (ix86_output_indirect_branch_via_push): Likewise.
19392 (ix86_output_function_return): Likewise.
19393 (ix86_output_indirect_function_return): Likewise.
19394
19395 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19396
19397 * doc/md.texi: Document use of code attributes in rtx patterns.
19398 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19399 * read-rtl.c (find_code): Split out search loops into...
19400 (maybe_find_code): ...this new function.
19401 (check_code_iterator): Make the error message more informative.
19402 (check_code_attribute): New function.
19403 (rtx_reader::rtx_alloc_for_name): Likewise.
19404 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19405 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19406 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19407 <max_opp> directly as an rtx code instead of via a match_operator.
19408 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19409 (<su>abd<mode>_3): Update accordingly.
19410
19411 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19412
19413 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19414 is given, print the state of the EH "save world" computation for
19415 Darwin.
19416
19417 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19418
19419 PR c++/59813
19420 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19421 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19422
19423 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19424
19425 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19426 Use pinsrd for TARGET_SSE4_1.
19427 * config/i386/sse.md (movdi_to_sse): Ditto.
19428
19429 2019-05-10 Richard Biener <rguenther@suse.de>
19430
19431 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19432 (do_rpo_vn): Initialize next_value_id.
19433
19434 2019-05-10 Martin Liska <mliska@suse.cz>
19435
19436 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19437 Fix plural form.
19438
19439 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19440
19441 PR tree-optimization/90385
19442 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19443 arguments of the exit phis.
19444
19445 PR c++/90383
19446 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19447 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19448 id->do_not_fold.
19449 (copy_tree_body_r): Likewise.
19450 (copy_fn): Set id.do_not_fold to true.
19451
19452 2019-05-10 Martin Liska <mliska@suse.cz>
19453
19454 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19455 Reapply changes from r269790.
19456
19457 2019-05-10 Martin Liska <mliska@suse.cz>
19458
19459 PR middle-end/90340
19460 * doc/invoke.texi: New params.
19461 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19462 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19463 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19464 Use it.
19465 * tree-switch-conversion.h (struct jump_table_cluster):
19466 Likewise.
19467
19468 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19469
19470 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19471
19472 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19473
19474 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19475
19476 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19477
19478 PR rtl-optimization/88879
19479 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19480
19481 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19482
19483 PR target/90405
19484 * config/arm/arm.c (callee_saved_reg_p): Move before
19485 thumb_find_work_register.
19486 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19487 thumb_find_work_register. Only call df_get_live_out once.
19488 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19489 (thumb_find_work_register): Use
19490 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19491 algorithms to locate a spare call clobbered reg.
19492
19493 2019-05-09 Martin Liska <mliska@suse.cz>
19494
19495 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19496 and MAX_EXPR in GIMPLE FE format.
19497
19498 2019-05-09 Martin Liska <mliska@suse.cz>
19499
19500 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19501 * gimple-pretty-print.c (dump_gimple_bb_header):
19502 Dump BB count.
19503 (pp_cfg_jump): Dump edge probability.
19504 * profile-count.c (profile_quality_as_string): Simplify
19505 with a static array.
19506 (parse_profile_quality): New function.
19507 (profile_count::dump): Simplify with a static array.
19508 (profile_count::from_gcov_type): Add new argument.
19509 * profile-count.h (parse_profile_quality): Likewise.
19510 * predict.h (set_hot_bb_threshold): New.
19511 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19512 New param.
19513 * predict.c (get_hot_bb_threshold): Set from the new param.
19514 (set_hot_bb_threshold): New.
19515
19516 2019-05-09 Richard Biener <rguenther@suse.de>
19517
19518 PR tree-optimization/90395
19519 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19520 rewrite vector stores that throw internally.
19521
19522 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19523
19524 * cif-code.def (CHKP): Remove.
19525
19526 PR target/89221
19527 * configure.ac (--enable-frame-pointer): Disable by default for
19528 GNU systems.
19529 * configure: Regenerate.
19530
19531 2019-05-09 Alan Modra <amodra@gmail.com>
19532
19533 PR target/89271
19534 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19535 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19536 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19537 cost for general <-> vsx when direct moves are available.
19538 Cost union classes at minimal cost for any reg in the class.
19539 Correct calculation for moves between vsx, float, and altivec.
19540 Don't return a low cost for moves between special regs. Don't
19541 use hard coded register numbers.
19542 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19543 (rs6000_ira_change_pseudo_allocno_class): New function.
19544 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19545 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19546 alternatives.
19547 (movsi_internal1): Don't disparage vector alternatives.
19548 (mov<mode>_internal): Likewise, excepting alternative that
19549 will be split.
19550 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19551 we <- b alternative.
19552
19553 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19554
19555 PR c++/59813
19556 PR tree-optimization/89060
19557 * tree-ssa-live.h (live_vars_map): New typedef.
19558 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19559 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19560 (struct compute_live_vars_data): New type.
19561 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19562 live_vars_at_stmt, destroy_live_vars): New functions.
19563 * tree-tailcall.c: Include tree-ssa-live.h.
19564 (live_vars, live_vars_vec): New global variables.
19565 (find_tail_calls): Perform variable life analysis before punting.
19566 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19567 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19568 member.
19569 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19570 Perform variable life analysis to select variables that really need
19571 clobbers added.
19572 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19573 instead set id->eh_landing_pad_dest and assert it is the same.
19574 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19575
19576 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19577 Richard Earnshaw <rearnsha@arm.com>
19578
19579 PR target/88167
19580 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19581 function.
19582 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19583 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19584 register if both the epilogue and prologue can use call-clobbered
19585 regs.
19586 (thumb1_unexpanded_epilogue): Use
19587 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19588 picking temporaries for restoring high regs to match that of the
19589 prologue where possible.
19590 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19591 the list of work registers. Detect if the return address is still live
19592 at the end of the prologue and avoid using it for a work register if so.
19593 If the return address is not live, add LR to the list of pushable regs
19594 after the first pass.
19595
19596 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19597
19598 PR tree-optimization/90078
19599 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19600 (INFTY): Increase the value for infinite cost.
19601 (struct comp_cost): Promote type of members to int64_t.
19602 (infinite_cost): Don't set complexity in initialization.
19603 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19604 overflows to infinite_cost.
19605 (adjust_setup_cost): Promote type of parameter and cost computation
19606 to int64_t.
19607 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19608 int64_t.
19609 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19610 cost computation to int64_t.
19611 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19612 int64_t's format specifier in dump.
19613
19614 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19615
19616 PR tree-optimization/90240
19617 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19618 with respect to scaling factor pre-computed for each basic block.
19619 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19620 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19621 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19622 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19623 live range for array of loop's basic blocks. Cleanup aux field of
19624 loop's basic blocks.
19625
19626 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19627
19628 PR tree-optimization/90356
19629 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19630
19631 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19632
19633 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19634 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19635 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19636 (ix86_handle_option): Handle -mavx512bf16.
19637 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19638 to extra_headers.
19639 * config/i386/avx512bf16vlintrin.h: New.
19640 * config/i386/avx512bf16intrin.h: New.
19641 * config/i386/cpuid.h (bit_AVX512BF16): New.
19642 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19643 * config/i386/i386-builtin-types.def: Add new types.
19644 * config/i386/i386-builtin.def: Add new builtins.
19645 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19646 __AVX512BF16__.
19647 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19648 (ix86_option_override_internal): Handle BF16.
19649 (ix86_valid_target_attribute_inner_p): Ditto.
19650 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19651 * config/i386/i386-builtin.c (enum processor_features): Add
19652 F_AVX512BF16.
19653 (static const _isa_names_table isa_names_table): Ditto.
19654 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19655 (PTA_AVX512BF16): Ditto.
19656 * config/i386/i386.opt: Add -mavx512bf16.
19657 * config/i386/immintrin.h: Include avx512bf16intrin.h
19658 and avx512bf16vlintrin.h.
19659 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19660 avx512f_cvtneps2bf16_<mode><mask_name>,
19661 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19662 * config/i386/subst.md (mask_half): Add new subst.
19663 * doc/invoke.texi: Document -mavx512bf16.
19664
19665 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19666
19667 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19668 Delete declaration.
19669 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19670 (rs6000_debug_legitimize_reload_address): Delete.
19671 (rs6000_legitimize_reload_address_ptr): Delete.
19672 (rs6000_option_override_internal): Adjust.
19673 (mem_operand_gpr): Adjust comment.
19674 (legitimate_lo_sum_address_p): Ditto.
19675 (rs6000_legitimize_reload_address): Delete.
19676 (rs6000_debug_legitimize_reload_address): Delete.
19677 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19678
19679 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19680
19681 PR target/89765
19682 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19683 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19684 to compute vector element selector for both constant and variable
19685 operands.
19686
19687 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19688
19689 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19690 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19691 ashrdi3_cvt using SWI48 mode iterator.
19692
19693 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19694
19695 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19696 (aarch64_<su>abd<mode>_3): Likewise.
19697 (*aarch64_<su>abd<mode>_3): New define_insn.
19698 (<sur>sad<vsi2qi>): New define_expand.
19699 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19700 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19701 (build_vect_cond_expr): Likewise.
19702
19703 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19704
19705 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19706 clobbers outside of accessible_reg_set.
19707 * config/i386/i386.c (ix86_conditional_register_usage):
19708 Disable register sets by clearing corresponding bits in
19709 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19710 call_used_regs and don't clear corresponding reg_names array members.
19711
19712 2019-05-07 Richard Biener <rguenther@suse.de>
19713
19714 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19715 not specified still compute a comp_vectype for invariant
19716 compares.
19717
19718 2019-05-07 Richard Biener <rguenther@suse.de>
19719
19720 PR tree-optimization/90316
19721 * tree-ssa-pre.c (translate_vuse_through_block): When
19722 same_valid is NULL do not bother to search for a virtual
19723 PHI continuation.
19724 (phi_translate_1): When operands changed we cannot keep
19725 the same value-number so do not bother to ask whether
19726 that's possible from translate_vuse_through_block.
19727
19728 2019-05-07 Martin Liska <mliska@suse.cz>
19729
19730 * bitmap.c (bitmap_register): Come up with
19731 alloc_descriptor_max_uid and assign it for
19732 a new bitmap.
19733 (register_overhead): Use get_descriptor as
19734 a descriptor.
19735 (release_overhead): New.
19736 (bitmap_elem_to_freelist): Call it.
19737 (bitmap_elt_clear_from): Likewise.
19738 (bitmap_obstack_free): Likewise.
19739 (bitmap_move): Sensitively release memory.
19740 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19741 (bitmap_initialize): Initialize alloc_descriptor to zero.
19742 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19743
19744 2019-05-07 Richard Biener <rguenther@suse.de>
19745
19746 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19747 we build a SLP node. Remove max_size and limiting.
19748 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19749
19750 2019-05-07 Richard Biener <rguenther@suse.de>
19751
19752 PR tree-optimization/90316
19753 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19754 limit by reference.
19755 (walk_non_aliased_vuses): Take walking limit argument.
19756 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19757 walking if it is reached instead of just counting.
19758 (get_continuation_for_phi): Likewise.
19759 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19760 limiting to the callback.
19761 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19762 (vn_reference_lookup_3): Likewise.
19763 (vn_reference_lookup_pieces): Likewise.
19764 (vn_reference_lookup): Likewise.
19765 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19766 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19767 (avail_exprs_stack::lookup_avail_expr): Likewise.
19768
19769 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19770
19771 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19772 for comparaible types in the second direction even if first one
19773 hits incomparable type.
19774
19775 2019-05-07 Richard Biener <rguenther@suse.de>
19776
19777 PR lto/90369
19778 * lto-wrapper.c (debug_objcopy): Use the original filename
19779 including archive offset for the filename used for -save-temps.
19780
19781 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19782
19783 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19784 detection.
19785
19786 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19787 Hongtao Liu <hongtao.liu@intel.com>
19788
19789 PR target/89750
19790 PR target/86444
19791 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19792 Modified, original implementation isn't correct.
19793
19794 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19795
19796 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19797 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19798 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19799 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19800 (FRAME_POINTER_REGNUM): Change numbering.
19801 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19802 (alt_reg_names): Adjust.
19803 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19804 fixed.
19805 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19806 (DWARF_FRAME_REGISTERS): Delete.
19807 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19808 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19809 Adjust.
19810 (REG_ALLOC_ORDER): Adjust.
19811 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19812 (REG_CLASS_CONTENTS): Adjust.
19813 (RETURN_ADDR_RTX): Change comment.
19814 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19815 instead of 67.
19816 (REGISTER_NAMES): Adjust.
19817 (ADDITIONAL_REGISTER_NAMES): Adjust.
19818 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19819
19820 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19821
19822 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19823 Delete.
19824 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19825 (DWARF_FRAME_REGISTERS): Adjust.
19826 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19827 Adjust.
19828 (REG_ALLOC_ORDER): Adjust.
19829 (enum reg_class): Delete SPR_REGS.
19830 (REG_CLASS_NAMES): Delete SPR_REGS.
19831 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19832 (REGISTER_NAMES): Adjust.
19833 (ADDITIONAL_REGISTER_NAMES): Adjust.
19834 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19835 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19836 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19837 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19838 (htm_spr_regno): Delete.
19839 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19840 argument.
19841 (rs6000_dbx_register_number): Adjust.
19842
19843 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19844
19845 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19846
19847 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19848
19849 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19850 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19851
19852 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19853
19854 PR tree-optimization/88709
19855 PR tree-optimization/90271
19856 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19857 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19858 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19859 variable.
19860 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19861 of the store merging group is larger than
19862 PARAM_STORE_MERGING_MAX_SIZE parameter.
19863 (split_group): Add bzero_first argument. If set, always emit first
19864 the first store which must be = {} of the whole area and then for the
19865 rest of the stores consider all zero bytes as paddings.
19866 (imm_store_chain_info::output_merged_store): Check if first store
19867 is = {} of the whole area and if yes, determine which setting of
19868 bzero_first for split_group gives smaller number of stores. Adjust
19869 split_group callers.
19870 (lhs_valid_for_store_merging_p): Allow decls.
19871 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19872 no elts.
19873 (pass_store_merging::process_store): Likewise.
19874
19875 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19876
19877 PR target/89424
19878 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19879 handling of V1TImode.
19880
19881 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19882
19883 PR target/89221
19884 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19885 and enable_frame_pointer ...
19886 * configure.ac: ... here. Update help strings for
19887 --enable-frame-pointer.
19888 * configure: Regenerate.
19889 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19890 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19891 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19892 (USE_X86_64_FRAME_POINTER): Ditto.
19893
19894 2019-05-06 Martin Liska <mliska@suse.cz>
19895
19896 * config.gcc: Append to target_gtfiles and fix indentation.
19897
19898 2019-05-06 Richard Biener <rguenther@suse.de>
19899
19900 PR tree-optimization/90358
19901 * tree-vect-stmts.c (get_group_load_store_type): Properly
19902 detect unused upper half of load.
19903 (vectorizable_load): Likewise.
19904
19905 2019-05-06 Richard Biener <rguenther@suse.de>
19906
19907 PR tree-optimization/88828
19908 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19909 (simplify_vector_constructor): ...here. Handle constants in
19910 the constructor.
19911
19912 2019-05-06 Richard Biener <rguenther@suse.de>
19913
19914 PR tree-optimization/90328
19915 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19916 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19917 is valid in the loop nest before using it.
19918 (initialize_data_dependence_relation): Adjust.
19919 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19920 loop as loop-nest to dr_may_alias_p.
19921
19922 2019-05-06 Richard Biener <rguenther@suse.de>
19923
19924 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19925
19926 2019-05-06 Richard Biener <rguenther@suse.de>
19927
19928 PR tree-optimization/90316
19929 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19930 compute target on demand.
19931 (get_continuation_for_phi): Remove code walking stmts to
19932 get to a target virtual operand which could end up being
19933 quadratic.
19934
19935 2019-05-06 Martin Liska <mliska@suse.cz>
19936
19937 PR sanitizer/90312
19938 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19939 when -mabi is selected to a non-default version.
19940
19941 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19942 Martin Liska <mliska@suse.cz>
19943
19944 * Makefile.in: Add lto-dump.texi.
19945 * cgraph.h: Add new functions get_visibility_string and
19946 get_symtab_type_string.
19947 * doc/gcc.texi: Include lto-dump section.
19948 * doc/lto-dump.texi: New file.
19949 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19950 (parse_dump_option): Factor out this function.
19951 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19952 (parse_dump_option): Export the function.
19953 * symtab.c (symtab_node::get_visibility_string): New function.
19954 (symtab_node::get_symtab_type_string): Likewise.
19955
19956 2019-05-06 Martin Liska <mliska@suse.cz>
19957
19958 * config/i386/i386-builtins.c: New file.
19959 * config/i386/i386-builtins.h: New file.
19960 * config/i386/i386-expand.c: New file.
19961 * config/i386/i386-expand.h: New file.
19962 * config/i386/i386-features.c: New file.
19963 * config/i386/i386-features.h: New file.
19964 * config/i386/i386-options.c: New file.
19965 * config/i386/i386-options.h: New file.
19966 * config.gcc: Add new files into extra_objs and
19967 target_gtfiles.
19968 * config/i386/i386.c: Split content of the file
19969 into newly introduced files.
19970 * config/i386/i386.h: Declare common variables
19971 and macros.
19972 * config/i386/t-i386: Define dependencies for new files.
19973
19974 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19975
19976 PR target/89400
19977 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19978 Restrict 'all' variant to 32-bit configurations.
19979 (unaligned_loadhiu): Likewise.
19980 (unaligned_storehi): Likewise.
19981 (unaligned_storesi): Likewise.
19982 (unaligned_loadhis): Disable when compiling for thumb1.
19983
19984 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19985
19986 PR tree-optimization/90269
19987 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19988 Ignore clobbers.
19989
19990 2019-05-03 Martin Liska <mliska@suse.cz>
19991
19992 * hash-map.h: Add is_empty function.
19993 * hash-set.h: Likewise.
19994 * hash-table.h: Likewise.
19995 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19996 elements () == 0 (and similar usages).
19997 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19998 * gimplify.c (gimplify_bind_expr): Likewise.
19999 (gimplify_switch_expr): Likewise.
20000 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
20001 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
20002 * postreload-gcse.c (dump_hash_table): Likewise.
20003 (gcse_after_reload_main): Likewise.
20004 * predict.c (combine_predictions_for_bb): Likewise.
20005 * tree-parloops.c (reduction_phi): Likewise.
20006 (separate_decls_in_region): Likewise.
20007 (transform_to_exit_first_loop): Likewise.
20008 (gen_parallel_loop): Likewise.
20009 (gather_scalar_reductions): Likewise.
20010 (try_create_reduction_list): Likewise.
20011 * var-tracking.c (dump_vars): Likewise.
20012 (emit_notes_for_changes): Likewise.
20013 (vt_emit_notes): Likewise.
20014
20015 2019-05-03 Richard Biener <rguenther@suse.de>
20016
20017 PR tree-optimization/90316
20018 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
20019 before running VN.
20020
20021 2019-05-03 Richard Biener <rguenther@suse.de>
20022
20023 * tree-vect-stmts.c (get_group_load_store_type): Avoid
20024 peeling for gaps by loading only lower halves of vectors
20025 if possible.
20026 (vectorizable_load): Likewise.
20027
20028 2019-05-03 Richard Biener <rguenther@suse.de>
20029
20030 PR middle-end/89518
20031 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
20032
20033 2019-05-03 Richard Biener <rguenther@suse.de>
20034
20035 PR middle-end/87314
20036 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
20037 Handle STRING_CST vs DECL or STRING_CST.
20038
20039 2019-05-03 Richard Biener <rguenther@suse.de>
20040
20041 PR tree-optimization/88963
20042 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
20043 vector loads feeding only BIT_FIELD_REFs to component
20044 loads. Rewrite stores fed by CONSTRUCTORs to component
20045 stores.
20046
20047 2019-05-03 Jakub Jelinek <jakub@redhat.com>
20048
20049 * opts.h (finish_options): Remove lang_mask argument.
20050 (print_help, help_option_argument): Declare.
20051 * opts.c (print_help): Remove forward declaration, no longer static.
20052 (finish_options): Remove lang_mask argument, don't call print_help
20053 here.
20054 * opts-global.c (decode_options): Adjust finish_option caller, call
20055 print_help here.
20056
20057 PR tree-optimization/90303
20058 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
20059 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
20060
20061 2019-05-03 Richard Biener <rguenther@suse.de>
20062
20063 PR tree-optimization/89698
20064 * gimple-fold.c (canonicalize_constructor_val): Early out
20065 for constants, handle unfolded INTEGER_CSTs as they appear in
20066 C++ virtual table ctors.
20067
20068 2019-05-03 Richard Biener <rguenther@suse.de>
20069
20070 * passes.c (execute_function_todo): Remove dead code.
20071
20072 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20073
20074 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
20075 the internal register number, for any "real" register.
20076
20077 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
20078
20079 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
20080 correct numbers for TFHAR, TFIAR, TEXASR.
20081
20082 2019-05-02 Richard Biener <rguenther@suse.de>
20083
20084 PR tree-optimization/89653
20085 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
20086 update-address-taken before the pass.
20087 * passes.def (pass_tree_loop_init): Put comment before it.
20088
20089 2019-05-02 Richard Biener <rguenther@suse.de>
20090
20091 PR tree-optimization/89509
20092 * tree-ssa-structalias.c (compute_dependence_clique): Look
20093 at the first subvar when determining whether it is restrict.
20094
20095 2019-05-02 Richard Biener <rguenther@suse.de>
20096
20097 PR tree-optimization/90273
20098 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
20099 useless debug stmts.
20100
20101 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20102
20103 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
20104 ACLE branch.
20105 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
20106 SVE ACLE branch.
20107 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
20108 VEC_COND_EXPR be inserted to emulate a conditional internal function.
20109 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
20110 (vectorizable_reduction): Use the functions above to vectorize in a
20111 fully masked loop codes that don't have a conditional internal
20112 function.
20113
20114 2019-05-02 Martin Liska <mliska@suse.cz>
20115
20116 * cgraphclones.c: Call valid_attribute_p with 1 for
20117 target_clone.
20118 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
20119 it's for target attribute.
20120 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
20121 Add new boolean argument.
20122 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
20123 Likewise.
20124 (ix86_valid_target_attribute_tree): Pass target_clone_attr
20125 to ix86_valid_target_attribute_inner_p.
20126 (ix86_valid_target_attribute_p): Pass flags argument to
20127 ix86_valid_target_attribute_inner_p.
20128 (get_builtin_code_for_version): Use 0 as it's target attribute.
20129
20130 2019-05-02 Martin Liska <mliska@suse.cz>
20131
20132 * gcc.c (process_command): Add dummy file only
20133 if n_infiles == 0.
20134 * opts-global.c (decode_options): Pass lang_mask.
20135 * opts.c (print_help): New function.
20136 (finish_options): Print --help if help_option_argument
20137 is set.
20138 (common_handle_option): Factor out content of OPT__help_
20139 into print_help.
20140 * opts.h (finish_options): Add new argument.
20141
20142 2019-05-02 Martin Liska <mliska@suse.cz>
20143
20144 PR target/88809
20145 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
20146 With -minline-all-stringops use inline expansion using 4B loop.
20147 * doc/invoke.texi: Document the change of
20148 -minline-all-stringops.
20149
20150 2019-05-01 Jeff Law <law@redhat.com>
20151
20152 PR tree-optimization/88797
20153 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
20154 PHI feeds a conditional on the RHS of an assignment.
20155
20156 2019-04-30 Andrew Waterman <andrew@sifive.com>
20157 Jim Wilson <jimw@sifive.com>
20158
20159 * config/riscv/constraints.md (L): New.
20160 * config/riscv/predicates.md (lui_operand): New.
20161 (sfb_alu_operand): New.
20162 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
20163 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
20164 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
20165 * config/riscv/risc.md (type): Add sfb_alu.
20166 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
20167 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
20168 (branch_zero<mode>): Delete.
20169 (mov<mode>cc): New.
20170 (mov<GPR:mode><X:mode>cc): Likewise.
20171 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
20172
20173 2019-04-30 Nathan Sidwell <nathan@acm.org>
20174
20175 * tree.h (MARK_TS_EXP): New.
20176
20177 2019-04-30 Martin Liska <mliska@suse.cz>
20178
20179 * opts.c (enable_warning_as_error): Provide hints
20180 for unknown options.
20181
20182 2019-04-30 Martin Liska <mliska@suse.cz>
20183
20184 PR debug/90288
20185 * doc/invoke.texi: Add missing dash for gas-locview-support
20186 and gno-as-locview-support.
20187
20188 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20189
20190 PR target/89093
20191 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
20192 whitespace at the start of target attribute string.
20193
20194 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20195
20196 PR target/86538
20197 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20198 Define __ARM_FEATURE_ATOMICS.
20199
20200 2019-04-30 Martin Liska <mliska@suse.cz>
20201
20202 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
20203 into built_in_function enum. Remove code for endp == 2 and
20204 use BUILT_IN_* constants.
20205 (gimple_fold_builtin): Call the function with fcode.
20206
20207 2019-04-30 Martin Liska <mliska@suse.cz>
20208
20209 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
20210 DECL_FUNCTION_CODE into ix86_builtins enum before
20211 the switch statement.
20212
20213 2019-04-30 Jakub Jelinek <jakub@redhat.com>
20214
20215 PR tree-optimization/89475
20216 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
20217 calls.
20218
20219 2019-04-30 Martin Liska <mliska@suse.cz>
20220
20221 PR translation/90274
20222 * opts.c (print_filtered_help): Wrap string in _(...).
20223
20224 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
20225
20226 PR tree-optimization/90240
20227 Revert:
20228 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20229
20230 PR tree-optimization/90078
20231 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20232 checks for infinite_cost overflow.
20233
20234 2019-04-29 Jeff Law <law@redhat.com>
20235
20236 * passes.def: Move -Wrestrict pass after copy propagation.
20237
20238 2019-04-29 Maya Rashish <coypu@sdf.org>
20239
20240 * config.gcc (default_gnu_indirect_function): Default to yes
20241 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
20242 sparc*-*-netbsd*, x86_64-*-netbsd*.
20243
20244 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
20245
20246 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
20247 where cond2 is NE_EXPR.
20248 (is_value_included_in): Update comment.
20249
20250 2019-04-29 Richard Biener <rguenther@suse.de>
20251
20252 PR tree-optimization/90278
20253 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
20254 EH on comparison simplification.
20255
20256 2019-04-29 Jason Merrill <jason@redhat.com>
20257
20258 PR c++/82081 - tail call optimization breaks noexcept
20259 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
20260 nothrow function to a might-throw function into a tail call.
20261
20262 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
20263
20264 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
20265 (DDR_INNER_LOOP): Likewise.
20266 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
20267 (initialize_data_dependence_relation): Likewise.
20268 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
20269
20270 2019-04-29 Jakub Jelinek <jakub@redhat.com>
20271
20272 PR rtl-optimization/90257
20273 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
20274 return value.
20275
20276 Revert the revert:
20277 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20278
20279 PR target/90178
20280 Revert:
20281 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20282
20283 Revert the revert:
20284 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20285
20286 Revert:
20287 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20288
20289 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20290
20291 2019-04-29 Richard Biener <rguenther@suse.de>
20292
20293 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
20294 rhs issue a reset.
20295
20296 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
20297
20298 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
20299 varasm.h, and netbsd-protos.h.
20300
20301 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
20302
20303 PR target/89261
20304 * config/i386/i386-protos.h (ix86_data_alignment): Change
20305 the second argument type to unsigned int.
20306 * config/i386/i386.c (ix86_data_alignment): Change "align"
20307 argument type to unsigned int.
20308
20309 2019-04-27 Martin Liska <mliska@suse.cz>
20310
20311 PR middle-end/90258
20312 * opt-suggestions.c (option_proposer::build_option_suggestions):
20313 When get_valid_option_values returns empty values, add the
20314 misspelling candidate.
20315
20316 2019-04-26 Jim Wilson <jimw@sifive.com>
20317
20318 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
20319 parameter.
20320 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
20321 Pass orig_mode to riscv_build_integer.
20322 (riscv_split_integer): Pass mode to riscv_move_integer.
20323 (riscv_legitimize_const_move): Likewise.
20324 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
20325 promoted_mode. Replace force_reg call with code to load constant into
20326 promoted reg and then subreg it for the store.
20327 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
20328 riscv_move_integer.
20329
20330 2018-04-26 Eugene Sharygin <eush@ispras.ru>
20331
20332 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
20333 corrupt codes.
20334
20335 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
20336
20337 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
20338 commentary about the encoding of precision.
20339
20340 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
20341
20342 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
20343 * config/i386/t-freebsd64: New file.
20344 * config.gcc: Add the t-freebsd64 for multilib support.
20345
20346 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
20347
20348 * doc/extend.texi (vector_size): Add missing comma after @xref.
20349
20350 2019-04-25 Jakub Jelinek <jakub@redhat.com>
20351
20352 * BASE-VER: Set to 10.0.0.
20353
20354 2019-04-25 Richard Biener <rguenther@suse.de>
20355
20356 PR middle-end/89765
20357 * gimplify.c (gimplify_expr): Avoid turning a lvalue
20358 VIEW_CONVERT_EXPR into one operating on an rvalue.
20359
20360 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
20361
20362 PR target/89929
20363 * config/i386/i386.c (feature_priority): Moved to file scope.
20364 (processor_features): Likewise.
20365 (processor_model): Likewise.
20366 (_arch_names_table): Likewise.
20367 (arch_names_table): Likewise.
20368 (_feature_list): Removed.
20369 (feature_list): Likewise.
20370 (_isa_names_table): Moved to file scope. Add priority.
20371 (isa_names_table): Likewise.
20372 (get_builtin_code_for_version): Replace feature_list with
20373 isa_names_table. Update error message for P_ZERO priority.
20374
20375 2019-04-25 Richard Biener <rguenther@suse.de>
20376
20377 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20378 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20379
20380 2019-04-24 Jeff Law <law@redhat.com>
20381
20382 PR tree-optimization/90037
20383 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20384 * passes.def: Replace all instance of phi-only cprop with the
20385 lattice propagator. Move propagation pass from after erroneous
20386 path isolation to before erroneous path isolation.
20387 * tree-ssa-phionlycprop.c: Remove.
20388
20389 2019-04-24 Richard Biener <rguenther@suse.de>
20390
20391 PR middle-end/90213
20392 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20393 by size and BITS_PER_UNIT on poly-wide-ints.
20394
20395 2019-04-25 Richard Biener <rguenther@suse.de>
20396
20397 PR middle-end/90194
20398 * match.pd: Add pattern to simplify view-conversion of an
20399 empty constructor.
20400
20401 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20402
20403 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20404 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20405 for Go on 32 bit AIX.
20406 * config/rs6000/aix72.h: Likewise.
20407
20408 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20409
20410 PR target/90193
20411 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20412 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20413
20414 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20415
20416 PR target/89952
20417 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20418 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20419 for restored hard frame pointer.
20420 (s390_sched_dependencies_evaluation): Implement new target hook.
20421 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20422
20423 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20424
20425 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20426 * config/arc/arc.c (arc_init): Cleanup warning message.
20427 (arc_override_options): Likewise.
20428
20429 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20430
20431 PR target/90187
20432 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20433 a register if both if_true and if_false are MEMs.
20434
20435 PR tree-optimization/90208
20436 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20437 after labels of new_bb, not before them.
20438
20439 PR tree-optimization/90211
20440 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20441 which are not SSA_NAMEs.
20442
20443 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20444
20445 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20446 AArch64.
20447 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20448
20449 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20450
20451 PR rtl-optimization/87979
20452 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20453 not equal zero.
20454
20455 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20456
20457 PR rtl-optimization/84032
20458 * modulo-sched.c (ps_insn_find_column): Change condition so that
20459 branch will always be the last insn in a row inside partial
20460 schedule.
20461
20462 2019-04-23 Richard Biener <rguenther@suse.de>
20463
20464 PR debug/90131
20465 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20466 dest_single_pred_p argument.
20467 (remove_forwarder_block): Adjust.
20468 (remove_forwarder_block_with_phi): Likewise.
20469
20470 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20471 Bernd Edlinger <bernd.edlinger@hotmail.de>
20472 Jakub Jelinek <jakub@redhat.com>
20473
20474 PR target/89093
20475 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20476 if used with general-regs-only.
20477 (arm_conditional_register_usage): Don't add non-general regs if
20478 general-regs-only.
20479 (arm_valid_target_attribute_rec): Handle general-regs-only.
20480 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20481 general-regs-only.
20482 (TARGET_HARD_FLOAT_SUB): Define.
20483 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20484 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20485 (TARGET_REALLY_IWMMXT2): Likewise.
20486 * config/arm/arm.opt: Add -mgeneral-regs-only.
20487 * doc/extend.texi: Document ARM general-regs-only target.
20488 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20489
20490 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20491
20492 PR tree-optimization/90078
20493 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20494 checks for infinite_cost overflow.
20495
20496 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20497
20498 PR tree-optimization/90021
20499 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20500 and check univariate against it.
20501 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20502 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20503
20504 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20505
20506 PR target/90178
20507 Revert:
20508 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20509
20510 Revert the revert:
20511 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20512
20513 Revert:
20514 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20515
20516 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20517
20518 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20519
20520 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20521 names using operand format, rather than hard-wired.
20522 (speculation_barrier): Likewise.
20523
20524 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20525
20526 PR tree-optimization/88055
20527 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20528 (gen_one_condition): Use it if !HONOR_NANS.
20529
20530 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20531
20532 PR middle-end/90139
20533 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20534 assign_temp instead of gen_reg_rtx.
20535
20536 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20537
20538 PR translation/90118
20539 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20540 Add missing space before %<.
20541
20542 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20543
20544 PR rtl-optimization/87871
20545 * ira-lives.c (make_object_dead): Don't add conflicts to
20546 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20547
20548 2019-04-18 Martin Sebor <msebor@redhat.com>
20549
20550 PR middle-end/89797
20551 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20552 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20553 assuming type size fits in SHWI.
20554
20555 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20556
20557 PR ipa/85051
20558 * ipa-inline.c (flatten_function): New parameter UPDATE.
20559 (ipa_inline, early_inliner): Use it.
20560
20561 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20562
20563 * fold-const.c (int_const_binop): Return early on failure.
20564
20565 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20566
20567 PR middle-end/85164
20568 * combine.c (force_int_to_mode): Cast the argument rather than
20569 the result of known_alignment.
20570 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20571
20572 2019-04-18 Richard Biener <rguenther@suse.de>
20573
20574 PR debug/90131
20575 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20576 out from ...
20577 (remove_forwarder_block): ... here.
20578 (remove_forwarder_block_with_phi): Also move debug stmts here.
20579
20580 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20581
20582 PR translation/79183
20583 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20584 inform where appropriate.
20585
20586 2019-04-18 Richard Biener <rguenther@suse.de>
20587
20588 * tree.c (get_qualified_type): Put found type variants at the
20589 head of the variant list.
20590
20591 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20592
20593 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20594
20595 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20596
20597 PR target/90125
20598 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20599 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20600 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20601 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20602 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20603
20604 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20605
20606 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20607 even for allocno's with no conflicts.
20608 (print_conflicts): Print an extra newline.
20609
20610 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20611
20612 * auto-inc-dec.c (attempt_change): Set the alignment of the
20613 temporary memory to that of the original.
20614
20615 2019-04-17 Joao Moreira <jmoreira@suse.de>
20616
20617 * targhooks.c (default_print_patchable_function_entry): Emit
20618 __patchable_function_entries section with writable flags to allow
20619 relocation resolution.
20620
20621 2019-04-17 Jonny Grant <jg@jguk.org>
20622
20623 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20624
20625 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20626
20627 PR middle-end/90095
20628 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20629 on lowpart SUBREGs.
20630
20631 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20632
20633 * config/arc/arc.c (arc_init): Format diagnostic string.
20634 (arc_override_options): Likewise.
20635 (check_if_valid_regno_const): Likewise.
20636 (arc_reorg): Likewise.
20637
20638 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20639
20640 PR target/17108
20641 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20642 name.
20643 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20644 name.
20645 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20646 (*movdi_update1): Use Pmode.
20647 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20648 (movdi_<mode>_update_stack): Rename to ...
20649 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20650 use Pmode.
20651 (*movsi_update1): Use Pmode.
20652 (*movsi_update2): Use Pmode.
20653 (movsi_update): Rename to ...
20654 (movsi_<mode>_update): ... this. Use Pmode.
20655 (movsi_update_stack): Fix condition.
20656 (*movhi_update1): Use Pmode. Fix argument to
20657 avoiding_indexed_address_p.
20658 (*movhi_update2): Ditto.
20659 (*movhi_update3): Ditto.
20660 (*movhi_update4): Ditto.
20661 (*movqi_update1): Ditto.
20662 (*movqi_update2): Ditto.
20663 (*movqi_update3): Ditto.
20664 (*movsf_update1, *movdf_update1): Merge, rename to...
20665 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20666 avoiding_indexed_address_p. Add "size" attribute.
20667 (*movsf_update2, *movdf_update2): Merge, rename to...
20668 (*mov<mode>_update2): This. Ditto.
20669 (*movsf_update3): Use Pmode. Fix argument to
20670 avoiding_indexed_address_p.
20671 (*movsf_update4): Ditto.
20672 (allocate_stack): Simplify condition. Adjust pattern names.
20673
20674 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20675
20676 PR target/89093
20677 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20678 whitespace at the start of target attribute string.
20679
20680 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20681
20682 PR target/84369
20683 * config/rs6000/power9.md: Add store forwarding bypass.
20684
20685 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20686
20687 PR debug/89528
20688 * valtrack.c (dead_debug_insert_temp): Reset debug references
20689 to the return value of a call being removed.
20690
20691 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20692
20693 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20694 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20695 implement target hook.
20696 (arc_memory_move_cost): New function.
20697 (TARGET_REGISTER_MOVE_COST): Define.
20698 (TARGET_MEMORY_MOVE_COST): Likewise.
20699 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20700 (MEMORY_MOVE_COST): Likewise.
20701
20702 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20703
20704 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20705 (sibcall_value_insn): Likewise.
20706 * config/arc/constraints.md (Rs5): Remove.
20707
20708 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20709
20710 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20711 for last two fake registers.
20712 (arc_conditional_register_usage): Make sure fake frame and arg
20713 pointer regs are in general regs class.
20714 (FRAME_POINTER_MASK): Remove.
20715 (RETURN_ADDR_MASK): Remove.
20716 (arc_must_save_register): Use hard frame regnum.
20717 (frame_restore_reg): Use hard_frame_pointer_rtx.
20718 (arc_save_callee_saves): Likewise.
20719 (arc_restore_callee_saves): Likewise.
20720 (arc_save_callee_enter): Likewise.
20721 (arc_restore_callee_leave): Likewise.
20722 (arc_save_callee_milli): Likewise.
20723 (arc_eh_return_address_location): Likewise.
20724 (arc_check_multi): Use hard frame regnum.
20725 (arc_can_eliminate): Likewise.
20726 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20727 for register allocator.
20728 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20729 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20730 (FRAME_POINTER_REGNUM): Change it to a fake register.
20731 (HARD_FRAME_POINTER_REGNUM): Defined.
20732 (ARG_POINTER_REGNUM): Change it to a new fake register.
20733 (ELIMINABLE_REGS): Update.
20734 (REGISTER_NAMES): Update names.
20735 * config/arc/arc.md (LP_START): Remove.
20736 (LP_END): Likewise.
20737 (shift_si3_loop): Update pattern.
20738
20739 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20740
20741 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20742 to avoid delay slot scheduling.
20743 (arc_must_save_register): Don't save SP.
20744 * config/arc/arc.md (stack_tie): Remove.
20745 (UNSPEC_ARC_STKTIE): Likewise.
20746
20747 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20748 Shiva Chen <shiva0217@gmail.com>
20749
20750 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20751 code gen with large shift amount.
20752
20753 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20754
20755 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20756 subreg.
20757
20758 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20759
20760 PR target/90096
20761 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20762 print -m64/-mx32/-m32 if it is true.
20763 (ix86_debug_options, ix86_function_specific_print): Pass true as
20764 ADD_ABI_P to ix86_target_string.
20765 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20766 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20767 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20768
20769 PR rtl-optimization/90082
20770 * dce.c (can_delete_call): New function.
20771 (deletable_insn_p, mark_insn): Use it.
20772
20773 PR tree-optimization/90090
20774 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20775 throw internally.
20776 (is_division_by_square): Likewise. Formatting fix.
20777
20778 2019-04-16 Richard Biener <rguenther@suse.de>
20779
20780 PR tree-optimization/56049
20781 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20782 equality check if alias-set zero will prevail.
20783
20784 2019-04-15 Jeff Law <law@redhat.com>
20785
20786 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20787 size and alignment as unsigned.
20788
20789 2019-04-15 Richard Biener <rguenther@suse.de>
20790
20791 PR debug/90074
20792 * tree-loop-distribution.c (destroy_loop): Preserve correct
20793 debug info.
20794
20795 2019-04-15 Richard Biener <rguenther@suse.de>
20796
20797 PR tree-optimization/90071
20798 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20799 abnormal operands from def stmts.
20800
20801 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20802
20803 PR rtl-optimization/89794
20804 * combine.c (count_auto_inc): New function.
20805 (try_combine): Count how many auto_inc expressions there were in the
20806 original instructions. Ensure we have the same number in the new
20807 instructions. Remove the code that tried to ensure auto_inc side
20808 effects on i1 and i0 are not lost.
20809
20810 2019-04-15 Richard Biener <rguenther@suse.de>
20811
20812 PR ipa/88936
20813 * tree.h (auto_var_p): Declare.
20814 * tree.c (auto_var_p): New function, split out from ...
20815 (auto_var_in_fn_p): ... here.
20816 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20817 member.
20818 (new_var_info): Initialize it.
20819 (set_uids_in_ptset): Also set the shadow variable uid if required.
20820 (ipa_pta_execute): Postprocess points-to solutions assigning
20821 shadow variable uids for locals that may reach their containing
20822 function recursively.
20823 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20824 assert but instead check whether the points-to solution is
20825 a singleton.
20826
20827 2019-04-15 Martin Jambor <mjambor@suse.cz>
20828
20829 PR ipa/pr89693
20830 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20831 the thunk chain.
20832
20833 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20834
20835 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20836
20837 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20838 Kito Cheng <kito.cheng@gmail.com>
20839 Shiva Chen <shiva0217@gmail.com>
20840
20841 * config/nds32/nds32-md-auxiliary.c
20842 (nds32_legitimize_pic_address): Use new PIC pattern.
20843 (nds32_legitimize_tls_address): Use new TLS pattern.
20844 (nds32_output_symrel): New.
20845 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20846 (nds32_alloc_relax_group_id): Ditto.
20847 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20848 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20849 relax_group_id.
20850 (nds32_group_tls_insn): Ditto.
20851 (nds32_group_float_insns): Ditto.
20852 * config/nds32/nds32.md (tls_le): New.
20853 (sym_got): Ditto.
20854
20855 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20856
20857 * configure: Add nds32 target for dwarf2 debug_line checking.
20858 * configure.ac: Regenerated.
20859
20860 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20861
20862 PR lto/89358
20863 * ipa-devirt.c (skip_in_fields_list_p): New.
20864 (odr_types_equivalent_p): Use it.
20865
20866 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20867
20868 PR target/89093
20869 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20870 instead of strncmp when checking for thumb and arm. Formatting fixes.
20871
20872 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20873
20874 * doc/install.texi: Document --with-target-system-zlib.
20875
20876 2019-04-12 Martin Sebor <msebor@redhat.com>
20877
20878 PR c/88383
20879 PR c/89288
20880 PR c/89798
20881 PR c/89797
20882 * targhooks.c (default_vector_alignment): Avoid assuming
20883 argument fits in SHWI.
20884 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20885 a shift expression.
20886 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20887
20888 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20889
20890 PR rtl-optimization/89965
20891 * dce.c: Include rtl-iter.h.
20892 (struct check_argument_load_data): New type.
20893 (check_argument_load): New function.
20894 (find_call_stack_args): Check for loads from stack slots still tracked
20895 in sp_bytes and punt if any is found.
20896
20897 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20898
20899 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20900
20901 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20902 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20903
20904 2019-04-12 Martin Liska <mliska@suse.cz>
20905
20906 PR middle-end/89970
20907 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20908 in error message.
20909 (separate_attrs): Handle multiple 'default's.
20910 (expand_target_clones): Rework error handling code.
20911
20912 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20913
20914 PR target/87532
20915 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20916 mode of vector rather than mode of destination for move instruction.
20917 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20918 Use QI inner mode with V16QI vector mode.
20919
20920 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20921
20922 PR target/52726
20923 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20924 "invalid %%t operand" in output_operand_lossage message.
20925
20926 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20927
20928 * config/s390/predicates.md (permute_pattern_operand): New
20929 predicate.
20930 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20931 operand for the permute pattern.
20932 ("*vec_perm<mode>"): New insn definition.
20933 ("bswap<mode>"): Generate the permute pattern operand in the
20934 expander and perform the operand reloads for pre arch13 level
20935 already.
20936 ("*bswap<mode>_emu"): Rename to ...
20937 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20938 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20939 Add the USE operand for the permute pattern.
20940 ("*vec_set_bswap_vec<mode>"): Likewise.
20941
20942 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20943
20944 PR c/89946
20945 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20946 and gcc_unreachable if it fails, just call tree_to_uhwi which
20947 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20948 Start warning message with a lower-case letter. Formatting fixes.
20949
20950 PR rtl-optimization/90026
20951 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20952 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20953 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20954 in cfglayout mode, use emit_barrier_after_bb.
20955
20956 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20957
20958 PR rtl-optimization/87763
20959 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20960 New Instruction.
20961
20962 2019-04-11 Tom de Vries <tdevries@suse.de>
20963
20964 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20965 max macro using statement expression.
20966
20967 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20968
20969 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20970 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20971 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20972 read_only_private_data_section using xcoff_private_rodata_section_name.
20973 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20974
20975 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20976
20977 PR target/90016
20978 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20979
20980 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20981
20982 PR rtl-optimization/89965
20983 * dce.c (sp_based_mem_offset): New function.
20984 (find_call_stack_args): Use sp_based_mem_offset.
20985
20986 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20987
20988 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20989
20990 2019-04-11 Richard Biener <rguenther@suse.de>
20991
20992 PR tree-optimization/90020
20993 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20994 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20995 * tree-ssa-pre.c (compute_avail): Use it to not put
20996 possibly trapping references after a call that might not
20997 return into EXP_GEN.
20998 * gcse.c (compute_hash_table_work): Do not elide
20999 marking a block containing a call if the call might not
21000 return.
21001
21002 2019-04-11 Richard Biener <rguenther@suse.de>
21003
21004 PR tree-optimization/90018
21005 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
21006 Test both SLP and interleaving variants.
21007
21008 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
21009
21010 * config/s390/8561.md: New file.
21011 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21012 Add arch13 cpu model.
21013 * config/s390/s390-opts.h (enum processor_type): Likewise.
21014 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
21015 (s390_get_unit_mask): Likewise.
21016 (s390_is_fpd): Likewise.
21017 (s390_is_fxd): Likewise.
21018 * config/s390/s390.h (s390_tune_attr): Likewise.
21019 * config/s390/s390.md: Include arch13 pipeline description.
21020 * config/s390/s390.opt: Add arch13.
21021
21022 2018-04-10 Steve Ellcey <sellcey@marvell.com>
21023
21024 PR rtl-optimization/87763
21025 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
21026 New prototype.
21027 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
21028 New function.
21029 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
21030 New instruction.
21031 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
21032 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
21033 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
21034 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
21035
21036 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
21037
21038 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
21039 "Although" in -fipa-icf documentation.
21040
21041 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
21042 of using multiple -g options.
21043
21044 2019-04-10 Martin Liska <mliska@suse.cz>
21045
21046 PR gcov-profile/89959
21047 * doc/gcov.texi: Make documentation of -x option
21048 more precise.
21049
21050 2019-04-10 Richard Biener <rguenther@suse.de>
21051
21052 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
21053 member.
21054 (DR_GROUP_SAME_DR_STMT): Remove.
21055 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
21056 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
21057 replace with assert.
21058 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
21059 (vect_record_grouped_load_vectors): Remove unreachable code.
21060
21061 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
21062
21063 PR target/90016
21064 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
21065 obsolete reference to N.
21066
21067 2019-04-10 Jakub Jelinek <jakub@redhat.com>
21068
21069 PR middle-end/90025
21070 * expr.c (store_expr): Set properly size on the MEM passed to
21071 clear_storage.
21072
21073 PR c++/90010
21074 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
21075 with strlen in between hostsz-3 and hostsz-1 inclusive when no
21076 translation is needed, and when translation is needed, only append
21077 ... if the string length is hostsz or more bytes long. Avoid using
21078 strncpy or strcat.
21079
21080 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
21081
21082 PR target/90024
21083 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
21084 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
21085 into three.
21086 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
21087 differences directly.
21088 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
21089
21090 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21091
21092 PR translation/90011
21093 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21094 from diagnostics.
21095 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
21096 diagnostics.
21097 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
21098 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
21099 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
21100 trailing space from -gsplit-dwarf diagnostics.
21101
21102 PR tree-optimization/89998
21103 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
21104 instead of integer_type_node if possible, don't add ranges if return
21105 type is not compatible with int.
21106 * gimple-fold.c (gimple_fold_builtin_sprintf,
21107 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
21108 integer_type_node.
21109
21110 2019-04-09 Martin Liska <mliska@suse.cz>
21111
21112 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
21113 * doc/install.texi: Document the new config.
21114
21115 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
21116
21117 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
21118 use gimple_expr_type for load and store calls. Skip over the
21119 condition argument in a conditional internal function.
21120 Protect use of TREE_INT_CST_LOW.
21121
21122 2019-04-09 Jakub Jelinek <jakub@redhat.com>
21123
21124 PR target/90015
21125 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
21126 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
21127 trailing period from it too.
21128
21129 2019-04-08 wu yuan <wuyuan5@huawei.com>
21130
21131 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
21132 * config/aarch64/aarch64.md : Add "tsv110.md"
21133 * config/aarch64/tsv110.md: New file.
21134
21135 2019-04-08 Richard Biener <rguenther@suse.de>
21136
21137 PR tree-optimization/90006
21138 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
21139 calls like lrint.
21140
21141 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
21142
21143 PR target/83033
21144 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
21145 construction.
21146 (fma_root_node): Likewise.
21147 (func_fma_steering): Likewise.
21148
21149 2019-04-08 Jakub Jelinek <jakub@redhat.com>
21150
21151 PR rtl-optimization/89865
21152 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
21153
21154 PR rtl-optimization/89865
21155 * config/i386/i386.md
21156 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
21157 numbers not to clash with the additional operands[4].
21158 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
21159 with extra register copy in the middle.
21160
21161 2019-04-08 Martin Liska <mliska@suse.cz>
21162
21163 PR gcov-profile/89961
21164 * doc/gcov.texi: Document data_file.
21165 * gcov.c (generate_results): Add data_info into JSON output.
21166
21167 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21168
21169 PR tree-optimization/89725
21170 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
21171 loop's chrec as invariant symbol.
21172 * tree-chrec.h (chrec_contains_symbols): New parameter.
21173 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
21174 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
21175 function of loops not in DDR's loop_nest.
21176 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
21177
21178 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
21179
21180 PR target/89623
21181 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
21182 Mask.
21183
21184 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
21185
21186 PR target/89945
21187 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
21188 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
21189
21190 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
21191
21192 * sched-deps.c (sched_macro_fuse_insns): Check return value of
21193 targetm.fixed_condition_code_regs.
21194
21195 2019-04-05 Richard Biener <rguenther@suse.de>
21196
21197 PR debug/89892
21198 PR debug/89905
21199 * tree-cfgcleanup.c (remove_forwarder_block): Always move
21200 debug bind stmts but reset them if they are not valid at the
21201 destination.
21202
21203 2019-04-05 Martin Liska <mliska@suse.cz>
21204
21205 PR translation/89936
21206 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
21207 order to wrap keywords or arguments.
21208 * collect2.c (main): Likewise.
21209 (scan_prog_file): Likewise.
21210 (scan_libraries): Likewise.
21211 * common/config/riscv/riscv-common.c
21212 (riscv_subset_list::parsing_subset_version): Likewise.
21213 (riscv_subset_list::parse_std_ext): Likewise.
21214 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21215 Likewise.
21216 * config/arm/arm.c (arm_option_override): Likewise.
21217 * config/cris/cris.c (cris_print_operand): Likewise.
21218 * config/darwin-c.c (darwin_pragma_options): Likewise.
21219 (darwin_pragma_unused): Likewise.
21220 (darwin_pragma_ms_struct): Likewise.
21221 * config/ft32/ft32.c (ft32_print_operand): Likewise.
21222 * config/i386/i386.c (print_reg): Likewise.
21223 (ix86_print_operand): Likewise.
21224 * config/i386/xm-djgpp.h: Likewise.
21225 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
21226 * config/m32c/m32c.c (m32c_option_override): Likewise.
21227 * config/msp430/msp430.c (msp430_option_override): Likewise.
21228 * config/nds32/nds32.c (nds32_option_override): Likewise.
21229 * config/nvptx/mkoffload.c (main): Likewise.
21230 * config/rx/rx.c (rx_print_operand): Likewise.
21231 (valid_psw_flag): Likewise.
21232 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
21233 (vms_pragma_nomember_alignment): Likewise.
21234 (vms_pragma_extern_model): Likewise.
21235 * lto-wrapper.c (compile_offload_image): Likewise.
21236 * omp-offload.c (oacc_parse_default_dims): Likewise.
21237 * symtab.c (symtab_node::verify_base): Likewise.
21238 * tlink.c (recompile_files): Likewise.
21239 (start_tweaking): Likewise.
21240 * tree-profile.c (parse_profile_filter): Likewise.
21241
21242 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
21243
21244 PR tree-optimization/89956
21245 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
21246 multiple negates of the same value.
21247
21248 2019-04-04 Martin Sebor <msebor@redhat.com>
21249
21250 PR middle-end/89957
21251 PR middle-end/89911
21252 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
21253 have the same precision since the function crashes otherwise.
21254 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
21255 has non-zero arguments.
21256
21257 2019-04-04 Martin Sebor <msebor@redhat.com>
21258
21259 PR middle-end/89934
21260 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
21261 out if the number of arguments is less than expected.
21262
21263 2019-04-04 Jeff Law <law@redhat.com>
21264
21265 PR rtl-optimization/89399
21266 * ree.c (combine_set_extension): Use single_set rather than
21267 digging into PATTERN for items on the candidate list.
21268 (combine_reaching_defs): Likewise.
21269
21270 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
21271
21272 PR rtl-optimization/46590
21273 * loop-invariant.c (find_defs): Move df_remove_problem and
21274 df_process_deferred_rescans to move_invariants.
21275 Move df_live_add_problem and df_live_set_all_dirty calls
21276 to move_invariants.
21277 (move_invariants): Likewise.
21278 (move_loop_invariants): Likewise, making the df_live calls
21279 conditional on -O. Remove the problem again if we added it
21280 locally.
21281
21282 2019-04-03 qing zhao <qing.zhao@oracle.com>
21283
21284 PR tree-optimization/89730
21285 * ipa-inline.c (can_inline_edge_p): Delete the checking for
21286 -flive-patching=inline-only-static.
21287 (can_inline_edge_by_limits_p): Add the checking for
21288 -flive-patching=inline-only-static and grant always_inline
21289 even when -flive-patching=inline-only-static is specified.
21290
21291 2019-04-03 Jeff Law <law@redhat.com>
21292
21293 PR rtl-optimization/81025
21294 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
21295
21296 2019-04-03 Richard Biener <rguenther@suse.de>
21297
21298 PR tree-optimization/84101
21299 * tree-vect-stmts.c: Include explow.h for hard_function_value,
21300 regs.h for hard_regno_nregs.
21301 (cfun_returns): New helper.
21302 (vect_model_store_cost): When vectorizing a store to a decl
21303 we return and the function ABI returns in a multi-reg location
21304 account for the possible spilling that will happen.
21305
21306 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
21307
21308 * config/s390/s390.c (s390_legitimate_address_p): Reject long
21309 displacement addresses for vector mode operands.
21310
21311 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
21312
21313 * config/arc/arc.c (GMASK_LEN): Define.
21314 (arc_restore_callee_saves): Restore first blink when
21315 !optimize_size.
21316
21317 2019-04-03 Sudakshina Das <sudi.das@arm.com>
21318
21319 * doc/extend.texi: Add deprecated comment on sign-return-address
21320 function attribute and add mbranch-protection.
21321 * doc/invoke.texi: Add bti to the options for mbranch-protection.
21322
21323 2019-04-03 Richard Biener <rguenther@suse.de>
21324
21325 PR lto/89896
21326 * lto-wrapper.c (run_gcc): Avoid implicit rules making
21327 the all target phony.
21328
21329 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
21330
21331 PR target/89902
21332 PR target/89903
21333 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
21334 Return false for variable DImode shifts.
21335 (dimode_scalar_chain::compute_convert_gain): Do not handle
21336 register count operand in variable DImode shifts.
21337 (dimode_scalar_chain::make_vector_copies): Remove support to copy
21338 count argument of a variable shift instruction to a vector register.
21339 (dimode_scalar_chain::convert_reg): Remove support to convert
21340 count argument of a variable shift instruction.
21341
21342 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21343
21344 PR rtl-optimization/84206
21345 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
21346 iterating over loop headers.
21347
21348 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
21349
21350 PR rtl-optimization/85876
21351 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
21352 beyond the original fence.
21353
21354 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
21355
21356 * config.gcc: Mark spu* targets as deprecated/obsolete.
21357
21358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21359
21360 * config/s390/s390-builtin-types.def: New builtin function type
21361 definitions. Remove unused types.
21362 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
21363 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
21364 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
21365 overloaded builtins.
21366 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
21367 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
21368 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
21369 (vec_double, vec_signed, vec_unsigned): Define to use the new
21370 overloaded builtins.
21371 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21372 Remove expanders.
21373
21374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21375
21376 * config/s390/s390-builtin-types.def: New builtin function type
21377 definitions.
21378 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21379 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21380 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21381 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21382 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21383 constant definitions.
21384 * config/s390/vecintrin.h (vec_search_string_cc)
21385 (vec_search_string_until_zero_cc): New builtin name definitions.
21386 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21387 expanders.
21388 ("vec_vstrs<mode>"): New insn definition.
21389
21390 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21391
21392 * config/s390/s390-builtin-types.def: Add new builtin function
21393 types.
21394 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21395 New overloaded builtins.
21396 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21397 s390_vsrd.
21398 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21399 (UNSPEC_VEC_SLDBYTE): ... this.
21400 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21401 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21402 definitions.
21403 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21404 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21405 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21406
21407 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21408
21409 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21410 New insn definition.
21411 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21412 * config/s390/vector.md (V_HW_HSD): ... here.
21413
21414 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21415
21416 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21417 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21418 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21419 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21420 New insn definitions.
21421
21422 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21423
21424 * config/s390/s390-builtin-types.def: Add new builtin function type.
21425 * config/s390/s390-builtins.def: Add overloaded builtin
21426 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21427 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21428 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21429 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21430 ("eltswap<mode>"): New expander.
21431 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21432 insn definitions.
21433
21434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21435
21436 * config/s390/s390-builtin-types.def: Add new builtin function types.
21437 * config/s390/s390-builtins.def: Add overloaded builtin
21438 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21439 instructions.
21440 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21441 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21442 ("bswap<mode>"): New expander.
21443 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21444
21445 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21446
21447 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21448 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21449 vector builtin version number in __VEC__.
21450
21451 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21452
21453 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21454 iterators.
21455 (SFSI): New mode attribute.
21456 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21457 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21458 rename to ...
21459 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21460 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21461 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21462 ("floatsi<mode>2"): Add wcefb instruction.
21463
21464 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21465
21466 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21467 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21468 mode iterators.
21469 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21470 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21471 support 32 bit fp-int conversions. Rename to ...
21472 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21473 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21474 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21475 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21476 ... to these.
21477
21478 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21479
21480 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21481 if-then-else constructs if we can use the select instruction.
21482 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21483
21484 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21485
21486 * config/s390/s390.md ("*popcountdi_arch13_cc")
21487 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21488 definition.
21489 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21490 Append _z196 to make it ...
21491 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21492 ("popcounthi2_z196"): ... this.
21493 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21494 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21495
21496 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21497
21498 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21499 certain compares for arch13 in order to make use of the condition
21500 code result produced by the new instructions.
21501 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21502 nxrk, and nxgrk instruction patterns.
21503 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21504 (inv_no): Add new code iterator together with some attributes.
21505 ("*andc_split_<mode>"): Disable splitter for arch13.
21506 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21507 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21508 ("*<ANDOR:bitops_name>c<GPR:mode>")
21509 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21510 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21511 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21512 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21513
21514 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21515
21516 * common/config/s390/s390-common.c (processor_flags_table): New
21517 entry for arch13.
21518 * config.gcc: Support arch13 with the --with-arch= configure flag.
21519 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21520 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21521 * config/s390/s390.c (s390_get_sched_attrmask)
21522 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21523 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21524 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21525 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21526 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21527 definitions.
21528 * config/s390/s390.opt: Support arch13 as processor type in
21529 command line options.
21530
21531 2019-04-02 Martin Liska <mliska@suse.cz>
21532
21533 PR translation/89912
21534 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21535 Fix param description of graphite-max-arrays-per-scop.
21536
21537 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21538
21539 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21540 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21541 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21542
21543 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21544
21545 PR rtl-optimization/85412
21546 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21547 sel_sched_region_1, not after.
21548
21549 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21550
21551 PR rtl-optimization/86928
21552 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21553 compute_live if necessary.
21554 (sel_redirect_edge_and_branch): Likewise.
21555
21556 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21557
21558 PR rtl-optimization/89865
21559 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21560 register if it is a part of small class.
21561
21562 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21563
21564 PR rtl-optimization/87273
21565 * sel-sched-ir.c (merge_fences): Remove assert.
21566
21567 2019-04-01 Richard Biener <rguenther@suse.de>
21568
21569 PR tree-optimization/46590
21570 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21571 (dom_walker::m_reachability): Add in place of...
21572 (dom_walker::m_skip_unreachable_blocks): ...this.
21573 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21574 Move complex initialization ...
21575 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21576 lazily and initialize edge flags on each invocation.
21577 (dom_walker::bb_reachable): Use m_reachability.
21578
21579 2019-04-01 Martin Liska <mliska@suse.cz>
21580
21581 PR driver/89861
21582 * opt-suggestions.c (option_proposer::build_option_suggestions):
21583 Add variant without any argument in order to provide better
21584 hints.
21585
21586 2019-04-01 Richard Biener <rguenther@suse.de>
21587
21588 PR c/71598
21589 * gimple.c: Include langhooks.h.
21590 (gimple_get_alias_set): Treat enumeral types as the underlying
21591 integer type.
21592
21593 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21594 Eric Botcazou <ebotcazou@adacore.com>
21595
21596 PR rtl-optimization/89862
21597 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21598 that operates on the full registers for WORD_REGISTER_OPERATIONS
21599 architectures.
21600
21601 2019-03-29 Jim Wilson <jimw@sifive.com>
21602
21603 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21604 Clear MASK_RVC and then set if C subset supported.
21605
21606 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21607
21608 PR c/89872
21609 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21610 non-addressable complit into its initializer if it is volatile.
21611
21612 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21613
21614 * opts-common.c (integral_argument): Set errno properly in one case.
21615
21616 2019-03-29 Martin Liska <mliska@suse.cz>
21617
21618 * doc/invoke.texi: Remove -Wchkp from documentation.
21619
21620 2019-03-29 Martin Liska <mliska@suse.cz>
21621
21622 * dbgcnt.c (print_limit_reach): New function.
21623 (dbg_cnt): Use it.
21624
21625 2019-03-29 Martin Liska <mliska@suse.cz>
21626
21627 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21628 (dbg_cnt_process_opt): Parse first tokens aas
21629 dbg_cnt_process_single_pair is also using strtok.
21630
21631 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21632
21633 PR rtl-optimization/87485
21634 * function.c (expand_function_end): Move stack_protect_epilogue
21635 before loading of return value into hard register(s).
21636
21637 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21638
21639 PR middle-end/89621
21640 * tree-inline.h (struct copy_body_data): Add
21641 dont_remap_vla_if_no_change flag.
21642 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21643 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21644 and remap_type_2 returns false.
21645 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21646 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21647 only from where it is copied to nested contexts.
21648
21649 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21650
21651 PR target/89865
21652 * config/i386/i386.md (RMW operation with LEA peephole):
21653 Use LEAMODE mode attribute instead of SWI mode iterator for
21654 LEA pattern.
21655
21656 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21657
21658 PR target/89848
21659 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21660 Also process XEXP (src, 0) of a shift insn.
21661
21662 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21663
21664 PR middle-end/89725
21665 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21666 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21667
21668 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21669
21670 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21671 test.
21672 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21673 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21674 immediately after first one with df_analyze in between, but rather
21675 process all bbs, queueing ones that need second pass in a worklist,
21676 df_analyze, process queued debug insn changes and if second pass is
21677 needed, process bbs from worklist, df_analyze, process queued debug
21678 insns again.
21679
21680 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21681 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21682 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21683
21684 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21685
21686 PR c/79022
21687 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21688 definition.
21689
21690 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21691
21692 PR target/85667
21693 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21694 function for 32-bit MS_ABI.
21695 (function_value_ms_32): New function.
21696
21697 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21698
21699 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21700 (movdi): Call gen_movdi_symbol_save_scc.
21701 (gen_movdi_symbol_save_scc): New insn and split.
21702
21703 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21704
21705 PR rtl-optimization/89313
21706 * function.c (matching_constraint_num): New static function.
21707 (match_asm_constraints_1): Use it. Fixup white space and comment.
21708 Don't replace inputs with non-matching constraints which conflict
21709 with early clobber outputs.
21710
21711 2019-03-27 Jeff Law <law@redhat.com>
21712
21713 PR rtl-optimization/87761
21714 PR rtl-optimization/89826
21715 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21716 slightly later.
21717 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21718 note problem to get REG_DEAD/REG_UNUSED notes updated.
21719
21720 2019-03-27 Richard Biener <rguenther@suse.de>
21721
21722 PR tree-optimization/89463
21723 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21724 queue edges to remove.
21725 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21726 dead stmts. Delay edge removal until PHIs are removed to
21727 make debug-stmt creation not confused by seemingly degenerate
21728 PHIs.
21729
21730 2019-03-27 Alan Modra <amodra@gmail.com>
21731
21732 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21733 throughout file.
21734 * config/rs6000/darwin.h: Likewise.
21735 * config/rs6000/rs6000.c: Likewise.
21736
21737 2019-03-27 Alan Modra <amodra@gmail.com>
21738
21739 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21740 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21741
21742 2019-03-26 Andrew Waterman <andrew@sifive.com>
21743 Jim Wilson <jimw@sifive.com>
21744
21745 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21746 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21747 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21748 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21749 (generic_alu): Add auipc to type list.
21750 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21751 (riscv_microarchitecture): Declare.
21752 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21753 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21754 field.
21755 (riscv_microarchitecture): New.
21756 (sifive_7_tune_info): New.
21757 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21758 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21759 entries.
21760 (riscv_store_data_bypass_p): New.
21761 (riscv_option_override): Set riscv_microarchitecture from
21762 cpu->microarchitecture.
21763 * config/riscv/riscv.md: Include sifive-7.md.
21764 (type): Add auipc.
21765 (tune): New.
21766 (auipc<mode>): Change type to auipc.
21767 (restore_stack_nonlocal): New.
21768 * config/riscv/sifive-7.md: New.
21769 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21770
21771 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21772
21773 PR target/89827
21774 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21775 Also process XEXP (src, 0) of a shift insn.
21776
21777 2019-03-26 Richard Biener <rguenther@suse.de>
21778
21779 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21780 (copy_debug_stmt): Likewise.
21781 (expand_call_inline): Likewise.
21782 (copy_bb): Avoid redundant lookup & set of gimple_block.
21783 * gimple-low.c (lower_gimple_return): Likewise.
21784 (lower_builtin_setjmp): Likewise.
21785
21786 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21787
21788 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21789 is constant 0, turn into static const data member initialized to false.
21790 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21791 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21792
21793 2019-03-26 Jason Merrill <jason@redhat.com>
21794 Jakub Jelinek <jakub@redhat.com>
21795
21796 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21797 method.
21798 (mem_alloc_description::release_object_overhead): Fix comment typos.
21799 * hash-table.h (hash_table::~hash_table): Call
21800 release_instance_overhead only if m_entries is non-NULL, otherwise
21801 call unregister_descriptor.
21802
21803 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21804
21805 PR tree-optimization/81740
21806 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21807 In case of outer loop vectorization, check for backward dependence
21808 at the inner loop if outer loop dependence is reversed.
21809
21810 2019-03-26 Alan Modra <amodra@gmail.com>
21811
21812 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21813 rs6000_vector_mem init. Correct wI and wJ comment.
21814
21815 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21816
21817 PR rtl-optimization/88347
21818 PR rtl-optimization/88423
21819 * sched-deps.c (sched_analyze_insn): Take into account that for
21820 tablejumps the barrier appears after a label and a jump_table_data.
21821
21822 2019-03-25 Martin Sebor <msebor@redhat.com>
21823
21824 PR c/89812
21825 * c-common.c (check_user_alignment): Rename local. Correct maximum
21826 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21827 convert it to UHWI when it fits.
21828
21829 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21830
21831 PR debug/86964
21832 * dwarf2out.c (premark_used_variables): New function.
21833 (prune_unused_types_walk): Do not mark not premarked external
21834 variables.
21835 (prune_unused_types): Call premark_used_variables.
21836
21837 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21838
21839 PR rtl-optimization/89676
21840 * lra-constraints.c (curr_insn_transform): Do match reload for
21841 early clobbers when the match was successful only for different
21842 registers.
21843
21844 2019-03-25 Martin Sebor <msebor@redhat.com>
21845
21846 * doc/extend.texi (Common Type Attributes): Document vector_size.
21847 (Common Variable Attributes): Mention size constraint. Correct
21848 quoting and typos.
21849 (Vector Extensions): Use @dfn when defining bas type. Clarify
21850 base type and size constraints.
21851
21852 2019-03-25 Richard Biener <rguenther@suse.de>
21853
21854 PR tree-optimization/89789
21855 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21856 changes from non-undefined back to undefined.
21857
21858 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21859
21860 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21861 heap string and a gc string, but since this variable is unknown to
21862 ggc the gc string might get reused and corrupted. Fixed by always
21863 using a heap string.
21864
21865 2019-03-25 Richard Biener <rguenther@suse.de>
21866
21867 PR tree-optimization/89779
21868 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21869 to remove IV defs, delay actual removal.
21870 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21871 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21872 very end, properly also reset loop control IV information.
21873
21874 2019-03-25 Richard Biener <rguenther@suse.de>
21875
21876 PR tree-optimization/89802
21877 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21878 move EH data to folded stmt.
21879
21880 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21881
21882 * config/s390/s390-builtin-types.def: Remove few unused types and
21883 fix sort order for others.
21884
21885 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21886
21887 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21888 expected and found types with -mdebug during builtin matching.
21889
21890 2019-03-25 Richard Biener <rguenther@suse.de>
21891
21892 PR middle-end/89790
21893 * fold-const.c (operand_equal_p): Revert last change with
21894 updated comment.
21895
21896 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21897
21898 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21899 notes for the result of the __tls_get_addr calls.
21900 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21901
21902 2019-03-24 Jeff Law <law@redhat.com>
21903
21904 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21905
21906 PR rtl-optimization/87761
21907 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21908 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21909 as needed.
21910 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21911 rescans. Reprocess blocks as needed, calling df_analyze before
21912 reprocessing. Always call df_analyze before fixing up debug bind
21913 insns.
21914
21915 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21916
21917 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21918 big endian.
21919
21920 2019-03-22 Andrew Pinski <apinski@marvell.com>
21921
21922 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21923 attrribute for uxtw.
21924
21925 2019-03-26 Jeff Law <law@redhat.com>
21926
21927 PR rtl-optimization/87761
21928 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21929 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21930 (mips_split_move): Accept new INSN argument. Try to forward SRC
21931 into the next instruction.
21932 (mips_split_move_insn): Pass INSN through to mips_split_move.
21933
21934 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21935
21936 PR rtl-optimization/89676
21937 * lra-constraints.c (curr_insn_transform): Do match reload for
21938 early clobbers even if the match was successful.
21939
21940 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21941
21942 PR c++/87481
21943 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21944
21945 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21946
21947 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21948
21949 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21950
21951 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21952 <avx512>_fmsub_<mode>_mask3<round_name>,
21953 <avx512>_fnmadd_<mode>_mask3<round_name>,
21954 <avx512>_fnmsub_<mode>_mask3<round_name>,
21955 avx512f_vmfmadd_<mode>_mask3<round_name>,
21956 avx512f_vmfmsub_<mode>_mask3<round_name>,
21957 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21958 instead of register_operand and %v instead of v for match_operand 1.
21959 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21960 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21961 <round_nimm_predicate> instead of register_operand and %v instead of v
21962 for match_operand 1.
21963
21964 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21965 <avx512>_fmadd_<mode>_mask3<round_name>,
21966 <avx512>_fmsub_<mode>_mask<round_name>,
21967 <avx512>_fmsub_<mode>_mask3<round_name>,
21968 <avx512>_fnmadd_<mode>_mask<round_name>,
21969 <avx512>_fnmadd_<mode>_mask3<round_name>,
21970 <avx512>_fnmsub_<mode>_mask<round_name>,
21971 <avx512>_fnmsub_<mode>_mask3<round_name>,
21972 <avx512>_fmaddsub_<mode>_mask<round_name>,
21973 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21974 <avx512>_fmsubadd_<mode>_mask<round_name>,
21975 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21976 <round_nimm_predicate> instead of nonimmediate_operand.
21977 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21978 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21979 Use register_operand instead of <round_nimm_predicate> for the
21980 operand that needs to match output.
21981 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21982 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21983 Likewise. Formatting fixes.
21984
21985 PR target/89784
21986 * config/i386/i386.c (enum ix86_builtins): Remove
21987 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21988 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21989 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21990 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21991 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21992 __builtin_ia32_vfmsubss3_mask3): New builtins.
21993 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21994 avx512f_vmfmadd_<mode>_mask3<round_name>,
21995 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21996 *avx512f_vmfmsub_<mode>_mask<round_name>,
21997 avx512f_vmfmsub_<mode>_mask3<round_name>,
21998 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21999 *avx512f_vmfnmadd_<mode>_mask<round_name>,
22000 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
22001 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
22002 *avx512f_vmfnmsub_<mode>_mask<round_name>,
22003 avx512f_vmfnmsub_<mode>_mask3<round_name>,
22004 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
22005 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
22006 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
22007 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
22008 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
22009 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
22010 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
22011 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
22012 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
22013 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
22014 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
22015 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
22016 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
22017 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
22018 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
22019 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
22020 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
22021 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
22022 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
22023 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
22024 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
22025 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
22026
22027 2019-03-21 Martin Sebor <msebor@redhat.com>
22028
22029 PR tree-optimization/89350
22030 * builtins.c (compute_objsize): Also ignore offsets whose upper
22031 bound is negative.
22032 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
22033 (builtin_memref::builtin_memref): Initialize new member.
22034 Allow EXPR to be null.
22035 (builtin_memref::extend_offset_range): Replace local with a member.
22036 Avoid assuming pointer offsets are unsigned.
22037 (builtin_memref::set_base_and_offset): Determine base object
22038 before computing offset range.
22039 (builtin_access::builtin_access): Handle memset.
22040 (builtin_access::generic_overlap): Replace local with a member.
22041 (builtin_access::strcat_overlap): Same.
22042 (builtin_access::overlap): Same.
22043 (maybe_diag_overlap): Same.
22044 (maybe_diag_access_bounds): Same.
22045 (wrestrict_dom_walker::check_call): Handle memset.
22046 (check_bounds_or_overlap): Same.
22047
22048 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
22049 Jakub Jelinek <jakub@redhat.com>
22050
22051 PR lto/89692
22052 * tree.c (fld_type_variant, fld_incomplete_type_of,
22053 fld_process_array_type): Call fld->pset.add and don't call
22054 add_tree_to_fld_list if it returns true.
22055 (free_lang_data_in_type): Similarly with self-recursive call. Purge
22056 non-marked types from TYPE_NEXT_VARIANT list.
22057 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
22058
22059 2019-03-21 Jakub Jelinek <jakub@redhat.com>
22060
22061 * hash-table.h (hash_table): Add Lazy template parameter defaulted
22062 to false, if true, don't alloc_entries during construction, but defer
22063 it to the first method that needs m_entries allocated.
22064 (hash_table::hash_table, hash_table::~hash_table,
22065 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
22066 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
22067 hash_table::clear_slot, hash_table::traverse_noresize,
22068 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
22069 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
22070 false.
22071 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
22072 NO_INSERT instead of find_with_hash.
22073 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
22074 hash_set::m_table): Add Lazy to template params of hash_table.
22075 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
22076 * attribs.c (test_attribute_exclusions): Likewise.
22077 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
22078 hash_set. Add tests for hash_set with Lazy = true.
22079
22080 2019-03-21 Richard Biener <rguenther@suse.de>
22081
22082 PR tree-optimization/89779
22083 * tree.c (tree_nop_conversion): Consolidate and fix defensive
22084 checks with respect to released SSA names now having error_mark_node
22085 type.
22086 * fold-const.c (operand_equal_p): Likewise.
22087
22088 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
22089
22090 PR target/89775
22091 * config/s390/s390.c (global_not_special_regno_p): Move to make it
22092 available to ...
22093 (s390_optimize_register_info): Use global_not_special_regno_p to
22094 check for global regs.
22095
22096 2019-03-20 Jakub Jelinek <jakub@redhat.com>
22097
22098 PR target/89752
22099 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
22100 update this_alternative nor this_alternative_set.
22101
22102 2019-03-19 Jim Wilson <jimw@sifive.com>
22103
22104 PR target/89411
22105 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
22106 align, size, offset. Use them to handle a BLKmode reference. Update
22107 comment.
22108 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
22109
22110 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22111
22112 PR rtl-optimization/89768
22113 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
22114 instead of GEN_INT.
22115 (unroll_loop_runtime_iterations): Likewise.
22116
22117 2019-03-19 Martin Sebor <msebor@redhat.com>
22118
22119 PR tree-optimization/89644
22120 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
22121 rather than endptr as an indicator of nul-termination.
22122
22123 PR tree-optimization/89644
22124 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
22125 arrays in determining sequence sizes in strncpy and stpncpy.
22126
22127 2019-03-19 Martin Liska <mliska@suse.cz>
22128
22129 PR middle-end/89737
22130 * predict.c (combine_predictions_for_bb): Empty likely_edges and
22131 unlikely_edges if there's an edge that belongs to both these sets.
22132
22133 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
22134
22135 PR target/89746
22136 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
22137 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
22138 go via a stack temporary.
22139
22140 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22141
22142 PR target/89378
22143 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
22144 instead of gen_rtx_SUBREG.
22145 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
22146
22147 2019-03-19 Richard Biener <rguenther@suse.de>
22148
22149 PR debug/88389
22150 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
22151
22152 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
22153
22154 PR lto/87809
22155 PR lto/89335
22156 * tree.c (free_lang_data_in_decl): Do not free context of C++
22157 destrutors.
22158
22159 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22160
22161 PR target/89506
22162 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
22163 subs for the first alternative except when operands[3] is 1.
22164
22165 PR target/89752
22166 * gimplify.c (gimplify_asm_expr): For output argument with
22167 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
22168 diagnose error.
22169
22170 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
22171
22172 PR rtl-optimization/89753
22173 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22174 explicit unrolling factor even more robust.
22175
22176 2019-03-19 Jakub Jelinek <jakub@redhat.com>
22177
22178 PR target/89726
22179 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
22180 compensation use x2 += 1 instead of x2 -= -1 and when honoring
22181 signed zeros, do another copysign after the compensation.
22182
22183 2019-03-18 Martin Sebor <msebor@redhat.com>
22184
22185 PR tree-optimization/89720
22186 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
22187 more conservatively, the same as anti-range.
22188
22189 2019-03-18 Richard Biener <rguenther@suse.de>
22190
22191 PR middle-end/88945
22192 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
22193 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
22194 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
22195 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
22196
22197 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
22198
22199 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
22200 Extend queue to 1024 entries.
22201 Add "consumed" field.
22202 (gomp_print_output): Remove print_index parameter.
22203 Add final parameter.
22204 Change limit to unsigned.
22205 Use consumed field to implement circular buffer.
22206 Detect interrupted print in final pass.
22207 Flush output at the end.
22208 (run): Update gomp_print_output usage.
22209 (main): Initialize kernargs->output_data.consumed.
22210
22211 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
22212
22213 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
22214 calculation of the minimum number of scalar iterations for
22215 fully-predicated loops.
22216
22217 2019-03-18 Martin Jambor <mjambor@suse.cz>
22218
22219 PR tree-optimization/89546
22220 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
22221 any propagation to its children took place.
22222
22223 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
22224
22225 PR target/89627
22226 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
22227 parameter, and make use of it.
22228 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
22229
22230 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22231
22232 * config/arc/arc.opt (mcode-density-frame): Get the inital value
22233 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
22234 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22235 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
22236 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
22237 match what the ops is doing.
22238 (push_multi_fp_blink): Likewise.
22239 * config/arc/arc.c (arc_override_options): Enable enter/leave when
22240 compiling for size and elf target.
22241 (arc_save_callee_enter): Adjust note to match what enter/leave
22242 operation does.
22243
22244 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22245
22246 * config/arc/arc.md (tst_movb): Fix constraint.
22247
22248 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22249
22250 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
22251
22252 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
22253
22254 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
22255 * config/arc/arc.c (arc_conditional_register_usage): Remove all
22256 reg_alloc_order references.
22257 (size_alloc_order): Define.
22258 (arc_adjust_reg_alloc_order): New function.
22259 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
22260 order.
22261 (ADJUST_REG_ALLOC_ORDER): Define.
22262 (HONOR_REG_ALLOC_ORDER): Likewise.
22263
22264 2019-03-18 Richard Biener <rguenther@suse.de>
22265
22266 PR target/87561
22267 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
22268 loads and stores a bit more.
22269
22270 2019-03-18 Richard Biener <rguenther@suse.de>
22271
22272 PR target/87561
22273 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
22274 load pessimization to stores as well.
22275
22276 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
22277
22278 PR middle-end/86979
22279 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
22280 successor, use NULL as its av set.
22281
22282 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
22283
22284 PR rtl-optimization/89721
22285 * lra-constraints (invariant_p): Return false if side_effects_p holds.
22286
22287 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
22288
22289 PR target/87532
22290 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22291 When handling vec_extract, use modular arithmetic to allow
22292 constant selectors greater than vector length.
22293 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
22294 V1TImode vectors to have constant selector values greater than 0.
22295 Use modular arithmetic to compute vector index.
22296 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
22297 index for in-memory vectors. Correct code generation for
22298 in-register vectors.
22299 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
22300 compute index.
22301
22302 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
22303
22304 PR c++/88534
22305 PR c++/88537
22306 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
22307 VAR_DECL args.
22308
22309 2019-03-15 Jakub Jelinek <jakub@redhat.com>
22310
22311 PR c++/89709
22312 * tree.c (inchash::add_expr): Strip any location wrappers.
22313 * fold-const.c (operand_equal_p): Move stripping of location wrapper
22314 after hash verification.
22315
22316 PR debug/89704
22317 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
22318 SIGN_EXTEND and ZERO_EXTEND.
22319
22320 2019-03-14 Jason Merrill <jason@redhat.com>
22321 Jakub Jelinek <jakub@redhat.com>
22322
22323 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
22324 than if is_empty (*slot).
22325 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
22326 existing elt and for elt removal.
22327 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
22328 of already removed elt.
22329
22330 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
22331
22332 PR target/89650
22333 * config/i386/i386.c (remove_partial_avx_dependency): Handle
22334 REG_EH_REGION note.
22335
22336 2019-03-14 Martin Liska <mliska@suse.cz>
22337
22338 PR other/89712
22339 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
22340
22341 2019-03-14 Richard Biener <rguenther@suse.de>
22342
22343 PR target/89711
22344 * config/i386/i386.c (make_resolver_func): Properly set
22345 DECL_CONTEXT on the RESULT_DECL.
22346 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
22347
22348 2019-03-14 Richard Biener <rguenther@suse.de>
22349
22350 * gimple-pretty-print.c: Include cfgloop.h.
22351 (dump_gimple_phi): Adjust.
22352 (dump_gimple_bb_header): Dump loop header for GIMPLE.
22353 (pp_cfg_jump): Adjust.
22354 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
22355 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
22356 (lower_phi_internal_fn): Remove.
22357 (verify_gimple_call): Remove IFN_PHI special-casing.
22358 (dump_function_to_file): Dump IL state.
22359 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
22360 done to deal with PHI nodes being present in non-SSA state.
22361
22362 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22363
22364 PR ipa/89684
22365 * multiple_target.c (create_dispatcher_calls): Change
22366 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
22367 In the node->iterate_referring loop, push *ref rather than ref, call
22368 ref->remove_reference () and always pass 0 to iterate_referring.
22369
22370 PR rtl-optimization/89679
22371 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
22372 would contain a paradoxical SUBREG.
22373
22374 2019-03-14 Richard Biener <rguenther@suse.de>
22375
22376 PR tree-optimization/89710
22377 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22378 safe_dyn_cast.
22379
22380 2019-03-14 Martin Liska <mliska@suse.cz>
22381
22382 * coverage.c (coverage_begin_function): Stream also
22383 end_column.
22384 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22385 documentation about function declaration location.
22386 * gcov-dump.c (tag_function): Print whole range
22387 of function declaration.
22388 * gcov.c (struct function_info): Add end_column field.
22389 (function_info::function_info): Initialize it.
22390 (output_json_intermediate_file): Output {start,end}_column
22391 fields.
22392 (read_graph_file): Read end_column.
22393
22394 2019-03-14 Richard Biener <rguenther@suse.de>
22395
22396 PR middle-end/89698
22397 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22398 that the access types are similar.
22399
22400 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22401
22402 PR tree-optimization/89703
22403 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22404 aren't compatible also with builtin_decl_explicit. Check pure
22405 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22406 and BUILT_IN_STPNCPY{,_CHK}.
22407
22408 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22409
22410 PR target/89523
22411 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22412 addr32 prefix to VSIB address for X32.
22413 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22414 "%M2" to opcode.
22415 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22416 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22417 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22418 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22419 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22420 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22421 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22422 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22423 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22424 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22425 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22426 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22427 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22428 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22429 (*avx512f_scatterdi<mode>): Likewise.
22430
22431 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22432
22433 PR target/85860
22434 * lra-constraints.c (inherit_in_ebb): Update
22435 potential_reload_hard_regs along with live_hard_regs.
22436
22437 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22438
22439 PR debug/89498
22440 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22441 DWARF_OFFSET_SIZE.
22442 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22443
22444 2019-03-13 Martin Sebor <msebor@redhat.com>
22445
22446 PR tree-optimization/89662
22447 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22448 has a size.
22449
22450 2019-03-13 Richard Biener <rguenther@suse.de>
22451
22452 PR middle-end/89677
22453 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22454 throw FP expressions at tree-affine.
22455
22456 2019-03-14 Richard Biener <rguenther@suse.de>
22457
22458 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22459 dump negative integer constants using _Literal (type) -num.
22460
22461 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22462
22463 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22464 nonlocal_value member.
22465
22466 PR middle-end/88588
22467 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22468 (ipa_simd_modify_function_body): Handle PHIs.
22469
22470 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22471
22472 * config/s390/s390.c (s390_option_override_internal): Use more
22473 aggressive inlining parameters.
22474
22475 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22476
22477 * config/s390/3906.md: New file.
22478 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22479 (LONGRUNNING_THRESHOLD): Remove.
22480 (MAX_SCHED_MIX_SCORE): Decrease.
22481 (MAX_SCHED_MIX_DISTANCE): Decrease.
22482 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22483 (struct s390_sched_state): New struct to hold scheduling state.
22484 (S390_SCHED_STATE_NORMAL): Remove.
22485 (S390_SCHED_STATE_CRACKED): Remove.
22486 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22487 (s390_get_sched_attrmask): Use new attribute.
22488 (s390_get_unit_mask): Use new units.
22489 (s390_is_fpd): New function.
22490 (s390_is_fxd): New function.
22491 (s390_is_longrunning): New function.
22492 (s390_sched_score): Use new functions.
22493 (s390_sched_reorder): Likewise.
22494 (s390_sched_variable_issue): Rework and use new functions.
22495 (s390_sched_init): Use new functions.
22496 * config/s390/s390.h (s390_tune_attr): Add z14.
22497 * config/s390/s390.md: Add z14.
22498
22499 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22500
22501 * config/s390/2964.md: Update pipeline description.
22502 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22503 (LONGRUNNING_THRESHOLD): Remove.
22504 (LATENCY_FACTOR): Remove.
22505 (s390_get_unit_mask): Add unit.
22506 (s390_sched_score): Use fxd/fpd.
22507 (s390_sched_variable_issue): Use fxd/fpd.
22508
22509 2019-03-12 Martin Liska <mliska@suse.cz>
22510
22511 * config/i386/i386.c: Reword an error message.
22512
22513 2019-03-12 Martin Jambor <mjambor@suse.cz>
22514
22515 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22516 terminate with newline.
22517
22518 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22519
22520 PR target/52726
22521 * config/s390/s390.md (tabort): Use %wd instead of
22522 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22523 letters and periods.
22524 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22525 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22526 's with %< and %>.
22527
22528 PR middle-end/89663
22529 * builtins.c (expand_builtin_int_roundingfn,
22530 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22531 gcc_unreachable if validate_arglist fails.
22532
22533 2019-03-12 Richard Biener <rguenther@suse.de>
22534
22535 PR tree-optimization/89664
22536 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22537 free the occurance tree after the early out.
22538
22539 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22540
22541 PR middle-end/89655
22542 PR bootstrap/89656
22543 * vr-values.c (vr_values::update_value_range): If
22544 old_vr->varying_p (), don't update it, make new_vr also VARYING
22545 and return false.
22546
22547 2019-03-11 Martin Liska <mliska@suse.cz>
22548
22549 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22550 Fix double string quoting.
22551
22552 2019-03-11 Martin Liska <mliska@suse.cz>
22553
22554 * collect-utils.c (collect_wait): Wrap apostrophes
22555 in gcc internal format with %'.
22556 * collect2.c (main): Likewise.
22557 (scan_prog_file): Likewise.
22558 (scan_libraries): Likewise.
22559 * config/i386/i386.c (ix86_expand_call): Likewise.
22560 (ix86_handle_interrupt_attribute): Likewise.
22561 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22562 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22563 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22564 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22565 * symtab.c (symtab_node::verify_base): Likewise.
22566 * tree-cfg.c (verify_gimple_label): Likewise.
22567 * tree.c (verify_type_variant): Likewise.
22568
22569 2019-03-11 Martin Liska <mliska@suse.cz>
22570
22571 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22572 in a string format message and fix GNU coding style.
22573 (expand_builtin_set_thread_pointer): Likewise.
22574 * common/config/aarch64/aarch64-common.c
22575 (aarch64_rewrite_selected_cpu): Likewise.
22576 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22577 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22578 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22579 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22580 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22581 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22582 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22583 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22584 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22585 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22586 Likewise.
22587 * common/config/riscv/riscv-common.c
22588 (riscv_subset_list::parsing_subset_version): Likewise.
22589 (riscv_subset_list::parse_std_ext): Likewise.
22590 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22591 (riscv_subset_list::parse): Likewise.
22592 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22593 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22594 (aarch64_override_options_internal): Likewise.
22595 (aarch64_validate_mcpu): Likewise.
22596 (aarch64_validate_march): Likewise.
22597 (aarch64_validate_mtune): Likewise.
22598 (aarch64_override_options): Likewise.
22599 * config/alpha/alpha.c (alpha_option_override): Likewise.
22600 * config/arc/arc.c (arc_init): Likewise.
22601 (parse_mrgf_banked_regs_option): Likewise.
22602 (arc_override_options): Likewise.
22603 (arc_expand_builtin_aligned): Likewise.
22604 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22605 (arm_expand_builtin): Likewise.
22606 * config/arm/arm.c (arm_option_check_internal): Likewise.
22607 (arm_configure_build_target): Likewise.
22608 (arm_option_override): Likewise.
22609 (arm_options_perform_arch_sanity_checks): Likewise.
22610 (arm_handle_cmse_nonsecure_entry): Likewise.
22611 (arm_handle_cmse_nonsecure_call): Likewise.
22612 (arm_tls_referenced_p): Likewise.
22613 (thumb1_expand_prologue): Likewise.
22614 * config/avr/avr.c (avr_option_override): Likewise.
22615 * config/bfin/bfin.c (bfin_option_override): Likewise.
22616 * config/c6x/c6x.c (c6x_option_override): Likewise.
22617 * config/cr16/cr16.c (cr16_override_options): Likewise.
22618 * config/cris/cris.c (cris_option_override): Likewise.
22619 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22620 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22621 * config/darwin.c (darwin_override_options): Likewise.
22622 * config/frv/frv.c (frv_expand_builtin): Likewise.
22623 * config/h8300/h8300.c (h8300_option_override): Likewise.
22624 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22625 (ix86_option_override_internal): Likewise.
22626 (warn_once_call_ms2sysv_xlogues): Likewise.
22627 (ix86_expand_prologue): Likewise.
22628 (split_stack_prologue_scratch_regno): Likewise.
22629 (ix86_warn_parameter_passing_abi): Likewise.
22630 * config/ia64/ia64.c (fix_range): Likewise.
22631 * config/m68k/m68k.c (m68k_option_override): Likewise.
22632 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22633 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22634 (mips_set_compression_mode): Likewise.
22635 * config/mmix/mmix.c (mmix_option_override): Likewise.
22636 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22637 * config/msp430/msp430.c (msp430_option_override): Likewise.
22638 * config/nds32/nds32.c (nds32_option_override): Likewise.
22639 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22640 (nios2_option_override): Likewise.
22641 (nios2_expand_custom_builtin): Likewise.
22642 * config/nvptx/mkoffload.c (main): Likewise.
22643 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22644 * config/pa/pa.c (fix_range): Likewise.
22645 (pa_option_override): Likewise.
22646 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22647 (riscv_option_override): Likewise.
22648 * config/rl78/rl78.c (rl78_option_override): Likewise.
22649 * config/rs6000/aix61.h: Likewise.
22650 * config/rs6000/aix71.h: Likewise.
22651 * config/rs6000/aix72.h: Likewise.
22652 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22653 * config/rs6000/freebsd64.h: Likewise.
22654 * config/rs6000/linux64.h: Likewise.
22655 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22656 (rs6000_expand_zeroop_builtin): Likewise.
22657 (rs6000_expand_mtfsb_builtin): Likewise.
22658 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22659 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22660 (rs6000_invalid_builtin): Likewise.
22661 (rs6000_expand_split_stack_prologue): Likewise.
22662 * config/rs6000/rtems.h: Likewise.
22663 * config/rx/rx.c (valid_psw_flag): Likewise.
22664 (rx_expand_builtin): Likewise.
22665 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22666 * config/s390/s390.c (s390_expand_builtin): Likewise.
22667 (s390_function_profiler): Likewise.
22668 (s390_option_override_internal): Likewise.
22669 (s390_option_override): Likewise.
22670 * config/sh/sh.c (sh_option_override): Likewise.
22671 (sh_builtin_saveregs): Likewise.
22672 (sh_fix_range): Likewise.
22673 * config/sh/vxworks.h: Likewise.
22674 * config/sparc/sparc.c (sparc_option_override): Likewise.
22675 * config/spu/spu.c (spu_option_override): Likewise.
22676 (fix_range): Likewise.
22677 * config/visium/visium.c (visium_option_override): Likewise.
22678 (visium_handle_interrupt_attr): Likewise.
22679 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22680 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22681 (dbg_cnt_process_opt): Likewise.
22682 * dwarf2out.c (output_dwarf_version): Likewise.
22683 * except.c (expand_eh_return): Likewise.
22684 * gcc.c (defined): Likewise.
22685 (driver_handle_option): Likewise.
22686 (process_command): Likewise.
22687 (compare_files): Likewise.
22688 (driver::prepare_infiles): Likewise.
22689 (driver::do_spec_on_infiles): Likewise.
22690 (driver::maybe_run_linker): Likewise.
22691 * omp-offload.c (oacc_parse_default_dims): Likewise.
22692 * opts-global.c (handle_common_deferred_options): Likewise.
22693 * opts.c (parse_sanitizer_options): Likewise.
22694 (common_handle_option): Likewise.
22695 (enable_warning_as_error): Likewise.
22696 * passes.c (enable_disable_pass): Likewise.
22697 * plugin.c (parse_plugin_arg_opt): Likewise.
22698 (default_plugin_dir_name): Likewise.
22699 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22700 (default_pch_valid_p): Likewise.
22701 * toplev.c (init_asm_output): Likewise.
22702 (process_options): Likewise.
22703 (toplev::run_self_tests): Likewise.
22704 * tree-cfg.c (verify_gimple_call): Likewise.
22705 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22706 (tree_inlinable_function_p): Likewise.
22707 * var-tracking.c (vt_find_locations): Likewise.
22708
22709 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22710
22711 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22712 only on the else branch.
22713
22714 2019-03-11 Martin Liska <mliska@suse.cz>
22715
22716 * gcov.c (output_intermediate_json_line): Print function
22717 name of each line.
22718 (output_json_intermediate_file): Add new argument.
22719 * doc/gcov.texi: Document the change.
22720
22721 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22722
22723 PR rtl-optimization/89588
22724 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22725 explicit unrolling factor more robust.
22726
22727 2019-03-11 Richard Biener <rguenther@suse.de>
22728
22729 PR tree-optimization/89649
22730 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22731 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22732 on the prolog and epilog loops.
22733 (vect_loop_versioning): Return copy of loop.
22734 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22735 on the non-vectorized version of the loop.
22736
22737 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22738
22739 PR target/68924
22740 * config/i386/sse.md (*vec_extractv2di_0_sse):
22741 Add (=r,x) alternative and corresponding splitter.
22742
22743 2019-03-10 Martin Jambor <mjambor@suse.cz>
22744
22745 PR tree-optimization/85762
22746 PR tree-optimization/87008
22747 PR tree-optimization/85459
22748 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22749 it points to if there is a type changing MEM_REF. Adjust all callers.
22750 (build_accesses_from_assign): Disable total scalarization if
22751 contains_vce_or_bfcref_p returns true through the new parameter, for
22752 both rhs and lhs.
22753
22754 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22755
22756 PR c/88568
22757 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22758 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22759
22760 PR target/79645
22761 * common.opt (fdiagnostics-show-labels,
22762 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22763 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22764 gas-locview-support, ginline-points, ginternal-reset-location-views):
22765 Terminate description text with a dot.
22766 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22767 * config/mcore/mcore.opt (m210, m340): Likewise.
22768 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22769 mnops=): Start description text with a capital letter.
22770 * config/arc/arc.opt (msize-level=): Likewise.
22771 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22772 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22773 mnewlib): Likewise.
22774 * config/ft32/ft32.opt (msim): Likewise.
22775 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22776 (mnodiv, mnopm): Terminate description text with a dot.
22777 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22778 a colon.
22779 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22780 Likewise.
22781 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22782 text.
22783
22784 PR rtl-optimization/89634
22785 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22786 are modified in BB_END (e->src) instruction.
22787
22788 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22789
22790 PR target/79926
22791 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22792 messages more amenable to translation, and improve wording.
22793
22794 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22795
22796 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22797 ud- and du-chains between phases.
22798
22799 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22800
22801 PR debug/89631
22802 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22803 instead of POLY_INT_CST.
22804
22805 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22806
22807 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22808 requirement.
22809
22810 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22811
22812 PR target/68924
22813 PR target/78782
22814 PR target/87558
22815 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22816 (_mm_storeu_si64): Ditto.
22817
22818 2019-03-08 Martin Liska <mliska@suse.cz>
22819
22820 PR target/86952
22821 * config/i386/i386.c (ix86_option_override_internal): Disable
22822 jump tables when retpolines are used.
22823
22824 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22825
22826 PR go/63560
22827 * ipa-split.c (execute_split_functions): Do not split
22828 'noinline' or 'section' function.
22829
22830 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22831
22832 PR target/79846
22833 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22834 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22835 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22836
22837 PR ipa/80000
22838 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22839 from diagnostics. Formatting fixes.
22840
22841 PR target/85665
22842 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22843 warn_odr diagnostics.
22844
22845 PR other/80058
22846 * lra-constraints.c (process_alt_operands): Avoid one space before
22847 " at the end of line and another after " on another line in a string
22848 literal.
22849 * attribs.c (handle_dll_attribute): Likewise.
22850 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22851
22852 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22853 warning_at or inform messages in G_() if there is no ?:.
22854
22855 PR tree-optimization/89550
22856 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22857 returned true. Formatting fixes.
22858 (expand_builtin_strnlen): Formatting fixes.
22859 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22860 if warning_at returned true.
22861 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22862
22863 2019-03-08 Richard Biener <rguenther@suse.de>
22864
22865 PR middle-end/89578
22866 * cfgloop.h (struct loop): Add owned_clique field.
22867 * cfgloopmanip.c (copy_loop_info): Copy it.
22868 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22869 cliques.
22870 * tree-inline.c (copy_loops): Remap owned_clique.
22871 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22872 * lto-streamer-out.c (output_cfg): Likewise.
22873
22874 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22875
22876 PR target/80190
22877 * config/darwin.c: Include intl.h.
22878 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22879 composing the message out of two separate parts.
22880
22881 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22882
22883 PR target/80003
22884 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22885 doesn't start with a capital letter and doesn't end with a dot.
22886 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22887 with a capital letter.
22888 (ix86_mangle_function_version_assembler_name): Likewise.
22889 (ix86_generate_version_dispatcher_body): Likewise.
22890 (fold_builtin_cpu): Likewise.
22891 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22892 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22893 translators, wrap full type name in %qs.
22894
22895 PR translation/79999
22896 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22897 depend clause with source (or sink) modifier.
22898 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22899
22900 PR target/89602
22901 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22902 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22903 (avx512f_load<mode>_mask): New define_expand.
22904 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22905 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22906 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22907 __builtin_ia32_movess_mask): New builtins.
22908 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22909 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22910 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22911 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22912
22913 2019-03-07 Martin Jambor <mjambor@suse.cz>
22914
22915 PR lto/87525
22916 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22917 for extern inline functions.
22918
22919 2019-03-07 Martin Jambor <mjambor@suse.cz>
22920
22921 PR ipa/88235
22922 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22923 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22924 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22925 have multiple callees. At the end check if declarations match as
22926 opposed to cgraph_nodes.
22927
22928 2019-03-07 Martin Liska <mliska@suse.cz>
22929
22930 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22931 which is equivalent to searching for this in clones chain.
22932 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22933 names with a neighbour and special case first node in a chain.
22934
22935 2019-01-25 Jason Merrill <jason@redhat.com>
22936
22937 PR c++/80916 - spurious "static but not defined" warning.
22938 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22939 for an internal symbol with DECL_EXTERNAL.
22940
22941 2019-04-07 Richard Biener <rguenther@suse.de>
22942
22943 PR middle-end/89618
22944 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22945 * tree-inline.c (copy_loops): Simplify.
22946
22947 2019-03-07 Martin Liska <mliska@suse.cz>
22948
22949 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22950
22951 2019-03-07 Richard Biener <rguenther@suse.de>
22952
22953 PR tree-optimization/89595
22954 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22955 stmt iterator as reference, take boolean output parameter to
22956 indicate whether the stmt was removed and thus the iterator
22957 already advanced.
22958 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22959 stmts created by folding.
22960
22961 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22962
22963 PR c++/89585
22964 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22965 at toplevel.
22966
22967 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22968
22969 PR rtl-optimization/88845
22970 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22971 LRA.
22972 * lra.c (remove_scratches_1): New function.
22973 (remove_scratches): Use it.
22974 (lra_emit_move): Likewise.
22975
22976 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22977
22978 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22979 unaligned_access variable.
22980 * config/arc/arc.c (arc_override_options): Set unaligned access
22981 default on for HS CPUs.
22982 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22983
22984 2019-03-06 Martin Liska <mliska@suse.cz>
22985
22986 PR gcov-profile/89577
22987 * doc/gcov.texi: Prefer to use --coverage.
22988 * doc/sourcebuild.texi: Likewise.
22989
22990 2019-03-02 Jason Merrill <jason@redhat.com>
22991
22992 PR c++/86485 - -Wmaybe-unused with empty class ?:
22993 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22994
22995 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22996
22997 PR target/89587
22998 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22999 if_multiarch.
23000
23001 PR middle-end/89590
23002 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
23003 exactly one argument.
23004
23005 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23006 Richard Sandiford <richard.sandiford@arm.com>
23007
23008 PR tree-optimization/89570
23009 * match.pd (vec_cond into cond_op simplification): Don't use
23010 get_conditional_internal_fn, use as_internal_fn (cond_op).
23011
23012 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
23013
23014 PR target/89222
23015 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
23016 to decide when to split off a non-zero offset from a symbol.
23017 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
23018 in function symbols.
23019
23020 2019-03-05 Richard Biener <rguenther@suse.de>
23021
23022 PR tree-optimization/89594
23023 * tree-if-conv.c (pass_if_conversion::execute): Handle
23024 case where .LOOP_VECTORIZED_FUNCTION was removed.
23025
23026 2019-03-05 Jakub Jelinek <jakub@redhat.com>
23027
23028 PR bootstrap/89560
23029 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
23030 instead alloca it only when needed with the needed size.
23031
23032 PR tree-optimization/89570
23033 * match.pd (vec_cond into cond_op simplification): Guard with
23034 vectorized_internal_fn_supported_p test and #if GIMPLE.
23035
23036 PR tree-optimization/89566
23037 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
23038 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
23039 Punt if get_user_idx_format succeeds, but idx_format argument is
23040 not provided or doesn't have pointer type, or if idx_args is above
23041 number of provided arguments.
23042
23043 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
23044
23045 PR tree-optimization/89437
23046 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
23047
23048 2019-03-04 Richard Biener <rguenther@suse.de>
23049
23050 PR middle-end/89572
23051 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
23052 safe_dyn_cast.
23053
23054 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
23055
23056 PR tree-optimization/89487
23057 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
23058 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
23059 (distribute_loop): Don't do runtime alias check if there is non-
23060 addressable data reference.
23061 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
23062 is a register variable.
23063
23064 2019-03-02 Jakub Jelinek <jakub@redhat.com>
23065
23066 PR target/89506
23067 * config/arm/arm.md (cmpsi2_addneg): Use
23068 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
23069 If operands[2] is 0 or INT_MIN, force use of subs.
23070 (*compare_scc splitter): Use gen_int_mode.
23071 (*negscc): Likewise.
23072 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
23073
23074 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
23075 Monk Chiang <sh.chiang04@gmail.com>
23076
23077 * common/config/riscv/riscv-common.c: Include sstream.
23078 (riscv_subset_list::to_string): New.
23079 (riscv_arch_str): Likewise.
23080 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
23081 * config.in: Regen.
23082 * config/riscv/riscv-protos.h (riscv_arch_str): New.
23083 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
23084 (riscv_emit_attribute): New.
23085 (riscv_file_start): Emit attribute if needed.
23086 (riscv_option_override): Init riscv_emit_attribute_p.
23087 * config/riscv/riscv.opt (mriscv-attribute): New option.
23088 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
23089 * configure: Regen.
23090 * doc/install.texi: Document --with-riscv-attribute.
23091 * doc/invoke.texi: Document -mriscv-attribute.
23092
23093 * common/config/riscv/riscv-common.c:
23094 Include config/riscv/riscv-protos.h.
23095 (INCLUDE_STRING): Defined.
23096 (RISCV_DONT_CARE_VERSION): Defined.
23097 (riscv_subset_t): Declare.
23098 (riscv_subset_t::riscv_subset_t): New.
23099 (riscv_subset_list): Declare.
23100 (riscv_subset_list::riscv_subset_list): New.
23101 (riscv_subset_list::~riscv_subset_list): Likewise.
23102 (riscv_subset_list::parsing_subset_version): Likewise.
23103 (riscv_subset_list::parse_std_ext): Likewise.
23104 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
23105 (riscv_subset_list::add): Likewise.
23106 (riscv_subset_list::lookup): Likewise.
23107 (riscv_subset_list::xlen): Likewise.
23108 (riscv_subset_list::parse): Likewise.
23109 (riscv_supported_std_ext): Likewise.
23110 (current_subset_list): Likewise.
23111 (riscv_parse_arch_string): Using riscv_subset_list::parse to
23112 parse.
23113
23114 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
23115
23116 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23117 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
23118 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
23119
23120 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
23121
23122 PR rtl-optimization/85899
23123 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
23124 fallthru edges leading to the exit block.
23125
23126 2019-03-01 Tamar Christina <tamar.christina@arm.com>
23127
23128 PR target/89517
23129 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
23130 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
23131
23132 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
23133
23134 PR tree-optimization/89535
23135 * tree-vect-stmts.c (vectorizable_call): Record the vector types
23136 for each operand. Calculate the fallback choice for mask operands
23137 and pass it to vect_get_vec_def_for_operand.
23138
23139 2019-03-01 Richard Biener <rguenther@suse.de>
23140
23141 PR middle-end/89541
23142 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
23143 get virtual operands.
23144 (get_expr_operands): Handle CONST_DECL like other decls.
23145
23146 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23147
23148 PR middle-end/89503
23149 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
23150 on DECL_P and EXPR_P.
23151
23152 2019-03-01 Richard Biener <rguenther@suse.de>
23153
23154 PR middle-end/89497
23155 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
23156 argument, defaulted to zero.
23157 * passes.c (execute_function_todo): Pass down SSA update flags
23158 to cleanup_tree_cfg.
23159 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
23160 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
23161 form if requested.
23162 (cleanup_tree_cfg): Get and pass down SSA update flags.
23163
23164 2019-03-01 Jakub Jelinek <jakub@redhat.com>
23165
23166 PR bootstrap/89539
23167 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
23168 early_lto_debug argument.
23169
23170 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
23171
23172 PR tree-optimization/89536
23173 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
23174 only whether bit #0 of the value is 0 instead of the entire value.
23175
23176 2019-02-28 Marek Polacek <polacek@redhat.com>
23177
23178 PR c++/87068 - missing diagnostic with fallthrough statement.
23179 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
23180 at the end of a seq, save its location to walk_stmt_info.
23181 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
23182 a switch.
23183
23184 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
23185
23186 PR lto/88585
23187 * tree.c (find_atomic_core_type): Move ahead in file.
23188 (check_base_type): Correctly compare alignments of atomic types.
23189
23190 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
23191
23192 PR target/89455
23193 * config/i386/i386.c (get_builtin_code_for_version): Identify
23194 Westmere from PCLMUL, instead of AES.
23195
23196 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23197
23198 PR target/89434
23199 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
23200 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
23201 -UINTVAL (...).
23202
23203 2019-02-28 Tamar Christina <tamar.christina@arm.com>
23204
23205 PR target/88530
23206 * config/aarch64/aarch64-option-extensions.def: Document it.
23207 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
23208 if empty hwcaps.
23209
23210 2019-02-28 Jakub Jelinek <jakub@redhat.com>
23211
23212 PR c/89520
23213 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
23214 builtins if they don't have a single scalar floating point argument.
23215 Formatting fixes.
23216
23217 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
23218
23219 PR rtl-optimization/89490
23220 * varasm.c (get_block_for_section): Bail out for mergeable sections.
23221 (default_use_anchors_for_symbol_p, output_object_block): Assert the
23222 block section is not mergeable.
23223
23224 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23225
23226 PR target/70341
23227 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
23228 old define_insn to ...
23229 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
23230 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
23231 Rename old define_insn to ...
23232 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
23233 (thumb2_casesi_internal_pic): New define_expand. Rename old
23234 define_insn to ...
23235 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
23236 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
23237 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
23238
23239 2019-02-27 Richard Biener <rguenther@suse.de>
23240
23241 PR debug/88878
23242 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
23243
23244 2019-02-27 Richard Biener <rguenther@suse.de>
23245
23246 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
23247 building.
23248
23249 2019-02-27 Richard Biener <rguenther@suse.de>
23250
23251 PR debug/88878
23252 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
23253 parameter, prefix section name with .gnu.debuglto_ if true.
23254 (dwarf2out_finish): Pass false to output_comdat_type_unit.
23255 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
23256
23257 2019-02-27 Richard Biener <rguenther@suse.de>
23258
23259 PR debug/89514
23260 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
23261 rather than on use_debug_types, doing what output_die does.
23262 (value_format): Likewise.
23263
23264 2019-02-27 Martin Jambor <mjambor@suse.cz>
23265 Martin Sebor <msebor@redhat.com>
23266
23267 * doc/invoke.texi (Warning Options): Reword description of
23268 -Wno-absolute-value.
23269
23270 2019-02-27 Jakub Jelinek <jakub@redhat.com>
23271
23272 PR tree-optimization/89280
23273 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
23274 builtin_setjmp_setup_bb): New functions.
23275 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
23276 When visiting __builtin_setjmp_setup block, queue in special
23277 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
23278 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
23279 from visited after the loop if they don't have any visited successor
23280 blocks.
23281
23282 2018-02-26 Steve Ellcey <sellcey@marvell.com>
23283
23284 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
23285 New function.
23286 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
23287
23288 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23289
23290 PR c++/89507
23291 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
23292 with types other than sizetype/ssizetype.
23293
23294 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23295
23296 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
23297 (enum sparc_processor_type): ...this.
23298 (enum sparc_code_model_type): New enumeration type.
23299 (enum sparc_memory_model_type): Tweak comments.
23300 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
23301 (mtune): Likewise.
23302 (mcmodel): Use sparc_code_model enumeration and variable.
23303 (sparc_code_model): New enumeration.
23304 (mdebug): Add Undocumented marker.
23305 * config/sparc/sparc.h (enum cmodel): Delete.
23306 (sparc_cmodel): Likewise.
23307 (TARGET_CM_MEDLOW): Adjust to above renaming.
23308 (TARGET_CM_MEDMID): Likewise.
23309 (TARGET_CM_MEDANY): Likewise.
23310 (TARGET_CM_EMBMEDANY): Likewise.
23311 * config/sparc/sparc.c (sparc_cmodel): Delete.
23312 (sparc_option_override): Remove string/value mapping support for the
23313 code model. Move code and memory model support to after the handling
23314 of target flags. Do private machine setup last.
23315 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
23316 (sparc_legitimize_reload_address): Likewise.
23317 (sparc_output_mi_thunk): Likewise.
23318 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
23319
23320 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23321
23322 PR tree-optimization/89500
23323 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
23324 (handle_builtin_strlen): Remove noncst_bound variable. Always
23325 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
23326 cst if the first cst bytes starting at x are known to be non-zero,
23327 even if the string is not zero terminated. Don't try to modify
23328 *si for strnlen. Update strlen_to_stridx only for strlen or if
23329 we can prove strnlen returns the same value as strlen would.
23330
23331 2019-02-26 Martin Liska <mliska@suse.cz>
23332
23333 * alloc-pool.h (struct pool_usage): Remove extra
23334 print_dash_line.
23335 * bitmap.h (struct bitmap_usage): Likewise.
23336 * ggc-common.c (struct ggc_usage): Likewise.
23337 * mem-stats.h (struct mem_usage): Likewise.
23338 (mem_alloc_description::dump): Print dash lines
23339 here and repeat header at the end of a table report.
23340 It's then more readable.
23341 * tree-phinodes.c (phinodes_print_statistics): Make
23342 horizontal alignment.
23343 * tree-ssanames.c (ssanames_print_statistics): Likewise.
23344 * vec.c (struct vec_usage): Remove extra print_dash_line.
23345 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
23346
23347 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
23348
23349 * doc/extend.texi (__builtin_object_size):
23350 Use @pxref instead of @xref inside parenthesis.
23351 (__builtin_has_attribute): Add missing comma after @xref.
23352 (__builtin_object_size): Ditto.
23353 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
23354
23355 2019-02-26 Jeff Law <law@redhat.com>
23356
23357 PR rtl-optimization/87761
23358 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
23359 detect obviously dead insns and delete them.
23360
23361 2019-02-26 Richard Biener <rguenther@suse.de>
23362
23363 PR tree-optimization/89505
23364 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
23365 to handle restrict pointed-to vars with multiple subvars
23366 correctly.
23367
23368 2019-02-26 Richard Biener <rguenther@suse.de>
23369
23370 PR tree-optimization/89489
23371 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23372
23373 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23374
23375 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23376 and move around comment.
23377 <BIT_AND_EXPR>: Likewise.
23378 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23379
23380 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23381
23382 PR target/89474
23383 * config/i386/i386.c (remove_partial_avx_dependency): Call
23384 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23385 after changing possibly many instructions to use that pseudo. Fix up
23386 insertion of v4sf_const0 setter at the start of bb.
23387
23388 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23389
23390 PR c/80409
23391 * doc/extend.texi (Variadic Pointer Args): New section.
23392
23393 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23394 Martin Sebor <msebor@gmail.com>
23395
23396 * common.opt (Wattribute-alias): Likewise.
23397 * doc/invoke.texi (Option Summary): List general form of
23398 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23399 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23400 Add cross-references.
23401 (-Wattribute-alias): Rewrite and correct default. Mention
23402 considered attributes (same as for -Wmissing-attributes).
23403
23404 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23405
23406 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23407 (_mm_cvtpd_ps): Likewise.
23408 (_mm_cvttpd_epi32): Likewise.
23409
23410 PR target/89338
23411 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23412 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23413
23414 PR target/89339
23415 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23416
23417 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23418
23419 PR target/88530
23420 * common/config/aarch64/aarch64-common.c
23421 (struct aarch64_option_extension): Add is_synthetic.
23422 (all_extensions): Use it.
23423 (TARGET_OPTION_INIT_STRUCT): Define hook.
23424 (struct gcc_targetm_common): Moved to end.
23425 (all_extensions_by_on): New.
23426 (opt_ext_cmp, typedef opt_ext): New.
23427 (aarch64_option_init_struct): New.
23428 (aarch64_contains_opt): New.
23429 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23430 * config/aarch64/aarch64-option-extensions.def
23431 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23432 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23433 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23434 Set is_synthetic to false.
23435 (crypto): Set is_synthetic to true.
23436 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23437 SYNTHETIC.
23438
23439 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23440
23441 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23442 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23443 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23444 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23445 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23446 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23447 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23448 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23449 Rename ...
23450 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23451 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23452 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23453 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23454 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23455 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23456 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23457 vfmlsl_laneq_high_f16): ... To this.
23458 * config/arm/neon.md: Update comments.
23459
23460 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23461
23462 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23463 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23464 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23465 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23466 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23467 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23468 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23469 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23470 Rename ...
23471 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23472 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23473 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23474 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23475 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23476 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23477 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23478 vfmlslq_laneq_high_f16): ... To this.
23479
23480 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23481
23482 PR rtl-optimization/86096
23483 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23484 comparing mw_order values.
23485
23486 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23487
23488 PR target/89434
23489 * config/arm/arm.md (*subsi3_carryin_const): Use
23490 arm_neg_immediate_operand predicate instead of
23491 arm_not_immediate_operand, "L" constraint instead of "K" and
23492 print it using %n2 instead of %B2.
23493 (*subsi3_carryin_const0): New define_insn.
23494 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23495 instead of arm_not_operand and "I" constraint instead of "K" and
23496 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23497 another match_operand and in the condition check that it is negation
23498 of operands[2].
23499 (*subsi3_carryin_compare_const0): New define_ins.
23500 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23501 *subsi3_carryin_const.
23502 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23503 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23504
23505 PR target/89438
23506 * config/arm.vfp.md (*negdf2_vfp): Use
23507 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23508 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23509
23510 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23511
23512 PR rtl-optimization/89445
23513 * simplify-rtx.c (simplify_ternary_operation): Don't use
23514 simplify_merge_mask on operands that may trap.
23515 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23516 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23517 second operand is CONST_VECTOR, check if any element could be zero.
23518 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23519 their operands can trap.
23520
23521 2019-02-23 Martin Sebor <msebor@redhat.com>
23522
23523 * gimple-ssa-sprintf.c (target_strtol): Rename...
23524 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23525 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23526 check for range error.
23527
23528 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23529
23530 PR driver/69471
23531 * opts-common.c (prune_options): Also prune joined switches
23532 with Negative and RejectNegative.
23533 * config/i386/i386.opt (march=): Add Negative(march=).
23534 (mtune=): Add Negative(mtune=).
23535 * doc/options.texi: Document Negative used together with Joined
23536 and RejectNegative.
23537
23538 2019-02-22 Martin Sebor <msebor@redhat.com>
23539
23540 * doc/extend.texi (Other Builtins): Add
23541 __builtin_is_constant_evaluated.
23542
23543 2019-02-22 Richard Biener <rguenther@suse.de>
23544
23545 PR tree-optimization/87609
23546 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23547
23548 2019-02-22 Jeff Law <law@redhat.com>
23549
23550 PR rtl-optimization/87761
23551 * config/mips/mips.md: Add new combiner pattern to recognize
23552 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23553
23554 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23555
23556 PR target/89324
23557 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23558 destination register in peepholes generating patterns for ADDS/SUBS.
23559 (add<mode>3_compare0,
23560 *addsi3_compare0_uxtw, add<mode>3_compareC,
23561 add<mode>3_compareV_imm, add<mode>3_compareV,
23562 *adds_<optab><ALLX:mode>_<GPI:mode>,
23563 *subs_<optab><ALLX:mode>_<GPI:mode>,
23564 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23565 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23566 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23567 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23568 sub<mode>3_compare1): Allow stack pointer for source register.
23569 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23570
23571 2019-02-22 Martin Sebor <msebor@redhat.com>
23572
23573 PR tree-optimization/88993
23574 PR tree-optimization/88853
23575 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23576 New helper.
23577 (sprintf_dom_walker::call_info::is_string_func): New helper.
23578 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23579 for formatted string functions.
23580 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23581
23582 2019-02-22 Martin Sebor <msebor@redhat.com>
23583
23584 PR c/89425
23585 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23586 unreachable subexpressions.
23587
23588 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23589 Hongtao Liu <hongtao.liu@intel.com>
23590 Sunil K Pandey <sunil.k.pandey@intel.com>
23591
23592 PR target/87007
23593 * config/i386/i386-passes.def: Add
23594 pass_remove_partial_avx_dependency.
23595 * config/i386/i386-protos.h
23596 (make_pass_remove_partial_avx_dependency): New.
23597 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23598 New function.
23599 (pass_data_remove_partial_avx_dependency): New.
23600 (pass_remove_partial_avx_dependency): Likewise.
23601 (make_pass_remove_partial_avx_dependency): Likewise.
23602 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23603 (*extendsfdf2): Add avx_partial_xmm_update.
23604 (truncdfsf2): Likewise.
23605 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23606 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23607
23608 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23609
23610 PR middle-end/85598
23611 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23612 analysis for pass.
23613
23614 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23615
23616 PR target/89444
23617 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23618 (PTA_SKYLAKE): Add PTA_AES.
23619 (PTA_GOLDMONT): Likewise.
23620
23621 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23622
23623 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23624 instruction if enabled.
23625 (aarch64_override_options): Remove reference to return address key.
23626
23627 2019-02-22 Richard Biener <rguenther@suse.de>
23628
23629 PR tree-optimization/89440
23630 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23631 not necessary assert.
23632
23633 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23634
23635 PR fortran/72741
23636 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23637 (oacc_replace_fn_attrib_attr): ... this new function.
23638 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23639 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23640
23641 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23642
23643 * config/arm/arm-cpus.in (ares): Rename to...
23644 (neoverse-n1): ... This. Add ares as alias.
23645 * config/arm/arm-tables.opt: Regenerate.
23646 * config/arm/arm-tune.md: Likewise.
23647 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23648
23649 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23650
23651 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23652 * config/aarch64/aarch64-tune.md: Regenerate.
23653 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23654
23655 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23656
23657 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23658 (neoversen1_tunings): ... This.
23659 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23660 (neoverse-n1): New CPU.
23661 * config/aarch64/aarch64-tune.md: Regenerate.
23662 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23663
23664 2019-02-22 Richard Biener <rguenther@suse.de>
23665
23666 PR middle-end/87609
23667 * cfghooks.h (dependence_hash): New typedef.
23668 (struct copy_bb_data): New type.
23669 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23670 (duplicate_block): Likewise.
23671 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23672 (copy_bbs): Create and pass down copy_bb_data.
23673 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23674 (rtl_duplicate_bb): Likewise.
23675 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23676 remap dependence info.
23677
23678 2019-02-22 Richard Biener <rguenther@suse.de>
23679
23680 PR tree-optimization/87609
23681 * tree-core.h (tree_base): Document special clique values.
23682 * tree-inline.c (remap_dependence_clique): Do not use the
23683 special clique value of one.
23684 (maybe_set_dependence_info): Use clique one.
23685 (clear_dependence_clique): New callback.
23686 (compute_dependence_clique): Clear clique one from all refs
23687 before assigning it (again).
23688
23689 2019-02-21 Martin Sebor <msebor@redhat.com>
23690
23691 * doc/extend.texi (__clear_cache): Correct signature.
23692
23693 2019-02-21 Ian Lance Taylor <iant@golang.org>
23694
23695 PR go/89170
23696 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23697 than output_constant_def.
23698 (add_constant_to_table): New static function.
23699 (output_constant_def): Call add_constant_to_table.
23700 (tree_output_constant_def): Likewise.
23701
23702 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23703
23704 PR c++/89285
23705 * builtins.c (fold_builtin_arith_overflow): If first two args are
23706 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23707 to ifn.
23708
23709 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23710
23711 PR target/87412
23712 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23713 error for -mindirect-branch/-mfunction-return with incompatible
23714 -fcf-protection.
23715
23716 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23717
23718 PR bootstrap/88714
23719 * constraints.md (q): Remove.
23720 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23721 instead of q.
23722
23723 2019-02-21 Martin Jambor <mjambor@suse.cz>
23724
23725 PR hsa/89302
23726 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23727 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23728 (omp_adjust_for_condition): ...here. Added necessary parameters.
23729 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23730 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23731 proper values to new parameters of omp_adjust_for_condition.
23732
23733 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23734
23735 PR middle-end/89412
23736 * expr.c (expand_assignment): If result is a MEM, use change_address
23737 instead of simplify_gen_subreg.
23738
23739 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23740 David Malcolm <dmalcolm@redhat.com>
23741
23742 PR middle-end/89091
23743 * fold-const.c (decode_field_reference): Return NULL_TREE if
23744 lang_hooks.types.type_for_size returns NULL. Check it before
23745 overwriting *exp_. Use return NULL_TREE instead of return 0.
23746
23747 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23748
23749 PR middle-end/88074
23750 PR middle-end/89415
23751 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23752 buggy mpc_norm.
23753
23754 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23755
23756 PR target/89397
23757 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23758 TARGET_SSE in addition to TARGET_SSE_MATH.
23759
23760 (ix86_excess_precision): Ditto.
23761 (ix86_float_exceptions_rounding_supported_p): Ditto.
23762 (use_rsqrt_p): Ditto.
23763 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23764
23765 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23766
23767 PR c/89410
23768 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23769 linenum_arith_t when determining if two adjacent line spans are
23770 close enough to merge.
23771 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23772 lines within each line_span.
23773
23774 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23775
23776 PR target/86487
23777 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23778 paradoxical SUBREGS.
23779
23780 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23781
23782 PR target/88100
23783 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23784 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23785 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23786 range checking it.
23787
23788 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23789
23790 * config/gcn/gcn.c (print_operand): Fix typo.
23791
23792 2019-02-19 Richard Biener <rguenther@suse.de>
23793
23794 PR middle-end/88074
23795 * toplev.c (do_compile): Initialize mpfr's exponent range
23796 based on available float modes.
23797
23798 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23799
23800 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23801 as long as the epilogue isn't completed.
23802
23803 2019-02-18 Martin Sebor <msebor@redhat.com>
23804
23805 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23806 __has_cpp_attribute, and __has_include.
23807
23808 2019-02-18 Martin Sebor <msebor@redhat.com>
23809
23810 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23811
23812 2019-02-18 Martin Sebor <msebor@redhat.com>
23813
23814 PR middle-end/89294
23815 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23816 expression.
23817 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23818
23819 2019-02-18 Richard Biener <rguenther@suse.de>
23820
23821 PR tree-optimization/89296
23822 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23823 of no-warning flag to cases that might emit the bogus warning.
23824
23825 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23826
23827 PR bootstrap/88714
23828 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23829 "q" constraint.
23830 * config/arm/vfp.md (*movdi_vfp): Likewise.
23831 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23832 "q" constraint for operands[0].
23833
23834 PR target/89369
23835 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23836 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23837 pattern in a temporary buffer.
23838 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23839 than 64-operands[2].
23840
23841 PR target/89361
23842 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23843 s390_indirect_branch_settings): Define unconditionally.
23844 (s390_set_current_function): Likewise, but guard the whole body except
23845 the s390_indirect_branch_settings call with
23846 #if S390_USE_TARGET_ATTRIBUTE.
23847 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23848
23849 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23850 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23851 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23852 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23853 HOST_WIDE_INT_1U instead of 1ULL.
23854 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23855 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23856 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23857 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23858 instead of 1UL.
23859 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23860 instead of 1ul.
23861
23862 2019-02-18 Martin Jambor <mjambor@suse.cz>
23863
23864 PR tree-optimization/89209
23865 * tree-sra.c (create_access_replacement): New optional parameter
23866 reg_tree. Use it as a type if non-NULL and access type is not of
23867 a register type.
23868 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23869 to create_access_replacement.
23870 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23871 Check lacc is non-NULL before attempting to re-create it on the RHS.
23872
23873 2019-02-18 Martin Liska <mliska@suse.cz>
23874
23875 PR ipa/89306
23876 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23877 by default.
23878 (symbol_table::free_edge): Recycle m_summary_id.
23879 * cgraph.h (get_summary_id): New.
23880 (symbol_table::release_symbol): Set m_summary_id to -1
23881 by default.
23882 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23883 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23884 function_summary to fast_function_summary.
23885 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23886 * ipa-pure-const.c (class funct_state_summary_t):
23887 Switch from function_summary to fast_function_summary.
23888 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23889 (class ipa_ref_opt_summary_t): Switch from function_summary
23890 to fast_function_summary.
23891 * symbol-summary.h (class function_summary_base): New class
23892 that is created from base of former function_summary.
23893 (function_summary_base::unregister_hooks): New.
23894 (class function_summary): Inherit from function_summary_base.
23895 (class call_summary_base): New class
23896 that is created from base of former call_summary.
23897 (class call_summary): Inherit from call_summary_base.
23898 (struct is_same): New.
23899 (class fast_function_summary): New summary class.
23900 (class fast_call_summary): New summary class.
23901 * vec.h (vec_safe_grow_cleared): New function.
23902
23903 2019-02-18 Martin Liska <mliska@suse.cz>
23904
23905 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23906 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23907 * doc/tm.texi: Document new target hook.
23908 * doc/tm.texi.in: Likewise.
23909 * target.def: Add new target macro.
23910 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23911 suffixes.
23912
23913 2019-02-17 Alan Modra <amodra@gmail.com>
23914
23915 PR target/89271
23916 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23917 output reg on add insn.
23918 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23919
23920 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23921
23922 PR target/89372
23923 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23924 (PMULHRSW): Likewise.
23925 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23926 TARGET_AVX2.
23927 (ssse3_pmulhrswv4hi3): New expander.
23928
23929 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23930
23931 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23932 MMX. Add isa attribute.
23933
23934 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23935
23936 PR rtl-optimization/66152
23937 * builtins.h (c_readstr): Declare.
23938 * builtins.c (c_readstr): Remove forward declaration. Add
23939 null_terminated_p argument, if false, read all bytes from the
23940 string instead of stopping after '\0'.
23941 * expr.c (string_cst_read_str): New function.
23942 (store_expr): Use string_cst_read_str instead of
23943 builtin_strncpy_read_str. Try to store by pieces the whole
23944 exp_len first, and only if that fails, split it up into
23945 store by pieces followed by clear_storage. Formatting fix.
23946
23947 * config/i386/i386.md (*movqi_internal): Remove static from
23948 buf variable. Use output_asm_insn (buf, operands); return "";
23949 instead of return buf;.
23950 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23951 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23952 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23953
23954 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23955
23956 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23957 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23958 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23959 (CC1_SPEC): Likewise.
23960 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23961
23962 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23963
23964 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23965 the base address on 64-bit strict-alignment platforms.
23966
23967 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23968
23969 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23970
23971 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23972
23973 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23974
23975 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23976
23977 PR rtl-optimization/88308
23978 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23979 on copied instruction.
23980
23981 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23982
23983 * final.c (insn_current_reference_address): Replace test on JUMP_P
23984 with test on jump_to_label_p.
23985 * config/visium/visium-passes.def: New file.
23986 * config/visium/t-visium (PASSES_EXTRA): Define.
23987 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23988 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23989 (TRAMPOLINE_ALIGNMENT): Define.
23990 * config/visium/visium.c (visium_option_override): Do not register
23991 the machine-specific reorg pass here.
23992 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23993 for the GR6.
23994 (output_branch): Adjust threshold for long branch instruction.
23995 * config/visium/visium.md (cpu): Move around.
23996 (length): Adjust for the GR6.
23997
23998 2019-02-15 Richard Biener <rguenther@suse.de>
23999 Jakub Jelinek <jakub@redhat.com>
24000
24001 PR tree-optimization/89278
24002 * tree-loop-distribution.c: Include tree-eh.h.
24003 (generate_memset_builtin, generate_memcpy_builtin): Call
24004 rewrite_to_non_trapping_overflow on builtin->size before passing it
24005 to force_gimple_operand_gsi.
24006
24007 2019-02-15 Jakub Jelinek <jakub@redhat.com>
24008
24009 PR other/89342
24010 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
24011 optimize_debug.
24012 * opth-gen.awk: Likewise.
24013
24014 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
24015
24016 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
24017 Enable MMX, SSE and SSE2 by default.
24018 * config/i386/i386.c (ix86_option_override_internal): Do not
24019 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
24020
24021 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24022
24023 PR rtl-optimization/89354
24024 * combine.c (make_extraction): Punt if extraction_mode is narrower
24025 than len bits.
24026
24027 2019-02-14 Maya Rashish <coypu@sdf.org>
24028
24029 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
24030 * config/netbsd-d.c: New file.
24031 * config/t-netbsd: Add netbsd-d.o
24032
24033 2018-02-14 Steve Ellcey <sellcey@marvell.com>
24034
24035 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
24036 affects_type_identity to true for aarch64_vector_pcs.
24037 (aarch64_comp_type_attributes): New function.
24038 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
24039
24040 2019-02-14 Tamar Christina <tamar.christina@arm.com>
24041
24042 PR target/88850
24043 * config/arm/iterators.md (ANY64): Add V4HF.
24044
24045 2019-02-14 Martin Liska <mliska@suse.cz>
24046
24047 PR rtl-optimization/89242
24048 * dce.c (delete_unmarked_insns): Call free_dominance_info we
24049 process a transformation.
24050
24051 2019-02-14 Jakub Jelinek <jakub@redhat.com>
24052
24053 PR tree-optimization/89314
24054 * fold-const.c (fold_binary_loc): Cast strlen argument to
24055 const char * before dereferencing it. Formatting fixes.
24056
24057 PR middle-end/89284
24058 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
24059
24060 2019-02-13 Ian Lance Taylor <iant@golang.org>
24061
24062 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
24063 and set current index for other optimizations.
24064
24065 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
24066
24067 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
24068 nonimmediate_operand as operand 2 predicate.
24069 (vec_set<VF2_512_256:mode>_0): Ditto.
24070 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
24071 (*vec_concatv2si): Remove alternative 2.
24072 (*vec_concatv4si_0): Use vm constraint for alternative 0.
24073 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
24074 (vec_concatv2di): Split alternatives 4,5,6 to ...
24075 (*vec_concatv2di_0) ... new pattern.
24076
24077 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
24078
24079 PR target/89190
24080 * config/arm/arm.c (ldm_stm_operation_p) Set
24081 addr_reg_in_reglist correctly for first register.
24082 (load_multiple_sequence): Remove dead base check.
24083 (gen_ldm_seq): Correctly set write_back for Thumb-1.
24084
24085 2019-02-13 Tamar Christina <tamar.christina@arm.com>
24086
24087 PR target/88847
24088 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
24089 Expose as @aarch64_pred_mov.
24090 * config/aarch64/aarch64.c (aarch64_classify_address):
24091 Use expand_insn which legitimizes operands.
24092
24093 2019-02-13 Martin Liska <mliska@suse.cz>
24094
24095 * builtins.h (expand_builtin_with_bounds): Remove declaration.
24096 * calls.c (struct arg_data): Remove special_slot, pointer_arg
24097 and pointer_offset fields.
24098 (initialize_argument_information): Remove usage of dead
24099 fields.
24100 * cgraph.h (struct cgraph_thunk_info): Remove
24101 add_pointer_bounds_args.
24102 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
24103 fields.
24104 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
24105 fields.
24106 * config/i386/i386.c (ix86_function_arg_advance): Remove
24107 unrelated comment.
24108 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
24109 (def_builtin): Remove usage of dead fields.
24110 (ix86_add_new_builtins): Likewise.
24111 * ipa-fnsummary.c (compute_fn_summary): Likewise.
24112 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24113 (sem_function::init): Likewise.
24114 (sem_variable::merge): Likewise.
24115 * ipa-visibility.c (function_and_variable_visibility): Likewise.
24116 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
24117 * lto-cgraph.c (lto_output_node): Likewise.
24118 (lto_output_varpool_node): Likewise.
24119 (input_node): Likewise.
24120 (input_varpool_node): Likewise.
24121 * lto-streamer-out.c (lto_output): Likewise.
24122 * tree-inline.c (expand_call_inline): Remove usage of
24123 assign_stmts.
24124 * tree-inline.h (struct copy_body_data): Likewise.
24125 * varpool.c (varpool_node::dump): Likewise.
24126
24127 2019-02-13 Jakub Jelinek <jakub@redhat.com>
24128
24129 PR middle-end/89303
24130 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
24131 into pt->vars_contains_escaped_heap instead of setting
24132 pt->vars_contains_escaped_heap to it.
24133
24134 PR middle-end/89281
24135 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
24136 INTVAL (size), compare it to GET_MODE_MASK instead of
24137 1 << GET_MODE_BITSIZE.
24138
24139 PR target/89290
24140 * config/i386/predicates.md (x86_64_immediate_operand): Allow
24141 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
24142 -mcmodel=large.
24143
24144 2019-02-13 Martin Liska <mliska@suse.cz>
24145
24146 PR lto/88858
24147 * cfgrtl.c (remove_barriers_from_footer): New function.
24148 (try_redirect_by_replacing_jump): Use it.
24149 (cfg_layout_redirect_edge_and_branch): Likewise.
24150
24151 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24152
24153 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
24154 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
24155 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
24156 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
24157 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
24158 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
24159 New BU_CRYPTO_2.
24160 * config/rs6000/rs6000.c (builtin_function_type)
24161 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
24162 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
24163 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
24164 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
24165 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
24166
24167 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
24168
24169 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
24170 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
24171
24172 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
24173
24174 PR target/89229
24175 * config/i386/i386.md (*movoi_internal_avx): Revert revision
24176 268678 and revision 268657.
24177 (*movti_internal): Likewise.
24178
24179 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
24180
24181 PR target/89233
24182 * config/s390/s390.c (s390_decompose_address): Update comment.
24183 (s390_check_qrst_address): Reject invalid address forms after
24184 LRA.
24185
24186 2019-02-12 Martin Liska <mliska@suse.cz>
24187
24188 PR lto/88876
24189 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
24190 we need default values of funct_state for a function that
24191 is not optimized.
24192
24193 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
24194
24195 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
24196 the object to pick the size of stores on strict-alignment platforms.
24197
24198 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
24199 (*movdi_insn_sp32): Likewise.
24200 (*movdi_insn_sp64): Likewise.
24201
24202 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
24203
24204 PR lto/88677
24205 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
24206 types that needs constructiong.
24207 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
24208
24209 2019-02-12 Richard Biener <rguenther@suse.de>
24210
24211 PR tree-optimization/89253
24212 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
24213 duplicate the loop.
24214
24215 2019-02-11 David Malcolm <dmalcolm@redhat.com>
24216
24217 PR lto/88147
24218 * input.c (selftest::test_line_offset_overflow): New selftest.
24219 (selftest::input_c_tests): Call it.
24220
24221 2019-02-11 Martin Sebor <msebor@redhat.com>
24222
24223 PR tree-optimization/88771
24224 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
24225 when -Wstringop-overflow is set.
24226 (builtin_memref::builtin_memref): Adjust excessive upper bound
24227 only when lower bound is not excessive.
24228 (maybe_diag_overlap): Detect and diagnose excessive bounds via
24229 -Wstringop-ovefflow.
24230 (maybe_diag_offset_bounds): Rename...
24231 (maybe_diag_access_bounds): ...to this.
24232 (check_bounds_or_overlap): Adjust for name change above.
24233
24234 2019-02-11 Martin Sebor <msebor@redhat.com>
24235
24236 PR c++/87996
24237 * builtins.c (max_object_size): Move from here...
24238 * builtins.h (max_object_size): ...and here...
24239 * tree.c (max_object_size): ...to here...
24240 * tree.h (max_object_size): ...and here.
24241
24242 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
24243
24244 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
24245 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
24246 for correct semantics.
24247
24248 2019-02-11 Alan Modra <amodra@gmail.com>
24249
24250 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
24251 -mlongcall and -mpltseq.
24252 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
24253 (RS/6000 and PowerPC Options <-mpltseq>): Document.
24254 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
24255 * config/rs6000/sysv4.opt (mpltseq): New option.
24256 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
24257 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
24258 support is lacking. Don't allow -mpltseq with -mbss-plt.
24259 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
24260 -mpltseq given for ELFv1.
24261 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
24262 Only use UNSPEC_PLTSEQ for inline PLT calls.
24263 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
24264 use UNSPEC_PLTSEQ for inline PLT calls.
24265 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
24266 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
24267 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
24268 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24269 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24270 (pltseq_mtctr_<mode>): Likewise.
24271
24272 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24273
24274 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
24275 Solaris ld.
24276 * configure: Regenerate.
24277
24278 2019-02-11 Jakub Jelinek <jakub@redhat.com>
24279
24280 PR bootstrap/88714
24281 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
24282 instead of r.
24283
24284 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24285
24286 * function.c (assign_parm_setup_block): Use the stored
24287 size, not the passed size, when allocating stack-space,
24288 also for a parameter with alignment larger than
24289 MAX_SUPPORTED_STACK_ALIGNMENT.
24290
24291 2019-02-11 Martin Liska <mliska@suse.cz>
24292
24293 PR ipa/89009
24294 * ipa-cp.c (build_toporder_info): Remove usage of a param.
24295 * ipa-inline.c (inline_small_functions): Likewise.
24296 * ipa-pure-const.c (propagate_pure_const): Likewise.
24297 (propagate_nothrow): Likewise.
24298 * ipa-reference.c (propagate): Likewise.
24299 * ipa-utils.c (struct searchc_env): Remove unused field.
24300 (searchc): Always search across AVAIL_INTERPOSABLE.
24301 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
24302 the only called IPA pure const can properly not propagate
24303 across interposable boundary.
24304 * ipa-utils.h (ipa_reduced_postorder): Remove param.
24305
24306 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
24307
24308 * config/nds32/nds32.md (call_internal, call_value_internal,
24309 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
24310
24311 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
24312
24313 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
24314 typo.
24315
24316 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
24317
24318 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
24319 in comments
24320
24321 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24322
24323 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
24324
24325 2019-02-10 Jakub Jelinek <jakub@redhat.com>
24326
24327 PR tree-optimization/89268
24328 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
24329 if preds is non-NULL.
24330
24331 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24332
24333 PR lto/89272
24334 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
24335 polymorphic types.
24336
24337 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24338
24339 * config/nds32/nds32.md (trap): New pattern.
24340
24341 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
24342
24343 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
24344 dwarf span.
24345
24346 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
24347
24348 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
24349 to split POST_INC.
24350
24351 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24352
24353 * ipa-visibility.c (localize_node): Also do not localize
24354 LDPR_PREVAILING_DEF_IRONLY_EXP.
24355
24356 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24357
24358 PR lto/87957
24359 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
24360 instead of type_with_linkage.
24361
24362 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
24363
24364 PR ipa/88755
24365 * params.def (uninlined-function-insns, uninlined-function-time,
24366 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
24367 bound so we don't get overflows.
24368
24369 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
24370
24371 * config/rs6000/rs6000-string.c (expand_compare_loop,
24372 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24373 memcmp/strncmp.
24374
24375 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24376
24377 PR middle-end/89246
24378 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24379 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24380 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24381
24382 2019-02-09 Alan Modra <amodra@gmail.com>
24383
24384 PR target/88343
24385 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24386 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24387 setup.
24388
24389 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24390
24391 PR middle-end/88560
24392 * lra-constraints.c (process_alt_operands): Don't increase reject
24393 for memory when offset memory is required.
24394
24395 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24396
24397 * config/s390/vector.md: Implement vector copysign.
24398
24399 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24400
24401 * expr.c (expand_constructor): Correct indentations.
24402
24403 2019-02-08 Richard Biener <rguenther@suse.de>
24404
24405 PR tree-optimization/89247
24406 * tree-if-conv.c: Include tree-cfgcleanup.h.
24407 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24408 (tree_if_conversion): Pass through predicate vector.
24409 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24410 inline, see if any if-converted loops we refrece in
24411 LOOP_VECTORIZED calls vanished and fixup.
24412 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24413
24414 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24415
24416 * config/s390/constraints.md (jdd): New constraint.
24417
24418 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24419
24420 PR target/89229
24421 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24422 upper 16 vector registers without TARGET_AVX512VL.
24423 (*movti_internal): Likewise.
24424
24425 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24426
24427 PR rtl-optimization/89234
24428 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24429 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24430 (copy_reg_eh_region_note_backward): Likewise.
24431
24432 2019-02-08 Richard Biener <rguenther@suse.de>
24433
24434 PR middle-end/89223
24435 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24436 doesn't fit in HWI.
24437 (analyze_subscript_affine_affine): Handle failure from
24438 initialize_matrix_A.
24439
24440 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24441
24442 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24443 cfun everywhere.
24444
24445 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24446
24447 PR tree-optimization/86637
24448 PR tree-optimization/89235
24449 * tree-vect-loop.c (optimize_mask_stores): Add an
24450 auto_purge_vect_location sentinel to ensure that vect_location is
24451 purged on exit.
24452 * tree-vectorizer.c
24453 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24454 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24455 to ensure that vect_location is purged on exit.
24456 (pass_slp_vectorize::execute): Likewise, replacing the manual
24457 reset.
24458 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24459
24460 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24461
24462 * config/aarch64/iterators.md (max_opp): New code_attr.
24463 (USMAX): New code iterator.
24464 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24465 (aarch64_smax): Likewise.
24466 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24467 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24468 MINUS (MAX MIN).
24469
24470 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24471
24472 PR target/89229
24473 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24474 for TARGET_AVX512VL.
24475 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24476
24477 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24478
24479 * config/s390/s390-builtin-types.def: Add new types.
24480 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24481 (s390_vec_xlw4): Make the memory operand into a const pointer.
24482 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24483 float.
24484 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24485 a new vector type with the alignment of the scalar memory operand.
24486
24487 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24488 Jakub Jelinek <jakub@redhat.com>
24489
24490 PR bootstrap/88714
24491 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24492 arm_count_ldrdstrd_insns): New declarations.
24493 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24494 MINUS.
24495 (valid_operands_ldrd_strd): New function.
24496 (arm_count_ldrdstrd_insns): New function.
24497 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24498 sets instead of single DImode set and define new insns to match this.
24499
24500 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24501
24502 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24503 Make it a C initializer.
24504
24505 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24506
24507 PR/target 88850
24508 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24509
24510 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24511
24512 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24513 Use neon_dot<q> for type.
24514 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24515
24516 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24517
24518 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24519 Use neon_dot<q> for type.
24520 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24521 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24522
24523 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24524
24525 PR rtl-optimization/89225
24526 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24527 sizes check.
24528
24529 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24530
24531 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24532 after restoring registers saved to allocate the frame on Windows.
24533
24534 2019-02-06 Richard Biener <rguenther@suse.de>
24535
24536 PR tree-optimization/89182
24537 * graphite.h (cached_scalar_evolution_in_region): Declare.
24538 * graphite.c (struct seir_cache_key): New.
24539 (struct sese_scev_hash): Likewise.
24540 (seir_cache): New global.
24541 (cached_scalar_evolution_in_region): New function.
24542 (graphite_transform_loops): Allocate and release seir_cache.
24543 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24544 cached_scalar_evolution_in_region.
24545 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24546 Simplify.
24547 (scop_detection::graphite_can_represent_expr: Use
24548 cached_scalar_evolution_in_region.
24549 (scop_detection::stmt_simple_for_scop_p): Likewise.
24550 (find_params_in_bb): Likewise.
24551 (gather_bbs::before_dom_children): Likewise.
24552 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24553 (add_loop_constraints): Likewise.
24554
24555 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24556
24557 PR middle-end/89210
24558 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24559 operand to new_unary_operation only if both element types are integral
24560 and it isn't a widening conversion. Return NULL_TREE if
24561 new_unary_operation failed.
24562
24563 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24564
24565 PR target/88856
24566 * config/s390/s390.md: Remove load and test FP splitter.
24567
24568 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24569
24570 PR target/89112
24571 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24572 expand_compare_loop, expand_block_compare_gpr,
24573 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24574 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24575 #include "profile-count.h" and "predict.h" for types and functions
24576 needed to work with REG_BR_PROB notes.
24577
24578 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24579
24580 PR target/89112
24581 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24582 for the long branch case.
24583
24584 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24585
24586 PR target/89188
24587 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24588 can throw, non-call exceptions are enabled and we can't delete
24589 dead exceptions or alter cfg. Set must_clean if
24590 delete_insn_and_edges returns true, don't set it blindly for calls.
24591 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24592
24593 PR rtl-optimization/89195
24594 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24595 of the original MEM.
24596
24597 2019-02-05 Martin Liska <mliska@suse.cz>
24598
24599 PR gcov-profile/89000
24600 * gcov.c (function_summary): Remove argument.
24601 (file_summary): New function.
24602 (print_usage): Replace tabs with spaces.
24603 (generate_results): Use new function file_summary.
24604
24605 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24606
24607 PR target/89186
24608 * optabs.c (prepare_cmp_insn): Pass x and y to
24609 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24610
24611 2019-02-05 Richard Biener <rguenther@suse.de>
24612
24613 PR middle-end/89150
24614 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24615 (struct bitmap_element): Drop chain_prev so we properly recurse on
24616 the prev member, supporting tree views.
24617 (struct bitmap_head): GTY skip the obstack member.
24618
24619 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24620
24621 PR c/88698
24622 * doc/extend.texi (Vector Extensions): Add an example of using vector
24623 types together with x86 intrinsics.
24624
24625 2019-02-04 Alan Modra <amodra@gmail.com>
24626
24627 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24628 str[] size to 160, and comment.
24629
24630 2019-02-04 Alan Modra <amodra@gmail.com>
24631
24632 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24633 (rs6000_pltseq_template): Guard output of TLS markers with
24634 TARGET_TLS_MARKERS.
24635 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24636 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24637 to use inline PLT sequences.
24638 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24639 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24640 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24641
24642 2019-02-04 Martin Liska <mliska@suse.cz>
24643
24644 PR ipa/88985
24645 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24646 out when ipa_fn_summaries does not contain entry for callee.
24647
24648 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24649
24650 * config/sparc/sparc.h: Remove superfluous blank lines.
24651 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24652 (got_register_rtx): ...this.
24653 (sparc_got): Adjust to above renaming.
24654 (sparc_tls_got): Likewise.
24655 (sparc_delegitimize_address): Likewise.
24656 (sparc_output_mi_thunk): Likewise.
24657 (sparc_init_pic_reg): Likewise.
24658 (save_local_or_in_reg_p): Fix test on the GOT register.
24659 (USE_HIDDEN_LINKONCE): Move around.
24660 (get_pc_thunk_name): Likewise.
24661 (gen_load_pcrel_sym): Likewise.
24662 (load_got_register): Likewise.
24663
24664 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24665
24666 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24667 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24668
24669 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24670
24671 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24672 into consideration.
24673
24674 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24675
24676 * config.gcc (with_nds32_lib, glibc):
24677 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24678 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24679 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24680
24681 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24682
24683 PR target/89071
24684 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24685 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24686 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24687 (*rcpsf2_sse): Ditto.
24688 (*rsqrtsf2_sse): Ditto.
24689 (sse4_1_round<mode<2): Ditto.
24690
24691 2019-02-03 Richard Biener <rguenther@suse.de>
24692
24693 PR debug/87295
24694 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24695 orig.
24696
24697 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24698
24699 PR middle-end/87887
24700 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24701 Punt with warning on aggregate return or argument types. Ignore
24702 type/mode checking for uniform arguments.
24703
24704 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24705
24706 * combine.c (try_combine): Do not print "Can't combine" messages unless
24707 printing failed combination attempts.
24708
24709 2019-02-01 Martin Jambor <mjambor@suse.cz>
24710
24711 PR hsa/87863
24712 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24713 segment and global segment variables before making them static.
24714
24715 2019-02-01 Martin Jambor <mjambor@suse.cz>
24716
24717 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24718 missed optimization dump with dump_enabled_p.
24719
24720 2019-02-01 Richard Biener <rguenther@suse.de>
24721
24722 PR middle-end/88597
24723 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24724 the instantiate cache.
24725 (instantiate_scev_binary): Elide second operand procesing
24726 if equal to the first.
24727 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24728 (chrec_contains_undetermined): Likewise.
24729 (tree_contains_chrecs): Likewise.
24730
24731 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24732
24733 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24734
24735 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24736
24737 PR tree-optimization/89143
24738 * wide-int-range.h (wide_int_range_absu): Declare.
24739 * wide-int-range.cc (wide_int_range_absu): New function.
24740 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24741
24742 PR tree-optimization/88107
24743 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24744 instead of assertion that eh_region_outermost is non-NULL, if it
24745 is NULL, set *ALL to true and return NULL.
24746 (move_sese_region_to_fn): Adjust caller, if all is set, call
24747 duplicate_eh_regions with NULL region.
24748
24749 2019-02-01 Richard Biener <rguenth@suse.de>
24750
24751 PR rtl-optimization/88593
24752 * mode-switching.c (optimize_mode_switching): Free dominators before
24753 calling cleanup_cfg.
24754
24755 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24756
24757 PR tree-optimization/88932
24758 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24759
24760 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24761
24762 PR middle-end/89137
24763 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24764 bogus clang warning.
24765
24766 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24767
24768 PR target/89071
24769 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24770 alternative to avoid partial SSE register stall for TARGET_AVX.
24771 (truncdfsf2): Ditto.
24772 (sse4_1_round<mode>2): Ditto.
24773
24774 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24775
24776 PR tree-optimization/89008
24777 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24778 process anything of the form X * 0.
24779
24780 2019-01-31 Richard Biener <rguenther@suse.de>
24781
24782 PR tree-optimization/89135
24783 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24784 with abnormal preds.
24785
24786 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24787
24788 PR sanitizer/89124
24789 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24790 always_inline callees into no_sanitize_address callers.
24791
24792 2019-01-31 Richard Biener <rguenther@suse.de>
24793
24794 PR rtl-optimization/89115
24795 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24796
24797 2019-01-30 Martin Sebor <msebor@redhat.com>
24798
24799 PR other/89106
24800 * doc/extend.texi (cast to a union): Correct and expand.
24801
24802 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24803
24804 PR rtl-optimization/87246
24805 * lra-constraints.c (simplify_operand_subreg): Reload memory
24806 in subreg if the address became invalid.
24807
24808 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24809
24810 PR target/87064
24811 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24812 Disable for little-endian.
24813
24814 2019-01-30 Richard Biener <rguenther@suse.de>
24815
24816 PR rtl-optimization/89115
24817 * opts.c (default_options_optimization): Reduce
24818 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24819 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24820 to the default.
24821
24822 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24823
24824 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24825 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24826 type of vector element when vec_extract is implemented by direct
24827 move.
24828
24829 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24830
24831 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24832
24833 2019-01-30 Richard Biener <rguenther@suse.de>
24834
24835 PR tree-optimization/89111
24836 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24837 canonicalization to appropriately sized access types.
24838
24839 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24840
24841 PR c++/89105
24842 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24843 for arguments to functions that are TU-local and shouldn't be
24844 referenced by assembly.
24845
24846 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24847
24848 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24849 after '='.
24850
24851 2019-01-29 Martin Sebor <msebor@redhat.com>
24852
24853 PR c/88956
24854 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24855
24856 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24857
24858 PR c++/66676
24859 PR ipa/89104
24860 * omp-simd-clone.c (simd_clone_clauses_extract)
24861 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24862 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24863
24864 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24865
24866 * config.gcc: Force .init_array for ARC.
24867
24868 2019-01-29 Richard Biener <rguenther@suse.de>
24869
24870 PR debug/87295
24871 * dwarf2out.c (collect_skeleton_dies): New helper.
24872 (copy_decls_for_unworthy_types): Call it.
24873 (build_abbrev_table): Assert we do not try to replace
24874 DW_AT_signature refs with local refs.
24875
24876 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24877
24878 PR middle-end/89002
24879 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24880 for lastprivate/linear IV, push gimplify context around gimplify_assign
24881 and, if it needed any temporaries, pop it into a gimple bind around the
24882 sequence.
24883
24884 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24885
24886 * common.opt (-Wattribute-alias): Remove "no-" from name.
24887 Make -Wattribute-alias command line option and
24888 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24889
24890 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24891
24892 PR target/89073
24893 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24894 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24895 x86 ISA options.
24896 (bmi2): Add missing @opindex.
24897 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24898 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24899 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24900 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24901 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24902 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24903 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24904 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24905 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24906 xsavec, xsaveopt and xsaves options.
24907
24908 2019-01-28 Richard Biener <rguenther@suse.de>
24909
24910 PR debug/89076
24911 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24912 support removal.
24913
24914 2019-01-28 Richard Biener <rguenther@suse.de>
24915
24916 PR tree-optimization/88739
24917 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24918 BIT_FIELD_REFs only are applied to mode-precision operands
24919 when they are integral.
24920 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24921 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24922 BIT_FIELD_REFs of non-mode-precision integral operands.
24923
24924 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24925
24926 PR target/87214
24927 * config/i386/sse.md
24928 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24929 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24930 first constants in pairs are multiples of 2. Formatting fixes.
24931 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24932 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24933 first constants in each quadruple are multiples of 4. Formatting fixes.
24934
24935 2019-01-26 Martin Jambor <mjambor@suse.cz>
24936
24937 PR ipa/88933
24938 * tree-inline.c: Include tree-cfgcleanup.h.
24939 (delete_unreachable_blocks_update_callgraph): Move...
24940 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24941 ...here, make externally visible, make second argument bool, adjust
24942 all callers.
24943 * tree-cfgcleanup.c: Include cgraph.h.
24944 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24945 Declare.
24946 * ipa-prop.c: Include tree-cfgcleanup.h.
24947 (ipcp_transform_function): Call
24948 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24949
24950 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24951
24952 PR rtl-optimization/88846
24953 * ira.c (process_set_for_memref_referenced_p): New.
24954 (memref_referenced_p): Add new param. Use
24955 process_set_for_memref_referenced_p. Add new switch cases.
24956 (memref_used_between_p): Pass new arg to memref_referenced_p.
24957
24958 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24959
24960 PR target/88469
24961 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24962 argument ABI_BREAK. Set to true if the calculated alignment has
24963 changed in gcc-9. Check bit-fields for their base type alignment.
24964 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24965 (aarch64_function_arg_boundary): Likewise.
24966 (aarch64_gimplify_va_arg_expr): Likewise.
24967
24968 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24969
24970 PR middle-end/89037
24971 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24972 instead of accessing TREE_INT_CST_ELT directly.
24973
24974 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24975
24976 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24977 fenv_exceptions description.
24978
24979 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24980
24981 PR rtl-optimization/87763
24982 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24983 Allow SUBREG when matching CC_NZmode compare.
24984
24985 2019-01-25 Richard Biener <rguenther@suse.de>
24986
24987 PR tree-optimization/89049
24988 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24989 Look at the pattern stmt to determine if the stmt is vectorized.
24990
24991 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24992
24993 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24994 (pred_mov<mode>): Handle all-register forms using both a new
24995 alternative and a split.
24996
24997 2019-01-25 Richard Biener <rguenther@suse.de>
24998
24999 PR tree-optimization/86865
25000 * graphite-scop-detection.c (scop_detection::can_represent_loop):
25001 Reject non-do-while loops.
25002
25003 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
25004
25005 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
25006 * config/rs6000/constraints.md (Q constraint): Use REG_P.
25007 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
25008 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25009 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
25010 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25011 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
25012 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
25013 vlogical_operand, gpc_reg_operand, int_reg_operand,
25014 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
25015 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
25016 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
25017 (save_world_operation, restore_world_operation, lmw_operation,
25018 stmw_operation): Use MEM_P and REG_P.
25019 (tie_operand): Use MEM_P.
25020 (vrsave_operation, crsave_operation): Use REG_P.
25021 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
25022 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
25023 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
25024 (call_operand): Use HARD_REGISTER_P.
25025 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
25026 Use CONST_INT_P.
25027 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
25028 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
25029 quad_aligned_load_p, replace_swapped_aligned_store,
25030 recombine_lvx_pattern, replace_swapped_aligned_load,
25031 recombine_stvx_pattern): Use MEM_P.
25032 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
25033 Use MEM_P and SYMBOL_REF_P.
25034 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
25035 (insn_is_swappable_p): Use REG_P and MEM_P.
25036 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
25037 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
25038 Use CONST_INT_P.
25039 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
25040 Use CONST_DOUBLE_P.
25041 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
25042 CONST_WIDE_INT_P.
25043 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
25044 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
25045 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
25046 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
25047 reg_or_subregno:
25048 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25049 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
25050 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
25051 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
25052 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
25053 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
25054 rs6000_split_logical_di): Use CONST_INT_P.
25055 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
25056 REG_P and SYMBOL_REF_P.
25057 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
25058 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
25059 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
25060 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
25061 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
25062 (small_data_operand, print_operand_address): Use CONST_INT_P and
25063 SYMBOL_REF_P.
25064 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
25065 (rs6000_init_hard_regno_mode_ok, direct_move_p):
25066 Use HARD_REGISTER_NUM_P.
25067 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
25068 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
25069 SUBREG_P and SYMBOL_REF_P.
25070 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
25071 and HARD_REGISTER_NUM_P.
25072 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
25073 reg_or_subregno.
25074 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
25075 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
25076 MEM_P and REG_P.
25077 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
25078 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
25079 find_addr_reg): Use REG_P.
25080 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
25081 (rs6000_emit_le_vsx_move): Use SUBREG_P.
25082 (offsettable_ok_by_alignment, constant_pool_expr_p,
25083 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
25084 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
25085 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
25086 rs6000_assemble_integer, create_TOC_reference,
25087 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
25088 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
25089 (rs6000_split_vec_extract_var): Use reg_or_subregno.
25090 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
25091 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
25092 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25093 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25094 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
25095 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
25096 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
25097 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
25098 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
25099 and cbranch<mode>4): Use CONST_INT_P.
25100 (multiple define_splits): Use REG_P and SUBREG_P.
25101 (define_expands call, call_value): Use MEM_P.
25102 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
25103 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
25104 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
25105 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
25106 and HARD_REGISTER_NUM_P.
25107 (multiple define_splits): Use HARD_REGISTER_NUM_P.
25108
25109 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
25110
25111 PR rtl-optimization/88948
25112 * rtl.h (prepare_copy_insn): New prototype.
25113 * gcse.c (prepare_copy_insn): New function, split out from
25114 process_insert_insn.
25115 (process_insert_insn): Use prepare_copy_insn.
25116 * store-motion.c (replace_store_insn): Use prepare_copy_insn
25117 instead of gen_move_insn.
25118
25119 2019-01-24 Jakub Jelinek <jakub@redhat.com>
25120
25121 PR debug/89006
25122 * config/i386/i386.c (ix86_pic_register_p): Return true for
25123 UNSPEC_SET_GOT too.
25124
25125 PR tree-optimization/88964
25126 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
25127 punt if HONOR_SNANS (chrec).
25128
25129 PR middle-end/89015
25130 * tree-nested.c (convert_nonlocal_reference_stmt,
25131 convert_local_reference_stmt, convert_tramp_reference_stmt,
25132 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
25133 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
25134 or GIMPLE_OMP_TASK.
25135
25136 PR tree-optimization/89027
25137 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
25138 for "omp simd array" variables.
25139
25140 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
25141
25142 PR target/88469
25143 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
25144 force the alignment of m_val.
25145
25146 2019-01-24 Richard Biener <rguenther@suse.de>
25147
25148 PR lto/87187
25149 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
25150 When in "legacy" debug mode make sure to reset self-origins.
25151
25152 2019-01-24 Martin Liska <mliska@suse.cz>
25153
25154 PR gcov-profile/88994
25155 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
25156 result will be always smaller or equal to the original.
25157 * gcov.c (mangle_name): Fix else branch where we should
25158 also copy to PTR and shift the pointer.
25159
25160 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
25161
25162 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
25163 * vr-values.c (find_case_label_ranges): Fix a comment typo.
25164
25165 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
25166
25167 * common/config/i386/i386-common.c
25168 (OPTION_MASK_ISA_ENQCMD_SET,
25169 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
25170 (ix86_handle_option): Handle -menqcmd.
25171 * config.gcc (enqcmdintrin.h): New header file.
25172 * config/i386/cpuid.h (bit_ENQCMD): New bit.
25173 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25174 -menqcmd.
25175 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
25176 function type.
25177 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
25178 __builtin_ia32_enqcmds): New builtins.
25179 * config/i386/i386-c.c (__ENQCMD__): New macro.
25180 * config/i386/i386-option.c (ix86_target_string): Add
25181 -menqcmd.
25182 (ix86_valid_target_attribute_inner_p): Likewise.
25183 * config/i386/i386-expand.c
25184 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
25185 IX86_BUILTIN_ENQCMDS.
25186 * config/i386/i386.h (TARGET_ENQCMD): New.
25187 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
25188 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
25189 (movdir64b_<mode>): Parameterize to enable share expansion code
25190 with ENQCMD in function ix86_expand_builtin.
25191 * config/i386/i386.opt: Add -menqcmd.
25192 * config/i386/immintrin.h: Include enqcmdintrin.h.
25193 * config/i386/enqcmdintrin.h: New intrinsic file.
25194 * doc/invoke.texi: Add -menqcmd.
25195
25196 2019-01-23 Bin Cheng <bin.cheng@arm.com>
25197 Steve Ellcey <sellcey@marvell.com>
25198
25199 PR target/85711
25200 * recog.c (address_operand): Return false on wrong mode for address.
25201 (constrain_operands): Check for mode with 'p' constraint.
25202
25203 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
25204
25205 PR target/88998
25206 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
25207 Disparage MMX alternative.
25208 (sse2_cvtpd2pi): Ditto.
25209 (sse2_cvttpd2pi): Ditto.
25210
25211 2019-01-23 David Malcolm <dmalcolm@redhat.com>
25212
25213 PR driver/89014
25214 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
25215 use-after-free of the result of
25216 aarch64_get_extension_string_for_isa_flags.
25217
25218 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25219
25220 PR c/44715
25221 * doc/extend.texi: Document break and continue behavior in
25222 statement expressions.
25223
25224 2019-01-23 Richard Biener <rguenther@suse.de>
25225
25226 PR tree-optimization/89008
25227 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
25228 not leave another stray operand.
25229
25230 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25231
25232 * BASE-VER: Bump to 9.0.1.
25233
25234 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
25235
25236 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
25237 thunk that returns by reference, use the type of the return object
25238 of the thunk instead of that of the alias to build the dereference.
25239
25240 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
25241
25242 * config/arc/atomic.md: Add operand to DMB instruction.
25243
25244 2019-01-23 Jakub Jelinek <jakub@redhat.com>
25245
25246 PR tree-optimization/88964
25247 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
25248 build_zero_cst instead of build_int_cst. Return false for loop
25249 invariants which honor signed zeros.
25250
25251 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
25252
25253 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
25254
25255 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25256
25257 PR target/88965
25258 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
25259 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
25260 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
25261
25262 PR middle-end/88968
25263 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
25264 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
25265
25266 PR target/87064
25267 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
25268 Disable for little endian.
25269
25270 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25271
25272 PR target/88469
25273 * config/arm/arm.c (arm_needs_double_word_align): Check
25274 DECL_BIT_FIELD_TYPE.
25275
25276 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
25277 H.J. Lu <hongjiu.lu@intel.com>
25278
25279 PR target/88909
25280 * config/i386/i386-builtin.def: Add mask2 to all builtin
25281 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
25282 SPECIAL_ARGS.
25283 * config/i386/i386.c (BDESC): Add mask2 to the definition.
25284 (BDESC_FIRST): Likewise.
25285 (define_builtin): Add an argument for mask2. Updated to handle
25286 both ix86_isa_flags and ix86_isa_flags2.
25287 (define_builtin_const): Likewise.
25288 (define_builtin_pure): Likewise.
25289 (define_builtin2): Deleted.
25290 (define_builtin_const2): Likewise.
25291 (builtin_description): Add a member, mask2.
25292 (bdesc_*): Add mask2 to builtin initializations.
25293 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
25294 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
25295 support.
25296 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
25297
25298 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
25299
25300 PR target/88954
25301 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
25302 noplt attribute.
25303
25304 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
25305
25306 PR target/88469
25307 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
25308 alignment is dominated by a bitfield with 64-bit aligned base type.
25309 (arm_function_arg): Emit a warning if the alignment has changed since
25310 earlier GCC releases.
25311 (arm_function_arg_boundary): Likewise.
25312 (arm_setup_incoming_varargs): Likewise.
25313
25314 2019-01-22 Richard Biener <rguenther@suse.de>
25315
25316 PR tree-optimization/88862
25317 * graphite-scop-detection.c
25318 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
25319
25320 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
25321
25322 * doc/extend.tex (AMD GCN Function Attributes): New section.
25323 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
25324 * doc/invoke.texi (AMD GCN Options): New section.
25325 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
25326
25327 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
25328
25329 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
25330 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
25331
25332 2019-01-22 Jakub Jelinek <jakub@redhat.com>
25333
25334 PR tree-optimization/88044
25335 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
25336 is false in the first iteration, but !every_iteration, return false
25337 instead of true with niter->niter zero.
25338
25339 PR rtl-optimization/88904
25340 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
25341 any nonequal registers before processing BB_END (b).
25342
25343 PR target/88905
25344 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
25345 GET_MODE (op0).
25346 (expand_binop_directly, expand_doubleword_clz,
25347 expand_doubleword_popcount, expand_ctz, expand_ffs,
25348 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
25349
25350 PR rtl-optimization/49429
25351 PR target/49454
25352 PR rtl-optimization/86334
25353 PR target/88906
25354 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
25355 addressable from here...
25356 (emit_block_op_via_libcall): ... to here.
25357
25358 2019-01-22 Richard Biener <rguenther@suse.de>
25359
25360 * tree-vect-loop.c (vect_analyze_loop_operations): Use
25361 auto_vec for cost vector to fix memleak.
25362 (vectorize_fold_left_reduction): Properly gather SLP defs.
25363 (vectorizable_comparison): Do not swap operands to properly
25364 gather SLP defs.
25365
25366 2019-01-22 Alan Modra <amodra@gmail.com>
25367
25368 PR target/88614
25369 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
25370 stays a reg. Allow a const_int.
25371 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
25372 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25373 (IS_NOMARK_TLSGETADDR): Define.
25374 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25375 (rs6000_output_tlsargs): New function.
25376 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25377 __tls_get_addr call takes an arg.
25378 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25379 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25380 delete split..
25381 (call_value_nonlocal_sysv): ..or here, delete split.
25382 (tls_gdld_nomark): Delete.
25383 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25384 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25385 (call_value_nonlocal_sysv): Likewise.
25386 (call_value_nonlocal_sysv_secure): Likewise.
25387 (call_value_nonlocal_aix): Likewise.
25388 (call_value_indirect_aix): Likewise.
25389 (call_value_indirect_elfv2): Likewise.
25390 (call_value_local32, call_value_local64): Disable for no-mark tls.
25391 (call_value_local_aix): Likewise.
25392
25393 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25394
25395 PR target/88938
25396 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25397 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25398
25399 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25400
25401 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25402 string contents as hash_map keys.
25403
25404 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25405
25406 PR c/88928
25407 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25408 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25409 instead of TYPE_ALIGN.
25410 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25411 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25412 pointer from TYPE_STUB_DECL.
25413
25414 2019-01-21 Richard Biener <rguenther@suse.de>
25415
25416 PR tree-optimization/88934
25417 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25418 at the possibly non-constant operand.
25419 (vect_get_constant_vectors): Adjust.
25420
25421 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25422
25423 PR target/71659
25424 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25425 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25426 instead of _X86INTRIN_H_INCLUDED.
25427 * onfig/i386/clwbintrin.h: Likewise.
25428 * config/i386/pkuintrin.h: Likewise.
25429 * config/i386/prfchwintrin.h: Likewise.
25430 * config/i386/rdseedintrin.h: Likewise.
25431 * config/i386/wbnoinvdintrin.h: Likewise.
25432 * config/i386/xsavecintrin.h: Likewise.
25433 * config/i386/xsavesintrin.h: Likewise.
25434 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25435 * config/i386/xsaveintrin.h: Likewise.
25436 * config/i386/xsaveoptintrin.h: Likewise.
25437 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25438 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25439 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25440 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25441 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25442 * config/i386/immintrin.h: Here.
25443
25444 2019-01-20 Martin Jambor <mjambor@suse.cz>
25445
25446 PR ipa/87615
25447 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25448 with aa_walk_budget.
25449 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25450 aa_walk_budget_p parameter.
25451 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25452 walk. Updated all callers.
25453 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25454 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25455 unmodified_parm.
25456 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25457 parameter info. Extract info from fbi. Pass fbi to recursive calls
25458 and to unmodified_parm.
25459 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25460 info, updated call to will_be_nonconstant_expr_predicate.
25461 (param_change_prob): New parameter fbi, limit AA walking.
25462 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25463 calls to various above functions.
25464 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25465 parameter. Use it to limit AA walking.
25466 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25467 fbi, limit AA walk.
25468 (detect_type_change): New parameter fbi, pass it on to
25469 detect_type_change_from_memory_writes.
25470 (detect_type_change_ssa): Likewise.
25471 (aa_overwalked): Removed.
25472 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25473 accordingly, adjust to the neew AA limiting scheme.
25474 (parm_ref_data_preserved_p): Likewise.
25475 (ipa_compute_jump_functions_for_edge): Adjust call to
25476 get_dynamic_type.
25477 (ipa_analyze_call_uses): Likewise.
25478 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25479 (ipa_analyze_node): Initialize aa_walk_budget.
25480 (ipcp_transform_function): Likewise.
25481 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25482 to get_dynamic_type.
25483
25484 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25485
25486 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25487 outside of #if CHECKING_P code.
25488
25489 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25490
25491 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25492 New function, split out from...
25493 (loop_versioning::analyze_stride): ...here.
25494 (loop_versioning::find_per_loop_multiplication): Use gassign.
25495 (loop_versioning::analyze_term_using_scevs): Return a success code.
25496 (loop_versioning::analyze_arbitrary_term): New function.
25497 (loop_versioning::analyze_address_fragment): Use
25498 analyze_arbitrary_term if all else fails.
25499
25500 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25501
25502 PR target/88892
25503 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25504 operands.
25505
25506 2019-01-18 Richard Biener <rguenther@suse.de>
25507
25508 PR tree-optimization/88903
25509 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25510 scalar stmts a SLP shift amount is composed of when detecting
25511 shifts by scalars.
25512
25513 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25514
25515 PR target/88799
25516 * config/arm/arm-cpus.in (mp): New feature.
25517 (sec): New feature.
25518 (fgroup ARMv7ve): Add mp and sec features.
25519 (arch armv7-a): Add options to allow mp and sec extensions.
25520 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25521 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25522 extenstions to the base architecture.
25523 (cpu cortex-a8): Add sec extension to the base architecture.
25524 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25525 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25526 variants down to the base v7-a varaint.
25527 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25528 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25529 of permitted extensions for -march=armv7-a and for
25530 -mcpu=generic-armv7-a.
25531
25532 2019-01-18 Martin Liska <mliska@suse.cz>
25533
25534 * params.def: Fix comment.
25535 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25536 name.
25537 (gimple_gen_ic_func_profiler): Likewise.
25538
25539 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25540
25541 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25542 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25543 and put in error checks for stack protector guard options.
25544 (aarch64_stack_protect_guard): New.
25545 (TARGET_STACK_PROTECT_GUARD): Define.
25546 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25547 (reg_stack_protect_address<mode>): New.
25548 (stack_protect_set): Adjust for SSP_GLOBAL.
25549 (stack_protect_test): Likewise.
25550 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25551 (-mstack-protector-guard): Likewise.
25552 (-mstack-protector-guard-offset): Likewise.
25553
25554 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25555
25556 PR tree-optimization/86214
25557 * tree-inline.h (struct copy_body_data): Add
25558 add_clobbers_to_eh_landing_pads member.
25559 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25560 (copy_edges_for_bb): Call it if EH edge destination is <
25561 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25562 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25563 if flag_stack_reuse != SR_NONE and clear it afterwards.
25564
25565 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25566
25567 PR target/85596
25568 * doc/install.texi (with-multilib-list): Document for aarch64.
25569
25570 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25571
25572 PR target/88734
25573 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25574 (("..."))) with ("...").
25575
25576 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25577
25578 * doc/extend.texi (Built-in Functions for Memory Model Aware
25579 Atomic Operations): Document atomic fetch and nand.
25580
25581 2019-01-18 Martin Liska <mliska@suse.cz>
25582 Richard Biener <rguenther@suse.de>
25583
25584 PR middle-end/88587
25585 * cgraph.h (create_version_clone_with_body): Add new argument
25586 with attributes.
25587 * cgraphclones.c (cgraph_node::create_version_clone): Add
25588 DECL_ATTRIBUTES to a newly created decl. And call
25589 valid_attribute_p so that proper cl_target_optimization_node
25590 is set for the newly created declaration.
25591 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25592 for declaration.
25593 (expand_target_clones): Do not call valid_attribute_p, it must
25594 be already done.
25595 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25596 vector types.
25597
25598 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25599
25600 PR target/88734
25601 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25602 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25603 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25604
25605 2019-01-17 Martin Sebor <msebor@redhat.com>
25606
25607 PR middle-end/88273
25608 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25609 Handle anti-ranges the same as no range at all.
25610
25611 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25612
25613 * config/aarch64/aarch64.c (cgraph.h): New include.
25614 (intl.h): New include.
25615 (supported_simd_type): New function.
25616 (currently_supported_simd_type): Ditto.
25617 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25618 (aarch64_simd_clone_adjust): Ditto.
25619 (aarch64_simd_clone_usable): Ditto.
25620 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25621 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25622 (TARGET_SIMD_CLONE_USABLE): Ditto.
25623 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25624 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25625 call.
25626
25627 2019-01-17 Martin Sebor <msebor@redhat.com>
25628
25629 PR tree-optimization/88800
25630 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25631 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25632 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25633 redundant argument. Add new argument and issue diagnostics under
25634 its control. Detect out-of-bounds access even with warnings
25635 disabled.
25636 (check_bounds_or_overlap): Change return type. Add argument.
25637 (wrestrict_dom_walker::check_call): Adjust.
25638 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25639 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25640 check_bounds_or_overlap's return value.
25641 (handle_builtin_stxncpy): Same.
25642 (handle_builtin_strcat): Same.
25643
25644 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25645 Kwok Cheung Yeung <kcy@codesourcery.com>
25646 Julian Brown <julian@codesourcery.com>
25647 Tom de Vries <tom@codesourcery.com>
25648
25649 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25650
25651 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25652
25653 * doc/sourcebuild.texi: Document dg-require-effective-target
25654 llvm_binutils and offload_gcn.
25655
25656 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25657 Kwok Cheung Yeung <kcy@codesourcery.com>
25658 Julian Brown <julian@codesourcery.com>
25659 Tom de Vries <tom@codesourcery.com>
25660
25661 * doc/sourcebuild.texi: Document dg-required-effective-target
25662 exceptions.
25663
25664 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25665 Kwok Cheung Yeung <kcy@codesourcery.com>
25666 Julian Brown <julian@codesourcery.com>
25667 Tom de Vries <tom@codesourcery.com>
25668 Jan Hubicka <hubicka@ucw.cz>
25669 Martin Jambor <mjambor@suse.cz>
25670
25671 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25672 * configure.ac: Check for dlopen.
25673 * configure: Regenerate.
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 Jan Hubicka <hubicka@ucw.cz>
25680 Martin Jambor <mjambor@suse.cz>
25681
25682 * common/config/gcn/gcn-common.c: New file.
25683 * config/gcn/driver-gcn.c: New file.
25684 * config/gcn/gcn-builtins.def: New file.
25685 * config/gcn/gcn-hsa.h: New file.
25686 * config/gcn/gcn-modes.def: New file.
25687 * config/gcn/gcn-opts.h: New file.
25688 * config/gcn/gcn-passes.def: New file.
25689 * config/gcn/gcn-protos.h: New file.
25690 * config/gcn/gcn-run.c: New file.
25691 * config/gcn/gcn-tree.c: New file.
25692 * config/gcn/gcn.c: New file.
25693 * config/gcn/gcn.h: New file.
25694 * config/gcn/gcn.opt: New file.
25695 * config/gcn/t-gcn-hsa: New file.
25696
25697 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25698 Kwok Cheung Yeung <kcy@codesourcery.com>
25699 Julian Brown <julian@codesourcery.com>
25700 Tom de Vries <tom@codesourcery.com>
25701 Jan Hubicka <hubicka@ucw.cz>
25702 Martin Jambor <mjambor@suse.cz>
25703
25704 * config/gcn/constraints.md: New file.
25705 * config/gcn/gcn-valu.md: New file.
25706 * config/gcn/gcn.md: New file.
25707 * config/gcn/predicates.md: New file.
25708
25709 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25710
25711 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25712 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25713 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25714 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25715
25716 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25717
25718 PR target/88851
25719 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25720 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25721 it and document registers.
25722
25723 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25724
25725 * config/aarch64/aarch64.c (ares_tunings): Define.
25726 * config/aarch64/aarch64-cores.def (ares): Use the above.
25727
25728 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25729
25730 PR target/88794
25731 Revert:
25732 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25733
25734 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25735 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25736 (_mm512_maskz_fixupimm_round_pd): Ditto.
25737 (_mm512_fixupimm_round_ps): Ditto.
25738 (_mm512_maskz_fixupimm_round_ps): Ditto.
25739 (_mm_fixupimm_round_sd): Ditto.
25740 (_mm_maskz_fixupimm_round_sd): Ditto.
25741 (_mm_fixupimm_round_ss): Ditto.
25742 (_mm_maskz_fixupimm_round_ss): Ditto.
25743 (_mm512_fixupimm_pd): Ditto.
25744 (_mm512_maskz_fixupimm_pd): Ditto.
25745 (_mm512_fixupimm_ps): Ditto.
25746 (_mm512_maskz_fixupimm_ps): Ditto.
25747 (_mm_fixupimm_sd): Ditto.
25748 (_mm_maskz_fixupimm_sd): Ditto.
25749 (_mm_fixupimm_ss): Ditto.
25750 (_mm_maskz_fixupimm_ss): Ditto.
25751 (_mm512_mask_fixupimm_round_pd): Update builtin.
25752 (_mm512_mask_fixupimm_round_ps): Ditto.
25753 (_mm_mask_fixupimm_round_sd): Ditto.
25754 (_mm_mask_fixupimm_round_ss): Ditto.
25755 (_mm512_mask_fixupimm_pd): Ditto.
25756 (_mm512_mask_fixupimm_ps): Ditto.
25757 (_mm_mask_fixupimm_sd): Ditto.
25758 (_mm_mask_fixupimm_ss): Ditto.
25759 * config/i386/avx512vlintrin.h:
25760 (_mm256_fixupimm_pd): Update parameters and builtin.
25761 (_mm256_maskz_fixupimm_pd): Ditto.
25762 (_mm256_fixupimm_ps): Ditto.
25763 (_mm256_maskz_fixupimm_ps): Ditto.
25764 (_mm_fixupimm_pd): Ditto.
25765 (_mm_maskz_fixupimm_pd): Ditto.
25766 (_mm_fixupimm_ps): Ditto.
25767 (_mm_maskz_fixupimm_ps): Ditto.
25768 (_mm256_mask_fixupimm_pd): Update builtin.
25769 (_mm256_mask_fixupimm_ps): Ditto.
25770 (_mm_mask_fixupimm_pd): Ditto.
25771 (_mm_mask_fixupimm_ps): Ditto.
25772 * config/i386/i386-builtin-types.def: Add new types and remove
25773 useless ones.
25774 * config/i386/i386-builtin.def: Update builtin definitions.
25775 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25776 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25777 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25778 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25779 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25780 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25781 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25782 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25783 * config/i386/subst.md:
25784 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25785 (round_saeonly_sd_mask_op4): Ditto.
25786 (round_saeonly_expand_operand5): Ditto.
25787 (round_saeonly_expand): Update.
25788
25789 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25790
25791 PR target/88794
25792 Revert:
25793 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25794
25795 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25796 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25797 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25798 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25799 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25800 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25801 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25802
25803 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25804
25805 PR target/88794
25806 Revert:
25807 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25808
25809 PR target/88489
25810 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25811 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25812 instead of UNSPEC_FIXUPIMM.
25813
25814 2019-01-17 Richard Biener <rguenther@suse.de>
25815
25816 PR lto/86736
25817 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25818 and friends for the LTO part of debug info.
25819
25820 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25821
25822 PR tree-optimization/86214
25823 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25824 if x == y.
25825
25826 PR rtl-optimization/88870
25827 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25828 throw if we can't alter the cfg or delete dead exceptions.
25829 (mark_insn): Don't call find_call_stack_args for such calls.
25830
25831 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25832
25833 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25834 prototypes for vec_st.
25835 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25836 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25837 mainly on signed/unsigned long long and double.
25838
25839 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25840
25841 PR target/88861
25842 * combine.c (delete_noop_moves): Convert to "bool" return,
25843 returning true if any edges are eliminated.
25844 (combine_instructions): Also return true if delete_noop_moves
25845 returns true.
25846
25847 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25848
25849 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25850 correct max nunits for endian swap.
25851 (aarch64_expand_fcmla_builtin): Correct subreg code.
25852 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25853 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25854 lane endianness.
25855
25856 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25857
25858 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25859 Handle split indirect COMPLEX_TYPE arguments.
25860
25861 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25862
25863 PR target/86891
25864 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25865 bit is set by add and compare.
25866 (CC_ADC): New CC_MODE.
25867 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25868 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25869 comparison. Add detection for CC_ADCmode.
25870 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25871 CC_ADCmode.
25872 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25873 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25874 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25875 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25876 to eliminate the need for zero-extending the operands.
25877 (add<mode>3_compareC_imm): Delete. Merge into ...
25878 (add<mode>3_compareC): ... this. Restructure the comparison to
25879 eliminate the need for zero-extending the operands.
25880 (add<mode>3_carryin): Use LTU for the overflow detection.
25881 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25882 Reexpress comparison for overflow.
25883 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25884 (add<mode>3_carryinC): Likewise.
25885 (add<mode>3_carryinV): Use LTU for carry between partials.
25886 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25887 handling of CC_Cmode and add CC_ADCmode.
25888 (aarch64_borrow_operation): Likewise.
25889
25890 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25891
25892 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25893 Remove patternmode.
25894 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25895 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25896 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25897 Remove endianness conversion.
25898
25899 2019-01-16 Martin Liska <mliska@suse.cz>
25900
25901 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25902 for GCC driver.
25903 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25904 a new argument.
25905 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25906 (path_prefix_reset): Move up in the source file.
25907 (find_fortran_preinclude_file): Make complex search for the
25908 fortran header files.
25909
25910 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25911
25912 * godump.c (go_output_typedef): When outputting a typedef, refer
25913 to the underlying type by its name and not its structure.
25914
25915 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25916
25917 PR c++/88795
25918 * tree.c (build_function_type): Assert that arg_types is not
25919 error_mark_node.
25920
25921 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25922
25923 PR inline-asm/52813
25924 * doc/extend.texi: Document that listing the stack pointer in the
25925 clobber list of an asm is a deprecated feature.
25926 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25927 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25928 warning instead of an error for clobbers of the stack pointer.
25929 Add a note explaining why.
25930
25931 2019-01-15 Richard Biener <rguenther@suse.de>
25932
25933 PR debug/88046
25934 * dwarf2out.c (gen_member_die): Do not generate inheritance
25935 DIEs late.
25936
25937 2019-01-15 Richard Biener <rguenther@suse.de>
25938
25939 PR tree-optimization/88855
25940 * tree-if-conv.c (combine_blocks): Collect
25941 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25942
25943 2019-01-15 Tom de Vries <tdevries@suse.de>
25944
25945 PR target/80547
25946 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25947 lhs == NULL_TREE for gang-level reduction.
25948
25949 2019-01-15 Richard Biener <rguenther@suse.de>
25950 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25951
25952 PR ipa/88788
25953 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25954 return true if SSA_NAME is already marked in visited bitmap.
25955 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25956
25957 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25958
25959 PR tree-optimization/88775
25960 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25961 equal == 0 equality pointer comparisons some more if compared in
25962 integral types and either one points to an automatic var and the
25963 other to a global, or we can prove at least one points to the middle
25964 or both point to start or both point to end.
25965
25966 2019-01-14 Andi Kleen <ak@linux.intel.com>
25967
25968 * Makefile.in: Lower autofdo sampling rate by 10x.
25969 * Makefile.tpl: Dito.
25970
25971 2019-01-14 Tom Honermann <tom@honermann.net>
25972
25973 * defaults.h: Define CHAR8_TYPE.
25974
25975 2019-01-14 Martin Sebor <msebor@redhat.com>
25976
25977 PR target/88638
25978 * doc/extend.texi (Darwin Format Checks): Clarify.
25979
25980 2019-01-14 Richard Biener <rguenther@suse.de>
25981
25982 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25983 whether we are in (simplify ...) or (match ...) context.
25984
25985 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25986
25987 PR rtl-optimization/88796
25988 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25989 * cfgexpand.c (stack_protect_prologue): Initialize
25990 crtl->stack_protect_guard_decl.
25991 * function.c (stack_protect_epilogue): Use it instead of calling
25992 targetm.stack_protect_guard again.
25993 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25994 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25995 crtl->stack_protect_guard_decl.
25996 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25997 on the returned MEM_EXPR.
25998
25999 2019-01-12 Tom de Vries <tdevries@suse.de>
26000
26001 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
26002 vector length using -fopenacc-dim.
26003
26004 2019-01-12 Tom de Vries <tdevries@suse.de>
26005
26006 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
26007 lengths into account.
26008
26009 2019-01-12 Svante Signell <svante.signell@gmail.com>
26010
26011 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
26012 (TARGET_CAN_SPLIT_STACK): Define.
26013 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
26014
26015 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26016
26017 * params.def (inline-unit-growth): Set to 40.
26018
26019 2019-01-12 Jakub Jelinek <jakub@redhat.com>
26020
26021 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
26022
26023 2019-01-12 Tom de Vries <tdevries@suse.de>
26024
26025 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
26026 region calling vector-partitionable routine, set default_vector_length
26027 to WARP_SIZE.
26028
26029 2019-01-12 Tom de Vries <tdevries@suse.de>
26030
26031 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
26032 variable default_vector_length.
26033
26034 2019-01-12 Tom de Vries <tdevries@suse.de>
26035
26036 PR middle-end/88703
26037 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
26038 from oacc_default_dims, as oacc_validate_dims would do it, and apply
26039 dimensions limits.
26040
26041 2019-01-12 Tom de Vries <tdevries@suse.de>
26042
26043 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
26044 (nvptx_goacc_validate_dims): Add used parameter.
26045 * doc/tm.texi: Regenerate.
26046 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
26047 argument to call to targetm.goacc.validate_dims.
26048 (default_goacc_validate_dims): Add used
26049 parameter.
26050 * target.def (validate_dims): Add used parameter in DEFHOOK.
26051 * targhooks.h (default_goacc_validate_dims): Add used parameter.
26052
26053 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26054
26055 PR middle-end/85956
26056 PR lto/88733
26057 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
26058 field.
26059 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
26060 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
26061 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
26062 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
26063
26064 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
26065
26066 PR rtl-optimization/87305
26067 * lra-assigns.c
26068 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
26069 for little endian pseudos used as paradoxical subreg.
26070
26071 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26072
26073 PR tree-optimization/88693
26074 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
26075 for STRING_CSTs that don't contain any NUL characters in the first
26076 TREE_STRING_LENGTH bytes.
26077
26078 2019-01-11 Alan Modra <amodra@gmail.com>
26079
26080 PR 88777
26081 PR 88614
26082 * genattrtab.c (min_fn): Don't translate values.
26083 (min_attr_value): Return INT_MAX when the value can't be calculated.
26084 Return minimum among any values that can be calculated.
26085 (max_attr_value): Adjust.
26086
26087 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26088
26089 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
26090
26091 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26092
26093 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26094 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
26095 (aarch64_return_call_with_max_clobbers): New function.
26096 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
26097 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
26098 argument.
26099 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
26100 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
26101 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
26102 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
26103 * cselib.c (cselib_process_insn): Add argument to
26104 targetm.hard_regno_call_part_clobbered call.
26105 * ira-conflicts.c (ira_build_conflicts): Ditto.
26106 * ira-costs.c (ira_tune_allocno_costs): Ditto.
26107 * lra-constraints.c (inherit_reload_reg): Ditto.
26108 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
26109 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
26110 argument. Call targetm.return_call_with_max_clobbers.
26111 Add argument to targetm.hard_regno_call_part_clobbered call.
26112 (calls_have_same_clobbers_p): New function.
26113 (process_bb_lives): Add call_insn and last_call_insn variables.
26114 Pass call_insn to check_pseudos_live_through_calls.
26115 Modify if stmt to check targetm.return_call_with_max_clobbers.
26116 Update setting of flush variable.
26117 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
26118 to false.
26119 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
26120 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
26121 targetm.hard_regno_call_part_clobbered call.
26122 * reginfo.c (choose_hard_reg_mode): Ditto.
26123 * regrename.c (check_new_reg_p): Ditto.
26124 * reload.c (find_equiv_reg): Ditto.
26125 * reload1.c (emit_reload_insns): Ditto.
26126 * sched-deps.c (deps_analyze_insn): Ditto.
26127 * sel-sched.c (init_regs_for_mode): Ditto.
26128 (mark_unavailable_hard_regs): Ditto.
26129 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
26130 * target.def (hard_regno_call_part_clobbered): Add insn argument.
26131 (return_call_with_max_clobbers): New target function.
26132 * doc/tm.texi: Regenerate.
26133 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
26134 * hooks.c (hook_bool_uint_mode_false): Change to
26135 hook_bool_insn_uint_mode_false.
26136 * hooks.h (hook_bool_uint_mode_false): Ditto.
26137
26138 2019-01-11 Steve Ellcey <sellcey@marvell.com>
26139
26140 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
26141 (aarch64_remove_extra_call_preserved_regs): New function.
26142 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
26143 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
26144 * doc/tm.texi: Regenerate.
26145 * final.c (get_call_reg_set_usage): Call new hook.
26146 * target.def (remove_extra_call_preserved_regs): New hook.
26147 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
26148 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
26149
26150 2019-01-11 Jakub Jelinek <jakub@redhat.com>
26151
26152 PR bootstrap/88714
26153 * passes.c (finish_optimization_passes): Call print_combine_total_stats
26154 inside of pass_combine_1 dump rather than pass_profile_1.
26155
26156 2019-01-11 Tom de Vries <tdevries@suse.de>
26157
26158 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
26159 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
26160 (PTX_NUM_PER_WORKER_BARRIERS): Define.
26161 (nvptx_apply_dim_limits): Prevent vector_length 64 and
26162 num_workers 16.
26163
26164 2019-01-11 Tom de Vries <tdevries@suse.de>
26165
26166 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
26167
26168 2019-01-11 Jan Beulich <jbeulich@suse.com>
26169
26170 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
26171 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
26172 sse2_cvtsi2sd): Add {l}.
26173 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
26174 syntax.
26175
26176 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26177
26178 PR target/88785
26179 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
26180 define_expand.
26181 (*float<floatunssuffix>v2div2sf2): New define_insn.
26182 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
26183 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
26184 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
26185 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
26186 match_operands with "const0_operand" "C".
26187
26188 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26189
26190 * config/aarch64/aarch64-builtins.c
26191 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
26192 (aarch64_init_simd_builtins): ...Here
26193
26194 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
26195
26196 PR rtl-optimization/87305
26197 * lra-assigns.c
26198 (setup_live_pseudos_and_spill_after_risky_transforms): Check
26199 allocation for big endian pseudos used as paradoxical subregs and
26200 spill them if it is wrong.
26201 * lra-constraints.c (lra_constraints): Add a comment.
26202
26203 2019-01-10 Richard Biener <rguenther@suse.de>
26204
26205 PR tree-optimization/88792
26206 * tree-ssa-pre.c (get_representative_for): Do not return a
26207 value-number here.
26208
26209 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26210
26211 PR middle-end/84877
26212 PR bootstrap/88450
26213 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
26214 (assign_parm_setup_block): Do the argument slot realignment here
26215 instead.
26216
26217 2019-01-10 Stefan Agner <stefan@agner.ch>
26218
26219 PR target/88648
26220 * config/arm/arm.c (arm_option_override_internal): Force
26221 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
26222
26223 2019-01-10 Jakub Jelinek <jakub@redhat.com>
26224
26225 PR c/88568
26226 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
26227 DECL_EXTERNAL.
26228
26229 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26230
26231 * config/arm/arm-builtins.c
26232 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
26233 (MAC_LANE_PAIR_QUALIFIERS): New.
26234 (arm_expand_builtin_args): Use it.
26235 (arm_expand_builtin_1): Likewise.
26236 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
26237 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
26238 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
26239 * config/arm/arm_neon.h:
26240 (vcadd_rot90_f16): New.
26241 (vcaddq_rot90_f16): New.
26242 (vcadd_rot270_f16): New.
26243 (vcaddq_rot270_f16): New.
26244 (vcmla_f16): New.
26245 (vcmlaq_f16): New.
26246 (vcmla_lane_f16): New.
26247 (vcmla_laneq_f16): New.
26248 (vcmlaq_lane_f16): New.
26249 (vcmlaq_laneq_f16): New.
26250 (vcmla_rot90_f16): New.
26251 (vcmlaq_rot90_f16): New.
26252 (vcmla_rot90_lane_f16): New.
26253 (vcmla_rot90_laneq_f16): New.
26254 (vcmlaq_rot90_lane_f16): New.
26255 (vcmlaq_rot90_laneq_f16): New.
26256 (vcmla_rot180_f16): New.
26257 (vcmlaq_rot180_f16): New.
26258 (vcmla_rot180_lane_f16): New.
26259 (vcmla_rot180_laneq_f16): New.
26260 (vcmlaq_rot180_lane_f16): New.
26261 (vcmlaq_rot180_laneq_f16): New.
26262 (vcmla_rot270_f16): New.
26263 (vcmlaq_rot270_f16): New.
26264 (vcmla_rot270_lane_f16): New.
26265 (vcmla_rot270_laneq_f16): New.
26266 (vcmlaq_rot270_lane_f16): New.
26267 (vcmlaq_rot270_laneq_f16): New.
26268 (vcadd_rot90_f32): New.
26269 (vcaddq_rot90_f32): New.
26270 (vcadd_rot270_f32): New.
26271 (vcaddq_rot270_f32): New.
26272 (vcmla_f32): New.
26273 (vcmlaq_f32): New.
26274 (vcmla_lane_f32): New.
26275 (vcmla_laneq_f32): New.
26276 (vcmlaq_lane_f32): New.
26277 (vcmlaq_laneq_f32): New.
26278 (vcmla_rot90_f32): New.
26279 (vcmlaq_rot90_f32): New.
26280 (vcmla_rot90_lane_f32): New.
26281 (vcmla_rot90_laneq_f32): New.
26282 (vcmlaq_rot90_lane_f32): New.
26283 (vcmlaq_rot90_laneq_f32): New.
26284 (vcmla_rot180_f32): New.
26285 (vcmlaq_rot180_f32): New.
26286 (vcmla_rot180_lane_f32): New.
26287 (vcmla_rot180_laneq_f32): New.
26288 (vcmlaq_rot180_lane_f32): New.
26289 (vcmlaq_rot180_laneq_f32): New.
26290 (vcmla_rot270_f32): New.
26291 (vcmlaq_rot270_f32): New.
26292 (vcmla_rot270_lane_f32): New.
26293 (vcmla_rot270_laneq_f32): New.
26294 (vcmlaq_rot270_lane_f32): New.
26295 (vcmlaq_rot270_laneq_f32): New.
26296 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
26297 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
26298 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
26299 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
26300 vcmlaq_lane270): New.
26301 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
26302 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
26303 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
26304 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
26305 (arm_option_reconfigure_globals): Use them.
26306 * config/arm/iterators.md (VDF, VQ_HSF): New.
26307 (VCADD, VCMLA): New.
26308 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
26309 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
26310 New.
26311 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
26312 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
26313
26314 2019-01-10 Tamar Christina <tamar.christina@arm.com>
26315
26316 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
26317 Add qualifier_lane_pair_index.
26318 (emit-rtl.h): Include.
26319 (TYPES_QUADOP_LANE_PAIR): New.
26320 (aarch64_simd_expand_args): Use it.
26321 (aarch64_simd_expand_builtin): Likewise.
26322 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
26323 New.
26324 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
26325 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
26326 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
26327 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
26328 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
26329 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
26330 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
26331 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
26332 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
26333 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
26334 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
26335 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
26336 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
26337 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26338 Add __ARM_FEATURE_COMPLEX.
26339 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
26340 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
26341 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
26342 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
26343 fcmlaq_lane270): New.
26344 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
26345 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
26346 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
26347 * config/aarch64/arm_neon.h:
26348 (vcadd_rot90_f16): New.
26349 (vcaddq_rot90_f16): New.
26350 (vcadd_rot270_f16): New.
26351 (vcaddq_rot270_f16): New.
26352 (vcmla_f16): New.
26353 (vcmlaq_f16): New.
26354 (vcmla_lane_f16): New.
26355 (vcmla_laneq_f16): New.
26356 (vcmlaq_lane_f16): New.
26357 (vcmlaq_rot90_lane_f16): New.
26358 (vcmla_rot90_laneq_f16): New.
26359 (vcmla_rot90_lane_f16): New.
26360 (vcmlaq_rot90_f16): New.
26361 (vcmla_rot90_f16): New.
26362 (vcmlaq_laneq_f16): New.
26363 (vcmla_rot180_laneq_f16): New.
26364 (vcmla_rot180_lane_f16): New.
26365 (vcmlaq_rot180_f16): New.
26366 (vcmla_rot180_f16): New.
26367 (vcmlaq_rot90_laneq_f16): New.
26368 (vcmlaq_rot270_laneq_f16): New.
26369 (vcmlaq_rot270_lane_f16): New.
26370 (vcmla_rot270_laneq_f16): New.
26371 (vcmlaq_rot270_f16): New.
26372 (vcmla_rot270_f16): New.
26373 (vcmlaq_rot180_laneq_f16): New.
26374 (vcmlaq_rot180_lane_f16): New.
26375 (vcmla_rot270_lane_f16): New.
26376 (vcadd_rot90_f32): New.
26377 (vcaddq_rot90_f32): New.
26378 (vcaddq_rot90_f64): New.
26379 (vcadd_rot270_f32): New.
26380 (vcaddq_rot270_f32): New.
26381 (vcaddq_rot270_f64): New.
26382 (vcmla_f32): New.
26383 (vcmlaq_f32): New.
26384 (vcmlaq_f64): New.
26385 (vcmla_lane_f32): New.
26386 (vcmla_laneq_f32): New.
26387 (vcmlaq_lane_f32): New.
26388 (vcmlaq_laneq_f32): New.
26389 (vcmla_rot90_f32): New.
26390 (vcmlaq_rot90_f32): New.
26391 (vcmlaq_rot90_f64): New.
26392 (vcmla_rot90_lane_f32): New.
26393 (vcmla_rot90_laneq_f32): New.
26394 (vcmlaq_rot90_lane_f32): New.
26395 (vcmlaq_rot90_laneq_f32): New.
26396 (vcmla_rot180_f32): New.
26397 (vcmlaq_rot180_f32): New.
26398 (vcmlaq_rot180_f64): New.
26399 (vcmla_rot180_lane_f32): New.
26400 (vcmla_rot180_laneq_f32): New.
26401 (vcmlaq_rot180_lane_f32): New.
26402 (vcmlaq_rot180_laneq_f32): New.
26403 (vcmla_rot270_f32): New.
26404 (vcmlaq_rot270_f32): New.
26405 (vcmlaq_rot270_f64): New.
26406 (vcmla_rot270_lane_f32): New.
26407 (vcmla_rot270_laneq_f32): New.
26408 (vcmlaq_rot270_lane_f32): New.
26409 (vcmlaq_rot270_laneq_f32): New.
26410 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26411 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26412 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26413 (FCADD, FCMLA): New.
26414 (rot): New.
26415 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26416
26417 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26418
26419 PR other/16615
26420
26421 * config/pa/pa.c: Change "can not" to "cannot".
26422 * gimple-ssa-evrp-analyze.c: Likewise.
26423 * ipa-icf.c: Likewise.
26424 * ipa-polymorphic-call.c: Likewise.
26425 * ipa-pure-const.c: Likewise.
26426 * lra-constraints.c: Likewise.
26427 * lra-remat.c: Likewise.
26428 * reload1.c: Likewise.
26429 * reorg.c: Likewise.
26430 * tree-ssa-uninit.c: Likewise.
26431
26432 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26433
26434 PR other/16615
26435
26436 * Makefile.in: Mechanically replace "can not" with "cannot".
26437 * alias.c: Likewise.
26438 * builtins.c: Likewise.
26439 * calls.c: Likewise.
26440 * cgraph.c: Likewise.
26441 * cgraph.h: Likewise.
26442 * cgraphclones.c: Likewise.
26443 * cgraphunit.c: Likewise.
26444 * combine-stack-adj.c: Likewise.
26445 * combine.c: Likewise.
26446 * common/config/i386/i386-common.c: Likewise.
26447 * config/aarch64/aarch64.c: Likewise.
26448 * config/alpha/sync.md: Likewise.
26449 * config/arc/arc.c: Likewise.
26450 * config/arc/predicates.md: Likewise.
26451 * config/arm/arm-c.c: Likewise.
26452 * config/arm/arm.c: Likewise.
26453 * config/arm/arm.h: Likewise.
26454 * config/arm/arm.md: Likewise.
26455 * config/arm/cortex-r4f.md: Likewise.
26456 * config/csky/csky.c: Likewise.
26457 * config/csky/csky.h: Likewise.
26458 * config/darwin-f.c: Likewise.
26459 * config/epiphany/epiphany.md: Likewise.
26460 * config/i386/i386.c: Likewise.
26461 * config/i386/sol2.h: Likewise.
26462 * config/m68k/m68k.c: Likewise.
26463 * config/mcore/mcore.h: Likewise.
26464 * config/microblaze/microblaze.md: Likewise.
26465 * config/mips/20kc.md: Likewise.
26466 * config/mips/sb1.md: Likewise.
26467 * config/nds32/nds32.c: Likewise.
26468 * config/nds32/predicates.md: Likewise.
26469 * config/pa/pa.c: Likewise.
26470 * config/rs6000/e300c2c3.md: Likewise.
26471 * config/rs6000/rs6000.c: Likewise.
26472 * config/s390/s390.h: Likewise.
26473 * config/sh/sh.c: Likewise.
26474 * config/sh/sh.md: Likewise.
26475 * config/spu/vmx2spu.h: Likewise.
26476 * cprop.c: Likewise.
26477 * dbxout.c: Likewise.
26478 * df-scan.c: Likewise.
26479 * doc/cfg.texi: Likewise.
26480 * doc/extend.texi: Likewise.
26481 * doc/fragments.texi: Likewise.
26482 * doc/gty.texi: Likewise.
26483 * doc/invoke.texi: Likewise.
26484 * doc/lto.texi: Likewise.
26485 * doc/md.texi: Likewise.
26486 * doc/objc.texi: Likewise.
26487 * doc/rtl.texi: Likewise.
26488 * doc/tm.texi: Likewise.
26489 * dse.c: Likewise.
26490 * emit-rtl.c: Likewise.
26491 * emit-rtl.h: Likewise.
26492 * except.c: Likewise.
26493 * expmed.c: Likewise.
26494 * expr.c: Likewise.
26495 * fold-const.c: Likewise.
26496 * genautomata.c: Likewise.
26497 * gimple-fold.c: Likewise.
26498 * hard-reg-set.h: Likewise.
26499 * ifcvt.c: Likewise.
26500 * ipa-comdats.c: Likewise.
26501 * ipa-cp.c: Likewise.
26502 * ipa-devirt.c: Likewise.
26503 * ipa-fnsummary.c: Likewise.
26504 * ipa-icf.c: Likewise.
26505 * ipa-inline-transform.c: Likewise.
26506 * ipa-inline.c: Likewise.
26507 * ipa-polymorphic-call.c: Likewise.
26508 * ipa-profile.c: Likewise.
26509 * ipa-prop.c: Likewise.
26510 * ipa-pure-const.c: Likewise.
26511 * ipa-reference.c: Likewise.
26512 * ipa-split.c: Likewise.
26513 * ipa-visibility.c: Likewise.
26514 * ipa.c: Likewise.
26515 * ira-build.c: Likewise.
26516 * ira-color.c: Likewise.
26517 * ira-conflicts.c: Likewise.
26518 * ira-costs.c: Likewise.
26519 * ira-int.h: Likewise.
26520 * ira-lives.c: Likewise.
26521 * ira.c: Likewise.
26522 * ira.h: Likewise.
26523 * loop-invariant.c: Likewise.
26524 * loop-unroll.c: Likewise.
26525 * lower-subreg.c: Likewise.
26526 * lra-assigns.c: Likewise.
26527 * lra-constraints.c: Likewise.
26528 * lra-eliminations.c: Likewise.
26529 * lra-lives.c: Likewise.
26530 * lra-remat.c: Likewise.
26531 * lra-spills.c: Likewise.
26532 * lra.c: Likewise.
26533 * lto-cgraph.c: Likewise.
26534 * lto-streamer-out.c: Likewise.
26535 * postreload-gcse.c: Likewise.
26536 * predict.c: Likewise.
26537 * profile-count.h: Likewise.
26538 * profile.c: Likewise.
26539 * recog.c: Likewise.
26540 * ree.c: Likewise.
26541 * reload.c: Likewise.
26542 * reload1.c: Likewise.
26543 * reorg.c: Likewise.
26544 * resource.c: Likewise.
26545 * rtl.def: Likewise.
26546 * rtl.h: Likewise.
26547 * rtlanal.c: Likewise.
26548 * sched-deps.c: Likewise.
26549 * sched-ebb.c: Likewise.
26550 * sched-rgn.c: Likewise.
26551 * sel-sched-ir.c: Likewise.
26552 * sel-sched.c: Likewise.
26553 * shrink-wrap.c: Likewise.
26554 * simplify-rtx.c: Likewise.
26555 * symtab.c: Likewise.
26556 * target.def: Likewise.
26557 * toplev.c: Likewise.
26558 * tree-call-cdce.c: Likewise.
26559 * tree-cfg.c: Likewise.
26560 * tree-complex.c: Likewise.
26561 * tree-core.h: Likewise.
26562 * tree-eh.c: Likewise.
26563 * tree-inline.c: Likewise.
26564 * tree-loop-distribution.c: Likewise.
26565 * tree-nrv.c: Likewise.
26566 * tree-profile.c: Likewise.
26567 * tree-sra.c: Likewise.
26568 * tree-ssa-alias.c: Likewise.
26569 * tree-ssa-dce.c: Likewise.
26570 * tree-ssa-dom.c: Likewise.
26571 * tree-ssa-forwprop.c: Likewise.
26572 * tree-ssa-loop-im.c: Likewise.
26573 * tree-ssa-loop-ivcanon.c: Likewise.
26574 * tree-ssa-loop-ivopts.c: Likewise.
26575 * tree-ssa-loop-niter.c: Likewise.
26576 * tree-ssa-phionlycprop.c: Likewise.
26577 * tree-ssa-phiopt.c: Likewise.
26578 * tree-ssa-propagate.c: Likewise.
26579 * tree-ssa-threadedge.c: Likewise.
26580 * tree-ssa-threadupdate.c: Likewise.
26581 * tree-ssa-uninit.c: Likewise.
26582 * tree-ssanames.c: Likewise.
26583 * tree-streamer-out.c: Likewise.
26584 * tree.c: Likewise.
26585 * tree.h: Likewise.
26586 * vr-values.c: Likewise.
26587
26588 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26589
26590 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26591 (ix86_split_xorsign): Ditto.
26592 * config/i386/i386.c (ix86_expand_xorsign): New function.
26593 (ix86_split_xorsign): Ditto.
26594 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26595 (xorsign<mode>3): New expander.
26596 (xorsign<mode>3_1): New insn_and_split pattern.
26597 * config/i386/sse.md (xorsign<mode>3): New expander.
26598
26599 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26600
26601 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26602 (*tablejump_sp64): Likewise.
26603 (*tablejump<P:mode>): ...this.
26604 (*call_address_sp32): Merge into...
26605 (*call_address_sp64): Likewise.
26606 (*call_address<P:mode>): ...this.
26607 (*call_symbolic_sp32): Merge into...
26608 (*call_symbolic_sp64): Likewise.
26609 (*call_symbolic<P:mode>): ...this.
26610 (call_value): Remove constraint and add predicate.
26611 (*call_value_address_sp32): Merge into...
26612 (*call_value_address_sp64): Likewise.
26613 (*call_value_address<P:mode>): ...this.
26614 (*call_value_symbolic_sp32): Merge into...
26615 (*call_value_symbolic_sp64): Likewise.
26616 (*call_value_symbolic<P:mode>): ...this.
26617 (*sibcall_symbolic_sp32): Merge into...
26618 (*sibcall_symbolic_sp64): Likewise.
26619 (*sibcall_symbolic<P:mode>): ...this.
26620 (sibcall_value): Remove constraint and add predicate.
26621 (*sibcall_value_symbolic_sp32): Merge into...
26622 (*sibcall_value_symbolic_sp64): Likewise.
26623 (*sibcall_value_symbolic<P:mode>): ...this.
26624 (window_save): Minor tweak.
26625 (*branch_sp32): Merge into...
26626 (*branch_sp64): Likewise.
26627 (*branch<P:mode>): ...this.
26628
26629 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26630 James Clarke <jrtc27@jrtc27.com>
26631
26632 PR target/84010
26633 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26634 consistently in TLS address generation and adjust code to the renaming
26635 of patterns. Mark calls to __tls_get_addr as const.
26636 * config/sparc/sparc.md (tgd_hi22): Turn into...
26637 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26638 (tgd_lo10): Turn into...
26639 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26640 (tgd_add32): Merge into...
26641 (tgd_add64): Likewise.
26642 (tgd_add<P:mode>): ...this and use Pmode throughout.
26643 (tldm_hi22): Turn into...
26644 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26645 (tldm_lo10): Turn into...
26646 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26647 (tldm_add32): Merge into...
26648 (tldm_add64): Likewise.
26649 (tldm_add<P:mode>): ...this and use Pmode throughout.
26650 (tldm_call32): Merge into...
26651 (tldm_call64): Likewise.
26652 (tldm_call<P:mode>): ...this and use Pmode throughout.
26653 (tldo_hix22): Turn into...
26654 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26655 (tldo_lox10): Turn into...
26656 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26657 (tldo_add32): Merge into...
26658 (tldo_add64): Likewise.
26659 (tldo_add<P:mode>): ...this and use Pmode throughout.
26660 (tie_hi22): Turn into...
26661 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26662 (tie_lo10): Turn into...
26663 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26664 (tie_ld64): Use DImode throughout.
26665 (tie_add32): Merge into...
26666 (tie_add64): Likewise.
26667 (tie_add<P:mode>): ...this and use Pmode throughout.
26668 (tle_hix22_sp32): Merge into...
26669 (tle_hix22_sp64): Likewise.
26670 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26671 (tle_lox22_sp32): Merge into...
26672 (tle_lox22_sp64): Likewise.
26673 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26674 (*tldo_ldub_sp32): Merge into...
26675 (*tldo_ldub_sp64): Likewise.
26676 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26677 (*tldo_ldub1_sp32): Merge into...
26678 (*tldo_ldub1_sp64): Likewise.
26679 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26680 (*tldo_ldub2_sp32): Merge into...
26681 (*tldo_ldub2_sp64): Likewise.
26682 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26683 (*tldo_ldsb1_sp32): Merge into...
26684 (*tldo_ldsb1_sp64): Likewise.
26685 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26686 (*tldo_ldsb2_sp32): Merge into...
26687 (*tldo_ldsb2_sp64): Likewise.
26688 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26689 (*tldo_ldub3_sp64): Use DImode throughout.
26690 (*tldo_ldsb3_sp64): Likewise.
26691 (*tldo_lduh_sp32): Merge into...
26692 (*tldo_lduh_sp64): Likewise.
26693 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26694 (*tldo_lduh1_sp32): Merge into...
26695 (*tldo_lduh1_sp64): Likewise.
26696 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26697 (*tldo_ldsh1_sp32): Merge into...
26698 (*tldo_ldsh1_sp64): Likewise.
26699 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26700 (*tldo_lduh2_sp64): Use DImode throughout.
26701 (*tldo_ldsh2_sp64): Likewise.
26702 (*tldo_lduw_sp32): Merge into...
26703 (*tldo_lduw_sp64): Likewise.
26704 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26705 (*tldo_lduw1_sp64): Use DImode throughout.
26706 (*tldo_ldsw1_sp64): Likewise.
26707 (*tldo_ldx_sp64): Likewise.
26708 (*tldo_stb_sp32): Merge into...
26709 (*tldo_stb_sp64): Likewise.
26710 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26711 (*tldo_sth_sp32): Merge into...
26712 (*tldo_sth_sp64): Likewise.
26713 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26714 (*tldo_stw_sp32): Merge into...
26715 (*tldo_stw_sp64): Likewise.
26716 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26717 (*tldo_stx_sp64): Use DImode throughout.
26718
26719 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26720
26721 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26722 check configure option to set BTI and Return Address Signing.
26723 * configure.ac: Add --enable-standard-branch-protection and
26724 --disable-standard-branch-protection.
26725 * configure: Regenerated.
26726 * doc/install.texi: Document the same.
26727
26728 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26729 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26730
26731 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26732 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26733 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26734 if bti is enabled.
26735 * config/aarch64/aarch64-bti-insert.c: New file.
26736 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26737 pass.
26738 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26739 new bti pass.
26740 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26741 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26742 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26743 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26744
26745 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26746
26747 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26748 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26749 Disable bti for -mbranch-protection=none.
26750 (aarch64_handle_standard_branch_protection): Enable bti for
26751 -mbranch-protection=standard.
26752 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26753 -mbranch-protection.
26754 (aarch64_bti_enabled): Check if bti is enabled.
26755 * config/aarch64/aarch64.opt: Declare target variable.
26756 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26757
26758 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26759
26760 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26761 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26762 (aarch64_expand_epilogue): Likewise.
26763 (aarch64_output_mi_thunk): Likewise.
26764 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26765 TAILCALL_ADDR_REGS to x16 and x17.
26766 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26767
26768 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26769
26770 * config/aarch64/aarch64-option-extensions.def: Define
26771 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26772 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26773 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26774 (AARCH64_FL_PREDRES): New.
26775 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26776 AARCH64_FL_PREDRES by default.
26777 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26778
26779 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26780
26781 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26782 ARMv8.5-A.
26783 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26784 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26785 * doc/invoke.texi: Document ARMv8.5-A.
26786
26787 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26788
26789 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26790 (xorsign<mode>3): Likewise.
26791
26792 2019-01-09 Jelinek <jakub@redhat.com>
26793
26794 PR middle-end/88758
26795 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26796 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26797
26798 PR rtl-optimization/88331
26799 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26800 not currently_expanding_to_rtl.
26801
26802 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26803
26804 * doc/invoke.texi (-Os): Remove trailing spaces.
26805 (-finline-functions): Remove reference to -O2.
26806
26807 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26808
26809 PR rtl-optimization/79593
26810 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26811
26812 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26813 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26814
26815 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26816
26817 PR bootstrap/88721
26818 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26819 to -1 on entry.
26820
26821 PR debug/88723
26822 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26823 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26824
26825 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26826
26827 PR target/88717
26828 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26829 ix86_avx_u128_mode_entry.
26830
26831 2019-01-08 Martin Liska <mliska@suse.cz>
26832
26833 PR tree-optimization/88753
26834 * tree-switch-conversion.c (switch_conversion::build_one_array):
26835 Come up with local variable constructor. Convert first to
26836 type of constructor values.
26837
26838 2019-01-08 Richard Biener <rguenther@suse.de>
26839
26840 PR tree-optimization/86554
26841 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26842 rpo_avail): Move earlier.
26843 (visit_nary_op): When value-numbering to expressions
26844 with different overflow behavior make sure there's an
26845 available expression on the path.
26846
26847 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26848
26849 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26850 aarch64_parse_branch_protection,
26851 struct aarch64_branch_protect_type,
26852 aarch64_handle_no_branch_protection,
26853 aarch64_handle_standard_branch_protection,
26854 aarch64_validate_mbranch_protection,
26855 aarch64_handle_pac_ret_protection,
26856 aarch64_handle_attr_branch_protection,
26857 accepted_branch_protection_string,
26858 aarch64_pac_ret_subtypes,
26859 aarch64_branch_protect_types,
26860 aarch64_handle_pac_ret_leaf): Define.
26861 (aarch64_override_options_after_change_1, aarch64_override_options):
26862 Add check for accepted_branch_protection_string.
26863 (aarch64_option_save): Save accepted_branch_protection_string.
26864 (aarch64_option_restore): Save accepted_branch_protection_string.
26865 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26866 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26867 msign-return-address.
26868 * doc/invoke.texi: Add mbranch-protection.
26869
26870 2019-01-08 Alan Modra <amodra@gmail.com>
26871
26872 PR target/88614
26873 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26874 Delete "unknownp" parameter. Adjust callers. Handle
26875 CONST_INT, PLUS, MINUS, and MULT.
26876 (attr_value_aligned): Renamed from or_attr_value.
26877 (min_attr_value): Return INT_MIN for unhandled rtl case..
26878 (min_fn): ..and translate to INT_MAX here.
26879 (write_length_unit_log): Modify to cope without "unknown".
26880 (write_attr_value): Handle IF_THEN_ELSE.
26881
26882 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26883
26884 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26885 optimization for masked stores.
26886
26887 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26888
26889 PR middle-end/88567
26890 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26891 output vector directly to duplicate_and_interleave instead of
26892 going through a temporary. Postpone insertion of ctor_seq to
26893 the end of the loop.
26894
26895 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26896
26897 PR target/86891
26898 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26899 unsigned_p. Handle signed and unsigned overflow correction as
26900 required.
26901 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26902 prototype.
26903 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26904 for operand 2.
26905 (add<mode>3_compareV_imm): Make this callable for expanding.
26906 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26907 aarch64_plus_operand for operand 2.
26908 (subv<GPI:mode>_insn): New insn pattern.
26909 (subv<GPI:mode>_imm): Likewise.
26910 (negv<GPI:mode>3): New expand pattern.
26911 (negv<GPI:mode>_insn): New insn pattern.
26912 (negv<GPI:mode>_cmp_only): Likewise.
26913 (cmpv<GPI:mode>_insn): Likewise.
26914 (subvti4): Use register_operand for operand 1. Update call to
26915 aarch64_expand_subvti.
26916 (usubvti4): Likewise.
26917 (negvti3): New expand pattern.
26918 (negdi_carryout): New insn pattern.
26919 (negvdi_carryinV): New insn pattern.
26920 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26921 version the named version.
26922 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26923 operands.
26924 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26925 patterns.
26926 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26927 patterns.
26928 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26929 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26930 (sub<mode>3_carryinCV): Delete.
26931 (sub<GPI:mode>3_carryinV): New expand pattern.
26932 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26933
26934 2019-01-07 Richard Biener <rguenther@suse.de>
26935
26936 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26937 of tree_operand_hash.
26938
26939 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26940
26941 PR tree-optimization/88598
26942 * tree.h (single_nonzero_element): Declare.
26943 * tree.c (single_nonzero_element): New function.
26944 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26945 if I is the only nonzero element of CST.
26946
26947 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26948
26949 PR tree-optimization/88598
26950 * tree.h (initializer_each_zero_or_onep): Declare.
26951 * tree.c (initializer_each_zero_or_onep): New function.
26952 (signed_or_unsigned_type_for): Handle float types too.
26953 (unsigned_type_for, signed_type_for): Update comments accordingly.
26954 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26955 x & { 0 or -1, 0 or -1, ... }.
26956
26957 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26958
26959 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26960 with x86_64-pc-linux-gnu.
26961
26962 2019-01-07 Tom de Vries <tdevries@suse.de>
26963
26964 PR target/85486
26965 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26966 function.
26967 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26968 routines.
26969
26970 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26971
26972 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26973 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26974 TARGET_AVX512F as condition.
26975
26976 PR debug/88723
26977 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26978 const_not_ok_for_debug_p target hook.
26979 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26980 on UNSPEC and subexpressions thereof if all subexpressions of the
26981 UNSPEC are CONSTANT_P.
26982
26983 PR tree-optimization/88676
26984 * tree-ssa-phiopt.c (two_value_replacement): New function.
26985 (tree_ssa_phiopt_worker): Call it.
26986
26987 PR sanitizer/88619
26988 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26989 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26990
26991 PR c++/85052
26992 * tree-vect-generic.c: Include insn-config.h and recog.h.
26993 (expand_vector_piecewise): Add defaulted ret_type argument,
26994 if non-NULL, use that in preference to type for the result type.
26995 (expand_vector_parallel): Formatting fix.
26996 (do_vec_conversion, do_vec_narrowing_conversion,
26997 expand_vector_conversion): New functions.
26998 (expand_vector_operations_1): Call expand_vector_conversion
26999 for VEC_CONVERT ifn calls.
27000 * internal-fn.def (VEC_CONVERT): New internal function.
27001 * internal-fn.c (expand_VEC_CONVERT): New function.
27002 * fold-const-call.c (fold_const_vec_convert): New function.
27003 (fold_const_call): Use it for CFN_VEC_CONVERT.
27004 * doc/extend.texi (__builtin_convertvector): Document.
27005
27006 2019-01-07 Tom de Vries <tdevries@suse.de>
27007
27008 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
27009 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
27010 vector_red_partition, vector_red_sym): New global variables.
27011 (nvptx_option_override): Initialize vector_red_sym.
27012 (nvptx_declare_function_name): Restore red_partition register.
27013 (nvptx_file_end): Emit code to declare the vector reduction variables.
27014 (nvptx_output_red_partition): New function.
27015 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
27016 large vector reductions.
27017 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
27018 (nvptx_init_builtins): Add VECTOR_ADDR.
27019 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
27020 Handle nvptx_expand_shared_addr.
27021 (nvptx_get_shared_red_addr): Add vector argument and handle large
27022 vectors.
27023 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
27024 large vectors.
27025 (nvptx_goacc_reduction_init): Likewise.
27026 (nvptx_goacc_reduction_fini): Likewise.
27027 (nvptx_goacc_reduction_teardown): Likewise.
27028 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
27029 init,fini,teardown}.
27030 (nvptx_init_axis_predicate): Initialize vector_red_partition.
27031 (nvptx_set_current_function): Init vector_red_partition.
27032 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
27033 (nvptx_red_partition): New insn.
27034 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
27035
27036 2019-01-07 Tom de Vries <tdevries@suse.de>
27037
27038 PR target/85381
27039 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
27040 empty loops.
27041
27042 2019-01-07 Tom de Vries <tdevries@suse.de>
27043
27044 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
27045 (nvptx_option_override): Init oacc_bcast_partition.
27046 (nvptx_init_oacc_workers): New function.
27047 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
27048 (nvptx_needs_shared_bcast): New function.
27049 (nvptx_find_par): Generalize to enable vectors to use shared-memory
27050 to propagate state.
27051 (nvptx_shared_propagate): Initialize vector bcast partition and
27052 synchronization state.
27053 (nvptx_single): Generalize to enable vectors to use shared-memory
27054 to propagate state.
27055 (nvptx_process_pars): Likewise.
27056 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
27057 * config/nvptx/nvptx.h (struct machine_function): Add
27058 bcast_partition and sync_bar members.
27059
27060 2019-01-07 Tom de Vries <tdevries@suse.de>
27061
27062 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
27063 (nvptx_apply_dim_limits): New function.
27064 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
27065 PTX_WARP_SIZE.
27066
27067 2019-01-07 Tom de Vries <tdevries@suse.de>
27068
27069 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
27070 as late as possible.
27071
27072 2019-01-07 Tom de Vries <tdevries@suse.de>
27073
27074 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
27075 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
27076 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
27077 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
27078 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
27079
27080 2019-01-07 Tom de Vries <tdevries@suse.de>
27081
27082 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
27083
27084 2019-01-07 Tom de Vries <tdevries@suse.de>
27085
27086 * omp-offload.c (oacc_get_min_dim): New function.
27087 * omp-offload.h (oacc_get_min_dim): Declare.
27088
27089 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
27090
27091 PR target/88521
27092 * config/i386/i386.c (function_value_ms_64): Return small sturct in
27093 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
27094
27095 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27096
27097 PR tree-opt/86020
27098 Revert:
27099 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
27100
27101 * ipa-inline.c (edge_badness): Use inlined_time instead of
27102 inline_summaries->get.
27103
27104 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27105
27106 * opts.c (enable_fdo_optimizations): Enable
27107 version-loops-for-strides, loop-interchange, unrol-and-jam
27108 and tree-loop-distribution.
27109 * invoke.texi: Document newly enabled options.
27110
27111 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27112
27113 * doc/invoke.texi (max-inline-insns-small): New parameters.
27114 * ipa-inline.c (want_early_inline_function_p): simplify.
27115 (want_inline_small_function_p): Fix pasto from previous patch;
27116 use max-inline-insns-small bound.
27117 * params.def (max-inline-insns-small): New param.
27118 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
27119 variables correctly.
27120
27121 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27122
27123 * doc/invoke.texi: Document max-inline-insns-size,
27124 uninlined-function-insns, uninlined-function-time,
27125 uninlined-thunk-insns and uninlined-thunk-time.
27126 * params.def: Add max-inline-insns-size,
27127 uninlined-function-insns, uninlined-function-time,
27128 uninlined-thunk-insns and uninlined-thunk-time.
27129 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
27130 new parameters.
27131 * ipa-inline.c (can_inline_edge_by_limits_p,
27132 want_inline_small_function_p): Use new parameters.
27133
27134 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
27135
27136 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
27137
27138 2019-01-05 Jakub Jelinek <jakub@redhat.com>
27139
27140 PR middle-end/82564
27141 PR target/88620
27142 * expr.c (expand_assignment): For calls returning VLA structures
27143 if to_rtx is not a MEM, force it into a stack temporary.
27144
27145 PR debug/88635
27146 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
27147 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
27148 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
27149 subexpressions of both operands.
27150 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
27151 subrtxes are CONSTANT_P.
27152 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
27153 2018-11-09 changes.
27154
27155 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
27156
27157 * params.def (hot-bb-count-ws-permille): Set to 990.
27158
27159 2019-01-04 Martin Sebor <msebor@redhat.com>
27160
27161 PR c/88546
27162 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
27163 leaf.
27164
27165 2019-01-04 Martin Sebor <msebor@redhat.com>
27166
27167 PR c/88363
27168 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
27169
27170 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27171
27172 * gdbinit.in: Turn off pagination for the skip commands, restore
27173 it to previous state afterwards.
27174
27175 2019-01-04 Jakub Jelinek <jakub@redhat.com>
27176
27177 PR target/88594
27178 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
27179 of GET_MODE (opN) as modes of the libcall arguments.
27180
27181 2019-01-04 Jan Beulich <jbeulich@suse.com>
27182
27183 * config/i386/sse.md
27184 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
27185 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
27186 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27187 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
27188 avx512f_vmcmp<mode>3<round_saeonly_name>,
27189 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
27190 avx512f_maskcmp<mode>3,
27191 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27192 <avx512>_cvt<ssemodesuffix>2mask<mode>,
27193 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27194 *<avx512>_cvtmask2<ssemodesuffix><mode>,
27195 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27196 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
27197 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27198 <avx512>_gt<mode>3<mask_scalar_merge_name>,
27199 <avx512>_testm<mode>3<mask_scalar_merge_name>,
27200 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
27201 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
27202 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
27203 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
27204 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
27205 avx512cd_maskb_vec_dup<mode>,
27206 avx512cd_maskw_vec_dup<mode>,
27207 avx512dq_fpclass<mode><mask_scalar_merge_name>,
27208 avx512dq_vmfpclass<mode>,
27209 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
27210 instead of =Yk.
27211
27212 2019-01-03 Martin Sebor <msebor@redhat.com>
27213
27214 PR tree-optimization/88659
27215 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
27216
27217 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
27218
27219 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
27220 unaligned vsx and avoid lxvd2x/stxvd2x.
27221 (gen_lvx_v4si_move): New function.
27222
27223 2019-01-03 Tom de Vries <tdevries@suse.de>
27224
27225 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
27226 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
27227 function.
27228 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
27229
27230 2019-01-03 Tom de Vries <tdevries@suse.de>
27231
27232 * config/nvptx/nvptx.c (struct offload_attrs): New.
27233 (populate_offload_attrs): New function. Factor mask extraction out of
27234 nvptx_reorg. Add extraction of dimensions.
27235 (nvptx_reorg): Use populate_offload_attrs.
27236
27237 2019-01-03 Tom de Vries <tdevries@suse.de>
27238
27239 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
27240 cases for oacc_min_dims_p and routine_p. Add asserts for
27241 oacc_default_dims_p and offload_region_p.
27242
27243 2019-01-03 Tom de Vries <tdevries@suse.de>
27244
27245 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
27246 factored out of ...
27247 (nvptx_goacc_validate_dims): ... here.
27248
27249 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27250
27251 PR tree-optimization/85574
27252 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
27253 structure.
27254 (struct ssa_equip_hash_traits): Declare.
27255 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
27256
27257 2019-01-03 Jakub Jelinek <jakub@redhat.com>
27258
27259 PR debug/88644
27260 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
27261 change it to qualified_type.
27262
27263 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
27264
27265 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
27266 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
27267
27268 2019-01-02 Martin Sebor <msebor@redhat.com>
27269 Jeff Law <law@redhat.com>
27270
27271 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
27272 (get_range_strlen_tree): Update appropriately.
27273 (get_range_strlen)
27274 * gimple-fold.h (get_range_strlen): Drop unused last argument.
27275
27276 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
27277 rather than set_range_info.
27278 * tree-ssa-strlen.c (set_strlen_range): Extracted from
27279 maybe_set_strlen_range. Handle potentially boundary crossing
27280 cases more conservatively.
27281 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
27282 Call set_strlen_range.
27283 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
27284
27285 PR middle-end/88663
27286 * gimple-fold.c (get_range_strlen): Update prototype to no longer
27287 need the flexp argument.
27288 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
27289 from calls to get_range_strlen. Update comments. Just update
27290 VAL for an unterminated const char array and let the reset of the
27291 code handle it normally. No longer try to set *flexp. Adjust
27292 return value.
27293 (get_range_strlen): Update for the new get_range_strlen API.
27294 (get_maxval_strlen): Similarly.
27295 (gimple_fold_builtin_strlen): Handle update meaning of return value
27296 from get_range_strlen.
27297 * gimple-ssa-sprintf.c (get_string_length): Update for the new
27298 get_range_strlen API.
27299
27300 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
27301
27302 PR lto/88130
27303 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
27304 false at WPA time when body was removed.
27305
27306 2019-01-02 Martin Liska <mliska@suse.cz>
27307
27308 PR tree-optimization/88650
27309 * predict.c (set_even_probabilities): Calculate probability
27310 remainer only when really used.
27311
27312 2019-01-02 Richard Biener <rguenther@suse.de>
27313
27314 PR middle-end/88651
27315 * tree-data-ref.c (analyze_subscript_affine_affine): Use
27316 widest_ints when mangling max_stmt_execution results.
27317
27318 2019-01-02 Richard Biener <rguenther@suse.de>
27319
27320 PR tree-optimization/88621
27321 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
27322 bitfields when canoncalizing.
27323
27324 2019-01-02 Richard Biener <rguenther@suse.de>
27325
27326 PR target/87545
27327 * config/i386/x86-tune-costs.h (intel_cost): Adjust
27328 cost of cheap SSE instruction.
27329
27330 2019-01-02 Richard Biener <rguenther@suse.de>
27331
27332 PR ipa/85574
27333 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
27334 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
27335 function.
27336 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
27337 set after UIDs before splitting them.
27338
27339 2019-01-01 Martin Sebor <msebor@redhat.com>
27340 Jeff Law <law@redhat.com>
27341
27342 * gimple-fold.c (get_range_strlen_tree): Record if the computed
27343 length is optimistic. If it is, then arrange to compute the
27344 conservative length as well.
27345
27346 * gimple-fold.h (get_range_strlen): Update prototype.
27347 * builtins.c (check_access): Update call to get_range_strlen to use
27348 c_strlen_data pointer. Change various variable accesses to instead
27349 pull data from the c_strlen_data structure.
27350 (check_strncat_sizes, expand_builtin_strncat): Likewise.
27351 * calls.c (maybe_warn_nonstring_arg): Likewise.
27352 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
27353 minimum length if maximum lengh is unknown.
27354 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
27355 that used c_strlen, it's no longer needed. Restructure slightly.
27356 (format_string): Set unlikely range appropriately.
27357 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
27358 formatting issues.
27359 (get_range_strlen): Accept c_strlen_data pointer for external
27360 call sites as well. Pass through to call to internal get_range_strlen.
27361 Adjust minlen, maxlen and maxbound as needed.
27362 (get_maxval_strlen): Update comments.
27363 (gimple_fold_builtin_strlen): Update call to get_range_strlen
27364 to use c_strlen_data pointer. Change variable accesses to instead
27365 use c_strlen_data data members.
27366
27367 * gimple-fold.c (get_range_strlen): Update prototype.
27368 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
27369 local variables. Use pdata to return information to caller.
27370 Update calls to get_range_strlen. Update pdata->maxbound.
27371 (get_range_strlen -- static version): Similarly.
27372 (get_range_strlen -- extern version): Update for internal
27373 get_range_strlen API change. Convert to external data format.
27374 (get_maxval_strlen): Similarly.
27375
27376 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27377
27378 * coverage.c (get_coverage_counts): Use current_function_decl.
27379 * profile.c (read_thunk_profile): New function.
27380 (branch_prob): Add THUNK parameter.
27381 * tree-profile.c (tree_profiling): Handle thunks.
27382 * value-prof.c (init_node_map): Handle thunks.
27383 * value-prof.h (branch_prob): Upate prototype.
27384 (read_thunk_profile): Declare.
27385
27386 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27387
27388 Update copyright years.
27389
27390 * gcc.c (process_command): Update copyright notice dates.
27391 * gcov-dump.c (print_version): Ditto.
27392 * gcov.c (print_version): Ditto.
27393 * gcov-tool.c (print_version): Ditto.
27394 * gengtype.c (create_file): Ditto.
27395 * doc/cpp.texi: Bump @copying's copyright year.
27396 * doc/cppinternals.texi: Ditto.
27397 * doc/gcc.texi: Ditto.
27398 * doc/gccint.texi: Ditto.
27399 * doc/gcov.texi: Ditto.
27400 * doc/install.texi: Ditto.
27401 * doc/invoke.texi: Ditto.
27402 \f
27403 Copyright (C) 2019 Free Software Foundation, Inc.
27404
27405 Copying and distribution of this file, with or without modification,
27406 are permitted in any medium without royalty provided the copyright
27407 notice and this notice are preserved.