[AArch64] Use calls for SVE TLSDESC
[gcc.git] / gcc / ChangeLog
1 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
2
3 PR target/91452
4 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
5 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
6 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7 Handle ARM_PCS_TLSDESC.
8 (aarch64_tlsdesc_abi_id): New function.
9 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10 rtx instead of a list of clobbers and clobber_highs.
11 (tlsdesc_small_<mode>): Update accordingly.
12
13 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
14
15 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
16 extra callee_abi argument.
17 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
18 Insert a CALLEE_ABI unspec into the call pattern as the second
19 element in the PARALLEL.
20 (aarch64_simd_call_p): Delete.
21 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
22 the new CALLEE_ABI element of the PARALLEL.
23 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
24 from the function type, if given.
25 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
26 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
27 when passed the function_arg_info end marker.
28 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
29 final argument of gen_sibcall.
30 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
31 (call): Make operand 2 a const_int_operand and pass it to expand_call.
32 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
33 pattern.
34 (call_value): Likewise operand 3.
35 (sibcall): Likewise operand 2. Place the unspec before rather than
36 after the return.
37 (sibcall_value): Likewise operand 3.
38 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
39 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
40 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
41 constraint strings.
42 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
43
44 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
45
46 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
47 choose_hard_reg_mode.
48 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
49
50 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
51
52 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
53 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
54 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
55
56 2019-09-30 David Malcolm <dmalcolm@redhat.com>
57
58 * diagnostic-show-locus.c (line_label::line_label): Initialize
59 m_has_vbar.
60 (line_label::comparator): Reverse the sort order by m_state_idx,
61 so that when the list is walked backwards the labels appear in
62 order of insertion into the rich_location.
63 (line_label::m_has_vbar): New field.
64 (layout::print_any_labels): When dealing with multiple labels at
65 the same line and column, only print vertical bars for the one
66 with the highest label_line.
67 (selftest::test_one_liner_labels): Update test for multiple labels
68 to expect the labels to be in the order of insertion into the
69 rich_location. Add a test for many such labels, where the column
70 numbers are out-of-order relative to the insertion order.
71
72 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
73
74 * config/i386/i386.h (ix86_frame::expensive_p): New field.
75 (ix86_frame::expensive_count): Likewise.
76 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
77 of use_fast_prologue_epilogue robust against incidental changes
78 in function size.
79
80 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
81
82 PR target/77918
83 * config/s390/vector.md (vec_unordered<mode>): Call
84 gen_vec_ordered<mode>.
85
86 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
87
88 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
89 New pattern for ASRD.
90 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
91 * internal-fn.def (IFN_DIV_POW2): New internal function.
92 * optabs.def (sdiv_pow2_optab): New optab.
93 * tree-vect-patterns.c (vect_recog_divmod_pattern):
94 Modify pattern to support new operation.
95 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
96 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
97 Document new target selector.
98
99 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
100
101 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
102 to test whether we're compiling a vector PCS function and to test
103 whether the function needs to save a particular register.
104 Remove the vector PCS handling of df_set_regs_ever_live.
105 (aarch64_components_for_bb): Use crtl->abi to test whether
106 the function needs to save a particular register.
107 (aarch64_process_components): Use crtl->abi to test whether
108 we're compiling a vector PCS function.
109 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
110 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
111
112 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
113
114 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
115 Delete.
116 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
117 whether the block calls a function that clobbers more registers
118 than the current function is allowed to.
119 (aarch64_use_simple_return_insn_p): Delete.
120 * config/aarch64/aarch64.md (simple_return): Remove condition.
121
122 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
123
124 * function-abi.h (function_abi_aggregator): New class.
125 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
126 function.
127 * ira.c (update_equiv_regs_prescan): New function. Call
128 set_paradoxical_subreg here rather than...
129 (update_equiv_regs): ...here.
130 (ira): Call update_equiv_regs_prescan.
131
132 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
133
134 * hard-reg-set.h (regs_invalidated_by_call): Only define if
135 IN_TARGET_CODE.
136 (call_used_or_fixed_regs): Likewise.
137 (call_used_or_fixed_reg_p): Likewise.
138 * reginfo.c (regs_invalidated_by_call): New macro.
139
140 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
141
142 * shrink-wrap.c: Include function-abi.h.
143 (requires_stack_frame_p): Use crtl->abi to test whether the
144 current function can use a register without saving it first.
145
146 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
147
148 * sel-sched-ir.h (_def::crosses_call): Replace with...
149 (_def::crossed_call_abis): ..this new field.
150 (def_list_add): Take a mask of ABIs instead of a crosses_call
151 boolean.
152 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
153 of _def accordingly.
154 * sel-sched.c: Include function-abi.h.
155 (hard_regs_data::regs_for_call_clobbered): Delete.
156 (reg_rename::crosses_call): Replace with...
157 (reg_rename::crossed_call_abis): ...this new field.
158 (fur_static_params::crosses_call): Replace with...
159 (fur_static_params::crossed_call_abis): ...this new field.
160 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
161 (init_hard_regs_data): Use crtl->abi to test which registers the
162 current function would need to save before it uses them.
163 (mark_unavailable_hard_regs): Update handling of call-clobbered
164 registers, using call_clobbers_in_region to find out which registers
165 might be call-clobbered (but without taking -fipa-ra into account
166 for now). Remove separate handling of partially call-clobbered
167 registers.
168 (verify_target_availability): Use crossed_call_abis instead of
169 crosses_call.
170 (get_spec_check_type_for_insn, find_used_regs): Likewise.
171 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
172
173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
174
175 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
176 function to test whether a register is fully or partly clobbered.
177
178 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
179
180 * rtlanal.c: Include function-abi.h.
181 (reg_set_p): Use insn_callee_abi to get the ABI of the called
182 function and clobbers_reg_p to test whether the register
183 is call-clobbered.
184 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
185 to get the ABI of the called function and full_reg_clobbers to
186 get the set of fully call-clobbered registers. Warn about the
187 pitfalls of using this mode.
188
189 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
190
191 * reload.c: Include function-abi.h.
192 (find_equiv_reg): Use clobbers_reg_p to test whether either
193 of the equivalent registers is clobbered by a call.
194 * reload1.c: Include function-abi.h.
195 (reg_reloaded_call_part_clobbered): Delete.
196 (reload): Use crtl->abi to test which registers would need
197 saving in the prologue before use.
198 (find_reg): Likewise.
199 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
200 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
201 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
202
203 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
204
205 * regrename.h (du_head::call_clobber_mask): New field.
206 (du_head::need_caller_save_reg): Replace with...
207 (du_head::call_abis): ...this new field.
208 * regrename.c: Include function-abi.h.
209 (call_clobbered_in_chain_p): New function.
210 (check_new_reg_p): Use crtl->abi when deciding whether a register
211 is free for use after RA. Use call_clobbered_in_chain_p to test
212 whether a candidate register would be clobbered by a call.
213 (find_rename_reg): Don't add call-clobber conflicts here.
214 (rename_chains): Check call_abis instead of need_caller_save_reg.
215 (merge_chains): Update for changes to du_head.
216 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
217 target. Record the ABI identifier in call_abis and the set of
218 fully or partially clobbered registers in call_clobber_mask.
219 Add fully-clobbered registers to hard_conflicts here rather
220 than in find_rename_reg.
221 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
222 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
223 * config/aarch64/falkor-tag-collision-avoidance.c: Include
224 function-abi.h.
225 * config/c6x/c6x.c: Likewise.
226
227 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
228
229 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
230 mode of the register when deciding whether it is no longer
231 available after a call.
232
233 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
234
235 * recog.c: Include function-abi.h.
236 (peep2_find_free_register): Use crtl->abi when deciding whether
237 a register is free for use after RA.
238
239 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
240
241 * postreload-gcse.c: Include regs.h and function-abi.h.
242 (record_opr_changes): Use insn_callee_abi to get the ABI of the
243 call insn target. Conservatively assume that partially-clobbered
244 registers are altered.
245
246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
247
248 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
249 when deciding whether a register is free for use after RA.
250 (reload_combine): Remove unnecessary use of fixed_reg_set.
251 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
252 call insn target. Use reg_mode when testing whether a register
253 is no longer available.
254
255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
256
257 * target.def (return_call_with_max_clobbers): Delete.
258 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
259 * doc/tm.texi: Regenerate.
260 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
261 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
262 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
263 (lra_reg::call_insn): Delete.
264 * lra.c: Include function-abi.h.
265 (initialize_lra_reg_info_element): Don't initialize the fields above.
266 (lra): Use crtl->abi to test whether the current function needs to
267 save a register in the prologue. Remove special pre-inheritance
268 lra_create_live_ranges pass for flag_ipa_ra.
269 * lra-assigns.c: Include function-abi.h
270 (find_hard_regno_for_1): Use crtl->abi to test whether the current
271 function needs to save a register in the prologue.
272 (lra_assign): Assert that registers aren't allocated to a
273 conflicting register, rather than checking only for overlaps
274 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
275 and for registers that are not live across a call.
276 * lra-constraints.c (last_call_for_abi): New variable.
277 (full_and_partial_call_clobbers): Likewise.
278 (setup_next_usage_insn): Remove the register from
279 full_and_partial_call_clobbers.
280 (need_for_call_save_p): Use call_clobbered_in_region_p to test
281 whether the register needs a caller save.
282 (need_for_split_p): Use full_and_partial_reg_clobbers instead
283 of call_used_or_fixed_regs.
284 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
285 full_and_partial_call_clobbers.
286 * lra-lives.c (check_pseudos_live_through_calls): Replace
287 last_call_used_reg_set and call_insn arguments with an abi argument.
288 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
289 as the set of conflicting registers.
290 (calls_have_same_clobbers_p): Delete.
291 (process_bb_lives): Track the ABI of the last call instead of an
292 insn/HARD_REG_SET pair. Update calls to
293 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
294 the set of registers that could be clobbered by an EH edge.
295 Include partially-clobbered as well as fully-clobbered registers.
296 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
297 * lra-remat.c: Include function-abi.h.
298 (call_used_regs_arr_len, call_used_regs_arr): Delete.
299 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
300 registers and bitmap_view to combine them into dead_regs.
301 (call_used_input_regno_present_p): Take a function_abi argument
302 and use it to test whether a register is call-clobbered.
303 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
304 call insn target. Update tje call to call_used_input_regno_present_p.
305 (do_remat): Likewise.
306 (lra_remat): Remove the initialization of call_used_regs_arr_len
307 and call_used_regs_arr.
308
309 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
310
311 * loop-iv.c: Include regs.h and function-abi.h.
312 (simplify_using_initial_values): Use insn_callee_abi to get the
313 ABI of the call insn target. Conservatively assume that
314 partially-clobbered registers are altered.
315
316 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
317
318 * function-abi.h (call_clobbers_in_region): Declare.
319 (call_clobbered_in_region_p): New function.
320 * function-abi.cc (call_clobbers_in_region): Likewise.
321 * ira-int.h: Include function-abi.h.
322 (ira_allocno::crossed_calls_abis): New field.
323 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
324 (ira_need_caller_save_regs): New function.
325 (ira_need_caller_save_p): Likewise.
326 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
327 of call_used_or_fixed_regs.
328 (do_reload): Use crtl->abi to test whether the current function
329 needs to save a register in the prologue. Count registers that
330 need to be saved rather than registers that don't.
331 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
332 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
333 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
334 (propagate_some_info_from_allocno): Likewise.
335 (copy_info_to_removed_store_destinations): Likewise.
336 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
337 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
338 (ira_build): Use ira_need_caller_save_regs instead of
339 call_used_or_fixed_regs.
340 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
341 whether the current function would need to save a register
342 before using it.
343 (calculate_spill_cost): Likewise.
344 (allocno_reload_assign): Use ira_need_caller_save_regs and
345 ira_need_caller_save_p instead of call_used_or_fixed_regs.
346 * ira-conflicts.c (ira_build_conflicts): Use
347 ira_need_caller_save_regs rather than call_used_or_fixed_regs
348 as the set of call-clobbered registers. Remove the
349 call_used_or_fixed_regs mask from the calculation of
350 temp_hard_reg_set and mask its use instead. Remove special
351 handling of partially-clobbered registers.
352 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
353 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
354 calculate the set of conflicting registers for calls that
355 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
356 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
357 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
358 Use eh_edge_abi to calculate the set of registers that could
359 be clobbered by an EH edge. Include partially-clobbered as
360 well as fully-clobbered registers.
361
362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
363
364 * haifa-sched.c: Include function-abi.h.
365 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
366 the function would need to save a register before using it.
367
368 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
369
370 * gcse.c: Include function-abi.h.
371 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
372 the call insn target. Invalidate partially call-clobbered
373 registers as well as fully call-clobbered ones.
374
375 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
376
377 * function.c (aggregate_value_p): Work out which ABI the
378 function is using before testing which registers are at least
379 partly preserved by a call.
380
381 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
382
383 * early-remat.c: Include regs.h and function-abi.h.
384 (early_remat::maybe_add_candidate): Don't check for call-clobbered
385 registers here.
386 (early_remat::restrict_remat_for_unavail_regs): New function.
387 (early_remat::restrict_remat_for_call): Likewise.
388 (early_remat::process_block): Before calling emit_remat_insns
389 for a previous call in the block, invalidate any candidates
390 that would clobber call-preserved registers.
391 (early_remat::emit_remat_insns_for_block): Likewise for the
392 final call in a block. Do the same thing for live-in registers
393 when calling emit_remat_insns at the head of a block.
394
395 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
396
397 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
398 whether the current function needs to save at least part of a
399 register before using it.
400 (df_get_exit_block_use_set): Likewise for epilogue restores.
401
402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
403
404 * df-problems.c: Include regs.h and function-abi.h.
405 (df_rd_problem_data): Rename sparse_invalidated_by_call to
406 sparse_invalidated_by_eh and dense_invalidated_by_call to
407 dense_invalidated_by_eh.
408 (df_print_bb_index): Update accordingly.
409 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
410 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
411 that are clobbered by an EH edge. Clobber partially-clobbered
412 registers as well as fully-clobbered ones.
413 (df_md_confluence_n): Likewise.
414 (df_rd_local_compute): Likewise. Update for changes to
415 df_rd_problem_data.
416 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
417 of registers that are clobbered by an EH edge. Includde partially-
418 clobbered registers as well as fully-clobbered ones.
419
420 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
421
422 * cselib.c (cselib_process_insn): If we know what mode a
423 register was set in, check whether it is clobbered in that
424 mode by a call. Only fall back to reg_raw_mode if that fails.
425
426 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
427
428 * cse.c: Include regs.h and function-abi.h.
429 (invalidate_for_call): Take the call insn as an argument.
430 Use insn_callee_abi to get the ABI of the call and invalidate
431 partially clobbered registers as well as fully clobbered ones.
432 (cse_insn): Update call accordingly.
433
434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
435
436 * combine.c: Include function-abi.h.
437 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
438 of the target of call insns. Invalidate partially-clobbered
439 registers as well as fully-clobbered ones.
440
441 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
442
443 * cfgloopanal.c: Include regs.h and function-abi.h.
444 (init_set_costs): Use default_function_abi to test whether
445 a general register is call-clobbered.
446
447 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
448
449 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
450 instead of the call-clobbered sets.
451
452 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
453
454 * caller-save.c (setup_save_areas): Remove redundant |s of
455 fixed_reg_set.
456 (save_call_clobbered_regs): Likewise. Use the call ABI rather
457 than call_used_or_fixed_regs to decide whether a REG_RETURNED
458 value is useful.
459
460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
461
462 * rtl.h (predefined_function_abi): Declare.
463 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
464 instead of a boolean call_save flag.
465 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
466 accordingly.
467 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
468 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
469 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
470 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
471 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
472 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
473 * reginfo.c (init_reg_modes_target): Likewise.
474 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
475 instead of a boolean call_save flag.
476 * targhooks.c: Include function-abi.h.
477 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
478 using eh_edge_abi to choose the mode.
479
480 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
481
482 * target.def (hard_regno_call_part_clobbered): Take an ABI
483 identifier instead of an rtx_insn.
484 * doc/tm.texi: Regenerate.
485 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
486 (hook_bool_uint_uint_mode_false): New function.
487 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
488 (hook_bool_uint_uint_mode_false): New function.
489 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
490 Take an ABI identifier instead of an rtx_insn.
491 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
492 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
493 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
494 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
495 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
496 Likewise.
497 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
498 * cselib.c: Include function-abi.h.
499 (cselib_process_insn): Update call to
500 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
501 to get the appropriate ABI identifier.
502 * function-abi.cc (predefined_function_abi::initialize): Update call
503 to targetm.hard_regno_call_part_clobbered.
504 * ira-conflicts.c (ira_build_conflicts): Likewise.
505 * ira-costs.c (ira_tune_allocno_costs): Likewise.
506 * lra-constraints.c: Include function-abi.h.
507 (need_for_call_save_p): Update call to
508 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
509 to get the appropriate ABI identifier.
510 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
511 * regcprop.c (copyprop_hardreg_forward_1): Update call
512 to targetm.hard_regno_call_part_clobbered.
513 * reginfo.c (choose_hard_reg_mode): Likewise.
514 * regrename.c (check_new_reg_p): Likewise.
515 * reload.c (find_equiv_reg): Likewise.
516 * reload1.c (emit_reload_insns): Likewise.
517 * sched-deps.c: Include function-abi.h.
518 (deps_analyze_insn): Update call to
519 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
520 to get the appropriate ABI identifier.
521 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
522 call to targetm.hard_regno_call_part_clobbered.
523 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
524
525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
526
527 * config/i386/i386.c: Include function-abi.h.
528 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
529 if they preserve some 256-bit or 512-bit SSE registers.
530
531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
532
533 * target.def (insn_callee_abi): New hook.
534 (remove_extra_call_preserved_regs): Delete.
535 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
536 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
537 * doc/tm.texi: Regenerate.
538 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
539 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
540 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
541 insn argument.
542 (aarch64_remove_extra_call_preserved_regs): Delete.
543 (aarch64_insn_callee_abi): New function.
544 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
545 (TARGET_INSN_CALLEE_ABI): New macro.
546 * rtl.h (get_call_fndecl): Declare.
547 (cgraph_rtl_info): Fix formatting. Tweak comment for
548 function_used_regs. Remove function_used_regs_valid.
549 * rtlanal.c (get_call_fndecl): Moved from final.c
550 * function-abi.h (insn_callee_abi): Declare.
551 (target_function_abi_info): Mention insn_callee_abi.
552 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
553 way to get_call_reg_set_usage did.
554 (insn_callee_abi): New function.
555 * regs.h (get_call_reg_set_usage): Delete.
556 * final.c: Include function-abi.h.
557 (collect_fn_hard_reg_usage): Add fixed and stack registers to
558 function_used_regs before the main loop rather than afterwards.
559 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
560 if function_used_regs ends up not being useful.
561 (get_call_fndecl): Move to rtlanal.c
562 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
563 * caller-save.c: Include function-abi.h.
564 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
565 instead of get_call_reg_set_usage.
566 * cfgcleanup.c: Include function-abi.h.
567 (old_insns_match_p): Use insn_callee_abi instead of
568 get_call_reg_set_usage.
569 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
570 a tree.
571 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
572 function_used_regs.
573 * df-scan.c: Include function-abi.h.
574 (df_get_call_refs): Use insn_callee_abi instead of
575 get_call_reg_set_usage.
576 * ira-lives.c: Include function-abi.h.
577 (process_bb_node_lives): Use insn_callee_abi instead of
578 get_call_reg_set_usage.
579 * lra-lives.c: Include function-abi.h.
580 (process_bb_lives): Use insn_callee_abi instead of
581 get_call_reg_set_usage.
582 * postreload.c: Include function-abi.h.
583 (reload_combine): Use insn_callee_abi instead of
584 get_call_reg_set_usage.
585 * regcprop.c: Include function-abi.h.
586 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
587 get_call_reg_set_usage.
588 * resource.c: Include function-abi.h.
589 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
590 instead of get_call_reg_set_usage.
591 * var-tracking.c: Include function-abi.h.
592 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
593 get_call_reg_set_usage.
594
595 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
596
597 * target.def (fntype_abi): New target hook.
598 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
599 * doc/tm.texi: Regenerate.
600 * target.h (predefined_function_abi): Declare.
601 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
602 if defined.
603 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
604 * config/aarch64/aarch64.c: Include function-abi.h.
605 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
606 (TARGET_FNTYPE_ABI): Define.
607
608 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
609
610 * Makefile.in (OBJS): Add function-abi.o.
611 (GTFILES): Add function-abi.h.
612 * function-abi.cc: New file.
613 * function-abi.h: Likewise.
614 * emit-rtl.h (rtl_data::abi): New field.
615 * function.c: Include function-abi.h.
616 (prepare_function_start): Initialize crtl->abi.
617 * read-rtl-function.c: Include regs.h and function-abi.h.
618 (read_rtl_function_body): Initialize crtl->abi.
619 (read_rtl_function_body_from_file_range): Likewise.
620 * reginfo.c: Include function-abi.h.
621 (init_reg_sets_1): Initialize default_function_abi.
622 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
623 when making a register global.
624 * target-globals.h (this_target_function_abi_info): Declare.
625 (target_globals::function_abi_info): New field.
626 (restore_target_globals): Copy it.
627 * target-globals.c: Include function-abi.h.
628 (default_target_globals): Initialize the function_abi_info field.
629 (target_globals): Allocate it.
630 (save_target_globals): Free it.
631
632 2019-09-30 Nick Clifton <nickc@redhat.com>
633
634 PR target/85978
635 * config/frv/frv.c (frv_register_move_cost): Add break statements
636 to avoid falling through to the wrong cases. Tidy code.
637
638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
639
640 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
641 For multi-registers modes, test how big each register part is.
642
643 2019-09-30 Nick Clifton <nickc@redhat.com>
644
645 PR target/59205
646 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
647 (TARGET_ASM_SELECT_SECTION): Remove definition.
648 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
649
650 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
651
652 * emit-rtl.c (init_raw_REG): New function.
653 (gen_raw_REG): Use init_raw_REG.
654 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
655 macros.
656 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
657 * rtl.h (rtx_init): New function.
658 (rtx_alloca): New function.
659 (init_raw_REG): New function.
660 (alloca_raw_REG): New macro.
661
662 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
663
664 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
665 (pcrel_local_address): Replace pcrel_address predicate, use the
666 new function address_to_insn_form.
667 (pcrel_external_address): Replace with new implementation using
668 address_to_insn_form..
669 (prefixed_mem_operand): Delete predicate which is now unused.
670 (pcrel_external_mem_operand): Delete predicate which is now
671 unused.
672 * config/rs6000/rs6000-protos.h (enum insn_form): New
673 enumeration.
674 (enum non_prefixed_form): New enumeration.
675 (address_to_insn_form): New declaration.
676 (prefixed_load_p): New declaration.
677 (prefixed_store_p): New declaration.
678 (prefixed_paddi_p): New declaration.
679 (rs6000_asm_output_opcode): New declaration.
680 (rs6000_final_prescan_insn): Move declaration and update calling
681 signature.
682 (address_is_prefixed): New helper inline function.
683 * config/rs6000/rs6000.c(print_operand_address): Check for either
684 PC-relative local symbols or PC-relative external symbols.
685 (rs6000_emit_move): Support loading PC-relative addresses.
686 (mode_supports_prefixed_address_p): Delete, no longer used.
687 (rs6000_prefixed_address_mode_p): Delete, no longer used.
688 (address_to_insn_form): New function to decode an address format.
689 (reg_to_non_prefixed): New function to identify what the
690 non-prefixed memory instruction format is for a register.
691 (prefixed_load_p): New function to identify prefixed loads.
692 (prefixed_store_p): New function to identify prefixed stores.
693 (prefixed_paddi_p): New function to identify prefixed load
694 immediates.
695 (next_insn_prefixed_p): New static state variable.
696 (rs6000_final_prescan_insn): New function to determine if an insn
697 uses a prefixed instruction.
698 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
699 prefixed instruction.
700 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
701 (ASM_OUTPUT_OPCODE): New target hook.
702 * config/rs6000/rs6000.md (prefixed): New insn attribute for
703 prefixed instructions.
704 (prefixed_length): New insn attribute for the size of prefixed
705 instructions.
706 (non_prefixed_length): New insn attribute for the size of
707 non-prefixed instructions.
708 (pcrel_local_addr): New insn to load up a local PC-relative
709 address.
710 (pcrel_extern_addr): New insn to load up an external PC-relative
711 address.
712 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
713 GPR and loading a 128-bit floating point type to a GPR.
714
715 2019-09-30 Richard Biener <rguenther@suse.de>
716
717 * gimple.c (gimple_get_lhs): For PHIs return the result.
718 * tree-vectorizer.h (vectorizable_live_operation): Also get the
719 SLP instance as argument.
720 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
721 double-reduction PHIs with vectorizable_lc_phi.
722 (vect_analyze_loop_operations): Adjust.
723 (vect_create_epilog_for_reduction): Remove all code not dealing
724 with reduction LC PHI or epilogue generation.
725 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
726 for live stmts of reductions.
727 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
728 do not handle defs that are not vect_internal_def.
729 (can_vectorize_live_stmts): Adjust.
730 (vect_analyze_stmt): When the vectorized stmt defined a value
731 used on backedges adjust the backedge uses of vectorized PHIs.
732
733 2019-09-30 Martin Jambor <mjambor@suse.cz>
734
735 PR ipa/91853
736 * tree-inline.c (force_value_to_type): New function.
737 (setup_one_parameter): Use force_value_to_type to convert type.
738 * tree-inline.c (force_value_to_type): Declare.
739 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
740 with register type mismatches.
741
742 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
743
744 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
745 32-bit PowerPC.
746 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
747 * config/rs6000/t-freebsd64: Make use of the above define and build
748 the 32-bit libraries with secure-plt.
749
750 2019-09-30 Jakub Jelinek <jakub@redhat.com>
751
752 PR target/91931
753 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
754 gen_int_mode instead of GEN_INT.
755
756 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
757
758 * config/darwin.c (gen_macho_low): Amend to include the mode
759 argument.
760 (machopic_indirect_data_reference): Amend gen_macho_low call
761 to include mode argument
762 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
763 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
764 the macho_high expander and two define_insn entries.
765
766 2019-09-29 Jakub Jelinek <jakub@redhat.com>
767
768 PR bootstrap/90543
769 * optc-save-gen.awk: Fix up printing string option differences.
770
771 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
772
773 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
774 vec_perm cost to 1 for non-Power7 VSX architectures.
775
776 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
777
778 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
779 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
780 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
781
782 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
783
784 * config/darwin.c (gen_macho_high): Amend to include the mode
785 argument.
786 (machopic_indirect_data_reference): Amend gen_macho_high call
787 to include mode argument.
788 (machopic_legitimize_pic_address): Likewise.
789 * config/rs6000/rs6000.c (rs6000_legitimize_address):
790 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
791 the macho_high expander and two define_insn entries.
792
793 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
794
795 PR target/86805
796 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
797
798 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
799
800 PR target/80672
801 * config/sh/sh.c (parse_validate_atomic_model_option): Use
802 std::string::compare instead of std::string::find.
803
804 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
805
806 * configure: Regenerate.
807
808 2019-09-27 Jakub Jelinek <jakub@redhat.com>
809
810 PR middle-end/91920
811 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
812 variables as shared.
813
814 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
815
816 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
817 replaces the expander and two define_insn entries.
818 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
819 call.
820 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
821
822 2019-09-27 David Malcolm <dmalcolm@redhat.com>
823
824 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
825 (fibonacci_heap::nodes): Likewise.
826 (fibonacci_heap::min_key): Likewise.
827 (fibonacci_heap::min): Likewise.
828
829 2019-09-27 David Malcolm <dmalcolm@redhat.com>
830
831 * cgraph.c (cgraph_node::get_fun): Make const.
832 * cgraph.h (cgraph_node::get_fun): Likewise.
833
834 2019-09-27 Jakub Jelinek <jakub@redhat.com>
835
836 PR target/91919
837 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
838 of SImode MULT.
839
840 2019-09-27 Richard Biener <rguenther@suse.de>
841
842 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
843 (STMT_VINFO_REDUC_FN): Likewise.
844 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
845 STMT_VINFO_REDUC_FN.
846 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
847 for condition reductions.
848 (vect_create_epilog_for_reduction): Compute all required state
849 from the stmt to be vectorized.
850 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
851 invocation and remove then dead code. For single def-use chains
852 record only a single vector stmt.
853
854 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
855
856 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
857 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
858 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
859 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
860 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
861 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
862 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
863 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
864 (aarch64_general_builtin_rsqrt): Declare.
865 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
866 New function.
867 (aarch64_mangle_builtin_type): Rename to...
868 (aarch64_general_mangle_builtin_type): ...this.
869 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
870 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
871 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
872 aarch64_general_add_builtin instead of add_builtin_function.
873 (aarch64_init_builtins): Rename to...
874 (aarch64_general_init_builtins): ...this. Use
875 aarch64_general_add_builtin instead of add_builtin_function.
876 (aarch64_builtin_decl): Rename to...
877 (aarch64_general_builtin_decl): ...this and remove the unused
878 arguments.
879 (aarch64_expand_builtin): Rename to...
880 (aarch64_general_expand_builtin): ...this and remove the unused
881 arguments.
882 (aarch64_builtin_rsqrt): Rename to...
883 (aarch64_general_builtin_rsqrt): ...this.
884 (aarch64_fold_builtin): Rename to...
885 (aarch64_general_fold_builtin): ...this. Take the function subcode
886 and return type as arguments. Remove the "ignored" argument.
887 (aarch64_gimple_fold_builtin): Rename to...
888 (aarch64_general_gimple_fold_builtin): ...this. Take the function
889 subcode and gcall as arguments, and return the new function call.
890 * config/aarch64/aarch64.c (aarch64_init_builtins)
891 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
892 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
893 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
894 instead of aarch64_builtin_rsqrt.
895 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
896 instead of aarch64_mangle_builtin_type.
897
898 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
899
900 * target.def (check_builtin_call): New target hook.
901 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
902 * doc/tm.texi: Regenerate.
903
904 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
905
906 PR tree-optimization/91909
907 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
908 reduc_index parameter. When handling COND_REDUCTION, make sure
909 that the reduction phi operand is in the correct arm of the
910 VEC_COND_EXPR.
911 (vectorizable_reduction): Pass reduc_index to the above.
912
913 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
914
915 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
916 New combine pattern.
917
918 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
919
920 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
921 loop instruction into new basic block before the loop when basic
922 block that precedes the loop is empty.
923
924 2019-09-26 Jakub Jelinek <jakub@redhat.com>
925
926 * function.c (gimplify_parameters): Use build_clobber function.
927 * tree-ssa.c (execute_update_addresses_taken): Likewise.
928 * tree-inline.c (expand_call_inline): Likewise.
929 * tree-sra.c (clobber_subtree): Likewise.
930 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
931 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
932 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
933 lower_omp_target): Likewise.
934 * omp-expand.c (expand_omp_for_generic): Likewise.
935 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
936
937 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
938
939 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
940 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
941 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
942 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
943 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
944 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
945 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
946 LD_ELEMREV_V16QI): Use the PURE attribute.
947
948 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
949
950 * config/rs6000/darwin.md: Replace the expanders for
951 load_macho_picbase and reload_macho_picbase with use of '@'
952 and <mode> in their respective define_insns.
953 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
954 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
955 Pmode to gen_load_macho_picbase.
956 * config/rs6000/rs6000.md: Likewise.
957
958 2019-09-25 Richard Biener <rguenther@suse.de>
959
960 PR tree-optimization/91896
961 * tree-vect-loop.c (vectorizable_reduction): The single
962 def-use cycle optimization cannot apply when there's more
963 than one pattern stmt involved.
964
965 2019-09-26 Richard Biener <rguenther@suse.de>
966
967 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
968 loop-closed PHIs that are vect_internal_def.
969 (vect_create_epilog_for_reduction): Exit early for nested cycles.
970 Simplify.
971 (vectorizable_lc_phi): New.
972 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
973 (vect_transform_stmt): Likewise.
974 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
975 (vectorizable_lc_phi): Declare.
976
977 2019-09-26 Richard Biener <rguenther@suse.de>
978
979 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
980 vectorizable_reduction for vect_double_reduction_def.
981 (vect_transform_loop): Likewise.
982 (vect_create_epilog_for_reduction): Move double-reduction
983 PHI creation and preheader argument setting of PHIs ...
984 (vectorizable_reduction): ... here. Also process
985 vect_double_reduction_def PHIs, creating the vectorized
986 PHI nodes, remembering the scalar adjustment computed for
987 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
988 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
989 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
990 Initialize STMT_VINFO_REDUC_CODE.
991 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
992 (_stmt_vec_info::reduc_code): Likewise.
993 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
994 (STMT_VINFO_REDUC_CODE): Likewise.
995
996 2019-09-26 Matt Turner <mattst88@gmail.com>
997
998 PR driver/69471
999 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
1000 (mtune=): Add Negative(mtune=).
1001 (mcpu=): Add Negative(mcpu=).
1002 * config/arm/arm.opt: Likewise.
1003
1004 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005
1006 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1007 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
1008 Define.
1009 * config/arm/arm_acle.h: Define builtins for the above.
1010 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
1011 (simd32_op): Handle the above.
1012 * config/arm/unspecs.md: Define unspecs for the above.
1013
1014 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1015
1016 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1017 (arm_<sup>xtb16): Likewise.
1018 (arm_usada8): Likewise.
1019 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
1020 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
1021 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
1022 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
1023 __sxtb16, __uxtab16, __uxtb16): Define.
1024 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1025 * config/arm/unspecs.md: Define unspecs for the above.
1026 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
1027 (USXTB16): Likewise.
1028 (simd32_op): New int_attribute.
1029 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
1030 * doc/sourcebuild.exp (arm_simd32_ok): Document.
1031
1032 2019-09-26 Martin Jambor <mjambor@suse.cz>
1033
1034 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
1035 internal_error.
1036
1037 2019-09-26 Martin Jambor <mjambor@suse.cz>
1038
1039 * ipa-sra.c (process_scan_results): Fix continue condition.
1040
1041 2019-09-26 Martin Liska <mliska@suse.cz>
1042
1043 PR tree-optimization/91885
1044 * tree-vectorizer.c (try_vectorize_loop_1): Add
1045 TODO_update_ssa_only_virtuals similarly to what slp pass does.
1046
1047 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
1048
1049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1050 aarch64_plus_immediate rather than aarch64_uimm12_shift
1051 to test for valid PLUS immediates.
1052
1053 2019-09-25 Martin Jambor <mjambor@suse.cz>
1054
1055 * tree-sra.c (no_accesses_p): Remove.
1056 (no_accesses_representant): Likewise.
1057
1058 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1059
1060 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
1061 consistenly.
1062 (vaba_s16): Likewise.
1063 (vaba_s32): Likewise.
1064 (vaba_u8): Likewise.
1065 (vaba_u16): Likewise.
1066 (vaba_u32): Likewise.
1067 (vabal_high_s8): Likewise.
1068 (vabal_high_s16): Likewise.
1069 (vabal_high_s32): Likewise.
1070 (vabal_high_u8): Likewise.
1071 (vabal_high_u16): Likewise.
1072 (vabal_high_u32): Likewise.
1073 (vabal_s8): Likewise.
1074 (vabal_s16): Likewise.
1075 (vabal_s32): Likewise.
1076 (vabal_u8): Likewise.
1077 (vabal_u16): Likewise.
1078 (vabal_u32): Likewise.
1079 (vabaq_s8): Likewise.
1080 (vabaq_s16): Likewise.
1081 (vabaq_s32): Likewise.
1082 (vabaq_u8): Likewise.
1083 (vabaq_u16): Likewise.
1084 (vabaq_u32): Likewise.
1085 (vabd_s8): Likewise.
1086 (vabd_s16): Likewise.
1087 (vabd_s32): Likewise.
1088 (vabd_u8): Likewise.
1089 (vabd_u16): Likewise.
1090 (vabd_u32): Likewise.
1091 (vabdl_high_s8): Likewise.
1092 (vabdl_high_s16): Likewise.
1093 (vabdl_high_s32): Likewise.
1094 (vabdl_high_u8): Likewise.
1095 (vabdl_high_u16): Likewise.
1096 (vabdl_high_u32): Likewise.
1097 (vabdl_s8): Likewise.
1098 (vabdl_s16): Likewise.
1099 (vabdl_s32): Likewise.
1100 (vabdl_u8): Likewise.
1101 (vabdl_u16): Likewise.
1102 (vabdl_u32): Likewise.
1103 (vabdq_s8): Likewise.
1104 (vabdq_s16): Likewise.
1105 (vabdq_s32): Likewise.
1106 (vabdq_u8): Likewise.
1107 (vabdq_u16): Likewise.
1108 (vabdq_u32): Likewise.
1109 (vaddlv_s8): Likewise.
1110 (vaddlv_s16): Likewise.
1111 (vaddlv_u8): Likewise.
1112 (vaddlv_u16): Likewise.
1113 (vaddlvq_s8): Likewise.
1114 (vaddlvq_s16): Likewise.
1115 (vaddlvq_s32): Likewise.
1116 (vaddlvq_u8): Likewise.
1117 (vaddlvq_u16): Likewise.
1118 (vaddlvq_u32): Likewise.
1119 (vcvtx_f32_f64): Likewise.
1120 (vcvtx_high_f32_f64): Likewise.
1121 (vcvtxd_f32_f64): Likewise.
1122 (vmla_n_f32): Likewise.
1123 (vmla_n_s16): Likewise.
1124 (vmla_n_s32): Likewise.
1125 (vmla_n_u16): Likewise.
1126 (vmla_n_u32): Likewise.
1127 (vmla_s8): Likewise.
1128 (vmla_s16): Likewise.
1129 (vmla_s32): Likewise.
1130 (vmla_u8): Likewise.
1131 (vmla_u16): Likewise.
1132 (vmla_u32): Likewise.
1133 (vmlal_high_n_s16): Likewise.
1134 (vmlal_high_n_s32): Likewise.
1135 (vmlal_high_n_u16): Likewise.
1136 (vmlal_high_n_u32): Likewise.
1137 (vmlal_high_s8): Likewise.
1138 (vmlal_high_s16): Likewise.
1139 (vmlal_high_s32): Likewise.
1140 (vmlal_high_u8): Likewise.
1141 (vmlal_high_u16): Likewise.
1142 (vmlal_high_u32): Likewise.
1143 (vmlal_n_s16): Likewise.
1144 (vmlal_n_s32): Likewise.
1145 (vmlal_n_u16): Likewise.
1146 (vmlal_n_u32): Likewise.
1147 (vmlal_s8): Likewise.
1148 (vmlal_s16): Likewise.
1149 (vmlal_s32): Likewise.
1150 (vmlal_u8): Likewise.
1151 (vmlal_u16): Likewise.
1152 (vmlal_u32): Likewise.
1153 (vmlaq_n_f32): Likewise.
1154 (vmlaq_n_s16): Likewise.
1155 (vmlaq_n_s32): Likewise.
1156 (vmlaq_n_u16): Likewise.
1157 (vmlaq_n_u32): Likewise.
1158 (vmlaq_s8): Likewise.
1159 (vmlaq_s16): Likewise.
1160 (vmlaq_s32): Likewise.
1161 (vmlaq_u8): Likewise.
1162 (vmlaq_u16): Likewise.
1163 (vmlaq_u32): Likewise.
1164 (vmls_n_f32): Likewise.
1165 (vmls_n_s16): Likewise.
1166 (vmls_n_s32): Likewise.
1167 (vmls_n_u16): Likewise.
1168 (vmls_n_u32): Likewise.
1169 (vmls_s8): Likewise.
1170 (vmls_s16): Likewise.
1171 (vmls_s32): Likewise.
1172 (vmls_u8): Likewise.
1173 (vmls_u16): Likewise.
1174 (vmls_u32): Likewise.
1175 (vmlsl_high_n_s16): Likewise.
1176 (vmlsl_high_n_s32): Likewise.
1177 (vmlsl_high_n_u16): Likewise.
1178 (vmlsl_high_n_u32): Likewise.
1179 (vmlsl_high_s8): Likewise.
1180 (vmlsl_high_s16): Likewise.
1181 (vmlsl_high_s32): Likewise.
1182 (vmlsl_high_u8): Likewise.
1183 (vmlsl_high_u16): Likewise.
1184 (vmlsl_high_u32): Likewise.
1185 (vmlsl_n_s16): Likewise.
1186 (vmlsl_n_s32): Likewise.
1187 (vmlsl_n_u16): Likewise.
1188 (vmlsl_n_u32): Likewise.
1189 (vmlsl_s8): Likewise.
1190 (vmlsl_s16): Likewise.
1191 (vmlsl_s32): Likewise.
1192 (vmlsl_u8): Likewise.
1193 (vmlsl_u16): Likewise.
1194 (vmlsl_u32): Likewise.
1195 (vmlsq_n_f32): Likewise.
1196 (vmlsq_n_s16): Likewise.
1197 (vmlsq_n_s32): Likewise.
1198 (vmlsq_n_u16): Likewise.
1199 (vmlsq_n_u32): Likewise.
1200 (vmlsq_s8): Likewise.
1201 (vmlsq_s16): Likewise.
1202 (vmlsq_s32): Likewise.
1203 (vmlsq_u8): Likewise.
1204 (vmlsq_u16): Likewise.
1205 (vmlsq_u32): Likewise.
1206 (vmovl_high_s8): Likewise.
1207 (vmovl_high_s16): Likewise.
1208 (vmovl_high_s32): Likewise.
1209 (vmovl_high_u8): Likewise.
1210 (vmovl_high_u16): Likewise.
1211 (vmovl_high_u32): Likewise.
1212 (vmovl_s8): Likewise.
1213 (vmovl_s16): Likewise.
1214 (vmovl_s32): Likewise.
1215 (vmovl_u8): Likewise.
1216 (vmovl_u16): Likewise.
1217 (vmovl_u32): Likewise.
1218 (vmovn_high_s16): Likewise.
1219 (vmovn_high_s32): Likewise.
1220 (vmovn_high_s64): Likewise.
1221 (vmovn_high_u16): Likewise.
1222 (vmovn_high_u32): Likewise.
1223 (vmovn_high_u64): Likewise.
1224 (vmovn_s16): Likewise.
1225 (vmovn_s32): Likewise.
1226 (vmovn_s64): Likewise.
1227 (vmovn_u16): Likewise.
1228 (vmovn_u32): Likewise.
1229 (vmovn_u64): Likewise.
1230 (vmull_high_n_s16): Likewise.
1231 (vmull_high_n_s32): Likewise.
1232 (vmull_high_n_u16): Likewise.
1233 (vmull_high_n_u32): Likewise.
1234 (vmull_high_p8): Likewise.
1235 (vmull_high_s8): Likewise.
1236 (vmull_high_s16): Likewise.
1237 (vmull_high_s32): Likewise.
1238 (vmull_high_u8): Likewise.
1239 (vmull_high_u16): Likewise.
1240 (vmull_high_u32): Likewise.
1241 (vmull_n_s16): Likewise.
1242 (vmull_n_s32): Likewise.
1243 (vmull_n_u16): Likewise.
1244 (vmull_n_u32): Likewise.
1245 (vmull_p8): Likewise.
1246 (vmull_s8): Likewise.
1247 (vmull_s16): Likewise.
1248 (vmull_s32): Likewise.
1249 (vmull_u8): Likewise.
1250 (vmull_u16): Likewise.
1251 (vmull_u32): Likewise.
1252 (vpadal_s8): Likewise.
1253 (vpadal_s16): Likewise.
1254 (vpadal_s32): Likewise.
1255 (vpadal_u8): Likewise.
1256 (vpadal_u16): Likewise.
1257 (vpadal_u32): Likewise.
1258 (vpadalq_s8): Likewise.
1259 (vpadalq_s16): Likewise.
1260 (vpadalq_s32): Likewise.
1261 (vpadalq_u8): Likewise.
1262 (vpadalq_u16): Likewise.
1263 (vpadalq_u32): Likewise.
1264 (vpaddl_s8): Likewise.
1265 (vpaddl_s16): Likewise.
1266 (vpaddl_s32): Likewise.
1267 (vpaddl_u8): Likewise.
1268 (vpaddl_u16): Likewise.
1269 (vpaddl_u32): Likewise.
1270 (vpaddlq_s8): Likewise.
1271 (vpaddlq_s16): Likewise.
1272 (vpaddlq_s32): Likewise.
1273 (vpaddlq_u8): Likewise.
1274 (vpaddlq_u16): Likewise.
1275 (vpaddlq_u32): Likewise.
1276 (vpaddq_s8): Likewise.
1277 (vpaddq_s16): Likewise.
1278 (vpaddq_s32): Likewise.
1279 (vpaddq_s64): Likewise.
1280 (vpaddq_u8): Likewise.
1281 (vpaddq_u16): Likewise.
1282 (vpaddq_u32): Likewise.
1283 (vpaddq_u64): Likewise.
1284 (vqdmulh_n_s16): Likewise.
1285 (vqdmulh_n_s32): Likewise.
1286 (vqdmulhq_n_s16): Likewise.
1287 (vqdmulhq_n_s32): Likewise.
1288 (vqmovn_high_s16): Likewise.
1289 (vqmovn_high_s32): Likewise.
1290 (vqmovn_high_s64): Likewise.
1291 (vqmovn_high_u16): Likewise.
1292 (vqmovn_high_u32): Likewise.
1293 (vqmovn_high_u64): Likewise.
1294 (vqmovun_high_s16): Likewise.
1295 (vqmovun_high_s32): Likewise.
1296 (vqmovun_high_s64): Likewise.
1297 (vqrdmulh_n_s16): Likewise.
1298 (vqrdmulh_n_s32): Likewise.
1299 (vqrdmulhq_n_s16): Likewise.
1300 (vqrdmulhq_n_s32): Likewise.
1301 (vrsqrte_u32): Likewise.
1302 (vrsqrteq_u32): Likewise.
1303 (vtst_p8): Likewise.
1304 (vtst_p16): Likewise.
1305 (vtst_p64): Likewise.
1306 (vtstq_p8): Likewise.
1307 (vtstq_p16): Likewise.
1308 (vtstq_p64): Likewise.
1309 (vaddlv_s32): Likewise.
1310 (vaddlv_u32): Likewise.
1311 (vqtbl1_p8): Likewise.
1312 (vqtbl1_s8): Likewise.
1313 (vqtbl1_u8): Likewise.
1314 (vqtbl1q_p8): Likewise.
1315 (vqtbl1q_s8): Likewise.
1316 (vqtbl1q_u8): Likewise.
1317 (vqtbx1_s8): Likewise.
1318 (vqtbx1_u8): Likewise.
1319 (vqtbx1_p8): Likewise.
1320 (vqtbx1q_s8): Likewise.
1321 (vqtbx1q_u8): Likewise.
1322 (vqtbx1q_p8): Likewise.
1323 (vtbl1_s8): Likewise.
1324 (vtbl1_u8): Likewise.
1325 (vtbl1_p8): Likewise.
1326 (vtbl2_s8): Likewise.
1327 (vtbl2_u8): Likewise.
1328 (vtbl2_p8): Likewise.
1329 (vtbl3_s8): Likewise.
1330 (vtbl3_u8): Likewise.
1331 (vtbl3_p8): Likewise.
1332 (vtbl4_s8): Likewise.
1333 (vtbl4_u8): Likewise.
1334 (vtbl4_p8): Likewise.
1335 (vtbx2_s8): Likewise.
1336 (vtbx2_u8): Likewise.
1337 (vtbx2_p8): Likewise.
1338 (vld1_f32): Likewise.
1339 (vld1_f64): Likewise.
1340 (vld1_p8): Likewise.
1341 (vld1_p16): Likewise.
1342 (vld1_p64): Likewise.
1343 (vld1_s8): Likewise.
1344 (vld1_s16): Likewise.
1345 (vld1_s32): Likewise.
1346 (vld1_s64): Likewise.
1347 (vld1_u8): Likewise.
1348 (vld1_u16): Likewise.
1349 (vld1_u32): Likewise.
1350 (vld1_u64): Likewise.
1351 (vld1q_f32): Likewise.
1352 (vld1q_f64): Likewise.
1353 (vld1q_p8): Likewise.
1354 (vld1q_p16): Likewise.
1355 (vld1q_p64): Likewise.
1356 (vld1q_s8): Likewise.
1357 (vld1q_s16): Likewise.
1358 (vld1q_s32): Likewise.
1359 (vld1q_s64): Likewise.
1360 (vld1q_u8): Likewise.
1361 (vld1q_u16): Likewise.
1362 (vld1q_u32): Likewise.
1363 (vld1q_u64): Likewise.
1364 (vpmax_s8): Likewise.
1365 (vpmax_s16): Likewise.
1366 (vpmax_s32): Likewise.
1367 (vpmax_u8): Likewise.
1368 (vpmax_u16): Likewise.
1369 (vpmax_u32): Likewise.
1370 (vpmaxq_s8): Likewise.
1371 (vpmaxq_s16): Likewise.
1372 (vpmaxq_s32): Likewise.
1373 (vpmaxq_u8): Likewise.
1374 (vpmaxq_u16): Likewise.
1375 (vpmaxq_u32): Likewise.
1376 (vpmax_f32): Likewise.
1377 (vpmaxq_f32): Likewise.
1378 (vpmaxq_f64): Likewise.
1379 (vpmaxqd_f64): Likewise.
1380 (vpmaxs_f32): Likewise.
1381 (vpmaxnm_f32): Likewise.
1382 (vpmaxnmq_f32): Likewise.
1383 (vpmaxnmq_f64): Likewise.
1384 (vpmaxnmqd_f64): Likewise.
1385 (vpmaxnms_f32): Likewise.
1386 (vpmin_s8): Likewise.
1387 (vpmin_s16): Likewise.
1388 (vpmin_s32): Likewise.
1389 (vpmin_u8): Likewise.
1390 (vpmin_u16): Likewise.
1391 (vpmin_u32): Likewise.
1392 (vpminq_s8): Likewise.
1393 (vpminq_s16): Likewise.
1394 (vpminq_s32): Likewise.
1395 (vpminq_u8): Likewise.
1396 (vpminq_u16): Likewise.
1397 (vpminq_u32): Likewise.
1398 (vpmin_f32): Likewise.
1399 (vpminq_f32): Likewise.
1400 (vpminq_f64): Likewise.
1401 (vpminqd_f64): Likewise.
1402 (vpmins_f32): Likewise.
1403 (vpminnm_f32): Likewise.
1404 (vpminnmq_f32): Likewise.
1405 (vpminnmq_f64): Likewise.
1406 (vpminnmqd_f64): Likewise.
1407 (vpminnms_f32): Likewise.
1408 (vmla_f32): Likewise.
1409 (vmlaq_f32): Likewise.
1410 (vmlaq_f64): Likewise.
1411 (vmls_f32): Likewise.
1412 (vmlsq_f32): Likewise.
1413 (vmlsq_f64): Likewise.
1414 (vqtbl2_s8): Likewise.
1415 (vqtbl2_u8): Likewise.
1416 (vqtbl2_p8): Likewise.
1417 (vqtbl2q_s8): Likewise.
1418 (vqtbl2q_u8): Likewise.
1419 (vqtbl2q_p8): Likewise.
1420 (vqtbl3_s8): Likewise.
1421 (vqtbl3_u8): Likewise.
1422 (vqtbl3_p8): Likewise.
1423 (vqtbl3q_s8): Likewise.
1424 (vqtbl3q_u8): Likewise.
1425 (vqtbl3q_p8): Likewise.
1426 (vqtbl4_s8): Likewise.
1427 (vqtbl4_u8): Likewise.
1428 (vqtbl4_p8): Likewise.
1429 (vqtbl4q_s8): Likewise.
1430 (vqtbl4q_u8): Likewise.
1431 (vqtbl4q_p8): Likewise.
1432 (vqtbx2_s8): Likewise.
1433 (vqtbx2_u8): Likewise.
1434 (vqtbx2_p8): Likewise.
1435 (vqtbx2q_s8): Likewise.
1436 (vqtbx2q_u8): Likewise.
1437 (vqtbx2q_p8): Likewise.
1438 (vqtbx3_s8): Likewise.
1439 (vqtbx3_u8): Likewise.
1440 (vqtbx3_p8): Likewise.
1441 (vqtbx3q_s8): Likewise.
1442 (vqtbx3q_u8): Likewise.
1443 (vqtbx3q_p8): Likewise.
1444 (vqtbx4_s8): Likewise.
1445 (vqtbx4_u8): Likewise.
1446 (vqtbx4_p8): Likewise.
1447 (vqtbx4q_s8): Likewise.
1448 (vqtbx4q_u8): Likewise.
1449 (vqtbx4q_p8): Likewise.
1450 (vrev16_p8): Likewise.
1451 (vrev16_s8): Likewise.
1452 (vrev16_u8): Likewise.
1453 (vrev16q_p8): Likewise.
1454 (vrev16q_s8): Likewise.
1455 (vrev16q_u8): Likewise.
1456 (vrev32_p8): Likewise.
1457 (vrev32_p16): Likewise.
1458 (vrev32_s8): Likewise.
1459 (vrev32_s16): Likewise.
1460 (vrev32_u8): Likewise.
1461 (vrev32_u16): Likewise.
1462 (vrev32q_p8): Likewise.
1463 (vrev32q_p16): Likewise.
1464 (vrev32q_s8): Likewise.
1465 (vrev32q_s16): Likewise.
1466 (vrev32q_u8): Likewise.
1467 (vrev32q_u16): Likewise.
1468 (vrev64_f32): Likewise.
1469 (vrev64_p8): Likewise.
1470 (vrev64_p16): Likewise.
1471 (vrev64_s8): Likewise.
1472 (vrev64_s16): Likewise.
1473 (vrev64_s32): Likewise.
1474 (vrev64_u8): Likewise.
1475 (vrev64_u16): Likewise.
1476 (vrev64_u32): Likewise.
1477 (vrev64q_f32): Likewise.
1478 (vrev64q_p8): Likewise.
1479 (vrev64q_p16): Likewise.
1480 (vrev64q_s8): Likewise.
1481 (vrev64q_s16): Likewise.
1482 (vrev64q_s32): Likewise.
1483 (vrev64q_u8): Likewise.
1484 (vrev64q_u16): Likewise.
1485 (vrev64q_u32): Likewise.
1486 (vsha1cq_u32): Likewise.
1487 (vsha1mq_u32): Likewise.
1488 (vsha1pq_u32): Likewise.
1489 (vsha1h_u32): Likewise.
1490 (vsha1su0q_u32): Likewise.
1491 (vsha1su1q_u32): Likewise.
1492 (vsha256hq_u32): Likewise.
1493 (vsha256h2q_u32): Likewise.
1494 (vsha256su0q_u32): Likewise.
1495 (vsha256su1q_u32): Likewise.
1496 (vmull_p64): Likewise.
1497 (vmull_high_p64): Likewise.
1498 (vsqrt_f32): Likewise.
1499 (vsqrtq_f32): Likewise.
1500 (vsqrt_f64): Likewise.
1501 (vsqrtq_f64): Likewise.
1502 (vst1_f32): Likewise.
1503 (vst1_f64): Likewise.
1504 (vst1_p8): Likewise.
1505 (vst1_p16): Likewise.
1506 (vst1_p64): Likewise.
1507 (vst1_s8): Likewise.
1508 (vst1_s16): Likewise.
1509 (vst1_s32): Likewise.
1510 (vst1_s64): Likewise.
1511 (vst1_u8): Likewise.
1512 (vst1_u16): Likewise.
1513 (vst1_u32): Likewise.
1514 (vst1_u64): Likewise.
1515 (vst1q_f32): Likewise.
1516 (vst1q_f64): Likewise.
1517 (vst1q_p8): Likewise.
1518 (vst1q_p16): Likewise.
1519 (vst1q_p64): Likewise.
1520 (vst1q_s8): Likewise.
1521 (vst1q_s16): Likewise.
1522 (vst1q_s32): Likewise.
1523 (vst1q_s64): Likewise.
1524 (vst1q_u8): Likewise.
1525 (vst1q_u16): Likewise.
1526 (vst1q_u32): Likewise.
1527 (vst1q_u64): Likewise.
1528 (vst1_s64_x2): Likewise.
1529 (vst1_u64_x2): Likewise.
1530 (vst1_f64_x2): Likewise.
1531 (vst1_s8_x2): Likewise.
1532 (vst1_p8_x2): Likewise.
1533 (vst1_s16_x2): Likewise.
1534 (vst1_p16_x2): Likewise.
1535 (vst1_s32_x2): Likewise.
1536 (vst1_u8_x2): Likewise.
1537 (vst1_u16_x2): Likewise.
1538 (vst1_u32_x2): Likewise.
1539 (vst1_f16_x2): Likewise.
1540 (vst1_f32_x2): Likewise.
1541 (vst1_p64_x2): Likewise.
1542 (vst1q_s8_x2): Likewise.
1543 (vst1q_p8_x2): Likewise.
1544 (vst1q_s16_x2): Likewise.
1545 (vst1q_p16_x2): Likewise.
1546 (vst1q_s32_x2): Likewise.
1547 (vst1q_s64_x2): Likewise.
1548 (vst1q_u8_x2): Likewise.
1549 (vst1q_u16_x2): Likewise.
1550 (vst1q_u32_x2): Likewise.
1551 (vst1q_u64_x2): Likewise.
1552 (vst1q_f16_x2): Likewise.
1553 (vst1q_f32_x2): Likewise.
1554 (vst1q_f64_x2): Likewise.
1555 (vst1q_p64_x2): Likewise.
1556 (vst1_s64_x3): Likewise.
1557 (vst1_u64_x3): Likewise.
1558 (vst1_f64_x3): Likewise.
1559 (vst1_s8_x3): Likewise.
1560 (vst1_p8_x3): Likewise.
1561 (vst1_s16_x3): Likewise.
1562 (vst1_p16_x3): Likewise.
1563 (vst1_s32_x3): Likewise.
1564 (vst1_u8_x3): Likewise.
1565 (vst1_u16_x3): Likewise.
1566 (vst1_u32_x3): Likewise.
1567 (vst1_f16_x3): Likewise.
1568 (vst1_f32_x3): Likewise.
1569 (vst1_p64_x3): Likewise.
1570 (vst1q_s8_x3): Likewise.
1571 (vst1q_p8_x3): Likewise.
1572 (vst1q_s16_x3): Likewise.
1573 (vst1q_p16_x3): Likewise.
1574 (vst1q_s32_x3): Likewise.
1575 (vst1q_s64_x3): Likewise.
1576 (vst1q_u8_x3): Likewise.
1577 (vst1q_u16_x3): Likewise.
1578 (vst1q_u32_x3): Likewise.
1579 (vst1q_u64_x3): Likewise.
1580 (vst1q_f16_x3): Likewise.
1581 (vst1q_f32_x3): Likewise.
1582 (vst1q_f64_x3): Likewise.
1583 (vst1q_p64_x3): Likewise.
1584 (vst2_s64): Likewise.
1585 (vst2_u64): Likewise.
1586 (vst2_f64): Likewise.
1587 (vst2_s8): Likewise.
1588 (vst2_p8): Likewise.
1589 (vst2_s16): Likewise.
1590 (vst2_p16): Likewise.
1591 (vst2_s32): Likewise.
1592 (vst2_u8): Likewise.
1593 (vst2_u16): Likewise.
1594 (vst2_u32): Likewise.
1595 (vst2_f16): Likewise.
1596 (vst2_f32): Likewise.
1597 (vst2_p64): Likewise.
1598 (vst2q_s8): Likewise.
1599 (vst2q_p8): Likewise.
1600 (vst2q_s16): Likewise.
1601 (vst2q_p16): Likewise.
1602 (vst2q_s32): Likewise.
1603 (vst2q_s64): Likewise.
1604 (vst2q_u8): Likewise.
1605 (vst2q_u16): Likewise.
1606 (vst2q_u32): Likewise.
1607 (vst2q_u64): Likewise.
1608 (vst2q_f16): Likewise.
1609 (vst2q_f32): Likewise.
1610 (vst2q_f64): Likewise.
1611 (vst2q_p64): Likewise.
1612 (vst3_s64): Likewise.
1613 (vst3_u64): Likewise.
1614 (vst3_f64): Likewise.
1615 (vst3_s8): Likewise.
1616 (vst3_p8): Likewise.
1617 (vst3_s16): Likewise.
1618 (vst3_p16): Likewise.
1619 (vst3_s32): Likewise.
1620 (vst3_u8): Likewise.
1621 (vst3_u16): Likewise.
1622 (vst3_u32): Likewise.
1623 (vst3_f16): Likewise.
1624 (vst3_f32): Likewise.
1625 (vst3_p64): Likewise.
1626 (vst3q_s8): Likewise.
1627 (vst3q_p8): Likewise.
1628 (vst3q_s16): Likewise.
1629 (vst3q_p16): Likewise.
1630 (vst3q_s32): Likewise.
1631 (vst3q_s64): Likewise.
1632 (vst3q_u8): Likewise.
1633 (vst3q_u16): Likewise.
1634 (vst3q_u32): Likewise.
1635 (vst3q_u64): Likewise.
1636 (vst3q_f16): Likewise.
1637 (vst3q_f32): Likewise.
1638 (vst3q_f64): Likewise.
1639 (vst3q_p64): Likewise.
1640 (vst4_s64): Likewise.
1641 (vst4_u64): Likewise.
1642 (vst4_f64): Likewise.
1643 (vst4_s8): Likewise.
1644 (vst4_p8): Likewise.
1645 (vst4_s16): Likewise.
1646 (vst4_p16): Likewise.
1647 (vst4_s32): Likewise.
1648 (vst4_u8): Likewise.
1649 (vst4_u16): Likewise.
1650 (vst4_u32): Likewise.
1651 (vst4_f16): Likewise.
1652 (vst4_f32): Likewise.
1653 (vst4_p64): Likewise.
1654 (vst4q_s8): Likewise.
1655 (vst4q_p8): Likewise.
1656 (vst4q_s16): Likewise.
1657 (vst4q_p16): Likewise.
1658 (vst4q_s32): Likewise.
1659 (vst4q_s64): Likewise.
1660 (vst4q_u8): Likewise.
1661 (vst4q_u16): Likewise.
1662 (vst4q_u32): Likewise.
1663 (vst4q_u64): Likewise.
1664 (vst4q_f16): Likewise.
1665 (vst4q_f32): Likewise.
1666 (vst4q_f64): Likewise.
1667 (vst4q_p64): Likewise.
1668 (vtbx4_s8): Likewise.
1669 (vtbx4_u8): Likewise.
1670 (vtbx4_p8): Likewise.
1671 (vtrn_f32): Likewise.
1672 (vtrn_p8): Likewise.
1673 (vtrn_p16): Likewise.
1674 (vtrn_s8): Likewise.
1675 (vtrn_s16): Likewise.
1676 (vtrn_s32): Likewise.
1677 (vtrn_u8): Likewise.
1678 (vtrn_u16): Likewise.
1679 (vtrn_u32): Likewise.
1680 (vtrnq_f32): Likewise.
1681 (vtrnq_p8): Likewise.
1682 (vtrnq_p16): Likewise.
1683 (vtrnq_s8): Likewise.
1684 (vtrnq_s16): Likewise.
1685 (vtrnq_s32): Likewise.
1686 (vtrnq_u8): Likewise.
1687 (vtrnq_u16): Likewise.
1688 (vtrnq_u32): Likewise.
1689 (vrsqrte_f16): Likewise.
1690 (vrsqrteq_f16): Likewise.
1691 (vsqrt_f16): Likewise.
1692 (vsqrtq_f16): Likewise.
1693 (vabd_f16): Likewise.
1694 (vabdq_f16): Likewise.
1695 (vpadd_f16): Likewise.
1696 (vpaddq_f16): Likewise.
1697 (vpmax_f16): Likewise.
1698 (vpmaxq_f16): Likewise.
1699 (vpmaxnm_f16): Likewise.
1700 (vpmaxnmq_f16): Likewise.
1701 (vpmin_f16): Likewise.
1702 (vpminq_f16): Likewise.
1703 (vpminnm_f16): Likewise.
1704 (vpminnmq_f16): Likewise.
1705 (vrsqrts_f16): Likewise.
1706 (vrsqrtsq_f16): Likewise.
1707
1708 2019-09-25 Richard Biener <rguenther@suse.de>
1709
1710 PR tree-optimization/91896
1711 * tree-vect-loop.c (vectorizable_reduction): The single
1712 def-use cycle optimization cannot apply when there's more
1713 than one pattern stmt involved.
1714
1715 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1716
1717 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
1718 the 'P' mode iterator, replacing the (removed) SI and DI variants.
1719 (reload_macho_picbase_<mode>): Likewise.
1720
1721 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1722
1723 * config/rs6000/rs6000.md: Move darwin.md include until
1724 after the definition of the mode iterators.
1725
1726 2019-09-23 Martin Sebor <msebor@redhat.com>
1727
1728 PR tree-optimization/91570
1729 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
1730 non-constant minlen, maxlen and maxbound.
1731
1732 2019-09-24 Richard Biener <rguenther@suse.de>
1733
1734 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
1735 Rename to...
1736 (_stmt_vec_info::cond_reduc_code): ... this.
1737 (_stmt_vec_info::induc_cond_initial_val): Add.
1738 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
1739 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
1740 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
1741 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
1742 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
1743 the reduction code.
1744 (vect_create_epilog_for_reduction): Drop special
1745 induction condition reduction params, pass in reduction code
1746 and simplify.
1747 (vectorizable_reduction): Perform condition reduction kind
1748 selection only at analysis time. Adjust passing on state.
1749
1750 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1751
1752 * config/aarch64/aarch64.md (mov<mode>): Don't call
1753 aarch64_split_dimode_const_store on volatile MEM.
1754
1755 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
1756
1757 * config/aarch64/aarch64-option-extensions.def (fp16fml):
1758 Update hwcap string for fp16fml.
1759
1760 2019-09-24 Jakub Jelinek <jakub@redhat.com>
1761
1762 PR middle-end/91866
1763 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
1764 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
1765
1766 2019-09-24 Martin Liska <mliska@suse.cz>
1767
1768 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
1769 instead of if-elseif-elseif-...
1770 * gimple-expr.c (extract_ops_from_tree): Likewise.
1771 * gimple.c (get_gimple_rhs_num_ops): Likewise.
1772 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
1773
1774 2019-09-24 Martin Jambor <mjambor@suse.cz>
1775
1776 PR ipa/91831
1777 * ipa-param-manipulation.c (carry_over_param): Make a method of
1778 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
1779 in case of a context mismatch.
1780 (ipa_param_body_adjustments::common_initialization): Adjust call to
1781 carry_over_param.
1782 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
1783 private method carry_over_param.
1784
1785 2019-09-24 Martin Jambor <mjambor@suse.cz>
1786
1787 PR ipa/91832
1788 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
1789
1790 2019-09-24 Richard Biener <rguenther@suse.de>
1791
1792 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
1793 base.
1794
1795 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1796
1797 * config/arm/t-arm (arm-builtins.o): Add dependency on
1798 arm_acle_builtins.def.
1799
1800 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1801
1802 PR target/91823
1803 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
1804 canonical CONST_INTs. Use gen_rtvec.
1805
1806 2019-09-23 Richard Biener <rguenther@suse.de>
1807
1808 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
1809 avoid adjusting by + 0 or * 1.
1810 (vect_create_epilog_for_reduction): Get reduction code only
1811 when necessary. Deal with adjustment_def only when necessary.
1812
1813 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1814
1815 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
1816 memmodel index.
1817
1818 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1819
1820 PR ipa/91835
1821 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
1822 "ipa-sra".
1823
1824 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
1825
1826 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
1827 code. Merge code blocks with common conditionals. Use declared
1828 macro instead of a magic number for PIC level.
1829
1830 2019-09-21 Martin Sebor <msebor@redhat.com>
1831
1832 PR middle-end/91830
1833 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
1834 Simplify computation of the offset of the referenced subobject.
1835
1836 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
1837
1838 * config/darwin.c (machopic_legitimize_pic_address): Check
1839 for lra not reload.
1840
1841 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1842
1843 * ira-conflicts.c (can_use_same_reg_p): New function.
1844 (process_reg_shuffles): Take an insn parameter. Ignore cases
1845 in which input operand op_num could seemingly never be allocated
1846 to the same register as the destination.
1847 (add_insn_allocno_copies): Update call to process_reg_shuffles.
1848
1849 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1850
1851 * simplify-rtx.c (neg_const_int): Replace with...
1852 (neg_poly_int_rtx): ...this new function.
1853 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
1854 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
1855 (simplify_plus_minus): Likewise for constant terms here.
1856
1857 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
1858
1859 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
1860 HOST_WIDE_PRINT_UNSIGNED.
1861
1862 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
1863
1864 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
1865 character.
1866
1867 2019-09-20 Maya Rashish <coypu@sdf.org>
1868
1869 PR target/86811
1870 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
1871 Define to speculation_safe_value_not_needed.
1872
1873 2019-09-20 Richard Biener <rguenther@suse.de>
1874 Uros Bizjak <ubizjak@gmail.com>
1875
1876 PR target/91814
1877 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
1878 previous change.
1879 (general_scalar_chain::convert_op): Force not suitable memory
1880 operands to a register.
1881
1882 2019-09-20 Richard Biener <rguenther@suse.de>
1883
1884 PR tree-optimization/91821
1885 * tree-vect-loop.c (check_reduction_path): Check we can compute
1886 reduc_idx.
1887 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
1888 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
1889 operands in canonical order.
1890 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1891 STMT_VINFO_REDUC_IDX.
1892 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
1893 (STMT_VINFO_REDUC_IDX): Likewise.
1894
1895 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
1896
1897 PR target/91269
1898 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1899
1900 2019-09-20 Richard Biener <rguenther@suse.de>
1901
1902 PR tree-optimization/91822
1903 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
1904 parameter.
1905 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
1906 for reduc_index in nested cycles, adjust vectorizable_condition
1907 calls.
1908 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
1909 parameter.
1910 (vect_analyze_stmt): Adjust.
1911 (vect_transform_stmt): Likewise.
1912
1913 2019-09-20 Richard Biener <rguenther@suse.de>
1914
1915 PR target/91767
1916 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
1917 Ensure there's a sequence point between allocating the new register
1918 and passing a reference to a reg via regno_reg_rtx.
1919
1920 2019-09-20 Martin Jambor <mjambor@suse.cz>
1921
1922 * coretypes.h (cgraph_edge): Declare.
1923 * ipa-param-manipulation.c: Rewrite.
1924 * ipa-param-manipulation.h: Likewise.
1925 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
1926 (OBJS): Added ipa-sra.o.
1927 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
1928 and ref_p, added fields param_adjustments and performed_splits.
1929 (struct cgraph_clone_info): Remove ags_to_skip and
1930 combined_args_to_skip, new field param_adjustments.
1931 (cgraph_node::create_clone): Changed parameters to use
1932 ipa_param_adjustments.
1933 (cgraph_node::create_virtual_clone): Likewise.
1934 (cgraph_node::create_virtual_clone_with_body): Likewise.
1935 (tree_function_versioning): Likewise.
1936 (cgraph_build_function_type_skip_args): Removed.
1937 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
1938 using ipa_param_adjustments.
1939 (clone_of_p): Likewise.
1940 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
1941 (build_function_decl_skip_args): Likewise.
1942 (duplicate_thunk_for_node): Adjust parameters using
1943 ipa_param_body_adjustments, copy param_adjustments instead of
1944 args_to_skip.
1945 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
1946 (cgraph_node::create_virtual_clone): Likewise.
1947 (cgraph_node::create_version_clone_with_body): Likewise.
1948 (cgraph_materialize_clone): Likewise.
1949 (symbol_table::materialize_all_clones): Likewise.
1950 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
1951 ipa_replace_map check.
1952 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
1953 (initialize_node_lattices): Make aware that some parameters might have
1954 already been removed.
1955 (want_remove_some_param_p): New function.
1956 (create_specialized_node): Convert to using ipa_param_adjustments and
1957 deal with possibly pre-existing adjustments.
1958 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
1959 (output_node_opt_summary): Do not stream removed fields. Stream
1960 parameter adjustments instead of argumetns to skip.
1961 (input_node_opt_summary): Likewise.
1962 (input_node_opt_summary): Likewise.
1963 * lto-section-in.c (lto_section_name): Added ipa-sra section.
1964 * lto-streamer.h (lto_section_type): Likewise.
1965 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
1966 param_body_adjs.
1967 (copy_decl_to_var): Declare.
1968 * tree-inline.c (update_clone_info): Do not remap old_tree.
1969 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
1970 statements, walk all extra generated statements and remap their
1971 operands.
1972 (redirect_all_calls): Add killed SSA names to a hash set.
1973 (remap_ssa_name): Do not remap killed SSA names.
1974 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
1975 half of functionality moved to ipa_param_body_adjustments.
1976 (copy_decl_to_var): Make exported.
1977 (copy_body): Destroy killed_new_ssa_names hash set.
1978 (expand_call_inline): Remap performed splits.
1979 (update_clone_info): Likewise.
1980 (tree_function_versioning): Simplify tree_map processing. Updated to
1981 accept ipa_param_adjustments and use ipa_param_body_adjustments.
1982 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
1983 for the new interface.
1984 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
1985 (simd_clone_compute_base_data_type): Likewise.
1986 (simd_clone_init_simd_arrays): Adjust for the new interface.
1987 (simd_clone_adjust_argument_types): Likewise.
1988 (struct modify_stmt_info): Likewise.
1989 (ipa_simd_modify_stmt_ops): Likewise.
1990 (ipa_simd_modify_function_body): Likewise.
1991 (simd_clone_adjust): Likewise.
1992 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
1993 (type_internals_preclude_sra_p): Make public.
1994 * tree-sra.h: New file.
1995 * ipa-inline-transform.c (save_inline_function_body): Update to
1996 refelct new tree_function_versioning signature.
1997 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
1998 ipa_param_adjustments to get current parameter indices.
1999 (ipcp_modif_dom_walker::before_dom_children): Likewise.
2000 (ipcp_update_bits): Likewise.
2001 (ipcp_update_vr): Likewise.
2002 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
2003 * ipa-sra.c: New file.
2004 * multiple_target.c (create_target_clone): Update to reflet new type
2005 of create_version_clone_with_body.
2006 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
2007 tree_function_versioning.
2008 (modify_function): Update to reflect new type of
2009 tree_function_versioning.
2010 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
2011 * passes.def: Remove old IPA-SRA and add new one.
2012 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
2013 (make_pass_ipa_sra): Declare.
2014 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
2015 ipa_sra_retvalues.
2016 * doc/invoke.texi (ipa-sra-max-replacements): New.
2017
2018 2019-09-19 Martin Sebor <msebor@redhat.com>
2019
2020 PR middle-end/91631
2021 * builtins.c (component_size): Correct trailing array computation,
2022 rename to component_ref_size and move...
2023 (compute_objsize): Adjust.
2024 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
2025 (builtin_access::strict): Do not consider memmove.
2026 (builtin_access::write_off): New function.
2027 (builtin_memref::builtin_memref): Initialize refsize.
2028 (builtin_memref::set_base_and_offset): Adjust refoff and compute
2029 refsize.
2030 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
2031 Handle refsize.
2032 (builtin_access::builtin_access): Initialize dstoff to destination
2033 refeence offset here instead of in maybe_diag_overlap. Adjust
2034 referencess even to unrelated objects. Adjust sizrange of bounded
2035 string functions to reflect bound. For strcat, adjust destination
2036 sizrange by that of source.
2037 (builtin_access::strcat_overlap): Adjust offsets and sizes
2038 to reflect the increase in destination sizrange above.
2039 (builtin_access::overlap): Do not set dstoff here but instead
2040 in builtin_access::builtin_access.
2041 (check_bounds_or_overlap): Use builtin_access::write_off.
2042 (maybe_diag_access_bounds): Add argument. Add informational notes.
2043 (dump_builtin_memref, dump_builtin_access): New functions.
2044 * tree.c (component_ref_size): ...to here.
2045 * tree.h (component_ref_size): Declare.
2046 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
2047 nul in the size of the source string.
2048
2049 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
2050
2051 PR c/67224
2052 * doc/cpp.texi: Document support for extended characters in
2053 identifiers.
2054 * doc/cppopts.texi: Likewise.
2055
2056 2019-09-19 Richard Biener <rguenther@suse.de>
2057
2058 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
2059 (check_reduction_path): New overload having the path as result.
2060 (vect_is_simple_reduction): From the detected reduction
2061 path build a SLP reduction chain if possible.
2062
2063 2019-09-19 Richard Biener <rguenther@suse.de>
2064
2065 PR target/91814
2066 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
2067 Force operand to a register if it isn't nonimmediate_operand.
2068
2069 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
2070
2071 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
2072 * config/arm/iterators.md (optab): Add and, ior, xor entries.
2073 (logical_op): Remove code attribute.
2074 (logical_OP): Likewise.
2075
2076 2019-09-19 Martin Liska <mliska@suse.cz>
2077
2078 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
2079 Use proper casting.
2080
2081 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
2082
2083 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
2084 registers with %R.
2085
2086 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
2087 for NE comparison of TImode values.
2088 (aarch64_emit_load_exclusive): Add support for TImode.
2089 (aarch64_emit_store_exclusive): Likewise.
2090 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
2091 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
2092 Change iterator from ALLI to ALLI_TI.
2093 (@atomic_compare_and_swap<JUST_TI>): New.
2094 (@atomic_compare_and_swap<JUST_TI>_lse): New.
2095 (aarch64_load_exclusive_pair): New.
2096 (aarch64_store_exclusive_pair): New.
2097 * config/aarch64/iterators.md (JUST_TI): New.
2098
2099 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
2100 strong_zero_p for aarch64_track_speculation; unify some code paths;
2101 use aarch64_gen_compare_reg instead of open-coding.
2102
2103 * config/aarch64/aarch64.opt (-moutline-atomics): New.
2104 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
2105 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
2106 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
2107 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
2108 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
2109 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
2110 (atomic_<atomic_op><ALLI>): Likewise.
2111 (atomic_fetch_<atomic_op><ALLI>): Likewise.
2112 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
2113 * doc/invoke.texi: Document -moutline-atomics.
2114
2115 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
2116
2117 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
2118 trivial predicate for condition branch.
2119 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
2120 for switch case.
2121 (compute_bb_predicates): Update predicate based on post-dominating
2122 relationship.
2123 (analyze_function_body): Calculate post-dominating information.
2124
2125 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
2126
2127 * tree-vectorizer.h (vectorizable_condition): Take an int
2128 reduction index instead of a boolean flag.
2129 * tree-vect-stmts.c (vectorizable_condition): Likewise.
2130 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
2131 reductions if the reduction accumulator is the "then" rather
2132 than the "else" value.
2133 (vect_analyze_stmt): Update call accordingly.
2134 (vect_transform_stmt): Likewise.
2135 * tree-vect-loop.c (vectorizable_reduction): Likewise,
2136 asserting that the index is > 0.
2137
2138 2019-09-19 Martin Liska <mliska@suse.cz>
2139
2140 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
2141 (sort_congruence_classes_by_decl_uid): Likewise.
2142 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
2143 easier sorting.
2144 (sem_item_optimizer::merge_classes): Likewise.
2145
2146 2019-09-19 Richard Biener <rguenther@suse.de>
2147
2148 PR tree-optimization/91812
2149 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
2150 volatile loads.
2151
2152 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
2153
2154 * defaults.h (TARGET_UNIT): New macro.
2155 (target_unit): New type.
2156 * rtl.h (native_encode_rtx, native_decode_rtx)
2157 (native_decode_vector_rtx, subreg_size_lsb): Declare.
2158 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
2159 * rtlanal.c (subreg_lsb_1): Delete.
2160 (subreg_size_lsb): New function.
2161 * simplify-rtx.c: Include rtx-vector-builder.h
2162 (simplify_immed_subreg): Delete.
2163 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
2164 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
2165 functions.
2166 (simplify_subreg): Use them.
2167 (test_vector_subregs_modes, test_vector_subregs_repeating)
2168 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
2169 (test_vector_subregs): New functions.
2170 (test_vector_ops): Call test_vector_subregs for integer vector
2171 modes with at least 2 elements.
2172
2173 2019-09-19 Richard Biener <rguenther@suse.de>
2174
2175 * tree-parloops.c (parloops_is_slp_reduction): Do not set
2176 LOOP_VINFO_OPERANDS_SWAPPED.
2177 (parloops_is_simple_reduction): Likewise.
2178 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
2179 initialize operands_swapped.
2180 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
2181 (vect_is_slp_reduction): Do not swap operands.
2182 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
2183 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
2184
2185 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
2186
2187 PR target/87007
2188 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
2189 Add avx_partial_xmm_update.
2190
2191 2019-09-18 Jim Wilson <jimw@sifive.com>
2192
2193 PR target/91683
2194 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
2195 (riscv_move_integer): Likewise.
2196 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
2197 riscv_move_integer arg.
2198 (riscv_legitimize_move): Likewise.
2199 (riscv_force_temporary): New parameter in_splitter. Don't call
2200 force_reg if true.
2201 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
2202 arg.
2203 (riscv_add_offset): Likewise.
2204 (riscv_split_symbol): New parameter in_splitter. Pass to
2205 riscv_force_temporary.
2206 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
2207 arg.
2208 (riscv_move_integer): New parameter in_splitter. New local
2209 can_create_psuedo. Don't call riscv_split_integer or force_reg when
2210 in_splitter TRUE.
2211 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
2212 riscv_split_symbol, and riscv_force_temporary args.
2213 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
2214 riscv_move_integer arg.
2215 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
2216
2217 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2218
2219 PR target/90878
2220 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
2221 hard register store cost to 6.
2222
2223 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2224
2225 PR target/91446
2226 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
2227 pseudo register store cost from 3 to 6 to make it the same as
2228 QImode and HImode.
2229
2230 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2231
2232 PR target/91738
2233 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
2234 (one_cmpldi2): Likewise.
2235 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
2236 of the constant parts is simple.
2237 * config/arm/iterators.md (LOGICAL): Add new code iterator.
2238 (logical_op): Add new code attribute.
2239 (logical_OP): Likewise.
2240 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
2241 (arm_iordi_operand): Add predicate.
2242 (arm_xordi_operand): Add predicate.
2243
2244 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2245
2246 * config/arm/arm.md (maddsidi4): Remove expander.
2247 (mulsidi3adddi): Remove pattern.
2248 (mulsidi3adddi_v6): Likewise.
2249 (mulsidi3_nov6): Likewise.
2250 (mulsidi3_v6): Likewise.
2251 (umulsidi3): Remove expander.
2252 (umulsidi3_nov6): Remove pattern.
2253 (umulsidi3_v6): Likewise.
2254 (umulsidi3adddi): Likewise.
2255 (umulsidi3adddi_v6): Likewise.
2256 (<Us>mulsidi3): Add combined expander.
2257 (<Us>maddsidi4): Likewise.
2258 (<US>mull): Add combined umull and smull pattern.
2259 (<US>mlal): Likewise.
2260 * config/arm/iterators.md (Us): Add new iterator.
2261
2262 2019-09-18 Richard Biener <rguenther@suse.de>
2263
2264 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
2265 swapping.
2266 (vectorize_fold_left_reduction): Remove assert.
2267 (vectorizable_reduction): Also expect COND_EXPR non-reduction
2268 operand in position 2. Remove assert.
2269
2270 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2271
2272 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
2273 (smulsi3_highpart_nov6): Remove pattern.
2274 (smulsi3_highpart_v6): Likewise.
2275 (umulsi3_highpart): Likewise.
2276 (umulsi3_highpart_nov6): Likewise.
2277 (umulsi3_highpart_v6): Likewise.
2278 (<US>mull_high): Add new combined multiply pattern.
2279
2280 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2281
2282 * config/arm/arm.md (arm_mulsi3): Remove pattern.
2283 (arm_mulsi3_v6): Likewise.
2284 (mulsi3addsi_v6): Likewise.
2285 (mulsi3subsi): Likewise.
2286 (mul): Add new multiply pattern.
2287 (mla): Likewise.
2288 (mls): Likewise.
2289
2290 2019-09-18 Richard Biener <rguenther@suse.de>
2291
2292 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
2293 (parloops_valid_reduction_input_p): Copy from
2294 valid_reduction_input_p.
2295 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
2296 (parloops_needs_fold_left_reduction_p): Copy from
2297 needs_fold_left_reduction_p.
2298 (parloops_is_simple_reduction): Copy from
2299 vect_is_simple_reduction.
2300 (parloops_force_simple_reduction): Copy from
2301 vect_force_simple_reduction.
2302 (gather_scalar_reductions): Adjust.
2303 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
2304 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
2305
2306 2019-09-18 Richard Biener <rguenther@suse.de>
2307
2308 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
2309 * tree-vect-loop.c (get_initial_def_for_reduction): Make
2310 static.
2311 (vect_create_epilog_for_reduction): Remove dead code.
2312
2313 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2314
2315 * varasm.c (assemble_real): Generate canonical const_ints.
2316
2317 2019-09-18 Richard Biener <rguenther@suse.de>
2318
2319 PR lto/91763
2320 * lto-streamer-in.c (input_eh_regions): Move EH init to
2321 lto_materialize_function.
2322 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2323 Likewise.
2324
2325 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2326
2327 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
2328 are INTEGER_CSTs.
2329
2330 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2331
2332 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
2333 of checking specifically for INTEGER_CST.
2334
2335 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2336
2337 * stor-layout.c (compute_record_mode): Operate on poly_uint64
2338 sizes instead of uhwi sizes.
2339
2340 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2341
2342 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
2343 (add_const_value_attribute): Handle CONST_POLY_INT.
2344
2345 2019-09-18 Martin Liska <mliska@suse.cz>
2346
2347 * dbgcnt.def (store_merging): New counter.
2348 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
2349 Use it in store merging.
2350
2351 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2352
2353 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
2354 function.
2355 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2356 * config/arm/arm.c (arm_sched_variable_issue): New function.
2357 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2358
2359 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2360
2361 * config/arm/types.md (no_reservation): New reservation.
2362 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
2363 no_insn here.
2364 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
2365 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
2366 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
2367 * config/arm/arm1020e.md (1020alu_op): Likewise.
2368 * config/arm/arm1026ejs.md (alu_op): Likewise.
2369 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2370 * config/arm/arm926ejs.md (9_alu_op): Likewise.
2371 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2372 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
2373 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2374 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2375 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2376 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2377 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2378 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2379 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2380 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2381 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2382 * config/arm/fa526.md (526_alu_op): Likewise.
2383 * config/arm/fa606te.md (606te_alu_op): Likewise.
2384 * config/arm/fa626te.md (626te_alu_op): Likewise.
2385 * config/arm/fa726te.md (726te_alu_op): Likewise.
2386 * config/arm/xgene1.md (xgene1_nop): Likewise.
2387
2388 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2389
2390 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2391 "no_insn" to "branch".
2392
2393 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2394
2395 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2396
2397 2019-09-17 Richard Biener <rguenther@suse.de>
2398
2399 PR debug/91772
2400 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2401 was missing generate locations only once.
2402
2403 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
2404
2405 PR ipa/91089
2406 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2407 option.
2408 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2409 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2410 for switch default case using range analysis information.
2411
2412 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
2413
2414 PR target/91749
2415 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2416 mode attributed is supported by FDPIC.
2417
2418 2019-09-17 Richard Biener <rguenther@suse.de>
2419
2420 PR tree-optimization/91790
2421 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2422 use the correct DR for setting up realignment.
2423
2424 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
2425
2426 PR target/91719
2427 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2428 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2429 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2430 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2431
2432 2019-09-16 Jason Merrill <jason@redhat.com>
2433
2434 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2435
2436 2019-09-16 Martin Liska <mliska@suse.cz>
2437
2438 * gimple-fold.c (or_comparisons_1): Remove rules moved
2439 to ...
2440 * match.pd: ... here.
2441
2442 2019-09-16 Martin Liska <mliska@suse.cz>
2443
2444 * gimple-fold.c (or_comparisons_1): Remove rules
2445 moved to ...
2446 * match.pd: ... here.
2447
2448 2019-09-16 Martin Liska <mliska@suse.cz>
2449
2450 * genmatch.c (dt_node::append_simplify): Do not print
2451 warning when we have duplicate patterns belonging
2452 to a same simplify rule.
2453 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2454 (maybe_fold_comparisons_from_match_pd): Handle
2455 tcc_comparison as a results.
2456 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2457
2458 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2459 Qi Feng <ffengqi@linux.ibm.com>
2460
2461 PR middle-end/88784
2462 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
2463 (x > y && x == XXX_MIN): Optimize into 'false'.
2464 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2465 (x < y && x != XXX_MAX): Optimize into 'x < y'.
2466 (x < y && x == XXX_MAX): Optimize into 'false'.
2467 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2468 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2469 (x <= y || x != XXX_MIN): Optimize into 'true'.
2470 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
2471 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2472 (x >= y || x != XXX_MAX): Optimize into 'true'.
2473 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
2474
2475 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2476 Martin Liska <mliska@suse.cz>
2477
2478 * gimple-fold.c (and_comparisons_1): Add type as first
2479 argument.
2480 (and_var_with_comparison): Likewise.
2481 (and_var_with_comparison_1): Likewise.
2482 (or_comparisons_1): Likewise.
2483 (or_var_with_comparison): Likewise.
2484 (or_var_with_comparison_1): Likewise.
2485 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2486 (maybe_fold_or_comparisons): Likewise.
2487 (maybe_fold_comparisons_from_match_pd): New.
2488 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2489 (maybe_fold_or_comparisons): Likewise.
2490 * gimple.c (gimple_size): Make it public and add num_ops argument.
2491 (gimple_init): New function.
2492 (gimple_alloc): Call gimple_init.
2493 * gimple.h (gimple_size): New.
2494 (gimple_init): Likewise.
2495 * tree-if-conv.c (fold_or_predicates): Pass type.
2496 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2497 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2498 (optimize_vec_cond_expr): Likewise.
2499 (ovce_extract_ops): Return type of conditional expression.
2500 * tree-ssanames.c (init_ssa_name_imm_use): New.
2501 (make_ssa_name_fn): Use init_ssa_name_imm_use.
2502 * tree-ssanames.h (init_ssa_name_imm_use): New.
2503
2504 2019-09-16 Richard Biener <rguenther@suse.de>
2505
2506 PR tree-optimization/91756
2507 PR tree-optimization/87132
2508 * tree-ssa-alias.h (enum translate_flags): New.
2509 (get_continuation_for_phi): Use it instead of simple bool flag.
2510 (walk_non_aliased_vuses): Likewise.
2511 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2512 (get_continuation_for_phi): When looking across backedges only
2513 disallow valueization.
2514 (walk_non_aliased_vuses): Adjust.
2515 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2516 if requested.
2517
2518 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
2519
2520 PR middle-end/80791
2521 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2522 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2523 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2524 * target.def (have_count_reg_decr_p): New hook.
2525 (doloop_cost_for_generic): Likewise.
2526 (doloop_cost_for_address): Likewise.
2527 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2528 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2529 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2530 * doc/tm.texi: Regenerate.
2531 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2532 addend.
2533 (record_group): Init doloop_p.
2534 (add_candidate_1): Add optional argument doloop, change the handlings
2535 accordingly.
2536 (add_candidate): Likewise.
2537 (generic_predict_doloop_p): Update attribute.
2538 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2539 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2540 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2541 MIN_EXPR.
2542 (get_computation_cost): Update for doloop IV cand extra cost.
2543 (determine_group_iv_cost_cond): Update for doloop IV cand.
2544 (determine_iv_cost): Likewise.
2545 (ivopts_estimate_reg_pressure): Likewise.
2546 (may_eliminate_iv): Update handlings for doloop IV cand.
2547 (add_iv_candidate_for_doloop): New function.
2548 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2549 (iv_ca_set_no_cp): Update for doloop IV cand.
2550 (iv_ca_set_cp): Likewise.
2551 (iv_ca_dump): Dump register cost.
2552 (find_doloop_use): New function.
2553 (analyze_and_mark_doloop_use): Likewise.
2554 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2555
2556 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
2557
2558 PR middle-end/91708
2559 * cse.c (cse_insn): Do not replace anything with a
2560 MEM.
2561
2562 2019-09-13 Ian Lance Taylor <iant@golang.org>
2563
2564 * doc/invoke.texi (Optimize Options): Fix typo.
2565
2566 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
2567
2568 PR tree-optimization/89386
2569 * config/i386/sse.md (smulhrs<mode>3): New expander.
2570 (smulhrsv4hi3): Ditto.
2571
2572 2019-09-12 Richard Biener <rguenther@suse.de>
2573
2574 PR tree-optimization/91750
2575 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2576 in the type of the evolution.
2577
2578 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
2579
2580 PR tree-optimization/89386
2581 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2582 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2583 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2584 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
2585 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
2586 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
2587 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
2588 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
2589 (su, r): Handle the unspecs above.
2590 (bt): New int attribute.
2591 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
2592 * internal-fn.c (first_commutative_argument): Commutativity info for
2593 above.
2594 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
2595 (umulhrs_optab): New optabs.
2596 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
2597 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
2598 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
2599 function.
2600 (vect_vect_recog_func_ptrs): Add it.
2601
2602 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
2603
2604 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
2605 code.
2606
2607 2019-09-11 Nathan Sidwell <nathan@acm.org>
2608
2609 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
2610 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
2611
2612 2019-09-11 Richard Biener <rguenther@suse.de>
2613
2614 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
2615 * lto-wrapper.c (merge_and_complain): Pick up -g.
2616 (append_compiler_options): Likewise.
2617 (run_gcc): Re-instantiate handling -g0 at link-time.
2618 * doc/invoke.texi (flto): Document debug info generation.
2619
2620 2019-09-11 Richard Biener <rguenther@suse.de>
2621
2622 PR tree-optimization/90387
2623 * vr-values.c (vr_values::extract_range_basic): After inlining
2624 simplify non-constant __builtin_constant_p to false.
2625
2626 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
2627
2628 PR rtl-optimization/89795
2629 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
2630 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
2631
2632 2019-09-11 Jakub Jelinek <jakub@redhat.com>
2633
2634 PR tree-optimization/91723
2635 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
2636 instead of pointer equality when checking if argument vectypes are
2637 the same.
2638
2639 PR middle-end/91725
2640 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
2641 of get_nonzero_bits, only call it for integral types.
2642
2643 2019-09-11 Richard Biener <rguenther@suse.de>
2644
2645 Revert
2646 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
2647
2648 * match.pd: Add flag_unsafe_math_optimizations check
2649 before deciding on the widest type in a binary math operation.
2650
2651 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2652
2653 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
2654 and CALL_REALLY_USED_REGISTERS must be defined, and that
2655 CALL_REALLY_USED_REGISTERS is preferred.
2656 * doc/tm.texi: Regenerate.
2657 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
2658 (call_really_used_regs): Likewise.
2659 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
2660 CALL_REALLY_USED_REGISTERS are defined.
2661 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
2662 initial value if defined.
2663 (initial_call_really_used_regs): Delete.
2664 (saved_call_really_used_regs): Likewise.
2665 (CALL_REALLY_USED_REGNO_P): Likewise.
2666 (init_reg_sets): Remove handling of call_really_used_regs.
2667 (save_register_info, restore_register_info, globalize_reg): Likewise.
2668 (init_reg_sets_1): Likewise. Use call_used_regs instead of
2669 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
2670 outside operand_reg_set.
2671 (fix_register): Don't change call_used_regs if
2672 CALL_REALLY_USED_REGISTERS is defined.
2673 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
2674 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
2675 instead of call_really_used_regs.
2676 (csky_conditional_register_usage): Remove the old handling of
2677 call_used_regs and change the handling of call_really_used_regs
2678 to use call_used_regs instead.
2679 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
2680 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
2681 making a register fixed.
2682 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
2683 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
2684 instead of call_really_used_regs.
2685 (m32r_conditional_register_usage): Don't set call_used_regs when
2686 making a register fixed.
2687 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
2688 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
2689 instead of call_really_used_regs.
2690 (mips_interrupt_extra_call_saved_reg_p): Likewise.
2691 (mips_cfun_call_saved_reg_p): Likewise.
2692 (mips_swap_registers): Remove the old handling of call_used_regs
2693 and change the handling of call_really_used_regs to use call_used_regs
2694 instead.
2695 (mips_conditional_register_usage): Likewise.
2696 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
2697 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
2698 instead of call_really_used_regs.
2699 (mn10300_get_live_callee_saved_regs): Likewise.
2700 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
2701 (mn10300_conditional_register_usage): Don't set call_used_regs when
2702 making a register fixed.
2703 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
2704 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2705 Remove the old handling of call_used_regs and change the handling
2706 of call_really_used_regs to use call_used_regs instead.
2707 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
2708 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
2709 instead of call_really_used_regs.
2710 (s390_register_info_gprtofpr, s390_register_info): Likewise.
2711 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
2712 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
2713 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
2714 (s390_conditional_register_usage): Remove the old handling of
2715 call_used_regs and change the handling of call_really_used_regs
2716 to use call_used_regs instead.
2717 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
2718 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
2719 (sh_fix_range, reg_unused_after): Likewise.
2720 (sh_conditional_register_usage): Remove the old handling of
2721 call_used_regs and change the handling of call_really_used_regs
2722 to use call_used_regs instead.
2723 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
2724 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
2725 call_used_regs when making a register fixed.
2726 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
2727 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
2728 call_used_regs when making a register fixed.
2729 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
2730 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
2731 set call_used_regs when making a register fixed.
2732 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
2733 * config/visium/visium.c (visium_conditional_register_usage): Remove
2734 the old handling of call_used_regs and change the handling of
2735 call_really_used_regs to use call_used_regs instead.
2736
2737 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2738
2739 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
2740 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
2741 * reginfo.c (call_used_regs): New macro.
2742
2743 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2744
2745 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
2746 fixed_regs test.
2747 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2748 (bpf_expand_epilogue): Likewise.
2749 * config/c6x/c6x.c (c6x_save_reg): Likewise.
2750 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2751 (ft32_expand_epilogue): Likewise.
2752 * config/i386/i386.c (ix86_save_reg): Likewise.
2753 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
2754 (moxie_expand_epilogue): Likewise.
2755 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2756 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2757 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2758
2759 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2760
2761 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
2762 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
2763 instead of testing call_used_regs directly.
2764 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
2765 (aarch64_components_for_bb): Likewise.
2766 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
2767 * config/arc/arc.c (arc_must_save_register): Likewise.
2768 (arc_epilogue_uses): Likewise.
2769 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
2770 (legitimize_pic_address, callee_saved_reg_p): Likewise.
2771 (arm_compute_save_reg0_reg12_mask): Likewise.
2772 (arm_compute_save_core_reg_mask): Likewise.
2773 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
2774 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
2775 (cmse_nonsecure_entry_clear_before_return): Likewise.
2776 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
2777 (arm_expand_epilogue): Likewise.
2778 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
2779 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
2780 (_reg_unused_after): Likewise.
2781 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
2782 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
2783 (add_to_reg, hwloop_optimize): Likewise.
2784 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2785 (bpf_expand_epilogue): Likewise.
2786 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
2787 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2788 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
2789 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
2790 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
2791 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
2792 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
2793 * config/frv/frv.c (frv_stack_info): Likewise.
2794 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
2795 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
2796 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
2797 (move_callee_saved_registers): Likewise.
2798 * config/h8300/h8300.c (byte_reg): Likewise.
2799 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
2800 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
2801 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
2802 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
2803 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
2804 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
2805 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
2806 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2807 * config/m32c/m32c.c (need_to_save): Likewise.
2808 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2809 * config/mcore/mcore.c (calc_live_regs): Likewise.
2810 * config/microblaze/microblaze.c (microblaze_must_save_register):
2811 Likewise.
2812 * config/mmix/mmix.c (mmix_local_regno): Likewise.
2813 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
2814 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
2815 (mmix_expand_epilogue): Likewise.
2816 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
2817 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
2818 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
2819 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
2820 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
2821 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
2822 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
2823 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
2824 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
2825 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
2826 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
2827 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
2828 * config/rl78/rl78.c (need_to_save): Likewise.
2829 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
2830 (rs6000_stack_info, generate_set_vrsave): Likewise.
2831 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2832 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
2833 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2834 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2835 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
2836 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
2837 (save_local_or_in_reg_p): Likewise.
2838 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
2839 (xstormy16_epilogue_uses): Likewise.
2840 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2841 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2842 * config/v850/v850.c (compute_register_save_size): Likewise.
2843 * config/vax/vax.c (vax_expand_prologue): Likewise.
2844 * config/visium/visium.c (visium_save_reg_p): Likewise.
2845 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2846 * cselib.c (cselib_process_insn): Likewise.
2847 * df-scan.c (df_get_entry_block_def_set): Likewise.
2848 * function.c (aggregate_value_p): Likewise.
2849 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
2850 * ira-lives.c (process_bb_node_lives): Likewise.
2851 * ira.c (do_reload): Likewise.
2852 * lra-lives.c (process_bb_lives): Likewise.
2853 * lra-remat.c (lra_remat): Likewise.
2854 * lra.c (lra): Likewise.
2855 * postreload.c (reload_combine_recognize_pattern): Likewise.
2856 (reload_cse_move2add): Likewise.
2857 * recog.c (peep2_find_free_register): Likewise.
2858 * regrename.c (check_new_reg_p): Likewise.
2859 * reload.c (find_equiv_reg): Likewise.
2860 * reload1.c (reload, find_reg): Likewise.
2861 * sel-sched.c (init_hard_regs_data): Likewise.
2862
2863 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2864
2865 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
2866 regs_invalidated_by_call & ~fixed_reg_set instead of
2867 call_used_or_fixed_regs & ~fixed_reg_set.
2868 * config/sh/sh.c (output_stack_adjust): Likewise.
2869
2870 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2871
2872 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
2873 (call_used_reg_set): Delete.
2874 (call_used_or_fixed_regs): New macro.
2875 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
2876 of call_used_reg_set.
2877 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
2878 instead of call_used_regs.
2879 (save_call_clobbered_regs): Likewise.
2880 * cfgcleanup.c (old_insns_match_p): Likewise.
2881 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
2882 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2883 Likewise.
2884 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2885 * config/sh/sh.c (output_stack_adjust): Likewise.
2886 * final.c (collect_fn_hard_reg_usage): Likewise.
2887 * ira-build.c (ira_build): Likewise.
2888 * ira-color.c (calculate_saved_nregs): Likewise.
2889 (allocno_reload_assign, calculate_spill_cost): Likewise.
2890 * ira-conflicts.c (ira_build_conflicts): Likewise.
2891 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2892 * ira-lives.c (process_bb_node_lives): Likewise.
2893 * ira.c (setup_reg_renumber): Likewise.
2894 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
2895 * lra-constraints.c (need_for_call_save_p): Likewise.
2896 (need_for_split_p, inherit_in_ebb): Likewise.
2897 * lra-lives.c (process_bb_lives): Likewise.
2898 * lra-remat.c (call_used_input_regno_present_p): Likewise.
2899 * postreload.c (reload_combine): Likewise.
2900 * regrename.c (find_rename_reg): Likewise.
2901 * reload1.c (reload_as_needed): Likewise.
2902 * rtlanal.c (find_all_hard_reg_sets): Likewise.
2903 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2904 * shrink-wrap.c (requires_stack_frame_p): Likewise.
2905
2906 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2907
2908 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
2909 (no_caller_save_reg_set): Delete.
2910 * caller-save.c (init_caller_save): Don't initialize it.
2911 * ira-conflicts.c (ira_build_conflicts): Calculate
2912 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
2913
2914 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2915
2916 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
2917 (target_hard_regs::x_savable_regs): New field.
2918 (call_fixed_reg_set): Delete.
2919 (savable_regs): New macro,
2920 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
2921 (init_reg_sets_1): Likewise. Initialize savable_regs.
2922 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
2923 for all registers. Set savable_regs instead of call_fixed_reg_set.
2924 (setup_save_areas, save_call_clobbered_regs): Replace uses of
2925 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
2926 * config/sh/sh.c (output_stack_adjust): Likewise.
2927
2928 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2929
2930 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
2931 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
2932 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
2933
2934 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2935
2936 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
2937 * rtlanal.c (get_call_rtx_from): Likewise.
2938 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
2939 than the pattern to get_call_rtx_from.
2940 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
2941 an rtx_insn * instead of an rtx.
2942 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
2943
2944 2019-09-10 Martin Liska <mliska@suse.cz>
2945
2946 * common.opt: Use newly added WarnRemoved.
2947 * config/aarch64/aarch64.opt: Likewise.
2948 * config/arm/arm.opt: Likewise.
2949 * config/i386/i386.opt: Likewise.
2950 * config/ia64/ia64.opt: Likewise.
2951 * config/rs6000/rs6000.opt: Likewise.
2952 * doc/options.texi: Document WarnRemoved properly.
2953 * dwarf2out.c (gen_producer_string): Handle renamed
2954 OPT_SPECIAL_warn_removed.
2955 * lto-opts.c (lto_write_options): Likewise.
2956 * lto-wrapper.c (merge_and_complain): Likewise.
2957 * opts-common.c (decode_cmdline_option): Likewise.
2958 (prune_options): Likewise.
2959 (read_cmdline_option): Likewise.
2960 (control_warning_option): Likewise.
2961 * opts.c (print_filtered_help): Likewise.
2962 * optc-gen.awk: Parse for WarnRemoved and make usage
2963 of Deprecated an error.
2964 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
2965
2966 2019-09-10 Arnaud Charlet <charlet@adacore.com>
2967
2968 * doc/install.texi: Fix syntax for html generation.
2969
2970 2019-09-10 Jakub Jelinek <jakub@redhat.com>
2971
2972 PR middle-end/91680
2973 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
2974 the shift type to type.
2975
2976 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2977
2978 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
2979 FDPIC mode.
2980 (stack_protect_combined_test_insn): Likewise.
2981
2982 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2983 Mickaël Guêné <mickael.guene@st.com>
2984
2985 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
2986 * config/arm/arm.md (FDPIC_REGNUM): New constant.
2987 (load_tp_soft_fdpic): New pattern.
2988 (load_tp_soft): Disable in FDPIC mode.
2989
2990 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2991 Mickaël Guêné <mickael.guene@st.com>
2992
2993 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
2994 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
2995 (arm_call_tls_get_addr): Add FDPIC support.
2996 (legitimize_tls_address): Likewise.
2997 (arm_emit_tls_decoration): Likewise.
2998
2999 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3000 Mickaël Guêné <mickael.guene@st.com>
3001
3002 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
3003 support.
3004 (arm_trampoline_init): Likewise.
3005 (arm_trampoline_adjust_address): Likewise.
3006 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
3007
3008 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3009 Mickaël Guêné <mickael.guene@st.com>
3010
3011 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
3012 (legitimize_pic_address): Enforce binding rules on function
3013 pointers in FDPIC mode.
3014 (arm_assemble_integer): Likewise.
3015
3016 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3017 Mickaël Guêné <mickael.guene@st.com>
3018
3019 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
3020 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
3021 FDPIC.
3022
3023 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3024 Mickaël Guêné <mickael.guene@st.com>
3025
3026 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
3027 field.
3028
3029 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3030 Mickaël Guêné <mickael.guene@st.com>
3031
3032 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
3033 in FDPIC mode.
3034 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
3035 new function.
3036 * config/arm/arm.c (arm_option_override): Define pic register to
3037 FDPIC_REGNUM.
3038 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
3039 have no decl or go through PLT.
3040 (calculate_pic_address_constant): New function.
3041 (legitimize_pic_address): Call calculate_pic_address_constant.
3042 (arm_load_pic_register): Handle TARGET_FDPIC.
3043 (arm_is_segment_info_known): New function.
3044 (arm_pic_static_addr): Add support for FDPIC.
3045 (arm_load_function_descriptor): New function.
3046 (arm_emit_call_insn): Add support for FDPIC.
3047 (arm_assemble_integer): Add support for FDPIC.
3048 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
3049 Define. (FDPIC_REGNUM): New define.
3050 * config/arm/arm.md (call): Add support for FDPIC.
3051 (call_value): Likewise.
3052 (restore_pic_register_after_call): New pattern.
3053 (untyped_call): Disable if FDPIC.
3054 (untyped_return): Likewise.
3055 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
3056
3057 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3058 Mickaël Guêné <mickael.guene@st.com>
3059
3060 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
3061 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
3062 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
3063 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
3064 (CC1_SPEC): Use FDPIC_CC1_SPEC.
3065 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
3066 * config/arm/uclinuxfdpiceabi.h: New file.
3067
3068 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3069
3070 * config.gcc: Handle *-*-uclinuxfdpiceabi.
3071
3072 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3073 Mickaël Guêné <mickael.guene@st.com>
3074
3075 * config/arm/arm.opt: Add -mfdpic option.
3076 * doc/invoke.texi: Add documentation for -mfdpic.
3077
3078 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3079
3080 * expmed.c (extract_bit_field): Update function comment
3081 regarding alt_rtl.
3082 * expr.c (expand_expr_real): Update function comment
3083 regarding alt_rtl.
3084 (expand_misaligned_mem_ref): New helper function.
3085 (expand_expr_real_2): Use expand_misaligned_mem_ref.
3086 Remove duplicate assignment to "base" at case MEM_REF.
3087 Remove a shadowed variable "unsignedp" at case VCE.
3088
3089 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3090
3091 * regset.h (regs_invalidated_by_call_regset): Delete.
3092 (fixed_reg_set_regset): Likewise.
3093 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
3094 (fixed_reg_set_regset, persistent_obstack): Likewise.
3095 (init_reg_sets_1, globalize_reg): Update accordingly.
3096 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
3097 instead of a bitmap.
3098 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
3099 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
3100 instead of regs_invalidated_by_call_regset.
3101 (df_lr_confluence_n, df_md_confluence_n): Likewise.
3102 * df-scan.c (df_scan_start_dump): Likewise.
3103 * dse.c (copy_fixed_regs): Likewise.
3104 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
3105
3106 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3107
3108 * array-traits.h: New file.
3109 * coretypes.h (array_traits, bitmap_view): New types.
3110 * bitmap.h: Include "array-traits.h"
3111 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3112 (base_bitmap_view, bitmap_view): New classes.
3113 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3114 * hard-reg-set.h: Include array-traits.h.
3115 (array_traits<HARD_REG_SET>): New struct.
3116 * regset.h (IOR_REG_SET_HRS): New macro.
3117 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
3118 rather than iterating over each hard register.
3119 * sched-deps.c (sched_analyze_insn): Likewise.
3120 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
3121
3122 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3123
3124 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
3125 instead of a HARD_REG_SET *.
3126 * ira-build.c (ior_hard_reg_conflicts): Likewise.
3127 (ira_build): Update call accordingly.
3128 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3129
3130 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3131
3132 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
3133 (HARD_REG_SET::operator!=): Likewise.
3134 (hard_reg_set_equal_p): Delete.
3135 * cfgcleanup.c (old_insns_match_p): Use == instead of
3136 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
3137 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
3138 (add_allocno_hard_regs_to_forest): Likewise.
3139 (setup_allocno_available_regs_num): Likewise.
3140 * ira.c (setup_pressure_classes): Likewise.
3141 (setup_allocno_and_important_classes): Likewise.
3142 (setup_reg_class_relations): Likewise.
3143 * lra-lives.c (process_bb_lives): Likewise.
3144 * reg-stack.c (change_stack, convert_regs_1): Likewise.
3145
3146 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3147
3148 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
3149 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3150 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
3151 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
3152 Likewise.
3153 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
3154 * ira.c (setup_reg_renumber): Likewise.
3155 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3156 * regrename.c (regrename_find_superclass): Likewise.
3157 * reload1.c (find_reg): Likewise.
3158
3159 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3160
3161 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
3162 * caller-save.c (setup_save_areas): Use "&~" instead of
3163 AND_COMPL_HARD_REG_SET.
3164 (save_call_clobbered_regs): Likewise.
3165 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3166 Likewise.
3167 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3168 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3169 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
3170 * config/mips/mips.c (mips_class_max_nregs): Likewise.
3171 (mips_conditional_register_usage): Likewise.
3172 * config/sh/sh.c (output_stack_adjust): Likewise.
3173 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
3174 (setup_profitable_hard_regs): Likewise.
3175 (get_conflict_and_start_profitable_regs): Likewise.
3176 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3177 (ira_build_conflicts): Likewise.
3178 * ira-costs.c (restrict_cost_classes): Likewise.
3179 (setup_regno_cost_classes_by_aclass): Likewise.
3180 * ira-lives.c (process_bb_node_lives): Likewise.
3181 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
3182 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
3183 (setup_allocno_and_important_classes, setup_class_translate_array)
3184 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
3185 Likewise.
3186 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3187 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3188 (process_alt_operands, inherit_in_ebb): Likewise.
3189 * lra-eliminations.c (update_reg_eliminate): Likewise.
3190 * lra-lives.c (process_bb_lives): Likewise.
3191 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
3192 * resource.c (find_dead_or_set_registers): Likewise.
3193 (mark_target_live_regs): Likewise.
3194 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
3195 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3196 (implicit_clobber_conflict_p): Likewise.
3197 * shrink-wrap.c (requires_stack_frame_p): Likewise.
3198 (try_shrink_wrapping): Likewise.
3199
3200 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3201
3202 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
3203 (HARD_REG_SET::operator|=): Likewise.
3204 (IOR_HARD_REG_SET): Delete.
3205 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
3206 IOR_HARD_REG_SET.
3207 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3208 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
3209 * final.c (collect_fn_hard_reg_usage): Likewise.
3210 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
3211 * ira-build.c (merge_hard_reg_conflicts): Likewise.
3212 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
3213 (propagate_some_info_from_allocno): Likewise.
3214 (copy_info_to_removed_store_destinations): Likewise.
3215 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
3216 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
3217 (fast_allocation): Likewise.
3218 * ira-conflicts.c (ira_build_conflicts): Likewise.
3219 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
3220 (process_bb_node_lives): Likewise.
3221 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
3222 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3223 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3224 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
3225 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
3226 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
3227 (process_bb_lives): Likewise.
3228 * lra-spills.c (assign_spill_hard_regs): Likewise.
3229 * postreload.c (reload_combine): Likewise.
3230 * reginfo.c (init_reg_sets_1): Likewise.
3231 * regrename.c (merge_overlapping_regs, find_rename_reg)
3232 (merge_chains): Likewise.
3233 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
3234 (find_reload_regs, finish_spills, choose_reload_regs_init)
3235 (emit_reload_insns): Likewise.
3236 * reorg.c (redundant_insn): Likewise.
3237 * resource.c (find_dead_or_set_registers, mark_set_resources)
3238 (mark_target_live_regs): Likewise.
3239 * rtlanal.c (find_all_hard_reg_sets): Likewise.
3240 * sched-deps.c (sched_analyze_insn): Likewise.
3241 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3242 (find_best_reg_for_expr): Likewise.
3243 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3244
3245 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
3248 (HARD_REG_SET::operator&): Likewise.
3249 (AND_HARD_REG_SET): Delete.
3250 * caller-save.c (setup_save_areas): Use "&" instead of
3251 AND_HARD_REG_SET.
3252 (save_call_clobbered_regs): Likewise.
3253 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3254 * config/m32c/m32c.c (reduce_class): Likewise.
3255 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3256 * final.c (get_call_reg_set_usage): Likewise.
3257 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
3258 (setup_left_conflict_sizes_p): Likewise.
3259 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3260 (ira_build_conflicts): Likewise.
3261 * ira-costs.c (restrict_cost_classes): Likewise.
3262 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
3263 (setup_reg_class_relations): Likewise.
3264 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
3265 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
3266 * resource.c (find_dead_or_set_registers): Likewise.
3267 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3268
3269 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3270
3271 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
3272 (COMPL_HARD_REG_SET): Delete.
3273 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
3274 of COMPL_HARD_REG_SET.
3275 (try_rename_operands): Likewise.
3276 * config/sh/sh.c (push_regs): Likewise.
3277 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3278 * lra-constraints.c (contains_reg_p): Likewise.
3279 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
3280
3281 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3282
3283 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
3284 * caller-save.c (save_call_clobbered_regs): Use assignment instead
3285 of COPY_HARD_REG_SET.
3286 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
3287 (epiphany_conditional_register_usage): Likewise.
3288 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3289 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3290 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
3291 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3292 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
3293 * config/mips/mips.c (mips_class_max_nregs): Likewise.
3294 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
3295 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3296 * config/sh/sh.c (output_stack_adjust): Likewise.
3297 * final.c (collect_fn_hard_reg_usage): Likewise.
3298 (get_call_reg_set_usage): Likewise.
3299 * ira-build.c (ira_create_object, remove_low_level_allocnos)
3300 (ira_flattening): Likewise.
3301 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
3302 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
3303 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
3304 (ira_reassign_pseudos): Likewise.
3305 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3306 (ira_build_conflicts): Likewise.
3307 * ira-costs.c (restrict_cost_classes): Likewise.
3308 (setup_regno_cost_classes_by_aclass): Likewise.
3309 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
3310 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
3311 (setup_stack_reg_pressure_class, setup_pressure_classes)
3312 (setup_allocno_and_important_classes, setup_class_translate_array)
3313 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
3314 (ira_setup_eliminable_regset): Likewise.
3315 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3316 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3317 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3318 (process_alt_operands, inherit_in_ebb): Likewise.
3319 * lra-lives.c (process_bb_lives): Likewise.
3320 * lra-spills.c (assign_spill_hard_regs): Likewise.
3321 * lra.c (lra): Likewise.
3322 * mode-switching.c (new_seginfo): Likewise.
3323 * postreload.c (reload_combine): Likewise.
3324 * reg-stack.c (straighten_stack): Likewise.
3325 * reginfo.c (save_register_info, restore_register_info): Likewise.
3326 (init_reg_sets_1, record_subregs_of_mode): Likewise
3327 * regrename.c (create_new_chain, rename_chains): Likewise.
3328 * reload1.c (order_regs_for_reload, find_reg): Likewise.
3329 (find_reload_regs): Likewise.
3330 * resource.c (find_dead_or_set_registers): Likewise.
3331 (mark_target_live_regs): Likewise.
3332 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3333
3334 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3335
3336 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
3337 (note_pattern_stores): Declare.
3338 (note_stores): Take an rtx_insn *.
3339 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
3340 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
3341 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
3342 (note_stores): Take an rtx_insn * as argument and process
3343 CALL_INSN_FUNCTION_USAGE. Rename old function to...
3344 (note_pattern_stores): ...this.
3345 (find_first_parameter_load): Pass the insn rather than
3346 its pattern to note_stores.
3347 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
3348 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
3349 (insert_one_insn): Likewise.
3350 * combine.c (combine_instructions): Likewise.
3351 (likely_spilled_retval_p): Likewise.
3352 (try_combine): Use note_pattern_stores instead of note_stores.
3353 (record_dead_and_set_regs): Pass the insn rather than its pattern
3354 to note_stores.
3355 (reg_dead_at_p): Likewise.
3356 * config/bfin/bfin.c (workaround_speculation): Likewise.
3357 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
3358 rather than an rtx.
3359 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
3360 instead of note_stores.
3361 (frv_optimize_membar_local): Pass the insn rather than its pattern
3362 to note_stores.
3363 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3364 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
3365 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
3366 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
3367 (mips_reorg_process_insns): Likewise.
3368 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
3369 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
3370 rather than rtxes.
3371 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
3372 its pattern to note_stores.
3373 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3374 of note_stores.
3375 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3376 the insn to note_stores.
3377 (prescan_insns_for_dce): Update call accordingly.
3378 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3379 to note_stores.
3380 * df-problems.c (can_move_insns_across): Likewise.
3381 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3382 * function.c (assign_parm_setup_reg): Likewise.
3383 * gcse-common.c (record_last_mem_set_info_common): Likewise.
3384 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3385 (single_set_gcse): Likewise.
3386 * ira.c (validate_equiv_mem): Likewise.
3387 (update_equiv_regs): Use note_pattern_stores rather than note_stores
3388 for no_equiv.
3389 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3390 pattern to note_stores.
3391 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3392 * loop-iv.c (simplify_using_initial_values): Likewise.
3393 * mode-switching.c (optimize_mode_switching): Likewise.
3394 * optabs.c (emit_libcall_block_1): Likewise.
3395 (expand_atomic_compare_and_swap): Likewise.
3396 * postreload-gcse.c (load_killed_in_block_p): Likewise.
3397 (record_opr_changes): Likewise. Remove explicit handling of
3398 CALL_INSN_FUNCTION_USAGE.
3399 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3400 * regcprop.c (kill_clobbered_values): Likewise.
3401 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3402 to note_stores.
3403 * regrename.c (build_def_use): Likewise.
3404 * reload1.c (reload): Use note_pattern_stores instead of note_stores
3405 for mark_not_eliminable.
3406 (reload_as_needed): Pass the insn rather than its pattern
3407 to note_stores.
3408 (emit_output_reload_insns): Likewise.
3409 * resource.c (mark_target_live_regs): Likewise.
3410 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3411 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3412 instead of note_stores.
3413 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3414 its pattern to note_stores.
3415 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3416 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3417
3418 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3419
3420 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3421 than a #define. Use a structure rather than an array as the
3422 fallback definition. Remove special cases for low array sizes.
3423 (const_hard_reg_set): New typedef.
3424 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3425 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3426 (hard_reg_set_empty_p): Likewise.
3427 (SET_HARD_REG_BIT): Use a function rather than a macro to
3428 handle the case in which HARD_REG_SET is a structure.
3429 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3430 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3431 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3432 (IOR_COMPL_HARD_REG_SET): Likewise.
3433 (hard_reg_set_iterator::pset): Constify the pointer target.
3434 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3435 of a "const HARD_REG_SET". Update the handling of non-integer
3436 HARD_REG_SETs.
3437 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3438 * reload.h: Likewise.
3439 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3440 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3441 of a "const HARD_REG_SET".
3442 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3443 (range_in_hard_reg_set_p): Likewise.
3444 * ira-costs.c (restrict_cost_classes): Likewise.
3445 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3446 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3447 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3448 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3449 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3450 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3451 take an unsigned int and open-code the HARD_REG_SET operations.
3452
3453 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3454
3455 * Makefile.in (OBJS): Remove bt-load.o.
3456 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3457 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3458 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3459 document that the option no longer does anything.
3460 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3461 * target.def (branch_target_register_class): Delete.
3462 (branch_target_register_callee_saved): Likewise.
3463 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3464 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3465 * doc/tm.texi: Regenerate.
3466 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3467 (make_pass_branch_target_load_optimize2): Likewise.
3468 * passes.def (pass_branch_target_load_optimize1): Likewise.
3469 (pass_branch_target_load_optimize2): Likewise.
3470 * targhooks.h (default_branch_target_register_class): Likewise.
3471 * targhooks.c (default_branch_target_register_class): Likewise.
3472 * opt-suggestions.c (test_completion_valid_options): Remove
3473 -fbtr-bb-exclusive from the list of test options.
3474 * bt-load.c: Remove.
3475
3476 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3477
3478 * match.pd: Add flag_unsafe_math_optimizations check
3479 before deciding on the widest type in a binary math operation.
3480
3481 2019-09-09 Martin Liska <mliska@suse.cz>
3482
3483 * config/i386/i386.opt: Update comment of removed
3484 options that are preserved only for backward
3485 compatibility.
3486
3487 2019-09-09 Jakub Jelinek <jakub@redhat.com>
3488
3489 PR target/87853
3490 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3491 instead of __v16qs.
3492
3493 PR target/91704
3494 * config/i386/avxintrin.h (__v32qs): New typedef.
3495 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3496 instead of __v32qi.
3497
3498 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3499
3500 * doc/invoke.texi (Option Summary): Cover eBPF.
3501 (eBPF Options): New section.
3502 * doc/extend.texi (BPF Built-in Functions): Likewise.
3503 (BPF Kernel Helpers): Likewise.
3504
3505 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3506
3507 * config.gcc: Support for bpf-*-* targets.
3508 * common/config/bpf/bpf-common.c: New file.
3509 * config/bpf/t-bpf: Likewise.
3510 * config/bpf/predicates.md: Likewise.
3511 * config/bpf/constraints.md: Likewise.
3512 * config/bpf/bpf.opt: Likewise.
3513 * config/bpf/bpf.md: Likewise.
3514 * config/bpf/bpf.h: Likewise.
3515 * config/bpf/bpf.c: Likewise.
3516 * config/bpf/bpf-protos.h: Likewise.
3517 * config/bpf/bpf-opts.h: Likewise.
3518 * config/bpf/bpf-helpers.h: Likewise.
3519 * config/bpf/bpf-helpers.def: Likewise.
3520
3521 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3522
3523 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3524 indirect_calls.
3525
3526 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3527
3528 * opt-functions.awk (integer_range_info): Make sure values are in
3529 numeric context before operating with them.
3530
3531 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
3532
3533 * genemit.c (gen_split): Print the filename and line number where the
3534 splitter (or peephole2) was defined, to the dump file.
3535
3536 2019-09-07 Jakub Jelinek <jakub@redhat.com>
3537
3538 PR tree-optimization/91665
3539 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3540 incompatible with the type of PHI result.
3541
3542 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3543
3544 PR target/91684
3545 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3546 gen_unaligned_storedi for 4-byte aligned addresses.
3547
3548 2019-09-06 Jim Wilson <jimw@sifive.com>
3549
3550 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3551 change.
3552
3553 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3554
3555 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3556
3557 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3558
3559 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3560 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3561
3562 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
3563
3564 PR target/91654
3565 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3566 cost of SSE->integer and integer->SSE moves from 2 to 6.
3567 (core_cost): Ditto.
3568
3569 2019-09-06 Jakub Jelinek <jakub@redhat.com>
3570
3571 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3572 before testing TYPE_TRANSPARENT_AGGR.
3573 * calls.c (initialize_argument_information, load_register_parameters):
3574 Likewise.
3575
3576 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
3577
3578 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3579 high regs.
3580 (cmp_ior): Likewise.
3581
3582 2019-09-06 Martin Liska <mliska@suse.cz>
3583
3584 * doc/match-and-simplify.texi: Separate tuples with ;.
3585
3586 2019-09-06 Martin Liska <mliska@suse.cz>
3587
3588 PR c++/91125
3589 * Makefile.in: Remove tlink.o.
3590 * collect2.c (do_link): New function isolated
3591 from do_tlink.
3592 (main): Use.
3593 * collect2.h (do_tlink): Remove declaration of do_tlink.
3594 * doc/extend.texi: Remove documentation of -frepo.
3595 * doc/invoke.texi: Likewise.
3596 * doc/sourcebuild.texi: Remove cleanup-repo-files.
3597 * tlink.c: Remove.
3598
3599 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3600 Jim Wilson <jimw@sifive.com>
3601
3602 PR target/91635
3603 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
3604 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
3605 paradoxical_subreg_p (operands[0]).
3606 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
3607 use as intermediate value.
3608
3609 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
3610
3611 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
3612 (sync_compare_and_swap<mode>_insn): Likewise.
3613
3614 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3615
3616 PR middle-end/91615
3617 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
3618 without movmisalign optab.
3619
3620 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3621
3622 PR middle-end/91001
3623 PR middle-end/91105
3624 PR middle-end/91106
3625 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
3626 types, use type of their first field instead of type of
3627 args[i].tree_value.
3628
3629 2019-09-05 Richard Biener <rguenther@suse.de>
3630
3631 PR rtl-optimization/91656
3632 * postreload-gcse.c (record_last_mem_set_info): Revert addition
3633 of early out.
3634
3635 2019-09-05 Richard Biener <rguenther@suse.de>
3636
3637 PR middle-end/90501
3638 * tree-inline.c (declare_return_variable): Mark the return
3639 slot as addressable after building an address of it.
3640
3641 2019-09-05 Arnaud Charlet <charlet@adacore.com>
3642
3643 * doc/install.texi: Update and clarify requirements to build GNAT.
3644
3645 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
3646
3647 PR middle-end/91577
3648 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
3649 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
3650 call to be in memory.
3651 (pass_expand::execute): Call discover_nonconstant_array_refs before
3652 setting currently_expanding_to_rtl.
3653
3654 2019-09-04 Caroline Tice <cmtice@google.com>
3655
3656 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
3657 specified together.
3658
3659 2019-09-04 Marek Polacek <polacek@redhat.com>
3660
3661 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
3662
3663 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
3664
3665 PR target/32413
3666 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3667 for QI and HImode moves between SSE and general registers.
3668
3669 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3670
3671 PR c/78736
3672 * doc/invoke.texi: Document -Wenum-conversion.
3673
3674 2019-09-04 Richard Biener <rguenther@suse.de>
3675
3676 PR rtl-optimization/36262
3677 * postreload-gcse.c: Include intl.h and gcse.h.
3678 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
3679 to avoid linear list walk.
3680 (record_last_mem_set_info): Gate off if not computing transparentness.
3681 (get_bb_avail_insn): If transparentness isn't computed give up
3682 early.
3683 (gcse_after_reload_main): Skip compute_transp and extended PRE
3684 if gcse_or_cprop_is_too_expensive says so.
3685
3686 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3687
3688 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
3689 noinit section.
3690 (msp430_select_section): Handle decls with the "noinit" attribute with
3691 default_elf_select_section.
3692 Handle SECCAT_RODATA_MERGE_* section types with
3693 default_elf_select_section.
3694 Add comments about handling of unsupported section types.
3695 (msp430_section_type_flags): Remove handling of the noinit section.
3696
3697 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3698
3699 * config/msp430/msp430.c (msp430_attr): Remove warnings about
3700 conflicting msp430-specific attributes.
3701 (msp430_section_attr): Likewise.
3702 Add warnings about conflicts with generic "noinit" and "section"
3703 attributes.
3704 Fix grammar in -mlarge error message.
3705 (msp430_data_attr): Rename to msp430_persist_attr.
3706 Add warnings about conflicts with generic "noinit" and "section"
3707 attributes.
3708 Add warning for when variable is not initialized.
3709 Chain conditionals which prevent the attribute being added.
3710 (ATTR_EXCL): New helper.
3711 (attr_reent_exclusions): New exclusion table.
3712 (attr_naked_exclusions): Likewise.
3713 (attr_crit_exclusions): Likewise.
3714 (attr_lower_exclusions): Likewise.
3715 (attr_upper_exclusions): Likewise.
3716 (attr_either_exclusions): Likewise.
3717 (attr_persist_exclusions): Likewise.
3718 (msp430_attribute_table): Update with exclusion rules.
3719 (msp430_output_aligned_decl_common): Don't output common symbol if decl
3720 has a section.
3721
3722 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3723
3724 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
3725 (msp430_handle_generic_attribute): New function.
3726 * doc/tm.texi: Regenerate.
3727 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
3728 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3729 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3730 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
3731
3732 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
3733
3734 PR tree-optimization/91504
3735 * match.pd: Add ((~a & b) ^a) --> (a | b).
3736
3737 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3738
3739 PR target/91604
3740 * config/i386/i386-expand.c (split_double_mode): If there is more than
3741 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
3742 already split matching MEM operand instead of calling adjust_address
3743 again.
3744
3745 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3746
3747 * config.gcc: Obsolete spu target. Remove references to spu.
3748 * configure.ac: Remove references to spu.
3749 * configure: Regenerate.
3750 * config/spu/: Remove directory.
3751 * common/config/spu/: Remove directory.
3752
3753 * doc/extend.texi: Remove references to spu.
3754 * doc/invoke.texi: Likewise.
3755 * doc/md.texi: Likewise.
3756 * doc/sourcebuild.texi: Likewise.
3757
3758 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3759
3760 PR middle-end/91603
3761 PR middle-end/91612
3762 PR middle-end/91613
3763 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
3764 and SSA_NAME referring to CONSTANT_P correctly.
3765
3766 2019-09-03 Richard Biener <rguenther@suse.de>
3767
3768 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
3769 (vn_nary_op_insert): Likewise.
3770 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
3771 (vn_nary_op_lookup): Likewise.
3772 (vn_nary_op_insert): Likewise.
3773
3774 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
3775
3776 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
3777 (*op0, 1) instead of XEXP (*op1, 0).
3778
3779 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3780
3781 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
3782 (aarch64_fjcvtzs): New define_insn.
3783 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
3784 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
3785 Add AARCH64_JSCVT.
3786 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
3787 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
3788 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3789 __ARM_FEATURE_JCVT where appropriate.
3790 * config/aarch64/arm_acle.h (__jcvt): Define.
3791
3792 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3793
3794 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
3795 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
3796 (aarch64_<frintnzs_op><mode>): New define_insn.
3797 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
3798 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3799 __ARM_FEATURE_FRINT when appropriate.
3800 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
3801 frint32x, frint64z, frint64x.
3802 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
3803 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
3804 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
3805 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
3806 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
3807 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
3808 * config/aarch64/iterators.md (VSFDF): Define.
3809 (FRINTNZX): Likewise.
3810 (frintnzs_op): Likewise.
3811
3812 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
3813
3814 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
3815 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
3816 Cortex-A34.
3817 * config/aarch64/aarch64-tune.md: Regenerated.
3818 * doc/invoke.texi: Document the new processors.
3819
3820 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3821
3822 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
3823 string.
3824 (ssbs): Likewise.
3825 (sve2): Likewise.
3826 (sve2-sm4): Likewise.
3827 (sveaes): Likewise.
3828 (svesha3): Likewise.
3829 (svebitperm): Likewise.
3830
3831 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3832 Richard Biener <rguenther@suse.de>
3833
3834 PR tree-optimization/91597
3835 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
3836 BIT_AND_EXPR optimization for pointers, even if both operand
3837 ranges don't include NULL, the result can be NULL.
3838
3839 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3840
3841 PR middle-end/91605
3842 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
3843 (non_mem_decl_p): ...this.
3844 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
3845 (expand_assignment): Call mem_ref_referes_to_non_mem_p
3846 unconditionally as before.
3847
3848 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3849
3850 PR target/91323
3851 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
3852 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
3853 * tree.def (LTGT_EXPR): Likewise.
3854 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
3855
3856 2019-09-02 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR go/91617
3859 * fold-const.c (range_check_type): For enumeral and boolean
3860 type, pass 1 to type_for_size langhook instead of
3861 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
3862 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
3863 (build_range_check): Don't call unsigned_type_for for pointer types.
3864 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
3865 range_check_type result.
3866
3867 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3868
3869 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
3870 (replace_ref): Do not replace a chain of only two candidates which are
3871 valid memory references.
3872
3873 2019-09-02 Martin Liska <mliska@suse.cz>
3874
3875 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3876 Bail out when we'll end up with the same number of clusters as
3877 at the beginning.
3878 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
3879 (jump_table_cluster::can_be_handled): Remove the guard
3880 as it's already handled in ::is_enabled. Allocate output
3881 after early bail out.
3882
3883 2019-09-02 Martin Liska <mliska@suse.cz>
3884
3885 PR gcov-profile/91601
3886 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
3887 (path_contains_zero_or_negative_cycle_arc): ... this and handle
3888 also negative edges.
3889 (circuit): Handle also negative edges as they can happen
3890 in some situations.
3891
3892 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
3893
3894 PR target/91472
3895 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
3896 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
3897 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
3898
3899 2019-09-01 Jakub Jelinek <jakub@redhat.com>
3900
3901 PR middle-end/91623
3902 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
3903 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
3904 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
3905 zero vector.
3906
3907 PR lto/91572
3908 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
3909 GIMPLE_ASM TREE_LIST operands.
3910
3911 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3912
3913 * doc/generic.texi (Unary and Binary Expressions): Mark up
3914 an instance of TYPE_MIN.
3915
3916 2019-08-31 Stafford Horne <shorne@gmail.com>
3917
3918 * config/or1k/constraints.md (t): New constraint.
3919 * config/or1k/or1k.h (GOT_REGS): New register class.
3920 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
3921
3922 2019-08-30 Jim Wilson <jimw@sifive.com>
3923
3924 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
3925 and -fpic and -mplt then disable -msave-restore and warn.
3926
3927 2019-08-30 Martin Sebor <msebor@redhat.com>
3928
3929 PR middle-end/91599
3930 * tree-ssa-strlen.c (handle_store): Use a fallback location if
3931 the statement doesn't have one.
3932 * gimple-pretty-print.c (percent_G_format): Same.
3933
3934 PR middle-end/91584
3935 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
3936 before using them to validate MEM_REF offset.
3937
3938 2019-08-30 Marek Polacek <polacek@redhat.com>
3939
3940 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
3941
3942 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3943
3944 * config/arm/arm.md (unaligned_loaddi,
3945 unaligned_storedi): New unspec insn patterns.
3946 * config/arm/neon.md (unaligned_storev8qi): Likewise.
3947 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
3948 and unaligned_storedi for 4-byte aligned memory.
3949 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
3950 4-byte aligned memory.
3951
3952 2019-08-30 Martin Jambor <mjambor@suse.cz>
3953
3954 tree-optimization/91579
3955 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
3956 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
3957 appropriate.
3958 (arg_needs_copy_p): Removed.
3959 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
3960 arg_needs_copy_p.
3961 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
3962
3963 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3964
3965 * config/i386/i386-features.c
3966 (general_scalar_chain::compute_convert_gain):
3967 Correct cost for double-word shifts.
3968 (general_scalar_to_vector_candidate_p): Reject count operands
3969 greater or equal to mode bitsize.
3970
3971 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3972
3973 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3974 for moves between SSE and non-general registers and between
3975 mask and non-general registers.
3976 (ix86_register_move_cost): Remove stalled comment.
3977
3978 2019-08-29 Richard Biener <rguenther@suse.de>
3979
3980 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3981 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
3982
3983 2019-08-29 Richard Biener <rguenther@suse.de>
3984
3985 PR bootstrap/91580
3986 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3987 Do not emit scalar copies for debug-insns, instead replace
3988 their uses with the reg copy used in the chain or reset them
3989 if there is a reaching definition outside of the chain as well.
3990
3991 2019-08-29 Jakub Jelinek <jakub@redhat.com>
3992
3993 PR target/91560
3994 * config/i386/i386-expand.c (expand_vec_perm_movs,
3995 expand_vec_perm_blend, expand_vec_perm_vpermil,
3996 expand_vec_perm_pshufb, expand_vec_perm_1,
3997 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
3998 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
3999 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
4000 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
4001 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
4002 comments - replace ix86_expand_vec_perm_builtin_1 with
4003 ix86_expand_vec_perm_const_1.
4004 (expand_vec_perm2_vperm2f128_vblend): New function.
4005 (ix86_expand_vec_perm_const_1): New forward declaration. Call
4006 expand_vec_perm2_vperm2f128_vblend as last resort.
4007 (canonicalize_perm): Formatting fix.
4008
4009 PR tree-optimization/91351
4010 * tree-cfg.c (generate_range_test): Use range_check_type instead of
4011 unsigned_type_for.
4012 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
4013 range_check_type returns NULL.
4014 * tree-switch-conversion.c (switch_conversion::build_one_array):
4015 Use range_check_type instead of unsigned_type_for, don't perform
4016 linear opt if it returns NULL.
4017 (bit_test_cluster::find_bit_tests): Formatting fix.
4018 (bit_test_cluster::emit): Use range_check_type instead of
4019 unsigned_type_for.
4020 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
4021 returns NULL.
4022
4023 2019-08-29 Richard Biener <rguenther@suse.de>
4024
4025 PR tree-optimization/91568
4026 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
4027 (vect_update_max_nunits): Add overload for poly_uint64.
4028 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
4029 (vect_build_slp_tree): Record max_nunits into the subtree
4030 and merge it upwards.
4031 (vect_print_slp_tree): Print max_nunits.
4032
4033 2019-08-28 Marek Polacek <polacek@redhat.com>
4034
4035 Implement P1152R4: Deprecating some uses of volatile.
4036 PR c++/91361
4037 * doc/invoke.texi: Document -Wvolatile.
4038
4039 2019-08-28 Marek Polacek <polacek@redhat.com>
4040
4041 PR c++/91360 - Implement C++20 P1143R2: constinit.
4042 * doc/invoke.texi: Document -Wc++20-compat.
4043
4044 2019-08-28 Martin Sebor <msebor@redhat.com>
4045
4046 PR tree-optimization/91457
4047 * builtins.c (component_size): New function.
4048 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
4049 * builtins.h (compute_objsize): Add argument.
4050 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
4051 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
4052 (vrp_prop::check_mem_ref): Same.
4053 (vrp_prop::search_for_addr_array): Set no-warning bit.
4054 (check_array_bounds): Same.
4055
4056 2019-08-28 Martin Sebor <msebor@redhat.com>
4057
4058 PR driver/80545
4059 * opts-common.c (option_enabled): Correct checking for language
4060 options.
4061
4062 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
4063
4064 * config/i386/i386.c (ix86_register_move_cost): Do not
4065 limit the cost of moves to/from XMM register to minimum 8.
4066
4067 2019-08-28 Martin Jambor <mjambor@suse.cz>
4068
4069 PR ipa/91468
4070 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
4071 checking assert a normal assert to test it really is redundant.
4072 * ipa-prop.c (compute_complex_assign_jump_func): Removed
4073 redundant test.
4074 (update_jump_functions_after_inlining): Removed combining unary
4075 arithmetic operations with an ancestor jump function.
4076 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
4077 instead of t.
4078
4079 2019-08-28 Richard Biener <rguenther@suse.de>
4080
4081 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
4082 add the MD problem.
4083
4084 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4085 Richard Biener <rguenther@suse.de>
4086
4087 * expr.c (expand_assignment): Handle misaligned DECLs.
4088 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
4089 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
4090 too.
4091 (assign_parm_setup_stack): Allocate properly aligned stack slots.
4092 * varasm.c (build_constant_desc): Align constants of misaligned types.
4093 * config/arm/predicates.md (aligned_operand): New predicate.
4094 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
4095 aligned_operand to check restrictions on memory addresses.
4096 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
4097 * config/arm/vec-common.md (mov<VALL>): Likewise.
4098
4099 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4100
4101 PR libgomp/91530
4102 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
4103 V_128 iterator instead of VI_128.
4104
4105 2019-08-28 Martin Liska <mliska@suse.cz>
4106
4107 PR tree-optimization/90970
4108 * builtins.c (check_access): Remove assignment to maxread
4109 as it hasn't been used since when it was introduced in r255755.
4110
4111 2019-08-27 Martin Sebor <msebor@redhat.com>
4112
4113 PR tree-optimization/91567
4114 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
4115 of unknown strings.
4116 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
4117 to PTRDIFF_MAX - 2.
4118
4119 2019-08-27 Jeff Law <law@redhat.com>
4120
4121 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
4122 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
4123
4124 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
4125
4126 PR target/91528
4127 * config/i386/i386-features.c (convert_scalars_to_vector):
4128 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
4129 crtl->stack_realign_processed. Update crtl->drap_reg by calling
4130 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
4131 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
4132
4133 2019-08-27 Richard Biener <rguenther@suse.de>
4134
4135 * config/i386/i386-features.h
4136 (general_scalar_chain::~general_scalar_chain): Add.
4137 (general_scalar_chain::insns_conv): New bitmap.
4138 (general_scalar_chain::n_sse_to_integer): New.
4139 (general_scalar_chain::n_integer_to_sse): Likewise.
4140 (general_scalar_chain::make_vector_copies): Adjust signature.
4141 * config/i386/i386-features.c
4142 (general_scalar_chain::general_scalar_chain): Outline,
4143 initialize new members.
4144 (general_scalar_chain::~general_scalar_chain): New.
4145 (general_scalar_chain::mark_dual_mode_def): Record insns
4146 we need to insert conversions at and count them.
4147 (general_scalar_chain::compute_convert_gain): Account
4148 for conversion instructions at chain boundary.
4149 (general_scalar_chain::make_vector_copies): Generate a single
4150 copy for a def by a specific insn.
4151 (general_scalar_chain::convert_registers): First populate
4152 defs_map, then make copies at out-of chain insns.
4153
4154 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
4155
4156 * config/arm/arm.md (stack_protect_set_insn): Add security-related
4157 comment.
4158 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
4159
4160 2019-08-27 Martin Liska <mliska@suse.cz>
4161
4162 * cgraph.c (cgraph_node::remove): Remove dead assignment before
4163 loop.
4164 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
4165 Enclose in anonymous namespace.
4166 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
4167 hard_register initialization in braces.
4168 * tree-vrp.h (value_range_base::supports_type_p): Return false
4169 for function with boolean return type.
4170
4171 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
4172
4173 * config/i386/i386.c (emit_i387_cw_initialization)
4174 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
4175
4176 2019-08-26 Martin Sebor <msebor@redhat.com>
4177
4178 PR c++/83431
4179 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
4180 (sprintf_dom_walker): Remove class.
4181 (get_int_range): Make argument const.
4182 (directive::fmtfunc, directive::set_precision): Same.
4183 (format_none): Same.
4184 (build_intmax_type_nodes): Same.
4185 (adjust_range_for_overflow): Same.
4186 (format_floating): Same.
4187 (format_character): Same.
4188 (format_string): Same.
4189 (format_plain): Same.
4190 (get_int_range): Cast away constness.
4191 (format_integer): Same.
4192 (get_string_length): Call get_range_strlen_dynamic. Handle
4193 null lendata.maxbound.
4194 (should_warn_p): Adjust argument scope qualifier.
4195 (maybe_warn): Same.
4196 (format_directive): Same.
4197 (parse_directive): Same.
4198 (is_call_safe): Same.
4199 (try_substitute_return_value): Same.
4200 (sprintf_dom_walker::handle_printf_call): Rename...
4201 (handle_printf_call): ...to this. Initialize target to host charmap
4202 here instead of in pass_sprintf_length::execute.
4203 (struct call_info): Make global.
4204 (sprintf_dom_walker::compute_format_length): Make global.
4205 (sprintf_dom_walker::handle_gimple_call): Same.
4206 * passes.def (pass_sprintf_length): Replace with pass_strlen.
4207 * print-rtl.c (print_pattern): Reduce the number of spaces to
4208 avoid -Wformat-truncation.
4209 * tree-pass.h (make_pass_warn_printf): New function.
4210 * tree-ssa-strlen.c (strlen_optimize): New variable.
4211 (get_string_length): Add comments.
4212 (get_range_strlen_dynamic): New function.
4213 (check_and_optimize_call): New function.
4214 (handle_integral_assign): New function.
4215 (strlen_check_and_optimize_stmt): Factor code out into
4216 strlen_check_and_optimize_call and handle_integral_assign.
4217 (strlen_dom_walker::evrp): New member.
4218 (strlen_dom_walker::before_dom_children): Use evrp member.
4219 (strlen_dom_walker::after_dom_children): Use evrp member.
4220 (printf_strlen_execute): New function.
4221 (pass_strlen::gate): Update to handle printf calls.
4222 (dump_strlen_info): New function.
4223 (pass_data_warn_printf): New variable.
4224 (pass_warn_printf): New class.
4225 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
4226 (handle_printf_call): Same.
4227 * tree-vrp.c (value_range_base::type): Adjust assertion.
4228 * vr-values.c (vr_values::update_value_range): Use type of the first
4229 argument rather than the second.
4230
4231 2019-08-26 Richard Biener <rguenther@suse.de>
4232
4233 * config/i386/i386-features.c (general_remove_non_convertible_regs):
4234 Remove.
4235 (convert_scalars_to_vector): Do not call it.
4236
4237 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4238 Uros Bizjak <ubizjak@gmail.com>
4239
4240 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
4241 CASE_MATHFN_FLOATN for roundeven.
4242 * config/i386/i386.c (ix86_i387_mode_needed): Add case
4243 I387_ROUNDEVEN.
4244 (ix86_mode_needed): Likewise.
4245 (ix86_mode_after): Likewise.
4246 (ix86_mode_entry): Likewise.
4247 (ix86_mode_exit): Likewise.
4248 (ix86_emit_mode_set): Likewise.
4249 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
4250 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
4251 (ix86_entity): Add I387_ROUNDEVEN.
4252 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
4253 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
4254 (define_int_iterator): Likewise.
4255 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
4256 (define_constant): Define ROUND_ROUNDEVEN mode.
4257 (define_attr): Add roundeven mode for i387_cw.
4258 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
4259 * internal-fn.def (ROUNDEVEN): New builtin function.
4260 * optabs.def (roundeven_optab): New optab.
4261
4262 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4263
4264 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
4265 for ROUNDEVEN.
4266 * builtins.def: Added function definitions for roundeven function
4267 variants.
4268 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
4269 function call. Adjust condition for floor, ceil, trunc and round.
4270 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
4271 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
4272 (integer_valued_real_call_p): Added case for roundeven function.
4273 * real.c (is_even): New function. Returns true if real number is even,
4274 otherwise returns false.
4275 (is_halfway_below): New function. Returns true if real number is
4276 halfway between two integers, else return false.
4277 (real_roundeven): New function. Round real number to nearest integer,
4278 rounding halfway cases towards even.
4279 * real.h (real_value): Added descriptive comments. Added function
4280 declaration for roundeven function.
4281 * doc/extend.texi (Other Builtins): List roundeven variants among
4282 functions which can be handled as builtins.
4283
4284 2019-08-26 Richard Biener <rguenther@suse.de>
4285
4286 PR target/91522
4287 PR target/91527
4288 * config/i386/i386-features.h (general_scalar_chain::defs_map):
4289 New member.
4290 (general_scalar_chain::replace_with_subreg): Remove.
4291 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4292 (general_scalar_chain::convert_reg): Adjust signature.
4293 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
4294 iterate over all defs of a reg.
4295 (general_scalar_chain::replace_with_subreg): Remove.
4296 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4297 (general_scalar_chain::make_vector_copies): Populate defs_map,
4298 place copy only after defs that are used as vectors in the chain.
4299 (general_scalar_chain::convert_reg): Emit a copy for a specific
4300 def in a specific instruction.
4301 (general_scalar_chain::convert_op): All reg uses are converted here.
4302 (general_scalar_chain::convert_insn): Emit copies for scalar
4303 uses of defs here. Replace uses with the copies we created.
4304 Replace and convert the def. Adjust REG_DEAD notes, remove
4305 REG_EQUIV/EQUAL notes.
4306 (general_scalar_chain::convert_registers): Only handle copies
4307 into the chain here.
4308
4309 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4310
4311 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
4312
4313 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4314
4315 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
4316 Add nop_convert case.
4317 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
4318 Fold all statements if requested.
4319 * tree-ssa-propagate.h (class substitute_and_fold_engine):
4320 Allow to fold all statements.
4321 * tree-vrp.c (class vrp_folder):
4322 Let substitute_and_fold_engine fold all statements.
4323
4324 2019-08-26 Richard Biener <rguenther@suse.de>
4325
4326 PR tree-optimization/91526
4327 * passes.def: Note that after late FRE we do TODO_update_address_taken.
4328 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
4329 TODO_update_address_taken.
4330
4331 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
4332
4333 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
4334 __STDC_HOSTED__.
4335
4336 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4337
4338 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
4339 machine mode for unspec_volatile operand.
4340
4341 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4342
4343 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
4344 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
4345 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
4346 (prefer_neon_for_64bits): Remove.
4347 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
4348 (tune_params): Remove PREF_NEON_64_FALSE uses.
4349 (arm_option_override): Remove prefer_neon selection code.
4350 (arm_print_tune_info): Remove prefer_neon_for_64bits.
4351 * gcc/config/arm/arm-protos.h (tune_params): Remove
4352 prefer_neon_for_64bits.
4353 (prefer_neon_for_64bits): Remove.
4354
4355 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
4356
4357 PR pch/61250
4358 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
4359 and issue any diagnostics needed before collecting the pre-PCH
4360 state.
4361
4362 2019-08-23 Jakub Jelinek <jakub@redhat.com>
4363
4364 PR middle-end/91283
4365 * common.opt (fexcess-precision=): Add Optimization flag. Use
4366 flag_excess_precision variable instead of
4367 flag_excess_precision_cmdline.
4368 * flags.h (class target_flag_state): Remove x_flag_excess_precision
4369 member.
4370 (flag_excess_precision): Don't define.
4371 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
4372 flag_excess_precision_cmdline. Remove comment.
4373 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4374 and x_flag_excess_precision instead of
4375 frontend_set_flag_excess_precision_cmdline and
4376 x_flag_excess_precision_cmdline.
4377 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4378 x_flag_excess_precision_cmdline.
4379 * toplev.c (init_excess_precision): Remove.
4380 (lang_dependent_init_target): Don't call it.
4381
4382 2019-08-23 Martin Liska <mliska@suse.cz>
4383
4384 * lto-wrapper.c (run_gcc): When setting jobserver
4385 set also parallel to 1. This was done so before r273908.
4386
4387 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
4388
4389 * config/arm/arm-cpus.in (cortex-m35p): New entry.
4390 (cortex-a76ae): Likewise.
4391 (cortex-a77): Likewise
4392 * config/arm/arm-tables.opt: Regenerate.
4393 * config/arm/arm-tune.md: Likewise.
4394 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4395 cortex-a77 CPU options.
4396
4397 2019-08-23 Martin Liska <mliska@suse.cz>
4398
4399 * profile.c (instrument_values): Do not set
4400 0 as last argument.
4401 * tree-profile.c (gimple_gen_interval_profiler): Remove
4402 last argument.
4403 (gimple_gen_pow2_profiler): Likewise.
4404 (gimple_gen_topn_values_profiler): Likewise.
4405 (gimple_gen_ic_profiler): Likewise.
4406 (gimple_gen_time_profiler): Likewise.
4407 (gimple_gen_average_profiler): Likewise.
4408 (gimple_gen_ior_profiler): Likewise.
4409 * value-prof.c (dump_histogram_value): Use default
4410 in switch statement instead of HIST_TYPE_MAX.
4411 (stream_in_histogram_value): Likewise.
4412 (gimple_duplicate_stmt_histograms): Do not
4413 use NULL for implicitly set arguments.
4414 (gimple_divmod_values_to_profile): Do not use
4415 reserve+quick_push.
4416 (gimple_indirect_call_to_profile): Likewise.
4417 (gimple_find_values_to_profile): Use implicit
4418 function call arguments.
4419 * value-prof.h (gimple_alloc_histogram_value):
4420 Set default values.
4421 (gimple_gen_interval_profiler): Remove last argument.
4422 (gimple_gen_pow2_profiler): Likewise.
4423 (gimple_gen_topn_values_profiler): Likewise.
4424 (gimple_gen_ic_profiler): Likewise.
4425 (gimple_gen_time_profiler): Likewise.
4426 (gimple_gen_average_profiler): Likewise.
4427 (gimple_gen_ior_profiler): Likewise.
4428
4429 2019-08-22 Martin Sebor <msebor@redhat.com>
4430
4431 PR middle-end/91490
4432 * builtins.c (c_strlen): Rename argument and introduce new local.
4433 Set no-warning bit on original argument.
4434 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4435 Fold empty and zero constructors into empty strings.
4436 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4437 for missing initializers.
4438 * tree.c (build_string_literal): Handle optional argument.
4439 * tree.h (build_string_literal): Add defaulted argument.
4440 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4441 no-warning bit on original expression.
4442
4443 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4444
4445 PR target/91481
4446 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4447 and UNSPEC_DARN_RAW.
4448 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4449 UNSPECV_DARN_RAW.
4450 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4451 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4452 (darn): Use an unspec_volatile, and UNSPECV_DARN.
4453
4454 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4455
4456 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4457 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4458 * config/rs6000/rs6000.md (unspec): ... here.
4459 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4460 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4461 cmpeqb, *cmpeqb_internal): Delete, move to...
4462 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4463 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4464 cmpeqb, *cmpeqb_internal): ... here.
4465
4466 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4467
4468 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4469 intrinsics if __ARM_FP.
4470 Use __ARM_FEATURE_CRC32 ifdef guard.
4471
4472 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4473
4474 * config/arm/arm.md (neon_for_64bits): Remove.
4475 (avoid_neon_for_64bits): Remove.
4476 (arm_adddi3): Always split early.
4477 (arm_subdi3): Always split early.
4478 (negdi2): Remove Neon expansion.
4479 (split zero_extend): Split before reload.
4480 (split sign_extend): Split before reload.
4481
4482 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4483
4484 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4485 (qhs_extenddi_cstr): Likewise.
4486 * config/arm/arm.md (ashldi3): Always expand early.
4487 (ashlsi3): Likewise.
4488 (ashrsi3): Likewise.
4489 (zero_extend<mode>di2): Remove Neon variants.
4490 (extend<mode>di2): Likewise.
4491 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4492 (signed_shift_di3_neon): Likewise.
4493 (unsigned_shift_di3_neon): Likewise.
4494 (ashrdi3_neon_imm_noclobber): Likewise.
4495 (lshrdi3_neon_imm_noclobber): Likewise.
4496 (<shift>di3_neon): Likewise.
4497 (split extend): Remove DI extend split patterns.
4498
4499 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4500
4501 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4502 (split not): Add DImode not splitter.
4503 (anddi3): Remove pattern.
4504 (anddi3_insn): Likewise.
4505 (anddi_zesidi_di): Likewise.
4506 (anddi_sesdi_di): Likewise.
4507 (anddi_notdi_di): Likewise.
4508 (anddi_notzesidi_di): Likewise.
4509 (anddi_notsesidi_di): Likewise.
4510 (iordi3): Likewise.
4511 (iordi3_insn): Likewise.
4512 (iordi_zesidi_di): Likewise.
4513 (iordi_sesidi_di): Likewise.
4514 (xordi3): Likewise.
4515 (xordi3_insn): Likewise.
4516 (xordi_sesidi_di): Likewise.
4517 (xordi_zesidi_di): Likewise.
4518 (one_cmpldi2): Likewise.
4519 (one_cmpldi2_insn): Likewise.
4520 * config/arm/constraints.md: Remove De, Df, Dg constraints.
4521 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4522 alternative.
4523 (iwmmxt_xordi3): Likewise.
4524 (iwmmxt_anddi3): Likewise.
4525 * config/arm/neon.md (orndi3_neon): Remove pattern.
4526 (anddi_notdi_di): Likewise.
4527 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4528 (arm_iordi_operand_neon): Likewise.
4529 (arm_xordi_operand_neon): Likewise.
4530 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4531 (iordi_notzesidi_di): Likewise.
4532 (iordi_notdi_zesidi): Likewise.
4533 (iordi_notsesidi_di): Likewise.
4534
4535 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
4536
4537 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4538 insn.
4539 (iorsi3_compare0_scratch): Likewise.
4540
4541 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
4542
4543 * config/aarch64/aarch64-simd-builtins.def:
4544 (ld1x4): New.
4545 (st1x4): Likewise.
4546 * config/aarch64/aarch64-simd.md:
4547 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4548 (aarch64_st1x4<VALLDIF:mode>): Likewise.
4549 (aarch64_ld1_x4_<mode>): Likewise.
4550 (aarch64_st1_x4_<mode>): Likewise.
4551 * config/aarch64/arm_neon.h:
4552 (vld1_s8_x4): New function.
4553 (vld1q_s8_x4): Likewise.
4554 (vld1_s16_x4): Likewise.
4555 (vld1q_s16_x4): Likewise.
4556 (vld1_s32_x4): Likewise.
4557 (vld1q_s32_x4): Likewise.
4558 (vld1_u8_x4): Likewise.
4559 (vld1q_u8_x4): Likewise.
4560 (vld1_u16_x4): Likewise.
4561 (vld1q_u16_x4): Likewise.
4562 (vld1_u32_x4): Likewise.
4563 (vld1q_u32_x4): Likewise.
4564 (vld1_f16_x4): Likewise.
4565 (vld1q_f16_x4): Likewise.
4566 (vld1_f32_x4): Likewise.
4567 (vld1q_f32_x4): Likewise.
4568 (vld1_p8_x4): Likewise.
4569 (vld1q_p8_x4): Likewise.
4570 (vld1_p16_x4): Likewise.
4571 (vld1q_p16_x4): Likewise.
4572 (vld1_s64_x4): Likewise.
4573 (vld1_u64_x4): Likewise.
4574 (vld1_p64_x4): Likewise.
4575 (vld1q_s64_x4): Likewise.
4576 (vld1q_u64_x4): Likewise.
4577 (vld1q_p64_x4): Likewise.
4578 (vld1_f64_x4): Likewise.
4579 (vld1q_f64_x4): Likewise.
4580 (vst1_s8_x4): Likewise.
4581 (vst1q_s8_x4): Likewise.
4582 (vst1_s16_x4): Likewise.
4583 (vst1q_s16_x4): Likewise.
4584 (vst1_s32_x4): Likewise.
4585 (vst1q_s32_x4): Likewise.
4586 (vst1_u8_x4): Likewise.
4587 (vst1q_u8_x4): Likewise.
4588 (vst1_u16_x4): Likewise.
4589 (vst1q_u16_x4): Likewise.
4590 (vst1_u32_x4): Likewise.
4591 (vst1q_u32_x4): Likewise.
4592 (vst1_f16_x4): Likewise.
4593 (vst1q_f16_x4): Likewise.
4594 (vst1_f32_x4): Likewise.
4595 (vst1q_f32_x4): Likewise.
4596 (vst1_p8_x4): Likewise.
4597 (vst1q_p8_x4): Likewise.
4598 (vst1_p16_x4): Likewise.
4599 (vst1q_p16_x4): Likewise.
4600 (vst1_s64_x4): Likewise.
4601 (vst1_u64_x4): Likewise.
4602 (vst1_p64_x4): Likewise.
4603 (vst1q_s64_x4): Likewise.
4604 (vst1q_u64_x4): Likewise.
4605 (vst1q_p64_x4): Likewise.
4606 (vst1_f64_x4): Likewise.
4607 (vst1q_f64_x4): Likewise.
4608
4609 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4610
4611 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
4612
4613 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4614 Richard Sandiford <richard.sandiford@arm.com>
4615
4616 PR target/88839
4617 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
4618 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
4619
4620 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4621
4622 PR target/90724
4623 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
4624 in reg if it fails aarch64_plus_operand predicate.
4625
4626 2019-08-21 Richard Biener <rguenther@suse.de>
4627
4628 PR tree-optimization/91482
4629 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
4630 BUILT_IN_ASSUME_ALIGNED calls.
4631
4632 2019-08-21 Richard Biener <rguenther@suse.de>
4633
4634 PR target/91498
4635 PR target/91503
4636 * config/i386/i386-features.c
4637 (general_scalar_chain::make_vector_copies): Copy stack temporary
4638 rtx when using it multiple times.
4639 (general_scalar_chain::convert_reg): Likewise.
4640
4641 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4642
4643 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
4644
4645 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
4646
4647 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
4648 catch more redundant zero initialization cases.
4649 (dse_dom_walker::dse_optimize_stmt): Likewise.
4650
4651 2019-08-20 Richard Biener <rguenther@suse.de>
4652
4653 PR lto/91307
4654 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
4655 by collect2 when targetm.have_ctors_dtors which avoids dragging
4656 in temporary filenames from LTO input objects.
4657
4658 2019-08-20 Richard Biener <rguenther@suse.de>
4659
4660 PR tree-optimization/37242
4661 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
4662 to (T)a + (T)b if we know that a + b does not overflow.
4663
4664 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
4665
4666 PR rtl-optimization/91347
4667 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
4668 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
4669
4670 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4671
4672 * calls.h (function_arg_info): Add a pass_by_reference field,
4673 defaulting to false.
4674 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
4675 when applying pass-by-reference semantics.
4676 (initialize_argument_information): Likewise.
4677 (emit_library_call_value_1): Likewise.
4678 * function.c (assign_parm_data_one): Remove passed_pointer field.
4679 (assign_parm_find_data_types): Don't set it.
4680 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
4681 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
4682 arg.pass_by_reference instead of passed_pointer.
4683
4684 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4685
4686 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
4687 into a single function_arg_info, updating its fields when we
4688 apply pass-by-reference and promotion semantics. Use the
4689 function_arg_info to track the mode rather than keeping it in
4690 a separate local variable.
4691 (initialize_argument_information): Likewise. Base the final
4692 arg_to_skip on this new function_arg_info rather than creating
4693 a new one from scratch.
4694
4695 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4696
4697 * function.c (assign_parm_data_one): Replace passed_type,
4698 promoted_mode and named_arg with a function_arg_info field.
4699 (assign_parm_find_data_types): Remove local variables and
4700 assign directly to "data". Make data->passed_mode shadow
4701 data->arg.mode until promotion, then assign the promoted
4702 mode to data->arg.mode.
4703 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
4704 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
4705 (assign_parm_remove_parallels, assign_parm_setup_block_p)
4706 (assign_parm_setup_block, assign_parm_setup_reg)
4707 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
4708 arg.mode instead of promoted_mode, arg.type instead of passed_type
4709 and arg.named instead of named_arg. Use data->arg for
4710 function_arg_info structures that had the field values passed_type,
4711 promoted_mode and named_arg. Base other function_arg_infos on
4712 data->arg, changing the necessary properties.
4713
4714 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4715
4716 * calls.h (apply_pass_by_reference_rules): Declare.
4717 * calls.c (apply_pass_by_reference_rules): New function.
4718 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
4719 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
4720 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4721 * function.c (assign_parm_find_data_types): Likewise.
4722 * var-tracking.c (prepare_call_arguments): Likewise.
4723
4724 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4725
4726 * target.def (must_pass_in_stack): Take a function_arg_info instead
4727 of a mode and a type.
4728 * doc/tm.texi: Regenerate.
4729 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
4730 instead of a mode and a type.
4731 (must_pass_in_stack_var_size_or_pad): Likewise.
4732 * calls.c (must_pass_in_stack_var_size): Likewise.
4733 (must_pass_in_stack_var_size_or_pad): Likewise.
4734 (initialize_argument_information): Update call to
4735 targetm.calls.must_pass_in_stack.
4736 (must_pass_va_arg_on_stack): Likewise.
4737 * function.c (assign_parm_find_entry_rtl): Likewise.
4738 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
4739 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4740 (alpha_function_arg_advance): Likewise.
4741 * config/cr16/cr16.c (cr16_function_arg): Likewise.
4742 (cr16_function_arg_advance): Likewise.
4743 * config/cris/cris.c (cris_pass_by_reference): Likewise.
4744 (cris_arg_partial_bytes): Likewise.
4745 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4746 * config/lm32/lm32.c (lm32_function_arg): Likewise.
4747 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
4748 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
4749 * config/mips/mips.c (mips_pass_by_reference): Likewise.
4750 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
4751 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
4752 * config/sh/sh.c (sh_pass_by_reference): Likewise.
4753 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4754 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4755 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
4756 instead of a mode and a type.
4757 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
4758 (fr30_num_arg_regs): Likewise.
4759 (fr30_setup_incoming_varargs): Update calls accordingly.
4760 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4761 (fr30_function_arg_advance): Likewise.
4762 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
4763 instead of a mode and a type.
4764 * config/gcn/gcn.c (num_arg_regs): Likewise.
4765 (gcn_function_arg, gcn_function_arg_advance): Update calls to
4766 num_arg_regs and targetm.calls.must_pass_in_stack.
4767 (gcn_arg_partial_bytes): Likewise.
4768 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
4769 function_arg_info instead of a mode and a type.
4770 (classify_argument): Update call accordingly.
4771 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
4772 function_arg_info instead of a mode and a type.
4773 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
4774 Likewise.
4775 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
4776 (rs6000_parm_needs_stack): Update call accordingly.
4777 (setup_incoming_varargs): Likewise.
4778
4779 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4780
4781 * target.def (callee_copies): Take a function_arg_info instead
4782 of a mode, type and named flag.
4783 * doc/tm.texi: Regenerate.
4784 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
4785 instead of a mode, type and named flag.
4786 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4787 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4788 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4789 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
4790 instead of a mode, type and named flag.
4791 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4792 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4793 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4794 * calls.h (reference_callee_copied): Take a function_arg_info
4795 instead of a mode, type and named flag.
4796 * calls.c (reference_callee_copied): Likewise.
4797 (initialize_argument_information): Update call accordingly.
4798 (emit_library_call_value_1): Likewise.
4799 * function.c (gimplify_parameters): Likewise.
4800 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
4801 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
4802 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
4803 * config/c6x/c6x.c (c6x_callee_copies): Delete.
4804 (TARGET_CALLEE_COPIES): Define to
4805 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4806 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
4807 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4808 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4809 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
4810 instead of a mode, type and named flag.
4811 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
4812 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4813 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4814 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
4815 * config/msp430/msp430.c (msp430_callee_copies): Delete.
4816 (TARGET_CALLEE_COPIES): Define to
4817 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4818 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
4819 instead of a mode, type and named flag.
4820 * config/sh/sh.c (sh_callee_copies): Likewise.
4821 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
4822 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4823 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4824
4825 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4826
4827 * target.def (function_arg_advance): Take a function_arg_info instead
4828 of a mode, type and named flag.
4829 * doc/tm.texi: Regenerate.
4830 * targhooks.h (default_function_arg_advance): Take a function_arg_info
4831 instead of a mode, type and named flag.
4832 * targhooks.c (default_function_arg_advance): Likewise.
4833 * calls.c (initialize_argument_information): Update call to
4834 targetm.calls.function_arg_advance.
4835 (emit_library_call_value_1): Likewise.
4836 * dse.c (get_call_args): Likewise.
4837 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4838 * function.c (assign_parms, gimplify_parameters): Likewise.
4839 * var-tracking.c (prepare_call_arguments): Likewise.
4840 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
4841 function_arg_info instead of a mode, type and named flag.
4842 (aarch64_setup_incoming_varargs): Update call accordingly.
4843 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
4844 function_arg_info instead of a mode, type and named flag.
4845 (alpha_setup_incoming_varargs): Update call accordingly.
4846 * config/arc/arc.c (arc_function_arg_advance): Take a
4847 function_arg_info instead of a mode, type and named flag.
4848 (arc_setup_incoming_varargs): Update call accordingly.
4849 * config/arm/arm.c (arm_function_arg_advance): Take a
4850 function_arg_info instead of a mode, type and named flag.
4851 (cmse_func_args_or_return_in_stack): Update call accordingly.
4852 (arm_function_ok_for_sibcall): Likewise.
4853 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4854 * config/avr/avr.c (avr_function_arg_advance): Take a
4855 function_arg_info instead of a mode, type and named flag.
4856 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
4857 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
4858 (c6x_call_saved_register_used): Update call accordingly.
4859 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
4860 function_arg_info instead of a mode, type and named flag.
4861 * config/cris/cris.c (cris_function_arg_advance): Likewise.
4862 * config/csky/csky.c (csky_function_arg_advance): Likewise.
4863 (csky_setup_incoming_varargs): Update call accordingly.
4864 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
4865 function_arg_info instead of a mode, type and named flag.
4866 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
4867 * config/frv/frv.c (frv_function_arg_advance): Likewise.
4868 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
4869 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
4870 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
4871 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4872 (ix86_setup_incoming_varargs): Update call accordingly.
4873 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
4874 function_arg_info instead of a mode, type and named flag.
4875 (ia64_setup_incoming_varargs): Update call accordingly.
4876 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
4877 function_arg_info instead of a mode, type and named flag.
4878 (iq2000_expand_prologue): Update call accordingly.
4879 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
4880 function_arg_info instead of a mode, type and named flag.
4881 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
4882 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
4883 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4884 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
4885 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4886 Likewise.
4887 (microblaze_expand_prologue): Update call accordingly.
4888 * config/mips/mips.c (mips_function_arg_advance): Take a
4889 function_arg_info instead of a mode, type and named flag.
4890 (mips_setup_incoming_varargs): Update call accordingly.
4891 (mips_output_args_xfer): Likewise.
4892 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
4893 function_arg_info instead of a mode, type and named flag.
4894 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
4895 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
4896 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
4897 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
4898 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
4899 (nios2_setup_incoming_varargs): Update call accordingly.
4900 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
4901 function_arg_info instead of a mode, type and named flag.
4902 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
4903 * config/pa/pa.c (pa_function_arg_advance): Likewise.
4904 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
4905 * config/pru/pru.c (pru_function_arg_advance): Likewise.
4906 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
4907 (riscv_setup_incoming_varargs): Update call accordingly.
4908 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
4909 function_arg_info instead of a mode, type and named flag.
4910 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
4911 Likewise.
4912 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
4913 (rs6000_parm_needs_stack): Update call accordingly.
4914 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
4915 instead of a mode, type and named flag.
4916 * config/s390/s390.c (s390_function_arg_advance): Likewise.
4917 (s390_call_saved_register_used): Update call accordingly.
4918 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
4919 instead of a mode, type and named flag.
4920 (sh_output_mi_thunk): Update call accordingly.
4921 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
4922 function_arg_info instead of a mode, type and named flag.
4923 * config/spu/spu.c (spu_function_arg_advance): Likewise.
4924 (spu_setup_incoming_varargs): Update call accordingly.
4925 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
4926 function_arg_info instead of a mode, type and named flag.
4927 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
4928 (tilegx_setup_incoming_varargs): Update call accordingly.
4929 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
4930 function_arg_info instead of a mode, type and named flag.
4931 (tilegx_setup_incoming_varargs): Update call accordingly.
4932 * config/v850/v850.c (v850_function_arg_advance): Take a
4933 function_arg_info instead of a mode, type and named flag.
4934 * config/vax/vax.c (vax_function_arg_advance): Likewise.
4935 * config/visium/visium.c (visium_function_arg_advance): Likewise.
4936 (visium_setup_incoming_varargs): Update call accordingly.
4937 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
4938 function_arg_info instead of a mode, type and named flag.
4939
4940 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4941
4942 * target.def (function_arg, function_incoming_arg): Take a
4943 function_arg_info instead of a mode, tree and named flag.
4944 * doc/tm.texi: Regenerate.
4945 * targhooks.h (default_function_arg): Take a function_arg_info
4946 instead of a mode, tree and named flag.
4947 (default_function_incoming_arg): Likewise.
4948 * targhooks.c (default_function_arg): Likewise.
4949 (default_function_incoming_arg): Likewise.
4950 * calls.h (function_arg_info::end_marker_p): New function.
4951 (function_arg_info::end_marker): Likewise.
4952 * calls.c (prepare_call_address, initialize_argument_information)
4953 (expand_call, emit_library_call_value_1): Update calls to
4954 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
4955 * dse.c: Include calls.h.
4956 (get_call_args): Update call to targetm.calls.function_arg.
4957 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4958 * var-tracking.c (prepare_call_arguments): Likewise.
4959 * function.c (assign_parm_find_entry_rtl): Update call to
4960 targetm.calls.function_incoming_arg.
4961 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
4962 function_arg_info instead of a mode, tree and named flag.
4963 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4964 * config/arc/arc.c (arc_function_arg): Likewise.
4965 * config/arm/arm.c (arm_function_arg): Likewise.
4966 (cmse_func_args_or_return_in_stack): Update call accordingly.
4967 (arm_function_ok_for_sibcall): Likewise.
4968 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4969 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
4970 instead of a mode, tree and named flag.
4971 * config/bfin/bfin.c (bfin_function_arg): Likewise.
4972 * config/c6x/c6x.c (c6x_function_arg): Likewise.
4973 (c6x_call_saved_register_used): Update call accordingly.
4974 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
4975 instead of a mode, tree and named flag.
4976 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
4977 (cris_function_arg_1): Likewise.
4978 * config/csky/csky.c (csky_function_arg): Likewise.
4979 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
4980 * config/fr30/fr30.c (fr30_function_arg): Likewise.
4981 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
4982 (frv_function_arg_1): Likewise.
4983 * config/ft32/ft32.c (ft32_function_arg): Likewise.
4984 * config/gcn/gcn.c (gcn_function_arg): Likewise.
4985 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4986 * config/i386/i386.c (ix86_function_arg): Likewise.
4987 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
4988 (ia64_function_arg_1): Likewise.
4989 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
4990 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
4991 accordingly.
4992 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
4993 instead of a mode, tree and named flag.
4994 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4995 * config/m32r/m32r.c (m32r_function_arg): Likewise.
4996 * config/m68k/m68k.c (m68k_function_arg): Likewise.
4997 * config/mcore/mcore.c (mcore_function_arg): Likewise.
4998 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
4999 (microblaze_expand_prologue): Update call accordingly.
5000 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
5001 instead of a mode, tree and named flag.
5002 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
5003 (mmix_function_arg_1): Likewise.
5004 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
5005 * config/moxie/moxie.c (moxie_function_arg): Likewise.
5006 * config/msp430/msp430.c (msp430_function_arg): Likewise.
5007 * config/nds32/nds32.c (nds32_function_arg): Likewise.
5008 * config/nios2/nios2.c (nios2_function_arg): Likewise.
5009 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
5010 (nvptx_function_incoming_arg): Likewise.
5011 * config/or1k/or1k.c (or1k_function_arg): Likewise.
5012 * config/pa/pa.c (pa_function_arg): Likewise.
5013 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5014 * config/pru/pru.c (pru_function_arg): Likewise.
5015 * config/riscv/riscv.c (riscv_function_arg): Likewise.
5016 * config/rl78/rl78.c (rl78_function_arg): Likewise.
5017 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
5018 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
5019 (rs6000_parm_needs_stack): Update call accordingly.
5020 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
5021 instead of a mode, tree and named flag.
5022 * config/s390/s390.c (s390_function_arg): Likewise.
5023 (s390_call_saved_register_used): Update call accordingly.
5024 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
5025 instead of a mode, tree and named flag.
5026 (sh_output_mi_thunk): Update call accordingly.
5027 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
5028 (sparc_function_incoming_arg): Take a function_arg_info instead of
5029 a mode, tree and named flag.
5030 * config/spu/spu.c (spu_function_arg): Likewise.
5031 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5032 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
5033 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
5034 * config/v850/v850.c (v850_function_arg): Likewise.
5035 * config/vax/vax.c (vax_function_arg): Likewise.
5036 * config/visium/visium.c (visium_function_arg): Likewise.
5037 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
5038 (xtensa_function_incoming_arg): Likewise.
5039
5040 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5041
5042 * target.def (setup_incoming_varargs): Take a function_arg_info
5043 instead of a mode and tree.
5044 * doc/tm.texi: Regenerate.
5045 * targhooks.h (default_setup_incoming_varargs): Take a
5046 function_arg_info instead of a mode and tree.
5047 * targhooks.c (default_setup_incoming_varargs): Likewise.
5048 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
5049 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
5050 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5051 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
5052 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
5053 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5054 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
5055 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
5056 Likewise.
5057 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5058 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5059 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
5060 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5061 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5062 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5063 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5064 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5065 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5066 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
5067 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5068 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5069 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
5070 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
5071 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
5072 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
5073 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
5074 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5075 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
5076 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
5077 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
5078 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5079 * function.c (assign_parms_setup_varargs): Update call to
5080 targetm.calls.setup_incoming_varargs.
5081
5082 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5083
5084 * target.def (pass_by_reference): Take a function_arg_info instead
5085 of a mode, type and named flag.
5086 * doc/tm.texi: Regenerate.
5087 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
5088 accordingly.
5089 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
5090 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
5091 function_arg_info instead of a mode, type and named flag.
5092 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
5093 * calls.h (pass_by_reference): Take a function_arg_info instead of a
5094 mode, type and named flag.
5095 * calls.c (pass_by_reference): Likewise.
5096 (pass_va_arg_by_reference): Update call accordingly.
5097 (initialize_argument_information): Likewise.
5098 (emit_library_call_value_1): Likewise.
5099 * function.c (assign_parm_find_data_types): Likewise.
5100 * var-tracking.c (prepare_call_arguments): Likewise.
5101 * stor-layout.c: Include calls.h.
5102 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
5103 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
5104 function_arg_info instead of a mode, type and named flag.
5105 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
5106 * config/arc/arc.c (arc_pass_by_reference): Likewise.
5107 * config/arm/arm.c (arm_pass_by_reference): Likewise.
5108 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
5109 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
5110 (c6x_call_saved_register_used): Update call to pass_by_reference.
5111 * config/cris/cris.c (cris_pass_by_reference): Take a
5112 function_arg_info instead of a mode, type and named flag.
5113 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
5114 function_arg_info instead of a mode, type and named flag.
5115 (epiphany_arg_partial_bytes): Update call accordingly.
5116 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
5117 function_arg_info instead of a mode, type and named flag.
5118 (ft32_arg_partial_bytes): Update call accordingly.
5119 * config/i386/i386.c (ix86_pass_by_reference): Take a
5120 function_arg_info instead of a mode, type and named flag.
5121 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5122 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
5123 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
5124 (m32r_return_in_memory): Update call accordingly.
5125 * config/mips/mips.c (mips_pass_by_reference): Take a
5126 function_arg_info instead of a mode, type and named flag.
5127 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
5128 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5129 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
5130 (moxie_arg_partial_bytes): Update call accordingly.
5131 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
5132 function_arg_info instead of a mode, type and named flag.
5133 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
5134 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
5135 * config/pa/pa.c (pa_pass_by_reference): Likewise.
5136 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
5137 (riscv_return_in_memory): Update call accordingly.
5138 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
5139 function_arg_info instead of a mode, type and named flag.
5140 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
5141 (rs6000_parm_needs_stack): Update call to pass_by_reference.
5142 * config/s390/s390.c (s390_pass_by_reference): Take a
5143 function_arg_info instead of a mode, type and named flag.
5144 (s390_call_saved_register_used): Update call accordingly.
5145 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
5146 instead of a mode, type and named flag.
5147 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
5148 * config/spu/spu.c (spu_pass_by_reference): Likewise.
5149 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
5150 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
5151 * config/v850/v850.c (v850_pass_by_reference): Likewise.
5152 * config/visium/visium.c (visium_pass_by_reference): Likewise.
5153
5154 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5155
5156 * target.def (arg_partial_bytes): Take a function_arg_info instead
5157 of a mode, type and named flag.
5158 * doc/tm.texi: Regenerate.
5159 * target.h (function_arg_info): Declare.
5160 * calls.h (function_arg_info): New class.
5161 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5162 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
5163 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5164 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
5165 * calls.c (initialize_argument_information): Update call to
5166 targetm.calls.partial_bytes.
5167 (emit_library_call_value_1): Likewise.
5168 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5169 * function.c (assign_parm_find_entry_rtl): Likewise.
5170 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
5171 function_arg_info instead of a mode, type and named flag.
5172 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
5173 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
5174 (cmse_func_args_or_return_in_stack): Update accordingly.
5175 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
5176 function_arg_info instead of a mode, type and named flag.
5177 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
5178 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
5179 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
5180 * config/fr30/fr30.c: Include calls.h.
5181 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
5182 type and named flag.
5183 * config/frv/frv.c: Include calls.h.
5184 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
5185 type and named flag.
5186 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
5187 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
5188 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
5189 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
5190 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
5191 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
5192 * config/microblaze/microblaze.c (function_arg_partial_bytes):
5193 Likewise.
5194 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
5195 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
5196 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
5197 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
5198 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
5199 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
5200 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
5201 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
5202 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
5203 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
5204 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
5205 (rs6000_parm_needs_stack): Update call accordingly.
5206 * config/sh/sh.c (sh_arg_partial_bytes): Take a
5207 function_arg_info instead of a mode, type and named flag.
5208 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
5209 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
5210
5211 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5212
5213 * calls.h (must_pass_va_arg_in_stack): Declare.
5214 * calls.c (must_pass_va_arg_in_stack): New function.
5215 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
5216 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5217 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
5218 Likewise.
5219 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5220
5221 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5222
5223 * calls.h (pass_va_arg_by_reference): Declare.
5224 * calls.c (pass_va_arg_by_reference): New function.
5225 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
5226 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
5227 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
5228 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5229 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5230 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
5231 (mips_gimplify_va_arg_expr): Likewise.
5232 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
5233 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5234 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
5235 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
5236 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5237 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
5238 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
5239 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
5240 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
5241 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5242 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5243
5244 2019-08-20 Richard Biener <rguenther@suse.de>
5245
5246 PR target/91498
5247 * config/i386/i386-features.c (general_scalar_chain::convert_op):
5248 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
5249 (convert_scalars_to_vector): Add timode_p parameter and use it
5250 to guard TImode-only operation.
5251 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
5252 (pass_stv::execute): Pass down timode_p.
5253
5254 2019-08-20 Lili Cui <lili.cui@intel.com>
5255
5256 * common/config/i386/i386-common.c
5257 (processor_names): Add tigerlake and cooperlake.
5258 (processor_alias_table): Add tigerlake and cooperlake.
5259 * config.gcc: Add -march=tigerlake and cooperlake.
5260 * config/i386/driver-i386.c
5261 (host_detect_local_cpu): Detect tigerlake and cooperlake.
5262 Add "has_avx" to classify processor.
5263 * config/i386/i386-builtins.c (processor_model) :
5264 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
5265 (arch_names_table): Add tigerlake and cooperlake.
5266 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
5267 and PROCESSOR_COOPERLAKE.
5268 * config/i386/i386-c.c
5269 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
5270 * config/i386/i386-options.c
5271 (m_TIGERLAKE) : Define.
5272 (m_COOPERLAKE) : Ditto.
5273 (m_CORE_AVX512): Ditto.
5274 (processor_cost_table): Add cascadelake.
5275 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
5276 * config/i386/i386.h
5277 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
5278 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5279 (PTA_MOVDIRI): Ditto.
5280 (PTA_MOVDIR64B): Ditto.
5281 (PTA_COOPERLAKE) : Ditto.
5282 (PTA_TIGERLAKE) : Ditto.
5283 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5284 * doc/extend.texi: Add tigerlake and cooperlake.
5285 * doc/invoke.texi: Add tigerlake and cooperlake.
5286
5287 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
5288
5289 * doc/install.texi (Specific, alpha): Remove note to use
5290 binutils 2.11.2 or later.
5291
5292 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5293
5294 PR middle-end/89544
5295 * function.c (assign_parm_find_stack_rtl): Use larger alignment
5296 when possible.
5297
5298 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
5299
5300 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
5301 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
5302 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
5303 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
5304 * config/aarch64/constraints.md (Dt): New constraint
5305 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
5306
5307 2019-08-19 Richard Biener <rguenther@suse.de>
5308
5309 PR tree-optimization/91403
5310 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
5311 cases we can handle with tail-recursion...
5312 (follow_ssa_edge_expr): ... here. Do so.
5313
5314 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
5315
5316 PR target/91441
5317 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
5318 implemented for -fsanitize=kernel-address, and merge check logic
5319 with -fsanitize=address.
5320
5321 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
5322
5323 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
5324 for cpu and machine. Factor 64/32b builtins.
5325
5326 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
5327
5328 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
5329 gone, point to sourceforge.net.
5330
5331 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5332
5333 * doc/ux.texi (User Experience Guidelines): Update reference.
5334
5335 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5336
5337 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
5338 not LGPL".
5339
5340 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
5341
5342 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
5343 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
5344
5345 2019-08-16 Martin Sebor <msebor@redhat.com>
5346
5347 * tree.def (TYPE_SIZE): Clarify.
5348 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
5349
5350 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5351
5352 PR tree-optimization/91109
5353 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
5354 * lra.c (lra): Use lra_need_for_scratch_reg_p.
5355 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
5356
5357 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
5358
5359 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
5360 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
5361 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
5362 (uavg<mode>3_ceil): New expander.
5363 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
5364 mode iterator when creating CONST1_RTX.
5365 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
5366 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
5367 mode iterator for const1_operand predicate.
5368
5369 2019-08-16 Richard Biener <rguenther@suse.de>
5370
5371 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
5372 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5373 follow_ssa_edge.
5374 (follow_ssa_edge_in_condition_phi_branch): Likewise.
5375 (analyze_evolution_in_loop): Likewise.
5376 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5377 (follow_ssa_edge_expr): ... here. Refactor code.
5378
5379 2019-08-16 Richard Biener <rguenther@suse.de>
5380
5381 PR target/91469
5382 * config/i386/i386-features.c
5383 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5384
5385 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5386
5387 PR other/91255
5388 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5389 only if subst_name matches curr_attr string.
5390
5391 2019-08-16 Richard Biener <rguenther@suse.de>
5392
5393 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5394 stmt at gsi_p, instead replace it with a NOP removed later.
5395 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5396 that became dead because of that.
5397
5398 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
5399
5400 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5401 for which we can't represent a range.
5402 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5403 set_varying.
5404 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5405 Set VR_UNDEFINED if type is not supported.
5406 * tree-ssanames.c (get_range_info): Pass type to set_varying.
5407 * tree-vrp.c (value_range_base::check): Assert that a varying has
5408 min/max set.
5409 (value_range_base::equal_p): Early bail for undefines.
5410 (value_range_base::set_varying): Accept a type.
5411 (value_range::set_varying): Same.
5412 (value_range_base::type): VARYING can have a type, while UNDEFINE
5413 is typeless.
5414 (value_range_base::dump): Print type for VARYING nodes.
5415 (value_range_base::set): Add type to VARYING.
5416 (extract_range_from_multiplicative_op): Pass type to set_varying.
5417 (extract_range_from_binary_expr): Same.
5418 (value_range_base::intersect_helper): Same.
5419 (value_range_base::union_helper): Same.
5420 (value_range_base::normalize_symbolics): Same.
5421 (determine_value_range_1): Same.
5422 * tree-vrp.h (class value_range_base): Add type to set_varying.
5423 Add prototype for dump(void).
5424 Add prototype for supports_type_p.
5425 (class value_range): Add type to set_varying.
5426 Add prototype for dump(void).
5427 * vr-values.c (set_value_range_to_truthvalue): Pass type to
5428 set_varying.
5429 (vr_values::get_lattice_entry): Set varying even if propagation
5430 finished.
5431 Pass type to set_varying.
5432 (vr_values::get_value_range): Remove vr_const_varying.
5433 Reallocate the lattice if needed.
5434 (vr_values::update_value_range): Pass type to set_varying.
5435 (vr_values::extract_range_for_var_from_comparison_expr): Same.
5436 (vr_values::extract_range_from_binary_expr): Same.
5437 (vr_values::extract_range_from_unary_expr): Same.
5438 (vr_values::extract_range_from_cond_expr): Same.
5439 (vr_values::check_for_binary_op_overflow): Same.
5440 (vr_values::extract_range_basic): Same.
5441 (vr_values::extract_range_from_assignment): Same.
5442 (vr_values::vr_values): Increase size of num_vr_values.
5443 (vr_values::extract_range_from_phi_node): Pass type to
5444 set_varying.
5445
5446 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
5447
5448 PR target/90878
5449 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5450 for costs of hard register moves.
5451 (ix86_register_move_cost): Likewise.
5452 * config/i386/i386.h (processor_costs): Move costs of hard
5453 register moves to hard_register. Add int_load, int_store,
5454 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5455 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5456 for costs of RTL expressions.
5457 * config/i386/x86-tune-costs.h: Move costs of hard register
5458 moves to hard_register. Duplicate int_load, int_store,
5459 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5460 sse_load, sse_store for costs of RTL expressions.
5461
5462 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5463
5464 * target.def (setup_incoming_vararg_bounds): Remove.
5465 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5466 * doc/tm.texi: Regenerate.
5467 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5468 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5469 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5470 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5471
5472 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5473
5474 MSP430: Fix lines over 80 characters long in
5475 config/msp430/*.{c,h} files
5476
5477 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5478 specifier in string.
5479 (msp430_select_hwmult_lib): Split line more than 80 characters long.
5480 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5481 redundant old comment.
5482 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5483 Split line more than 80 characters long.
5484 * config/msp430/msp430.c (msp430_option_override): Likewise.
5485 (msp430_return_in_memory): Likewise.
5486 (msp430_gimplify_va_arg_expr): Likewise.
5487 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5488 (msp430_legitimate_constant): Likewise.
5489 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5490 (msp430_attr): Likewise.
5491 (msp430_data_attr): Likewise.
5492 (msp430_start_function): Likewise.
5493 (gen_prefix): Likewise.
5494 (msp430_init_sections): Likewise.
5495 (msp430_select_section): Likewise.
5496 (msp430_function_section): Likewise.
5497 (msp430_unique_section): Likewise.
5498 (msp430_output_aligned_decl_common): Likewise.
5499 (msp430_do_not_relax_short_jumps): Likewise.
5500 (msp430_init_builtins): Likewise.
5501 (msp430_expand_delay_cycles): Likewise.
5502 (msp430_expand_prologue): Likewise.
5503 (msp430_expand_epilogue): Likewise.
5504 (msp430_expand_helper): Likewise.
5505 (msp430_split_movsi): Likewise.
5506 (msp430_print_operand): Likewise.
5507 (msp430_return_addr_rtx): Likewise.
5508 (msp430x_extendhisi): Likewise.
5509 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5510 (ASM_SPEC): Likewise.
5511 Remove very obvious comments.
5512 (LIB_SPEC): Split line more than 80 characters long.
5513 (EH_RETURN_HANDLER_RTX): Likewise.
5514 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5515
5516 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5517
5518 MSP430: Fix whitespace errors and incorrect indentation in
5519 config/msp430/*.{c,h} files
5520
5521 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5522 (msp430_select_hwmult_lib): Likewise.
5523 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5524 (msp430_extract_mcu_data): Likewise.
5525 (struct t_msp430_mcu_data): Likewise.
5526 * config/msp430/msp430.c (struct machine_function): Remove whitespace
5527 before left square bracket.
5528 (msp430_option_override): Fix indentation.
5529 (msp430_hard_regno_nregs_with_padding): Likewise.
5530 (msp430_initial_elimination_offset): Likewise.
5531 (msp430_special_register_convention_p): Remove whitespace before left
5532 square bracket and after exclamation mark.
5533 (msp430_evaluate_arg): Likewise.
5534 (msp430_callee_copies): Fix indentation.
5535 (msp430_gimplify_va_arg_expr): Likewise.
5536 (msp430_function_arg_advance): Remove whitespace before left square
5537 bracket.
5538 (reg_ok_for_addr): Likewise.
5539 (msp430_preserve_reg_p): Likewise.
5540 (msp430_compute_frame_info): Likewise.
5541 (msp430_asm_output_addr_const_extra): Add space between function name
5542 and open parenthesis.
5543 (has_section_name): Fix indentation.
5544 (msp430_attr): Remove trailing whitespace.
5545 (msp430_section_attr): Likewise.
5546 (msp430_data_attr): Likewise.
5547 (struct msp430_attribute_table): Fix comment and whitespace.
5548 (msp430_start_function): Remove whitespace before left square bracket.
5549 Add space between function name and open parenthesis.
5550 (msp430_select_section): Remove trailing whitespace.
5551 (msp430_section_type_flags): Remove trailing whitespace.
5552 (msp430_unique_section): Remove space before closing parenthesis.
5553 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5554 (msp430_builtins): Remove whitespace before left square bracket.
5555 (msp430_init_builtins): Fix indentation.
5556 (msp430_expand_prologue): Remove whitespace before left square bracket.
5557 Remove space before closing parenthesis.
5558 (msp430_expand_epilogue): Remove whitespace before left square bracket.
5559 (msp430_split_movsi): Remove space before closing parenthesis.
5560 (helper_function_name_mappings): Fix indentation.
5561 (msp430_use_f5_series_hwmult): Fix whitespace.
5562 (use_32bit_hwmult): Likewise.
5563 (msp430_no_hwmult): Likewise.
5564 (msp430_output_labelref): Remove whitespace before left square bracket.
5565 (msp430_print_operand_raw): Likewise.
5566 (msp430_print_operand_addr): Likewise.
5567 (msp430_print_operand): Add two spaces after '.' in comment.
5568 Fix trailing whitespace.
5569 (msp430x_extendhisi): Fix indentation.
5570 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5571 tab.
5572 (PC_REGNUM): Likewise.
5573 (STACK_POINTER_REGNUM): Likewise.
5574 (CC_REGNUM): Likewise.
5575
5576 2019-08-15 Richard Biener <rguenther@suse.de>
5577
5578 PR target/91454
5579 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5580 helper.
5581 (general_scalar_chain::make_vector_copies): Use it.
5582
5583 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5584
5585 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
5586
5587 2019-08-15 Martin Liska <mliska@suse.cz>
5588
5589 * tree-ssa-dce.c (propagate_necessity): We can't reach now
5590 operators with no arguments.
5591 (eliminate_unnecessary_stmts): Likewise here.
5592
5593 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
5594
5595 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
5596 <case COMPARE>: Revert 2019-08-14 change.
5597 (convertible_comparison_p): Revert 2019-08-14 change. Return false
5598 for (TARGET_64BIT || mode != DImode).
5599
5600 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
5601
5602 * tree-vrp.c (value_range_base::set): Merge in code from
5603 value_range_base::set_and_canonicalize.
5604 Enforce canonicalization at set time.
5605 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
5606 (value_range_base::set_undefined): Inline call to set().
5607 (value_range_base::set_varying): Same.
5608 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
5609 (vrp_val_max): New argument handle_pointers.
5610 (vrp_val_min): Same.
5611 (ranges_from_anti_range): Same.
5612 (extract_range_into_wide_ints): Use tree argument instead of sign
5613 and precision.
5614 (extract_range_from_multiplicative_op): Take in tree type instead
5615 of precision and sign. Adapt function for canonicalized ranges.
5616 (extract_range_from_binary_expr): Pass type to
5617 extract_range_from_multiplicative_op.
5618 Adapt for canonicalized ranges.
5619 (extract_range_from_unary_expr): Same.
5620 (value_range_base::intersect_helper): Adjust for canonicalized
5621 ranges.
5622 (value_range_base::union_helper): Same.
5623 (value_range_base::normalize_symbolics): New.
5624 * tree-vrp.h (class value_range_base): Remove
5625 set_and_canonicalize.
5626 New prototype for normalize_symbolics.
5627 (class value_range): Remove set_and_canonicalize.
5628 (vrp_val_min): Adjust prototype.
5629 (vrp_val_max): Same.
5630 * vr-values.c
5631 (vr_values::extract_range_for_var_from_comparison_expr): Call set
5632 instead of set_and_canonicalize.
5633
5634 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5635
5636 PR middle-end/91444
5637 * tree-vect-stmts.c (vectorizable_call): Check that the function
5638 is a BUILT_IN_MD function before passing it to
5639 targetm.vectorize.builtin_md_vectorized_function.
5640
5641 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5642
5643 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
5644 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
5645 (aarch64_select_early_remat_modes): Use it.
5646
5647 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5648
5649 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
5650 16 for SVE predicates even if they are fixed-length.
5651
5652 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5653
5654 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
5655 operand order match the MOV /Z alias.
5656
5657 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5658
5659 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
5660 the vector pattern as an aarch64_svpattern argument. Update the
5661 overloaded caller accordingly.
5662 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
5663 (aarch64_output_sve_vector_inc_dec): Likewise.
5664
5665 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5666
5667 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
5668 multiplication case, try to compute VG * (lowest set bit) directly
5669 rather than always basing the multiplication on VG. Use
5670 expand_mult for the multiplication if we can.
5671
5672 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5673
5674 * config/aarch64/aarch64-protos.h
5675 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
5676 (aarch64_sve_inc_dec_immediate_p): Rename to...
5677 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5678 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
5679 (aarch64_output_sve_scalar_inc_dec): Declare.
5680 (aarch64_output_sve_inc_dec_immediate): Rename to...
5681 (aarch64_output_sve_vector_inc_dec): ...this.
5682 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
5683 (aarch64_output_sve_scalar_inc_dec): New functions.
5684 (aarch64_output_sve_addvl_addpl): Remove the base and offset
5685 arguments. Only handle true ADDVL and ADDPL instructions;
5686 don't emit an INC or DEC.
5687 (aarch64_sve_inc_dec_immediate_p): Rename to...
5688 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5689 (aarch64_output_sve_inc_dec_immediate): Rename to...
5690 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
5691 aarch64_sve_vector_inc_dec_immediate_p.
5692 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
5693 (aarch64_sve_plus_immediate): New predicates.
5694 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
5695 rather than aarch64_sve_addvl_addpl_immediate.
5696 (aarch64_sve_inc_dec_immediate): Rename to...
5697 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
5698 aarch64_sve_vector_inc_dec_immediate_p.
5699 (aarch64_sve_add_operand): Update accordingly.
5700 * config/aarch64/constraints.md (Uai): New constraint.
5701 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
5702 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
5703 operand into a register if it satisfies aarch64_sve_plus_immediate.
5704 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
5705 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
5706 * config/aarch64/aarch64-sve.md (add<mode>3): Call
5707 aarch64_output_sve_vector_inc_dec instead of
5708 aarch64_output_sve_inc_dec_immediate.
5709
5710 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5711
5712 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
5713 (UNSPEC_REVW): New constants.
5714 (elem_bits): New mode attribute.
5715 (SVE_INT_UNARY): New int iterator.
5716 (optab): Handle UNSPEC_REV[BHW].
5717 (sve_int_op): New int attribute.
5718 (min_elem_bits): Handle VNx16QI and the predicate modes.
5719 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
5720 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
5721 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
5722 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
5723 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
5724 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
5725 unspecs based on the total width of the reversed data.
5726 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
5727 reinterpret followed by a subreg on big-endian targets.
5728
5729 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5730 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5731
5732 * config/aarch64/aarch64-sve.md
5733 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
5734 alternatives in which one of the inputs is in the same register
5735 as the output.
5736
5737 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5738
5739 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
5740 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
5741
5742 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5743
5744 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
5745 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
5746
5747 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5748 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5749
5750 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
5751 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
5752 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
5753
5754 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5755 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5756
5757 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
5758 Add an alternative that uses reversed shifts.
5759
5760 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761
5762 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
5763 struct.
5764
5765 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5766
5767 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
5768 a commutativity marker.
5769
5770 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5771 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5772
5773 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
5774 (aarch64_prepare_sve_cond_int_fma): Declare.
5775 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
5776 (aarch64_prepare_sve_int_fma): New functions.
5777 (aarch64_prepare_sve_cond_int_fma): Likewise.
5778 * config/aarch64/aarch64-sve.md
5779 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
5780 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
5781 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
5782 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
5783 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
5784 (*madd<mode>): Rename to...
5785 (*fma<mode>4): ...this.
5786 (*msub<mode>): Rename to...
5787 (*fnma<mode>4): ...this.
5788
5789 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5790 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5791
5792 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
5793 Print 2.0 naturally.
5794 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
5795 * config/aarch64/predicates.md
5796 (aarch64_sve_float_negated_arith_immediate): New predicate,
5797 renamed from aarch64_sve_float_arith_with_sub_immediate.
5798 (aarch64_sve_float_arith_with_sub_immediate): Test for both
5799 positive and negative constants.
5800 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
5801 or an aarch64_sve_float_arith_with_sub_immediate.
5802 * config/aarch64/constraints.md (vsN): Use
5803 aarch64_sve_float_negated_arith_immediate.
5804 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
5805 iterator.
5806 (sve_pred_fp_rhs2_immediate): New int attribute.
5807 * config/aarch64/aarch64-sve.md
5808 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
5809 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
5810 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
5811 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
5812 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
5813 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
5814
5815 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5816 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5817
5818 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
5819 (*aarch64_cond_abd<SVE_F:mode>_3)
5820 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
5821
5822 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5823 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5824
5825 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
5826 (*aarch64_cond_<su>abd<mode>_any): New patterns.
5827
5828 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5829 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5830
5831 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
5832 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
5833 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
5834 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
5835 optabs.
5836 * optabs.h (create_convert_operand_from): Expand comment.
5837 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
5838 when mapping scalar rtxes to vector operands.
5839 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
5840 ashiftrt and lshiftrt.
5841 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
5842 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
5843 (*cond_<optab><mode>_any_const): New patterns.
5844
5845 2019-08-15 Martin Liska <mliska@suse.cz>
5846
5847 PR ipa/91438
5848 * cgraph.c (cgraph_node::remove): When setting
5849 n->origin = NULL for all nested functions, reset
5850 also next_nested.
5851
5852 2019-08-15 Martin Liska <mliska@suse.cz>
5853
5854 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
5855 and next_nested.
5856
5857 2019-08-15 Martin Liska <mliska@suse.cz>
5858
5859 PR ipa/91404
5860 * passes.c (order): Remove.
5861 (uid_hash_t): Likewise).
5862 (remove_cgraph_node_from_order): Remove from set
5863 of pointers (cgraph_node *).
5864 (insert_cgraph_node_to_order): New.
5865 (duplicate_cgraph_node_to_order): New.
5866 (do_per_function_toporder): Register all 3 cgraph hooks.
5867 Skip removed_nodes now as we know about all of them.
5868
5869 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
5870
5871 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
5872 <case E_V8QImode>: Use vector_set path for
5873 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5874 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
5875 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5876
5877 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5878
5879 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
5880
5881 2019-08-14 Martin Sebor <msebor@redhat.com>
5882
5883 PR tree-optimization/91294
5884 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
5885 source length as exact.
5886
5887 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
5888
5889 * doc/extend.texi: Add "noinit" attribute documentation.
5890 * doc/sourcebuild.texi: Add noinit effective target documentation.
5891 * varasm.c (default_section_type_flags): Add support for "noinit"
5892 section.
5893 (default_elf_select_section): Add support for "noinit" attribute.
5894 * config/msp430/msp430.c (msp430_attribute_table): Remove
5895 "noinit" entry.
5896
5897 2019-08-14 Richard Biener <rguenther@suse.de>
5898 Uroš Bizjak <ubizjak@gmail.com>
5899
5900 PR target/91154
5901 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
5902 mode arguments.
5903 (scalar_chain::smode): New member.
5904 (scalar_chain::vmode): Likewise.
5905 (dimode_scalar_chain): Rename to...
5906 (general_scalar_chain): ... this.
5907 (general_scalar_chain::general_scalar_chain): Take mode arguments.
5908 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
5909 base with TImode and V1TImode.
5910 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
5911 (general_scalar_chain::vector_const_cost): Adjust for SImode
5912 chains.
5913 (general_scalar_chain::compute_convert_gain): Likewise. Add
5914 {S,U}{MIN,MAX} support.
5915 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
5916 (general_scalar_chain::make_vector_copies): Likewise. Handle
5917 non-DImode chains appropriately.
5918 (general_scalar_chain::convert_reg): Likewise.
5919 (general_scalar_chain::convert_op): Likewise.
5920 (general_scalar_chain::convert_insn): Likewise. Add
5921 fatal_insn_not_found if the result is not recognized.
5922 (convertible_comparison_p): Pass in the scalar mode and use that.
5923 (general_scalar_to_vector_candidate_p): Likewise. Rename from
5924 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
5925 (scalar_to_vector_candidate_p): Remove by inlining into single
5926 caller.
5927 (general_remove_non_convertible_regs): Rename from
5928 dimode_remove_non_convertible_regs.
5929 (remove_non_convertible_regs): Remove by inlining into single caller.
5930 (convert_scalars_to_vector): Handle SImode and DImode chains
5931 in addition to TImode chains.
5932 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
5933 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
5934 (*<maxmin>di3_doubleword): Likewise.
5935
5936 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5937 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5938
5939 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
5940 (*cond_bic<mode>_any): New patterns.
5941
5942 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5943
5944 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
5945 take the equivalent mask, as well as a bit count.
5946 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
5947 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
5948 (aarch64_sve_pred_and_operand): New predicates.
5949 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
5950 code attribute.
5951 * config/aarch64/aarch64-sve.md
5952 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
5953 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
5954
5955 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5956
5957 * config/aarch64/aarch64-sve.md
5958 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5959 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
5960 New patterns.
5961
5962 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5963 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5964
5965 * config/aarch64/aarch64-sve.md
5966 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
5967 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
5968
5969 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5970 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5971
5972 * config/aarch64/aarch64-sve.md
5973 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
5974 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
5975
5976 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5977
5978 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
5979 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
5980 New pattern.
5981
5982 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5983 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5984
5985 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
5986
5987 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5988 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5989
5990 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
5991 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
5992 (aarch64_print_operand): Add support for %I.
5993 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
5994 Bitcast floating-point constants to the corresponding integer constant.
5995 (aarch64_float_const_representable_p): Handle vectors as well
5996 as scalars.
5997 (aarch64_expand_sve_vcond): Make sure that the operands are valid
5998 for the new vcond_mask_<mode><vpred> expander.
5999 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
6000 test aarch64_float_const_representable_p.
6001 (aarch64_sve_reg_or_dup_imm): New predicate.
6002 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
6003 gen_vcond_mask_<mode><vpred> instead of
6004 gen_aarch64_sve_dup<mode>_const.
6005 (vcond_mask_<mode><vpred>): Turn into a define_expand that
6006 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
6007 for operands 1 and 2 respectively. Force operand 2 into a
6008 register if operand 1 is a register. Fold old define_insn...
6009 (aarch64_sve_dup<mode>_const): ...and this define_insn...
6010 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
6011 floating-point constants that can be moved as integers. Add
6012 alternatives for MOV /M and FMOV /M.
6013 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
6014 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
6015 1 and 2 respectively.
6016 * config/aarch64/constraints.md (Ufc): Handle vectors as well
6017 as scalars.
6018 (vss): New constraint.
6019
6020 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6021
6022 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
6023 (aarch64_sve_float_maxmin_operand): New predicates.
6024 * config/aarch64/constraints.md (vsB): New constraint.
6025 (vsM): Fix typo.
6026 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
6027 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
6028 UNSPEC_COND_FMINNM.
6029 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
6030 Use aarch64_sve_float_maxmin_operand for operand 2.
6031 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
6032 Add alternatives for the constant forms.
6033
6034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6035
6036 * config/aarch64/constraints.md (vsb): New constraint.
6037 (vsm): Generalize description.
6038 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
6039 iterator.
6040 (sve_imm_con): Handle smax, smin, umax and umin.
6041 (sve_imm_prefix): New code attribute.
6042 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
6043 (aarch64_sve_vsb_operand): New predicates.
6044 (aarch64_sve_mul_immediate): Rename to...
6045 (aarch64_sve_vsm_immediate): ...this.
6046 (aarch64_sve_mul_operand): Rename to...
6047 (aarch64_sve_vsm_operand): ...this.
6048 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
6049 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
6050 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
6051 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
6052 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
6053 add movprfx support for the immediate alternatives.
6054 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
6055 of the above.
6056 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
6057 for operand 3.
6058
6059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6060
6061 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
6062 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
6063 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
6064
6065 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6066
6067 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
6068 (optab, sve_int_op): Handle them.
6069 * config/aarch64/aarch64-sve.md: Expand comment.
6070
6071 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6072
6073 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
6074 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
6075 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
6076
6077 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6078
6079 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
6080 (aarch64_expand_sve_const_pred_trn): New functions.
6081 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
6082 use the above functions when the parameter is true.
6083 (aarch64_expand_sve_const_pred): Update call accordingly.
6084 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
6085 Rename to...
6086 (@aarch64_sve_<perm_insn><mode>): ...this.
6087
6088 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6089
6090 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
6091 Declare.
6092 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
6093 (aarch64_sve_emit_int_cmp): New functions.
6094 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
6095 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
6096 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
6097 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
6098 (UNSPEC_PRED_Z): New unspec.
6099 (set_clobber_cc_nzc): Delete.
6100 * config/aarch64/aarch64-sve.md: Add a block comment about
6101 UNSPEC_PRED_Z.
6102 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
6103 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
6104 the old pattern with that name. Use UNSPEC_PRED_Z instead of
6105 UNSPEC_MERGE_PTRUE.
6106 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
6107 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
6108 check for compatible predicates.
6109 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
6110 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
6111 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
6112 comparisons above.
6113
6114 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6115
6116 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
6117 * config/aarch64/aarch64-sve.md: Add a section describing it.
6118 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
6119 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
6120 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
6121 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
6122 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
6123 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
6124 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
6125 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
6126 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
6127 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
6128 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
6129 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
6130 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
6131 (aarch64_evpc_rev_local): Update accordingly.
6132
6133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6134
6135 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
6136 iterators.
6137 (SVE_BHSI, SVE_SDI): Tweak comment.
6138 (SVE_HSDI): Likewise. Fix definition.
6139 (SVE_SDF): New mode iterator.
6140 (elem_bits): New mode attribute.
6141 (SVE_COND_FCVT): New int iterator.
6142 * config/aarch64/aarch64-sve.md
6143 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
6144 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
6145 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
6146 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6147 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6148 ...these new patterns.
6149 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
6150 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
6151 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
6152 Merge into...
6153 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
6154 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
6155 ...these new patterns.
6156 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
6157 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
6158 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
6159 ...this new pattern.
6160 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
6161 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
6162 ...this new pattern.
6163 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
6164
6165 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6166
6167 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
6168 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
6169 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
6170 unspecs.
6171 (optab, su): Handle them.
6172 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
6173 * config/aarch64/aarch64-sve.md
6174 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
6175 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
6176 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
6177 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
6178 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
6179 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
6180 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
6181 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
6182 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
6183 FIXUORS.
6184 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
6185 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
6186 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
6187 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
6188 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
6189 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
6190 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
6191 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
6192 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
6193 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
6194 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
6195 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
6196 of UNSPEC_FLOAT_CONVERT.
6197 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
6198 aarch64_sve_extend<mode><Vwide>2.
6199
6200 2019-08-14 Richard Biener <rguenther@suse.de>
6201
6202 PR target/91154
6203 * config/i386/i386-features.c
6204 (dimode_scalar_chain::compute_convert_gain): Compute and dump
6205 individual instruction gain. Fix reg-reg copy GRP cost. Use
6206 ix86_cost->sse_op for vector instruction costs.
6207
6208 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6209
6210 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
6211 (cmp_op): Handle it.
6212 (SVE_COND_FP_CMP): Rename to...
6213 (SVE_COND_FP_CMP_I0): ...this.
6214 (SVE_FP_CMP): Remove.
6215 * config/aarch64/aarch64-sve.md
6216 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
6217 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
6218 using unspecs to represent the comparison.
6219 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
6220 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
6221 accordingly.
6222 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
6223 (aarch64_unspec_cond_code): Move after integer code. Handle
6224 UNORDERED.
6225 (aarch64_emit_sve_predicated_cond): Replace with...
6226 (aarch64_emit_sve_fp_cond): ...this new function.
6227 (aarch64_emit_sve_or_conds): Replace with...
6228 (aarch64_emit_sve_or_fp_conds): ...this new function.
6229 (aarch64_emit_sve_inverted_cond): Replace with...
6230 (aarch64_emit_sve_invert_fp_cond): ...this new function.
6231 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
6232
6233 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6234
6235 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
6236 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
6237 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
6238 SVE_HSD instead of SVE_SD.
6239
6240 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6241 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6242
6243 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
6244 iterator.
6245 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
6246 attributes.
6247 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
6248 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
6249 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
6250 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
6251 (*div<SVE_F:mode>3): Generalize to...
6252 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
6253
6254 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6255 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6256
6257 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
6258 constants.
6259 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
6260 predicate.
6261 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
6262 Declare.
6263 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
6264 function.
6265 * config/aarch64/aarch64-sve.md: Add a block comment about the
6266 handling of predicated FP operations.
6267 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
6268 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
6269 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6270 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
6271 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
6272 operand.
6273 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
6274 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
6275 operand.
6276 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
6277 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
6278 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
6279 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
6280 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
6281 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6282 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6283 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
6284 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
6285 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
6286 strictness operands. Use aarch64_sve_pred_dominates_p to check
6287 whether the predicate on the conditional operation is suitable
6288 for merging. Split patterns into the canonical equal-predicate form.
6289 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
6290 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
6291
6292 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6293 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6294
6295 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
6296 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
6297 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
6298 rtx codes.
6299 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
6300 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
6301 unspecs.
6302
6303 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6304 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6305
6306 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
6307 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
6308 actually has, rather than relying on REG_EQUAL notes.
6309 Make the insn operand order match the SVE operand order.
6310 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
6311 the SVE operand order.
6312
6313 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6314
6315 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
6316 (aarch64_emit_set_immediate): Likewise.
6317 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
6318 (aarch64_pfalse_reg): Likewise.
6319 (aarch64_convert_sve_data_to_pred): New function.
6320 (aarch64_sve_move_pred_via_while): Take an optional target register
6321 and the required register mode.
6322 (aarch64_expand_sve_const_pred_1): New function.
6323 (aarch64_expand_sve_const_pred): Likewise.
6324 (aarch64_expand_mov_immediate): Build an all-true predicate
6325 if the significant bits of the immediate are all true. Use
6326 aarch64_expand_sve_const_pred for all compile-time predicate constants.
6327 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
6328 before register allocation.
6329 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
6330 a VNx16BI PTRUE when splitting the memory alternative.
6331 (vec_duplicate<mode>): Update accordingly.
6332 (*pred_cmp<cmp_op><mode>): Rename to...
6333 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
6334
6335 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6336
6337 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
6338 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
6339 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
6340 (UNSPEC_PTEST): New unspec.
6341 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
6342 * config/aarch64/iterators.md (data_bytes): New mode attribute.
6343 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
6344 * config/aarch64/aarch64-sve.md: Add a new section describing the
6345 handling of UNSPEC_PTEST.
6346 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
6347 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
6348 (ptest_ptrue<mode>): Replace with...
6349 (aarch64_ptest<mode>): ...this new pattern.
6350 (cbranch<mode>4): Update after above changes.
6351 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
6352 UNSPEC_PTEST_PTRUE.
6353 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
6354 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
6355 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
6356
6357 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6358
6359 PR lto/91287
6360 * builtins.c (builtin_with_linkage_p): New function.
6361 * builtins.h (builtin_with_linkage_p): New function.
6362 * symtab.c (write_symbol): Remove redundant assert.
6363 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
6364 Remove FIXME and use builtin_with_linkage_p.
6365
6366 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6367
6368 PR middle-end/91421
6369 * tree-core.h (function_decl::function_code): Change type to
6370 unsigned int.
6371 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
6372 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
6373 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6374 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
6375 is BUILT_IN_NORMAL.
6376 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6377 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6378 (fndecl_built_in_p): Change the type of the "name" argument to
6379 unsigned int.
6380 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6381 after check for DECL_BUILT_IN_CLASS.
6382 * cgraphclones.c (build_function_decl_skip_args): Use
6383 set_decl_built_in_function.
6384 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6385 * ipa-split.c (split_function): Likewise.
6386 * langhooks.c (add_builtin_function_common): Likewise.
6387 * omp-simd-clone.c (simd_clone_create): Likewise.
6388 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6389 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6390 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6391 DECL_FUNCTION_CODE.
6392 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6393 instead of DECL_FUNCTION_CODE.
6394 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6395 instead of DECL_FUNCTION_CODE.
6396 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6397 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6398 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
6399 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6400 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6401 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6402 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6403 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6404 (alpha_gimple_fold_builtin): Likewise.
6405 * config/arc/arc.c (arc_expand_builtin): Likewise.
6406 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6407 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6408 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6409 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6410 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6411 * config/frv/frv.c (frv_expand_builtin): Likewise.
6412 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6413 (gcn_expand_builtin): Likewise.
6414 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6415 (fold_builtin_cpu): Likewise.
6416 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6417 * config/i386/i386.c (ix86_fold_builtin): Likewise.
6418 (ix86_gimple_fold_builtin): Likewise.
6419 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6420 (ia64_expand_builtin): Likewise.
6421 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6422 * config/mips/mips.c (mips_expand_builtin): Likewise.
6423 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6424 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6425 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6426 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6427 * config/pa/pa.c (pa_expand_builtin): Likewise.
6428 * config/pru/pru.c (pru_expand_builtin): Likewise.
6429 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6430 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6431 Likewise.
6432 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6433 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6434 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6435 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6436 (rs6000_builtin_reciprocal): Likewise.
6437 * config/rx/rx.c (rx_expand_builtin): Likewise.
6438 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6439 * config/s390/s390.c (s390_expand_builtin): Likewise.
6440 * config/sh/sh.c (sh_expand_builtin): Likewise.
6441 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6442 (sparc_fold_builtin): Likewise.
6443 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6444 * config/spu/spu.c (spu_expand_builtin): Likewise.
6445 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6446 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6447 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6448 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6449 (xtensa_expand_builtin): Likewise.
6450
6451 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6452
6453 PR middle-end/91421
6454 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6455 before the DECL_FUNCTION_CODE.
6456 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6457 to check for a BUILT_IN_ALLOCA call.
6458 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6459 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
6460 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6461 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6462 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6463 for BUILT_IN_NORMAL functions.
6464 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6465 test for BUILT_IN_TM_ABORT.
6466 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6467 to check for a BUILT_IN_STACK_RESTORE call.
6468 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6469 * tree-ssa-threadedge.c
6470 (record_temporary_equivalences_from_stmts_at_dest): Check for a
6471 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6472 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6473 test for a BUILT_IN_NORMAL call instead of a negative test for
6474 an internal function call.
6475
6476 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6477
6478 * tree.h (build_vector_a_then_b): Declare.
6479 * tree.c (build_vector_a_then_b): New function.
6480 * fold-const-call.c (fold_while_ult): Likewise.
6481 (fold_const_call): Use it to handle IFN_WHILE_ULT.
6482 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6483 (aarch64_svpattern): New enum.
6484 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6485 constants through aarch64_expand_mov_immediate.
6486 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6487 than general_operand as the predicate for operand 1.
6488 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6489 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6490 insn_type.
6491 (simd_immediate_info::simd_immediate_info): New overload that
6492 takes a scalar_int_mode and an svpattern.
6493 (simd_immediate_info::u): Add a "pattern" field.
6494 (svpattern_token): New function.
6495 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6496 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6497 (aarch64_sve_move_pred_via_while): New functions.
6498 (aarch64_expand_mov_immediate): Try using
6499 aarch64_sve_move_pred_via_while for predicates that contain N ones
6500 followed by M zeros but that do not correspond to a VLnnn pattern.
6501 (aarch64_sve_pred_valid_immediate): New function.
6502 (aarch64_simd_valid_immediate): Use it instead of dealing directly
6503 with PTRUE and PFALSE.
6504 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6505 forms.
6506
6507 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6508
6509 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6510 flag.
6511 (darwin_override_options): Likewise.
6512 * config/darwin.h: Likewise.
6513 * config/darwin.opt: Likewise.
6514 * config/i386/i386.c (output_pic_addr_const): Likewise.
6515 * config/rs6000/darwin.h: Likewise.
6516 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6517 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6518 ... this TARGET_MACHO_SYMBOL_STUBS.
6519 (FUNCTION_PROFILER):Likewise.
6520 * config/i386/i386.h: Likewise.
6521
6522 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6523
6524 * config/i386/i386-expand.c (ix86_expand_vector_extract)
6525 <case E_V2SImode>: Use vec_extr path for
6526 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6527 <case E_V8QImode>: Ditto.
6528 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6529 Use SWI48 mode iterator. Use %k to output operand 0.
6530 (*mmx_pextrw): New insn pattern.
6531 (*mmx_pextrb): Ditto.
6532 (*mmx_pextrb_zext): Ditto.
6533
6534 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
6535
6536 * target.def (libc_has_function, libc_has_fast_function): Improve
6537 documentation strings.
6538 * doc/tm.texi: Regenerate.
6539
6540 2019-08-13 Caroline Tice <cmtice@google.com>
6541
6542 PR other/91396
6543 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6544 vtv_end.o or vtv_end_preinit.o files if !static.
6545
6546 2019-08-13 Olivier Hainque <hainque@adacore.com>
6547
6548 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6549
6550 2019-08-13 Olivier Hainque <hainque@adacore.com>
6551
6552 * rtlanal.c (tablejump_casesi_pattern): New function, to
6553 determine if a tablejump insn is a casesi dispatcher. Extracted
6554 from patch_jump_insn.
6555 * rtl.h (tablejump_casesi_pattern): Declare.
6556 * cfgrtl.c (patch_jump_insn): Use it.
6557 * dwarf2cfi.c (create_trace_edges): Use it.
6558
6559 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6560
6561 PR target/81800
6562 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6563 operand is larger than a long int.
6564
6565 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6566
6567 * machmode.h (opt_mode::else_mode): New function.
6568 (opt_mode::else_blk): Use it.
6569 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6570 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6571 (aarch64_gen_stepped_int_parallel): Likewise.
6572 (aarch64_stepped_int_parallel_p): Likewise.
6573 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6574 argument.
6575 * config/aarch64/aarch64.c
6576 (aarch64_expand_sve_widened_duplicate): Delete.
6577 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6578 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6579 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6580 argument. Use early returns in the !CONST_INT_P handling.
6581 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6582 than handling some inline.
6583 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6584 from...
6585 (aarch64_simd_container_mode): ...here.
6586 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
6587 (aarch64_sve_ld1rq_operand_p): New functions.
6588 * config/aarch64/predicates.md (descending_int_parallel)
6589 (aarch64_sve_ld1rq_operand): New predicates.
6590 * config/aarch64/constraints.md (UtQ): New constraint.
6591 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
6592 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
6593 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
6594 (@aarch64_sve_reinterpret<mode>): New expander.
6595 (*aarch64_sve_reinterpret<mode>): New pattern.
6596 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
6597 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
6598 (*sve_ld1rq<Vesize>): Replace with...
6599 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
6600
6601 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6602
6603 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
6604 16:12.
6605
6606 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6607
6608 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
6609 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
6610 (msp430_check_path_for_devices): New.
6611 (parse_devices_csv_1): New.
6612 (parse_devices_csv): New.
6613 (msp430_extract_mcu_data): Try to find devices.csv and search for the
6614 MCU data in devices.csv before using the hard-coded data.
6615 Warn if devices.csv isn't found and the MCU wasn't found in the
6616 hard-coded data either.
6617 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
6618 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
6619 Search for devices.csv on -I and -L paths.
6620 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
6621 msp430_set_driver_var.
6622 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
6623 -mdevices-csv-loc=.
6624 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
6625 searched for devices.csv.
6626 (mwarn-devices-csv): Document option.
6627
6628 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6629
6630 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
6631 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
6632 Use a single Dn alternative instead of separate Dz and Dm
6633 alternatives. Use aarch64_output_sve_move_immediate.
6634 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
6635 function.
6636 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
6637 for predicates too.
6638 (aarch64_output_sve_mov_immediate): Handle predicate modes.
6639 (aarch64_output_ptrue): Delete.
6640
6641 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6642
6643 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
6644 INDEX.
6645 (simd_immediate_info::value, simd_immediate_info::step)
6646 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
6647 with...
6648 (simd_immediate_info::u): ...this new union.
6649 (simd_immediate_info::simd_immediate_info): Update accordingly.
6650 (aarch64_output_simd_mov_immediate): Likewise.
6651 (aarch64_output_sve_mov_immediate): Likewise.
6652
6653 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6654
6655 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
6656 extra_gcc_objs.
6657 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
6658 (msp430_select_cpu): New spec function.
6659 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
6660 MCU data.
6661 * config/msp430/msp430-devices.c: New file.
6662 * config/msp430/msp430-devices.h: New file.
6663 * config/msp430/msp430.c: Remove msp430_mcu_data.
6664 (msp430_option_override): Use msp430_extract_mcu_data to extract
6665 MCU data.
6666 (msp430_use_f5_series_hwmult): Likewise.
6667 (use_32bit_hwmult): Likewise.
6668 (msp430_no_hwmult): Likewise.
6669 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
6670 assembler.
6671 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
6672 and -mcpu option.
6673 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
6674 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
6675 Remove hard-coded MCU multilib data.
6676
6677 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6678
6679 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
6680 based on the mode instead of testing properties of it.
6681
6682 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6683
6684 * doc/md.texi: Document the x and y constraints for AArch64.
6685 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
6686 (FP_LO8_REGS): New reg_class.
6687 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
6688 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
6689 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
6690 * config/aarch64/predicates.md (aarch64_simd_register): Use
6691 FP_REGNUM_P instead of checking the classes manually.
6692 * config/aarch64/constraints.md (y): New constraint.
6693
6694 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6695
6696 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
6697 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
6698 * config/aarch64/aarch64-simd.md
6699 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
6700 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
6701 from the asm template.
6702 * config/aarch64/aarch64-sve.md
6703 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
6704 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
6705 from the asm template.
6706 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
6707 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
6708 from the asm template.
6709 * config/aarch64/aarch64-simd-builtins.def: Update comment.
6710
6711 2019-08-13 Martin Liska <mliska@suse.cz>
6712
6713 * value-prof.c (gimple_ic_transform): Add new line.
6714 Print details with MSG_NOTE.
6715
6716 2019-08-13 Martin Liska <mliska@suse.cz>
6717
6718 * doc/invoke.texi: Document automatic detection of jobserver.
6719 * lto-wrapper.c (run_gcc): Detect jobserver always.
6720
6721 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6722
6723 * config/i386/i386-expand.c (ix86_expand_vector_set)
6724 <case E_V2SImode>: Use vec_merge path for
6725 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6726 <case E_V8QImode>: Ditto.
6727 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
6728 (*mmx_pinsrb): Ditto.
6729
6730 2019-08-12 Jakub Jelinek <jakub@redhat.com>
6731
6732 PR target/83250
6733 PR target/91340
6734 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
6735 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
6736 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
6737 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
6738 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
6739
6740 2019-08-12 Richard Biener <rguenther@suse.de>
6741
6742 PR lto/91375
6743 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
6744 flag_devirtualize.
6745
6746 2019-08-12 Richard Biener <rguenther@suse.de>
6747
6748 PR driver/91130
6749 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
6750 lang_mask option, always use CL_DRIVER.
6751 (get_options_from_collect_gcc_options): Adjust.
6752 (find_and_merge_options): Likewise.
6753 (run_gcc): Likewise.
6754
6755 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6756
6757 * ipa-predicate.c (add_condition): Restore inverted test.
6758
6759 2019-08-10 Jakub Jelinek <jakub@redhat.com>
6760
6761 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
6762 (enum omp_clause_device_type_kind): New enum.
6763 (struct tree_omp_clause): Add subcode.device_type_kind.
6764 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
6765 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6766 for device_type clause.
6767 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
6768 * tree-pretty-print.c (dump_omp_clause): Likewise.
6769
6770 PR target/91408
6771 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
6772 vector_operand.
6773
6774 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
6775
6776 * reload1.c (finish_spills): Do not check ira_conflicts_p when
6777 handling spilled pseudos.
6778
6779 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6780
6781 PR target/91386
6782 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
6783 to preserve the contents of the original insns.
6784
6785 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6786
6787 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
6788 (addsi3_compare_op2): Likewise.
6789
6790 2019-08-09 Martin Liska <mliska@suse.cz>
6791
6792 * alias.c (alias_ptr_types_compatible_p): Strengten
6793 type comparison in LTO mode.
6794
6795 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
6796
6797 PR middle-end/90313
6798 * tree-tailcall.c (find_tail_calls): Reject calls that might
6799 read from an escaped RESULT_DECL.
6800
6801 2019-08-09 Martin Liska <mliska@suse.cz>
6802
6803 * doc/invoke.texi: Document the option value.
6804 * lto-wrapper.c (run_gcc): Set auto_parallel
6805 only with -flto=auto.
6806
6807 2019-08-09 Martin Liska <mliska@suse.cz>
6808
6809 * opts.c (common_handle_option): Error for an invalid argument
6810 to -flto=.
6811
6812 2019-08-09 Martin Liska <mliska@suse.cz>
6813
6814 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
6815 use dump_printf to report optimization.
6816 (sem_variable::merge): Likwise.
6817 (sem_item_optimizer::merge_classes): Use dump_printf to report
6818 ICF hits.
6819
6820 2019-08-09 Martin Liska <mliska@suse.cz>
6821
6822 * value-prof.c (gimple_divmod_fixed_value_transform):
6823 Use dump_printf_loc.
6824 (gimple_mod_pow2_value_transform): Likewise.
6825 (gimple_mod_subtract_transform): Likewise.
6826 (init_node_map): Likewise.
6827 (gimple_ic_transform): Likewise.
6828 (gimple_stringops_transform): Likewise.
6829
6830 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6831
6832 * doc/extend.texi: Add const qualifier to ld intrinsics.
6833
6834 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6835
6836 * config/rs6000/dfp.md (D64_D128): Rename to ...
6837 (DDTD): ... this, throughout.
6838 (dfp_suffix): Rename to ...
6839 (q): ... this, throughout.
6840
6841 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6842
6843 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
6844 (dfp_suffix): Ditto.
6845 (adddd3, addtd3): Merge to ...
6846 (add<mode>3 for D64_D128): ... this.
6847 (subdd3, subtd3): Merge to ...
6848 (sub<mode>3 for D64_D128): ... this.
6849 (muldd3, multd3): Merge to ...
6850 (mul<mode>3 for D64_D128): ... this.
6851 (divdd3, divtd3): Merge to ...
6852 (div<mode>3 for D64_D128): ... this.
6853 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
6854 (*cmp<mode>_internal1 for D64_D128): ... this.
6855 (ftruncdd2, ftrunctd2): Merge to ...
6856 (ftrunc<mode>2 for D64_D128): ... this.
6857 (fixdddi2, fixtddi2): Merge to ...
6858 (fix<mode>di2 for D64_D128): ... this.
6859
6860 2019-08-08 Jim Wilson <jimw@sifive.com>
6861
6862 PR target/91229
6863 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
6864 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
6865 Pass into recursive call.
6866 (riscv_flatten_aggregate_argument): New arg. Pass to
6867 riscv_flatten_aggregate_field.
6868 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
6869 riscv_flatten_aggregate_argument twice, with false and true as last
6870 arg. Process result twice. Compare results and warn if different.
6871 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
6872
6873 2019-08-08 Martin Liska <mliska@suse.cz>
6874
6875 PR bootstrap/91352
6876 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
6877 * lto-wrapper.c (jobserver_active_p): Likewise.
6878
6879 2019-08-08 Martin Liska <mliska@suse.cz>
6880
6881 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
6882 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
6883 (create_version_clone_with_body): Likewise.
6884
6885 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6886
6887 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
6888 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
6889 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
6890 GOVD_EXPLICIT flags.
6891 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
6892 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
6893 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
6894 call install_var_field with mask 11 instead of 3.
6895 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
6896 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
6897
6898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6899
6900 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
6901 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
6902
6903 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6904
6905 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
6906 MOVPRFX alternatives. Make the GPR alternatives more expensive
6907 than the FPR ones.
6908
6909 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6910
6911 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
6912 Disparage the GPR alternative relative to the FPR one.
6913 Fix handling of 8-bit and 16-bit FPR values.
6914
6915 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6916
6917 * config/aarch64/iterators.md (BITWISEV): Delete.
6918 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
6919 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
6920 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6921 UNSPEC_FMINNMV, UNSPEC_FMINV.
6922 (bit_reduc_op): Delete.
6923 (sve_int_op): New int attribute.
6924 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6925 UNSPEC_FMINNMV, UNSPEC_FMINV.
6926 * config/aarch64/aarch64-sve.md
6927 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6928 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6929 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
6930 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
6931 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
6932 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
6933 new patterns.
6934 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
6935 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
6936 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
6937 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
6938 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
6939 new patterns.
6940
6941 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6942
6943 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
6944 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
6945 (fms<mode>4, *fms<mode>4): Replace with...
6946 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6947 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
6948 Use unspecs instead of rtx codes.
6949 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
6950 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
6951
6952 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6953
6954 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
6955 int iterator.
6956 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
6957 * config/aarch64/aarch64-sve.md
6958 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
6959 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
6960 use a single unspec for the rhs.
6961 (*<su><maxmin><mode>3): Delete.
6962 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
6963
6964 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6965
6966 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
6967 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
6968 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
6969 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
6970 (optab, sve_fp_op): Handle them.
6971 (SVE_FP_UNARY): Delete.
6972 (optab): Remove sqrt entry.
6973 (sve_fp_op): Remove neg, abs and sqrt entries.
6974 (SVE_COND_FP_UNARY): New int iterator.
6975 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
6976 (*<frint_pattern><mode>2): Delete.
6977 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6978 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6979 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6980 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6981
6982 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6983
6984 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
6985
6986 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6987
6988 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
6989 (UNSPEC_COND_FADD): ...this.
6990 (UNSPEC_COND_SUB): Rename to...
6991 (UNSPEC_COND_FSUB): ...this.
6992 (UNSPEC_COND_MUL): Rename to...
6993 (UNSPEC_COND_FMUL): ...this.
6994 (UNSPEC_COND_DIV): Rename to...
6995 (UNSPEC_COND_FDIV): ...this.
6996 (UNSPEC_COND_MAX): Rename to...
6997 (UNSPEC_COND_FMAXNM): ...this.
6998 (UNSPEC_COND_MIN): Rename to...
6999 (UNSPEC_COND_FMINNM): ...this.
7000 (UNSPEC_COND_LT): Rename to...
7001 (UNSPEC_COND_FCMLT): ...this.
7002 (UNSPEC_COND_LE): Rename to...
7003 (UNSPEC_COND_FCMLE): ...this.
7004 (UNSPEC_COND_EQ): Rename to...
7005 (UNSPEC_COND_FCMEQ): ...this.
7006 (UNSPEC_COND_NE): Rename to...
7007 (UNSPEC_COND_FCMNE): ...this.
7008 (UNSPEC_COND_GE): Rename to...
7009 (UNSPEC_COND_FCMGE): ...this.
7010 (UNSPEC_COND_GT): Rename to...
7011 (UNSPEC_COND_FCMGT): ...this.
7012 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
7013 (sve_fp_op_rev): Update accordingly.
7014 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
7015
7016 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7017
7018 * config/aarch64/aarch64-sve.md: Reorganize contents and add
7019 banner comments.
7020 * config/aarch64/check-sve-md.awk: New file.
7021 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
7022 (insn-conditions.md): Depend on it.
7023
7024 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
7025
7026 PR target/91385
7027 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
7028 (*negsi2_cmpz_zext): Ditto.
7029
7030 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7031
7032 * config/aarch64/iterators.md (commutative): Remove.
7033
7034 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
7035
7036 PR driver/91130
7037 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
7038 processing COLLECT_GCC_OPTIONS.
7039 (run_gcc): Likewise.
7040
7041 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
7042
7043 PR tree-optimization/91109
7044 * lra-remat.c (update_scratch_ops): Remove assignment of the
7045 hard register.
7046
7047 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7048
7049 * data-streamer.h (streamer_write_poly_uint64): Declare.
7050 (streamer_read_poly_uint64): Likewise.
7051 * data-streamer-in.c (streamer_read_poly_uint64): New function.
7052 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
7053 * ipa-predicate.h (condition::size): Turn into a poly_int64.
7054 (add_condition): Take a poly_int64 size.
7055 * ipa-predicate.c (add_condition): Likewise.
7056 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
7057 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
7058 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
7059 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
7060 condition::size as a poly_int64.
7061 (unmodified_parm_1): Take a poly_int64 size pointer.
7062 (unmodified_parm): Likewise.
7063 (unmodified_parm_or_parm_agg_item): Likewise.
7064 (set_cond_stmt_execution_predicate): Update accordingly.
7065 (set_switch_stmt_execution_predicate): Likewise.
7066 (will_be_nonconstant_expr_predicate): Likewise.
7067 (will_be_nonconstant_predicate): Likewise.
7068 (inline_read_section): Stream condition::size as a poly_int.
7069 (ipa_fn_summary_write): Likewise.
7070
7071 2019-08-07 Martin Liska <mliska@suse.cz>
7072
7073 * fold-const.c (twoval_comparison_p): Replace int
7074 with bool as a return type.
7075 (simple_operand_p): Likewise.
7076 (operand_equal_p): Replace int with bool as a return type.
7077 * fold-const.h (operand_equal_p): Likewise.
7078
7079 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7080
7081 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
7082 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
7083 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
7084 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
7085 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
7086 * tree-pretty-print.c (dump_omp_clause): Likewise.
7087 * tree-nested.c (convert_nonlocal_omp_clauses,
7088 convert_local_omp_clauses): Likewise.
7089 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
7090 Likewise.
7091 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
7092 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
7093 clause with array or reference to array types, no matter what type
7094 except for reference it has.
7095
7096 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
7097
7098 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
7099
7100 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
7101
7102 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
7103 (arch_canonicalize): Support rv32g and rv64g and fix error
7104 handling.
7105
7106 2019-08-06 Martin Liska <mliska@suse.cz>
7107
7108 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
7109 and DECL_IS_OPERATOR_DELETE_P.
7110
7111 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7112
7113 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
7114 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
7115 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
7116 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
7117 (gimplify_omp_for): Don't do C++ random access iterator clause
7118 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
7119 don't predetermine the artificial iterator in case of C++ random
7120 access iterators as lastprivate, but private. For OMP_LOOP, force
7121 bind expr around simd body and force for_pre_body before the
7122 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
7123 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
7124 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
7125 diff var of C++ random access iterators. Handle
7126 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
7127 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
7128 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
7129 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
7130 * omp-low.c (lower_rec_input_clauses): For
7131 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
7132 variables instead of default constructing them.
7133 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
7134 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
7135 is_taskloop_ctx check from the assert to the guarding condition.
7136
7137 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
7138
7139 * config/riscv/multilib-generator: (canonical_order): New.
7140 (arch_canonicalize): Dito.
7141 Apply arch_canonicalize for alts.
7142
7143 2019-08-05 Martin Sebor <msebor@redhat.com>
7144
7145 * doc/extend.texi (Common Variable Attributes): Document alias
7146 attribute.
7147
7148 2019-08-05 Marek Polacek <polacek@redhat.com>
7149
7150 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
7151 * doc/invoke.texi: Document -Wcomma-subscript.
7152
7153 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7154
7155 * tree-core.h (tree_function_decl): Make function_code an
7156 independent field. Group the remaining bitfields into bytes
7157 and move decl_type so that it contines to be at a byte boundary.
7158 Leave 12 bits for future expansion.
7159
7160 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7161
7162 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
7163 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
7164 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
7165 IFN_MASK_STORE.
7166
7167 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7168
7169 * gimple.h (gimple_move_vops): Declare.
7170 * gimple.c (gimple_move_vops): New function
7171 * gimple-fold.c (replace_call_with_call_and_fold)
7172 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
7173 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
7174 (gimple_fold_call): Use it.
7175 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
7176 * tree-call-cdce.c (use_internal_fn): Likewise.
7177 * tree-if-conv.c (predicate_load_or_store): Likewise.
7178 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7179 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7180 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
7181 (update_call_from_tree): Likewise.
7182 * tree-vect-stmts.c (vectorizable_load): Likewise.
7183 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
7184
7185 2019-08-05 Martin Liska <mliska@suse.cz>
7186
7187 PR c++/91334
7188 * tree-ssa-dce.c (propagate_necessity): Handle new operators
7189 with not arguments.
7190 (eliminate_unnecessary_stmts): Likewise.
7191
7192 2019-08-05 Richard Biener <rguenther@suse.de>
7193
7194 PR middle-end/91169
7195 * fold-const.c (get_array_ctor_element_at_index): Create
7196 offset_ints according to the sign of the index type and treat
7197 that as signed if it is obviously so.
7198
7199 2019-08-05 Jakub Jelinek <jakub@redhat.com>
7200
7201 PR target/91341
7202 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
7203 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
7204 _mm256_storeu2_m128i): New function.
7205
7206 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
7207
7208 * config/riscv/riscv.c (riscv_promote_function_mode): New.
7209 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
7210
7211 2019-08-05 Alan Modra <amodra@gmail.com>
7212
7213 PR target/91349
7214 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
7215 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7216
7217 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
7218
7219 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
7220 bug that was fixed in Tcl 8.6.1.
7221
7222 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
7223
7224 * config/rs6000/future.md: New file.
7225 * config/rs6000/rs6000.md: Include future.md.
7226 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
7227
7228 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7229
7230 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
7231 check to use targetm.slow_unaligned_access instead.
7232
7233 * function.c (assign_param_data_one): Remove unused data members.
7234
7235 2019-08-02 Steve Ellcey <sellcey@marvell.com>
7236
7237 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
7238 build_distinct_type_copy.
7239 (simd_clone_adjust_argument_types): Ditto.
7240 (simd_clone_adjust): Call build_distinct_type_copy here.
7241 (expand_simd_clones): Ditto.
7242
7243 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7244
7245 PR target/91201
7246 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
7247
7248 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
7249
7250 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
7251 from 'const void *'.
7252 (sort_locs_in_loop_postorder_cmp): Likewise.
7253
7254 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
7255
7256 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
7257 (hot-bb-count-ws-permille): Likewise.
7258 (hot-bb-frequency-fraction): Likewise.
7259 (unlikely-bb-count-fraction): Likewise.
7260 * params.def (hot-bb-count-fraction): Rework description.
7261 (hot-bb-count-ws-permille): Likewise.
7262 (hot-bb-frequency-fraction): Likewise.
7263 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
7264 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
7265
7266 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7267
7268 PR target/91323
7269 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
7270 Return false.
7271
7272 2019-08-02 Richard Biener <rguenther@suse.de>
7273
7274 * vec.h (vec::sort): Add gcc_qsort_r support.
7275 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
7276 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
7277 to gcc_qsort_r style callback.
7278 (sort_locs_in_loop_postorder_cmp): Likewise.
7279 (analyze_memory_references): Use gcc_sort_r interfaces.
7280 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
7281
7282 2019-08-02 Martin Liska <mliska@suse.cz>
7283
7284 PR lto/91313
7285 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
7286 to detect working job server.
7287 (driver::detect_jobserver): Test whether jobserver
7288 is active from GCC driver. That will prevent situation where
7289 GCC is invoked from a LD plugin and the linker already uses
7290 file descriptors suggested by make. That leads to a wrong
7291 detection.
7292 * gcc.h (driver): Add detect_jobserver.
7293 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
7294 not scanning for --jobserver-auth prefix.
7295
7296 2019-08-02 Jakub Jelinek <jakub@redhat.com>
7297
7298 PR tree-optimization/91201
7299 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
7300 V16QImode extraction without sse4.1 try to use V4SImode lowpart
7301 extraction.
7302
7303 2019-08-01 Martin Sebor <msebor@redhat.com>
7304
7305 PR c++/90947
7306 * tree.c (type_initializer_zero_p): Define.
7307 * tree.h (type_initializer_zero_p): New function.
7308
7309 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7310
7311 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
7312
7313 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7314
7315 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
7316 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
7317 * predict.c (maybe_hot_count_p): Likewise.
7318 (maybe_hot_bb_p): Tweak comment.
7319 (maybe_hot_edge_p): Likewise.
7320 (probably_never_executed): Likewise. Minor tweak.
7321 (probably_never_executed_bb_p): Likewise.
7322 (unlikely_executed_edge_p): Likewise.
7323 (probably_never_executed_edge_p): Likewise.
7324 (optimize_function_for_size_p): Likewise.
7325 (optimize_function_for_speed_p): Likewise.
7326 (function_optimization_type): Likewise.
7327 (optimize_bb_for_size_p): Likewise.
7328 (optimize_bb_for_speed_p): Likewise.
7329 (bb_optimization_type): Likewise.
7330 (optimize_edge_for_size_p): Likewise.
7331 (optimize_edge_for_speed_p): Likewise.
7332 (optimize_insn_for_size_p): Likewise.
7333 (optimize_insn_for_speed_p): Likewise.
7334 (optimize_loop_for_size_p): Likewise.
7335 (optimize_loop_for_speed_p): Likewise.
7336 (optimize_loop_nest_for_speed_p): Likewise.
7337 (optimize_loop_nest_for_size_p): Likewise.
7338 (predictable_edge_p): Likewise.
7339 (handle_missing_profiles): Minor tweak.
7340
7341 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
7342
7343 * config/rs6000/predicates.md (pcrel_external_address): Update
7344 comment.
7345
7346 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7347
7348 PR target/85693
7349 * config/i386/mmx.md (usadv8qi): New expander.
7350
7351 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
7352
7353 PR c++/90590
7354 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
7355 with reserved names that are in a system header.
7356
7357 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7358
7359 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
7360 (*vec_extractv2si_0_zext_sse4): New insn pattern.
7361 (*vec_extractv2si_0_zext): Ditto.
7362 (*vec_extractv2si_1): Add (rm,x) alternative.
7363 (*vec_extractv2si_1_zext): New insn pattern.
7364 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
7365 insn constraint.
7366
7367 2019-08-01 Richard Biener <rguenther@suse.de>
7368
7369 * domwalk.c (bb_postorder): Remove static variable.
7370 (cmp_bb_postorder): Adjust.
7371 (sort_bbs_postorder): Adjust and use gcc_sort_r.
7372 (dom_walker::walk): Adjust.
7373
7374 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
7375
7376 * sort.cc (sort_r_ctx): New struct.
7377 (reorder23): Make templated on context type.
7378 (reorder45): Ditto.
7379 (cmp1): Ditto. Adjust signature.
7380 (netsort): Ditto.
7381 (mergesort): Ditto.
7382 [CHECKING_P] (cmp2to3): New static function. Use it...
7383 (gcc_qsort) [CHECKING_P]: ...here.
7384 (gcc_sort_r): New function.
7385 * system.h (sort_r_cmp_fn): New function typedef.
7386 (qsort_chk): Adjust signature.
7387 (gcc_sort_r): Declare.
7388 * vec.c (qsort_chk_error): Adjust.
7389 (qsort_chk): Adjust.
7390
7391 2019-08-01 Richard Biener <rguenther@suse.de>
7392
7393 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7394 (compute_antic): Localize it here.
7395
7396 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
7397
7398 * common/config/riscv/riscv-common.c: Check -march string ends
7399 with null.
7400
7401 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
7402
7403 * ipa-devirt.c (type_warning_cmp): Make static.
7404 (decl_warning_cmp): Ditto.
7405
7406 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
7407
7408 PR target/91050
7409 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7410 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7411 use of deleted rs6000_dejagnu_cpu_index variable.
7412 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7413 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7414 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7415 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7416 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7417 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7418
7419 2019-07-31 Richard Biener <rguenther@suse.de>
7420
7421 PR tree-optimization/91280
7422 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7423 Decompose MEM_REF manually for offset handling.
7424
7425 2019-07-31 Richard Biener <rguenther@suse.de>
7426
7427 PR tree-optimization/91293
7428 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7429 of reduction stmts.
7430
7431 2019-07-31 Matt Thomas <matt@3am-software.com>
7432 Nick Hudson <nick@nthcliff.demon.co.uk>
7433 Matthew Green <mrg@eterna.com.au>
7434 Maya Rashish <coypu@sdf.org>
7435
7436 * config.gcc (hppa*-*-netbsd*): New target.
7437 * config/pa/pa-netbsd.h: New file.
7438 * config/pa/pa32-netbsd.h: New file.
7439
7440 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7441
7442 PR tree-optimization/91201
7443 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7444
7445 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
7446
7447 * config/gcn/gcn-valu.md
7448 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7449 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7450 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7451 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7452 struct ilist. Add nops for delayeduse insns.
7453 * config/gcn/gcn.md (delayeduse): New attribute.
7454 (*movbi): Remove s_waitcnt from stores.
7455 (*mov<mode>_insn): Likewise.
7456 (*movti_insn): Likewise. Add delayeduse attribute.
7457 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7458 (atomic_store<mode>): Remove or adjust s_waitcnt.
7459
7460 2019-07-31 Richard Biener <rguenther@suse.de>
7461
7462 * vr-values.h (vr_values::swap_vr_value): New.
7463 (vr_values::free_value_range): likewise.
7464 * vr-values.c (vr_values::swap_vr_value): Implement.
7465 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7466 Do not return a range or take a var.
7467 (evrp_range_analyzer::stack): Change back to recording a non-const
7468 value_range *.
7469 * gimple-ssa-evrp-analyze.c
7470 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7471 value-range.
7472 (evrp_range_analyzer::pop_to_marker): Adjust.
7473 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7474 (evrp_range_analyzer::pop_value_range): Likewise. Free the
7475 no longer needed value-range.
7476
7477 2019-07-31 Martin Liska <mliska@suse.cz>
7478
7479 * tree-ssa-dce.c (propagate_necessity): Delete operator can
7480 have size and (or) alignment as 2nd and later arguments.
7481 Mark all of them as necessary.
7482
7483 2019-07-31 Richard Biener <rguenther@suse.de>
7484
7485 PR tree-optimization/91178
7486 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7487 Use tail-recursion.
7488
7489 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7490
7491 PR tree-optimization/91201
7492 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7493 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7494 TARGET_AVX512F.
7495 (reduc_plus_scal_<mode>): Improve formatting by introducing
7496 a temporary.
7497
7498 2019-07-31 Sudakshina Das <sudi.das@arm.com>
7499
7500 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7501 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7502 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7503 (aarch64_init_tme_builtins): New.
7504 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7505 (aarch64_expand_builtin_tme): New.
7506 (aarch64_expand_builtin): Handle TME builtins.
7507 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7508 __ARM_FEATURE_TME when enabled.
7509 * config/aarch64/aarch64-option-extensions.def: Add "tme".
7510 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7511 (TARGET_TME): New.
7512 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7513 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7514 UNSPECV_TCANCEL.
7515 (tstart, ttest, tcommit, tcancel): New instructions.
7516 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7517 (__tcancel, __ttest): New.
7518 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7519 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7520 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7521 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7522 * config/arm/types.md: Add new tme type attr.
7523 * doc/invoke.texi: Document "tme".
7524
7525 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
7526
7527 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7528 warn_unused_result attribute.
7529 (cmse_check_address_range): Add warn_unused_result attribute.
7530
7531 2019-07-31 Richard Biener <rguenther@suse.de>
7532
7533 PR tree-optimization/91257
7534 * tree-vrp.c (union_ranges): Unify equality and less tests
7535 by using compare_values. Re-order cheap tests first.
7536
7537 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7538
7539 PR middle-end/91301
7540 * gimplify.c (gimplify_omp_for): If for class iterator on
7541 distribute parallel for there is no data sharing clause
7542 on inner_for_stmt, look for private clause on combined
7543 parallel too and if found, move it to inner_for_stmt.
7544
7545 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
7546
7547 * lra-int.h (lra_operand_data): Remove early_clobber field.
7548 (lra_insn_reg): Likewise.
7549 * lra.c (debug_operand_data): Update accordingly.
7550 (setup_operand_alternative): Likewise.
7551 (new_insn_reg): Likewise. Remove early_clobber parameter.
7552 (collect_non_operand_hard_regs): Update call accordingly.
7553 Don't assign to lra_insn_reg::early_clobber.
7554 (add_regs_to_insn_regno_info): Remove early_clobber parameter
7555 and update calls to new_insn_reg.
7556 (lra_update_insn_regno_info): Update calls accordingly.
7557 * lra-constraints.c (update_and_check_small_class_inputs): Take the
7558 alternative number as a parameter and test whether the operand
7559 is earlyclobbered in that particular alternative.
7560 (process_alt_operands): Update call accordingly. Use per-alternative
7561 checks for earyclobber here too.
7562 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7563 against zero for IRA_UNKNOWN_ALT.
7564
7565 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7566
7567 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7568
7569 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
7570
7571 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7572 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7573
7574 2019-07-30 Martin Liska <mliska@suse.cz>
7575
7576 PR ipa/89330
7577 * cgraph.c (cgraph_edge::make_direct): Use
7578 edge->indirect_unknown_callee as edge->resolve_speculation can
7579 deallocate edge which is this pointer.
7580
7581 2019-07-30 Richard Biener <rguenther@suse.de>
7582
7583 PR tree-optimization/91257
7584 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
7585
7586 2019-07-30 Martin Liska <mliska@suse.cz>
7587
7588 * doc/invoke.texi: Document new behavior.
7589 * lto-wrapper.c (cpuset_popcount): New function
7590 is a copy of libgomp/config/linux/proc.c.
7591 (init_num_threads): Likewise.
7592 (run_gcc): Automatically detect core count for -flto.
7593 (jobserver_active_p): New function.
7594
7595 2019-07-30 Richard Biener <rguenther@suse.de>
7596
7597 PR tree-optimization/91257
7598 * bitmap.h (bitmap_ior_into_and_free): Declare.
7599 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
7600 whether to add the unliked element to the freelist.
7601 (bitmap_list_insert_element_after): Add defaulted param for
7602 an already allocated element.
7603 (bitmap_ior_into_and_free): New function.
7604 * tree-ssa-structalias.c (condense_visit): Reduce the
7605 ponts-to and edge bitmaps of the SCC members in a
7606 logarithmic fashion rather than all to one.
7607
7608 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
7609
7610 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
7611 parameter. When nonnull, make sure that the addition or subtraction
7612 has the same condition.
7613 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
7614 for CFN_COND_MUL too.
7615
7616 2019-07-30 Richard Biener <rguenther@suse.de>
7617
7618 PR tree-optimization/91291
7619 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
7620 constant values.
7621
7622 2019-07-30 Jakub Jelinek <jakub@redhat.com>
7623
7624 PR middle-end/91216
7625 * omp-low.c (global_nonaddressable_vars): New variable.
7626 (use_pointer_for_field): For global decls, if they are non-addressable,
7627 remember it in the global_nonaddressable_vars bitmap, if they are
7628 addressable and in the global_nonaddressable_vars bitmap, ignore their
7629 TREE_ADDRESSABLE bit.
7630 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
7631 vars in global_nonaddressable_vars bitmap.
7632 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
7633
7634 PR target/91150
7635 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
7636 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
7637 comparison to unsigned HOST_WIDE_INT before shifting it left.
7638
7639 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7640
7641 * config/i386/i386.md (movstrict<mode>): Use register_operand
7642 predicate for operand 0. Add expander condition. Assert that
7643 operand 0 is a SUBREG RTX.
7644 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
7645 Update operand constraints and insn condition.
7646 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
7647 (zero_extendqihi2_and): Do not call gen_movstrictqi.
7648 (*setcc_qi_slp): Use register_operand predicate for operand 0.
7649 Update operand 0 constraints.
7650 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
7651
7652 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7653
7654 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
7655 when -m{code,data}-region are used without -mlarge.
7656 * config/msp430/msp430.c (msp430_option_override): Error when a
7657 non-default code or data region is used without -mlarge.
7658 (msp430_section_attr): Emit a warning and do not add upper/lower/either
7659 attributes when they are used without -mlarge.
7660
7661 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7662
7663 PR target/70320
7664 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
7665
7666 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7667
7668 PR middle-end/91242
7669 * wide-int.h (generic_wide_int::sext_elt): New function.
7670 * inchash.h (hash::add_wide_int): Use it instead of elt.
7671
7672 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7673
7674 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
7675 CODE_FOR_arm_##.
7676 * config/arm/arm.md (<crc_variant>): Rename to...
7677 (arm_<crc_variant>): ... This.
7678 (<cdp>): Rename to...
7679 (arm_<cdp>): ... This.
7680 (<ldc>): Rename to...
7681 (arm_<ldc>): ... This.
7682 (<stc>): Rename to...
7683 (arm_<stc>): ... This.
7684 (<mcr>): Rename to...
7685 (arm_<mcr>): ... This.
7686 (<mrc>): Rename to...
7687 (arm_<mrc>): ... This.
7688 (<mcrr>): Rename to...
7689 (arm_<mcrr>): ... This.
7690 (<mrrc>): Rename to...
7691 (arm_<mrrc>): ... This.
7692
7693 2019-07-29 Richard Biener <rguenther@suse.de>
7694
7695 PR tree-optimization/91257
7696 * tree-ssa-sccvn.h (struct vn_avail): New.
7697 (struct vn_ssa_aux): Add avail member.
7698 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
7699 member, add m_avail_freelist one.
7700 (rpo_elim::~rpo_elim): Remove.
7701 (rpo_elim::eliminate_avail): Adjust to new avail tracking
7702 data structure.
7703 (rpo_elim::eliminate_push_avail): Likewise.
7704 (do_unwind): Likewise.
7705 (do_rpo_vn): Likewise.
7706
7707 2019-07-29 Richard Biener <rguenther@suse.de>
7708
7709 PR tree-optimization/91257
7710 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
7711 most cases, instead call compare_values which handles the
7712 symbolic ranges we handle specially.
7713 (compare_values_warnv): Do not call operand_less_p but open-code
7714 the effective fold calls. Avoid converting so much.
7715
7716 2019-07-29 Martin Liska <mliska@suse.cz>
7717
7718 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
7719 remove LHS of operator new call. It's handled latter.
7720
7721 2019-07-29 Richard Biener <rguenther@suse.de>
7722
7723 PR tree-optimization/91267
7724 * vr-values.c (vr_values::update_value_range): Add early return
7725 for effectively VARYING lattice entry.
7726
7727 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7728
7729 PR debug/86638
7730 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
7731 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
7732 necessary if keep_all_vdefs_p is true.
7733 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
7734 that keep_all_vdefs_p is false.
7735 (mark_all_reaching_defs_necessary): Likewise.
7736 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
7737
7738 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7739
7740 * common.opt (Og): Change the initial value of flag_dse to 0.
7741 * opts.c (default_options_table): Move OPT_ftree_dse from
7742 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
7743 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
7744 entry before the OPT_ftree_sra entry.
7745 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
7746 of flags disabled by Og.
7747
7748 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7749
7750 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
7751 variables for -Og.
7752
7753 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7754
7755 * doc/sourcebuild.texi (check-function-bodies): Document.
7756
7757 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7758
7759 * simplify-rtx.c (simplify_const_unary_operation): Fold a
7760 VEC_DUPLICATE of a fixed-length vector even if the result
7761 is variable-length. Likewise fold a duplicate of a
7762 variable-length vector if the variable-length vector is
7763 itself a duplicate of a fixed-length sequence.
7764 (test_vector_ops_duplicate): Test more cases.
7765
7766 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7767
7768 * vector-builder.h (vector_builder): Add a shape template parameter.
7769 (vector_builder::new_unary_operation): New function, generalizing
7770 the old tree_vector_builder function.
7771 (vector_builder::new_binary_operation): Likewise.
7772 (vector_builder::binary_encoded_nelts): Likewise.
7773 * int-vector-builder.h (int_vector_builder): Update template
7774 parameters to vector_builder.
7775 (int_vector_builder::shape_nelts): New function.
7776 * rtx-vector-builder.h (rtx_vector_builder): Update template
7777 parameters to vector_builder.
7778 (rtx_vector_builder::shape_nelts): New function.
7779 (rtx_vector_builder::nelts_of): Likewise.
7780 (rtx_vector_builder::npatterns_of): Likewise.
7781 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
7782 * tree-vector-builder.h (tree_vector_builder): Update template
7783 parameters to vector_builder.
7784 (tree_vector_builder::shape_nelts): New function.
7785 (tree_vector_builder::nelts_of): Likewise.
7786 (tree_vector_builder::npatterns_of): Likewise.
7787 (tree_vector_builder::nelts_per_pattern_of): Likewise.
7788 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
7789 (tree_vector_builder::new_binary_operation): Delete.
7790 (tree_vector_builder::binary_encoded_nelts): Likewise.
7791 * simplify-rtx.c: Include rtx-vector-builder.h.
7792 (distributes_over_addition_p): New function.
7793 (simplify_const_unary_operation)
7794 (simplify_const_binary_operation): Generalize handling of vector
7795 constants to include variable-length vectors.
7796 (test_vector_ops_series): Add more tests.
7797
7798 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
7799
7800 PR lto/91222
7801 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
7802 than INDENTIFIER_POINTER.
7803
7804 2019-07-28 Martin Liska <mliska@suse.cz>
7805
7806 PR ipa/89330
7807 * cgraph.c (symbol_table::create_edge): Always allocate
7808 a cgraph_edge.
7809 (symbol_table::free_edge): Store summary_id to
7810 edge_released_summary_ids if != -1;
7811 * cgraph.h (NEXT_FREE_NODE): Remove.
7812 (SET_NEXT_FREE_NODE): Likewise.
7813 (NEXT_FREE_EDGE): Likewise.
7814 (symbol_table::release_symbol): Store summary_id to
7815 cgraph_released_summary_ids if != -1;
7816 (symbol_table::allocate_cgraph_symbol): Always allocate
7817 a cgraph_node.
7818
7819 2019-07-28 Alan Modra <amodra@gmail.com>
7820
7821 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7822 gen_sibcall.
7823
7824 2019-07-28 Alan Modra <amodra@gmail.com>
7825
7826 PR target/91135
7827 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
7828 define.
7829 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7830 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
7831 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
7832
7833 2019-07-28 Alan Modra <amodra@gmail.com>
7834
7835 PR target/91050
7836 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
7837 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
7838 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
7839 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
7840 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
7841 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
7842 in asm_default spec.
7843 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
7844 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
7845
7846 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
7847
7848 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
7849
7850 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7851
7852 PR target/89517
7853 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
7854 * config/aarch64/aarch64-option-extensions.def: Add new comments
7855 and restore easier to read options.
7856
7857 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7858
7859 * convert.c (convert_to_real_1): Move part of conversion code...
7860 * match.pd: ...To here.
7861
7862 2019-07-26 Martin Jambor <mjambor@suse.cz>
7863
7864 PR ipa/89330
7865 * ipa-inline-transform.c (check_speculations_1): New function.
7866 (push_all_edges_in_set_to_vec): Likewise.
7867 (check_speculations): Use check_speculations_1, new parameter
7868 new_edges.
7869 (inline_call): Pass new_edges to check_speculations.
7870 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
7871 NULL.
7872 (speculation_useful_p): Early return true if edge is inlined, remove
7873 later checks for inline_failed.
7874
7875 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
7876
7877 PR rtl-optimization/91223
7878 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
7879 matching with INOUT operand.
7880
7881 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7882
7883 * stmt.c (expand_case): Try to narrow the index type if it's larger
7884 than a word. Tidy up.
7885
7886 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7887
7888 * cif-code.def (NEVER_CALL): New code.
7889 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
7890 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
7891
7892 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
7893
7894 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
7895 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7896
7897 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7898
7899 * ipa-devirt.c (add_type_duplicate): Fix return value.
7900
7901 2019-07-25 Richard Biener <rguenther@suse.de>
7902
7903 * tree-vrp.c (extract_range_from_multiplicative_op): Add
7904 type parameter and use it instead of guessing expression
7905 type from the first operand.
7906 (extract_range_from_binary_expr): Pass expr_type down.
7907
7908 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7909
7910 * config/arm/arm.md (SATrev): Change to code attribute.
7911 (*satsi_<SAT:code>): Adjust for the above.
7912 (*satsi_<SAT:code>_shift): Likewise.
7913
7914 2019-07-25 Richard Biener <rguenther@suse.de>
7915
7916 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
7917 Make value_range * temporary const.
7918 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
7919 Likewise.
7920 (evrp_range_analyzer::record_ranges_from_): Likewise.
7921 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
7922 deal with having recorded a const one.
7923 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
7924 Return a const value_range *.
7925 (evrp_range_analyzer::pop_value_range): Likewise.
7926 (evrp_range_analyzer::stack): Record const value_range *s.
7927 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7928 Adjust.
7929 * gimple-ssa-sprintf.c (get_int_range): Likewise.
7930 (format_integer): Likewise.
7931 (sprintf_dom_walker::handle_gimple_call): Likewise.
7932 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
7933 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
7934 (vrp_prop::get_value_range): Adjust.
7935 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
7936 modifying the lattice in-place.
7937 (vrp_prop::visit_stmt): Likewise.
7938 * vr-values.c (vr_values::get_lattice_entry): New private method.
7939 (vr_values::get_value_range): Wrap it and return a const
7940 value_range *.
7941 (vr_values::set_def_to_varying): New.
7942 (vr_values::set_defs_to_varying): Use it.
7943 (vr_values::update_value_range): Likewise.
7944 (vr_values::vrp_stmt_computes_nonzero): Adjust.
7945 (values::op_with_constant_singleton_va): Likewise.
7946 (vr_values::extract_range_for_var_from_co): Likewise.
7947 (vr_values::extract_range_from_ssa_name): Likewise.
7948 (vr_values::extract_range_from_cond_expr): Likewise.
7949 (vr_values::extract_range_basic): Likewise.
7950 (compare_ranges): Take const value_range *, adjust.
7951 (compare_range_with_value): Likewise.
7952 (vrp_valueize): Adjust.
7953 (vrp_valueize_1): Likewise.
7954 (vr_values::get_vr_for_comparison): Return a const value_range *.
7955 (vr_values::compare_name_with_value): Adjust.
7956 (vr_values::compare_names): Likewise.
7957 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7958 Likewise.
7959 (vr_values::vrp_evaluate_conditional): Likewise.
7960 (find_case_label_ranges): Take a const value_range *.
7961 (vr_values::vrp_visit_switch_stmt): Adjust.
7962 (vr_values::extract_range_from_phi_node): Likewise.
7963 (vr_values::simplify_div_or_mod_using_ran): Likewise.
7964 (vr_values::simplify_abs_using_ranges): Likewise.
7965 (test_for_singularity): Take a const value_range *.
7966 (range_fits_type_p): Likewise.
7967 (vr_values::simplify_cond_using_ranges_1): Adjust.
7968 (vr_values::simplify_cond_using_ranges_2): Likewise.
7969 (vr_values::simplify_switch_using_ranges): Likewise.
7970 (vr_values::simplify_float_conversion_usi): Likewise.
7971 (vr_values::two_valued_val_range_p): Likewise.
7972 * vr-values.h (vr_values::get_value_range): Return a const
7973 value_range *.
7974 (vr_values::set_def_to_varying): New.
7975 (vr_values::get_lattice_entry): New private method.
7976 (vr_values::get_vr_for_comparison): Return a const value_range *.
7977
7978 2019-07-25 Martin Liska <mliska@suse.cz>
7979 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
7980
7981 PR c++/23383
7982 * common.opt: Add -fallocation-dce
7983 * gimple.c (gimple_call_operator_delete_p): New.
7984 * gimple.h (gimple_call_operator_delete_p): Likewise.
7985 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
7986 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
7987 DECL_IS_OPERATOR_DELETE_P.
7988 (mark_all_reaching_defs_necessary_1): Likewise.
7989 (propagate_necessity): Likewise.
7990 (eliminate_unnecessary_stmts): Handle
7991 gimple_call_operator_delete_p.
7992 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7993 Add packing of OPERATOR_DELETE.
7994 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7995 Similarly here.
7996 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
7997 (DECL_SET_IS_OPERATOR_DELETE): New.
7998 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
7999
8000 2019-07-25 Martin Liska <mliska@suse.cz>
8001
8002 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
8003 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
8004 * coverage.c (coverage_begin_function): Likewise.
8005 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
8006 * gimple.c (gimple_call_nonnull_result_p): Likewise.
8007 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
8008 (sem_item::hash_referenced_symbol_properties): Likewise.
8009 * lto-streamer-out.c (hash_tree): Likewise.
8010 * predict.c (expr_expected_value_1): Likewise.
8011 * tree-inline.c (expand_call_inline): Likewise.
8012 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8013 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8014 * tree-core.h (enum function_decl_type): New enum.
8015 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
8016 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
8017 (set_function_decl_type): Likewise.
8018 (DECL_IS_OPERATOR_NEW_P): New.
8019 (DECL_SET_IS_OPERATOR_NEW): Likewise.
8020 (DECL_LAMBDA_FUNCTION): Likewise.
8021 (DECL_LAMBDA_FUNCTION_P): Likewise.
8022 (DECL_IS_OPERATOR_NEW): Remove.
8023 (DECL_SET_LAMBDA_FUNCTION): Likewise.
8024
8025 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
8026
8027 * ipa-profile.c (get_most_common_single_value): Use
8028 get_nth_most_common_value.
8029 * profile.c (sort_hist_value): New function.
8030 (compute_value_histograms): Call sort_hist_value to sort the
8031 values after loading from disk.
8032 * value-prof.c (get_most_common_single_value): Rename to ...
8033 get_nth_most_common_value. Add input params n, return
8034 the n_th value and count.
8035 (gimple_divmod_fixed_value_transform): Use
8036 get_nth_most_common_value.
8037 (gimple_ic_transform): Likewise.
8038 (gimple_stringops_transform): Likewise.
8039 * value-prof.h (get_most_common_single_value): Add input params
8040 n, default to 0.
8041
8042 2019-07-25 Richard Biener <rguenther@suse.de>
8043
8044 PR tree-optimization/91236
8045 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8046 size of CONSTRUCTOR write. Fix buffer size we pass to
8047 native_encode_expr.
8048
8049 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8050
8051 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
8052 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
8053 r273773.
8054
8055 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8056
8057 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
8058 explicitly disabled with --disable-initfini-array.
8059
8060 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8061
8062 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
8063 if-exists.
8064
8065 2019-07-24 Martin Sebor <msebor@redhat.com>
8066
8067 PR tree-optimization/91183
8068 PR tree-optimization/86688
8069 * builtins.c (compute_objsize): Handle MEM_REF.
8070 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
8071 (get_min_string_length): Remove.
8072 (count_nonzero_bytes): New function.
8073 (handle_char_store): Rename...
8074 (handle_store): to this. Handle multibyte stores via integer types.
8075 (strlen_check_and_optimize_stmt): Adjust conditional and the called
8076 function name.
8077
8078 2019-07-24 Martin Sebor <msebor@redhat.com>
8079
8080 PR driver/80545
8081 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
8082 (diagnostic_report_diagnostic): Same.
8083 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
8084 (diagnostic_context::lang_mask): New data member.
8085 * ipa-pure-const.c (suggest_attribute): Use
8086 lang_hooks.option_lang_mask ().
8087 * opts-common.c (option_enabled): Handle new argument.
8088 (get_option_state): Pass an additional argument.
8089 * opts.c (print_filtered_help): Print supported languages for
8090 unsupported options. Adjust printing of current state.
8091 * opts.h (option_enabled): Add argument.
8092 * toplev.c (print_switch_values): Use lang_mask.
8093 (general_init): Set global_dc->lang_mask.
8094
8095 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
8096
8097 PR bootstrap/87030
8098 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
8099
8100 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
8101
8102 * cgraphunit.c (symbol_table::compile): Start and stop
8103 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
8104 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
8105
8106 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
8107
8108 * gimplify.c (flag_instrument_functions_exclude_p): Include
8109 namespace/class information in the printable name.
8110 * opts.c (add_comma_separated_to_vector): Add NUL terminator
8111 to tokens entered into the vector.
8112
8113 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
8114
8115 * tree-nested.c (build_simple_mem_ref_notrap): New function.
8116 (get_static_chain): Call it instead of build_simple_mem_ref.
8117 (get_frame_field): Likewise.
8118 (get_nonlocal_debug_decl): Likewise.
8119 (convert_nonlocal_reference_op): Likewise.
8120
8121 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
8122
8123 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
8124 declaration.
8125 (arc_compute_frame_size): Millicode is disabled when compiling
8126 ISR.
8127 (arc_return_address_register): Likewise.
8128 (arc_compute_function_type): Likewise.
8129 (arc_compute_frame_size): Likewise.
8130 (secondary_reload_info): Likewise.
8131 (arc_get_unalign): Likewise.
8132 (arc_can_use_return_insn): Declare.
8133 * config/arc/arc.c (AUX_LP_START): Define
8134 (AUX_LP_END): Likewise.
8135 (arc_frame_info): Update gmask member to 64-bit datum.
8136 (GMASK_LEN): Update.
8137 (arc_compute_function_type): Make it static, move it forward.
8138 (arc_must_save_register): Update, consider the extra regs.
8139 (arc_compute_millicode_save_restore_regs): Update to use the 64
8140 bit gmask.
8141 (arc_compute_frame_size): Likewise.
8142 (arc_enter_leave_p): Likewise.
8143 (arc_save_callee_saves): Likewise.
8144 (arc_restore_callee_saves): Likewise.
8145 (arc_save_callee_enter): Likewise.
8146 (arc_restore_callee_leave): Likewise.
8147 (arc_save_callee_milli): Likewise.
8148 (arc_restore_callee_milli): Likewise.
8149 (arc_expand_prologue): Add new interrupt handling.
8150 (arc_return_address_register): Make it static, move it forward.
8151 (arc_expand_epilogue): Add new interrupt handling.
8152 (arc_get_unalign): Delete.
8153 (arc_epilogue_uses): Make sure we do not remove the extra
8154 saved/restored registers when interrupt.
8155 (arc_can_use_return_insn): New function.
8156 (push_reg): Likewise.
8157 (pop_reg): Likewise.
8158 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
8159 procedures.
8160 (arc_restore_callee_saves): Likewise, but restoring.
8161 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
8162 (R33_REG): Likewise.
8163 (R34_REG): Likewise.
8164 (R35_REG): Likewise.
8165 (R36_REG): Likewise.
8166 (R37_REG): Likewise.
8167 (R38_REG): Likewise.
8168 (R39_REG): Likewise.
8169 (R45_REG): Likewise.
8170 (R46_REG): Likewise.
8171 (R47_REG): Likewise.
8172 (R48_REG): Likewise.
8173 (R49_REG): Likewise.
8174 (R50_REG): Likewise.
8175 (R51_REG): Likewise.
8176 (R52_REG): Likewise.
8177 (R53_REG): Likewise.
8178 (R54_REG): Likewise.
8179 (R55_REG): Likewise.
8180 (R56_REG): Likewise.
8181 (R58_REG): Likewise.
8182 (type): Add rtie attribute.
8183 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
8184 (movsi_insn): Accept moves to lp_count.
8185 (rtie): Update pattern.
8186 (simple_return): Simplify it, don't use this pattern as a return
8187 from an interrupt.
8188 (arc600_rtie): New pattern.
8189 (p_return_i): Clean up.
8190 (return): Likewise.
8191 * config/arc/builtins.def (rtie): Only available for non ARC6xx
8192 family CPUs.
8193 * config/arc/predicates.md (move_src_operand): Consider lp_count
8194 as a register.
8195
8196 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
8197
8198 * config/s390/predicates.md (addv_const_operand): New predicate.
8199 * config/s390/s390-modes.def (CCO): New condition code mode.
8200 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
8201 (s390_branch_condition_mask): Likewise.
8202 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
8203 ("mulv<mode>4"): New expanders.
8204 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
8205 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
8206 pattern definitions.
8207
8208 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8209
8210 PR middle-end/91166
8211 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
8212 (define_predicates): Add entry for uniform_vector_p.
8213 (vec_same_elem_p): New match pattern.
8214
8215 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
8216
8217 PR bootstrap/87030
8218 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
8219 * config/i386/darwin32-biarch.h .. to here.
8220 * config/i386/darwin64-biarch.h: Adjust comments.
8221 * config/rs6000/darwin32-biarch.h: Likewise.
8222 * config/rs6000/darwin64-biarch.h: Likewise.
8223 * config.gcc: Missed commit from r273746
8224 (*-*-darwin*): Don't include CPU t-darwin here.
8225 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8226 an error message if i686-darwin configuration is attempted for
8227 Darwin >= 18.
8228
8229 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
8230
8231 PR bootstrap/87030
8232 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
8233 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8234 an error message if i686-darwin configuration is attempted for
8235 Darwin >= 18.
8236 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
8237 (powerpc-*-darwin*): Use biarch files where needed.
8238 (powerpc64-*-darwin*): Likewise.
8239 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
8240 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8241 arch case.
8242 * config/i386/darwin32-biarch.h: New.
8243 * config/i386/darwin64.h: Rename.
8244 * config/i386/darwin64-biarch.h: To this.
8245 * config/i386/t-darwin: Rename.
8246 * config/i386/t-darwin32-biarch: To this.
8247 * config/i386/t-darwin64: Rename.
8248 * config/i386/t-darwin64-biarch: To this.
8249 * config/rs6000/darwin32-biarch.h: New.
8250 * config/rs6000/darwin64.h: Rename.
8251 * config/rs6000/darwin64-biarch.h: To this.
8252 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8253 arch case.
8254 * config/rs6000/t-darwin8: Rename.
8255 * config/rs6000/t-darwin32-biarch: To this.
8256 * config/rs6000/t-darwin64 Rename.
8257 * config/rs6000/t-darwin64-biarch: To this.
8258
8259 2019-07-23 Martin Sebor <msebor@redhat.com>
8260
8261 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
8262
8263 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8264
8265 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
8266 (rh): New alias for it.
8267
8268 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8269
8270 * gdbhooks.py: Pass replace=True to
8271 gdb.printing.register_pretty_printer.
8272
8273 2019-07-23 Richard Biener <rguenther@suse.de>
8274
8275 PR debug/91231
8276 * lto-streamer-in.c (input_function): Drop inline-entry markers
8277 that ended up with an unknown location block.
8278
8279 2019-07-23 Richard Biener <rguenther@suse.de>
8280
8281 PR tree-optimization/83518
8282 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
8283 init from a constant even when partial defs are already recorded.
8284
8285 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8286
8287 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
8288 * config/i386/znver1.md: Enable patterns for znver2 and add store
8289 variants which use extra AGU unit.
8290
8291 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8292
8293 * config/i386/i386-options.c (ix86_option_override_internal): Default
8294 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
8295 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
8296 for ZNVER2.
8297
8298 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8299
8300 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
8301 (znver2_costs): Update 256 bit SSE costs and multiplication.
8302
8303 2019-07-23 Jan Beulich <jbeulich@suse.com>
8304
8305 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
8306 Require only AVX512F.
8307 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
8308 alternative expanding to vpternlog.
8309
8310 2019-07-23 Martin Liska <mliska@suse.cz>
8311
8312 * dwarf2out.c (gen_producer_string): Canonize -flto=N
8313 to -flto in dwarf producer string.
8314
8315 2019-07-23 Richard Biener <rguenther@suse.de>
8316
8317 * tree-cfg.c (label_for_bb): Remove global var.
8318 (main_block_label): Take label_for_bb as argument.
8319 (cleanup_dead_labels_eh): Likewise, adjust.
8320 (cleanup_dead_labels): Adjust.
8321
8322 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8323
8324 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
8325 Configurations): Add documentation for __builtin_mtfsf.
8326
8327 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
8328
8329 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
8330 * config/riscv/riscv.c (riscv_constant_alignment): Use
8331 riscv_align_data_type.
8332 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
8333 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8334 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8335 * config/riscv/riscv.opt (malign-data): New.
8336 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
8337
8338 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
8339
8340 * cgraph.c (dump_graphviz): New function.
8341 * cgraph.h (dump_graphviz): New function.
8342 * symtab.c (dump_graphviz): New function.
8343
8344 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
8345
8346 * config/aarch64/aarch64-simd.md
8347 (*aarch64_simd_sra<mode>): New.
8348 * config/aarch64/iterators.md
8349 (SHIFTRT): New iterator.
8350 (sra_op): New attribute.
8351
8352 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8353
8354 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
8355 callee-saved regs R4->R10 in an interrupt function that calls another
8356 function.
8357
8358 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8359
8360 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
8361 (_mm_blendv_epi8): New.
8362
8363 2019-07-22 Richard Biener <rguenther@suse.de>
8364
8365 PR tree-optimization/91221
8366 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
8367 restrict partial-def handling of empty constructors and
8368 memset to refs with known offset.
8369
8370 2019-07-22 Jan Beulich <jbeulich@suse.com>
8371
8372 * config/i386/sse.md (ternlogsuffix): New.
8373 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8374 AVX512F is in use.
8375 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8376
8377 2019-07-22 Martin Liska <mliska@suse.cz>
8378
8379 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8380 comment.
8381 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8382
8383 2019-07-22 Martin Liska <mliska@suse.cz>
8384
8385 * lto-section-in.c (lto_get_section_data):
8386 Use new function get_compression.
8387 * lto-streamer-out.c (produce_lto_section): Use
8388 set_compression to encode compression algorithm.
8389 * lto-streamer.h (struct lto_section): Do not
8390 use bitfields in the format.
8391
8392 2019-07-22 Martin Liska <mliska@suse.cz>
8393
8394 PR driver/91172
8395 * opts-common.c (decode_cmdline_option): Decode
8396 argument of -Werror and check it for a wrong language.
8397 * opts-global.c (complain_wrong_lang): Remove such case.
8398
8399 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
8400
8401 * config/arc/arc.c (prepare_move_operands): Always use an
8402 intermediate register when storing a TLS symbols.
8403
8404 2019-07-22 Stafford Horne <shorne@gmail.com>
8405
8406 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8407 force_reg.
8408
8409 2019-07-22 Stafford Horne <shorne@gmail.com>
8410
8411 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8412 and munordered-float validations.
8413 * config/or1k/constraints.md (d): New register constraint.
8414 * config/or1k/predicates.md (fp_comparison_operator): New.
8415 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8416 operands.
8417 (or1k_expand_compare): Normalize unordered comparisons.
8418 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8419 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8420 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8421 * config/or1k/or1k.md (type): Add fpu.
8422 (fpu): New instruction reservation.
8423 (F, f, fr, fi, FI, FOP, fop): New.
8424 (<fop><F:mode>3): New ALU instruction definition.
8425 (float<fi><F:mode>2): New conversion instruction definition.
8426 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8427 (fpcmpcc): New code iterator.
8428 (*sf_fp_insn): New instruction definition.
8429 (cstore<F:mode>4): New expand definition.
8430 (cbranch<F:mode>4): New expand definition.
8431 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8432 munordered-float): New options.
8433 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8434 munordered-float.
8435
8436 2019-07-22 Stafford Horne <shorne@gmail.com>
8437
8438 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8439 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8440 documenation to be more clear.
8441 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8442 more clear.
8443 * config/or1k/or1k.opt (mrori): New option.
8444 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8445 msfimm, mshftimm): Rewrite documentation to be more clear.
8446 * config/or1k/or1k.md (insn_support): Add ror and rori.
8447 (enabled): Add conditions for ror and rori.
8448 (rotrsi3): Replace condition for shftimm with ror and rori.
8449
8450 2019-07-22 Stafford Horne <shorne@gmail.com>
8451
8452 PR target/90363
8453 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8454 (extend<mode>si2): Update predicate.
8455 * config/or1k/predicates.md (volatile_mem_operand): New.
8456 (reg_or_mem_operand): New.
8457
8458 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
8459
8460 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8461 * config/rs6000/rs6000-call.c: ... to here.
8462
8463 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8464
8465 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8466 memory.
8467
8468 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8469
8470 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8471
8472 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8473
8474 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8475
8476 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8477
8478 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8479 (any_memory_operand): New predicate.
8480 (reg_or_mem_operand): Use it.
8481
8482 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8483
8484 PR target/91204
8485 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8486
8487 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
8488
8489 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8490 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8491
8492 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8493
8494 * tree.def (OMP_LOOP): New tree code.
8495 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8496 (enum omp_clause_bind_kind): New enum.
8497 (struct tree_omp_clause): Add subcode.bind_kind.
8498 * tree.h (OMP_LOOP_CHECK): Rename to ...
8499 (OMP_LOOPING_CHECK): ... this.
8500 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8501 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8502 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8503 (OMP_CLAUSE_BIND_KIND): Define.
8504 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8505 bind clause entries.
8506 (walk_tree_1): Handle OMP_CLAUSE_BIND.
8507 * tree-pretty-print.c (dump_omp_clause): Likewise.
8508 (dump_generic_node): Handle OMP_LOOP.
8509 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8510 (in_omp_construct): New variable.
8511 (is_gimple_stmt): Handle OMP_LOOP.
8512 (gimplify_scan_omp_clauses): For lastprivate don't set
8513 check_non_private if code == OMP_LOOP. For reduction clause
8514 on OMP_LOOP combined with parallel or teams propagate as shared
8515 on the combined construct. Handle OMP_CLAUSE_BIND.
8516 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8517 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8518 for constructs from a loop construct to gimplify_scan_omp_clauses.
8519 Don't predetermine iterator linear on OMP_SIMD from loop construct.
8520 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8521 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8522 to match the implicit ORT_TARGET construct around whole body.
8523 Temporarily clear in_omp_construct when processing body.
8524 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
8525 etc. temporarily set in_omp_construct when processing body.
8526 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8527 * omp-low.c (struct omp_context): Add loop_p.
8528 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8529 in that the original var might be private.
8530 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8531 (check_omp_nesting_restrictions): Adjust nesting restrictions for
8532 addition of loop construct.
8533 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8534
8535 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8536 lastprivate non-addressable iterator of a collapse(1) simd.
8537
8538 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
8539
8540 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8541 as in rs6000.c.
8542
8543 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
8544
8545 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8546 refer to default conditions. Warn for the 'y' spec which is ignored
8547 by current linkers.
8548
8549 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
8550
8551 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8552 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8553 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8554 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8555 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8556 init_cumulative_args, rs6000_promote_function_mode,
8557 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8558 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8559 rs6000_function_arg_boundary, rs6000_parm_offset,
8560 rs6000_parm_start, rs6000_arg_size,
8561 rs6000_darwin64_record_arg_advance_flush,
8562 rs6000_darwin64_record_arg_advance_recurse,
8563 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8564 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8565 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8566 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8567 rs6000_finish_function_arg, rs6000_function_arg,
8568 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8569 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8570 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8571 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8572 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8573 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8574 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8575 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8576 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8577 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8578 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8579 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8580 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8581 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8582 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8583 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8584 get_element_number, altivec_expand_vec_set_builtin,
8585 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8586 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8587 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8588 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8589 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8590 rs6000_expand_builtin, rs6000_vector_type,
8591 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8592 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8593 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
8594 to rs6000-call.c.
8595 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
8596 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8597 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8598 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8599 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8600 init_cumulative_args, rs6000_promote_function_mode,
8601 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8602 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8603 rs6000_function_arg_boundary, rs6000_parm_offset,
8604 rs6000_parm_start, rs6000_arg_size,
8605 rs6000_darwin64_record_arg_advance_flush,
8606 rs6000_darwin64_record_arg_advance_recurse,
8607 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8608 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8609 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8610 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8611 rs6000_finish_function_arg, rs6000_function_arg,
8612 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8613 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8614 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8615 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8616 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8617 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8618 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8619 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8620 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8621 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8622 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8623 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8624 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8625 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8626 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8627 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8628 get_element_number, altivec_expand_vec_set_builtin,
8629 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8630 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8631 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8632 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8633 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8634 rs6000_expand_builtin, rs6000_vector_type,
8635 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8636 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8637 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
8638 to here from rs6000.c.
8639 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
8640 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
8641 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
8642 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
8643 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
8644 rs6000_return_in_memory, rs6000_return_in_msb,
8645 rs6000_pass_by_reference, setup_incoming_varargs,
8646 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
8647 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
8648 rs6000_function_arg_padding, rs6000_function_arg,
8649 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
8650 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
8651 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
8652 rs6000_passes_long_double, rs6000_passes_vector,
8653 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
8654 altivec_builtin_mask_for_load) Add declarations.
8655 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
8656 * config/config.gcc: Add new source file rs6000-call.c to garbage
8657 collector and extra_objs.
8658
8659 2019-07-19 Jeff Law <law@redhat.com>
8660
8661 PR tree-optimization/86061
8662 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8663 strncpy. Drop some trivial dead code.
8664 (maybe_trim_memstar_call): Handle strncpy.
8665
8666 2019-07-19 Richard Biener <rguenther@suse.de>
8667
8668 PR tree-optimization/91211
8669 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8670 memset encoding size.
8671
8672 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
8673
8674 PR target/91204
8675 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
8676
8677 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
8678
8679 PR ipa/91194
8680 * ipa-inline.c (recursive_inlining): Fix limits check.
8681
8682 2019-07-19 Richard Biener <rguenther@suse.de>
8683
8684 PR tree-optimization/91200
8685 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
8686 no PHI nodes in middle-bb.
8687
8688 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
8689
8690 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
8691 to +sve-bitperm.
8692 * config/aarch64/aarch64-option-extensions.def: Likewise.
8693
8694 2019-07-19 Jakub Jelinek <jakub@redhat.com>
8695
8696 PR middle-end/91190
8697 * function.c (insert_temp_slot_address): Store into the hash table
8698 a copy of address to avoid RTL sharing issues.
8699
8700 2019-07-19 Richard Biener <rguenther@suse.de>
8701
8702 PR tree-optimization/91207
8703 Revert
8704 2019-07-17 Richard Biener <rguenther@suse.de>
8705
8706 PR tree-optimization/91178
8707 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8708 loads with a gap larger than the vector size always use
8709 VMAT_STRIDED_SLP.
8710 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8711 avoid loading vectors that are only contained in the gap
8712 and thus are not needed.
8713
8714 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8715
8716 * config/i386/i386.md (*addqi_2_slp): Remove.
8717 (*<code>qi_2_slp): Ditto.
8718
8719 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
8720
8721 * config/rs6000/predicates.md (prefixed_mem_operand): Call
8722 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
8723 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
8724 Rename function from rs6000_prefixed_address.
8725 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8726 TARGET_HAS_TOC.
8727 (TARGET_TOC): Likewise.
8728 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8729 rs6000.h.
8730 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8731 TARGET_HAS_TOC.
8732 (TARGET_TOC): Likewise.
8733 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8734 rs6000.h.
8735 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8736 TARGET_HAS_TOC.
8737 (TARGET_TOC): Likewise.
8738 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8739 check to require -mcmodel=medium for pc-relative addressing.
8740 (create_TOC_reference): Add assertion for TARGET_TOC.
8741 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
8742 TARGET_NO_TOC.
8743 (rs6000_emit_move): Likewise.
8744 (TOC_alias_set): Rename TOC alias set static variable from 'set'
8745 to 'TOC_alias_set'.
8746 (get_TOC_alias_set): Likewise.
8747 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
8748 TARGET_NO_TOC.
8749 (rs6000_can_eliminate): Likewise.
8750 (rs6000_prefixed_address_mode_p): Rename function from
8751 rs6000_prefixed_address.
8752 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
8753 TARGET_HAS_TOC and not pc-relative.
8754 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
8755 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8756 TARGET_HAS_TOC.
8757 (TARGET_TOC): Likewise.
8758 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8759 rs6000.h.
8760
8761 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8762
8763 PR target/91188
8764 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
8765 for operand 0. Do not use (match_dup) to match operand 1 with
8766 operand 0. Add check in insn constraint that either input operand
8767 matches operand 0. Use SWI12 mode iterator to also handle
8768 HImode operands.
8769 (*and<mode>_1_slp): Ditto.
8770 (*<code>qi_1_slp): Ditto.
8771 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
8772 Do not use (match_dup) to match operand 1 with operand 0. Add
8773 check in insn constraint that operand 1 matches operand 0.
8774 Use SWI12 mode iterator to also handle HImode operands.
8775 (*ashl<mode>3_1_slp): Ditto.
8776 (*<shift_insn><mode>3_1_slp): Ditto.
8777 (*<rotate_insn><mode>3_1_slp): Ditto.
8778
8779 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8780
8781 * config/arm/arm-builtins.c
8782 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
8783 (arm_expand_unop_builtin): Likewise.
8784 * config/arm/crypto.md
8785 (crypto_sha1h): Convert from define_insn to define_expand.
8786 (crypto_<crypto_pattern>): Likewise.
8787 (crypto_sha1h_lb): New define_insn.
8788 (crypto_<crypto_pattern>_lb): Likewise.
8789
8790 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8791
8792 PR target/90317
8793 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
8794 (vsha1cq_u32): Likewise.
8795 (vsha1pq_u32): Likewise.
8796 (vsha1mq_u32): Likewise.
8797 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
8798 vec select.
8799 (crypto_sha1c): Correct vec select.
8800 (crypto_sha1m): Likewise.
8801 (crypto_sha1p): Likewise.
8802
8803 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
8804
8805 * config/arm/predicates.md (arm_borrow_operation): New predicate.
8806 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
8807 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
8808 (subdi_zesidi_zesidi): Likewise.
8809 (negdi2_compare, negdi2_insn): Likewise.
8810 (negdi_extensidi): Likewise.
8811 (negdi_zero_extendsidi): Likewise.
8812 (arm_cmpdi_insn): Likewise.
8813 (subsi3_carryin): Use arm_borrow_operation.
8814 (subsi3_carryin_const): Likewise.
8815 (subsi3_carryin_const0): Likewise.
8816 (subsi3_carryin_compare): Likewise.
8817 (subsi3_carryin_compare_const): Likewise.
8818 (subsi3_carryin_compare_const0): Likewise.
8819 (subsi3_carryin_shift): Likewise.
8820 (rsbsi3_carryin_shift): Likewise.
8821 (negsi2_carryin_compare): Likewise.
8822
8823 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
8824
8825 PR tree-optimization/91137
8826 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
8827 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
8828 Init, use and fini the above new field.
8829 (determine_base_object_1): New function.
8830 (determine_base_object): Reimplement using walk_tree.
8831
8832 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
8833
8834 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
8835 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
8836 CLEANUP_FORCE_FAST_DCE is set.
8837 * ifcvt.c (rest_of_handle_if_conversion): Pass
8838 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
8839 if-conversion succeeded.
8840
8841 2019-07-18 Richard Biener <rguenther@suse.de>
8842
8843 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
8844 branches to make code less indented.
8845
8846 2019-07-17 Alexandre Oliva <oliva@adacore.com>
8847
8848 PR middle-end/81824
8849 * attribs.c (decls_mismatched_attributes): Simplify the logic
8850 that avoids duplicates and false positives.
8851
8852 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
8853
8854 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
8855 data into data section when generating PIC code.
8856 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
8857 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
8858 generating code for SOM targets earlier than HP-UX 11. Otherwise,
8859 return 2 for SOM and 0 for other targets.
8860
8861 2019-07-17 Jeff Law <law@redhat.com>
8862
8863 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
8864 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
8865 avoid unexpected switch statement fallthru.
8866
8867 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8868
8869 * config/i386/i386.md (*add<dwi>3_doubleword):
8870 Remove redundant constraints.
8871 (*add<mode>_1): Ditto.
8872 (*addhi_1): Ditto.
8873 (*addqi_1): Ditto.
8874 (*addqi_1_slp): Ditto.
8875 (*add<mode>_2): Ditto.
8876 (*addv<mode>4): Ditto.
8877 (*sub<dwi>3_doubleword): Ditto.
8878 (*sub<mode>_1): Ditto.
8879 (*subqi_1_slp): Ditto.
8880 (*sub<mode>_2): Ditto.
8881 (*subv<mode>4): Ditto.
8882 (*sub<mode>_3): Ditto.
8883 (@add<mode>3_carry): Ditto.
8884 (@sub<mode>3_carry): Ditto.
8885 (*add<mode>3_cc_overflow_1): Ditto.
8886 (*add<mode>3_zext_cc_overflow_2): Ditto.
8887 (*anddi_1): Ditto.
8888 (*and<mode>_1): Ditto.
8889 (*andqi_1): Ditto.
8890 (*andqi_1_slp): Ditto.
8891 (*anddi_2): Ditto.
8892 (*andqi_2_maybe_si): Ditto.
8893 (*and<mode>_2): Ditto.
8894 (*andqi_2_slp): Ditto.
8895 (*<code><mode>_1): Ditto.
8896 (*<code>qi_1): Ditto.
8897 (*<code>qi_1_slp): Ditto.
8898 (*<code><mode>_2): Ditto.
8899 (*<code>qi_2_slp): Ditto.
8900
8901 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
8902
8903 * alias.c (record_component_aliases): Do not simplify pointed-to
8904 types of ODR types.
8905
8906 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8907
8908 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
8909 partial reg stall on alternative 2.
8910
8911 2019-07-17 Richard Biener <rguenther@suse.de>
8912
8913 PR tree-optimization/91178
8914 * tree-ssa.c (release_defs_bitset): Iterate from higher to
8915 lower SSA names to avoid quadratic behavior in the common case.
8916 * tree-data-ref.c (split_constant_offset): Add limit argument
8917 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8918 (split_constant_offset_1): Add limit argument and use it to
8919 limit SSA def walking. Optimize the common plus/minus case.
8920
8921 2019-07-17 Richard Biener <rguenther@suse.de>
8922
8923 PR tree-optimization/91178
8924 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8925 loads with a gap larger than the vector size always use
8926 VMAT_STRIDED_SLP.
8927 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8928 avoid loading vectors that are only contained in the gap
8929 and thus are not needed.
8930
8931 2019-07-17 Richard Biener <rguenther@suse.de>
8932
8933 PR tree-optimization/91180
8934 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
8935 computation for memset partial defs.
8936
8937 2019-07-17 Jakub Jelinek <jakub@redhat.com>
8938
8939 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
8940 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
8941 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
8942 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
8943 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
8944 * omp-grid.c (grid_process_grid_body,
8945 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
8946 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
8947 == GF_OMP_FOR_KIND_SIMD.
8948 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
8949 check_omp_nesting_restrictions, scan_omp_1_stmt,
8950 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
8951 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
8952 omp_find_scan): Likewise.
8953 * omp-expand.c (expand_omp_for): Likewise.
8954 * omp-general.c (omp_extract_for_data): Likewise.
8955
8956 PR tree-optimization/91157
8957 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
8958 a vector boolean with scalar mode.
8959 (expand_vector_condition): Handle first operand being a vector boolean
8960 with scalar mode.
8961 (expand_vector_operations_1): For comparisons, don't bail out early
8962 if the return type is vector boolean with scalar mode, but comparison
8963 operand type is not.
8964
8965 2019-07-17 Richard Biener <rguenther@suse.de>
8966
8967 PR tree-optimization/91181
8968 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
8969 IFN_LOADs as calls.
8970
8971 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
8972
8973 * config/i386/i386.md (*testdi_1): Match CCZmode for
8974 constants that might have the SImode sign bit set.
8975 (*testqi_1_maybe_si): Remove "!" constraint modifier.
8976 Use correct constraints for pentium pairing.
8977 (*test<mode>_1): Ditto.
8978
8979 2019-07-16 Jeff Law <law@redhat.com>
8980
8981 PR rtl-optimization/91173
8982 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
8983 SSA_NAME with a constant value, fold its value into the offset
8984 and clear the base before calling gen_addr_rtx.
8985
8986 2019-07-16 Jakub Jelinek <jakub@redhat.com>
8987
8988 PR rtl-optimization/91164
8989 * dse.c (rest_of_handle_dse): If dead edges have been purged,
8990 invalidate dominance info.
8991
8992 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8993
8994 * read-md.h (md_reader::record_potential_iterator_use): Add a
8995 file_location parameter.
8996 * read-rtl.c (attribute_use::loc): New field.
8997 (map_attr_string): Take a file_location parameter. Report cases
8998 in which attributes map to multiple distinct values.
8999 (apply_attribute_uses): Update call accordingly.
9000 (md_reader::handle_overloaded_name): Likewise.
9001 (md_reader::apply_iterator_to_string): Likewise. Skip empty
9002 nonnull strings.
9003 (record_attribute_use): Take a file_location parameter.
9004 Initialize attribute_use::loc.
9005 (md_reader::record_potential_iterator_use): Take a file_location
9006 parameter. Update call to record_attribute_use.
9007 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
9008 (rtx_reader::read_rtx_code): Likewise.
9009 (rtx_reader::read_rtx_operand): Likewise. Record a location
9010 for implicitly-expanded empty strings.
9011
9012 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9013
9014 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
9015 Use file_location instead of separate fields.
9016 (md_reader::set_md_ptr_loc): Take a file_location instead of a
9017 separate filename and line number.
9018 * read-md.c (ptr_loc): As above.
9019 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
9020 (md_reader::fprint_md_ptr_loc): Likewise.
9021 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
9022 instead of a separate filename and line number.
9023 (md_reader::read_string): Update call accordingly.
9024
9025 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9026
9027 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
9028 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
9029 leaving the choice between SFDF and P implicit.
9030 (*mov<mode>_update2): Likewise.
9031 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
9032 rather than leaving the choice betweem IBM128 and GPR implicit.
9033 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
9034 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
9035 QHSI implicit.
9036 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
9037 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
9038 * config/rs6000/vsx.md
9039 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
9040 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
9041 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
9042 and VSX_EXTRACT_I implicit.
9043
9044 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9045
9046 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
9047 Explicitly use <MOVEP1:MODE> for the mode attribute.
9048
9049 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
9050
9051 PR bootstrap/91176
9052 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
9053
9054 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
9055
9056 PR target/91050
9057 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
9058 .machine directive.
9059
9060 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
9061
9062 * config/i386/i386.md (@test<mode>_ccno_1):
9063 Rename from test<mode>_ccno_1.
9064 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
9065 (*testqi_1_maybe_si): Remove modrm attribute.
9066 (*test<mode>_1): Ditto.
9067 * config/i386/i386-expand.c (ix86_split_idivmod): Use
9068 gen_test_ccno_1 and gen_extend_insn.
9069
9070 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
9071
9072 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
9073 to 0.
9074
9075 2019-07-15 Richard Biener <rguenther@suse.de>
9076
9077 PR middle-end/91162
9078 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
9079 node make sure to replace all uses with something valid.
9080
9081 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
9082
9083 PR tree-optimization/88497
9084 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
9085 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
9086 function undistribute_bitref_for_vector.
9087 (undistribute_bitref_for_vector): New function.
9088 (cleanup_vinfo_map): Likewise.
9089 (sort_by_mach_mode): Likewise.
9090
9091 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
9092
9093 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
9094 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
9095 and testdi_ccno_1 using SWI48 mode attribute.
9096 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
9097 x86_64_szext_general_operand.
9098 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
9099 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
9100 instead of genera_operand mode attribute.
9101
9102 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
9103
9104 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
9105 fopen and fclose to their respective types.
9106 (DotFn.invoke): Ditto.
9107
9108 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
9109
9110 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
9111 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
9112 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
9113 (array_index_predicate): Remove.
9114 (analyze_function_body): Account cost for variable ofsetted array
9115 indexing.
9116 (estimate_node_size_and_time): Do not compute array index hint.
9117 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
9118 (inline_read_section): Do not read array index hint.
9119 (ipa_fn_summary_write): Do not write array index hint.
9120 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
9121 * ipa-cp.c (hint_time_bonus): Remove.
9122 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
9123 (ipa_fnsummary): Remove array_index.
9124 * ipa-inline.c (want_inline_small_function_p): Do not use
9125 array_index.
9126 (edge_badness): Likewise.
9127 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
9128
9129 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
9130
9131 PR target/91148
9132 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
9133 superfluous "builtin function" phrasing.
9134
9135 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
9136
9137 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
9138 Break out from ...
9139 (aliasing_component_refs_walk): Break out from ...
9140 (aliasing_component_refs_p): ... here.
9141
9142 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
9143
9144 PR target/91148
9145 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
9146 "builtin function" phrasing.
9147
9148 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9149
9150 PR target/90723
9151 * recog.h (temporary_volatile_ok): New class.
9152 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
9153 volatile_ok temporarily to true using temporary_volatile_ok.
9154 * expr.c (emit_block_move_via_cpymem): Likewise.
9155 * optabs.c (maybe_legitimize_operand): Likewise.
9156
9157 2019-07-13 Jakub Jelinek <jakub@redhat.com>
9158
9159 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
9160 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
9161 uses inside of order(concurrent) constructs.
9162 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
9163 OMP_CLAUSE_ORDER is seen.
9164 * omp-low.c (struct omp_context): Add order_concurrent member.
9165 (scan_sharing_clauses): Set ctx->order_concurrent if
9166 OMP_CLAUSE_ORDER is seen.
9167 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
9168 of simd order(concurrent). Diagnose constructs not allowed inside of
9169 for order(concurrent).
9170 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
9171 complaining about static double setjmp (double); or class static
9172 methods or non-global namespace setjmps.
9173 (omp_runtime_api_call): New function.
9174 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
9175 order(concurrent) loops.
9176
9177 2019-07-12 Martin Sebor <msebor@redhat.com>
9178
9179 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
9180 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
9181 * tree-vrp.c (vrp_prop::check_mem_ref): Use
9182 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9183
9184 2019-07-12 Jan Hubicka <jh@suse.cz>
9185
9186 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
9187 (indirect_refs_may_alias_p): ... here.
9188 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
9189 mem refs in the access paths.
9190
9191 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
9192
9193 PR tree-optimization/89430
9194 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
9195 store elimination for local variable without address escape.
9196
9197 2019-07-12 Jeff Law <law@redhat.com>
9198
9199 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
9200 for the ".far" section.
9201
9202 2019-07-12 Richard Biener <rguenther@suse.de>
9203
9204 PR tree-optimization/91145
9205 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
9206 chain check.
9207
9208 2019-07-12 Alexandre Oliva <oliva@adacore.com>
9209
9210 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
9211 rather than this_state as the lowering context for the ELSE
9212 seq in a GIMPLE_EH_ELSE.
9213
9214 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9215
9216 * vector-builder.h (vector_builder::elt): Allow already-supplied
9217 elements to be read back before building is complete.
9218
9219 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9220
9221 PR rtl-optimization/91136
9222 * df-core.c (ACCESSING REFS): Fix typos in comment.
9223 * resource.c (mark_target_live_reg): Add artificial defs that occur at
9224 the beginning of the block to the initial set of live registers.
9225
9226 2019-07-12 Richard Biener <rguenther@suse.de>
9227
9228 * fold-const.h (get_array_ctor_element_at_index): Adjust.
9229 * fold-const.c (get_array_ctor_element_at_index): Add
9230 ctor_idx output parameter informing the caller where in
9231 the constructor the element was (not) found. Add early exit
9232 for when the ctor is sorted.
9233 * gimple-fold.c (fold_array_ctor_reference): Support constant
9234 folding across multiple array elements.
9235
9236 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9237
9238 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
9239 doesn't have location, set the current location to the function's end.
9240
9241 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9242
9243 * config/aarch64/aarch64.md (*compare_condjump<mode>)
9244 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
9245 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
9246 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
9247 * config/aarch64/aarch64-simd.md
9248 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9249 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
9250 * config/aarch64/aarch64-sve.md
9251 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
9252 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
9253
9254 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9255
9256 * doc/md.texi: Document that @ patterns can have different
9257 numbers of operands.
9258 * genemit.c (handle_overloaded_gen): Handle this case.
9259 * genopinit.c (handle_overloaded_gen): Likewise.
9260 * gensupport.c (replace_operands_with_dups): Iterate over
9261 the new rtx's format rather than the old one's.
9262
9263 2019-07-12 Jakub Jelinek <jakub@redhat.com>
9264
9265 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
9266 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9267 order clause entries.
9268 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
9269 * tree-pretty-print.c (dump_omp_clause): Likewise.
9270 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9271 Likewise.
9272 * omp-low.c (scan_sharing_clauses): Likewise.
9273 * tree-nested.c (convert_nonlocal_omp_clauses,
9274 convert_local_omp_clauses): Likewise.
9275
9276 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
9277
9278 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
9279 fallthrough target of current basic block isn't the placed
9280 right next.
9281
9282 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
9283
9284 PR target/90980
9285 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
9286 (_mm512_storeu_epi64): Likewise.
9287 (_mm512_loadu_epi32): Likewise.
9288 (_mm512_storeu_epi32): Likewise.
9289 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
9290 (_mm_storeu_epi64): Likewise.
9291 (_mm256_storeu_epi32): Likewise.
9292 (_mm_storeu_epi32): Likewise.
9293
9294 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9295
9296 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
9297
9298 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9299
9300 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
9301 Handle Modula-2.
9302
9303 2019-07-11 Jakub Jelinek <jakub@redhat.com>
9304
9305 PR target/91124
9306 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
9307 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9308 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
9309 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
9310 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
9311 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
9312 define_insns.
9313 (ufix_truncv2dfv2si2<mask_name>): Change into ...
9314 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
9315 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
9316 define_insns.
9317 (sse2_cvttpd2dq<mask_name>): Change into ...
9318 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
9319 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
9320 (*sse2_cvtpd2dq<mask_name>): Change into ...
9321 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9322 Add "C" constraint to const0_operand.
9323 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
9324 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
9325 changes.
9326
9327 PR target/91124
9328 * config/i386/i386-builtin-types.def
9329 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
9330 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
9331 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
9332 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9333 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
9334 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
9335 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
9336 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
9337 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
9338 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
9339 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
9340 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
9341 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
9342 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
9343 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
9344 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
9345 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
9346 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
9347 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
9348 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
9349 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
9350 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
9351 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
9352 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
9353 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
9354 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
9355 __builtin_ia32_vpdpbusd_v4si_maskz,
9356 __builtin_ia32_vpdpbusds_v16si_mask,
9357 __builtin_ia32_vpdpbusds_v16si_maskz,
9358 __builtin_ia32_vpdpbusds_v8si_mask,
9359 __builtin_ia32_vpdpbusds_v8si_maskz,
9360 __builtin_ia32_vpdpbusds_v4si_mask,
9361 __builtin_ia32_vpdpbusds_v4si_maskz,
9362 __builtin_ia32_vpdpwssd_v16si_mask,
9363 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
9364 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
9365 __builtin_ia32_vpdpwssd_v4si_maskz,
9366 __builtin_ia32_vpdpwssds_v16si_mask,
9367 __builtin_ia32_vpdpwssds_v16si_maskz,
9368 __builtin_ia32_vpdpwssds_v8si_mask,
9369 __builtin_ia32_vpdpwssds_v8si_maskz,
9370 __builtin_ia32_vpdpwssds_v4si_mask,
9371 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
9372 suffixed types rather than *_INT.
9373 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9374 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9375 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9376 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9377 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9378 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9379
9380 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
9381
9382 * tree-vrp.c (intersect_ranges): If we know the intersection is
9383 empty, there is no need to conservatively add anything else to
9384 the set.
9385
9386 2019-07-11 Richard Biener <rguenther@suse.de>
9387
9388 PR middle-end/91131
9389 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9390 when the object is volatile and we have not cleared it even though
9391 there are no nonzero elements.
9392
9393 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
9394
9395 * config/rs6000/predicates.md (cint34_operand): Update
9396 SIGNED_34BIT_OFFSET_P call.
9397 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9398 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9399 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9400 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9401 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9402 argument.
9403 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9404 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9405 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9406 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9407 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9408
9409 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
9410
9411 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9412 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9413 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9414 (DEF_MIN_OSX_VERSION): New.
9415
9416 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9417
9418 * fold-const.c (fold_relational_const): Fix folding of
9419 vector-to-scalar NE_EXPRs.
9420 (test_vector_folding): Add more tests.
9421
9422 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9423
9424 PR target/91060
9425 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9426 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9427 (vec_setv2di_internal): Reexpress as...
9428 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9429 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9430 rather than gen_neon_vset_lane<mode>.
9431
9432 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
9433
9434 PR target/91102
9435 * lra-constraints.c (process_alt_operands): Don't match user
9436 defined regs only if they are early clobbers.
9437
9438 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
9439
9440 * wide-int.h (wi::lshift): Reject negative values for the fast path.
9441
9442 2019-07-10 Richard Biener <rguenther@suse.de>
9443
9444 PR tree-optimization/91126
9445 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9446 native encoding offset for BYTES_BIG_ENDIAN.
9447 (vn_reference_lookup_3): Likewise.
9448
9449 2019-07-10 Richard Biener <rguenther@suse.de>
9450
9451 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9452 LHS whenever possible.
9453
9454 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
9455
9456 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9457 from ...; work also on duplicated types.
9458 (nonoverlapping_component_refs_since_match): ... here
9459 (ncr_type_uid): Break out from ...
9460 (ncr_compar): ... here; look for TYPE_UID of canonical type if
9461 available.
9462 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9463 the types and nonoverlapping_component_refs_p_1 to disambiguate.
9464
9465 2019-07-09 Martin Sebor <msebor@redhat.com>
9466
9467 PR tree-optimization/90989
9468 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9469 optimization to just single character stores.
9470
9471 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
9472
9473 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9474 Swap operands only once.
9475
9476 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9477
9478 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9479 for both call instructions.
9480
9481 2019-07-09 John Darrington <john@darrington.wattle.id.au>
9482
9483 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9484 rather than GET_MODE_BITSIZE to better handle partial integer modes.
9485
9486 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
9487
9488 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9489 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9490 function from rs6000-logue.c back to rs6000.c.
9491 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9492
9493 2019-07-09 Martin Sebor <msebor@redhat.com>
9494
9495 PR c++/61339
9496 * auto-profile.c: Change class-key of PODs to struct and others
9497 to class.
9498 * basic-block.h: Same.
9499 * bitmap.c (bitmap_alloc): Same.
9500 * bitmap.h: Same.
9501 * builtins.c (expand_builtin_prefetch): Same.
9502 (expand_builtin_interclass_mathfn): Same.
9503 (expand_builtin_strlen): Same.
9504 (expand_builtin_mempcpy_args): Same.
9505 (expand_cmpstr): Same.
9506 (expand_builtin___clear_cache): Same.
9507 (expand_ifn_atomic_bit_test_and): Same.
9508 (expand_builtin_thread_pointer): Same.
9509 (expand_builtin_set_thread_pointer): Same.
9510 * caller-save.c (setup_save_areas): Same.
9511 (replace_reg_with_saved_mem): Same.
9512 (insert_restore): Same.
9513 (insert_save): Same.
9514 (add_used_regs): Same.
9515 * cfg.c (get_bb_copy): Same.
9516 (set_loop_copy): Same.
9517 * cfg.h: Same.
9518 * cfganal.h: Same.
9519 * cfgexpand.c (alloc_stack_frame_space): Same.
9520 (add_stack_var): Same.
9521 (add_stack_var_conflict): Same.
9522 (add_scope_conflicts_1): Same.
9523 (update_alias_info_with_stack_vars): Same.
9524 (expand_used_vars): Same.
9525 * cfghooks.c (redirect_edge_and_branch_force): Same.
9526 (delete_basic_block): Same.
9527 (split_edge): Same.
9528 (make_forwarder_block): Same.
9529 (force_nonfallthru): Same.
9530 (duplicate_block): Same.
9531 (lv_flush_pending_stmts): Same.
9532 * cfghooks.h: Same.
9533 * cfgloop.c (flow_loops_cfg_dump): Same.
9534 (flow_loop_nested_p): Same.
9535 (superloop_at_depth): Same.
9536 (get_loop_latch_edges): Same.
9537 (flow_loop_dump): Same.
9538 (flow_loops_dump): Same.
9539 (flow_loops_free): Same.
9540 (flow_loop_nodes_find): Same.
9541 (establish_preds): Same.
9542 (flow_loop_tree_node_add): Same.
9543 (flow_loop_tree_node_remove): Same.
9544 (flow_loops_find): Same.
9545 (find_subloop_latch_edge_by_profile): Same.
9546 (find_subloop_latch_edge_by_ivs): Same.
9547 (mfb_redirect_edges_in_set): Same.
9548 (form_subloop): Same.
9549 (merge_latch_edges): Same.
9550 (disambiguate_multiple_latches): Same.
9551 (disambiguate_loops_with_multiple_latches): Same.
9552 (flow_bb_inside_loop_p): Same.
9553 (glb_enum_p): Same.
9554 (get_loop_body_with_size): Same.
9555 (get_loop_body): Same.
9556 (fill_sons_in_loop): Same.
9557 (get_loop_body_in_dom_order): Same.
9558 (get_loop_body_in_custom_order): Same.
9559 (release_recorded_exits): Same.
9560 (get_loop_exit_edges): Same.
9561 (num_loop_branches): Same.
9562 (remove_bb_from_loops): Same.
9563 (find_common_loop): Same.
9564 (delete_loop): Same.
9565 (cancel_loop): Same.
9566 (verify_loop_structure): Same.
9567 (loop_preheader_edge): Same.
9568 (loop_exit_edge_p): Same.
9569 (single_exit): Same.
9570 (loop_exits_to_bb_p): Same.
9571 (loop_exits_from_bb_p): Same.
9572 (get_loop_location): Same.
9573 (record_niter_bound): Same.
9574 (get_estimated_loop_iterations_int): Same.
9575 (max_stmt_executions_int): Same.
9576 (likely_max_stmt_executions_int): Same.
9577 (get_estimated_loop_iterations): Same.
9578 (get_max_loop_iterations): Same.
9579 (get_max_loop_iterations_int): Same.
9580 (get_likely_max_loop_iterations): Same.
9581 * cfgloop.h (simple_loop_desc): Same.
9582 (get_loop): Same.
9583 (loop_depth): Same.
9584 (loop_outer): Same.
9585 (loop_iterator::next): Same.
9586 (loop_outermost): Same.
9587 * cfgloopanal.c (mark_irreducible_loops): Same.
9588 (num_loop_insns): Same.
9589 (average_num_loop_insns): Same.
9590 (expected_loop_iterations_unbounded): Same.
9591 (expected_loop_iterations): Same.
9592 (mark_loop_exit_edges): Same.
9593 (single_likely_exit): Same.
9594 * cfgloopmanip.c (fix_bb_placement): Same.
9595 (fix_bb_placements): Same.
9596 (remove_path): Same.
9597 (place_new_loop): Same.
9598 (add_loop): Same.
9599 (scale_loop_frequencies): Same.
9600 (scale_loop_profile): Same.
9601 (create_empty_if_region_on_edge): Same.
9602 (create_empty_loop_on_edge): Same.
9603 (loopify): Same.
9604 (unloop): Same.
9605 (fix_loop_placements): Same.
9606 (copy_loop_info): Same.
9607 (duplicate_loop): Same.
9608 (duplicate_subloops): Same.
9609 (loop_redirect_edge): Same.
9610 (can_duplicate_loop_p): Same.
9611 (duplicate_loop_to_header_edge): Same.
9612 (mfb_keep_just): Same.
9613 (has_preds_from_loop): Same.
9614 (create_preheader): Same.
9615 (create_preheaders): Same.
9616 (lv_adjust_loop_entry_edge): Same.
9617 (loop_version): Same.
9618 * cfgloopmanip.h: Same.
9619 * cgraph.h: Same.
9620 * cgraphbuild.c: Same.
9621 * combine.c (make_extraction): Same.
9622 * config/i386/i386-features.c: Same.
9623 * config/i386/i386-features.h: Same.
9624 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
9625 (ix86_emit_outlined_ms2sysv_restore): Same.
9626 (ix86_noce_conversion_profitable_p): Same.
9627 (ix86_init_cost): Same.
9628 (ix86_simd_clone_usable): Same.
9629 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
9630 Wstruct-not-pod.
9631 * coretypes.h: Same.
9632 * data-streamer-in.c (string_for_index): Change class-key of PODs
9633 to struct and others to class.
9634 (streamer_read_indexed_string): Same.
9635 (streamer_read_string): Same.
9636 (bp_unpack_indexed_string): Same.
9637 (bp_unpack_string): Same.
9638 (streamer_read_uhwi): Same.
9639 (streamer_read_hwi): Same.
9640 (streamer_read_gcov_count): Same.
9641 (streamer_read_wide_int): Same.
9642 * data-streamer.h (streamer_write_bitpack): Same.
9643 (bp_unpack_value): Same.
9644 (streamer_write_char_stream): Same.
9645 (streamer_write_hwi_in_range): Same.
9646 (streamer_write_record_start): Same.
9647 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
9648 (add_cross_iteration_register_deps): Same.
9649 (build_intra_loop_deps): Same.
9650 * df-core.c (df_analyze): Same.
9651 (loop_post_order_compute): Same.
9652 (loop_inverted_post_order_compute): Same.
9653 * df-problems.c (df_rd_alloc): Same.
9654 (df_rd_simulate_one_insn): Same.
9655 (df_rd_local_compute): Same.
9656 (df_rd_init_solution): Same.
9657 (df_rd_confluence_n): Same.
9658 (df_rd_transfer_function): Same.
9659 (df_rd_free): Same.
9660 (df_rd_dump_defs_set): Same.
9661 (df_rd_top_dump): Same.
9662 (df_lr_alloc): Same.
9663 (df_lr_reset): Same.
9664 (df_lr_local_compute): Same.
9665 (df_lr_init): Same.
9666 (df_lr_confluence_n): Same.
9667 (df_lr_free): Same.
9668 (df_lr_top_dump): Same.
9669 (df_lr_verify_transfer_functions): Same.
9670 (df_live_alloc): Same.
9671 (df_live_reset): Same.
9672 (df_live_init): Same.
9673 (df_live_confluence_n): Same.
9674 (df_live_finalize): Same.
9675 (df_live_free): Same.
9676 (df_live_top_dump): Same.
9677 (df_live_verify_transfer_functions): Same.
9678 (df_mir_alloc): Same.
9679 (df_mir_reset): Same.
9680 (df_mir_init): Same.
9681 (df_mir_confluence_n): Same.
9682 (df_mir_free): Same.
9683 (df_mir_top_dump): Same.
9684 (df_word_lr_alloc): Same.
9685 (df_word_lr_reset): Same.
9686 (df_word_lr_init): Same.
9687 (df_word_lr_confluence_n): Same.
9688 (df_word_lr_free): Same.
9689 (df_word_lr_top_dump): Same.
9690 (df_md_alloc): Same.
9691 (df_md_simulate_one_insn): Same.
9692 (df_md_reset): Same.
9693 (df_md_init): Same.
9694 (df_md_free): Same.
9695 (df_md_top_dump): Same.
9696 * df-scan.c (df_insn_delete): Same.
9697 (df_insn_rescan): Same.
9698 (df_notes_rescan): Same.
9699 (df_sort_and_compress_mws): Same.
9700 (df_install_mws): Same.
9701 (df_refs_add_to_chains): Same.
9702 (df_ref_create_structure): Same.
9703 (df_ref_record): Same.
9704 (df_def_record_1): Same.
9705 (df_find_hard_reg_defs): Same.
9706 (df_uses_record): Same.
9707 (df_get_conditional_uses): Same.
9708 (df_get_call_refs): Same.
9709 (df_recompute_luids): Same.
9710 (df_get_entry_block_def_set): Same.
9711 (df_entry_block_defs_collect): Same.
9712 (df_get_exit_block_use_set): Same.
9713 (df_exit_block_uses_collect): Same.
9714 (df_mws_verify): Same.
9715 (df_bb_verify): Same.
9716 * df.h (df_scan_get_bb_info): Same.
9717 * doc/tm.texi: Same.
9718 * dse.c (record_store): Same.
9719 * dumpfile.h: Same.
9720 * emit-rtl.c (const_fixed_hasher::equal): Same.
9721 (set_mem_attributes_minus_bitpos): Same.
9722 (change_address): Same.
9723 (adjust_address_1): Same.
9724 (offset_address): Same.
9725 * emit-rtl.h: Same.
9726 * except.c (dw2_build_landing_pads): Same.
9727 (sjlj_emit_dispatch_table): Same.
9728 * explow.c (allocate_dynamic_stack_space): Same.
9729 (emit_stack_probe): Same.
9730 (probe_stack_range): Same.
9731 * expmed.c (store_bit_field_using_insv): Same.
9732 (store_bit_field_1): Same.
9733 (store_integral_bit_field): Same.
9734 (extract_bit_field_using_extv): Same.
9735 (extract_bit_field_1): Same.
9736 (emit_cstore): Same.
9737 * expr.c (emit_block_move_via_cpymem): Same.
9738 (expand_cmpstrn_or_cmpmem): Same.
9739 (set_storage_via_setmem): Same.
9740 (emit_single_push_insn_1): Same.
9741 (expand_assignment): Same.
9742 (store_constructor): Same.
9743 (expand_expr_real_2): Same.
9744 (expand_expr_real_1): Same.
9745 (try_casesi): Same.
9746 * flags.h: Same.
9747 * function.c (try_fit_stack_local): Same.
9748 (assign_stack_local_1): Same.
9749 (assign_stack_local): Same.
9750 (cut_slot_from_list): Same.
9751 (insert_slot_to_list): Same.
9752 (max_slot_level): Same.
9753 (move_slot_to_level): Same.
9754 (temp_address_hasher::equal): Same.
9755 (remove_unused_temp_slot_addresses): Same.
9756 (assign_temp): Same.
9757 (combine_temp_slots): Same.
9758 (update_temp_slot_address): Same.
9759 (preserve_temp_slots): Same.
9760 * function.h: Same.
9761 * fwprop.c: Same.
9762 * gcc-rich-location.h: Same.
9763 * gcov.c: Same.
9764 * genattrtab.c (check_attr_test): Same.
9765 (check_attr_value): Same.
9766 (convert_set_attr_alternative): Same.
9767 (convert_set_attr): Same.
9768 (check_defs): Same.
9769 (copy_boolean): Same.
9770 (get_attr_value): Same.
9771 (expand_delays): Same.
9772 (make_length_attrs): Same.
9773 (min_fn): Same.
9774 (make_alternative_compare): Same.
9775 (simplify_test_exp): Same.
9776 (tests_attr_p): Same.
9777 (get_attr_order): Same.
9778 (clear_struct_flag): Same.
9779 (gen_attr): Same.
9780 (compares_alternatives_p): Same.
9781 (gen_insn): Same.
9782 (gen_delay): Same.
9783 (find_attrs_to_cache): Same.
9784 (write_test_expr): Same.
9785 (walk_attr_value): Same.
9786 (write_attr_get): Same.
9787 (eliminate_known_true): Same.
9788 (write_insn_cases): Same.
9789 (write_attr_case): Same.
9790 (write_attr_valueq): Same.
9791 (write_attr_value): Same.
9792 (write_dummy_eligible_delay): Same.
9793 (next_comma_elt): Same.
9794 (find_attr): Same.
9795 (make_internal_attr): Same.
9796 (copy_rtx_unchanging): Same.
9797 (gen_insn_reserv): Same.
9798 (check_tune_attr): Same.
9799 (make_automaton_attrs): Same.
9800 (handle_arg): Same.
9801 * genextract.c (gen_insn): Same.
9802 (VEC_char_to_string): Same.
9803 * genmatch.c (print_operand): Same.
9804 (lower): Same.
9805 (parser::parse_operation): Same.
9806 (parser::parse_capture): Same.
9807 (parser::parse_c_expr): Same.
9808 (parser::parse_simplify): Same.
9809 (main): Same.
9810 * genoutput.c (output_operand_data): Same.
9811 (output_get_insn_name): Same.
9812 (compare_operands): Same.
9813 (place_operands): Same.
9814 (process_template): Same.
9815 (validate_insn_alternatives): Same.
9816 (validate_insn_operands): Same.
9817 (gen_expand): Same.
9818 (note_constraint): Same.
9819 * genpreds.c (write_one_predicate_function): Same.
9820 (add_constraint): Same.
9821 (process_define_register_constraint): Same.
9822 (write_lookup_constraint_1): Same.
9823 (write_lookup_constraint_array): Same.
9824 (write_insn_constraint_len): Same.
9825 (write_reg_class_for_constraint_1): Same.
9826 (write_constraint_satisfied_p_array): Same.
9827 * genrecog.c (optimize_subroutine_group): Same.
9828 * gensupport.c (process_define_predicate): Same.
9829 (queue_pattern): Same.
9830 (remove_from_queue): Same.
9831 (process_rtx): Same.
9832 (is_predicable): Same.
9833 (change_subst_attribute): Same.
9834 (subst_pattern_match): Same.
9835 (alter_constraints): Same.
9836 (alter_attrs_for_insn): Same.
9837 (shift_output_template): Same.
9838 (alter_output_for_subst_insn): Same.
9839 (process_one_cond_exec): Same.
9840 (subst_dup): Same.
9841 (process_define_cond_exec): Same.
9842 (mnemonic_htab_callback): Same.
9843 (gen_mnemonic_attr): Same.
9844 (read_md_rtx): Same.
9845 * ggc-page.c: Same.
9846 * gimple-loop-interchange.cc (dump_reduction): Same.
9847 (dump_induction): Same.
9848 (loop_cand::~loop_cand): Same.
9849 (free_data_refs_with_aux): Same.
9850 (tree_loop_interchange::interchange_loops): Same.
9851 (tree_loop_interchange::map_inductions_to_loop): Same.
9852 (tree_loop_interchange::move_code_to_inner_loop): Same.
9853 (compute_access_stride): Same.
9854 (compute_access_strides): Same.
9855 (proper_loop_form_for_interchange): Same.
9856 (tree_loop_interchange_compute_ddrs): Same.
9857 (prune_datarefs_not_in_loop): Same.
9858 (prepare_data_references): Same.
9859 (pass_linterchange::execute): Same.
9860 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
9861 (unroll_jam_possible_p): Same.
9862 (fuse_loops): Same.
9863 (adjust_unroll_factor): Same.
9864 (tree_loop_unroll_and_jam): Same.
9865 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
9866 (loop_versioning::expensive_stmt_p): Same.
9867 (loop_versioning::version_for_unity): Same.
9868 (loop_versioning::dump_inner_likelihood): Same.
9869 (loop_versioning::find_per_loop_multiplication): Same.
9870 (loop_versioning::analyze_term_using_scevs): Same.
9871 (loop_versioning::record_address_fragment): Same.
9872 (loop_versioning::analyze_expr): Same.
9873 (loop_versioning::analyze_blocks): Same.
9874 (loop_versioning::prune_conditions): Same.
9875 (loop_versioning::merge_loop_info): Same.
9876 (loop_versioning::add_loop_to_queue): Same.
9877 (loop_versioning::decide_whether_loop_is_versionable): Same.
9878 (loop_versioning::make_versioning_decisions): Same.
9879 (loop_versioning::implement_versioning_decisions): Same.
9880 * gimple-ssa-evrp-analyze.c
9881 (evrp_range_analyzer::record_ranges_from_phis): Same.
9882 * gimple-ssa-store-merging.c (split_store::split_store): Same.
9883 (count_multiple_uses): Same.
9884 (split_group): Same.
9885 (imm_store_chain_info::output_merged_store): Same.
9886 (pass_store_merging::process_store): Same.
9887 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
9888 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
9889 (is_max): Same.
9890 (alloca_call_type): Same.
9891 (pass_walloca::execute): Same.
9892 * gimple-streamer-in.c (input_phi): Same.
9893 (input_gimple_stmt): Same.
9894 * gimple-streamer.h: Same.
9895 * godump.c (go_force_record_alignment): Same.
9896 (go_format_type): Same.
9897 (go_output_type): Same.
9898 (go_output_fndecl): Same.
9899 (go_output_typedef): Same.
9900 (keyword_hash_init): Same.
9901 (find_dummy_types): Same.
9902 * graph.c (draw_cfg_nodes_no_loops): Same.
9903 (draw_cfg_nodes_for_loop): Same.
9904 * hard-reg-set.h (hard_reg_set_iter_next): Same.
9905 * hsa-brig.c: Same.
9906 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
9907 * hsa-dump.c (dump_hsa_cfun): Same.
9908 * hsa-gen.c (gen_function_def_parameters): Same.
9909 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
9910 * input.c (dump_line_table_statistics): Same.
9911 (test_lexer): Same.
9912 * input.h: Same.
9913 * internal-fn.c (get_multi_vector_move): Same.
9914 (expand_load_lanes_optab_fn): Same.
9915 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
9916 (expand_GOMP_SIMT_EXIT): Same.
9917 (expand_GOMP_SIMT_LAST_LANE): Same.
9918 (expand_GOMP_SIMT_ORDERED_PRED): Same.
9919 (expand_GOMP_SIMT_VOTE_ANY): Same.
9920 (expand_GOMP_SIMT_XCHG_BFLY): Same.
9921 (expand_GOMP_SIMT_XCHG_IDX): Same.
9922 (expand_addsub_overflow): Same.
9923 (expand_neg_overflow): Same.
9924 (expand_mul_overflow): Same.
9925 (expand_call_mem_ref): Same.
9926 (expand_mask_load_optab_fn): Same.
9927 (expand_scatter_store_optab_fn): Same.
9928 (expand_gather_load_optab_fn): Same.
9929 * ipa-cp.c (ipa_get_parm_lattices): Same.
9930 (print_all_lattices): Same.
9931 (ignore_edge_p): Same.
9932 (build_toporder_info): Same.
9933 (free_toporder_info): Same.
9934 (push_node_to_stack): Same.
9935 (ipcp_lattice<valtype>::set_contains_variable): Same.
9936 (set_agg_lats_to_bottom): Same.
9937 (ipcp_bits_lattice::meet_with): Same.
9938 (set_single_call_flag): Same.
9939 (initialize_node_lattices): Same.
9940 (ipa_get_jf_ancestor_result): Same.
9941 (ipcp_verify_propagated_values): Same.
9942 (propagate_scalar_across_jump_function): Same.
9943 (propagate_context_across_jump_function): Same.
9944 (propagate_bits_across_jump_function): Same.
9945 (ipa_vr_operation_and_type_effects): Same.
9946 (propagate_vr_across_jump_function): Same.
9947 (set_check_aggs_by_ref): Same.
9948 (set_chain_of_aglats_contains_variable): Same.
9949 (merge_aggregate_lattices): Same.
9950 (agg_pass_through_permissible_p): Same.
9951 (propagate_aggs_across_jump_function): Same.
9952 (call_passes_through_thunk_p): Same.
9953 (propagate_constants_across_call): Same.
9954 (devirtualization_time_bonus): Same.
9955 (good_cloning_opportunity_p): Same.
9956 (context_independent_aggregate_values): Same.
9957 (gather_context_independent_values): Same.
9958 (perform_estimation_of_a_value): Same.
9959 (estimate_local_effects): Same.
9960 (value_topo_info<valtype>::add_val): Same.
9961 (add_all_node_vals_to_toposort): Same.
9962 (value_topo_info<valtype>::propagate_effects): Same.
9963 (ipcp_propagate_stage): Same.
9964 (ipcp_discover_new_direct_edges): Same.
9965 (same_node_or_its_all_contexts_clone_p): Same.
9966 (cgraph_edge_brings_value_p): Same.
9967 (gather_edges_for_value): Same.
9968 (create_specialized_node): Same.
9969 (find_more_scalar_values_for_callers_subset): Same.
9970 (find_more_contexts_for_caller_subset): Same.
9971 (copy_plats_to_inter): Same.
9972 (intersect_aggregates_with_edge): Same.
9973 (find_aggregate_values_for_callers_subset): Same.
9974 (cgraph_edge_brings_all_agg_vals_for_node): Same.
9975 (decide_about_value): Same.
9976 (decide_whether_version_node): Same.
9977 (spread_undeadness): Same.
9978 (identify_dead_nodes): Same.
9979 (ipcp_store_vr_results): Same.
9980 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
9981 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
9982 (redirect_to_unreachable): Same.
9983 (edge_set_predicate): Same.
9984 (evaluate_conditions_for_known_args): Same.
9985 (evaluate_properties_for_edge): Same.
9986 (ipa_fn_summary_t::duplicate): Same.
9987 (ipa_call_summary_t::duplicate): Same.
9988 (dump_ipa_call_summary): Same.
9989 (ipa_dump_fn_summary): Same.
9990 (eliminated_by_inlining_prob): Same.
9991 (set_cond_stmt_execution_predicate): Same.
9992 (set_switch_stmt_execution_predicate): Same.
9993 (compute_bb_predicates): Same.
9994 (will_be_nonconstant_expr_predicate): Same.
9995 (phi_result_unknown_predicate): Same.
9996 (analyze_function_body): Same.
9997 (compute_fn_summary): Same.
9998 (estimate_edge_devirt_benefit): Same.
9999 (estimate_edge_size_and_time): Same.
10000 (estimate_calls_size_and_time): Same.
10001 (estimate_node_size_and_time): Same.
10002 (remap_edge_change_prob): Same.
10003 (remap_edge_summaries): Same.
10004 (ipa_merge_fn_summary_after_inlining): Same.
10005 (ipa_fn_summary_generate): Same.
10006 (inline_read_section): Same.
10007 (ipa_fn_summary_read): Same.
10008 (ipa_fn_summary_write): Same.
10009 * ipa-fnsummary.h: Same.
10010 * ipa-hsa.c (ipa_hsa_read_section): Same.
10011 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
10012 * ipa-icf.c (sem_function::param_used_p): Same.
10013 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
10014 * ipa-inline.c (edge_badness): Same.
10015 (inline_small_functions): Same.
10016 * ipa-polymorphic-call.c
10017 (ipa_polymorphic_call_context::stream_out): Same.
10018 * ipa-predicate.c (predicate::remap_after_duplication): Same.
10019 (predicate::remap_after_inlining): Same.
10020 (predicate::stream_out): Same.
10021 * ipa-predicate.h: Same.
10022 * ipa-profile.c (ipa_profile_read_summary): Same.
10023 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
10024 (count_formal_params): Same.
10025 (ipa_dump_param): Same.
10026 (ipa_alloc_node_params): Same.
10027 (ipa_print_node_jump_functions_for_edge): Same.
10028 (ipa_print_node_jump_functions): Same.
10029 (ipa_load_from_parm_agg): Same.
10030 (get_ancestor_addr_info): Same.
10031 (ipa_compute_jump_functions_for_edge): Same.
10032 (ipa_analyze_virtual_call_uses): Same.
10033 (ipa_analyze_stmt_uses): Same.
10034 (ipa_analyze_params_uses_in_bb): Same.
10035 (update_jump_functions_after_inlining): Same.
10036 (try_decrement_rdesc_refcount): Same.
10037 (ipa_impossible_devirt_target): Same.
10038 (update_indirect_edges_after_inlining): Same.
10039 (combine_controlled_uses_counters): Same.
10040 (ipa_edge_args_sum_t::duplicate): Same.
10041 (ipa_write_jump_function): Same.
10042 (ipa_write_indirect_edge_info): Same.
10043 (ipa_write_node_info): Same.
10044 (ipa_read_edge_info): Same.
10045 (ipa_prop_read_section): Same.
10046 (read_replacements_section): Same.
10047 * ipa-prop.h (ipa_get_param_count): Same.
10048 (ipa_get_param): Same.
10049 (ipa_get_type): Same.
10050 (ipa_get_param_move_cost): Same.
10051 (ipa_set_param_used): Same.
10052 (ipa_get_controlled_uses): Same.
10053 (ipa_set_controlled_uses): Same.
10054 (ipa_get_cs_argument_count): Same.
10055 * ipa-pure-const.c (analyze_function): Same.
10056 (pure_const_read_summary): Same.
10057 * ipa-ref.h: Same.
10058 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
10059 * ipa-split.c (test_nonssa_use): Same.
10060 (dump_split_point): Same.
10061 (dominated_by_forbidden): Same.
10062 (split_part_set_ssa_name_p): Same.
10063 (find_split_points): Same.
10064 * ira-build.c (finish_loop_tree_nodes): Same.
10065 (low_pressure_loop_node_p): Same.
10066 * ira-color.c (ira_reuse_stack_slot): Same.
10067 * ira-int.h: Same.
10068 * ira.c (setup_reg_equiv): Same.
10069 (print_insn_chain): Same.
10070 (ira): Same.
10071 * loop-doloop.c (doloop_condition_get): Same.
10072 (add_test): Same.
10073 (record_reg_sets): Same.
10074 (doloop_optimize): Same.
10075 * loop-init.c (loop_optimizer_init): Same.
10076 (fix_loop_structure): Same.
10077 * loop-invariant.c (merge_identical_invariants): Same.
10078 (compute_always_reached): Same.
10079 (find_exits): Same.
10080 (may_assign_reg_p): Same.
10081 (find_invariants_bb): Same.
10082 (find_invariants_body): Same.
10083 (replace_uses): Same.
10084 (can_move_invariant_reg): Same.
10085 (free_inv_motion_data): Same.
10086 (move_single_loop_invariants): Same.
10087 (change_pressure): Same.
10088 (mark_ref_regs): Same.
10089 (calculate_loop_reg_pressure): Same.
10090 * loop-iv.c (biv_entry_hasher::equal): Same.
10091 (iv_extend_to_rtx_code): Same.
10092 (check_iv_ref_table_size): Same.
10093 (clear_iv_info): Same.
10094 (latch_dominating_def): Same.
10095 (iv_get_reaching_def): Same.
10096 (iv_constant): Same.
10097 (iv_subreg): Same.
10098 (iv_extend): Same.
10099 (iv_neg): Same.
10100 (iv_add): Same.
10101 (iv_mult): Same.
10102 (get_biv_step): Same.
10103 (record_iv): Same.
10104 (analyzed_for_bivness_p): Same.
10105 (record_biv): Same.
10106 (iv_analyze_biv): Same.
10107 (iv_analyze_expr): Same.
10108 (iv_analyze_def): Same.
10109 (iv_analyze_op): Same.
10110 (iv_analyze): Same.
10111 (iv_analyze_result): Same.
10112 (biv_p): Same.
10113 (eliminate_implied_conditions): Same.
10114 (simplify_using_initial_values): Same.
10115 (shorten_into_mode): Same.
10116 (canonicalize_iv_subregs): Same.
10117 (determine_max_iter): Same.
10118 (check_simple_exit): Same.
10119 (find_simple_exit): Same.
10120 (get_simple_loop_desc): Same.
10121 * loop-unroll.c (report_unroll): Same.
10122 (decide_unrolling): Same.
10123 (unroll_loops): Same.
10124 (loop_exit_at_end_p): Same.
10125 (decide_unroll_constant_iterations): Same.
10126 (unroll_loop_constant_iterations): Same.
10127 (compare_and_jump_seq): Same.
10128 (unroll_loop_runtime_iterations): Same.
10129 (decide_unroll_stupid): Same.
10130 (unroll_loop_stupid): Same.
10131 (referenced_in_one_insn_in_loop_p): Same.
10132 (reset_debug_uses_in_loop): Same.
10133 (analyze_iv_to_split_insn): Same.
10134 * lra-eliminations.c (lra_debug_elim_table): Same.
10135 (setup_can_eliminate): Same.
10136 (form_sum): Same.
10137 (lra_get_elimination_hard_regno): Same.
10138 (lra_eliminate_regs_1): Same.
10139 (eliminate_regs_in_insn): Same.
10140 (update_reg_eliminate): Same.
10141 (init_elimination): Same.
10142 (lra_eliminate): Same.
10143 * lra-int.h: Same.
10144 * lra-lives.c (initiate_live_solver): Same.
10145 * lra-remat.c (create_remat_bb_data): Same.
10146 * lra-spills.c (lra_spill): Same.
10147 * lra.c (lra_set_insn_recog_data): Same.
10148 (lra_set_used_insn_alternative_by_uid): Same.
10149 (init_reg_info): Same.
10150 (expand_reg_info): Same.
10151 * lto-cgraph.c (output_symtab): Same.
10152 (read_identifier): Same.
10153 (get_alias_symbol): Same.
10154 (input_node): Same.
10155 (input_varpool_node): Same.
10156 (input_ref): Same.
10157 (input_edge): Same.
10158 (input_cgraph_1): Same.
10159 (input_refs): Same.
10160 (input_symtab): Same.
10161 (input_offload_tables): Same.
10162 (output_cgraph_opt_summary): Same.
10163 (input_edge_opt_summary): Same.
10164 (input_cgraph_opt_section): Same.
10165 * lto-section-in.c (lto_free_raw_section_data): Same.
10166 (lto_create_simple_input_block): Same.
10167 (lto_free_function_in_decl_state_for_node): Same.
10168 * lto-streamer-in.c (lto_tag_check_set): Same.
10169 (lto_location_cache::revert_location_cache): Same.
10170 (lto_location_cache::input_location): Same.
10171 (lto_input_location): Same.
10172 (stream_input_location_now): Same.
10173 (lto_input_tree_ref): Same.
10174 (lto_input_eh_catch_list): Same.
10175 (input_eh_region): Same.
10176 (lto_init_eh): Same.
10177 (make_new_block): Same.
10178 (input_cfg): Same.
10179 (fixup_call_stmt_edges): Same.
10180 (input_struct_function_base): Same.
10181 (input_function): Same.
10182 (lto_read_body_or_constructor): Same.
10183 (lto_read_tree_1): Same.
10184 (lto_read_tree): Same.
10185 (lto_input_scc): Same.
10186 (lto_input_tree_1): Same.
10187 (lto_input_toplevel_asms): Same.
10188 (lto_input_mode_table): Same.
10189 (lto_reader_init): Same.
10190 (lto_data_in_create): Same.
10191 * lto-streamer-out.c (output_cfg): Same.
10192 * lto-streamer.h: Same.
10193 * modulo-sched.c (duplicate_insns_of_cycles): Same.
10194 (generate_prolog_epilog): Same.
10195 (mark_loop_unsched): Same.
10196 (dump_insn_location): Same.
10197 (loop_canon_p): Same.
10198 (sms_schedule): Same.
10199 * omp-expand.c (expand_omp_for_ordered_loops): Same.
10200 (expand_omp_for_generic): Same.
10201 (expand_omp_for_static_nochunk): Same.
10202 (expand_omp_for_static_chunk): Same.
10203 (expand_omp_simd): Same.
10204 (expand_omp_taskloop_for_inner): Same.
10205 (expand_oacc_for): Same.
10206 (expand_omp_atomic_pipeline): Same.
10207 (mark_loops_in_oacc_kernels_region): Same.
10208 * omp-offload.c (oacc_xform_loop): Same.
10209 * omp-simd-clone.c (simd_clone_adjust): Same.
10210 * optabs-query.c (get_traditional_extraction_insn): Same.
10211 * optabs.c (expand_vector_broadcast): Same.
10212 (expand_binop_directly): Same.
10213 (expand_twoval_unop): Same.
10214 (expand_twoval_binop): Same.
10215 (expand_unop_direct): Same.
10216 (emit_indirect_jump): Same.
10217 (emit_conditional_move): Same.
10218 (emit_conditional_neg_or_complement): Same.
10219 (emit_conditional_add): Same.
10220 (vector_compare_rtx): Same.
10221 (expand_vec_perm_1): Same.
10222 (expand_vec_perm_const): Same.
10223 (expand_vec_cond_expr): Same.
10224 (expand_vec_series_expr): Same.
10225 (maybe_emit_atomic_exchange): Same.
10226 (maybe_emit_sync_lock_test_and_set): Same.
10227 (expand_atomic_compare_and_swap): Same.
10228 (expand_atomic_load): Same.
10229 (expand_atomic_store): Same.
10230 (maybe_emit_op): Same.
10231 (valid_multiword_target_p): Same.
10232 (create_integer_operand): Same.
10233 (maybe_legitimize_operand_same_code): Same.
10234 (maybe_legitimize_operand): Same.
10235 (create_convert_operand_from_type): Same.
10236 (can_reuse_operands_p): Same.
10237 (maybe_legitimize_operands): Same.
10238 (maybe_gen_insn): Same.
10239 (maybe_expand_insn): Same.
10240 (maybe_expand_jump_insn): Same.
10241 (expand_insn): Same.
10242 * optabs.h (create_expand_operand): Same.
10243 (create_fixed_operand): Same.
10244 (create_output_operand): Same.
10245 (create_input_operand): Same.
10246 (create_convert_operand_to): Same.
10247 (create_convert_operand_from): Same.
10248 * optinfo.h: Same.
10249 * poly-int.h: Same.
10250 * predict.c (optimize_insn_for_speed_p): Same.
10251 (optimize_loop_for_size_p): Same.
10252 (optimize_loop_for_speed_p): Same.
10253 (optimize_loop_nest_for_speed_p): Same.
10254 (get_base_value): Same.
10255 (predicted_by_loop_heuristics_p): Same.
10256 (predict_extra_loop_exits): Same.
10257 (predict_loops): Same.
10258 (predict_paths_for_bb): Same.
10259 (predict_paths_leading_to): Same.
10260 (propagate_freq): Same.
10261 (pass_profile::execute): Same.
10262 * predict.h: Same.
10263 * profile-count.c (profile_count::differs_from_p): Same.
10264 (profile_probability::differs_lot_from_p): Same.
10265 * profile-count.h: Same.
10266 * profile.c (branch_prob): Same.
10267 * regrename.c (free_chain_data): Same.
10268 (mark_conflict): Same.
10269 (create_new_chain): Same.
10270 (merge_overlapping_regs): Same.
10271 (init_rename_info): Same.
10272 (merge_chains): Same.
10273 (regrename_analyze): Same.
10274 (regrename_do_replace): Same.
10275 (scan_rtx_reg): Same.
10276 (record_out_operands): Same.
10277 (build_def_use): Same.
10278 * regrename.h: Same.
10279 * reload.h: Same.
10280 * reload1.c (init_reload): Same.
10281 (maybe_fix_stack_asms): Same.
10282 (copy_reloads): Same.
10283 (count_pseudo): Same.
10284 (count_spilled_pseudo): Same.
10285 (find_reg): Same.
10286 (find_reload_regs): Same.
10287 (select_reload_regs): Same.
10288 (spill_hard_reg): Same.
10289 (fixup_eh_region_note): Same.
10290 (set_reload_reg): Same.
10291 (allocate_reload_reg): Same.
10292 (compute_reload_subreg_offset): Same.
10293 (reload_adjust_reg_for_icode): Same.
10294 (emit_input_reload_insns): Same.
10295 (emit_output_reload_insns): Same.
10296 (do_input_reload): Same.
10297 (inherit_piecemeal_p): Same.
10298 * rtl.h: Same.
10299 * sanopt.c (maybe_get_dominating_check): Same.
10300 (maybe_optimize_ubsan_ptr_ifn): Same.
10301 (can_remove_asan_check): Same.
10302 (maybe_optimize_asan_check_ifn): Same.
10303 (sanopt_optimize_walker): Same.
10304 * sched-deps.c (add_dependence_list): Same.
10305 (chain_to_prev_insn): Same.
10306 (add_insn_mem_dependence): Same.
10307 (create_insn_reg_set): Same.
10308 (maybe_extend_reg_info_p): Same.
10309 (sched_analyze_reg): Same.
10310 (sched_analyze_1): Same.
10311 (get_implicit_reg_pending_clobbers): Same.
10312 (chain_to_prev_insn_p): Same.
10313 (deps_analyze_insn): Same.
10314 (deps_start_bb): Same.
10315 (sched_free_deps): Same.
10316 (init_deps): Same.
10317 (init_deps_reg_last): Same.
10318 (free_deps): Same.
10319 * sched-ebb.c: Same.
10320 * sched-int.h: Same.
10321 * sched-rgn.c (add_branch_dependences): Same.
10322 (concat_insn_mem_list): Same.
10323 (deps_join): Same.
10324 (sched_rgn_compute_dependencies): Same.
10325 * sel-sched-ir.c (reset_target_context): Same.
10326 (copy_deps_context): Same.
10327 (init_id_from_df): Same.
10328 (has_dependence_p): Same.
10329 (change_loops_latches): Same.
10330 (bb_top_order_comparator): Same.
10331 (make_region_from_loop_preheader): Same.
10332 (sel_init_pipelining): Same.
10333 (get_loop_nest_for_rgn): Same.
10334 (make_regions_from_the_rest): Same.
10335 (sel_is_loop_preheader_p): Same.
10336 * sel-sched-ir.h (inner_loop_header_p): Same.
10337 (get_all_loop_exits): Same.
10338 * selftest.h: Same.
10339 * sese.c (sese_build_liveouts): Same.
10340 (sese_insert_phis_for_liveouts): Same.
10341 * sese.h (defined_in_sese_p): Same.
10342 * sreal.c (sreal::stream_out): Same.
10343 * sreal.h: Same.
10344 * streamer-hooks.h: Same.
10345 * target-globals.c (save_target_globals): Same.
10346 * target-globals.h: Same.
10347 * target.def: Same.
10348 * target.h: Same.
10349 * targhooks.c (default_has_ifunc_p): Same.
10350 (default_empty_mask_is_expensive): Same.
10351 (default_init_cost): Same.
10352 * targhooks.h: Same.
10353 * toplev.c: Same.
10354 * tree-affine.c (aff_combination_mult): Same.
10355 (aff_combination_expand): Same.
10356 (aff_combination_constant_multiple_p): Same.
10357 * tree-affine.h: Same.
10358 * tree-cfg.c (build_gimple_cfg): Same.
10359 (replace_loop_annotate_in_block): Same.
10360 (replace_uses_by): Same.
10361 (remove_bb): Same.
10362 (dump_cfg_stats): Same.
10363 (gimple_duplicate_sese_region): Same.
10364 (gimple_duplicate_sese_tail): Same.
10365 (move_block_to_fn): Same.
10366 (replace_block_vars_by_duplicates): Same.
10367 (move_sese_region_to_fn): Same.
10368 (print_loops_bb): Same.
10369 (print_loop): Same.
10370 (print_loops): Same.
10371 (debug): Same.
10372 (debug_loops): Same.
10373 * tree-cfg.h: Same.
10374 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10375 (chrec_fold_multiply_poly_poly): Same.
10376 (chrec_evaluate): Same.
10377 (chrec_component_in_loop_num): Same.
10378 (reset_evolution_in_loop): Same.
10379 (is_multivariate_chrec): Same.
10380 (chrec_contains_symbols): Same.
10381 (nb_vars_in_chrec): Same.
10382 (chrec_convert_1): Same.
10383 (chrec_convert_aggressive): Same.
10384 * tree-chrec.h: Same.
10385 * tree-core.h: Same.
10386 * tree-data-ref.c (dump_data_dependence_relation): Same.
10387 (canonicalize_base_object_address): Same.
10388 (data_ref_compare_tree): Same.
10389 (prune_runtime_alias_test_list): Same.
10390 (get_segment_min_max): Same.
10391 (create_intersect_range_checks): Same.
10392 (conflict_fn_no_dependence): Same.
10393 (object_address_invariant_in_loop_p): Same.
10394 (analyze_ziv_subscript): Same.
10395 (analyze_siv_subscript_cst_affine): Same.
10396 (analyze_miv_subscript): Same.
10397 (analyze_overlapping_iterations): Same.
10398 (build_classic_dist_vector_1): Same.
10399 (add_other_self_distances): Same.
10400 (same_access_functions): Same.
10401 (build_classic_dir_vector): Same.
10402 (subscript_dependence_tester_1): Same.
10403 (subscript_dependence_tester): Same.
10404 (access_functions_are_affine_or_constant_p): Same.
10405 (get_references_in_stmt): Same.
10406 (loop_nest_has_data_refs): Same.
10407 (graphite_find_data_references_in_stmt): Same.
10408 (find_data_references_in_bb): Same.
10409 (get_base_for_alignment): Same.
10410 (find_loop_nest_1): Same.
10411 (find_loop_nest): Same.
10412 * tree-data-ref.h (dr_alignment): Same.
10413 (ddr_dependence_level): Same.
10414 * tree-if-conv.c (fold_build_cond_expr): Same.
10415 (add_to_predicate_list): Same.
10416 (add_to_dst_predicate_list): Same.
10417 (phi_convertible_by_degenerating_args): Same.
10418 (idx_within_array_bound): Same.
10419 (all_preds_critical_p): Same.
10420 (pred_blocks_visited_p): Same.
10421 (predicate_bbs): Same.
10422 (build_region): Same.
10423 (if_convertible_loop_p_1): Same.
10424 (is_cond_scalar_reduction): Same.
10425 (predicate_scalar_phi): Same.
10426 (remove_conditions_and_labels): Same.
10427 (combine_blocks): Same.
10428 (version_loop_for_if_conversion): Same.
10429 (versionable_outer_loop_p): Same.
10430 (ifcvt_local_dce): Same.
10431 (tree_if_conversion): Same.
10432 (pass_if_conversion::gate): Same.
10433 * tree-if-conv.h: Same.
10434 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10435 * tree-loop-distribution.c (bb_top_order_cmp): Same.
10436 (free_rdg): Same.
10437 (stmt_has_scalar_dependences_outside_loop): Same.
10438 (copy_loop_before): Same.
10439 (create_bb_after_loop): Same.
10440 (const_with_all_bytes_same): Same.
10441 (generate_memset_builtin): Same.
10442 (generate_memcpy_builtin): Same.
10443 (destroy_loop): Same.
10444 (build_rdg_partition_for_vertex): Same.
10445 (compute_access_range): Same.
10446 (data_ref_segment_size): Same.
10447 (latch_dominated_by_data_ref): Same.
10448 (compute_alias_check_pairs): Same.
10449 (fuse_memset_builtins): Same.
10450 (finalize_partitions): Same.
10451 (find_seed_stmts_for_distribution): Same.
10452 (prepare_perfect_loop_nest): Same.
10453 * tree-parloops.c (lambda_transform_legal_p): Same.
10454 (loop_parallel_p): Same.
10455 (reduc_stmt_res): Same.
10456 (add_field_for_name): Same.
10457 (create_call_for_reduction_1): Same.
10458 (replace_uses_in_bb_by): Same.
10459 (transform_to_exit_first_loop_alt): Same.
10460 (try_transform_to_exit_first_loop_alt): Same.
10461 (transform_to_exit_first_loop): Same.
10462 (num_phis): Same.
10463 (gen_parallel_loop): Same.
10464 (gather_scalar_reductions): Same.
10465 (get_omp_data_i_param): Same.
10466 (try_create_reduction_list): Same.
10467 (oacc_entry_exit_single_gang): Same.
10468 (parallelize_loops): Same.
10469 * tree-pass.h: Same.
10470 * tree-predcom.c (determine_offset): Same.
10471 (last_always_executed_block): Same.
10472 (split_data_refs_to_components): Same.
10473 (suitable_component_p): Same.
10474 (valid_initializer_p): Same.
10475 (find_looparound_phi): Same.
10476 (insert_looparound_copy): Same.
10477 (add_looparound_copies): Same.
10478 (determine_roots_comp): Same.
10479 (predcom_tmp_var): Same.
10480 (initialize_root_vars): Same.
10481 (initialize_root_vars_store_elim_1): Same.
10482 (initialize_root_vars_store_elim_2): Same.
10483 (finalize_eliminated_stores): Same.
10484 (initialize_root_vars_lm): Same.
10485 (remove_stmt): Same.
10486 (determine_unroll_factor): Same.
10487 (execute_pred_commoning_cbck): Same.
10488 (base_names_in_chain_on): Same.
10489 (combine_chains): Same.
10490 (pcom_stmt_dominates_stmt_p): Same.
10491 (try_combine_chains): Same.
10492 (prepare_initializers_chain_store_elim): Same.
10493 (prepare_initializers_chain): Same.
10494 (prepare_initializers): Same.
10495 (prepare_finalizers_chain): Same.
10496 (prepare_finalizers): Same.
10497 (insert_init_seqs): Same.
10498 * tree-scalar-evolution.c (loop_phi_node_p): Same.
10499 (compute_overall_effect_of_inner_loop): Same.
10500 (add_to_evolution_1): Same.
10501 (add_to_evolution): Same.
10502 (follow_ssa_edge_binary): Same.
10503 (follow_ssa_edge_expr): Same.
10504 (backedge_phi_arg_p): Same.
10505 (follow_ssa_edge_in_condition_phi_branch): Same.
10506 (follow_ssa_edge_in_condition_phi): Same.
10507 (follow_ssa_edge_inner_loop_phi): Same.
10508 (follow_ssa_edge): Same.
10509 (analyze_evolution_in_loop): Same.
10510 (analyze_initial_condition): Same.
10511 (interpret_loop_phi): Same.
10512 (interpret_condition_phi): Same.
10513 (interpret_rhs_expr): Same.
10514 (interpret_expr): Same.
10515 (interpret_gimple_assign): Same.
10516 (analyze_scalar_evolution_1): Same.
10517 (analyze_scalar_evolution): Same.
10518 (analyze_scalar_evolution_for_address_of): Same.
10519 (get_instantiated_value_entry): Same.
10520 (loop_closed_phi_def): Same.
10521 (instantiate_scev_name): Same.
10522 (instantiate_scev_poly): Same.
10523 (instantiate_scev_binary): Same.
10524 (instantiate_scev_convert): Same.
10525 (instantiate_scev_not): Same.
10526 (instantiate_scev_r): Same.
10527 (instantiate_scev): Same.
10528 (resolve_mixers): Same.
10529 (initialize_scalar_evolutions_analyzer): Same.
10530 (scev_reset_htab): Same.
10531 (scev_reset): Same.
10532 (derive_simple_iv_with_niters): Same.
10533 (simple_iv_with_niters): Same.
10534 (expression_expensive_p): Same.
10535 (final_value_replacement_loop): Same.
10536 * tree-scalar-evolution.h (block_before_loop): Same.
10537 * tree-ssa-address.h: Same.
10538 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10539 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10540 (record_edge_info): Same.
10541 * tree-ssa-live.c (var_map_base_fini): Same.
10542 (remove_unused_locals): Same.
10543 * tree-ssa-live.h: Same.
10544 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10545 (pass_ch_vect::execute): Same.
10546 (pass_ch::process_loop_p): Same.
10547 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10548 (movement_possibility): Same.
10549 (outermost_invariant_loop): Same.
10550 (stmt_cost): Same.
10551 (determine_max_movement): Same.
10552 (invariantness_dom_walker::before_dom_children): Same.
10553 (move_computations): Same.
10554 (may_move_till): Same.
10555 (force_move_till_op): Same.
10556 (force_move_till): Same.
10557 (memref_free): Same.
10558 (record_mem_ref_loc): Same.
10559 (set_ref_stored_in_loop): Same.
10560 (mark_ref_stored): Same.
10561 (sort_bbs_in_loop_postorder_cmp): Same.
10562 (sort_locs_in_loop_postorder_cmp): Same.
10563 (analyze_memory_references): Same.
10564 (mem_refs_may_alias_p): Same.
10565 (find_ref_loc_in_loop_cmp): Same.
10566 (rewrite_mem_ref_loc::operator): Same.
10567 (first_mem_ref_loc_1::operator): Same.
10568 (sm_set_flag_if_changed::operator): Same.
10569 (execute_sm_if_changed_flag_set): Same.
10570 (execute_sm): Same.
10571 (hoist_memory_references): Same.
10572 (ref_always_accessed::operator): Same.
10573 (refs_independent_p): Same.
10574 (record_dep_loop): Same.
10575 (ref_indep_loop_p_1): Same.
10576 (ref_indep_loop_p): Same.
10577 (can_sm_ref_p): Same.
10578 (find_refs_for_sm): Same.
10579 (loop_suitable_for_sm): Same.
10580 (store_motion_loop): Same.
10581 (store_motion): Same.
10582 (fill_always_executed_in): Same.
10583 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10584 (estimated_unrolled_size): Same.
10585 (loop_edge_to_cancel): Same.
10586 (remove_exits_and_undefined_stmts): Same.
10587 (remove_redundant_iv_tests): Same.
10588 (unloop_loops): Same.
10589 (estimated_peeled_sequence_size): Same.
10590 (try_peel_loop): Same.
10591 (canonicalize_loop_induction_variables): Same.
10592 (canonicalize_induction_variables): Same.
10593 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
10594 (name_info): Same.
10595 (stmt_after_inc_pos): Same.
10596 (contains_abnormal_ssa_name_p): Same.
10597 (niter_for_exit): Same.
10598 (find_bivs): Same.
10599 (mark_bivs): Same.
10600 (find_givs_in_bb): Same.
10601 (find_induction_variables): Same.
10602 (find_interesting_uses_cond): Same.
10603 (outermost_invariant_loop_for_expr): Same.
10604 (idx_find_step): Same.
10605 (add_candidate_1): Same.
10606 (add_iv_candidate_derived_from_uses): Same.
10607 (alloc_use_cost_map): Same.
10608 (prepare_decl_rtl): Same.
10609 (generic_predict_doloop_p): Same.
10610 (computation_cost): Same.
10611 (determine_common_wider_type): Same.
10612 (get_computation_aff_1): Same.
10613 (get_use_type): Same.
10614 (determine_group_iv_cost_address): Same.
10615 (iv_period): Same.
10616 (difference_cannot_overflow_p): Same.
10617 (may_eliminate_iv): Same.
10618 (determine_set_costs): Same.
10619 (cheaper_cost_pair): Same.
10620 (compare_cost_pair): Same.
10621 (iv_ca_cand_for_group): Same.
10622 (iv_ca_recount_cost): Same.
10623 (iv_ca_set_remove_invs): Same.
10624 (iv_ca_set_no_cp): Same.
10625 (iv_ca_set_add_invs): Same.
10626 (iv_ca_set_cp): Same.
10627 (iv_ca_add_group): Same.
10628 (iv_ca_cost): Same.
10629 (iv_ca_compare_deps): Same.
10630 (iv_ca_delta_reverse): Same.
10631 (iv_ca_delta_commit): Same.
10632 (iv_ca_cand_used_p): Same.
10633 (iv_ca_delta_free): Same.
10634 (iv_ca_new): Same.
10635 (iv_ca_free): Same.
10636 (iv_ca_dump): Same.
10637 (iv_ca_extend): Same.
10638 (iv_ca_narrow): Same.
10639 (iv_ca_prune): Same.
10640 (cheaper_cost_with_cand): Same.
10641 (iv_ca_replace): Same.
10642 (try_add_cand_for): Same.
10643 (get_initial_solution): Same.
10644 (try_improve_iv_set): Same.
10645 (find_optimal_iv_set_1): Same.
10646 (create_new_iv): Same.
10647 (rewrite_use_compare): Same.
10648 (remove_unused_ivs): Same.
10649 (determine_scaling_factor): Same.
10650 * tree-ssa-loop-ivopts.h: Same.
10651 * tree-ssa-loop-manip.c (create_iv): Same.
10652 (compute_live_loop_exits): Same.
10653 (add_exit_phi): Same.
10654 (add_exit_phis): Same.
10655 (find_uses_to_rename_use): Same.
10656 (find_uses_to_rename_def): Same.
10657 (find_uses_to_rename_in_loop): Same.
10658 (rewrite_into_loop_closed_ssa): Same.
10659 (check_loop_closed_ssa_bb): Same.
10660 (split_loop_exit_edge): Same.
10661 (ip_end_pos): Same.
10662 (ip_normal_pos): Same.
10663 (copy_phi_node_args): Same.
10664 (gimple_duplicate_loop_to_header_edge): Same.
10665 (can_unroll_loop_p): Same.
10666 (determine_exit_conditions): Same.
10667 (scale_dominated_blocks_in_loop): Same.
10668 (niter_for_unrolled_loop): Same.
10669 (tree_transform_and_unroll_loop): Same.
10670 (rewrite_all_phi_nodes_with_iv): Same.
10671 * tree-ssa-loop-manip.h: Same.
10672 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
10673 (number_of_iterations_ne): Same.
10674 (assert_no_overflow_lt): Same.
10675 (assert_loop_rolls_lt): Same.
10676 (number_of_iterations_lt): Same.
10677 (adjust_cond_for_loop_until_wrap): Same.
10678 (tree_simplify_using_condition): Same.
10679 (simplify_using_initial_conditions): Same.
10680 (simplify_using_outer_evolutions): Same.
10681 (loop_only_exit_p): Same.
10682 (ssa_defined_by_minus_one_stmt_p): Same.
10683 (number_of_iterations_popcount): Same.
10684 (number_of_iterations_exit): Same.
10685 (find_loop_niter): Same.
10686 (finite_loop_p): Same.
10687 (chain_of_csts_start): Same.
10688 (get_val_for): Same.
10689 (loop_niter_by_eval): Same.
10690 (derive_constant_upper_bound_ops): Same.
10691 (do_warn_aggressive_loop_optimizations): Same.
10692 (record_estimate): Same.
10693 (get_cst_init_from_scev): Same.
10694 (record_nonwrapping_iv): Same.
10695 (idx_infer_loop_bounds): Same.
10696 (infer_loop_bounds_from_ref): Same.
10697 (infer_loop_bounds_from_array): Same.
10698 (infer_loop_bounds_from_pointer_arith): Same.
10699 (infer_loop_bounds_from_signedness): Same.
10700 (bound_index): Same.
10701 (discover_iteration_bound_by_body_walk): Same.
10702 (maybe_lower_iteration_bound): Same.
10703 (estimate_numbers_of_iterations): Same.
10704 (estimated_loop_iterations): Same.
10705 (estimated_loop_iterations_int): Same.
10706 (max_loop_iterations): Same.
10707 (max_loop_iterations_int): Same.
10708 (likely_max_loop_iterations): Same.
10709 (likely_max_loop_iterations_int): Same.
10710 (estimated_stmt_executions_int): Same.
10711 (max_stmt_executions): Same.
10712 (likely_max_stmt_executions): Same.
10713 (estimated_stmt_executions): Same.
10714 (stmt_dominates_stmt_p): Same.
10715 (nowrap_type_p): Same.
10716 (loop_exits_before_overflow): Same.
10717 (scev_var_range_cant_overflow): Same.
10718 (scev_probably_wraps_p): Same.
10719 (free_numbers_of_iterations_estimates): Same.
10720 * tree-ssa-loop-niter.h: Same.
10721 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
10722 (idx_analyze_ref): Same.
10723 (analyze_ref): Same.
10724 (gather_memory_references_ref): Same.
10725 (mark_nontemporal_store): Same.
10726 (emit_mfence_after_loop): Same.
10727 (may_use_storent_in_loop_p): Same.
10728 (mark_nontemporal_stores): Same.
10729 (should_unroll_loop_p): Same.
10730 (volume_of_dist_vector): Same.
10731 (add_subscript_strides): Same.
10732 (self_reuse_distance): Same.
10733 (insn_to_prefetch_ratio_too_small_p): Same.
10734 * tree-ssa-loop-split.c (split_at_bb_p): Same.
10735 (patch_loop_exit): Same.
10736 (find_or_create_guard_phi): Same.
10737 (easy_exit_values): Same.
10738 (connect_loop_phis): Same.
10739 (connect_loops): Same.
10740 (compute_new_first_bound): Same.
10741 (split_loop): Same.
10742 (tree_ssa_split_loops): Same.
10743 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
10744 (is_maybe_undefined): Same.
10745 (tree_may_unswitch_on): Same.
10746 (simplify_using_entry_checks): Same.
10747 (tree_unswitch_single_loop): Same.
10748 (tree_unswitch_loop): Same.
10749 (tree_unswitch_outer_loop): Same.
10750 (empty_bb_without_guard_p): Same.
10751 (used_outside_loop_p): Same.
10752 (get_vop_from_header): Same.
10753 (hoist_guard): Same.
10754 * tree-ssa-loop.c (gate_oacc_kernels): Same.
10755 (get_lsm_tmp_name): Same.
10756 * tree-ssa-loop.h: Same.
10757 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
10758 (build_and_add_sum): Same.
10759 (no_side_effect_bb): Same.
10760 (get_ops): Same.
10761 (linearize_expr): Same.
10762 (should_break_up_subtract): Same.
10763 (linearize_expr_tree): Same.
10764 * tree-ssa-scopedtables.c: Same.
10765 * tree-ssa-scopedtables.h: Same.
10766 * tree-ssa-structalias.c (condense_visit): Same.
10767 (label_visit): Same.
10768 (dump_pred_graph): Same.
10769 (perform_var_substitution): Same.
10770 (move_complex_constraints): Same.
10771 (remove_preds_and_fake_succs): Same.
10772 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
10773 (determine_bb_domination_status): Same.
10774 (duplicate_thread_path): Same.
10775 (thread_through_all_blocks): Same.
10776 * tree-ssa-threadupdate.h: Same.
10777 * tree-streamer-in.c (streamer_read_string_cst): Same.
10778 (input_identifier): Same.
10779 (unpack_ts_type_common_value_fields): Same.
10780 (unpack_ts_block_value_fields): Same.
10781 (unpack_ts_translation_unit_decl_value_fields): Same.
10782 (unpack_ts_omp_clause_value_fields): Same.
10783 (streamer_read_tree_bitfields): Same.
10784 (streamer_alloc_tree): Same.
10785 (lto_input_ts_common_tree_pointers): Same.
10786 (lto_input_ts_vector_tree_pointers): Same.
10787 (lto_input_ts_poly_tree_pointers): Same.
10788 (lto_input_ts_complex_tree_pointers): Same.
10789 (lto_input_ts_decl_minimal_tree_pointers): Same.
10790 (lto_input_ts_decl_common_tree_pointers): Same.
10791 (lto_input_ts_decl_non_common_tree_pointers): Same.
10792 (lto_input_ts_decl_with_vis_tree_pointers): Same.
10793 (lto_input_ts_field_decl_tree_pointers): Same.
10794 (lto_input_ts_function_decl_tree_pointers): Same.
10795 (lto_input_ts_type_common_tree_pointers): Same.
10796 (lto_input_ts_type_non_common_tree_pointers): Same.
10797 (lto_input_ts_list_tree_pointers): Same.
10798 (lto_input_ts_vec_tree_pointers): Same.
10799 (lto_input_ts_exp_tree_pointers): Same.
10800 (lto_input_ts_block_tree_pointers): Same.
10801 (lto_input_ts_binfo_tree_pointers): Same.
10802 (lto_input_ts_constructor_tree_pointers): Same.
10803 (lto_input_ts_omp_clause_tree_pointers): Same.
10804 (streamer_read_tree_body): Same.
10805 * tree-streamer.h: Same.
10806 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
10807 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
10808 (vect_analyze_possibly_independent_ddr): Same.
10809 (vect_analyze_data_ref_dependence): Same.
10810 (vect_compute_data_ref_alignment): Same.
10811 (vect_enhance_data_refs_alignment): Same.
10812 (vect_analyze_data_ref_access): Same.
10813 (vect_check_gather_scatter): Same.
10814 (vect_find_stmt_data_reference): Same.
10815 (vect_create_addr_base_for_vector_ref): Same.
10816 (vect_setup_realignment): Same.
10817 (vect_supportable_dr_alignment): Same.
10818 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
10819 (adjust_phi_and_debug_stmts): Same.
10820 (vect_set_loop_mask): Same.
10821 (add_preheader_seq): Same.
10822 (vect_maybe_permute_loop_masks): Same.
10823 (vect_set_loop_masks_directly): Same.
10824 (vect_set_loop_condition_masked): Same.
10825 (vect_set_loop_condition_unmasked): Same.
10826 (slpeel_duplicate_current_defs_from_edges): Same.
10827 (slpeel_add_loop_guard): Same.
10828 (slpeel_can_duplicate_loop_p): Same.
10829 (create_lcssa_for_virtual_phi): Same.
10830 (iv_phi_p): Same.
10831 (vect_update_ivs_after_vectorizer): Same.
10832 (vect_gen_vector_loop_niters_mult_vf): Same.
10833 (slpeel_update_phi_nodes_for_loops): Same.
10834 (slpeel_update_phi_nodes_for_guard1): Same.
10835 (find_guard_arg): Same.
10836 (slpeel_update_phi_nodes_for_guard2): Same.
10837 (slpeel_update_phi_nodes_for_lcssa): Same.
10838 (vect_do_peeling): Same.
10839 (vect_create_cond_for_alias_checks): Same.
10840 (vect_loop_versioning): Same.
10841 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
10842 (vect_inner_phi_in_double_reduction_p): Same.
10843 (vect_analyze_scalar_cycles_1): Same.
10844 (vect_fixup_scalar_cycles_with_patterns): Same.
10845 (vect_get_loop_niters): Same.
10846 (bb_in_loop_p): Same.
10847 (vect_get_max_nscalars_per_iter): Same.
10848 (vect_verify_full_masking): Same.
10849 (vect_compute_single_scalar_iteration_cost): Same.
10850 (vect_analyze_loop_form_1): Same.
10851 (vect_analyze_loop_form): Same.
10852 (vect_active_double_reduction_p): Same.
10853 (vect_analyze_loop_operations): Same.
10854 (neutral_op_for_slp_reduction): Same.
10855 (vect_is_simple_reduction): Same.
10856 (vect_model_reduction_cost): Same.
10857 (get_initial_def_for_reduction): Same.
10858 (get_initial_defs_for_reduction): Same.
10859 (vect_create_epilog_for_reduction): Same.
10860 (vectorize_fold_left_reduction): Same.
10861 (vectorizable_reduction): Same.
10862 (vectorizable_induction): Same.
10863 (vectorizable_live_operation): Same.
10864 (loop_niters_no_overflow): Same.
10865 (vect_get_loop_mask): Same.
10866 (vect_transform_loop_stmt): Same.
10867 (vect_transform_loop): Same.
10868 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
10869 (vect_determine_precisions): Same.
10870 (vect_pattern_recog_1): Same.
10871 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10872 * tree-vect-stmts.c (stmt_vectype): Same.
10873 (process_use): Same.
10874 (vect_init_vector_1): Same.
10875 (vect_truncate_gather_scatter_offset): Same.
10876 (get_group_load_store_type): Same.
10877 (vect_build_gather_load_calls): Same.
10878 (vect_get_strided_load_store_ops): Same.
10879 (vectorizable_simd_clone_call): Same.
10880 (vectorizable_store): Same.
10881 (permute_vec_elements): Same.
10882 (vectorizable_load): Same.
10883 (vect_transform_stmt): Same.
10884 (supportable_widening_operation): Same.
10885 * tree-vectorizer.c (vec_info::replace_stmt): Same.
10886 (vec_info::free_stmt_vec_info): Same.
10887 (vect_free_loop_info_assumptions): Same.
10888 (vect_loop_vectorized_call): Same.
10889 (set_uid_loop_bbs): Same.
10890 (vectorize_loops): Same.
10891 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
10892 * tree.c (add_tree_to_fld_list): Same.
10893 (fld_type_variant_equal_p): Same.
10894 (fld_decl_context): Same.
10895 (fld_incomplete_type_of): Same.
10896 (free_lang_data_in_binfo): Same.
10897 (need_assembler_name_p): Same.
10898 (find_decls_types_r): Same.
10899 (get_eh_types_for_runtime): Same.
10900 (find_decls_types_in_eh_region): Same.
10901 (find_decls_types_in_node): Same.
10902 (assign_assembler_name_if_needed): Same.
10903 * value-prof.c (stream_out_histogram_value): Same.
10904 * value-prof.h: Same.
10905 * var-tracking.c (use_narrower_mode): Same.
10906 (prepare_call_arguments): Same.
10907 (vt_expand_loc_callback): Same.
10908 (resolve_expansions_pending_recursion): Same.
10909 (vt_expand_loc): Same.
10910 * varasm.c (const_hash_1): Same.
10911 (compare_constant): Same.
10912 (tree_output_constant_def): Same.
10913 (simplify_subtraction): Same.
10914 (get_pool_constant): Same.
10915 (output_constant_pool_2): Same.
10916 (output_constant_pool_1): Same.
10917 (mark_constants_in_pattern): Same.
10918 (mark_constant_pool): Same.
10919 (get_section_anchor): Same.
10920 * vr-values.c (compare_range_with_value): Same.
10921 (vr_values::extract_range_from_phi_node): Same.
10922 * vr-values.h: Same.
10923 * web.c (unionfind_union): Same.
10924 * wide-int.h: Same.
10925
10926 2019-07-09 Martin Sebor <msebor@redhat.com>
10927
10928 PR c++/61339
10929 * align.h: Change class-key from class to struct and vice versa
10930 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
10931 * alloc-pool.h: Same.
10932 * asan.c (shadow_mem_size): Same.
10933 * auto-profile.c: Same.
10934 * basic-block.h: Same.
10935 * bitmap.h: Same.
10936 * cfgexpand.c (set_rtl): Same.
10937 (expand_one_stack_var_at): Same.
10938 * cfghooks.h: Same.
10939 * cfgloop.h: Same.
10940 * cgraph.h: Same.
10941 * config/i386/i386.h: Same.
10942 * df-problems.c (df_print_bb_index): Same.
10943 * df-scan.c: Same.
10944 * df.h (df_single_use): Same.
10945 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
10946 (layout::annotation_line_showed_range_p): Same.
10947 (get_printed_columns): Same.
10948 (correction::ensure_terminated): Same.
10949 (line_corrections::~line_corrections): Same.
10950 * dojump.h: Same.
10951 * dse.c: Same.
10952 * dump-context.h: Same.
10953 * dumpfile.h: Same.
10954 * dwarf2out.c: Same.
10955 * edit-context.c: Same.
10956 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
10957 * flags.h: Same.
10958 * function.c (assign_stack_local): Same.
10959 * function.h: Same.
10960 * gcc.c: Same.
10961 * gcov.c (block_info::block_info): Same.
10962 * genattrtab.c: Same.
10963 * genextract.c: Same.
10964 * genmatch.c (comparison_code_p): Same.
10965 (id_base::id_base): Same.
10966 (decision_tree::print): Same.
10967 * genoutput.c: Same.
10968 * genpreds.c (write_one_predicate_function): Same.
10969 * genrecog.c (validate_pattern): Same.
10970 (find_operand_positions): Same.
10971 (optimize_subroutine_group): Same.
10972 (merge_pattern_transition::merge_pattern_transition): Same.
10973 (merge_pattern_info::merge_pattern_info): Same.
10974 (merge_state_result::merge_state_result): Same.
10975 (merge_into_state): Same.
10976 * gensupport.c: Same.
10977 * gensupport.h: Same.
10978 * ggc-common.c (init_ggc_heuristics): Same.
10979 * ggc-tests.c (test_union): Same.
10980 * gimple-loop-interchange.cc (dump_induction): Same.
10981 * gimple-loop-versioning.cc: Same.
10982 * gimple-match.h (gimple_match_cond::any_else): Same.
10983 * gimple-ssa-backprop.c: Same.
10984 * gimple-ssa-sprintf.c: Same.
10985 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
10986 Same.
10987 (store_immediate_info::store_immediate_info): Same.
10988 (merged_store_group::apply_stores): Same.
10989 (get_location_for_stmts): Same.
10990 * gimple-ssa-strength-reduction.c: Same.
10991 * gimple-ssa-warn-alloca.c: Same.
10992 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
10993 * godump.c (go_type_decl): Same.
10994 * hash-map-tests.c (test_map_of_strings_to_int): Same.
10995 * hash-map.h: Same.
10996 * hash-set-tests.c (test_set_of_strings): Same.
10997 * hsa-brig.c: Same.
10998 * hsa-common.h: Same.
10999 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
11000 * input.c (assert_loceq): Same.
11001 * input.h: Same.
11002 * ipa-cp.c: Same.
11003 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
11004 * ipa-fnsummary.h: Same.
11005 * ipa-inline.h: Same.
11006 * ipa-prop.h: Same.
11007 * ipa-split.c (visit_bb): Same.
11008 * ira-int.h (minmax_set_iter_next): Same.
11009 * loop-invariant.c: Same.
11010 * loop-iv.c: Same.
11011 * lra-eliminations.c: Same.
11012 * lra-int.h: Same.
11013 * lra-lives.c (mark_regno_dead): Same.
11014 * lra-remat.c: Same.
11015 * lra-spills.c: Same.
11016 * lto-streamer.h: Same.
11017 * mem-stats.h: Same.
11018 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
11019 * omp-low.c (omp_clause_aligned_alignment): Same.
11020 * optabs-query.h (get_vcond_eq_icode): Same.
11021 * optabs.h: Same.
11022 * opts.c (wrap_help): Same.
11023 * poly-int.h: Same.
11024 * predict.c (predict_paths_leading_to_edge): Same.
11025 * pretty-print.h: Same.
11026 * profile-count.h: Same.
11027 * read-md.h: Same.
11028 * read-rtl-function.c: Same.
11029 * ree.c: Same.
11030 * reginfo.c: Same.
11031 * regrename.c: Same.
11032 * regrename.h: Same.
11033 * reload.h: Same.
11034 * rtl-iter.h: Same.
11035 * rtl.h (costs_add_n_insns): Same.
11036 * sanopt.c: Same.
11037 * sched-int.h: Same.
11038 * sel-sched-ir.h: Same.
11039 * selftest.h: Same.
11040 * sese.h (vec_find): Same.
11041 * stmt.c: Same.
11042 * target-globals.h: Same.
11043 * tree-affine.c (aff_combination_find_elt): Same.
11044 * tree-affine.h: Same.
11045 * tree-data-ref.h: Same.
11046 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
11047 * tree-predcom.c: Same.
11048 * tree-scalar-evolution.c (find_var_scev_info): Same.
11049 * tree-ssa-alias.h: Same.
11050 * tree-ssa-ccp.c: Same.
11051 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
11052 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
11053 (rewrite_mem_refs): Same.
11054 (execute_sm_if_changed): Same.
11055 (hoist_memory_references): Same.
11056 * tree-ssa-loop-ivopts.c (operator<=): Same.
11057 * tree-ssa-loop.h: Same.
11058 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
11059 * tree-ssa-structalias.c: Same.
11060 * tree-switch-conversion.h (cluster::cluster): Same.
11061 (simple_cluster::simple_cluster): Same.
11062 * tree-vect-patterns.c (type_conversion_p): Same.
11063 * tree-vectorizer.c (dump_stmt_cost): Same.
11064 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
11065 * tree.c (protected_set_expr_location): Same.
11066 * tree.h (desired_pro_or_demotion_p): Same.
11067 (fndecl_built_in_p): Same.
11068 * unique-ptr-tests.cc: Same.
11069 * var-tracking.c (delete_variable_part): Same.
11070 * varasm.c (assemble_real): Same.
11071 (tree_output_constant_def): Same.
11072 * vec.c: Same.
11073 * wide-int-bitmask.h: Same.
11074 * wide-int.h (decompose): Same.
11075
11076 2019-07-09 Richard Biener <rguenther@suse.de>
11077
11078 PR tree-optimization/91114
11079 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
11080 find a vector type isn't fatal.
11081
11082 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
11083
11084 * config/aarch64/aarch64-simd.md
11085 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
11086 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
11087 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
11088 (*aarch64_crypto_aese_fused,
11089 *aarch64_crypto_aesd_fused): Update to new definition.
11090 * config/aarch64/aarch64.c
11091 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
11092
11093 2019-07-09 Richard Biener <rguenther@suse.de>
11094
11095 * gimple-match.h (gimple_match_op::resimplify): New.
11096 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
11097 gimple_resimplify4, gimple_resimplify5): Remove.
11098 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
11099 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
11100 Make static.
11101 (gimple_match_op::resimplify): New.
11102 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
11103 according to availability. Use gimple_match_op::resimplify.
11104
11105 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
11106
11107 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
11108
11109 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
11110
11111 * config/arm/crypto.md:
11112 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
11113 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
11114 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
11115 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
11116 * config/arm/arm.c
11117 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
11118 * config/arm/aarch-common-protos.h
11119 (aarch_crypto_can_dual_issue): Remove.
11120 * config/arm/aarch-common.c
11121 (aarch_crypto_can_dual_issue): Likewise.
11122 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
11123 * config/arm/cortex-a53.md: Likewise.
11124 * config/arm/cortex-a57.md: Likewise.
11125 * config/arm/iterators.md:
11126 (CRYPTO_BINARY): Redefine.
11127 (CRYPTO_UNARY): Removed.
11128 (CRYPTO_AES, CRYPTO_AESMC): New.
11129
11130 2019-07-09 Richard Biener <rguenther@suse.de>
11131
11132 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
11133 (vn_reference_lookup_3): If the main ref has no access path recorded
11134 but orig_ref has use it to do access-path based disambiguation.
11135 (vn_reference_lookup_pieces): Adjust.
11136 (vn_reference_lookup): Pass down original ref if we valueized.
11137
11138 2019-07-09 Martin Liska <mliska@suse.cz>
11139
11140 * doc/extend.texi: Document influence on loop
11141 optimizers.
11142
11143 2019-07-09 Martin Liska <mliska@suse.cz>
11144
11145 * lto-compress.c (lto_normalized_zstd_level): Do not use
11146 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
11147 of libzstd. One can use 0 as a default compression level.
11148
11149 2019-07-09 Martin Liska <mliska@suse.cz>
11150
11151 * doc/invoke.texi: Add link from -fprofile-dir option.
11152 Use better wording for 'gcno filename'.
11153
11154 2019-07-08 Martin Sebor <msebor@redhat.com>
11155
11156 PR middle-end/71924
11157 PR middle-end/90549
11158 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
11159 comment.
11160 (args_loc_t): New type.
11161 (args_loc_t, locmap_t): same.
11162 (diag_returned_locals): New function.
11163 (is_addr_local): Same.
11164 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
11165 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
11166 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
11167
11168 2019-07-08 Jakub Jelinek <jakub@redhat.com>
11169
11170 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
11171 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
11172 and casts in offset when different, both through gimple stmts
11173 and through trees. Rewritten using loops to minimize code duplication
11174 for each operand.
11175
11176 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
11177
11178 * emit-rtl.c (set_insn_locations): New function moved from...
11179 * function.c (set_insn_locations): ...here.
11180 * ira-emit.c (emit_moves): Propagate location of the first instruction
11181 to the inserted move instructions.
11182 * reg-stack.c (compensate_edge): Set the location if the sequence is
11183 inserted on the edge.
11184 * rtl.h (set_insn_locations): Declare.
11185
11186 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
11187
11188 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
11189 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
11190 .machine string.
11191
11192 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
11193
11194 PR rtl-optimization/88233
11195 * common.opt (fsplit-wide-types-early): New option.
11196 * common/config/rs6000/rs6000-common.c
11197 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
11198 OPT_LEVELS_ALL.
11199 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
11200 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
11201 flag_split_wide_types_early.
11202 (pass_data_lower_subreg3): New.
11203 (pass_lower_subreg3): New.
11204 (make_pass_lower_subreg3): New.
11205 * passes.def (pass_lower_subreg2): Move after the loop passes.
11206 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
11207 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
11208 the pass pipeline; its previous place is taken by ...
11209 (make_pass_lower_subreg3): ... this.
11210
11211 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11212
11213 * config/s390/s390.c (s390_shift_truncation_mask): Define.
11214 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11215
11216 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11217
11218 * config/s390/constraints.md: Add new jsc constraint.
11219 * config/s390/predicates.md: New predicates.
11220 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
11221 * config/s390/s390.c (s390_valid_shift_count): New function.
11222 (print_shift_count_operand): Use s390_valid_shift_count.
11223 (print_operand): Likewise.
11224 * config/s390/s390.md: Use new predicate.
11225 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
11226 * config/s390/vector.md: Use new predicate.
11227
11228 2019-07-08 Andrew Waterman <andrew@sifive.com>
11229 Jim Wilson <jimw@sifive.com>
11230
11231 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
11232 bitsize instead of BITS_PER_WORD.
11233
11234 2019-07-08 Martin Liska <mliska@suse.cz>
11235
11236 * collect2.c (defined): Revert to before r254460.
11237 (scan_prog_file): Revert to before r254460.
11238
11239 2019-07-08 Richard Biener <rguenther@suse.de>
11240
11241 PR tree-optimization/83518
11242 * tree-ssa-sccvn.c: Include splay-tree.h.
11243 (struct pd_range, struct pd_data): New.
11244 (struct vn_walk_cb_data): Add data to track partial definitions.
11245 (vn_walk_cb_data::~vn_walk_cb_data): New.
11246 (vn_walk_cb_data::push_partial_def): New.
11247 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
11248 (vn_reference_lookup_2): When partial defs are registered give up.
11249 (vn_reference_lookup_3): Track partial defs for memset and
11250 constructor zeroing and for defs from constants.
11251
11252 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11253
11254 * doc/install.texi (bootstrap-Og): Document.
11255
11256 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11257
11258 * config/riscv/pic.md (*local_pic_load_s<mode>)
11259 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
11260 referenced by <mode>, giving...
11261 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
11262 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
11263 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
11264 use <X:MODE> for the mode attribute.
11265
11266 2019-07-07 Jeff Law <law@redhat.com>
11267
11268 PR tree-optimization/91090
11269 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
11270 in handling of ranges to simplify switch statements.
11271
11272 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11273
11274 * config/darwin.c (darwin_override_options): Make a final check on PIC
11275 options.
11276
11277 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11278
11279 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
11280 on for kernel code.
11281
11282 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11283
11284 PR target/91068
11285 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
11286 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
11287 instead of matching them to "l" output operands.
11288
11289 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11290
11291 * config/mips/mips.c (mips_split_move): Zero-initialize addr
11292 and check whether addr.reg is nonnull before using it.
11293
11294 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11295
11296 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
11297 ctx->for_simd_scan_phase simd copy the outer var to the privatized
11298 variable(s). For conditional lastprivate look through outer
11299 GIMPLE_OMP_SCAN context.
11300 (lower_omp_1): For conditional lastprivate look through outer
11301 GIMPLE_OMP_SCAN context.
11302
11303 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
11304 member to combined_into_simd_safelen1.
11305 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
11306 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
11307 clauses if ctx->combined_into_simd_safelen1 put statements after the
11308 predicate conditionalized block rather than into it.
11309
11310 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11311
11312 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
11313 operand 1.
11314 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
11315 Make the choice of <mode> explicit, giving...
11316 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
11317
11318 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11319
11320 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
11321 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
11322 of .md attributes.
11323 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
11324 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
11325 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
11326 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
11327 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
11328 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
11329 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
11330 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
11331 (*avx512f_scatterdi<mode>): Likewise.
11332 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
11333
11334 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11335
11336 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
11337 specify the mode iterator referenced by <mode>, giving...
11338 (*push1_h8300hs_<QHI:mode>): ...this.
11339
11340 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11341
11342 * config/gcn/gcn-valu.md
11343 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
11344 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
11345 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
11346 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
11347 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
11348 but using the _exec comparison patterns.
11349 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
11350 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
11351 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
11352 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
11353 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
11354 but using the _exec comparison patterns.
11355
11356 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11357
11358 * config/arm/sync.md
11359 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
11360 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
11361 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
11362 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
11363 <SIDI:cas_cmp_str>.
11364
11365 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11366
11367 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
11368 (maybe_lookup_ctx): Add forward declaration.
11369 (omp_find_scan): Likewise. Walk into body of simd if composited
11370 with worksharing loop.
11371 (scan_omp_simd_scan): New function.
11372 (scan_omp_1_stmt): Call it.
11373 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11374 ctx->for_simd_scan_phase.
11375 (lower_rec_input_clauses): Do much less work for inscan reductions
11376 in ctx->for_simd_scan_phase is_simd regions.
11377 (lower_omp_scan): Set is_simd also on simd constructs composited
11378 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
11379 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
11380 emit their body after in simd constructs composited with worksharing
11381 loop.
11382 (lower_omp_for_scan): Handle worksharing loop composited with simd.
11383
11384 * omp-low.c (omp_find_scan): Make static.
11385 (lower_omp_for_scan): Fix order of merge arguments in input phase of
11386 the second loop, var2 represents the first partial sum and so needs
11387 to go before rprivb[ivar].
11388
11389 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
11390
11391 * config/rs6000/rs6000-logue.c: Remove unused code.
11392
11393 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11394
11395 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11396
11397 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
11398
11399 PR target/90712
11400 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11401 check with a frame laid out check.
11402
11403 2019-07-05 Richard Biener <rguenther@suse.de>
11404
11405 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11406 when comparing against a store with possibly the same value.
11407
11408 2019-07-05 Richard Biener <rguenther@suse.de>
11409
11410 PR tree-optimization/91091
11411 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11412 (walk_non_aliased_vuses): Likewise.
11413 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11414 (get_continuation_for_phi): New tbaa_p parameter and pass
11415 it down.
11416 (walk_non_aliased_vuses): Likewise.
11417 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11418 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11419 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11420 Likewise.
11421 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11422 (adjust_offsets_for_equal_base_address): New function.
11423 (vn_reference_lookup_3): Use it to catch more base equivalences.
11424 Handle and pass down tbaa_p flag.
11425 (vn_reference_lookup_pieces): Adjust.
11426 (vn_reference_lookup): Remove alias-set altering, instead pass
11427 down false as tbaa_p.
11428
11429 2019-07-05 Richard Biener <rguenther@suse.de>
11430
11431 PR tree-optimization/91091
11432 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11433 accesses can happen with -fno-strict-aliasing.
11434
11435 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
11436
11437 * tree-ssa-alias.c (alias_stats): Add
11438 nonoverlapping_component_refs_since_match_p_must_overlap.
11439 (dump_alias_stats): Print it.
11440 (nonoverlapping_component_refs_since_match_p): Add early exit.
11441 (nonoverlapping_component_refs_p): Do not account early exit.
11442
11443 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11444
11445 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11446 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11447 (emit_eh_dispatch): Delete.
11448 (lower_catch): Emit the eh_dispatch manually and set the location of
11449 the first catch statement onto it.
11450 (lower_eh_filter): Emit the eh_dispatch manually and set location.
11451 (lower_eh_dispatch): Propagate location.
11452 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11453 (eliminate_build): Likewise.
11454
11455 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11456
11457 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11458 phi nodes if possible.
11459 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11460 location info on the newly created statement.
11461 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11462 newly created increment if needed.
11463
11464 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11465
11466 PR middle-end/78884
11467 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11468 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11469 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11470 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11471 ctx->add_safelen1 is set.
11472
11473 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11474 GOMP_loop_start at the start of second worksharing loop in a scan.
11475 For nowait, don't emit GOMP_loop_end_nowait at the end of first
11476 worksharing loop in a scan even if there are conditional lastprivates,
11477 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11478
11479 2019-07-04 Jan Hubicka <jh@suse.cz>
11480
11481 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11482 Fix check for match in the ref walk.
11483
11484 2019-07-04 Martin Liska <mliska@suse.cz>
11485
11486 * tree-ssa-loop-niter.c
11487 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11488 (estimate_numbers_of_iterations):
11489 Support __builtin_expect_with_probability for analysis
11490 of # of loop iterations.
11491
11492 2019-07-04 Alexandre Oliva <oliva@adacore.com>
11493
11494 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11495 * except.c: Likewise.
11496 * expr.c (expand_expr_real_1): Reject it.
11497 * gimplify.c (gimplify_expr): Gimplify it, within
11498 TRY_FINALLY_EXPR.
11499 * tree-dump.c (dequeue_and_dump): Dump it.
11500 * tree-pretty-print.c (dump_generic_node): Likewise.
11501 * tree.c (block_may_fallthru): Handle it.
11502 * tree.def (EH_ELSE_EXPR): Introduce it.
11503 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11504 with GIMPLE_EH_ELSE as try/finally/else.
11505
11506 2019-07-04 Richard Biener <rguenther@suse.de>
11507
11508 PR ipa/91062
11509 * tree-pass.h (execute_all_ipa_transforms): Add a flag
11510 parameter whether to disable GC collection.
11511 * passes.c (execute_one_ipa_transform_pass): Likewise, and
11512 honor it.
11513 (execute_all_ipa_transforms): Likewise and pass it down.
11514 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11515 collection from applying IPA transforms.
11516 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11517 from applying IPA transforms.
11518
11519 2019-07-04 Richard Biener <rguenther@suse.de>
11520
11521 PR tree-optimization/90911
11522 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11523 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11524 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11525 scalar_loop_scaling.
11526 (vect_transform_loop): Scale scalar loop profile if needed.
11527 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11528 the loop copy from if-conversion adjust edge probabilities
11529 and scale the vectorized loop body profile, queue the scalar
11530 profile for updating after peeling.
11531
11532 2019-07-04 Jan Hubicka <jh@suse.cz>
11533
11534 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11535 parameters; return early for must-alias.
11536 (indirect_ref_may_alias_decl_p): Likewise; when establishing
11537 outer types match, try nonoverlapping_component_refs
11538 if must-alias is not obvious.
11539 (indirect_refs_may_alias_p): Likewise.
11540 (refs_may_alias_p_2): Likewise.
11541
11542 2019-07-04 Richard Biener <rguenther@suse.de>
11543
11544 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11545 argument.
11546 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11547 globals into...
11548 (struct vn_walk_cb_data): New callback data struct.
11549 (vn_reference_lookup_2): Adjust.
11550 (vn_reference_lookup_3): Likewise.
11551 (vn_reference_lookup_pieces): Likewise.
11552 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11553 (visit_reference_op_load): Adjust.
11554
11555 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11556
11557 PR tree-optimization/91063
11558 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11559 stmt from stmts sequence before calling vect_init_vector_1.
11560 Formatting fix.
11561
11562 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11563
11564 PR target/88833
11565 * fwprop.c (reg_single_def_p): New function.
11566 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11567 (forward_propagate_into): New parameter reg_prop_only
11568 with default value false.
11569 Propagate def's src into loop only if SET_SRC and SET_DEST
11570 of def_set have single definitions.
11571 Likewise if reg_prop_only is set to true.
11572 (fwprop): New param fwprop_addr_p.
11573 Integrate fwprop_addr into fwprop.
11574 (fwprop_addr): Remove.
11575 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11576 to true.
11577 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11578 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11579 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11580
11581 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11582
11583 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11584 in worksharing loop scans.
11585
11586 PR tree-optimization/91074
11587 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
11588 temporary.
11589
11590 PR rtl-optimization/90756
11591 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
11592 for VECTOR_TYPE_P.
11593
11594 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
11595
11596 * config/aarch64/aarch64.md: Remove redundant constraints from
11597 define_expand but keep some patterns untouched if they are
11598 specially selected by TARGET_SECONDARY_RELOAD hook.
11599 * config/aarch64/aarch64-sve.md: Likewise.
11600 * config/aarch64/atomics.md: Remove redundant constraints from
11601 define_expand.
11602 * config/aarch64/aarch64-simd.md: Likewise.
11603
11604 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11605
11606 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
11607 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
11608 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
11609 clauses.
11610 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
11611 DARWIN_NOPIE_SPEC.
11612
11613 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11614
11615 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
11616 (STARTFILE_SPEC): Split crt3 into a separate spec.
11617 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
11618 (DARWIN_CRT2_SPEC): New.
11619 (DARWIN_CRT3_SPEC): New.
11620 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
11621 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
11622 (DARWIN_CRT3_SPEC): New.
11623
11624 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
11625
11626 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
11627 Change the RTL attribute "length" from "4" to "*" to allow the
11628 length attribute to be adjusted automatically for prefixed load,
11629 store, and add immediate instructions.
11630 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
11631 Likewise.
11632 (extendsi<mode>2, EXTSI iterator): Likewise.
11633 (movsi_internal1): Likewise.
11634 (movsi_from_sf): Likewise.
11635 (movdi_from_sf_zero_ext): Likewise.
11636 (mov<mode>_internal): Likewise.
11637 (movcc_internal1, QHI iterator): Likewise.
11638 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
11639 (movsf_from_si): Likewise.
11640 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
11641 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
11642 (mov<mode>, FMOVE128 iterator): Likewise.
11643 (movdi_internal64): Likewise.
11644 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
11645 Likewise.
11646 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
11647 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
11648 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
11649 (vsx_splat_v4sf): Likewise.
11650
11651 2019-07-03 Mark Wielaard <mark@klomp.org>
11652
11653 PR debug/90981
11654 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
11655 DW_AT_addr_base if there is actually a .debug_addr section with
11656 addresses.
11657 (output_addr_table): Add DWARF5 table header generation here after
11658 checking there are actually any addresses from...
11659 (dwarf2out_finish): ...here.
11660
11661 2019-07-03 Richard Biener <rguenther@suse.de>
11662
11663 PR middle-end/91069
11664 * match.pd (vec_perm -> bit_insert): Fix element read from
11665 first vector.
11666
11667 2019-07-03 Martin Liska <mliska@suse.cz>
11668
11669 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
11670 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
11671 condition.
11672 * generic-match-head.c: Include dbgcnt.h.
11673 * gimple-match-head.c: Likewise.
11674
11675 2019-07-03 Martin Liska <mliska@suse.cz>
11676
11677 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
11678 (GCOV_COUNTER_V_TOPN): New.
11679 (GCOV_COUNTER_V_INDIR): Use _topn.
11680 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
11681 (GCOV_TOPN_VALUES): New.
11682 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
11683 (GCOV_TOPN_VALUES_COUNTERS): New.
11684 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
11685 * tree-profile.c:
11686 (gimple_init_gcov_profiler): Rename variables from one_value
11687 to topn_values.
11688 (gimple_gen_one_value_profiler): Remove.
11689 (gimple_gen_topn_values_profiler): New function.
11690 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
11691 names instead of SINGLE_VALUE.
11692 (stream_out_histogram_value): Likewise.
11693 (stream_in_histogram_value): Likewise.
11694 (get_most_common_single_value): Likewise.
11695 (gimple_divmod_fixed_value_transform): Likewise.
11696 (gimple_stringops_transform): Likewise.
11697 (gimple_divmod_values_to_profile): Likewise.
11698 (gimple_stringops_values_to_profile): Likewise.
11699 (gimple_find_values_to_profile): Likewise.
11700 * value-prof.h (enum hist_type): Rename to TOPN.
11701 (gimple_gen_one_value_profiler): Remove.
11702 (gimple_gen_topn_values_profiler): New.
11703
11704 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
11705
11706 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
11707 if it has the DW_AT_data_member_location attribute.
11708
11709 2019-07-03 Richard Biener <rguenther@suse.de>
11710
11711 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
11712 dumping.
11713
11714 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
11715
11716 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
11717 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
11718 (tlsdesc_small_sve_<mode>): Likewise.
11719
11720 2019-07-03 Martin Liska <mliska@suse.cz>
11721
11722 * Makefile.in: Define ZSTD_LIB.
11723 * common.opt: Adjust compression level
11724 to support also zstd levels.
11725 * config.in: Regenerate.
11726 * configure: Likewise.
11727 * configure.ac: Add --with-zstd and --with-zstd-include options
11728 and detect ZSTD.
11729 * doc/install.texi: Mention zstd dependency.
11730 * gcc.c: Print supported LTO compression algorithms.
11731 * lto-compress.c (lto_normalized_zstd_level): Likewise.
11732 (lto_compression_zstd): Likewise.
11733 (lto_uncompression_zstd): Likewise.
11734 (lto_end_compression): Dispatch in between zlib and zstd.
11735 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
11736 (lto_uncompression_zlib): Make it static.
11737 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
11738 * lto-section-in.c (lto_get_section_data): Pass info
11739 about used compression.
11740 * lto-streamer-out.c: By default use zstd when possible.
11741 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
11742 (TV_IPA_LTO_COMPRESS): Likewise for compression.
11743
11744 2019-07-03 Martin Liska <mliska@suse.cz>
11745
11746 * lto-section-in.c (lto_get_section_data): Add "lto" section.
11747 * lto-section-out.c (lto_destroy_simple_output_block): Never
11748 compress LTO_section_lto section.
11749 * lto-streamer-out.c (produce_asm): Do not set major_version
11750 and minor_version.
11751 (lto_output_toplevel_asms): Likewise.
11752 (produce_lto_section): New function.
11753 (lto_output): Call produce_lto_section.
11754 (lto_write_mode_table): Do not set major_version and
11755 minor_version.
11756 (produce_asm_for_decls): Likewise.
11757 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
11758 type.
11759 (struct lto_header): Remove.
11760 (struct lto_section): New struct.
11761 (struct lto_simple_header): Do not inherit from lto_header.
11762 (struct lto_file_decl_data): Add lto_section_header field.
11763
11764 2019-07-03 Martin Liska <mliska@suse.cz>
11765
11766 * lra-eliminations.c (eliminate_regs_in_insn): Remove
11767 dead assignemts.
11768 * reg-stack.c (check_asm_stack_operands): Likewise.
11769 * tree-ssa-structalias.c (create_function_info_for): Likewise.
11770 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11771 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
11772 force_expand_binop.
11773
11774 2019-07-03 Martin Liska <mliska@suse.cz>
11775
11776 PR tree-optimization/90892
11777 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
11778 in string constants.
11779
11780 2019-07-03 Martin Liska <mliska@suse.cz>
11781
11782 PR middle-end/90899
11783 * multiple_target.c (create_dispatcher_calls): Add to comdat
11784 group only if set for ifunc.
11785
11786 2019-07-03 Martin Liska <mliska@suse.cz>
11787
11788 PR target/88056
11789 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11790 Define local_object_name in outer scope in order to handle
11791 use-after-scope issue.
11792
11793 2019-07-03 Martin Liska <mliska@suse.cz>
11794
11795 * common.opt: Add fprofile-note.
11796 * coverage.c (coverage_init): Append the option
11797 to bbg_file_name.
11798 * doc/invoke.texi: Document -fprofile-note.
11799
11800 2019-07-03 Jakub Jelinek <jakub@redhat.com>
11801
11802 PR tree-optimization/91033
11803 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
11804 vect_analyze_data_refs): Add bool * arguments.
11805 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
11806 if failure is due to scatter/gather, set *fatal to false if non-NULL.
11807 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11808 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
11809 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
11810 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
11811 vect_analyze_data_refs caller.
11812
11813 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
11814 clause.
11815 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
11816 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
11817 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
11818 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11819 OMP_CLAUSE__SCANTEMP_ entry.
11820 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
11821 * tree-pretty-print.c (dump_omp_clause): Likewise.
11822 * tree-nested.c (convert_nonlocal_omp_clauses,
11823 convert_local_omp_clauses): Likewise.
11824 * omp-general.h (struct omp_for_data): Add have_scantemp and
11825 have_nonctrl_scantemp members.
11826 * omp-general.c (omp_extract_for_data): Initialize them.
11827 * omp-low.c (struct omp_context): Add scan_exclusive member.
11828 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
11829 result again with GF_OMP_FOR_KIND_MASK. Initialize also
11830 ctx->scan_exclusive.
11831 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
11832 of !ctx->scan_inclusive.
11833 (lower_rec_input_clauses): Simplify gimplification of dtors using
11834 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
11835 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
11836 loops. Don't add barrier for reduction_omp_orig_ref if
11837 ctx->scan_??xclusive.
11838 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
11839 (lower_omp_scan): Use ctx->scan_exclusive instead
11840 of !ctx->scan_inclusive. Handle worksharing loops with inscan
11841 reductions. Use new_vard != new_var instead of repeated
11842 omp_is_reference calls.
11843 (omp_find_scan, lower_omp_for_scan): New functions.
11844 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
11845 inscan reductions.
11846 * omp-expand.c (expand_omp_scantemp_alloc): New function.
11847 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
11848 and fd->have_scantemp.
11849
11850 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
11851 on worksharing loop propagate it as shared clause to containing
11852 combined parallel.
11853
11854 * omp-expand.c (expand_omp_for_static_nochunk,
11855 expand_omp_for_static_chunk): For nowait worksharing loop with
11856 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
11857 at the end.
11858
11859 2019-07-02 qing zhao <qing.zhao@oracle.com>
11860
11861 PR preprocessor/90581
11862 * doc/cppopts.texi: Add document for -fmax-include-depth.
11863 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
11864
11865 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
11866
11867 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
11868 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
11869 (mmx_packssdw): Ditto.
11870 (mmx_punpckhbw): Ditto.
11871 (mmx_punpcklbw): Ditto.
11872 (mmx_punpckhwd): Ditto.
11873 (mmx_punpcklwd): Ditto.
11874 (mmx_punpckhdq): Ditto.
11875 (mmx_punpckldq): Ditto.
11876 (*vec_dupv4hi): Ditto.
11877 (*vec_dupv2si): Ditto.
11878 (mmx_pmovmskb): Ditto.
11879 * config/i386/sse.md (sse_cvtpi2ps): Use
11880 TARGET_SSE2 && SSE_REG_P in split condition.
11881 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
11882 TARGET_SSSE3 && SSE_REGNO_P in split condition.
11883 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
11884 (ssse3_pshufbv8qi3): Ditto.
11885 (ssse3_palignrdi): Ditto.
11886
11887 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
11888
11889 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
11890 with inlined save and restore.
11891
11892 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
11893
11894 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
11895 to be inserted on single successor edge of the entry block. Then call
11896 commit_edge_insertions instead of inserting the instructions manually.
11897 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
11898 RTL expansion and rebuild jump labels chain.
11899
11900 2019-07-02 Richard Biener <rguenther@suse.de>
11901
11902 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
11903 TI_CHREC_KNOWN.
11904 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11905 Define here.
11906 * tree.c (build_common_tree_nodes): Initialize them.
11907 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11908 Make declarations comments.
11909 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
11910 chrec_known): Remove definitions.
11911 (initialize_scalar_evolutions_analyzer): Remove.
11912 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
11913 * tree-streamer.c (preload_common_nodes): Do not preload
11914 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
11915
11916 2019-07-02 Jan Hubicka <jh@suse.cz>
11917
11918 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
11919 sanity check.
11920
11921 2019-07-02 Jan Hubicka <jh@suse.cz>
11922
11923 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
11924 to ..
11925 (nonoverlapping_component_refs_since_match_p): ... this one;
11926 handle also non-decl bases; return -1 if search gave up.
11927 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
11928 nonoverlapping_component_refs_of_decl_p_no_alias to
11929 nonoverlapping_component_refs_since_match_p_may_alias,
11930 nonoverlapping_component_refs_since_match_p_no_alias.
11931 (dump_alias_stats): Update dumping.
11932 (aliasing_matching_component_refs_p): Break out from ...;
11933 dispatch to nonoverlapping_component_refs_for_decl_p
11934 and nonoverlapping_component_refs_since_match_p.
11935 (aliasing_component_refs_p): ... here; call
11936 nonoverlapping_component_refs_p in scenarios where we can not
11937 precisely determine base match.
11938 (decl_refs_may_alias_p): Use
11939 nonoverlapping_component_refs_since_match_p.
11940 (indirect_ref_may_alias_decl_p): Do not call
11941 nonoverlapping_component_refs_p.
11942 (indirect_refs_may_alias_p): Likewise.
11943
11944 2019-07-02 Jan Hubicka <jh@suse.cz>
11945
11946 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
11947 to clobber of return value.
11948
11949 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11950
11951 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
11952 for is_neon_type instructions that have not already been categorized.
11953
11954 2019-07-02 Richard Biener <rguenther@suse.de>
11955
11956 PR tree-optimization/58483
11957 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
11958 for MEM_REF base hashing.
11959 (equal_mem_array_ref_p): Likewise for base comparison.
11960
11961 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11962
11963 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
11964 parameterized name.
11965 (signbit<mode>2): Use that name. Simplify.
11966
11967 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
11968
11969 PR middle-end/66726
11970 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
11971 Tune heuristic from PR71016 to allow MIN / MAX.
11972
11973 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11974
11975 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
11976 parameterized name.
11977 (abs<mode>2): Use that name. Simplify.
11978
11979 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11980
11981 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
11982 parameterized name.
11983 (neg<mode>2): Use that name. Simplify.
11984
11985 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11986
11987 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
11988 name.
11989 (abs<mode>2): Use that name. Simplify.
11990
11991 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11992
11993 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
11994 name.
11995 (neg<mode>2): Use that name. Simplify.
11996
11997 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
11998
11999 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
12000 ("enabled" attribute): Handle sse_noavx isa attribute.
12001 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
12002 Use TARGET_SSE && SSE_REGNO_P in split condition.
12003 (*vec_dupv2sf): Ditto.
12004
12005 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12006
12007 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
12008 name.
12009 (floatsi<mode>2): Use that name. Simplify.
12010
12011 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12012
12013 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
12014 parameterized name.
12015 (extenddf<mode>2_vsx): Make this a parameterized name.
12016 (extenddf<mode>2): Use those names. Simplify.
12017
12018 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12019
12020 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
12021 name.
12022 (eh_return): Use that name. Simplify.
12023
12024 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12025
12026 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
12027 (doloop_end): Use that name. Simplify.
12028
12029 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12030
12031 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
12032 parameterized name.
12033 (indirect_jump): Use that name. Simplify.
12034
12035 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12036
12037 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
12038 parameterized name.
12039 (abs<mode>2): Use that name. Simplify.
12040
12041 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12042
12043 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
12044 parameterized name.
12045 (fix_trunc<mode>si2): Use that name. Simplify.
12046
12047 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12048
12049 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
12050 (allocate_stack): Use that name. Simplify.
12051
12052 2019-07-01 Martin Sebor <msebor@redhat.com>
12053
12054 PR middle-end/90923
12055 * hash-map.h (hash_map::put): On insertion invoke element ctor.
12056 (hash_map::get_or_insert): Same. Reformat comment.
12057 * hash-set.h (hash_set::add): On insertion invoke element ctor.
12058 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12059 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12060 * hash-table.h (hash_table::operator=): Prevent copy assignment.
12061 (hash_table::hash_table (const hash_table&)): Use copy ctor
12062 instead of assignment to copy elements.
12063
12064 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
12065 John David Anglin <danglin@gcc.gnu.org>
12066
12067 PR target/90963
12068 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
12069 using saved frame pointer.
12070
12071 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
12072
12073 PR middle-end/64242
12074 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
12075 Add frame clobber and schedule blockage.
12076
12077 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
12078
12079 * doc/invoke.texi (Link Options): Further editorial changes to
12080 -flinker-output docs.
12081
12082 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12083
12084 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
12085 Load both operands of a PLUS into registers separately.
12086
12087 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
12088
12089 * config/s390/vector.md: Fix shift count operand printing.
12090
12091 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12092
12093 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
12094
12095 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12096
12097 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
12098 Use recog_data to test for an output operand.
12099
12100 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12101
12102 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
12103 exclude any others that are disparaged or that are bound to need
12104 a reload or spill.
12105 (ira_get_dup_out_num): Expand comment.
12106
12107 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12108
12109 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
12110 constraint string for each operand/alternative combo. Only handle
12111 '%' at the start of constraint strings, and look for it outside
12112 the main loop.
12113
12114 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12115
12116 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
12117 alternative_mask instead of HARD_REG_SET to represent a
12118 bitmask of alternatives.
12119 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12120 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
12121
12122 2019-07-01 Martin Liska <mliska@suse.cz>
12123
12124 * edit-context.c (test_applying_fixits_unreadable_file): Do not
12125 use () for a constructor call.
12126 (test_applying_fixits_line_out_of_range): Likewise.
12127 * ggc-page.c (alloc_page): Use (void *) for %p printf format
12128 argument.
12129 (free_page): Likewise.
12130
12131 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
12132
12133 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
12134 parameter names to match usage (no functional change).
12135 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
12136
12137 2019-07-01 Richard Biener <rguenther@suse.de>
12138
12139 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
12140 pass parameter.
12141 (pass_fre::execute): Honor it.
12142 * passes.def: Adjust pass_fre invocations to allow iterating,
12143 add non-iterating pass_fre before late threading/dom.
12144
12145 2019-07-01 Richard Biener <rguenther@suse.de>
12146
12147 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
12148 TARGET_MEM_REF handling to also handle address-taken ones.
12149
12150 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
12151
12152 * doc/sourcebuild.texi (Effective-Target Keywords, Other
12153 hardware attributes): Document avx512vp2intersect.
12154
12155 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12156
12157 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
12158 (abs<mode>2): New expander.
12159 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
12160 Use CODE_FOR_ssse3_absv8qi2.
12161 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
12162 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
12163
12164 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12165
12166 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
12167 to sse, sse_noavx and avx. Update all uses.
12168
12169 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12170
12171 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
12172 (*mmx_<plusminus_insn><mode>3): Ditto.
12173 (*mmx_mulv4hi3"): Ditto.
12174 (*mmx_smulv4hi3_highpart): Ditto.
12175 (*mmx_umulv4hi3_highpart): Ditto.
12176 (*mmx_pmaddwd): Ditto.
12177 (*sse2_umulv1siv1di3): Ditto.
12178 (*mmx_<code>v4hi3): Ditto.
12179 (*mmx_<code>v8qi3): Ditto.
12180 (mmx_ashr<mode>3): Ditto.
12181 ("mmx_<shift_insn><mode>3): Ditto.
12182 (*mmx_eq<mode>3): Ditto.
12183 (mmx_gt<mode>3): Ditto.
12184 (mmx_andnot<mode>3): Ditto.
12185 (*mmx_<code><mode>3): Ditto.
12186 (*mmx_pinsrw): Ditto.
12187 (*mmx_pextrw): Ditto.
12188 (mmx_pshufw_1): Ditto.
12189 (*mmx_uavgv8qi3): Ditto.
12190 (*mmx_uavgv4hi3): Ditto.
12191 ("mmx_psadbw): Ditto.
12192 * config/i386/sse.md (sse_cvtps2pi): Ditto.
12193 (sse_cvttps2pi): Ditto.
12194 (ssse3_pmaddubsw): Ditto.
12195 (*ssse3_pmulhrswv4hi3): Ditto.
12196 (ssse3_psign<mode>3): Ditto.
12197
12198 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
12199
12200 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
12201 adjustment for bit-fields to all aggregate types.
12202
12203 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
12204
12205 * config/rs6000/predicates.md (pcrel_address): Use
12206 SYMBOL_REF_LOCAL_P to determine if a label is local.
12207 (pcrel_external_address): New predicate.
12208 (non_prefixed_mem_operand): Delete, predicate not used.
12209 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
12210 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
12211 addressing.
12212 (SYMBOL_REF_PCREL_P): Likewise.
12213
12214 PR target/91009
12215 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
12216 alternative.
12217 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
12218 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
12219 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
12220
12221 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12222
12223 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
12224 override on extra_headers.
12225
12226 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12227
12228 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
12229 * config/darwin-driver.c (darwin_default_min_version): Remove newline
12230 from warning.
12231 (darwin_driver_init): Likewise.
12232
12233 2019-06-28 Jan Beulich <jbeulich@suse.com>
12234
12235 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12236 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
12237 Eliminate redundant alternative.
12238
12239 2019-06-28 Jan Beulich <jbeulich@suse.com>
12240
12241 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12242 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
12243 Use vector_operand.
12244
12245 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
12246
12247 * config/arc/arc.c (arc_rtx_costs): All short instructions are
12248 having a lower cost regardless of the speed option.
12249
12250 2019-06-28 Jan Beulich <jbeulich@suse.com>
12251
12252 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
12253 vector_operand plus, on both alternatives, "Bm" constraint.
12254
12255 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
12256
12257 * config/arm/arm.md: Remove redundant constraints from
12258 define_expand but leave reload_inm and reload_outm patterns
12259 untouched since they need special constraints to work.
12260 * config/arm/arm-fixed.md: Remove redundant constraints from
12261 define_expand.
12262 * config/arm/iwmmxt.md: Likewise.
12263 * config/arm/neon.md: Likewise.
12264 * config/arm/sync.md: Likewise.
12265 * config/arm/thumb1.md: Likewise.
12266 * config/arm/vec-common.md: Likewise.
12267
12268 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
12269
12270 * doc/install.texi: Document --disable-tm-clone-registry.
12271
12272 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12273
12274 PR c++/91024
12275 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
12276 statements.
12277
12278 PR tree-optimization/91010
12279 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
12280 return true. Otherwise, don't call operand_equal_p if offset1 or
12281 offset2 is NULL and just return false.
12282
12283 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12284
12285 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
12286 user-specified float mode choice for kernel mode code.
12287
12288 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12289
12290 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
12291 spec.
12292
12293 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12294
12295 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
12296 use longcall for 64b code.
12297
12298 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
12299
12300 * builtins.c (get_memory_rtx): Fix comment.
12301 * optabs.def (movmem_optab): Change to cpymem_optab.
12302 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
12303 (emit_block_move_hints): Change movmem to cpymem.
12304 * defaults.h: Change movmem to cpymem.
12305 * targhooks.c (get_move_ratio): Change movmem to cpymem.
12306 (default_use_by_pieces_infrastructure_p): Ditto.
12307 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
12308 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
12309 to cpymem.
12310 * config/aarch64/aarch64.h: Change movmem to cpymem.
12311 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
12312 * config/alpha/alpha.h: Change movmem to cpymem in comment.
12313 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
12314 movmem to cpymem.
12315 * config/arc/arc-protos.h: Change movmem to cpymem.
12316 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
12317 * config/arc/arc.h: Change movmem to cpymem in comment.
12318 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
12319 * config/arm/arm-protos.h: Change movmem to cpymem in names.
12320 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
12321 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
12322 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
12323 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
12324 * config/avr/avr-protos.h: Change movmem to cpymem.
12325 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
12326 avr_out_movmem): Change movmem to cpymem.
12327 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
12328 Change movmem to cpymem.
12329 * config/bfin/bfin-protos.h: Change movmem to cpymem.
12330 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
12331 Change movmem to cpymem.
12332 * config/bfin/bfin.h: Change movmem to cpymem in comment.
12333 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
12334 * config/c6x/c6x-protos.h: Change movmem to cpymem.
12335 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
12336 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
12337 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
12338 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
12339 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
12340 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
12341 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
12342 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
12343 expand_small_cpymem_or_setmem,
12344 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
12345 expand_set_or_cpymem_constant_prologue,
12346 ix86_expand_set_or_cpymem): Change movmem to cpymem.
12347 * config/i386/i386-protos.h: Change movmem to cpymem.
12348 * config/i386/i386.h: Change movmem to cpymem in comment.
12349 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
12350 (setmem<mode>): Change expansion function name.
12351 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
12352 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
12353 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
12354 * config/m32c/m32c-protos.h: Change movmem to cpymem.
12355 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
12356 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
12357 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
12358 to cpymem.
12359 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
12360 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
12361 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
12362 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
12363 Change movmem to cpymem.
12364 * config/mips/mips.h: Change movmem to cpymem.
12365 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
12366 * config/nds32/nds32-memory-manipulation.c
12367 (nds32_expand_movmemsi_loop_unknown_size,
12368 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
12369 nds32_expand_movmemsi_unroll,
12370 nds32_expand_movmemsi): Change movmem to cpymem.
12371 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
12372 * config/nds32/nds32-protos.h: Change movmem to cpymem.
12373 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12374 (pa_adjust_insn_length): Change call to compute_movmem_length.
12375 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12376 movmemdi, movmemdi_prereload,
12377 movmemdi_postreload): Change movmem to cpymem.
12378 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12379 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12380 * config/riscv/riscv.c: Change movmem to cpymem in comment.
12381 * config/riscv/riscv.h: Change movmem to cpymem.
12382 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12383 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12384 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12385 movmem to cpymem.
12386 * config/s390/s390-protos.h: Change movmem to cpymem.
12387 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12388 s390_expand_insv): Change movmem to cpymem.
12389 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12390 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12391 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12392 * config/sparc/sparc.h: Change movmem to cpymem in comment.
12393 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12394 for nonexistent function.
12395 * config/vax/vax.h: Change movmem to cpymem in comment.
12396 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12397 * config/visium/visium.h: Change movmem to cpymem in comment.
12398 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12399 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12400 * doc/md.texi: Change movmem to cpymem and update description to match.
12401 * doc/rtl.texi: Change movmem to cpymem.
12402 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12403 * doc/tm.texi: Regenerate.
12404
12405 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
12406
12407 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12408 -fvariable-expansion-in-unroller by default.
12409 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12410 default for Power.
12411
12412 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
12413
12414 Revert
12415 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12416 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12417
12418 * config.gcc(rs6000-*-*): Define target_gtfiles.
12419
12420 2019-06-27 Jan Hubicka <jh@suse.cz>
12421
12422 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12423 (add_type_duplicate): When odr hash is not allocated, to nothing.
12424 (odr_based_tbaa_p): New function.
12425 (set_type_canonical_for_odr_type): New function.
12426 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12427 set_type_canonical_for_odr_type): New.
12428 * tree.c (gimple_canonical_types_compatible_p): ODR types with
12429 ODR based TBAA are not equivalent to non-ODR types.
12430
12431 2019-06-27 Martin Liska <mliska@suse.cz>
12432
12433 PR tree-optimization/90974
12434 PR rtl-optimization/90975
12435 PR rtl-optimization/90976
12436 PR target/91016
12437 PR tree-optimization/91017
12438 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12439 unused tmp.
12440 * lra.c (lra_set_insn_recog_data): Remove a leftover from
12441 initial commit of IRA.
12442 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12443 of op0 and op1.
12444 * tree-vect-loop.c (vect_create_epilog_for_reduction):
12445 Remove unused mode1.
12446 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12447 to new_stmt_info.
12448
12449 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12450
12451 PR target/90991
12452 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12453 instead of register_operand for operands[1], add m to its constraints
12454 if operands[2] uses "C" constraint. Ensure in condition that if
12455 operands[2] is not 0, then operands[1] is not a MEM. For last two
12456 alternatives, use unaligned loads instead of aligned if operands[1] is
12457 misaligned_operand.
12458
12459 2019-06-27 Martin Liska <mliska@suse.cz>
12460
12461 * asan.c (asan_emit_allocas_unpoison): Remove obviously
12462 dead assignments.
12463 * bt-load.c (move_btr_def): Likewise.
12464 * builtins.c (expand_builtin_apply_args_1): Likewise.
12465 (expand_builtin_apply): Likewise.
12466 * cfgexpand.c (expand_asm_stmt): Likewise.
12467 (construct_init_block): Likewise.
12468 * cfghooks.c (verify_flow_info): Likewise.
12469 * cfgloopmanip.c (remove_path): Likewise.
12470 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12471 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12472 * combine.c (simplify_if_then_else): Likewise.
12473 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12474 (choose_basereg): Likewise.
12475 (ix86_expand_prologue): Likewise.
12476 (ix86_preferred_output_reload_class): Likewise.
12477 * cselib.c (cselib_record_sets): Likewise.
12478 * df-scan.c (df_scan_alloc): Likewise.
12479 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12480 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12481 * emit-rtl.c (try_split): Likewise.
12482 * graphite-scop-detection.c (assign_parameter_index_in_region):
12483 Likewise.
12484 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12485 * ira-color.c (setup_profitable_hard_regs): Likewise.
12486 * ira.c (rtx_moveable_p): Likewise.
12487 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12488 * read-rtl.c (read_subst_mapping): Likewise.
12489 * regrename.c (scan_rtx): Likewise.
12490 * reorg.c (fill_slots_from_thread): Likewise.
12491 * tree-inline.c (tree_function_versioning): Likewise.
12492 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12493 * tree-ssa-sink.c (statement_sink_location): Likewise.
12494 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12495 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12496 (vect_create_epilog_for_reduction): Likewise.
12497 * tree.c (build_nonstandard_integer_type): Likewise.
12498
12499 2019-06-27 Richard Biener <rguenther@suse.de>
12500
12501 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12502
12503 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
12504
12505 PR tree-optimization/89772
12506 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12507 out-of-bound accesses checking.
12508
12509 2019-06-27 Martin Liska <mliska@suse.cz>
12510
12511 PR tree-optimization/91014
12512 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12513 when LHS is NULL_TREE.
12514
12515 2019-06-27 Martin Liska <mliska@suse.cz>
12516
12517 * symbol-summary.h (traverse): Pass
12518 argument a to the call of callback.
12519 (gt_ggc_mx): Mark arguments as unused.
12520 (gt_pch_nx): Likewise.
12521
12522 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
12523
12524 PR target/62147
12525 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12526 finiteness.
12527
12528 2019-06-26 Jeff Law <law@redhat.com>
12529
12530 PR tree-optimization/90883
12531 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12532 (delete_dead_or_redundant_assignment): Likewise.
12533
12534 PR tree-optimization/90883
12535 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12536 * tree-ssa-dse.c: Update various comments to distinguish between
12537 dead and redundant stores.
12538 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12539 (dse_optimize_redundant_stores): New function.
12540 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12541 Distinguish between dead and redundant calls in dump output. All
12542 callers updated.
12543 (delete_dead_or_redundant_assignment): Similarly for assignments.
12544 (dse_optimize_stmt): Handle _CHK variants. For statements which
12545 store 0 into multiple memory locations, try to prove a subsequent
12546 store is redundant.
12547
12548 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
12549
12550 PR target/89021
12551 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12552 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12553
12554 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12555
12556 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12557 (branch_islands): New extern.
12558 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12559 * config/rs6000/rs6000.c: .. here.
12560
12561 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12562
12563 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12564 (powerpc*-*-*) ... to here.
12565
12566 2019-06-26 Jeff Law <law@redhat.com>
12567
12568 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12569 memcpy, memmove and memset builtins.
12570 (maybe_trim_memstar_call): Likewise.
12571
12572 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12573
12574 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12575
12576 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12577
12578 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12579
12580 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12581
12582 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12583 declaration.
12584 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
12585 "static".
12586 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
12587 declaration.
12588
12589 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12590
12591 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
12592
12593 2019-06-26 Richard Biener <rguenther@suse.de>
12594
12595 PR ipa/90982
12596 * tree-inline.c (remap_ssa_name): Copy SSA range info.
12597
12598 2019-06-26 Richard Biener <rguenther@suse.de>
12599
12600 * lto-streamer.h (lto_bitmap_alloc): Remove.
12601 (lto_bitmap_free): Likewise.
12602 * lto-streamer.c (lto_bitmap_alloc): Remove.
12603 (lto_bitmap_free): Likewise.
12604 (lto_obstack): Likewise.
12605 (lto_obstack_initialized): Likewise.
12606 * lto-streamer-out.c (lto_output): Use own obstack for local
12607 bitmap, free it consistently.
12608
12609 2019-06-26 Jakub Jelinek <jakub@redhat.com>
12610
12611 PR target/90991
12612 * config/i386/sse.md
12613 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
12614 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
12615 insns if operands[2] is misaligned_operand.
12616
12617 2019-06-26 Li Jia He <helijia@linux.ibm.com>
12618
12619 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
12620 TARGET_POWERPC64.
12621 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
12622 to GPR.
12623
12624 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12625
12626 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
12627
12628 2019-06-26 Martin Liska <mliska@suse.cz>
12629
12630 PR tree-optimization/90973
12631 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
12632 epilogue_cost_vec instead of prologue_cost_vec for
12633 a epilogue cost.
12634
12635 2019-06-26 Martin Liska <mliska@suse.cz>
12636
12637 * bb-reorder.c (connect_better_edge_p): Add missing else
12638 statement in the middle of if-else statements.
12639
12640 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
12641 H.J. Lu <hongjiu.lu@intel.com>
12642 Olga Makhotina <olga.makhotina@intel.com>
12643
12644 * common/config/i386/i386-common.c
12645 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
12646 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
12647 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
12648 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
12649 (ix86_handle_option): Handle -mavx512vp2intersect.
12650 * config/i386/avx512vp2intersectintrin.h: New.
12651 * config/i386/avx512vp2intersectvlintrin.h: New.
12652 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
12653 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12654 AVX512VP2INTERSECT.
12655 * config/i386/i386-builtin-types.def: Add new types.
12656 * config/i386/i386-builtin.def: Add new builtins.
12657 * config/i386/i386-builtins.c: (enum processor_features): Add
12658 F_AVX512VP2INTERSECT.
12659 (static const _isa_names_table isa_names_table): Ditto.
12660 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12661 __AVX512VP2INTERSECT__.
12662 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
12663 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
12664 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
12665 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
12666 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
12667 * config/i386/i386-options.c (ix86_target_string): Add
12668 -mavx512vp2intersect.
12669 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
12670 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
12671 P2HImode and P2QImode.
12672 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
12673 number for P2QImode and P2HImode.
12674 (ix86_regmode_natural_size): New function.
12675 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
12676 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
12677 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
12678 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
12679 * config/i386/i386.opt: Add -mavx512vp2intersect.
12680 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
12681 avx512vp2intersectvlintrin.h.
12682 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
12683 (define_mode_iterator VI48_AVX512VP2VL): New.
12684 (avx512vp2intersect_2intersect<mode>,
12685 avx512vp2intersect_2intersectv16si): New define_insn patterns.
12686 * config.gcc: Add avx512vp2intersectvlintrin.h and
12687 avx512vp2intersectintrin.h to extra_headers.
12688 * doc/invoke.texi: Document -mavx512vp2intersect.
12689
12690 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
12691
12692 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
12693
12694 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12695
12696 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
12697 savres_routine_syms, savres_routine_name, morestack_ref,
12698 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12699 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12700 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12701 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12702 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12703 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12704 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12705 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12706 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12707 get_stack_clash_protection_probe_interval,
12708 get_stack_clash_protection_guard_size,
12709 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12710 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12711 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12712 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12713 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12714 gen_frame_mem_offset, rs6000_savres_routine_name,
12715 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12716 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12717 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12718 rs6000_global_entry_point_prologue_needed_p,
12719 rs6000_get_separate_components, rs6000_components_for_bb,
12720 rs6000_disqualify_components, rs6000_emit_prologue_components,
12721 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12722 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12723 rs6000_output_savres_externs, rs6000_output_function_prologue,
12724 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12725 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12726 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12727 rs6000_output_function_epilogue, gen_add3_const,
12728 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12729 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12730 to rs6000-logue.c.
12731 (machine_function): Moved to rs6000.h.
12732 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
12733 rs6000-internal.h.
12734 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
12735 savres_routine_syms, savres_routine_name, morestack_ref,
12736 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12737 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12738 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12739 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12740 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12741 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12742 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12743 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12744 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12745 get_stack_clash_protection_probe_interval,
12746 get_stack_clash_protection_guard_size,
12747 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12748 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12749 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12750 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12751 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12752 gen_frame_mem_offset, rs6000_savres_routine_name,
12753 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12754 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12755 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12756 rs6000_global_entry_point_prologue_needed_p,
12757 rs6000_get_separate_components, rs6000_components_for_bb,
12758 rs6000_disqualify_components, rs6000_emit_prologue_components,
12759 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12760 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12761 rs6000_output_savres_externs, rs6000_output_function_prologue,
12762 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12763 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12764 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12765 rs6000_output_function_epilogue, gen_add3_const,
12766 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12767 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12768 to here from rs6000.c.
12769 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
12770 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
12771 quad_address_offset_p) Moved to here from rs6000.c.
12772 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
12773 * config/config.gcc: Add new source file rs6000-logue.c to garbage
12774 collector.
12775
12776 2019-06-25 Martin Liska <mliska@suse.cz>
12777
12778 * hash-table.c (hashtab_chk_error): Move here from ...
12779 * hash-table.h (hashtab_chk_error): ... here.
12780
12781 2019-06-25 Martin Liska <mliska@suse.cz>
12782
12783 PR tree-optimization/90978
12784 * df-scan.c (df_update_entry_block_defs): Remove dead else
12785 branch.
12786 (df_update_exit_block_uses): Likewise.
12787
12788 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
12789 Andrew Stubbs <ams@codesourcery.com>
12790
12791 * config.gcc (thread_file): Set to gcn for AMD GCN.
12792 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
12793 (TARGET_EMUTLS_VAR_INIT): New hook.
12794
12795 2019-06-25 Martin Jambor <mjambor@suse.cz>
12796
12797 PR ipa/90939
12798 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
12799
12800 2019-06-25 Richard Biener <rguenther@suse.de>
12801
12802 PR tree-optimization/90930
12803 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
12804 into parallel form in the last pass instance.
12805
12806 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
12807
12808 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
12809 (arc_legitimize_pic_address): Simplify and cleanup the function.
12810 (SYMBOLIC_CONST): Remove.
12811 (prepare_pic_move): Likewise.
12812 (prepare_move_operands): Handle complex mov cases here.
12813 (arc_legitimize_address_0): Remove call to
12814 arc_legitimize_pic_address.
12815 (arc_legitimize_address): Remove call to
12816 arc_legitimize_tls_address.
12817 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
12818 (movhi_insn): Likewise.
12819
12820 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12821
12822 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
12823 PTRDIFF_TYPE.
12824 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
12825 format of "__intN" types for UINTMAX_TYPE.
12826 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
12827 format of "__intN" types for SIZETYPE.
12828 * tree.c (build_common_tree_nodes): Accept "__intN__"
12829 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
12830 * doc/invoke.texi: Document that __intN__ disables pedantic
12831 warnings.
12832
12833 2019-06-25 Jan Hubicka <jh@suse.cz>
12834
12835 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
12836 base2_alias_set is non-zero before doing TBAA based disambiguation.
12837
12838 2019-06-25 Martin Liska <mliska@suse.cz>
12839
12840 PR tree-optimization/90973
12841 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
12842 of prologue and epilogue.
12843
12844 2019-06-24 Jan Hubicka <jh@suse.cz>
12845
12846 * ipa-utils.h (type_with_linkage_p): Verify that type is
12847 CXX_ODR_P.
12848 (odr_type_p): Remove extra return.
12849 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
12850 hash STRING_FLAG only for arrays and integers.
12851 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
12852 Update analogously.
12853 * tree-streamer-out.c (pack_ts_type_common_value_fields):
12854 Likewise.
12855 * print-tree.c (print_node): Print cxx-odr-p
12856 and string-flag.
12857 * tree.c (need_assembler_name_p): Also check that type
12858 is CXX_ODR_TYPE_P
12859 (verify_type_variant): Update verification of SRING_FLAG;
12860 also check CXX_ODR_P.
12861 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
12862 (TYPE_STRING_FLAG): Use it.
12863 (TYPE_CXX_ODR_P): New macro.
12864 * dwarf2out.c (gen_array_type_die): First check that type
12865 is an array and then test string flag.
12866
12867 2019-06-24 Richard Biener <rguenther@suse.de>
12868
12869 PR tree-optimization/90972
12870 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
12871 in common code, dealing with STRING_CST properly.
12872
12873 2019-06-24 Richard Biener <rguenther@suse.de>
12874
12875 PR tree-optimization/90930
12876 PR tree-optimization/90316
12877 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
12878 decrement of limit.
12879
12880 2019-06-24 Martin Sebor <msebor@redhat.com>
12881
12882 * tree-pretty-print.h: Remove unnecessary punctuation characters
12883 from a diagnostic.
12884 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
12885
12886 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
12887
12888 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
12889 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
12890 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
12891
12892 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12893
12894 * config/rs6000/darwin.h: Handle GCC target pragma.
12895
12896 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12897
12898 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
12899
12900 2019-06-22 Jeff Law <law@redhat.com>
12901
12902 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12903
12904 2019-06-22 Jan Hubicka <jh@suse.cz>
12905
12906 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
12907 give up on bitfields; continue searching for different refs
12908 appearing later.
12909
12910 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12911
12912 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12913 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
12914 containing the offset as possible simd lane access. Look through
12915 widening conversion. Move the
12916 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
12917
12918 2019-06-21 Richard Biener <rguenther@suse.de>
12919
12920 PR tree-optimization/90930
12921 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
12922 flag on new stmts to avoid re-processing them.
12923
12924 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
12925
12926 PR c++/90875 - added -Wswitch-outside-range option
12927 * doc/invoke.texi (Wswitch-outside-range): Document.
12928
12929 2019-06-21 Jeff Law <law@redhat.com>
12930
12931 PR tree-optimization/90949
12932 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
12933 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
12934
12935 2019-06-21 Richard Biener <rguenther@suse.de>
12936
12937 PR debug/90914
12938 * dwarf2out.c (prune_unused_types_walk): Always consider
12939 function-local extern declarations as used.
12940
12941 2019-06-21 Richard Biener <rguenther@suse.de>
12942
12943 PR tree-optimization/90913
12944 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
12945 the scalar variant of if-conversion versioning.
12946
12947 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12948
12949 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
12950 create another "omp scan inscan exclusive" array if
12951 !ctx->scan_inclusive.
12952 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
12953 (lower_omp_scan): Likewise.
12954 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
12955 2-bit bitfield for simd_lane_access_p member.
12956 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
12957 aux == (void *)-4 as simd lane access.
12958 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
12959 comment with permutations to show the canonical permutation order.
12960 (vectorizable_scan_store): Handle exclusive scan.
12961 (vectorizable_store): Call vectorizable_scan_store even for
12962 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
12963
12964 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12965 "omp simd array" arrays with one byte elements.
12966
12967 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
12968
12969 * config/alpha/alpha.md (@unaligned_store<mode>):
12970 Rename from unaligned_store<mode>.
12971 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
12972 * config/alpha/sync.md (@load_locked_<mode>): Rename
12973 from load_locked_<mode>.
12974 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
12975 (@atomic_compare_and_swap<mode>_1): Rename
12976 from atomic_compare_and_swap<mode>_1.
12977 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
12978 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
12979 Use gen_reload_in_aligned and gen_unaligned_store.
12980 (emit_load_locked): Remove.
12981 (emit_store_conditional): Ditto.
12982 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
12983 (alpha_split_compare_and_swap): Ditto.
12984 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
12985 (alpha_split_compare_and_swap_12): Use gen_load_locked
12986 and gen_store_conditional.
12987 (alpha_split_atomic_exchange): Ditto.
12988 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
12989 (alpha_split_atomic_exchange_12): Use gen_load_locked
12990 and gen_store_conditional.
12991
12992 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
12993
12994 * config/aarch64/aarch64-errata.h: New file.
12995 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
12996 (CA53_ERR_843419_SPEC): Delete.
12997 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
12998 * config/aarch64/aarch64-linux.h: Likewise.
12999 * config/aarch64/aarch64-netbsd.h: Likewise.
13000 * config/aarch64/aarch64-freebsd.h: Likewise.
13001
13002 2019-06-20 Marek Polacek <polacek@redhat.com>
13003
13004 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
13005
13006 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
13007
13008 * config/rs6000/rs6000.md (isa attribute): Add support for
13009 for a future processor.
13010
13011 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
13012
13013 PR target/54855
13014 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
13015 standard scalar operation pattern for V2DF.
13016 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
13017 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
13018 (*ieee_<ieee_maxmin><mode>3): Likewise.
13019 (vec_setv2df_0): Likewise.
13020
13021 2019-06-20 Jan Hubicka <jh@suse.cz>
13022
13023 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
13024 parameter; it has no use in gimple memory model.
13025 (indirect_ref_may_alias_decl_p): Update.
13026
13027 2019-06-20 Martin Liska <mliska@suse.cz>
13028
13029 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
13030 to 10.
13031
13032 2019-06-20 Jakub Jelinek <jakub@redhat.com>
13033
13034 * tree-vect-stmts.c (enum scan_store_kind): New type.
13035 (scan_store_can_perm_p): Change last argument from int * to
13036 vec<enum scan_store_kind> *, record precisely which permutations
13037 need whole vector left shift or that plus VEC_COND_EXPR.
13038 (vectorizable_scan_store): Adjust caller, use whole vector left shift
13039 and additional VEC_COND_EXPR only for those iterations that need it.
13040
13041 2019-06-20 Alexandre Oliva <oliva@adacore.com>
13042
13043 * config.gcc: Fix ARM --with-fpu checking and error message.
13044
13045 2019-06-19 Marek Polacek <polacek@redhat.com>
13046
13047 PR c++/60364 - noreturn after first decl not diagnosed.
13048 * attribs.c (get_attribute_namespace): No longer static.
13049 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
13050 attributes.
13051 (attr_noreturn_exclusions): Make it extern.
13052 * attribs.h (get_attribute_namespace): Declare.
13053 * tree-inline.c (function_attribute_inlinable_p): Use
13054 get_attribute_name.
13055
13056 2019-06-19 Martin Sebor <msebor@redhat.com>
13057
13058 PR tree-optimization/90626
13059 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
13060
13061 PR tree-optimization/90626
13062 * tree-ssa-strlen.c (strxcmp_unequal): New function.
13063 (handle_builtin_string_cmp): Call it.
13064
13065 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
13066
13067 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
13068 and DARWIN_NOPIE_SPEC.
13069 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
13070 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
13071 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
13072 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
13073 (DARWIN_EXPORT_DYNAMIC): Delete.
13074 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
13075 and pie options processing to darwin.h.
13076 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
13077
13078 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
13079
13080 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
13081 in computing the number of options to be moved.
13082
13083 2019-06-19 Maya Rashish <coypu@sdf.org>
13084
13085 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
13086 (CLEAR_INSN_CACHE) Use it.
13087
13088 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
13089
13090 * config/i386/i386.md (cmpstrnsi): Remove dead code.
13091
13092 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
13093
13094 PR middle-end/84521
13095 * builtins.c (expand_builtin_setjmp_setup): Save
13096 hard_frame_pointer_rtx.
13097 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
13098 restore fp.
13099 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
13100 non-local goto.
13101 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
13102 elimination code.
13103 (remove_reg_equal_offset_note): Remove unused function.
13104 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
13105 code.
13106 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13107 (arc_builtin_setjmp_frame_value): Remove function.
13108 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13109 (avr_builtin_setjmp_frame_value): Remove function.
13110 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13111 (ix86_builtin_setjmp_frame_value): Remove function.
13112 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
13113 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13114 (sparc_builtin_setjmp_frame_value): Remove function.
13115 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13116 (vax_builtin_setjmp_frame_value): Remove function.
13117 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
13118 pointer if has_nonlocal_label.
13119
13120 2019-06-19 Jakub Jelinek <jakub@redhat.com>
13121
13122 * doc/md.texi: Document vec_shl_<mode> pattern.
13123 * optabs.def (vec_shl_optab): New optab.
13124 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
13125 argument, if == vec_shl_optab, check for left whole vector shift
13126 pattern rather than right shift.
13127 (expand_vec_perm_const): Add vec_shl_optab support.
13128 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
13129 in the comment.
13130 * tree-vect-generic.c (lower_vec_perm): Support permutations which
13131 can be handled by vec_shl_optab.
13132 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
13133 (check_scan_store): Use it.
13134 (vectorizable_scan_store): If target can't do normal permutations,
13135 try to use whole vector left shifts and if needed a VEC_COND_EXPR
13136 after it.
13137 * config/i386/sse.md (vec_shl_<mode>): New expander.
13138
13139 * omp-low.c (lower_rec_input_clauses): Handle references properly
13140 in inscan clauses.
13141 (lower_omp_scan): Likewise.
13142
13143 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13144
13145 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
13146 mem_mode is BLKmode.
13147
13148 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
13149
13150 PR target/90922
13151 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
13152 pointer adjustment for the case of no callee-saved registers and
13153 stack frame bigger than 128 bytes.
13154
13155 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
13156
13157 PR middle-end/90862
13158 * omp-low.c (check_omp_nesting_restrictions): Handle
13159 GF_OMP_TARGET_KIND_OACC_DECLARE.
13160
13161 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
13162
13163 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
13164 (@add<mode>3_carry): Rename from add<mode>3_carry.
13165 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
13166 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
13167 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
13168 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
13169 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
13170 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
13171 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
13172 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
13173 (cmpstrnsi): Use gen_cmp_1.
13174 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
13175 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
13176 (@umonitor_<mode>): Rename from umonitor_<mode>.
13177 * config/i386/i386-expand.c (ix86_expand_copysign):
13178 Use gen_copysign3_const and gen_copysign3_var.
13179 (ix86_expand_xorsign): Use gen_xorsign3_1.
13180 (ix86_expand_branch): Use gen_sub3_carry_ccc,
13181 gen_sub3_carry_ccgz and gen_cmp1.
13182 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
13183 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
13184 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
13185 (ix86_split_lshr): Ditto.
13186 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
13187
13188 2019-06-18 Jason Merrill <jason@redhat.com>
13189
13190 * tree.c (build_constructor): Add MEM_STAT_DECL.
13191
13192 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13193
13194 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
13195 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
13196 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
13197 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
13198 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
13199 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
13200 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
13201 Use CC_NZC instead of CC.
13202 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
13203 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
13204 (aarch64_print_operand): Handle E_CC_NZCmode.
13205 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
13206 of gen_set_clobber_cc.
13207
13208 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13209
13210 * config/aarch64/aarch64-sve.md: Tabify file.
13211
13212 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13213
13214 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
13215 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
13216 * config/aarch64/aarch64-sve.md: Use it.
13217
13218 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13219
13220 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
13221 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
13222 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
13223 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
13224 (aarch64_expand_sve_vec_cmp_int): Use it.
13225 (aarch64_expand_sve_vec_cmp_float): Likewise.
13226 * config/aarch64/aarch64-sve.md: Likewise throughout.
13227
13228 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13229 Kugan Vivekanandarajah <kuganv@linaro.org>
13230
13231 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
13232 (*cond_<optab><mode>_z): Fold into...
13233 (*cond_<optab><mode>_any): ...here. Also handle cases in which
13234 operand 4 can be tied to operand 0 (either inherently or via RA).
13235
13236 2019-06-18 Richard Biener <rguenther@suse.de>
13237
13238 PR debug/90900
13239 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
13240 as if optimized away.
13241
13242 2019-06-18 Tom de Vries <tdevries@suse.de>
13243
13244 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
13245 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
13246 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
13247 Rename to ...
13248 (define_insn "@set_softstack_<mode>"): ... this.
13249 (define_insn "omp_simt_enter_<mode>"): Rename to ...
13250 (define_insn "@omp_simt_enter_<mode>"): ... this.
13251 (define_insn "omp_simt_exit_<mode>"): Rename to ...
13252 (define_insn "@omp_simt_exit_<mode>"): ... this.
13253
13254 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13255
13256 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
13257 vf parameter. Restore the previous iv step of nscalars_step,
13258 but give it iv_type rather than compare_type. Tweak code order
13259 to match the comments.
13260 (vect_set_loop_condition_masked): Update accordingly.
13261 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
13262 for iv_precision. Tweak comment formatting.
13263
13264 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13265
13266 * config/darwin.c: Strip trailing whitespace.
13267
13268 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13269
13270 * config/darwin.c (darwin_emit_unwind_label): New default to false.
13271 (darwin_override_options): Set darwin_emit_unwind_label as needed.
13272
13273 2019-06-18 Martin Jambor <mjambor@suse.cz>
13274
13275 PR ipa/90889
13276 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
13277 caller does not have flag_ipa_cp set.
13278
13279 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13280
13281 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
13282 from "*fold_left_plus_<mode>", updated operands order.
13283 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
13284 * internal-fn.c (mask_fold_left_direct): New define.
13285 (expand_mask_fold_left_optab_fn): Likewise.
13286 (direct_mask_fold_left_optab_supported_p): Likewise.
13287 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
13288 * optabs.def (mask_fold_left_plus_optab): New optab.
13289 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
13290 masked internal_fn for a reduction ifn.
13291 (vectorize_fold_left_reduction): Add support for masking reductions.
13292
13293 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
13294
13295 PR middle-end/80791
13296 * target.def (predict_doloop_p): New hook.
13297 * targhooks.h (default_predict_doloop_p): New declaration.
13298 * targhooks.c (default_predict_doloop_p): New function.
13299 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
13300 * doc/tm.texi: Regenerate.
13301 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
13302 (TARGET_PREDICT_DOLOOP_P): New macro.
13303 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
13304
13305 2019-06-17 Jakub Jelinek <jakub@redhat.com>
13306
13307 * omp-low.c (struct omp_context): Add scan_inclusive field.
13308 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
13309 if inclusive scan.
13310 (struct omplow_simd_context): Add lastlane member.
13311 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
13312 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
13313 1 or 2 argument.
13314 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
13315 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
13316 (lower_omp_scan): New function.
13317 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
13318 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
13319 check 3rd argument if present rather than 2nd.
13320 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
13321 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
13322 2-bit bitfield.
13323 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13324 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
13325 than 2nd.
13326 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
13327 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
13328 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
13329 init.
13330 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
13331 IFN_GOMP_SIMD_LANE argument.
13332 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
13333 encoded ->aux value.
13334 * tree-vect-stmts.c: Include attribs.h.
13335 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
13336 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
13337 functions.
13338 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
13339 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
13340
13341 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
13342
13343 PR target/62055
13344 * config/i386/i386.md (*nabstf2_1): New insn pattern.
13345 (*nabs<mode>2_1): Ditto.
13346 (nabs sse-reg splitter): New splitter.
13347 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
13348
13349 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13350
13351 PR bootstrap/90873.
13352 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13353 TMR index check.
13354
13355 2019-06-17 Tom de Vries <tdevries@suse.de>
13356
13357 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
13358 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
13359 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
13360 ...
13361 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
13362 match_operand 0.
13363 (define_insn "omp_simt_enter_insn"): Rename to ...
13364 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
13365 match_operand 0, 1 and 2, as well as the unspec_volatile result.
13366 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
13367 gen_omp_simt_enter_si.
13368 (define_expand "omp_simt_exit"): New.
13369 (define_insn "omp_simt_exit"): Rename to ...
13370 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
13371 match_operand 0.
13372
13373 2019-06-17 Matthew Green <mrg@eterna.com.au>
13374 Maya Rashish <coypu@sdf.org>
13375
13376 * config.gcc (aarch64*-*-netbsd*): New target.
13377 * config/aarch64/aarch64-netbsd.h: New file.
13378 * config/aarch64/t-aarch64-netbsd: Likewise.
13379
13380 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13381
13382 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13383 the access path from base to first VIEW_CONVERT_EXPR or
13384 BIT_FIELD_REF.
13385
13386 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13387
13388 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13389 access path on BIT_FIELD_REFs.
13390
13391 2019-06-17 Martin Liska <mliska@suse.cz>
13392
13393 PR ipa/90874
13394 * ipa-utils.h (odr_type_p): Remove dead code.
13395
13396 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13397
13398 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13399 alternative Solaris 11.4 format.
13400 * configure: Regenerate.
13401
13402 2019-06-17 Tom de Vries <tdevries@suse.de>
13403
13404 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13405 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
13406 match_operand 0.
13407 (define_insn "call_value_insn"): Rename to ...
13408 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
13409 match_operand 0.
13410 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13411 DI.
13412
13413 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
13414
13415 PR middle-end/64242
13416 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
13417 frame clobbers and schedule block.
13418 (builtin_longjmp): Likewise.
13419
13420 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13421
13422 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13423 describe how to perform MSPABI compliant 64-bit shift.
13424 * config/msp430/msp430.md (ashldi3): New define_expand.
13425 (ashrdi3): New define_expand.
13426 (lshrdi3): New define_expand.
13427
13428 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13429
13430 * doc/sourcebuild.texi: Document new effective target keyword
13431 longlong64.
13432
13433 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13434
13435 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13436 indirect_refs_may_alias_p): Revert accidental commits.
13437
13438 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13439 at the end of structures.
13440
13441 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13442
13443 * config/darwin.c (machopic_indirect_call_target): Use renamed
13444 darwin_picsymbol_stubs to decide on output.
13445 (darwin_override_options): Handle darwin_picsymbol_stubs.
13446 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13447 (LD64_VERSION): Revise default.
13448 * config/darwin.opt: (mpic-symbol-stubs): New option.
13449 (darwin_picsymbol_stubs): New variable.
13450 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13451 rename to TARGET_MACHO_PICSYM_STUBS.
13452 * config/i386/i386.c (output_pic_addr_const): Likewise.
13453 * config/i386/i386.h Likewise.
13454 * config/rs6000/darwin.h: Likewise.
13455 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13456 darwin_picsymbol_stubs.
13457
13458 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13459
13460 * config/darwin.opt (prebind, noprebind, seglinkedit,
13461 noseglinkedit): Add RejectNegative.
13462
13463 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13464
13465 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13466 in my previous patch.
13467
13468 2019-06-16 Tom de Vries <tdevries@suse.de>
13469
13470 PR tree-optimization/89376
13471 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13472
13473 2019-06-15 Maya Rashish <coypu@sdf.org>
13474
13475 * doc/invoke.texi (Spec Files): Update location of the
13476 Fortran spec file.
13477
13478 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
13479
13480 * doc/extend.texi (Common Function Attributes): Clarify
13481 no_sanitize. Fix grammar.
13482
13483 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
13484
13485 * tree-ssa-alias.c (alias_stats): Add
13486 nonoverlapping_component_refs_p_may_alias,
13487 nonoverlapping_component_refs_p_no_alias,
13488 nonoverlapping_component_refs_of_decl_p_may_alias,
13489 nonoverlapping_component_refs_of_decl_p_no_alias.
13490 (dump_alias_stats): Dump them.
13491 (nonoverlapping_component_refs_of_decl_p): Add stats.
13492 (nonoverlapping_component_refs_p): Add stats; do not stop on first
13493 ARRAY_REF.
13494
13495 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
13496
13497 * config/i386/i386.md (and<mode>3): Generate zero-extends for
13498 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13499 only.
13500 (*anddi3_doubleword): Split before reload. Merge with
13501 anddi->zext pre-reload splitter.
13502 (*andndi3_doubleword): Split before reload.
13503 (*<code>di3_doubleword): Ditto.
13504 (*one_cmpldi2_doubleword): Ditto.
13505
13506 2019-06-15 Jakub Jelinek <jakub@redhat.com>
13507
13508 PR middle-end/90779
13509 * gimplify.c: Include omp-offload.h and context.h.
13510 (gimplify_bind_expr): Add "omp declare target" attributes
13511 to static block scope variables inside of target region or target
13512 functions.
13513
13514 2019-06-15 Tom de Vries <tdevries@suse.de>
13515
13516 PR tree-optimization/90009
13517 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13518 Return NULL if bb contains IFN_UNIQUE.
13519
13520 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
13521
13522 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13523 (un): New define_mode_attr.
13524 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13525 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
13526 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13527 merge into ...
13528 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
13529
13530 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
13531
13532 * config/darwin.opt: Add RejectNegative where needed, reorder
13533 and add minimal functional descriptions.
13534
13535 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13536
13537 PR rtl-optimization/90765
13538 * calls.c (update_stack_alignment_for_call): New function.
13539 (expand_call): Call update_stack_alignment_for_call when
13540 outgoing parameter is passed in the stack.
13541 (emit_library_call_value_1): Likewise.
13542 * function.c (locate_and_pad_parm): Don't update
13543 stack_alignment_needed and preferred_stack_boundary.
13544
13545 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13546
13547 PR target/90877
13548 * config/i386/i386-features.c
13549 (dimode_scalar_chain::compute_convert_gain): Replace
13550 mmxsse_to_integer with sse_to_integer.
13551 * config/i386/i386.c (ix86_register_move_cost): Verify that
13552 moves between MMX and non-MMX units require secondary memory.
13553 Correct costs of moves between SSE and integer units.
13554 * config/i386/i386.h (processor_costs): Rename cost of moving
13555 SSE register to integer to sse_to_integer. Rename cost of
13556
13557 2019-06-14 Matt Thomas <matt@3am-software.com>
13558 Matthew Green <mrg@eterna.com.au>
13559 Nick Hudson <skrll@netbsd.org>
13560 Maya Rashish <coypu@sdf.org>
13561 Richard Earnshaw <rearnsha@arm.com>
13562
13563 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13564 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13565 * config/arm/netbsd-eabi.h: New file.
13566 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13567 redefining.
13568 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13569 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13570 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13571 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13572
13573 2019-06-14 Richard Biener <rguenther@suse.de>
13574
13575 * tree-loop-distribution.c (classify_partition): Return
13576 whether a reduction appeared in all partitions and do not
13577 stop builtin detection because of this.
13578 (distribute_loop): Sort a non-builtin partition last if
13579 there's a reduction in all partitions and make sure the
13580 partition prevailing as last is not a builtin.
13581
13582 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
13583
13584 PR ipa/90401
13585 * ipa-prop.c (add_to_agg_contents_list): New function.
13586 (clobber_by_agg_contents_list_p): Likewise.
13587 (extract_mem_content): Likewise.
13588 (get_place_in_agg_contents_list): Delete.
13589 (determine_known_aggregate_parts): Renamed from
13590 determine_locally_known_aggregate_parts. New parameter
13591 aa_walk_budget_p.
13592
13593 2019-06-13 Martin Sebor <msebor@redhat.com>
13594
13595 PR tree-optimization/90662
13596 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
13597 to the same type.
13598
13599 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13600
13601 PR bootstrap/90873
13602 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
13603 dbase is not TARGET_MEM_REF.
13604
13605 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13606
13607 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
13608 Update all uses.
13609 (and<mode>3): Use gen_extend_insn instead of indirect functions.
13610 Do not generate DImode extends for 32bit targets.
13611 (and->zext post-reload splitter): Use gen_extend_insn
13612 instead of indirect functions.
13613 (anddi->zext pre-reload splitter): New.
13614 (*zext<mode>_doubleword_and): Remove.
13615 (*zext<mode>_doubleword): Ditto.
13616 (*zextsi_doubleword): Dittto.
13617
13618 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13619
13620 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
13621 Use gen_sub3_insn instead of indirect function.
13622 (ix86_expand_ashl_const): Use gen_add2_insn instead of
13623 indirect function.
13624 (ix86_adjust_counter): Ditto.
13625
13626 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
13627 Lijia He <helijia@linux.ibm.com>
13628
13629 PR tree-optimization/77820
13630 * tree-ssa-threadedge.c
13631 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
13632 function.
13633 (thread_across_edge): Add call to
13634 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
13635
13636 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
13637
13638 * config/darwin-driver.c (validate_macosx_version_min): New.
13639 (darwin_default_min_version): Cleanup and validate supplied version.
13640 (darwin_driver_init): Likewise and push cleaned version into opts.
13641
13642 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13643
13644 PR tree-optimization/90869
13645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
13646 converts in MEM_REF referencing decl rather than view converts
13647 from decl type to MEM_REF type.
13648
13649 2019-06-13 Richard Biener <rguenther@suse.de>
13650
13651 PR tree-optimization/90856
13652 * tree-sra.c (build_ref_for_model): Only use
13653 build_reconstructed_reference when address-spaces are the same.
13654
13655 2019-06-13 Jakub Jelinek <jakub@redhat.com>
13656
13657 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
13658 wrap ei variable name in the declaration in ()s.
13659 (nvptx_single): Actually use mode_label variable. Formatting fix.
13660
13661 2019-06-13 Richard Biener <rguenther@suse.de>
13662
13663 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
13664 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
13665 also return the condition stmt.
13666 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
13667 loop we can version and version that, reusing the loop version
13668 created by if-conversion instead of versioning again.
13669
13670 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
13671
13672 * gimple-loop-versioning.cc (prune_loop_conditions): Use
13673 may_contain_p.
13674 * tree-vrp (value_range_base::may_contain_p): Call into
13675 value_inside_range.
13676 (value_inside_range): Make private inside value_range_base class.
13677 Take min/max from *this.
13678 (range_includes_p): Remove.
13679 * tree-vrp.h (value_range_base): Add value_inside_range.
13680 (range_includes_p): Remove.
13681 (range_includes_zero_p): Call may_contain_p.
13682 * vr-values.c (compare_range_with_value): Same.
13683
13684 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
13685
13686 * doc/extend.texi (ARC Function Attributes): Update info.
13687
13688 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
13689
13690 PR tree-optimization/89713
13691 * doc/invoke.texi (-ffinite-loops): Document new option.
13692 * common.opt (-ffinite-loops): New option.
13693 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
13694 IFN_GOACC_LOOP calls as necessary.
13695 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
13696 is finite.
13697 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
13698 IFN_GOACC_LOOP call is not used.
13699 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
13700
13701 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13702
13703 PR target/88838
13704 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
13705 compare_type is not with Pmode size, we will create an IV with
13706 Pmode size with truncated use (i.e. converted to the correct type).
13707 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
13708 (vect_iv_limit_for_full_masking): New. Factored out of
13709 vect_set_loop_condition_masked.
13710 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
13711 (vect_iv_limit_for_full_masking): Declare.
13712
13713 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13714
13715 PR target/88834
13716 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
13717 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
13718 (get_alias_ptr_type_for_ptr_address): Likewise.
13719 (add_iv_candidate_for_use): Add scaled index candidate if useful.
13720 * tree-ssa-address.c (preferred_mem_scale_factor): New.
13721 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
13722 allow_reg_index_p.
13723
13724 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13725
13726 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
13727
13728 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
13729
13730 * common/config/pru/pru-common.c: New file.
13731 * config.gcc: Add PRU target.
13732 * config/pru/alu-zext.md: New file.
13733 * config/pru/constraints.md: New file.
13734 * config/pru/predicates.md: New file.
13735 * config/pru/pru-opts.h: New file.
13736 * config/pru/pru-passes.c: New file.
13737 * config/pru/pru-pragma.c: New file.
13738 * config/pru/pru-protos.h: New file.
13739 * config/pru/pru.c: New file.
13740 * config/pru/pru.h: New file.
13741 * config/pru/pru.md: New file.
13742 * config/pru/pru.opt: New file.
13743 * config/pru/t-pru: New file.
13744 * doc/extend.texi: Document PRU pragmas.
13745 * doc/invoke.texi: Document PRU-specific options.
13746 * doc/md.texi: Document PRU asm constraints.
13747
13748 2019-06-12 Martin Sebor <msebor@redhat.com>
13749
13750 PR middle-end/90676
13751 * tree-pretty-print.c (dump_mem_ref): New function. Include
13752 MEM_REF type in output when different size than operand.
13753 (dump_generic_node): Move code to dump_mem_ref and call it.
13754
13755 2019-06-12 Martin Sebor <msebor@redhat.com>
13756
13757 PR tree-optimization/90662
13758 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
13759 to arrays.
13760
13761 2019-06-12 Tom de Vries <tdevries@suse.de>
13762
13763 PR tree-optimization/90009
13764 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
13765
13766 2019-06-12 Martin Liska <mliska@suse.cz>
13767
13768 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
13769 the created map.
13770 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
13771 * mem-stats.h (mem_alloc_description::mem_alloc_description):
13772 Do not sanitize created maps.
13773
13774 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
13775
13776 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
13777 value_range::singleton_p.
13778 * tree-vrp.c (value_range_constant_singleton): Remove.
13779 * tree-vrp.h (value_range_constant_singleton): Remove.
13780 * vr-values.c (vr_values::singleton): Use
13781 value_range::singleton_p.
13782
13783 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13784
13785 PR target/90811
13786 * cfgexpand.c (align_local_variable): Add really_expand argument,
13787 don't SET_DECL_ALIGN if it is false.
13788 (add_stack_var): Add really_expand argument, pass it through to
13789 align_local_variable.
13790 (expand_one_stack_var_1): Pass true as really_expand to
13791 align_local_variable.
13792 (expand_one_ssa_partition): Pass true as really_expand to
13793 add_stack_var.
13794 (expand_one_var): Pass really_expand through to add_stack_var.
13795
13796 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13797
13798 * config/arm/iterators.md (VABAL): New int iterator.
13799 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
13800 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
13801 UNSPEC_VABAL_U values.
13802
13803 2019-06-12 Martin Liska <mliska@suse.cz>
13804
13805 * value-prof.c (stream_out_histogram_value): Only first value
13806 can't be negative.
13807
13808 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13809
13810 PR c/90760
13811 * symtab.c (symtab_node::set_section): Allow being called on aliases
13812 as long as they aren't analyzed yet.
13813
13814 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
13815
13816 * config/mips/mips.c (mips_final_postscan_insn): Modify call
13817 to `mips_set_text_contents_type' to indicate whether a
13818 non-debug insn follows.
13819
13820 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
13821
13822 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
13823 enabling -mpcrel by default.
13824 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
13825 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
13826 that the test against -mcpu=future is done first. Then test if
13827 -mprefixed-addr is on for -mpcrel.
13828 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
13829
13830 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13831
13832 PR target/90811
13833 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
13834 instead of and.u%d.
13835
13836 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13837
13838 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
13839
13840 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
13841
13842 PR c++/90449 - add -Winaccessible-base option.
13843 * doc/invoke.texi (Winaccessible-base): Document.
13844
13845 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13846
13847 PR tree-optimization/62041
13848 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
13849
13850 2019-06-11 Jason Merrill <jason@redhat.com>
13851
13852 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
13853 * tree.c (get_tree_code_name): Likewise.
13854 * print-tree.c (print_node): Only briefly print a node with an
13855 invalid code.
13856
13857 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13858
13859 PR bootstrap/90819
13860 * trans-mem.c (tm_memopt_compute_available): Add assertion
13861 that blocks is not empty. Formatting fix.
13862
13863 2019-06-11 Martin Liska <mliska@suse.cz>
13864
13865 PR c++/87847
13866 * hash-table.h: Extend create_gcc, add one parameter
13867 that is passed into hash_table::hash_table.
13868
13869 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
13870
13871 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
13872 New prototype.
13873 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
13874 Emit clobber also for non-sse operations.
13875 (ix86_split_fp_absneg_operator): New function.
13876 * config/i386/i386.md (SSEMODEF): New mode iterator.
13877 (ssevecmodef): New mode attribute.
13878 (<code>tf2): Use absneg code iterator.
13879 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
13880 Add three-operand AVX alternatives.
13881 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
13882 Use absneg code iterator and X87MODEF mode iterator.
13883 (absneg fp_reg non-sse splitter): Call absneg code iterator
13884 and X87MODEF mode iterator.
13885 (absneg general_reg non-sse splitter): Use absneg code iterator
13886 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
13887 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
13888 code iterator. Add three-operand AVX alternative.
13889 (absneg sse_reg splitter): Use absneg code iterator
13890 and SSEMODEF mode iterator. Handle AVX operands.
13891 (absneg fp_reg splitter): Use absneg code iterator
13892 and MODEF mode iterator.
13893 (absneg general_reg splitter): Merge splitters using MODEF mode
13894 iterator. Use absneg code iterator. Call
13895 ix86_split_fp_absneg_operator.
13896 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
13897 Do not enable for non-sse modes before reload.
13898 (CSGNMODE): Remove.
13899 (CSGNVMODE): Ditto.
13900 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
13901 ssevecmodef mode attribute instaed of CSGNVMODE.
13902 (copysign<mode>3_const): Ditto.
13903 (copysign<mode>3_var): Ditto.
13904 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
13905 Use absneg code iterator. Simplify code using std::swap.
13906 * config/i386/predicates.md (absneg_operator): Remove.
13907
13908 2019-06-10 Martin Sebor <msebor@redhat.com>
13909
13910 * gimple-fold.c (get_range_strlen): Update comment that didn't
13911 make it into r267503 or related commits.
13912
13913 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
13914
13915 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
13916 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
13917
13918 2019-06-10 Jakub Jelinek <jakub@redhat.com>
13919
13920 * tree.def (OMP_SCAN): New tree code.
13921 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
13922 OMP_CLAUSE_EXCLUSIVE.
13923 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
13924 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
13925 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
13926 OMP_CLAUSE_{IN,EX}CLUSIVE.
13927 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13928 * tree-nested.c (convert_nonlocal_reference_stmt,
13929 convert_local_reference_stmt, convert_gimple_call): Handle
13930 GIMPLE_OMP_SCAN.
13931 * tree-pretty-print.c (dump_omp_clause): Handle
13932 OMP_CLAUSE_{IN,EX}CLUSIVE.
13933 (dump_generic_node): Handle OMP_SCAN.
13934 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
13935 * gimple.h (gomp_scan): New type.
13936 (is_a_helper <gomp_scan *>::test,
13937 is_a_helper <const gomp_scan *>::test): New templates.
13938 (gimple_build_omp_scan): Declare.
13939 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
13940 gimple_omp_scan_set_clauses): New inline functions.
13941 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
13942 * gimple.c (gimple_build_omp_scan): New function.
13943 (gimple_copy): Handle GIMPLE_OMP_SCAN.
13944 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
13945 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
13946 GIMPLE_OMP_TASKGROUP.
13947 (dump_gimple_omp_scan): New function.
13948 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
13949 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
13950 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
13951 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
13952 (is_gimple_stmt): Handle OMP_SCAN.
13953 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
13954 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13955 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
13956 mentioned in nested #pragma omp scan. Handle
13957 OMP_CLAUSE_{IN,EX}CLUSIVE.
13958 (gimplify_expr): Handle OMP_SCAN.
13959 * omp-low.c (check_omp_nesting_restrictions): For parent context,
13960 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
13961 simd constructs.
13962 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
13963 GIMPLE_OMP_SCAN.
13964
13965 2019-06-10 Martin Liska <mliska@suse.cz>
13966
13967 * ipa-cp.c (ignore_edge_p): New function.
13968 (build_toporder_info): Use it.
13969 * ipa-inline.c (ignore_edge_p): New function.
13970 (inline_small_functions): Use it.
13971 * ipa-pure-const.c (ignore_edge_for_nothrow):
13972 Verify opt_for_fn for caller and callee.
13973 (ignore_edge_for_pure_const): Likewise.
13974 * ipa-reference.c (ignore_edge_p): Extend to check
13975 for opt_for_fn.
13976 * ipa-utils.c (searchc): Refactor.
13977 * ipa-utils.h: Fix coding style.
13978
13979 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13980
13981 * config/arc/arc.c (arc_rtx_costs): Update costs.
13982
13983 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13984
13985 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
13986 (arc_split_ior): Likewise.
13987 (arc_check_mov_const): Likewise.
13988 (arc_split_mov_const): Likewise.
13989 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
13990 (arc_rtx_costs): Replace check Crr with Cax constraint.
13991 (prepare_move_operands): Cleanup, remove unused code.
13992 (arc_split_ior): New function.
13993 (arc_check_ior_const): Likewise.
13994 (arc_split_mov_const): Likewise.
13995 (arc_check_mov_const): Likewise.
13996 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
13997 in define_insn_and_split pattern.
13998 (iorsi3): Likewise.
13999 (mulsi3_v2): Add new matching variant.
14000 (andsi3_i): Cleanup pattern.
14001 (rotrsi3_cnt1): Update pattern.
14002 (rotrsi3_cnt8): New pattern.
14003 (ashlsi2_cnt8): Likewise.
14004 (ashlsi2_cnt16): Likewise.
14005 * config/arc/constraints.md (C0p): Update constraint.
14006 (Crr): Remove it.
14007 (C0x): New pattern.
14008 (Cax): New pattern.
14009
14010 2019-06-10 Martin Liska <mliska@suse.cz>
14011
14012 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
14013 Update coding style.
14014 (sem_item_optimizer::dump_cong_classes):
14015 Print how many items are in a non-singular class. Improve
14016 coding style.
14017
14018 2019-06-10 Martin Liska <mliska@suse.cz>
14019
14020 * value-prof.c (dump_histogram_value): Change dump format.
14021 (gimple_mod_subtract_transform): Remove legacy comment.
14022
14023 2019-06-10 Martin Liska <mliska@suse.cz>
14024
14025 * value-prof.c (dump_histogram_value): Print histogram values
14026 only if present.
14027
14028 2019-06-10 Martin Liska <mliska@suse.cz>
14029
14030 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
14031 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
14032 * ipa-profile.c (ipa_profile_generate_summary):
14033 Use get_most_common_single_value.
14034 * tree-profile.c (gimple_init_gcov_profiler):
14035 Instrument with __gcov_one_value_profiler_v2
14036 and __gcov_indirect_call_profiler_v4.
14037 * value-prof.c (dump_histogram_value):
14038 Print all values for HIST_TYPE_SINGLE_VALUE.
14039 (stream_out_histogram_value): Update assert for
14040 N values.
14041 (stream_in_histogram_value): Set number of
14042 counters for HIST_TYPE_SINGLE_VALUE.
14043 (get_most_common_single_value): New.
14044 (gimple_divmod_fixed_value_transform):
14045 Use get_most_common_single_value.
14046 (gimple_ic_transform): Likewise.
14047 (gimple_stringops_transform): Likewise.
14048 (gimple_find_values_to_profile): Set number
14049 of counters for HIST_TYPE_SINGLE_VALUE.
14050 * value-prof.h (get_most_common_single_value): New.
14051
14052 2019-06-10 Martin Liska <mliska@suse.cz>
14053
14054 * hash-map.h: Pass default value to hash_table ctor.
14055 * hash-table.h: Add default value to call of a ctor.
14056
14057 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
14058
14059 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
14060 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
14061
14062 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
14063
14064 PR target/90751
14065 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
14066 Call pa_output_function_label.
14067 (TARGET_ASM_FUNCTION_PROLOGUE): define.
14068 * config/pa/pa-protos.h (pa_output_function_label): Declare.
14069 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
14070 to declaration.
14071 (pa_linux_output_function_prologue): Declare.
14072 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
14073 (pa_output_function_label): New.
14074 (pa_output_function_prologue): Revise to use pa_output_function_label.
14075 (pa_linux_output_function_prologue): New.
14076 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
14077
14078 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
14079
14080 * tree-vrp.h (value_range_base::intersect): New.
14081 (value_range::intersect_helper): Move from here...
14082 (value_range_base::intersect_helper): ...to here.
14083 * tree-vrp.c (value_range::intersect_helper): Rename to...
14084 (value_range_base::intersect_helper): ...this, and rewrite to
14085 return a value instead of modifying THIS in place.
14086 Also, move equivalence handling...
14087 (value_range::intersect): ...here, while calling intersect_helper.
14088 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
14089 calling intersect.
14090 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
14091 Same.
14092 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
14093
14094 2019-06-07 Jakub Jelinek <jakub@redhat.com>
14095
14096 * Makefile.in (genprogerr): Add condmd.
14097 (genprog): Remove it here.
14098
14099 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
14100
14101 * doc/invoke.texi (AMD GCN Options): Add gfx906.
14102
14103 2019-06-07 Richard Biener <rguenther@suse.de>
14104
14105 PR debug/90574
14106 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
14107 that appear after user labels.
14108
14109 2019-06-07 Martin Liska <mliska@suse.cz>
14110
14111 * cselib.c (cselib_init): Disable hash table
14112 sanitization.
14113 * hash-set.h: Pass new default argument to m_table.
14114 * hash-table.c: Add global variable with hash table
14115 sanitization limit.
14116 * hash-table.h (Allocator>::hash_table): Add new argument
14117 to ctor.
14118 (hashtab_chk_error): New.
14119 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
14120 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
14121 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
14122
14123 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
14124
14125 * common.opt (flto-odr-type-merging): Ignore.
14126 * invoke.texi (-flto-odr-type-merging): Remove.
14127 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
14128 (can_be_vtable_hashed_p): Remove.
14129 (hash_odr_vtable): Remove.
14130 (odr_vtable_hasher::hash): Remove.
14131 (types_same_for_odr): Remove.
14132 (types_odr_comparable): Remove.
14133 (odr_vtable_hasher::equal): Remove.
14134 (odr_vtable_hash_type, odr_vtable_hash): Remove.
14135 (add_type_duplicate): Do not synchronize vtable and name hashtables.
14136 (get_odr_type): Do not use vtable hash.
14137 (dump_odr_type): Remove commented out code.
14138 (build_type_inheritance_graph): Do not allocate vtable hash.
14139 (rebuild_type_inheritance_graph): Do not delete vtable hash.
14140 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
14141 (odr_type_p): Likewise.
14142 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
14143 test.
14144
14145 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
14146
14147 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
14148 immediately after same_types_for_tbaa_p returns -1 and continue
14149 looking for possible exact match; if matching types are arrays
14150 watch for partial overlaps.
14151 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
14152 (indirect_refs_may_alias_p): Do type based disambiguation first;
14153 update comment.
14154
14155 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
14156
14157 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
14158
14159 2019-06-07 Martin Liska <mliska@suse.cz>
14160
14161 * doc/invoke.texi: Remove param.
14162 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
14163 Remove.
14164 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
14165 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
14166 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
14167 * profile.c (instrument_values): Remove
14168 HIST_TYPE_INDIR_CALL_TOPN.
14169 * tree-profile.c (init_ic_make_global_vars):
14170 Always build __gcov_indirect_call only.
14171 (gimple_init_gcov_profiler): Remove usage
14172 of PARAM_INDIR_CALL_TOPN_PROFILE.
14173 (gimple_gen_ic_profiler): Likewise.
14174 * value-prof.c (dump_histogram_value): Likewise.
14175 (stream_in_histogram_value): Likewise.
14176 (gimple_indirect_call_to_profile): Likewise.
14177 (gimple_find_values_to_profile): Likewise.
14178 * value-prof.h (enum hist_type): Likewise.
14179
14180 2019-06-07 Martin Liska <mliska@suse.cz>
14181
14182 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
14183 function.
14184
14185 2019-06-07 Martin Liska <mliska@suse.cz>
14186
14187 PR tree-optimization/78902
14188 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
14189 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
14190 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14191 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14192 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
14193 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14194 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
14195 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
14196 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14197 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14198 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14199 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
14200 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
14201 New.
14202 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
14203 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
14204 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
14205 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14206 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14207 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
14208 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14209 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14210 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
14211 warn_unused_result attribute.
14212 (BUILT_IN_STRDUP): Likewise.
14213 (BUILT_IN_STRNDUP): Likewise.
14214 (BUILT_IN_ALLOCA): Likewise.
14215 (BUILT_IN_CALLOC): Likewise.
14216 (BUILT_IN_MALLOC): Likewise.
14217 (BUILT_IN_REALLOC): Likewise.
14218
14219 2019-06-06 Jim Wilson <jimw@sifive.com>
14220
14221 PR target/89955
14222 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
14223 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
14224 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
14225
14226 2019-06-06 Martin Sebor <msebor@redhat.com>
14227
14228 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
14229 (handle_builtin_malloc): Remove trailing spaces.
14230 (handle_builtin_memset): Same.
14231 (handle_builtin_memcmp): Same.
14232 (compute_string_length): Same.
14233 (determine_min_objsize): Same.
14234 (handle_builtin_string_cmp): Same.
14235 (handle_char_store): Same. Break up excessively long line.
14236
14237 2019-06-06 Martin Jambor <mjambor@suse.cz>
14238
14239 * tree-sra.c (build_reconstructed_reference): Drop the alignment
14240 check.
14241
14242 2019-06-06 Martin Jambor <mjambor@suse.cz>
14243
14244 * tree-sra.c (struct access): New field grp_same_access_path.
14245 (dump_access): Dump it.
14246 (build_reconstructed_reference): New function.
14247 (build_ref_for_model): Use it if possible.
14248 (path_comparable_for_same_access): New function.
14249 (same_access_path_p): Likewise.
14250 (sort_and_splice_var_accesses): Set the new flag.
14251 (analyze_access_subtree): Likewise.
14252 (propagate_subaccesses_across_link): Propagate zero value of the new
14253 flag down the access tree.
14254
14255 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
14256
14257 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
14258 * config/gcn/gcn.opt (gpu_type): Add gfx906.
14259 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
14260 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
14261 Add gfx906.
14262
14263 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14264
14265 PR tree-optimization/90332
14266 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
14267 Handle VALS containing two vectors.
14268 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
14269 to...
14270 (@aarch64_combinez<mode>): ... This.
14271 (*aarch64_combinez_be<mode>): Rename to...
14272 (@aarch64_combinez_be<mode>): ... This.
14273 (vec_init<mode><Vhalf>): New define_expand.
14274 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
14275
14276 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14277
14278 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
14279 library functions only when not optimizing for size.
14280 (ashlsi3): Likewise.
14281 (ashrhi3): Likewise.
14282 (ashrsi3): Likewise.
14283 (lshrhi3): Likewise.
14284 (lshrsi3): Likewise.
14285
14286 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
14287
14288 PR rtl-optimization/88751
14289 * ira.c (ira): Use the number of the actually referenced registers
14290 when calculating the threshold.
14291
14292 2019-06-06 Jakub Jelinek <jakub@redhat.com>
14293
14294 * configure: Regenerate.
14295
14296 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14297
14298 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
14299 register if it is in memory, so the shift can be emulated with a rotate
14300 instruction.
14301 (ashrhi3): Likewise.
14302 (lshrhi3): Likewise.
14303
14304 2019-06-06 Martin Liska <mliska@suse.cz>
14305
14306 PR tree-optimization/87954
14307 * match.pd: Simplify mult where both arguments are 0 or 1.
14308
14309 2019-06-06 Richard Biener <rguenther@suse.de>
14310
14311 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
14312 put equivalences on UNDEFINED ranges.
14313 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14314 Make sure to drop defs of stmts added during simplification
14315 to VARYING.
14316
14317 2019-06-06 Richard Biener <rguenther@suse.de>
14318
14319 * tree-ssa-structalias.c: Include tree-cfg.h.
14320 (make_heapvar): Do not make heap vars artificial.
14321 (find_func_aliases_for_builtin_call): Handle stack allocation
14322 functions.
14323 (find_func_aliases): Delay processing of simple enough returns
14324 in non-IPA mode.
14325 (set_uids_in_ptset): Adjust.
14326 (find_what_var_points_to): Likewise.
14327 (solve_constraints): Do not dump points-to sets here.
14328 (compute_points_to_sets): Post-process return statements,
14329 amending the escaped solution. Dump points-to sets afterwards.
14330 (ipa_pta_execute): Dump points-to sets.
14331
14332 2019-06-06 Martin Liska <mliska@suse.cz>
14333
14334 PR web/87933
14335 * doc/install.texi: Fix HTML headers and
14336 titles for 'Installing GCC' pages.
14337
14338 2019-06-06 Martin Liska <mliska@suse.cz>
14339
14340 * ipa-icf-gimple.h (dump_message_1): Remove.
14341 (dump_message): Likewise.
14342 (return_false_with_message_1): Print also file.
14343 (return_false_with_msg): Likewise.
14344 (return_with_result): Likewise.
14345 (return_with_debug): Likewise.
14346 * ipa-icf.c (sem_function::equals_private): Remove call
14347 to dump_message.
14348
14349 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14350
14351 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
14352 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
14353 memory operand for it.
14354 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
14355
14356 2019-06-05 Martin Sebor <msebor@redhat.com>
14357
14358 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
14359 Adjust quoting and hyphenation.
14360 * convert.c (convert_to_real_1): Same.
14361 * gcc.c (driver_wrong_lang_callback): Same.
14362 (driver::handle_unrecognized_options): Same.
14363 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
14364 * opts-common.c (cmdline_handle_error): Same.
14365 (read_cmdline_option): Same.
14366 * opts-global.c (complain_wrong_lang): Same.
14367 (print_ignored_options): Same.
14368 (handle_common_deferred_options): Same.
14369 * pretty-print.h: Same.
14370 * print-rtl.c (debug_bb_n_slim): Same.
14371 * sched-rgn.c (make_pass_sched_fusion): Same.
14372 * tree-cfg.c (verify_gimple_assign_unary): Same.
14373 (verify_gimple_label): Same.
14374 * tree-ssa-operands.c (verify_ssa_operands): Same.
14375 * varasm.c (do_assemble_alias): Same.
14376 (assemble_alias): Same.
14377
14378 2019-06-05 Richard Henderson <rth@twiddle.net>
14379
14380 * config/alpha/alpha.c (direct_return): Move down after
14381 struct machine_function definition; use saved frame_size;
14382 return bool.
14383 (struct machine_function): Add sa_mask, sa_size, frame_size.
14384 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14385 (alpha_compute_frame_layout): ... new function.
14386 (TARGET_COMPUTE_FRAME_LAYOUT): New.
14387 (alpha_initial_elimination_offset): Use saved sa_size.
14388 (alpha_vms_initial_elimination_offset): Likewise.
14389 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14390 (alpha_expand_prologue): Use saved frame data. Merge integer
14391 and fp register save loops.
14392 (alpha_expand_epilogue): Likewise.
14393 (alpha_start_function): Use saved frame data.
14394 * config/alpha/alpha-protos.h (direct_return): Update.
14395 (alpha_sa_size): Remove.
14396
14397 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
14398
14399 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14400 multiplication by a power-of-two value.
14401 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14402 and turn the modulo operation into a masking operation.
14403
14404 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14405
14406 PR debug/90733
14407 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14408 with VOIDmode inner operands.
14409
14410 2019-06-05 Richard Biener <rguenther@suse.de>
14411
14412 PR middle-end/90726
14413 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14414 turn an expression graph into a tree.
14415
14416 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14417
14418 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14419 member.
14420 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14421 treat it like explicit monotonic schedule modifier.
14422 (expand_omp_for): Initialize has_lastprivate_conditional.
14423 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14424 schedule modifier.
14425
14426 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14427 references, lookup in in hash map MEM_REF operand instead of the
14428 MEM_REF itself.
14429 (lower_omp_1): When looking for lastprivate conditional assignments,
14430 handle MEM_REFs with REFERENCE_TYPE operands.
14431
14432 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14433 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14434 and references a VLA. Handle references to non-VLAs if is_simd
14435 all privatization clauses like reductions.
14436 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14437 If omp_is_reference, use always omp simd arrays and set
14438 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14439 fails, emit reference initialization.
14440
14441 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14442
14443 PR target/89803
14444 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14445 _mm_mask_fpclass_sd_mask): New intrinsics.
14446 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14447 * config/i386/i386-builtin.def
14448 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14449 New builtins.
14450 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14451 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14452 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14453 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14454 case QI_FTYPE_V2SF_INT): Ditto.
14455 * config/i386/sse.md
14456 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14457 Extended to insnstructions with mask operands.
14458
14459 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14460
14461 * config/rs6000/constraints.md (define_register_constraint "wp"):
14462 Delete.
14463 (define_register_constraint "wq"): Delete.
14464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14465 (rs6000_init_hard_regno_mode_ok): Adjust.
14466 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14467 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14468 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14469 (define_mode_attr VSa): Delete.
14470 (define_mode_attr VSisa): New.
14471 (rest of file): Adjust.
14472 * doc/md.texi (Machine Constraints): Adjust.
14473
14474 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14475
14476 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14477 (define_attr "enabled"): Handle those new isa values.
14478
14479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14480
14481 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14482 (define_mode_attr VSr5): Delete.
14483 (define_mode_attr VStype_sqrt): Delete.
14484 (define_mode_iterator VSX_SPDP): Delete.
14485 (define_mode_attr VS_spdp_res): Delete.
14486 (define_mode_attr VS_spdp_insn): Delete.
14487 (define_mode_attr VS_spdp_type): Delete.
14488 (*vsx_sqrt<mode>2): Adjust.
14489 (vsx_<VS_spdp_insn>): Delete, split to...
14490 (vsx_xscvdpsp): ... this. New. And...
14491 (vsx_xvcvspdp): ... this. New. And...
14492 (vsx_xvcvdpsp): ... this. New.
14493
14494 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14495
14496 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14497 and V2DF.
14498 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14499 (rest of file): Adjust.
14500
14501 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14502
14503 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14504 (vsx_extract_<mode>_var): Ditto.
14505
14506 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14507
14508 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14509 with just "wa".
14510
14511 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14512
14513 * config/rs6000/constraints.md (define_register_constraint "ww"):
14514 Delete.
14515 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14516 (rs6000_init_hard_regno_mode_ok): Adjust.
14517 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14518 RS6000_CONSTRAINT_ww.
14519 * config/rs6000/rs6000.md: Adjust.
14520 * config/rs6000/vsx.md: Adjust.
14521 * doc/md.texi (Machine Constraints): Adjust.
14522
14523 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14524
14525 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14526 (define_mode_attr sd): New.
14527 (define_mode_attr s): New.
14528 (define_mode_attr Ftrad): Delete.
14529 (define_mode_attr Fvsx): Delete.
14530 (define_mode_attr Fs): Delete.
14531 (rest of file): Use the new mode attributes.
14532 * config.rs6000/vsx.md: Use the new mode attributes.
14533
14534 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14535
14536 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14537 with just "wa".
14538
14539 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14540
14541 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14542 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14543 used with VSX_B, VSX_D, or VSX_F, with just "wa".
14544
14545 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
14546
14547 PR target/78263
14548 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14549 C++ with strict ANSI requirements.
14550
14551 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
14552
14553 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14554 computations when step is 1.
14555
14556 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14557
14558 * config/rs6000/constraints.md (define_register_constraint "wf"):
14559 Delete.
14560 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14561 (rs6000_init_hard_regno_mode_ok): Adjust.
14562 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14563 RS6000_CONSTRAINT_wf.
14564 * config/rs6000/rs6000.md: Adjust.
14565 * config/rs6000/vsx.md: Adjust.
14566 * doc/md.texi (Machine Constraints): Adjust.
14567
14568 2019-06-04 Andrew Pinski <apinski@marvell.com>
14569
14570 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14571 Fix ILP32 value.
14572
14573 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14574
14575 * config/rs6000/constraints.md (define_register_constraint "wd"):
14576 Delete.
14577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14578 (rs6000_init_hard_regno_mode_ok): Adjust.
14579 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14580 RS6000_CONSTRAINT_wd.
14581 * config/rs6000/rs6000.md: Adjust.
14582 * config/rs6000/vsx.md: Adjust.
14583 * doc/md.texi (Machine Constraints): Adjust.
14584
14585 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14586
14587 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
14588 (rest of file): Adjust.
14589
14590 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14591
14592 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
14593 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
14594 (vsx_splat_<mode>_reg): Adjust.
14595
14596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14597
14598 * config/rs6000/constraints.md (define_register_constraint "ws"):
14599 Delete.
14600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14601 (rs6000_init_hard_regno_mode_ok): Adjust.
14602 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14603 RS6000_CONSTRAINT_ws.
14604 * config/rs6000/rs6000.md: Adjust.
14605 * config/rs6000/vsx.md: Adjust.
14606 * doc/md.texi (Machine Constraints): Adjust.
14607
14608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14609
14610 * config/rs6000/constraints.md (define_register_constraint "wv"):
14611 Delete.
14612 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14613 (rs6000_init_hard_regno_mode_ok): Adjust.
14614 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14615 RS6000_CONSTRAINT_wv.
14616 * config/rs6000/rs6000.md: Adjust.
14617 * config/rs6000/vsx.md: Adjust.
14618 * doc/md.texi (Machine Constraints): Adjust.
14619
14620 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14621
14622 * config/rs6000/constraints.md (define_register_constraint "wi"):
14623 Delete.
14624 (define_register_constraint "wt"): Delete.
14625 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14626 (rs6000_init_hard_regno_mode_ok): Adjust.
14627 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14628 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
14629 * config/rs6000/rs6000.md: Adjust.
14630 * config/rs6000/vsx.md: Adjust.
14631 * doc/md.texi (Machine Constraints): Adjust.
14632
14633 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14634
14635 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
14636 const.
14637 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
14638 default_elf_asm_output_external.
14639
14640 2019-06-04 Martin Liska <mliska@suse.cz>
14641
14642 * ipa-icf.c (INCLUDE_LIST): Remove.
14643 (sem_item_optimizer::execute): Remove call to init_wpa.
14644 * ipa-icf.h (init_wpa): Remove.
14645
14646 2019-06-04 Jakub Jelinek <jakub@redhat.com>
14647
14648 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
14649 conditional on combined for simd.
14650 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
14651 member.
14652 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
14653 constructs, don't remove lastprivate_conditional_map, but instead set
14654 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
14655 to parent construct temporaries.
14656 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
14657 like !ctx->lastprivate_conditional_map.
14658 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
14659 use up->outer context instead of up.
14660 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
14661 gimple_omp_for_combined_p.
14662 (expand_omp_for_static_nochunk): Likewise.
14663 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
14664 probably moved over into expand_omp_for_generic rather than being copied
14665 there.
14666
14667 2019-06-04 Martin Liska <mliska@suse.cz>
14668
14669 * value-prof.c (dump_histogram_value): Fix typo.
14670 (gimple_mod_subtract_transform): Likewise.
14671
14672 2019-06-04 Richard Biener <rguenther@suse.de>
14673
14674 PR middle-end/90726
14675 * tree-chrec.c (chrec_contains_symbols): Add to visited.
14676 (tree_contains_chrecs): Likewise.
14677 (chrec_contains_symbols_defined_in_loop): Move here and avoid
14678 exponential behaivor from ...
14679 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14680 ... here.
14681 (expression_expensive_p): Avoid exponential behavior and compute
14682 expanded size, rejecting any expansion.
14683 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
14684 (idx_contains_abnormal_ssa_name_p): Likewise.
14685 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
14686 (contains_abnormal_ssa_name_p): Simplify and use
14687 walk_tree_without_duplicates.
14688
14689 2019-06-04 Richard Biener <rguenther@suse.de>
14690
14691 PR tree-optimization/90738
14692 Revert
14693 2019-06-03 Richard Biener <rguenther@suse.de>
14694
14695 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14696 full reference tree and record in ref->ref.
14697 (vn_reference_lookup_3): Pass in original ref to
14698 ao_ref_init_from_vn_reference.
14699 (vn_reference_lookup): Likewise.
14700 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14701 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14702 Handle non-decl bases in the original reference.
14703
14704 2019-06-04 Martin Liska <mliska@suse.cz>
14705
14706 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
14707 number of references.
14708 (sem_item_optimizer::do_congruence_step):
14709 (sem_item_optimizer::worklist_push): Dump how references
14710 a class has.
14711 (sem_item_optimizer::worklist_pop): Use heap.
14712 (sem_item_optimizer::process_cong_reduction): Likewise.
14713 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
14714
14715 2019-06-04 Martin Liska <mliska@suse.cz>
14716
14717 * ipa-icf.h (struct sem_usage_pair_hash): New.
14718 (sem_usage_pair_hash::hash): Likewise.
14719 (sem_usage_pair_hash::equal): Likewise.
14720 (struct sem_usage_hash): Likewise.
14721 * ipa-icf.c (sem_item::sem_item): Initialize
14722 referenced_by_count.
14723 (sem_item::add_reference): Register a reference
14724 in ref_map and not in target->usages.
14725 (sem_item::setup): Remove initialization of
14726 dead vectors.
14727 (sem_item::~sem_item): Remove usage of dead vectors.
14728 (sem_item::dump): Remove dump of references.
14729 (sem_item_optimizer::sem_item_optimizer): Initialize
14730 m_references.
14731 (sem_item_optimizer::read_section): Remove useless
14732 dump.
14733 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
14734 (sem_item_optimizer::build_graph): Pass m_references
14735 to ::add_reference.
14736 (sem_item_optimizer::verify_classes): Remove usage of dead
14737 vectors.
14738 (sem_item_optimizer::traverse_congruence_split): Return true
14739 when a class is split.
14740 (sem_item_optimizer::do_congruence_step_for_index): Use
14741 hash_map for look up of (sem_item *, index). That brings
14742 significant speed up.
14743 (sem_item_optimizer::do_congruence_step): Return true
14744 when a split is done.
14745 (congruence_class::is_class_used): Use referenced_by_count.
14746
14747 2019-06-04 Alan Modra <amodra@gmail.com>
14748
14749 PR target/90689
14750 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
14751 error.
14752
14753 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14754
14755 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
14756 * config/rs6000/rs6000.c (direct_move_p): Adjust.
14757 (rs6000_secondary_reload_simple_move): Adjust.
14758 (rs6000_opt_masks): Neuter the "mfpgpr" option.
14759 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
14760 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
14761 comment.
14762 (power6x): Adjust.
14763 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
14764 (floatunssi<mode>2_lfiwzx): Adjust.
14765 (fix_trunc<mode>si2_stfiwx): Adjust.
14766 (fixuns_trunc<mode>si2_stfiwx): Adjust.
14767 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
14768 (mfpgpr): Mark as deprecated.
14769 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
14770 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
14771 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
14772
14773 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14774
14775 * config/rs6000/constraints.md (define_register_constraint "wg"):
14776 Delete.
14777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14778 RS6000_CONSTRAINT_wg.
14779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14780 (rs6000_init_hard_regno_mode_ok): Adjust.
14781 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
14782 Delete "wg" alternatives.
14783 * doc/md.texi (Machine Constraints): Adjust.
14784
14785 2019-06-03 Alan Modra <amodra@gmail.com>
14786
14787 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
14788 (get_uncond_jump_length): Assert length less than INT_MAX and
14789 non-negative.
14790
14791 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14792
14793 PR middle-end/64242
14794 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
14795 block.
14796 (expand_builtin_nonlocal_goto): Likewise.
14797
14798 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14799
14800 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
14801 (aarch64_asm_output_external): Declare.
14802 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
14803 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14804 (aarch64_asm_output_alias): New.
14805 (aarch64_asm_output_external): New.
14806 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
14807 (ASM_OUTPUT_EXTERNAL): Define.
14808
14809 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
14810 * tree-vrp.h (value_range_base::nonzero_p): New.
14811 (value_range_base::set_nonnull): Rename to...
14812 (value_range_base::set_nonzero): ...this.
14813 (value_range_base::set_null): Rename to...
14814 (value_range_base::set_zero): ...this.
14815 (value_range::set_nonnull): Remove.
14816 (value_range::set_null): Remove.
14817 * tree-vrp.c (range_is_null): Remove.
14818 (range_is_nonnull): Remove.
14819 (extract_range_from_binary_expr): Use value_range_base::*zero_p
14820 instead of range_is_*null.
14821 (extract_range_from_unary_expr): Same.
14822 (value_range_base::set_nonnull): Rename to...
14823 (value_range_base::set_nonzero): ...this.
14824 (value_range::set_nonnull): Remove.
14825 (value_range_base::set_null): Rename to...
14826 (value_range_base::set_zero): ...this.
14827 (value_range::set_null): Remove.
14828 (extract_range_from_binary_expr): Rename set_*null uses to
14829 set_*zero.
14830 (extract_range_from_unary_expr): Same.
14831 (union_helper): Same.
14832 * vr-values.c (get_value_range): Use set_*zero instead of
14833 set_*null.
14834 (vr_values::extract_range_from_binary_expr): Same.
14835 (vr_values::extract_range_basic): Same.
14836
14837 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14838
14839 PR driver/90684
14840 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
14841
14842 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14843
14844 * config/aarch64/iterators.md (MAX_OPP): New code attr.
14845 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
14846 Rename to...
14847 (aarch64_<su>abd<mode>_3): ... This.
14848 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
14849
14850 2019-06-03 Richard Biener <rguenther@suse.de>
14851
14852 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14853 full reference tree and record in ref->ref.
14854 (vn_reference_lookup_3): Pass in original ref to
14855 ao_ref_init_from_vn_reference.
14856 (vn_reference_lookup): Likewise.
14857 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14858 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14859 Handle non-decl bases in the original reference.
14860
14861 2019-06-03 Martin Liska <mliska@suse.cz>
14862
14863 * doc/generic.texi: Remove Java Trees.
14864
14865 2019-06-03 Martin Liska <mliska@suse.cz>
14866
14867 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
14868 returns 0 when operands are equal.
14869
14870 2019-06-03 Richard Biener <rguenther@suse.de>
14871
14872 PR tree-optimization/90716
14873 * tree-loop-distribution.c (destroy_loop): Process blocks in
14874 correct order.
14875
14876 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14877
14878 PR target/88837
14879 * vector-builder.h (vector_builder::count_dups): New method.
14880 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
14881 Declare prototype.
14882 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
14883 (vec_init<mode><Vel>): New pattern.
14884 * config/aarch64/aarch64.c (emit_insr): New function.
14885 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
14886 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
14887 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
14888 (aarch64_sve_expand_vector_init): Define two overloaded functions.
14889
14890 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14891
14892 PR tree-optimization/90681
14893 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
14894 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
14895 special case for SLP, but fail on non-groupped loads.
14896
14897 2019-06-03 Martin Liska <mliska@suse.cz>
14898
14899 * cfg.c (debug): Use TDF_DETAILS for debug and
14900 print edge info only once.
14901
14902 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
14903
14904 PR fortran/90539
14905 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
14906
14907 2019-06-01 Martin Sebor <msebor@redhat.com>
14908
14909 PR middle-end/90694
14910 * tree-pretty-print.c (dump_generic_node): Add parentheses.
14911
14912 2019-05-31 Jan Hubicka <jh@suse.cz>
14913
14914 * alias.c: Include ipa-utils.h.
14915 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
14916 * ipa-devirt.c (prevailing_odr_type): New.
14917 * ipa-utils.h (previaling_odr_type): Declare.
14918
14919 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
14920 Hongtao Liu <hongtao.liu@intel.com>
14921
14922 PR target/89355
14923 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
14924 NOTE_INSN_DELETED_LABEL check.
14925
14926 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
14927 Robert Suchanek <robert.suchanek@mips.com>
14928
14929 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
14930 and 3rd operands of the fmadd/fmsub/maddv builtin.
14931
14932 2019-05-31 Jakub Jelinek <jakub@redhat.com>
14933
14934 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
14935 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
14936 on OMP_SIMD if not nested inside of worksharing loop that also has
14937 lastprivate conditional clause for the same decl.
14938 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
14939 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
14940 on simd.
14941 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
14942 on simd construct.
14943 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
14944 on simd construct.
14945 (lower_lastprivate_clauses): Likewise.
14946 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
14947 calling lower_rec_input_clauses.
14948 (lower_omp_for): Likewise.
14949 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
14950 clause on simd construct.
14951 * omp-expand.c (expand_omp_simd): Initialize cond_var if
14952 OMP_CLAUSE__CONDTEMP_ clause is present.
14953
14954 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
14955 ivar and lvar.
14956
14957 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
14958
14959 PR c/43673
14960 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
14961 TEX_D32, TEX_D64 or TEX_D128.
14962
14963 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14964
14965 * match.pd (~(vec?cst1:cst2)): New transformation.
14966
14967 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14968
14969 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
14970 ((size_t)(A /[ex] B) CMP C): New transformation.
14971
14972 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
14973
14974 * doc/md.texi: Document define_insn_and_rewrite.
14975 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
14976 * gensupport.c (queue_elem): Update comment.
14977 (replace_operands_with_dups): New function.
14978 (gen_rewrite_sequence): Likewise.
14979 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
14980 * read-rtl.c (apply_subst_iterator): Likewise.
14981 (add_condition_to_rtx, named_rtx_p): Likewise.
14982 (rtx_reader::read_rtx_operand): Likewise.
14983 * config/aarch64/aarch64-sve.md
14984 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
14985 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
14986 define_insn_and_rewrite.
14987 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
14988 Remove separate define_split.
14989
14990 2019-05-31 Jan Hubicka <jh@suse.cz>
14991
14992 * tree-ssa-alias.c (type_has_components_p): New function.
14993 (aliasing_component_refs_p): Use it.
14994
14995 2019-05-31 Martin Liska <mliska@suse.cz>
14996
14997 * gdbhooks.py: Add const_tree to TreePrinter.
14998
14999 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
15000
15001 PR debug/86964
15002 * common.opt (feliminate-unused-debug-symbols): Enable by default.
15003 * doc/invoke.texi (Debugging Options): Document new default of
15004 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
15005
15006 2019-05-31 Jakub Jelinek <jakub@redhat.com>
15007
15008 PR tree-optimization/90671
15009 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
15010 template_block used to be empty on the first call, don't use
15011 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
15012 seq with bb_seq and set it with set_bb_seq.
15013
15014 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
15015
15016 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
15017
15018 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15019 Michael Meissner <meissner@linux.ibm.com>
15020
15021 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
15022 (prefixed_mem_operand): Likewise.
15023 (non_prefixed_mem_operand): Likewise.
15024 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
15025 prototype.
15026 * config/rs6000/rs6000.c (print_operand_address): Handle
15027 PC-relative addresses.
15028 (mode_supports_prefixed_address_p): New function.
15029 (rs6000_prefixed_address): New function.
15030 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
15031 (SYMBOL_REF_PCREL_P): Likewise.
15032
15033 2019-05-30 Jakub Jelinek <jakub@redhat.com>
15034
15035 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
15036 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
15037 (gimplify_omp_for): If worksharing loop with lastprivate conditional
15038 is nested inside of parallel region, add _condtemp_ clause to both.
15039 * tree-nested.c (convert_nonlocal_omp_clauses,
15040 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
15041 assertion failure.
15042 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
15043 member.
15044 * omp-general.c (omp_extract_for_data): Compute it.
15045 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
15046 (lower_rec_input_clauses): Likewise.
15047 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
15048 clause is already present, just add one further one after it.
15049 (lower_lastprivate_clauses): Handle cond_ptr with array type.
15050 (lower_send_shared_vars): Clear _condtemp_ vars.
15051 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
15052 or section or taskgroup.
15053 * omp-expand.c (determine_parallel_type): Disallow combining only if
15054 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
15055 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
15056 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15057 expand_omp_for_static_chunk, expand_omp_for): Use
15058 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
15059 determine if a special set of API routines are needed and if condtemp
15060 needs to be initialized, while always initialize cond_var if
15061 fd->lastprivate_conditional is non-zero.
15062
15063 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15064 Michael Meissner <meissner@linux.ibm.com>
15065
15066 * config/rs6000/constraints.md (eI): New constraint.
15067 * config/rs6000/predicates.md (cint34_operand): New predicate.
15068 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
15069 (SIGNED_34BIT_OFFSET_P): Likewise.
15070 * doc/md.texi (eI): Document constraint.
15071
15072 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
15073
15074 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
15075
15076 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15077 Michael Meissner <meissner@linux.ibm.com>
15078
15079 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
15080 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
15081 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
15082 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
15083 (OTHER_FUTURE_MASKS): Likewise.
15084 (POWERPC_MASKS): Likewise.
15085 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
15086 specified without -mprefixed-addr or -mcpu=future. Error if
15087 -mprefixed-addr is specified without -mcpu=future.
15088 (rs6000_opt_masks): Add entry for prefixed-addr.
15089 * rs6000.opt (mprefixed-addr): New option.
15090
15091 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
15092
15093 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
15094 cfun->is_thunk check.
15095
15096 2019-05-30 Jakub Jelinek <jakub@redhat.com>
15097
15098 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
15099 to length.
15100
15101 2019-05-30 Martin Liska <mliska@suse.cz>
15102
15103 * gdbinit.in: Fix 'ptc' command. Add trt
15104 that prints TREE_TYPE($).
15105
15106 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
15107 Alan Modra <amodra@gmail.com>
15108
15109 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
15110 calls here...
15111 (rs6000_indirect_call_template_1): ...and here.
15112 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
15113 plt16_ha, plt16_lo, mtctr indirect calls. Use
15114 rs6000_pltseq_enum.
15115 (rs6000_decl_ok_for_sibcall): New function.
15116 (rs6000_function_ok_for_sibcall): Refactor.
15117 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
15118 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
15119 when pcrel. Reorganize.
15120 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
15121 * rs6000.h (rs6000_pltseq_enum): New enum.
15122 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
15123 (*pltseq_tocsave): Use rs6000_pltseq_enum.
15124 (*pltseq_plt16_ha): Likewise.
15125 (*pltseq_plt16_lo): Likewise.
15126 (*pltseq_mtctr): Likewise.
15127 (*pltseq_plt_pcrel): New insn.
15128 (*call_local_aix): Handle @notoc calls.
15129 (*call_value_local_aix): Likewise.
15130 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
15131 (*call_value_nonlocal_aix): Likewise.
15132 (*call_indirect_pcrel): New insn.
15133 (*call_value_indirect_pcrel): Likewise.
15134
15135 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
15136
15137 * config/i386/sse.md (*save_multiple<mode>): Rename from
15138 save_multiple<mode>.
15139 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
15140 (*restore_multiple_and_return<mode>): Rename from
15141 restore_multiple_and_return<mode>.
15142 (*restore_multiple_leave_return<mode>): Rename from
15143 restore_multiple_leave_return<mode>.
15144
15145 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
15146
15147 * config.gcc (rx-*-linux*): New target.
15148 * config/rx/elf.opt: New file.
15149 * config/rx/linux.h: Likewise.
15150 * config/rx/t-linux: Likewise.
15151 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
15152 make it zero.
15153 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
15154 (ASM_APP_OFF): Likewise.
15155 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
15156 moved elsewhere.
15157
15158 2019-05-29 Jan Hubicka <jh@suse.cz>
15159
15160 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
15161 variants are pointer equivalent.
15162
15163 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15164
15165 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
15166 * config/aarch64/aarch64-sve2.md: New file.
15167 (<u>avg<mode>3_floor): New pattern.
15168 (<u>avg<mode>3_ceil): Likewise.
15169 (*<sur>h<addsub><mode>): Likewise.
15170 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
15171 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
15172
15173 2019-05-29 Jakub Jelinek <jakub@redhat.com>
15174
15175 PR bootstrap/90543
15176 * optc-save-gen.awk: In cl_optimization_print, use correct condition
15177 for var_opt_string printing. In cl_optimization_print_diff, print
15178 (null) instead of invoking undefined behavior if one of the
15179 var_opt_string pointers is NULL and use && instead of first || in the
15180 guarding condition. For var_target_other options, handle const char *
15181 target variables similarly to const char * optimize node variables.
15182
15183 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
15184
15185 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
15186 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
15187 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
15188 Add autib1716 and pacib1716 initialisation.
15189 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
15190 for autib1716 and pacib1716.
15191 * config/aarch64/aarch64-protos.h (aarch64_key_type,
15192 aarch64_post_cfi_startproc): Define.
15193 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
15194 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
15195 aarch64_handle_pac_ret_protection): Set default sign key to A.
15196 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
15197 aarch64_expand_prologue): Add check for b-key.
15198 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
15199 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
15200 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
15201 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
15202 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
15203 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
15204 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15205 * config/aarch64/aarch64.md (do_return): Add check for b-key.
15206 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
15207 pauth_hint_num_a with pauth_hint_num.
15208 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
15209 pauth_hint_num_a with pauth_hint_num.
15210 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
15211 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
15212 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15213 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
15214 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
15215 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
15216 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
15217 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15218 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
15219 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
15220 UNSPEC_AUTIA1716 respectively.
15221 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
15222 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
15223 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
15224 * doc/invoke.texi (-mbranch-protection): Add b-key type.
15225 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
15226 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
15227
15228 2019-05-29 Jakub Jelinek <jakub@redhat.com>
15229
15230 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
15231 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
15232 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
15233 explicit clause on combined parallel into implicit shared clause.
15234 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
15235 and firstprivate if the decl has one too from combined parallel to
15236 the worksharing construct.
15237
15238 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
15239 Michael Meissner <meissner@linux.ibm.com>
15240
15241 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
15242
15243 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
15244
15245 * rtl.h (LABEL_REF_P): New #define.
15246
15247 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
15248
15249 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
15250
15251 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15252
15253 * internal-fn.c: Marked mask_load_direct as vectorizable.
15254 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
15255 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
15256 combined even if masks different with allow_slp_p param.
15257 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
15258 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
15259 dissolve SLP-only vectorizable groups when SLP has been discarded.
15260 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
15261 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
15262 masks.
15263 (vect_build_slp_tree_1): Fixed comment typo.
15264 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
15265 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
15266 loads for SLP only.
15267 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
15268 vectorizable.
15269 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
15270
15271 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15272
15273 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
15274 Remove obsolete use_thunk reference.
15275 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
15276 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15277 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
15278 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
15279 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15280 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15281 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15282 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
15283 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
15284
15285 2019-05-28 Nathan Sidwell <nathan@acm.org>
15286
15287 * tree.h (IDENTIFIER_ANON_P): New.
15288 (anon_aggrname_format, anon_aggname_p): Don't declare.
15289 (make_anon_name): Declare.
15290 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
15291 (hash_tree): Likewise.
15292 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
15293 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
15294 (anon_cnt, make_anon_name): New.
15295
15296 2019-05-28 Martin Liska <mliska@suse.cz>
15297
15298 PR other/90315
15299 * opts-global.c (decode_options): Print help for all
15300 help_option_arguments.
15301 * opts.c (print_help): Add new argument.
15302 (common_handle_option): Remember all values into
15303 help_option_arguments.
15304 * opts.h (print_help): Add new argument.
15305
15306 2019-05-28 Martin Liska <mliska@suse.cz>
15307
15308 PR ipa/90555
15309 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
15310 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
15311 (func_checker::compare_bb): Call compare_loops.
15312
15313 2019-05-27 Jakub Jelinek <jakub@redhat.com>
15314
15315 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15316 on sections construct.
15317 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
15318 construct.
15319 (lower_omp_sections): Handle lastprivate conditional.
15320 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
15321 lastprivate_conditional_map.
15322 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
15323
15324 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
15325 critical, taskgroup and section regions when looking for a region
15326 with non-NULL lastprivate_conditional_map.
15327
15328 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15329
15330 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
15331 (*ix86_gen_sub3): Ditto.
15332 (*ix86_gen_sub3_carry): Ditto.
15333 (*ix86_gen_one_cmpl2): Ditto.
15334 (*ix86_gen_andsp): Ditto.
15335 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
15336 (gen_and2_insn): New static function.
15337 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
15338 Use gen_add3_insn instead of ix86_gen_add3.
15339 (ix86_expand_split_stack_prologue): Use gen_add2_insn
15340 instead of ix86_gen_add3.
15341 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
15342 Use gen_sub3_insn instead of ix86_gen_sub3.
15343 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
15344 instead of ix86_gen_add3.
15345 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
15346 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
15347 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
15348 * config/i386/i386-options.c (ix86_option_override_internal):
15349 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15350 ix86_gen_one_cmpl2 and ix86_gen_andsp.
15351
15352 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
15353
15354 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
15355 and DW_OP_GNU_const_index opcodes.
15356
15357 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15358
15359 * config/i386/i386.h (STACK_SIZE_MODE): Define.
15360
15361 2019-05-27 Richard Biener <rguenther@suse.de>
15362
15363 PR tree-optimization/90637
15364 * tree-ssa-sink.c (statement_sink_location): Honor the
15365 computed sink location for single-uses.
15366
15367 2019-05-27 Richard Biener <rguenther@suse.de>
15368
15369 PR middle-end/90610
15370 * match.pd (vec_perm): Avoid clobbering op0 when not generating
15371 a bit-insert.
15372
15373 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15374
15375 * config/i386/i386.md (@sub<mode>3_carry): Rename
15376 from sub<mode>3_carry.
15377 (@leave_<mode>): New expander.
15378 (*leave): Rename from leave.
15379 (*leave_rex64): Rename from leave_rex64.
15380 (@monitorx_<mode>): Rename from monitorx_<mode>.
15381 (@clzero_<mode>): Rename from clzero_<mode>.
15382 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15383 from sse3_monitor_<mode>.
15384 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15385 (*ix86_gen_leave): Ditto.
15386 (*ix86_gen_monitor): Ditto.
15387 (*ix86_gen_monitorx): Ditto.
15388 (*ix86_gen_clzero): Ditto.
15389 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15390 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15391 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15392 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15393 Use gen_sse3_monitor instead of ix86_gen_monitor.
15394 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15395 instead of ix86_gen_monitorx.
15396 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15397 instead of ix86_gen_clzero.
15398 * config/i386/i386-options.c (ix86_option_override_internal):
15399 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15400 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15401
15402 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15403
15404 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15405 Rename from tls_global_dynamic_64_<mode>.
15406 (@tls_local_dynamic_base_64_<mode>): Rename from
15407 tls_local_dynamic_base_64_<mode>.
15408 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15409 Remove indirect function.
15410 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15411 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15412 instead of ix86_gen_tls_global_dynamic_64.
15413 Use gen_tls_local_dynamic_base_64 instead of
15414 ix86_gen_tls_local_dynamic_base_64.
15415 * config/i386/i386-options.c (ix86_option_override_internal):
15416 Do not initialize ix86_gen_tls_global_dynamic_64 and
15417 ix86_gen_tls_local_dynamic_base_64.
15418
15419 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15420
15421 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15422 Rename from pro_epilogue_adjust_stack_<mode>_add.
15423 (@pro_epilogue_adjust_stack_sub_<mode>)
15424 Rename from pro_epilogue_adjust_stack_<mode>_sub.
15425 (@allocate_stack_worker_probe_<mode>):
15426 Rename from allocate_stack_worker_probe_<mode>.
15427 (allocate_stack): Use gen_allocate_stack_worker_probe.
15428 (probe_stack): Use gen_probe_stack_1.
15429 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15430 (@adjust_stack_and_probe_<mode>): Rename from
15431 adjust_stack_and_probe<mode>.
15432 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15433 (stack_protect_set): Use gen_stack_protect_set_1.
15434 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15435 (stack_protect_test): Use gen_stack_protect_test_1.
15436 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15437 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15438 Remove indirect function.
15439 (*ix86_gen_adjust_stack_and_probe): Ditto.
15440 (*ix86_gen_probe_stack_range): Ditto.
15441 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15442 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15443 (ix86_adjust_stack_and_probe_stack_clash): Use
15444 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15445 (ix86_adjust_stack_and_probe): Ditto.
15446 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15447 of ix86_gen_probe_stack_range.
15448 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15449 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15450 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15451 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
15452 CODE_FOR_stack_protect_test_{si,di}.
15453 * config/i386/i386-options.c (ix86_option_override_internal):
15454 Do not initialize ix86_gen_allocate_stack_worker,
15455 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15456
15457 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
15458
15459 * doc/invoke.texi (Link Options): Many editorial changes around
15460 -flinker-output.
15461
15462 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15463
15464 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15465 pre-Solaris 11 referene and most Studio compiler details.
15466
15467 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
15468
15469 PR target/90530
15470 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15471 DImode to SImode in floating-point registers on 64-bit target.
15472 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15473 register_operand in xmpyu patterns.
15474
15475 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15476
15477 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15478 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15479 OMP_CLAUSE__REDUCTEMP_.
15480 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15481 OMP_CLAUSE__CONDTEMP_.
15482 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15483 * tree-pretty-print.c (dump_omp_clause): Likewise.
15484 * tree-nested.c (convert_nonlocal_omp_clauses,
15485 convert_local_omp_clauses): Likewise.
15486 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15487 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
15488 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15489 on OMP_FOR.
15490 (gimplify_omp_for): Warn and disable conditional modifier from
15491 lastprivate on loop iterators.
15492 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15493 member.
15494 * omp-general.c (omp_extract_for_data): Initialize it.
15495 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15496 member.
15497 (delete_omp_context): Delete it.
15498 (lower_lastprivate_conditional_clauses): New function.
15499 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15500 handle lastprivate conditional clauses.
15501 (lower_reduction_clauses): Add CLIST argument, emit it into
15502 the critical section if any.
15503 (lower_omp_sections): Adjust lower_lastprivate_clauses and
15504 lower_reduction_clauses callers.
15505 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15506 to lower_lastprivate_clauses.
15507 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15508 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15509 clist into a critical section if not emitted there already by
15510 lower_reduction_clauses.
15511 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15512 callers.
15513 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15514 conditional variables.
15515 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15516 clause is present.
15517 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15518 expand_omp_for_static_chunk): Handle lastprivate conditional.
15519 (expand_omp_for): Handle fd.lastprivate_conditional like
15520 fd.have_reductemp.
15521
15522 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15523
15524 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15525 kernel does not exit cleanly.
15526 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15527
15528 2019-05-24 Jason Merrill <jason@redhat.com>
15529
15530 Revert:
15531 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15532
15533 2019-05-24 Richard Biener <rguenther@suse.de>
15534
15535 PR testsuite/90607
15536 * tree-loop-distribution.c (struct partition): Add location
15537 member.
15538 (partition_alloc): Initialize all fields.
15539 (generate_memset_builtin): Use the location recorded in the
15540 partition for the generated call.
15541 (generate_memcpy_builtin): Likewise.
15542 (classify_partition): Record the location of a single store
15543 as location for the partition.
15544
15545 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15546
15547 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15548 for lo-part.
15549
15550 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
15551
15552 PR target/90588
15553 * common/config/aarch64/aarch64-common.c
15554 (aarch64_rewrite_selected_cpu): Change local temporary variable
15555 type from unsigned long to uint64_t.
15556 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15557 aarch64_get_extension_string_for_isa_flags): Change declaration to
15558 match new definition by replacing unsigned long with uint64_t.
15559
15560 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15561
15562 PR target/90568
15563 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15564 gen_attr_type just once instead of 4-7 times. Formatting fixes.
15565 Handle stack_protect_test_<mode> codegen similarly to corresponding
15566 sub instruction.
15567
15568 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
15569
15570 * config/i386/darwin.h: Reject -mfentry*.
15571 * doc/sourcebuild.texi: Document mfentry target support.
15572
15573 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15574
15575 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15576 Rename to rs6000_global_entry_point_prologue_needed_p. Return
15577 false for PC-relative functions.
15578 (rs6000_output_function_prologue): Change called function name to
15579 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
15580 name,1" for PC-relative functions.
15581 (rs6000_elf_declare_function_name): Change called function name to
15582 rs6000_global_entry_point_prologue_needed_p.
15583
15584 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
15585
15586 PR target/90552
15587 * config/i386/i386.c (gen_rtx_cost):
15588 Use ix86_tune_cost instead of ix86_cost.
15589
15590 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15591 Michael Meissner <meissner@linux.ibm.com>
15592 Segher Boessenkool <segher@kernel.crashing.org>
15593
15594 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
15595 OPTION_MASK_PCREL.
15596 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
15597 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
15598 (rs6000_fndecl_pcrel_p): Likewise.
15599 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
15600 error if -mpcrel is requested without -mcpu=future.
15601 (rs6000_opt_masks): Add entry for pcrel.
15602 (rs6000_fndecl_pcrel_p): New function.
15603 (rs6000_pcrel_p): Likewise.
15604 * config/rs6000/rs6000.opt (mpcrel): New option.
15605 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
15606
15607 2019-05-23 Jan Hubicka <jh@suse.cz>
15608 Martin Liska <mliska@suse.cz>
15609
15610 PR tree-optimization/90576
15611 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
15612 poly_int_tree_p.
15613 (aliasing_component_refs_p): Fix three way size compare conditional;
15614 give up earlier in case we can not decide on equivalence.
15615
15616 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15617 Michael Meissner <meissner@linux.ibm.com>
15618 Segher Boessenkool <segher@kernel.crashing.org>
15619
15620 * config.gcc: Add future cpu.
15621 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
15622 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
15623 #define.
15624 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
15625 (RS6000_CPU): New instantiation for future cpu.
15626 * config/rs6000/rs6000-opts.h (enum processor_type): Add
15627 PROCESSOR_FUTURE.
15628 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
15629 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
15630 * config/rs6000/rs6000-tables.opt: Regenerate.
15631 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
15632 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
15633 (rs6000_machine_from_flags): Handle future cpu.
15634 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
15635 PROCESSOR_POWER9 for now.
15636 (rs6000_adjust_cost): Likewise.
15637 (rs6000_issue_rate): Likewise.
15638 (rs6000_register_move_cost): Likewise.
15639 (rs6000_opt_masks): Add entry for future.
15640 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
15641 (MASK_FUTURE): New #define.
15642 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
15643 * config/rs6000/rs6000.opt (mfuture): New target option.
15644 * doc/invoke.texi (mcpu): Add future cpu.
15645
15646 2019-05-23 Martin Liska <mliska@suse.cz>
15647
15648 PR c++/90587
15649 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
15650 operation points to a temporary (pointed via tree_to_wide_ref)
15651 that is out of scope after the &.
15652
15653 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
15654
15655 PR c++/90592
15656 * doc/extend.texi (Function Names): Add missing word.
15657
15658 2019-05-23 Richard Biener <rguenther@suse.de>
15659
15660 PR tree-optimization/88440
15661 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
15662 at -O[2s]+.
15663 * tree-loop-distribution.c (generate_memset_builtin): Fold the
15664 generated call.
15665 (generate_memcpy_builtin): Likewise.
15666 (distribute_loop): Pass in whether to only distribute patterns.
15667 (prepare_perfect_loop_nest): Also allow size optimization.
15668 (pass_loop_distribution::execute): When optimizing a loop
15669 nest for size allow pattern replacement.
15670
15671 2019-05-23 Jakub Jelinek <jakub@redhat.com>
15672
15673 PR target/90568
15674 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
15675 of xor.
15676
15677 2019-05-23 Martin Liska <mliska@suse.cz>
15678
15679 PR sanitizer/90570
15680 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
15681 expression similarly to gimplify_decl_expr.
15682
15683 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15684
15685 * cse.c (cse_dump_path): s/dump_file/f.
15686
15687 2019-05-22 David Malcolm <dmalcolm@redhat.com>
15688
15689 PR c++/90462
15690 * diagnostic-format-json.cc: Include "selftest.h".
15691 (json_from_expanded_location): Only add "file" key for non-NULL
15692 file strings.
15693 (json_from_location_range): Don't add "start" and "finish"
15694 children if they are UNKNOWN_LOCATION.
15695 (selftest::test_unknown_location): New selftest.
15696 (selftest::test_bad_endpoints): New selftest.
15697 (selftest::diagnostic_format_json_cc_tests): New function.
15698 * json.cc (json::object::get): New function.
15699 (selftest::test_object_get): New selftest.
15700 (selftest::json_cc_tests): Call it.
15701 * json.h (json::object::get): New decl.
15702 * selftest-run-tests.c (selftest::run_tests): Call
15703 selftest::diagnostic_format_json_cc_tests.
15704 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
15705 decl.
15706
15707 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15708 Andrew Stubbs <amd@codesourcery.com>
15709
15710 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
15711 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
15712 (kernel): Rename to...
15713 (main_kernel): ... this.
15714 (load_image): Load _init_array and _fini_array kernels.
15715 (run): Add argument for kernel to run.
15716 (main): Run init_array_kernel before main_kernel, and
15717 fini_array_kernel after.
15718 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
15719 amdgpu_hsa_kernel attribute on functions.
15720 (gcn_disable_constructors): Delete.
15721 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
15722 * config/gcn/crt0.c (size_t): Define.
15723 (_init_array, _fini_array): New.
15724 (__preinit_array_start, __preinit_array_end,
15725 __init_array_start, __init_array_end,
15726 __fini_array_start, __fini_array_end): Declare weak references.
15727
15728 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
15729
15730 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
15731
15732 2019-05-22 Jason Merrill <jason@redhat.com>
15733
15734 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15735
15736 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
15737
15738 PR target/88483
15739 * config/i386/i386-options.c (ix86_init_machine_status): Set
15740 stack_frame_required to true.
15741 * config/i386/i386.c (ix86_get_frame_size): New function.
15742 (ix86_frame_pointer_required): Replace get_frame_size with
15743 ix86_get_frame_size.
15744 (ix86_compute_frame_layout): Likewise.
15745 (ix86_find_max_used_stack_alignment): Changed to void. Set
15746 stack_frame_required.
15747 (ix86_finalize_stack_frame_flags): Always call
15748 ix86_find_max_used_stack_alignment. Replace get_frame_size with
15749 ix86_get_frame_size.
15750 * config/i386/i386.h (machine_function): Add stack_frame_required.
15751
15752 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
15753
15754 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
15755
15756 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
15757
15758 * common/config/aarch64/aarch64-common.c
15759 (struct aarch64_option_extension, struct processor_name_to_arch,
15760 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
15761 aarch64_contains_opt,
15762 aarch64_get_extension_string_for_isa_flags): Change type of
15763 variables storing flags to uint64_t.
15764 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
15765 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
15766 * config/aarch64/aarch64.c (struct processor,
15767 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
15768 aarch64_validate_march, aarch64_override_options,
15769 aarch64_option_print, aarch64_handle_attr_isa_flags,
15770 aarch64_declare_function_name, aarch64_start_file): Make flag
15771 variables uint64_t.
15772 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
15773 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
15774 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
15775 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
15776 * config/aarch64/driver-aarch64.c
15777 (struct aarch64_arch_extension, struct aarch64_core_data,
15778 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
15779 flag variables uint64_t.
15780 * doc/invoke.texi: Add documentation for new arguments.
15781
15782 2019-05-22 Richard Biener <rguenther@suse.de>
15783
15784 * alias.c (ao_ref_from_mem): Move stack-slot sharing
15785 rewrite ...
15786 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
15787
15788 2019-05-22 Martin Liska <mliska@suse.cz>
15789
15790 PR lto/90500
15791 * doc/extend.texi: Document the change.
15792
15793 2019-05-22 Richard Biener <rguenther@suse.de>
15794
15795 PR tree-optimization/90450
15796 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
15797 (mem_ref_hasher::equal): Check it.
15798 (mem_ref_alloc): Initialize it.
15799 (gather_mem_refs_stmt): Set it.
15800
15801 2019-05-22 Richard Biener <rguenther@suse.de>
15802
15803 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
15804 Add ABS_EXPR.
15805 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
15806 as ABSU_EXPR.
15807
15808 2019-05-22 Alan Modra <amodra@gmail.com>
15809
15810 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
15811 (ASM_CPU_SPEC): Conditionally add -many.
15812 * config/rs6000/rs6000.c (rs6000_machine): New static var.
15813 (rs6000_machine_from_flags, emit_asm_machine): New functions..
15814 (rs6000_file_start): ..extracted from here, and modified to
15815 test all ISA bits.
15816 (rs6000_output_function_prologue): Emit .machine as necessary.
15817
15818 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
15819
15820 PR middle-end/90553
15821 * ira-lives.c (process_bb_node_lives): Consider defs
15822 for a call insn to be die before the call, not after.
15823
15824 * function.c (assign_parm_setup_block): Raise alignment of
15825 stacked parameter only for STRICT_ALIGNMENT targets.
15826
15827 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15828
15829 * config/rs6000/constraints.md (define_register_constraint "wz"):
15830 Delete.
15831 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15832 RS6000_CONSTRAINT_wz.
15833 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15834 (rs6000_init_hard_regno_mode_ok): Adjust.
15835 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
15836 * doc/md.texi (Machine Constraints): Adjust.
15837
15838 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15839
15840 * config/rs6000/constraints.md (define_register_constraint "wl"):
15841 Delete.
15842 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15843 RS6000_CONSTRAINT_wl.
15844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15845 (rs6000_init_hard_regno_mode_ok): Adjust.
15846 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
15847 * doc/md.texi (Machine Constraints): Adjust.
15848
15849 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15850
15851 * config/rs6000/constraints.md (define_register_constraint "wm"):
15852 Delete.
15853 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15854 RS6000_CONSTRAINT_wm.
15855 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15856 (rs6000_init_hard_regno_mode_ok): Adjust.
15857 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
15858 * doc/md.texi (Machine Constraints): Adjust.
15859
15860 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15861
15862 * config/rs6000/constraints.md (define_register_constraint "wk"):
15863 Delete.
15864 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15865 RS6000_CONSTRAINT_wk.
15866 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15867 (rs6000_init_hard_regno_mode_ok): Adjust.
15868 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
15869 * doc/md.texi (Machine Constraints): Adjust.
15870
15871 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15872
15873 * config/rs6000/constraints.md (define_register_constraint "wj"):
15874 Delete.
15875 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15876 RS6000_CONSTRAINT_wj.
15877 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15878 (rs6000_init_hard_regno_mode_ok): Adjust.
15879 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
15880 (VS_64dm): Delete.
15881 * config/rs6000/vsx.md: Ditto.
15882 * doc/md.texi (Machine Constraints): Adjust.
15883
15884 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15885
15886 * config/rs6000/constraints.md (define_register_constraint "wh"):
15887 Delete.
15888 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15889 RS6000_CONSTRAINT_wh.
15890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15891 (rs6000_init_hard_regno_mode_ok): Adjust.
15892 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
15893 * doc/md.texi (Machine Constraints): Adjust.
15894
15895 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15896
15897 PR target/90547
15898 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15899 Avoid calling gen_lowpart with CONST operand.
15900
15901 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
15902
15903 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
15904 field template_last_to_copy.
15905 (ssa_create_duplicates): Set it, and use it. Attempt to
15906 preserve more debug stmts.
15907
15908 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15909
15910 * config/i386/sse.md (VF1_AVX2): New mode iterator.
15911 (signbit<mode>2): New expander
15912
15913 2019-05-21 James Clarke <jrtc27@jrtc27.com>
15914
15915 PR bootstrap/87338
15916 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
15917 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
15918
15919 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15920
15921 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
15922 %ebx and %ecx bafore calling cpuid with leaf 1 or
15923 non-constant leaf argument.
15924
15925 2019-05-21 Alan Modra <amodra@gmail.com>
15926
15927 PR target/90545
15928 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
15929 power9 direct move cost.
15930
15931 2019-05-21 Richard Biener <rguenther@suse.de>
15932
15933 PR middle-end/90510
15934 * fold-const.c (fold_read_from_vector): New function.
15935 * fold-const.h (fold_read_from_vector): Declare.
15936 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
15937 single-element insert permutations. Canonicalize selector
15938 further and fix issue with last commit.
15939
15940 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15941
15942 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
15943 parameter with default value false to declaration.
15944 (split_edges_for_insertion): New inline function. Wrapper for
15945 split_critical_edges with for_edge_insertion_p = true.
15946 * tree-cfg.c (split_critical_edges): Don't split non-critical
15947 edges if for_edge_insertion_p is false. Fix whitespace.
15948 * tree-ssa-pre.c (pass_pre::execute): Call
15949 split_edges_for_insertion instead of split_critical_edges.
15950 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
15951 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
15952 (pass_data_sink_code): Update function name in the comment.
15953
15954 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15955
15956 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
15957 around is_value_included_in that knows how to handle BIT_AND_EXPR.
15958 (is_pred_expr_subset_of): Use the new function. Handle more cases where
15959 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
15960 positives.
15961
15962 2019-05-21 Martin Liska <mliska@suse.cz>
15963
15964 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
15965 an extra newline.
15966 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
15967 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
15968 vec_lvsr.
15969 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15970 Quote a C type.
15971 (rs6000_function_arg): Likewise.
15972 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
15973 (rs6000_expand_ternop_builtin): Use interval syntax.
15974 (get_element_number): Likewise.
15975 (altivec_expand_builtin): Likewise.
15976 (rs6000_get_function_versions_dispatcher): Quote target_clones.
15977
15978 2019-05-20 Jakub Jelinek <jakub@redhat.com>
15979
15980 PR c++/59813
15981 PR target/90418
15982 * function.h (struct function): Add calls_eh_return member.
15983 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
15984 gimplifying __builtin_eh_return call.
15985 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
15986 to cfun.
15987 (expand_call_inline): Or in src_cfun->calls_eh_return into
15988 dst_cfun->calls_eh_return.
15989 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
15990 cfun->calls_eh_return.
15991 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
15992 * lto-streamer-out.c (output_struct_function_base): Write
15993 calls_eh_return.
15994
15995 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
15996
15997 PR rtl-optimization/43147
15998 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
15999 IX86_BUILTIN_SHUFPD.
16000
16001 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
16002
16003 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
16004 (refs_may_alias_p_1): ... here; update stats.
16005 (refs_may_alias_p): Do not update stats here.
16006
16007 2019-05-20 Richard Biener <rguenther@suse.de>
16008
16009 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
16010 doesn't produce pointers.
16011 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
16012 the first operand points to.
16013
16014 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
16015
16016 * tree-ssa-alias.c (compare_sizes): New function.
16017 (sompare_type_sizes): New function
16018 (aliasing_component_refs_p): Use it.
16019 (indirect_ref_may_alias_decl_p): Likewise.
16020
16021 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16022
16023 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
16024
16025 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16026
16027 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
16028 (LIBLSAN_EARLY_SPEC): Likewise.
16029 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
16030
16031 2019-05-20 Martin Liska <mliska@suse.cz>
16032
16033 * config/i386/i386.c (ix86_libc_has_fast_function):
16034 Add ATTRIBUTE_UNUSED for the argument.
16035
16036 2019-05-20 Richard Biener <rguenther@suse.de>
16037
16038 * gimple-match-head.c: Include vec-perm-indices.h.
16039 * generic-match-head.c: Likewise.
16040 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
16041 is included.
16042 * fold-const.c (fold_vec_perm): Export.
16043 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
16044 (match.pd): ...here.
16045
16046 2019-05-20 Jakub Jelinek <jakub@redhat.com>
16047
16048 * cfgloop.h (struct loop): Add simdlen member.
16049 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
16050 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
16051 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
16052 as new argument to autovectorize_vector_sizes target hook. If
16053 loop->simdlen, pick up vector size where the vectorization factor
16054 is equal to loop->simd, and if there is none, fall back to the first
16055 successful one.
16056 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
16057 caller.
16058 * omp-low.c (omp_clause_aligned_alignment): Likewise.
16059 * omp-general.c (omp_max_vf): Likewise.
16060 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
16061 * tree-vect-slp.c (vect_slp_bb): Likewise.
16062 * target.def (autovectorize_vector_sizes): Add ALL argument and
16063 document it.
16064 * doc/tm.texi: Adjust documentation.
16065 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
16066 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
16067 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
16068 bool argument.
16069 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
16070 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
16071 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
16072 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
16073 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
16074 preferred vector size is not 512-bit or 256-bit, just put those
16075 unpreferred ones last.
16076
16077 2019-05-20 Martin Liska <mliska@suse.cz>
16078
16079 * targhooks.c (default_libc_has_fast_function): New function.
16080 * targhooks.h (default_libc_has_fast_function): Likewise.
16081
16082 2019-05-20 Martin Liska <mliska@suse.cz>
16083
16084 PR middle-end/90263
16085 * builtins.c (expand_builtin_memory_copy_args): When having a
16086 target with fast mempcpy implementation do now use memcpy.
16087 * config/i386/i386.c (ix86_libc_has_fast_function): New.
16088 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
16089 * doc/tm.texi: Likewise.
16090 * doc/tm.texi.in: Likewise.
16091 * target.def:
16092 * expr.c (emit_block_move_hints): Add 2 new arguments.
16093 * expr.h (emit_block_move_hints): Bail out when libcall
16094 to memcpy would be used.
16095
16096 2019-05-20 Martin Liska <mliska@suse.cz>
16097
16098 * profile-count.c: Add vertical spacing in order
16099 to separate functions.
16100 * profile-count.h: Likewise.
16101
16102 2019-05-20 Martin Liska <mliska@suse.cz>
16103
16104 * profile-count.h: Do not use full qualified
16105 names if possible.
16106 * profile-count.c (profile_count::to_frequency): Likewise.
16107
16108 2019-05-20 Martin Liska <mliska@suse.cz>
16109
16110 * profile-count.h (enum profile_quality): Use capital letters
16111 for enum value names. Use the adjusted names.
16112 * profile-count.c: Use the adjusted names.
16113
16114 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16115
16116 * config/rs6000/constraints.md (define_register_constraint "wH"):
16117 Delete.
16118 (define_register_constraint "wI"): Delete.
16119 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16120 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
16121 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16122 (rs6000_init_hard_regno_mode_ok): Adjust.
16123 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
16124 resp. "d", or with "wa" as appropriate, all with "p8v".
16125 * config/rs6000/vsx.md: Ditto.
16126 * doc/md.texi (Machine Constraints): Adjust.
16127
16128 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16129
16130 * config/rs6000/constraints.md (define_register_constraint "wy"):
16131 Delete.
16132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16133 RS6000_CONSTRAINT_wy.
16134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16135 (rs6000_init_hard_regno_mode_ok): Adjust.
16136 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
16137 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
16138 (define_mode_attr Fisa): New.
16139 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
16140 * doc/md.texi (Machine Constraints): Adjust.
16141
16142 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16143
16144 * config/rs6000/constraints.md (define_register_constraint "wu"):
16145 Delete.
16146 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16147 RS6000_CONSTRAINT_wu.
16148 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16149 (rs6000_init_hard_regno_mode_ok): Adjust.
16150 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
16151 both with "p8v".
16152 (define_mode_attr Fa): Delete.
16153 * config/rs6000/vsx.md: Ditto.
16154 * doc/md.texi (Machine Constraints): Adjust.
16155
16156 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16157
16158 * config/rs6000/constraints.md (define_register_constraint "wJ"):
16159 Delete.
16160 (define_register_constraint "wK"): Delete.
16161 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16162 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
16163 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16164 (rs6000_init_hard_regno_mode_ok): Adjust.
16165 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
16166 Replace "wK" constraint by "wH" with "p9v".
16167 * config/rs6000/vsx.md: Ditto.
16168 * doc/md.texi (Machine Constraints): Adjust.
16169
16170 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16171
16172 * config/rs6000/constraints.md (define_register_constraint "wb"):
16173 Delete.
16174 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16175 RS6000_CONSTRAINT_wb.
16176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16177 (rs6000_init_hard_regno_mode_ok): Adjust.
16178 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
16179 * config/rs6000/vsx.md: Ditto.
16180 * doc/md.texi (Machine Constraints): Adjust.
16181
16182 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16183
16184 * config/rs6000/constraints.md (define_register_constraint "wo"):
16185 Delete.
16186 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16187 RS6000_CONSTRAINT_wo.
16188 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16189 (rs6000_init_hard_regno_mode_ok): Adjust.
16190 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
16191 * config/rs6000/altivec.md: Ditto.
16192 * doc/md.texi (Machine Constraints): Adjust.
16193
16194 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16195
16196 * config/darwin-c.c (darwin_register_objc_includes): Do not
16197 prepend the sysroot when building gnu-runtime header search
16198 paths.
16199
16200 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16201
16202 * config/darwin.c (darwin_file_end): Use switch_to_section ()
16203 instead of direct output of the asm.
16204
16205 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16206
16207 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
16208 argument to be type bool (was int before).
16209 (rs6000_emit_epilogue): Simplify some code. Declare some variables
16210 at first use. Use type bool for some variables. Fix a theoretical
16211 eh_return bug for svr4.
16212
16213 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16214
16215 * config/rs6000/rs6000.md (isa): New attribute.
16216 (enabled): New attribute.
16217
16218 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
16219
16220 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
16221 assemble_start_function and assemble_end_function.
16222
16223 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
16224
16225 PR middle-end/89433
16226 * omp-general.c (oacc_verify_routine_clauses): Change formal
16227 parameters. Add checking if already marked with an OpenACC
16228 'routine' directive. Adjust all users.
16229
16230 PR middle-end/89433
16231 * omp-general.c (oacc_build_routine_dims): Move some of its
16232 processing into...
16233 (oacc_verify_routine_clauses): ... this new function.
16234 * omp-general.h (oacc_verify_routine_clauses): New prototype.
16235
16236 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16237
16238 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
16239 formating of picbase labels to match other ports.
16240
16241 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16242
16243 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
16244 in the generated code.
16245
16246 2019-05-16 Martin Sebor <msebor@redhat.com>
16247
16248 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
16249 identifiers, keywords, operators, and types in diagnostics. Correct
16250 quoting, spelling, and sentence capitalization issues.
16251 (expand_builtin_atomic_is_lock_free): Same.
16252 (fold_builtin_next_arg): Same.
16253 * cfgexpand.c (expand_one_var): Same.
16254 (tree_conflicts_with_clobbers_p): Same.
16255 (expand_asm_stmt): Same.
16256 (verify_loop_structure): Same.
16257 * cgraphunit.c (process_function_and_variable_attributes): Same.
16258 * collect-utils.c (collect_execute): Same.
16259 * collect2.c (maybe_run_lto_and_relink): Same.
16260 (is_lto_object_file): Same.
16261 (scan_prog_file): Same.
16262 * convert.c (convert_to_real_1): Same.
16263 * dwarf2out.c (dwarf2out_begin_prologue): Same.
16264 * except.c (verify_eh_tree): Same.
16265 * gcc.c (execute): Same.
16266 (eval_spec_function): Same.
16267 (run_attempt): Same.
16268 (driver::set_up_specs): Same.
16269 (compare_debug_auxbase_opt_spec_function): Same.
16270 * gcov-tool.c (unlink_gcda_file): Same.
16271 (do_merge): Same.
16272 (do_rewrite): Same.
16273 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
16274 * gimplify.c (gimplify_asm_expr): Same.
16275 (gimplify_adjust_omp_clauses): Same.
16276 * hsa-gen.c (gen_hsa_addr_insns): Same.
16277 (gen_hsa_insns_for_load): Same.
16278 (gen_hsa_cmp_insn_from_gimple): Same.
16279 (gen_hsa_insns_for_operation_assignment): Same.
16280 (gen_get_level): Same.
16281 (gen_hsa_alloca): Same.
16282 (omp_simple_builtin::generate): Same.
16283 (gen_hsa_atomic_for_builtin): Same.
16284 (gen_hsa_insns_for_call): Same.
16285 * input.c (dump_location_info): Same.
16286 * ipa-devirt.c (compare_virtual_tables): Same.
16287 * ira.c (ira_setup_eliminable_regset): Same.
16288 * lra-assigns.c (lra_assign): Same.
16289 * lra-constraints.c (lra_constraints): Same.
16290 * lto-streamer-in.c (lto_input_mode_table): Same.
16291 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
16292 (merge_and_complain): Same.
16293 (compile_offload_image): Same.
16294 (compile_images_for_offload_targets): Same.
16295 (debug_objcopy): Same.
16296 (run_gcc): Same.
16297 (main): Same.
16298 * opts.c (print_specific_help): Same.
16299 (parse_no_sanitize_attribute): Same.
16300 (print_help): Same.
16301 (handle_param): Same.
16302 * plugin.c (add_new_plugin): Same.
16303 (parse_plugin_arg_opt): Same.
16304 (try_init_one_plugin): Same.
16305 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
16306 operators, and types in diagnostics. Correct quoting and spelling
16307 issues.
16308 * read-rtl-function.c (parse_edge_flag_token): Same.
16309 (function_reader::parse_enum_value): Same.
16310 * reg-stack.c (check_asm_stack_operands): Same.
16311 * regcprop.c (validate_value_data): Same.
16312 * sched-rgn.c (make_pass_sched_fusion): Same.
16313 * stmt.c (check_unique_operand_names): Same.
16314 * targhooks.c (default_target_option_pragma_parse): Same.
16315 * tlink.c (recompile_files): Same.
16316 * toplev.c (process_options): Same.
16317 (do_compile): Same.
16318 * trans-mem.c (diagnose_tm_1): Same.
16319 (ipa_tm_scan_irr_block): Same.
16320 (ipa_tm_diagnose_transaction): Same.
16321 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
16322 format a tree code name in a diagnostic.
16323 (verify_types_in_gimple_min_lval): Same.
16324 (verify_types_in_gimple_reference): Same.
16325 (verify_gimple_call): Same.
16326 (verify_gimple_assign_unary): Same.
16327 (verify_gimple_assign_binary): Same.
16328 (verify_gimple_assign_ternary): Same.
16329 (verify_gimple_assign_single): Same.
16330 (verify_gimple_switch): Same.
16331 (verify_gimple_label): Same.
16332 (verify_gimple_phi): Same.
16333 (verify_gimple_in_seq): Same.
16334 (verify_eh_throw_stmt_node): Same.
16335 (collect_subblocks): Same.
16336 (gimple_verify_flow_info): Same.
16337 (do_warn_unused_result): Same.
16338 * tree-inline.c (expand_call_inline): Same.
16339 * tree-into-ssa.c (update_ssa): Same.
16340 * tree.c (tree_int_cst_elt_check_failed): Same.
16341 (tree_vec_elt_check_failed): Same.
16342 (omp_clause_operand_check_failed): Same.
16343 (verify_type_variant): Same.
16344 (verify_type): Same.
16345 * value-prof.c (verify_histograms): Same.
16346 * varasm.c (assemble_start_function): Same.
16347
16348 2019-05-16 Martin Sebor <msebor@redhat.com>
16349
16350 * config/i386/i386-expand.c (get_element_number): Quote keywords
16351 and other internal names in diagnostics. Adjust other diagnostic
16352 formatting issues noted by -Wformat-diag.
16353 * config/i386/i386-features.c
16354 (ix86_mangle_function_version_assembler_name): Same.
16355 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
16356 * config/i386/i386.c (ix86_function_type_abi): Same.
16357 (ix86_function_ms_hook_prologue): Same.
16358 (classify_argument): Same.
16359 (ix86_expand_prologue): Same.
16360 (ix86_md_asm_adjust): Same.
16361 (ix86_memmodel_check): Same.
16362
16363 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16364
16365 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
16366 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
16367 and fpxx modes.
16368
16369 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
16370
16371 PR target/90497
16372 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
16373 intrinsics without SSE/SSE2/SSSE3.
16374 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16375 check.
16376 (*mmx_uavgv8qi3): Likewise.
16377
16378 2019-05-17 Richard Biener <rguenther@suse.de>
16379
16380 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16381 VEC_PERM_EXPR as __VEC_PERM with -gimple.
16382
16383 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
16384
16385 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16386 vec_sldw insn pattern.
16387
16388 2019-05-17 Richard Biener <rguenther@suse.de>
16389
16390 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16391
16392 2019-05-17 Martin Liska <mliska@suse.cz>
16393
16394 PR driver/90496
16395 * toplev.c (output_stack_usage): With LTO and sanitizer it
16396 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16397 has no file location.
16398
16399 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16400
16401 PR c++/90484
16402 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16403 sz0 is equal to sz1, instead return false in that case.
16404
16405 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16406 has non-constant expression, force sctx.lane and use two
16407 argument IFN_GOMP_SIMD_LANE instead of single argument.
16408 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16409 two argument IFN_GOMP_SIMD_LANE without lhs.
16410 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16411 member.
16412 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16413 Define.
16414 (LOOP_REQUIRES_VERSIONING): Or in
16415 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16416 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16417 simd_if_cond.
16418 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16419 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16420 from simd if clause if needed.
16421
16422 2019-05-16 Richard Biener <rguenther@suse.de>
16423
16424 * tree-affine.c (expr_to_aff_combination): New function split
16425 out from...
16426 (tree_to_aff_combination): ... here.
16427 (aff_combination_expand): Avoid building a GENERIC tree.
16428
16429 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
16430
16431 * cgraphunit.c (cgraph_node::expand_thunk): Remove
16432 assemble_start_function and assemble_end_function calls.
16433 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16434 assemble_start_function and assemble_end_function.
16435 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16436 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16437 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16438 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16439 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16440 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16441 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16442 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16443 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16444 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16445 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16446 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16447 Likewise.
16448 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16449 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16450 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16451 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16452 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16453 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16454 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16455 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16456 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16457 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16458 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16459 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16460 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16461 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16462 Likewise.
16463 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16464 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16465 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16466
16467 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
16468
16469 * tree-ssa-alias.c (alias_stats): Add
16470 aliasing_component_refs_p_may_alias and
16471 aliasing_component_refs_p_no_alias.
16472 (dump_alias_stats): Print aliasing_component_refs_p stats.
16473 (aliasing_component_refs_p): Update stats.
16474
16475 2019-05-16 Martin Liska <mliska@suse.cz>
16476
16477 PR lto/90500
16478 * multiple_target.c (expand_target_clones): Do not allow
16479 target_clones being used with a symbol that is an alias.
16480
16481 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
16482
16483 PR tree-optimization/90394
16484 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16485 positives rather than ICE for cases where (code2 == NE_EXPR
16486 && code1 == BIT_AND_EXPR).
16487
16488 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16489
16490 PR fortran/90329
16491 * tree-core.h (struct tree_decl_common): Document
16492 decl_nonshareable_flag for PARM_DECLs.
16493 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16494 * calls.c (expand_call): Don't try tail call if caller
16495 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16496 passed on the stack and callee needs to pass any arguments on the
16497 stack.
16498 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16499 else if instead of series of mutually exclusive ifs. Handle
16500 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16501 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16502
16503 * lto-streamer.h (LTO_major_version): Bump to 9.
16504
16505 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
16506
16507 PR tree-optimization/90106
16508 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16509 new parameter as new internal function call, also move it to new
16510 basic block.
16511 (use_internal_fn): Pass internal function call to
16512 shrink_wrap_one_built_in_call_with_conds.
16513
16514 2019-05-15 Jakub Jelinek <jakub@redhat.com>
16515
16516 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16517 max_vf to 1.
16518 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16519 safelen_int and set loop->dont_vectorize.
16520
16521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16522
16523 PR target/89021
16524 * config/i386/i386-builtin.def: Enable MMX intrinsics with
16525 SSE/SSE2/SSSE3.
16526 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16527 Likewise.
16528 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16529 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16530 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16531 is defined.
16532
16533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16534
16535 PR target/89021
16536 * config/i386/mmx.md (*vec_dupv2sf): Changed to
16537 define_insn_and_split to support SSE emulation.
16538 (*vec_extractv2sf_0): Likewise.
16539 (*vec_extractv2sf_1): Likewise.
16540 (*vec_extractv2si_0): Likewise.
16541 (*vec_extractv2si_1): Likewise.
16542 (*vec_extractv2si_zext_mem): Likewise.
16543 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16544 (vec_extractv2sf_1 splitter): Likewise.
16545 (vec_extractv2sfsf): Likewise.
16546 (vec_setv2si): Likewise.
16547 (vec_extractv2si_1 splitter): Likewise.
16548 (vec_extractv2sisi): Likewise.
16549 (vec_setv4hi): Likewise.
16550 (vec_extractv4hihi): Likewise.
16551 (vec_setv8qi): Likewise.
16552 (vec_extractv8qiqi): Likewise.
16553 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16554 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16555 (vec_extractv2sisi): Likewise.
16556 (vec_extractv4hihi): Likewise.
16557 (vec_extractv8qiqi): Likewise.
16558 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16559 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16560 (vec_initv2sisi): Likewise.
16561 (vec_initv4hihi): Likewise.
16562 (vec_initv8qiqi): Likewise.
16563 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
16564 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16565 (vec_setv4hi): Likewise.
16566 (vec_setv8qi): Likewise.
16567
16568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16569
16570 PR target/89021
16571 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16572 TARGET_MMX_WITH_SSE.
16573 (MMXMODE:*mov<mode>_internal): Likewise.
16574 (MMXMODE:movmisalign<mode>): Likewise.
16575
16576 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
16577
16578 PR target/89021
16579 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16580 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16581 (sse2_cvtpd2pi): Ditto.
16582 (sse2_cvttpd2pi): Ditto.
16583 (*vec_concatv2sf_sse4_1): Ditto.
16584 (*vec_concatv2sf_sse): Ditto.
16585 (*vec_concatv2si_sse4_1): Ditto.
16586 (*vec_concatv2si): Ditto.
16587 (*vec_concatv4si_0): Ditto.
16588 (*vec_concatv2di_0): Ditto.
16589
16590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16591
16592 PR target/89021
16593 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
16594
16595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16596
16597 PR target/89021
16598 * config/i386/sse.md (ssse3_palignrdi): Changed to
16599 define_insn_and_split to support SSE emulation.
16600
16601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16602
16603 PR target/89021
16604 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
16605
16606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16607
16608 PR target/89021
16609 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
16610 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16611 SSE emulation.
16612
16613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16614
16615 PR target/89021
16616 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
16617 or TARGET_MMX_WITH_SSE.
16618 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
16619
16620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16621
16622 PR target/89021
16623 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
16624
16625 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16626
16627 PR target/89021
16628 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
16629 Changed to define_insn_and_split to support SSE emulation.
16630
16631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16632
16633 PR target/89021
16634 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
16635 Changed to define_insn_and_split to support SSE emulation.
16636
16637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16638
16639 PR target/89021
16640 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
16641 (*mmx_<emms>): This.
16642 (mmx_<emms>): New expander.
16643
16644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16645
16646 PR target/89021
16647 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
16648 support.
16649 (*sse2_umulv1siv1di3): Add SSE2 emulation.
16650
16651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16652
16653 PR target/89021
16654 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
16655
16656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16657
16658 PR target/89021
16659 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
16660
16661 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16662
16663 PR target/89021
16664 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
16665 TARGET_MMX_WITH_SSE.
16666 (*mmx_uavgv4hi3): Add SSE emulation.
16667
16668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16669
16670 PR target/89021
16671 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
16672 and TARGET_MMX_WITH_SSE.
16673 (*mmx_uavgv8qi3): Add SSE emulation.
16674
16675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16676
16677 PR target/89021
16678 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
16679 maskmovdqu for __MMX_WITH_SSE__.
16680
16681 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16682
16683 PR target/89021
16684 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
16685 TARGET_MMX and TARGET_MMX_WITH_SSE.
16686 (*mmx_umulv4hi3_highpart): Add SSE emulation.
16687
16688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16689
16690 PR target/89021
16691 * config/i386/mmx.md (mmx_pmovmskb): Changed to
16692 define_insn_and_split to support SSE emulation.
16693
16694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16695
16696 PR target/89021
16697 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
16698 and TARGET_MMX_WITH_SSE.
16699 (mmx_<code>v8qi3): Likewise.
16700 (smaxmin:<code>v4hi3): New.
16701 (umaxmin:<code>v8qi3): Likewise.
16702 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
16703 (umaxmin:*mmx_<code>v8qi3): Likewise.
16704
16705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16706
16707 PR target/89021
16708 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
16709 TARGET_MMX_WITH_SSE.
16710 (*mmx_pinsrw): Add SSE emulation.
16711
16712 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16713
16714 PR target/89021
16715 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
16716
16717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16718
16719 PR target/89021
16720 * config/i386/sse.md (sse_cvtpi2ps): Changed to
16721 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16722 SSE emulation.
16723
16724 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16725
16726 PR target/89021
16727 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
16728 (sse_cvttps2pi): Likewise.
16729
16730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16731
16732 PR target/89021
16733 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
16734 TARGET_MMX_WITH_SSE.
16735 (mmx_pshufw_1): Add SSE emulation.
16736 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
16737 TARGET_MMX_WITH_SSE to support SSE emulation.
16738
16739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16740
16741 PR target/89021
16742 * config/i386/constraints.md (Yw): New constraint.
16743 * config/i386/mmx.md (*vec_dupv2si): Changed to
16744 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
16745 support SSE emulation.
16746
16747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16748
16749 PR target/89021
16750 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
16751 TARGET_MMX_WITH_SSE.
16752 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16753 support.
16754 (mmx_gt<mode>3): Likewise.
16755
16756 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16757
16758 PR target/89021
16759 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
16760 TARGET_MMX_WITH_SSE. Add SSE support.
16761
16762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16763
16764 PR target/89021
16765 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
16766 TARGET_MMX_WITH_SSE.
16767 (any_logic:<code><mode>3): New.
16768 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
16769 Add SSE support.
16770
16771 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16772
16773 PR target/89021
16774 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
16775 TARGET_MMX_WITH_SSE. Add SSE emulation.
16776 (mmx_<shift_insn><mode>3): Likewise.
16777 (ashr<mode>3): New.
16778 (<shift_insn><mode>3): Likewise.
16779
16780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16781
16782 PR target/89021
16783 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
16784 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
16785
16786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16787
16788 PR target/89021
16789 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
16790 TARGET_MMX_WITH_SSE.
16791 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
16792 SSE support.
16793
16794 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16795
16796 PR target/89021
16797 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
16798 TARGET_MMX_WITH_SSE.
16799 (mulv4hi3): New.
16800 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16801 support.
16802
16803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16804
16805 PR target/89021
16806 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
16807 (plusminus:mmx_<plusminus_insn><mode>3): Check
16808 TARGET_MMX_WITH_SSE.
16809 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
16810 (<plusminus_insn><mode>3): New.
16811 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
16812 (*mmx_<plusminus_insn><mode>3): Likewise.
16813
16814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16815
16816 PR target/89021
16817 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
16818 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
16819 prototype.
16820 * config/i386/mmx.m (mmx_punpckhbw): Changed to
16821 define_insn_and_split to support SSE emulation.
16822 (mmx_punpcklbw): Likewise.
16823 (mmx_punpckhwd): Likewise.
16824 (mmx_punpcklwd): Likewise.
16825 (mmx_punpckhdq): Likewise.
16826 (mmx_punpckldq): Likewise.
16827
16828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16829 Uros Bizjak <ubizjak@gmail.com>
16830
16831 PR target/89021
16832 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
16833 New function.
16834 (ix86_split_mmx_pack): Likewise.
16835 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
16836 New prototype.
16837 (ix86_split_mmx_pack): Likewise.
16838 * config/i386/i386.md (mmx_isa): New.
16839 (enabled): Also check mmx_isa.
16840 * config/i386/mmx.md (any_s_truncate): New code iterator.
16841 (s_trunsuffix): New code attr.
16842 (mmx_packsswb): Removed.
16843 (mmx_packssdw): Likewise.
16844 (mmx_packuswb): Likewise.
16845 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
16846 MMX packsswb/packuswb with SSE2.
16847 (mmx_packssdw): Likewise.
16848 * config/i386/predicates.md (register_mmxmem_operand): New.
16849
16850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16851
16852 PR target/89021
16853 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16854 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
16855 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
16856 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
16857 (ix86_vector_mode_supported_p): Likewise.
16858 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
16859
16860 2019-05-15 Martin Liska <mliska@suse.cz>
16861
16862 PR middle-end/90478
16863 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16864 Check for overflow.
16865
16866 2019-05-15 Richard Biener <rguenther@suse.de>
16867
16868 * tree-into-ssa.c (pass_build_ssa::execute): Run
16869 update_address_taken before going into SSA.
16870
16871 2019-05-15 Richard Biener <rguenther@suse.de>
16872
16873 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
16874 as __BIT_FIELD_REF with type with -gimple.
16875
16876 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
16877
16878 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
16879 semantically equivalent branches (left over after prior refactorings).
16880
16881 2019-05-15 Richard Biener <rguenther@suse.de>
16882
16883 PR tree-optimization/88828
16884 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
16885 bogus check.
16886
16887 2019-05-14 Richard Biener <rguenther@suse.de>
16888
16889 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
16890 as __VIEW_CONVERT with -gimple.
16891
16892 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16893
16894 PR target/82920
16895 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
16896 Darwin.
16897
16898 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16899
16900 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
16901 define_split to become a define_insn_and_split.
16902
16903 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16904
16905 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
16906 arguments.
16907 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
16908 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
16909 (sibcall_epilogue): Adjust.
16910 (epilogue): Adjust.
16911
16912 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16913
16914 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
16915 to unsupported ones.
16916 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
16917 * config.host: Likewise.
16918 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
16919 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
16920 __svr4__]: Remove "brand" fallback.
16921 [!KSTAT_DATA_STRING]: Remove.
16922 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
16923 to *-*-solaris2*.
16924 (comdat_group): Likewise.
16925 (set_have_as_tls): Likewise.
16926 (gcc_cv_target_dl_iterate_phdr): Likewise.
16927 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
16928 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
16929 * configure: Regenerate.
16930 * doc/install.texi: Simplify Solaris target triplets.
16931 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
16932 (Specific, *-*-solaris2*): Document Solaris 10 removal.
16933 Remove Solaris 10 references.
16934 Remove obsolete Solaris bug reference.
16935 (Specific, sparc-sun-solaris2.10): Remove.
16936
16937 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
16938
16939 * config/i386/i386.md (any_div): New code iterator.
16940 (paired_mod): New code attribute.
16941 (sgnprefix): Handle DIV and UDIV RTXes.
16942 (u): Ditto.
16943 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
16944 and udivmod<mode>4 patterns using any_div code iterator.
16945 (divmod splitters): Macroize splitters using any_div code iterator.
16946 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
16947 (*udivmodsi4_pow2_zext_2): Ditto.
16948 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
16949 and *udivmod<mode>4_noext patterns using any_div code iterator.
16950 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
16951 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
16952 patterns using any_div code iterator.
16953 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
16954 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
16955 patterns using any_div code iterator.
16956 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
16957 udivmodhiqi3 patterns using any_extend code iterator.
16958
16959 2019-05-14 Richard Biener <rguenther@suse.de>
16960 H.J. Lu <hongjiu.lu@intel.com>
16961
16962 PR tree-optimization/88828
16963 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
16964 permuting in a single non-constant element not extracted
16965 from a vector.
16966
16967 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16968
16969 * internal-fn.def (SIGNBIT): New.
16970 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
16971 defined.
16972 (signbitv4sf2): Likewise.
16973
16974 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
16975
16976 PR target/90357
16977 * config/mips/mips.c (mips_split_move): Skip forward SRC into
16978 next insn when the SRC reg is dead.
16979
16980 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
16981
16982 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
16983 (alloc_cand_and_find_basis): Ditto.
16984 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
16985 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
16986 (create_add_imm_cand, slsr_process_cast): Ditto.
16987 (slsr_process_copy, replace_mult_candidate): Ditto.
16988 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
16989 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
16990 (pass_strength_reduction::execute): Init the first NULL element.
16991
16992 2019-05-13 Nathan Sidwell <nathan@acm.org>
16993
16994 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
16995 (run_attempt): Reformat line break.
16996
16997 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
16998
16999 PR target/90418
17000 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
17001 data registers in sibcall epilogues.
17002 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17003
17004 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
17005
17006 PR target/89221
17007 * configure.ac (--enable-frame-pointer):
17008 Disable by default for cygwin and mingw.
17009 * configure: Regenerate.
17010
17011 2019-05-13 Nathan Sidwell <nathan@acm.org>
17012
17013 * dwarf2out.c (breakout_comdat_types): Move comment to correct
17014 piece of code.
17015 (const_ok_for_output_1): Balance parens around #if/#else/#endif
17016 (gen_member_die): Move abstract origin check earlier. Only VARs
17017 can be static_inline_p. Simplify splicing control flow.
17018
17019 2019-05-13 Richard Biener <rguenther@suse.de>
17020
17021 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
17022 VIEW_CONVERT_EXPR.
17023 (vect_build_slp_tree_1): Likewise.
17024
17025 2019-05-13 Richard Biener <rguenther@suse.de>
17026
17027 PR tree-optimization/90402
17028 * tree-if-conv.c (tree_if_conversion): Value number only
17029 the loop body by making the latch an exit of the region
17030 as well.
17031 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
17032 processing PHIs.
17033 (do_rpo_vn): Deal with multiple edges into the entry block
17034 that are not backedges inside the region by skipping PHIs
17035 of the entry block.
17036
17037 2019-05-13 Richard Biener <rguenther@suse.de>
17038
17039 PR tree-optimization/90316
17040 * tree-ssa-pre.c (insert_aux): Fold into ...
17041 (insert): ... this function. Use a RPO walk to reduce the
17042 number of required iterations.
17043
17044 2019-05-13 Martin Liska <mliska@suse.cz>
17045
17046 PR tree-optimization/90416
17047 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
17048 string instead of passing the second part as va_arg argument.
17049
17050 2019-05-13 Martin Liska <mliska@suse.cz>
17051
17052 PR gcov-profile/90380
17053 * gcov.c (handle_cycle): Do not support zero cycle count,
17054 it should not be possible.
17055 (path_contains_zero_cycle_arc): New function.
17056 (circuit): Ignore zero cycle arc counts.
17057
17058 2019-05-13 Martin Liska <mliska@suse.cz>
17059
17060 PR gcov-profile/90380
17061 * gcov.c (enum loop_type): Remove the enum and
17062 the operator.
17063 (handle_cycle): Assert that we should not reach
17064 a negative count.
17065 (circuit): Use loop_found instead of a tri-state loop_type.
17066 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
17067 happen.
17068
17069 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17070
17071 PR target/82920
17072 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
17073 (ix86_output_indirect_branch_via_reg): Use output mechanism
17074 accounting for __USER_LABEL_PREFIX__.
17075 (ix86_output_indirect_branch_via_push): Likewise.
17076 (ix86_output_function_return): Likewise.
17077 (ix86_output_indirect_function_return): Likewise.
17078
17079 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
17080
17081 * doc/md.texi: Document use of code attributes in rtx patterns.
17082 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
17083 * read-rtl.c (find_code): Split out search loops into...
17084 (maybe_find_code): ...this new function.
17085 (check_code_iterator): Make the error message more informative.
17086 (check_code_attribute): New function.
17087 (rtx_reader::rtx_alloc_for_name): Likewise.
17088 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
17089 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
17090 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
17091 <max_opp> directly as an rtx code instead of via a match_operator.
17092 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
17093 (<su>abd<mode>_3): Update accordingly.
17094
17095 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17096
17097 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
17098 is given, print the state of the EH "save world" computation for
17099 Darwin.
17100
17101 2019-05-11 Jakub Jelinek <jakub@redhat.com>
17102
17103 PR c++/59813
17104 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
17105 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17106
17107 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
17108
17109 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
17110 Use pinsrd for TARGET_SSE4_1.
17111 * config/i386/sse.md (movdi_to_sse): Ditto.
17112
17113 2019-05-10 Richard Biener <rguenther@suse.de>
17114
17115 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
17116 (do_rpo_vn): Initialize next_value_id.
17117
17118 2019-05-10 Martin Liska <mliska@suse.cz>
17119
17120 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17121 Fix plural form.
17122
17123 2019-05-10 Jakub Jelinek <jakub@redhat.com>
17124
17125 PR tree-optimization/90385
17126 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
17127 arguments of the exit phis.
17128
17129 PR c++/90383
17130 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
17131 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
17132 id->do_not_fold.
17133 (copy_tree_body_r): Likewise.
17134 (copy_fn): Set id.do_not_fold to true.
17135
17136 2019-05-10 Martin Liska <mliska@suse.cz>
17137
17138 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
17139 Reapply changes from r269790.
17140
17141 2019-05-10 Martin Liska <mliska@suse.cz>
17142
17143 PR middle-end/90340
17144 * doc/invoke.texi: New params.
17145 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
17146 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
17147 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17148 Use it.
17149 * tree-switch-conversion.h (struct jump_table_cluster):
17150 Likewise.
17151
17152 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
17153
17154 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
17155
17156 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
17157
17158 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
17159
17160 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
17161
17162 PR rtl-optimization/88879
17163 * sel-sched.c (sel_target_adjust_priority): Remove assert.
17164
17165 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
17166
17167 PR target/90405
17168 * config/arm/arm.c (callee_saved_reg_p): Move before
17169 thumb_find_work_register.
17170 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
17171 thumb_find_work_register. Only call df_get_live_out once.
17172 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
17173 (thumb_find_work_register): Use
17174 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
17175 algorithms to locate a spare call clobbered reg.
17176
17177 2019-05-09 Martin Liska <mliska@suse.cz>
17178
17179 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
17180 and MAX_EXPR in GIMPLE FE format.
17181
17182 2019-05-09 Martin Liska <mliska@suse.cz>
17183
17184 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
17185 * gimple-pretty-print.c (dump_gimple_bb_header):
17186 Dump BB count.
17187 (pp_cfg_jump): Dump edge probability.
17188 * profile-count.c (profile_quality_as_string): Simplify
17189 with a static array.
17190 (parse_profile_quality): New function.
17191 (profile_count::dump): Simplify with a static array.
17192 (profile_count::from_gcov_type): Add new argument.
17193 * profile-count.h (parse_profile_quality): Likewise.
17194 * predict.h (set_hot_bb_threshold): New.
17195 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17196 New param.
17197 * predict.c (get_hot_bb_threshold): Set from the new param.
17198 (set_hot_bb_threshold): New.
17199
17200 2019-05-09 Richard Biener <rguenther@suse.de>
17201
17202 PR tree-optimization/90395
17203 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
17204 rewrite vector stores that throw internally.
17205
17206 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
17207
17208 * cif-code.def (CHKP): Remove.
17209
17210 PR target/89221
17211 * configure.ac (--enable-frame-pointer): Disable by default for
17212 GNU systems.
17213 * configure: Regenerate.
17214
17215 2019-05-09 Alan Modra <amodra@gmail.com>
17216
17217 PR target/89271
17218 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
17219 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
17220 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
17221 cost for general <-> vsx when direct moves are available.
17222 Cost union classes at minimal cost for any reg in the class.
17223 Correct calculation for moves between vsx, float, and altivec.
17224 Don't return a low cost for moves between special regs. Don't
17225 use hard coded register numbers.
17226 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
17227 (rs6000_ira_change_pseudo_allocno_class): New function.
17228 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
17229 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
17230 alternatives.
17231 (movsi_internal1): Don't disparage vector alternatives.
17232 (mov<mode>_internal): Likewise, excepting alternative that
17233 will be split.
17234 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
17235 we <- b alternative.
17236
17237 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17238
17239 PR c++/59813
17240 PR tree-optimization/89060
17241 * tree-ssa-live.h (live_vars_map): New typedef.
17242 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
17243 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
17244 (struct compute_live_vars_data): New type.
17245 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
17246 live_vars_at_stmt, destroy_live_vars): New functions.
17247 * tree-tailcall.c: Include tree-ssa-live.h.
17248 (live_vars, live_vars_vec): New global variables.
17249 (find_tail_calls): Perform variable life analysis before punting.
17250 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
17251 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
17252 member.
17253 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
17254 Perform variable life analysis to select variables that really need
17255 clobbers added.
17256 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
17257 instead set id->eh_landing_pad_dest and assert it is the same.
17258 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
17259
17260 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
17261 Richard Earnshaw <rearnsha@arm.com>
17262
17263 PR target/88167
17264 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
17265 function.
17266 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
17267 (thumb1_compute_save_core_reg_mask): Don't force a spare work
17268 register if both the epilogue and prologue can use call-clobbered
17269 regs.
17270 (thumb1_unexpanded_epilogue): Use
17271 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
17272 picking temporaries for restoring high regs to match that of the
17273 prologue where possible.
17274 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
17275 the list of work registers. Detect if the return address is still live
17276 at the end of the prologue and avoid using it for a work register if so.
17277 If the return address is not live, add LR to the list of pushable regs
17278 after the first pass.
17279
17280 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17281
17282 PR tree-optimization/90078
17283 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
17284 (INFTY): Increase the value for infinite cost.
17285 (struct comp_cost): Promote type of members to int64_t.
17286 (infinite_cost): Don't set complexity in initialization.
17287 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
17288 overflows to infinite_cost.
17289 (adjust_setup_cost): Promote type of parameter and cost computation
17290 to int64_t.
17291 (struct ainc_cost_data, struct iv_ca): Promote type of member to
17292 int64_t.
17293 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
17294 cost computation to int64_t.
17295 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
17296 int64_t's format specifier in dump.
17297
17298 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17299
17300 PR tree-optimization/90240
17301 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
17302 with respect to scaling factor pre-computed for each basic block.
17303 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
17304 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
17305 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
17306 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
17307 live range for array of loop's basic blocks. Cleanup aux field of
17308 loop's basic blocks.
17309
17310 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17311
17312 PR tree-optimization/90356
17313 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
17314
17315 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
17316
17317 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
17318 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
17319 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
17320 (ix86_handle_option): Handle -mavx512bf16.
17321 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
17322 to extra_headers.
17323 * config/i386/avx512bf16vlintrin.h: New.
17324 * config/i386/avx512bf16intrin.h: New.
17325 * config/i386/cpuid.h (bit_AVX512BF16): New.
17326 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
17327 * config/i386/i386-builtin-types.def: Add new types.
17328 * config/i386/i386-builtin.def: Add new builtins.
17329 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17330 __AVX512BF16__.
17331 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
17332 (ix86_option_override_internal): Handle BF16.
17333 (ix86_valid_target_attribute_inner_p): Ditto.
17334 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
17335 * config/i386/i386-builtin.c (enum processor_features): Add
17336 F_AVX512BF16.
17337 (static const _isa_names_table isa_names_table): Ditto.
17338 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
17339 (PTA_AVX512BF16): Ditto.
17340 * config/i386/i386.opt: Add -mavx512bf16.
17341 * config/i386/immintrin.h: Include avx512bf16intrin.h
17342 and avx512bf16vlintrin.h.
17343 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
17344 avx512f_cvtneps2bf16_<mode><mask_name>,
17345 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
17346 * config/i386/subst.md (mask_half): Add new subst.
17347 * doc/invoke.texi: Document -mavx512bf16.
17348
17349 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17350
17351 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
17352 Delete declaration.
17353 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
17354 (rs6000_debug_legitimize_reload_address): Delete.
17355 (rs6000_legitimize_reload_address_ptr): Delete.
17356 (rs6000_option_override_internal): Adjust.
17357 (mem_operand_gpr): Adjust comment.
17358 (legitimate_lo_sum_address_p): Ditto.
17359 (rs6000_legitimize_reload_address): Delete.
17360 (rs6000_debug_legitimize_reload_address): Delete.
17361 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
17362
17363 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
17364
17365 PR target/89765
17366 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17367 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
17368 to compute vector element selector for both constant and variable
17369 operands.
17370
17371 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17372
17373 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17374 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17375 ashrdi3_cvt using SWI48 mode iterator.
17376
17377 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17378
17379 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17380 (aarch64_<su>abd<mode>_3): Likewise.
17381 (*aarch64_<su>abd<mode>_3): New define_insn.
17382 (<sur>sad<vsi2qi>): New define_expand.
17383 * config/aarch64/iterators.md: Added MAX_OPP attribute.
17384 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17385 (build_vect_cond_expr): Likewise.
17386
17387 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17388
17389 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17390 clobbers outside of accessible_reg_set.
17391 * config/i386/i386.c (ix86_conditional_register_usage):
17392 Disable register sets by clearing corresponding bits in
17393 accessible_reg_set. Do not set corresponding bits in fixed_regs,
17394 call_used_regs and don't clear corresponding reg_names array members.
17395
17396 2019-05-07 Richard Biener <rguenther@suse.de>
17397
17398 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17399 not specified still compute a comp_vectype for invariant
17400 compares.
17401
17402 2019-05-07 Richard Biener <rguenther@suse.de>
17403
17404 PR tree-optimization/90316
17405 * tree-ssa-pre.c (translate_vuse_through_block): When
17406 same_valid is NULL do not bother to search for a virtual
17407 PHI continuation.
17408 (phi_translate_1): When operands changed we cannot keep
17409 the same value-number so do not bother to ask whether
17410 that's possible from translate_vuse_through_block.
17411
17412 2019-05-07 Martin Liska <mliska@suse.cz>
17413
17414 * bitmap.c (bitmap_register): Come up with
17415 alloc_descriptor_max_uid and assign it for
17416 a new bitmap.
17417 (register_overhead): Use get_descriptor as
17418 a descriptor.
17419 (release_overhead): New.
17420 (bitmap_elem_to_freelist): Call it.
17421 (bitmap_elt_clear_from): Likewise.
17422 (bitmap_obstack_free): Likewise.
17423 (bitmap_move): Sensitively release memory.
17424 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17425 (bitmap_initialize): Initialize alloc_descriptor to zero.
17426 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17427
17428 2019-05-07 Richard Biener <rguenther@suse.de>
17429
17430 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17431 we build a SLP node. Remove max_size and limiting.
17432 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17433
17434 2019-05-07 Richard Biener <rguenther@suse.de>
17435
17436 PR tree-optimization/90316
17437 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17438 limit by reference.
17439 (walk_non_aliased_vuses): Take walking limit argument.
17440 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17441 walking if it is reached instead of just counting.
17442 (get_continuation_for_phi): Likewise.
17443 (walk_non_aliased_vuses): Likewise, instead of leaving counter
17444 limiting to the callback.
17445 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17446 (vn_reference_lookup_3): Likewise.
17447 (vn_reference_lookup_pieces): Likewise.
17448 (vn_reference_lookup): Likewise.
17449 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17450 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17451 (avail_exprs_stack::lookup_avail_expr): Likewise.
17452
17453 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
17454
17455 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17456 for comparaible types in the second direction even if first one
17457 hits incomparable type.
17458
17459 2019-05-07 Richard Biener <rguenther@suse.de>
17460
17461 PR lto/90369
17462 * lto-wrapper.c (debug_objcopy): Use the original filename
17463 including archive offset for the filename used for -save-temps.
17464
17465 2019-05-07 Li Jia He <helijia@linux.ibm.com>
17466
17467 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17468 detection.
17469
17470 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
17471 Hongtao Liu <hongtao.liu@intel.com>
17472
17473 PR target/89750
17474 PR target/86444
17475 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17476 Modified, original implementation isn't correct.
17477
17478 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17479
17480 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17481 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17482 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17483 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17484 (FRAME_POINTER_REGNUM): Change numbering.
17485 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17486 (alt_reg_names): Adjust.
17487 (rs6000_conditional_register_usage): Don't mark hard register 64 as
17488 fixed.
17489 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17490 (DWARF_FRAME_REGISTERS): Delete.
17491 (DWARF2_FRAME_REG_OUT): Fix whitespace.
17492 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17493 Adjust.
17494 (REG_ALLOC_ORDER): Adjust.
17495 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17496 (REG_CLASS_CONTENTS): Adjust.
17497 (RETURN_ADDR_RTX): Change comment.
17498 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17499 instead of 67.
17500 (REGISTER_NAMES): Adjust.
17501 (ADDITIONAL_REGISTER_NAMES): Adjust.
17502 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17503
17504 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17505
17506 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17507 Delete.
17508 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17509 (DWARF_FRAME_REGISTERS): Adjust.
17510 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17511 Adjust.
17512 (REG_ALLOC_ORDER): Adjust.
17513 (enum reg_class): Delete SPR_REGS.
17514 (REG_CLASS_NAMES): Delete SPR_REGS.
17515 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
17516 (REGISTER_NAMES): Adjust.
17517 (ADDITIONAL_REGISTER_NAMES): Adjust.
17518 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17519 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17520 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17521 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17522 (htm_spr_regno): Delete.
17523 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17524 argument.
17525 (rs6000_dbx_register_number): Adjust.
17526
17527 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17528
17529 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17530
17531 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17532
17533 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17534 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17535
17536 2019-05-06 Jakub Jelinek <jakub@redhat.com>
17537
17538 PR tree-optimization/88709
17539 PR tree-optimization/90271
17540 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17541 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17542 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
17543 variable.
17544 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17545 of the store merging group is larger than
17546 PARAM_STORE_MERGING_MAX_SIZE parameter.
17547 (split_group): Add bzero_first argument. If set, always emit first
17548 the first store which must be = {} of the whole area and then for the
17549 rest of the stores consider all zero bytes as paddings.
17550 (imm_store_chain_info::output_merged_store): Check if first store
17551 is = {} of the whole area and if yes, determine which setting of
17552 bzero_first for split_group gives smaller number of stores. Adjust
17553 split_group callers.
17554 (lhs_valid_for_store_merging_p): Allow decls.
17555 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17556 no elts.
17557 (pass_store_merging::process_store): Likewise.
17558
17559 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
17560
17561 PR target/89424
17562 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17563 handling of V1TImode.
17564
17565 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
17566
17567 PR target/89221
17568 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17569 and enable_frame_pointer ...
17570 * configure.ac: ... here. Update help strings for
17571 --enable-frame-pointer.
17572 * configure: Regenerate.
17573 * config/i386/i386-options.c (ix86_option_override_internal): Remove
17574 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17575 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17576 (USE_X86_64_FRAME_POINTER): Ditto.
17577
17578 2019-05-06 Martin Liska <mliska@suse.cz>
17579
17580 * config.gcc: Append to target_gtfiles and fix indentation.
17581
17582 2019-05-06 Richard Biener <rguenther@suse.de>
17583
17584 PR tree-optimization/90358
17585 * tree-vect-stmts.c (get_group_load_store_type): Properly
17586 detect unused upper half of load.
17587 (vectorizable_load): Likewise.
17588
17589 2019-05-06 Richard Biener <rguenther@suse.de>
17590
17591 PR tree-optimization/88828
17592 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
17593 (simplify_vector_constructor): ...here. Handle constants in
17594 the constructor.
17595
17596 2019-05-06 Richard Biener <rguenther@suse.de>
17597
17598 PR tree-optimization/90328
17599 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
17600 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
17601 is valid in the loop nest before using it.
17602 (initialize_data_dependence_relation): Adjust.
17603 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
17604 loop as loop-nest to dr_may_alias_p.
17605
17606 2019-05-06 Richard Biener <rguenther@suse.de>
17607
17608 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
17609
17610 2019-05-06 Richard Biener <rguenther@suse.de>
17611
17612 PR tree-optimization/90316
17613 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
17614 compute target on demand.
17615 (get_continuation_for_phi): Remove code walking stmts to
17616 get to a target virtual operand which could end up being
17617 quadratic.
17618
17619 2019-05-06 Martin Liska <mliska@suse.cz>
17620
17621 PR sanitizer/90312
17622 * config/i386/i386-options.c (ix86_option_override_internal): Error only
17623 when -mabi is selected to a non-default version.
17624
17625 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
17626 Martin Liska <mliska@suse.cz>
17627
17628 * Makefile.in: Add lto-dump.texi.
17629 * cgraph.h: Add new functions get_visibility_string and
17630 get_symtab_type_string.
17631 * doc/gcc.texi: Include lto-dump section.
17632 * doc/lto-dump.texi: New file.
17633 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
17634 (parse_dump_option): Factor out this function.
17635 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
17636 (parse_dump_option): Export the function.
17637 * symtab.c (symtab_node::get_visibility_string): New function.
17638 (symtab_node::get_symtab_type_string): Likewise.
17639
17640 2019-05-06 Martin Liska <mliska@suse.cz>
17641
17642 * config/i386/i386-builtins.c: New file.
17643 * config/i386/i386-builtins.h: New file.
17644 * config/i386/i386-expand.c: New file.
17645 * config/i386/i386-expand.h: New file.
17646 * config/i386/i386-features.c: New file.
17647 * config/i386/i386-features.h: New file.
17648 * config/i386/i386-options.c: New file.
17649 * config/i386/i386-options.h: New file.
17650 * config.gcc: Add new files into extra_objs and
17651 target_gtfiles.
17652 * config/i386/i386.c: Split content of the file
17653 into newly introduced files.
17654 * config/i386/i386.h: Declare common variables
17655 and macros.
17656 * config/i386/t-i386: Define dependencies for new files.
17657
17658 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
17659
17660 PR target/89400
17661 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
17662 Restrict 'all' variant to 32-bit configurations.
17663 (unaligned_loadhiu): Likewise.
17664 (unaligned_storehi): Likewise.
17665 (unaligned_storesi): Likewise.
17666 (unaligned_loadhis): Disable when compiling for thumb1.
17667
17668 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
17669
17670 PR tree-optimization/90269
17671 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
17672 Ignore clobbers.
17673
17674 2019-05-03 Martin Liska <mliska@suse.cz>
17675
17676 * hash-map.h: Add is_empty function.
17677 * hash-set.h: Likewise.
17678 * hash-table.h: Likewise.
17679 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
17680 elements () == 0 (and similar usages).
17681 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
17682 * gimplify.c (gimplify_bind_expr): Likewise.
17683 (gimplify_switch_expr): Likewise.
17684 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
17685 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
17686 * postreload-gcse.c (dump_hash_table): Likewise.
17687 (gcse_after_reload_main): Likewise.
17688 * predict.c (combine_predictions_for_bb): Likewise.
17689 * tree-parloops.c (reduction_phi): Likewise.
17690 (separate_decls_in_region): Likewise.
17691 (transform_to_exit_first_loop): Likewise.
17692 (gen_parallel_loop): Likewise.
17693 (gather_scalar_reductions): Likewise.
17694 (try_create_reduction_list): Likewise.
17695 * var-tracking.c (dump_vars): Likewise.
17696 (emit_notes_for_changes): Likewise.
17697 (vt_emit_notes): Likewise.
17698
17699 2019-05-03 Richard Biener <rguenther@suse.de>
17700
17701 PR tree-optimization/90316
17702 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
17703 before running VN.
17704
17705 2019-05-03 Richard Biener <rguenther@suse.de>
17706
17707 * tree-vect-stmts.c (get_group_load_store_type): Avoid
17708 peeling for gaps by loading only lower halves of vectors
17709 if possible.
17710 (vectorizable_load): Likewise.
17711
17712 2019-05-03 Richard Biener <rguenther@suse.de>
17713
17714 PR middle-end/89518
17715 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
17716
17717 2019-05-03 Richard Biener <rguenther@suse.de>
17718
17719 PR middle-end/87314
17720 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
17721 Handle STRING_CST vs DECL or STRING_CST.
17722
17723 2019-05-03 Richard Biener <rguenther@suse.de>
17724
17725 PR tree-optimization/88963
17726 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
17727 vector loads feeding only BIT_FIELD_REFs to component
17728 loads. Rewrite stores fed by CONSTRUCTORs to component
17729 stores.
17730
17731 2019-05-03 Jakub Jelinek <jakub@redhat.com>
17732
17733 * opts.h (finish_options): Remove lang_mask argument.
17734 (print_help, help_option_argument): Declare.
17735 * opts.c (print_help): Remove forward declaration, no longer static.
17736 (finish_options): Remove lang_mask argument, don't call print_help
17737 here.
17738 * opts-global.c (decode_options): Adjust finish_option caller, call
17739 print_help here.
17740
17741 PR tree-optimization/90303
17742 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
17743 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
17744
17745 2019-05-03 Richard Biener <rguenther@suse.de>
17746
17747 PR tree-optimization/89698
17748 * gimple-fold.c (canonicalize_constructor_val): Early out
17749 for constants, handle unfolded INTEGER_CSTs as they appear in
17750 C++ virtual table ctors.
17751
17752 2019-05-03 Richard Biener <rguenther@suse.de>
17753
17754 * passes.c (execute_function_todo): Remove dead code.
17755
17756 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17757
17758 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
17759 the internal register number, for any "real" register.
17760
17761 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17762
17763 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
17764 correct numbers for TFHAR, TFIAR, TEXASR.
17765
17766 2019-05-02 Richard Biener <rguenther@suse.de>
17767
17768 PR tree-optimization/89653
17769 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
17770 update-address-taken before the pass.
17771 * passes.def (pass_tree_loop_init): Put comment before it.
17772
17773 2019-05-02 Richard Biener <rguenther@suse.de>
17774
17775 PR tree-optimization/89509
17776 * tree-ssa-structalias.c (compute_dependence_clique): Look
17777 at the first subvar when determining whether it is restrict.
17778
17779 2019-05-02 Richard Biener <rguenther@suse.de>
17780
17781 PR tree-optimization/90273
17782 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
17783 useless debug stmts.
17784
17785 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17786
17787 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
17788 ACLE branch.
17789 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
17790 SVE ACLE branch.
17791 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
17792 VEC_COND_EXPR be inserted to emulate a conditional internal function.
17793 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
17794 (vectorizable_reduction): Use the functions above to vectorize in a
17795 fully masked loop codes that don't have a conditional internal
17796 function.
17797
17798 2019-05-02 Martin Liska <mliska@suse.cz>
17799
17800 * cgraphclones.c: Call valid_attribute_p with 1 for
17801 target_clone.
17802 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
17803 it's for target attribute.
17804 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
17805 Add new boolean argument.
17806 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
17807 Likewise.
17808 (ix86_valid_target_attribute_tree): Pass target_clone_attr
17809 to ix86_valid_target_attribute_inner_p.
17810 (ix86_valid_target_attribute_p): Pass flags argument to
17811 ix86_valid_target_attribute_inner_p.
17812 (get_builtin_code_for_version): Use 0 as it's target attribute.
17813
17814 2019-05-02 Martin Liska <mliska@suse.cz>
17815
17816 * gcc.c (process_command): Add dummy file only
17817 if n_infiles == 0.
17818 * opts-global.c (decode_options): Pass lang_mask.
17819 * opts.c (print_help): New function.
17820 (finish_options): Print --help if help_option_argument
17821 is set.
17822 (common_handle_option): Factor out content of OPT__help_
17823 into print_help.
17824 * opts.h (finish_options): Add new argument.
17825
17826 2019-05-02 Martin Liska <mliska@suse.cz>
17827
17828 PR target/88809
17829 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
17830 With -minline-all-stringops use inline expansion using 4B loop.
17831 * doc/invoke.texi: Document the change of
17832 -minline-all-stringops.
17833
17834 2019-05-01 Jeff Law <law@redhat.com>
17835
17836 PR tree-optimization/88797
17837 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
17838 PHI feeds a conditional on the RHS of an assignment.
17839
17840 2019-04-30 Andrew Waterman <andrew@sifive.com>
17841 Jim Wilson <jimw@sifive.com>
17842
17843 * config/riscv/constraints.md (L): New.
17844 * config/riscv/predicates.md (lui_operand): New.
17845 (sfb_alu_operand): New.
17846 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
17847 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
17848 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
17849 * config/riscv/risc.md (type): Add sfb_alu.
17850 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
17851 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
17852 (branch_zero<mode>): Delete.
17853 (mov<mode>cc): New.
17854 (mov<GPR:mode><X:mode>cc): Likewise.
17855 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
17856
17857 2019-04-30 Nathan Sidwell <nathan@acm.org>
17858
17859 * tree.h (MARK_TS_EXP): New.
17860
17861 2019-04-30 Martin Liska <mliska@suse.cz>
17862
17863 * opts.c (enable_warning_as_error): Provide hints
17864 for unknown options.
17865
17866 2019-04-30 Martin Liska <mliska@suse.cz>
17867
17868 PR debug/90288
17869 * doc/invoke.texi: Add missing dash for gas-locview-support
17870 and gno-as-locview-support.
17871
17872 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17873
17874 PR target/89093
17875 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
17876 whitespace at the start of target attribute string.
17877
17878 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17879
17880 PR target/86538
17881 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
17882 Define __ARM_FEATURE_ATOMICS.
17883
17884 2019-04-30 Martin Liska <mliska@suse.cz>
17885
17886 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
17887 into built_in_function enum. Remove code for endp == 2 and
17888 use BUILT_IN_* constants.
17889 (gimple_fold_builtin): Call the function with fcode.
17890
17891 2019-04-30 Martin Liska <mliska@suse.cz>
17892
17893 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
17894 DECL_FUNCTION_CODE into ix86_builtins enum before
17895 the switch statement.
17896
17897 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17898
17899 PR tree-optimization/89475
17900 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
17901 calls.
17902
17903 2019-04-30 Martin Liska <mliska@suse.cz>
17904
17905 PR translation/90274
17906 * opts.c (print_filtered_help): Wrap string in _(...).
17907
17908 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
17909
17910 PR tree-optimization/90240
17911 Revert:
17912 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17913
17914 PR tree-optimization/90078
17915 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17916 checks for infinite_cost overflow.
17917
17918 2019-04-29 Jeff Law <law@redhat.com>
17919
17920 * passes.def: Move -Wrestrict pass after copy propagation.
17921
17922 2019-04-29 Maya Rashish <coypu@sdf.org>
17923
17924 * config.gcc (default_gnu_indirect_function): Default to yes
17925 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
17926 sparc*-*-netbsd*, x86_64-*-netbsd*.
17927
17928 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
17929
17930 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
17931 where cond2 is NE_EXPR.
17932 (is_value_included_in): Update comment.
17933
17934 2019-04-29 Richard Biener <rguenther@suse.de>
17935
17936 PR tree-optimization/90278
17937 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
17938 EH on comparison simplification.
17939
17940 2019-04-29 Jason Merrill <jason@redhat.com>
17941
17942 PR c++/82081 - tail call optimization breaks noexcept
17943 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
17944 nothrow function to a might-throw function into a tail call.
17945
17946 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
17947
17948 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
17949 (DDR_INNER_LOOP): Likewise.
17950 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
17951 (initialize_data_dependence_relation): Likewise.
17952 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
17953
17954 2019-04-29 Jakub Jelinek <jakub@redhat.com>
17955
17956 PR rtl-optimization/90257
17957 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
17958 return value.
17959
17960 Revert the revert:
17961 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
17962
17963 PR target/90178
17964 Revert:
17965 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
17966
17967 Revert the revert:
17968 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
17969
17970 Revert:
17971 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
17972
17973 * lra-spills.c (lra_final_code_change): Remove useless move insns.
17974
17975 2019-04-29 Richard Biener <rguenther@suse.de>
17976
17977 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
17978 rhs issue a reset.
17979
17980 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
17981
17982 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
17983 varasm.h, and netbsd-protos.h.
17984
17985 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
17986
17987 PR target/89261
17988 * config/i386/i386-protos.h (ix86_data_alignment): Change
17989 the second argument type to unsigned int.
17990 * config/i386/i386.c (ix86_data_alignment): Change "align"
17991 argument type to unsigned int.
17992
17993 2019-04-27 Martin Liska <mliska@suse.cz>
17994
17995 PR middle-end/90258
17996 * opt-suggestions.c (option_proposer::build_option_suggestions):
17997 When get_valid_option_values returns empty values, add the
17998 misspelling candidate.
17999
18000 2019-04-26 Jim Wilson <jimw@sifive.com>
18001
18002 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
18003 parameter.
18004 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
18005 Pass orig_mode to riscv_build_integer.
18006 (riscv_split_integer): Pass mode to riscv_move_integer.
18007 (riscv_legitimize_const_move): Likewise.
18008 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
18009 promoted_mode. Replace force_reg call with code to load constant into
18010 promoted reg and then subreg it for the store.
18011 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
18012 riscv_move_integer.
18013
18014 2018-04-26 Eugene Sharygin <eush@ispras.ru>
18015
18016 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
18017 corrupt codes.
18018
18019 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
18020
18021 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
18022 commentary about the encoding of precision.
18023
18024 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
18025
18026 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
18027 * config/i386/t-freebsd64: New file.
18028 * config.gcc: Add the t-freebsd64 for multilib support.
18029
18030 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
18031
18032 * doc/extend.texi (vector_size): Add missing comma after @xref.
18033
18034 2019-04-25 Jakub Jelinek <jakub@redhat.com>
18035
18036 * BASE-VER: Set to 10.0.0.
18037
18038 2019-04-25 Richard Biener <rguenther@suse.de>
18039
18040 PR middle-end/89765
18041 * gimplify.c (gimplify_expr): Avoid turning a lvalue
18042 VIEW_CONVERT_EXPR into one operating on an rvalue.
18043
18044 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
18045
18046 PR target/89929
18047 * config/i386/i386.c (feature_priority): Moved to file scope.
18048 (processor_features): Likewise.
18049 (processor_model): Likewise.
18050 (_arch_names_table): Likewise.
18051 (arch_names_table): Likewise.
18052 (_feature_list): Removed.
18053 (feature_list): Likewise.
18054 (_isa_names_table): Moved to file scope. Add priority.
18055 (isa_names_table): Likewise.
18056 (get_builtin_code_for_version): Replace feature_list with
18057 isa_names_table. Update error message for P_ZERO priority.
18058
18059 2019-04-25 Richard Biener <rguenther@suse.de>
18060
18061 * tree-pass.h (make_pass_phi_only_cprop): Remove.
18062 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
18063
18064 2019-04-24 Jeff Law <law@redhat.com>
18065
18066 PR tree-optimization/90037
18067 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
18068 * passes.def: Replace all instance of phi-only cprop with the
18069 lattice propagator. Move propagation pass from after erroneous
18070 path isolation to before erroneous path isolation.
18071 * tree-ssa-phionlycprop.c: Remove.
18072
18073 2019-04-24 Richard Biener <rguenther@suse.de>
18074
18075 PR middle-end/90213
18076 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
18077 by size and BITS_PER_UNIT on poly-wide-ints.
18078
18079 2019-04-25 Richard Biener <rguenther@suse.de>
18080
18081 PR middle-end/90194
18082 * match.pd: Add pattern to simplify view-conversion of an
18083 empty constructor.
18084
18085 2019-04-24 Clement Chigot <clement.chigot@atos.net>
18086
18087 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
18088 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
18089 for Go on 32 bit AIX.
18090 * config/rs6000/aix72.h: Likewise.
18091
18092 2019-04-24 Jakub Jelinek <jakub@redhat.com>
18093
18094 PR target/90193
18095 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
18096 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
18097
18098 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
18099
18100 PR target/89952
18101 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
18102 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
18103 for restored hard frame pointer.
18104 (s390_sched_dependencies_evaluation): Implement new target hook.
18105 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
18106
18107 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
18108
18109 * config/arc/arc-options.def: Fix typos and spelling mistakes.
18110 * config/arc/arc.c (arc_init): Cleanup warning message.
18111 (arc_override_options): Likewise.
18112
18113 2019-04-24 Jakub Jelinek <jakub@redhat.com>
18114
18115 PR target/90187
18116 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
18117 a register if both if_true and if_false are MEMs.
18118
18119 PR tree-optimization/90208
18120 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
18121 after labels of new_bb, not before them.
18122
18123 PR tree-optimization/90211
18124 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
18125 which are not SSA_NAMEs.
18126
18127 2018-04-23 Sudakshina Das <sudi.das@arm.com>
18128
18129 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
18130 AArch64.
18131 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
18132
18133 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
18134
18135 PR rtl-optimization/87979
18136 * modulo-sched.c (sms_schedule): Start ii value "mii" should
18137 not equal zero.
18138
18139 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
18140
18141 PR rtl-optimization/84032
18142 * modulo-sched.c (ps_insn_find_column): Change condition so that
18143 branch will always be the last insn in a row inside partial
18144 schedule.
18145
18146 2019-04-23 Richard Biener <rguenther@suse.de>
18147
18148 PR debug/90131
18149 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
18150 dest_single_pred_p argument.
18151 (remove_forwarder_block): Adjust.
18152 (remove_forwarder_block_with_phi): Likewise.
18153
18154 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18155 Bernd Edlinger <bernd.edlinger@hotmail.de>
18156 Jakub Jelinek <jakub@redhat.com>
18157
18158 PR target/89093
18159 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
18160 if used with general-regs-only.
18161 (arm_conditional_register_usage): Don't add non-general regs if
18162 general-regs-only.
18163 (arm_valid_target_attribute_rec): Handle general-regs-only.
18164 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
18165 general-regs-only.
18166 (TARGET_HARD_FLOAT_SUB): Define.
18167 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
18168 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
18169 (TARGET_REALLY_IWMMXT2): Likewise.
18170 * config/arm/arm.opt: Add -mgeneral-regs-only.
18171 * doc/extend.texi: Document ARM general-regs-only target.
18172 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
18173
18174 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18175
18176 PR tree-optimization/90078
18177 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18178 checks for infinite_cost overflow.
18179
18180 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18181
18182 PR tree-optimization/90021
18183 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
18184 and check univariate against it.
18185 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
18186 * tree-data-ref.c (add_other_self_distances): Pass new argument.
18187
18188 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
18189
18190 PR target/90178
18191 Revert:
18192 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
18193
18194 Revert the revert:
18195 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
18196
18197 Revert:
18198 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
18199
18200 * lra-spills.c (lra_final_code_change): Remove useless move insns.
18201
18202 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
18203
18204 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
18205 names using operand format, rather than hard-wired.
18206 (speculation_barrier): Likewise.
18207
18208 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
18209
18210 PR tree-optimization/88055
18211 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
18212 (gen_one_condition): Use it if !HONOR_NANS.
18213
18214 2019-04-19 Jakub Jelinek <jakub@redhat.com>
18215
18216 PR middle-end/90139
18217 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
18218 assign_temp instead of gen_reg_rtx.
18219
18220 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
18221
18222 PR translation/90118
18223 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18224 Add missing space before %<.
18225
18226 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
18227
18228 PR rtl-optimization/87871
18229 * ira-lives.c (make_object_dead): Don't add conflicts to
18230 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
18231
18232 2019-04-18 Martin Sebor <msebor@redhat.com>
18233
18234 PR middle-end/89797
18235 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
18236 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
18237 assuming type size fits in SHWI.
18238
18239 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
18240
18241 PR ipa/85051
18242 * ipa-inline.c (flatten_function): New parameter UPDATE.
18243 (ipa_inline, early_inliner): Use it.
18244
18245 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18246
18247 * fold-const.c (int_const_binop): Return early on failure.
18248
18249 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18250
18251 PR middle-end/85164
18252 * combine.c (force_int_to_mode): Cast the argument rather than
18253 the result of known_alignment.
18254 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
18255
18256 2019-04-18 Richard Biener <rguenther@suse.de>
18257
18258 PR debug/90131
18259 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
18260 out from ...
18261 (remove_forwarder_block): ... here.
18262 (remove_forwarder_block_with_phi): Also move debug stmts here.
18263
18264 2019-04-18 Jakub Jelinek <jakub@redhat.com>
18265
18266 PR translation/79183
18267 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
18268 inform where appropriate.
18269
18270 2019-04-18 Richard Biener <rguenther@suse.de>
18271
18272 * tree.c (get_qualified_type): Put found type variants at the
18273 head of the variant list.
18274
18275 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18276
18277 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
18278
18279 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
18280
18281 PR target/90125
18282 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
18283 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
18284 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
18285 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
18286 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
18287
18288 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
18289
18290 * ira-conflicts.c (print_allocno_conflicts): Always print something,
18291 even for allocno's with no conflicts.
18292 (print_conflicts): Print an extra newline.
18293
18294 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18295
18296 * auto-inc-dec.c (attempt_change): Set the alignment of the
18297 temporary memory to that of the original.
18298
18299 2019-04-17 Joao Moreira <jmoreira@suse.de>
18300
18301 * targhooks.c (default_print_patchable_function_entry): Emit
18302 __patchable_function_entries section with writable flags to allow
18303 relocation resolution.
18304
18305 2019-04-17 Jonny Grant <jg@jguk.org>
18306
18307 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
18308
18309 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18310
18311 PR middle-end/90095
18312 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
18313 on lowpart SUBREGs.
18314
18315 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
18316
18317 * config/arc/arc.c (arc_init): Format diagnostic string.
18318 (arc_override_options): Likewise.
18319 (check_if_valid_regno_const): Likewise.
18320 (arc_reorg): Likewise.
18321
18322 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18323
18324 PR target/17108
18325 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
18326 name.
18327 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
18328 name.
18329 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
18330 (*movdi_update1): Use Pmode.
18331 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
18332 (movdi_<mode>_update_stack): Rename to ...
18333 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
18334 use Pmode.
18335 (*movsi_update1): Use Pmode.
18336 (*movsi_update2): Use Pmode.
18337 (movsi_update): Rename to ...
18338 (movsi_<mode>_update): ... this. Use Pmode.
18339 (movsi_update_stack): Fix condition.
18340 (*movhi_update1): Use Pmode. Fix argument to
18341 avoiding_indexed_address_p.
18342 (*movhi_update2): Ditto.
18343 (*movhi_update3): Ditto.
18344 (*movhi_update4): Ditto.
18345 (*movqi_update1): Ditto.
18346 (*movqi_update2): Ditto.
18347 (*movqi_update3): Ditto.
18348 (*movsf_update1, *movdf_update1): Merge, rename to...
18349 (*mov<mode>_update1): This. Use Pmode. Fix argument to
18350 avoiding_indexed_address_p. Add "size" attribute.
18351 (*movsf_update2, *movdf_update2): Merge, rename to...
18352 (*mov<mode>_update2): This. Ditto.
18353 (*movsf_update3): Use Pmode. Fix argument to
18354 avoiding_indexed_address_p.
18355 (*movsf_update4): Ditto.
18356 (allocate_stack): Simplify condition. Adjust pattern names.
18357
18358 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18359
18360 PR target/89093
18361 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
18362 whitespace at the start of target attribute string.
18363
18364 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
18365
18366 PR target/84369
18367 * config/rs6000/power9.md: Add store forwarding bypass.
18368
18369 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
18370
18371 PR debug/89528
18372 * valtrack.c (dead_debug_insert_temp): Reset debug references
18373 to the return value of a call being removed.
18374
18375 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18376
18377 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18378 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18379 implement target hook.
18380 (arc_memory_move_cost): New function.
18381 (TARGET_REGISTER_MOVE_COST): Define.
18382 (TARGET_MEMORY_MOVE_COST): Likewise.
18383 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18384 (MEMORY_MOVE_COST): Likewise.
18385
18386 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18387
18388 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18389 (sibcall_value_insn): Likewise.
18390 * config/arc/constraints.md (Rs5): Remove.
18391
18392 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18393
18394 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18395 for last two fake registers.
18396 (arc_conditional_register_usage): Make sure fake frame and arg
18397 pointer regs are in general regs class.
18398 (FRAME_POINTER_MASK): Remove.
18399 (RETURN_ADDR_MASK): Remove.
18400 (arc_must_save_register): Use hard frame regnum.
18401 (frame_restore_reg): Use hard_frame_pointer_rtx.
18402 (arc_save_callee_saves): Likewise.
18403 (arc_restore_callee_saves): Likewise.
18404 (arc_save_callee_enter): Likewise.
18405 (arc_restore_callee_leave): Likewise.
18406 (arc_save_callee_milli): Likewise.
18407 (arc_eh_return_address_location): Likewise.
18408 (arc_check_multi): Use hard frame regnum.
18409 (arc_can_eliminate): Likewise.
18410 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18411 for register allocator.
18412 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18413 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18414 (FRAME_POINTER_REGNUM): Change it to a fake register.
18415 (HARD_FRAME_POINTER_REGNUM): Defined.
18416 (ARG_POINTER_REGNUM): Change it to a new fake register.
18417 (ELIMINABLE_REGS): Update.
18418 (REGISTER_NAMES): Update names.
18419 * config/arc/arc.md (LP_START): Remove.
18420 (LP_END): Likewise.
18421 (shift_si3_loop): Update pattern.
18422
18423 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18424
18425 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18426 to avoid delay slot scheduling.
18427 (arc_must_save_register): Don't save SP.
18428 * config/arc/arc.md (stack_tie): Remove.
18429 (UNSPEC_ARC_STKTIE): Likewise.
18430
18431 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
18432 Shiva Chen <shiva0217@gmail.com>
18433
18434 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18435 code gen with large shift amount.
18436
18437 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
18438
18439 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18440 subreg.
18441
18442 2019-04-16 Jakub Jelinek <jakub@redhat.com>
18443
18444 PR target/90096
18445 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18446 print -m64/-mx32/-m32 if it is true.
18447 (ix86_debug_options, ix86_function_specific_print): Pass true as
18448 ADD_ABI_P to ix86_target_string.
18449 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18450 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18451 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18452
18453 PR rtl-optimization/90082
18454 * dce.c (can_delete_call): New function.
18455 (deletable_insn_p, mark_insn): Use it.
18456
18457 PR tree-optimization/90090
18458 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18459 throw internally.
18460 (is_division_by_square): Likewise. Formatting fix.
18461
18462 2019-04-16 Richard Biener <rguenther@suse.de>
18463
18464 PR tree-optimization/56049
18465 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18466 equality check if alias-set zero will prevail.
18467
18468 2019-04-15 Jeff Law <law@redhat.com>
18469
18470 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18471 size and alignment as unsigned.
18472
18473 2019-04-15 Richard Biener <rguenther@suse.de>
18474
18475 PR debug/90074
18476 * tree-loop-distribution.c (destroy_loop): Preserve correct
18477 debug info.
18478
18479 2019-04-15 Richard Biener <rguenther@suse.de>
18480
18481 PR tree-optimization/90071
18482 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18483 abnormal operands from def stmts.
18484
18485 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
18486
18487 PR rtl-optimization/89794
18488 * combine.c (count_auto_inc): New function.
18489 (try_combine): Count how many auto_inc expressions there were in the
18490 original instructions. Ensure we have the same number in the new
18491 instructions. Remove the code that tried to ensure auto_inc side
18492 effects on i1 and i0 are not lost.
18493
18494 2019-04-15 Richard Biener <rguenther@suse.de>
18495
18496 PR ipa/88936
18497 * tree.h (auto_var_p): Declare.
18498 * tree.c (auto_var_p): New function, split out from ...
18499 (auto_var_in_fn_p): ... here.
18500 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18501 member.
18502 (new_var_info): Initialize it.
18503 (set_uids_in_ptset): Also set the shadow variable uid if required.
18504 (ipa_pta_execute): Postprocess points-to solutions assigning
18505 shadow variable uids for locals that may reach their containing
18506 function recursively.
18507 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18508 assert but instead check whether the points-to solution is
18509 a singleton.
18510
18511 2019-04-15 Martin Jambor <mjambor@suse.cz>
18512
18513 PR ipa/pr89693
18514 * cgraph.c (clone_of_p): Loop over clone chain for each step in
18515 the thunk chain.
18516
18517 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18518
18519 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18520
18521 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18522 Kito Cheng <kito.cheng@gmail.com>
18523 Shiva Chen <shiva0217@gmail.com>
18524
18525 * config/nds32/nds32-md-auxiliary.c
18526 (nds32_legitimize_pic_address): Use new PIC pattern.
18527 (nds32_legitimize_tls_address): Use new TLS pattern.
18528 (nds32_output_symrel): New.
18529 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18530 (nds32_alloc_relax_group_id): Ditto.
18531 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18532 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18533 relax_group_id.
18534 (nds32_group_tls_insn): Ditto.
18535 (nds32_group_float_insns): Ditto.
18536 * config/nds32/nds32.md (tls_le): New.
18537 (sym_got): Ditto.
18538
18539 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
18540
18541 * configure: Add nds32 target for dwarf2 debug_line checking.
18542 * configure.ac: Regenerated.
18543
18544 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
18545
18546 PR lto/89358
18547 * ipa-devirt.c (skip_in_fields_list_p): New.
18548 (odr_types_equivalent_p): Use it.
18549
18550 2019-04-13 Jakub Jelinek <jakub@redhat.com>
18551
18552 PR target/89093
18553 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18554 instead of strncmp when checking for thumb and arm. Formatting fixes.
18555
18556 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
18557
18558 * doc/install.texi: Document --with-target-system-zlib.
18559
18560 2019-04-12 Martin Sebor <msebor@redhat.com>
18561
18562 PR c/88383
18563 PR c/89288
18564 PR c/89798
18565 PR c/89797
18566 * targhooks.c (default_vector_alignment): Avoid assuming
18567 argument fits in SHWI.
18568 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18569 a shift expression.
18570 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18571
18572 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18573
18574 PR rtl-optimization/89965
18575 * dce.c: Include rtl-iter.h.
18576 (struct check_argument_load_data): New type.
18577 (check_argument_load): New function.
18578 (find_call_stack_args): Check for loads from stack slots still tracked
18579 in sp_bytes and punt if any is found.
18580
18581 * config/mips/loongson-mmiintrin.h: Fix up #error message.
18582
18583 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
18584
18585 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
18586 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
18587
18588 2019-04-12 Martin Liska <mliska@suse.cz>
18589
18590 PR middle-end/89970
18591 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
18592 in error message.
18593 (separate_attrs): Handle multiple 'default's.
18594 (expand_target_clones): Rework error handling code.
18595
18596 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
18597
18598 PR target/87532
18599 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
18600 mode of vector rather than mode of destination for move instruction.
18601 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
18602 Use QI inner mode with V16QI vector mode.
18603
18604 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18605
18606 PR target/52726
18607 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
18608 "invalid %%t operand" in output_operand_lossage message.
18609
18610 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
18611
18612 * config/s390/predicates.md (permute_pattern_operand): New
18613 predicate.
18614 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
18615 operand for the permute pattern.
18616 ("*vec_perm<mode>"): New insn definition.
18617 ("bswap<mode>"): Generate the permute pattern operand in the
18618 expander and perform the operand reloads for pre arch13 level
18619 already.
18620 ("*bswap<mode>_emu"): Rename to ...
18621 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
18622 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
18623 Add the USE operand for the permute pattern.
18624 ("*vec_set_bswap_vec<mode>"): Likewise.
18625
18626 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18627
18628 PR c/89946
18629 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
18630 and gcc_unreachable if it fails, just call tree_to_uhwi which
18631 verifies that too. Test TREE_CHAIN instead of list_length > 1.
18632 Start warning message with a lower-case letter. Formatting fixes.
18633
18634 PR rtl-optimization/90026
18635 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
18636 successors, look for BARRIERs inside of the whole BB_FOOTER chain
18637 rather than just at the start of it. If e->src BB_FOOTER is not NULL
18638 in cfglayout mode, use emit_barrier_after_bb.
18639
18640 2018-04-11 Steve Ellcey <sellcey@marvell.com>
18641
18642 PR rtl-optimization/87763
18643 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
18644 New Instruction.
18645
18646 2019-04-11 Tom de Vries <tdevries@suse.de>
18647
18648 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
18649 max macro using statement expression.
18650
18651 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
18652
18653 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
18654 * xcoffout.c (xcoff_private_rodata_section_name): Define.
18655 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
18656 read_only_private_data_section using xcoff_private_rodata_section_name.
18657 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
18658
18659 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
18660
18661 PR target/90016
18662 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
18663
18664 2019-04-11 Jakub Jelinek <jakub@redhat.com>
18665
18666 PR rtl-optimization/89965
18667 * dce.c (sp_based_mem_offset): New function.
18668 (find_call_stack_args): Use sp_based_mem_offset.
18669
18670 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
18671
18672 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
18673
18674 2019-04-11 Richard Biener <rguenther@suse.de>
18675
18676 PR tree-optimization/90020
18677 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
18678 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
18679 * tree-ssa-pre.c (compute_avail): Use it to not put
18680 possibly trapping references after a call that might not
18681 return into EXP_GEN.
18682 * gcse.c (compute_hash_table_work): Do not elide
18683 marking a block containing a call if the call might not
18684 return.
18685
18686 2019-04-11 Richard Biener <rguenther@suse.de>
18687
18688 PR tree-optimization/90018
18689 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
18690 Test both SLP and interleaving variants.
18691
18692 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
18693
18694 * config/s390/8561.md: New file.
18695 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18696 Add arch13 cpu model.
18697 * config/s390/s390-opts.h (enum processor_type): Likewise.
18698 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
18699 (s390_get_unit_mask): Likewise.
18700 (s390_is_fpd): Likewise.
18701 (s390_is_fxd): Likewise.
18702 * config/s390/s390.h (s390_tune_attr): Likewise.
18703 * config/s390/s390.md: Include arch13 pipeline description.
18704 * config/s390/s390.opt: Add arch13.
18705
18706 2018-04-10 Steve Ellcey <sellcey@marvell.com>
18707
18708 PR rtl-optimization/87763
18709 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
18710 New prototype.
18711 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
18712 New function.
18713 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
18714 New instruction.
18715 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
18716 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
18717 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
18718 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
18719
18720 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
18721
18722 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
18723 "Although" in -fipa-icf documentation.
18724
18725 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
18726 of using multiple -g options.
18727
18728 2019-04-10 Martin Liska <mliska@suse.cz>
18729
18730 PR gcov-profile/89959
18731 * doc/gcov.texi: Make documentation of -x option
18732 more precise.
18733
18734 2019-04-10 Richard Biener <rguenther@suse.de>
18735
18736 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
18737 member.
18738 (DR_GROUP_SAME_DR_STMT): Remove.
18739 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
18740 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
18741 replace with assert.
18742 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
18743 (vect_record_grouped_load_vectors): Remove unreachable code.
18744
18745 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
18746
18747 PR target/90016
18748 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
18749 obsolete reference to N.
18750
18751 2019-04-10 Jakub Jelinek <jakub@redhat.com>
18752
18753 PR middle-end/90025
18754 * expr.c (store_expr): Set properly size on the MEM passed to
18755 clear_storage.
18756
18757 PR c++/90010
18758 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
18759 with strlen in between hostsz-3 and hostsz-1 inclusive when no
18760 translation is needed, and when translation is needed, only append
18761 ... if the string length is hostsz or more bytes long. Avoid using
18762 strncpy or strcat.
18763
18764 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
18765
18766 PR target/90024
18767 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
18768 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
18769 into three.
18770 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
18771 differences directly.
18772 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
18773
18774 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18775
18776 PR translation/90011
18777 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18778 from diagnostics.
18779 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
18780 diagnostics.
18781 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18782 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
18783 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
18784 trailing space from -gsplit-dwarf diagnostics.
18785
18786 PR tree-optimization/89998
18787 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
18788 instead of integer_type_node if possible, don't add ranges if return
18789 type is not compatible with int.
18790 * gimple-fold.c (gimple_fold_builtin_sprintf,
18791 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
18792 integer_type_node.
18793
18794 2019-04-09 Martin Liska <mliska@suse.cz>
18795
18796 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
18797 * doc/install.texi: Document the new config.
18798
18799 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
18800
18801 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
18802 use gimple_expr_type for load and store calls. Skip over the
18803 condition argument in a conditional internal function.
18804 Protect use of TREE_INT_CST_LOW.
18805
18806 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18807
18808 PR target/90015
18809 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
18810 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
18811 trailing period from it too.
18812
18813 2019-04-08 wu yuan <wuyuan5@huawei.com>
18814
18815 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
18816 * config/aarch64/aarch64.md : Add "tsv110.md"
18817 * config/aarch64/tsv110.md: New file.
18818
18819 2019-04-08 Richard Biener <rguenther@suse.de>
18820
18821 PR tree-optimization/90006
18822 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18823 calls like lrint.
18824
18825 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
18826
18827 PR target/83033
18828 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
18829 construction.
18830 (fma_root_node): Likewise.
18831 (func_fma_steering): Likewise.
18832
18833 2019-04-08 Jakub Jelinek <jakub@redhat.com>
18834
18835 PR rtl-optimization/89865
18836 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
18837
18838 PR rtl-optimization/89865
18839 * config/i386/i386.md
18840 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
18841 numbers not to clash with the additional operands[4].
18842 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
18843 with extra register copy in the middle.
18844
18845 2019-04-08 Martin Liska <mliska@suse.cz>
18846
18847 PR gcov-profile/89961
18848 * doc/gcov.texi: Document data_file.
18849 * gcov.c (generate_results): Add data_info into JSON output.
18850
18851 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18852
18853 PR tree-optimization/89725
18854 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
18855 loop's chrec as invariant symbol.
18856 * tree-chrec.h (chrec_contains_symbols): New parameter.
18857 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
18858 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
18859 function of loops not in DDR's loop_nest.
18860 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
18861
18862 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
18863
18864 PR target/89623
18865 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
18866 Mask.
18867
18868 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
18869
18870 PR target/89945
18871 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18872 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
18873
18874 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
18875
18876 * sched-deps.c (sched_macro_fuse_insns): Check return value of
18877 targetm.fixed_condition_code_regs.
18878
18879 2019-04-05 Richard Biener <rguenther@suse.de>
18880
18881 PR debug/89892
18882 PR debug/89905
18883 * tree-cfgcleanup.c (remove_forwarder_block): Always move
18884 debug bind stmts but reset them if they are not valid at the
18885 destination.
18886
18887 2019-04-05 Martin Liska <mliska@suse.cz>
18888
18889 PR translation/89936
18890 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
18891 order to wrap keywords or arguments.
18892 * collect2.c (main): Likewise.
18893 (scan_prog_file): Likewise.
18894 (scan_libraries): Likewise.
18895 * common/config/riscv/riscv-common.c
18896 (riscv_subset_list::parsing_subset_version): Likewise.
18897 (riscv_subset_list::parse_std_ext): Likewise.
18898 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18899 Likewise.
18900 * config/arm/arm.c (arm_option_override): Likewise.
18901 * config/cris/cris.c (cris_print_operand): Likewise.
18902 * config/darwin-c.c (darwin_pragma_options): Likewise.
18903 (darwin_pragma_unused): Likewise.
18904 (darwin_pragma_ms_struct): Likewise.
18905 * config/ft32/ft32.c (ft32_print_operand): Likewise.
18906 * config/i386/i386.c (print_reg): Likewise.
18907 (ix86_print_operand): Likewise.
18908 * config/i386/xm-djgpp.h: Likewise.
18909 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
18910 * config/m32c/m32c.c (m32c_option_override): Likewise.
18911 * config/msp430/msp430.c (msp430_option_override): Likewise.
18912 * config/nds32/nds32.c (nds32_option_override): Likewise.
18913 * config/nvptx/mkoffload.c (main): Likewise.
18914 * config/rx/rx.c (rx_print_operand): Likewise.
18915 (valid_psw_flag): Likewise.
18916 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
18917 (vms_pragma_nomember_alignment): Likewise.
18918 (vms_pragma_extern_model): Likewise.
18919 * lto-wrapper.c (compile_offload_image): Likewise.
18920 * omp-offload.c (oacc_parse_default_dims): Likewise.
18921 * symtab.c (symtab_node::verify_base): Likewise.
18922 * tlink.c (recompile_files): Likewise.
18923 (start_tweaking): Likewise.
18924 * tree-profile.c (parse_profile_filter): Likewise.
18925
18926 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
18927
18928 PR tree-optimization/89956
18929 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
18930 multiple negates of the same value.
18931
18932 2019-04-04 Martin Sebor <msebor@redhat.com>
18933
18934 PR middle-end/89957
18935 PR middle-end/89911
18936 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
18937 have the same precision since the function crashes otherwise.
18938 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
18939 has non-zero arguments.
18940
18941 2019-04-04 Martin Sebor <msebor@redhat.com>
18942
18943 PR middle-end/89934
18944 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
18945 out if the number of arguments is less than expected.
18946
18947 2019-04-04 Jeff Law <law@redhat.com>
18948
18949 PR rtl-optimization/89399
18950 * ree.c (combine_set_extension): Use single_set rather than
18951 digging into PATTERN for items on the candidate list.
18952 (combine_reaching_defs): Likewise.
18953
18954 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
18955
18956 PR rtl-optimization/46590
18957 * loop-invariant.c (find_defs): Move df_remove_problem and
18958 df_process_deferred_rescans to move_invariants.
18959 Move df_live_add_problem and df_live_set_all_dirty calls
18960 to move_invariants.
18961 (move_invariants): Likewise.
18962 (move_loop_invariants): Likewise, making the df_live calls
18963 conditional on -O. Remove the problem again if we added it
18964 locally.
18965
18966 2019-04-03 qing zhao <qing.zhao@oracle.com>
18967
18968 PR tree-optimization/89730
18969 * ipa-inline.c (can_inline_edge_p): Delete the checking for
18970 -flive-patching=inline-only-static.
18971 (can_inline_edge_by_limits_p): Add the checking for
18972 -flive-patching=inline-only-static and grant always_inline
18973 even when -flive-patching=inline-only-static is specified.
18974
18975 2019-04-03 Jeff Law <law@redhat.com>
18976
18977 PR rtl-optimization/81025
18978 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
18979
18980 2019-04-03 Richard Biener <rguenther@suse.de>
18981
18982 PR tree-optimization/84101
18983 * tree-vect-stmts.c: Include explow.h for hard_function_value,
18984 regs.h for hard_regno_nregs.
18985 (cfun_returns): New helper.
18986 (vect_model_store_cost): When vectorizing a store to a decl
18987 we return and the function ABI returns in a multi-reg location
18988 account for the possible spilling that will happen.
18989
18990 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
18991
18992 * config/s390/s390.c (s390_legitimate_address_p): Reject long
18993 displacement addresses for vector mode operands.
18994
18995 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
18996
18997 * config/arc/arc.c (GMASK_LEN): Define.
18998 (arc_restore_callee_saves): Restore first blink when
18999 !optimize_size.
19000
19001 2019-04-03 Sudakshina Das <sudi.das@arm.com>
19002
19003 * doc/extend.texi: Add deprecated comment on sign-return-address
19004 function attribute and add mbranch-protection.
19005 * doc/invoke.texi: Add bti to the options for mbranch-protection.
19006
19007 2019-04-03 Richard Biener <rguenther@suse.de>
19008
19009 PR lto/89896
19010 * lto-wrapper.c (run_gcc): Avoid implicit rules making
19011 the all target phony.
19012
19013 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
19014
19015 PR target/89902
19016 PR target/89903
19017 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
19018 Return false for variable DImode shifts.
19019 (dimode_scalar_chain::compute_convert_gain): Do not handle
19020 register count operand in variable DImode shifts.
19021 (dimode_scalar_chain::make_vector_copies): Remove support to copy
19022 count argument of a variable shift instruction to a vector register.
19023 (dimode_scalar_chain::convert_reg): Remove support to convert
19024 count argument of a variable shift instruction.
19025
19026 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
19027
19028 PR rtl-optimization/84206
19029 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
19030 iterating over loop headers.
19031
19032 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
19033
19034 PR rtl-optimization/85876
19035 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
19036 beyond the original fence.
19037
19038 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
19039
19040 * config.gcc: Mark spu* targets as deprecated/obsolete.
19041
19042 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19043
19044 * config/s390/s390-builtin-types.def: New builtin function type
19045 definitions. Remove unused types.
19046 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
19047 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
19048 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
19049 overloaded builtins.
19050 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
19051 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
19052 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
19053 (vec_double, vec_signed, vec_unsigned): Define to use the new
19054 overloaded builtins.
19055 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
19056 Remove expanders.
19057
19058 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19059
19060 * config/s390/s390-builtin-types.def: New builtin function type
19061 definitions.
19062 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
19063 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
19064 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
19065 (s390_vstrszh, s390_vstrszf): New low-level builtins.
19066 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
19067 constant definitions.
19068 * config/s390/vecintrin.h (vec_search_string_cc)
19069 (vec_search_string_until_zero_cc): New builtin name definitions.
19070 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
19071 expanders.
19072 ("vec_vstrs<mode>"): New insn definition.
19073
19074 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19075
19076 * config/s390/s390-builtin-types.def: Add new builtin function
19077 types.
19078 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
19079 New overloaded builtins.
19080 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
19081 s390_vsrd.
19082 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
19083 (UNSPEC_VEC_SLDBYTE): ... this.
19084 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
19085 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
19086 definitions.
19087 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
19088 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
19089 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
19090
19091 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19092
19093 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
19094 New insn definition.
19095 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
19096 * config/s390/vector.md (V_HW_HSD): ... here.
19097
19098 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19099
19100 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
19101 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
19102 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
19103 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
19104 New insn definitions.
19105
19106 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19107
19108 * config/s390/s390-builtin-types.def: Add new builtin function type.
19109 * config/s390/s390-builtins.def: Add overloaded builtin
19110 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
19111 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
19112 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
19113 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
19114 ("eltswap<mode>"): New expander.
19115 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
19116 insn definitions.
19117
19118 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19119
19120 * config/s390/s390-builtin-types.def: Add new builtin function types.
19121 * config/s390/s390-builtins.def: Add overloaded builtin
19122 s390_vec_revb. Add low-level builtins for vlbr and vstbr
19123 instructions.
19124 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
19125 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
19126 ("bswap<mode>"): New expander.
19127 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
19128
19129 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19130
19131 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
19132 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
19133 vector builtin version number in __VEC__.
19134
19135 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19136
19137 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
19138 iterators.
19139 (SFSI): New mode attribute.
19140 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
19141 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
19142 rename to ...
19143 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
19144 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
19145 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
19146 ("floatsi<mode>2"): Add wcefb instruction.
19147
19148 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19149
19150 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
19151 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
19152 mode iterators.
19153 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
19154 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
19155 support 32 bit fp-int conversions. Rename to ...
19156 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19157 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19158 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
19159 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
19160 ... to these.
19161
19162 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19163
19164 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
19165 if-then-else constructs if we can use the select instruction.
19166 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
19167
19168 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19169
19170 * config/s390/s390.md ("*popcountdi_arch13_cc")
19171 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
19172 definition.
19173 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
19174 Append _z196 to make it ...
19175 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
19176 ("popcounthi2_z196"): ... this.
19177 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
19178 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
19179
19180 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19181
19182 * config/s390/s390.c (s390_canonicalize_comparison): Convert
19183 certain compares for arch13 in order to make use of the condition
19184 code result produced by the new instructions.
19185 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
19186 nxrk, and nxgrk instruction patterns.
19187 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
19188 (inv_no): Add new code iterator together with some attributes.
19189 ("*andc_split_<mode>"): Disable splitter for arch13.
19190 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
19191 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
19192 ("*<ANDOR:bitops_name>c<GPR:mode>")
19193 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
19194 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
19195 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
19196 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
19197
19198 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19199
19200 * common/config/s390/s390-common.c (processor_flags_table): New
19201 entry for arch13.
19202 * config.gcc: Support arch13 with the --with-arch= configure flag.
19203 * config/s390/driver-native.c (s390_host_detect_local_cpu):
19204 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
19205 * config/s390/s390.c (s390_get_sched_attrmask)
19206 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
19207 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
19208 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
19209 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
19210 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
19211 definitions.
19212 * config/s390/s390.opt: Support arch13 as processor type in
19213 command line options.
19214
19215 2019-04-02 Martin Liska <mliska@suse.cz>
19216
19217 PR translation/89912
19218 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
19219 Fix param description of graphite-max-arrays-per-scop.
19220
19221 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
19222
19223 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
19224 (ASAN_CC1_SPEC): Use it in 64-bit mode.
19225 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
19226
19227 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19228
19229 PR rtl-optimization/85412
19230 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
19231 sel_sched_region_1, not after.
19232
19233 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19234
19235 PR rtl-optimization/86928
19236 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
19237 compute_live if necessary.
19238 (sel_redirect_edge_and_branch): Likewise.
19239
19240 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
19241
19242 PR rtl-optimization/89865
19243 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
19244 register if it is a part of small class.
19245
19246 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19247
19248 PR rtl-optimization/87273
19249 * sel-sched-ir.c (merge_fences): Remove assert.
19250
19251 2019-04-01 Richard Biener <rguenther@suse.de>
19252
19253 PR tree-optimization/46590
19254 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
19255 (dom_walker::m_reachability): Add in place of...
19256 (dom_walker::m_skip_unreachable_blocks): ...this.
19257 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
19258 Move complex initialization ...
19259 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
19260 lazily and initialize edge flags on each invocation.
19261 (dom_walker::bb_reachable): Use m_reachability.
19262
19263 2019-04-01 Martin Liska <mliska@suse.cz>
19264
19265 PR driver/89861
19266 * opt-suggestions.c (option_proposer::build_option_suggestions):
19267 Add variant without any argument in order to provide better
19268 hints.
19269
19270 2019-04-01 Richard Biener <rguenther@suse.de>
19271
19272 PR c/71598
19273 * gimple.c: Include langhooks.h.
19274 (gimple_get_alias_set): Treat enumeral types as the underlying
19275 integer type.
19276
19277 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19278 Eric Botcazou <ebotcazou@adacore.com>
19279
19280 PR rtl-optimization/89862
19281 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
19282 that operates on the full registers for WORD_REGISTER_OPERATIONS
19283 architectures.
19284
19285 2019-03-29 Jim Wilson <jimw@sifive.com>
19286
19287 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
19288 Clear MASK_RVC and then set if C subset supported.
19289
19290 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19291
19292 PR c/89872
19293 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
19294 non-addressable complit into its initializer if it is volatile.
19295
19296 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
19297
19298 * opts-common.c (integral_argument): Set errno properly in one case.
19299
19300 2019-03-29 Martin Liska <mliska@suse.cz>
19301
19302 * doc/invoke.texi: Remove -Wchkp from documentation.
19303
19304 2019-03-29 Martin Liska <mliska@suse.cz>
19305
19306 * dbgcnt.c (print_limit_reach): New function.
19307 (dbg_cnt): Use it.
19308
19309 2019-03-29 Martin Liska <mliska@suse.cz>
19310
19311 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
19312 (dbg_cnt_process_opt): Parse first tokens aas
19313 dbg_cnt_process_single_pair is also using strtok.
19314
19315 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19316
19317 PR rtl-optimization/87485
19318 * function.c (expand_function_end): Move stack_protect_epilogue
19319 before loading of return value into hard register(s).
19320
19321 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19322
19323 PR middle-end/89621
19324 * tree-inline.h (struct copy_body_data): Add
19325 dont_remap_vla_if_no_change flag.
19326 * tree-inline.c (remap_type_3, remap_type_2): New functions.
19327 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
19328 and remap_type_2 returns false.
19329 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
19330 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
19331 only from where it is copied to nested contexts.
19332
19333 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19334
19335 PR target/89865
19336 * config/i386/i386.md (RMW operation with LEA peephole):
19337 Use LEAMODE mode attribute instead of SWI mode iterator for
19338 LEA pattern.
19339
19340 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19341
19342 PR target/89848
19343 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
19344 Also process XEXP (src, 0) of a shift insn.
19345
19346 2019-03-28 David Malcolm <dmalcolm@redhat.com>
19347
19348 PR middle-end/89725
19349 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
19350 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
19351
19352 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19353
19354 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
19355 test.
19356 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
19357 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
19358 immediately after first one with df_analyze in between, but rather
19359 process all bbs, queueing ones that need second pass in a worklist,
19360 df_analyze, process queued debug insn changes and if second pass is
19361 needed, process bbs from worklist, df_analyze, process queued debug
19362 insns again.
19363
19364 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
19365 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
19366 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
19367
19368 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
19369
19370 PR c/79022
19371 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19372 definition.
19373
19374 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
19375
19376 PR target/85667
19377 * config/i386/i386.c (ix86_function_value_1): Call the newly added
19378 function for 32-bit MS_ABI.
19379 (function_value_ms_32): New function.
19380
19381 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
19382
19383 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19384 (movdi): Call gen_movdi_symbol_save_scc.
19385 (gen_movdi_symbol_save_scc): New insn and split.
19386
19387 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
19388
19389 PR rtl-optimization/89313
19390 * function.c (matching_constraint_num): New static function.
19391 (match_asm_constraints_1): Use it. Fixup white space and comment.
19392 Don't replace inputs with non-matching constraints which conflict
19393 with early clobber outputs.
19394
19395 2019-03-27 Jeff Law <law@redhat.com>
19396
19397 PR rtl-optimization/87761
19398 PR rtl-optimization/89826
19399 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19400 slightly later.
19401 (pass_cprop_hardreg::execute): Call df_analyze after adding the
19402 note problem to get REG_DEAD/REG_UNUSED notes updated.
19403
19404 2019-03-27 Richard Biener <rguenther@suse.de>
19405
19406 PR tree-optimization/89463
19407 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19408 queue edges to remove.
19409 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19410 dead stmts. Delay edge removal until PHIs are removed to
19411 make debug-stmt creation not confused by seemingly degenerate
19412 PHIs.
19413
19414 2019-03-27 Alan Modra <amodra@gmail.com>
19415
19416 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19417 throughout file.
19418 * config/rs6000/darwin.h: Likewise.
19419 * config/rs6000/rs6000.c: Likewise.
19420
19421 2019-03-27 Alan Modra <amodra@gmail.com>
19422
19423 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19424 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
19425
19426 2019-03-26 Andrew Waterman <andrew@sifive.com>
19427 Jim Wilson <jimw@sifive.com>
19428
19429 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19430 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19431 (generic_idivdi, generic_fmul_single, generic_fmul_double)
19432 (generic_fdiv, generic_fsqrt): Add check for generic tune.
19433 (generic_alu): Add auipc to type list.
19434 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19435 (riscv_microarchitecture): Declare.
19436 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19437 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19438 field.
19439 (riscv_microarchitecture): New.
19440 (sifive_7_tune_info): New.
19441 (riscv_cpu_info_table): Add microarchitecture value for rocket and
19442 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
19443 entries.
19444 (riscv_store_data_bypass_p): New.
19445 (riscv_option_override): Set riscv_microarchitecture from
19446 cpu->microarchitecture.
19447 * config/riscv/riscv.md: Include sifive-7.md.
19448 (type): Add auipc.
19449 (tune): New.
19450 (auipc<mode>): Change type to auipc.
19451 (restore_stack_nonlocal): New.
19452 * config/riscv/sifive-7.md: New.
19453 * doc/invoke.texi (RISC-V Options): Update mtune docs.
19454
19455 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
19456
19457 PR target/89827
19458 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19459 Also process XEXP (src, 0) of a shift insn.
19460
19461 2019-03-26 Richard Biener <rguenther@suse.de>
19462
19463 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19464 (copy_debug_stmt): Likewise.
19465 (expand_call_inline): Likewise.
19466 (copy_bb): Avoid redundant lookup & set of gimple_block.
19467 * gimple-low.c (lower_gimple_return): Likewise.
19468 (lower_builtin_setjmp): Likewise.
19469
19470 2019-03-26 Jakub Jelinek <jakub@redhat.com>
19471
19472 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19473 is constant 0, turn into static const data member initialized to false.
19474 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19475 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19476
19477 2019-03-26 Jason Merrill <jason@redhat.com>
19478 Jakub Jelinek <jakub@redhat.com>
19479
19480 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19481 method.
19482 (mem_alloc_description::release_object_overhead): Fix comment typos.
19483 * hash-table.h (hash_table::~hash_table): Call
19484 release_instance_overhead only if m_entries is non-NULL, otherwise
19485 call unregister_descriptor.
19486
19487 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
19488
19489 PR tree-optimization/81740
19490 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19491 In case of outer loop vectorization, check for backward dependence
19492 at the inner loop if outer loop dependence is reversed.
19493
19494 2019-03-26 Alan Modra <amodra@gmail.com>
19495
19496 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19497 rs6000_vector_mem init. Correct wI and wJ comment.
19498
19499 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
19500
19501 PR rtl-optimization/88347
19502 PR rtl-optimization/88423
19503 * sched-deps.c (sched_analyze_insn): Take into account that for
19504 tablejumps the barrier appears after a label and a jump_table_data.
19505
19506 2019-03-25 Martin Sebor <msebor@redhat.com>
19507
19508 PR c/89812
19509 * c-common.c (check_user_alignment): Rename local. Correct maximum
19510 alignment in diagnostic. Avoid assuming argument fits in SHWI,
19511 convert it to UHWI when it fits.
19512
19513 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
19514
19515 PR debug/86964
19516 * dwarf2out.c (premark_used_variables): New function.
19517 (prune_unused_types_walk): Do not mark not premarked external
19518 variables.
19519 (prune_unused_types): Call premark_used_variables.
19520
19521 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
19522
19523 PR rtl-optimization/89676
19524 * lra-constraints.c (curr_insn_transform): Do match reload for
19525 early clobbers when the match was successful only for different
19526 registers.
19527
19528 2019-03-25 Martin Sebor <msebor@redhat.com>
19529
19530 * doc/extend.texi (Common Type Attributes): Document vector_size.
19531 (Common Variable Attributes): Mention size constraint. Correct
19532 quoting and typos.
19533 (Vector Extensions): Use @dfn when defining bas type. Clarify
19534 base type and size constraints.
19535
19536 2019-03-25 Richard Biener <rguenther@suse.de>
19537
19538 PR tree-optimization/89789
19539 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19540 changes from non-undefined back to undefined.
19541
19542 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
19543
19544 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19545 heap string and a gc string, but since this variable is unknown to
19546 ggc the gc string might get reused and corrupted. Fixed by always
19547 using a heap string.
19548
19549 2019-03-25 Richard Biener <rguenther@suse.de>
19550
19551 PR tree-optimization/89779
19552 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19553 to remove IV defs, delay actual removal.
19554 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
19555 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19556 very end, properly also reset loop control IV information.
19557
19558 2019-03-25 Richard Biener <rguenther@suse.de>
19559
19560 PR tree-optimization/89802
19561 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19562 move EH data to folded stmt.
19563
19564 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19565
19566 * config/s390/s390-builtin-types.def: Remove few unused types and
19567 fix sort order for others.
19568
19569 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19570
19571 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19572 expected and found types with -mdebug during builtin matching.
19573
19574 2019-03-25 Richard Biener <rguenther@suse.de>
19575
19576 PR middle-end/89790
19577 * fold-const.c (operand_equal_p): Revert last change with
19578 updated comment.
19579
19580 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
19581
19582 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19583 notes for the result of the __tls_get_addr calls.
19584 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
19585
19586 2019-03-24 Jeff Law <law@redhat.com>
19587
19588 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
19589
19590 PR rtl-optimization/87761
19591 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
19592 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
19593 as needed.
19594 (pass_cprop_hardreg::execute): Add df note problem and defer insn
19595 rescans. Reprocess blocks as needed, calling df_analyze before
19596 reprocessing. Always call df_analyze before fixing up debug bind
19597 insns.
19598
19599 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
19600
19601 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
19602 big endian.
19603
19604 2019-03-22 Andrew Pinski <apinski@marvell.com>
19605
19606 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
19607 attrribute for uxtw.
19608
19609 2019-03-26 Jeff Law <law@redhat.com>
19610
19611 PR rtl-optimization/87761
19612 * config/mips/mips-protos.h (mips_split_move): Add new argument.
19613 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
19614 (mips_split_move): Accept new INSN argument. Try to forward SRC
19615 into the next instruction.
19616 (mips_split_move_insn): Pass INSN through to mips_split_move.
19617
19618 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
19619
19620 PR rtl-optimization/89676
19621 * lra-constraints.c (curr_insn_transform): Do match reload for
19622 early clobbers even if the match was successful.
19623
19624 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19625
19626 PR c++/87481
19627 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
19628
19629 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
19630
19631 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
19632
19633 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19634
19635 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
19636 <avx512>_fmsub_<mode>_mask3<round_name>,
19637 <avx512>_fnmadd_<mode>_mask3<round_name>,
19638 <avx512>_fnmsub_<mode>_mask3<round_name>,
19639 avx512f_vmfmadd_<mode>_mask3<round_name>,
19640 avx512f_vmfmsub_<mode>_mask3<round_name>,
19641 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19642 instead of register_operand and %v instead of v for match_operand 1.
19643 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
19644 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
19645 <round_nimm_predicate> instead of register_operand and %v instead of v
19646 for match_operand 1.
19647
19648 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
19649 <avx512>_fmadd_<mode>_mask3<round_name>,
19650 <avx512>_fmsub_<mode>_mask<round_name>,
19651 <avx512>_fmsub_<mode>_mask3<round_name>,
19652 <avx512>_fnmadd_<mode>_mask<round_name>,
19653 <avx512>_fnmadd_<mode>_mask3<round_name>,
19654 <avx512>_fnmsub_<mode>_mask<round_name>,
19655 <avx512>_fnmsub_<mode>_mask3<round_name>,
19656 <avx512>_fmaddsub_<mode>_mask<round_name>,
19657 <avx512>_fmaddsub_<mode>_mask3<round_name>,
19658 <avx512>_fmsubadd_<mode>_mask<round_name>,
19659 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
19660 <round_nimm_predicate> instead of nonimmediate_operand.
19661 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
19662 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
19663 Use register_operand instead of <round_nimm_predicate> for the
19664 operand that needs to match output.
19665 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
19666 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
19667 Likewise. Formatting fixes.
19668
19669 PR target/89784
19670 * config/i386/i386.c (enum ix86_builtins): Remove
19671 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
19672 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
19673 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
19674 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
19675 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
19676 __builtin_ia32_vfmsubss3_mask3): New builtins.
19677 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
19678 avx512f_vmfmadd_<mode>_mask3<round_name>,
19679 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
19680 *avx512f_vmfmsub_<mode>_mask<round_name>,
19681 avx512f_vmfmsub_<mode>_mask3<round_name>,
19682 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
19683 *avx512f_vmfnmadd_<mode>_mask<round_name>,
19684 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
19685 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
19686 *avx512f_vmfnmsub_<mode>_mask<round_name>,
19687 avx512f_vmfnmsub_<mode>_mask3<round_name>,
19688 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
19689 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
19690 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
19691 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
19692 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
19693 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
19694 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
19695 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
19696 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
19697 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
19698 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
19699 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
19700 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
19701 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
19702 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
19703 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
19704 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
19705 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
19706 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
19707 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
19708 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
19709 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
19710
19711 2019-03-21 Martin Sebor <msebor@redhat.com>
19712
19713 PR tree-optimization/89350
19714 * builtins.c (compute_objsize): Also ignore offsets whose upper
19715 bound is negative.
19716 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
19717 (builtin_memref::builtin_memref): Initialize new member.
19718 Allow EXPR to be null.
19719 (builtin_memref::extend_offset_range): Replace local with a member.
19720 Avoid assuming pointer offsets are unsigned.
19721 (builtin_memref::set_base_and_offset): Determine base object
19722 before computing offset range.
19723 (builtin_access::builtin_access): Handle memset.
19724 (builtin_access::generic_overlap): Replace local with a member.
19725 (builtin_access::strcat_overlap): Same.
19726 (builtin_access::overlap): Same.
19727 (maybe_diag_overlap): Same.
19728 (maybe_diag_access_bounds): Same.
19729 (wrestrict_dom_walker::check_call): Handle memset.
19730 (check_bounds_or_overlap): Same.
19731
19732 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
19733 Jakub Jelinek <jakub@redhat.com>
19734
19735 PR lto/89692
19736 * tree.c (fld_type_variant, fld_incomplete_type_of,
19737 fld_process_array_type): Call fld->pset.add and don't call
19738 add_tree_to_fld_list if it returns true.
19739 (free_lang_data_in_type): Similarly with self-recursive call. Purge
19740 non-marked types from TYPE_NEXT_VARIANT list.
19741 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
19742
19743 2019-03-21 Jakub Jelinek <jakub@redhat.com>
19744
19745 * hash-table.h (hash_table): Add Lazy template parameter defaulted
19746 to false, if true, don't alloc_entries during construction, but defer
19747 it to the first method that needs m_entries allocated.
19748 (hash_table::hash_table, hash_table::~hash_table,
19749 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
19750 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
19751 hash_table::clear_slot, hash_table::traverse_noresize,
19752 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
19753 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
19754 false.
19755 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
19756 NO_INSERT instead of find_with_hash.
19757 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
19758 hash_set::m_table): Add Lazy to template params of hash_table.
19759 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
19760 * attribs.c (test_attribute_exclusions): Likewise.
19761 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
19762 hash_set. Add tests for hash_set with Lazy = true.
19763
19764 2019-03-21 Richard Biener <rguenther@suse.de>
19765
19766 PR tree-optimization/89779
19767 * tree.c (tree_nop_conversion): Consolidate and fix defensive
19768 checks with respect to released SSA names now having error_mark_node
19769 type.
19770 * fold-const.c (operand_equal_p): Likewise.
19771
19772 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
19773
19774 PR target/89775
19775 * config/s390/s390.c (global_not_special_regno_p): Move to make it
19776 available to ...
19777 (s390_optimize_register_info): Use global_not_special_regno_p to
19778 check for global regs.
19779
19780 2019-03-20 Jakub Jelinek <jakub@redhat.com>
19781
19782 PR target/89752
19783 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
19784 update this_alternative nor this_alternative_set.
19785
19786 2019-03-19 Jim Wilson <jimw@sifive.com>
19787
19788 PR target/89411
19789 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
19790 align, size, offset. Use them to handle a BLKmode reference. Update
19791 comment.
19792 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
19793
19794 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19795
19796 PR rtl-optimization/89768
19797 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
19798 instead of GEN_INT.
19799 (unroll_loop_runtime_iterations): Likewise.
19800
19801 2019-03-19 Martin Sebor <msebor@redhat.com>
19802
19803 PR tree-optimization/89644
19804 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
19805 rather than endptr as an indicator of nul-termination.
19806
19807 PR tree-optimization/89644
19808 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
19809 arrays in determining sequence sizes in strncpy and stpncpy.
19810
19811 2019-03-19 Martin Liska <mliska@suse.cz>
19812
19813 PR middle-end/89737
19814 * predict.c (combine_predictions_for_bb): Empty likely_edges and
19815 unlikely_edges if there's an edge that belongs to both these sets.
19816
19817 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
19818
19819 PR target/89746
19820 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
19821 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
19822 go via a stack temporary.
19823
19824 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19825
19826 PR target/89378
19827 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
19828 instead of gen_rtx_SUBREG.
19829 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
19830
19831 2019-03-19 Richard Biener <rguenther@suse.de>
19832
19833 PR debug/88389
19834 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
19835
19836 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
19837
19838 PR lto/87809
19839 PR lto/89335
19840 * tree.c (free_lang_data_in_decl): Do not free context of C++
19841 destrutors.
19842
19843 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19844
19845 PR target/89506
19846 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
19847 subs for the first alternative except when operands[3] is 1.
19848
19849 PR target/89752
19850 * gimplify.c (gimplify_asm_expr): For output argument with
19851 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
19852 diagnose error.
19853
19854 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
19855
19856 PR rtl-optimization/89753
19857 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
19858 explicit unrolling factor even more robust.
19859
19860 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19861
19862 PR target/89726
19863 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
19864 compensation use x2 += 1 instead of x2 -= -1 and when honoring
19865 signed zeros, do another copysign after the compensation.
19866
19867 2019-03-18 Martin Sebor <msebor@redhat.com>
19868
19869 PR tree-optimization/89720
19870 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
19871 more conservatively, the same as anti-range.
19872
19873 2019-03-18 Richard Biener <rguenther@suse.de>
19874
19875 PR middle-end/88945
19876 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
19877 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
19878 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
19879 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
19880
19881 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
19882
19883 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
19884 Extend queue to 1024 entries.
19885 Add "consumed" field.
19886 (gomp_print_output): Remove print_index parameter.
19887 Add final parameter.
19888 Change limit to unsigned.
19889 Use consumed field to implement circular buffer.
19890 Detect interrupted print in final pass.
19891 Flush output at the end.
19892 (run): Update gomp_print_output usage.
19893 (main): Initialize kernargs->output_data.consumed.
19894
19895 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
19896
19897 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
19898 calculation of the minimum number of scalar iterations for
19899 fully-predicated loops.
19900
19901 2019-03-18 Martin Jambor <mjambor@suse.cz>
19902
19903 PR tree-optimization/89546
19904 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
19905 any propagation to its children took place.
19906
19907 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
19908
19909 PR target/89627
19910 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
19911 parameter, and make use of it.
19912 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
19913
19914 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19915
19916 * config/arc/arc.opt (mcode-density-frame): Get the inital value
19917 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
19918 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19919 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19920 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
19921 match what the ops is doing.
19922 (push_multi_fp_blink): Likewise.
19923 * config/arc/arc.c (arc_override_options): Enable enter/leave when
19924 compiling for size and elf target.
19925 (arc_save_callee_enter): Adjust note to match what enter/leave
19926 operation does.
19927
19928 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19929
19930 * config/arc/arc.md (tst_movb): Fix constraint.
19931
19932 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19933
19934 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
19935
19936 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19937
19938 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
19939 * config/arc/arc.c (arc_conditional_register_usage): Remove all
19940 reg_alloc_order references.
19941 (size_alloc_order): Define.
19942 (arc_adjust_reg_alloc_order): New function.
19943 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
19944 order.
19945 (ADJUST_REG_ALLOC_ORDER): Define.
19946 (HONOR_REG_ALLOC_ORDER): Likewise.
19947
19948 2019-03-18 Richard Biener <rguenther@suse.de>
19949
19950 PR target/87561
19951 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
19952 loads and stores a bit more.
19953
19954 2019-03-18 Richard Biener <rguenther@suse.de>
19955
19956 PR target/87561
19957 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
19958 load pessimization to stores as well.
19959
19960 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
19961
19962 PR middle-end/86979
19963 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
19964 successor, use NULL as its av set.
19965
19966 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
19967
19968 PR rtl-optimization/89721
19969 * lra-constraints (invariant_p): Return false if side_effects_p holds.
19970
19971 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
19972
19973 PR target/87532
19974 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19975 When handling vec_extract, use modular arithmetic to allow
19976 constant selectors greater than vector length.
19977 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
19978 V1TImode vectors to have constant selector values greater than 0.
19979 Use modular arithmetic to compute vector index.
19980 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
19981 index for in-memory vectors. Correct code generation for
19982 in-register vectors.
19983 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
19984 compute index.
19985
19986 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
19987
19988 PR c++/88534
19989 PR c++/88537
19990 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
19991 VAR_DECL args.
19992
19993 2019-03-15 Jakub Jelinek <jakub@redhat.com>
19994
19995 PR c++/89709
19996 * tree.c (inchash::add_expr): Strip any location wrappers.
19997 * fold-const.c (operand_equal_p): Move stripping of location wrapper
19998 after hash verification.
19999
20000 PR debug/89704
20001 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
20002 SIGN_EXTEND and ZERO_EXTEND.
20003
20004 2019-03-14 Jason Merrill <jason@redhat.com>
20005 Jakub Jelinek <jakub@redhat.com>
20006
20007 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
20008 than if is_empty (*slot).
20009 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
20010 existing elt and for elt removal.
20011 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
20012 of already removed elt.
20013
20014 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
20015
20016 PR target/89650
20017 * config/i386/i386.c (remove_partial_avx_dependency): Handle
20018 REG_EH_REGION note.
20019
20020 2019-03-14 Martin Liska <mliska@suse.cz>
20021
20022 PR other/89712
20023 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
20024
20025 2019-03-14 Richard Biener <rguenther@suse.de>
20026
20027 PR target/89711
20028 * config/i386/i386.c (make_resolver_func): Properly set
20029 DECL_CONTEXT on the RESULT_DECL.
20030 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
20031
20032 2019-03-14 Richard Biener <rguenther@suse.de>
20033
20034 * gimple-pretty-print.c: Include cfgloop.h.
20035 (dump_gimple_phi): Adjust.
20036 (dump_gimple_bb_header): Dump loop header for GIMPLE.
20037 (pp_cfg_jump): Adjust.
20038 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
20039 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
20040 (lower_phi_internal_fn): Remove.
20041 (verify_gimple_call): Remove IFN_PHI special-casing.
20042 (dump_function_to_file): Dump IL state.
20043 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
20044 done to deal with PHI nodes being present in non-SSA state.
20045
20046 2019-03-14 Jakub Jelinek <jakub@redhat.com>
20047
20048 PR ipa/89684
20049 * multiple_target.c (create_dispatcher_calls): Change
20050 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
20051 In the node->iterate_referring loop, push *ref rather than ref, call
20052 ref->remove_reference () and always pass 0 to iterate_referring.
20053
20054 PR rtl-optimization/89679
20055 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
20056 would contain a paradoxical SUBREG.
20057
20058 2019-03-14 Richard Biener <rguenther@suse.de>
20059
20060 PR tree-optimization/89710
20061 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
20062 safe_dyn_cast.
20063
20064 2019-03-14 Martin Liska <mliska@suse.cz>
20065
20066 * coverage.c (coverage_begin_function): Stream also
20067 end_column.
20068 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
20069 documentation about function declaration location.
20070 * gcov-dump.c (tag_function): Print whole range
20071 of function declaration.
20072 * gcov.c (struct function_info): Add end_column field.
20073 (function_info::function_info): Initialize it.
20074 (output_json_intermediate_file): Output {start,end}_column
20075 fields.
20076 (read_graph_file): Read end_column.
20077
20078 2019-03-14 Richard Biener <rguenther@suse.de>
20079
20080 PR middle-end/89698
20081 * fold-const.c (operand_equal_p): For INDIRECT_REF check
20082 that the access types are similar.
20083
20084 2019-03-14 Jakub Jelinek <jakub@redhat.com>
20085
20086 PR tree-optimization/89703
20087 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
20088 aren't compatible also with builtin_decl_explicit. Check pure
20089 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
20090 and BUILT_IN_STPNCPY{,_CHK}.
20091
20092 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
20093
20094 PR target/89523
20095 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
20096 addr32 prefix to VSIB address for X32.
20097 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
20098 "%M2" to opcode.
20099 (*avx512pf_gatherpf<mode>df_mask): Likewise.
20100 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
20101 (*avx512pf_scatterpf<mode>df_mask): Likewise.
20102 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
20103 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
20104 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
20105 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
20106 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
20107 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
20108 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
20109 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
20110 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
20111 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
20112 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
20113 (*avx512f_scatterdi<mode>): Likewise.
20114
20115 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
20116
20117 PR target/85860
20118 * lra-constraints.c (inherit_in_ebb): Update
20119 potential_reload_hard_regs along with live_hard_regs.
20120
20121 2019-03-13 Jakub Jelinek <jakub@redhat.com>
20122
20123 PR debug/89498
20124 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
20125 DWARF_OFFSET_SIZE.
20126 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
20127
20128 2019-03-13 Martin Sebor <msebor@redhat.com>
20129
20130 PR tree-optimization/89662
20131 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
20132 has a size.
20133
20134 2019-03-13 Richard Biener <rguenther@suse.de>
20135
20136 PR middle-end/89677
20137 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
20138 throw FP expressions at tree-affine.
20139
20140 2019-03-14 Richard Biener <rguenther@suse.de>
20141
20142 * tree-pretty-print.c (dump_generic_node): For -gimple properly
20143 dump negative integer constants using _Literal (type) -num.
20144
20145 2019-03-13 Jakub Jelinek <jakub@redhat.com>
20146
20147 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
20148 nonlocal_value member.
20149
20150 PR middle-end/88588
20151 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
20152 (ipa_simd_modify_function_body): Handle PHIs.
20153
20154 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20155
20156 * config/s390/s390.c (s390_option_override_internal): Use more
20157 aggressive inlining parameters.
20158
20159 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20160
20161 * config/s390/3906.md: New file.
20162 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20163 (LONGRUNNING_THRESHOLD): Remove.
20164 (MAX_SCHED_MIX_SCORE): Decrease.
20165 (MAX_SCHED_MIX_DISTANCE): Decrease.
20166 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
20167 (struct s390_sched_state): New struct to hold scheduling state.
20168 (S390_SCHED_STATE_NORMAL): Remove.
20169 (S390_SCHED_STATE_CRACKED): Remove.
20170 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
20171 (s390_get_sched_attrmask): Use new attribute.
20172 (s390_get_unit_mask): Use new units.
20173 (s390_is_fpd): New function.
20174 (s390_is_fxd): New function.
20175 (s390_is_longrunning): New function.
20176 (s390_sched_score): Use new functions.
20177 (s390_sched_reorder): Likewise.
20178 (s390_sched_variable_issue): Rework and use new functions.
20179 (s390_sched_init): Use new functions.
20180 * config/s390/s390.h (s390_tune_attr): Add z14.
20181 * config/s390/s390.md: Add z14.
20182
20183 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20184
20185 * config/s390/2964.md: Update pipeline description.
20186 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20187 (LONGRUNNING_THRESHOLD): Remove.
20188 (LATENCY_FACTOR): Remove.
20189 (s390_get_unit_mask): Add unit.
20190 (s390_sched_score): Use fxd/fpd.
20191 (s390_sched_variable_issue): Use fxd/fpd.
20192
20193 2019-03-12 Martin Liska <mliska@suse.cz>
20194
20195 * config/i386/i386.c: Reword an error message.
20196
20197 2019-03-12 Martin Jambor <mjambor@suse.cz>
20198
20199 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
20200 terminate with newline.
20201
20202 2019-03-12 Jakub Jelinek <jakub@redhat.com>
20203
20204 PR target/52726
20205 * config/s390/s390.md (tabort): Use %wd instead of
20206 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
20207 letters and periods.
20208 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
20209 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
20210 's with %< and %>.
20211
20212 PR middle-end/89663
20213 * builtins.c (expand_builtin_int_roundingfn,
20214 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
20215 gcc_unreachable if validate_arglist fails.
20216
20217 2019-03-12 Richard Biener <rguenther@suse.de>
20218
20219 PR tree-optimization/89664
20220 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
20221 free the occurance tree after the early out.
20222
20223 2019-03-11 Jakub Jelinek <jakub@redhat.com>
20224
20225 PR middle-end/89655
20226 PR bootstrap/89656
20227 * vr-values.c (vr_values::update_value_range): If
20228 old_vr->varying_p (), don't update it, make new_vr also VARYING
20229 and return false.
20230
20231 2019-03-11 Martin Liska <mliska@suse.cz>
20232
20233 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20234 Fix double string quoting.
20235
20236 2019-03-11 Martin Liska <mliska@suse.cz>
20237
20238 * collect-utils.c (collect_wait): Wrap apostrophes
20239 in gcc internal format with %'.
20240 * collect2.c (main): Likewise.
20241 (scan_prog_file): Likewise.
20242 (scan_libraries): Likewise.
20243 * config/i386/i386.c (ix86_expand_call): Likewise.
20244 (ix86_handle_interrupt_attribute): Likewise.
20245 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
20246 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20247 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
20248 * lto-wrapper.c (find_crtoffloadtable): Likewise.
20249 * symtab.c (symtab_node::verify_base): Likewise.
20250 * tree-cfg.c (verify_gimple_label): Likewise.
20251 * tree.c (verify_type_variant): Likewise.
20252
20253 2019-03-11 Martin Liska <mliska@suse.cz>
20254
20255 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
20256 in a string format message and fix GNU coding style.
20257 (expand_builtin_set_thread_pointer): Likewise.
20258 * common/config/aarch64/aarch64-common.c
20259 (aarch64_rewrite_selected_cpu): Likewise.
20260 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
20261 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
20262 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
20263 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20264 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
20265 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
20266 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
20267 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
20268 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
20269 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
20270 Likewise.
20271 * common/config/riscv/riscv-common.c
20272 (riscv_subset_list::parsing_subset_version): Likewise.
20273 (riscv_subset_list::parse_std_ext): Likewise.
20274 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20275 (riscv_subset_list::parse): Likewise.
20276 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
20277 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
20278 (aarch64_override_options_internal): Likewise.
20279 (aarch64_validate_mcpu): Likewise.
20280 (aarch64_validate_march): Likewise.
20281 (aarch64_validate_mtune): Likewise.
20282 (aarch64_override_options): Likewise.
20283 * config/alpha/alpha.c (alpha_option_override): Likewise.
20284 * config/arc/arc.c (arc_init): Likewise.
20285 (parse_mrgf_banked_regs_option): Likewise.
20286 (arc_override_options): Likewise.
20287 (arc_expand_builtin_aligned): Likewise.
20288 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
20289 (arm_expand_builtin): Likewise.
20290 * config/arm/arm.c (arm_option_check_internal): Likewise.
20291 (arm_configure_build_target): Likewise.
20292 (arm_option_override): Likewise.
20293 (arm_options_perform_arch_sanity_checks): Likewise.
20294 (arm_handle_cmse_nonsecure_entry): Likewise.
20295 (arm_handle_cmse_nonsecure_call): Likewise.
20296 (arm_tls_referenced_p): Likewise.
20297 (thumb1_expand_prologue): Likewise.
20298 * config/avr/avr.c (avr_option_override): Likewise.
20299 * config/bfin/bfin.c (bfin_option_override): Likewise.
20300 * config/c6x/c6x.c (c6x_option_override): Likewise.
20301 * config/cr16/cr16.c (cr16_override_options): Likewise.
20302 * config/cris/cris.c (cris_option_override): Likewise.
20303 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
20304 * config/darwin-c.c (macosx_version_as_macro): Likewise.
20305 * config/darwin.c (darwin_override_options): Likewise.
20306 * config/frv/frv.c (frv_expand_builtin): Likewise.
20307 * config/h8300/h8300.c (h8300_option_override): Likewise.
20308 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
20309 (ix86_option_override_internal): Likewise.
20310 (warn_once_call_ms2sysv_xlogues): Likewise.
20311 (ix86_expand_prologue): Likewise.
20312 (split_stack_prologue_scratch_regno): Likewise.
20313 (ix86_warn_parameter_passing_abi): Likewise.
20314 * config/ia64/ia64.c (fix_range): Likewise.
20315 * config/m68k/m68k.c (m68k_option_override): Likewise.
20316 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
20317 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
20318 (mips_set_compression_mode): Likewise.
20319 * config/mmix/mmix.c (mmix_option_override): Likewise.
20320 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
20321 * config/msp430/msp430.c (msp430_option_override): Likewise.
20322 * config/nds32/nds32.c (nds32_option_override): Likewise.
20323 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
20324 (nios2_option_override): Likewise.
20325 (nios2_expand_custom_builtin): Likewise.
20326 * config/nvptx/mkoffload.c (main): Likewise.
20327 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
20328 * config/pa/pa.c (fix_range): Likewise.
20329 (pa_option_override): Likewise.
20330 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
20331 (riscv_option_override): Likewise.
20332 * config/rl78/rl78.c (rl78_option_override): Likewise.
20333 * config/rs6000/aix61.h: Likewise.
20334 * config/rs6000/aix71.h: Likewise.
20335 * config/rs6000/aix72.h: Likewise.
20336 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
20337 * config/rs6000/freebsd64.h: Likewise.
20338 * config/rs6000/linux64.h: Likewise.
20339 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
20340 (rs6000_expand_zeroop_builtin): Likewise.
20341 (rs6000_expand_mtfsb_builtin): Likewise.
20342 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
20343 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
20344 (rs6000_invalid_builtin): Likewise.
20345 (rs6000_expand_split_stack_prologue): Likewise.
20346 * config/rs6000/rtems.h: Likewise.
20347 * config/rx/rx.c (valid_psw_flag): Likewise.
20348 (rx_expand_builtin): Likewise.
20349 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
20350 * config/s390/s390.c (s390_expand_builtin): Likewise.
20351 (s390_function_profiler): Likewise.
20352 (s390_option_override_internal): Likewise.
20353 (s390_option_override): Likewise.
20354 * config/sh/sh.c (sh_option_override): Likewise.
20355 (sh_builtin_saveregs): Likewise.
20356 (sh_fix_range): Likewise.
20357 * config/sh/vxworks.h: Likewise.
20358 * config/sparc/sparc.c (sparc_option_override): Likewise.
20359 * config/spu/spu.c (spu_option_override): Likewise.
20360 (fix_range): Likewise.
20361 * config/visium/visium.c (visium_option_override): Likewise.
20362 (visium_handle_interrupt_attr): Likewise.
20363 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
20364 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
20365 (dbg_cnt_process_opt): Likewise.
20366 * dwarf2out.c (output_dwarf_version): Likewise.
20367 * except.c (expand_eh_return): Likewise.
20368 * gcc.c (defined): Likewise.
20369 (driver_handle_option): Likewise.
20370 (process_command): Likewise.
20371 (compare_files): Likewise.
20372 (driver::prepare_infiles): Likewise.
20373 (driver::do_spec_on_infiles): Likewise.
20374 (driver::maybe_run_linker): Likewise.
20375 * omp-offload.c (oacc_parse_default_dims): Likewise.
20376 * opts-global.c (handle_common_deferred_options): Likewise.
20377 * opts.c (parse_sanitizer_options): Likewise.
20378 (common_handle_option): Likewise.
20379 (enable_warning_as_error): Likewise.
20380 * passes.c (enable_disable_pass): Likewise.
20381 * plugin.c (parse_plugin_arg_opt): Likewise.
20382 (default_plugin_dir_name): Likewise.
20383 * targhooks.c (default_expand_builtin_saveregs): Likewise.
20384 (default_pch_valid_p): Likewise.
20385 * toplev.c (init_asm_output): Likewise.
20386 (process_options): Likewise.
20387 (toplev::run_self_tests): Likewise.
20388 * tree-cfg.c (verify_gimple_call): Likewise.
20389 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20390 (tree_inlinable_function_p): Likewise.
20391 * var-tracking.c (vt_find_locations): Likewise.
20392
20393 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
20394
20395 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20396 only on the else branch.
20397
20398 2019-03-11 Martin Liska <mliska@suse.cz>
20399
20400 * gcov.c (output_intermediate_json_line): Print function
20401 name of each line.
20402 (output_json_intermediate_file): Add new argument.
20403 * doc/gcov.texi: Document the change.
20404
20405 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
20406
20407 PR rtl-optimization/89588
20408 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20409 explicit unrolling factor more robust.
20410
20411 2019-03-11 Richard Biener <rguenther@suse.de>
20412
20413 PR tree-optimization/89649
20414 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20415 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20416 on the prolog and epilog loops.
20417 (vect_loop_versioning): Return copy of loop.
20418 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20419 on the non-vectorized version of the loop.
20420
20421 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
20422
20423 PR target/68924
20424 * config/i386/sse.md (*vec_extractv2di_0_sse):
20425 Add (=r,x) alternative and corresponding splitter.
20426
20427 2019-03-10 Martin Jambor <mjambor@suse.cz>
20428
20429 PR tree-optimization/85762
20430 PR tree-optimization/87008
20431 PR tree-optimization/85459
20432 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20433 it points to if there is a type changing MEM_REF. Adjust all callers.
20434 (build_accesses_from_assign): Disable total scalarization if
20435 contains_vce_or_bfcref_p returns true through the new parameter, for
20436 both rhs and lhs.
20437
20438 2019-03-09 Jakub Jelinek <jakub@redhat.com>
20439
20440 PR c/88568
20441 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20442 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20443
20444 PR target/79645
20445 * common.opt (fdiagnostics-show-labels,
20446 fdiagnostics-show-line-numbers, fdiagnostics-format=,
20447 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20448 gas-locview-support, ginline-points, ginternal-reset-location-views):
20449 Terminate description text with a dot.
20450 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20451 * config/mcore/mcore.opt (m210, m340): Likewise.
20452 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20453 mnops=): Start description text with a capital letter.
20454 * config/arc/arc.opt (msize-level=): Likewise.
20455 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20456 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20457 mnewlib): Likewise.
20458 * config/ft32/ft32.opt (msim): Likewise.
20459 (mft32b, mcompress): Likewise. Terminate description text with a dot.
20460 (mnodiv, mnopm): Terminate description text with a dot.
20461 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20462 a colon.
20463 * config/i386/i386.opt (prefer_vector_width, instrument_return):
20464 Likewise.
20465 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20466 text.
20467
20468 PR rtl-optimization/89634
20469 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20470 are modified in BB_END (e->src) instruction.
20471
20472 2019-03-08 David Malcolm <dmalcolm@redhat.com>
20473
20474 PR target/79926
20475 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20476 messages more amenable to translation, and improve wording.
20477
20478 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
20479
20480 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20481 ud- and du-chains between phases.
20482
20483 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
20484
20485 PR debug/89631
20486 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20487 instead of POLY_INT_CST.
20488
20489 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
20490
20491 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20492 requirement.
20493
20494 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
20495
20496 PR target/68924
20497 PR target/78782
20498 PR target/87558
20499 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20500 (_mm_storeu_si64): Ditto.
20501
20502 2019-03-08 Martin Liska <mliska@suse.cz>
20503
20504 PR target/86952
20505 * config/i386/i386.c (ix86_option_override_internal): Disable
20506 jump tables when retpolines are used.
20507
20508 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
20509
20510 PR go/63560
20511 * ipa-split.c (execute_split_functions): Do not split
20512 'noinline' or 'section' function.
20513
20514 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20515
20516 PR target/79846
20517 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20518 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20519 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
20520
20521 PR ipa/80000
20522 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20523 from diagnostics. Formatting fixes.
20524
20525 PR target/85665
20526 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20527 warn_odr diagnostics.
20528
20529 PR other/80058
20530 * lra-constraints.c (process_alt_operands): Avoid one space before
20531 " at the end of line and another after " on another line in a string
20532 literal.
20533 * attribs.c (handle_dll_attribute): Likewise.
20534 * config/avr/avr-devices.c (avr_texinfo): Likewise.
20535
20536 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20537 warning_at or inform messages in G_() if there is no ?:.
20538
20539 PR tree-optimization/89550
20540 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20541 returned true. Formatting fixes.
20542 (expand_builtin_strnlen): Formatting fixes.
20543 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20544 if warning_at returned true.
20545 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20546
20547 2019-03-08 Richard Biener <rguenther@suse.de>
20548
20549 PR middle-end/89578
20550 * cfgloop.h (struct loop): Add owned_clique field.
20551 * cfgloopmanip.c (copy_loop_info): Copy it.
20552 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20553 cliques.
20554 * tree-inline.c (copy_loops): Remap owned_clique.
20555 * lto-streamer-in.c (input_cfg): Stream owned_clique.
20556 * lto-streamer-out.c (output_cfg): Likewise.
20557
20558 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20559
20560 PR target/80190
20561 * config/darwin.c: Include intl.h.
20562 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20563 composing the message out of two separate parts.
20564
20565 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20566
20567 PR target/80003
20568 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20569 doesn't start with a capital letter and doesn't end with a dot.
20570 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20571 with a capital letter.
20572 (ix86_mangle_function_version_assembler_name): Likewise.
20573 (ix86_generate_version_dispatcher_body): Likewise.
20574 (fold_builtin_cpu): Likewise.
20575 (get_builtin_code_for_version): Likewise. Remove extraneous space.
20576 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20577 translators, wrap full type name in %qs.
20578
20579 PR translation/79999
20580 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20581 depend clause with source (or sink) modifier.
20582 * omp-expand.c (expand_omp_ordered_sink): Likewise.
20583
20584 PR target/89602
20585 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
20586 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
20587 (avx512f_load<mode>_mask): New define_expand.
20588 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
20589 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
20590 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
20591 __builtin_ia32_movess_mask): New builtins.
20592 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
20593 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
20594 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
20595 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
20596
20597 2019-03-07 Martin Jambor <mjambor@suse.cz>
20598
20599 PR lto/87525
20600 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
20601 for extern inline functions.
20602
20603 2019-03-07 Martin Jambor <mjambor@suse.cz>
20604
20605 PR ipa/88235
20606 * cgraph.h (cgraph_node): New inline method former_thunk_p.
20607 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
20608 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
20609 have multiple callees. At the end check if declarations match as
20610 opposed to cgraph_nodes.
20611
20612 2019-03-07 Martin Liska <mliska@suse.cz>
20613
20614 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
20615 which is equivalent to searching for this in clones chain.
20616 * symtab.c (symtab_node::verify_base): Similarly compare ASM
20617 names with a neighbour and special case first node in a chain.
20618
20619 2019-01-25 Jason Merrill <jason@redhat.com>
20620
20621 PR c++/80916 - spurious "static but not defined" warning.
20622 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
20623 for an internal symbol with DECL_EXTERNAL.
20624
20625 2019-04-07 Richard Biener <rguenther@suse.de>
20626
20627 PR middle-end/89618
20628 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
20629 * tree-inline.c (copy_loops): Simplify.
20630
20631 2019-03-07 Martin Liska <mliska@suse.cz>
20632
20633 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
20634
20635 2019-03-07 Richard Biener <rguenther@suse.de>
20636
20637 PR tree-optimization/89595
20638 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
20639 stmt iterator as reference, take boolean output parameter to
20640 indicate whether the stmt was removed and thus the iterator
20641 already advanced.
20642 (dom_opt_dom_walker::before_dom_children): Re-iterate over
20643 stmts created by folding.
20644
20645 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20646
20647 PR c++/89585
20648 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
20649 at toplevel.
20650
20651 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
20652
20653 PR rtl-optimization/88845
20654 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
20655 LRA.
20656 * lra.c (remove_scratches_1): New function.
20657 (remove_scratches): Use it.
20658 (lra_emit_move): Likewise.
20659
20660 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
20661
20662 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
20663 unaligned_access variable.
20664 * config/arc/arc.c (arc_override_options): Set unaligned access
20665 default on for HS CPUs.
20666 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
20667
20668 2019-03-06 Martin Liska <mliska@suse.cz>
20669
20670 PR gcov-profile/89577
20671 * doc/gcov.texi: Prefer to use --coverage.
20672 * doc/sourcebuild.texi: Likewise.
20673
20674 2019-03-02 Jason Merrill <jason@redhat.com>
20675
20676 PR c++/86485 - -Wmaybe-unused with empty class ?:
20677 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
20678
20679 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20680
20681 PR target/89587
20682 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
20683 if_multiarch.
20684
20685 PR middle-end/89590
20686 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
20687 exactly one argument.
20688
20689 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20690 Richard Sandiford <richard.sandiford@arm.com>
20691
20692 PR tree-optimization/89570
20693 * match.pd (vec_cond into cond_op simplification): Don't use
20694 get_conditional_internal_fn, use as_internal_fn (cond_op).
20695
20696 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
20697
20698 PR target/89222
20699 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
20700 to decide when to split off a non-zero offset from a symbol.
20701 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
20702 in function symbols.
20703
20704 2019-03-05 Richard Biener <rguenther@suse.de>
20705
20706 PR tree-optimization/89594
20707 * tree-if-conv.c (pass_if_conversion::execute): Handle
20708 case where .LOOP_VECTORIZED_FUNCTION was removed.
20709
20710 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20711
20712 PR bootstrap/89560
20713 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
20714 instead alloca it only when needed with the needed size.
20715
20716 PR tree-optimization/89570
20717 * match.pd (vec_cond into cond_op simplification): Guard with
20718 vectorized_internal_fn_supported_p test and #if GIMPLE.
20719
20720 PR tree-optimization/89566
20721 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
20722 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
20723 Punt if get_user_idx_format succeeds, but idx_format argument is
20724 not provided or doesn't have pointer type, or if idx_args is above
20725 number of provided arguments.
20726
20727 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
20728
20729 PR tree-optimization/89437
20730 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
20731
20732 2019-03-04 Richard Biener <rguenther@suse.de>
20733
20734 PR middle-end/89572
20735 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
20736 safe_dyn_cast.
20737
20738 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
20739
20740 PR tree-optimization/89487
20741 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
20742 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
20743 (distribute_loop): Don't do runtime alias check if there is non-
20744 addressable data reference.
20745 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
20746 is a register variable.
20747
20748 2019-03-02 Jakub Jelinek <jakub@redhat.com>
20749
20750 PR target/89506
20751 * config/arm/arm.md (cmpsi2_addneg): Use
20752 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
20753 If operands[2] is 0 or INT_MIN, force use of subs.
20754 (*compare_scc splitter): Use gen_int_mode.
20755 (*negscc): Likewise.
20756 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
20757
20758 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
20759 Monk Chiang <sh.chiang04@gmail.com>
20760
20761 * common/config/riscv/riscv-common.c: Include sstream.
20762 (riscv_subset_list::to_string): New.
20763 (riscv_arch_str): Likewise.
20764 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
20765 * config.in: Regen.
20766 * config/riscv/riscv-protos.h (riscv_arch_str): New.
20767 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
20768 (riscv_emit_attribute): New.
20769 (riscv_file_start): Emit attribute if needed.
20770 (riscv_option_override): Init riscv_emit_attribute_p.
20771 * config/riscv/riscv.opt (mriscv-attribute): New option.
20772 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
20773 * configure: Regen.
20774 * doc/install.texi: Document --with-riscv-attribute.
20775 * doc/invoke.texi: Document -mriscv-attribute.
20776
20777 * common/config/riscv/riscv-common.c:
20778 Include config/riscv/riscv-protos.h.
20779 (INCLUDE_STRING): Defined.
20780 (RISCV_DONT_CARE_VERSION): Defined.
20781 (riscv_subset_t): Declare.
20782 (riscv_subset_t::riscv_subset_t): New.
20783 (riscv_subset_list): Declare.
20784 (riscv_subset_list::riscv_subset_list): New.
20785 (riscv_subset_list::~riscv_subset_list): Likewise.
20786 (riscv_subset_list::parsing_subset_version): Likewise.
20787 (riscv_subset_list::parse_std_ext): Likewise.
20788 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20789 (riscv_subset_list::add): Likewise.
20790 (riscv_subset_list::lookup): Likewise.
20791 (riscv_subset_list::xlen): Likewise.
20792 (riscv_subset_list::parse): Likewise.
20793 (riscv_supported_std_ext): Likewise.
20794 (current_subset_list): Likewise.
20795 (riscv_parse_arch_string): Using riscv_subset_list::parse to
20796 parse.
20797
20798 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
20799
20800 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20801 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
20802 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
20803
20804 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
20805
20806 PR rtl-optimization/85899
20807 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
20808 fallthru edges leading to the exit block.
20809
20810 2019-03-01 Tamar Christina <tamar.christina@arm.com>
20811
20812 PR target/89517
20813 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
20814 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
20815
20816 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
20817
20818 PR tree-optimization/89535
20819 * tree-vect-stmts.c (vectorizable_call): Record the vector types
20820 for each operand. Calculate the fallback choice for mask operands
20821 and pass it to vect_get_vec_def_for_operand.
20822
20823 2019-03-01 Richard Biener <rguenther@suse.de>
20824
20825 PR middle-end/89541
20826 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
20827 get virtual operands.
20828 (get_expr_operands): Handle CONST_DECL like other decls.
20829
20830 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20831
20832 PR middle-end/89503
20833 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
20834 on DECL_P and EXPR_P.
20835
20836 2019-03-01 Richard Biener <rguenther@suse.de>
20837
20838 PR middle-end/89497
20839 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
20840 argument, defaulted to zero.
20841 * passes.c (execute_function_todo): Pass down SSA update flags
20842 to cleanup_tree_cfg.
20843 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
20844 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
20845 form if requested.
20846 (cleanup_tree_cfg): Get and pass down SSA update flags.
20847
20848 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20849
20850 PR bootstrap/89539
20851 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
20852 early_lto_debug argument.
20853
20854 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
20855
20856 PR tree-optimization/89536
20857 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
20858 only whether bit #0 of the value is 0 instead of the entire value.
20859
20860 2019-02-28 Marek Polacek <polacek@redhat.com>
20861
20862 PR c++/87068 - missing diagnostic with fallthrough statement.
20863 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
20864 at the end of a seq, save its location to walk_stmt_info.
20865 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
20866 a switch.
20867
20868 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
20869
20870 PR lto/88585
20871 * tree.c (find_atomic_core_type): Move ahead in file.
20872 (check_base_type): Correctly compare alignments of atomic types.
20873
20874 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
20875
20876 PR target/89455
20877 * config/i386/i386.c (get_builtin_code_for_version): Identify
20878 Westmere from PCLMUL, instead of AES.
20879
20880 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20881
20882 PR target/89434
20883 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
20884 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
20885 -UINTVAL (...).
20886
20887 2019-02-28 Tamar Christina <tamar.christina@arm.com>
20888
20889 PR target/88530
20890 * config/aarch64/aarch64-option-extensions.def: Document it.
20891 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
20892 if empty hwcaps.
20893
20894 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20895
20896 PR c/89520
20897 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
20898 builtins if they don't have a single scalar floating point argument.
20899 Formatting fixes.
20900
20901 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
20902
20903 PR rtl-optimization/89490
20904 * varasm.c (get_block_for_section): Bail out for mergeable sections.
20905 (default_use_anchors_for_symbol_p, output_object_block): Assert the
20906 block section is not mergeable.
20907
20908 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20909
20910 PR target/70341
20911 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
20912 old define_insn to ...
20913 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
20914 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
20915 Rename old define_insn to ...
20916 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
20917 (thumb2_casesi_internal_pic): New define_expand. Rename old
20918 define_insn to ...
20919 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
20920 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
20921 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
20922
20923 2019-02-27 Richard Biener <rguenther@suse.de>
20924
20925 PR debug/88878
20926 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
20927
20928 2019-02-27 Richard Biener <rguenther@suse.de>
20929
20930 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
20931 building.
20932
20933 2019-02-27 Richard Biener <rguenther@suse.de>
20934
20935 PR debug/88878
20936 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
20937 parameter, prefix section name with .gnu.debuglto_ if true.
20938 (dwarf2out_finish): Pass false to output_comdat_type_unit.
20939 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
20940
20941 2019-02-27 Richard Biener <rguenther@suse.de>
20942
20943 PR debug/89514
20944 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
20945 rather than on use_debug_types, doing what output_die does.
20946 (value_format): Likewise.
20947
20948 2019-02-27 Martin Jambor <mjambor@suse.cz>
20949 Martin Sebor <msebor@redhat.com>
20950
20951 * doc/invoke.texi (Warning Options): Reword description of
20952 -Wno-absolute-value.
20953
20954 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20955
20956 PR tree-optimization/89280
20957 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
20958 builtin_setjmp_setup_bb): New functions.
20959 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
20960 When visiting __builtin_setjmp_setup block, queue in special
20961 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
20962 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
20963 from visited after the loop if they don't have any visited successor
20964 blocks.
20965
20966 2018-02-26 Steve Ellcey <sellcey@marvell.com>
20967
20968 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
20969 New function.
20970 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
20971
20972 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20973
20974 PR c++/89507
20975 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
20976 with types other than sizetype/ssizetype.
20977
20978 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
20979
20980 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
20981 (enum sparc_processor_type): ...this.
20982 (enum sparc_code_model_type): New enumeration type.
20983 (enum sparc_memory_model_type): Tweak comments.
20984 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
20985 (mtune): Likewise.
20986 (mcmodel): Use sparc_code_model enumeration and variable.
20987 (sparc_code_model): New enumeration.
20988 (mdebug): Add Undocumented marker.
20989 * config/sparc/sparc.h (enum cmodel): Delete.
20990 (sparc_cmodel): Likewise.
20991 (TARGET_CM_MEDLOW): Adjust to above renaming.
20992 (TARGET_CM_MEDMID): Likewise.
20993 (TARGET_CM_MEDANY): Likewise.
20994 (TARGET_CM_EMBMEDANY): Likewise.
20995 * config/sparc/sparc.c (sparc_cmodel): Delete.
20996 (sparc_option_override): Remove string/value mapping support for the
20997 code model. Move code and memory model support to after the handling
20998 of target flags. Do private machine setup last.
20999 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
21000 (sparc_legitimize_reload_address): Likewise.
21001 (sparc_output_mi_thunk): Likewise.
21002 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
21003
21004 2019-02-26 Jakub Jelinek <jakub@redhat.com>
21005
21006 PR tree-optimization/89500
21007 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
21008 (handle_builtin_strlen): Remove noncst_bound variable. Always
21009 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
21010 cst if the first cst bytes starting at x are known to be non-zero,
21011 even if the string is not zero terminated. Don't try to modify
21012 *si for strnlen. Update strlen_to_stridx only for strlen or if
21013 we can prove strnlen returns the same value as strlen would.
21014
21015 2019-02-26 Martin Liska <mliska@suse.cz>
21016
21017 * alloc-pool.h (struct pool_usage): Remove extra
21018 print_dash_line.
21019 * bitmap.h (struct bitmap_usage): Likewise.
21020 * ggc-common.c (struct ggc_usage): Likewise.
21021 * mem-stats.h (struct mem_usage): Likewise.
21022 (mem_alloc_description::dump): Print dash lines
21023 here and repeat header at the end of a table report.
21024 It's then more readable.
21025 * tree-phinodes.c (phinodes_print_statistics): Make
21026 horizontal alignment.
21027 * tree-ssanames.c (ssanames_print_statistics): Likewise.
21028 * vec.c (struct vec_usage): Remove extra print_dash_line.
21029 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
21030
21031 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
21032
21033 * doc/extend.texi (__builtin_object_size):
21034 Use @pxref instead of @xref inside parenthesis.
21035 (__builtin_has_attribute): Add missing comma after @xref.
21036 (__builtin_object_size): Ditto.
21037 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
21038
21039 2019-02-26 Jeff Law <law@redhat.com>
21040
21041 PR rtl-optimization/87761
21042 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
21043 detect obviously dead insns and delete them.
21044
21045 2019-02-26 Richard Biener <rguenther@suse.de>
21046
21047 PR tree-optimization/89505
21048 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
21049 to handle restrict pointed-to vars with multiple subvars
21050 correctly.
21051
21052 2019-02-26 Richard Biener <rguenther@suse.de>
21053
21054 PR tree-optimization/89489
21055 * tree-parloops.c (create_loop_fn): Copy over last_clique.
21056
21057 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
21058
21059 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
21060 and move around comment.
21061 <BIT_AND_EXPR>: Likewise.
21062 <BIT_NOT_EXPR>: Add specific handling for boolean types.
21063
21064 2019-02-26 Jakub Jelinek <jakub@redhat.com>
21065
21066 PR target/89474
21067 * config/i386/i386.c (remove_partial_avx_dependency): Call
21068 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
21069 after changing possibly many instructions to use that pseudo. Fix up
21070 insertion of v4sf_const0 setter at the start of bb.
21071
21072 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
21073
21074 PR c/80409
21075 * doc/extend.texi (Variadic Pointer Args): New section.
21076
21077 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
21078 Martin Sebor <msebor@gmail.com>
21079
21080 * common.opt (Wattribute-alias): Likewise.
21081 * doc/invoke.texi (Option Summary): List general form of
21082 -Wattribute-alias=. List positive form of -Wmissing-attributes.
21083 (-Wmissing-attributes): Invert entry, rewrite and correct default.
21084 Add cross-references.
21085 (-Wattribute-alias): Rewrite and correct default. Mention
21086 considered attributes (same as for -Wmissing-attributes).
21087
21088 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
21089
21090 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
21091 (_mm_cvtpd_ps): Likewise.
21092 (_mm_cvttpd_epi32): Likewise.
21093
21094 PR target/89338
21095 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
21096 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
21097
21098 PR target/89339
21099 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
21100
21101 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21102
21103 PR target/88530
21104 * common/config/aarch64/aarch64-common.c
21105 (struct aarch64_option_extension): Add is_synthetic.
21106 (all_extensions): Use it.
21107 (TARGET_OPTION_INIT_STRUCT): Define hook.
21108 (struct gcc_targetm_common): Moved to end.
21109 (all_extensions_by_on): New.
21110 (opt_ext_cmp, typedef opt_ext): New.
21111 (aarch64_option_init_struct): New.
21112 (aarch64_contains_opt): New.
21113 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
21114 * config/aarch64/aarch64-option-extensions.def
21115 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
21116 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
21117 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
21118 Set is_synthetic to false.
21119 (crypto): Set is_synthetic to true.
21120 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
21121 SYNTHETIC.
21122
21123 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21124
21125 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21126 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
21127 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21128 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
21129 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
21130 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
21131 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
21132 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
21133 Rename ...
21134 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
21135 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21136 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
21137 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
21138 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
21139 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
21140 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
21141 vfmlsl_laneq_high_f16): ... To this.
21142 * config/arm/neon.md: Update comments.
21143
21144 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21145
21146 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21147 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
21148 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21149 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
21150 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
21151 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
21152 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
21153 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
21154 Rename ...
21155 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
21156 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21157 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
21158 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
21159 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
21160 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
21161 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
21162 vfmlslq_laneq_high_f16): ... To this.
21163
21164 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
21165
21166 PR rtl-optimization/86096
21167 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
21168 comparing mw_order values.
21169
21170 2019-02-25 Jakub Jelinek <jakub@redhat.com>
21171
21172 PR target/89434
21173 * config/arm/arm.md (*subsi3_carryin_const): Use
21174 arm_neg_immediate_operand predicate instead of
21175 arm_not_immediate_operand, "L" constraint instead of "K" and
21176 print it using %n2 instead of %B2.
21177 (*subsi3_carryin_const0): New define_insn.
21178 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
21179 instead of arm_not_operand and "I" constraint instead of "K" and
21180 print it using %n3 instead of %B2. Instead of using match_dup 2 add
21181 another match_operand and in the condition check that it is negation
21182 of operands[2].
21183 (*subsi3_carryin_compare_const0): New define_ins.
21184 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
21185 *subsi3_carryin_const.
21186 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
21187 split into *subsi3_carryin_compare_const0 if the highpart is zero.
21188
21189 PR target/89438
21190 * config/arm.vfp.md (*negdf2_vfp): Use
21191 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
21192 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
21193
21194 2019-02-24 Jakub Jelinek <jakub@redhat.com>
21195
21196 PR rtl-optimization/89445
21197 * simplify-rtx.c (simplify_ternary_operation): Don't use
21198 simplify_merge_mask on operands that may trap.
21199 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
21200 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
21201 second operand is CONST_VECTOR, check if any element could be zero.
21202 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
21203 their operands can trap.
21204
21205 2019-02-23 Martin Sebor <msebor@redhat.com>
21206
21207 * gimple-ssa-sprintf.c (target_strtol): Rename...
21208 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
21209 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
21210 check for range error.
21211
21212 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
21213
21214 PR driver/69471
21215 * opts-common.c (prune_options): Also prune joined switches
21216 with Negative and RejectNegative.
21217 * config/i386/i386.opt (march=): Add Negative(march=).
21218 (mtune=): Add Negative(mtune=).
21219 * doc/options.texi: Document Negative used together with Joined
21220 and RejectNegative.
21221
21222 2019-02-22 Martin Sebor <msebor@redhat.com>
21223
21224 * doc/extend.texi (Other Builtins): Add
21225 __builtin_is_constant_evaluated.
21226
21227 2019-02-22 Richard Biener <rguenther@suse.de>
21228
21229 PR tree-optimization/87609
21230 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
21231
21232 2019-02-22 Jeff Law <law@redhat.com>
21233
21234 PR rtl-optimization/87761
21235 * config/mips/mips.md: Add new combiner pattern to recognize
21236 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
21237
21238 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
21239
21240 PR target/89324
21241 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
21242 destination register in peepholes generating patterns for ADDS/SUBS.
21243 (add<mode>3_compare0,
21244 *addsi3_compare0_uxtw, add<mode>3_compareC,
21245 add<mode>3_compareV_imm, add<mode>3_compareV,
21246 *adds_<optab><ALLX:mode>_<GPI:mode>,
21247 *subs_<optab><ALLX:mode>_<GPI:mode>,
21248 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
21249 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
21250 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
21251 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
21252 sub<mode>3_compare1): Allow stack pointer for source register.
21253 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
21254
21255 2019-02-22 Martin Sebor <msebor@redhat.com>
21256
21257 PR tree-optimization/88993
21258 PR tree-optimization/88853
21259 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
21260 New helper.
21261 (sprintf_dom_walker::call_info::is_string_func): New helper.
21262 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
21263 for formatted string functions.
21264 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
21265
21266 2019-02-22 Martin Sebor <msebor@redhat.com>
21267
21268 PR c/89425
21269 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
21270 unreachable subexpressions.
21271
21272 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
21273 Hongtao Liu <hongtao.liu@intel.com>
21274 Sunil K Pandey <sunil.k.pandey@intel.com>
21275
21276 PR target/87007
21277 * config/i386/i386-passes.def: Add
21278 pass_remove_partial_avx_dependency.
21279 * config/i386/i386-protos.h
21280 (make_pass_remove_partial_avx_dependency): New.
21281 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
21282 New function.
21283 (pass_data_remove_partial_avx_dependency): New.
21284 (pass_remove_partial_avx_dependency): Likewise.
21285 (make_pass_remove_partial_avx_dependency): Likewise.
21286 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
21287 (*extendsfdf2): Add avx_partial_xmm_update.
21288 (truncdfsf2): Likewise.
21289 (*float<SWI48:mode><MODEF:mode>2): Likewise.
21290 (SF/DF conversion splitters): Disabled for TARGET_AVX.
21291
21292 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
21293
21294 PR middle-end/85598
21295 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
21296 analysis for pass.
21297
21298 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
21299
21300 PR target/89444
21301 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
21302 (PTA_SKYLAKE): Add PTA_AES.
21303 (PTA_GOLDMONT): Likewise.
21304
21305 2019-02-22 Sudakshina Das <sudi.das@arm.com>
21306
21307 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
21308 instruction if enabled.
21309 (aarch64_override_options): Remove reference to return address key.
21310
21311 2019-02-22 Richard Biener <rguenther@suse.de>
21312
21313 PR tree-optimization/89440
21314 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21315 not necessary assert.
21316
21317 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
21318
21319 PR fortran/72741
21320 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
21321 (oacc_replace_fn_attrib_attr): ... this new function.
21322 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
21323 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
21324
21325 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21326
21327 * config/arm/arm-cpus.in (ares): Rename to...
21328 (neoverse-n1): ... This. Add ares as alias.
21329 * config/arm/arm-tables.opt: Regenerate.
21330 * config/arm/arm-tune.md: Likewise.
21331 * doc/invoke.txt (ARM Options): Document neoverse-n1.
21332
21333 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21334
21335 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
21336 * config/aarch64/aarch64-tune.md: Regenerate.
21337 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
21338
21339 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21340
21341 * config/aarch64/aarch64.c (ares_tunings): Rename to...
21342 (neoversen1_tunings): ... This.
21343 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
21344 (neoverse-n1): New CPU.
21345 * config/aarch64/aarch64-tune.md: Regenerate.
21346 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
21347
21348 2019-02-22 Richard Biener <rguenther@suse.de>
21349
21350 PR middle-end/87609
21351 * cfghooks.h (dependence_hash): New typedef.
21352 (struct copy_bb_data): New type.
21353 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
21354 (duplicate_block): Likewise.
21355 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
21356 (copy_bbs): Create and pass down copy_bb_data.
21357 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
21358 (rtl_duplicate_bb): Likewise.
21359 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
21360 remap dependence info.
21361
21362 2019-02-22 Richard Biener <rguenther@suse.de>
21363
21364 PR tree-optimization/87609
21365 * tree-core.h (tree_base): Document special clique values.
21366 * tree-inline.c (remap_dependence_clique): Do not use the
21367 special clique value of one.
21368 (maybe_set_dependence_info): Use clique one.
21369 (clear_dependence_clique): New callback.
21370 (compute_dependence_clique): Clear clique one from all refs
21371 before assigning it (again).
21372
21373 2019-02-21 Martin Sebor <msebor@redhat.com>
21374
21375 * doc/extend.texi (__clear_cache): Correct signature.
21376
21377 2019-02-21 Ian Lance Taylor <iant@golang.org>
21378
21379 PR go/89170
21380 * varasm.c (decode_addr_const): Call lookup_constant_def rather
21381 than output_constant_def.
21382 (add_constant_to_table): New static function.
21383 (output_constant_def): Call add_constant_to_table.
21384 (tree_output_constant_def): Likewise.
21385
21386 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21387
21388 PR c++/89285
21389 * builtins.c (fold_builtin_arith_overflow): If first two args are
21390 INTEGER_CSTs, set intres and ovfres to constants rather than calls
21391 to ifn.
21392
21393 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
21394
21395 PR target/87412
21396 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21397 error for -mindirect-branch/-mfunction-return with incompatible
21398 -fcf-protection.
21399
21400 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21401
21402 PR bootstrap/88714
21403 * constraints.md (q): Remove.
21404 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21405 instead of q.
21406
21407 2019-02-21 Martin Jambor <mjambor@suse.cz>
21408
21409 PR hsa/89302
21410 * omp-general.c (omp_extract_for_data): Removed a duplicate call
21411 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21412 (omp_adjust_for_condition): ...here. Added necessary parameters.
21413 * omp-general.h (omp_adjust_for_condition): Updated declaration.
21414 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21415 proper values to new parameters of omp_adjust_for_condition.
21416
21417 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21418
21419 PR middle-end/89412
21420 * expr.c (expand_assignment): If result is a MEM, use change_address
21421 instead of simplify_gen_subreg.
21422
21423 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21424 David Malcolm <dmalcolm@redhat.com>
21425
21426 PR middle-end/89091
21427 * fold-const.c (decode_field_reference): Return NULL_TREE if
21428 lang_hooks.types.type_for_size returns NULL. Check it before
21429 overwriting *exp_. Use return NULL_TREE instead of return 0.
21430
21431 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21432
21433 PR middle-end/88074
21434 PR middle-end/89415
21435 * toplev.c (do_compile): Double the emin/emax exponents to workaround
21436 buggy mpc_norm.
21437
21438 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
21439
21440 PR target/89397
21441 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21442 TARGET_SSE in addition to TARGET_SSE_MATH.
21443
21444 (ix86_excess_precision): Ditto.
21445 (ix86_float_exceptions_rounding_supported_p): Ditto.
21446 (use_rsqrt_p): Ditto.
21447 * config/i386/sse.md (rsqrt<mode>2): Ditto.
21448
21449 2019-02-20 David Malcolm <dmalcolm@redhat.com>
21450
21451 PR c/89410
21452 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21453 linenum_arith_t when determining if two adjacent line spans are
21454 close enough to merge.
21455 (diagnostic_show_locus): Use linenum_arith_t when iterating over
21456 lines within each line_span.
21457
21458 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
21459
21460 PR target/86487
21461 * lra-constraints.c(uses_hard_regs_p): Fix handling of
21462 paradoxical SUBREGS.
21463
21464 2019-02-20 Li Jia He <helijia@linux.ibm.com>
21465
21466 PR target/88100
21467 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21468 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21469 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21470 range checking it.
21471
21472 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
21473
21474 * config/gcn/gcn.c (print_operand): Fix typo.
21475
21476 2019-02-19 Richard Biener <rguenther@suse.de>
21477
21478 PR middle-end/88074
21479 * toplev.c (do_compile): Initialize mpfr's exponent range
21480 based on available float modes.
21481
21482 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
21483
21484 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21485 as long as the epilogue isn't completed.
21486
21487 2019-02-18 Martin Sebor <msebor@redhat.com>
21488
21489 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21490 __has_cpp_attribute, and __has_include.
21491
21492 2019-02-18 Martin Sebor <msebor@redhat.com>
21493
21494 * doc/invoke.texi (-Wreturn-type): Correct and expand.
21495
21496 2019-02-18 Martin Sebor <msebor@redhat.com>
21497
21498 PR middle-end/89294
21499 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21500 expression.
21501 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21502
21503 2019-02-18 Richard Biener <rguenther@suse.de>
21504
21505 PR tree-optimization/89296
21506 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21507 of no-warning flag to cases that might emit the bogus warning.
21508
21509 2019-02-18 Jakub Jelinek <jakub@redhat.com>
21510
21511 PR bootstrap/88714
21512 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21513 "q" constraint.
21514 * config/arm/vfp.md (*movdi_vfp): Likewise.
21515 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21516 "q" constraint for operands[0].
21517
21518 PR target/89369
21519 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21520 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21521 pattern in a temporary buffer.
21522 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
21523 than 64-operands[2].
21524
21525 PR target/89361
21526 * config/s390/s390.c (s390_indirect_branch_attrvalue,
21527 s390_indirect_branch_settings): Define unconditionally.
21528 (s390_set_current_function): Likewise, but guard the whole body except
21529 the s390_indirect_branch_settings call with
21530 #if S390_USE_TARGET_ATTRIBUTE.
21531 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21532
21533 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21534 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21535 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21536 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21537 HOST_WIDE_INT_1U instead of 1ULL.
21538 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21539 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21540 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21541 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21542 instead of 1UL.
21543 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21544 instead of 1ul.
21545
21546 2019-02-18 Martin Jambor <mjambor@suse.cz>
21547
21548 PR tree-optimization/89209
21549 * tree-sra.c (create_access_replacement): New optional parameter
21550 reg_tree. Use it as a type if non-NULL and access type is not of
21551 a register type.
21552 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21553 to create_access_replacement.
21554 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21555 Check lacc is non-NULL before attempting to re-create it on the RHS.
21556
21557 2019-02-18 Martin Liska <mliska@suse.cz>
21558
21559 PR ipa/89306
21560 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21561 by default.
21562 (symbol_table::free_edge): Recycle m_summary_id.
21563 * cgraph.h (get_summary_id): New.
21564 (symbol_table::release_symbol): Set m_summary_id to -1
21565 by default.
21566 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21567 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21568 function_summary to fast_function_summary.
21569 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21570 * ipa-pure-const.c (class funct_state_summary_t):
21571 Switch from function_summary to fast_function_summary.
21572 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21573 (class ipa_ref_opt_summary_t): Switch from function_summary
21574 to fast_function_summary.
21575 * symbol-summary.h (class function_summary_base): New class
21576 that is created from base of former function_summary.
21577 (function_summary_base::unregister_hooks): New.
21578 (class function_summary): Inherit from function_summary_base.
21579 (class call_summary_base): New class
21580 that is created from base of former call_summary.
21581 (class call_summary): Inherit from call_summary_base.
21582 (struct is_same): New.
21583 (class fast_function_summary): New summary class.
21584 (class fast_call_summary): New summary class.
21585 * vec.h (vec_safe_grow_cleared): New function.
21586
21587 2019-02-18 Martin Liska <mliska@suse.cz>
21588
21589 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
21590 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
21591 * doc/tm.texi: Document new target hook.
21592 * doc/tm.texi.in: Likewise.
21593 * target.def: Add new target macro.
21594 * gcc.c (find_fortran_preinclude_file): Do not search multilib
21595 suffixes.
21596
21597 2019-02-17 Alan Modra <amodra@gmail.com>
21598
21599 PR target/89271
21600 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
21601 output reg on add insn.
21602 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
21603
21604 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21605
21606 PR target/89372
21607 * config/i386/sse.md (ssedoublemode): Remove V4HI.
21608 (PMULHRSW): Likewise.
21609 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
21610 TARGET_AVX2.
21611 (ssse3_pmulhrswv4hi3): New expander.
21612
21613 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21614
21615 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
21616 MMX. Add isa attribute.
21617
21618 2019-02-16 Jakub Jelinek <jakub@redhat.com>
21619
21620 PR rtl-optimization/66152
21621 * builtins.h (c_readstr): Declare.
21622 * builtins.c (c_readstr): Remove forward declaration. Add
21623 null_terminated_p argument, if false, read all bytes from the
21624 string instead of stopping after '\0'.
21625 * expr.c (string_cst_read_str): New function.
21626 (store_expr): Use string_cst_read_str instead of
21627 builtin_strncpy_read_str. Try to store by pieces the whole
21628 exp_len first, and only if that fails, split it up into
21629 store by pieces followed by clear_storage. Formatting fix.
21630
21631 * config/i386/i386.md (*movqi_internal): Remove static from
21632 buf variable. Use output_asm_insn (buf, operands); return "";
21633 instead of return buf;.
21634 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
21635 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
21636 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
21637
21638 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21639
21640 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
21641 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
21642 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
21643 (CC1_SPEC): Likewise.
21644 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
21645
21646 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21647
21648 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
21649 the base address on 64-bit strict-alignment platforms.
21650
21651 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
21652
21653 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
21654
21655 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21656
21657 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
21658
21659 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
21660
21661 PR rtl-optimization/88308
21662 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
21663 on copied instruction.
21664
21665 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21666
21667 * final.c (insn_current_reference_address): Replace test on JUMP_P
21668 with test on jump_to_label_p.
21669 * config/visium/visium-passes.def: New file.
21670 * config/visium/t-visium (PASSES_EXTRA): Define.
21671 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
21672 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
21673 (TRAMPOLINE_ALIGNMENT): Define.
21674 * config/visium/visium.c (visium_option_override): Do not register
21675 the machine-specific reorg pass here.
21676 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
21677 for the GR6.
21678 (output_branch): Adjust threshold for long branch instruction.
21679 * config/visium/visium.md (cpu): Move around.
21680 (length): Adjust for the GR6.
21681
21682 2019-02-15 Richard Biener <rguenther@suse.de>
21683 Jakub Jelinek <jakub@redhat.com>
21684
21685 PR tree-optimization/89278
21686 * tree-loop-distribution.c: Include tree-eh.h.
21687 (generate_memset_builtin, generate_memcpy_builtin): Call
21688 rewrite_to_non_trapping_overflow on builtin->size before passing it
21689 to force_gimple_operand_gsi.
21690
21691 2019-02-15 Jakub Jelinek <jakub@redhat.com>
21692
21693 PR other/89342
21694 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
21695 optimize_debug.
21696 * opth-gen.awk: Likewise.
21697
21698 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21699
21700 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
21701 Enable MMX, SSE and SSE2 by default.
21702 * config/i386/i386.c (ix86_option_override_internal): Do not
21703 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
21704
21705 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21706
21707 PR rtl-optimization/89354
21708 * combine.c (make_extraction): Punt if extraction_mode is narrower
21709 than len bits.
21710
21711 2019-02-14 Maya Rashish <coypu@sdf.org>
21712
21713 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
21714 * config/netbsd-d.c: New file.
21715 * config/t-netbsd: Add netbsd-d.o
21716
21717 2018-02-14 Steve Ellcey <sellcey@marvell.com>
21718
21719 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
21720 affects_type_identity to true for aarch64_vector_pcs.
21721 (aarch64_comp_type_attributes): New function.
21722 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
21723
21724 2019-02-14 Tamar Christina <tamar.christina@arm.com>
21725
21726 PR target/88850
21727 * config/arm/iterators.md (ANY64): Add V4HF.
21728
21729 2019-02-14 Martin Liska <mliska@suse.cz>
21730
21731 PR rtl-optimization/89242
21732 * dce.c (delete_unmarked_insns): Call free_dominance_info we
21733 process a transformation.
21734
21735 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21736
21737 PR tree-optimization/89314
21738 * fold-const.c (fold_binary_loc): Cast strlen argument to
21739 const char * before dereferencing it. Formatting fixes.
21740
21741 PR middle-end/89284
21742 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
21743
21744 2019-02-13 Ian Lance Taylor <iant@golang.org>
21745
21746 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
21747 and set current index for other optimizations.
21748
21749 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
21750
21751 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
21752 nonimmediate_operand as operand 2 predicate.
21753 (vec_set<VF2_512_256:mode>_0): Ditto.
21754 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
21755 (*vec_concatv2si): Remove alternative 2.
21756 (*vec_concatv4si_0): Use vm constraint for alternative 0.
21757 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
21758 (vec_concatv2di): Split alternatives 4,5,6 to ...
21759 (*vec_concatv2di_0) ... new pattern.
21760
21761 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
21762
21763 PR target/89190
21764 * config/arm/arm.c (ldm_stm_operation_p) Set
21765 addr_reg_in_reglist correctly for first register.
21766 (load_multiple_sequence): Remove dead base check.
21767 (gen_ldm_seq): Correctly set write_back for Thumb-1.
21768
21769 2019-02-13 Tamar Christina <tamar.christina@arm.com>
21770
21771 PR target/88847
21772 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
21773 Expose as @aarch64_pred_mov.
21774 * config/aarch64/aarch64.c (aarch64_classify_address):
21775 Use expand_insn which legitimizes operands.
21776
21777 2019-02-13 Martin Liska <mliska@suse.cz>
21778
21779 * builtins.h (expand_builtin_with_bounds): Remove declaration.
21780 * calls.c (struct arg_data): Remove special_slot, pointer_arg
21781 and pointer_offset fields.
21782 (initialize_argument_information): Remove usage of dead
21783 fields.
21784 * cgraph.h (struct cgraph_thunk_info): Remove
21785 add_pointer_bounds_args.
21786 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
21787 fields.
21788 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
21789 fields.
21790 * config/i386/i386.c (ix86_function_arg_advance): Remove
21791 unrelated comment.
21792 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
21793 (def_builtin): Remove usage of dead fields.
21794 (ix86_add_new_builtins): Likewise.
21795 * ipa-fnsummary.c (compute_fn_summary): Likewise.
21796 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21797 (sem_function::init): Likewise.
21798 (sem_variable::merge): Likewise.
21799 * ipa-visibility.c (function_and_variable_visibility): Likewise.
21800 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
21801 * lto-cgraph.c (lto_output_node): Likewise.
21802 (lto_output_varpool_node): Likewise.
21803 (input_node): Likewise.
21804 (input_varpool_node): Likewise.
21805 * lto-streamer-out.c (lto_output): Likewise.
21806 * tree-inline.c (expand_call_inline): Remove usage of
21807 assign_stmts.
21808 * tree-inline.h (struct copy_body_data): Likewise.
21809 * varpool.c (varpool_node::dump): Likewise.
21810
21811 2019-02-13 Jakub Jelinek <jakub@redhat.com>
21812
21813 PR middle-end/89303
21814 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
21815 into pt->vars_contains_escaped_heap instead of setting
21816 pt->vars_contains_escaped_heap to it.
21817
21818 PR middle-end/89281
21819 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
21820 INTVAL (size), compare it to GET_MODE_MASK instead of
21821 1 << GET_MODE_BITSIZE.
21822
21823 PR target/89290
21824 * config/i386/predicates.md (x86_64_immediate_operand): Allow
21825 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
21826 -mcmodel=large.
21827
21828 2019-02-13 Martin Liska <mliska@suse.cz>
21829
21830 PR lto/88858
21831 * cfgrtl.c (remove_barriers_from_footer): New function.
21832 (try_redirect_by_replacing_jump): Use it.
21833 (cfg_layout_redirect_edge_and_branch): Likewise.
21834
21835 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
21836
21837 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
21838 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
21839 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
21840 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
21841 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
21842 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
21843 New BU_CRYPTO_2.
21844 * config/rs6000/rs6000.c (builtin_function_type)
21845 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
21846 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
21847 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
21848 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
21849 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
21850
21851 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
21852
21853 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
21854 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
21855
21856 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
21857
21858 PR target/89229
21859 * config/i386/i386.md (*movoi_internal_avx): Revert revision
21860 268678 and revision 268657.
21861 (*movti_internal): Likewise.
21862
21863 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
21864
21865 PR target/89233
21866 * config/s390/s390.c (s390_decompose_address): Update comment.
21867 (s390_check_qrst_address): Reject invalid address forms after
21868 LRA.
21869
21870 2019-02-12 Martin Liska <mliska@suse.cz>
21871
21872 PR lto/88876
21873 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
21874 we need default values of funct_state for a function that
21875 is not optimized.
21876
21877 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
21878
21879 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
21880 the object to pick the size of stores on strict-alignment platforms.
21881
21882 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
21883 (*movdi_insn_sp32): Likewise.
21884 (*movdi_insn_sp64): Likewise.
21885
21886 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
21887
21888 PR lto/88677
21889 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
21890 types that needs constructiong.
21891 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
21892
21893 2019-02-12 Richard Biener <rguenther@suse.de>
21894
21895 PR tree-optimization/89253
21896 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
21897 duplicate the loop.
21898
21899 2019-02-11 David Malcolm <dmalcolm@redhat.com>
21900
21901 PR lto/88147
21902 * input.c (selftest::test_line_offset_overflow): New selftest.
21903 (selftest::input_c_tests): Call it.
21904
21905 2019-02-11 Martin Sebor <msebor@redhat.com>
21906
21907 PR tree-optimization/88771
21908 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
21909 when -Wstringop-overflow is set.
21910 (builtin_memref::builtin_memref): Adjust excessive upper bound
21911 only when lower bound is not excessive.
21912 (maybe_diag_overlap): Detect and diagnose excessive bounds via
21913 -Wstringop-ovefflow.
21914 (maybe_diag_offset_bounds): Rename...
21915 (maybe_diag_access_bounds): ...to this.
21916 (check_bounds_or_overlap): Adjust for name change above.
21917
21918 2019-02-11 Martin Sebor <msebor@redhat.com>
21919
21920 PR c++/87996
21921 * builtins.c (max_object_size): Move from here...
21922 * builtins.h (max_object_size): ...and here...
21923 * tree.c (max_object_size): ...to here...
21924 * tree.h (max_object_size): ...and here.
21925
21926 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
21927
21928 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
21929 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
21930 for correct semantics.
21931
21932 2019-02-11 Alan Modra <amodra@gmail.com>
21933
21934 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
21935 -mlongcall and -mpltseq.
21936 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
21937 (RS/6000 and PowerPC Options <-mpltseq>): Document.
21938 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
21939 * config/rs6000/sysv4.opt (mpltseq): New option.
21940 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
21941 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
21942 support is lacking. Don't allow -mpltseq with -mbss-plt.
21943 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
21944 -mpltseq given for ELFv1.
21945 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
21946 Only use UNSPEC_PLTSEQ for inline PLT calls.
21947 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
21948 use UNSPEC_PLTSEQ for inline PLT calls.
21949 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
21950 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
21951 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
21952 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
21953 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
21954 (pltseq_mtctr_<mode>): Likewise.
21955
21956 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21957
21958 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
21959 Solaris ld.
21960 * configure: Regenerate.
21961
21962 2019-02-11 Jakub Jelinek <jakub@redhat.com>
21963
21964 PR bootstrap/88714
21965 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
21966 instead of r.
21967
21968 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21969
21970 * function.c (assign_parm_setup_block): Use the stored
21971 size, not the passed size, when allocating stack-space,
21972 also for a parameter with alignment larger than
21973 MAX_SUPPORTED_STACK_ALIGNMENT.
21974
21975 2019-02-11 Martin Liska <mliska@suse.cz>
21976
21977 PR ipa/89009
21978 * ipa-cp.c (build_toporder_info): Remove usage of a param.
21979 * ipa-inline.c (inline_small_functions): Likewise.
21980 * ipa-pure-const.c (propagate_pure_const): Likewise.
21981 (propagate_nothrow): Likewise.
21982 * ipa-reference.c (propagate): Likewise.
21983 * ipa-utils.c (struct searchc_env): Remove unused field.
21984 (searchc): Always search across AVAIL_INTERPOSABLE.
21985 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
21986 the only called IPA pure const can properly not propagate
21987 across interposable boundary.
21988 * ipa-utils.h (ipa_reduced_postorder): Remove param.
21989
21990 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
21991
21992 * config/nds32/nds32.md (call_internal, call_value_internal,
21993 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
21994
21995 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21996
21997 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
21998 typo.
21999
22000 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
22001
22002 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
22003 in comments
22004
22005 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
22006
22007 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
22008
22009 2019-02-10 Jakub Jelinek <jakub@redhat.com>
22010
22011 PR tree-optimization/89268
22012 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
22013 if preds is non-NULL.
22014
22015 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22016
22017 PR lto/89272
22018 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
22019 polymorphic types.
22020
22021 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
22022
22023 * config/nds32/nds32.md (trap): New pattern.
22024
22025 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
22026
22027 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
22028 dwarf span.
22029
22030 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
22031
22032 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
22033 to split POST_INC.
22034
22035 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22036
22037 * ipa-visibility.c (localize_node): Also do not localize
22038 LDPR_PREVAILING_DEF_IRONLY_EXP.
22039
22040 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22041
22042 PR lto/87957
22043 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
22044 instead of type_with_linkage.
22045
22046 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22047
22048 PR ipa/88755
22049 * params.def (uninlined-function-insns, uninlined-function-time,
22050 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
22051 bound so we don't get overflows.
22052
22053 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22054
22055 * config/rs6000/rs6000-string.c (expand_compare_loop,
22056 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
22057 memcmp/strncmp.
22058
22059 2019-02-09 Jakub Jelinek <jakub@redhat.com>
22060
22061 PR middle-end/89246
22062 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22063 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
22064 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
22065
22066 2019-02-09 Alan Modra <amodra@gmail.com>
22067
22068 PR target/88343
22069 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
22070 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
22071 setup.
22072
22073 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
22074
22075 PR middle-end/88560
22076 * lra-constraints.c (process_alt_operands): Don't increase reject
22077 for memory when offset memory is required.
22078
22079 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
22080
22081 * config/s390/vector.md: Implement vector copysign.
22082
22083 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
22084
22085 * expr.c (expand_constructor): Correct indentations.
22086
22087 2019-02-08 Richard Biener <rguenther@suse.de>
22088
22089 PR tree-optimization/89247
22090 * tree-if-conv.c: Include tree-cfgcleanup.h.
22091 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
22092 (tree_if_conversion): Pass through predicate vector.
22093 (pass_if_conversion::execute): Do CFG cleanup and SSA update
22094 inline, see if any if-converted loops we refrece in
22095 LOOP_VECTORIZED calls vanished and fixup.
22096 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
22097
22098 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
22099
22100 * config/s390/constraints.md (jdd): New constraint.
22101
22102 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
22103
22104 PR target/89229
22105 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
22106 upper 16 vector registers without TARGET_AVX512VL.
22107 (*movti_internal): Likewise.
22108
22109 2019-02-08 Jakub Jelinek <jakub@redhat.com>
22110
22111 PR rtl-optimization/89234
22112 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
22113 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
22114 (copy_reg_eh_region_note_backward): Likewise.
22115
22116 2019-02-08 Richard Biener <rguenther@suse.de>
22117
22118 PR middle-end/89223
22119 * tree-data-ref.c (initialize_matrix_A): Fail if constant
22120 doesn't fit in HWI.
22121 (analyze_subscript_affine_affine): Handle failure from
22122 initialize_matrix_A.
22123
22124 2019-02-08 Jakub Jelinek <jakub@redhat.com>
22125
22126 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
22127 cfun everywhere.
22128
22129 2019-02-07 David Malcolm <dmalcolm@redhat.com>
22130
22131 PR tree-optimization/86637
22132 PR tree-optimization/89235
22133 * tree-vect-loop.c (optimize_mask_stores): Add an
22134 auto_purge_vect_location sentinel to ensure that vect_location is
22135 purged on exit.
22136 * tree-vectorizer.c
22137 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
22138 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
22139 to ensure that vect_location is purged on exit.
22140 (pass_slp_vectorize::execute): Likewise, replacing the manual
22141 reset.
22142 * tree-vectorizer.h (class auto_purge_vect_location): New class.
22143
22144 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22145
22146 * config/aarch64/iterators.md (max_opp): New code_attr.
22147 (USMAX): New code iterator.
22148 * config/aarch64/predicates.md (aarch64_smin): New predicate.
22149 (aarch64_smax): Likewise.
22150 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
22151 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
22152 MINUS (MAX MIN).
22153
22154 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
22155
22156 PR target/89229
22157 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
22158 for TARGET_AVX512VL.
22159 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
22160
22161 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
22162
22163 * config/s390/s390-builtin-types.def: Add new types.
22164 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
22165 (s390_vec_xlw4): Make the memory operand into a const pointer.
22166 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
22167 float.
22168 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
22169 a new vector type with the alignment of the scalar memory operand.
22170
22171 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
22172 Jakub Jelinek <jakub@redhat.com>
22173
22174 PR bootstrap/88714
22175 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
22176 arm_count_ldrdstrd_insns): New declarations.
22177 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
22178 MINUS.
22179 (valid_operands_ldrd_strd): New function.
22180 (arm_count_ldrdstrd_insns): New function.
22181 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
22182 sets instead of single DImode set and define new insns to match this.
22183
22184 2019-02-07 Tamar Christina <tamar.christina@arm.com>
22185
22186 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
22187 Make it a C initializer.
22188
22189 2019-02-07 Tamar Christina <tamar.christina@arm.com>
22190
22191 PR/target 88850
22192 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
22193
22194 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22195
22196 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
22197 Use neon_dot<q> for type.
22198 (neon_<sup>dot_lane<vsi2qi>): Likewise.
22199
22200 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22201
22202 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
22203 Use neon_dot<q> for type.
22204 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
22205 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
22206
22207 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
22208
22209 PR rtl-optimization/89225
22210 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
22211 sizes check.
22212
22213 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
22214
22215 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
22216 after restoring registers saved to allocate the frame on Windows.
22217
22218 2019-02-06 Richard Biener <rguenther@suse.de>
22219
22220 PR tree-optimization/89182
22221 * graphite.h (cached_scalar_evolution_in_region): Declare.
22222 * graphite.c (struct seir_cache_key): New.
22223 (struct sese_scev_hash): Likewise.
22224 (seir_cache): New global.
22225 (cached_scalar_evolution_in_region): New function.
22226 (graphite_transform_loops): Allocate and release seir_cache.
22227 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
22228 cached_scalar_evolution_in_region.
22229 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22230 Simplify.
22231 (scop_detection::graphite_can_represent_expr: Use
22232 cached_scalar_evolution_in_region.
22233 (scop_detection::stmt_simple_for_scop_p): Likewise.
22234 (find_params_in_bb): Likewise.
22235 (gather_bbs::before_dom_children): Likewise.
22236 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
22237 (add_loop_constraints): Likewise.
22238
22239 2019-02-06 Jakub Jelinek <jakub@redhat.com>
22240
22241 PR middle-end/89210
22242 * fold-const-call.c (fold_const_vec_convert): Pass true as last
22243 operand to new_unary_operation only if both element types are integral
22244 and it isn't a widening conversion. Return NULL_TREE if
22245 new_unary_operation failed.
22246
22247 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
22248
22249 PR target/88856
22250 * config/s390/s390.md: Remove load and test FP splitter.
22251
22252 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22253
22254 PR target/89112
22255 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
22256 expand_compare_loop, expand_block_compare_gpr,
22257 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
22258 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
22259 #include "profile-count.h" and "predict.h" for types and functions
22260 needed to work with REG_BR_PROB notes.
22261
22262 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22263
22264 PR target/89112
22265 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
22266 for the long branch case.
22267
22268 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22269
22270 PR target/89188
22271 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
22272 can throw, non-call exceptions are enabled and we can't delete
22273 dead exceptions or alter cfg. Set must_clean if
22274 delete_insn_and_edges returns true, don't set it blindly for calls.
22275 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
22276
22277 PR rtl-optimization/89195
22278 * combine.c (make_extraction): For MEMs, don't extract bytes outside
22279 of the original MEM.
22280
22281 2019-02-05 Martin Liska <mliska@suse.cz>
22282
22283 PR gcov-profile/89000
22284 * gcov.c (function_summary): Remove argument.
22285 (file_summary): New function.
22286 (print_usage): Replace tabs with spaces.
22287 (generate_results): Use new function file_summary.
22288
22289 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22290
22291 PR target/89186
22292 * optabs.c (prepare_cmp_insn): Pass x and y to
22293 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
22294
22295 2019-02-05 Richard Biener <rguenther@suse.de>
22296
22297 PR middle-end/89150
22298 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
22299 (struct bitmap_element): Drop chain_prev so we properly recurse on
22300 the prev member, supporting tree views.
22301 (struct bitmap_head): GTY skip the obstack member.
22302
22303 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
22304
22305 PR c/88698
22306 * doc/extend.texi (Vector Extensions): Add an example of using vector
22307 types together with x86 intrinsics.
22308
22309 2019-02-04 Alan Modra <amodra@gmail.com>
22310
22311 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
22312 str[] size to 160, and comment.
22313
22314 2019-02-04 Alan Modra <amodra@gmail.com>
22315
22316 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
22317 (rs6000_pltseq_template): Guard output of TLS markers with
22318 TARGET_TLS_MARKERS.
22319 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
22320 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
22321 to use inline PLT sequences.
22322 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22323 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22324 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
22325
22326 2019-02-04 Martin Liska <mliska@suse.cz>
22327
22328 PR ipa/88985
22329 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
22330 out when ipa_fn_summaries does not contain entry for callee.
22331
22332 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
22333
22334 * config/sparc/sparc.h: Remove superfluous blank lines.
22335 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
22336 (got_register_rtx): ...this.
22337 (sparc_got): Adjust to above renaming.
22338 (sparc_tls_got): Likewise.
22339 (sparc_delegitimize_address): Likewise.
22340 (sparc_output_mi_thunk): Likewise.
22341 (sparc_init_pic_reg): Likewise.
22342 (save_local_or_in_reg_p): Fix test on the GOT register.
22343 (USE_HIDDEN_LINKONCE): Move around.
22344 (get_pc_thunk_name): Likewise.
22345 (gen_load_pcrel_sym): Likewise.
22346 (load_got_register): Likewise.
22347
22348 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
22349
22350 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
22351 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
22352
22353 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22354
22355 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
22356 into consideration.
22357
22358 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22359
22360 * config.gcc (with_nds32_lib, glibc):
22361 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
22362 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
22363 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
22364
22365 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
22366
22367 PR target/89071
22368 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
22369 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
22370 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
22371 (*rcpsf2_sse): Ditto.
22372 (*rsqrtsf2_sse): Ditto.
22373 (sse4_1_round<mode<2): Ditto.
22374
22375 2019-02-03 Richard Biener <rguenther@suse.de>
22376
22377 PR debug/87295
22378 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22379 orig.
22380
22381 2019-02-02 Jakub Jelinek <jakub@redhat.com>
22382
22383 PR middle-end/87887
22384 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22385 Punt with warning on aggregate return or argument types. Ignore
22386 type/mode checking for uniform arguments.
22387
22388 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
22389
22390 * combine.c (try_combine): Do not print "Can't combine" messages unless
22391 printing failed combination attempts.
22392
22393 2019-02-01 Martin Jambor <mjambor@suse.cz>
22394
22395 PR hsa/87863
22396 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22397 segment and global segment variables before making them static.
22398
22399 2019-02-01 Martin Jambor <mjambor@suse.cz>
22400
22401 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22402 missed optimization dump with dump_enabled_p.
22403
22404 2019-02-01 Richard Biener <rguenther@suse.de>
22405
22406 PR middle-end/88597
22407 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22408 the instantiate cache.
22409 (instantiate_scev_binary): Elide second operand procesing
22410 if equal to the first.
22411 * tree-chrec.c (chrec_contains_symbols): Add visited set.
22412 (chrec_contains_undetermined): Likewise.
22413 (tree_contains_chrecs): Likewise.
22414
22415 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
22416
22417 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22418
22419 2019-02-01 Jakub Jelinek <jakub@redhat.com>
22420
22421 PR tree-optimization/89143
22422 * wide-int-range.h (wide_int_range_absu): Declare.
22423 * wide-int-range.cc (wide_int_range_absu): New function.
22424 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22425
22426 PR tree-optimization/88107
22427 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22428 instead of assertion that eh_region_outermost is non-NULL, if it
22429 is NULL, set *ALL to true and return NULL.
22430 (move_sese_region_to_fn): Adjust caller, if all is set, call
22431 duplicate_eh_regions with NULL region.
22432
22433 2019-02-01 Richard Biener <rguenth@suse.de>
22434
22435 PR rtl-optimization/88593
22436 * mode-switching.c (optimize_mode_switching): Free dominators before
22437 calling cleanup_cfg.
22438
22439 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
22440
22441 PR tree-optimization/88932
22442 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22443
22444 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22445
22446 PR middle-end/89137
22447 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22448 bogus clang warning.
22449
22450 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
22451
22452 PR target/89071
22453 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22454 alternative to avoid partial SSE register stall for TARGET_AVX.
22455 (truncdfsf2): Ditto.
22456 (sse4_1_round<mode>2): Ditto.
22457
22458 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
22459
22460 PR tree-optimization/89008
22461 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22462 process anything of the form X * 0.
22463
22464 2019-01-31 Richard Biener <rguenther@suse.de>
22465
22466 PR tree-optimization/89135
22467 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22468 with abnormal preds.
22469
22470 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22471
22472 PR sanitizer/89124
22473 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22474 always_inline callees into no_sanitize_address callers.
22475
22476 2019-01-31 Richard Biener <rguenther@suse.de>
22477
22478 PR rtl-optimization/89115
22479 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22480
22481 2019-01-30 Martin Sebor <msebor@redhat.com>
22482
22483 PR other/89106
22484 * doc/extend.texi (cast to a union): Correct and expand.
22485
22486 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
22487
22488 PR rtl-optimization/87246
22489 * lra-constraints.c (simplify_operand_subreg): Reload memory
22490 in subreg if the address became invalid.
22491
22492 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
22493
22494 PR target/87064
22495 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22496 Disable for little-endian.
22497
22498 2019-01-30 Richard Biener <rguenther@suse.de>
22499
22500 PR rtl-optimization/89115
22501 * opts.c (default_options_optimization): Reduce
22502 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22503 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22504 to the default.
22505
22506 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
22507
22508 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22509 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
22510 type of vector element when vec_extract is implemented by direct
22511 move.
22512
22513 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
22514
22515 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22516
22517 2019-01-30 Richard Biener <rguenther@suse.de>
22518
22519 PR tree-optimization/89111
22520 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22521 canonicalization to appropriately sized access types.
22522
22523 2019-01-30 Jakub Jelinek <jakub@redhat.com>
22524
22525 PR c++/89105
22526 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22527 for arguments to functions that are TU-local and shouldn't be
22528 referenced by assembly.
22529
22530 2019-01-30 Ulrich Drepper <drepper@redhat.com>
22531
22532 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22533 after '='.
22534
22535 2019-01-29 Martin Sebor <msebor@redhat.com>
22536
22537 PR c/88956
22538 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22539
22540 2019-01-29 Jakub Jelinek <jakub@redhat.com>
22541
22542 PR c++/66676
22543 PR ipa/89104
22544 * omp-simd-clone.c (simd_clone_clauses_extract)
22545 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22546 OMP_CLAUSE_ALIGNED_ALIGNMENT.
22547
22548 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
22549
22550 * config.gcc: Force .init_array for ARC.
22551
22552 2019-01-29 Richard Biener <rguenther@suse.de>
22553
22554 PR debug/87295
22555 * dwarf2out.c (collect_skeleton_dies): New helper.
22556 (copy_decls_for_unworthy_types): Call it.
22557 (build_abbrev_table): Assert we do not try to replace
22558 DW_AT_signature refs with local refs.
22559
22560 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22561
22562 PR middle-end/89002
22563 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22564 for lastprivate/linear IV, push gimplify context around gimplify_assign
22565 and, if it needed any temporaries, pop it into a gimple bind around the
22566 sequence.
22567
22568 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22569
22570 * common.opt (-Wattribute-alias): Remove "no-" from name.
22571 Make -Wattribute-alias command line option and
22572 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22573
22574 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22575
22576 PR target/89073
22577 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22578 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22579 x86 ISA options.
22580 (bmi2): Add missing @opindex.
22581 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22582 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
22583 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22584 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
22585 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
22586 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
22587 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
22588 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
22589 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
22590 xsavec, xsaveopt and xsaves options.
22591
22592 2019-01-28 Richard Biener <rguenther@suse.de>
22593
22594 PR debug/89076
22595 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
22596 support removal.
22597
22598 2019-01-28 Richard Biener <rguenther@suse.de>
22599
22600 PR tree-optimization/88739
22601 * tree-cfg.c (verify_types_in_gimple_reference): Verify
22602 BIT_FIELD_REFs only are applied to mode-precision operands
22603 when they are integral.
22604 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
22605 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
22606 BIT_FIELD_REFs of non-mode-precision integral operands.
22607
22608 2019-01-27 Jakub Jelinek <jakub@redhat.com>
22609
22610 PR target/87214
22611 * config/i386/sse.md
22612 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
22613 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
22614 first constants in pairs are multiples of 2. Formatting fixes.
22615 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
22616 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
22617 first constants in each quadruple are multiples of 4. Formatting fixes.
22618
22619 2019-01-26 Martin Jambor <mjambor@suse.cz>
22620
22621 PR ipa/88933
22622 * tree-inline.c: Include tree-cfgcleanup.h.
22623 (delete_unreachable_blocks_update_callgraph): Move...
22624 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
22625 ...here, make externally visible, make second argument bool, adjust
22626 all callers.
22627 * tree-cfgcleanup.c: Include cgraph.h.
22628 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
22629 Declare.
22630 * ipa-prop.c: Include tree-cfgcleanup.h.
22631 (ipcp_transform_function): Call
22632 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
22633
22634 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
22635
22636 PR rtl-optimization/88846
22637 * ira.c (process_set_for_memref_referenced_p): New.
22638 (memref_referenced_p): Add new param. Use
22639 process_set_for_memref_referenced_p. Add new switch cases.
22640 (memref_used_between_p): Pass new arg to memref_referenced_p.
22641
22642 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
22643
22644 PR target/88469
22645 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
22646 argument ABI_BREAK. Set to true if the calculated alignment has
22647 changed in gcc-9. Check bit-fields for their base type alignment.
22648 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
22649 (aarch64_function_arg_boundary): Likewise.
22650 (aarch64_gimplify_va_arg_expr): Likewise.
22651
22652 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22653
22654 PR middle-end/89037
22655 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
22656 instead of accessing TREE_INT_CST_ELT directly.
22657
22658 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
22659
22660 * doc/sourcebuild.texi (Environment attributes): Add fenv and
22661 fenv_exceptions description.
22662
22663 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
22664
22665 PR rtl-optimization/87763
22666 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
22667 Allow SUBREG when matching CC_NZmode compare.
22668
22669 2019-01-25 Richard Biener <rguenther@suse.de>
22670
22671 PR tree-optimization/89049
22672 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
22673 Look at the pattern stmt to determine if the stmt is vectorized.
22674
22675 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22676
22677 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
22678 (pred_mov<mode>): Handle all-register forms using both a new
22679 alternative and a split.
22680
22681 2019-01-25 Richard Biener <rguenther@suse.de>
22682
22683 PR tree-optimization/86865
22684 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22685 Reject non-do-while loops.
22686
22687 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
22688
22689 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
22690 * config/rs6000/constraints.md (Q constraint): Use REG_P.
22691 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
22692 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22693 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
22694 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22695 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
22696 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
22697 vlogical_operand, gpc_reg_operand, int_reg_operand,
22698 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
22699 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
22700 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
22701 (save_world_operation, restore_world_operation, lmw_operation,
22702 stmw_operation): Use MEM_P and REG_P.
22703 (tie_operand): Use MEM_P.
22704 (vrsave_operation, crsave_operation): Use REG_P.
22705 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
22706 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
22707 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
22708 (call_operand): Use HARD_REGISTER_P.
22709 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
22710 Use CONST_INT_P.
22711 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
22712 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
22713 quad_aligned_load_p, replace_swapped_aligned_store,
22714 recombine_lvx_pattern, replace_swapped_aligned_load,
22715 recombine_stvx_pattern): Use MEM_P.
22716 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
22717 Use MEM_P and SYMBOL_REF_P.
22718 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
22719 (insn_is_swappable_p): Use REG_P and MEM_P.
22720 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
22721 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
22722 Use CONST_INT_P.
22723 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
22724 Use CONST_DOUBLE_P.
22725 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
22726 CONST_WIDE_INT_P.
22727 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
22728 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
22729 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
22730 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
22731 reg_or_subregno:
22732 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22733 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
22734 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
22735 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
22736 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
22737 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
22738 rs6000_split_logical_di): Use CONST_INT_P.
22739 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
22740 REG_P and SYMBOL_REF_P.
22741 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
22742 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
22743 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
22744 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
22745 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
22746 (small_data_operand, print_operand_address): Use CONST_INT_P and
22747 SYMBOL_REF_P.
22748 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
22749 (rs6000_init_hard_regno_mode_ok, direct_move_p):
22750 Use HARD_REGISTER_NUM_P.
22751 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
22752 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
22753 SUBREG_P and SYMBOL_REF_P.
22754 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
22755 and HARD_REGISTER_NUM_P.
22756 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
22757 reg_or_subregno.
22758 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
22759 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
22760 MEM_P and REG_P.
22761 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
22762 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
22763 find_addr_reg): Use REG_P.
22764 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
22765 (rs6000_emit_le_vsx_move): Use SUBREG_P.
22766 (offsettable_ok_by_alignment, constant_pool_expr_p,
22767 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
22768 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
22769 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
22770 rs6000_assemble_integer, create_TOC_reference,
22771 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
22772 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
22773 (rs6000_split_vec_extract_var): Use reg_or_subregno.
22774 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22775 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22776 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22777 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22778 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
22779 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
22780 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
22781 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
22782 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
22783 and cbranch<mode>4): Use CONST_INT_P.
22784 (multiple define_splits): Use REG_P and SUBREG_P.
22785 (define_expands call, call_value): Use MEM_P.
22786 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
22787 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
22788 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
22789 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
22790 and HARD_REGISTER_NUM_P.
22791 (multiple define_splits): Use HARD_REGISTER_NUM_P.
22792
22793 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
22794
22795 PR rtl-optimization/88948
22796 * rtl.h (prepare_copy_insn): New prototype.
22797 * gcse.c (prepare_copy_insn): New function, split out from
22798 process_insert_insn.
22799 (process_insert_insn): Use prepare_copy_insn.
22800 * store-motion.c (replace_store_insn): Use prepare_copy_insn
22801 instead of gen_move_insn.
22802
22803 2019-01-24 Jakub Jelinek <jakub@redhat.com>
22804
22805 PR debug/89006
22806 * config/i386/i386.c (ix86_pic_register_p): Return true for
22807 UNSPEC_SET_GOT too.
22808
22809 PR tree-optimization/88964
22810 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
22811 punt if HONOR_SNANS (chrec).
22812
22813 PR middle-end/89015
22814 * tree-nested.c (convert_nonlocal_reference_stmt,
22815 convert_local_reference_stmt, convert_tramp_reference_stmt,
22816 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
22817 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
22818 or GIMPLE_OMP_TASK.
22819
22820 PR tree-optimization/89027
22821 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
22822 for "omp simd array" variables.
22823
22824 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
22825
22826 PR target/88469
22827 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
22828 force the alignment of m_val.
22829
22830 2019-01-24 Richard Biener <rguenther@suse.de>
22831
22832 PR lto/87187
22833 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
22834 When in "legacy" debug mode make sure to reset self-origins.
22835
22836 2019-01-24 Martin Liska <mliska@suse.cz>
22837
22838 PR gcov-profile/88994
22839 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
22840 result will be always smaller or equal to the original.
22841 * gcov.c (mangle_name): Fix else branch where we should
22842 also copy to PTR and shift the pointer.
22843
22844 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
22845
22846 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
22847 * vr-values.c (find_case_label_ranges): Fix a comment typo.
22848
22849 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
22850
22851 * common/config/i386/i386-common.c
22852 (OPTION_MASK_ISA_ENQCMD_SET,
22853 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
22854 (ix86_handle_option): Handle -menqcmd.
22855 * config.gcc (enqcmdintrin.h): New header file.
22856 * config/i386/cpuid.h (bit_ENQCMD): New bit.
22857 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22858 -menqcmd.
22859 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
22860 function type.
22861 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
22862 __builtin_ia32_enqcmds): New builtins.
22863 * config/i386/i386-c.c (__ENQCMD__): New macro.
22864 * config/i386/i386-option.c (ix86_target_string): Add
22865 -menqcmd.
22866 (ix86_valid_target_attribute_inner_p): Likewise.
22867 * config/i386/i386-expand.c
22868 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
22869 IX86_BUILTIN_ENQCMDS.
22870 * config/i386/i386.h (TARGET_ENQCMD): New.
22871 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
22872 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
22873 (movdir64b_<mode>): Parameterize to enable share expansion code
22874 with ENQCMD in function ix86_expand_builtin.
22875 * config/i386/i386.opt: Add -menqcmd.
22876 * config/i386/immintrin.h: Include enqcmdintrin.h.
22877 * config/i386/enqcmdintrin.h: New intrinsic file.
22878 * doc/invoke.texi: Add -menqcmd.
22879
22880 2019-01-23 Bin Cheng <bin.cheng@arm.com>
22881 Steve Ellcey <sellcey@marvell.com>
22882
22883 PR target/85711
22884 * recog.c (address_operand): Return false on wrong mode for address.
22885 (constrain_operands): Check for mode with 'p' constraint.
22886
22887 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
22888
22889 PR target/88998
22890 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
22891 Disparage MMX alternative.
22892 (sse2_cvtpd2pi): Ditto.
22893 (sse2_cvttpd2pi): Ditto.
22894
22895 2019-01-23 David Malcolm <dmalcolm@redhat.com>
22896
22897 PR driver/89014
22898 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
22899 use-after-free of the result of
22900 aarch64_get_extension_string_for_isa_flags.
22901
22902 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22903
22904 PR c/44715
22905 * doc/extend.texi: Document break and continue behavior in
22906 statement expressions.
22907
22908 2019-01-23 Richard Biener <rguenther@suse.de>
22909
22910 PR tree-optimization/89008
22911 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
22912 not leave another stray operand.
22913
22914 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22915
22916 * BASE-VER: Bump to 9.0.1.
22917
22918 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
22919
22920 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
22921 thunk that returns by reference, use the type of the return object
22922 of the thunk instead of that of the alias to build the dereference.
22923
22924 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
22925
22926 * config/arc/atomic.md: Add operand to DMB instruction.
22927
22928 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22929
22930 PR tree-optimization/88964
22931 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
22932 build_zero_cst instead of build_int_cst. Return false for loop
22933 invariants which honor signed zeros.
22934
22935 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
22936
22937 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
22938
22939 2019-01-22 Jakub Jelinek <jakub@redhat.com>
22940
22941 PR target/88965
22942 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
22943 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
22944 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
22945
22946 PR middle-end/88968
22947 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
22948 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
22949
22950 PR target/87064
22951 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
22952 Disable for little endian.
22953
22954 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22955
22956 PR target/88469
22957 * config/arm/arm.c (arm_needs_double_word_align): Check
22958 DECL_BIT_FIELD_TYPE.
22959
22960 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
22961 H.J. Lu <hongjiu.lu@intel.com>
22962
22963 PR target/88909
22964 * config/i386/i386-builtin.def: Add mask2 to all builtin
22965 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
22966 SPECIAL_ARGS.
22967 * config/i386/i386.c (BDESC): Add mask2 to the definition.
22968 (BDESC_FIRST): Likewise.
22969 (define_builtin): Add an argument for mask2. Updated to handle
22970 both ix86_isa_flags and ix86_isa_flags2.
22971 (define_builtin_const): Likewise.
22972 (define_builtin_pure): Likewise.
22973 (define_builtin2): Deleted.
22974 (define_builtin_const2): Likewise.
22975 (builtin_description): Add a member, mask2.
22976 (bdesc_*): Add mask2 to builtin initializations.
22977 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
22978 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
22979 support.
22980 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
22981
22982 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
22983
22984 PR target/88954
22985 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
22986 noplt attribute.
22987
22988 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22989
22990 PR target/88469
22991 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
22992 alignment is dominated by a bitfield with 64-bit aligned base type.
22993 (arm_function_arg): Emit a warning if the alignment has changed since
22994 earlier GCC releases.
22995 (arm_function_arg_boundary): Likewise.
22996 (arm_setup_incoming_varargs): Likewise.
22997
22998 2019-01-22 Richard Biener <rguenther@suse.de>
22999
23000 PR tree-optimization/88862
23001 * graphite-scop-detection.c
23002 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
23003
23004 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
23005
23006 * doc/extend.tex (AMD GCN Function Attributes): New section.
23007 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
23008 * doc/invoke.texi (AMD GCN Options): New section.
23009 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
23010
23011 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
23012
23013 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
23014 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
23015
23016 2019-01-22 Jakub Jelinek <jakub@redhat.com>
23017
23018 PR tree-optimization/88044
23019 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
23020 is false in the first iteration, but !every_iteration, return false
23021 instead of true with niter->niter zero.
23022
23023 PR rtl-optimization/88904
23024 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
23025 any nonequal registers before processing BB_END (b).
23026
23027 PR target/88905
23028 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
23029 GET_MODE (op0).
23030 (expand_binop_directly, expand_doubleword_clz,
23031 expand_doubleword_popcount, expand_ctz, expand_ffs,
23032 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
23033
23034 PR rtl-optimization/49429
23035 PR target/49454
23036 PR rtl-optimization/86334
23037 PR target/88906
23038 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
23039 addressable from here...
23040 (emit_block_op_via_libcall): ... to here.
23041
23042 2019-01-22 Richard Biener <rguenther@suse.de>
23043
23044 * tree-vect-loop.c (vect_analyze_loop_operations): Use
23045 auto_vec for cost vector to fix memleak.
23046 (vectorize_fold_left_reduction): Properly gather SLP defs.
23047 (vectorizable_comparison): Do not swap operands to properly
23048 gather SLP defs.
23049
23050 2019-01-22 Alan Modra <amodra@gmail.com>
23051
23052 PR target/88614
23053 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
23054 stays a reg. Allow a const_int.
23055 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
23056 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
23057 (IS_NOMARK_TLSGETADDR): Define.
23058 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
23059 (rs6000_output_tlsargs): New function.
23060 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
23061 __tls_get_addr call takes an arg.
23062 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
23063 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
23064 delete split..
23065 (call_value_nonlocal_sysv): ..or here, delete split.
23066 (tls_gdld_nomark): Delete.
23067 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
23068 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
23069 (call_value_nonlocal_sysv): Likewise.
23070 (call_value_nonlocal_sysv_secure): Likewise.
23071 (call_value_nonlocal_aix): Likewise.
23072 (call_value_indirect_aix): Likewise.
23073 (call_value_indirect_elfv2): Likewise.
23074 (call_value_local32, call_value_local64): Disable for no-mark tls.
23075 (call_value_local_aix): Likewise.
23076
23077 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
23078
23079 PR target/88938
23080 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
23081 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
23082
23083 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
23084
23085 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
23086 string contents as hash_map keys.
23087
23088 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23089
23090 PR c/88928
23091 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
23092 for rvalue context. Handle rvalues correctly. Use min_align_of_type
23093 instead of TYPE_ALIGN.
23094 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
23095 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
23096 pointer from TYPE_STUB_DECL.
23097
23098 2019-01-21 Richard Biener <rguenther@suse.de>
23099
23100 PR tree-optimization/88934
23101 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
23102 at the possibly non-constant operand.
23103 (vect_get_constant_vectors): Adjust.
23104
23105 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
23106
23107 PR target/71659
23108 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
23109 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
23110 instead of _X86INTRIN_H_INCLUDED.
23111 * onfig/i386/clwbintrin.h: Likewise.
23112 * config/i386/pkuintrin.h: Likewise.
23113 * config/i386/prfchwintrin.h: Likewise.
23114 * config/i386/rdseedintrin.h: Likewise.
23115 * config/i386/wbnoinvdintrin.h: Likewise.
23116 * config/i386/xsavecintrin.h: Likewise.
23117 * config/i386/xsavesintrin.h: Likewise.
23118 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
23119 * config/i386/xsaveintrin.h: Likewise.
23120 * config/i386/xsaveoptintrin.h: Likewise.
23121 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
23122 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
23123 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
23124 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
23125 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
23126 * config/i386/immintrin.h: Here.
23127
23128 2019-01-20 Martin Jambor <mjambor@suse.cz>
23129
23130 PR ipa/87615
23131 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
23132 with aa_walk_budget.
23133 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
23134 aa_walk_budget_p parameter.
23135 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
23136 walk. Updated all callers.
23137 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
23138 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
23139 unmodified_parm.
23140 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
23141 parameter info. Extract info from fbi. Pass fbi to recursive calls
23142 and to unmodified_parm.
23143 (phi_result_unknown_predicate): New parameter fbi, removed parameter
23144 info, updated call to will_be_nonconstant_expr_predicate.
23145 (param_change_prob): New parameter fbi, limit AA walking.
23146 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
23147 calls to various above functions.
23148 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
23149 parameter. Use it to limit AA walking.
23150 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
23151 fbi, limit AA walk.
23152 (detect_type_change): New parameter fbi, pass it on to
23153 detect_type_change_from_memory_writes.
23154 (detect_type_change_ssa): Likewise.
23155 (aa_overwalked): Removed.
23156 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
23157 accordingly, adjust to the neew AA limiting scheme.
23158 (parm_ref_data_preserved_p): Likewise.
23159 (ipa_compute_jump_functions_for_edge): Adjust call to
23160 get_dynamic_type.
23161 (ipa_analyze_call_uses): Likewise.
23162 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
23163 (ipa_analyze_node): Initialize aa_walk_budget.
23164 (ipcp_transform_function): Likewise.
23165 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
23166 to get_dynamic_type.
23167
23168 2019-01-19 Jakub Jelinek <jakub@redhat.com>
23169
23170 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
23171 outside of #if CHECKING_P code.
23172
23173 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
23174
23175 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
23176 New function, split out from...
23177 (loop_versioning::analyze_stride): ...here.
23178 (loop_versioning::find_per_loop_multiplication): Use gassign.
23179 (loop_versioning::analyze_term_using_scevs): Return a success code.
23180 (loop_versioning::analyze_arbitrary_term): New function.
23181 (loop_versioning::analyze_address_fragment): Use
23182 analyze_arbitrary_term if all else fails.
23183
23184 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
23185
23186 PR target/88892
23187 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
23188 operands.
23189
23190 2019-01-18 Richard Biener <rguenther@suse.de>
23191
23192 PR tree-optimization/88903
23193 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
23194 scalar stmts a SLP shift amount is composed of when detecting
23195 shifts by scalars.
23196
23197 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
23198
23199 PR target/88799
23200 * config/arm/arm-cpus.in (mp): New feature.
23201 (sec): New feature.
23202 (fgroup ARMv7ve): Add mp and sec features.
23203 (arch armv7-a): Add options to allow mp and sec extensions.
23204 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
23205 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
23206 extenstions to the base architecture.
23207 (cpu cortex-a8): Add sec extension to the base architecture.
23208 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
23209 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
23210 variants down to the base v7-a varaint.
23211 * config/arm/t-multilib (v7_a_arch_variants): New variable.
23212 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
23213 of permitted extensions for -march=armv7-a and for
23214 -mcpu=generic-armv7-a.
23215
23216 2019-01-18 Martin Liska <mliska@suse.cz>
23217
23218 * params.def: Fix comment.
23219 * tree-profile.c (gimple_init_gcov_profiler): Bump function
23220 name.
23221 (gimple_gen_ic_func_profiler): Likewise.
23222
23223 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23224
23225 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
23226 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
23227 and put in error checks for stack protector guard options.
23228 (aarch64_stack_protect_guard): New.
23229 (TARGET_STACK_PROTECT_GUARD): Define.
23230 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
23231 (reg_stack_protect_address<mode>): New.
23232 (stack_protect_set): Adjust for SSP_GLOBAL.
23233 (stack_protect_test): Likewise.
23234 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
23235 (-mstack-protector-guard): Likewise.
23236 (-mstack-protector-guard-offset): Likewise.
23237
23238 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23239
23240 PR tree-optimization/86214
23241 * tree-inline.h (struct copy_body_data): Add
23242 add_clobbers_to_eh_landing_pads member.
23243 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
23244 (copy_edges_for_bb): Call it if EH edge destination is <
23245 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
23246 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
23247 if flag_stack_reuse != SR_NONE and clear it afterwards.
23248
23249 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
23250
23251 PR target/85596
23252 * doc/install.texi (with-multilib-list): Document for aarch64.
23253
23254 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23255
23256 PR target/88734
23257 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
23258 (("..."))) with ("...").
23259
23260 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
23261
23262 * doc/extend.texi (Built-in Functions for Memory Model Aware
23263 Atomic Operations): Document atomic fetch and nand.
23264
23265 2019-01-18 Martin Liska <mliska@suse.cz>
23266 Richard Biener <rguenther@suse.de>
23267
23268 PR middle-end/88587
23269 * cgraph.h (create_version_clone_with_body): Add new argument
23270 with attributes.
23271 * cgraphclones.c (cgraph_node::create_version_clone): Add
23272 DECL_ATTRIBUTES to a newly created decl. And call
23273 valid_attribute_p so that proper cl_target_optimization_node
23274 is set for the newly created declaration.
23275 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
23276 for declaration.
23277 (expand_target_clones): Do not call valid_attribute_p, it must
23278 be already done.
23279 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
23280 vector types.
23281
23282 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23283
23284 PR target/88734
23285 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
23286 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
23287 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
23288
23289 2019-01-17 Martin Sebor <msebor@redhat.com>
23290
23291 PR middle-end/88273
23292 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
23293 Handle anti-ranges the same as no range at all.
23294
23295 2018-01-17 Steve Ellcey <sellcey@cavium.com>
23296
23297 * config/aarch64/aarch64.c (cgraph.h): New include.
23298 (intl.h): New include.
23299 (supported_simd_type): New function.
23300 (currently_supported_simd_type): Ditto.
23301 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
23302 (aarch64_simd_clone_adjust): Ditto.
23303 (aarch64_simd_clone_usable): Ditto.
23304 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
23305 (TARGET_SIMD_CLONE_ADJUST): Ditto.
23306 (TARGET_SIMD_CLONE_USABLE): Ditto.
23307 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
23308 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
23309 call.
23310
23311 2019-01-17 Martin Sebor <msebor@redhat.com>
23312
23313 PR tree-optimization/88800
23314 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
23315 NO_WARNING bit here. Avoid folding out-of-bounds calls.
23316 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
23317 redundant argument. Add new argument and issue diagnostics under
23318 its control. Detect out-of-bounds access even with warnings
23319 disabled.
23320 (check_bounds_or_overlap): Change return type. Add argument.
23321 (wrestrict_dom_walker::check_call): Adjust.
23322 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
23323 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
23324 check_bounds_or_overlap's return value.
23325 (handle_builtin_stxncpy): Same.
23326 (handle_builtin_strcat): Same.
23327
23328 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23329 Kwok Cheung Yeung <kcy@codesourcery.com>
23330 Julian Brown <julian@codesourcery.com>
23331 Tom de Vries <tom@codesourcery.com>
23332
23333 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
23334
23335 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23336
23337 * doc/sourcebuild.texi: Document dg-require-effective-target
23338 llvm_binutils and offload_gcn.
23339
23340 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23341 Kwok Cheung Yeung <kcy@codesourcery.com>
23342 Julian Brown <julian@codesourcery.com>
23343 Tom de Vries <tom@codesourcery.com>
23344
23345 * doc/sourcebuild.texi: Document dg-required-effective-target
23346 exceptions.
23347
23348 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23349 Kwok Cheung Yeung <kcy@codesourcery.com>
23350 Julian Brown <julian@codesourcery.com>
23351 Tom de Vries <tom@codesourcery.com>
23352 Jan Hubicka <hubicka@ucw.cz>
23353 Martin Jambor <mjambor@suse.cz>
23354
23355 * config.gcc: Add amdgcn*-*-amdhsa configuration.
23356 * configure.ac: Check for dlopen.
23357 * configure: Regenerate.
23358
23359 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23360 Kwok Cheung Yeung <kcy@codesourcery.com>
23361 Julian Brown <julian@codesourcery.com>
23362 Tom de Vries <tom@codesourcery.com>
23363 Jan Hubicka <hubicka@ucw.cz>
23364 Martin Jambor <mjambor@suse.cz>
23365
23366 * common/config/gcn/gcn-common.c: New file.
23367 * config/gcn/driver-gcn.c: New file.
23368 * config/gcn/gcn-builtins.def: New file.
23369 * config/gcn/gcn-hsa.h: New file.
23370 * config/gcn/gcn-modes.def: New file.
23371 * config/gcn/gcn-opts.h: New file.
23372 * config/gcn/gcn-passes.def: New file.
23373 * config/gcn/gcn-protos.h: New file.
23374 * config/gcn/gcn-run.c: New file.
23375 * config/gcn/gcn-tree.c: New file.
23376 * config/gcn/gcn.c: New file.
23377 * config/gcn/gcn.h: New file.
23378 * config/gcn/gcn.opt: New file.
23379 * config/gcn/t-gcn-hsa: New file.
23380
23381 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23382 Kwok Cheung Yeung <kcy@codesourcery.com>
23383 Julian Brown <julian@codesourcery.com>
23384 Tom de Vries <tom@codesourcery.com>
23385 Jan Hubicka <hubicka@ucw.cz>
23386 Martin Jambor <mjambor@suse.cz>
23387
23388 * config/gcn/constraints.md: New file.
23389 * config/gcn/gcn-valu.md: New file.
23390 * config/gcn/gcn.md: New file.
23391 * config/gcn/predicates.md: New file.
23392
23393 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
23394
23395 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23396 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23397 (stmt_uses_0_or_null_in_undefined_way): Likewise.
23398 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23399
23400 2019-01-17 Tamar Christina <tamar.christina@arm.com>
23401
23402 PR target/88851
23403 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23404 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23405 it and document registers.
23406
23407 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23408
23409 * config/aarch64/aarch64.c (ares_tunings): Define.
23410 * config/aarch64/aarch64-cores.def (ares): Use the above.
23411
23412 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23413
23414 PR target/88794
23415 Revert:
23416 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
23417
23418 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23419 (_mm512_fixupimm_round_pd): Update parameters and builtin.
23420 (_mm512_maskz_fixupimm_round_pd): Ditto.
23421 (_mm512_fixupimm_round_ps): Ditto.
23422 (_mm512_maskz_fixupimm_round_ps): Ditto.
23423 (_mm_fixupimm_round_sd): Ditto.
23424 (_mm_maskz_fixupimm_round_sd): Ditto.
23425 (_mm_fixupimm_round_ss): Ditto.
23426 (_mm_maskz_fixupimm_round_ss): Ditto.
23427 (_mm512_fixupimm_pd): Ditto.
23428 (_mm512_maskz_fixupimm_pd): Ditto.
23429 (_mm512_fixupimm_ps): Ditto.
23430 (_mm512_maskz_fixupimm_ps): Ditto.
23431 (_mm_fixupimm_sd): Ditto.
23432 (_mm_maskz_fixupimm_sd): Ditto.
23433 (_mm_fixupimm_ss): Ditto.
23434 (_mm_maskz_fixupimm_ss): Ditto.
23435 (_mm512_mask_fixupimm_round_pd): Update builtin.
23436 (_mm512_mask_fixupimm_round_ps): Ditto.
23437 (_mm_mask_fixupimm_round_sd): Ditto.
23438 (_mm_mask_fixupimm_round_ss): Ditto.
23439 (_mm512_mask_fixupimm_pd): Ditto.
23440 (_mm512_mask_fixupimm_ps): Ditto.
23441 (_mm_mask_fixupimm_sd): Ditto.
23442 (_mm_mask_fixupimm_ss): Ditto.
23443 * config/i386/avx512vlintrin.h:
23444 (_mm256_fixupimm_pd): Update parameters and builtin.
23445 (_mm256_maskz_fixupimm_pd): Ditto.
23446 (_mm256_fixupimm_ps): Ditto.
23447 (_mm256_maskz_fixupimm_ps): Ditto.
23448 (_mm_fixupimm_pd): Ditto.
23449 (_mm_maskz_fixupimm_pd): Ditto.
23450 (_mm_fixupimm_ps): Ditto.
23451 (_mm_maskz_fixupimm_ps): Ditto.
23452 (_mm256_mask_fixupimm_pd): Update builtin.
23453 (_mm256_mask_fixupimm_ps): Ditto.
23454 (_mm_mask_fixupimm_pd): Ditto.
23455 (_mm_mask_fixupimm_ps): Ditto.
23456 * config/i386/i386-builtin-types.def: Add new types and remove
23457 useless ones.
23458 * config/i386/i386-builtin.def: Update builtin definitions.
23459 * config/i386/i386.c: Handle new builtin types and remove useless ones.
23460 * config/i386/sse.md: Update VFIXUPIMM* patterns.
23461 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23462 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23463 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23464 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23465 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23466 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23467 * config/i386/subst.md:
23468 (round_saeonly_sd_mask_operand4): Add new subst_attr.
23469 (round_saeonly_sd_mask_op4): Ditto.
23470 (round_saeonly_expand_operand5): Ditto.
23471 (round_saeonly_expand): Update.
23472
23473 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23474
23475 PR target/88794
23476 Revert:
23477 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
23478
23479 * config/i386/sse.md: Combine VFIXUPIMM* patterns
23480 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23481 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23482 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23483 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23484 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23485 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23486
23487 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23488
23489 PR target/88794
23490 Revert:
23491 2018-12-15 Jakub Jelinek <jakub@redhat.com>
23492
23493 PR target/88489
23494 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23495 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23496 instead of UNSPEC_FIXUPIMM.
23497
23498 2019-01-17 Richard Biener <rguenther@suse.de>
23499
23500 PR lto/86736
23501 * dwarf2out.c (want_pubnames): Never generate pubnames sections
23502 and friends for the LTO part of debug info.
23503
23504 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23505
23506 PR tree-optimization/86214
23507 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23508 if x == y.
23509
23510 PR rtl-optimization/88870
23511 * dce.c (deletable_insn_p): Never delete const/pure calls that can
23512 throw if we can't alter the cfg or delete dead exceptions.
23513 (mark_insn): Don't call find_call_stack_args for such calls.
23514
23515 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
23516
23517 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23518 prototypes for vec_st.
23519 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23520 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23521 mainly on signed/unsigned long long and double.
23522
23523 2019-01-16 David Malcolm <dmalcolm@redhat.com>
23524
23525 PR target/88861
23526 * combine.c (delete_noop_moves): Convert to "bool" return,
23527 returning true if any edges are eliminated.
23528 (combine_instructions): Also return true if delete_noop_moves
23529 returns true.
23530
23531 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23532
23533 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23534 correct max nunits for endian swap.
23535 (aarch64_expand_fcmla_builtin): Correct subreg code.
23536 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23537 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23538 lane endianness.
23539
23540 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
23541
23542 * config/alpha/alpha.c (alpha_gimplify_va_arg):
23543 Handle split indirect COMPLEX_TYPE arguments.
23544
23545 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
23546
23547 PR target/86891
23548 * config/aarch64/aarch64-modes.def: Add comment about how the carry
23549 bit is set by add and compare.
23550 (CC_ADC): New CC_MODE.
23551 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23552 to cache the code and mode of X. Adjust the shape of a CC_Cmode
23553 comparison. Add detection for CC_ADCmode.
23554 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
23555 CC_ADCmode.
23556 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23557 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23558 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
23559 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
23560 to eliminate the need for zero-extending the operands.
23561 (add<mode>3_compareC_imm): Delete. Merge into ...
23562 (add<mode>3_compareC): ... this. Restructure the comparison to
23563 eliminate the need for zero-extending the operands.
23564 (add<mode>3_carryin): Use LTU for the overflow detection.
23565 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23566 Reexpress comparison for overflow.
23567 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23568 (add<mode>3_carryinC): Likewise.
23569 (add<mode>3_carryinV): Use LTU for carry between partials.
23570 * config/aarch64/predicates.md (aarch64_carry_operation): Update
23571 handling of CC_Cmode and add CC_ADCmode.
23572 (aarch64_borrow_operation): Likewise.
23573
23574 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23575
23576 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23577 Remove patternmode.
23578 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23579 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23580 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23581 Remove endianness conversion.
23582
23583 2019-01-16 Martin Liska <mliska@suse.cz>
23584
23585 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
23586 for GCC driver.
23587 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
23588 a new argument.
23589 * gcc.c (add_sysrooted_hdrs_prefix): New function.
23590 (path_prefix_reset): Move up in the source file.
23591 (find_fortran_preinclude_file): Make complex search for the
23592 fortran header files.
23593
23594 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
23595
23596 * godump.c (go_output_typedef): When outputting a typedef, refer
23597 to the underlying type by its name and not its structure.
23598
23599 2019-01-15 David Malcolm <dmalcolm@redhat.com>
23600
23601 PR c++/88795
23602 * tree.c (build_function_type): Assert that arg_types is not
23603 error_mark_node.
23604
23605 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
23606
23607 PR inline-asm/52813
23608 * doc/extend.texi: Document that listing the stack pointer in the
23609 clobber list of an asm is a deprecated feature.
23610 * common.opt (Wdeprecated): Moved from c-family/c.opt.
23611 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
23612 warning instead of an error for clobbers of the stack pointer.
23613 Add a note explaining why.
23614
23615 2019-01-15 Richard Biener <rguenther@suse.de>
23616
23617 PR debug/88046
23618 * dwarf2out.c (gen_member_die): Do not generate inheritance
23619 DIEs late.
23620
23621 2019-01-15 Richard Biener <rguenther@suse.de>
23622
23623 PR tree-optimization/88855
23624 * tree-if-conv.c (combine_blocks): Collect
23625 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
23626
23627 2019-01-15 Tom de Vries <tdevries@suse.de>
23628
23629 PR target/80547
23630 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
23631 lhs == NULL_TREE for gang-level reduction.
23632
23633 2019-01-15 Richard Biener <rguenther@suse.de>
23634 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23635
23636 PR ipa/88788
23637 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
23638 return true if SSA_NAME is already marked in visited bitmap.
23639 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
23640
23641 2019-01-15 Jakub Jelinek <jakub@redhat.com>
23642
23643 PR tree-optimization/88775
23644 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
23645 equal == 0 equality pointer comparisons some more if compared in
23646 integral types and either one points to an automatic var and the
23647 other to a global, or we can prove at least one points to the middle
23648 or both point to start or both point to end.
23649
23650 2019-01-14 Andi Kleen <ak@linux.intel.com>
23651
23652 * Makefile.in: Lower autofdo sampling rate by 10x.
23653 * Makefile.tpl: Dito.
23654
23655 2019-01-14 Tom Honermann <tom@honermann.net>
23656
23657 * defaults.h: Define CHAR8_TYPE.
23658
23659 2019-01-14 Martin Sebor <msebor@redhat.com>
23660
23661 PR target/88638
23662 * doc/extend.texi (Darwin Format Checks): Clarify.
23663
23664 2019-01-14 Richard Biener <rguenther@suse.de>
23665
23666 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
23667 whether we are in (simplify ...) or (match ...) context.
23668
23669 2019-01-14 Jakub Jelinek <jakub@redhat.com>
23670
23671 PR rtl-optimization/88796
23672 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
23673 * cfgexpand.c (stack_protect_prologue): Initialize
23674 crtl->stack_protect_guard_decl.
23675 * function.c (stack_protect_epilogue): Use it instead of calling
23676 targetm.stack_protect_guard again.
23677 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
23678 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
23679 crtl->stack_protect_guard_decl.
23680 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
23681 on the returned MEM_EXPR.
23682
23683 2019-01-12 Tom de Vries <tdevries@suse.de>
23684
23685 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
23686 vector length using -fopenacc-dim.
23687
23688 2019-01-12 Tom de Vries <tdevries@suse.de>
23689
23690 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
23691 lengths into account.
23692
23693 2019-01-12 Svante Signell <svante.signell@gmail.com>
23694
23695 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
23696 (TARGET_CAN_SPLIT_STACK): Define.
23697 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
23698
23699 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
23700
23701 * params.def (inline-unit-growth): Set to 40.
23702
23703 2019-01-12 Jakub Jelinek <jakub@redhat.com>
23704
23705 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
23706
23707 2019-01-12 Tom de Vries <tdevries@suse.de>
23708
23709 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
23710 region calling vector-partitionable routine, set default_vector_length
23711 to WARP_SIZE.
23712
23713 2019-01-12 Tom de Vries <tdevries@suse.de>
23714
23715 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
23716 variable default_vector_length.
23717
23718 2019-01-12 Tom de Vries <tdevries@suse.de>
23719
23720 PR middle-end/88703
23721 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
23722 from oacc_default_dims, as oacc_validate_dims would do it, and apply
23723 dimensions limits.
23724
23725 2019-01-12 Tom de Vries <tdevries@suse.de>
23726
23727 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
23728 (nvptx_goacc_validate_dims): Add used parameter.
23729 * doc/tm.texi: Regenerate.
23730 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
23731 argument to call to targetm.goacc.validate_dims.
23732 (default_goacc_validate_dims): Add used
23733 parameter.
23734 * target.def (validate_dims): Add used parameter in DEFHOOK.
23735 * targhooks.h (default_goacc_validate_dims): Add used parameter.
23736
23737 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23738
23739 PR middle-end/85956
23740 PR lto/88733
23741 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
23742 field.
23743 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
23744 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
23745 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
23746 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
23747
23748 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
23749
23750 PR rtl-optimization/87305
23751 * lra-assigns.c
23752 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
23753 for little endian pseudos used as paradoxical subreg.
23754
23755 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23756
23757 PR tree-optimization/88693
23758 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
23759 for STRING_CSTs that don't contain any NUL characters in the first
23760 TREE_STRING_LENGTH bytes.
23761
23762 2019-01-11 Alan Modra <amodra@gmail.com>
23763
23764 PR 88777
23765 PR 88614
23766 * genattrtab.c (min_fn): Don't translate values.
23767 (min_attr_value): Return INT_MAX when the value can't be calculated.
23768 Return minimum among any values that can be calculated.
23769 (max_attr_value): Adjust.
23770
23771 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23772
23773 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
23774
23775 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23776
23777 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23778 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
23779 (aarch64_return_call_with_max_clobbers): New function.
23780 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
23781 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
23782 argument.
23783 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
23784 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
23785 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
23786 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
23787 * cselib.c (cselib_process_insn): Add argument to
23788 targetm.hard_regno_call_part_clobbered call.
23789 * ira-conflicts.c (ira_build_conflicts): Ditto.
23790 * ira-costs.c (ira_tune_allocno_costs): Ditto.
23791 * lra-constraints.c (inherit_reload_reg): Ditto.
23792 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
23793 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
23794 argument. Call targetm.return_call_with_max_clobbers.
23795 Add argument to targetm.hard_regno_call_part_clobbered call.
23796 (calls_have_same_clobbers_p): New function.
23797 (process_bb_lives): Add call_insn and last_call_insn variables.
23798 Pass call_insn to check_pseudos_live_through_calls.
23799 Modify if stmt to check targetm.return_call_with_max_clobbers.
23800 Update setting of flush variable.
23801 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
23802 to false.
23803 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
23804 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
23805 targetm.hard_regno_call_part_clobbered call.
23806 * reginfo.c (choose_hard_reg_mode): Ditto.
23807 * regrename.c (check_new_reg_p): Ditto.
23808 * reload.c (find_equiv_reg): Ditto.
23809 * reload1.c (emit_reload_insns): Ditto.
23810 * sched-deps.c (deps_analyze_insn): Ditto.
23811 * sel-sched.c (init_regs_for_mode): Ditto.
23812 (mark_unavailable_hard_regs): Ditto.
23813 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
23814 * target.def (hard_regno_call_part_clobbered): Add insn argument.
23815 (return_call_with_max_clobbers): New target function.
23816 * doc/tm.texi: Regenerate.
23817 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
23818 * hooks.c (hook_bool_uint_mode_false): Change to
23819 hook_bool_insn_uint_mode_false.
23820 * hooks.h (hook_bool_uint_mode_false): Ditto.
23821
23822 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23823
23824 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23825 (aarch64_remove_extra_call_preserved_regs): New function.
23826 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
23827 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
23828 * doc/tm.texi: Regenerate.
23829 * final.c (get_call_reg_set_usage): Call new hook.
23830 * target.def (remove_extra_call_preserved_regs): New hook.
23831 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
23832 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
23833
23834 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23835
23836 PR bootstrap/88714
23837 * passes.c (finish_optimization_passes): Call print_combine_total_stats
23838 inside of pass_combine_1 dump rather than pass_profile_1.
23839
23840 2019-01-11 Tom de Vries <tdevries@suse.de>
23841
23842 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
23843 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
23844 (PTX_NUM_PER_WORKER_BARRIERS): Define.
23845 (nvptx_apply_dim_limits): Prevent vector_length 64 and
23846 num_workers 16.
23847
23848 2019-01-11 Tom de Vries <tdevries@suse.de>
23849
23850 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
23851
23852 2019-01-11 Jan Beulich <jbeulich@suse.com>
23853
23854 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
23855 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
23856 sse2_cvtsi2sd): Add {l}.
23857 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
23858 syntax.
23859
23860 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23861
23862 PR target/88785
23863 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
23864 define_expand.
23865 (*float<floatunssuffix>v2div2sf2): New define_insn.
23866 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
23867 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
23868 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
23869 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
23870 match_operands with "const0_operand" "C".
23871
23872 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23873
23874 * config/aarch64/aarch64-builtins.c
23875 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
23876 (aarch64_init_simd_builtins): ...Here
23877
23878 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
23879
23880 PR rtl-optimization/87305
23881 * lra-assigns.c
23882 (setup_live_pseudos_and_spill_after_risky_transforms): Check
23883 allocation for big endian pseudos used as paradoxical subregs and
23884 spill them if it is wrong.
23885 * lra-constraints.c (lra_constraints): Add a comment.
23886
23887 2019-01-10 Richard Biener <rguenther@suse.de>
23888
23889 PR tree-optimization/88792
23890 * tree-ssa-pre.c (get_representative_for): Do not return a
23891 value-number here.
23892
23893 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23894
23895 PR middle-end/84877
23896 PR bootstrap/88450
23897 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
23898 (assign_parm_setup_block): Do the argument slot realignment here
23899 instead.
23900
23901 2019-01-10 Stefan Agner <stefan@agner.ch>
23902
23903 PR target/88648
23904 * config/arm/arm.c (arm_option_override_internal): Force
23905 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
23906
23907 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23908
23909 PR c/88568
23910 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
23911 DECL_EXTERNAL.
23912
23913 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23914
23915 * config/arm/arm-builtins.c
23916 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
23917 (MAC_LANE_PAIR_QUALIFIERS): New.
23918 (arm_expand_builtin_args): Use it.
23919 (arm_expand_builtin_1): Likewise.
23920 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
23921 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
23922 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
23923 * config/arm/arm_neon.h:
23924 (vcadd_rot90_f16): New.
23925 (vcaddq_rot90_f16): New.
23926 (vcadd_rot270_f16): New.
23927 (vcaddq_rot270_f16): New.
23928 (vcmla_f16): New.
23929 (vcmlaq_f16): New.
23930 (vcmla_lane_f16): New.
23931 (vcmla_laneq_f16): New.
23932 (vcmlaq_lane_f16): New.
23933 (vcmlaq_laneq_f16): New.
23934 (vcmla_rot90_f16): New.
23935 (vcmlaq_rot90_f16): New.
23936 (vcmla_rot90_lane_f16): New.
23937 (vcmla_rot90_laneq_f16): New.
23938 (vcmlaq_rot90_lane_f16): New.
23939 (vcmlaq_rot90_laneq_f16): New.
23940 (vcmla_rot180_f16): New.
23941 (vcmlaq_rot180_f16): New.
23942 (vcmla_rot180_lane_f16): New.
23943 (vcmla_rot180_laneq_f16): New.
23944 (vcmlaq_rot180_lane_f16): New.
23945 (vcmlaq_rot180_laneq_f16): New.
23946 (vcmla_rot270_f16): New.
23947 (vcmlaq_rot270_f16): New.
23948 (vcmla_rot270_lane_f16): New.
23949 (vcmla_rot270_laneq_f16): New.
23950 (vcmlaq_rot270_lane_f16): New.
23951 (vcmlaq_rot270_laneq_f16): New.
23952 (vcadd_rot90_f32): New.
23953 (vcaddq_rot90_f32): New.
23954 (vcadd_rot270_f32): New.
23955 (vcaddq_rot270_f32): New.
23956 (vcmla_f32): New.
23957 (vcmlaq_f32): New.
23958 (vcmla_lane_f32): New.
23959 (vcmla_laneq_f32): New.
23960 (vcmlaq_lane_f32): New.
23961 (vcmlaq_laneq_f32): New.
23962 (vcmla_rot90_f32): New.
23963 (vcmlaq_rot90_f32): New.
23964 (vcmla_rot90_lane_f32): New.
23965 (vcmla_rot90_laneq_f32): New.
23966 (vcmlaq_rot90_lane_f32): New.
23967 (vcmlaq_rot90_laneq_f32): New.
23968 (vcmla_rot180_f32): New.
23969 (vcmlaq_rot180_f32): New.
23970 (vcmla_rot180_lane_f32): New.
23971 (vcmla_rot180_laneq_f32): New.
23972 (vcmlaq_rot180_lane_f32): New.
23973 (vcmlaq_rot180_laneq_f32): New.
23974 (vcmla_rot270_f32): New.
23975 (vcmlaq_rot270_f32): New.
23976 (vcmla_rot270_lane_f32): New.
23977 (vcmla_rot270_laneq_f32): New.
23978 (vcmlaq_rot270_lane_f32): New.
23979 (vcmlaq_rot270_laneq_f32): New.
23980 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
23981 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
23982 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
23983 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
23984 vcmlaq_lane270): New.
23985 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23986 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
23987 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
23988 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
23989 (arm_option_reconfigure_globals): Use them.
23990 * config/arm/iterators.md (VDF, VQ_HSF): New.
23991 (VCADD, VCMLA): New.
23992 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
23993 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
23994 New.
23995 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
23996 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
23997
23998 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23999
24000 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
24001 Add qualifier_lane_pair_index.
24002 (emit-rtl.h): Include.
24003 (TYPES_QUADOP_LANE_PAIR): New.
24004 (aarch64_simd_expand_args): Use it.
24005 (aarch64_simd_expand_builtin): Likewise.
24006 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
24007 New.
24008 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
24009 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
24010 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
24011 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
24012 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
24013 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
24014 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
24015 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
24016 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
24017 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
24018 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
24019 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
24020 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
24021 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24022 Add __ARM_FEATURE_COMPLEX.
24023 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
24024 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
24025 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
24026 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24027 fcmlaq_lane270): New.
24028 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24029 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
24030 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
24031 * config/aarch64/arm_neon.h:
24032 (vcadd_rot90_f16): New.
24033 (vcaddq_rot90_f16): New.
24034 (vcadd_rot270_f16): New.
24035 (vcaddq_rot270_f16): New.
24036 (vcmla_f16): New.
24037 (vcmlaq_f16): New.
24038 (vcmla_lane_f16): New.
24039 (vcmla_laneq_f16): New.
24040 (vcmlaq_lane_f16): New.
24041 (vcmlaq_rot90_lane_f16): New.
24042 (vcmla_rot90_laneq_f16): New.
24043 (vcmla_rot90_lane_f16): New.
24044 (vcmlaq_rot90_f16): New.
24045 (vcmla_rot90_f16): New.
24046 (vcmlaq_laneq_f16): New.
24047 (vcmla_rot180_laneq_f16): New.
24048 (vcmla_rot180_lane_f16): New.
24049 (vcmlaq_rot180_f16): New.
24050 (vcmla_rot180_f16): New.
24051 (vcmlaq_rot90_laneq_f16): New.
24052 (vcmlaq_rot270_laneq_f16): New.
24053 (vcmlaq_rot270_lane_f16): New.
24054 (vcmla_rot270_laneq_f16): New.
24055 (vcmlaq_rot270_f16): New.
24056 (vcmla_rot270_f16): New.
24057 (vcmlaq_rot180_laneq_f16): New.
24058 (vcmlaq_rot180_lane_f16): New.
24059 (vcmla_rot270_lane_f16): New.
24060 (vcadd_rot90_f32): New.
24061 (vcaddq_rot90_f32): New.
24062 (vcaddq_rot90_f64): New.
24063 (vcadd_rot270_f32): New.
24064 (vcaddq_rot270_f32): New.
24065 (vcaddq_rot270_f64): New.
24066 (vcmla_f32): New.
24067 (vcmlaq_f32): New.
24068 (vcmlaq_f64): New.
24069 (vcmla_lane_f32): New.
24070 (vcmla_laneq_f32): New.
24071 (vcmlaq_lane_f32): New.
24072 (vcmlaq_laneq_f32): New.
24073 (vcmla_rot90_f32): New.
24074 (vcmlaq_rot90_f32): New.
24075 (vcmlaq_rot90_f64): New.
24076 (vcmla_rot90_lane_f32): New.
24077 (vcmla_rot90_laneq_f32): New.
24078 (vcmlaq_rot90_lane_f32): New.
24079 (vcmlaq_rot90_laneq_f32): New.
24080 (vcmla_rot180_f32): New.
24081 (vcmlaq_rot180_f32): New.
24082 (vcmlaq_rot180_f64): New.
24083 (vcmla_rot180_lane_f32): New.
24084 (vcmla_rot180_laneq_f32): New.
24085 (vcmlaq_rot180_lane_f32): New.
24086 (vcmlaq_rot180_laneq_f32): New.
24087 (vcmla_rot270_f32): New.
24088 (vcmlaq_rot270_f32): New.
24089 (vcmlaq_rot270_f64): New.
24090 (vcmla_rot270_lane_f32): New.
24091 (vcmla_rot270_laneq_f32): New.
24092 (vcmlaq_rot270_lane_f32): New.
24093 (vcmlaq_rot270_laneq_f32): New.
24094 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
24095 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
24096 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
24097 (FCADD, FCMLA): New.
24098 (rot): New.
24099 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
24100
24101 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
24102
24103 PR other/16615
24104
24105 * config/pa/pa.c: Change "can not" to "cannot".
24106 * gimple-ssa-evrp-analyze.c: Likewise.
24107 * ipa-icf.c: Likewise.
24108 * ipa-polymorphic-call.c: Likewise.
24109 * ipa-pure-const.c: Likewise.
24110 * lra-constraints.c: Likewise.
24111 * lra-remat.c: Likewise.
24112 * reload1.c: Likewise.
24113 * reorg.c: Likewise.
24114 * tree-ssa-uninit.c: Likewise.
24115
24116 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
24117
24118 PR other/16615
24119
24120 * Makefile.in: Mechanically replace "can not" with "cannot".
24121 * alias.c: Likewise.
24122 * builtins.c: Likewise.
24123 * calls.c: Likewise.
24124 * cgraph.c: Likewise.
24125 * cgraph.h: Likewise.
24126 * cgraphclones.c: Likewise.
24127 * cgraphunit.c: Likewise.
24128 * combine-stack-adj.c: Likewise.
24129 * combine.c: Likewise.
24130 * common/config/i386/i386-common.c: Likewise.
24131 * config/aarch64/aarch64.c: Likewise.
24132 * config/alpha/sync.md: Likewise.
24133 * config/arc/arc.c: Likewise.
24134 * config/arc/predicates.md: Likewise.
24135 * config/arm/arm-c.c: Likewise.
24136 * config/arm/arm.c: Likewise.
24137 * config/arm/arm.h: Likewise.
24138 * config/arm/arm.md: Likewise.
24139 * config/arm/cortex-r4f.md: Likewise.
24140 * config/csky/csky.c: Likewise.
24141 * config/csky/csky.h: Likewise.
24142 * config/darwin-f.c: Likewise.
24143 * config/epiphany/epiphany.md: Likewise.
24144 * config/i386/i386.c: Likewise.
24145 * config/i386/sol2.h: Likewise.
24146 * config/m68k/m68k.c: Likewise.
24147 * config/mcore/mcore.h: Likewise.
24148 * config/microblaze/microblaze.md: Likewise.
24149 * config/mips/20kc.md: Likewise.
24150 * config/mips/sb1.md: Likewise.
24151 * config/nds32/nds32.c: Likewise.
24152 * config/nds32/predicates.md: Likewise.
24153 * config/pa/pa.c: Likewise.
24154 * config/rs6000/e300c2c3.md: Likewise.
24155 * config/rs6000/rs6000.c: Likewise.
24156 * config/s390/s390.h: Likewise.
24157 * config/sh/sh.c: Likewise.
24158 * config/sh/sh.md: Likewise.
24159 * config/spu/vmx2spu.h: Likewise.
24160 * cprop.c: Likewise.
24161 * dbxout.c: Likewise.
24162 * df-scan.c: Likewise.
24163 * doc/cfg.texi: Likewise.
24164 * doc/extend.texi: Likewise.
24165 * doc/fragments.texi: Likewise.
24166 * doc/gty.texi: Likewise.
24167 * doc/invoke.texi: Likewise.
24168 * doc/lto.texi: Likewise.
24169 * doc/md.texi: Likewise.
24170 * doc/objc.texi: Likewise.
24171 * doc/rtl.texi: Likewise.
24172 * doc/tm.texi: Likewise.
24173 * dse.c: Likewise.
24174 * emit-rtl.c: Likewise.
24175 * emit-rtl.h: Likewise.
24176 * except.c: Likewise.
24177 * expmed.c: Likewise.
24178 * expr.c: Likewise.
24179 * fold-const.c: Likewise.
24180 * genautomata.c: Likewise.
24181 * gimple-fold.c: Likewise.
24182 * hard-reg-set.h: Likewise.
24183 * ifcvt.c: Likewise.
24184 * ipa-comdats.c: Likewise.
24185 * ipa-cp.c: Likewise.
24186 * ipa-devirt.c: Likewise.
24187 * ipa-fnsummary.c: Likewise.
24188 * ipa-icf.c: Likewise.
24189 * ipa-inline-transform.c: Likewise.
24190 * ipa-inline.c: Likewise.
24191 * ipa-polymorphic-call.c: Likewise.
24192 * ipa-profile.c: Likewise.
24193 * ipa-prop.c: Likewise.
24194 * ipa-pure-const.c: Likewise.
24195 * ipa-reference.c: Likewise.
24196 * ipa-split.c: Likewise.
24197 * ipa-visibility.c: Likewise.
24198 * ipa.c: Likewise.
24199 * ira-build.c: Likewise.
24200 * ira-color.c: Likewise.
24201 * ira-conflicts.c: Likewise.
24202 * ira-costs.c: Likewise.
24203 * ira-int.h: Likewise.
24204 * ira-lives.c: Likewise.
24205 * ira.c: Likewise.
24206 * ira.h: Likewise.
24207 * loop-invariant.c: Likewise.
24208 * loop-unroll.c: Likewise.
24209 * lower-subreg.c: Likewise.
24210 * lra-assigns.c: Likewise.
24211 * lra-constraints.c: Likewise.
24212 * lra-eliminations.c: Likewise.
24213 * lra-lives.c: Likewise.
24214 * lra-remat.c: Likewise.
24215 * lra-spills.c: Likewise.
24216 * lra.c: Likewise.
24217 * lto-cgraph.c: Likewise.
24218 * lto-streamer-out.c: Likewise.
24219 * postreload-gcse.c: Likewise.
24220 * predict.c: Likewise.
24221 * profile-count.h: Likewise.
24222 * profile.c: Likewise.
24223 * recog.c: Likewise.
24224 * ree.c: Likewise.
24225 * reload.c: Likewise.
24226 * reload1.c: Likewise.
24227 * reorg.c: Likewise.
24228 * resource.c: Likewise.
24229 * rtl.def: Likewise.
24230 * rtl.h: Likewise.
24231 * rtlanal.c: Likewise.
24232 * sched-deps.c: Likewise.
24233 * sched-ebb.c: Likewise.
24234 * sched-rgn.c: Likewise.
24235 * sel-sched-ir.c: Likewise.
24236 * sel-sched.c: Likewise.
24237 * shrink-wrap.c: Likewise.
24238 * simplify-rtx.c: Likewise.
24239 * symtab.c: Likewise.
24240 * target.def: Likewise.
24241 * toplev.c: Likewise.
24242 * tree-call-cdce.c: Likewise.
24243 * tree-cfg.c: Likewise.
24244 * tree-complex.c: Likewise.
24245 * tree-core.h: Likewise.
24246 * tree-eh.c: Likewise.
24247 * tree-inline.c: Likewise.
24248 * tree-loop-distribution.c: Likewise.
24249 * tree-nrv.c: Likewise.
24250 * tree-profile.c: Likewise.
24251 * tree-sra.c: Likewise.
24252 * tree-ssa-alias.c: Likewise.
24253 * tree-ssa-dce.c: Likewise.
24254 * tree-ssa-dom.c: Likewise.
24255 * tree-ssa-forwprop.c: Likewise.
24256 * tree-ssa-loop-im.c: Likewise.
24257 * tree-ssa-loop-ivcanon.c: Likewise.
24258 * tree-ssa-loop-ivopts.c: Likewise.
24259 * tree-ssa-loop-niter.c: Likewise.
24260 * tree-ssa-phionlycprop.c: Likewise.
24261 * tree-ssa-phiopt.c: Likewise.
24262 * tree-ssa-propagate.c: Likewise.
24263 * tree-ssa-threadedge.c: Likewise.
24264 * tree-ssa-threadupdate.c: Likewise.
24265 * tree-ssa-uninit.c: Likewise.
24266 * tree-ssanames.c: Likewise.
24267 * tree-streamer-out.c: Likewise.
24268 * tree.c: Likewise.
24269 * tree.h: Likewise.
24270 * vr-values.c: Likewise.
24271
24272 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
24273
24274 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
24275 (ix86_split_xorsign): Ditto.
24276 * config/i386/i386.c (ix86_expand_xorsign): New function.
24277 (ix86_split_xorsign): Ditto.
24278 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
24279 (xorsign<mode>3): New expander.
24280 (xorsign<mode>3_1): New insn_and_split pattern.
24281 * config/i386/sse.md (xorsign<mode>3): New expander.
24282
24283 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24284
24285 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
24286 (*tablejump_sp64): Likewise.
24287 (*tablejump<P:mode>): ...this.
24288 (*call_address_sp32): Merge into...
24289 (*call_address_sp64): Likewise.
24290 (*call_address<P:mode>): ...this.
24291 (*call_symbolic_sp32): Merge into...
24292 (*call_symbolic_sp64): Likewise.
24293 (*call_symbolic<P:mode>): ...this.
24294 (call_value): Remove constraint and add predicate.
24295 (*call_value_address_sp32): Merge into...
24296 (*call_value_address_sp64): Likewise.
24297 (*call_value_address<P:mode>): ...this.
24298 (*call_value_symbolic_sp32): Merge into...
24299 (*call_value_symbolic_sp64): Likewise.
24300 (*call_value_symbolic<P:mode>): ...this.
24301 (*sibcall_symbolic_sp32): Merge into...
24302 (*sibcall_symbolic_sp64): Likewise.
24303 (*sibcall_symbolic<P:mode>): ...this.
24304 (sibcall_value): Remove constraint and add predicate.
24305 (*sibcall_value_symbolic_sp32): Merge into...
24306 (*sibcall_value_symbolic_sp64): Likewise.
24307 (*sibcall_value_symbolic<P:mode>): ...this.
24308 (window_save): Minor tweak.
24309 (*branch_sp32): Merge into...
24310 (*branch_sp64): Likewise.
24311 (*branch<P:mode>): ...this.
24312
24313 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24314 James Clarke <jrtc27@jrtc27.com>
24315
24316 PR target/84010
24317 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
24318 consistently in TLS address generation and adjust code to the renaming
24319 of patterns. Mark calls to __tls_get_addr as const.
24320 * config/sparc/sparc.md (tgd_hi22): Turn into...
24321 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
24322 (tgd_lo10): Turn into...
24323 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
24324 (tgd_add32): Merge into...
24325 (tgd_add64): Likewise.
24326 (tgd_add<P:mode>): ...this and use Pmode throughout.
24327 (tldm_hi22): Turn into...
24328 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
24329 (tldm_lo10): Turn into...
24330 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
24331 (tldm_add32): Merge into...
24332 (tldm_add64): Likewise.
24333 (tldm_add<P:mode>): ...this and use Pmode throughout.
24334 (tldm_call32): Merge into...
24335 (tldm_call64): Likewise.
24336 (tldm_call<P:mode>): ...this and use Pmode throughout.
24337 (tldo_hix22): Turn into...
24338 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
24339 (tldo_lox10): Turn into...
24340 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
24341 (tldo_add32): Merge into...
24342 (tldo_add64): Likewise.
24343 (tldo_add<P:mode>): ...this and use Pmode throughout.
24344 (tie_hi22): Turn into...
24345 (tie_hi22<P:mode>): ...this and use Pmode throughout.
24346 (tie_lo10): Turn into...
24347 (tie_lo10<P:mode>): ...this and use Pmode throughout.
24348 (tie_ld64): Use DImode throughout.
24349 (tie_add32): Merge into...
24350 (tie_add64): Likewise.
24351 (tie_add<P:mode>): ...this and use Pmode throughout.
24352 (tle_hix22_sp32): Merge into...
24353 (tle_hix22_sp64): Likewise.
24354 (tle_hix22<P:mode>): ...this and use Pmode throughout.
24355 (tle_lox22_sp32): Merge into...
24356 (tle_lox22_sp64): Likewise.
24357 (tle_lox22<P:mode>): ...this and use Pmode throughout.
24358 (*tldo_ldub_sp32): Merge into...
24359 (*tldo_ldub_sp64): Likewise.
24360 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
24361 (*tldo_ldub1_sp32): Merge into...
24362 (*tldo_ldub1_sp64): Likewise.
24363 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
24364 (*tldo_ldub2_sp32): Merge into...
24365 (*tldo_ldub2_sp64): Likewise.
24366 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
24367 (*tldo_ldsb1_sp32): Merge into...
24368 (*tldo_ldsb1_sp64): Likewise.
24369 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
24370 (*tldo_ldsb2_sp32): Merge into...
24371 (*tldo_ldsb2_sp64): Likewise.
24372 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
24373 (*tldo_ldub3_sp64): Use DImode throughout.
24374 (*tldo_ldsb3_sp64): Likewise.
24375 (*tldo_lduh_sp32): Merge into...
24376 (*tldo_lduh_sp64): Likewise.
24377 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24378 (*tldo_lduh1_sp32): Merge into...
24379 (*tldo_lduh1_sp64): Likewise.
24380 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24381 (*tldo_ldsh1_sp32): Merge into...
24382 (*tldo_ldsh1_sp64): Likewise.
24383 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24384 (*tldo_lduh2_sp64): Use DImode throughout.
24385 (*tldo_ldsh2_sp64): Likewise.
24386 (*tldo_lduw_sp32): Merge into...
24387 (*tldo_lduw_sp64): Likewise.
24388 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24389 (*tldo_lduw1_sp64): Use DImode throughout.
24390 (*tldo_ldsw1_sp64): Likewise.
24391 (*tldo_ldx_sp64): Likewise.
24392 (*tldo_stb_sp32): Merge into...
24393 (*tldo_stb_sp64): Likewise.
24394 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24395 (*tldo_sth_sp32): Merge into...
24396 (*tldo_sth_sp64): Likewise.
24397 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24398 (*tldo_stw_sp32): Merge into...
24399 (*tldo_stw_sp64): Likewise.
24400 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24401 (*tldo_stx_sp64): Use DImode throughout.
24402
24403 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24404
24405 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24406 check configure option to set BTI and Return Address Signing.
24407 * configure.ac: Add --enable-standard-branch-protection and
24408 --disable-standard-branch-protection.
24409 * configure: Regenerated.
24410 * doc/install.texi: Document the same.
24411
24412 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24413 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24414
24415 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24416 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24417 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24418 if bti is enabled.
24419 * config/aarch64/aarch64-bti-insert.c: New file.
24420 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24421 pass.
24422 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24423 new bti pass.
24424 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24425 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24426 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24427 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24428
24429 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24430
24431 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24432 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24433 Disable bti for -mbranch-protection=none.
24434 (aarch64_handle_standard_branch_protection): Enable bti for
24435 -mbranch-protection=standard.
24436 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24437 -mbranch-protection.
24438 (aarch64_bti_enabled): Check if bti is enabled.
24439 * config/aarch64/aarch64.opt: Declare target variable.
24440 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24441
24442 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24443
24444 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24445 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24446 (aarch64_expand_epilogue): Likewise.
24447 (aarch64_output_mi_thunk): Likewise.
24448 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24449 TAILCALL_ADDR_REGS to x16 and x17.
24450 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24451
24452 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24453
24454 * config/aarch64/aarch64-option-extensions.def: Define
24455 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24456 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24457 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24458 (AARCH64_FL_PREDRES): New.
24459 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24460 AARCH64_FL_PREDRES by default.
24461 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24462
24463 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24464
24465 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24466 ARMv8.5-A.
24467 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24468 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24469 * doc/invoke.texi: Document ARMv8.5-A.
24470
24471 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24472
24473 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24474 (xorsign<mode>3): Likewise.
24475
24476 2019-01-09 Jelinek <jakub@redhat.com>
24477
24478 PR middle-end/88758
24479 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24480 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24481
24482 PR rtl-optimization/88331
24483 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24484 not currently_expanding_to_rtl.
24485
24486 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24487
24488 * doc/invoke.texi (-Os): Remove trailing spaces.
24489 (-finline-functions): Remove reference to -O2.
24490
24491 2019-01-08 Jakub Jelinek <jakub@redhat.com>
24492
24493 PR rtl-optimization/79593
24494 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24495
24496 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24497 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
24498
24499 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
24500
24501 PR bootstrap/88721
24502 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24503 to -1 on entry.
24504
24505 PR debug/88723
24506 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24507 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24508
24509 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
24510
24511 PR target/88717
24512 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24513 ix86_avx_u128_mode_entry.
24514
24515 2019-01-08 Martin Liska <mliska@suse.cz>
24516
24517 PR tree-optimization/88753
24518 * tree-switch-conversion.c (switch_conversion::build_one_array):
24519 Come up with local variable constructor. Convert first to
24520 type of constructor values.
24521
24522 2019-01-08 Richard Biener <rguenther@suse.de>
24523
24524 PR tree-optimization/86554
24525 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24526 rpo_avail): Move earlier.
24527 (visit_nary_op): When value-numbering to expressions
24528 with different overflow behavior make sure there's an
24529 available expression on the path.
24530
24531 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
24532
24533 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24534 aarch64_parse_branch_protection,
24535 struct aarch64_branch_protect_type,
24536 aarch64_handle_no_branch_protection,
24537 aarch64_handle_standard_branch_protection,
24538 aarch64_validate_mbranch_protection,
24539 aarch64_handle_pac_ret_protection,
24540 aarch64_handle_attr_branch_protection,
24541 accepted_branch_protection_string,
24542 aarch64_pac_ret_subtypes,
24543 aarch64_branch_protect_types,
24544 aarch64_handle_pac_ret_leaf): Define.
24545 (aarch64_override_options_after_change_1, aarch64_override_options):
24546 Add check for accepted_branch_protection_string.
24547 (aarch64_option_save): Save accepted_branch_protection_string.
24548 (aarch64_option_restore): Save accepted_branch_protection_string.
24549 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24550 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24551 msign-return-address.
24552 * doc/invoke.texi: Add mbranch-protection.
24553
24554 2019-01-08 Alan Modra <amodra@gmail.com>
24555
24556 PR target/88614
24557 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24558 Delete "unknownp" parameter. Adjust callers. Handle
24559 CONST_INT, PLUS, MINUS, and MULT.
24560 (attr_value_aligned): Renamed from or_attr_value.
24561 (min_attr_value): Return INT_MIN for unhandled rtl case..
24562 (min_fn): ..and translate to INT_MAX here.
24563 (write_length_unit_log): Modify to cope without "unknown".
24564 (write_attr_value): Handle IF_THEN_ELSE.
24565
24566 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24567
24568 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24569 optimization for masked stores.
24570
24571 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24572
24573 PR middle-end/88567
24574 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24575 output vector directly to duplicate_and_interleave instead of
24576 going through a temporary. Postpone insertion of ctor_seq to
24577 the end of the loop.
24578
24579 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
24580
24581 PR target/86891
24582 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24583 unsigned_p. Handle signed and unsigned overflow correction as
24584 required.
24585 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
24586 prototype.
24587 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
24588 for operand 2.
24589 (add<mode>3_compareV_imm): Make this callable for expanding.
24590 (subv<GPI:mode>4): Use register_operand for operand 1. Use
24591 aarch64_plus_operand for operand 2.
24592 (subv<GPI:mode>_insn): New insn pattern.
24593 (subv<GPI:mode>_imm): Likewise.
24594 (negv<GPI:mode>3): New expand pattern.
24595 (negv<GPI:mode>_insn): New insn pattern.
24596 (negv<GPI:mode>_cmp_only): Likewise.
24597 (cmpv<GPI:mode>_insn): Likewise.
24598 (subvti4): Use register_operand for operand 1. Update call to
24599 aarch64_expand_subvti.
24600 (usubvti4): Likewise.
24601 (negvti3): New expand pattern.
24602 (negdi_carryout): New insn pattern.
24603 (negvdi_carryinV): New insn pattern.
24604 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
24605 version the named version.
24606 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
24607 operands.
24608 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
24609 patterns.
24610 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
24611 patterns.
24612 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
24613 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
24614 (sub<mode>3_carryinCV): Delete.
24615 (sub<GPI:mode>3_carryinV): New expand pattern.
24616 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
24617
24618 2019-01-07 Richard Biener <rguenther@suse.de>
24619
24620 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
24621 of tree_operand_hash.
24622
24623 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24624
24625 PR tree-optimization/88598
24626 * tree.h (single_nonzero_element): Declare.
24627 * tree.c (single_nonzero_element): New function.
24628 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
24629 if I is the only nonzero element of CST.
24630
24631 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24632
24633 PR tree-optimization/88598
24634 * tree.h (initializer_each_zero_or_onep): Declare.
24635 * tree.c (initializer_each_zero_or_onep): New function.
24636 (signed_or_unsigned_type_for): Handle float types too.
24637 (unsigned_type_for, signed_type_for): Update comments accordingly.
24638 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
24639 x & { 0 or -1, 0 or -1, ... }.
24640
24641 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
24642
24643 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
24644 with x86_64-pc-linux-gnu.
24645
24646 2019-01-07 Tom de Vries <tdevries@suse.de>
24647
24648 PR target/85486
24649 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
24650 function.
24651 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
24652 routines.
24653
24654 2019-01-07 Jakub Jelinek <jakub@redhat.com>
24655
24656 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
24657 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
24658 TARGET_AVX512F as condition.
24659
24660 PR debug/88723
24661 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
24662 const_not_ok_for_debug_p target hook.
24663 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
24664 on UNSPEC and subexpressions thereof if all subexpressions of the
24665 UNSPEC are CONSTANT_P.
24666
24667 PR tree-optimization/88676
24668 * tree-ssa-phiopt.c (two_value_replacement): New function.
24669 (tree_ssa_phiopt_worker): Call it.
24670
24671 PR sanitizer/88619
24672 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
24673 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
24674
24675 PR c++/85052
24676 * tree-vect-generic.c: Include insn-config.h and recog.h.
24677 (expand_vector_piecewise): Add defaulted ret_type argument,
24678 if non-NULL, use that in preference to type for the result type.
24679 (expand_vector_parallel): Formatting fix.
24680 (do_vec_conversion, do_vec_narrowing_conversion,
24681 expand_vector_conversion): New functions.
24682 (expand_vector_operations_1): Call expand_vector_conversion
24683 for VEC_CONVERT ifn calls.
24684 * internal-fn.def (VEC_CONVERT): New internal function.
24685 * internal-fn.c (expand_VEC_CONVERT): New function.
24686 * fold-const-call.c (fold_const_vec_convert): New function.
24687 (fold_const_call): Use it for CFN_VEC_CONVERT.
24688 * doc/extend.texi (__builtin_convertvector): Document.
24689
24690 2019-01-07 Tom de Vries <tdevries@suse.de>
24691
24692 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
24693 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
24694 vector_red_partition, vector_red_sym): New global variables.
24695 (nvptx_option_override): Initialize vector_red_sym.
24696 (nvptx_declare_function_name): Restore red_partition register.
24697 (nvptx_file_end): Emit code to declare the vector reduction variables.
24698 (nvptx_output_red_partition): New function.
24699 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
24700 large vector reductions.
24701 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
24702 (nvptx_init_builtins): Add VECTOR_ADDR.
24703 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
24704 Handle nvptx_expand_shared_addr.
24705 (nvptx_get_shared_red_addr): Add vector argument and handle large
24706 vectors.
24707 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
24708 large vectors.
24709 (nvptx_goacc_reduction_init): Likewise.
24710 (nvptx_goacc_reduction_fini): Likewise.
24711 (nvptx_goacc_reduction_teardown): Likewise.
24712 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
24713 init,fini,teardown}.
24714 (nvptx_init_axis_predicate): Initialize vector_red_partition.
24715 (nvptx_set_current_function): Init vector_red_partition.
24716 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
24717 (nvptx_red_partition): New insn.
24718 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
24719
24720 2019-01-07 Tom de Vries <tdevries@suse.de>
24721
24722 PR target/85381
24723 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
24724 empty loops.
24725
24726 2019-01-07 Tom de Vries <tdevries@suse.de>
24727
24728 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
24729 (nvptx_option_override): Init oacc_bcast_partition.
24730 (nvptx_init_oacc_workers): New function.
24731 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
24732 (nvptx_needs_shared_bcast): New function.
24733 (nvptx_find_par): Generalize to enable vectors to use shared-memory
24734 to propagate state.
24735 (nvptx_shared_propagate): Initialize vector bcast partition and
24736 synchronization state.
24737 (nvptx_single): Generalize to enable vectors to use shared-memory
24738 to propagate state.
24739 (nvptx_process_pars): Likewise.
24740 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
24741 * config/nvptx/nvptx.h (struct machine_function): Add
24742 bcast_partition and sync_bar members.
24743
24744 2019-01-07 Tom de Vries <tdevries@suse.de>
24745
24746 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
24747 (nvptx_apply_dim_limits): New function.
24748 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
24749 PTX_WARP_SIZE.
24750
24751 2019-01-07 Tom de Vries <tdevries@suse.de>
24752
24753 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
24754 as late as possible.
24755
24756 2019-01-07 Tom de Vries <tdevries@suse.de>
24757
24758 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
24759 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
24760 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
24761 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
24762 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
24763
24764 2019-01-07 Tom de Vries <tdevries@suse.de>
24765
24766 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
24767
24768 2019-01-07 Tom de Vries <tdevries@suse.de>
24769
24770 * omp-offload.c (oacc_get_min_dim): New function.
24771 * omp-offload.h (oacc_get_min_dim): Declare.
24772
24773 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
24774
24775 PR target/88521
24776 * config/i386/i386.c (function_value_ms_64): Return small sturct in
24777 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
24778
24779 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24780
24781 PR tree-opt/86020
24782 Revert:
24783 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
24784
24785 * ipa-inline.c (edge_badness): Use inlined_time instead of
24786 inline_summaries->get.
24787
24788 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24789
24790 * opts.c (enable_fdo_optimizations): Enable
24791 version-loops-for-strides, loop-interchange, unrol-and-jam
24792 and tree-loop-distribution.
24793 * invoke.texi: Document newly enabled options.
24794
24795 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24796
24797 * doc/invoke.texi (max-inline-insns-small): New parameters.
24798 * ipa-inline.c (want_early_inline_function_p): simplify.
24799 (want_inline_small_function_p): Fix pasto from previous patch;
24800 use max-inline-insns-small bound.
24801 * params.def (max-inline-insns-small): New param.
24802 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
24803 variables correctly.
24804
24805 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24806
24807 * doc/invoke.texi: Document max-inline-insns-size,
24808 uninlined-function-insns, uninlined-function-time,
24809 uninlined-thunk-insns and uninlined-thunk-time.
24810 * params.def: Add max-inline-insns-size,
24811 uninlined-function-insns, uninlined-function-time,
24812 uninlined-thunk-insns and uninlined-thunk-time.
24813 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
24814 new parameters.
24815 * ipa-inline.c (can_inline_edge_by_limits_p,
24816 want_inline_small_function_p): Use new parameters.
24817
24818 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24819
24820 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
24821
24822 2019-01-05 Jakub Jelinek <jakub@redhat.com>
24823
24824 PR middle-end/82564
24825 PR target/88620
24826 * expr.c (expand_assignment): For calls returning VLA structures
24827 if to_rtx is not a MEM, force it into a stack temporary.
24828
24829 PR debug/88635
24830 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
24831 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
24832 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
24833 subexpressions of both operands.
24834 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
24835 subrtxes are CONSTANT_P.
24836 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
24837 2018-11-09 changes.
24838
24839 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
24840
24841 * params.def (hot-bb-count-ws-permille): Set to 990.
24842
24843 2019-01-04 Martin Sebor <msebor@redhat.com>
24844
24845 PR c/88546
24846 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
24847 leaf.
24848
24849 2019-01-04 Martin Sebor <msebor@redhat.com>
24850
24851 PR c/88363
24852 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
24853
24854 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24855
24856 * gdbinit.in: Turn off pagination for the skip commands, restore
24857 it to previous state afterwards.
24858
24859 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24860
24861 PR target/88594
24862 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
24863 of GET_MODE (opN) as modes of the libcall arguments.
24864
24865 2019-01-04 Jan Beulich <jbeulich@suse.com>
24866
24867 * config/i386/sse.md
24868 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
24869 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
24870 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24871 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24872 avx512f_vmcmp<mode>3<round_saeonly_name>,
24873 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
24874 avx512f_maskcmp<mode>3,
24875 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24876 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24877 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24878 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24879 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24880 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24881 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24882 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24883 <avx512>_testm<mode>3<mask_scalar_merge_name>,
24884 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
24885 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
24886 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
24887 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
24888 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
24889 avx512cd_maskb_vec_dup<mode>,
24890 avx512cd_maskw_vec_dup<mode>,
24891 avx512dq_fpclass<mode><mask_scalar_merge_name>,
24892 avx512dq_vmfpclass<mode>,
24893 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
24894 instead of =Yk.
24895
24896 2019-01-03 Martin Sebor <msebor@redhat.com>
24897
24898 PR tree-optimization/88659
24899 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
24900
24901 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24902
24903 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
24904 unaligned vsx and avoid lxvd2x/stxvd2x.
24905 (gen_lvx_v4si_move): New function.
24906
24907 2019-01-03 Tom de Vries <tdevries@suse.de>
24908
24909 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
24910 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
24911 function.
24912 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
24913
24914 2019-01-03 Tom de Vries <tdevries@suse.de>
24915
24916 * config/nvptx/nvptx.c (struct offload_attrs): New.
24917 (populate_offload_attrs): New function. Factor mask extraction out of
24918 nvptx_reorg. Add extraction of dimensions.
24919 (nvptx_reorg): Use populate_offload_attrs.
24920
24921 2019-01-03 Tom de Vries <tdevries@suse.de>
24922
24923 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
24924 cases for oacc_min_dims_p and routine_p. Add asserts for
24925 oacc_default_dims_p and offload_region_p.
24926
24927 2019-01-03 Tom de Vries <tdevries@suse.de>
24928
24929 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
24930 factored out of ...
24931 (nvptx_goacc_validate_dims): ... here.
24932
24933 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24934
24935 PR tree-optimization/85574
24936 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
24937 structure.
24938 (struct ssa_equip_hash_traits): Declare.
24939 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
24940
24941 2019-01-03 Jakub Jelinek <jakub@redhat.com>
24942
24943 PR debug/88644
24944 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
24945 change it to qualified_type.
24946
24947 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24948
24949 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
24950 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
24951
24952 2019-01-02 Martin Sebor <msebor@redhat.com>
24953 Jeff Law <law@redhat.com>
24954
24955 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
24956 (get_range_strlen_tree): Update appropriately.
24957 (get_range_strlen)
24958 * gimple-fold.h (get_range_strlen): Drop unused last argument.
24959
24960 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
24961 rather than set_range_info.
24962 * tree-ssa-strlen.c (set_strlen_range): Extracted from
24963 maybe_set_strlen_range. Handle potentially boundary crossing
24964 cases more conservatively.
24965 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
24966 Call set_strlen_range.
24967 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
24968
24969 PR middle-end/88663
24970 * gimple-fold.c (get_range_strlen): Update prototype to no longer
24971 need the flexp argument.
24972 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
24973 from calls to get_range_strlen. Update comments. Just update
24974 VAL for an unterminated const char array and let the reset of the
24975 code handle it normally. No longer try to set *flexp. Adjust
24976 return value.
24977 (get_range_strlen): Update for the new get_range_strlen API.
24978 (get_maxval_strlen): Similarly.
24979 (gimple_fold_builtin_strlen): Handle update meaning of return value
24980 from get_range_strlen.
24981 * gimple-ssa-sprintf.c (get_string_length): Update for the new
24982 get_range_strlen API.
24983
24984 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
24985
24986 PR lto/88130
24987 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
24988 false at WPA time when body was removed.
24989
24990 2019-01-02 Martin Liska <mliska@suse.cz>
24991
24992 PR tree-optimization/88650
24993 * predict.c (set_even_probabilities): Calculate probability
24994 remainer only when really used.
24995
24996 2019-01-02 Richard Biener <rguenther@suse.de>
24997
24998 PR middle-end/88651
24999 * tree-data-ref.c (analyze_subscript_affine_affine): Use
25000 widest_ints when mangling max_stmt_execution results.
25001
25002 2019-01-02 Richard Biener <rguenther@suse.de>
25003
25004 PR tree-optimization/88621
25005 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
25006 bitfields when canoncalizing.
25007
25008 2019-01-02 Richard Biener <rguenther@suse.de>
25009
25010 PR target/87545
25011 * config/i386/x86-tune-costs.h (intel_cost): Adjust
25012 cost of cheap SSE instruction.
25013
25014 2019-01-02 Richard Biener <rguenther@suse.de>
25015
25016 PR ipa/85574
25017 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
25018 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
25019 function.
25020 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
25021 set after UIDs before splitting them.
25022
25023 2019-01-01 Martin Sebor <msebor@redhat.com>
25024 Jeff Law <law@redhat.com>
25025
25026 * gimple-fold.c (get_range_strlen_tree): Record if the computed
25027 length is optimistic. If it is, then arrange to compute the
25028 conservative length as well.
25029
25030 * gimple-fold.h (get_range_strlen): Update prototype.
25031 * builtins.c (check_access): Update call to get_range_strlen to use
25032 c_strlen_data pointer. Change various variable accesses to instead
25033 pull data from the c_strlen_data structure.
25034 (check_strncat_sizes, expand_builtin_strncat): Likewise.
25035 * calls.c (maybe_warn_nonstring_arg): Likewise.
25036 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
25037 minimum length if maximum lengh is unknown.
25038 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
25039 that used c_strlen, it's no longer needed. Restructure slightly.
25040 (format_string): Set unlikely range appropriately.
25041 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
25042 formatting issues.
25043 (get_range_strlen): Accept c_strlen_data pointer for external
25044 call sites as well. Pass through to call to internal get_range_strlen.
25045 Adjust minlen, maxlen and maxbound as needed.
25046 (get_maxval_strlen): Update comments.
25047 (gimple_fold_builtin_strlen): Update call to get_range_strlen
25048 to use c_strlen_data pointer. Change variable accesses to instead
25049 use c_strlen_data data members.
25050
25051 * gimple-fold.c (get_range_strlen): Update prototype.
25052 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
25053 local variables. Use pdata to return information to caller.
25054 Update calls to get_range_strlen. Update pdata->maxbound.
25055 (get_range_strlen -- static version): Similarly.
25056 (get_range_strlen -- extern version): Update for internal
25057 get_range_strlen API change. Convert to external data format.
25058 (get_maxval_strlen): Similarly.
25059
25060 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
25061
25062 * coverage.c (get_coverage_counts): Use current_function_decl.
25063 * profile.c (read_thunk_profile): New function.
25064 (branch_prob): Add THUNK parameter.
25065 * tree-profile.c (tree_profiling): Handle thunks.
25066 * value-prof.c (init_node_map): Handle thunks.
25067 * value-prof.h (branch_prob): Upate prototype.
25068 (read_thunk_profile): Declare.
25069
25070 2019-01-01 Jakub Jelinek <jakub@redhat.com>
25071
25072 Update copyright years.
25073
25074 * gcc.c (process_command): Update copyright notice dates.
25075 * gcov-dump.c (print_version): Ditto.
25076 * gcov.c (print_version): Ditto.
25077 * gcov-tool.c (print_version): Ditto.
25078 * gengtype.c (create_file): Ditto.
25079 * doc/cpp.texi: Bump @copying's copyright year.
25080 * doc/cppinternals.texi: Ditto.
25081 * doc/gcc.texi: Ditto.
25082 * doc/gccint.texi: Ditto.
25083 * doc/gcov.texi: Ditto.
25084 * doc/install.texi: Ditto.
25085 * doc/invoke.texi: Ditto.
25086 \f
25087 Copyright (C) 2019 Free Software Foundation, Inc.
25088
25089 Copying and distribution of this file, with or without modification,
25090 are permitted in any medium without royalty provided the copyright
25091 notice and this notice are preserved.