Remove global call sets: reload.c
[gcc.git] / gcc / ChangeLog
1 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2
3 * reload.c: Include function-abi.h.
4 (find_equiv_reg): Use clobbers_reg_p to test whether either
5 of the equivalent registers is clobbered by a call.
6 * reload1.c: Include function-abi.h.
7 (reg_reloaded_call_part_clobbered): Delete.
8 (reload): Use crtl->abi to test which registers would need
9 saving in the prologue before use.
10 (find_reg): Likewise.
11 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
12 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
13 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
14
15 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
16
17 * regrename.h (du_head::call_clobber_mask): New field.
18 (du_head::need_caller_save_reg): Replace with...
19 (du_head::call_abis): ...this new field.
20 * regrename.c: Include function-abi.h.
21 (call_clobbered_in_chain_p): New function.
22 (check_new_reg_p): Use crtl->abi when deciding whether a register
23 is free for use after RA. Use call_clobbered_in_chain_p to test
24 whether a candidate register would be clobbered by a call.
25 (find_rename_reg): Don't add call-clobber conflicts here.
26 (rename_chains): Check call_abis instead of need_caller_save_reg.
27 (merge_chains): Update for changes to du_head.
28 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
29 target. Record the ABI identifier in call_abis and the set of
30 fully or partially clobbered registers in call_clobber_mask.
31 Add fully-clobbered registers to hard_conflicts here rather
32 than in find_rename_reg.
33 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
34 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
35 * config/aarch64/falkor-tag-collision-avoidance.c: Include
36 function-abi.h.
37 * config/c6x/c6x.c: Likewise.
38
39 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
40
41 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
42 mode of the register when deciding whether it is no longer
43 available after a call.
44
45 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
46
47 * recog.c: Include function-abi.h.
48 (peep2_find_free_register): Use crtl->abi when deciding whether
49 a register is free for use after RA.
50
51 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
52
53 * postreload-gcse.c: Include regs.h and function-abi.h.
54 (record_opr_changes): Use insn_callee_abi to get the ABI of the
55 call insn target. Conservatively assume that partially-clobbered
56 registers are altered.
57
58 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
59
60 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
61 when deciding whether a register is free for use after RA.
62 (reload_combine): Remove unnecessary use of fixed_reg_set.
63 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
64 call insn target. Use reg_mode when testing whether a register
65 is no longer available.
66
67 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
68
69 * target.def (return_call_with_max_clobbers): Delete.
70 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
71 * doc/tm.texi: Regenerate.
72 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
73 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
74 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
75 (lra_reg::call_insn): Delete.
76 * lra.c: Include function-abi.h.
77 (initialize_lra_reg_info_element): Don't initialize the fields above.
78 (lra): Use crtl->abi to test whether the current function needs to
79 save a register in the prologue. Remove special pre-inheritance
80 lra_create_live_ranges pass for flag_ipa_ra.
81 * lra-assigns.c: Include function-abi.h
82 (find_hard_regno_for_1): Use crtl->abi to test whether the current
83 function needs to save a register in the prologue.
84 (lra_assign): Assert that registers aren't allocated to a
85 conflicting register, rather than checking only for overlaps
86 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
87 and for registers that are not live across a call.
88 * lra-constraints.c (last_call_for_abi): New variable.
89 (full_and_partial_call_clobbers): Likewise.
90 (setup_next_usage_insn): Remove the register from
91 full_and_partial_call_clobbers.
92 (need_for_call_save_p): Use call_clobbered_in_region_p to test
93 whether the register needs a caller save.
94 (need_for_split_p): Use full_and_partial_reg_clobbers instead
95 of call_used_or_fixed_regs.
96 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
97 full_and_partial_call_clobbers.
98 * lra-lives.c (check_pseudos_live_through_calls): Replace
99 last_call_used_reg_set and call_insn arguments with an abi argument.
100 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
101 as the set of conflicting registers.
102 (calls_have_same_clobbers_p): Delete.
103 (process_bb_lives): Track the ABI of the last call instead of an
104 insn/HARD_REG_SET pair. Update calls to
105 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
106 the set of registers that could be clobbered by an EH edge.
107 Include partially-clobbered as well as fully-clobbered registers.
108 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
109 * lra-remat.c: Include function-abi.h.
110 (call_used_regs_arr_len, call_used_regs_arr): Delete.
111 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
112 registers and bitmap_view to combine them into dead_regs.
113 (call_used_input_regno_present_p): Take a function_abi argument
114 and use it to test whether a register is call-clobbered.
115 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
116 call insn target. Update tje call to call_used_input_regno_present_p.
117 (do_remat): Likewise.
118 (lra_remat): Remove the initialization of call_used_regs_arr_len
119 and call_used_regs_arr.
120
121 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
122
123 * loop-iv.c: Include regs.h and function-abi.h.
124 (simplify_using_initial_values): Use insn_callee_abi to get the
125 ABI of the call insn target. Conservatively assume that
126 partially-clobbered registers are altered.
127
128 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
129
130 * function-abi.h (call_clobbers_in_region): Declare.
131 (call_clobbered_in_region_p): New function.
132 * function-abi.cc (call_clobbers_in_region): Likewise.
133 * ira-int.h: Include function-abi.h.
134 (ira_allocno::crossed_calls_abis): New field.
135 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
136 (ira_need_caller_save_regs): New function.
137 (ira_need_caller_save_p): Likewise.
138 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
139 of call_used_or_fixed_regs.
140 (do_reload): Use crtl->abi to test whether the current function
141 needs to save a register in the prologue. Count registers that
142 need to be saved rather than registers that don't.
143 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
144 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
145 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
146 (propagate_some_info_from_allocno): Likewise.
147 (copy_info_to_removed_store_destinations): Likewise.
148 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
149 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
150 (ira_build): Use ira_need_caller_save_regs instead of
151 call_used_or_fixed_regs.
152 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
153 whether the current function would need to save a register
154 before using it.
155 (calculate_spill_cost): Likewise.
156 (allocno_reload_assign): Use ira_need_caller_save_regs and
157 ira_need_caller_save_p instead of call_used_or_fixed_regs.
158 * ira-conflicts.c (ira_build_conflicts): Use
159 ira_need_caller_save_regs rather than call_used_or_fixed_regs
160 as the set of call-clobbered registers. Remove the
161 call_used_or_fixed_regs mask from the calculation of
162 temp_hard_reg_set and mask its use instead. Remove special
163 handling of partially-clobbered registers.
164 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
165 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
166 calculate the set of conflicting registers for calls that
167 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
168 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
169 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
170 Use eh_edge_abi to calculate the set of registers that could
171 be clobbered by an EH edge. Include partially-clobbered as
172 well as fully-clobbered registers.
173
174 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
175
176 * haifa-sched.c: Include function-abi.h.
177 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
178 the function would need to save a register before using it.
179
180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
181
182 * gcse.c: Include function-abi.h.
183 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
184 the call insn target. Invalidate partially call-clobbered
185 registers as well as fully call-clobbered ones.
186
187 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
188
189 * function.c (aggregate_value_p): Work out which ABI the
190 function is using before testing which registers are at least
191 partly preserved by a call.
192
193 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
194
195 * early-remat.c: Include regs.h and function-abi.h.
196 (early_remat::maybe_add_candidate): Don't check for call-clobbered
197 registers here.
198 (early_remat::restrict_remat_for_unavail_regs): New function.
199 (early_remat::restrict_remat_for_call): Likewise.
200 (early_remat::process_block): Before calling emit_remat_insns
201 for a previous call in the block, invalidate any candidates
202 that would clobber call-preserved registers.
203 (early_remat::emit_remat_insns_for_block): Likewise for the
204 final call in a block. Do the same thing for live-in registers
205 when calling emit_remat_insns at the head of a block.
206
207 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
208
209 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
210 whether the current function needs to save at least part of a
211 register before using it.
212 (df_get_exit_block_use_set): Likewise for epilogue restores.
213
214 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
215
216 * df-problems.c: Include regs.h and function-abi.h.
217 (df_rd_problem_data): Rename sparse_invalidated_by_call to
218 sparse_invalidated_by_eh and dense_invalidated_by_call to
219 dense_invalidated_by_eh.
220 (df_print_bb_index): Update accordingly.
221 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
222 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
223 that are clobbered by an EH edge. Clobber partially-clobbered
224 registers as well as fully-clobbered ones.
225 (df_md_confluence_n): Likewise.
226 (df_rd_local_compute): Likewise. Update for changes to
227 df_rd_problem_data.
228 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
229 of registers that are clobbered by an EH edge. Includde partially-
230 clobbered registers as well as fully-clobbered ones.
231
232 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
233
234 * cselib.c (cselib_process_insn): If we know what mode a
235 register was set in, check whether it is clobbered in that
236 mode by a call. Only fall back to reg_raw_mode if that fails.
237
238 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
239
240 * cse.c: Include regs.h and function-abi.h.
241 (invalidate_for_call): Take the call insn as an argument.
242 Use insn_callee_abi to get the ABI of the call and invalidate
243 partially clobbered registers as well as fully clobbered ones.
244 (cse_insn): Update call accordingly.
245
246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
247
248 * combine.c: Include function-abi.h.
249 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
250 of the target of call insns. Invalidate partially-clobbered
251 registers as well as fully-clobbered ones.
252
253 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
254
255 * cfgloopanal.c: Include regs.h and function-abi.h.
256 (init_set_costs): Use default_function_abi to test whether
257 a general register is call-clobbered.
258
259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
260
261 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
262 instead of the call-clobbered sets.
263
264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
265
266 * caller-save.c (setup_save_areas): Remove redundant |s of
267 fixed_reg_set.
268 (save_call_clobbered_regs): Likewise. Use the call ABI rather
269 than call_used_or_fixed_regs to decide whether a REG_RETURNED
270 value is useful.
271
272 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
273
274 * rtl.h (predefined_function_abi): Declare.
275 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
276 instead of a boolean call_save flag.
277 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
278 accordingly.
279 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
280 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
281 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
282 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
283 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
284 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
285 * reginfo.c (init_reg_modes_target): Likewise.
286 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
287 instead of a boolean call_save flag.
288 * targhooks.c: Include function-abi.h.
289 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
290 using eh_edge_abi to choose the mode.
291
292 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
293
294 * target.def (hard_regno_call_part_clobbered): Take an ABI
295 identifier instead of an rtx_insn.
296 * doc/tm.texi: Regenerate.
297 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
298 (hook_bool_uint_uint_mode_false): New function.
299 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
300 (hook_bool_uint_uint_mode_false): New function.
301 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
302 Take an ABI identifier instead of an rtx_insn.
303 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
304 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
305 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
306 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
307 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
308 Likewise.
309 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
310 * cselib.c: Include function-abi.h.
311 (cselib_process_insn): Update call to
312 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
313 to get the appropriate ABI identifier.
314 * function-abi.cc (predefined_function_abi::initialize): Update call
315 to targetm.hard_regno_call_part_clobbered.
316 * ira-conflicts.c (ira_build_conflicts): Likewise.
317 * ira-costs.c (ira_tune_allocno_costs): Likewise.
318 * lra-constraints.c: Include function-abi.h.
319 (need_for_call_save_p): Update call to
320 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
321 to get the appropriate ABI identifier.
322 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
323 * regcprop.c (copyprop_hardreg_forward_1): Update call
324 to targetm.hard_regno_call_part_clobbered.
325 * reginfo.c (choose_hard_reg_mode): Likewise.
326 * regrename.c (check_new_reg_p): Likewise.
327 * reload.c (find_equiv_reg): Likewise.
328 * reload1.c (emit_reload_insns): Likewise.
329 * sched-deps.c: Include function-abi.h.
330 (deps_analyze_insn): Update call to
331 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
332 to get the appropriate ABI identifier.
333 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
334 call to targetm.hard_regno_call_part_clobbered.
335 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
336
337 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
338
339 * config/i386/i386.c: Include function-abi.h.
340 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
341 if they preserve some 256-bit or 512-bit SSE registers.
342
343 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
344
345 * target.def (insn_callee_abi): New hook.
346 (remove_extra_call_preserved_regs): Delete.
347 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
348 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
349 * doc/tm.texi: Regenerate.
350 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
351 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
352 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
353 insn argument.
354 (aarch64_remove_extra_call_preserved_regs): Delete.
355 (aarch64_insn_callee_abi): New function.
356 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
357 (TARGET_INSN_CALLEE_ABI): New macro.
358 * rtl.h (get_call_fndecl): Declare.
359 (cgraph_rtl_info): Fix formatting. Tweak comment for
360 function_used_regs. Remove function_used_regs_valid.
361 * rtlanal.c (get_call_fndecl): Moved from final.c
362 * function-abi.h (insn_callee_abi): Declare.
363 (target_function_abi_info): Mention insn_callee_abi.
364 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
365 way to get_call_reg_set_usage did.
366 (insn_callee_abi): New function.
367 * regs.h (get_call_reg_set_usage): Delete.
368 * final.c: Include function-abi.h.
369 (collect_fn_hard_reg_usage): Add fixed and stack registers to
370 function_used_regs before the main loop rather than afterwards.
371 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
372 if function_used_regs ends up not being useful.
373 (get_call_fndecl): Move to rtlanal.c
374 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
375 * caller-save.c: Include function-abi.h.
376 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
377 instead of get_call_reg_set_usage.
378 * cfgcleanup.c: Include function-abi.h.
379 (old_insns_match_p): Use insn_callee_abi instead of
380 get_call_reg_set_usage.
381 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
382 a tree.
383 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
384 function_used_regs.
385 * df-scan.c: Include function-abi.h.
386 (df_get_call_refs): Use insn_callee_abi instead of
387 get_call_reg_set_usage.
388 * ira-lives.c: Include function-abi.h.
389 (process_bb_node_lives): Use insn_callee_abi instead of
390 get_call_reg_set_usage.
391 * lra-lives.c: Include function-abi.h.
392 (process_bb_lives): Use insn_callee_abi instead of
393 get_call_reg_set_usage.
394 * postreload.c: Include function-abi.h.
395 (reload_combine): Use insn_callee_abi instead of
396 get_call_reg_set_usage.
397 * regcprop.c: Include function-abi.h.
398 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
399 get_call_reg_set_usage.
400 * resource.c: Include function-abi.h.
401 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
402 instead of get_call_reg_set_usage.
403 * var-tracking.c: Include function-abi.h.
404 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
405 get_call_reg_set_usage.
406
407 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
408
409 * target.def (fntype_abi): New target hook.
410 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
411 * doc/tm.texi: Regenerate.
412 * target.h (predefined_function_abi): Declare.
413 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
414 if defined.
415 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
416 * config/aarch64/aarch64.c: Include function-abi.h.
417 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
418 (TARGET_FNTYPE_ABI): Define.
419
420 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
421
422 * Makefile.in (OBJS): Add function-abi.o.
423 (GTFILES): Add function-abi.h.
424 * function-abi.cc: New file.
425 * function-abi.h: Likewise.
426 * emit-rtl.h (rtl_data::abi): New field.
427 * function.c: Include function-abi.h.
428 (prepare_function_start): Initialize crtl->abi.
429 * read-rtl-function.c: Include regs.h and function-abi.h.
430 (read_rtl_function_body): Initialize crtl->abi.
431 (read_rtl_function_body_from_file_range): Likewise.
432 * reginfo.c: Include function-abi.h.
433 (init_reg_sets_1): Initialize default_function_abi.
434 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
435 when making a register global.
436 * target-globals.h (this_target_function_abi_info): Declare.
437 (target_globals::function_abi_info): New field.
438 (restore_target_globals): Copy it.
439 * target-globals.c: Include function-abi.h.
440 (default_target_globals): Initialize the function_abi_info field.
441 (target_globals): Allocate it.
442 (save_target_globals): Free it.
443
444 2019-09-30 Nick Clifton <nickc@redhat.com>
445
446 PR target/85978
447 * config/frv/frv.c (frv_register_move_cost): Add break statements
448 to avoid falling through to the wrong cases. Tidy code.
449
450 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
451
452 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
453 For multi-registers modes, test how big each register part is.
454
455 2019-09-30 Nick Clifton <nickc@redhat.com>
456
457 PR target/59205
458 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
459 (TARGET_ASM_SELECT_SECTION): Remove definition.
460 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
461
462 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
463
464 * emit-rtl.c (init_raw_REG): New function.
465 (gen_raw_REG): Use init_raw_REG.
466 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
467 macros.
468 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
469 * rtl.h (rtx_init): New function.
470 (rtx_alloca): New function.
471 (init_raw_REG): New function.
472 (alloca_raw_REG): New macro.
473
474 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
475
476 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
477 (pcrel_local_address): Replace pcrel_address predicate, use the
478 new function address_to_insn_form.
479 (pcrel_external_address): Replace with new implementation using
480 address_to_insn_form..
481 (prefixed_mem_operand): Delete predicate which is now unused.
482 (pcrel_external_mem_operand): Delete predicate which is now
483 unused.
484 * config/rs6000/rs6000-protos.h (enum insn_form): New
485 enumeration.
486 (enum non_prefixed): New enumeration.
487 (address_to_insn_form): New declaration.
488 (prefixed_load_p): New declaration.
489 (prefixed_store_p): New declaration.
490 (prefixed_paddi_p): New declaration.
491 (rs6000_asm_output_opcode): New declaration.
492 (rs6000_final_prescan_insn): Move declaration and update calling
493 signature.
494 (address_is_prefixed): New helper inline function.
495 * config/rs6000/rs6000.c(print_operand_address): Check for either
496 PC-relative local symbols or PC-relative external symbols.
497 (rs6000_emit_move): Support loading PC-relative addresses.
498 (mode_supports_prefixed_address_p): Delete, no longer used.
499 (rs6000_prefixed_address_mode_p): Delete, no longer used.
500 (address_to_insn_form): New function to decode an address format.
501 (reg_to_non_prefixed): New function to identify what the
502 non-prefixed memory instruction format is for a register.
503 (prefixed_load_p): New function to identify prefixed loads.
504 (prefixed_store_p): New function to identify prefixed stores.
505 (prefixed_paddi_p): New function to identify prefixed load
506 immediates.
507 (next_insn_prefixed_p): New static state variable.
508 (rs6000_final_prescan_insn): New function to determine if an insn
509 uses a prefixed instruction.
510 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
511 prefixed instruction.
512 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
513 (ASM_OUTPUT_OPCODE): New target hook.
514 * config/rs6000/rs6000.md (prefixed): New insn attribute for
515 prefixed instructions.
516 (prefixed_length): New insn attribute for the size of prefixed
517 instructions.
518 (non_prefixed_length): New insn attribute for the size of
519 non-prefixed instructions.
520 (pcrel_local_addr): New insn to load up a local PC-relative
521 address.
522 (pcrel_extern_addr): New insn to load up an external PC-relative
523 address.
524 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
525 GPR and loading a 128-bit floating point type to a GPR.
526
527 2019-09-30 Richard Biener <rguenther@suse.de>
528
529 * gimple.c (gimple_get_lhs): For PHIs return the result.
530 * tree-vectorizer.h (vectorizable_live_operation): Also get the
531 SLP instance as argument.
532 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
533 double-reduction PHIs with vectorizable_lc_phi.
534 (vect_analyze_loop_operations): Adjust.
535 (vect_create_epilog_for_reduction): Remove all code not dealing
536 with reduction LC PHI or epilogue generation.
537 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
538 for live stmts of reductions.
539 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
540 do not handle defs that are not vect_internal_def.
541 (can_vectorize_live_stmts): Adjust.
542 (vect_analyze_stmt): When the vectorized stmt defined a value
543 used on backedges adjust the backedge uses of vectorized PHIs.
544
545 2019-09-30 Martin Jambor <mjambor@suse.cz>
546
547 PR ipa/91853
548 * tree-inline.c (force_value_to_type): New function.
549 (setup_one_parameter): Use force_value_to_type to convert type.
550 * tree-inline.c (force_value_to_type): Declare.
551 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
552 with register type mismatches.
553
554 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
555
556 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
557 32-bit PowerPC.
558 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
559 * config/rs6000/t-freebsd64: Make use of the above define and build
560 the 32-bit libraries with secure-plt.
561
562 2019-09-30 Jakub Jelinek <jakub@redhat.com>
563
564 PR target/91931
565 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
566 gen_int_mode instead of GEN_INT.
567
568 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
569
570 * config/darwin.c (gen_macho_low): Amend to include the mode
571 argument.
572 (machopic_indirect_data_reference): Amend gen_macho_low call
573 to include mode argument
574 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
575 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
576 the macho_high expander and two define_insn entries.
577
578 2019-09-29 Jakub Jelinek <jakub@redhat.com>
579
580 PR bootstrap/90543
581 * optc-save-gen.awk: Fix up printing string option differences.
582
583 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
584
585 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
586 vec_perm cost to 1 for non-Power7 VSX architectures.
587
588 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
589
590 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
591 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
592 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
593
594 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
595
596 * config/darwin.c (gen_macho_high): Amend to include the mode
597 argument.
598 (machopic_indirect_data_reference): Amend gen_macho_high call
599 to include mode argument.
600 (machopic_legitimize_pic_address): Likewise.
601 * config/rs6000/rs6000.c (rs6000_legitimize_address):
602 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
603 the macho_high expander and two define_insn entries.
604
605 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
606
607 PR target/86805
608 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
609
610 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
611
612 PR target/80672
613 * config/sh/sh.c (parse_validate_atomic_model_option): Use
614 std::string::compare instead of std::string::find.
615
616 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
617
618 * configure: Regenerate.
619
620 2019-09-27 Jakub Jelinek <jakub@redhat.com>
621
622 PR middle-end/91920
623 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
624 variables as shared.
625
626 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
627
628 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
629 replaces the expander and two define_insn entries.
630 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
631 call.
632 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
633
634 2019-09-27 David Malcolm <dmalcolm@redhat.com>
635
636 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
637 (fibonacci_heap::nodes): Likewise.
638 (fibonacci_heap::min_key): Likewise.
639 (fibonacci_heap::min): Likewise.
640
641 2019-09-27 David Malcolm <dmalcolm@redhat.com>
642
643 * cgraph.c (cgraph_node::get_fun): Make const.
644 * cgraph.h (cgraph_node::get_fun): Likewise.
645
646 2019-09-27 Jakub Jelinek <jakub@redhat.com>
647
648 PR target/91919
649 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
650 of SImode MULT.
651
652 2019-09-27 Richard Biener <rguenther@suse.de>
653
654 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
655 (STMT_VINFO_REDUC_FN): Likewise.
656 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
657 STMT_VINFO_REDUC_FN.
658 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
659 for condition reductions.
660 (vect_create_epilog_for_reduction): Compute all required state
661 from the stmt to be vectorized.
662 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
663 invocation and remove then dead code. For single def-use chains
664 record only a single vector stmt.
665
666 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
667
668 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
669 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
670 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
671 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
672 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
673 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
674 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
675 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
676 (aarch64_general_builtin_rsqrt): Declare.
677 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
678 New function.
679 (aarch64_mangle_builtin_type): Rename to...
680 (aarch64_general_mangle_builtin_type): ...this.
681 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
682 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
683 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
684 aarch64_general_add_builtin instead of add_builtin_function.
685 (aarch64_init_builtins): Rename to...
686 (aarch64_general_init_builtins): ...this. Use
687 aarch64_general_add_builtin instead of add_builtin_function.
688 (aarch64_builtin_decl): Rename to...
689 (aarch64_general_builtin_decl): ...this and remove the unused
690 arguments.
691 (aarch64_expand_builtin): Rename to...
692 (aarch64_general_expand_builtin): ...this and remove the unused
693 arguments.
694 (aarch64_builtin_rsqrt): Rename to...
695 (aarch64_general_builtin_rsqrt): ...this.
696 (aarch64_fold_builtin): Rename to...
697 (aarch64_general_fold_builtin): ...this. Take the function subcode
698 and return type as arguments. Remove the "ignored" argument.
699 (aarch64_gimple_fold_builtin): Rename to...
700 (aarch64_general_gimple_fold_builtin): ...this. Take the function
701 subcode and gcall as arguments, and return the new function call.
702 * config/aarch64/aarch64.c (aarch64_init_builtins)
703 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
704 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
705 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
706 instead of aarch64_builtin_rsqrt.
707 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
708 instead of aarch64_mangle_builtin_type.
709
710 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
711
712 * target.def (check_builtin_call): New target hook.
713 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
714 * doc/tm.texi: Regenerate.
715
716 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
717
718 PR tree-optimization/91909
719 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
720 reduc_index parameter. When handling COND_REDUCTION, make sure
721 that the reduction phi operand is in the correct arm of the
722 VEC_COND_EXPR.
723 (vectorizable_reduction): Pass reduc_index to the above.
724
725 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
726
727 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
728 New combine pattern.
729
730 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
731
732 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
733 loop instruction into new basic block before the loop when basic
734 block that precedes the loop is empty.
735
736 2019-09-26 Jakub Jelinek <jakub@redhat.com>
737
738 * function.c (gimplify_parameters): Use build_clobber function.
739 * tree-ssa.c (execute_update_addresses_taken): Likewise.
740 * tree-inline.c (expand_call_inline): Likewise.
741 * tree-sra.c (clobber_subtree): Likewise.
742 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
743 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
744 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
745 lower_omp_target): Likewise.
746 * omp-expand.c (expand_omp_for_generic): Likewise.
747 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
748
749 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
750
751 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
752 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
753 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
754 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
755 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
756 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
757 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
758 LD_ELEMREV_V16QI): Use the PURE attribute.
759
760 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
761
762 * config/rs6000/darwin.md: Replace the expanders for
763 load_macho_picbase and reload_macho_picbase with use of '@'
764 and <mode> in their respective define_insns.
765 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
766 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
767 Pmode to gen_load_macho_picbase.
768 * config/rs6000/rs6000.md: Likewise.
769
770 2019-09-25 Richard Biener <rguenther@suse.de>
771
772 PR tree-optimization/91896
773 * tree-vect-loop.c (vectorizable_reduction): The single
774 def-use cycle optimization cannot apply when there's more
775 than one pattern stmt involved.
776
777 2019-09-26 Richard Biener <rguenther@suse.de>
778
779 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
780 loop-closed PHIs that are vect_internal_def.
781 (vect_create_epilog_for_reduction): Exit early for nested cycles.
782 Simplify.
783 (vectorizable_lc_phi): New.
784 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
785 (vect_transform_stmt): Likewise.
786 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
787 (vectorizable_lc_phi): Declare.
788
789 2019-09-26 Richard Biener <rguenther@suse.de>
790
791 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
792 vectorizable_reduction for vect_double_reduction_def.
793 (vect_transform_loop): Likewise.
794 (vect_create_epilog_for_reduction): Move double-reduction
795 PHI creation and preheader argument setting of PHIs ...
796 (vectorizable_reduction): ... here. Also process
797 vect_double_reduction_def PHIs, creating the vectorized
798 PHI nodes, remembering the scalar adjustment computed for
799 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
800 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
801 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
802 Initialize STMT_VINFO_REDUC_CODE.
803 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
804 (_stmt_vec_info::reduc_code): Likewise.
805 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
806 (STMT_VINFO_REDUC_CODE): Likewise.
807
808 2019-09-26 Matt Turner <mattst88@gmail.com>
809
810 PR driver/69471
811 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
812 (mtune=): Add Negative(mtune=).
813 (mcpu=): Add Negative(mcpu=).
814 * config/arm/arm.opt: Likewise.
815
816 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
817
818 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
819 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
820 Define.
821 * config/arm/arm_acle.h: Define builtins for the above.
822 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
823 (simd32_op): Handle the above.
824 * config/arm/unspecs.md: Define unspecs for the above.
825
826 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
827
828 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
829 (arm_<sup>xtb16): Likewise.
830 (arm_usada8): Likewise.
831 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
832 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
833 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
834 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
835 __sxtb16, __uxtab16, __uxtb16): Define.
836 * config/arm/arm_acle_builtins.def: Define builtins for the above.
837 * config/arm/unspecs.md: Define unspecs for the above.
838 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
839 (USXTB16): Likewise.
840 (simd32_op): New int_attribute.
841 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
842 * doc/sourcebuild.exp (arm_simd32_ok): Document.
843
844 2019-09-26 Martin Jambor <mjambor@suse.cz>
845
846 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
847 internal_error.
848
849 2019-09-26 Martin Jambor <mjambor@suse.cz>
850
851 * ipa-sra.c (process_scan_results): Fix continue condition.
852
853 2019-09-26 Martin Liska <mliska@suse.cz>
854
855 PR tree-optimization/91885
856 * tree-vectorizer.c (try_vectorize_loop_1): Add
857 TODO_update_ssa_only_virtuals similarly to what slp pass does.
858
859 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
860
861 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
862 aarch64_plus_immediate rather than aarch64_uimm12_shift
863 to test for valid PLUS immediates.
864
865 2019-09-25 Martin Jambor <mjambor@suse.cz>
866
867 * tree-sra.c (no_accesses_p): Remove.
868 (no_accesses_representant): Likewise.
869
870 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
871
872 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
873 consistenly.
874 (vaba_s16): Likewise.
875 (vaba_s32): Likewise.
876 (vaba_u8): Likewise.
877 (vaba_u16): Likewise.
878 (vaba_u32): Likewise.
879 (vabal_high_s8): Likewise.
880 (vabal_high_s16): Likewise.
881 (vabal_high_s32): Likewise.
882 (vabal_high_u8): Likewise.
883 (vabal_high_u16): Likewise.
884 (vabal_high_u32): Likewise.
885 (vabal_s8): Likewise.
886 (vabal_s16): Likewise.
887 (vabal_s32): Likewise.
888 (vabal_u8): Likewise.
889 (vabal_u16): Likewise.
890 (vabal_u32): Likewise.
891 (vabaq_s8): Likewise.
892 (vabaq_s16): Likewise.
893 (vabaq_s32): Likewise.
894 (vabaq_u8): Likewise.
895 (vabaq_u16): Likewise.
896 (vabaq_u32): Likewise.
897 (vabd_s8): Likewise.
898 (vabd_s16): Likewise.
899 (vabd_s32): Likewise.
900 (vabd_u8): Likewise.
901 (vabd_u16): Likewise.
902 (vabd_u32): Likewise.
903 (vabdl_high_s8): Likewise.
904 (vabdl_high_s16): Likewise.
905 (vabdl_high_s32): Likewise.
906 (vabdl_high_u8): Likewise.
907 (vabdl_high_u16): Likewise.
908 (vabdl_high_u32): Likewise.
909 (vabdl_s8): Likewise.
910 (vabdl_s16): Likewise.
911 (vabdl_s32): Likewise.
912 (vabdl_u8): Likewise.
913 (vabdl_u16): Likewise.
914 (vabdl_u32): Likewise.
915 (vabdq_s8): Likewise.
916 (vabdq_s16): Likewise.
917 (vabdq_s32): Likewise.
918 (vabdq_u8): Likewise.
919 (vabdq_u16): Likewise.
920 (vabdq_u32): Likewise.
921 (vaddlv_s8): Likewise.
922 (vaddlv_s16): Likewise.
923 (vaddlv_u8): Likewise.
924 (vaddlv_u16): Likewise.
925 (vaddlvq_s8): Likewise.
926 (vaddlvq_s16): Likewise.
927 (vaddlvq_s32): Likewise.
928 (vaddlvq_u8): Likewise.
929 (vaddlvq_u16): Likewise.
930 (vaddlvq_u32): Likewise.
931 (vcvtx_f32_f64): Likewise.
932 (vcvtx_high_f32_f64): Likewise.
933 (vcvtxd_f32_f64): Likewise.
934 (vmla_n_f32): Likewise.
935 (vmla_n_s16): Likewise.
936 (vmla_n_s32): Likewise.
937 (vmla_n_u16): Likewise.
938 (vmla_n_u32): Likewise.
939 (vmla_s8): Likewise.
940 (vmla_s16): Likewise.
941 (vmla_s32): Likewise.
942 (vmla_u8): Likewise.
943 (vmla_u16): Likewise.
944 (vmla_u32): Likewise.
945 (vmlal_high_n_s16): Likewise.
946 (vmlal_high_n_s32): Likewise.
947 (vmlal_high_n_u16): Likewise.
948 (vmlal_high_n_u32): Likewise.
949 (vmlal_high_s8): Likewise.
950 (vmlal_high_s16): Likewise.
951 (vmlal_high_s32): Likewise.
952 (vmlal_high_u8): Likewise.
953 (vmlal_high_u16): Likewise.
954 (vmlal_high_u32): Likewise.
955 (vmlal_n_s16): Likewise.
956 (vmlal_n_s32): Likewise.
957 (vmlal_n_u16): Likewise.
958 (vmlal_n_u32): Likewise.
959 (vmlal_s8): Likewise.
960 (vmlal_s16): Likewise.
961 (vmlal_s32): Likewise.
962 (vmlal_u8): Likewise.
963 (vmlal_u16): Likewise.
964 (vmlal_u32): Likewise.
965 (vmlaq_n_f32): Likewise.
966 (vmlaq_n_s16): Likewise.
967 (vmlaq_n_s32): Likewise.
968 (vmlaq_n_u16): Likewise.
969 (vmlaq_n_u32): Likewise.
970 (vmlaq_s8): Likewise.
971 (vmlaq_s16): Likewise.
972 (vmlaq_s32): Likewise.
973 (vmlaq_u8): Likewise.
974 (vmlaq_u16): Likewise.
975 (vmlaq_u32): Likewise.
976 (vmls_n_f32): Likewise.
977 (vmls_n_s16): Likewise.
978 (vmls_n_s32): Likewise.
979 (vmls_n_u16): Likewise.
980 (vmls_n_u32): Likewise.
981 (vmls_s8): Likewise.
982 (vmls_s16): Likewise.
983 (vmls_s32): Likewise.
984 (vmls_u8): Likewise.
985 (vmls_u16): Likewise.
986 (vmls_u32): Likewise.
987 (vmlsl_high_n_s16): Likewise.
988 (vmlsl_high_n_s32): Likewise.
989 (vmlsl_high_n_u16): Likewise.
990 (vmlsl_high_n_u32): Likewise.
991 (vmlsl_high_s8): Likewise.
992 (vmlsl_high_s16): Likewise.
993 (vmlsl_high_s32): Likewise.
994 (vmlsl_high_u8): Likewise.
995 (vmlsl_high_u16): Likewise.
996 (vmlsl_high_u32): Likewise.
997 (vmlsl_n_s16): Likewise.
998 (vmlsl_n_s32): Likewise.
999 (vmlsl_n_u16): Likewise.
1000 (vmlsl_n_u32): Likewise.
1001 (vmlsl_s8): Likewise.
1002 (vmlsl_s16): Likewise.
1003 (vmlsl_s32): Likewise.
1004 (vmlsl_u8): Likewise.
1005 (vmlsl_u16): Likewise.
1006 (vmlsl_u32): Likewise.
1007 (vmlsq_n_f32): Likewise.
1008 (vmlsq_n_s16): Likewise.
1009 (vmlsq_n_s32): Likewise.
1010 (vmlsq_n_u16): Likewise.
1011 (vmlsq_n_u32): Likewise.
1012 (vmlsq_s8): Likewise.
1013 (vmlsq_s16): Likewise.
1014 (vmlsq_s32): Likewise.
1015 (vmlsq_u8): Likewise.
1016 (vmlsq_u16): Likewise.
1017 (vmlsq_u32): Likewise.
1018 (vmovl_high_s8): Likewise.
1019 (vmovl_high_s16): Likewise.
1020 (vmovl_high_s32): Likewise.
1021 (vmovl_high_u8): Likewise.
1022 (vmovl_high_u16): Likewise.
1023 (vmovl_high_u32): Likewise.
1024 (vmovl_s8): Likewise.
1025 (vmovl_s16): Likewise.
1026 (vmovl_s32): Likewise.
1027 (vmovl_u8): Likewise.
1028 (vmovl_u16): Likewise.
1029 (vmovl_u32): Likewise.
1030 (vmovn_high_s16): Likewise.
1031 (vmovn_high_s32): Likewise.
1032 (vmovn_high_s64): Likewise.
1033 (vmovn_high_u16): Likewise.
1034 (vmovn_high_u32): Likewise.
1035 (vmovn_high_u64): Likewise.
1036 (vmovn_s16): Likewise.
1037 (vmovn_s32): Likewise.
1038 (vmovn_s64): Likewise.
1039 (vmovn_u16): Likewise.
1040 (vmovn_u32): Likewise.
1041 (vmovn_u64): Likewise.
1042 (vmull_high_n_s16): Likewise.
1043 (vmull_high_n_s32): Likewise.
1044 (vmull_high_n_u16): Likewise.
1045 (vmull_high_n_u32): Likewise.
1046 (vmull_high_p8): Likewise.
1047 (vmull_high_s8): Likewise.
1048 (vmull_high_s16): Likewise.
1049 (vmull_high_s32): Likewise.
1050 (vmull_high_u8): Likewise.
1051 (vmull_high_u16): Likewise.
1052 (vmull_high_u32): Likewise.
1053 (vmull_n_s16): Likewise.
1054 (vmull_n_s32): Likewise.
1055 (vmull_n_u16): Likewise.
1056 (vmull_n_u32): Likewise.
1057 (vmull_p8): Likewise.
1058 (vmull_s8): Likewise.
1059 (vmull_s16): Likewise.
1060 (vmull_s32): Likewise.
1061 (vmull_u8): Likewise.
1062 (vmull_u16): Likewise.
1063 (vmull_u32): Likewise.
1064 (vpadal_s8): Likewise.
1065 (vpadal_s16): Likewise.
1066 (vpadal_s32): Likewise.
1067 (vpadal_u8): Likewise.
1068 (vpadal_u16): Likewise.
1069 (vpadal_u32): Likewise.
1070 (vpadalq_s8): Likewise.
1071 (vpadalq_s16): Likewise.
1072 (vpadalq_s32): Likewise.
1073 (vpadalq_u8): Likewise.
1074 (vpadalq_u16): Likewise.
1075 (vpadalq_u32): Likewise.
1076 (vpaddl_s8): Likewise.
1077 (vpaddl_s16): Likewise.
1078 (vpaddl_s32): Likewise.
1079 (vpaddl_u8): Likewise.
1080 (vpaddl_u16): Likewise.
1081 (vpaddl_u32): Likewise.
1082 (vpaddlq_s8): Likewise.
1083 (vpaddlq_s16): Likewise.
1084 (vpaddlq_s32): Likewise.
1085 (vpaddlq_u8): Likewise.
1086 (vpaddlq_u16): Likewise.
1087 (vpaddlq_u32): Likewise.
1088 (vpaddq_s8): Likewise.
1089 (vpaddq_s16): Likewise.
1090 (vpaddq_s32): Likewise.
1091 (vpaddq_s64): Likewise.
1092 (vpaddq_u8): Likewise.
1093 (vpaddq_u16): Likewise.
1094 (vpaddq_u32): Likewise.
1095 (vpaddq_u64): Likewise.
1096 (vqdmulh_n_s16): Likewise.
1097 (vqdmulh_n_s32): Likewise.
1098 (vqdmulhq_n_s16): Likewise.
1099 (vqdmulhq_n_s32): Likewise.
1100 (vqmovn_high_s16): Likewise.
1101 (vqmovn_high_s32): Likewise.
1102 (vqmovn_high_s64): Likewise.
1103 (vqmovn_high_u16): Likewise.
1104 (vqmovn_high_u32): Likewise.
1105 (vqmovn_high_u64): Likewise.
1106 (vqmovun_high_s16): Likewise.
1107 (vqmovun_high_s32): Likewise.
1108 (vqmovun_high_s64): Likewise.
1109 (vqrdmulh_n_s16): Likewise.
1110 (vqrdmulh_n_s32): Likewise.
1111 (vqrdmulhq_n_s16): Likewise.
1112 (vqrdmulhq_n_s32): Likewise.
1113 (vrsqrte_u32): Likewise.
1114 (vrsqrteq_u32): Likewise.
1115 (vtst_p8): Likewise.
1116 (vtst_p16): Likewise.
1117 (vtst_p64): Likewise.
1118 (vtstq_p8): Likewise.
1119 (vtstq_p16): Likewise.
1120 (vtstq_p64): Likewise.
1121 (vaddlv_s32): Likewise.
1122 (vaddlv_u32): Likewise.
1123 (vqtbl1_p8): Likewise.
1124 (vqtbl1_s8): Likewise.
1125 (vqtbl1_u8): Likewise.
1126 (vqtbl1q_p8): Likewise.
1127 (vqtbl1q_s8): Likewise.
1128 (vqtbl1q_u8): Likewise.
1129 (vqtbx1_s8): Likewise.
1130 (vqtbx1_u8): Likewise.
1131 (vqtbx1_p8): Likewise.
1132 (vqtbx1q_s8): Likewise.
1133 (vqtbx1q_u8): Likewise.
1134 (vqtbx1q_p8): Likewise.
1135 (vtbl1_s8): Likewise.
1136 (vtbl1_u8): Likewise.
1137 (vtbl1_p8): Likewise.
1138 (vtbl2_s8): Likewise.
1139 (vtbl2_u8): Likewise.
1140 (vtbl2_p8): Likewise.
1141 (vtbl3_s8): Likewise.
1142 (vtbl3_u8): Likewise.
1143 (vtbl3_p8): Likewise.
1144 (vtbl4_s8): Likewise.
1145 (vtbl4_u8): Likewise.
1146 (vtbl4_p8): Likewise.
1147 (vtbx2_s8): Likewise.
1148 (vtbx2_u8): Likewise.
1149 (vtbx2_p8): Likewise.
1150 (vld1_f32): Likewise.
1151 (vld1_f64): Likewise.
1152 (vld1_p8): Likewise.
1153 (vld1_p16): Likewise.
1154 (vld1_p64): Likewise.
1155 (vld1_s8): Likewise.
1156 (vld1_s16): Likewise.
1157 (vld1_s32): Likewise.
1158 (vld1_s64): Likewise.
1159 (vld1_u8): Likewise.
1160 (vld1_u16): Likewise.
1161 (vld1_u32): Likewise.
1162 (vld1_u64): Likewise.
1163 (vld1q_f32): Likewise.
1164 (vld1q_f64): Likewise.
1165 (vld1q_p8): Likewise.
1166 (vld1q_p16): Likewise.
1167 (vld1q_p64): Likewise.
1168 (vld1q_s8): Likewise.
1169 (vld1q_s16): Likewise.
1170 (vld1q_s32): Likewise.
1171 (vld1q_s64): Likewise.
1172 (vld1q_u8): Likewise.
1173 (vld1q_u16): Likewise.
1174 (vld1q_u32): Likewise.
1175 (vld1q_u64): Likewise.
1176 (vpmax_s8): Likewise.
1177 (vpmax_s16): Likewise.
1178 (vpmax_s32): Likewise.
1179 (vpmax_u8): Likewise.
1180 (vpmax_u16): Likewise.
1181 (vpmax_u32): Likewise.
1182 (vpmaxq_s8): Likewise.
1183 (vpmaxq_s16): Likewise.
1184 (vpmaxq_s32): Likewise.
1185 (vpmaxq_u8): Likewise.
1186 (vpmaxq_u16): Likewise.
1187 (vpmaxq_u32): Likewise.
1188 (vpmax_f32): Likewise.
1189 (vpmaxq_f32): Likewise.
1190 (vpmaxq_f64): Likewise.
1191 (vpmaxqd_f64): Likewise.
1192 (vpmaxs_f32): Likewise.
1193 (vpmaxnm_f32): Likewise.
1194 (vpmaxnmq_f32): Likewise.
1195 (vpmaxnmq_f64): Likewise.
1196 (vpmaxnmqd_f64): Likewise.
1197 (vpmaxnms_f32): Likewise.
1198 (vpmin_s8): Likewise.
1199 (vpmin_s16): Likewise.
1200 (vpmin_s32): Likewise.
1201 (vpmin_u8): Likewise.
1202 (vpmin_u16): Likewise.
1203 (vpmin_u32): Likewise.
1204 (vpminq_s8): Likewise.
1205 (vpminq_s16): Likewise.
1206 (vpminq_s32): Likewise.
1207 (vpminq_u8): Likewise.
1208 (vpminq_u16): Likewise.
1209 (vpminq_u32): Likewise.
1210 (vpmin_f32): Likewise.
1211 (vpminq_f32): Likewise.
1212 (vpminq_f64): Likewise.
1213 (vpminqd_f64): Likewise.
1214 (vpmins_f32): Likewise.
1215 (vpminnm_f32): Likewise.
1216 (vpminnmq_f32): Likewise.
1217 (vpminnmq_f64): Likewise.
1218 (vpminnmqd_f64): Likewise.
1219 (vpminnms_f32): Likewise.
1220 (vmla_f32): Likewise.
1221 (vmlaq_f32): Likewise.
1222 (vmlaq_f64): Likewise.
1223 (vmls_f32): Likewise.
1224 (vmlsq_f32): Likewise.
1225 (vmlsq_f64): Likewise.
1226 (vqtbl2_s8): Likewise.
1227 (vqtbl2_u8): Likewise.
1228 (vqtbl2_p8): Likewise.
1229 (vqtbl2q_s8): Likewise.
1230 (vqtbl2q_u8): Likewise.
1231 (vqtbl2q_p8): Likewise.
1232 (vqtbl3_s8): Likewise.
1233 (vqtbl3_u8): Likewise.
1234 (vqtbl3_p8): Likewise.
1235 (vqtbl3q_s8): Likewise.
1236 (vqtbl3q_u8): Likewise.
1237 (vqtbl3q_p8): Likewise.
1238 (vqtbl4_s8): Likewise.
1239 (vqtbl4_u8): Likewise.
1240 (vqtbl4_p8): Likewise.
1241 (vqtbl4q_s8): Likewise.
1242 (vqtbl4q_u8): Likewise.
1243 (vqtbl4q_p8): Likewise.
1244 (vqtbx2_s8): Likewise.
1245 (vqtbx2_u8): Likewise.
1246 (vqtbx2_p8): Likewise.
1247 (vqtbx2q_s8): Likewise.
1248 (vqtbx2q_u8): Likewise.
1249 (vqtbx2q_p8): Likewise.
1250 (vqtbx3_s8): Likewise.
1251 (vqtbx3_u8): Likewise.
1252 (vqtbx3_p8): Likewise.
1253 (vqtbx3q_s8): Likewise.
1254 (vqtbx3q_u8): Likewise.
1255 (vqtbx3q_p8): Likewise.
1256 (vqtbx4_s8): Likewise.
1257 (vqtbx4_u8): Likewise.
1258 (vqtbx4_p8): Likewise.
1259 (vqtbx4q_s8): Likewise.
1260 (vqtbx4q_u8): Likewise.
1261 (vqtbx4q_p8): Likewise.
1262 (vrev16_p8): Likewise.
1263 (vrev16_s8): Likewise.
1264 (vrev16_u8): Likewise.
1265 (vrev16q_p8): Likewise.
1266 (vrev16q_s8): Likewise.
1267 (vrev16q_u8): Likewise.
1268 (vrev32_p8): Likewise.
1269 (vrev32_p16): Likewise.
1270 (vrev32_s8): Likewise.
1271 (vrev32_s16): Likewise.
1272 (vrev32_u8): Likewise.
1273 (vrev32_u16): Likewise.
1274 (vrev32q_p8): Likewise.
1275 (vrev32q_p16): Likewise.
1276 (vrev32q_s8): Likewise.
1277 (vrev32q_s16): Likewise.
1278 (vrev32q_u8): Likewise.
1279 (vrev32q_u16): Likewise.
1280 (vrev64_f32): Likewise.
1281 (vrev64_p8): Likewise.
1282 (vrev64_p16): Likewise.
1283 (vrev64_s8): Likewise.
1284 (vrev64_s16): Likewise.
1285 (vrev64_s32): Likewise.
1286 (vrev64_u8): Likewise.
1287 (vrev64_u16): Likewise.
1288 (vrev64_u32): Likewise.
1289 (vrev64q_f32): Likewise.
1290 (vrev64q_p8): Likewise.
1291 (vrev64q_p16): Likewise.
1292 (vrev64q_s8): Likewise.
1293 (vrev64q_s16): Likewise.
1294 (vrev64q_s32): Likewise.
1295 (vrev64q_u8): Likewise.
1296 (vrev64q_u16): Likewise.
1297 (vrev64q_u32): Likewise.
1298 (vsha1cq_u32): Likewise.
1299 (vsha1mq_u32): Likewise.
1300 (vsha1pq_u32): Likewise.
1301 (vsha1h_u32): Likewise.
1302 (vsha1su0q_u32): Likewise.
1303 (vsha1su1q_u32): Likewise.
1304 (vsha256hq_u32): Likewise.
1305 (vsha256h2q_u32): Likewise.
1306 (vsha256su0q_u32): Likewise.
1307 (vsha256su1q_u32): Likewise.
1308 (vmull_p64): Likewise.
1309 (vmull_high_p64): Likewise.
1310 (vsqrt_f32): Likewise.
1311 (vsqrtq_f32): Likewise.
1312 (vsqrt_f64): Likewise.
1313 (vsqrtq_f64): Likewise.
1314 (vst1_f32): Likewise.
1315 (vst1_f64): Likewise.
1316 (vst1_p8): Likewise.
1317 (vst1_p16): Likewise.
1318 (vst1_p64): Likewise.
1319 (vst1_s8): Likewise.
1320 (vst1_s16): Likewise.
1321 (vst1_s32): Likewise.
1322 (vst1_s64): Likewise.
1323 (vst1_u8): Likewise.
1324 (vst1_u16): Likewise.
1325 (vst1_u32): Likewise.
1326 (vst1_u64): Likewise.
1327 (vst1q_f32): Likewise.
1328 (vst1q_f64): Likewise.
1329 (vst1q_p8): Likewise.
1330 (vst1q_p16): Likewise.
1331 (vst1q_p64): Likewise.
1332 (vst1q_s8): Likewise.
1333 (vst1q_s16): Likewise.
1334 (vst1q_s32): Likewise.
1335 (vst1q_s64): Likewise.
1336 (vst1q_u8): Likewise.
1337 (vst1q_u16): Likewise.
1338 (vst1q_u32): Likewise.
1339 (vst1q_u64): Likewise.
1340 (vst1_s64_x2): Likewise.
1341 (vst1_u64_x2): Likewise.
1342 (vst1_f64_x2): Likewise.
1343 (vst1_s8_x2): Likewise.
1344 (vst1_p8_x2): Likewise.
1345 (vst1_s16_x2): Likewise.
1346 (vst1_p16_x2): Likewise.
1347 (vst1_s32_x2): Likewise.
1348 (vst1_u8_x2): Likewise.
1349 (vst1_u16_x2): Likewise.
1350 (vst1_u32_x2): Likewise.
1351 (vst1_f16_x2): Likewise.
1352 (vst1_f32_x2): Likewise.
1353 (vst1_p64_x2): Likewise.
1354 (vst1q_s8_x2): Likewise.
1355 (vst1q_p8_x2): Likewise.
1356 (vst1q_s16_x2): Likewise.
1357 (vst1q_p16_x2): Likewise.
1358 (vst1q_s32_x2): Likewise.
1359 (vst1q_s64_x2): Likewise.
1360 (vst1q_u8_x2): Likewise.
1361 (vst1q_u16_x2): Likewise.
1362 (vst1q_u32_x2): Likewise.
1363 (vst1q_u64_x2): Likewise.
1364 (vst1q_f16_x2): Likewise.
1365 (vst1q_f32_x2): Likewise.
1366 (vst1q_f64_x2): Likewise.
1367 (vst1q_p64_x2): Likewise.
1368 (vst1_s64_x3): Likewise.
1369 (vst1_u64_x3): Likewise.
1370 (vst1_f64_x3): Likewise.
1371 (vst1_s8_x3): Likewise.
1372 (vst1_p8_x3): Likewise.
1373 (vst1_s16_x3): Likewise.
1374 (vst1_p16_x3): Likewise.
1375 (vst1_s32_x3): Likewise.
1376 (vst1_u8_x3): Likewise.
1377 (vst1_u16_x3): Likewise.
1378 (vst1_u32_x3): Likewise.
1379 (vst1_f16_x3): Likewise.
1380 (vst1_f32_x3): Likewise.
1381 (vst1_p64_x3): Likewise.
1382 (vst1q_s8_x3): Likewise.
1383 (vst1q_p8_x3): Likewise.
1384 (vst1q_s16_x3): Likewise.
1385 (vst1q_p16_x3): Likewise.
1386 (vst1q_s32_x3): Likewise.
1387 (vst1q_s64_x3): Likewise.
1388 (vst1q_u8_x3): Likewise.
1389 (vst1q_u16_x3): Likewise.
1390 (vst1q_u32_x3): Likewise.
1391 (vst1q_u64_x3): Likewise.
1392 (vst1q_f16_x3): Likewise.
1393 (vst1q_f32_x3): Likewise.
1394 (vst1q_f64_x3): Likewise.
1395 (vst1q_p64_x3): Likewise.
1396 (vst2_s64): Likewise.
1397 (vst2_u64): Likewise.
1398 (vst2_f64): Likewise.
1399 (vst2_s8): Likewise.
1400 (vst2_p8): Likewise.
1401 (vst2_s16): Likewise.
1402 (vst2_p16): Likewise.
1403 (vst2_s32): Likewise.
1404 (vst2_u8): Likewise.
1405 (vst2_u16): Likewise.
1406 (vst2_u32): Likewise.
1407 (vst2_f16): Likewise.
1408 (vst2_f32): Likewise.
1409 (vst2_p64): Likewise.
1410 (vst2q_s8): Likewise.
1411 (vst2q_p8): Likewise.
1412 (vst2q_s16): Likewise.
1413 (vst2q_p16): Likewise.
1414 (vst2q_s32): Likewise.
1415 (vst2q_s64): Likewise.
1416 (vst2q_u8): Likewise.
1417 (vst2q_u16): Likewise.
1418 (vst2q_u32): Likewise.
1419 (vst2q_u64): Likewise.
1420 (vst2q_f16): Likewise.
1421 (vst2q_f32): Likewise.
1422 (vst2q_f64): Likewise.
1423 (vst2q_p64): Likewise.
1424 (vst3_s64): Likewise.
1425 (vst3_u64): Likewise.
1426 (vst3_f64): Likewise.
1427 (vst3_s8): Likewise.
1428 (vst3_p8): Likewise.
1429 (vst3_s16): Likewise.
1430 (vst3_p16): Likewise.
1431 (vst3_s32): Likewise.
1432 (vst3_u8): Likewise.
1433 (vst3_u16): Likewise.
1434 (vst3_u32): Likewise.
1435 (vst3_f16): Likewise.
1436 (vst3_f32): Likewise.
1437 (vst3_p64): Likewise.
1438 (vst3q_s8): Likewise.
1439 (vst3q_p8): Likewise.
1440 (vst3q_s16): Likewise.
1441 (vst3q_p16): Likewise.
1442 (vst3q_s32): Likewise.
1443 (vst3q_s64): Likewise.
1444 (vst3q_u8): Likewise.
1445 (vst3q_u16): Likewise.
1446 (vst3q_u32): Likewise.
1447 (vst3q_u64): Likewise.
1448 (vst3q_f16): Likewise.
1449 (vst3q_f32): Likewise.
1450 (vst3q_f64): Likewise.
1451 (vst3q_p64): Likewise.
1452 (vst4_s64): Likewise.
1453 (vst4_u64): Likewise.
1454 (vst4_f64): Likewise.
1455 (vst4_s8): Likewise.
1456 (vst4_p8): Likewise.
1457 (vst4_s16): Likewise.
1458 (vst4_p16): Likewise.
1459 (vst4_s32): Likewise.
1460 (vst4_u8): Likewise.
1461 (vst4_u16): Likewise.
1462 (vst4_u32): Likewise.
1463 (vst4_f16): Likewise.
1464 (vst4_f32): Likewise.
1465 (vst4_p64): Likewise.
1466 (vst4q_s8): Likewise.
1467 (vst4q_p8): Likewise.
1468 (vst4q_s16): Likewise.
1469 (vst4q_p16): Likewise.
1470 (vst4q_s32): Likewise.
1471 (vst4q_s64): Likewise.
1472 (vst4q_u8): Likewise.
1473 (vst4q_u16): Likewise.
1474 (vst4q_u32): Likewise.
1475 (vst4q_u64): Likewise.
1476 (vst4q_f16): Likewise.
1477 (vst4q_f32): Likewise.
1478 (vst4q_f64): Likewise.
1479 (vst4q_p64): Likewise.
1480 (vtbx4_s8): Likewise.
1481 (vtbx4_u8): Likewise.
1482 (vtbx4_p8): Likewise.
1483 (vtrn_f32): Likewise.
1484 (vtrn_p8): Likewise.
1485 (vtrn_p16): Likewise.
1486 (vtrn_s8): Likewise.
1487 (vtrn_s16): Likewise.
1488 (vtrn_s32): Likewise.
1489 (vtrn_u8): Likewise.
1490 (vtrn_u16): Likewise.
1491 (vtrn_u32): Likewise.
1492 (vtrnq_f32): Likewise.
1493 (vtrnq_p8): Likewise.
1494 (vtrnq_p16): Likewise.
1495 (vtrnq_s8): Likewise.
1496 (vtrnq_s16): Likewise.
1497 (vtrnq_s32): Likewise.
1498 (vtrnq_u8): Likewise.
1499 (vtrnq_u16): Likewise.
1500 (vtrnq_u32): Likewise.
1501 (vrsqrte_f16): Likewise.
1502 (vrsqrteq_f16): Likewise.
1503 (vsqrt_f16): Likewise.
1504 (vsqrtq_f16): Likewise.
1505 (vabd_f16): Likewise.
1506 (vabdq_f16): Likewise.
1507 (vpadd_f16): Likewise.
1508 (vpaddq_f16): Likewise.
1509 (vpmax_f16): Likewise.
1510 (vpmaxq_f16): Likewise.
1511 (vpmaxnm_f16): Likewise.
1512 (vpmaxnmq_f16): Likewise.
1513 (vpmin_f16): Likewise.
1514 (vpminq_f16): Likewise.
1515 (vpminnm_f16): Likewise.
1516 (vpminnmq_f16): Likewise.
1517 (vrsqrts_f16): Likewise.
1518 (vrsqrtsq_f16): Likewise.
1519
1520 2019-09-25 Richard Biener <rguenther@suse.de>
1521
1522 PR tree-optimization/91896
1523 * tree-vect-loop.c (vectorizable_reduction): The single
1524 def-use cycle optimization cannot apply when there's more
1525 than one pattern stmt involved.
1526
1527 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1528
1529 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
1530 the 'P' mode iterator, replacing the (removed) SI and DI variants.
1531 (reload_macho_picbase_<mode>): Likewise.
1532
1533 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1534
1535 * config/rs6000/rs6000.md: Move darwin.md include until
1536 after the definition of the mode iterators.
1537
1538 2019-09-23 Martin Sebor <msebor@redhat.com>
1539
1540 PR tree-optimization/91570
1541 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
1542 non-constant minlen, maxlen and maxbound.
1543
1544 2019-09-24 Richard Biener <rguenther@suse.de>
1545
1546 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
1547 Rename to...
1548 (_stmt_vec_info::cond_reduc_code): ... this.
1549 (_stmt_vec_info::induc_cond_initial_val): Add.
1550 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
1551 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
1552 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
1553 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
1554 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
1555 the reduction code.
1556 (vect_create_epilog_for_reduction): Drop special
1557 induction condition reduction params, pass in reduction code
1558 and simplify.
1559 (vectorizable_reduction): Perform condition reduction kind
1560 selection only at analysis time. Adjust passing on state.
1561
1562 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1563
1564 * config/aarch64/aarch64.md (mov<mode>): Don't call
1565 aarch64_split_dimode_const_store on volatile MEM.
1566
1567 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
1568
1569 * config/aarch64/aarch64-option-extensions.def (fp16fml):
1570 Update hwcap string for fp16fml.
1571
1572 2019-09-24 Jakub Jelinek <jakub@redhat.com>
1573
1574 PR middle-end/91866
1575 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
1576 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
1577
1578 2019-09-24 Martin Liska <mliska@suse.cz>
1579
1580 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
1581 instead of if-elseif-elseif-...
1582 * gimple-expr.c (extract_ops_from_tree): Likewise.
1583 * gimple.c (get_gimple_rhs_num_ops): Likewise.
1584 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
1585
1586 2019-09-24 Martin Jambor <mjambor@suse.cz>
1587
1588 PR ipa/91831
1589 * ipa-param-manipulation.c (carry_over_param): Make a method of
1590 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
1591 in case of a context mismatch.
1592 (ipa_param_body_adjustments::common_initialization): Adjust call to
1593 carry_over_param.
1594 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
1595 private method carry_over_param.
1596
1597 2019-09-24 Martin Jambor <mjambor@suse.cz>
1598
1599 PR ipa/91832
1600 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
1601
1602 2019-09-24 Richard Biener <rguenther@suse.de>
1603
1604 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
1605 base.
1606
1607 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1608
1609 * config/arm/t-arm (arm-builtins.o): Add dependency on
1610 arm_acle_builtins.def.
1611
1612 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1613
1614 PR target/91823
1615 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
1616 canonical CONST_INTs. Use gen_rtvec.
1617
1618 2019-09-23 Richard Biener <rguenther@suse.de>
1619
1620 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
1621 avoid adjusting by + 0 or * 1.
1622 (vect_create_epilog_for_reduction): Get reduction code only
1623 when necessary. Deal with adjustment_def only when necessary.
1624
1625 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1626
1627 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
1628 memmodel index.
1629
1630 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1631
1632 PR ipa/91835
1633 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
1634 "ipa-sra".
1635
1636 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
1637
1638 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
1639 code. Merge code blocks with common conditionals. Use declared
1640 macro instead of a magic number for PIC level.
1641
1642 2019-09-21 Martin Sebor <msebor@redhat.com>
1643
1644 PR middle-end/91830
1645 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
1646 Simplify computation of the offset of the referenced subobject.
1647
1648 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
1649
1650 * config/darwin.c (machopic_legitimize_pic_address): Check
1651 for lra not reload.
1652
1653 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1654
1655 * ira-conflicts.c (can_use_same_reg_p): New function.
1656 (process_reg_shuffles): Take an insn parameter. Ignore cases
1657 in which input operand op_num could seemingly never be allocated
1658 to the same register as the destination.
1659 (add_insn_allocno_copies): Update call to process_reg_shuffles.
1660
1661 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1662
1663 * simplify-rtx.c (neg_const_int): Replace with...
1664 (neg_poly_int_rtx): ...this new function.
1665 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
1666 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
1667 (simplify_plus_minus): Likewise for constant terms here.
1668
1669 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
1670
1671 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
1672 HOST_WIDE_PRINT_UNSIGNED.
1673
1674 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
1675
1676 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
1677 character.
1678
1679 2019-09-20 Maya Rashish <coypu@sdf.org>
1680
1681 PR target/86811
1682 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
1683 Define to speculation_safe_value_not_needed.
1684
1685 2019-09-20 Richard Biener <rguenther@suse.de>
1686 Uros Bizjak <ubizjak@gmail.com>
1687
1688 PR target/91814
1689 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
1690 previous change.
1691 (general_scalar_chain::convert_op): Force not suitable memory
1692 operands to a register.
1693
1694 2019-09-20 Richard Biener <rguenther@suse.de>
1695
1696 PR tree-optimization/91821
1697 * tree-vect-loop.c (check_reduction_path): Check we can compute
1698 reduc_idx.
1699 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
1700 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
1701 operands in canonical order.
1702 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1703 STMT_VINFO_REDUC_IDX.
1704 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
1705 (STMT_VINFO_REDUC_IDX): Likewise.
1706
1707 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
1708
1709 PR target/91269
1710 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1711
1712 2019-09-20 Richard Biener <rguenther@suse.de>
1713
1714 PR tree-optimization/91822
1715 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
1716 parameter.
1717 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
1718 for reduc_index in nested cycles, adjust vectorizable_condition
1719 calls.
1720 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
1721 parameter.
1722 (vect_analyze_stmt): Adjust.
1723 (vect_transform_stmt): Likewise.
1724
1725 2019-09-20 Richard Biener <rguenther@suse.de>
1726
1727 PR target/91767
1728 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
1729 Ensure there's a sequence point between allocating the new register
1730 and passing a reference to a reg via regno_reg_rtx.
1731
1732 2019-09-20 Martin Jambor <mjambor@suse.cz>
1733
1734 * coretypes.h (cgraph_edge): Declare.
1735 * ipa-param-manipulation.c: Rewrite.
1736 * ipa-param-manipulation.h: Likewise.
1737 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
1738 (OBJS): Added ipa-sra.o.
1739 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
1740 and ref_p, added fields param_adjustments and performed_splits.
1741 (struct cgraph_clone_info): Remove ags_to_skip and
1742 combined_args_to_skip, new field param_adjustments.
1743 (cgraph_node::create_clone): Changed parameters to use
1744 ipa_param_adjustments.
1745 (cgraph_node::create_virtual_clone): Likewise.
1746 (cgraph_node::create_virtual_clone_with_body): Likewise.
1747 (tree_function_versioning): Likewise.
1748 (cgraph_build_function_type_skip_args): Removed.
1749 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
1750 using ipa_param_adjustments.
1751 (clone_of_p): Likewise.
1752 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
1753 (build_function_decl_skip_args): Likewise.
1754 (duplicate_thunk_for_node): Adjust parameters using
1755 ipa_param_body_adjustments, copy param_adjustments instead of
1756 args_to_skip.
1757 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
1758 (cgraph_node::create_virtual_clone): Likewise.
1759 (cgraph_node::create_version_clone_with_body): Likewise.
1760 (cgraph_materialize_clone): Likewise.
1761 (symbol_table::materialize_all_clones): Likewise.
1762 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
1763 ipa_replace_map check.
1764 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
1765 (initialize_node_lattices): Make aware that some parameters might have
1766 already been removed.
1767 (want_remove_some_param_p): New function.
1768 (create_specialized_node): Convert to using ipa_param_adjustments and
1769 deal with possibly pre-existing adjustments.
1770 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
1771 (output_node_opt_summary): Do not stream removed fields. Stream
1772 parameter adjustments instead of argumetns to skip.
1773 (input_node_opt_summary): Likewise.
1774 (input_node_opt_summary): Likewise.
1775 * lto-section-in.c (lto_section_name): Added ipa-sra section.
1776 * lto-streamer.h (lto_section_type): Likewise.
1777 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
1778 param_body_adjs.
1779 (copy_decl_to_var): Declare.
1780 * tree-inline.c (update_clone_info): Do not remap old_tree.
1781 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
1782 statements, walk all extra generated statements and remap their
1783 operands.
1784 (redirect_all_calls): Add killed SSA names to a hash set.
1785 (remap_ssa_name): Do not remap killed SSA names.
1786 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
1787 half of functionality moved to ipa_param_body_adjustments.
1788 (copy_decl_to_var): Make exported.
1789 (copy_body): Destroy killed_new_ssa_names hash set.
1790 (expand_call_inline): Remap performed splits.
1791 (update_clone_info): Likewise.
1792 (tree_function_versioning): Simplify tree_map processing. Updated to
1793 accept ipa_param_adjustments and use ipa_param_body_adjustments.
1794 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
1795 for the new interface.
1796 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
1797 (simd_clone_compute_base_data_type): Likewise.
1798 (simd_clone_init_simd_arrays): Adjust for the new interface.
1799 (simd_clone_adjust_argument_types): Likewise.
1800 (struct modify_stmt_info): Likewise.
1801 (ipa_simd_modify_stmt_ops): Likewise.
1802 (ipa_simd_modify_function_body): Likewise.
1803 (simd_clone_adjust): Likewise.
1804 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
1805 (type_internals_preclude_sra_p): Make public.
1806 * tree-sra.h: New file.
1807 * ipa-inline-transform.c (save_inline_function_body): Update to
1808 refelct new tree_function_versioning signature.
1809 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
1810 ipa_param_adjustments to get current parameter indices.
1811 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1812 (ipcp_update_bits): Likewise.
1813 (ipcp_update_vr): Likewise.
1814 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
1815 * ipa-sra.c: New file.
1816 * multiple_target.c (create_target_clone): Update to reflet new type
1817 of create_version_clone_with_body.
1818 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
1819 tree_function_versioning.
1820 (modify_function): Update to reflect new type of
1821 tree_function_versioning.
1822 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
1823 * passes.def: Remove old IPA-SRA and add new one.
1824 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
1825 (make_pass_ipa_sra): Declare.
1826 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
1827 ipa_sra_retvalues.
1828 * doc/invoke.texi (ipa-sra-max-replacements): New.
1829
1830 2019-09-19 Martin Sebor <msebor@redhat.com>
1831
1832 PR middle-end/91631
1833 * builtins.c (component_size): Correct trailing array computation,
1834 rename to component_ref_size and move...
1835 (compute_objsize): Adjust.
1836 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
1837 (builtin_access::strict): Do not consider memmove.
1838 (builtin_access::write_off): New function.
1839 (builtin_memref::builtin_memref): Initialize refsize.
1840 (builtin_memref::set_base_and_offset): Adjust refoff and compute
1841 refsize.
1842 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
1843 Handle refsize.
1844 (builtin_access::builtin_access): Initialize dstoff to destination
1845 refeence offset here instead of in maybe_diag_overlap. Adjust
1846 referencess even to unrelated objects. Adjust sizrange of bounded
1847 string functions to reflect bound. For strcat, adjust destination
1848 sizrange by that of source.
1849 (builtin_access::strcat_overlap): Adjust offsets and sizes
1850 to reflect the increase in destination sizrange above.
1851 (builtin_access::overlap): Do not set dstoff here but instead
1852 in builtin_access::builtin_access.
1853 (check_bounds_or_overlap): Use builtin_access::write_off.
1854 (maybe_diag_access_bounds): Add argument. Add informational notes.
1855 (dump_builtin_memref, dump_builtin_access): New functions.
1856 * tree.c (component_ref_size): ...to here.
1857 * tree.h (component_ref_size): Declare.
1858 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
1859 nul in the size of the source string.
1860
1861 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
1862
1863 PR c/67224
1864 * doc/cpp.texi: Document support for extended characters in
1865 identifiers.
1866 * doc/cppopts.texi: Likewise.
1867
1868 2019-09-19 Richard Biener <rguenther@suse.de>
1869
1870 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
1871 (check_reduction_path): New overload having the path as result.
1872 (vect_is_simple_reduction): From the detected reduction
1873 path build a SLP reduction chain if possible.
1874
1875 2019-09-19 Richard Biener <rguenther@suse.de>
1876
1877 PR target/91814
1878 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
1879 Force operand to a register if it isn't nonimmediate_operand.
1880
1881 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
1882
1883 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
1884 * config/arm/iterators.md (optab): Add and, ior, xor entries.
1885 (logical_op): Remove code attribute.
1886 (logical_OP): Likewise.
1887
1888 2019-09-19 Martin Liska <mliska@suse.cz>
1889
1890 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
1891 Use proper casting.
1892
1893 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
1894
1895 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
1896 registers with %R.
1897
1898 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
1899 for NE comparison of TImode values.
1900 (aarch64_emit_load_exclusive): Add support for TImode.
1901 (aarch64_emit_store_exclusive): Likewise.
1902 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
1903 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
1904 Change iterator from ALLI to ALLI_TI.
1905 (@atomic_compare_and_swap<JUST_TI>): New.
1906 (@atomic_compare_and_swap<JUST_TI>_lse): New.
1907 (aarch64_load_exclusive_pair): New.
1908 (aarch64_store_exclusive_pair): New.
1909 * config/aarch64/iterators.md (JUST_TI): New.
1910
1911 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
1912 strong_zero_p for aarch64_track_speculation; unify some code paths;
1913 use aarch64_gen_compare_reg instead of open-coding.
1914
1915 * config/aarch64/aarch64.opt (-moutline-atomics): New.
1916 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
1917 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
1918 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
1919 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
1920 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
1921 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
1922 (atomic_<atomic_op><ALLI>): Likewise.
1923 (atomic_fetch_<atomic_op><ALLI>): Likewise.
1924 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
1925 * doc/invoke.texi: Document -moutline-atomics.
1926
1927 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
1928
1929 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
1930 trivial predicate for condition branch.
1931 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
1932 for switch case.
1933 (compute_bb_predicates): Update predicate based on post-dominating
1934 relationship.
1935 (analyze_function_body): Calculate post-dominating information.
1936
1937 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
1938
1939 * tree-vectorizer.h (vectorizable_condition): Take an int
1940 reduction index instead of a boolean flag.
1941 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1942 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
1943 reductions if the reduction accumulator is the "then" rather
1944 than the "else" value.
1945 (vect_analyze_stmt): Update call accordingly.
1946 (vect_transform_stmt): Likewise.
1947 * tree-vect-loop.c (vectorizable_reduction): Likewise,
1948 asserting that the index is > 0.
1949
1950 2019-09-19 Martin Liska <mliska@suse.cz>
1951
1952 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
1953 (sort_congruence_classes_by_decl_uid): Likewise.
1954 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
1955 easier sorting.
1956 (sem_item_optimizer::merge_classes): Likewise.
1957
1958 2019-09-19 Richard Biener <rguenther@suse.de>
1959
1960 PR tree-optimization/91812
1961 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
1962 volatile loads.
1963
1964 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
1965
1966 * defaults.h (TARGET_UNIT): New macro.
1967 (target_unit): New type.
1968 * rtl.h (native_encode_rtx, native_decode_rtx)
1969 (native_decode_vector_rtx, subreg_size_lsb): Declare.
1970 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
1971 * rtlanal.c (subreg_lsb_1): Delete.
1972 (subreg_size_lsb): New function.
1973 * simplify-rtx.c: Include rtx-vector-builder.h
1974 (simplify_immed_subreg): Delete.
1975 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
1976 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
1977 functions.
1978 (simplify_subreg): Use them.
1979 (test_vector_subregs_modes, test_vector_subregs_repeating)
1980 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
1981 (test_vector_subregs): New functions.
1982 (test_vector_ops): Call test_vector_subregs for integer vector
1983 modes with at least 2 elements.
1984
1985 2019-09-19 Richard Biener <rguenther@suse.de>
1986
1987 * tree-parloops.c (parloops_is_slp_reduction): Do not set
1988 LOOP_VINFO_OPERANDS_SWAPPED.
1989 (parloops_is_simple_reduction): Likewise.
1990 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
1991 initialize operands_swapped.
1992 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
1993 (vect_is_slp_reduction): Do not swap operands.
1994 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
1995 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
1996
1997 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
1998
1999 PR target/87007
2000 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
2001 Add avx_partial_xmm_update.
2002
2003 2019-09-18 Jim Wilson <jimw@sifive.com>
2004
2005 PR target/91683
2006 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
2007 (riscv_move_integer): Likewise.
2008 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
2009 riscv_move_integer arg.
2010 (riscv_legitimize_move): Likewise.
2011 (riscv_force_temporary): New parameter in_splitter. Don't call
2012 force_reg if true.
2013 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
2014 arg.
2015 (riscv_add_offset): Likewise.
2016 (riscv_split_symbol): New parameter in_splitter. Pass to
2017 riscv_force_temporary.
2018 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
2019 arg.
2020 (riscv_move_integer): New parameter in_splitter. New local
2021 can_create_psuedo. Don't call riscv_split_integer or force_reg when
2022 in_splitter TRUE.
2023 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
2024 riscv_split_symbol, and riscv_force_temporary args.
2025 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
2026 riscv_move_integer arg.
2027 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
2028
2029 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 PR target/90878
2032 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
2033 hard register store cost to 6.
2034
2035 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2036
2037 PR target/91446
2038 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
2039 pseudo register store cost from 3 to 6 to make it the same as
2040 QImode and HImode.
2041
2042 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2043
2044 PR target/91738
2045 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
2046 (one_cmpldi2): Likewise.
2047 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
2048 of the constant parts is simple.
2049 * config/arm/iterators.md (LOGICAL): Add new code iterator.
2050 (logical_op): Add new code attribute.
2051 (logical_OP): Likewise.
2052 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
2053 (arm_iordi_operand): Add predicate.
2054 (arm_xordi_operand): Add predicate.
2055
2056 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2057
2058 * config/arm/arm.md (maddsidi4): Remove expander.
2059 (mulsidi3adddi): Remove pattern.
2060 (mulsidi3adddi_v6): Likewise.
2061 (mulsidi3_nov6): Likewise.
2062 (mulsidi3_v6): Likewise.
2063 (umulsidi3): Remove expander.
2064 (umulsidi3_nov6): Remove pattern.
2065 (umulsidi3_v6): Likewise.
2066 (umulsidi3adddi): Likewise.
2067 (umulsidi3adddi_v6): Likewise.
2068 (<Us>mulsidi3): Add combined expander.
2069 (<Us>maddsidi4): Likewise.
2070 (<US>mull): Add combined umull and smull pattern.
2071 (<US>mlal): Likewise.
2072 * config/arm/iterators.md (Us): Add new iterator.
2073
2074 2019-09-18 Richard Biener <rguenther@suse.de>
2075
2076 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
2077 swapping.
2078 (vectorize_fold_left_reduction): Remove assert.
2079 (vectorizable_reduction): Also expect COND_EXPR non-reduction
2080 operand in position 2. Remove assert.
2081
2082 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2083
2084 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
2085 (smulsi3_highpart_nov6): Remove pattern.
2086 (smulsi3_highpart_v6): Likewise.
2087 (umulsi3_highpart): Likewise.
2088 (umulsi3_highpart_nov6): Likewise.
2089 (umulsi3_highpart_v6): Likewise.
2090 (<US>mull_high): Add new combined multiply pattern.
2091
2092 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2093
2094 * config/arm/arm.md (arm_mulsi3): Remove pattern.
2095 (arm_mulsi3_v6): Likewise.
2096 (mulsi3addsi_v6): Likewise.
2097 (mulsi3subsi): Likewise.
2098 (mul): Add new multiply pattern.
2099 (mla): Likewise.
2100 (mls): Likewise.
2101
2102 2019-09-18 Richard Biener <rguenther@suse.de>
2103
2104 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
2105 (parloops_valid_reduction_input_p): Copy from
2106 valid_reduction_input_p.
2107 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
2108 (parloops_needs_fold_left_reduction_p): Copy from
2109 needs_fold_left_reduction_p.
2110 (parloops_is_simple_reduction): Copy from
2111 vect_is_simple_reduction.
2112 (parloops_force_simple_reduction): Copy from
2113 vect_force_simple_reduction.
2114 (gather_scalar_reductions): Adjust.
2115 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
2116 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
2117
2118 2019-09-18 Richard Biener <rguenther@suse.de>
2119
2120 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
2121 * tree-vect-loop.c (get_initial_def_for_reduction): Make
2122 static.
2123 (vect_create_epilog_for_reduction): Remove dead code.
2124
2125 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2126
2127 * varasm.c (assemble_real): Generate canonical const_ints.
2128
2129 2019-09-18 Richard Biener <rguenther@suse.de>
2130
2131 PR lto/91763
2132 * lto-streamer-in.c (input_eh_regions): Move EH init to
2133 lto_materialize_function.
2134 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2135 Likewise.
2136
2137 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2138
2139 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
2140 are INTEGER_CSTs.
2141
2142 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
2145 of checking specifically for INTEGER_CST.
2146
2147 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2148
2149 * stor-layout.c (compute_record_mode): Operate on poly_uint64
2150 sizes instead of uhwi sizes.
2151
2152 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2153
2154 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
2155 (add_const_value_attribute): Handle CONST_POLY_INT.
2156
2157 2019-09-18 Martin Liska <mliska@suse.cz>
2158
2159 * dbgcnt.def (store_merging): New counter.
2160 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
2161 Use it in store merging.
2162
2163 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2164
2165 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
2166 function.
2167 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2168 * config/arm/arm.c (arm_sched_variable_issue): New function.
2169 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2170
2171 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2172
2173 * config/arm/types.md (no_reservation): New reservation.
2174 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
2175 no_insn here.
2176 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
2177 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
2178 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
2179 * config/arm/arm1020e.md (1020alu_op): Likewise.
2180 * config/arm/arm1026ejs.md (alu_op): Likewise.
2181 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2182 * config/arm/arm926ejs.md (9_alu_op): Likewise.
2183 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2184 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
2185 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2186 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2187 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2188 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2189 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2190 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2191 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2192 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2193 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2194 * config/arm/fa526.md (526_alu_op): Likewise.
2195 * config/arm/fa606te.md (606te_alu_op): Likewise.
2196 * config/arm/fa626te.md (626te_alu_op): Likewise.
2197 * config/arm/fa726te.md (726te_alu_op): Likewise.
2198 * config/arm/xgene1.md (xgene1_nop): Likewise.
2199
2200 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2201
2202 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2203 "no_insn" to "branch".
2204
2205 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2206
2207 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2208
2209 2019-09-17 Richard Biener <rguenther@suse.de>
2210
2211 PR debug/91772
2212 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2213 was missing generate locations only once.
2214
2215 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
2216
2217 PR ipa/91089
2218 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2219 option.
2220 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2221 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2222 for switch default case using range analysis information.
2223
2224 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
2225
2226 PR target/91749
2227 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2228 mode attributed is supported by FDPIC.
2229
2230 2019-09-17 Richard Biener <rguenther@suse.de>
2231
2232 PR tree-optimization/91790
2233 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2234 use the correct DR for setting up realignment.
2235
2236 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
2237
2238 PR target/91719
2239 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2240 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2241 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2242 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2243
2244 2019-09-16 Jason Merrill <jason@redhat.com>
2245
2246 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2247
2248 2019-09-16 Martin Liska <mliska@suse.cz>
2249
2250 * gimple-fold.c (or_comparisons_1): Remove rules moved
2251 to ...
2252 * match.pd: ... here.
2253
2254 2019-09-16 Martin Liska <mliska@suse.cz>
2255
2256 * gimple-fold.c (or_comparisons_1): Remove rules
2257 moved to ...
2258 * match.pd: ... here.
2259
2260 2019-09-16 Martin Liska <mliska@suse.cz>
2261
2262 * genmatch.c (dt_node::append_simplify): Do not print
2263 warning when we have duplicate patterns belonging
2264 to a same simplify rule.
2265 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2266 (maybe_fold_comparisons_from_match_pd): Handle
2267 tcc_comparison as a results.
2268 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2269
2270 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2271 Qi Feng <ffengqi@linux.ibm.com>
2272
2273 PR middle-end/88784
2274 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
2275 (x > y && x == XXX_MIN): Optimize into 'false'.
2276 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2277 (x < y && x != XXX_MAX): Optimize into 'x < y'.
2278 (x < y && x == XXX_MAX): Optimize into 'false'.
2279 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2280 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2281 (x <= y || x != XXX_MIN): Optimize into 'true'.
2282 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
2283 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2284 (x >= y || x != XXX_MAX): Optimize into 'true'.
2285 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
2286
2287 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2288 Martin Liska <mliska@suse.cz>
2289
2290 * gimple-fold.c (and_comparisons_1): Add type as first
2291 argument.
2292 (and_var_with_comparison): Likewise.
2293 (and_var_with_comparison_1): Likewise.
2294 (or_comparisons_1): Likewise.
2295 (or_var_with_comparison): Likewise.
2296 (or_var_with_comparison_1): Likewise.
2297 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2298 (maybe_fold_or_comparisons): Likewise.
2299 (maybe_fold_comparisons_from_match_pd): New.
2300 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2301 (maybe_fold_or_comparisons): Likewise.
2302 * gimple.c (gimple_size): Make it public and add num_ops argument.
2303 (gimple_init): New function.
2304 (gimple_alloc): Call gimple_init.
2305 * gimple.h (gimple_size): New.
2306 (gimple_init): Likewise.
2307 * tree-if-conv.c (fold_or_predicates): Pass type.
2308 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2309 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2310 (optimize_vec_cond_expr): Likewise.
2311 (ovce_extract_ops): Return type of conditional expression.
2312 * tree-ssanames.c (init_ssa_name_imm_use): New.
2313 (make_ssa_name_fn): Use init_ssa_name_imm_use.
2314 * tree-ssanames.h (init_ssa_name_imm_use): New.
2315
2316 2019-09-16 Richard Biener <rguenther@suse.de>
2317
2318 PR tree-optimization/91756
2319 PR tree-optimization/87132
2320 * tree-ssa-alias.h (enum translate_flags): New.
2321 (get_continuation_for_phi): Use it instead of simple bool flag.
2322 (walk_non_aliased_vuses): Likewise.
2323 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2324 (get_continuation_for_phi): When looking across backedges only
2325 disallow valueization.
2326 (walk_non_aliased_vuses): Adjust.
2327 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2328 if requested.
2329
2330 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
2331
2332 PR middle-end/80791
2333 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2334 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2335 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2336 * target.def (have_count_reg_decr_p): New hook.
2337 (doloop_cost_for_generic): Likewise.
2338 (doloop_cost_for_address): Likewise.
2339 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2340 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2341 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2342 * doc/tm.texi: Regenerate.
2343 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2344 addend.
2345 (record_group): Init doloop_p.
2346 (add_candidate_1): Add optional argument doloop, change the handlings
2347 accordingly.
2348 (add_candidate): Likewise.
2349 (generic_predict_doloop_p): Update attribute.
2350 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2351 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2352 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2353 MIN_EXPR.
2354 (get_computation_cost): Update for doloop IV cand extra cost.
2355 (determine_group_iv_cost_cond): Update for doloop IV cand.
2356 (determine_iv_cost): Likewise.
2357 (ivopts_estimate_reg_pressure): Likewise.
2358 (may_eliminate_iv): Update handlings for doloop IV cand.
2359 (add_iv_candidate_for_doloop): New function.
2360 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2361 (iv_ca_set_no_cp): Update for doloop IV cand.
2362 (iv_ca_set_cp): Likewise.
2363 (iv_ca_dump): Dump register cost.
2364 (find_doloop_use): New function.
2365 (analyze_and_mark_doloop_use): Likewise.
2366 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2367
2368 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
2369
2370 PR middle-end/91708
2371 * cse.c (cse_insn): Do not replace anything with a
2372 MEM.
2373
2374 2019-09-13 Ian Lance Taylor <iant@golang.org>
2375
2376 * doc/invoke.texi (Optimize Options): Fix typo.
2377
2378 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
2379
2380 PR tree-optimization/89386
2381 * config/i386/sse.md (smulhrs<mode>3): New expander.
2382 (smulhrsv4hi3): Ditto.
2383
2384 2019-09-12 Richard Biener <rguenther@suse.de>
2385
2386 PR tree-optimization/91750
2387 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2388 in the type of the evolution.
2389
2390 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
2391
2392 PR tree-optimization/89386
2393 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2394 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2395 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2396 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
2397 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
2398 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
2399 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
2400 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
2401 (su, r): Handle the unspecs above.
2402 (bt): New int attribute.
2403 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
2404 * internal-fn.c (first_commutative_argument): Commutativity info for
2405 above.
2406 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
2407 (umulhrs_optab): New optabs.
2408 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
2409 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
2410 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
2411 function.
2412 (vect_vect_recog_func_ptrs): Add it.
2413
2414 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
2415
2416 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
2417 code.
2418
2419 2019-09-11 Nathan Sidwell <nathan@acm.org>
2420
2421 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
2422 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
2423
2424 2019-09-11 Richard Biener <rguenther@suse.de>
2425
2426 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
2427 * lto-wrapper.c (merge_and_complain): Pick up -g.
2428 (append_compiler_options): Likewise.
2429 (run_gcc): Re-instantiate handling -g0 at link-time.
2430 * doc/invoke.texi (flto): Document debug info generation.
2431
2432 2019-09-11 Richard Biener <rguenther@suse.de>
2433
2434 PR tree-optimization/90387
2435 * vr-values.c (vr_values::extract_range_basic): After inlining
2436 simplify non-constant __builtin_constant_p to false.
2437
2438 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
2439
2440 PR rtl-optimization/89795
2441 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
2442 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
2443
2444 2019-09-11 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR tree-optimization/91723
2447 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
2448 instead of pointer equality when checking if argument vectypes are
2449 the same.
2450
2451 PR middle-end/91725
2452 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
2453 of get_nonzero_bits, only call it for integral types.
2454
2455 2019-09-11 Richard Biener <rguenther@suse.de>
2456
2457 Revert
2458 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
2459
2460 * match.pd: Add flag_unsafe_math_optimizations check
2461 before deciding on the widest type in a binary math operation.
2462
2463 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2464
2465 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
2466 and CALL_REALLY_USED_REGISTERS must be defined, and that
2467 CALL_REALLY_USED_REGISTERS is preferred.
2468 * doc/tm.texi: Regenerate.
2469 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
2470 (call_really_used_regs): Likewise.
2471 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
2472 CALL_REALLY_USED_REGISTERS are defined.
2473 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
2474 initial value if defined.
2475 (initial_call_really_used_regs): Delete.
2476 (saved_call_really_used_regs): Likewise.
2477 (CALL_REALLY_USED_REGNO_P): Likewise.
2478 (init_reg_sets): Remove handling of call_really_used_regs.
2479 (save_register_info, restore_register_info, globalize_reg): Likewise.
2480 (init_reg_sets_1): Likewise. Use call_used_regs instead of
2481 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
2482 outside operand_reg_set.
2483 (fix_register): Don't change call_used_regs if
2484 CALL_REALLY_USED_REGISTERS is defined.
2485 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
2486 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
2487 instead of call_really_used_regs.
2488 (csky_conditional_register_usage): Remove the old handling of
2489 call_used_regs and change the handling of call_really_used_regs
2490 to use call_used_regs instead.
2491 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
2492 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
2493 making a register fixed.
2494 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
2495 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
2496 instead of call_really_used_regs.
2497 (m32r_conditional_register_usage): Don't set call_used_regs when
2498 making a register fixed.
2499 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
2500 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
2501 instead of call_really_used_regs.
2502 (mips_interrupt_extra_call_saved_reg_p): Likewise.
2503 (mips_cfun_call_saved_reg_p): Likewise.
2504 (mips_swap_registers): Remove the old handling of call_used_regs
2505 and change the handling of call_really_used_regs to use call_used_regs
2506 instead.
2507 (mips_conditional_register_usage): Likewise.
2508 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
2509 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
2510 instead of call_really_used_regs.
2511 (mn10300_get_live_callee_saved_regs): Likewise.
2512 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
2513 (mn10300_conditional_register_usage): Don't set call_used_regs when
2514 making a register fixed.
2515 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
2516 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2517 Remove the old handling of call_used_regs and change the handling
2518 of call_really_used_regs to use call_used_regs instead.
2519 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
2520 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
2521 instead of call_really_used_regs.
2522 (s390_register_info_gprtofpr, s390_register_info): Likewise.
2523 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
2524 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
2525 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
2526 (s390_conditional_register_usage): Remove the old handling of
2527 call_used_regs and change the handling of call_really_used_regs
2528 to use call_used_regs instead.
2529 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
2530 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
2531 (sh_fix_range, reg_unused_after): Likewise.
2532 (sh_conditional_register_usage): Remove the old handling of
2533 call_used_regs and change the handling of call_really_used_regs
2534 to use call_used_regs instead.
2535 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
2536 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
2537 call_used_regs when making a register fixed.
2538 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
2539 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
2540 call_used_regs when making a register fixed.
2541 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
2542 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
2543 set call_used_regs when making a register fixed.
2544 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
2545 * config/visium/visium.c (visium_conditional_register_usage): Remove
2546 the old handling of call_used_regs and change the handling of
2547 call_really_used_regs to use call_used_regs instead.
2548
2549 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2550
2551 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
2552 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
2553 * reginfo.c (call_used_regs): New macro.
2554
2555 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2556
2557 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
2558 fixed_regs test.
2559 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2560 (bpf_expand_epilogue): Likewise.
2561 * config/c6x/c6x.c (c6x_save_reg): Likewise.
2562 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2563 (ft32_expand_epilogue): Likewise.
2564 * config/i386/i386.c (ix86_save_reg): Likewise.
2565 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
2566 (moxie_expand_epilogue): Likewise.
2567 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2568 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2569 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2570
2571 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2572
2573 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
2574 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
2575 instead of testing call_used_regs directly.
2576 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
2577 (aarch64_components_for_bb): Likewise.
2578 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
2579 * config/arc/arc.c (arc_must_save_register): Likewise.
2580 (arc_epilogue_uses): Likewise.
2581 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
2582 (legitimize_pic_address, callee_saved_reg_p): Likewise.
2583 (arm_compute_save_reg0_reg12_mask): Likewise.
2584 (arm_compute_save_core_reg_mask): Likewise.
2585 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
2586 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
2587 (cmse_nonsecure_entry_clear_before_return): Likewise.
2588 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
2589 (arm_expand_epilogue): Likewise.
2590 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
2591 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
2592 (_reg_unused_after): Likewise.
2593 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
2594 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
2595 (add_to_reg, hwloop_optimize): Likewise.
2596 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2597 (bpf_expand_epilogue): Likewise.
2598 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
2599 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2600 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
2601 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
2602 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
2603 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
2604 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
2605 * config/frv/frv.c (frv_stack_info): Likewise.
2606 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
2607 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
2608 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
2609 (move_callee_saved_registers): Likewise.
2610 * config/h8300/h8300.c (byte_reg): Likewise.
2611 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
2612 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
2613 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
2614 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
2615 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
2616 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
2617 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
2618 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2619 * config/m32c/m32c.c (need_to_save): Likewise.
2620 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2621 * config/mcore/mcore.c (calc_live_regs): Likewise.
2622 * config/microblaze/microblaze.c (microblaze_must_save_register):
2623 Likewise.
2624 * config/mmix/mmix.c (mmix_local_regno): Likewise.
2625 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
2626 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
2627 (mmix_expand_epilogue): Likewise.
2628 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
2629 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
2630 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
2631 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
2632 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
2633 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
2634 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
2635 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
2636 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
2637 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
2638 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
2639 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
2640 * config/rl78/rl78.c (need_to_save): Likewise.
2641 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
2642 (rs6000_stack_info, generate_set_vrsave): Likewise.
2643 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2644 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
2645 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2646 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2647 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
2648 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
2649 (save_local_or_in_reg_p): Likewise.
2650 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
2651 (xstormy16_epilogue_uses): Likewise.
2652 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2653 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2654 * config/v850/v850.c (compute_register_save_size): Likewise.
2655 * config/vax/vax.c (vax_expand_prologue): Likewise.
2656 * config/visium/visium.c (visium_save_reg_p): Likewise.
2657 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2658 * cselib.c (cselib_process_insn): Likewise.
2659 * df-scan.c (df_get_entry_block_def_set): Likewise.
2660 * function.c (aggregate_value_p): Likewise.
2661 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
2662 * ira-lives.c (process_bb_node_lives): Likewise.
2663 * ira.c (do_reload): Likewise.
2664 * lra-lives.c (process_bb_lives): Likewise.
2665 * lra-remat.c (lra_remat): Likewise.
2666 * lra.c (lra): Likewise.
2667 * postreload.c (reload_combine_recognize_pattern): Likewise.
2668 (reload_cse_move2add): Likewise.
2669 * recog.c (peep2_find_free_register): Likewise.
2670 * regrename.c (check_new_reg_p): Likewise.
2671 * reload.c (find_equiv_reg): Likewise.
2672 * reload1.c (reload, find_reg): Likewise.
2673 * sel-sched.c (init_hard_regs_data): Likewise.
2674
2675 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2676
2677 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
2678 regs_invalidated_by_call & ~fixed_reg_set instead of
2679 call_used_or_fixed_regs & ~fixed_reg_set.
2680 * config/sh/sh.c (output_stack_adjust): Likewise.
2681
2682 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2683
2684 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
2685 (call_used_reg_set): Delete.
2686 (call_used_or_fixed_regs): New macro.
2687 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
2688 of call_used_reg_set.
2689 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
2690 instead of call_used_regs.
2691 (save_call_clobbered_regs): Likewise.
2692 * cfgcleanup.c (old_insns_match_p): Likewise.
2693 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
2694 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2695 Likewise.
2696 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2697 * config/sh/sh.c (output_stack_adjust): Likewise.
2698 * final.c (collect_fn_hard_reg_usage): Likewise.
2699 * ira-build.c (ira_build): Likewise.
2700 * ira-color.c (calculate_saved_nregs): Likewise.
2701 (allocno_reload_assign, calculate_spill_cost): Likewise.
2702 * ira-conflicts.c (ira_build_conflicts): Likewise.
2703 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2704 * ira-lives.c (process_bb_node_lives): Likewise.
2705 * ira.c (setup_reg_renumber): Likewise.
2706 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
2707 * lra-constraints.c (need_for_call_save_p): Likewise.
2708 (need_for_split_p, inherit_in_ebb): Likewise.
2709 * lra-lives.c (process_bb_lives): Likewise.
2710 * lra-remat.c (call_used_input_regno_present_p): Likewise.
2711 * postreload.c (reload_combine): Likewise.
2712 * regrename.c (find_rename_reg): Likewise.
2713 * reload1.c (reload_as_needed): Likewise.
2714 * rtlanal.c (find_all_hard_reg_sets): Likewise.
2715 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2716 * shrink-wrap.c (requires_stack_frame_p): Likewise.
2717
2718 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2719
2720 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
2721 (no_caller_save_reg_set): Delete.
2722 * caller-save.c (init_caller_save): Don't initialize it.
2723 * ira-conflicts.c (ira_build_conflicts): Calculate
2724 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
2725
2726 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2727
2728 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
2729 (target_hard_regs::x_savable_regs): New field.
2730 (call_fixed_reg_set): Delete.
2731 (savable_regs): New macro,
2732 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
2733 (init_reg_sets_1): Likewise. Initialize savable_regs.
2734 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
2735 for all registers. Set savable_regs instead of call_fixed_reg_set.
2736 (setup_save_areas, save_call_clobbered_regs): Replace uses of
2737 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
2738 * config/sh/sh.c (output_stack_adjust): Likewise.
2739
2740 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2741
2742 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
2743 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
2744 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
2745
2746 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2747
2748 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
2749 * rtlanal.c (get_call_rtx_from): Likewise.
2750 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
2751 than the pattern to get_call_rtx_from.
2752 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
2753 an rtx_insn * instead of an rtx.
2754 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
2755
2756 2019-09-10 Martin Liska <mliska@suse.cz>
2757
2758 * common.opt: Use newly added WarnRemoved.
2759 * config/aarch64/aarch64.opt: Likewise.
2760 * config/arm/arm.opt: Likewise.
2761 * config/i386/i386.opt: Likewise.
2762 * config/ia64/ia64.opt: Likewise.
2763 * config/rs6000/rs6000.opt: Likewise.
2764 * doc/options.texi: Document WarnRemoved properly.
2765 * dwarf2out.c (gen_producer_string): Handle renamed
2766 OPT_SPECIAL_warn_removed.
2767 * lto-opts.c (lto_write_options): Likewise.
2768 * lto-wrapper.c (merge_and_complain): Likewise.
2769 * opts-common.c (decode_cmdline_option): Likewise.
2770 (prune_options): Likewise.
2771 (read_cmdline_option): Likewise.
2772 (control_warning_option): Likewise.
2773 * opts.c (print_filtered_help): Likewise.
2774 * optc-gen.awk: Parse for WarnRemoved and make usage
2775 of Deprecated an error.
2776 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
2777
2778 2019-09-10 Arnaud Charlet <charlet@adacore.com>
2779
2780 * doc/install.texi: Fix syntax for html generation.
2781
2782 2019-09-10 Jakub Jelinek <jakub@redhat.com>
2783
2784 PR middle-end/91680
2785 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
2786 the shift type to type.
2787
2788 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2789
2790 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
2791 FDPIC mode.
2792 (stack_protect_combined_test_insn): Likewise.
2793
2794 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2795 Mickaël Guêné <mickael.guene@st.com>
2796
2797 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
2798 * config/arm/arm.md (FDPIC_REGNUM): New constant.
2799 (load_tp_soft_fdpic): New pattern.
2800 (load_tp_soft): Disable in FDPIC mode.
2801
2802 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2803 Mickaël Guêné <mickael.guene@st.com>
2804
2805 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
2806 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
2807 (arm_call_tls_get_addr): Add FDPIC support.
2808 (legitimize_tls_address): Likewise.
2809 (arm_emit_tls_decoration): Likewise.
2810
2811 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2812 Mickaël Guêné <mickael.guene@st.com>
2813
2814 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
2815 support.
2816 (arm_trampoline_init): Likewise.
2817 (arm_trampoline_adjust_address): Likewise.
2818 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
2819
2820 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2821 Mickaël Guêné <mickael.guene@st.com>
2822
2823 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
2824 (legitimize_pic_address): Enforce binding rules on function
2825 pointers in FDPIC mode.
2826 (arm_assemble_integer): Likewise.
2827
2828 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2829 Mickaël Guêné <mickael.guene@st.com>
2830
2831 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
2832 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
2833 FDPIC.
2834
2835 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2836 Mickaël Guêné <mickael.guene@st.com>
2837
2838 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
2839 field.
2840
2841 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2842 Mickaël Guêné <mickael.guene@st.com>
2843
2844 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
2845 in FDPIC mode.
2846 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
2847 new function.
2848 * config/arm/arm.c (arm_option_override): Define pic register to
2849 FDPIC_REGNUM.
2850 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
2851 have no decl or go through PLT.
2852 (calculate_pic_address_constant): New function.
2853 (legitimize_pic_address): Call calculate_pic_address_constant.
2854 (arm_load_pic_register): Handle TARGET_FDPIC.
2855 (arm_is_segment_info_known): New function.
2856 (arm_pic_static_addr): Add support for FDPIC.
2857 (arm_load_function_descriptor): New function.
2858 (arm_emit_call_insn): Add support for FDPIC.
2859 (arm_assemble_integer): Add support for FDPIC.
2860 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
2861 Define. (FDPIC_REGNUM): New define.
2862 * config/arm/arm.md (call): Add support for FDPIC.
2863 (call_value): Likewise.
2864 (restore_pic_register_after_call): New pattern.
2865 (untyped_call): Disable if FDPIC.
2866 (untyped_return): Likewise.
2867 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
2868
2869 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2870 Mickaël Guêné <mickael.guene@st.com>
2871
2872 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
2873 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
2874 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
2875 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
2876 (CC1_SPEC): Use FDPIC_CC1_SPEC.
2877 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
2878 * config/arm/uclinuxfdpiceabi.h: New file.
2879
2880 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2881
2882 * config.gcc: Handle *-*-uclinuxfdpiceabi.
2883
2884 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2885 Mickaël Guêné <mickael.guene@st.com>
2886
2887 * config/arm/arm.opt: Add -mfdpic option.
2888 * doc/invoke.texi: Add documentation for -mfdpic.
2889
2890 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2891
2892 * expmed.c (extract_bit_field): Update function comment
2893 regarding alt_rtl.
2894 * expr.c (expand_expr_real): Update function comment
2895 regarding alt_rtl.
2896 (expand_misaligned_mem_ref): New helper function.
2897 (expand_expr_real_2): Use expand_misaligned_mem_ref.
2898 Remove duplicate assignment to "base" at case MEM_REF.
2899 Remove a shadowed variable "unsignedp" at case VCE.
2900
2901 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2902
2903 * regset.h (regs_invalidated_by_call_regset): Delete.
2904 (fixed_reg_set_regset): Likewise.
2905 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
2906 (fixed_reg_set_regset, persistent_obstack): Likewise.
2907 (init_reg_sets_1, globalize_reg): Update accordingly.
2908 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
2909 instead of a bitmap.
2910 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
2911 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
2912 instead of regs_invalidated_by_call_regset.
2913 (df_lr_confluence_n, df_md_confluence_n): Likewise.
2914 * df-scan.c (df_scan_start_dump): Likewise.
2915 * dse.c (copy_fixed_regs): Likewise.
2916 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
2917
2918 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2919
2920 * array-traits.h: New file.
2921 * coretypes.h (array_traits, bitmap_view): New types.
2922 * bitmap.h: Include "array-traits.h"
2923 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
2924 (base_bitmap_view, bitmap_view): New classes.
2925 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
2926 * hard-reg-set.h: Include array-traits.h.
2927 (array_traits<HARD_REG_SET>): New struct.
2928 * regset.h (IOR_REG_SET_HRS): New macro.
2929 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
2930 rather than iterating over each hard register.
2931 * sched-deps.c (sched_analyze_insn): Likewise.
2932 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
2933
2934 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2935
2936 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
2937 instead of a HARD_REG_SET *.
2938 * ira-build.c (ior_hard_reg_conflicts): Likewise.
2939 (ira_build): Update call accordingly.
2940 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2941
2942 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2943
2944 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
2945 (HARD_REG_SET::operator!=): Likewise.
2946 (hard_reg_set_equal_p): Delete.
2947 * cfgcleanup.c (old_insns_match_p): Use == instead of
2948 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
2949 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
2950 (add_allocno_hard_regs_to_forest): Likewise.
2951 (setup_allocno_available_regs_num): Likewise.
2952 * ira.c (setup_pressure_classes): Likewise.
2953 (setup_allocno_and_important_classes): Likewise.
2954 (setup_reg_class_relations): Likewise.
2955 * lra-lives.c (process_bb_lives): Likewise.
2956 * reg-stack.c (change_stack, convert_regs_1): Likewise.
2957
2958 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2959
2960 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
2961 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
2962 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
2963 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
2964 Likewise.
2965 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
2966 * ira.c (setup_reg_renumber): Likewise.
2967 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2968 * regrename.c (regrename_find_superclass): Likewise.
2969 * reload1.c (find_reg): Likewise.
2970
2971 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2972
2973 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
2974 * caller-save.c (setup_save_areas): Use "&~" instead of
2975 AND_COMPL_HARD_REG_SET.
2976 (save_call_clobbered_regs): Likewise.
2977 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2978 Likewise.
2979 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2980 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
2981 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
2982 * config/mips/mips.c (mips_class_max_nregs): Likewise.
2983 (mips_conditional_register_usage): Likewise.
2984 * config/sh/sh.c (output_stack_adjust): Likewise.
2985 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
2986 (setup_profitable_hard_regs): Likewise.
2987 (get_conflict_and_start_profitable_regs): Likewise.
2988 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2989 (ira_build_conflicts): Likewise.
2990 * ira-costs.c (restrict_cost_classes): Likewise.
2991 (setup_regno_cost_classes_by_aclass): Likewise.
2992 * ira-lives.c (process_bb_node_lives): Likewise.
2993 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
2994 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
2995 (setup_allocno_and_important_classes, setup_class_translate_array)
2996 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
2997 Likewise.
2998 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2999 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3000 (process_alt_operands, inherit_in_ebb): Likewise.
3001 * lra-eliminations.c (update_reg_eliminate): Likewise.
3002 * lra-lives.c (process_bb_lives): Likewise.
3003 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
3004 * resource.c (find_dead_or_set_registers): Likewise.
3005 (mark_target_live_regs): Likewise.
3006 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
3007 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3008 (implicit_clobber_conflict_p): Likewise.
3009 * shrink-wrap.c (requires_stack_frame_p): Likewise.
3010 (try_shrink_wrapping): Likewise.
3011
3012 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3013
3014 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
3015 (HARD_REG_SET::operator|=): Likewise.
3016 (IOR_HARD_REG_SET): Delete.
3017 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
3018 IOR_HARD_REG_SET.
3019 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3020 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
3021 * final.c (collect_fn_hard_reg_usage): Likewise.
3022 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
3023 * ira-build.c (merge_hard_reg_conflicts): Likewise.
3024 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
3025 (propagate_some_info_from_allocno): Likewise.
3026 (copy_info_to_removed_store_destinations): Likewise.
3027 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
3028 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
3029 (fast_allocation): Likewise.
3030 * ira-conflicts.c (ira_build_conflicts): Likewise.
3031 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
3032 (process_bb_node_lives): Likewise.
3033 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
3034 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3035 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3036 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
3037 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
3038 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
3039 (process_bb_lives): Likewise.
3040 * lra-spills.c (assign_spill_hard_regs): Likewise.
3041 * postreload.c (reload_combine): Likewise.
3042 * reginfo.c (init_reg_sets_1): Likewise.
3043 * regrename.c (merge_overlapping_regs, find_rename_reg)
3044 (merge_chains): Likewise.
3045 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
3046 (find_reload_regs, finish_spills, choose_reload_regs_init)
3047 (emit_reload_insns): Likewise.
3048 * reorg.c (redundant_insn): Likewise.
3049 * resource.c (find_dead_or_set_registers, mark_set_resources)
3050 (mark_target_live_regs): Likewise.
3051 * rtlanal.c (find_all_hard_reg_sets): Likewise.
3052 * sched-deps.c (sched_analyze_insn): Likewise.
3053 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3054 (find_best_reg_for_expr): Likewise.
3055 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3056
3057 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3058
3059 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
3060 (HARD_REG_SET::operator&): Likewise.
3061 (AND_HARD_REG_SET): Delete.
3062 * caller-save.c (setup_save_areas): Use "&" instead of
3063 AND_HARD_REG_SET.
3064 (save_call_clobbered_regs): Likewise.
3065 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3066 * config/m32c/m32c.c (reduce_class): Likewise.
3067 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3068 * final.c (get_call_reg_set_usage): Likewise.
3069 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
3070 (setup_left_conflict_sizes_p): Likewise.
3071 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3072 (ira_build_conflicts): Likewise.
3073 * ira-costs.c (restrict_cost_classes): Likewise.
3074 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
3075 (setup_reg_class_relations): Likewise.
3076 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
3077 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
3078 * resource.c (find_dead_or_set_registers): Likewise.
3079 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3080
3081 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3082
3083 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
3084 (COMPL_HARD_REG_SET): Delete.
3085 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
3086 of COMPL_HARD_REG_SET.
3087 (try_rename_operands): Likewise.
3088 * config/sh/sh.c (push_regs): Likewise.
3089 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3090 * lra-constraints.c (contains_reg_p): Likewise.
3091 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
3092
3093 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3094
3095 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
3096 * caller-save.c (save_call_clobbered_regs): Use assignment instead
3097 of COPY_HARD_REG_SET.
3098 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
3099 (epiphany_conditional_register_usage): Likewise.
3100 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3101 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3102 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
3103 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3104 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
3105 * config/mips/mips.c (mips_class_max_nregs): Likewise.
3106 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
3107 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3108 * config/sh/sh.c (output_stack_adjust): Likewise.
3109 * final.c (collect_fn_hard_reg_usage): Likewise.
3110 (get_call_reg_set_usage): Likewise.
3111 * ira-build.c (ira_create_object, remove_low_level_allocnos)
3112 (ira_flattening): Likewise.
3113 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
3114 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
3115 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
3116 (ira_reassign_pseudos): Likewise.
3117 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3118 (ira_build_conflicts): Likewise.
3119 * ira-costs.c (restrict_cost_classes): Likewise.
3120 (setup_regno_cost_classes_by_aclass): Likewise.
3121 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
3122 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
3123 (setup_stack_reg_pressure_class, setup_pressure_classes)
3124 (setup_allocno_and_important_classes, setup_class_translate_array)
3125 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
3126 (ira_setup_eliminable_regset): Likewise.
3127 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3128 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3129 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3130 (process_alt_operands, inherit_in_ebb): Likewise.
3131 * lra-lives.c (process_bb_lives): Likewise.
3132 * lra-spills.c (assign_spill_hard_regs): Likewise.
3133 * lra.c (lra): Likewise.
3134 * mode-switching.c (new_seginfo): Likewise.
3135 * postreload.c (reload_combine): Likewise.
3136 * reg-stack.c (straighten_stack): Likewise.
3137 * reginfo.c (save_register_info, restore_register_info): Likewise.
3138 (init_reg_sets_1, record_subregs_of_mode): Likewise
3139 * regrename.c (create_new_chain, rename_chains): Likewise.
3140 * reload1.c (order_regs_for_reload, find_reg): Likewise.
3141 (find_reload_regs): Likewise.
3142 * resource.c (find_dead_or_set_registers): Likewise.
3143 (mark_target_live_regs): Likewise.
3144 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3145
3146 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3147
3148 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
3149 (note_pattern_stores): Declare.
3150 (note_stores): Take an rtx_insn *.
3151 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
3152 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
3153 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
3154 (note_stores): Take an rtx_insn * as argument and process
3155 CALL_INSN_FUNCTION_USAGE. Rename old function to...
3156 (note_pattern_stores): ...this.
3157 (find_first_parameter_load): Pass the insn rather than
3158 its pattern to note_stores.
3159 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
3160 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
3161 (insert_one_insn): Likewise.
3162 * combine.c (combine_instructions): Likewise.
3163 (likely_spilled_retval_p): Likewise.
3164 (try_combine): Use note_pattern_stores instead of note_stores.
3165 (record_dead_and_set_regs): Pass the insn rather than its pattern
3166 to note_stores.
3167 (reg_dead_at_p): Likewise.
3168 * config/bfin/bfin.c (workaround_speculation): Likewise.
3169 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
3170 rather than an rtx.
3171 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
3172 instead of note_stores.
3173 (frv_optimize_membar_local): Pass the insn rather than its pattern
3174 to note_stores.
3175 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3176 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
3177 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
3178 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
3179 (mips_reorg_process_insns): Likewise.
3180 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
3181 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
3182 rather than rtxes.
3183 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
3184 its pattern to note_stores.
3185 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3186 of note_stores.
3187 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3188 the insn to note_stores.
3189 (prescan_insns_for_dce): Update call accordingly.
3190 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3191 to note_stores.
3192 * df-problems.c (can_move_insns_across): Likewise.
3193 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3194 * function.c (assign_parm_setup_reg): Likewise.
3195 * gcse-common.c (record_last_mem_set_info_common): Likewise.
3196 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3197 (single_set_gcse): Likewise.
3198 * ira.c (validate_equiv_mem): Likewise.
3199 (update_equiv_regs): Use note_pattern_stores rather than note_stores
3200 for no_equiv.
3201 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3202 pattern to note_stores.
3203 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3204 * loop-iv.c (simplify_using_initial_values): Likewise.
3205 * mode-switching.c (optimize_mode_switching): Likewise.
3206 * optabs.c (emit_libcall_block_1): Likewise.
3207 (expand_atomic_compare_and_swap): Likewise.
3208 * postreload-gcse.c (load_killed_in_block_p): Likewise.
3209 (record_opr_changes): Likewise. Remove explicit handling of
3210 CALL_INSN_FUNCTION_USAGE.
3211 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3212 * regcprop.c (kill_clobbered_values): Likewise.
3213 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3214 to note_stores.
3215 * regrename.c (build_def_use): Likewise.
3216 * reload1.c (reload): Use note_pattern_stores instead of note_stores
3217 for mark_not_eliminable.
3218 (reload_as_needed): Pass the insn rather than its pattern
3219 to note_stores.
3220 (emit_output_reload_insns): Likewise.
3221 * resource.c (mark_target_live_regs): Likewise.
3222 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3223 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3224 instead of note_stores.
3225 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3226 its pattern to note_stores.
3227 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3228 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3229
3230 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3231
3232 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3233 than a #define. Use a structure rather than an array as the
3234 fallback definition. Remove special cases for low array sizes.
3235 (const_hard_reg_set): New typedef.
3236 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3237 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3238 (hard_reg_set_empty_p): Likewise.
3239 (SET_HARD_REG_BIT): Use a function rather than a macro to
3240 handle the case in which HARD_REG_SET is a structure.
3241 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3242 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3243 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3244 (IOR_COMPL_HARD_REG_SET): Likewise.
3245 (hard_reg_set_iterator::pset): Constify the pointer target.
3246 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3247 of a "const HARD_REG_SET". Update the handling of non-integer
3248 HARD_REG_SETs.
3249 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3250 * reload.h: Likewise.
3251 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3252 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3253 of a "const HARD_REG_SET".
3254 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3255 (range_in_hard_reg_set_p): Likewise.
3256 * ira-costs.c (restrict_cost_classes): Likewise.
3257 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3258 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3259 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3260 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3261 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3262 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3263 take an unsigned int and open-code the HARD_REG_SET operations.
3264
3265 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3266
3267 * Makefile.in (OBJS): Remove bt-load.o.
3268 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3269 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3270 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3271 document that the option no longer does anything.
3272 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3273 * target.def (branch_target_register_class): Delete.
3274 (branch_target_register_callee_saved): Likewise.
3275 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3276 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3277 * doc/tm.texi: Regenerate.
3278 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3279 (make_pass_branch_target_load_optimize2): Likewise.
3280 * passes.def (pass_branch_target_load_optimize1): Likewise.
3281 (pass_branch_target_load_optimize2): Likewise.
3282 * targhooks.h (default_branch_target_register_class): Likewise.
3283 * targhooks.c (default_branch_target_register_class): Likewise.
3284 * opt-suggestions.c (test_completion_valid_options): Remove
3285 -fbtr-bb-exclusive from the list of test options.
3286 * bt-load.c: Remove.
3287
3288 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3289
3290 * match.pd: Add flag_unsafe_math_optimizations check
3291 before deciding on the widest type in a binary math operation.
3292
3293 2019-09-09 Martin Liska <mliska@suse.cz>
3294
3295 * config/i386/i386.opt: Update comment of removed
3296 options that are preserved only for backward
3297 compatibility.
3298
3299 2019-09-09 Jakub Jelinek <jakub@redhat.com>
3300
3301 PR target/87853
3302 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3303 instead of __v16qs.
3304
3305 PR target/91704
3306 * config/i386/avxintrin.h (__v32qs): New typedef.
3307 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3308 instead of __v32qi.
3309
3310 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3311
3312 * doc/invoke.texi (Option Summary): Cover eBPF.
3313 (eBPF Options): New section.
3314 * doc/extend.texi (BPF Built-in Functions): Likewise.
3315 (BPF Kernel Helpers): Likewise.
3316
3317 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3318
3319 * config.gcc: Support for bpf-*-* targets.
3320 * common/config/bpf/bpf-common.c: New file.
3321 * config/bpf/t-bpf: Likewise.
3322 * config/bpf/predicates.md: Likewise.
3323 * config/bpf/constraints.md: Likewise.
3324 * config/bpf/bpf.opt: Likewise.
3325 * config/bpf/bpf.md: Likewise.
3326 * config/bpf/bpf.h: Likewise.
3327 * config/bpf/bpf.c: Likewise.
3328 * config/bpf/bpf-protos.h: Likewise.
3329 * config/bpf/bpf-opts.h: Likewise.
3330 * config/bpf/bpf-helpers.h: Likewise.
3331 * config/bpf/bpf-helpers.def: Likewise.
3332
3333 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3334
3335 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3336 indirect_calls.
3337
3338 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3339
3340 * opt-functions.awk (integer_range_info): Make sure values are in
3341 numeric context before operating with them.
3342
3343 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
3344
3345 * genemit.c (gen_split): Print the filename and line number where the
3346 splitter (or peephole2) was defined, to the dump file.
3347
3348 2019-09-07 Jakub Jelinek <jakub@redhat.com>
3349
3350 PR tree-optimization/91665
3351 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3352 incompatible with the type of PHI result.
3353
3354 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3355
3356 PR target/91684
3357 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3358 gen_unaligned_storedi for 4-byte aligned addresses.
3359
3360 2019-09-06 Jim Wilson <jimw@sifive.com>
3361
3362 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3363 change.
3364
3365 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3366
3367 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3368
3369 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3370
3371 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3372 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3373
3374 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
3375
3376 PR target/91654
3377 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3378 cost of SSE->integer and integer->SSE moves from 2 to 6.
3379 (core_cost): Ditto.
3380
3381 2019-09-06 Jakub Jelinek <jakub@redhat.com>
3382
3383 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3384 before testing TYPE_TRANSPARENT_AGGR.
3385 * calls.c (initialize_argument_information, load_register_parameters):
3386 Likewise.
3387
3388 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
3389
3390 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3391 high regs.
3392 (cmp_ior): Likewise.
3393
3394 2019-09-06 Martin Liska <mliska@suse.cz>
3395
3396 * doc/match-and-simplify.texi: Separate tuples with ;.
3397
3398 2019-09-06 Martin Liska <mliska@suse.cz>
3399
3400 PR c++/91125
3401 * Makefile.in: Remove tlink.o.
3402 * collect2.c (do_link): New function isolated
3403 from do_tlink.
3404 (main): Use.
3405 * collect2.h (do_tlink): Remove declaration of do_tlink.
3406 * doc/extend.texi: Remove documentation of -frepo.
3407 * doc/invoke.texi: Likewise.
3408 * doc/sourcebuild.texi: Remove cleanup-repo-files.
3409 * tlink.c: Remove.
3410
3411 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3412 Jim Wilson <jimw@sifive.com>
3413
3414 PR target/91635
3415 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
3416 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
3417 paradoxical_subreg_p (operands[0]).
3418 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
3419 use as intermediate value.
3420
3421 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
3422
3423 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
3424 (sync_compare_and_swap<mode>_insn): Likewise.
3425
3426 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3427
3428 PR middle-end/91615
3429 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
3430 without movmisalign optab.
3431
3432 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR middle-end/91001
3435 PR middle-end/91105
3436 PR middle-end/91106
3437 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
3438 types, use type of their first field instead of type of
3439 args[i].tree_value.
3440
3441 2019-09-05 Richard Biener <rguenther@suse.de>
3442
3443 PR rtl-optimization/91656
3444 * postreload-gcse.c (record_last_mem_set_info): Revert addition
3445 of early out.
3446
3447 2019-09-05 Richard Biener <rguenther@suse.de>
3448
3449 PR middle-end/90501
3450 * tree-inline.c (declare_return_variable): Mark the return
3451 slot as addressable after building an address of it.
3452
3453 2019-09-05 Arnaud Charlet <charlet@adacore.com>
3454
3455 * doc/install.texi: Update and clarify requirements to build GNAT.
3456
3457 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
3458
3459 PR middle-end/91577
3460 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
3461 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
3462 call to be in memory.
3463 (pass_expand::execute): Call discover_nonconstant_array_refs before
3464 setting currently_expanding_to_rtl.
3465
3466 2019-09-04 Caroline Tice <cmtice@google.com>
3467
3468 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
3469 specified together.
3470
3471 2019-09-04 Marek Polacek <polacek@redhat.com>
3472
3473 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
3474
3475 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
3476
3477 PR target/32413
3478 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3479 for QI and HImode moves between SSE and general registers.
3480
3481 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3482
3483 PR c/78736
3484 * doc/invoke.texi: Document -Wenum-conversion.
3485
3486 2019-09-04 Richard Biener <rguenther@suse.de>
3487
3488 PR rtl-optimization/36262
3489 * postreload-gcse.c: Include intl.h and gcse.h.
3490 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
3491 to avoid linear list walk.
3492 (record_last_mem_set_info): Gate off if not computing transparentness.
3493 (get_bb_avail_insn): If transparentness isn't computed give up
3494 early.
3495 (gcse_after_reload_main): Skip compute_transp and extended PRE
3496 if gcse_or_cprop_is_too_expensive says so.
3497
3498 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3499
3500 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
3501 noinit section.
3502 (msp430_select_section): Handle decls with the "noinit" attribute with
3503 default_elf_select_section.
3504 Handle SECCAT_RODATA_MERGE_* section types with
3505 default_elf_select_section.
3506 Add comments about handling of unsupported section types.
3507 (msp430_section_type_flags): Remove handling of the noinit section.
3508
3509 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3510
3511 * config/msp430/msp430.c (msp430_attr): Remove warnings about
3512 conflicting msp430-specific attributes.
3513 (msp430_section_attr): Likewise.
3514 Add warnings about conflicts with generic "noinit" and "section"
3515 attributes.
3516 Fix grammar in -mlarge error message.
3517 (msp430_data_attr): Rename to msp430_persist_attr.
3518 Add warnings about conflicts with generic "noinit" and "section"
3519 attributes.
3520 Add warning for when variable is not initialized.
3521 Chain conditionals which prevent the attribute being added.
3522 (ATTR_EXCL): New helper.
3523 (attr_reent_exclusions): New exclusion table.
3524 (attr_naked_exclusions): Likewise.
3525 (attr_crit_exclusions): Likewise.
3526 (attr_lower_exclusions): Likewise.
3527 (attr_upper_exclusions): Likewise.
3528 (attr_either_exclusions): Likewise.
3529 (attr_persist_exclusions): Likewise.
3530 (msp430_attribute_table): Update with exclusion rules.
3531 (msp430_output_aligned_decl_common): Don't output common symbol if decl
3532 has a section.
3533
3534 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3535
3536 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
3537 (msp430_handle_generic_attribute): New function.
3538 * doc/tm.texi: Regenerate.
3539 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
3540 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3541 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3542 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
3543
3544 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
3545
3546 PR tree-optimization/91504
3547 * match.pd: Add ((~a & b) ^a) --> (a | b).
3548
3549 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3550
3551 PR target/91604
3552 * config/i386/i386-expand.c (split_double_mode): If there is more than
3553 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
3554 already split matching MEM operand instead of calling adjust_address
3555 again.
3556
3557 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3558
3559 * config.gcc: Obsolete spu target. Remove references to spu.
3560 * configure.ac: Remove references to spu.
3561 * configure: Regenerate.
3562 * config/spu/: Remove directory.
3563 * common/config/spu/: Remove directory.
3564
3565 * doc/extend.texi: Remove references to spu.
3566 * doc/invoke.texi: Likewise.
3567 * doc/md.texi: Likewise.
3568 * doc/sourcebuild.texi: Likewise.
3569
3570 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3571
3572 PR middle-end/91603
3573 PR middle-end/91612
3574 PR middle-end/91613
3575 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
3576 and SSA_NAME referring to CONSTANT_P correctly.
3577
3578 2019-09-03 Richard Biener <rguenther@suse.de>
3579
3580 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
3581 (vn_nary_op_insert): Likewise.
3582 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
3583 (vn_nary_op_lookup): Likewise.
3584 (vn_nary_op_insert): Likewise.
3585
3586 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
3587
3588 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
3589 (*op0, 1) instead of XEXP (*op1, 0).
3590
3591 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3592
3593 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
3594 (aarch64_fjcvtzs): New define_insn.
3595 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
3596 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
3597 Add AARCH64_JSCVT.
3598 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
3599 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
3600 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3601 __ARM_FEATURE_JCVT where appropriate.
3602 * config/aarch64/arm_acle.h (__jcvt): Define.
3603
3604 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3605
3606 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
3607 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
3608 (aarch64_<frintnzs_op><mode>): New define_insn.
3609 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
3610 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3611 __ARM_FEATURE_FRINT when appropriate.
3612 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
3613 frint32x, frint64z, frint64x.
3614 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
3615 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
3616 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
3617 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
3618 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
3619 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
3620 * config/aarch64/iterators.md (VSFDF): Define.
3621 (FRINTNZX): Likewise.
3622 (frintnzs_op): Likewise.
3623
3624 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
3625
3626 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
3627 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
3628 Cortex-A34.
3629 * config/aarch64/aarch64-tune.md: Regenerated.
3630 * doc/invoke.texi: Document the new processors.
3631
3632 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3633
3634 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
3635 string.
3636 (ssbs): Likewise.
3637 (sve2): Likewise.
3638 (sve2-sm4): Likewise.
3639 (sveaes): Likewise.
3640 (svesha3): Likewise.
3641 (svebitperm): Likewise.
3642
3643 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3644 Richard Biener <rguenther@suse.de>
3645
3646 PR tree-optimization/91597
3647 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
3648 BIT_AND_EXPR optimization for pointers, even if both operand
3649 ranges don't include NULL, the result can be NULL.
3650
3651 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3652
3653 PR middle-end/91605
3654 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
3655 (non_mem_decl_p): ...this.
3656 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
3657 (expand_assignment): Call mem_ref_referes_to_non_mem_p
3658 unconditionally as before.
3659
3660 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3661
3662 PR target/91323
3663 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
3664 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
3665 * tree.def (LTGT_EXPR): Likewise.
3666 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
3667
3668 2019-09-02 Jakub Jelinek <jakub@redhat.com>
3669
3670 PR go/91617
3671 * fold-const.c (range_check_type): For enumeral and boolean
3672 type, pass 1 to type_for_size langhook instead of
3673 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
3674 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
3675 (build_range_check): Don't call unsigned_type_for for pointer types.
3676 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
3677 range_check_type result.
3678
3679 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3680
3681 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
3682 (replace_ref): Do not replace a chain of only two candidates which are
3683 valid memory references.
3684
3685 2019-09-02 Martin Liska <mliska@suse.cz>
3686
3687 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3688 Bail out when we'll end up with the same number of clusters as
3689 at the beginning.
3690 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
3691 (jump_table_cluster::can_be_handled): Remove the guard
3692 as it's already handled in ::is_enabled. Allocate output
3693 after early bail out.
3694
3695 2019-09-02 Martin Liska <mliska@suse.cz>
3696
3697 PR gcov-profile/91601
3698 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
3699 (path_contains_zero_or_negative_cycle_arc): ... this and handle
3700 also negative edges.
3701 (circuit): Handle also negative edges as they can happen
3702 in some situations.
3703
3704 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
3705
3706 PR target/91472
3707 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
3708 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
3709 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
3710
3711 2019-09-01 Jakub Jelinek <jakub@redhat.com>
3712
3713 PR middle-end/91623
3714 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
3715 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
3716 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
3717 zero vector.
3718
3719 PR lto/91572
3720 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
3721 GIMPLE_ASM TREE_LIST operands.
3722
3723 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3724
3725 * doc/generic.texi (Unary and Binary Expressions): Mark up
3726 an instance of TYPE_MIN.
3727
3728 2019-08-31 Stafford Horne <shorne@gmail.com>
3729
3730 * config/or1k/constraints.md (t): New constraint.
3731 * config/or1k/or1k.h (GOT_REGS): New register class.
3732 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
3733
3734 2019-08-30 Jim Wilson <jimw@sifive.com>
3735
3736 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
3737 and -fpic and -mplt then disable -msave-restore and warn.
3738
3739 2019-08-30 Martin Sebor <msebor@redhat.com>
3740
3741 PR middle-end/91599
3742 * tree-ssa-strlen.c (handle_store): Use a fallback location if
3743 the statement doesn't have one.
3744 * gimple-pretty-print.c (percent_G_format): Same.
3745
3746 PR middle-end/91584
3747 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
3748 before using them to validate MEM_REF offset.
3749
3750 2019-08-30 Marek Polacek <polacek@redhat.com>
3751
3752 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
3753
3754 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3755
3756 * config/arm/arm.md (unaligned_loaddi,
3757 unaligned_storedi): New unspec insn patterns.
3758 * config/arm/neon.md (unaligned_storev8qi): Likewise.
3759 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
3760 and unaligned_storedi for 4-byte aligned memory.
3761 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
3762 4-byte aligned memory.
3763
3764 2019-08-30 Martin Jambor <mjambor@suse.cz>
3765
3766 tree-optimization/91579
3767 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
3768 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
3769 appropriate.
3770 (arg_needs_copy_p): Removed.
3771 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
3772 arg_needs_copy_p.
3773 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
3774
3775 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3776
3777 * config/i386/i386-features.c
3778 (general_scalar_chain::compute_convert_gain):
3779 Correct cost for double-word shifts.
3780 (general_scalar_to_vector_candidate_p): Reject count operands
3781 greater or equal to mode bitsize.
3782
3783 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3784
3785 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3786 for moves between SSE and non-general registers and between
3787 mask and non-general registers.
3788 (ix86_register_move_cost): Remove stalled comment.
3789
3790 2019-08-29 Richard Biener <rguenther@suse.de>
3791
3792 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3793 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
3794
3795 2019-08-29 Richard Biener <rguenther@suse.de>
3796
3797 PR bootstrap/91580
3798 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3799 Do not emit scalar copies for debug-insns, instead replace
3800 their uses with the reg copy used in the chain or reset them
3801 if there is a reaching definition outside of the chain as well.
3802
3803 2019-08-29 Jakub Jelinek <jakub@redhat.com>
3804
3805 PR target/91560
3806 * config/i386/i386-expand.c (expand_vec_perm_movs,
3807 expand_vec_perm_blend, expand_vec_perm_vpermil,
3808 expand_vec_perm_pshufb, expand_vec_perm_1,
3809 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
3810 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
3811 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
3812 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
3813 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
3814 comments - replace ix86_expand_vec_perm_builtin_1 with
3815 ix86_expand_vec_perm_const_1.
3816 (expand_vec_perm2_vperm2f128_vblend): New function.
3817 (ix86_expand_vec_perm_const_1): New forward declaration. Call
3818 expand_vec_perm2_vperm2f128_vblend as last resort.
3819 (canonicalize_perm): Formatting fix.
3820
3821 PR tree-optimization/91351
3822 * tree-cfg.c (generate_range_test): Use range_check_type instead of
3823 unsigned_type_for.
3824 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
3825 range_check_type returns NULL.
3826 * tree-switch-conversion.c (switch_conversion::build_one_array):
3827 Use range_check_type instead of unsigned_type_for, don't perform
3828 linear opt if it returns NULL.
3829 (bit_test_cluster::find_bit_tests): Formatting fix.
3830 (bit_test_cluster::emit): Use range_check_type instead of
3831 unsigned_type_for.
3832 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
3833 returns NULL.
3834
3835 2019-08-29 Richard Biener <rguenther@suse.de>
3836
3837 PR tree-optimization/91568
3838 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
3839 (vect_update_max_nunits): Add overload for poly_uint64.
3840 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
3841 (vect_build_slp_tree): Record max_nunits into the subtree
3842 and merge it upwards.
3843 (vect_print_slp_tree): Print max_nunits.
3844
3845 2019-08-28 Marek Polacek <polacek@redhat.com>
3846
3847 Implement P1152R4: Deprecating some uses of volatile.
3848 PR c++/91361
3849 * doc/invoke.texi: Document -Wvolatile.
3850
3851 2019-08-28 Marek Polacek <polacek@redhat.com>
3852
3853 PR c++/91360 - Implement C++20 P1143R2: constinit.
3854 * doc/invoke.texi: Document -Wc++20-compat.
3855
3856 2019-08-28 Martin Sebor <msebor@redhat.com>
3857
3858 PR tree-optimization/91457
3859 * builtins.c (component_size): New function.
3860 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
3861 * builtins.h (compute_objsize): Add argument.
3862 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
3863 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
3864 (vrp_prop::check_mem_ref): Same.
3865 (vrp_prop::search_for_addr_array): Set no-warning bit.
3866 (check_array_bounds): Same.
3867
3868 2019-08-28 Martin Sebor <msebor@redhat.com>
3869
3870 PR driver/80545
3871 * opts-common.c (option_enabled): Correct checking for language
3872 options.
3873
3874 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
3875
3876 * config/i386/i386.c (ix86_register_move_cost): Do not
3877 limit the cost of moves to/from XMM register to minimum 8.
3878
3879 2019-08-28 Martin Jambor <mjambor@suse.cz>
3880
3881 PR ipa/91468
3882 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
3883 checking assert a normal assert to test it really is redundant.
3884 * ipa-prop.c (compute_complex_assign_jump_func): Removed
3885 redundant test.
3886 (update_jump_functions_after_inlining): Removed combining unary
3887 arithmetic operations with an ancestor jump function.
3888 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
3889 instead of t.
3890
3891 2019-08-28 Richard Biener <rguenther@suse.de>
3892
3893 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
3894 add the MD problem.
3895
3896 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3897 Richard Biener <rguenther@suse.de>
3898
3899 * expr.c (expand_assignment): Handle misaligned DECLs.
3900 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
3901 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
3902 too.
3903 (assign_parm_setup_stack): Allocate properly aligned stack slots.
3904 * varasm.c (build_constant_desc): Align constants of misaligned types.
3905 * config/arm/predicates.md (aligned_operand): New predicate.
3906 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
3907 aligned_operand to check restrictions on memory addresses.
3908 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
3909 * config/arm/vec-common.md (mov<VALL>): Likewise.
3910
3911 2019-08-28 Jakub Jelinek <jakub@redhat.com>
3912
3913 PR libgomp/91530
3914 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
3915 V_128 iterator instead of VI_128.
3916
3917 2019-08-28 Martin Liska <mliska@suse.cz>
3918
3919 PR tree-optimization/90970
3920 * builtins.c (check_access): Remove assignment to maxread
3921 as it hasn't been used since when it was introduced in r255755.
3922
3923 2019-08-27 Martin Sebor <msebor@redhat.com>
3924
3925 PR tree-optimization/91567
3926 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
3927 of unknown strings.
3928 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
3929 to PTRDIFF_MAX - 2.
3930
3931 2019-08-27 Jeff Law <law@redhat.com>
3932
3933 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
3934 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
3935
3936 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
3937
3938 PR target/91528
3939 * config/i386/i386-features.c (convert_scalars_to_vector):
3940 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
3941 crtl->stack_realign_processed. Update crtl->drap_reg by calling
3942 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
3943 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
3944
3945 2019-08-27 Richard Biener <rguenther@suse.de>
3946
3947 * config/i386/i386-features.h
3948 (general_scalar_chain::~general_scalar_chain): Add.
3949 (general_scalar_chain::insns_conv): New bitmap.
3950 (general_scalar_chain::n_sse_to_integer): New.
3951 (general_scalar_chain::n_integer_to_sse): Likewise.
3952 (general_scalar_chain::make_vector_copies): Adjust signature.
3953 * config/i386/i386-features.c
3954 (general_scalar_chain::general_scalar_chain): Outline,
3955 initialize new members.
3956 (general_scalar_chain::~general_scalar_chain): New.
3957 (general_scalar_chain::mark_dual_mode_def): Record insns
3958 we need to insert conversions at and count them.
3959 (general_scalar_chain::compute_convert_gain): Account
3960 for conversion instructions at chain boundary.
3961 (general_scalar_chain::make_vector_copies): Generate a single
3962 copy for a def by a specific insn.
3963 (general_scalar_chain::convert_registers): First populate
3964 defs_map, then make copies at out-of chain insns.
3965
3966 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
3967
3968 * config/arm/arm.md (stack_protect_set_insn): Add security-related
3969 comment.
3970 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
3971
3972 2019-08-27 Martin Liska <mliska@suse.cz>
3973
3974 * cgraph.c (cgraph_node::remove): Remove dead assignment before
3975 loop.
3976 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
3977 Enclose in anonymous namespace.
3978 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
3979 hard_register initialization in braces.
3980 * tree-vrp.h (value_range_base::supports_type_p): Return false
3981 for function with boolean return type.
3982
3983 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
3984
3985 * config/i386/i386.c (emit_i387_cw_initialization)
3986 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
3987
3988 2019-08-26 Martin Sebor <msebor@redhat.com>
3989
3990 PR c++/83431
3991 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
3992 (sprintf_dom_walker): Remove class.
3993 (get_int_range): Make argument const.
3994 (directive::fmtfunc, directive::set_precision): Same.
3995 (format_none): Same.
3996 (build_intmax_type_nodes): Same.
3997 (adjust_range_for_overflow): Same.
3998 (format_floating): Same.
3999 (format_character): Same.
4000 (format_string): Same.
4001 (format_plain): Same.
4002 (get_int_range): Cast away constness.
4003 (format_integer): Same.
4004 (get_string_length): Call get_range_strlen_dynamic. Handle
4005 null lendata.maxbound.
4006 (should_warn_p): Adjust argument scope qualifier.
4007 (maybe_warn): Same.
4008 (format_directive): Same.
4009 (parse_directive): Same.
4010 (is_call_safe): Same.
4011 (try_substitute_return_value): Same.
4012 (sprintf_dom_walker::handle_printf_call): Rename...
4013 (handle_printf_call): ...to this. Initialize target to host charmap
4014 here instead of in pass_sprintf_length::execute.
4015 (struct call_info): Make global.
4016 (sprintf_dom_walker::compute_format_length): Make global.
4017 (sprintf_dom_walker::handle_gimple_call): Same.
4018 * passes.def (pass_sprintf_length): Replace with pass_strlen.
4019 * print-rtl.c (print_pattern): Reduce the number of spaces to
4020 avoid -Wformat-truncation.
4021 * tree-pass.h (make_pass_warn_printf): New function.
4022 * tree-ssa-strlen.c (strlen_optimize): New variable.
4023 (get_string_length): Add comments.
4024 (get_range_strlen_dynamic): New function.
4025 (check_and_optimize_call): New function.
4026 (handle_integral_assign): New function.
4027 (strlen_check_and_optimize_stmt): Factor code out into
4028 strlen_check_and_optimize_call and handle_integral_assign.
4029 (strlen_dom_walker::evrp): New member.
4030 (strlen_dom_walker::before_dom_children): Use evrp member.
4031 (strlen_dom_walker::after_dom_children): Use evrp member.
4032 (printf_strlen_execute): New function.
4033 (pass_strlen::gate): Update to handle printf calls.
4034 (dump_strlen_info): New function.
4035 (pass_data_warn_printf): New variable.
4036 (pass_warn_printf): New class.
4037 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
4038 (handle_printf_call): Same.
4039 * tree-vrp.c (value_range_base::type): Adjust assertion.
4040 * vr-values.c (vr_values::update_value_range): Use type of the first
4041 argument rather than the second.
4042
4043 2019-08-26 Richard Biener <rguenther@suse.de>
4044
4045 * config/i386/i386-features.c (general_remove_non_convertible_regs):
4046 Remove.
4047 (convert_scalars_to_vector): Do not call it.
4048
4049 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4050 Uros Bizjak <ubizjak@gmail.com>
4051
4052 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
4053 CASE_MATHFN_FLOATN for roundeven.
4054 * config/i386/i386.c (ix86_i387_mode_needed): Add case
4055 I387_ROUNDEVEN.
4056 (ix86_mode_needed): Likewise.
4057 (ix86_mode_after): Likewise.
4058 (ix86_mode_entry): Likewise.
4059 (ix86_mode_exit): Likewise.
4060 (ix86_emit_mode_set): Likewise.
4061 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
4062 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
4063 (ix86_entity): Add I387_ROUNDEVEN.
4064 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
4065 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
4066 (define_int_iterator): Likewise.
4067 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
4068 (define_constant): Define ROUND_ROUNDEVEN mode.
4069 (define_attr): Add roundeven mode for i387_cw.
4070 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
4071 * internal-fn.def (ROUNDEVEN): New builtin function.
4072 * optabs.def (roundeven_optab): New optab.
4073
4074 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4075
4076 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
4077 for ROUNDEVEN.
4078 * builtins.def: Added function definitions for roundeven function
4079 variants.
4080 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
4081 function call. Adjust condition for floor, ceil, trunc and round.
4082 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
4083 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
4084 (integer_valued_real_call_p): Added case for roundeven function.
4085 * real.c (is_even): New function. Returns true if real number is even,
4086 otherwise returns false.
4087 (is_halfway_below): New function. Returns true if real number is
4088 halfway between two integers, else return false.
4089 (real_roundeven): New function. Round real number to nearest integer,
4090 rounding halfway cases towards even.
4091 * real.h (real_value): Added descriptive comments. Added function
4092 declaration for roundeven function.
4093 * doc/extend.texi (Other Builtins): List roundeven variants among
4094 functions which can be handled as builtins.
4095
4096 2019-08-26 Richard Biener <rguenther@suse.de>
4097
4098 PR target/91522
4099 PR target/91527
4100 * config/i386/i386-features.h (general_scalar_chain::defs_map):
4101 New member.
4102 (general_scalar_chain::replace_with_subreg): Remove.
4103 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4104 (general_scalar_chain::convert_reg): Adjust signature.
4105 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
4106 iterate over all defs of a reg.
4107 (general_scalar_chain::replace_with_subreg): Remove.
4108 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4109 (general_scalar_chain::make_vector_copies): Populate defs_map,
4110 place copy only after defs that are used as vectors in the chain.
4111 (general_scalar_chain::convert_reg): Emit a copy for a specific
4112 def in a specific instruction.
4113 (general_scalar_chain::convert_op): All reg uses are converted here.
4114 (general_scalar_chain::convert_insn): Emit copies for scalar
4115 uses of defs here. Replace uses with the copies we created.
4116 Replace and convert the def. Adjust REG_DEAD notes, remove
4117 REG_EQUIV/EQUAL notes.
4118 (general_scalar_chain::convert_registers): Only handle copies
4119 into the chain here.
4120
4121 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4122
4123 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
4124
4125 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4126
4127 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
4128 Add nop_convert case.
4129 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
4130 Fold all statements if requested.
4131 * tree-ssa-propagate.h (class substitute_and_fold_engine):
4132 Allow to fold all statements.
4133 * tree-vrp.c (class vrp_folder):
4134 Let substitute_and_fold_engine fold all statements.
4135
4136 2019-08-26 Richard Biener <rguenther@suse.de>
4137
4138 PR tree-optimization/91526
4139 * passes.def: Note that after late FRE we do TODO_update_address_taken.
4140 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
4141 TODO_update_address_taken.
4142
4143 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
4144
4145 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
4146 __STDC_HOSTED__.
4147
4148 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4149
4150 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
4151 machine mode for unspec_volatile operand.
4152
4153 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4154
4155 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
4156 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
4157 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
4158 (prefer_neon_for_64bits): Remove.
4159 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
4160 (tune_params): Remove PREF_NEON_64_FALSE uses.
4161 (arm_option_override): Remove prefer_neon selection code.
4162 (arm_print_tune_info): Remove prefer_neon_for_64bits.
4163 * gcc/config/arm/arm-protos.h (tune_params): Remove
4164 prefer_neon_for_64bits.
4165 (prefer_neon_for_64bits): Remove.
4166
4167 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
4168
4169 PR pch/61250
4170 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
4171 and issue any diagnostics needed before collecting the pre-PCH
4172 state.
4173
4174 2019-08-23 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR middle-end/91283
4177 * common.opt (fexcess-precision=): Add Optimization flag. Use
4178 flag_excess_precision variable instead of
4179 flag_excess_precision_cmdline.
4180 * flags.h (class target_flag_state): Remove x_flag_excess_precision
4181 member.
4182 (flag_excess_precision): Don't define.
4183 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
4184 flag_excess_precision_cmdline. Remove comment.
4185 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4186 and x_flag_excess_precision instead of
4187 frontend_set_flag_excess_precision_cmdline and
4188 x_flag_excess_precision_cmdline.
4189 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4190 x_flag_excess_precision_cmdline.
4191 * toplev.c (init_excess_precision): Remove.
4192 (lang_dependent_init_target): Don't call it.
4193
4194 2019-08-23 Martin Liska <mliska@suse.cz>
4195
4196 * lto-wrapper.c (run_gcc): When setting jobserver
4197 set also parallel to 1. This was done so before r273908.
4198
4199 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
4200
4201 * config/arm/arm-cpus.in (cortex-m35p): New entry.
4202 (cortex-a76ae): Likewise.
4203 (cortex-a77): Likewise
4204 * config/arm/arm-tables.opt: Regenerate.
4205 * config/arm/arm-tune.md: Likewise.
4206 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4207 cortex-a77 CPU options.
4208
4209 2019-08-23 Martin Liska <mliska@suse.cz>
4210
4211 * profile.c (instrument_values): Do not set
4212 0 as last argument.
4213 * tree-profile.c (gimple_gen_interval_profiler): Remove
4214 last argument.
4215 (gimple_gen_pow2_profiler): Likewise.
4216 (gimple_gen_topn_values_profiler): Likewise.
4217 (gimple_gen_ic_profiler): Likewise.
4218 (gimple_gen_time_profiler): Likewise.
4219 (gimple_gen_average_profiler): Likewise.
4220 (gimple_gen_ior_profiler): Likewise.
4221 * value-prof.c (dump_histogram_value): Use default
4222 in switch statement instead of HIST_TYPE_MAX.
4223 (stream_in_histogram_value): Likewise.
4224 (gimple_duplicate_stmt_histograms): Do not
4225 use NULL for implicitly set arguments.
4226 (gimple_divmod_values_to_profile): Do not use
4227 reserve+quick_push.
4228 (gimple_indirect_call_to_profile): Likewise.
4229 (gimple_find_values_to_profile): Use implicit
4230 function call arguments.
4231 * value-prof.h (gimple_alloc_histogram_value):
4232 Set default values.
4233 (gimple_gen_interval_profiler): Remove last argument.
4234 (gimple_gen_pow2_profiler): Likewise.
4235 (gimple_gen_topn_values_profiler): Likewise.
4236 (gimple_gen_ic_profiler): Likewise.
4237 (gimple_gen_time_profiler): Likewise.
4238 (gimple_gen_average_profiler): Likewise.
4239 (gimple_gen_ior_profiler): Likewise.
4240
4241 2019-08-22 Martin Sebor <msebor@redhat.com>
4242
4243 PR middle-end/91490
4244 * builtins.c (c_strlen): Rename argument and introduce new local.
4245 Set no-warning bit on original argument.
4246 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4247 Fold empty and zero constructors into empty strings.
4248 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4249 for missing initializers.
4250 * tree.c (build_string_literal): Handle optional argument.
4251 * tree.h (build_string_literal): Add defaulted argument.
4252 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4253 no-warning bit on original expression.
4254
4255 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4256
4257 PR target/91481
4258 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4259 and UNSPEC_DARN_RAW.
4260 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4261 UNSPECV_DARN_RAW.
4262 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4263 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4264 (darn): Use an unspec_volatile, and UNSPECV_DARN.
4265
4266 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4267
4268 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4269 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4270 * config/rs6000/rs6000.md (unspec): ... here.
4271 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4272 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4273 cmpeqb, *cmpeqb_internal): Delete, move to...
4274 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4275 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4276 cmpeqb, *cmpeqb_internal): ... here.
4277
4278 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4279
4280 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4281 intrinsics if __ARM_FP.
4282 Use __ARM_FEATURE_CRC32 ifdef guard.
4283
4284 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4285
4286 * config/arm/arm.md (neon_for_64bits): Remove.
4287 (avoid_neon_for_64bits): Remove.
4288 (arm_adddi3): Always split early.
4289 (arm_subdi3): Always split early.
4290 (negdi2): Remove Neon expansion.
4291 (split zero_extend): Split before reload.
4292 (split sign_extend): Split before reload.
4293
4294 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4295
4296 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4297 (qhs_extenddi_cstr): Likewise.
4298 * config/arm/arm.md (ashldi3): Always expand early.
4299 (ashlsi3): Likewise.
4300 (ashrsi3): Likewise.
4301 (zero_extend<mode>di2): Remove Neon variants.
4302 (extend<mode>di2): Likewise.
4303 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4304 (signed_shift_di3_neon): Likewise.
4305 (unsigned_shift_di3_neon): Likewise.
4306 (ashrdi3_neon_imm_noclobber): Likewise.
4307 (lshrdi3_neon_imm_noclobber): Likewise.
4308 (<shift>di3_neon): Likewise.
4309 (split extend): Remove DI extend split patterns.
4310
4311 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4312
4313 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4314 (split not): Add DImode not splitter.
4315 (anddi3): Remove pattern.
4316 (anddi3_insn): Likewise.
4317 (anddi_zesidi_di): Likewise.
4318 (anddi_sesdi_di): Likewise.
4319 (anddi_notdi_di): Likewise.
4320 (anddi_notzesidi_di): Likewise.
4321 (anddi_notsesidi_di): Likewise.
4322 (iordi3): Likewise.
4323 (iordi3_insn): Likewise.
4324 (iordi_zesidi_di): Likewise.
4325 (iordi_sesidi_di): Likewise.
4326 (xordi3): Likewise.
4327 (xordi3_insn): Likewise.
4328 (xordi_sesidi_di): Likewise.
4329 (xordi_zesidi_di): Likewise.
4330 (one_cmpldi2): Likewise.
4331 (one_cmpldi2_insn): Likewise.
4332 * config/arm/constraints.md: Remove De, Df, Dg constraints.
4333 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4334 alternative.
4335 (iwmmxt_xordi3): Likewise.
4336 (iwmmxt_anddi3): Likewise.
4337 * config/arm/neon.md (orndi3_neon): Remove pattern.
4338 (anddi_notdi_di): Likewise.
4339 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4340 (arm_iordi_operand_neon): Likewise.
4341 (arm_xordi_operand_neon): Likewise.
4342 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4343 (iordi_notzesidi_di): Likewise.
4344 (iordi_notdi_zesidi): Likewise.
4345 (iordi_notsesidi_di): Likewise.
4346
4347 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
4348
4349 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4350 insn.
4351 (iorsi3_compare0_scratch): Likewise.
4352
4353 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
4354
4355 * config/aarch64/aarch64-simd-builtins.def:
4356 (ld1x4): New.
4357 (st1x4): Likewise.
4358 * config/aarch64/aarch64-simd.md:
4359 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4360 (aarch64_st1x4<VALLDIF:mode>): Likewise.
4361 (aarch64_ld1_x4_<mode>): Likewise.
4362 (aarch64_st1_x4_<mode>): Likewise.
4363 * config/aarch64/arm_neon.h:
4364 (vld1_s8_x4): New function.
4365 (vld1q_s8_x4): Likewise.
4366 (vld1_s16_x4): Likewise.
4367 (vld1q_s16_x4): Likewise.
4368 (vld1_s32_x4): Likewise.
4369 (vld1q_s32_x4): Likewise.
4370 (vld1_u8_x4): Likewise.
4371 (vld1q_u8_x4): Likewise.
4372 (vld1_u16_x4): Likewise.
4373 (vld1q_u16_x4): Likewise.
4374 (vld1_u32_x4): Likewise.
4375 (vld1q_u32_x4): Likewise.
4376 (vld1_f16_x4): Likewise.
4377 (vld1q_f16_x4): Likewise.
4378 (vld1_f32_x4): Likewise.
4379 (vld1q_f32_x4): Likewise.
4380 (vld1_p8_x4): Likewise.
4381 (vld1q_p8_x4): Likewise.
4382 (vld1_p16_x4): Likewise.
4383 (vld1q_p16_x4): Likewise.
4384 (vld1_s64_x4): Likewise.
4385 (vld1_u64_x4): Likewise.
4386 (vld1_p64_x4): Likewise.
4387 (vld1q_s64_x4): Likewise.
4388 (vld1q_u64_x4): Likewise.
4389 (vld1q_p64_x4): Likewise.
4390 (vld1_f64_x4): Likewise.
4391 (vld1q_f64_x4): Likewise.
4392 (vst1_s8_x4): Likewise.
4393 (vst1q_s8_x4): Likewise.
4394 (vst1_s16_x4): Likewise.
4395 (vst1q_s16_x4): Likewise.
4396 (vst1_s32_x4): Likewise.
4397 (vst1q_s32_x4): Likewise.
4398 (vst1_u8_x4): Likewise.
4399 (vst1q_u8_x4): Likewise.
4400 (vst1_u16_x4): Likewise.
4401 (vst1q_u16_x4): Likewise.
4402 (vst1_u32_x4): Likewise.
4403 (vst1q_u32_x4): Likewise.
4404 (vst1_f16_x4): Likewise.
4405 (vst1q_f16_x4): Likewise.
4406 (vst1_f32_x4): Likewise.
4407 (vst1q_f32_x4): Likewise.
4408 (vst1_p8_x4): Likewise.
4409 (vst1q_p8_x4): Likewise.
4410 (vst1_p16_x4): Likewise.
4411 (vst1q_p16_x4): Likewise.
4412 (vst1_s64_x4): Likewise.
4413 (vst1_u64_x4): Likewise.
4414 (vst1_p64_x4): Likewise.
4415 (vst1q_s64_x4): Likewise.
4416 (vst1q_u64_x4): Likewise.
4417 (vst1q_p64_x4): Likewise.
4418 (vst1_f64_x4): Likewise.
4419 (vst1q_f64_x4): Likewise.
4420
4421 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4422
4423 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
4424
4425 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4426 Richard Sandiford <richard.sandiford@arm.com>
4427
4428 PR target/88839
4429 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
4430 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
4431
4432 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4433
4434 PR target/90724
4435 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
4436 in reg if it fails aarch64_plus_operand predicate.
4437
4438 2019-08-21 Richard Biener <rguenther@suse.de>
4439
4440 PR tree-optimization/91482
4441 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
4442 BUILT_IN_ASSUME_ALIGNED calls.
4443
4444 2019-08-21 Richard Biener <rguenther@suse.de>
4445
4446 PR target/91498
4447 PR target/91503
4448 * config/i386/i386-features.c
4449 (general_scalar_chain::make_vector_copies): Copy stack temporary
4450 rtx when using it multiple times.
4451 (general_scalar_chain::convert_reg): Likewise.
4452
4453 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4454
4455 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
4456
4457 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
4458
4459 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
4460 catch more redundant zero initialization cases.
4461 (dse_dom_walker::dse_optimize_stmt): Likewise.
4462
4463 2019-08-20 Richard Biener <rguenther@suse.de>
4464
4465 PR lto/91307
4466 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
4467 by collect2 when targetm.have_ctors_dtors which avoids dragging
4468 in temporary filenames from LTO input objects.
4469
4470 2019-08-20 Richard Biener <rguenther@suse.de>
4471
4472 PR tree-optimization/37242
4473 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
4474 to (T)a + (T)b if we know that a + b does not overflow.
4475
4476 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
4477
4478 PR rtl-optimization/91347
4479 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
4480 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
4481
4482 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4483
4484 * calls.h (function_arg_info): Add a pass_by_reference field,
4485 defaulting to false.
4486 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
4487 when applying pass-by-reference semantics.
4488 (initialize_argument_information): Likewise.
4489 (emit_library_call_value_1): Likewise.
4490 * function.c (assign_parm_data_one): Remove passed_pointer field.
4491 (assign_parm_find_data_types): Don't set it.
4492 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
4493 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
4494 arg.pass_by_reference instead of passed_pointer.
4495
4496 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4497
4498 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
4499 into a single function_arg_info, updating its fields when we
4500 apply pass-by-reference and promotion semantics. Use the
4501 function_arg_info to track the mode rather than keeping it in
4502 a separate local variable.
4503 (initialize_argument_information): Likewise. Base the final
4504 arg_to_skip on this new function_arg_info rather than creating
4505 a new one from scratch.
4506
4507 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4508
4509 * function.c (assign_parm_data_one): Replace passed_type,
4510 promoted_mode and named_arg with a function_arg_info field.
4511 (assign_parm_find_data_types): Remove local variables and
4512 assign directly to "data". Make data->passed_mode shadow
4513 data->arg.mode until promotion, then assign the promoted
4514 mode to data->arg.mode.
4515 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
4516 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
4517 (assign_parm_remove_parallels, assign_parm_setup_block_p)
4518 (assign_parm_setup_block, assign_parm_setup_reg)
4519 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
4520 arg.mode instead of promoted_mode, arg.type instead of passed_type
4521 and arg.named instead of named_arg. Use data->arg for
4522 function_arg_info structures that had the field values passed_type,
4523 promoted_mode and named_arg. Base other function_arg_infos on
4524 data->arg, changing the necessary properties.
4525
4526 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4527
4528 * calls.h (apply_pass_by_reference_rules): Declare.
4529 * calls.c (apply_pass_by_reference_rules): New function.
4530 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
4531 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
4532 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4533 * function.c (assign_parm_find_data_types): Likewise.
4534 * var-tracking.c (prepare_call_arguments): Likewise.
4535
4536 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4537
4538 * target.def (must_pass_in_stack): Take a function_arg_info instead
4539 of a mode and a type.
4540 * doc/tm.texi: Regenerate.
4541 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
4542 instead of a mode and a type.
4543 (must_pass_in_stack_var_size_or_pad): Likewise.
4544 * calls.c (must_pass_in_stack_var_size): Likewise.
4545 (must_pass_in_stack_var_size_or_pad): Likewise.
4546 (initialize_argument_information): Update call to
4547 targetm.calls.must_pass_in_stack.
4548 (must_pass_va_arg_on_stack): Likewise.
4549 * function.c (assign_parm_find_entry_rtl): Likewise.
4550 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
4551 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4552 (alpha_function_arg_advance): Likewise.
4553 * config/cr16/cr16.c (cr16_function_arg): Likewise.
4554 (cr16_function_arg_advance): Likewise.
4555 * config/cris/cris.c (cris_pass_by_reference): Likewise.
4556 (cris_arg_partial_bytes): Likewise.
4557 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4558 * config/lm32/lm32.c (lm32_function_arg): Likewise.
4559 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
4560 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
4561 * config/mips/mips.c (mips_pass_by_reference): Likewise.
4562 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
4563 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
4564 * config/sh/sh.c (sh_pass_by_reference): Likewise.
4565 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4566 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4567 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
4568 instead of a mode and a type.
4569 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
4570 (fr30_num_arg_regs): Likewise.
4571 (fr30_setup_incoming_varargs): Update calls accordingly.
4572 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4573 (fr30_function_arg_advance): Likewise.
4574 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
4575 instead of a mode and a type.
4576 * config/gcn/gcn.c (num_arg_regs): Likewise.
4577 (gcn_function_arg, gcn_function_arg_advance): Update calls to
4578 num_arg_regs and targetm.calls.must_pass_in_stack.
4579 (gcn_arg_partial_bytes): Likewise.
4580 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
4581 function_arg_info instead of a mode and a type.
4582 (classify_argument): Update call accordingly.
4583 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
4584 function_arg_info instead of a mode and a type.
4585 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
4586 Likewise.
4587 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
4588 (rs6000_parm_needs_stack): Update call accordingly.
4589 (setup_incoming_varargs): Likewise.
4590
4591 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4592
4593 * target.def (callee_copies): Take a function_arg_info instead
4594 of a mode, type and named flag.
4595 * doc/tm.texi: Regenerate.
4596 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
4597 instead of a mode, type and named flag.
4598 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4599 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4600 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4601 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
4602 instead of a mode, type and named flag.
4603 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4604 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4605 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4606 * calls.h (reference_callee_copied): Take a function_arg_info
4607 instead of a mode, type and named flag.
4608 * calls.c (reference_callee_copied): Likewise.
4609 (initialize_argument_information): Update call accordingly.
4610 (emit_library_call_value_1): Likewise.
4611 * function.c (gimplify_parameters): Likewise.
4612 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
4613 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
4614 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
4615 * config/c6x/c6x.c (c6x_callee_copies): Delete.
4616 (TARGET_CALLEE_COPIES): Define to
4617 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4618 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
4619 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4620 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4621 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
4622 instead of a mode, type and named flag.
4623 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
4624 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4625 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4626 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
4627 * config/msp430/msp430.c (msp430_callee_copies): Delete.
4628 (TARGET_CALLEE_COPIES): Define to
4629 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4630 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
4631 instead of a mode, type and named flag.
4632 * config/sh/sh.c (sh_callee_copies): Likewise.
4633 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
4634 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4635 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4636
4637 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4638
4639 * target.def (function_arg_advance): Take a function_arg_info instead
4640 of a mode, type and named flag.
4641 * doc/tm.texi: Regenerate.
4642 * targhooks.h (default_function_arg_advance): Take a function_arg_info
4643 instead of a mode, type and named flag.
4644 * targhooks.c (default_function_arg_advance): Likewise.
4645 * calls.c (initialize_argument_information): Update call to
4646 targetm.calls.function_arg_advance.
4647 (emit_library_call_value_1): Likewise.
4648 * dse.c (get_call_args): Likewise.
4649 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4650 * function.c (assign_parms, gimplify_parameters): Likewise.
4651 * var-tracking.c (prepare_call_arguments): Likewise.
4652 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
4653 function_arg_info instead of a mode, type and named flag.
4654 (aarch64_setup_incoming_varargs): Update call accordingly.
4655 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
4656 function_arg_info instead of a mode, type and named flag.
4657 (alpha_setup_incoming_varargs): Update call accordingly.
4658 * config/arc/arc.c (arc_function_arg_advance): Take a
4659 function_arg_info instead of a mode, type and named flag.
4660 (arc_setup_incoming_varargs): Update call accordingly.
4661 * config/arm/arm.c (arm_function_arg_advance): Take a
4662 function_arg_info instead of a mode, type and named flag.
4663 (cmse_func_args_or_return_in_stack): Update call accordingly.
4664 (arm_function_ok_for_sibcall): Likewise.
4665 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4666 * config/avr/avr.c (avr_function_arg_advance): Take a
4667 function_arg_info instead of a mode, type and named flag.
4668 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
4669 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
4670 (c6x_call_saved_register_used): Update call accordingly.
4671 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
4672 function_arg_info instead of a mode, type and named flag.
4673 * config/cris/cris.c (cris_function_arg_advance): Likewise.
4674 * config/csky/csky.c (csky_function_arg_advance): Likewise.
4675 (csky_setup_incoming_varargs): Update call accordingly.
4676 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
4677 function_arg_info instead of a mode, type and named flag.
4678 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
4679 * config/frv/frv.c (frv_function_arg_advance): Likewise.
4680 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
4681 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
4682 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
4683 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4684 (ix86_setup_incoming_varargs): Update call accordingly.
4685 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
4686 function_arg_info instead of a mode, type and named flag.
4687 (ia64_setup_incoming_varargs): Update call accordingly.
4688 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
4689 function_arg_info instead of a mode, type and named flag.
4690 (iq2000_expand_prologue): Update call accordingly.
4691 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
4692 function_arg_info instead of a mode, type and named flag.
4693 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
4694 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
4695 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4696 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
4697 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4698 Likewise.
4699 (microblaze_expand_prologue): Update call accordingly.
4700 * config/mips/mips.c (mips_function_arg_advance): Take a
4701 function_arg_info instead of a mode, type and named flag.
4702 (mips_setup_incoming_varargs): Update call accordingly.
4703 (mips_output_args_xfer): Likewise.
4704 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
4705 function_arg_info instead of a mode, type and named flag.
4706 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
4707 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
4708 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
4709 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
4710 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
4711 (nios2_setup_incoming_varargs): Update call accordingly.
4712 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
4713 function_arg_info instead of a mode, type and named flag.
4714 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
4715 * config/pa/pa.c (pa_function_arg_advance): Likewise.
4716 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
4717 * config/pru/pru.c (pru_function_arg_advance): Likewise.
4718 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
4719 (riscv_setup_incoming_varargs): Update call accordingly.
4720 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
4721 function_arg_info instead of a mode, type and named flag.
4722 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
4723 Likewise.
4724 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
4725 (rs6000_parm_needs_stack): Update call accordingly.
4726 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
4727 instead of a mode, type and named flag.
4728 * config/s390/s390.c (s390_function_arg_advance): Likewise.
4729 (s390_call_saved_register_used): Update call accordingly.
4730 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
4731 instead of a mode, type and named flag.
4732 (sh_output_mi_thunk): Update call accordingly.
4733 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
4734 function_arg_info instead of a mode, type and named flag.
4735 * config/spu/spu.c (spu_function_arg_advance): Likewise.
4736 (spu_setup_incoming_varargs): Update call accordingly.
4737 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
4738 function_arg_info instead of a mode, type and named flag.
4739 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
4740 (tilegx_setup_incoming_varargs): Update call accordingly.
4741 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
4742 function_arg_info instead of a mode, type and named flag.
4743 (tilegx_setup_incoming_varargs): Update call accordingly.
4744 * config/v850/v850.c (v850_function_arg_advance): Take a
4745 function_arg_info instead of a mode, type and named flag.
4746 * config/vax/vax.c (vax_function_arg_advance): Likewise.
4747 * config/visium/visium.c (visium_function_arg_advance): Likewise.
4748 (visium_setup_incoming_varargs): Update call accordingly.
4749 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
4750 function_arg_info instead of a mode, type and named flag.
4751
4752 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4753
4754 * target.def (function_arg, function_incoming_arg): Take a
4755 function_arg_info instead of a mode, tree and named flag.
4756 * doc/tm.texi: Regenerate.
4757 * targhooks.h (default_function_arg): Take a function_arg_info
4758 instead of a mode, tree and named flag.
4759 (default_function_incoming_arg): Likewise.
4760 * targhooks.c (default_function_arg): Likewise.
4761 (default_function_incoming_arg): Likewise.
4762 * calls.h (function_arg_info::end_marker_p): New function.
4763 (function_arg_info::end_marker): Likewise.
4764 * calls.c (prepare_call_address, initialize_argument_information)
4765 (expand_call, emit_library_call_value_1): Update calls to
4766 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
4767 * dse.c: Include calls.h.
4768 (get_call_args): Update call to targetm.calls.function_arg.
4769 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4770 * var-tracking.c (prepare_call_arguments): Likewise.
4771 * function.c (assign_parm_find_entry_rtl): Update call to
4772 targetm.calls.function_incoming_arg.
4773 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
4774 function_arg_info instead of a mode, tree and named flag.
4775 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4776 * config/arc/arc.c (arc_function_arg): Likewise.
4777 * config/arm/arm.c (arm_function_arg): Likewise.
4778 (cmse_func_args_or_return_in_stack): Update call accordingly.
4779 (arm_function_ok_for_sibcall): Likewise.
4780 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4781 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
4782 instead of a mode, tree and named flag.
4783 * config/bfin/bfin.c (bfin_function_arg): Likewise.
4784 * config/c6x/c6x.c (c6x_function_arg): Likewise.
4785 (c6x_call_saved_register_used): Update call accordingly.
4786 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
4787 instead of a mode, tree and named flag.
4788 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
4789 (cris_function_arg_1): Likewise.
4790 * config/csky/csky.c (csky_function_arg): Likewise.
4791 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
4792 * config/fr30/fr30.c (fr30_function_arg): Likewise.
4793 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
4794 (frv_function_arg_1): Likewise.
4795 * config/ft32/ft32.c (ft32_function_arg): Likewise.
4796 * config/gcn/gcn.c (gcn_function_arg): Likewise.
4797 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4798 * config/i386/i386.c (ix86_function_arg): Likewise.
4799 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
4800 (ia64_function_arg_1): Likewise.
4801 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
4802 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
4803 accordingly.
4804 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
4805 instead of a mode, tree and named flag.
4806 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4807 * config/m32r/m32r.c (m32r_function_arg): Likewise.
4808 * config/m68k/m68k.c (m68k_function_arg): Likewise.
4809 * config/mcore/mcore.c (mcore_function_arg): Likewise.
4810 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
4811 (microblaze_expand_prologue): Update call accordingly.
4812 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
4813 instead of a mode, tree and named flag.
4814 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
4815 (mmix_function_arg_1): Likewise.
4816 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
4817 * config/moxie/moxie.c (moxie_function_arg): Likewise.
4818 * config/msp430/msp430.c (msp430_function_arg): Likewise.
4819 * config/nds32/nds32.c (nds32_function_arg): Likewise.
4820 * config/nios2/nios2.c (nios2_function_arg): Likewise.
4821 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
4822 (nvptx_function_incoming_arg): Likewise.
4823 * config/or1k/or1k.c (or1k_function_arg): Likewise.
4824 * config/pa/pa.c (pa_function_arg): Likewise.
4825 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4826 * config/pru/pru.c (pru_function_arg): Likewise.
4827 * config/riscv/riscv.c (riscv_function_arg): Likewise.
4828 * config/rl78/rl78.c (rl78_function_arg): Likewise.
4829 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
4830 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
4831 (rs6000_parm_needs_stack): Update call accordingly.
4832 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
4833 instead of a mode, tree and named flag.
4834 * config/s390/s390.c (s390_function_arg): Likewise.
4835 (s390_call_saved_register_used): Update call accordingly.
4836 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
4837 instead of a mode, tree and named flag.
4838 (sh_output_mi_thunk): Update call accordingly.
4839 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
4840 (sparc_function_incoming_arg): Take a function_arg_info instead of
4841 a mode, tree and named flag.
4842 * config/spu/spu.c (spu_function_arg): Likewise.
4843 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4844 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
4845 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
4846 * config/v850/v850.c (v850_function_arg): Likewise.
4847 * config/vax/vax.c (vax_function_arg): Likewise.
4848 * config/visium/visium.c (visium_function_arg): Likewise.
4849 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
4850 (xtensa_function_incoming_arg): Likewise.
4851
4852 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4853
4854 * target.def (setup_incoming_varargs): Take a function_arg_info
4855 instead of a mode and tree.
4856 * doc/tm.texi: Regenerate.
4857 * targhooks.h (default_setup_incoming_varargs): Take a
4858 function_arg_info instead of a mode and tree.
4859 * targhooks.c (default_setup_incoming_varargs): Likewise.
4860 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
4861 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4862 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4863 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
4864 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
4865 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4866 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
4867 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
4868 Likewise.
4869 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4870 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4871 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
4872 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4873 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4874 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4875 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4876 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4877 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4878 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
4879 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4880 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4881 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
4882 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
4883 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
4884 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
4885 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
4886 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4887 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
4888 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
4889 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
4890 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4891 * function.c (assign_parms_setup_varargs): Update call to
4892 targetm.calls.setup_incoming_varargs.
4893
4894 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4895
4896 * target.def (pass_by_reference): Take a function_arg_info instead
4897 of a mode, type and named flag.
4898 * doc/tm.texi: Regenerate.
4899 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
4900 accordingly.
4901 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
4902 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
4903 function_arg_info instead of a mode, type and named flag.
4904 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
4905 * calls.h (pass_by_reference): Take a function_arg_info instead of a
4906 mode, type and named flag.
4907 * calls.c (pass_by_reference): Likewise.
4908 (pass_va_arg_by_reference): Update call accordingly.
4909 (initialize_argument_information): Likewise.
4910 (emit_library_call_value_1): Likewise.
4911 * function.c (assign_parm_find_data_types): Likewise.
4912 * var-tracking.c (prepare_call_arguments): Likewise.
4913 * stor-layout.c: Include calls.h.
4914 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
4915 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
4916 function_arg_info instead of a mode, type and named flag.
4917 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
4918 * config/arc/arc.c (arc_pass_by_reference): Likewise.
4919 * config/arm/arm.c (arm_pass_by_reference): Likewise.
4920 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
4921 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
4922 (c6x_call_saved_register_used): Update call to pass_by_reference.
4923 * config/cris/cris.c (cris_pass_by_reference): Take a
4924 function_arg_info instead of a mode, type and named flag.
4925 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
4926 function_arg_info instead of a mode, type and named flag.
4927 (epiphany_arg_partial_bytes): Update call accordingly.
4928 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
4929 function_arg_info instead of a mode, type and named flag.
4930 (ft32_arg_partial_bytes): Update call accordingly.
4931 * config/i386/i386.c (ix86_pass_by_reference): Take a
4932 function_arg_info instead of a mode, type and named flag.
4933 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4934 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
4935 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
4936 (m32r_return_in_memory): Update call accordingly.
4937 * config/mips/mips.c (mips_pass_by_reference): Take a
4938 function_arg_info instead of a mode, type and named flag.
4939 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
4940 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4941 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
4942 (moxie_arg_partial_bytes): Update call accordingly.
4943 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
4944 function_arg_info instead of a mode, type and named flag.
4945 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
4946 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
4947 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4948 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
4949 (riscv_return_in_memory): Update call accordingly.
4950 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
4951 function_arg_info instead of a mode, type and named flag.
4952 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
4953 (rs6000_parm_needs_stack): Update call to pass_by_reference.
4954 * config/s390/s390.c (s390_pass_by_reference): Take a
4955 function_arg_info instead of a mode, type and named flag.
4956 (s390_call_saved_register_used): Update call accordingly.
4957 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
4958 instead of a mode, type and named flag.
4959 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
4960 * config/spu/spu.c (spu_pass_by_reference): Likewise.
4961 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
4962 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
4963 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4964 * config/visium/visium.c (visium_pass_by_reference): Likewise.
4965
4966 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4967
4968 * target.def (arg_partial_bytes): Take a function_arg_info instead
4969 of a mode, type and named flag.
4970 * doc/tm.texi: Regenerate.
4971 * target.h (function_arg_info): Declare.
4972 * calls.h (function_arg_info): New class.
4973 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
4974 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
4975 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
4976 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
4977 * calls.c (initialize_argument_information): Update call to
4978 targetm.calls.partial_bytes.
4979 (emit_library_call_value_1): Likewise.
4980 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4981 * function.c (assign_parm_find_entry_rtl): Likewise.
4982 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
4983 function_arg_info instead of a mode, type and named flag.
4984 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
4985 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
4986 (cmse_func_args_or_return_in_stack): Update accordingly.
4987 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
4988 function_arg_info instead of a mode, type and named flag.
4989 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
4990 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
4991 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
4992 * config/fr30/fr30.c: Include calls.h.
4993 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
4994 type and named flag.
4995 * config/frv/frv.c: Include calls.h.
4996 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
4997 type and named flag.
4998 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
4999 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
5000 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
5001 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
5002 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
5003 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
5004 * config/microblaze/microblaze.c (function_arg_partial_bytes):
5005 Likewise.
5006 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
5007 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
5008 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
5009 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
5010 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
5011 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
5012 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
5013 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
5014 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
5015 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
5016 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
5017 (rs6000_parm_needs_stack): Update call accordingly.
5018 * config/sh/sh.c (sh_arg_partial_bytes): Take a
5019 function_arg_info instead of a mode, type and named flag.
5020 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
5021 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
5022
5023 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5024
5025 * calls.h (must_pass_va_arg_in_stack): Declare.
5026 * calls.c (must_pass_va_arg_in_stack): New function.
5027 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
5028 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5029 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
5030 Likewise.
5031 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5032
5033 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5034
5035 * calls.h (pass_va_arg_by_reference): Declare.
5036 * calls.c (pass_va_arg_by_reference): New function.
5037 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
5038 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
5039 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
5040 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5041 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5042 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
5043 (mips_gimplify_va_arg_expr): Likewise.
5044 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
5045 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5046 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
5047 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
5048 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5049 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
5050 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
5051 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
5052 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
5053 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5054 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5055
5056 2019-08-20 Richard Biener <rguenther@suse.de>
5057
5058 PR target/91498
5059 * config/i386/i386-features.c (general_scalar_chain::convert_op):
5060 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
5061 (convert_scalars_to_vector): Add timode_p parameter and use it
5062 to guard TImode-only operation.
5063 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
5064 (pass_stv::execute): Pass down timode_p.
5065
5066 2019-08-20 Lili Cui <lili.cui@intel.com>
5067
5068 * common/config/i386/i386-common.c
5069 (processor_names): Add tigerlake and cooperlake.
5070 (processor_alias_table): Add tigerlake and cooperlake.
5071 * config.gcc: Add -march=tigerlake and cooperlake.
5072 * config/i386/driver-i386.c
5073 (host_detect_local_cpu): Detect tigerlake and cooperlake.
5074 Add "has_avx" to classify processor.
5075 * config/i386/i386-builtins.c (processor_model) :
5076 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
5077 (arch_names_table): Add tigerlake and cooperlake.
5078 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
5079 and PROCESSOR_COOPERLAKE.
5080 * config/i386/i386-c.c
5081 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
5082 * config/i386/i386-options.c
5083 (m_TIGERLAKE) : Define.
5084 (m_COOPERLAKE) : Ditto.
5085 (m_CORE_AVX512): Ditto.
5086 (processor_cost_table): Add cascadelake.
5087 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
5088 * config/i386/i386.h
5089 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
5090 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5091 (PTA_MOVDIRI): Ditto.
5092 (PTA_MOVDIR64B): Ditto.
5093 (PTA_COOPERLAKE) : Ditto.
5094 (PTA_TIGERLAKE) : Ditto.
5095 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5096 * doc/extend.texi: Add tigerlake and cooperlake.
5097 * doc/invoke.texi: Add tigerlake and cooperlake.
5098
5099 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
5100
5101 * doc/install.texi (Specific, alpha): Remove note to use
5102 binutils 2.11.2 or later.
5103
5104 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5105
5106 PR middle-end/89544
5107 * function.c (assign_parm_find_stack_rtl): Use larger alignment
5108 when possible.
5109
5110 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
5111
5112 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
5113 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
5114 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
5115 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
5116 * config/aarch64/constraints.md (Dt): New constraint
5117 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
5118
5119 2019-08-19 Richard Biener <rguenther@suse.de>
5120
5121 PR tree-optimization/91403
5122 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
5123 cases we can handle with tail-recursion...
5124 (follow_ssa_edge_expr): ... here. Do so.
5125
5126 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
5127
5128 PR target/91441
5129 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
5130 implemented for -fsanitize=kernel-address, and merge check logic
5131 with -fsanitize=address.
5132
5133 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
5134
5135 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
5136 for cpu and machine. Factor 64/32b builtins.
5137
5138 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
5139
5140 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
5141 gone, point to sourceforge.net.
5142
5143 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5144
5145 * doc/ux.texi (User Experience Guidelines): Update reference.
5146
5147 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5148
5149 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
5150 not LGPL".
5151
5152 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
5153
5154 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
5155 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
5156
5157 2019-08-16 Martin Sebor <msebor@redhat.com>
5158
5159 * tree.def (TYPE_SIZE): Clarify.
5160 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
5161
5162 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5163
5164 PR tree-optimization/91109
5165 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
5166 * lra.c (lra): Use lra_need_for_scratch_reg_p.
5167 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
5168
5169 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
5170
5171 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
5172 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
5173 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
5174 (uavg<mode>3_ceil): New expander.
5175 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
5176 mode iterator when creating CONST1_RTX.
5177 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
5178 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
5179 mode iterator for const1_operand predicate.
5180
5181 2019-08-16 Richard Biener <rguenther@suse.de>
5182
5183 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
5184 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5185 follow_ssa_edge.
5186 (follow_ssa_edge_in_condition_phi_branch): Likewise.
5187 (analyze_evolution_in_loop): Likewise.
5188 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5189 (follow_ssa_edge_expr): ... here. Refactor code.
5190
5191 2019-08-16 Richard Biener <rguenther@suse.de>
5192
5193 PR target/91469
5194 * config/i386/i386-features.c
5195 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5196
5197 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5198
5199 PR other/91255
5200 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5201 only if subst_name matches curr_attr string.
5202
5203 2019-08-16 Richard Biener <rguenther@suse.de>
5204
5205 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5206 stmt at gsi_p, instead replace it with a NOP removed later.
5207 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5208 that became dead because of that.
5209
5210 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
5211
5212 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5213 for which we can't represent a range.
5214 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5215 set_varying.
5216 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5217 Set VR_UNDEFINED if type is not supported.
5218 * tree-ssanames.c (get_range_info): Pass type to set_varying.
5219 * tree-vrp.c (value_range_base::check): Assert that a varying has
5220 min/max set.
5221 (value_range_base::equal_p): Early bail for undefines.
5222 (value_range_base::set_varying): Accept a type.
5223 (value_range::set_varying): Same.
5224 (value_range_base::type): VARYING can have a type, while UNDEFINE
5225 is typeless.
5226 (value_range_base::dump): Print type for VARYING nodes.
5227 (value_range_base::set): Add type to VARYING.
5228 (extract_range_from_multiplicative_op): Pass type to set_varying.
5229 (extract_range_from_binary_expr): Same.
5230 (value_range_base::intersect_helper): Same.
5231 (value_range_base::union_helper): Same.
5232 (value_range_base::normalize_symbolics): Same.
5233 (determine_value_range_1): Same.
5234 * tree-vrp.h (class value_range_base): Add type to set_varying.
5235 Add prototype for dump(void).
5236 Add prototype for supports_type_p.
5237 (class value_range): Add type to set_varying.
5238 Add prototype for dump(void).
5239 * vr-values.c (set_value_range_to_truthvalue): Pass type to
5240 set_varying.
5241 (vr_values::get_lattice_entry): Set varying even if propagation
5242 finished.
5243 Pass type to set_varying.
5244 (vr_values::get_value_range): Remove vr_const_varying.
5245 Reallocate the lattice if needed.
5246 (vr_values::update_value_range): Pass type to set_varying.
5247 (vr_values::extract_range_for_var_from_comparison_expr): Same.
5248 (vr_values::extract_range_from_binary_expr): Same.
5249 (vr_values::extract_range_from_unary_expr): Same.
5250 (vr_values::extract_range_from_cond_expr): Same.
5251 (vr_values::check_for_binary_op_overflow): Same.
5252 (vr_values::extract_range_basic): Same.
5253 (vr_values::extract_range_from_assignment): Same.
5254 (vr_values::vr_values): Increase size of num_vr_values.
5255 (vr_values::extract_range_from_phi_node): Pass type to
5256 set_varying.
5257
5258 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
5259
5260 PR target/90878
5261 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5262 for costs of hard register moves.
5263 (ix86_register_move_cost): Likewise.
5264 * config/i386/i386.h (processor_costs): Move costs of hard
5265 register moves to hard_register. Add int_load, int_store,
5266 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5267 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5268 for costs of RTL expressions.
5269 * config/i386/x86-tune-costs.h: Move costs of hard register
5270 moves to hard_register. Duplicate int_load, int_store,
5271 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5272 sse_load, sse_store for costs of RTL expressions.
5273
5274 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5275
5276 * target.def (setup_incoming_vararg_bounds): Remove.
5277 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5278 * doc/tm.texi: Regenerate.
5279 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5280 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5281 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5282 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5283
5284 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5285
5286 MSP430: Fix lines over 80 characters long in
5287 config/msp430/*.{c,h} files
5288
5289 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5290 specifier in string.
5291 (msp430_select_hwmult_lib): Split line more than 80 characters long.
5292 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5293 redundant old comment.
5294 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5295 Split line more than 80 characters long.
5296 * config/msp430/msp430.c (msp430_option_override): Likewise.
5297 (msp430_return_in_memory): Likewise.
5298 (msp430_gimplify_va_arg_expr): Likewise.
5299 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5300 (msp430_legitimate_constant): Likewise.
5301 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5302 (msp430_attr): Likewise.
5303 (msp430_data_attr): Likewise.
5304 (msp430_start_function): Likewise.
5305 (gen_prefix): Likewise.
5306 (msp430_init_sections): Likewise.
5307 (msp430_select_section): Likewise.
5308 (msp430_function_section): Likewise.
5309 (msp430_unique_section): Likewise.
5310 (msp430_output_aligned_decl_common): Likewise.
5311 (msp430_do_not_relax_short_jumps): Likewise.
5312 (msp430_init_builtins): Likewise.
5313 (msp430_expand_delay_cycles): Likewise.
5314 (msp430_expand_prologue): Likewise.
5315 (msp430_expand_epilogue): Likewise.
5316 (msp430_expand_helper): Likewise.
5317 (msp430_split_movsi): Likewise.
5318 (msp430_print_operand): Likewise.
5319 (msp430_return_addr_rtx): Likewise.
5320 (msp430x_extendhisi): Likewise.
5321 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5322 (ASM_SPEC): Likewise.
5323 Remove very obvious comments.
5324 (LIB_SPEC): Split line more than 80 characters long.
5325 (EH_RETURN_HANDLER_RTX): Likewise.
5326 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5327
5328 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5329
5330 MSP430: Fix whitespace errors and incorrect indentation in
5331 config/msp430/*.{c,h} files
5332
5333 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5334 (msp430_select_hwmult_lib): Likewise.
5335 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5336 (msp430_extract_mcu_data): Likewise.
5337 (struct t_msp430_mcu_data): Likewise.
5338 * config/msp430/msp430.c (struct machine_function): Remove whitespace
5339 before left square bracket.
5340 (msp430_option_override): Fix indentation.
5341 (msp430_hard_regno_nregs_with_padding): Likewise.
5342 (msp430_initial_elimination_offset): Likewise.
5343 (msp430_special_register_convention_p): Remove whitespace before left
5344 square bracket and after exclamation mark.
5345 (msp430_evaluate_arg): Likewise.
5346 (msp430_callee_copies): Fix indentation.
5347 (msp430_gimplify_va_arg_expr): Likewise.
5348 (msp430_function_arg_advance): Remove whitespace before left square
5349 bracket.
5350 (reg_ok_for_addr): Likewise.
5351 (msp430_preserve_reg_p): Likewise.
5352 (msp430_compute_frame_info): Likewise.
5353 (msp430_asm_output_addr_const_extra): Add space between function name
5354 and open parenthesis.
5355 (has_section_name): Fix indentation.
5356 (msp430_attr): Remove trailing whitespace.
5357 (msp430_section_attr): Likewise.
5358 (msp430_data_attr): Likewise.
5359 (struct msp430_attribute_table): Fix comment and whitespace.
5360 (msp430_start_function): Remove whitespace before left square bracket.
5361 Add space between function name and open parenthesis.
5362 (msp430_select_section): Remove trailing whitespace.
5363 (msp430_section_type_flags): Remove trailing whitespace.
5364 (msp430_unique_section): Remove space before closing parenthesis.
5365 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5366 (msp430_builtins): Remove whitespace before left square bracket.
5367 (msp430_init_builtins): Fix indentation.
5368 (msp430_expand_prologue): Remove whitespace before left square bracket.
5369 Remove space before closing parenthesis.
5370 (msp430_expand_epilogue): Remove whitespace before left square bracket.
5371 (msp430_split_movsi): Remove space before closing parenthesis.
5372 (helper_function_name_mappings): Fix indentation.
5373 (msp430_use_f5_series_hwmult): Fix whitespace.
5374 (use_32bit_hwmult): Likewise.
5375 (msp430_no_hwmult): Likewise.
5376 (msp430_output_labelref): Remove whitespace before left square bracket.
5377 (msp430_print_operand_raw): Likewise.
5378 (msp430_print_operand_addr): Likewise.
5379 (msp430_print_operand): Add two spaces after '.' in comment.
5380 Fix trailing whitespace.
5381 (msp430x_extendhisi): Fix indentation.
5382 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5383 tab.
5384 (PC_REGNUM): Likewise.
5385 (STACK_POINTER_REGNUM): Likewise.
5386 (CC_REGNUM): Likewise.
5387
5388 2019-08-15 Richard Biener <rguenther@suse.de>
5389
5390 PR target/91454
5391 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5392 helper.
5393 (general_scalar_chain::make_vector_copies): Use it.
5394
5395 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5396
5397 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
5398
5399 2019-08-15 Martin Liska <mliska@suse.cz>
5400
5401 * tree-ssa-dce.c (propagate_necessity): We can't reach now
5402 operators with no arguments.
5403 (eliminate_unnecessary_stmts): Likewise here.
5404
5405 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
5406
5407 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
5408 <case COMPARE>: Revert 2019-08-14 change.
5409 (convertible_comparison_p): Revert 2019-08-14 change. Return false
5410 for (TARGET_64BIT || mode != DImode).
5411
5412 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
5413
5414 * tree-vrp.c (value_range_base::set): Merge in code from
5415 value_range_base::set_and_canonicalize.
5416 Enforce canonicalization at set time.
5417 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
5418 (value_range_base::set_undefined): Inline call to set().
5419 (value_range_base::set_varying): Same.
5420 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
5421 (vrp_val_max): New argument handle_pointers.
5422 (vrp_val_min): Same.
5423 (ranges_from_anti_range): Same.
5424 (extract_range_into_wide_ints): Use tree argument instead of sign
5425 and precision.
5426 (extract_range_from_multiplicative_op): Take in tree type instead
5427 of precision and sign. Adapt function for canonicalized ranges.
5428 (extract_range_from_binary_expr): Pass type to
5429 extract_range_from_multiplicative_op.
5430 Adapt for canonicalized ranges.
5431 (extract_range_from_unary_expr): Same.
5432 (value_range_base::intersect_helper): Adjust for canonicalized
5433 ranges.
5434 (value_range_base::union_helper): Same.
5435 (value_range_base::normalize_symbolics): New.
5436 * tree-vrp.h (class value_range_base): Remove
5437 set_and_canonicalize.
5438 New prototype for normalize_symbolics.
5439 (class value_range): Remove set_and_canonicalize.
5440 (vrp_val_min): Adjust prototype.
5441 (vrp_val_max): Same.
5442 * vr-values.c
5443 (vr_values::extract_range_for_var_from_comparison_expr): Call set
5444 instead of set_and_canonicalize.
5445
5446 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5447
5448 PR middle-end/91444
5449 * tree-vect-stmts.c (vectorizable_call): Check that the function
5450 is a BUILT_IN_MD function before passing it to
5451 targetm.vectorize.builtin_md_vectorized_function.
5452
5453 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5454
5455 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
5456 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
5457 (aarch64_select_early_remat_modes): Use it.
5458
5459 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5460
5461 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
5462 16 for SVE predicates even if they are fixed-length.
5463
5464 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5465
5466 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
5467 operand order match the MOV /Z alias.
5468
5469 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5470
5471 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
5472 the vector pattern as an aarch64_svpattern argument. Update the
5473 overloaded caller accordingly.
5474 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
5475 (aarch64_output_sve_vector_inc_dec): Likewise.
5476
5477 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5478
5479 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
5480 multiplication case, try to compute VG * (lowest set bit) directly
5481 rather than always basing the multiplication on VG. Use
5482 expand_mult for the multiplication if we can.
5483
5484 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5485
5486 * config/aarch64/aarch64-protos.h
5487 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
5488 (aarch64_sve_inc_dec_immediate_p): Rename to...
5489 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5490 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
5491 (aarch64_output_sve_scalar_inc_dec): Declare.
5492 (aarch64_output_sve_inc_dec_immediate): Rename to...
5493 (aarch64_output_sve_vector_inc_dec): ...this.
5494 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
5495 (aarch64_output_sve_scalar_inc_dec): New functions.
5496 (aarch64_output_sve_addvl_addpl): Remove the base and offset
5497 arguments. Only handle true ADDVL and ADDPL instructions;
5498 don't emit an INC or DEC.
5499 (aarch64_sve_inc_dec_immediate_p): Rename to...
5500 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5501 (aarch64_output_sve_inc_dec_immediate): Rename to...
5502 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
5503 aarch64_sve_vector_inc_dec_immediate_p.
5504 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
5505 (aarch64_sve_plus_immediate): New predicates.
5506 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
5507 rather than aarch64_sve_addvl_addpl_immediate.
5508 (aarch64_sve_inc_dec_immediate): Rename to...
5509 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
5510 aarch64_sve_vector_inc_dec_immediate_p.
5511 (aarch64_sve_add_operand): Update accordingly.
5512 * config/aarch64/constraints.md (Uai): New constraint.
5513 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
5514 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
5515 operand into a register if it satisfies aarch64_sve_plus_immediate.
5516 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
5517 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
5518 * config/aarch64/aarch64-sve.md (add<mode>3): Call
5519 aarch64_output_sve_vector_inc_dec instead of
5520 aarch64_output_sve_inc_dec_immediate.
5521
5522 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5523
5524 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
5525 (UNSPEC_REVW): New constants.
5526 (elem_bits): New mode attribute.
5527 (SVE_INT_UNARY): New int iterator.
5528 (optab): Handle UNSPEC_REV[BHW].
5529 (sve_int_op): New int attribute.
5530 (min_elem_bits): Handle VNx16QI and the predicate modes.
5531 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
5532 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
5533 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
5534 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
5535 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
5536 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
5537 unspecs based on the total width of the reversed data.
5538 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
5539 reinterpret followed by a subreg on big-endian targets.
5540
5541 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5542 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5543
5544 * config/aarch64/aarch64-sve.md
5545 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
5546 alternatives in which one of the inputs is in the same register
5547 as the output.
5548
5549 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5550
5551 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
5552 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
5553
5554 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5555
5556 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
5557 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
5558
5559 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5560 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5561
5562 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
5563 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
5564 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
5565
5566 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5567 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5568
5569 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
5570 Add an alternative that uses reversed shifts.
5571
5572 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5573
5574 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
5575 struct.
5576
5577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5578
5579 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
5580 a commutativity marker.
5581
5582 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5583 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5584
5585 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
5586 (aarch64_prepare_sve_cond_int_fma): Declare.
5587 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
5588 (aarch64_prepare_sve_int_fma): New functions.
5589 (aarch64_prepare_sve_cond_int_fma): Likewise.
5590 * config/aarch64/aarch64-sve.md
5591 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
5592 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
5593 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
5594 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
5595 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
5596 (*madd<mode>): Rename to...
5597 (*fma<mode>4): ...this.
5598 (*msub<mode>): Rename to...
5599 (*fnma<mode>4): ...this.
5600
5601 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5602 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5603
5604 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
5605 Print 2.0 naturally.
5606 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
5607 * config/aarch64/predicates.md
5608 (aarch64_sve_float_negated_arith_immediate): New predicate,
5609 renamed from aarch64_sve_float_arith_with_sub_immediate.
5610 (aarch64_sve_float_arith_with_sub_immediate): Test for both
5611 positive and negative constants.
5612 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
5613 or an aarch64_sve_float_arith_with_sub_immediate.
5614 * config/aarch64/constraints.md (vsN): Use
5615 aarch64_sve_float_negated_arith_immediate.
5616 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
5617 iterator.
5618 (sve_pred_fp_rhs2_immediate): New int attribute.
5619 * config/aarch64/aarch64-sve.md
5620 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
5621 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
5622 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
5623 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
5624 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
5625 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
5626
5627 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5628 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5629
5630 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
5631 (*aarch64_cond_abd<SVE_F:mode>_3)
5632 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
5633
5634 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5635 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5636
5637 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
5638 (*aarch64_cond_<su>abd<mode>_any): New patterns.
5639
5640 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5641 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5642
5643 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
5644 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
5645 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
5646 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
5647 optabs.
5648 * optabs.h (create_convert_operand_from): Expand comment.
5649 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
5650 when mapping scalar rtxes to vector operands.
5651 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
5652 ashiftrt and lshiftrt.
5653 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
5654 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
5655 (*cond_<optab><mode>_any_const): New patterns.
5656
5657 2019-08-15 Martin Liska <mliska@suse.cz>
5658
5659 PR ipa/91438
5660 * cgraph.c (cgraph_node::remove): When setting
5661 n->origin = NULL for all nested functions, reset
5662 also next_nested.
5663
5664 2019-08-15 Martin Liska <mliska@suse.cz>
5665
5666 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
5667 and next_nested.
5668
5669 2019-08-15 Martin Liska <mliska@suse.cz>
5670
5671 PR ipa/91404
5672 * passes.c (order): Remove.
5673 (uid_hash_t): Likewise).
5674 (remove_cgraph_node_from_order): Remove from set
5675 of pointers (cgraph_node *).
5676 (insert_cgraph_node_to_order): New.
5677 (duplicate_cgraph_node_to_order): New.
5678 (do_per_function_toporder): Register all 3 cgraph hooks.
5679 Skip removed_nodes now as we know about all of them.
5680
5681 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
5682
5683 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
5684 <case E_V8QImode>: Use vector_set path for
5685 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5686 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
5687 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5688
5689 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5690
5691 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
5692
5693 2019-08-14 Martin Sebor <msebor@redhat.com>
5694
5695 PR tree-optimization/91294
5696 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
5697 source length as exact.
5698
5699 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
5700
5701 * doc/extend.texi: Add "noinit" attribute documentation.
5702 * doc/sourcebuild.texi: Add noinit effective target documentation.
5703 * varasm.c (default_section_type_flags): Add support for "noinit"
5704 section.
5705 (default_elf_select_section): Add support for "noinit" attribute.
5706 * config/msp430/msp430.c (msp430_attribute_table): Remove
5707 "noinit" entry.
5708
5709 2019-08-14 Richard Biener <rguenther@suse.de>
5710 Uroš Bizjak <ubizjak@gmail.com>
5711
5712 PR target/91154
5713 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
5714 mode arguments.
5715 (scalar_chain::smode): New member.
5716 (scalar_chain::vmode): Likewise.
5717 (dimode_scalar_chain): Rename to...
5718 (general_scalar_chain): ... this.
5719 (general_scalar_chain::general_scalar_chain): Take mode arguments.
5720 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
5721 base with TImode and V1TImode.
5722 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
5723 (general_scalar_chain::vector_const_cost): Adjust for SImode
5724 chains.
5725 (general_scalar_chain::compute_convert_gain): Likewise. Add
5726 {S,U}{MIN,MAX} support.
5727 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
5728 (general_scalar_chain::make_vector_copies): Likewise. Handle
5729 non-DImode chains appropriately.
5730 (general_scalar_chain::convert_reg): Likewise.
5731 (general_scalar_chain::convert_op): Likewise.
5732 (general_scalar_chain::convert_insn): Likewise. Add
5733 fatal_insn_not_found if the result is not recognized.
5734 (convertible_comparison_p): Pass in the scalar mode and use that.
5735 (general_scalar_to_vector_candidate_p): Likewise. Rename from
5736 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
5737 (scalar_to_vector_candidate_p): Remove by inlining into single
5738 caller.
5739 (general_remove_non_convertible_regs): Rename from
5740 dimode_remove_non_convertible_regs.
5741 (remove_non_convertible_regs): Remove by inlining into single caller.
5742 (convert_scalars_to_vector): Handle SImode and DImode chains
5743 in addition to TImode chains.
5744 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
5745 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
5746 (*<maxmin>di3_doubleword): Likewise.
5747
5748 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5749 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5750
5751 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
5752 (*cond_bic<mode>_any): New patterns.
5753
5754 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5755
5756 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
5757 take the equivalent mask, as well as a bit count.
5758 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
5759 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
5760 (aarch64_sve_pred_and_operand): New predicates.
5761 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
5762 code attribute.
5763 * config/aarch64/aarch64-sve.md
5764 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
5765 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
5766
5767 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5768
5769 * config/aarch64/aarch64-sve.md
5770 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5771 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
5772 New patterns.
5773
5774 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5775 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5776
5777 * config/aarch64/aarch64-sve.md
5778 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
5779 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
5780
5781 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5782 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5783
5784 * config/aarch64/aarch64-sve.md
5785 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
5786 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
5787
5788 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5789
5790 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
5791 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
5792 New pattern.
5793
5794 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5795 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5796
5797 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
5798
5799 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5800 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5801
5802 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
5803 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
5804 (aarch64_print_operand): Add support for %I.
5805 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
5806 Bitcast floating-point constants to the corresponding integer constant.
5807 (aarch64_float_const_representable_p): Handle vectors as well
5808 as scalars.
5809 (aarch64_expand_sve_vcond): Make sure that the operands are valid
5810 for the new vcond_mask_<mode><vpred> expander.
5811 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
5812 test aarch64_float_const_representable_p.
5813 (aarch64_sve_reg_or_dup_imm): New predicate.
5814 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
5815 gen_vcond_mask_<mode><vpred> instead of
5816 gen_aarch64_sve_dup<mode>_const.
5817 (vcond_mask_<mode><vpred>): Turn into a define_expand that
5818 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
5819 for operands 1 and 2 respectively. Force operand 2 into a
5820 register if operand 1 is a register. Fold old define_insn...
5821 (aarch64_sve_dup<mode>_const): ...and this define_insn...
5822 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
5823 floating-point constants that can be moved as integers. Add
5824 alternatives for MOV /M and FMOV /M.
5825 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
5826 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
5827 1 and 2 respectively.
5828 * config/aarch64/constraints.md (Ufc): Handle vectors as well
5829 as scalars.
5830 (vss): New constraint.
5831
5832 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5833
5834 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
5835 (aarch64_sve_float_maxmin_operand): New predicates.
5836 * config/aarch64/constraints.md (vsB): New constraint.
5837 (vsM): Fix typo.
5838 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
5839 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
5840 UNSPEC_COND_FMINNM.
5841 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
5842 Use aarch64_sve_float_maxmin_operand for operand 2.
5843 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
5844 Add alternatives for the constant forms.
5845
5846 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5847
5848 * config/aarch64/constraints.md (vsb): New constraint.
5849 (vsm): Generalize description.
5850 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
5851 iterator.
5852 (sve_imm_con): Handle smax, smin, umax and umin.
5853 (sve_imm_prefix): New code attribute.
5854 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
5855 (aarch64_sve_vsb_operand): New predicates.
5856 (aarch64_sve_mul_immediate): Rename to...
5857 (aarch64_sve_vsm_immediate): ...this.
5858 (aarch64_sve_mul_operand): Rename to...
5859 (aarch64_sve_vsm_operand): ...this.
5860 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
5861 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
5862 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
5863 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
5864 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
5865 add movprfx support for the immediate alternatives.
5866 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
5867 of the above.
5868 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
5869 for operand 3.
5870
5871 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5872
5873 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
5874 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
5875 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
5876
5877 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5878
5879 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
5880 (optab, sve_int_op): Handle them.
5881 * config/aarch64/aarch64-sve.md: Expand comment.
5882
5883 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5884
5885 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
5886 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
5887 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
5888
5889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5890
5891 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
5892 (aarch64_expand_sve_const_pred_trn): New functions.
5893 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
5894 use the above functions when the parameter is true.
5895 (aarch64_expand_sve_const_pred): Update call accordingly.
5896 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
5897 Rename to...
5898 (@aarch64_sve_<perm_insn><mode>): ...this.
5899
5900 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5901
5902 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
5903 Declare.
5904 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
5905 (aarch64_sve_emit_int_cmp): New functions.
5906 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
5907 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
5908 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
5909 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
5910 (UNSPEC_PRED_Z): New unspec.
5911 (set_clobber_cc_nzc): Delete.
5912 * config/aarch64/aarch64-sve.md: Add a block comment about
5913 UNSPEC_PRED_Z.
5914 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
5915 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
5916 the old pattern with that name. Use UNSPEC_PRED_Z instead of
5917 UNSPEC_MERGE_PTRUE.
5918 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
5919 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
5920 check for compatible predicates.
5921 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
5922 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
5923 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
5924 comparisons above.
5925
5926 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5927
5928 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
5929 * config/aarch64/aarch64-sve.md: Add a section describing it.
5930 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
5931 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
5932 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
5933 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
5934 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
5935 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
5936 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
5937 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
5938 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
5939 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
5940 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
5941 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
5942 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
5943 (aarch64_evpc_rev_local): Update accordingly.
5944
5945 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5946
5947 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
5948 iterators.
5949 (SVE_BHSI, SVE_SDI): Tweak comment.
5950 (SVE_HSDI): Likewise. Fix definition.
5951 (SVE_SDF): New mode iterator.
5952 (elem_bits): New mode attribute.
5953 (SVE_COND_FCVT): New int iterator.
5954 * config/aarch64/aarch64-sve.md
5955 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
5956 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
5957 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
5958 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5959 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5960 ...these new patterns.
5961 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
5962 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
5963 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
5964 Merge into...
5965 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
5966 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
5967 ...these new patterns.
5968 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
5969 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
5970 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
5971 ...this new pattern.
5972 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
5973 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
5974 ...this new pattern.
5975 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
5976
5977 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5978
5979 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
5980 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
5981 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
5982 unspecs.
5983 (optab, su): Handle them.
5984 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
5985 * config/aarch64/aarch64-sve.md
5986 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
5987 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
5988 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
5989 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
5990 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
5991 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
5992 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
5993 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
5994 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
5995 FIXUORS.
5996 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
5997 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
5998 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
5999 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
6000 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
6001 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
6002 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
6003 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
6004 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
6005 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
6006 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
6007 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
6008 of UNSPEC_FLOAT_CONVERT.
6009 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
6010 aarch64_sve_extend<mode><Vwide>2.
6011
6012 2019-08-14 Richard Biener <rguenther@suse.de>
6013
6014 PR target/91154
6015 * config/i386/i386-features.c
6016 (dimode_scalar_chain::compute_convert_gain): Compute and dump
6017 individual instruction gain. Fix reg-reg copy GRP cost. Use
6018 ix86_cost->sse_op for vector instruction costs.
6019
6020 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6021
6022 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
6023 (cmp_op): Handle it.
6024 (SVE_COND_FP_CMP): Rename to...
6025 (SVE_COND_FP_CMP_I0): ...this.
6026 (SVE_FP_CMP): Remove.
6027 * config/aarch64/aarch64-sve.md
6028 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
6029 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
6030 using unspecs to represent the comparison.
6031 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
6032 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
6033 accordingly.
6034 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
6035 (aarch64_unspec_cond_code): Move after integer code. Handle
6036 UNORDERED.
6037 (aarch64_emit_sve_predicated_cond): Replace with...
6038 (aarch64_emit_sve_fp_cond): ...this new function.
6039 (aarch64_emit_sve_or_conds): Replace with...
6040 (aarch64_emit_sve_or_fp_conds): ...this new function.
6041 (aarch64_emit_sve_inverted_cond): Replace with...
6042 (aarch64_emit_sve_invert_fp_cond): ...this new function.
6043 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
6044
6045 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6046
6047 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
6048 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
6049 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
6050 SVE_HSD instead of SVE_SD.
6051
6052 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6053 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6054
6055 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
6056 iterator.
6057 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
6058 attributes.
6059 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
6060 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
6061 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
6062 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
6063 (*div<SVE_F:mode>3): Generalize to...
6064 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
6065
6066 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6067 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6068
6069 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
6070 constants.
6071 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
6072 predicate.
6073 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
6074 Declare.
6075 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
6076 function.
6077 * config/aarch64/aarch64-sve.md: Add a block comment about the
6078 handling of predicated FP operations.
6079 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
6080 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
6081 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6082 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
6083 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
6084 operand.
6085 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
6086 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
6087 operand.
6088 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
6089 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
6090 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
6091 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
6092 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
6093 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6094 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6095 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
6096 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
6097 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
6098 strictness operands. Use aarch64_sve_pred_dominates_p to check
6099 whether the predicate on the conditional operation is suitable
6100 for merging. Split patterns into the canonical equal-predicate form.
6101 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
6102 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
6103
6104 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6105 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6106
6107 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
6108 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
6109 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
6110 rtx codes.
6111 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
6112 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
6113 unspecs.
6114
6115 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6116 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6117
6118 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
6119 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
6120 actually has, rather than relying on REG_EQUAL notes.
6121 Make the insn operand order match the SVE operand order.
6122 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
6123 the SVE operand order.
6124
6125 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6126
6127 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
6128 (aarch64_emit_set_immediate): Likewise.
6129 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
6130 (aarch64_pfalse_reg): Likewise.
6131 (aarch64_convert_sve_data_to_pred): New function.
6132 (aarch64_sve_move_pred_via_while): Take an optional target register
6133 and the required register mode.
6134 (aarch64_expand_sve_const_pred_1): New function.
6135 (aarch64_expand_sve_const_pred): Likewise.
6136 (aarch64_expand_mov_immediate): Build an all-true predicate
6137 if the significant bits of the immediate are all true. Use
6138 aarch64_expand_sve_const_pred for all compile-time predicate constants.
6139 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
6140 before register allocation.
6141 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
6142 a VNx16BI PTRUE when splitting the memory alternative.
6143 (vec_duplicate<mode>): Update accordingly.
6144 (*pred_cmp<cmp_op><mode>): Rename to...
6145 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
6146
6147 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6148
6149 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
6150 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
6151 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
6152 (UNSPEC_PTEST): New unspec.
6153 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
6154 * config/aarch64/iterators.md (data_bytes): New mode attribute.
6155 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
6156 * config/aarch64/aarch64-sve.md: Add a new section describing the
6157 handling of UNSPEC_PTEST.
6158 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
6159 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
6160 (ptest_ptrue<mode>): Replace with...
6161 (aarch64_ptest<mode>): ...this new pattern.
6162 (cbranch<mode>4): Update after above changes.
6163 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
6164 UNSPEC_PTEST_PTRUE.
6165 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
6166 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
6167 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
6168
6169 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6170
6171 PR lto/91287
6172 * builtins.c (builtin_with_linkage_p): New function.
6173 * builtins.h (builtin_with_linkage_p): New function.
6174 * symtab.c (write_symbol): Remove redundant assert.
6175 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
6176 Remove FIXME and use builtin_with_linkage_p.
6177
6178 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6179
6180 PR middle-end/91421
6181 * tree-core.h (function_decl::function_code): Change type to
6182 unsigned int.
6183 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
6184 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
6185 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6186 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
6187 is BUILT_IN_NORMAL.
6188 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6189 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6190 (fndecl_built_in_p): Change the type of the "name" argument to
6191 unsigned int.
6192 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6193 after check for DECL_BUILT_IN_CLASS.
6194 * cgraphclones.c (build_function_decl_skip_args): Use
6195 set_decl_built_in_function.
6196 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6197 * ipa-split.c (split_function): Likewise.
6198 * langhooks.c (add_builtin_function_common): Likewise.
6199 * omp-simd-clone.c (simd_clone_create): Likewise.
6200 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6201 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6202 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6203 DECL_FUNCTION_CODE.
6204 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6205 instead of DECL_FUNCTION_CODE.
6206 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6207 instead of DECL_FUNCTION_CODE.
6208 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6209 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6210 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
6211 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6212 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6213 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6214 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6215 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6216 (alpha_gimple_fold_builtin): Likewise.
6217 * config/arc/arc.c (arc_expand_builtin): Likewise.
6218 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6219 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6220 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6221 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6222 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6223 * config/frv/frv.c (frv_expand_builtin): Likewise.
6224 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6225 (gcn_expand_builtin): Likewise.
6226 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6227 (fold_builtin_cpu): Likewise.
6228 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6229 * config/i386/i386.c (ix86_fold_builtin): Likewise.
6230 (ix86_gimple_fold_builtin): Likewise.
6231 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6232 (ia64_expand_builtin): Likewise.
6233 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6234 * config/mips/mips.c (mips_expand_builtin): Likewise.
6235 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6236 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6237 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6238 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6239 * config/pa/pa.c (pa_expand_builtin): Likewise.
6240 * config/pru/pru.c (pru_expand_builtin): Likewise.
6241 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6242 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6243 Likewise.
6244 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6245 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6246 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6247 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6248 (rs6000_builtin_reciprocal): Likewise.
6249 * config/rx/rx.c (rx_expand_builtin): Likewise.
6250 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6251 * config/s390/s390.c (s390_expand_builtin): Likewise.
6252 * config/sh/sh.c (sh_expand_builtin): Likewise.
6253 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6254 (sparc_fold_builtin): Likewise.
6255 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6256 * config/spu/spu.c (spu_expand_builtin): Likewise.
6257 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6258 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6259 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6260 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6261 (xtensa_expand_builtin): Likewise.
6262
6263 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6264
6265 PR middle-end/91421
6266 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6267 before the DECL_FUNCTION_CODE.
6268 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6269 to check for a BUILT_IN_ALLOCA call.
6270 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6271 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
6272 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6273 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6274 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6275 for BUILT_IN_NORMAL functions.
6276 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6277 test for BUILT_IN_TM_ABORT.
6278 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6279 to check for a BUILT_IN_STACK_RESTORE call.
6280 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6281 * tree-ssa-threadedge.c
6282 (record_temporary_equivalences_from_stmts_at_dest): Check for a
6283 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6284 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6285 test for a BUILT_IN_NORMAL call instead of a negative test for
6286 an internal function call.
6287
6288 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6289
6290 * tree.h (build_vector_a_then_b): Declare.
6291 * tree.c (build_vector_a_then_b): New function.
6292 * fold-const-call.c (fold_while_ult): Likewise.
6293 (fold_const_call): Use it to handle IFN_WHILE_ULT.
6294 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6295 (aarch64_svpattern): New enum.
6296 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6297 constants through aarch64_expand_mov_immediate.
6298 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6299 than general_operand as the predicate for operand 1.
6300 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6301 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6302 insn_type.
6303 (simd_immediate_info::simd_immediate_info): New overload that
6304 takes a scalar_int_mode and an svpattern.
6305 (simd_immediate_info::u): Add a "pattern" field.
6306 (svpattern_token): New function.
6307 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6308 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6309 (aarch64_sve_move_pred_via_while): New functions.
6310 (aarch64_expand_mov_immediate): Try using
6311 aarch64_sve_move_pred_via_while for predicates that contain N ones
6312 followed by M zeros but that do not correspond to a VLnnn pattern.
6313 (aarch64_sve_pred_valid_immediate): New function.
6314 (aarch64_simd_valid_immediate): Use it instead of dealing directly
6315 with PTRUE and PFALSE.
6316 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6317 forms.
6318
6319 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6320
6321 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6322 flag.
6323 (darwin_override_options): Likewise.
6324 * config/darwin.h: Likewise.
6325 * config/darwin.opt: Likewise.
6326 * config/i386/i386.c (output_pic_addr_const): Likewise.
6327 * config/rs6000/darwin.h: Likewise.
6328 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6329 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6330 ... this TARGET_MACHO_SYMBOL_STUBS.
6331 (FUNCTION_PROFILER):Likewise.
6332 * config/i386/i386.h: Likewise.
6333
6334 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6335
6336 * config/i386/i386-expand.c (ix86_expand_vector_extract)
6337 <case E_V2SImode>: Use vec_extr path for
6338 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6339 <case E_V8QImode>: Ditto.
6340 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6341 Use SWI48 mode iterator. Use %k to output operand 0.
6342 (*mmx_pextrw): New insn pattern.
6343 (*mmx_pextrb): Ditto.
6344 (*mmx_pextrb_zext): Ditto.
6345
6346 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
6347
6348 * target.def (libc_has_function, libc_has_fast_function): Improve
6349 documentation strings.
6350 * doc/tm.texi: Regenerate.
6351
6352 2019-08-13 Caroline Tice <cmtice@google.com>
6353
6354 PR other/91396
6355 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6356 vtv_end.o or vtv_end_preinit.o files if !static.
6357
6358 2019-08-13 Olivier Hainque <hainque@adacore.com>
6359
6360 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6361
6362 2019-08-13 Olivier Hainque <hainque@adacore.com>
6363
6364 * rtlanal.c (tablejump_casesi_pattern): New function, to
6365 determine if a tablejump insn is a casesi dispatcher. Extracted
6366 from patch_jump_insn.
6367 * rtl.h (tablejump_casesi_pattern): Declare.
6368 * cfgrtl.c (patch_jump_insn): Use it.
6369 * dwarf2cfi.c (create_trace_edges): Use it.
6370
6371 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6372
6373 PR target/81800
6374 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6375 operand is larger than a long int.
6376
6377 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6378
6379 * machmode.h (opt_mode::else_mode): New function.
6380 (opt_mode::else_blk): Use it.
6381 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6382 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6383 (aarch64_gen_stepped_int_parallel): Likewise.
6384 (aarch64_stepped_int_parallel_p): Likewise.
6385 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6386 argument.
6387 * config/aarch64/aarch64.c
6388 (aarch64_expand_sve_widened_duplicate): Delete.
6389 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6390 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6391 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6392 argument. Use early returns in the !CONST_INT_P handling.
6393 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6394 than handling some inline.
6395 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6396 from...
6397 (aarch64_simd_container_mode): ...here.
6398 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
6399 (aarch64_sve_ld1rq_operand_p): New functions.
6400 * config/aarch64/predicates.md (descending_int_parallel)
6401 (aarch64_sve_ld1rq_operand): New predicates.
6402 * config/aarch64/constraints.md (UtQ): New constraint.
6403 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
6404 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
6405 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
6406 (@aarch64_sve_reinterpret<mode>): New expander.
6407 (*aarch64_sve_reinterpret<mode>): New pattern.
6408 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
6409 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
6410 (*sve_ld1rq<Vesize>): Replace with...
6411 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
6412
6413 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6414
6415 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
6416 16:12.
6417
6418 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6419
6420 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
6421 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
6422 (msp430_check_path_for_devices): New.
6423 (parse_devices_csv_1): New.
6424 (parse_devices_csv): New.
6425 (msp430_extract_mcu_data): Try to find devices.csv and search for the
6426 MCU data in devices.csv before using the hard-coded data.
6427 Warn if devices.csv isn't found and the MCU wasn't found in the
6428 hard-coded data either.
6429 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
6430 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
6431 Search for devices.csv on -I and -L paths.
6432 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
6433 msp430_set_driver_var.
6434 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
6435 -mdevices-csv-loc=.
6436 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
6437 searched for devices.csv.
6438 (mwarn-devices-csv): Document option.
6439
6440 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6441
6442 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
6443 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
6444 Use a single Dn alternative instead of separate Dz and Dm
6445 alternatives. Use aarch64_output_sve_move_immediate.
6446 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
6447 function.
6448 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
6449 for predicates too.
6450 (aarch64_output_sve_mov_immediate): Handle predicate modes.
6451 (aarch64_output_ptrue): Delete.
6452
6453 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6454
6455 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
6456 INDEX.
6457 (simd_immediate_info::value, simd_immediate_info::step)
6458 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
6459 with...
6460 (simd_immediate_info::u): ...this new union.
6461 (simd_immediate_info::simd_immediate_info): Update accordingly.
6462 (aarch64_output_simd_mov_immediate): Likewise.
6463 (aarch64_output_sve_mov_immediate): Likewise.
6464
6465 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6466
6467 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
6468 extra_gcc_objs.
6469 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
6470 (msp430_select_cpu): New spec function.
6471 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
6472 MCU data.
6473 * config/msp430/msp430-devices.c: New file.
6474 * config/msp430/msp430-devices.h: New file.
6475 * config/msp430/msp430.c: Remove msp430_mcu_data.
6476 (msp430_option_override): Use msp430_extract_mcu_data to extract
6477 MCU data.
6478 (msp430_use_f5_series_hwmult): Likewise.
6479 (use_32bit_hwmult): Likewise.
6480 (msp430_no_hwmult): Likewise.
6481 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
6482 assembler.
6483 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
6484 and -mcpu option.
6485 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
6486 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
6487 Remove hard-coded MCU multilib data.
6488
6489 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6490
6491 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
6492 based on the mode instead of testing properties of it.
6493
6494 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6495
6496 * doc/md.texi: Document the x and y constraints for AArch64.
6497 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
6498 (FP_LO8_REGS): New reg_class.
6499 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
6500 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
6501 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
6502 * config/aarch64/predicates.md (aarch64_simd_register): Use
6503 FP_REGNUM_P instead of checking the classes manually.
6504 * config/aarch64/constraints.md (y): New constraint.
6505
6506 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6507
6508 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
6509 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
6510 * config/aarch64/aarch64-simd.md
6511 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
6512 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
6513 from the asm template.
6514 * config/aarch64/aarch64-sve.md
6515 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
6516 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
6517 from the asm template.
6518 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
6519 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
6520 from the asm template.
6521 * config/aarch64/aarch64-simd-builtins.def: Update comment.
6522
6523 2019-08-13 Martin Liska <mliska@suse.cz>
6524
6525 * value-prof.c (gimple_ic_transform): Add new line.
6526 Print details with MSG_NOTE.
6527
6528 2019-08-13 Martin Liska <mliska@suse.cz>
6529
6530 * doc/invoke.texi: Document automatic detection of jobserver.
6531 * lto-wrapper.c (run_gcc): Detect jobserver always.
6532
6533 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6534
6535 * config/i386/i386-expand.c (ix86_expand_vector_set)
6536 <case E_V2SImode>: Use vec_merge path for
6537 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6538 <case E_V8QImode>: Ditto.
6539 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
6540 (*mmx_pinsrb): Ditto.
6541
6542 2019-08-12 Jakub Jelinek <jakub@redhat.com>
6543
6544 PR target/83250
6545 PR target/91340
6546 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
6547 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
6548 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
6549 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
6550 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
6551
6552 2019-08-12 Richard Biener <rguenther@suse.de>
6553
6554 PR lto/91375
6555 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
6556 flag_devirtualize.
6557
6558 2019-08-12 Richard Biener <rguenther@suse.de>
6559
6560 PR driver/91130
6561 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
6562 lang_mask option, always use CL_DRIVER.
6563 (get_options_from_collect_gcc_options): Adjust.
6564 (find_and_merge_options): Likewise.
6565 (run_gcc): Likewise.
6566
6567 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6568
6569 * ipa-predicate.c (add_condition): Restore inverted test.
6570
6571 2019-08-10 Jakub Jelinek <jakub@redhat.com>
6572
6573 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
6574 (enum omp_clause_device_type_kind): New enum.
6575 (struct tree_omp_clause): Add subcode.device_type_kind.
6576 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
6577 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6578 for device_type clause.
6579 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
6580 * tree-pretty-print.c (dump_omp_clause): Likewise.
6581
6582 PR target/91408
6583 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
6584 vector_operand.
6585
6586 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
6587
6588 * reload1.c (finish_spills): Do not check ira_conflicts_p when
6589 handling spilled pseudos.
6590
6591 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6592
6593 PR target/91386
6594 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
6595 to preserve the contents of the original insns.
6596
6597 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6598
6599 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
6600 (addsi3_compare_op2): Likewise.
6601
6602 2019-08-09 Martin Liska <mliska@suse.cz>
6603
6604 * alias.c (alias_ptr_types_compatible_p): Strengten
6605 type comparison in LTO mode.
6606
6607 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
6608
6609 PR middle-end/90313
6610 * tree-tailcall.c (find_tail_calls): Reject calls that might
6611 read from an escaped RESULT_DECL.
6612
6613 2019-08-09 Martin Liska <mliska@suse.cz>
6614
6615 * doc/invoke.texi: Document the option value.
6616 * lto-wrapper.c (run_gcc): Set auto_parallel
6617 only with -flto=auto.
6618
6619 2019-08-09 Martin Liska <mliska@suse.cz>
6620
6621 * opts.c (common_handle_option): Error for an invalid argument
6622 to -flto=.
6623
6624 2019-08-09 Martin Liska <mliska@suse.cz>
6625
6626 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
6627 use dump_printf to report optimization.
6628 (sem_variable::merge): Likwise.
6629 (sem_item_optimizer::merge_classes): Use dump_printf to report
6630 ICF hits.
6631
6632 2019-08-09 Martin Liska <mliska@suse.cz>
6633
6634 * value-prof.c (gimple_divmod_fixed_value_transform):
6635 Use dump_printf_loc.
6636 (gimple_mod_pow2_value_transform): Likewise.
6637 (gimple_mod_subtract_transform): Likewise.
6638 (init_node_map): Likewise.
6639 (gimple_ic_transform): Likewise.
6640 (gimple_stringops_transform): Likewise.
6641
6642 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6643
6644 * doc/extend.texi: Add const qualifier to ld intrinsics.
6645
6646 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6647
6648 * config/rs6000/dfp.md (D64_D128): Rename to ...
6649 (DDTD): ... this, throughout.
6650 (dfp_suffix): Rename to ...
6651 (q): ... this, throughout.
6652
6653 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6654
6655 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
6656 (dfp_suffix): Ditto.
6657 (adddd3, addtd3): Merge to ...
6658 (add<mode>3 for D64_D128): ... this.
6659 (subdd3, subtd3): Merge to ...
6660 (sub<mode>3 for D64_D128): ... this.
6661 (muldd3, multd3): Merge to ...
6662 (mul<mode>3 for D64_D128): ... this.
6663 (divdd3, divtd3): Merge to ...
6664 (div<mode>3 for D64_D128): ... this.
6665 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
6666 (*cmp<mode>_internal1 for D64_D128): ... this.
6667 (ftruncdd2, ftrunctd2): Merge to ...
6668 (ftrunc<mode>2 for D64_D128): ... this.
6669 (fixdddi2, fixtddi2): Merge to ...
6670 (fix<mode>di2 for D64_D128): ... this.
6671
6672 2019-08-08 Jim Wilson <jimw@sifive.com>
6673
6674 PR target/91229
6675 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
6676 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
6677 Pass into recursive call.
6678 (riscv_flatten_aggregate_argument): New arg. Pass to
6679 riscv_flatten_aggregate_field.
6680 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
6681 riscv_flatten_aggregate_argument twice, with false and true as last
6682 arg. Process result twice. Compare results and warn if different.
6683 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
6684
6685 2019-08-08 Martin Liska <mliska@suse.cz>
6686
6687 PR bootstrap/91352
6688 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
6689 * lto-wrapper.c (jobserver_active_p): Likewise.
6690
6691 2019-08-08 Martin Liska <mliska@suse.cz>
6692
6693 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
6694 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
6695 (create_version_clone_with_body): Likewise.
6696
6697 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6698
6699 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
6700 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
6701 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
6702 GOVD_EXPLICIT flags.
6703 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
6704 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
6705 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
6706 call install_var_field with mask 11 instead of 3.
6707 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
6708 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
6709
6710 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6711
6712 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
6713 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
6714
6715 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6716
6717 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
6718 MOVPRFX alternatives. Make the GPR alternatives more expensive
6719 than the FPR ones.
6720
6721 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6722
6723 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
6724 Disparage the GPR alternative relative to the FPR one.
6725 Fix handling of 8-bit and 16-bit FPR values.
6726
6727 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6728
6729 * config/aarch64/iterators.md (BITWISEV): Delete.
6730 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
6731 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
6732 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6733 UNSPEC_FMINNMV, UNSPEC_FMINV.
6734 (bit_reduc_op): Delete.
6735 (sve_int_op): New int attribute.
6736 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6737 UNSPEC_FMINNMV, UNSPEC_FMINV.
6738 * config/aarch64/aarch64-sve.md
6739 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6740 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6741 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
6742 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
6743 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
6744 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
6745 new patterns.
6746 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
6747 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
6748 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
6749 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
6750 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
6751 new patterns.
6752
6753 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6754
6755 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
6756 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
6757 (fms<mode>4, *fms<mode>4): Replace with...
6758 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6759 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
6760 Use unspecs instead of rtx codes.
6761 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
6762 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
6763
6764 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6765
6766 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
6767 int iterator.
6768 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
6769 * config/aarch64/aarch64-sve.md
6770 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
6771 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
6772 use a single unspec for the rhs.
6773 (*<su><maxmin><mode>3): Delete.
6774 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
6775
6776 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6777
6778 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
6779 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
6780 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
6781 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
6782 (optab, sve_fp_op): Handle them.
6783 (SVE_FP_UNARY): Delete.
6784 (optab): Remove sqrt entry.
6785 (sve_fp_op): Remove neg, abs and sqrt entries.
6786 (SVE_COND_FP_UNARY): New int iterator.
6787 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
6788 (*<frint_pattern><mode>2): Delete.
6789 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6790 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6791 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6792 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6793
6794 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6795
6796 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
6797
6798 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6799
6800 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
6801 (UNSPEC_COND_FADD): ...this.
6802 (UNSPEC_COND_SUB): Rename to...
6803 (UNSPEC_COND_FSUB): ...this.
6804 (UNSPEC_COND_MUL): Rename to...
6805 (UNSPEC_COND_FMUL): ...this.
6806 (UNSPEC_COND_DIV): Rename to...
6807 (UNSPEC_COND_FDIV): ...this.
6808 (UNSPEC_COND_MAX): Rename to...
6809 (UNSPEC_COND_FMAXNM): ...this.
6810 (UNSPEC_COND_MIN): Rename to...
6811 (UNSPEC_COND_FMINNM): ...this.
6812 (UNSPEC_COND_LT): Rename to...
6813 (UNSPEC_COND_FCMLT): ...this.
6814 (UNSPEC_COND_LE): Rename to...
6815 (UNSPEC_COND_FCMLE): ...this.
6816 (UNSPEC_COND_EQ): Rename to...
6817 (UNSPEC_COND_FCMEQ): ...this.
6818 (UNSPEC_COND_NE): Rename to...
6819 (UNSPEC_COND_FCMNE): ...this.
6820 (UNSPEC_COND_GE): Rename to...
6821 (UNSPEC_COND_FCMGE): ...this.
6822 (UNSPEC_COND_GT): Rename to...
6823 (UNSPEC_COND_FCMGT): ...this.
6824 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
6825 (sve_fp_op_rev): Update accordingly.
6826 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
6827
6828 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6829
6830 * config/aarch64/aarch64-sve.md: Reorganize contents and add
6831 banner comments.
6832 * config/aarch64/check-sve-md.awk: New file.
6833 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
6834 (insn-conditions.md): Depend on it.
6835
6836 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
6837
6838 PR target/91385
6839 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
6840 (*negsi2_cmpz_zext): Ditto.
6841
6842 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6843
6844 * config/aarch64/iterators.md (commutative): Remove.
6845
6846 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
6847
6848 PR driver/91130
6849 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
6850 processing COLLECT_GCC_OPTIONS.
6851 (run_gcc): Likewise.
6852
6853 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
6854
6855 PR tree-optimization/91109
6856 * lra-remat.c (update_scratch_ops): Remove assignment of the
6857 hard register.
6858
6859 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6860
6861 * data-streamer.h (streamer_write_poly_uint64): Declare.
6862 (streamer_read_poly_uint64): Likewise.
6863 * data-streamer-in.c (streamer_read_poly_uint64): New function.
6864 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
6865 * ipa-predicate.h (condition::size): Turn into a poly_int64.
6866 (add_condition): Take a poly_int64 size.
6867 * ipa-predicate.c (add_condition): Likewise.
6868 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
6869 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
6870 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
6871 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
6872 condition::size as a poly_int64.
6873 (unmodified_parm_1): Take a poly_int64 size pointer.
6874 (unmodified_parm): Likewise.
6875 (unmodified_parm_or_parm_agg_item): Likewise.
6876 (set_cond_stmt_execution_predicate): Update accordingly.
6877 (set_switch_stmt_execution_predicate): Likewise.
6878 (will_be_nonconstant_expr_predicate): Likewise.
6879 (will_be_nonconstant_predicate): Likewise.
6880 (inline_read_section): Stream condition::size as a poly_int.
6881 (ipa_fn_summary_write): Likewise.
6882
6883 2019-08-07 Martin Liska <mliska@suse.cz>
6884
6885 * fold-const.c (twoval_comparison_p): Replace int
6886 with bool as a return type.
6887 (simple_operand_p): Likewise.
6888 (operand_equal_p): Replace int with bool as a return type.
6889 * fold-const.h (operand_equal_p): Likewise.
6890
6891 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6892
6893 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
6894 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
6895 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6896 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
6897 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
6898 * tree-pretty-print.c (dump_omp_clause): Likewise.
6899 * tree-nested.c (convert_nonlocal_omp_clauses,
6900 convert_local_omp_clauses): Likewise.
6901 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6902 Likewise.
6903 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
6904 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
6905 clause with array or reference to array types, no matter what type
6906 except for reference it has.
6907
6908 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
6909
6910 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
6911
6912 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
6913
6914 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
6915 (arch_canonicalize): Support rv32g and rv64g and fix error
6916 handling.
6917
6918 2019-08-06 Martin Liska <mliska@suse.cz>
6919
6920 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
6921 and DECL_IS_OPERATOR_DELETE_P.
6922
6923 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6924
6925 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
6926 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
6927 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
6928 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
6929 (gimplify_omp_for): Don't do C++ random access iterator clause
6930 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
6931 don't predetermine the artificial iterator in case of C++ random
6932 access iterators as lastprivate, but private. For OMP_LOOP, force
6933 bind expr around simd body and force for_pre_body before the
6934 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
6935 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
6936 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
6937 diff var of C++ random access iterators. Handle
6938 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
6939 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
6940 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
6941 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
6942 * omp-low.c (lower_rec_input_clauses): For
6943 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
6944 variables instead of default constructing them.
6945 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
6946 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
6947 is_taskloop_ctx check from the assert to the guarding condition.
6948
6949 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
6950
6951 * config/riscv/multilib-generator: (canonical_order): New.
6952 (arch_canonicalize): Dito.
6953 Apply arch_canonicalize for alts.
6954
6955 2019-08-05 Martin Sebor <msebor@redhat.com>
6956
6957 * doc/extend.texi (Common Variable Attributes): Document alias
6958 attribute.
6959
6960 2019-08-05 Marek Polacek <polacek@redhat.com>
6961
6962 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
6963 * doc/invoke.texi: Document -Wcomma-subscript.
6964
6965 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6966
6967 * tree-core.h (tree_function_decl): Make function_code an
6968 independent field. Group the remaining bitfields into bytes
6969 and move decl_type so that it contines to be at a byte boundary.
6970 Leave 12 bits for future expansion.
6971
6972 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6973
6974 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
6975 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
6976 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
6977 IFN_MASK_STORE.
6978
6979 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6980
6981 * gimple.h (gimple_move_vops): Declare.
6982 * gimple.c (gimple_move_vops): New function
6983 * gimple-fold.c (replace_call_with_call_and_fold)
6984 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
6985 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
6986 (gimple_fold_call): Use it.
6987 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
6988 * tree-call-cdce.c (use_internal_fn): Likewise.
6989 * tree-if-conv.c (predicate_load_or_store): Likewise.
6990 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
6991 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6992 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
6993 (update_call_from_tree): Likewise.
6994 * tree-vect-stmts.c (vectorizable_load): Likewise.
6995 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
6996
6997 2019-08-05 Martin Liska <mliska@suse.cz>
6998
6999 PR c++/91334
7000 * tree-ssa-dce.c (propagate_necessity): Handle new operators
7001 with not arguments.
7002 (eliminate_unnecessary_stmts): Likewise.
7003
7004 2019-08-05 Richard Biener <rguenther@suse.de>
7005
7006 PR middle-end/91169
7007 * fold-const.c (get_array_ctor_element_at_index): Create
7008 offset_ints according to the sign of the index type and treat
7009 that as signed if it is obviously so.
7010
7011 2019-08-05 Jakub Jelinek <jakub@redhat.com>
7012
7013 PR target/91341
7014 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
7015 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
7016 _mm256_storeu2_m128i): New function.
7017
7018 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
7019
7020 * config/riscv/riscv.c (riscv_promote_function_mode): New.
7021 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
7022
7023 2019-08-05 Alan Modra <amodra@gmail.com>
7024
7025 PR target/91349
7026 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
7027 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7028
7029 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
7030
7031 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
7032 bug that was fixed in Tcl 8.6.1.
7033
7034 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
7035
7036 * config/rs6000/future.md: New file.
7037 * config/rs6000/rs6000.md: Include future.md.
7038 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
7039
7040 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7041
7042 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
7043 check to use targetm.slow_unaligned_access instead.
7044
7045 * function.c (assign_param_data_one): Remove unused data members.
7046
7047 2019-08-02 Steve Ellcey <sellcey@marvell.com>
7048
7049 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
7050 build_distinct_type_copy.
7051 (simd_clone_adjust_argument_types): Ditto.
7052 (simd_clone_adjust): Call build_distinct_type_copy here.
7053 (expand_simd_clones): Ditto.
7054
7055 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7056
7057 PR target/91201
7058 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
7059
7060 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
7061
7062 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
7063 from 'const void *'.
7064 (sort_locs_in_loop_postorder_cmp): Likewise.
7065
7066 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
7067
7068 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
7069 (hot-bb-count-ws-permille): Likewise.
7070 (hot-bb-frequency-fraction): Likewise.
7071 (unlikely-bb-count-fraction): Likewise.
7072 * params.def (hot-bb-count-fraction): Rework description.
7073 (hot-bb-count-ws-permille): Likewise.
7074 (hot-bb-frequency-fraction): Likewise.
7075 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
7076 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
7077
7078 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7079
7080 PR target/91323
7081 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
7082 Return false.
7083
7084 2019-08-02 Richard Biener <rguenther@suse.de>
7085
7086 * vec.h (vec::sort): Add gcc_qsort_r support.
7087 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
7088 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
7089 to gcc_qsort_r style callback.
7090 (sort_locs_in_loop_postorder_cmp): Likewise.
7091 (analyze_memory_references): Use gcc_sort_r interfaces.
7092 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
7093
7094 2019-08-02 Martin Liska <mliska@suse.cz>
7095
7096 PR lto/91313
7097 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
7098 to detect working job server.
7099 (driver::detect_jobserver): Test whether jobserver
7100 is active from GCC driver. That will prevent situation where
7101 GCC is invoked from a LD plugin and the linker already uses
7102 file descriptors suggested by make. That leads to a wrong
7103 detection.
7104 * gcc.h (driver): Add detect_jobserver.
7105 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
7106 not scanning for --jobserver-auth prefix.
7107
7108 2019-08-02 Jakub Jelinek <jakub@redhat.com>
7109
7110 PR tree-optimization/91201
7111 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
7112 V16QImode extraction without sse4.1 try to use V4SImode lowpart
7113 extraction.
7114
7115 2019-08-01 Martin Sebor <msebor@redhat.com>
7116
7117 PR c++/90947
7118 * tree.c (type_initializer_zero_p): Define.
7119 * tree.h (type_initializer_zero_p): New function.
7120
7121 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7122
7123 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
7124
7125 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7126
7127 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
7128 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
7129 * predict.c (maybe_hot_count_p): Likewise.
7130 (maybe_hot_bb_p): Tweak comment.
7131 (maybe_hot_edge_p): Likewise.
7132 (probably_never_executed): Likewise. Minor tweak.
7133 (probably_never_executed_bb_p): Likewise.
7134 (unlikely_executed_edge_p): Likewise.
7135 (probably_never_executed_edge_p): Likewise.
7136 (optimize_function_for_size_p): Likewise.
7137 (optimize_function_for_speed_p): Likewise.
7138 (function_optimization_type): Likewise.
7139 (optimize_bb_for_size_p): Likewise.
7140 (optimize_bb_for_speed_p): Likewise.
7141 (bb_optimization_type): Likewise.
7142 (optimize_edge_for_size_p): Likewise.
7143 (optimize_edge_for_speed_p): Likewise.
7144 (optimize_insn_for_size_p): Likewise.
7145 (optimize_insn_for_speed_p): Likewise.
7146 (optimize_loop_for_size_p): Likewise.
7147 (optimize_loop_for_speed_p): Likewise.
7148 (optimize_loop_nest_for_speed_p): Likewise.
7149 (optimize_loop_nest_for_size_p): Likewise.
7150 (predictable_edge_p): Likewise.
7151 (handle_missing_profiles): Minor tweak.
7152
7153 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
7154
7155 * config/rs6000/predicates.md (pcrel_external_address): Update
7156 comment.
7157
7158 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7159
7160 PR target/85693
7161 * config/i386/mmx.md (usadv8qi): New expander.
7162
7163 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
7164
7165 PR c++/90590
7166 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
7167 with reserved names that are in a system header.
7168
7169 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7170
7171 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
7172 (*vec_extractv2si_0_zext_sse4): New insn pattern.
7173 (*vec_extractv2si_0_zext): Ditto.
7174 (*vec_extractv2si_1): Add (rm,x) alternative.
7175 (*vec_extractv2si_1_zext): New insn pattern.
7176 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
7177 insn constraint.
7178
7179 2019-08-01 Richard Biener <rguenther@suse.de>
7180
7181 * domwalk.c (bb_postorder): Remove static variable.
7182 (cmp_bb_postorder): Adjust.
7183 (sort_bbs_postorder): Adjust and use gcc_sort_r.
7184 (dom_walker::walk): Adjust.
7185
7186 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
7187
7188 * sort.cc (sort_r_ctx): New struct.
7189 (reorder23): Make templated on context type.
7190 (reorder45): Ditto.
7191 (cmp1): Ditto. Adjust signature.
7192 (netsort): Ditto.
7193 (mergesort): Ditto.
7194 [CHECKING_P] (cmp2to3): New static function. Use it...
7195 (gcc_qsort) [CHECKING_P]: ...here.
7196 (gcc_sort_r): New function.
7197 * system.h (sort_r_cmp_fn): New function typedef.
7198 (qsort_chk): Adjust signature.
7199 (gcc_sort_r): Declare.
7200 * vec.c (qsort_chk_error): Adjust.
7201 (qsort_chk): Adjust.
7202
7203 2019-08-01 Richard Biener <rguenther@suse.de>
7204
7205 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7206 (compute_antic): Localize it here.
7207
7208 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
7209
7210 * common/config/riscv/riscv-common.c: Check -march string ends
7211 with null.
7212
7213 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
7214
7215 * ipa-devirt.c (type_warning_cmp): Make static.
7216 (decl_warning_cmp): Ditto.
7217
7218 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
7219
7220 PR target/91050
7221 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7222 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7223 use of deleted rs6000_dejagnu_cpu_index variable.
7224 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7225 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7226 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7227 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7228 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7229 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7230
7231 2019-07-31 Richard Biener <rguenther@suse.de>
7232
7233 PR tree-optimization/91280
7234 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7235 Decompose MEM_REF manually for offset handling.
7236
7237 2019-07-31 Richard Biener <rguenther@suse.de>
7238
7239 PR tree-optimization/91293
7240 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7241 of reduction stmts.
7242
7243 2019-07-31 Matt Thomas <matt@3am-software.com>
7244 Nick Hudson <nick@nthcliff.demon.co.uk>
7245 Matthew Green <mrg@eterna.com.au>
7246 Maya Rashish <coypu@sdf.org>
7247
7248 * config.gcc (hppa*-*-netbsd*): New target.
7249 * config/pa/pa-netbsd.h: New file.
7250 * config/pa/pa32-netbsd.h: New file.
7251
7252 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7253
7254 PR tree-optimization/91201
7255 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7256
7257 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
7258
7259 * config/gcn/gcn-valu.md
7260 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7261 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7262 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7263 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7264 struct ilist. Add nops for delayeduse insns.
7265 * config/gcn/gcn.md (delayeduse): New attribute.
7266 (*movbi): Remove s_waitcnt from stores.
7267 (*mov<mode>_insn): Likewise.
7268 (*movti_insn): Likewise. Add delayeduse attribute.
7269 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7270 (atomic_store<mode>): Remove or adjust s_waitcnt.
7271
7272 2019-07-31 Richard Biener <rguenther@suse.de>
7273
7274 * vr-values.h (vr_values::swap_vr_value): New.
7275 (vr_values::free_value_range): likewise.
7276 * vr-values.c (vr_values::swap_vr_value): Implement.
7277 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7278 Do not return a range or take a var.
7279 (evrp_range_analyzer::stack): Change back to recording a non-const
7280 value_range *.
7281 * gimple-ssa-evrp-analyze.c
7282 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7283 value-range.
7284 (evrp_range_analyzer::pop_to_marker): Adjust.
7285 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7286 (evrp_range_analyzer::pop_value_range): Likewise. Free the
7287 no longer needed value-range.
7288
7289 2019-07-31 Martin Liska <mliska@suse.cz>
7290
7291 * tree-ssa-dce.c (propagate_necessity): Delete operator can
7292 have size and (or) alignment as 2nd and later arguments.
7293 Mark all of them as necessary.
7294
7295 2019-07-31 Richard Biener <rguenther@suse.de>
7296
7297 PR tree-optimization/91178
7298 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7299 Use tail-recursion.
7300
7301 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7302
7303 PR tree-optimization/91201
7304 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7305 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7306 TARGET_AVX512F.
7307 (reduc_plus_scal_<mode>): Improve formatting by introducing
7308 a temporary.
7309
7310 2019-07-31 Sudakshina Das <sudi.das@arm.com>
7311
7312 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7313 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7314 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7315 (aarch64_init_tme_builtins): New.
7316 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7317 (aarch64_expand_builtin_tme): New.
7318 (aarch64_expand_builtin): Handle TME builtins.
7319 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7320 __ARM_FEATURE_TME when enabled.
7321 * config/aarch64/aarch64-option-extensions.def: Add "tme".
7322 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7323 (TARGET_TME): New.
7324 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7325 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7326 UNSPECV_TCANCEL.
7327 (tstart, ttest, tcommit, tcancel): New instructions.
7328 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7329 (__tcancel, __ttest): New.
7330 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7331 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7332 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7333 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7334 * config/arm/types.md: Add new tme type attr.
7335 * doc/invoke.texi: Document "tme".
7336
7337 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
7338
7339 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7340 warn_unused_result attribute.
7341 (cmse_check_address_range): Add warn_unused_result attribute.
7342
7343 2019-07-31 Richard Biener <rguenther@suse.de>
7344
7345 PR tree-optimization/91257
7346 * tree-vrp.c (union_ranges): Unify equality and less tests
7347 by using compare_values. Re-order cheap tests first.
7348
7349 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7350
7351 PR middle-end/91301
7352 * gimplify.c (gimplify_omp_for): If for class iterator on
7353 distribute parallel for there is no data sharing clause
7354 on inner_for_stmt, look for private clause on combined
7355 parallel too and if found, move it to inner_for_stmt.
7356
7357 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
7358
7359 * lra-int.h (lra_operand_data): Remove early_clobber field.
7360 (lra_insn_reg): Likewise.
7361 * lra.c (debug_operand_data): Update accordingly.
7362 (setup_operand_alternative): Likewise.
7363 (new_insn_reg): Likewise. Remove early_clobber parameter.
7364 (collect_non_operand_hard_regs): Update call accordingly.
7365 Don't assign to lra_insn_reg::early_clobber.
7366 (add_regs_to_insn_regno_info): Remove early_clobber parameter
7367 and update calls to new_insn_reg.
7368 (lra_update_insn_regno_info): Update calls accordingly.
7369 * lra-constraints.c (update_and_check_small_class_inputs): Take the
7370 alternative number as a parameter and test whether the operand
7371 is earlyclobbered in that particular alternative.
7372 (process_alt_operands): Update call accordingly. Use per-alternative
7373 checks for earyclobber here too.
7374 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7375 against zero for IRA_UNKNOWN_ALT.
7376
7377 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7378
7379 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7380
7381 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
7382
7383 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7384 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7385
7386 2019-07-30 Martin Liska <mliska@suse.cz>
7387
7388 PR ipa/89330
7389 * cgraph.c (cgraph_edge::make_direct): Use
7390 edge->indirect_unknown_callee as edge->resolve_speculation can
7391 deallocate edge which is this pointer.
7392
7393 2019-07-30 Richard Biener <rguenther@suse.de>
7394
7395 PR tree-optimization/91257
7396 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
7397
7398 2019-07-30 Martin Liska <mliska@suse.cz>
7399
7400 * doc/invoke.texi: Document new behavior.
7401 * lto-wrapper.c (cpuset_popcount): New function
7402 is a copy of libgomp/config/linux/proc.c.
7403 (init_num_threads): Likewise.
7404 (run_gcc): Automatically detect core count for -flto.
7405 (jobserver_active_p): New function.
7406
7407 2019-07-30 Richard Biener <rguenther@suse.de>
7408
7409 PR tree-optimization/91257
7410 * bitmap.h (bitmap_ior_into_and_free): Declare.
7411 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
7412 whether to add the unliked element to the freelist.
7413 (bitmap_list_insert_element_after): Add defaulted param for
7414 an already allocated element.
7415 (bitmap_ior_into_and_free): New function.
7416 * tree-ssa-structalias.c (condense_visit): Reduce the
7417 ponts-to and edge bitmaps of the SCC members in a
7418 logarithmic fashion rather than all to one.
7419
7420 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
7421
7422 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
7423 parameter. When nonnull, make sure that the addition or subtraction
7424 has the same condition.
7425 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
7426 for CFN_COND_MUL too.
7427
7428 2019-07-30 Richard Biener <rguenther@suse.de>
7429
7430 PR tree-optimization/91291
7431 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
7432 constant values.
7433
7434 2019-07-30 Jakub Jelinek <jakub@redhat.com>
7435
7436 PR middle-end/91216
7437 * omp-low.c (global_nonaddressable_vars): New variable.
7438 (use_pointer_for_field): For global decls, if they are non-addressable,
7439 remember it in the global_nonaddressable_vars bitmap, if they are
7440 addressable and in the global_nonaddressable_vars bitmap, ignore their
7441 TREE_ADDRESSABLE bit.
7442 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
7443 vars in global_nonaddressable_vars bitmap.
7444 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
7445
7446 PR target/91150
7447 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
7448 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
7449 comparison to unsigned HOST_WIDE_INT before shifting it left.
7450
7451 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7452
7453 * config/i386/i386.md (movstrict<mode>): Use register_operand
7454 predicate for operand 0. Add expander condition. Assert that
7455 operand 0 is a SUBREG RTX.
7456 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
7457 Update operand constraints and insn condition.
7458 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
7459 (zero_extendqihi2_and): Do not call gen_movstrictqi.
7460 (*setcc_qi_slp): Use register_operand predicate for operand 0.
7461 Update operand 0 constraints.
7462 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
7463
7464 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7465
7466 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
7467 when -m{code,data}-region are used without -mlarge.
7468 * config/msp430/msp430.c (msp430_option_override): Error when a
7469 non-default code or data region is used without -mlarge.
7470 (msp430_section_attr): Emit a warning and do not add upper/lower/either
7471 attributes when they are used without -mlarge.
7472
7473 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7474
7475 PR target/70320
7476 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
7477
7478 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7479
7480 PR middle-end/91242
7481 * wide-int.h (generic_wide_int::sext_elt): New function.
7482 * inchash.h (hash::add_wide_int): Use it instead of elt.
7483
7484 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7485
7486 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
7487 CODE_FOR_arm_##.
7488 * config/arm/arm.md (<crc_variant>): Rename to...
7489 (arm_<crc_variant>): ... This.
7490 (<cdp>): Rename to...
7491 (arm_<cdp>): ... This.
7492 (<ldc>): Rename to...
7493 (arm_<ldc>): ... This.
7494 (<stc>): Rename to...
7495 (arm_<stc>): ... This.
7496 (<mcr>): Rename to...
7497 (arm_<mcr>): ... This.
7498 (<mrc>): Rename to...
7499 (arm_<mrc>): ... This.
7500 (<mcrr>): Rename to...
7501 (arm_<mcrr>): ... This.
7502 (<mrrc>): Rename to...
7503 (arm_<mrrc>): ... This.
7504
7505 2019-07-29 Richard Biener <rguenther@suse.de>
7506
7507 PR tree-optimization/91257
7508 * tree-ssa-sccvn.h (struct vn_avail): New.
7509 (struct vn_ssa_aux): Add avail member.
7510 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
7511 member, add m_avail_freelist one.
7512 (rpo_elim::~rpo_elim): Remove.
7513 (rpo_elim::eliminate_avail): Adjust to new avail tracking
7514 data structure.
7515 (rpo_elim::eliminate_push_avail): Likewise.
7516 (do_unwind): Likewise.
7517 (do_rpo_vn): Likewise.
7518
7519 2019-07-29 Richard Biener <rguenther@suse.de>
7520
7521 PR tree-optimization/91257
7522 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
7523 most cases, instead call compare_values which handles the
7524 symbolic ranges we handle specially.
7525 (compare_values_warnv): Do not call operand_less_p but open-code
7526 the effective fold calls. Avoid converting so much.
7527
7528 2019-07-29 Martin Liska <mliska@suse.cz>
7529
7530 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
7531 remove LHS of operator new call. It's handled latter.
7532
7533 2019-07-29 Richard Biener <rguenther@suse.de>
7534
7535 PR tree-optimization/91267
7536 * vr-values.c (vr_values::update_value_range): Add early return
7537 for effectively VARYING lattice entry.
7538
7539 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7540
7541 PR debug/86638
7542 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
7543 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
7544 necessary if keep_all_vdefs_p is true.
7545 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
7546 that keep_all_vdefs_p is false.
7547 (mark_all_reaching_defs_necessary): Likewise.
7548 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
7549
7550 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7551
7552 * common.opt (Og): Change the initial value of flag_dse to 0.
7553 * opts.c (default_options_table): Move OPT_ftree_dse from
7554 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
7555 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
7556 entry before the OPT_ftree_sra entry.
7557 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
7558 of flags disabled by Og.
7559
7560 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7561
7562 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
7563 variables for -Og.
7564
7565 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7566
7567 * doc/sourcebuild.texi (check-function-bodies): Document.
7568
7569 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7570
7571 * simplify-rtx.c (simplify_const_unary_operation): Fold a
7572 VEC_DUPLICATE of a fixed-length vector even if the result
7573 is variable-length. Likewise fold a duplicate of a
7574 variable-length vector if the variable-length vector is
7575 itself a duplicate of a fixed-length sequence.
7576 (test_vector_ops_duplicate): Test more cases.
7577
7578 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7579
7580 * vector-builder.h (vector_builder): Add a shape template parameter.
7581 (vector_builder::new_unary_operation): New function, generalizing
7582 the old tree_vector_builder function.
7583 (vector_builder::new_binary_operation): Likewise.
7584 (vector_builder::binary_encoded_nelts): Likewise.
7585 * int-vector-builder.h (int_vector_builder): Update template
7586 parameters to vector_builder.
7587 (int_vector_builder::shape_nelts): New function.
7588 * rtx-vector-builder.h (rtx_vector_builder): Update template
7589 parameters to vector_builder.
7590 (rtx_vector_builder::shape_nelts): New function.
7591 (rtx_vector_builder::nelts_of): Likewise.
7592 (rtx_vector_builder::npatterns_of): Likewise.
7593 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
7594 * tree-vector-builder.h (tree_vector_builder): Update template
7595 parameters to vector_builder.
7596 (tree_vector_builder::shape_nelts): New function.
7597 (tree_vector_builder::nelts_of): Likewise.
7598 (tree_vector_builder::npatterns_of): Likewise.
7599 (tree_vector_builder::nelts_per_pattern_of): Likewise.
7600 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
7601 (tree_vector_builder::new_binary_operation): Delete.
7602 (tree_vector_builder::binary_encoded_nelts): Likewise.
7603 * simplify-rtx.c: Include rtx-vector-builder.h.
7604 (distributes_over_addition_p): New function.
7605 (simplify_const_unary_operation)
7606 (simplify_const_binary_operation): Generalize handling of vector
7607 constants to include variable-length vectors.
7608 (test_vector_ops_series): Add more tests.
7609
7610 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
7611
7612 PR lto/91222
7613 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
7614 than INDENTIFIER_POINTER.
7615
7616 2019-07-28 Martin Liska <mliska@suse.cz>
7617
7618 PR ipa/89330
7619 * cgraph.c (symbol_table::create_edge): Always allocate
7620 a cgraph_edge.
7621 (symbol_table::free_edge): Store summary_id to
7622 edge_released_summary_ids if != -1;
7623 * cgraph.h (NEXT_FREE_NODE): Remove.
7624 (SET_NEXT_FREE_NODE): Likewise.
7625 (NEXT_FREE_EDGE): Likewise.
7626 (symbol_table::release_symbol): Store summary_id to
7627 cgraph_released_summary_ids if != -1;
7628 (symbol_table::allocate_cgraph_symbol): Always allocate
7629 a cgraph_node.
7630
7631 2019-07-28 Alan Modra <amodra@gmail.com>
7632
7633 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7634 gen_sibcall.
7635
7636 2019-07-28 Alan Modra <amodra@gmail.com>
7637
7638 PR target/91135
7639 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
7640 define.
7641 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7642 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
7643 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
7644
7645 2019-07-28 Alan Modra <amodra@gmail.com>
7646
7647 PR target/91050
7648 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
7649 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
7650 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
7651 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
7652 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
7653 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
7654 in asm_default spec.
7655 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
7656 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
7657
7658 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
7659
7660 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
7661
7662 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7663
7664 PR target/89517
7665 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
7666 * config/aarch64/aarch64-option-extensions.def: Add new comments
7667 and restore easier to read options.
7668
7669 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7670
7671 * convert.c (convert_to_real_1): Move part of conversion code...
7672 * match.pd: ...To here.
7673
7674 2019-07-26 Martin Jambor <mjambor@suse.cz>
7675
7676 PR ipa/89330
7677 * ipa-inline-transform.c (check_speculations_1): New function.
7678 (push_all_edges_in_set_to_vec): Likewise.
7679 (check_speculations): Use check_speculations_1, new parameter
7680 new_edges.
7681 (inline_call): Pass new_edges to check_speculations.
7682 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
7683 NULL.
7684 (speculation_useful_p): Early return true if edge is inlined, remove
7685 later checks for inline_failed.
7686
7687 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
7688
7689 PR rtl-optimization/91223
7690 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
7691 matching with INOUT operand.
7692
7693 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7694
7695 * stmt.c (expand_case): Try to narrow the index type if it's larger
7696 than a word. Tidy up.
7697
7698 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7699
7700 * cif-code.def (NEVER_CALL): New code.
7701 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
7702 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
7703
7704 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
7705
7706 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
7707 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7708
7709 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7710
7711 * ipa-devirt.c (add_type_duplicate): Fix return value.
7712
7713 2019-07-25 Richard Biener <rguenther@suse.de>
7714
7715 * tree-vrp.c (extract_range_from_multiplicative_op): Add
7716 type parameter and use it instead of guessing expression
7717 type from the first operand.
7718 (extract_range_from_binary_expr): Pass expr_type down.
7719
7720 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7721
7722 * config/arm/arm.md (SATrev): Change to code attribute.
7723 (*satsi_<SAT:code>): Adjust for the above.
7724 (*satsi_<SAT:code>_shift): Likewise.
7725
7726 2019-07-25 Richard Biener <rguenther@suse.de>
7727
7728 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
7729 Make value_range * temporary const.
7730 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
7731 Likewise.
7732 (evrp_range_analyzer::record_ranges_from_): Likewise.
7733 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
7734 deal with having recorded a const one.
7735 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
7736 Return a const value_range *.
7737 (evrp_range_analyzer::pop_value_range): Likewise.
7738 (evrp_range_analyzer::stack): Record const value_range *s.
7739 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7740 Adjust.
7741 * gimple-ssa-sprintf.c (get_int_range): Likewise.
7742 (format_integer): Likewise.
7743 (sprintf_dom_walker::handle_gimple_call): Likewise.
7744 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
7745 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
7746 (vrp_prop::get_value_range): Adjust.
7747 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
7748 modifying the lattice in-place.
7749 (vrp_prop::visit_stmt): Likewise.
7750 * vr-values.c (vr_values::get_lattice_entry): New private method.
7751 (vr_values::get_value_range): Wrap it and return a const
7752 value_range *.
7753 (vr_values::set_def_to_varying): New.
7754 (vr_values::set_defs_to_varying): Use it.
7755 (vr_values::update_value_range): Likewise.
7756 (vr_values::vrp_stmt_computes_nonzero): Adjust.
7757 (values::op_with_constant_singleton_va): Likewise.
7758 (vr_values::extract_range_for_var_from_co): Likewise.
7759 (vr_values::extract_range_from_ssa_name): Likewise.
7760 (vr_values::extract_range_from_cond_expr): Likewise.
7761 (vr_values::extract_range_basic): Likewise.
7762 (compare_ranges): Take const value_range *, adjust.
7763 (compare_range_with_value): Likewise.
7764 (vrp_valueize): Adjust.
7765 (vrp_valueize_1): Likewise.
7766 (vr_values::get_vr_for_comparison): Return a const value_range *.
7767 (vr_values::compare_name_with_value): Adjust.
7768 (vr_values::compare_names): Likewise.
7769 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7770 Likewise.
7771 (vr_values::vrp_evaluate_conditional): Likewise.
7772 (find_case_label_ranges): Take a const value_range *.
7773 (vr_values::vrp_visit_switch_stmt): Adjust.
7774 (vr_values::extract_range_from_phi_node): Likewise.
7775 (vr_values::simplify_div_or_mod_using_ran): Likewise.
7776 (vr_values::simplify_abs_using_ranges): Likewise.
7777 (test_for_singularity): Take a const value_range *.
7778 (range_fits_type_p): Likewise.
7779 (vr_values::simplify_cond_using_ranges_1): Adjust.
7780 (vr_values::simplify_cond_using_ranges_2): Likewise.
7781 (vr_values::simplify_switch_using_ranges): Likewise.
7782 (vr_values::simplify_float_conversion_usi): Likewise.
7783 (vr_values::two_valued_val_range_p): Likewise.
7784 * vr-values.h (vr_values::get_value_range): Return a const
7785 value_range *.
7786 (vr_values::set_def_to_varying): New.
7787 (vr_values::get_lattice_entry): New private method.
7788 (vr_values::get_vr_for_comparison): Return a const value_range *.
7789
7790 2019-07-25 Martin Liska <mliska@suse.cz>
7791 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
7792
7793 PR c++/23383
7794 * common.opt: Add -fallocation-dce
7795 * gimple.c (gimple_call_operator_delete_p): New.
7796 * gimple.h (gimple_call_operator_delete_p): Likewise.
7797 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
7798 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
7799 DECL_IS_OPERATOR_DELETE_P.
7800 (mark_all_reaching_defs_necessary_1): Likewise.
7801 (propagate_necessity): Likewise.
7802 (eliminate_unnecessary_stmts): Handle
7803 gimple_call_operator_delete_p.
7804 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7805 Add packing of OPERATOR_DELETE.
7806 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7807 Similarly here.
7808 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
7809 (DECL_SET_IS_OPERATOR_DELETE): New.
7810 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
7811
7812 2019-07-25 Martin Liska <mliska@suse.cz>
7813
7814 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
7815 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
7816 * coverage.c (coverage_begin_function): Likewise.
7817 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
7818 * gimple.c (gimple_call_nonnull_result_p): Likewise.
7819 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
7820 (sem_item::hash_referenced_symbol_properties): Likewise.
7821 * lto-streamer-out.c (hash_tree): Likewise.
7822 * predict.c (expr_expected_value_1): Likewise.
7823 * tree-inline.c (expand_call_inline): Likewise.
7824 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7825 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7826 * tree-core.h (enum function_decl_type): New enum.
7827 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
7828 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
7829 (set_function_decl_type): Likewise.
7830 (DECL_IS_OPERATOR_NEW_P): New.
7831 (DECL_SET_IS_OPERATOR_NEW): Likewise.
7832 (DECL_LAMBDA_FUNCTION): Likewise.
7833 (DECL_LAMBDA_FUNCTION_P): Likewise.
7834 (DECL_IS_OPERATOR_NEW): Remove.
7835 (DECL_SET_LAMBDA_FUNCTION): Likewise.
7836
7837 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
7838
7839 * ipa-profile.c (get_most_common_single_value): Use
7840 get_nth_most_common_value.
7841 * profile.c (sort_hist_value): New function.
7842 (compute_value_histograms): Call sort_hist_value to sort the
7843 values after loading from disk.
7844 * value-prof.c (get_most_common_single_value): Rename to ...
7845 get_nth_most_common_value. Add input params n, return
7846 the n_th value and count.
7847 (gimple_divmod_fixed_value_transform): Use
7848 get_nth_most_common_value.
7849 (gimple_ic_transform): Likewise.
7850 (gimple_stringops_transform): Likewise.
7851 * value-prof.h (get_most_common_single_value): Add input params
7852 n, default to 0.
7853
7854 2019-07-25 Richard Biener <rguenther@suse.de>
7855
7856 PR tree-optimization/91236
7857 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
7858 size of CONSTRUCTOR write. Fix buffer size we pass to
7859 native_encode_expr.
7860
7861 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7862
7863 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
7864 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
7865 r273773.
7866
7867 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7868
7869 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
7870 explicitly disabled with --disable-initfini-array.
7871
7872 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7873
7874 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
7875 if-exists.
7876
7877 2019-07-24 Martin Sebor <msebor@redhat.com>
7878
7879 PR tree-optimization/91183
7880 PR tree-optimization/86688
7881 * builtins.c (compute_objsize): Handle MEM_REF.
7882 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
7883 (get_min_string_length): Remove.
7884 (count_nonzero_bytes): New function.
7885 (handle_char_store): Rename...
7886 (handle_store): to this. Handle multibyte stores via integer types.
7887 (strlen_check_and_optimize_stmt): Adjust conditional and the called
7888 function name.
7889
7890 2019-07-24 Martin Sebor <msebor@redhat.com>
7891
7892 PR driver/80545
7893 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
7894 (diagnostic_report_diagnostic): Same.
7895 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
7896 (diagnostic_context::lang_mask): New data member.
7897 * ipa-pure-const.c (suggest_attribute): Use
7898 lang_hooks.option_lang_mask ().
7899 * opts-common.c (option_enabled): Handle new argument.
7900 (get_option_state): Pass an additional argument.
7901 * opts.c (print_filtered_help): Print supported languages for
7902 unsupported options. Adjust printing of current state.
7903 * opts.h (option_enabled): Add argument.
7904 * toplev.c (print_switch_values): Use lang_mask.
7905 (general_init): Set global_dc->lang_mask.
7906
7907 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
7908
7909 PR bootstrap/87030
7910 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
7911
7912 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
7913
7914 * cgraphunit.c (symbol_table::compile): Start and stop
7915 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
7916 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
7917
7918 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
7919
7920 * gimplify.c (flag_instrument_functions_exclude_p): Include
7921 namespace/class information in the printable name.
7922 * opts.c (add_comma_separated_to_vector): Add NUL terminator
7923 to tokens entered into the vector.
7924
7925 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
7926
7927 * tree-nested.c (build_simple_mem_ref_notrap): New function.
7928 (get_static_chain): Call it instead of build_simple_mem_ref.
7929 (get_frame_field): Likewise.
7930 (get_nonlocal_debug_decl): Likewise.
7931 (convert_nonlocal_reference_op): Likewise.
7932
7933 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
7934
7935 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
7936 declaration.
7937 (arc_compute_frame_size): Millicode is disabled when compiling
7938 ISR.
7939 (arc_return_address_register): Likewise.
7940 (arc_compute_function_type): Likewise.
7941 (arc_compute_frame_size): Likewise.
7942 (secondary_reload_info): Likewise.
7943 (arc_get_unalign): Likewise.
7944 (arc_can_use_return_insn): Declare.
7945 * config/arc/arc.c (AUX_LP_START): Define
7946 (AUX_LP_END): Likewise.
7947 (arc_frame_info): Update gmask member to 64-bit datum.
7948 (GMASK_LEN): Update.
7949 (arc_compute_function_type): Make it static, move it forward.
7950 (arc_must_save_register): Update, consider the extra regs.
7951 (arc_compute_millicode_save_restore_regs): Update to use the 64
7952 bit gmask.
7953 (arc_compute_frame_size): Likewise.
7954 (arc_enter_leave_p): Likewise.
7955 (arc_save_callee_saves): Likewise.
7956 (arc_restore_callee_saves): Likewise.
7957 (arc_save_callee_enter): Likewise.
7958 (arc_restore_callee_leave): Likewise.
7959 (arc_save_callee_milli): Likewise.
7960 (arc_restore_callee_milli): Likewise.
7961 (arc_expand_prologue): Add new interrupt handling.
7962 (arc_return_address_register): Make it static, move it forward.
7963 (arc_expand_epilogue): Add new interrupt handling.
7964 (arc_get_unalign): Delete.
7965 (arc_epilogue_uses): Make sure we do not remove the extra
7966 saved/restored registers when interrupt.
7967 (arc_can_use_return_insn): New function.
7968 (push_reg): Likewise.
7969 (pop_reg): Likewise.
7970 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
7971 procedures.
7972 (arc_restore_callee_saves): Likewise, but restoring.
7973 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
7974 (R33_REG): Likewise.
7975 (R34_REG): Likewise.
7976 (R35_REG): Likewise.
7977 (R36_REG): Likewise.
7978 (R37_REG): Likewise.
7979 (R38_REG): Likewise.
7980 (R39_REG): Likewise.
7981 (R45_REG): Likewise.
7982 (R46_REG): Likewise.
7983 (R47_REG): Likewise.
7984 (R48_REG): Likewise.
7985 (R49_REG): Likewise.
7986 (R50_REG): Likewise.
7987 (R51_REG): Likewise.
7988 (R52_REG): Likewise.
7989 (R53_REG): Likewise.
7990 (R54_REG): Likewise.
7991 (R55_REG): Likewise.
7992 (R56_REG): Likewise.
7993 (R58_REG): Likewise.
7994 (type): Add rtie attribute.
7995 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
7996 (movsi_insn): Accept moves to lp_count.
7997 (rtie): Update pattern.
7998 (simple_return): Simplify it, don't use this pattern as a return
7999 from an interrupt.
8000 (arc600_rtie): New pattern.
8001 (p_return_i): Clean up.
8002 (return): Likewise.
8003 * config/arc/builtins.def (rtie): Only available for non ARC6xx
8004 family CPUs.
8005 * config/arc/predicates.md (move_src_operand): Consider lp_count
8006 as a register.
8007
8008 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
8009
8010 * config/s390/predicates.md (addv_const_operand): New predicate.
8011 * config/s390/s390-modes.def (CCO): New condition code mode.
8012 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
8013 (s390_branch_condition_mask): Likewise.
8014 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
8015 ("mulv<mode>4"): New expanders.
8016 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
8017 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
8018 pattern definitions.
8019
8020 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8021
8022 PR middle-end/91166
8023 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
8024 (define_predicates): Add entry for uniform_vector_p.
8025 (vec_same_elem_p): New match pattern.
8026
8027 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
8028
8029 PR bootstrap/87030
8030 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
8031 * config/i386/darwin32-biarch.h .. to here.
8032 * config/i386/darwin64-biarch.h: Adjust comments.
8033 * config/rs6000/darwin32-biarch.h: Likewise.
8034 * config/rs6000/darwin64-biarch.h: Likewise.
8035 * config.gcc: Missed commit from r273746
8036 (*-*-darwin*): Don't include CPU t-darwin here.
8037 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8038 an error message if i686-darwin configuration is attempted for
8039 Darwin >= 18.
8040
8041 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
8042
8043 PR bootstrap/87030
8044 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
8045 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8046 an error message if i686-darwin configuration is attempted for
8047 Darwin >= 18.
8048 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
8049 (powerpc-*-darwin*): Use biarch files where needed.
8050 (powerpc64-*-darwin*): Likewise.
8051 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
8052 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8053 arch case.
8054 * config/i386/darwin32-biarch.h: New.
8055 * config/i386/darwin64.h: Rename.
8056 * config/i386/darwin64-biarch.h: To this.
8057 * config/i386/t-darwin: Rename.
8058 * config/i386/t-darwin32-biarch: To this.
8059 * config/i386/t-darwin64: Rename.
8060 * config/i386/t-darwin64-biarch: To this.
8061 * config/rs6000/darwin32-biarch.h: New.
8062 * config/rs6000/darwin64.h: Rename.
8063 * config/rs6000/darwin64-biarch.h: To this.
8064 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8065 arch case.
8066 * config/rs6000/t-darwin8: Rename.
8067 * config/rs6000/t-darwin32-biarch: To this.
8068 * config/rs6000/t-darwin64 Rename.
8069 * config/rs6000/t-darwin64-biarch: To this.
8070
8071 2019-07-23 Martin Sebor <msebor@redhat.com>
8072
8073 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
8074
8075 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8076
8077 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
8078 (rh): New alias for it.
8079
8080 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8081
8082 * gdbhooks.py: Pass replace=True to
8083 gdb.printing.register_pretty_printer.
8084
8085 2019-07-23 Richard Biener <rguenther@suse.de>
8086
8087 PR debug/91231
8088 * lto-streamer-in.c (input_function): Drop inline-entry markers
8089 that ended up with an unknown location block.
8090
8091 2019-07-23 Richard Biener <rguenther@suse.de>
8092
8093 PR tree-optimization/83518
8094 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
8095 init from a constant even when partial defs are already recorded.
8096
8097 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8098
8099 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
8100 * config/i386/znver1.md: Enable patterns for znver2 and add store
8101 variants which use extra AGU unit.
8102
8103 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8104
8105 * config/i386/i386-options.c (ix86_option_override_internal): Default
8106 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
8107 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
8108 for ZNVER2.
8109
8110 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8111
8112 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
8113 (znver2_costs): Update 256 bit SSE costs and multiplication.
8114
8115 2019-07-23 Jan Beulich <jbeulich@suse.com>
8116
8117 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
8118 Require only AVX512F.
8119 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
8120 alternative expanding to vpternlog.
8121
8122 2019-07-23 Martin Liska <mliska@suse.cz>
8123
8124 * dwarf2out.c (gen_producer_string): Canonize -flto=N
8125 to -flto in dwarf producer string.
8126
8127 2019-07-23 Richard Biener <rguenther@suse.de>
8128
8129 * tree-cfg.c (label_for_bb): Remove global var.
8130 (main_block_label): Take label_for_bb as argument.
8131 (cleanup_dead_labels_eh): Likewise, adjust.
8132 (cleanup_dead_labels): Adjust.
8133
8134 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8135
8136 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
8137 Configurations): Add documentation for __builtin_mtfsf.
8138
8139 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
8140
8141 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
8142 * config/riscv/riscv.c (riscv_constant_alignment): Use
8143 riscv_align_data_type.
8144 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
8145 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8146 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8147 * config/riscv/riscv.opt (malign-data): New.
8148 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
8149
8150 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
8151
8152 * cgraph.c (dump_graphviz): New function.
8153 * cgraph.h (dump_graphviz): New function.
8154 * symtab.c (dump_graphviz): New function.
8155
8156 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
8157
8158 * config/aarch64/aarch64-simd.md
8159 (*aarch64_simd_sra<mode>): New.
8160 * config/aarch64/iterators.md
8161 (SHIFTRT): New iterator.
8162 (sra_op): New attribute.
8163
8164 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8165
8166 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
8167 callee-saved regs R4->R10 in an interrupt function that calls another
8168 function.
8169
8170 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8171
8172 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
8173 (_mm_blendv_epi8): New.
8174
8175 2019-07-22 Richard Biener <rguenther@suse.de>
8176
8177 PR tree-optimization/91221
8178 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
8179 restrict partial-def handling of empty constructors and
8180 memset to refs with known offset.
8181
8182 2019-07-22 Jan Beulich <jbeulich@suse.com>
8183
8184 * config/i386/sse.md (ternlogsuffix): New.
8185 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8186 AVX512F is in use.
8187 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8188
8189 2019-07-22 Martin Liska <mliska@suse.cz>
8190
8191 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8192 comment.
8193 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8194
8195 2019-07-22 Martin Liska <mliska@suse.cz>
8196
8197 * lto-section-in.c (lto_get_section_data):
8198 Use new function get_compression.
8199 * lto-streamer-out.c (produce_lto_section): Use
8200 set_compression to encode compression algorithm.
8201 * lto-streamer.h (struct lto_section): Do not
8202 use bitfields in the format.
8203
8204 2019-07-22 Martin Liska <mliska@suse.cz>
8205
8206 PR driver/91172
8207 * opts-common.c (decode_cmdline_option): Decode
8208 argument of -Werror and check it for a wrong language.
8209 * opts-global.c (complain_wrong_lang): Remove such case.
8210
8211 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
8212
8213 * config/arc/arc.c (prepare_move_operands): Always use an
8214 intermediate register when storing a TLS symbols.
8215
8216 2019-07-22 Stafford Horne <shorne@gmail.com>
8217
8218 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8219 force_reg.
8220
8221 2019-07-22 Stafford Horne <shorne@gmail.com>
8222
8223 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8224 and munordered-float validations.
8225 * config/or1k/constraints.md (d): New register constraint.
8226 * config/or1k/predicates.md (fp_comparison_operator): New.
8227 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8228 operands.
8229 (or1k_expand_compare): Normalize unordered comparisons.
8230 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8231 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8232 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8233 * config/or1k/or1k.md (type): Add fpu.
8234 (fpu): New instruction reservation.
8235 (F, f, fr, fi, FI, FOP, fop): New.
8236 (<fop><F:mode>3): New ALU instruction definition.
8237 (float<fi><F:mode>2): New conversion instruction definition.
8238 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8239 (fpcmpcc): New code iterator.
8240 (*sf_fp_insn): New instruction definition.
8241 (cstore<F:mode>4): New expand definition.
8242 (cbranch<F:mode>4): New expand definition.
8243 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8244 munordered-float): New options.
8245 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8246 munordered-float.
8247
8248 2019-07-22 Stafford Horne <shorne@gmail.com>
8249
8250 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8251 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8252 documenation to be more clear.
8253 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8254 more clear.
8255 * config/or1k/or1k.opt (mrori): New option.
8256 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8257 msfimm, mshftimm): Rewrite documentation to be more clear.
8258 * config/or1k/or1k.md (insn_support): Add ror and rori.
8259 (enabled): Add conditions for ror and rori.
8260 (rotrsi3): Replace condition for shftimm with ror and rori.
8261
8262 2019-07-22 Stafford Horne <shorne@gmail.com>
8263
8264 PR target/90363
8265 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8266 (extend<mode>si2): Update predicate.
8267 * config/or1k/predicates.md (volatile_mem_operand): New.
8268 (reg_or_mem_operand): New.
8269
8270 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
8271
8272 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8273 * config/rs6000/rs6000-call.c: ... to here.
8274
8275 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8276
8277 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8278 memory.
8279
8280 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8281
8282 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8283
8284 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8285
8286 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8287
8288 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8289
8290 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8291 (any_memory_operand): New predicate.
8292 (reg_or_mem_operand): Use it.
8293
8294 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8295
8296 PR target/91204
8297 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8298
8299 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
8300
8301 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8302 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8303
8304 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8305
8306 * tree.def (OMP_LOOP): New tree code.
8307 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8308 (enum omp_clause_bind_kind): New enum.
8309 (struct tree_omp_clause): Add subcode.bind_kind.
8310 * tree.h (OMP_LOOP_CHECK): Rename to ...
8311 (OMP_LOOPING_CHECK): ... this.
8312 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8313 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8314 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8315 (OMP_CLAUSE_BIND_KIND): Define.
8316 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8317 bind clause entries.
8318 (walk_tree_1): Handle OMP_CLAUSE_BIND.
8319 * tree-pretty-print.c (dump_omp_clause): Likewise.
8320 (dump_generic_node): Handle OMP_LOOP.
8321 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8322 (in_omp_construct): New variable.
8323 (is_gimple_stmt): Handle OMP_LOOP.
8324 (gimplify_scan_omp_clauses): For lastprivate don't set
8325 check_non_private if code == OMP_LOOP. For reduction clause
8326 on OMP_LOOP combined with parallel or teams propagate as shared
8327 on the combined construct. Handle OMP_CLAUSE_BIND.
8328 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8329 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8330 for constructs from a loop construct to gimplify_scan_omp_clauses.
8331 Don't predetermine iterator linear on OMP_SIMD from loop construct.
8332 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8333 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8334 to match the implicit ORT_TARGET construct around whole body.
8335 Temporarily clear in_omp_construct when processing body.
8336 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
8337 etc. temporarily set in_omp_construct when processing body.
8338 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8339 * omp-low.c (struct omp_context): Add loop_p.
8340 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8341 in that the original var might be private.
8342 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8343 (check_omp_nesting_restrictions): Adjust nesting restrictions for
8344 addition of loop construct.
8345 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8346
8347 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8348 lastprivate non-addressable iterator of a collapse(1) simd.
8349
8350 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
8351
8352 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8353 as in rs6000.c.
8354
8355 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
8356
8357 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8358 refer to default conditions. Warn for the 'y' spec which is ignored
8359 by current linkers.
8360
8361 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
8362
8363 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8364 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8365 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8366 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8367 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8368 init_cumulative_args, rs6000_promote_function_mode,
8369 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8370 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8371 rs6000_function_arg_boundary, rs6000_parm_offset,
8372 rs6000_parm_start, rs6000_arg_size,
8373 rs6000_darwin64_record_arg_advance_flush,
8374 rs6000_darwin64_record_arg_advance_recurse,
8375 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8376 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8377 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8378 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8379 rs6000_finish_function_arg, rs6000_function_arg,
8380 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8381 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8382 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8383 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8384 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8385 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8386 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8387 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8388 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8389 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8390 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8391 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8392 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8393 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8394 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8395 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8396 get_element_number, altivec_expand_vec_set_builtin,
8397 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8398 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8399 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8400 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8401 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8402 rs6000_expand_builtin, rs6000_vector_type,
8403 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8404 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8405 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
8406 to rs6000-call.c.
8407 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
8408 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8409 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8410 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8411 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8412 init_cumulative_args, rs6000_promote_function_mode,
8413 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8414 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8415 rs6000_function_arg_boundary, rs6000_parm_offset,
8416 rs6000_parm_start, rs6000_arg_size,
8417 rs6000_darwin64_record_arg_advance_flush,
8418 rs6000_darwin64_record_arg_advance_recurse,
8419 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8420 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8421 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8422 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8423 rs6000_finish_function_arg, rs6000_function_arg,
8424 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8425 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8426 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8427 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8428 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8429 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8430 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8431 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8432 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8433 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8434 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8435 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8436 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8437 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8438 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8439 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8440 get_element_number, altivec_expand_vec_set_builtin,
8441 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8442 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8443 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8444 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8445 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8446 rs6000_expand_builtin, rs6000_vector_type,
8447 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8448 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8449 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
8450 to here from rs6000.c.
8451 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
8452 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
8453 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
8454 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
8455 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
8456 rs6000_return_in_memory, rs6000_return_in_msb,
8457 rs6000_pass_by_reference, setup_incoming_varargs,
8458 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
8459 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
8460 rs6000_function_arg_padding, rs6000_function_arg,
8461 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
8462 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
8463 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
8464 rs6000_passes_long_double, rs6000_passes_vector,
8465 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
8466 altivec_builtin_mask_for_load) Add declarations.
8467 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
8468 * config/config.gcc: Add new source file rs6000-call.c to garbage
8469 collector and extra_objs.
8470
8471 2019-07-19 Jeff Law <law@redhat.com>
8472
8473 PR tree-optimization/86061
8474 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8475 strncpy. Drop some trivial dead code.
8476 (maybe_trim_memstar_call): Handle strncpy.
8477
8478 2019-07-19 Richard Biener <rguenther@suse.de>
8479
8480 PR tree-optimization/91211
8481 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8482 memset encoding size.
8483
8484 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
8485
8486 PR target/91204
8487 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
8488
8489 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
8490
8491 PR ipa/91194
8492 * ipa-inline.c (recursive_inlining): Fix limits check.
8493
8494 2019-07-19 Richard Biener <rguenther@suse.de>
8495
8496 PR tree-optimization/91200
8497 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
8498 no PHI nodes in middle-bb.
8499
8500 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
8501
8502 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
8503 to +sve-bitperm.
8504 * config/aarch64/aarch64-option-extensions.def: Likewise.
8505
8506 2019-07-19 Jakub Jelinek <jakub@redhat.com>
8507
8508 PR middle-end/91190
8509 * function.c (insert_temp_slot_address): Store into the hash table
8510 a copy of address to avoid RTL sharing issues.
8511
8512 2019-07-19 Richard Biener <rguenther@suse.de>
8513
8514 PR tree-optimization/91207
8515 Revert
8516 2019-07-17 Richard Biener <rguenther@suse.de>
8517
8518 PR tree-optimization/91178
8519 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8520 loads with a gap larger than the vector size always use
8521 VMAT_STRIDED_SLP.
8522 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8523 avoid loading vectors that are only contained in the gap
8524 and thus are not needed.
8525
8526 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8527
8528 * config/i386/i386.md (*addqi_2_slp): Remove.
8529 (*<code>qi_2_slp): Ditto.
8530
8531 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
8532
8533 * config/rs6000/predicates.md (prefixed_mem_operand): Call
8534 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
8535 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
8536 Rename function from rs6000_prefixed_address.
8537 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8538 TARGET_HAS_TOC.
8539 (TARGET_TOC): Likewise.
8540 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8541 rs6000.h.
8542 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8543 TARGET_HAS_TOC.
8544 (TARGET_TOC): Likewise.
8545 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8546 rs6000.h.
8547 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8548 TARGET_HAS_TOC.
8549 (TARGET_TOC): Likewise.
8550 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8551 check to require -mcmodel=medium for pc-relative addressing.
8552 (create_TOC_reference): Add assertion for TARGET_TOC.
8553 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
8554 TARGET_NO_TOC.
8555 (rs6000_emit_move): Likewise.
8556 (TOC_alias_set): Rename TOC alias set static variable from 'set'
8557 to 'TOC_alias_set'.
8558 (get_TOC_alias_set): Likewise.
8559 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
8560 TARGET_NO_TOC.
8561 (rs6000_can_eliminate): Likewise.
8562 (rs6000_prefixed_address_mode_p): Rename function from
8563 rs6000_prefixed_address.
8564 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
8565 TARGET_HAS_TOC and not pc-relative.
8566 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
8567 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8568 TARGET_HAS_TOC.
8569 (TARGET_TOC): Likewise.
8570 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8571 rs6000.h.
8572
8573 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8574
8575 PR target/91188
8576 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
8577 for operand 0. Do not use (match_dup) to match operand 1 with
8578 operand 0. Add check in insn constraint that either input operand
8579 matches operand 0. Use SWI12 mode iterator to also handle
8580 HImode operands.
8581 (*and<mode>_1_slp): Ditto.
8582 (*<code>qi_1_slp): Ditto.
8583 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
8584 Do not use (match_dup) to match operand 1 with operand 0. Add
8585 check in insn constraint that operand 1 matches operand 0.
8586 Use SWI12 mode iterator to also handle HImode operands.
8587 (*ashl<mode>3_1_slp): Ditto.
8588 (*<shift_insn><mode>3_1_slp): Ditto.
8589 (*<rotate_insn><mode>3_1_slp): Ditto.
8590
8591 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8592
8593 * config/arm/arm-builtins.c
8594 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
8595 (arm_expand_unop_builtin): Likewise.
8596 * config/arm/crypto.md
8597 (crypto_sha1h): Convert from define_insn to define_expand.
8598 (crypto_<crypto_pattern>): Likewise.
8599 (crypto_sha1h_lb): New define_insn.
8600 (crypto_<crypto_pattern>_lb): Likewise.
8601
8602 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8603
8604 PR target/90317
8605 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
8606 (vsha1cq_u32): Likewise.
8607 (vsha1pq_u32): Likewise.
8608 (vsha1mq_u32): Likewise.
8609 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
8610 vec select.
8611 (crypto_sha1c): Correct vec select.
8612 (crypto_sha1m): Likewise.
8613 (crypto_sha1p): Likewise.
8614
8615 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
8616
8617 * config/arm/predicates.md (arm_borrow_operation): New predicate.
8618 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
8619 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
8620 (subdi_zesidi_zesidi): Likewise.
8621 (negdi2_compare, negdi2_insn): Likewise.
8622 (negdi_extensidi): Likewise.
8623 (negdi_zero_extendsidi): Likewise.
8624 (arm_cmpdi_insn): Likewise.
8625 (subsi3_carryin): Use arm_borrow_operation.
8626 (subsi3_carryin_const): Likewise.
8627 (subsi3_carryin_const0): Likewise.
8628 (subsi3_carryin_compare): Likewise.
8629 (subsi3_carryin_compare_const): Likewise.
8630 (subsi3_carryin_compare_const0): Likewise.
8631 (subsi3_carryin_shift): Likewise.
8632 (rsbsi3_carryin_shift): Likewise.
8633 (negsi2_carryin_compare): Likewise.
8634
8635 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
8636
8637 PR tree-optimization/91137
8638 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
8639 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
8640 Init, use and fini the above new field.
8641 (determine_base_object_1): New function.
8642 (determine_base_object): Reimplement using walk_tree.
8643
8644 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
8645
8646 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
8647 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
8648 CLEANUP_FORCE_FAST_DCE is set.
8649 * ifcvt.c (rest_of_handle_if_conversion): Pass
8650 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
8651 if-conversion succeeded.
8652
8653 2019-07-18 Richard Biener <rguenther@suse.de>
8654
8655 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
8656 branches to make code less indented.
8657
8658 2019-07-17 Alexandre Oliva <oliva@adacore.com>
8659
8660 PR middle-end/81824
8661 * attribs.c (decls_mismatched_attributes): Simplify the logic
8662 that avoids duplicates and false positives.
8663
8664 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
8665
8666 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
8667 data into data section when generating PIC code.
8668 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
8669 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
8670 generating code for SOM targets earlier than HP-UX 11. Otherwise,
8671 return 2 for SOM and 0 for other targets.
8672
8673 2019-07-17 Jeff Law <law@redhat.com>
8674
8675 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
8676 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
8677 avoid unexpected switch statement fallthru.
8678
8679 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8680
8681 * config/i386/i386.md (*add<dwi>3_doubleword):
8682 Remove redundant constraints.
8683 (*add<mode>_1): Ditto.
8684 (*addhi_1): Ditto.
8685 (*addqi_1): Ditto.
8686 (*addqi_1_slp): Ditto.
8687 (*add<mode>_2): Ditto.
8688 (*addv<mode>4): Ditto.
8689 (*sub<dwi>3_doubleword): Ditto.
8690 (*sub<mode>_1): Ditto.
8691 (*subqi_1_slp): Ditto.
8692 (*sub<mode>_2): Ditto.
8693 (*subv<mode>4): Ditto.
8694 (*sub<mode>_3): Ditto.
8695 (@add<mode>3_carry): Ditto.
8696 (@sub<mode>3_carry): Ditto.
8697 (*add<mode>3_cc_overflow_1): Ditto.
8698 (*add<mode>3_zext_cc_overflow_2): Ditto.
8699 (*anddi_1): Ditto.
8700 (*and<mode>_1): Ditto.
8701 (*andqi_1): Ditto.
8702 (*andqi_1_slp): Ditto.
8703 (*anddi_2): Ditto.
8704 (*andqi_2_maybe_si): Ditto.
8705 (*and<mode>_2): Ditto.
8706 (*andqi_2_slp): Ditto.
8707 (*<code><mode>_1): Ditto.
8708 (*<code>qi_1): Ditto.
8709 (*<code>qi_1_slp): Ditto.
8710 (*<code><mode>_2): Ditto.
8711 (*<code>qi_2_slp): Ditto.
8712
8713 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
8714
8715 * alias.c (record_component_aliases): Do not simplify pointed-to
8716 types of ODR types.
8717
8718 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8719
8720 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
8721 partial reg stall on alternative 2.
8722
8723 2019-07-17 Richard Biener <rguenther@suse.de>
8724
8725 PR tree-optimization/91178
8726 * tree-ssa.c (release_defs_bitset): Iterate from higher to
8727 lower SSA names to avoid quadratic behavior in the common case.
8728 * tree-data-ref.c (split_constant_offset): Add limit argument
8729 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8730 (split_constant_offset_1): Add limit argument and use it to
8731 limit SSA def walking. Optimize the common plus/minus case.
8732
8733 2019-07-17 Richard Biener <rguenther@suse.de>
8734
8735 PR tree-optimization/91178
8736 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8737 loads with a gap larger than the vector size always use
8738 VMAT_STRIDED_SLP.
8739 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8740 avoid loading vectors that are only contained in the gap
8741 and thus are not needed.
8742
8743 2019-07-17 Richard Biener <rguenther@suse.de>
8744
8745 PR tree-optimization/91180
8746 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
8747 computation for memset partial defs.
8748
8749 2019-07-17 Jakub Jelinek <jakub@redhat.com>
8750
8751 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
8752 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
8753 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
8754 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
8755 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
8756 * omp-grid.c (grid_process_grid_body,
8757 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
8758 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
8759 == GF_OMP_FOR_KIND_SIMD.
8760 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
8761 check_omp_nesting_restrictions, scan_omp_1_stmt,
8762 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
8763 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
8764 omp_find_scan): Likewise.
8765 * omp-expand.c (expand_omp_for): Likewise.
8766 * omp-general.c (omp_extract_for_data): Likewise.
8767
8768 PR tree-optimization/91157
8769 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
8770 a vector boolean with scalar mode.
8771 (expand_vector_condition): Handle first operand being a vector boolean
8772 with scalar mode.
8773 (expand_vector_operations_1): For comparisons, don't bail out early
8774 if the return type is vector boolean with scalar mode, but comparison
8775 operand type is not.
8776
8777 2019-07-17 Richard Biener <rguenther@suse.de>
8778
8779 PR tree-optimization/91181
8780 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
8781 IFN_LOADs as calls.
8782
8783 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
8784
8785 * config/i386/i386.md (*testdi_1): Match CCZmode for
8786 constants that might have the SImode sign bit set.
8787 (*testqi_1_maybe_si): Remove "!" constraint modifier.
8788 Use correct constraints for pentium pairing.
8789 (*test<mode>_1): Ditto.
8790
8791 2019-07-16 Jeff Law <law@redhat.com>
8792
8793 PR rtl-optimization/91173
8794 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
8795 SSA_NAME with a constant value, fold its value into the offset
8796 and clear the base before calling gen_addr_rtx.
8797
8798 2019-07-16 Jakub Jelinek <jakub@redhat.com>
8799
8800 PR rtl-optimization/91164
8801 * dse.c (rest_of_handle_dse): If dead edges have been purged,
8802 invalidate dominance info.
8803
8804 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8805
8806 * read-md.h (md_reader::record_potential_iterator_use): Add a
8807 file_location parameter.
8808 * read-rtl.c (attribute_use::loc): New field.
8809 (map_attr_string): Take a file_location parameter. Report cases
8810 in which attributes map to multiple distinct values.
8811 (apply_attribute_uses): Update call accordingly.
8812 (md_reader::handle_overloaded_name): Likewise.
8813 (md_reader::apply_iterator_to_string): Likewise. Skip empty
8814 nonnull strings.
8815 (record_attribute_use): Take a file_location parameter.
8816 Initialize attribute_use::loc.
8817 (md_reader::record_potential_iterator_use): Take a file_location
8818 parameter. Update call to record_attribute_use.
8819 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
8820 (rtx_reader::read_rtx_code): Likewise.
8821 (rtx_reader::read_rtx_operand): Likewise. Record a location
8822 for implicitly-expanded empty strings.
8823
8824 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8825
8826 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
8827 Use file_location instead of separate fields.
8828 (md_reader::set_md_ptr_loc): Take a file_location instead of a
8829 separate filename and line number.
8830 * read-md.c (ptr_loc): As above.
8831 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
8832 (md_reader::fprint_md_ptr_loc): Likewise.
8833 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
8834 instead of a separate filename and line number.
8835 (md_reader::read_string): Update call accordingly.
8836
8837 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8838
8839 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
8840 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
8841 leaving the choice between SFDF and P implicit.
8842 (*mov<mode>_update2): Likewise.
8843 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
8844 rather than leaving the choice betweem IBM128 and GPR implicit.
8845 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
8846 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
8847 QHSI implicit.
8848 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
8849 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
8850 * config/rs6000/vsx.md
8851 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
8852 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
8853 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
8854 and VSX_EXTRACT_I implicit.
8855
8856 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8857
8858 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
8859 Explicitly use <MOVEP1:MODE> for the mode attribute.
8860
8861 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
8862
8863 PR bootstrap/91176
8864 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
8865
8866 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
8867
8868 PR target/91050
8869 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
8870 .machine directive.
8871
8872 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
8873
8874 * config/i386/i386.md (@test<mode>_ccno_1):
8875 Rename from test<mode>_ccno_1.
8876 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
8877 (*testqi_1_maybe_si): Remove modrm attribute.
8878 (*test<mode>_1): Ditto.
8879 * config/i386/i386-expand.c (ix86_split_idivmod): Use
8880 gen_test_ccno_1 and gen_extend_insn.
8881
8882 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
8883
8884 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
8885 to 0.
8886
8887 2019-07-15 Richard Biener <rguenther@suse.de>
8888
8889 PR middle-end/91162
8890 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
8891 node make sure to replace all uses with something valid.
8892
8893 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
8894
8895 PR tree-optimization/88497
8896 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
8897 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
8898 function undistribute_bitref_for_vector.
8899 (undistribute_bitref_for_vector): New function.
8900 (cleanup_vinfo_map): Likewise.
8901 (sort_by_mach_mode): Likewise.
8902
8903 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
8904
8905 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
8906 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
8907 and testdi_ccno_1 using SWI48 mode attribute.
8908 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
8909 x86_64_szext_general_operand.
8910 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
8911 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
8912 instead of genera_operand mode attribute.
8913
8914 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
8915
8916 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
8917 fopen and fclose to their respective types.
8918 (DotFn.invoke): Ditto.
8919
8920 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
8921
8922 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
8923 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
8924 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
8925 (array_index_predicate): Remove.
8926 (analyze_function_body): Account cost for variable ofsetted array
8927 indexing.
8928 (estimate_node_size_and_time): Do not compute array index hint.
8929 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
8930 (inline_read_section): Do not read array index hint.
8931 (ipa_fn_summary_write): Do not write array index hint.
8932 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
8933 * ipa-cp.c (hint_time_bonus): Remove.
8934 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
8935 (ipa_fnsummary): Remove array_index.
8936 * ipa-inline.c (want_inline_small_function_p): Do not use
8937 array_index.
8938 (edge_badness): Likewise.
8939 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
8940
8941 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
8942
8943 PR target/91148
8944 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
8945 superfluous "builtin function" phrasing.
8946
8947 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
8948
8949 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
8950 Break out from ...
8951 (aliasing_component_refs_walk): Break out from ...
8952 (aliasing_component_refs_p): ... here.
8953
8954 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
8955
8956 PR target/91148
8957 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
8958 "builtin function" phrasing.
8959
8960 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8961
8962 PR target/90723
8963 * recog.h (temporary_volatile_ok): New class.
8964 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
8965 volatile_ok temporarily to true using temporary_volatile_ok.
8966 * expr.c (emit_block_move_via_cpymem): Likewise.
8967 * optabs.c (maybe_legitimize_operand): Likewise.
8968
8969 2019-07-13 Jakub Jelinek <jakub@redhat.com>
8970
8971 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
8972 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
8973 uses inside of order(concurrent) constructs.
8974 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
8975 OMP_CLAUSE_ORDER is seen.
8976 * omp-low.c (struct omp_context): Add order_concurrent member.
8977 (scan_sharing_clauses): Set ctx->order_concurrent if
8978 OMP_CLAUSE_ORDER is seen.
8979 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
8980 of simd order(concurrent). Diagnose constructs not allowed inside of
8981 for order(concurrent).
8982 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
8983 complaining about static double setjmp (double); or class static
8984 methods or non-global namespace setjmps.
8985 (omp_runtime_api_call): New function.
8986 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
8987 order(concurrent) loops.
8988
8989 2019-07-12 Martin Sebor <msebor@redhat.com>
8990
8991 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
8992 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
8993 * tree-vrp.c (vrp_prop::check_mem_ref): Use
8994 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8995
8996 2019-07-12 Jan Hubicka <jh@suse.cz>
8997
8998 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
8999 (indirect_refs_may_alias_p): ... here.
9000 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
9001 mem refs in the access paths.
9002
9003 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
9004
9005 PR tree-optimization/89430
9006 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
9007 store elimination for local variable without address escape.
9008
9009 2019-07-12 Jeff Law <law@redhat.com>
9010
9011 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
9012 for the ".far" section.
9013
9014 2019-07-12 Richard Biener <rguenther@suse.de>
9015
9016 PR tree-optimization/91145
9017 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
9018 chain check.
9019
9020 2019-07-12 Alexandre Oliva <oliva@adacore.com>
9021
9022 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
9023 rather than this_state as the lowering context for the ELSE
9024 seq in a GIMPLE_EH_ELSE.
9025
9026 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9027
9028 * vector-builder.h (vector_builder::elt): Allow already-supplied
9029 elements to be read back before building is complete.
9030
9031 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9032
9033 PR rtl-optimization/91136
9034 * df-core.c (ACCESSING REFS): Fix typos in comment.
9035 * resource.c (mark_target_live_reg): Add artificial defs that occur at
9036 the beginning of the block to the initial set of live registers.
9037
9038 2019-07-12 Richard Biener <rguenther@suse.de>
9039
9040 * fold-const.h (get_array_ctor_element_at_index): Adjust.
9041 * fold-const.c (get_array_ctor_element_at_index): Add
9042 ctor_idx output parameter informing the caller where in
9043 the constructor the element was (not) found. Add early exit
9044 for when the ctor is sorted.
9045 * gimple-fold.c (fold_array_ctor_reference): Support constant
9046 folding across multiple array elements.
9047
9048 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9049
9050 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
9051 doesn't have location, set the current location to the function's end.
9052
9053 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9054
9055 * config/aarch64/aarch64.md (*compare_condjump<mode>)
9056 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
9057 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
9058 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
9059 * config/aarch64/aarch64-simd.md
9060 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9061 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
9062 * config/aarch64/aarch64-sve.md
9063 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
9064 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
9065
9066 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9067
9068 * doc/md.texi: Document that @ patterns can have different
9069 numbers of operands.
9070 * genemit.c (handle_overloaded_gen): Handle this case.
9071 * genopinit.c (handle_overloaded_gen): Likewise.
9072 * gensupport.c (replace_operands_with_dups): Iterate over
9073 the new rtx's format rather than the old one's.
9074
9075 2019-07-12 Jakub Jelinek <jakub@redhat.com>
9076
9077 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
9078 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9079 order clause entries.
9080 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
9081 * tree-pretty-print.c (dump_omp_clause): Likewise.
9082 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9083 Likewise.
9084 * omp-low.c (scan_sharing_clauses): Likewise.
9085 * tree-nested.c (convert_nonlocal_omp_clauses,
9086 convert_local_omp_clauses): Likewise.
9087
9088 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
9089
9090 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
9091 fallthrough target of current basic block isn't the placed
9092 right next.
9093
9094 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
9095
9096 PR target/90980
9097 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
9098 (_mm512_storeu_epi64): Likewise.
9099 (_mm512_loadu_epi32): Likewise.
9100 (_mm512_storeu_epi32): Likewise.
9101 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
9102 (_mm_storeu_epi64): Likewise.
9103 (_mm256_storeu_epi32): Likewise.
9104 (_mm_storeu_epi32): Likewise.
9105
9106 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9107
9108 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
9109
9110 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9111
9112 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
9113 Handle Modula-2.
9114
9115 2019-07-11 Jakub Jelinek <jakub@redhat.com>
9116
9117 PR target/91124
9118 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
9119 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9120 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
9121 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
9122 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
9123 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
9124 define_insns.
9125 (ufix_truncv2dfv2si2<mask_name>): Change into ...
9126 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
9127 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
9128 define_insns.
9129 (sse2_cvttpd2dq<mask_name>): Change into ...
9130 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
9131 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
9132 (*sse2_cvtpd2dq<mask_name>): Change into ...
9133 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9134 Add "C" constraint to const0_operand.
9135 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
9136 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
9137 changes.
9138
9139 PR target/91124
9140 * config/i386/i386-builtin-types.def
9141 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
9142 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
9143 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
9144 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9145 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
9146 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
9147 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
9148 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
9149 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
9150 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
9151 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
9152 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
9153 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
9154 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
9155 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
9156 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
9157 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
9158 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
9159 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
9160 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
9161 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
9162 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
9163 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
9164 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
9165 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
9166 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
9167 __builtin_ia32_vpdpbusd_v4si_maskz,
9168 __builtin_ia32_vpdpbusds_v16si_mask,
9169 __builtin_ia32_vpdpbusds_v16si_maskz,
9170 __builtin_ia32_vpdpbusds_v8si_mask,
9171 __builtin_ia32_vpdpbusds_v8si_maskz,
9172 __builtin_ia32_vpdpbusds_v4si_mask,
9173 __builtin_ia32_vpdpbusds_v4si_maskz,
9174 __builtin_ia32_vpdpwssd_v16si_mask,
9175 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
9176 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
9177 __builtin_ia32_vpdpwssd_v4si_maskz,
9178 __builtin_ia32_vpdpwssds_v16si_mask,
9179 __builtin_ia32_vpdpwssds_v16si_maskz,
9180 __builtin_ia32_vpdpwssds_v8si_mask,
9181 __builtin_ia32_vpdpwssds_v8si_maskz,
9182 __builtin_ia32_vpdpwssds_v4si_mask,
9183 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
9184 suffixed types rather than *_INT.
9185 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9186 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9187 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9188 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9189 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9190 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9191
9192 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
9193
9194 * tree-vrp.c (intersect_ranges): If we know the intersection is
9195 empty, there is no need to conservatively add anything else to
9196 the set.
9197
9198 2019-07-11 Richard Biener <rguenther@suse.de>
9199
9200 PR middle-end/91131
9201 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9202 when the object is volatile and we have not cleared it even though
9203 there are no nonzero elements.
9204
9205 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
9206
9207 * config/rs6000/predicates.md (cint34_operand): Update
9208 SIGNED_34BIT_OFFSET_P call.
9209 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9210 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9211 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9212 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9213 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9214 argument.
9215 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9216 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9217 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9218 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9219 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9220
9221 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
9222
9223 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9224 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9225 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9226 (DEF_MIN_OSX_VERSION): New.
9227
9228 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9229
9230 * fold-const.c (fold_relational_const): Fix folding of
9231 vector-to-scalar NE_EXPRs.
9232 (test_vector_folding): Add more tests.
9233
9234 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9235
9236 PR target/91060
9237 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9238 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9239 (vec_setv2di_internal): Reexpress as...
9240 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9241 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9242 rather than gen_neon_vset_lane<mode>.
9243
9244 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
9245
9246 PR target/91102
9247 * lra-constraints.c (process_alt_operands): Don't match user
9248 defined regs only if they are early clobbers.
9249
9250 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
9251
9252 * wide-int.h (wi::lshift): Reject negative values for the fast path.
9253
9254 2019-07-10 Richard Biener <rguenther@suse.de>
9255
9256 PR tree-optimization/91126
9257 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9258 native encoding offset for BYTES_BIG_ENDIAN.
9259 (vn_reference_lookup_3): Likewise.
9260
9261 2019-07-10 Richard Biener <rguenther@suse.de>
9262
9263 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9264 LHS whenever possible.
9265
9266 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
9267
9268 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9269 from ...; work also on duplicated types.
9270 (nonoverlapping_component_refs_since_match): ... here
9271 (ncr_type_uid): Break out from ...
9272 (ncr_compar): ... here; look for TYPE_UID of canonical type if
9273 available.
9274 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9275 the types and nonoverlapping_component_refs_p_1 to disambiguate.
9276
9277 2019-07-09 Martin Sebor <msebor@redhat.com>
9278
9279 PR tree-optimization/90989
9280 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9281 optimization to just single character stores.
9282
9283 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
9284
9285 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9286 Swap operands only once.
9287
9288 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9289
9290 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9291 for both call instructions.
9292
9293 2019-07-09 John Darrington <john@darrington.wattle.id.au>
9294
9295 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9296 rather than GET_MODE_BITSIZE to better handle partial integer modes.
9297
9298 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
9299
9300 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9301 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9302 function from rs6000-logue.c back to rs6000.c.
9303 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9304
9305 2019-07-09 Martin Sebor <msebor@redhat.com>
9306
9307 PR c++/61339
9308 * auto-profile.c: Change class-key of PODs to struct and others
9309 to class.
9310 * basic-block.h: Same.
9311 * bitmap.c (bitmap_alloc): Same.
9312 * bitmap.h: Same.
9313 * builtins.c (expand_builtin_prefetch): Same.
9314 (expand_builtin_interclass_mathfn): Same.
9315 (expand_builtin_strlen): Same.
9316 (expand_builtin_mempcpy_args): Same.
9317 (expand_cmpstr): Same.
9318 (expand_builtin___clear_cache): Same.
9319 (expand_ifn_atomic_bit_test_and): Same.
9320 (expand_builtin_thread_pointer): Same.
9321 (expand_builtin_set_thread_pointer): Same.
9322 * caller-save.c (setup_save_areas): Same.
9323 (replace_reg_with_saved_mem): Same.
9324 (insert_restore): Same.
9325 (insert_save): Same.
9326 (add_used_regs): Same.
9327 * cfg.c (get_bb_copy): Same.
9328 (set_loop_copy): Same.
9329 * cfg.h: Same.
9330 * cfganal.h: Same.
9331 * cfgexpand.c (alloc_stack_frame_space): Same.
9332 (add_stack_var): Same.
9333 (add_stack_var_conflict): Same.
9334 (add_scope_conflicts_1): Same.
9335 (update_alias_info_with_stack_vars): Same.
9336 (expand_used_vars): Same.
9337 * cfghooks.c (redirect_edge_and_branch_force): Same.
9338 (delete_basic_block): Same.
9339 (split_edge): Same.
9340 (make_forwarder_block): Same.
9341 (force_nonfallthru): Same.
9342 (duplicate_block): Same.
9343 (lv_flush_pending_stmts): Same.
9344 * cfghooks.h: Same.
9345 * cfgloop.c (flow_loops_cfg_dump): Same.
9346 (flow_loop_nested_p): Same.
9347 (superloop_at_depth): Same.
9348 (get_loop_latch_edges): Same.
9349 (flow_loop_dump): Same.
9350 (flow_loops_dump): Same.
9351 (flow_loops_free): Same.
9352 (flow_loop_nodes_find): Same.
9353 (establish_preds): Same.
9354 (flow_loop_tree_node_add): Same.
9355 (flow_loop_tree_node_remove): Same.
9356 (flow_loops_find): Same.
9357 (find_subloop_latch_edge_by_profile): Same.
9358 (find_subloop_latch_edge_by_ivs): Same.
9359 (mfb_redirect_edges_in_set): Same.
9360 (form_subloop): Same.
9361 (merge_latch_edges): Same.
9362 (disambiguate_multiple_latches): Same.
9363 (disambiguate_loops_with_multiple_latches): Same.
9364 (flow_bb_inside_loop_p): Same.
9365 (glb_enum_p): Same.
9366 (get_loop_body_with_size): Same.
9367 (get_loop_body): Same.
9368 (fill_sons_in_loop): Same.
9369 (get_loop_body_in_dom_order): Same.
9370 (get_loop_body_in_custom_order): Same.
9371 (release_recorded_exits): Same.
9372 (get_loop_exit_edges): Same.
9373 (num_loop_branches): Same.
9374 (remove_bb_from_loops): Same.
9375 (find_common_loop): Same.
9376 (delete_loop): Same.
9377 (cancel_loop): Same.
9378 (verify_loop_structure): Same.
9379 (loop_preheader_edge): Same.
9380 (loop_exit_edge_p): Same.
9381 (single_exit): Same.
9382 (loop_exits_to_bb_p): Same.
9383 (loop_exits_from_bb_p): Same.
9384 (get_loop_location): Same.
9385 (record_niter_bound): Same.
9386 (get_estimated_loop_iterations_int): Same.
9387 (max_stmt_executions_int): Same.
9388 (likely_max_stmt_executions_int): Same.
9389 (get_estimated_loop_iterations): Same.
9390 (get_max_loop_iterations): Same.
9391 (get_max_loop_iterations_int): Same.
9392 (get_likely_max_loop_iterations): Same.
9393 * cfgloop.h (simple_loop_desc): Same.
9394 (get_loop): Same.
9395 (loop_depth): Same.
9396 (loop_outer): Same.
9397 (loop_iterator::next): Same.
9398 (loop_outermost): Same.
9399 * cfgloopanal.c (mark_irreducible_loops): Same.
9400 (num_loop_insns): Same.
9401 (average_num_loop_insns): Same.
9402 (expected_loop_iterations_unbounded): Same.
9403 (expected_loop_iterations): Same.
9404 (mark_loop_exit_edges): Same.
9405 (single_likely_exit): Same.
9406 * cfgloopmanip.c (fix_bb_placement): Same.
9407 (fix_bb_placements): Same.
9408 (remove_path): Same.
9409 (place_new_loop): Same.
9410 (add_loop): Same.
9411 (scale_loop_frequencies): Same.
9412 (scale_loop_profile): Same.
9413 (create_empty_if_region_on_edge): Same.
9414 (create_empty_loop_on_edge): Same.
9415 (loopify): Same.
9416 (unloop): Same.
9417 (fix_loop_placements): Same.
9418 (copy_loop_info): Same.
9419 (duplicate_loop): Same.
9420 (duplicate_subloops): Same.
9421 (loop_redirect_edge): Same.
9422 (can_duplicate_loop_p): Same.
9423 (duplicate_loop_to_header_edge): Same.
9424 (mfb_keep_just): Same.
9425 (has_preds_from_loop): Same.
9426 (create_preheader): Same.
9427 (create_preheaders): Same.
9428 (lv_adjust_loop_entry_edge): Same.
9429 (loop_version): Same.
9430 * cfgloopmanip.h: Same.
9431 * cgraph.h: Same.
9432 * cgraphbuild.c: Same.
9433 * combine.c (make_extraction): Same.
9434 * config/i386/i386-features.c: Same.
9435 * config/i386/i386-features.h: Same.
9436 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
9437 (ix86_emit_outlined_ms2sysv_restore): Same.
9438 (ix86_noce_conversion_profitable_p): Same.
9439 (ix86_init_cost): Same.
9440 (ix86_simd_clone_usable): Same.
9441 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
9442 Wstruct-not-pod.
9443 * coretypes.h: Same.
9444 * data-streamer-in.c (string_for_index): Change class-key of PODs
9445 to struct and others to class.
9446 (streamer_read_indexed_string): Same.
9447 (streamer_read_string): Same.
9448 (bp_unpack_indexed_string): Same.
9449 (bp_unpack_string): Same.
9450 (streamer_read_uhwi): Same.
9451 (streamer_read_hwi): Same.
9452 (streamer_read_gcov_count): Same.
9453 (streamer_read_wide_int): Same.
9454 * data-streamer.h (streamer_write_bitpack): Same.
9455 (bp_unpack_value): Same.
9456 (streamer_write_char_stream): Same.
9457 (streamer_write_hwi_in_range): Same.
9458 (streamer_write_record_start): Same.
9459 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
9460 (add_cross_iteration_register_deps): Same.
9461 (build_intra_loop_deps): Same.
9462 * df-core.c (df_analyze): Same.
9463 (loop_post_order_compute): Same.
9464 (loop_inverted_post_order_compute): Same.
9465 * df-problems.c (df_rd_alloc): Same.
9466 (df_rd_simulate_one_insn): Same.
9467 (df_rd_local_compute): Same.
9468 (df_rd_init_solution): Same.
9469 (df_rd_confluence_n): Same.
9470 (df_rd_transfer_function): Same.
9471 (df_rd_free): Same.
9472 (df_rd_dump_defs_set): Same.
9473 (df_rd_top_dump): Same.
9474 (df_lr_alloc): Same.
9475 (df_lr_reset): Same.
9476 (df_lr_local_compute): Same.
9477 (df_lr_init): Same.
9478 (df_lr_confluence_n): Same.
9479 (df_lr_free): Same.
9480 (df_lr_top_dump): Same.
9481 (df_lr_verify_transfer_functions): Same.
9482 (df_live_alloc): Same.
9483 (df_live_reset): Same.
9484 (df_live_init): Same.
9485 (df_live_confluence_n): Same.
9486 (df_live_finalize): Same.
9487 (df_live_free): Same.
9488 (df_live_top_dump): Same.
9489 (df_live_verify_transfer_functions): Same.
9490 (df_mir_alloc): Same.
9491 (df_mir_reset): Same.
9492 (df_mir_init): Same.
9493 (df_mir_confluence_n): Same.
9494 (df_mir_free): Same.
9495 (df_mir_top_dump): Same.
9496 (df_word_lr_alloc): Same.
9497 (df_word_lr_reset): Same.
9498 (df_word_lr_init): Same.
9499 (df_word_lr_confluence_n): Same.
9500 (df_word_lr_free): Same.
9501 (df_word_lr_top_dump): Same.
9502 (df_md_alloc): Same.
9503 (df_md_simulate_one_insn): Same.
9504 (df_md_reset): Same.
9505 (df_md_init): Same.
9506 (df_md_free): Same.
9507 (df_md_top_dump): Same.
9508 * df-scan.c (df_insn_delete): Same.
9509 (df_insn_rescan): Same.
9510 (df_notes_rescan): Same.
9511 (df_sort_and_compress_mws): Same.
9512 (df_install_mws): Same.
9513 (df_refs_add_to_chains): Same.
9514 (df_ref_create_structure): Same.
9515 (df_ref_record): Same.
9516 (df_def_record_1): Same.
9517 (df_find_hard_reg_defs): Same.
9518 (df_uses_record): Same.
9519 (df_get_conditional_uses): Same.
9520 (df_get_call_refs): Same.
9521 (df_recompute_luids): Same.
9522 (df_get_entry_block_def_set): Same.
9523 (df_entry_block_defs_collect): Same.
9524 (df_get_exit_block_use_set): Same.
9525 (df_exit_block_uses_collect): Same.
9526 (df_mws_verify): Same.
9527 (df_bb_verify): Same.
9528 * df.h (df_scan_get_bb_info): Same.
9529 * doc/tm.texi: Same.
9530 * dse.c (record_store): Same.
9531 * dumpfile.h: Same.
9532 * emit-rtl.c (const_fixed_hasher::equal): Same.
9533 (set_mem_attributes_minus_bitpos): Same.
9534 (change_address): Same.
9535 (adjust_address_1): Same.
9536 (offset_address): Same.
9537 * emit-rtl.h: Same.
9538 * except.c (dw2_build_landing_pads): Same.
9539 (sjlj_emit_dispatch_table): Same.
9540 * explow.c (allocate_dynamic_stack_space): Same.
9541 (emit_stack_probe): Same.
9542 (probe_stack_range): Same.
9543 * expmed.c (store_bit_field_using_insv): Same.
9544 (store_bit_field_1): Same.
9545 (store_integral_bit_field): Same.
9546 (extract_bit_field_using_extv): Same.
9547 (extract_bit_field_1): Same.
9548 (emit_cstore): Same.
9549 * expr.c (emit_block_move_via_cpymem): Same.
9550 (expand_cmpstrn_or_cmpmem): Same.
9551 (set_storage_via_setmem): Same.
9552 (emit_single_push_insn_1): Same.
9553 (expand_assignment): Same.
9554 (store_constructor): Same.
9555 (expand_expr_real_2): Same.
9556 (expand_expr_real_1): Same.
9557 (try_casesi): Same.
9558 * flags.h: Same.
9559 * function.c (try_fit_stack_local): Same.
9560 (assign_stack_local_1): Same.
9561 (assign_stack_local): Same.
9562 (cut_slot_from_list): Same.
9563 (insert_slot_to_list): Same.
9564 (max_slot_level): Same.
9565 (move_slot_to_level): Same.
9566 (temp_address_hasher::equal): Same.
9567 (remove_unused_temp_slot_addresses): Same.
9568 (assign_temp): Same.
9569 (combine_temp_slots): Same.
9570 (update_temp_slot_address): Same.
9571 (preserve_temp_slots): Same.
9572 * function.h: Same.
9573 * fwprop.c: Same.
9574 * gcc-rich-location.h: Same.
9575 * gcov.c: Same.
9576 * genattrtab.c (check_attr_test): Same.
9577 (check_attr_value): Same.
9578 (convert_set_attr_alternative): Same.
9579 (convert_set_attr): Same.
9580 (check_defs): Same.
9581 (copy_boolean): Same.
9582 (get_attr_value): Same.
9583 (expand_delays): Same.
9584 (make_length_attrs): Same.
9585 (min_fn): Same.
9586 (make_alternative_compare): Same.
9587 (simplify_test_exp): Same.
9588 (tests_attr_p): Same.
9589 (get_attr_order): Same.
9590 (clear_struct_flag): Same.
9591 (gen_attr): Same.
9592 (compares_alternatives_p): Same.
9593 (gen_insn): Same.
9594 (gen_delay): Same.
9595 (find_attrs_to_cache): Same.
9596 (write_test_expr): Same.
9597 (walk_attr_value): Same.
9598 (write_attr_get): Same.
9599 (eliminate_known_true): Same.
9600 (write_insn_cases): Same.
9601 (write_attr_case): Same.
9602 (write_attr_valueq): Same.
9603 (write_attr_value): Same.
9604 (write_dummy_eligible_delay): Same.
9605 (next_comma_elt): Same.
9606 (find_attr): Same.
9607 (make_internal_attr): Same.
9608 (copy_rtx_unchanging): Same.
9609 (gen_insn_reserv): Same.
9610 (check_tune_attr): Same.
9611 (make_automaton_attrs): Same.
9612 (handle_arg): Same.
9613 * genextract.c (gen_insn): Same.
9614 (VEC_char_to_string): Same.
9615 * genmatch.c (print_operand): Same.
9616 (lower): Same.
9617 (parser::parse_operation): Same.
9618 (parser::parse_capture): Same.
9619 (parser::parse_c_expr): Same.
9620 (parser::parse_simplify): Same.
9621 (main): Same.
9622 * genoutput.c (output_operand_data): Same.
9623 (output_get_insn_name): Same.
9624 (compare_operands): Same.
9625 (place_operands): Same.
9626 (process_template): Same.
9627 (validate_insn_alternatives): Same.
9628 (validate_insn_operands): Same.
9629 (gen_expand): Same.
9630 (note_constraint): Same.
9631 * genpreds.c (write_one_predicate_function): Same.
9632 (add_constraint): Same.
9633 (process_define_register_constraint): Same.
9634 (write_lookup_constraint_1): Same.
9635 (write_lookup_constraint_array): Same.
9636 (write_insn_constraint_len): Same.
9637 (write_reg_class_for_constraint_1): Same.
9638 (write_constraint_satisfied_p_array): Same.
9639 * genrecog.c (optimize_subroutine_group): Same.
9640 * gensupport.c (process_define_predicate): Same.
9641 (queue_pattern): Same.
9642 (remove_from_queue): Same.
9643 (process_rtx): Same.
9644 (is_predicable): Same.
9645 (change_subst_attribute): Same.
9646 (subst_pattern_match): Same.
9647 (alter_constraints): Same.
9648 (alter_attrs_for_insn): Same.
9649 (shift_output_template): Same.
9650 (alter_output_for_subst_insn): Same.
9651 (process_one_cond_exec): Same.
9652 (subst_dup): Same.
9653 (process_define_cond_exec): Same.
9654 (mnemonic_htab_callback): Same.
9655 (gen_mnemonic_attr): Same.
9656 (read_md_rtx): Same.
9657 * ggc-page.c: Same.
9658 * gimple-loop-interchange.cc (dump_reduction): Same.
9659 (dump_induction): Same.
9660 (loop_cand::~loop_cand): Same.
9661 (free_data_refs_with_aux): Same.
9662 (tree_loop_interchange::interchange_loops): Same.
9663 (tree_loop_interchange::map_inductions_to_loop): Same.
9664 (tree_loop_interchange::move_code_to_inner_loop): Same.
9665 (compute_access_stride): Same.
9666 (compute_access_strides): Same.
9667 (proper_loop_form_for_interchange): Same.
9668 (tree_loop_interchange_compute_ddrs): Same.
9669 (prune_datarefs_not_in_loop): Same.
9670 (prepare_data_references): Same.
9671 (pass_linterchange::execute): Same.
9672 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
9673 (unroll_jam_possible_p): Same.
9674 (fuse_loops): Same.
9675 (adjust_unroll_factor): Same.
9676 (tree_loop_unroll_and_jam): Same.
9677 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
9678 (loop_versioning::expensive_stmt_p): Same.
9679 (loop_versioning::version_for_unity): Same.
9680 (loop_versioning::dump_inner_likelihood): Same.
9681 (loop_versioning::find_per_loop_multiplication): Same.
9682 (loop_versioning::analyze_term_using_scevs): Same.
9683 (loop_versioning::record_address_fragment): Same.
9684 (loop_versioning::analyze_expr): Same.
9685 (loop_versioning::analyze_blocks): Same.
9686 (loop_versioning::prune_conditions): Same.
9687 (loop_versioning::merge_loop_info): Same.
9688 (loop_versioning::add_loop_to_queue): Same.
9689 (loop_versioning::decide_whether_loop_is_versionable): Same.
9690 (loop_versioning::make_versioning_decisions): Same.
9691 (loop_versioning::implement_versioning_decisions): Same.
9692 * gimple-ssa-evrp-analyze.c
9693 (evrp_range_analyzer::record_ranges_from_phis): Same.
9694 * gimple-ssa-store-merging.c (split_store::split_store): Same.
9695 (count_multiple_uses): Same.
9696 (split_group): Same.
9697 (imm_store_chain_info::output_merged_store): Same.
9698 (pass_store_merging::process_store): Same.
9699 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
9700 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
9701 (is_max): Same.
9702 (alloca_call_type): Same.
9703 (pass_walloca::execute): Same.
9704 * gimple-streamer-in.c (input_phi): Same.
9705 (input_gimple_stmt): Same.
9706 * gimple-streamer.h: Same.
9707 * godump.c (go_force_record_alignment): Same.
9708 (go_format_type): Same.
9709 (go_output_type): Same.
9710 (go_output_fndecl): Same.
9711 (go_output_typedef): Same.
9712 (keyword_hash_init): Same.
9713 (find_dummy_types): Same.
9714 * graph.c (draw_cfg_nodes_no_loops): Same.
9715 (draw_cfg_nodes_for_loop): Same.
9716 * hard-reg-set.h (hard_reg_set_iter_next): Same.
9717 * hsa-brig.c: Same.
9718 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
9719 * hsa-dump.c (dump_hsa_cfun): Same.
9720 * hsa-gen.c (gen_function_def_parameters): Same.
9721 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
9722 * input.c (dump_line_table_statistics): Same.
9723 (test_lexer): Same.
9724 * input.h: Same.
9725 * internal-fn.c (get_multi_vector_move): Same.
9726 (expand_load_lanes_optab_fn): Same.
9727 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
9728 (expand_GOMP_SIMT_EXIT): Same.
9729 (expand_GOMP_SIMT_LAST_LANE): Same.
9730 (expand_GOMP_SIMT_ORDERED_PRED): Same.
9731 (expand_GOMP_SIMT_VOTE_ANY): Same.
9732 (expand_GOMP_SIMT_XCHG_BFLY): Same.
9733 (expand_GOMP_SIMT_XCHG_IDX): Same.
9734 (expand_addsub_overflow): Same.
9735 (expand_neg_overflow): Same.
9736 (expand_mul_overflow): Same.
9737 (expand_call_mem_ref): Same.
9738 (expand_mask_load_optab_fn): Same.
9739 (expand_scatter_store_optab_fn): Same.
9740 (expand_gather_load_optab_fn): Same.
9741 * ipa-cp.c (ipa_get_parm_lattices): Same.
9742 (print_all_lattices): Same.
9743 (ignore_edge_p): Same.
9744 (build_toporder_info): Same.
9745 (free_toporder_info): Same.
9746 (push_node_to_stack): Same.
9747 (ipcp_lattice<valtype>::set_contains_variable): Same.
9748 (set_agg_lats_to_bottom): Same.
9749 (ipcp_bits_lattice::meet_with): Same.
9750 (set_single_call_flag): Same.
9751 (initialize_node_lattices): Same.
9752 (ipa_get_jf_ancestor_result): Same.
9753 (ipcp_verify_propagated_values): Same.
9754 (propagate_scalar_across_jump_function): Same.
9755 (propagate_context_across_jump_function): Same.
9756 (propagate_bits_across_jump_function): Same.
9757 (ipa_vr_operation_and_type_effects): Same.
9758 (propagate_vr_across_jump_function): Same.
9759 (set_check_aggs_by_ref): Same.
9760 (set_chain_of_aglats_contains_variable): Same.
9761 (merge_aggregate_lattices): Same.
9762 (agg_pass_through_permissible_p): Same.
9763 (propagate_aggs_across_jump_function): Same.
9764 (call_passes_through_thunk_p): Same.
9765 (propagate_constants_across_call): Same.
9766 (devirtualization_time_bonus): Same.
9767 (good_cloning_opportunity_p): Same.
9768 (context_independent_aggregate_values): Same.
9769 (gather_context_independent_values): Same.
9770 (perform_estimation_of_a_value): Same.
9771 (estimate_local_effects): Same.
9772 (value_topo_info<valtype>::add_val): Same.
9773 (add_all_node_vals_to_toposort): Same.
9774 (value_topo_info<valtype>::propagate_effects): Same.
9775 (ipcp_propagate_stage): Same.
9776 (ipcp_discover_new_direct_edges): Same.
9777 (same_node_or_its_all_contexts_clone_p): Same.
9778 (cgraph_edge_brings_value_p): Same.
9779 (gather_edges_for_value): Same.
9780 (create_specialized_node): Same.
9781 (find_more_scalar_values_for_callers_subset): Same.
9782 (find_more_contexts_for_caller_subset): Same.
9783 (copy_plats_to_inter): Same.
9784 (intersect_aggregates_with_edge): Same.
9785 (find_aggregate_values_for_callers_subset): Same.
9786 (cgraph_edge_brings_all_agg_vals_for_node): Same.
9787 (decide_about_value): Same.
9788 (decide_whether_version_node): Same.
9789 (spread_undeadness): Same.
9790 (identify_dead_nodes): Same.
9791 (ipcp_store_vr_results): Same.
9792 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
9793 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
9794 (redirect_to_unreachable): Same.
9795 (edge_set_predicate): Same.
9796 (evaluate_conditions_for_known_args): Same.
9797 (evaluate_properties_for_edge): Same.
9798 (ipa_fn_summary_t::duplicate): Same.
9799 (ipa_call_summary_t::duplicate): Same.
9800 (dump_ipa_call_summary): Same.
9801 (ipa_dump_fn_summary): Same.
9802 (eliminated_by_inlining_prob): Same.
9803 (set_cond_stmt_execution_predicate): Same.
9804 (set_switch_stmt_execution_predicate): Same.
9805 (compute_bb_predicates): Same.
9806 (will_be_nonconstant_expr_predicate): Same.
9807 (phi_result_unknown_predicate): Same.
9808 (analyze_function_body): Same.
9809 (compute_fn_summary): Same.
9810 (estimate_edge_devirt_benefit): Same.
9811 (estimate_edge_size_and_time): Same.
9812 (estimate_calls_size_and_time): Same.
9813 (estimate_node_size_and_time): Same.
9814 (remap_edge_change_prob): Same.
9815 (remap_edge_summaries): Same.
9816 (ipa_merge_fn_summary_after_inlining): Same.
9817 (ipa_fn_summary_generate): Same.
9818 (inline_read_section): Same.
9819 (ipa_fn_summary_read): Same.
9820 (ipa_fn_summary_write): Same.
9821 * ipa-fnsummary.h: Same.
9822 * ipa-hsa.c (ipa_hsa_read_section): Same.
9823 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
9824 * ipa-icf.c (sem_function::param_used_p): Same.
9825 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
9826 * ipa-inline.c (edge_badness): Same.
9827 (inline_small_functions): Same.
9828 * ipa-polymorphic-call.c
9829 (ipa_polymorphic_call_context::stream_out): Same.
9830 * ipa-predicate.c (predicate::remap_after_duplication): Same.
9831 (predicate::remap_after_inlining): Same.
9832 (predicate::stream_out): Same.
9833 * ipa-predicate.h: Same.
9834 * ipa-profile.c (ipa_profile_read_summary): Same.
9835 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
9836 (count_formal_params): Same.
9837 (ipa_dump_param): Same.
9838 (ipa_alloc_node_params): Same.
9839 (ipa_print_node_jump_functions_for_edge): Same.
9840 (ipa_print_node_jump_functions): Same.
9841 (ipa_load_from_parm_agg): Same.
9842 (get_ancestor_addr_info): Same.
9843 (ipa_compute_jump_functions_for_edge): Same.
9844 (ipa_analyze_virtual_call_uses): Same.
9845 (ipa_analyze_stmt_uses): Same.
9846 (ipa_analyze_params_uses_in_bb): Same.
9847 (update_jump_functions_after_inlining): Same.
9848 (try_decrement_rdesc_refcount): Same.
9849 (ipa_impossible_devirt_target): Same.
9850 (update_indirect_edges_after_inlining): Same.
9851 (combine_controlled_uses_counters): Same.
9852 (ipa_edge_args_sum_t::duplicate): Same.
9853 (ipa_write_jump_function): Same.
9854 (ipa_write_indirect_edge_info): Same.
9855 (ipa_write_node_info): Same.
9856 (ipa_read_edge_info): Same.
9857 (ipa_prop_read_section): Same.
9858 (read_replacements_section): Same.
9859 * ipa-prop.h (ipa_get_param_count): Same.
9860 (ipa_get_param): Same.
9861 (ipa_get_type): Same.
9862 (ipa_get_param_move_cost): Same.
9863 (ipa_set_param_used): Same.
9864 (ipa_get_controlled_uses): Same.
9865 (ipa_set_controlled_uses): Same.
9866 (ipa_get_cs_argument_count): Same.
9867 * ipa-pure-const.c (analyze_function): Same.
9868 (pure_const_read_summary): Same.
9869 * ipa-ref.h: Same.
9870 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
9871 * ipa-split.c (test_nonssa_use): Same.
9872 (dump_split_point): Same.
9873 (dominated_by_forbidden): Same.
9874 (split_part_set_ssa_name_p): Same.
9875 (find_split_points): Same.
9876 * ira-build.c (finish_loop_tree_nodes): Same.
9877 (low_pressure_loop_node_p): Same.
9878 * ira-color.c (ira_reuse_stack_slot): Same.
9879 * ira-int.h: Same.
9880 * ira.c (setup_reg_equiv): Same.
9881 (print_insn_chain): Same.
9882 (ira): Same.
9883 * loop-doloop.c (doloop_condition_get): Same.
9884 (add_test): Same.
9885 (record_reg_sets): Same.
9886 (doloop_optimize): Same.
9887 * loop-init.c (loop_optimizer_init): Same.
9888 (fix_loop_structure): Same.
9889 * loop-invariant.c (merge_identical_invariants): Same.
9890 (compute_always_reached): Same.
9891 (find_exits): Same.
9892 (may_assign_reg_p): Same.
9893 (find_invariants_bb): Same.
9894 (find_invariants_body): Same.
9895 (replace_uses): Same.
9896 (can_move_invariant_reg): Same.
9897 (free_inv_motion_data): Same.
9898 (move_single_loop_invariants): Same.
9899 (change_pressure): Same.
9900 (mark_ref_regs): Same.
9901 (calculate_loop_reg_pressure): Same.
9902 * loop-iv.c (biv_entry_hasher::equal): Same.
9903 (iv_extend_to_rtx_code): Same.
9904 (check_iv_ref_table_size): Same.
9905 (clear_iv_info): Same.
9906 (latch_dominating_def): Same.
9907 (iv_get_reaching_def): Same.
9908 (iv_constant): Same.
9909 (iv_subreg): Same.
9910 (iv_extend): Same.
9911 (iv_neg): Same.
9912 (iv_add): Same.
9913 (iv_mult): Same.
9914 (get_biv_step): Same.
9915 (record_iv): Same.
9916 (analyzed_for_bivness_p): Same.
9917 (record_biv): Same.
9918 (iv_analyze_biv): Same.
9919 (iv_analyze_expr): Same.
9920 (iv_analyze_def): Same.
9921 (iv_analyze_op): Same.
9922 (iv_analyze): Same.
9923 (iv_analyze_result): Same.
9924 (biv_p): Same.
9925 (eliminate_implied_conditions): Same.
9926 (simplify_using_initial_values): Same.
9927 (shorten_into_mode): Same.
9928 (canonicalize_iv_subregs): Same.
9929 (determine_max_iter): Same.
9930 (check_simple_exit): Same.
9931 (find_simple_exit): Same.
9932 (get_simple_loop_desc): Same.
9933 * loop-unroll.c (report_unroll): Same.
9934 (decide_unrolling): Same.
9935 (unroll_loops): Same.
9936 (loop_exit_at_end_p): Same.
9937 (decide_unroll_constant_iterations): Same.
9938 (unroll_loop_constant_iterations): Same.
9939 (compare_and_jump_seq): Same.
9940 (unroll_loop_runtime_iterations): Same.
9941 (decide_unroll_stupid): Same.
9942 (unroll_loop_stupid): Same.
9943 (referenced_in_one_insn_in_loop_p): Same.
9944 (reset_debug_uses_in_loop): Same.
9945 (analyze_iv_to_split_insn): Same.
9946 * lra-eliminations.c (lra_debug_elim_table): Same.
9947 (setup_can_eliminate): Same.
9948 (form_sum): Same.
9949 (lra_get_elimination_hard_regno): Same.
9950 (lra_eliminate_regs_1): Same.
9951 (eliminate_regs_in_insn): Same.
9952 (update_reg_eliminate): Same.
9953 (init_elimination): Same.
9954 (lra_eliminate): Same.
9955 * lra-int.h: Same.
9956 * lra-lives.c (initiate_live_solver): Same.
9957 * lra-remat.c (create_remat_bb_data): Same.
9958 * lra-spills.c (lra_spill): Same.
9959 * lra.c (lra_set_insn_recog_data): Same.
9960 (lra_set_used_insn_alternative_by_uid): Same.
9961 (init_reg_info): Same.
9962 (expand_reg_info): Same.
9963 * lto-cgraph.c (output_symtab): Same.
9964 (read_identifier): Same.
9965 (get_alias_symbol): Same.
9966 (input_node): Same.
9967 (input_varpool_node): Same.
9968 (input_ref): Same.
9969 (input_edge): Same.
9970 (input_cgraph_1): Same.
9971 (input_refs): Same.
9972 (input_symtab): Same.
9973 (input_offload_tables): Same.
9974 (output_cgraph_opt_summary): Same.
9975 (input_edge_opt_summary): Same.
9976 (input_cgraph_opt_section): Same.
9977 * lto-section-in.c (lto_free_raw_section_data): Same.
9978 (lto_create_simple_input_block): Same.
9979 (lto_free_function_in_decl_state_for_node): Same.
9980 * lto-streamer-in.c (lto_tag_check_set): Same.
9981 (lto_location_cache::revert_location_cache): Same.
9982 (lto_location_cache::input_location): Same.
9983 (lto_input_location): Same.
9984 (stream_input_location_now): Same.
9985 (lto_input_tree_ref): Same.
9986 (lto_input_eh_catch_list): Same.
9987 (input_eh_region): Same.
9988 (lto_init_eh): Same.
9989 (make_new_block): Same.
9990 (input_cfg): Same.
9991 (fixup_call_stmt_edges): Same.
9992 (input_struct_function_base): Same.
9993 (input_function): Same.
9994 (lto_read_body_or_constructor): Same.
9995 (lto_read_tree_1): Same.
9996 (lto_read_tree): Same.
9997 (lto_input_scc): Same.
9998 (lto_input_tree_1): Same.
9999 (lto_input_toplevel_asms): Same.
10000 (lto_input_mode_table): Same.
10001 (lto_reader_init): Same.
10002 (lto_data_in_create): Same.
10003 * lto-streamer-out.c (output_cfg): Same.
10004 * lto-streamer.h: Same.
10005 * modulo-sched.c (duplicate_insns_of_cycles): Same.
10006 (generate_prolog_epilog): Same.
10007 (mark_loop_unsched): Same.
10008 (dump_insn_location): Same.
10009 (loop_canon_p): Same.
10010 (sms_schedule): Same.
10011 * omp-expand.c (expand_omp_for_ordered_loops): Same.
10012 (expand_omp_for_generic): Same.
10013 (expand_omp_for_static_nochunk): Same.
10014 (expand_omp_for_static_chunk): Same.
10015 (expand_omp_simd): Same.
10016 (expand_omp_taskloop_for_inner): Same.
10017 (expand_oacc_for): Same.
10018 (expand_omp_atomic_pipeline): Same.
10019 (mark_loops_in_oacc_kernels_region): Same.
10020 * omp-offload.c (oacc_xform_loop): Same.
10021 * omp-simd-clone.c (simd_clone_adjust): Same.
10022 * optabs-query.c (get_traditional_extraction_insn): Same.
10023 * optabs.c (expand_vector_broadcast): Same.
10024 (expand_binop_directly): Same.
10025 (expand_twoval_unop): Same.
10026 (expand_twoval_binop): Same.
10027 (expand_unop_direct): Same.
10028 (emit_indirect_jump): Same.
10029 (emit_conditional_move): Same.
10030 (emit_conditional_neg_or_complement): Same.
10031 (emit_conditional_add): Same.
10032 (vector_compare_rtx): Same.
10033 (expand_vec_perm_1): Same.
10034 (expand_vec_perm_const): Same.
10035 (expand_vec_cond_expr): Same.
10036 (expand_vec_series_expr): Same.
10037 (maybe_emit_atomic_exchange): Same.
10038 (maybe_emit_sync_lock_test_and_set): Same.
10039 (expand_atomic_compare_and_swap): Same.
10040 (expand_atomic_load): Same.
10041 (expand_atomic_store): Same.
10042 (maybe_emit_op): Same.
10043 (valid_multiword_target_p): Same.
10044 (create_integer_operand): Same.
10045 (maybe_legitimize_operand_same_code): Same.
10046 (maybe_legitimize_operand): Same.
10047 (create_convert_operand_from_type): Same.
10048 (can_reuse_operands_p): Same.
10049 (maybe_legitimize_operands): Same.
10050 (maybe_gen_insn): Same.
10051 (maybe_expand_insn): Same.
10052 (maybe_expand_jump_insn): Same.
10053 (expand_insn): Same.
10054 * optabs.h (create_expand_operand): Same.
10055 (create_fixed_operand): Same.
10056 (create_output_operand): Same.
10057 (create_input_operand): Same.
10058 (create_convert_operand_to): Same.
10059 (create_convert_operand_from): Same.
10060 * optinfo.h: Same.
10061 * poly-int.h: Same.
10062 * predict.c (optimize_insn_for_speed_p): Same.
10063 (optimize_loop_for_size_p): Same.
10064 (optimize_loop_for_speed_p): Same.
10065 (optimize_loop_nest_for_speed_p): Same.
10066 (get_base_value): Same.
10067 (predicted_by_loop_heuristics_p): Same.
10068 (predict_extra_loop_exits): Same.
10069 (predict_loops): Same.
10070 (predict_paths_for_bb): Same.
10071 (predict_paths_leading_to): Same.
10072 (propagate_freq): Same.
10073 (pass_profile::execute): Same.
10074 * predict.h: Same.
10075 * profile-count.c (profile_count::differs_from_p): Same.
10076 (profile_probability::differs_lot_from_p): Same.
10077 * profile-count.h: Same.
10078 * profile.c (branch_prob): Same.
10079 * regrename.c (free_chain_data): Same.
10080 (mark_conflict): Same.
10081 (create_new_chain): Same.
10082 (merge_overlapping_regs): Same.
10083 (init_rename_info): Same.
10084 (merge_chains): Same.
10085 (regrename_analyze): Same.
10086 (regrename_do_replace): Same.
10087 (scan_rtx_reg): Same.
10088 (record_out_operands): Same.
10089 (build_def_use): Same.
10090 * regrename.h: Same.
10091 * reload.h: Same.
10092 * reload1.c (init_reload): Same.
10093 (maybe_fix_stack_asms): Same.
10094 (copy_reloads): Same.
10095 (count_pseudo): Same.
10096 (count_spilled_pseudo): Same.
10097 (find_reg): Same.
10098 (find_reload_regs): Same.
10099 (select_reload_regs): Same.
10100 (spill_hard_reg): Same.
10101 (fixup_eh_region_note): Same.
10102 (set_reload_reg): Same.
10103 (allocate_reload_reg): Same.
10104 (compute_reload_subreg_offset): Same.
10105 (reload_adjust_reg_for_icode): Same.
10106 (emit_input_reload_insns): Same.
10107 (emit_output_reload_insns): Same.
10108 (do_input_reload): Same.
10109 (inherit_piecemeal_p): Same.
10110 * rtl.h: Same.
10111 * sanopt.c (maybe_get_dominating_check): Same.
10112 (maybe_optimize_ubsan_ptr_ifn): Same.
10113 (can_remove_asan_check): Same.
10114 (maybe_optimize_asan_check_ifn): Same.
10115 (sanopt_optimize_walker): Same.
10116 * sched-deps.c (add_dependence_list): Same.
10117 (chain_to_prev_insn): Same.
10118 (add_insn_mem_dependence): Same.
10119 (create_insn_reg_set): Same.
10120 (maybe_extend_reg_info_p): Same.
10121 (sched_analyze_reg): Same.
10122 (sched_analyze_1): Same.
10123 (get_implicit_reg_pending_clobbers): Same.
10124 (chain_to_prev_insn_p): Same.
10125 (deps_analyze_insn): Same.
10126 (deps_start_bb): Same.
10127 (sched_free_deps): Same.
10128 (init_deps): Same.
10129 (init_deps_reg_last): Same.
10130 (free_deps): Same.
10131 * sched-ebb.c: Same.
10132 * sched-int.h: Same.
10133 * sched-rgn.c (add_branch_dependences): Same.
10134 (concat_insn_mem_list): Same.
10135 (deps_join): Same.
10136 (sched_rgn_compute_dependencies): Same.
10137 * sel-sched-ir.c (reset_target_context): Same.
10138 (copy_deps_context): Same.
10139 (init_id_from_df): Same.
10140 (has_dependence_p): Same.
10141 (change_loops_latches): Same.
10142 (bb_top_order_comparator): Same.
10143 (make_region_from_loop_preheader): Same.
10144 (sel_init_pipelining): Same.
10145 (get_loop_nest_for_rgn): Same.
10146 (make_regions_from_the_rest): Same.
10147 (sel_is_loop_preheader_p): Same.
10148 * sel-sched-ir.h (inner_loop_header_p): Same.
10149 (get_all_loop_exits): Same.
10150 * selftest.h: Same.
10151 * sese.c (sese_build_liveouts): Same.
10152 (sese_insert_phis_for_liveouts): Same.
10153 * sese.h (defined_in_sese_p): Same.
10154 * sreal.c (sreal::stream_out): Same.
10155 * sreal.h: Same.
10156 * streamer-hooks.h: Same.
10157 * target-globals.c (save_target_globals): Same.
10158 * target-globals.h: Same.
10159 * target.def: Same.
10160 * target.h: Same.
10161 * targhooks.c (default_has_ifunc_p): Same.
10162 (default_empty_mask_is_expensive): Same.
10163 (default_init_cost): Same.
10164 * targhooks.h: Same.
10165 * toplev.c: Same.
10166 * tree-affine.c (aff_combination_mult): Same.
10167 (aff_combination_expand): Same.
10168 (aff_combination_constant_multiple_p): Same.
10169 * tree-affine.h: Same.
10170 * tree-cfg.c (build_gimple_cfg): Same.
10171 (replace_loop_annotate_in_block): Same.
10172 (replace_uses_by): Same.
10173 (remove_bb): Same.
10174 (dump_cfg_stats): Same.
10175 (gimple_duplicate_sese_region): Same.
10176 (gimple_duplicate_sese_tail): Same.
10177 (move_block_to_fn): Same.
10178 (replace_block_vars_by_duplicates): Same.
10179 (move_sese_region_to_fn): Same.
10180 (print_loops_bb): Same.
10181 (print_loop): Same.
10182 (print_loops): Same.
10183 (debug): Same.
10184 (debug_loops): Same.
10185 * tree-cfg.h: Same.
10186 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10187 (chrec_fold_multiply_poly_poly): Same.
10188 (chrec_evaluate): Same.
10189 (chrec_component_in_loop_num): Same.
10190 (reset_evolution_in_loop): Same.
10191 (is_multivariate_chrec): Same.
10192 (chrec_contains_symbols): Same.
10193 (nb_vars_in_chrec): Same.
10194 (chrec_convert_1): Same.
10195 (chrec_convert_aggressive): Same.
10196 * tree-chrec.h: Same.
10197 * tree-core.h: Same.
10198 * tree-data-ref.c (dump_data_dependence_relation): Same.
10199 (canonicalize_base_object_address): Same.
10200 (data_ref_compare_tree): Same.
10201 (prune_runtime_alias_test_list): Same.
10202 (get_segment_min_max): Same.
10203 (create_intersect_range_checks): Same.
10204 (conflict_fn_no_dependence): Same.
10205 (object_address_invariant_in_loop_p): Same.
10206 (analyze_ziv_subscript): Same.
10207 (analyze_siv_subscript_cst_affine): Same.
10208 (analyze_miv_subscript): Same.
10209 (analyze_overlapping_iterations): Same.
10210 (build_classic_dist_vector_1): Same.
10211 (add_other_self_distances): Same.
10212 (same_access_functions): Same.
10213 (build_classic_dir_vector): Same.
10214 (subscript_dependence_tester_1): Same.
10215 (subscript_dependence_tester): Same.
10216 (access_functions_are_affine_or_constant_p): Same.
10217 (get_references_in_stmt): Same.
10218 (loop_nest_has_data_refs): Same.
10219 (graphite_find_data_references_in_stmt): Same.
10220 (find_data_references_in_bb): Same.
10221 (get_base_for_alignment): Same.
10222 (find_loop_nest_1): Same.
10223 (find_loop_nest): Same.
10224 * tree-data-ref.h (dr_alignment): Same.
10225 (ddr_dependence_level): Same.
10226 * tree-if-conv.c (fold_build_cond_expr): Same.
10227 (add_to_predicate_list): Same.
10228 (add_to_dst_predicate_list): Same.
10229 (phi_convertible_by_degenerating_args): Same.
10230 (idx_within_array_bound): Same.
10231 (all_preds_critical_p): Same.
10232 (pred_blocks_visited_p): Same.
10233 (predicate_bbs): Same.
10234 (build_region): Same.
10235 (if_convertible_loop_p_1): Same.
10236 (is_cond_scalar_reduction): Same.
10237 (predicate_scalar_phi): Same.
10238 (remove_conditions_and_labels): Same.
10239 (combine_blocks): Same.
10240 (version_loop_for_if_conversion): Same.
10241 (versionable_outer_loop_p): Same.
10242 (ifcvt_local_dce): Same.
10243 (tree_if_conversion): Same.
10244 (pass_if_conversion::gate): Same.
10245 * tree-if-conv.h: Same.
10246 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10247 * tree-loop-distribution.c (bb_top_order_cmp): Same.
10248 (free_rdg): Same.
10249 (stmt_has_scalar_dependences_outside_loop): Same.
10250 (copy_loop_before): Same.
10251 (create_bb_after_loop): Same.
10252 (const_with_all_bytes_same): Same.
10253 (generate_memset_builtin): Same.
10254 (generate_memcpy_builtin): Same.
10255 (destroy_loop): Same.
10256 (build_rdg_partition_for_vertex): Same.
10257 (compute_access_range): Same.
10258 (data_ref_segment_size): Same.
10259 (latch_dominated_by_data_ref): Same.
10260 (compute_alias_check_pairs): Same.
10261 (fuse_memset_builtins): Same.
10262 (finalize_partitions): Same.
10263 (find_seed_stmts_for_distribution): Same.
10264 (prepare_perfect_loop_nest): Same.
10265 * tree-parloops.c (lambda_transform_legal_p): Same.
10266 (loop_parallel_p): Same.
10267 (reduc_stmt_res): Same.
10268 (add_field_for_name): Same.
10269 (create_call_for_reduction_1): Same.
10270 (replace_uses_in_bb_by): Same.
10271 (transform_to_exit_first_loop_alt): Same.
10272 (try_transform_to_exit_first_loop_alt): Same.
10273 (transform_to_exit_first_loop): Same.
10274 (num_phis): Same.
10275 (gen_parallel_loop): Same.
10276 (gather_scalar_reductions): Same.
10277 (get_omp_data_i_param): Same.
10278 (try_create_reduction_list): Same.
10279 (oacc_entry_exit_single_gang): Same.
10280 (parallelize_loops): Same.
10281 * tree-pass.h: Same.
10282 * tree-predcom.c (determine_offset): Same.
10283 (last_always_executed_block): Same.
10284 (split_data_refs_to_components): Same.
10285 (suitable_component_p): Same.
10286 (valid_initializer_p): Same.
10287 (find_looparound_phi): Same.
10288 (insert_looparound_copy): Same.
10289 (add_looparound_copies): Same.
10290 (determine_roots_comp): Same.
10291 (predcom_tmp_var): Same.
10292 (initialize_root_vars): Same.
10293 (initialize_root_vars_store_elim_1): Same.
10294 (initialize_root_vars_store_elim_2): Same.
10295 (finalize_eliminated_stores): Same.
10296 (initialize_root_vars_lm): Same.
10297 (remove_stmt): Same.
10298 (determine_unroll_factor): Same.
10299 (execute_pred_commoning_cbck): Same.
10300 (base_names_in_chain_on): Same.
10301 (combine_chains): Same.
10302 (pcom_stmt_dominates_stmt_p): Same.
10303 (try_combine_chains): Same.
10304 (prepare_initializers_chain_store_elim): Same.
10305 (prepare_initializers_chain): Same.
10306 (prepare_initializers): Same.
10307 (prepare_finalizers_chain): Same.
10308 (prepare_finalizers): Same.
10309 (insert_init_seqs): Same.
10310 * tree-scalar-evolution.c (loop_phi_node_p): Same.
10311 (compute_overall_effect_of_inner_loop): Same.
10312 (add_to_evolution_1): Same.
10313 (add_to_evolution): Same.
10314 (follow_ssa_edge_binary): Same.
10315 (follow_ssa_edge_expr): Same.
10316 (backedge_phi_arg_p): Same.
10317 (follow_ssa_edge_in_condition_phi_branch): Same.
10318 (follow_ssa_edge_in_condition_phi): Same.
10319 (follow_ssa_edge_inner_loop_phi): Same.
10320 (follow_ssa_edge): Same.
10321 (analyze_evolution_in_loop): Same.
10322 (analyze_initial_condition): Same.
10323 (interpret_loop_phi): Same.
10324 (interpret_condition_phi): Same.
10325 (interpret_rhs_expr): Same.
10326 (interpret_expr): Same.
10327 (interpret_gimple_assign): Same.
10328 (analyze_scalar_evolution_1): Same.
10329 (analyze_scalar_evolution): Same.
10330 (analyze_scalar_evolution_for_address_of): Same.
10331 (get_instantiated_value_entry): Same.
10332 (loop_closed_phi_def): Same.
10333 (instantiate_scev_name): Same.
10334 (instantiate_scev_poly): Same.
10335 (instantiate_scev_binary): Same.
10336 (instantiate_scev_convert): Same.
10337 (instantiate_scev_not): Same.
10338 (instantiate_scev_r): Same.
10339 (instantiate_scev): Same.
10340 (resolve_mixers): Same.
10341 (initialize_scalar_evolutions_analyzer): Same.
10342 (scev_reset_htab): Same.
10343 (scev_reset): Same.
10344 (derive_simple_iv_with_niters): Same.
10345 (simple_iv_with_niters): Same.
10346 (expression_expensive_p): Same.
10347 (final_value_replacement_loop): Same.
10348 * tree-scalar-evolution.h (block_before_loop): Same.
10349 * tree-ssa-address.h: Same.
10350 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10351 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10352 (record_edge_info): Same.
10353 * tree-ssa-live.c (var_map_base_fini): Same.
10354 (remove_unused_locals): Same.
10355 * tree-ssa-live.h: Same.
10356 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10357 (pass_ch_vect::execute): Same.
10358 (pass_ch::process_loop_p): Same.
10359 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10360 (movement_possibility): Same.
10361 (outermost_invariant_loop): Same.
10362 (stmt_cost): Same.
10363 (determine_max_movement): Same.
10364 (invariantness_dom_walker::before_dom_children): Same.
10365 (move_computations): Same.
10366 (may_move_till): Same.
10367 (force_move_till_op): Same.
10368 (force_move_till): Same.
10369 (memref_free): Same.
10370 (record_mem_ref_loc): Same.
10371 (set_ref_stored_in_loop): Same.
10372 (mark_ref_stored): Same.
10373 (sort_bbs_in_loop_postorder_cmp): Same.
10374 (sort_locs_in_loop_postorder_cmp): Same.
10375 (analyze_memory_references): Same.
10376 (mem_refs_may_alias_p): Same.
10377 (find_ref_loc_in_loop_cmp): Same.
10378 (rewrite_mem_ref_loc::operator): Same.
10379 (first_mem_ref_loc_1::operator): Same.
10380 (sm_set_flag_if_changed::operator): Same.
10381 (execute_sm_if_changed_flag_set): Same.
10382 (execute_sm): Same.
10383 (hoist_memory_references): Same.
10384 (ref_always_accessed::operator): Same.
10385 (refs_independent_p): Same.
10386 (record_dep_loop): Same.
10387 (ref_indep_loop_p_1): Same.
10388 (ref_indep_loop_p): Same.
10389 (can_sm_ref_p): Same.
10390 (find_refs_for_sm): Same.
10391 (loop_suitable_for_sm): Same.
10392 (store_motion_loop): Same.
10393 (store_motion): Same.
10394 (fill_always_executed_in): Same.
10395 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10396 (estimated_unrolled_size): Same.
10397 (loop_edge_to_cancel): Same.
10398 (remove_exits_and_undefined_stmts): Same.
10399 (remove_redundant_iv_tests): Same.
10400 (unloop_loops): Same.
10401 (estimated_peeled_sequence_size): Same.
10402 (try_peel_loop): Same.
10403 (canonicalize_loop_induction_variables): Same.
10404 (canonicalize_induction_variables): Same.
10405 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
10406 (name_info): Same.
10407 (stmt_after_inc_pos): Same.
10408 (contains_abnormal_ssa_name_p): Same.
10409 (niter_for_exit): Same.
10410 (find_bivs): Same.
10411 (mark_bivs): Same.
10412 (find_givs_in_bb): Same.
10413 (find_induction_variables): Same.
10414 (find_interesting_uses_cond): Same.
10415 (outermost_invariant_loop_for_expr): Same.
10416 (idx_find_step): Same.
10417 (add_candidate_1): Same.
10418 (add_iv_candidate_derived_from_uses): Same.
10419 (alloc_use_cost_map): Same.
10420 (prepare_decl_rtl): Same.
10421 (generic_predict_doloop_p): Same.
10422 (computation_cost): Same.
10423 (determine_common_wider_type): Same.
10424 (get_computation_aff_1): Same.
10425 (get_use_type): Same.
10426 (determine_group_iv_cost_address): Same.
10427 (iv_period): Same.
10428 (difference_cannot_overflow_p): Same.
10429 (may_eliminate_iv): Same.
10430 (determine_set_costs): Same.
10431 (cheaper_cost_pair): Same.
10432 (compare_cost_pair): Same.
10433 (iv_ca_cand_for_group): Same.
10434 (iv_ca_recount_cost): Same.
10435 (iv_ca_set_remove_invs): Same.
10436 (iv_ca_set_no_cp): Same.
10437 (iv_ca_set_add_invs): Same.
10438 (iv_ca_set_cp): Same.
10439 (iv_ca_add_group): Same.
10440 (iv_ca_cost): Same.
10441 (iv_ca_compare_deps): Same.
10442 (iv_ca_delta_reverse): Same.
10443 (iv_ca_delta_commit): Same.
10444 (iv_ca_cand_used_p): Same.
10445 (iv_ca_delta_free): Same.
10446 (iv_ca_new): Same.
10447 (iv_ca_free): Same.
10448 (iv_ca_dump): Same.
10449 (iv_ca_extend): Same.
10450 (iv_ca_narrow): Same.
10451 (iv_ca_prune): Same.
10452 (cheaper_cost_with_cand): Same.
10453 (iv_ca_replace): Same.
10454 (try_add_cand_for): Same.
10455 (get_initial_solution): Same.
10456 (try_improve_iv_set): Same.
10457 (find_optimal_iv_set_1): Same.
10458 (create_new_iv): Same.
10459 (rewrite_use_compare): Same.
10460 (remove_unused_ivs): Same.
10461 (determine_scaling_factor): Same.
10462 * tree-ssa-loop-ivopts.h: Same.
10463 * tree-ssa-loop-manip.c (create_iv): Same.
10464 (compute_live_loop_exits): Same.
10465 (add_exit_phi): Same.
10466 (add_exit_phis): Same.
10467 (find_uses_to_rename_use): Same.
10468 (find_uses_to_rename_def): Same.
10469 (find_uses_to_rename_in_loop): Same.
10470 (rewrite_into_loop_closed_ssa): Same.
10471 (check_loop_closed_ssa_bb): Same.
10472 (split_loop_exit_edge): Same.
10473 (ip_end_pos): Same.
10474 (ip_normal_pos): Same.
10475 (copy_phi_node_args): Same.
10476 (gimple_duplicate_loop_to_header_edge): Same.
10477 (can_unroll_loop_p): Same.
10478 (determine_exit_conditions): Same.
10479 (scale_dominated_blocks_in_loop): Same.
10480 (niter_for_unrolled_loop): Same.
10481 (tree_transform_and_unroll_loop): Same.
10482 (rewrite_all_phi_nodes_with_iv): Same.
10483 * tree-ssa-loop-manip.h: Same.
10484 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
10485 (number_of_iterations_ne): Same.
10486 (assert_no_overflow_lt): Same.
10487 (assert_loop_rolls_lt): Same.
10488 (number_of_iterations_lt): Same.
10489 (adjust_cond_for_loop_until_wrap): Same.
10490 (tree_simplify_using_condition): Same.
10491 (simplify_using_initial_conditions): Same.
10492 (simplify_using_outer_evolutions): Same.
10493 (loop_only_exit_p): Same.
10494 (ssa_defined_by_minus_one_stmt_p): Same.
10495 (number_of_iterations_popcount): Same.
10496 (number_of_iterations_exit): Same.
10497 (find_loop_niter): Same.
10498 (finite_loop_p): Same.
10499 (chain_of_csts_start): Same.
10500 (get_val_for): Same.
10501 (loop_niter_by_eval): Same.
10502 (derive_constant_upper_bound_ops): Same.
10503 (do_warn_aggressive_loop_optimizations): Same.
10504 (record_estimate): Same.
10505 (get_cst_init_from_scev): Same.
10506 (record_nonwrapping_iv): Same.
10507 (idx_infer_loop_bounds): Same.
10508 (infer_loop_bounds_from_ref): Same.
10509 (infer_loop_bounds_from_array): Same.
10510 (infer_loop_bounds_from_pointer_arith): Same.
10511 (infer_loop_bounds_from_signedness): Same.
10512 (bound_index): Same.
10513 (discover_iteration_bound_by_body_walk): Same.
10514 (maybe_lower_iteration_bound): Same.
10515 (estimate_numbers_of_iterations): Same.
10516 (estimated_loop_iterations): Same.
10517 (estimated_loop_iterations_int): Same.
10518 (max_loop_iterations): Same.
10519 (max_loop_iterations_int): Same.
10520 (likely_max_loop_iterations): Same.
10521 (likely_max_loop_iterations_int): Same.
10522 (estimated_stmt_executions_int): Same.
10523 (max_stmt_executions): Same.
10524 (likely_max_stmt_executions): Same.
10525 (estimated_stmt_executions): Same.
10526 (stmt_dominates_stmt_p): Same.
10527 (nowrap_type_p): Same.
10528 (loop_exits_before_overflow): Same.
10529 (scev_var_range_cant_overflow): Same.
10530 (scev_probably_wraps_p): Same.
10531 (free_numbers_of_iterations_estimates): Same.
10532 * tree-ssa-loop-niter.h: Same.
10533 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
10534 (idx_analyze_ref): Same.
10535 (analyze_ref): Same.
10536 (gather_memory_references_ref): Same.
10537 (mark_nontemporal_store): Same.
10538 (emit_mfence_after_loop): Same.
10539 (may_use_storent_in_loop_p): Same.
10540 (mark_nontemporal_stores): Same.
10541 (should_unroll_loop_p): Same.
10542 (volume_of_dist_vector): Same.
10543 (add_subscript_strides): Same.
10544 (self_reuse_distance): Same.
10545 (insn_to_prefetch_ratio_too_small_p): Same.
10546 * tree-ssa-loop-split.c (split_at_bb_p): Same.
10547 (patch_loop_exit): Same.
10548 (find_or_create_guard_phi): Same.
10549 (easy_exit_values): Same.
10550 (connect_loop_phis): Same.
10551 (connect_loops): Same.
10552 (compute_new_first_bound): Same.
10553 (split_loop): Same.
10554 (tree_ssa_split_loops): Same.
10555 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
10556 (is_maybe_undefined): Same.
10557 (tree_may_unswitch_on): Same.
10558 (simplify_using_entry_checks): Same.
10559 (tree_unswitch_single_loop): Same.
10560 (tree_unswitch_loop): Same.
10561 (tree_unswitch_outer_loop): Same.
10562 (empty_bb_without_guard_p): Same.
10563 (used_outside_loop_p): Same.
10564 (get_vop_from_header): Same.
10565 (hoist_guard): Same.
10566 * tree-ssa-loop.c (gate_oacc_kernels): Same.
10567 (get_lsm_tmp_name): Same.
10568 * tree-ssa-loop.h: Same.
10569 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
10570 (build_and_add_sum): Same.
10571 (no_side_effect_bb): Same.
10572 (get_ops): Same.
10573 (linearize_expr): Same.
10574 (should_break_up_subtract): Same.
10575 (linearize_expr_tree): Same.
10576 * tree-ssa-scopedtables.c: Same.
10577 * tree-ssa-scopedtables.h: Same.
10578 * tree-ssa-structalias.c (condense_visit): Same.
10579 (label_visit): Same.
10580 (dump_pred_graph): Same.
10581 (perform_var_substitution): Same.
10582 (move_complex_constraints): Same.
10583 (remove_preds_and_fake_succs): Same.
10584 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
10585 (determine_bb_domination_status): Same.
10586 (duplicate_thread_path): Same.
10587 (thread_through_all_blocks): Same.
10588 * tree-ssa-threadupdate.h: Same.
10589 * tree-streamer-in.c (streamer_read_string_cst): Same.
10590 (input_identifier): Same.
10591 (unpack_ts_type_common_value_fields): Same.
10592 (unpack_ts_block_value_fields): Same.
10593 (unpack_ts_translation_unit_decl_value_fields): Same.
10594 (unpack_ts_omp_clause_value_fields): Same.
10595 (streamer_read_tree_bitfields): Same.
10596 (streamer_alloc_tree): Same.
10597 (lto_input_ts_common_tree_pointers): Same.
10598 (lto_input_ts_vector_tree_pointers): Same.
10599 (lto_input_ts_poly_tree_pointers): Same.
10600 (lto_input_ts_complex_tree_pointers): Same.
10601 (lto_input_ts_decl_minimal_tree_pointers): Same.
10602 (lto_input_ts_decl_common_tree_pointers): Same.
10603 (lto_input_ts_decl_non_common_tree_pointers): Same.
10604 (lto_input_ts_decl_with_vis_tree_pointers): Same.
10605 (lto_input_ts_field_decl_tree_pointers): Same.
10606 (lto_input_ts_function_decl_tree_pointers): Same.
10607 (lto_input_ts_type_common_tree_pointers): Same.
10608 (lto_input_ts_type_non_common_tree_pointers): Same.
10609 (lto_input_ts_list_tree_pointers): Same.
10610 (lto_input_ts_vec_tree_pointers): Same.
10611 (lto_input_ts_exp_tree_pointers): Same.
10612 (lto_input_ts_block_tree_pointers): Same.
10613 (lto_input_ts_binfo_tree_pointers): Same.
10614 (lto_input_ts_constructor_tree_pointers): Same.
10615 (lto_input_ts_omp_clause_tree_pointers): Same.
10616 (streamer_read_tree_body): Same.
10617 * tree-streamer.h: Same.
10618 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
10619 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
10620 (vect_analyze_possibly_independent_ddr): Same.
10621 (vect_analyze_data_ref_dependence): Same.
10622 (vect_compute_data_ref_alignment): Same.
10623 (vect_enhance_data_refs_alignment): Same.
10624 (vect_analyze_data_ref_access): Same.
10625 (vect_check_gather_scatter): Same.
10626 (vect_find_stmt_data_reference): Same.
10627 (vect_create_addr_base_for_vector_ref): Same.
10628 (vect_setup_realignment): Same.
10629 (vect_supportable_dr_alignment): Same.
10630 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
10631 (adjust_phi_and_debug_stmts): Same.
10632 (vect_set_loop_mask): Same.
10633 (add_preheader_seq): Same.
10634 (vect_maybe_permute_loop_masks): Same.
10635 (vect_set_loop_masks_directly): Same.
10636 (vect_set_loop_condition_masked): Same.
10637 (vect_set_loop_condition_unmasked): Same.
10638 (slpeel_duplicate_current_defs_from_edges): Same.
10639 (slpeel_add_loop_guard): Same.
10640 (slpeel_can_duplicate_loop_p): Same.
10641 (create_lcssa_for_virtual_phi): Same.
10642 (iv_phi_p): Same.
10643 (vect_update_ivs_after_vectorizer): Same.
10644 (vect_gen_vector_loop_niters_mult_vf): Same.
10645 (slpeel_update_phi_nodes_for_loops): Same.
10646 (slpeel_update_phi_nodes_for_guard1): Same.
10647 (find_guard_arg): Same.
10648 (slpeel_update_phi_nodes_for_guard2): Same.
10649 (slpeel_update_phi_nodes_for_lcssa): Same.
10650 (vect_do_peeling): Same.
10651 (vect_create_cond_for_alias_checks): Same.
10652 (vect_loop_versioning): Same.
10653 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
10654 (vect_inner_phi_in_double_reduction_p): Same.
10655 (vect_analyze_scalar_cycles_1): Same.
10656 (vect_fixup_scalar_cycles_with_patterns): Same.
10657 (vect_get_loop_niters): Same.
10658 (bb_in_loop_p): Same.
10659 (vect_get_max_nscalars_per_iter): Same.
10660 (vect_verify_full_masking): Same.
10661 (vect_compute_single_scalar_iteration_cost): Same.
10662 (vect_analyze_loop_form_1): Same.
10663 (vect_analyze_loop_form): Same.
10664 (vect_active_double_reduction_p): Same.
10665 (vect_analyze_loop_operations): Same.
10666 (neutral_op_for_slp_reduction): Same.
10667 (vect_is_simple_reduction): Same.
10668 (vect_model_reduction_cost): Same.
10669 (get_initial_def_for_reduction): Same.
10670 (get_initial_defs_for_reduction): Same.
10671 (vect_create_epilog_for_reduction): Same.
10672 (vectorize_fold_left_reduction): Same.
10673 (vectorizable_reduction): Same.
10674 (vectorizable_induction): Same.
10675 (vectorizable_live_operation): Same.
10676 (loop_niters_no_overflow): Same.
10677 (vect_get_loop_mask): Same.
10678 (vect_transform_loop_stmt): Same.
10679 (vect_transform_loop): Same.
10680 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
10681 (vect_determine_precisions): Same.
10682 (vect_pattern_recog_1): Same.
10683 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10684 * tree-vect-stmts.c (stmt_vectype): Same.
10685 (process_use): Same.
10686 (vect_init_vector_1): Same.
10687 (vect_truncate_gather_scatter_offset): Same.
10688 (get_group_load_store_type): Same.
10689 (vect_build_gather_load_calls): Same.
10690 (vect_get_strided_load_store_ops): Same.
10691 (vectorizable_simd_clone_call): Same.
10692 (vectorizable_store): Same.
10693 (permute_vec_elements): Same.
10694 (vectorizable_load): Same.
10695 (vect_transform_stmt): Same.
10696 (supportable_widening_operation): Same.
10697 * tree-vectorizer.c (vec_info::replace_stmt): Same.
10698 (vec_info::free_stmt_vec_info): Same.
10699 (vect_free_loop_info_assumptions): Same.
10700 (vect_loop_vectorized_call): Same.
10701 (set_uid_loop_bbs): Same.
10702 (vectorize_loops): Same.
10703 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
10704 * tree.c (add_tree_to_fld_list): Same.
10705 (fld_type_variant_equal_p): Same.
10706 (fld_decl_context): Same.
10707 (fld_incomplete_type_of): Same.
10708 (free_lang_data_in_binfo): Same.
10709 (need_assembler_name_p): Same.
10710 (find_decls_types_r): Same.
10711 (get_eh_types_for_runtime): Same.
10712 (find_decls_types_in_eh_region): Same.
10713 (find_decls_types_in_node): Same.
10714 (assign_assembler_name_if_needed): Same.
10715 * value-prof.c (stream_out_histogram_value): Same.
10716 * value-prof.h: Same.
10717 * var-tracking.c (use_narrower_mode): Same.
10718 (prepare_call_arguments): Same.
10719 (vt_expand_loc_callback): Same.
10720 (resolve_expansions_pending_recursion): Same.
10721 (vt_expand_loc): Same.
10722 * varasm.c (const_hash_1): Same.
10723 (compare_constant): Same.
10724 (tree_output_constant_def): Same.
10725 (simplify_subtraction): Same.
10726 (get_pool_constant): Same.
10727 (output_constant_pool_2): Same.
10728 (output_constant_pool_1): Same.
10729 (mark_constants_in_pattern): Same.
10730 (mark_constant_pool): Same.
10731 (get_section_anchor): Same.
10732 * vr-values.c (compare_range_with_value): Same.
10733 (vr_values::extract_range_from_phi_node): Same.
10734 * vr-values.h: Same.
10735 * web.c (unionfind_union): Same.
10736 * wide-int.h: Same.
10737
10738 2019-07-09 Martin Sebor <msebor@redhat.com>
10739
10740 PR c++/61339
10741 * align.h: Change class-key from class to struct and vice versa
10742 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
10743 * alloc-pool.h: Same.
10744 * asan.c (shadow_mem_size): Same.
10745 * auto-profile.c: Same.
10746 * basic-block.h: Same.
10747 * bitmap.h: Same.
10748 * cfgexpand.c (set_rtl): Same.
10749 (expand_one_stack_var_at): Same.
10750 * cfghooks.h: Same.
10751 * cfgloop.h: Same.
10752 * cgraph.h: Same.
10753 * config/i386/i386.h: Same.
10754 * df-problems.c (df_print_bb_index): Same.
10755 * df-scan.c: Same.
10756 * df.h (df_single_use): Same.
10757 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
10758 (layout::annotation_line_showed_range_p): Same.
10759 (get_printed_columns): Same.
10760 (correction::ensure_terminated): Same.
10761 (line_corrections::~line_corrections): Same.
10762 * dojump.h: Same.
10763 * dse.c: Same.
10764 * dump-context.h: Same.
10765 * dumpfile.h: Same.
10766 * dwarf2out.c: Same.
10767 * edit-context.c: Same.
10768 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
10769 * flags.h: Same.
10770 * function.c (assign_stack_local): Same.
10771 * function.h: Same.
10772 * gcc.c: Same.
10773 * gcov.c (block_info::block_info): Same.
10774 * genattrtab.c: Same.
10775 * genextract.c: Same.
10776 * genmatch.c (comparison_code_p): Same.
10777 (id_base::id_base): Same.
10778 (decision_tree::print): Same.
10779 * genoutput.c: Same.
10780 * genpreds.c (write_one_predicate_function): Same.
10781 * genrecog.c (validate_pattern): Same.
10782 (find_operand_positions): Same.
10783 (optimize_subroutine_group): Same.
10784 (merge_pattern_transition::merge_pattern_transition): Same.
10785 (merge_pattern_info::merge_pattern_info): Same.
10786 (merge_state_result::merge_state_result): Same.
10787 (merge_into_state): Same.
10788 * gensupport.c: Same.
10789 * gensupport.h: Same.
10790 * ggc-common.c (init_ggc_heuristics): Same.
10791 * ggc-tests.c (test_union): Same.
10792 * gimple-loop-interchange.cc (dump_induction): Same.
10793 * gimple-loop-versioning.cc: Same.
10794 * gimple-match.h (gimple_match_cond::any_else): Same.
10795 * gimple-ssa-backprop.c: Same.
10796 * gimple-ssa-sprintf.c: Same.
10797 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
10798 Same.
10799 (store_immediate_info::store_immediate_info): Same.
10800 (merged_store_group::apply_stores): Same.
10801 (get_location_for_stmts): Same.
10802 * gimple-ssa-strength-reduction.c: Same.
10803 * gimple-ssa-warn-alloca.c: Same.
10804 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
10805 * godump.c (go_type_decl): Same.
10806 * hash-map-tests.c (test_map_of_strings_to_int): Same.
10807 * hash-map.h: Same.
10808 * hash-set-tests.c (test_set_of_strings): Same.
10809 * hsa-brig.c: Same.
10810 * hsa-common.h: Same.
10811 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
10812 * input.c (assert_loceq): Same.
10813 * input.h: Same.
10814 * ipa-cp.c: Same.
10815 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
10816 * ipa-fnsummary.h: Same.
10817 * ipa-inline.h: Same.
10818 * ipa-prop.h: Same.
10819 * ipa-split.c (visit_bb): Same.
10820 * ira-int.h (minmax_set_iter_next): Same.
10821 * loop-invariant.c: Same.
10822 * loop-iv.c: Same.
10823 * lra-eliminations.c: Same.
10824 * lra-int.h: Same.
10825 * lra-lives.c (mark_regno_dead): Same.
10826 * lra-remat.c: Same.
10827 * lra-spills.c: Same.
10828 * lto-streamer.h: Same.
10829 * mem-stats.h: Same.
10830 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
10831 * omp-low.c (omp_clause_aligned_alignment): Same.
10832 * optabs-query.h (get_vcond_eq_icode): Same.
10833 * optabs.h: Same.
10834 * opts.c (wrap_help): Same.
10835 * poly-int.h: Same.
10836 * predict.c (predict_paths_leading_to_edge): Same.
10837 * pretty-print.h: Same.
10838 * profile-count.h: Same.
10839 * read-md.h: Same.
10840 * read-rtl-function.c: Same.
10841 * ree.c: Same.
10842 * reginfo.c: Same.
10843 * regrename.c: Same.
10844 * regrename.h: Same.
10845 * reload.h: Same.
10846 * rtl-iter.h: Same.
10847 * rtl.h (costs_add_n_insns): Same.
10848 * sanopt.c: Same.
10849 * sched-int.h: Same.
10850 * sel-sched-ir.h: Same.
10851 * selftest.h: Same.
10852 * sese.h (vec_find): Same.
10853 * stmt.c: Same.
10854 * target-globals.h: Same.
10855 * tree-affine.c (aff_combination_find_elt): Same.
10856 * tree-affine.h: Same.
10857 * tree-data-ref.h: Same.
10858 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
10859 * tree-predcom.c: Same.
10860 * tree-scalar-evolution.c (find_var_scev_info): Same.
10861 * tree-ssa-alias.h: Same.
10862 * tree-ssa-ccp.c: Same.
10863 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
10864 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
10865 (rewrite_mem_refs): Same.
10866 (execute_sm_if_changed): Same.
10867 (hoist_memory_references): Same.
10868 * tree-ssa-loop-ivopts.c (operator<=): Same.
10869 * tree-ssa-loop.h: Same.
10870 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
10871 * tree-ssa-structalias.c: Same.
10872 * tree-switch-conversion.h (cluster::cluster): Same.
10873 (simple_cluster::simple_cluster): Same.
10874 * tree-vect-patterns.c (type_conversion_p): Same.
10875 * tree-vectorizer.c (dump_stmt_cost): Same.
10876 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
10877 * tree.c (protected_set_expr_location): Same.
10878 * tree.h (desired_pro_or_demotion_p): Same.
10879 (fndecl_built_in_p): Same.
10880 * unique-ptr-tests.cc: Same.
10881 * var-tracking.c (delete_variable_part): Same.
10882 * varasm.c (assemble_real): Same.
10883 (tree_output_constant_def): Same.
10884 * vec.c: Same.
10885 * wide-int-bitmask.h: Same.
10886 * wide-int.h (decompose): Same.
10887
10888 2019-07-09 Richard Biener <rguenther@suse.de>
10889
10890 PR tree-optimization/91114
10891 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
10892 find a vector type isn't fatal.
10893
10894 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
10895
10896 * config/aarch64/aarch64-simd.md
10897 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
10898 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
10899 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
10900 (*aarch64_crypto_aese_fused,
10901 *aarch64_crypto_aesd_fused): Update to new definition.
10902 * config/aarch64/aarch64.c
10903 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
10904
10905 2019-07-09 Richard Biener <rguenther@suse.de>
10906
10907 * gimple-match.h (gimple_match_op::resimplify): New.
10908 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
10909 gimple_resimplify4, gimple_resimplify5): Remove.
10910 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
10911 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
10912 Make static.
10913 (gimple_match_op::resimplify): New.
10914 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
10915 according to availability. Use gimple_match_op::resimplify.
10916
10917 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
10918
10919 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
10920
10921 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
10922
10923 * config/arm/crypto.md:
10924 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
10925 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
10926 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
10927 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
10928 * config/arm/arm.c
10929 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
10930 * config/arm/aarch-common-protos.h
10931 (aarch_crypto_can_dual_issue): Remove.
10932 * config/arm/aarch-common.c
10933 (aarch_crypto_can_dual_issue): Likewise.
10934 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
10935 * config/arm/cortex-a53.md: Likewise.
10936 * config/arm/cortex-a57.md: Likewise.
10937 * config/arm/iterators.md:
10938 (CRYPTO_BINARY): Redefine.
10939 (CRYPTO_UNARY): Removed.
10940 (CRYPTO_AES, CRYPTO_AESMC): New.
10941
10942 2019-07-09 Richard Biener <rguenther@suse.de>
10943
10944 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
10945 (vn_reference_lookup_3): If the main ref has no access path recorded
10946 but orig_ref has use it to do access-path based disambiguation.
10947 (vn_reference_lookup_pieces): Adjust.
10948 (vn_reference_lookup): Pass down original ref if we valueized.
10949
10950 2019-07-09 Martin Liska <mliska@suse.cz>
10951
10952 * doc/extend.texi: Document influence on loop
10953 optimizers.
10954
10955 2019-07-09 Martin Liska <mliska@suse.cz>
10956
10957 * lto-compress.c (lto_normalized_zstd_level): Do not use
10958 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
10959 of libzstd. One can use 0 as a default compression level.
10960
10961 2019-07-09 Martin Liska <mliska@suse.cz>
10962
10963 * doc/invoke.texi: Add link from -fprofile-dir option.
10964 Use better wording for 'gcno filename'.
10965
10966 2019-07-08 Martin Sebor <msebor@redhat.com>
10967
10968 PR middle-end/71924
10969 PR middle-end/90549
10970 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
10971 comment.
10972 (args_loc_t): New type.
10973 (args_loc_t, locmap_t): same.
10974 (diag_returned_locals): New function.
10975 (is_addr_local): Same.
10976 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
10977 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
10978 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
10979
10980 2019-07-08 Jakub Jelinek <jakub@redhat.com>
10981
10982 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
10983 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
10984 and casts in offset when different, both through gimple stmts
10985 and through trees. Rewritten using loops to minimize code duplication
10986 for each operand.
10987
10988 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
10989
10990 * emit-rtl.c (set_insn_locations): New function moved from...
10991 * function.c (set_insn_locations): ...here.
10992 * ira-emit.c (emit_moves): Propagate location of the first instruction
10993 to the inserted move instructions.
10994 * reg-stack.c (compensate_edge): Set the location if the sequence is
10995 inserted on the edge.
10996 * rtl.h (set_insn_locations): Declare.
10997
10998 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
10999
11000 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
11001 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
11002 .machine string.
11003
11004 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
11005
11006 PR rtl-optimization/88233
11007 * common.opt (fsplit-wide-types-early): New option.
11008 * common/config/rs6000/rs6000-common.c
11009 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
11010 OPT_LEVELS_ALL.
11011 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
11012 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
11013 flag_split_wide_types_early.
11014 (pass_data_lower_subreg3): New.
11015 (pass_lower_subreg3): New.
11016 (make_pass_lower_subreg3): New.
11017 * passes.def (pass_lower_subreg2): Move after the loop passes.
11018 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
11019 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
11020 the pass pipeline; its previous place is taken by ...
11021 (make_pass_lower_subreg3): ... this.
11022
11023 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11024
11025 * config/s390/s390.c (s390_shift_truncation_mask): Define.
11026 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11027
11028 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11029
11030 * config/s390/constraints.md: Add new jsc constraint.
11031 * config/s390/predicates.md: New predicates.
11032 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
11033 * config/s390/s390.c (s390_valid_shift_count): New function.
11034 (print_shift_count_operand): Use s390_valid_shift_count.
11035 (print_operand): Likewise.
11036 * config/s390/s390.md: Use new predicate.
11037 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
11038 * config/s390/vector.md: Use new predicate.
11039
11040 2019-07-08 Andrew Waterman <andrew@sifive.com>
11041 Jim Wilson <jimw@sifive.com>
11042
11043 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
11044 bitsize instead of BITS_PER_WORD.
11045
11046 2019-07-08 Martin Liska <mliska@suse.cz>
11047
11048 * collect2.c (defined): Revert to before r254460.
11049 (scan_prog_file): Revert to before r254460.
11050
11051 2019-07-08 Richard Biener <rguenther@suse.de>
11052
11053 PR tree-optimization/83518
11054 * tree-ssa-sccvn.c: Include splay-tree.h.
11055 (struct pd_range, struct pd_data): New.
11056 (struct vn_walk_cb_data): Add data to track partial definitions.
11057 (vn_walk_cb_data::~vn_walk_cb_data): New.
11058 (vn_walk_cb_data::push_partial_def): New.
11059 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
11060 (vn_reference_lookup_2): When partial defs are registered give up.
11061 (vn_reference_lookup_3): Track partial defs for memset and
11062 constructor zeroing and for defs from constants.
11063
11064 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11065
11066 * doc/install.texi (bootstrap-Og): Document.
11067
11068 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11069
11070 * config/riscv/pic.md (*local_pic_load_s<mode>)
11071 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
11072 referenced by <mode>, giving...
11073 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
11074 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
11075 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
11076 use <X:MODE> for the mode attribute.
11077
11078 2019-07-07 Jeff Law <law@redhat.com>
11079
11080 PR tree-optimization/91090
11081 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
11082 in handling of ranges to simplify switch statements.
11083
11084 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11085
11086 * config/darwin.c (darwin_override_options): Make a final check on PIC
11087 options.
11088
11089 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11090
11091 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
11092 on for kernel code.
11093
11094 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11095
11096 PR target/91068
11097 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
11098 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
11099 instead of matching them to "l" output operands.
11100
11101 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11102
11103 * config/mips/mips.c (mips_split_move): Zero-initialize addr
11104 and check whether addr.reg is nonnull before using it.
11105
11106 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11107
11108 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
11109 ctx->for_simd_scan_phase simd copy the outer var to the privatized
11110 variable(s). For conditional lastprivate look through outer
11111 GIMPLE_OMP_SCAN context.
11112 (lower_omp_1): For conditional lastprivate look through outer
11113 GIMPLE_OMP_SCAN context.
11114
11115 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
11116 member to combined_into_simd_safelen1.
11117 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
11118 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
11119 clauses if ctx->combined_into_simd_safelen1 put statements after the
11120 predicate conditionalized block rather than into it.
11121
11122 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11123
11124 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
11125 operand 1.
11126 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
11127 Make the choice of <mode> explicit, giving...
11128 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
11129
11130 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11131
11132 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
11133 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
11134 of .md attributes.
11135 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
11136 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
11137 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
11138 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
11139 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
11140 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
11141 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
11142 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
11143 (*avx512f_scatterdi<mode>): Likewise.
11144 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
11145
11146 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11147
11148 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
11149 specify the mode iterator referenced by <mode>, giving...
11150 (*push1_h8300hs_<QHI:mode>): ...this.
11151
11152 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11153
11154 * config/gcn/gcn-valu.md
11155 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
11156 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
11157 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
11158 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
11159 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
11160 but using the _exec comparison patterns.
11161 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
11162 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
11163 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
11164 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
11165 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
11166 but using the _exec comparison patterns.
11167
11168 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11169
11170 * config/arm/sync.md
11171 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
11172 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
11173 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
11174 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
11175 <SIDI:cas_cmp_str>.
11176
11177 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11178
11179 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
11180 (maybe_lookup_ctx): Add forward declaration.
11181 (omp_find_scan): Likewise. Walk into body of simd if composited
11182 with worksharing loop.
11183 (scan_omp_simd_scan): New function.
11184 (scan_omp_1_stmt): Call it.
11185 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11186 ctx->for_simd_scan_phase.
11187 (lower_rec_input_clauses): Do much less work for inscan reductions
11188 in ctx->for_simd_scan_phase is_simd regions.
11189 (lower_omp_scan): Set is_simd also on simd constructs composited
11190 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
11191 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
11192 emit their body after in simd constructs composited with worksharing
11193 loop.
11194 (lower_omp_for_scan): Handle worksharing loop composited with simd.
11195
11196 * omp-low.c (omp_find_scan): Make static.
11197 (lower_omp_for_scan): Fix order of merge arguments in input phase of
11198 the second loop, var2 represents the first partial sum and so needs
11199 to go before rprivb[ivar].
11200
11201 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
11202
11203 * config/rs6000/rs6000-logue.c: Remove unused code.
11204
11205 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11206
11207 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11208
11209 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
11210
11211 PR target/90712
11212 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11213 check with a frame laid out check.
11214
11215 2019-07-05 Richard Biener <rguenther@suse.de>
11216
11217 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11218 when comparing against a store with possibly the same value.
11219
11220 2019-07-05 Richard Biener <rguenther@suse.de>
11221
11222 PR tree-optimization/91091
11223 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11224 (walk_non_aliased_vuses): Likewise.
11225 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11226 (get_continuation_for_phi): New tbaa_p parameter and pass
11227 it down.
11228 (walk_non_aliased_vuses): Likewise.
11229 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11230 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11231 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11232 Likewise.
11233 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11234 (adjust_offsets_for_equal_base_address): New function.
11235 (vn_reference_lookup_3): Use it to catch more base equivalences.
11236 Handle and pass down tbaa_p flag.
11237 (vn_reference_lookup_pieces): Adjust.
11238 (vn_reference_lookup): Remove alias-set altering, instead pass
11239 down false as tbaa_p.
11240
11241 2019-07-05 Richard Biener <rguenther@suse.de>
11242
11243 PR tree-optimization/91091
11244 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11245 accesses can happen with -fno-strict-aliasing.
11246
11247 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
11248
11249 * tree-ssa-alias.c (alias_stats): Add
11250 nonoverlapping_component_refs_since_match_p_must_overlap.
11251 (dump_alias_stats): Print it.
11252 (nonoverlapping_component_refs_since_match_p): Add early exit.
11253 (nonoverlapping_component_refs_p): Do not account early exit.
11254
11255 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11256
11257 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11258 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11259 (emit_eh_dispatch): Delete.
11260 (lower_catch): Emit the eh_dispatch manually and set the location of
11261 the first catch statement onto it.
11262 (lower_eh_filter): Emit the eh_dispatch manually and set location.
11263 (lower_eh_dispatch): Propagate location.
11264 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11265 (eliminate_build): Likewise.
11266
11267 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11268
11269 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11270 phi nodes if possible.
11271 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11272 location info on the newly created statement.
11273 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11274 newly created increment if needed.
11275
11276 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11277
11278 PR middle-end/78884
11279 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11280 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11281 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11282 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11283 ctx->add_safelen1 is set.
11284
11285 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11286 GOMP_loop_start at the start of second worksharing loop in a scan.
11287 For nowait, don't emit GOMP_loop_end_nowait at the end of first
11288 worksharing loop in a scan even if there are conditional lastprivates,
11289 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11290
11291 2019-07-04 Jan Hubicka <jh@suse.cz>
11292
11293 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11294 Fix check for match in the ref walk.
11295
11296 2019-07-04 Martin Liska <mliska@suse.cz>
11297
11298 * tree-ssa-loop-niter.c
11299 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11300 (estimate_numbers_of_iterations):
11301 Support __builtin_expect_with_probability for analysis
11302 of # of loop iterations.
11303
11304 2019-07-04 Alexandre Oliva <oliva@adacore.com>
11305
11306 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11307 * except.c: Likewise.
11308 * expr.c (expand_expr_real_1): Reject it.
11309 * gimplify.c (gimplify_expr): Gimplify it, within
11310 TRY_FINALLY_EXPR.
11311 * tree-dump.c (dequeue_and_dump): Dump it.
11312 * tree-pretty-print.c (dump_generic_node): Likewise.
11313 * tree.c (block_may_fallthru): Handle it.
11314 * tree.def (EH_ELSE_EXPR): Introduce it.
11315 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11316 with GIMPLE_EH_ELSE as try/finally/else.
11317
11318 2019-07-04 Richard Biener <rguenther@suse.de>
11319
11320 PR ipa/91062
11321 * tree-pass.h (execute_all_ipa_transforms): Add a flag
11322 parameter whether to disable GC collection.
11323 * passes.c (execute_one_ipa_transform_pass): Likewise, and
11324 honor it.
11325 (execute_all_ipa_transforms): Likewise and pass it down.
11326 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11327 collection from applying IPA transforms.
11328 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11329 from applying IPA transforms.
11330
11331 2019-07-04 Richard Biener <rguenther@suse.de>
11332
11333 PR tree-optimization/90911
11334 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11335 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11336 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11337 scalar_loop_scaling.
11338 (vect_transform_loop): Scale scalar loop profile if needed.
11339 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11340 the loop copy from if-conversion adjust edge probabilities
11341 and scale the vectorized loop body profile, queue the scalar
11342 profile for updating after peeling.
11343
11344 2019-07-04 Jan Hubicka <jh@suse.cz>
11345
11346 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11347 parameters; return early for must-alias.
11348 (indirect_ref_may_alias_decl_p): Likewise; when establishing
11349 outer types match, try nonoverlapping_component_refs
11350 if must-alias is not obvious.
11351 (indirect_refs_may_alias_p): Likewise.
11352 (refs_may_alias_p_2): Likewise.
11353
11354 2019-07-04 Richard Biener <rguenther@suse.de>
11355
11356 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11357 argument.
11358 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11359 globals into...
11360 (struct vn_walk_cb_data): New callback data struct.
11361 (vn_reference_lookup_2): Adjust.
11362 (vn_reference_lookup_3): Likewise.
11363 (vn_reference_lookup_pieces): Likewise.
11364 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11365 (visit_reference_op_load): Adjust.
11366
11367 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11368
11369 PR tree-optimization/91063
11370 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11371 stmt from stmts sequence before calling vect_init_vector_1.
11372 Formatting fix.
11373
11374 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11375
11376 PR target/88833
11377 * fwprop.c (reg_single_def_p): New function.
11378 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11379 (forward_propagate_into): New parameter reg_prop_only
11380 with default value false.
11381 Propagate def's src into loop only if SET_SRC and SET_DEST
11382 of def_set have single definitions.
11383 Likewise if reg_prop_only is set to true.
11384 (fwprop): New param fwprop_addr_p.
11385 Integrate fwprop_addr into fwprop.
11386 (fwprop_addr): Remove.
11387 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11388 to true.
11389 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11390 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11391 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11392
11393 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11394
11395 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11396 in worksharing loop scans.
11397
11398 PR tree-optimization/91074
11399 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
11400 temporary.
11401
11402 PR rtl-optimization/90756
11403 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
11404 for VECTOR_TYPE_P.
11405
11406 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
11407
11408 * config/aarch64/aarch64.md: Remove redundant constraints from
11409 define_expand but keep some patterns untouched if they are
11410 specially selected by TARGET_SECONDARY_RELOAD hook.
11411 * config/aarch64/aarch64-sve.md: Likewise.
11412 * config/aarch64/atomics.md: Remove redundant constraints from
11413 define_expand.
11414 * config/aarch64/aarch64-simd.md: Likewise.
11415
11416 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11417
11418 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
11419 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
11420 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
11421 clauses.
11422 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
11423 DARWIN_NOPIE_SPEC.
11424
11425 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11426
11427 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
11428 (STARTFILE_SPEC): Split crt3 into a separate spec.
11429 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
11430 (DARWIN_CRT2_SPEC): New.
11431 (DARWIN_CRT3_SPEC): New.
11432 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
11433 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
11434 (DARWIN_CRT3_SPEC): New.
11435
11436 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
11437
11438 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
11439 Change the RTL attribute "length" from "4" to "*" to allow the
11440 length attribute to be adjusted automatically for prefixed load,
11441 store, and add immediate instructions.
11442 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
11443 Likewise.
11444 (extendsi<mode>2, EXTSI iterator): Likewise.
11445 (movsi_internal1): Likewise.
11446 (movsi_from_sf): Likewise.
11447 (movdi_from_sf_zero_ext): Likewise.
11448 (mov<mode>_internal): Likewise.
11449 (movcc_internal1, QHI iterator): Likewise.
11450 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
11451 (movsf_from_si): Likewise.
11452 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
11453 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
11454 (mov<mode>, FMOVE128 iterator): Likewise.
11455 (movdi_internal64): Likewise.
11456 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
11457 Likewise.
11458 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
11459 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
11460 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
11461 (vsx_splat_v4sf): Likewise.
11462
11463 2019-07-03 Mark Wielaard <mark@klomp.org>
11464
11465 PR debug/90981
11466 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
11467 DW_AT_addr_base if there is actually a .debug_addr section with
11468 addresses.
11469 (output_addr_table): Add DWARF5 table header generation here after
11470 checking there are actually any addresses from...
11471 (dwarf2out_finish): ...here.
11472
11473 2019-07-03 Richard Biener <rguenther@suse.de>
11474
11475 PR middle-end/91069
11476 * match.pd (vec_perm -> bit_insert): Fix element read from
11477 first vector.
11478
11479 2019-07-03 Martin Liska <mliska@suse.cz>
11480
11481 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
11482 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
11483 condition.
11484 * generic-match-head.c: Include dbgcnt.h.
11485 * gimple-match-head.c: Likewise.
11486
11487 2019-07-03 Martin Liska <mliska@suse.cz>
11488
11489 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
11490 (GCOV_COUNTER_V_TOPN): New.
11491 (GCOV_COUNTER_V_INDIR): Use _topn.
11492 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
11493 (GCOV_TOPN_VALUES): New.
11494 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
11495 (GCOV_TOPN_VALUES_COUNTERS): New.
11496 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
11497 * tree-profile.c:
11498 (gimple_init_gcov_profiler): Rename variables from one_value
11499 to topn_values.
11500 (gimple_gen_one_value_profiler): Remove.
11501 (gimple_gen_topn_values_profiler): New function.
11502 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
11503 names instead of SINGLE_VALUE.
11504 (stream_out_histogram_value): Likewise.
11505 (stream_in_histogram_value): Likewise.
11506 (get_most_common_single_value): Likewise.
11507 (gimple_divmod_fixed_value_transform): Likewise.
11508 (gimple_stringops_transform): Likewise.
11509 (gimple_divmod_values_to_profile): Likewise.
11510 (gimple_stringops_values_to_profile): Likewise.
11511 (gimple_find_values_to_profile): Likewise.
11512 * value-prof.h (enum hist_type): Rename to TOPN.
11513 (gimple_gen_one_value_profiler): Remove.
11514 (gimple_gen_topn_values_profiler): New.
11515
11516 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
11517
11518 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
11519 if it has the DW_AT_data_member_location attribute.
11520
11521 2019-07-03 Richard Biener <rguenther@suse.de>
11522
11523 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
11524 dumping.
11525
11526 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
11527
11528 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
11529 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
11530 (tlsdesc_small_sve_<mode>): Likewise.
11531
11532 2019-07-03 Martin Liska <mliska@suse.cz>
11533
11534 * Makefile.in: Define ZSTD_LIB.
11535 * common.opt: Adjust compression level
11536 to support also zstd levels.
11537 * config.in: Regenerate.
11538 * configure: Likewise.
11539 * configure.ac: Add --with-zstd and --with-zstd-include options
11540 and detect ZSTD.
11541 * doc/install.texi: Mention zstd dependency.
11542 * gcc.c: Print supported LTO compression algorithms.
11543 * lto-compress.c (lto_normalized_zstd_level): Likewise.
11544 (lto_compression_zstd): Likewise.
11545 (lto_uncompression_zstd): Likewise.
11546 (lto_end_compression): Dispatch in between zlib and zstd.
11547 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
11548 (lto_uncompression_zlib): Make it static.
11549 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
11550 * lto-section-in.c (lto_get_section_data): Pass info
11551 about used compression.
11552 * lto-streamer-out.c: By default use zstd when possible.
11553 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
11554 (TV_IPA_LTO_COMPRESS): Likewise for compression.
11555
11556 2019-07-03 Martin Liska <mliska@suse.cz>
11557
11558 * lto-section-in.c (lto_get_section_data): Add "lto" section.
11559 * lto-section-out.c (lto_destroy_simple_output_block): Never
11560 compress LTO_section_lto section.
11561 * lto-streamer-out.c (produce_asm): Do not set major_version
11562 and minor_version.
11563 (lto_output_toplevel_asms): Likewise.
11564 (produce_lto_section): New function.
11565 (lto_output): Call produce_lto_section.
11566 (lto_write_mode_table): Do not set major_version and
11567 minor_version.
11568 (produce_asm_for_decls): Likewise.
11569 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
11570 type.
11571 (struct lto_header): Remove.
11572 (struct lto_section): New struct.
11573 (struct lto_simple_header): Do not inherit from lto_header.
11574 (struct lto_file_decl_data): Add lto_section_header field.
11575
11576 2019-07-03 Martin Liska <mliska@suse.cz>
11577
11578 * lra-eliminations.c (eliminate_regs_in_insn): Remove
11579 dead assignemts.
11580 * reg-stack.c (check_asm_stack_operands): Likewise.
11581 * tree-ssa-structalias.c (create_function_info_for): Likewise.
11582 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11583 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
11584 force_expand_binop.
11585
11586 2019-07-03 Martin Liska <mliska@suse.cz>
11587
11588 PR tree-optimization/90892
11589 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
11590 in string constants.
11591
11592 2019-07-03 Martin Liska <mliska@suse.cz>
11593
11594 PR middle-end/90899
11595 * multiple_target.c (create_dispatcher_calls): Add to comdat
11596 group only if set for ifunc.
11597
11598 2019-07-03 Martin Liska <mliska@suse.cz>
11599
11600 PR target/88056
11601 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11602 Define local_object_name in outer scope in order to handle
11603 use-after-scope issue.
11604
11605 2019-07-03 Martin Liska <mliska@suse.cz>
11606
11607 * common.opt: Add fprofile-note.
11608 * coverage.c (coverage_init): Append the option
11609 to bbg_file_name.
11610 * doc/invoke.texi: Document -fprofile-note.
11611
11612 2019-07-03 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR tree-optimization/91033
11615 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
11616 vect_analyze_data_refs): Add bool * arguments.
11617 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
11618 if failure is due to scatter/gather, set *fatal to false if non-NULL.
11619 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11620 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
11621 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
11622 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
11623 vect_analyze_data_refs caller.
11624
11625 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
11626 clause.
11627 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
11628 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
11629 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
11630 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11631 OMP_CLAUSE__SCANTEMP_ entry.
11632 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
11633 * tree-pretty-print.c (dump_omp_clause): Likewise.
11634 * tree-nested.c (convert_nonlocal_omp_clauses,
11635 convert_local_omp_clauses): Likewise.
11636 * omp-general.h (struct omp_for_data): Add have_scantemp and
11637 have_nonctrl_scantemp members.
11638 * omp-general.c (omp_extract_for_data): Initialize them.
11639 * omp-low.c (struct omp_context): Add scan_exclusive member.
11640 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
11641 result again with GF_OMP_FOR_KIND_MASK. Initialize also
11642 ctx->scan_exclusive.
11643 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
11644 of !ctx->scan_inclusive.
11645 (lower_rec_input_clauses): Simplify gimplification of dtors using
11646 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
11647 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
11648 loops. Don't add barrier for reduction_omp_orig_ref if
11649 ctx->scan_??xclusive.
11650 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
11651 (lower_omp_scan): Use ctx->scan_exclusive instead
11652 of !ctx->scan_inclusive. Handle worksharing loops with inscan
11653 reductions. Use new_vard != new_var instead of repeated
11654 omp_is_reference calls.
11655 (omp_find_scan, lower_omp_for_scan): New functions.
11656 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
11657 inscan reductions.
11658 * omp-expand.c (expand_omp_scantemp_alloc): New function.
11659 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
11660 and fd->have_scantemp.
11661
11662 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
11663 on worksharing loop propagate it as shared clause to containing
11664 combined parallel.
11665
11666 * omp-expand.c (expand_omp_for_static_nochunk,
11667 expand_omp_for_static_chunk): For nowait worksharing loop with
11668 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
11669 at the end.
11670
11671 2019-07-02 qing zhao <qing.zhao@oracle.com>
11672
11673 PR preprocessor/90581
11674 * doc/cppopts.texi: Add document for -fmax-include-depth.
11675 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
11676
11677 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
11678
11679 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
11680 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
11681 (mmx_packssdw): Ditto.
11682 (mmx_punpckhbw): Ditto.
11683 (mmx_punpcklbw): Ditto.
11684 (mmx_punpckhwd): Ditto.
11685 (mmx_punpcklwd): Ditto.
11686 (mmx_punpckhdq): Ditto.
11687 (mmx_punpckldq): Ditto.
11688 (*vec_dupv4hi): Ditto.
11689 (*vec_dupv2si): Ditto.
11690 (mmx_pmovmskb): Ditto.
11691 * config/i386/sse.md (sse_cvtpi2ps): Use
11692 TARGET_SSE2 && SSE_REG_P in split condition.
11693 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
11694 TARGET_SSSE3 && SSE_REGNO_P in split condition.
11695 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
11696 (ssse3_pshufbv8qi3): Ditto.
11697 (ssse3_palignrdi): Ditto.
11698
11699 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
11700
11701 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
11702 with inlined save and restore.
11703
11704 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
11705
11706 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
11707 to be inserted on single successor edge of the entry block. Then call
11708 commit_edge_insertions instead of inserting the instructions manually.
11709 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
11710 RTL expansion and rebuild jump labels chain.
11711
11712 2019-07-02 Richard Biener <rguenther@suse.de>
11713
11714 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
11715 TI_CHREC_KNOWN.
11716 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11717 Define here.
11718 * tree.c (build_common_tree_nodes): Initialize them.
11719 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11720 Make declarations comments.
11721 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
11722 chrec_known): Remove definitions.
11723 (initialize_scalar_evolutions_analyzer): Remove.
11724 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
11725 * tree-streamer.c (preload_common_nodes): Do not preload
11726 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
11727
11728 2019-07-02 Jan Hubicka <jh@suse.cz>
11729
11730 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
11731 sanity check.
11732
11733 2019-07-02 Jan Hubicka <jh@suse.cz>
11734
11735 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
11736 to ..
11737 (nonoverlapping_component_refs_since_match_p): ... this one;
11738 handle also non-decl bases; return -1 if search gave up.
11739 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
11740 nonoverlapping_component_refs_of_decl_p_no_alias to
11741 nonoverlapping_component_refs_since_match_p_may_alias,
11742 nonoverlapping_component_refs_since_match_p_no_alias.
11743 (dump_alias_stats): Update dumping.
11744 (aliasing_matching_component_refs_p): Break out from ...;
11745 dispatch to nonoverlapping_component_refs_for_decl_p
11746 and nonoverlapping_component_refs_since_match_p.
11747 (aliasing_component_refs_p): ... here; call
11748 nonoverlapping_component_refs_p in scenarios where we can not
11749 precisely determine base match.
11750 (decl_refs_may_alias_p): Use
11751 nonoverlapping_component_refs_since_match_p.
11752 (indirect_ref_may_alias_decl_p): Do not call
11753 nonoverlapping_component_refs_p.
11754 (indirect_refs_may_alias_p): Likewise.
11755
11756 2019-07-02 Jan Hubicka <jh@suse.cz>
11757
11758 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
11759 to clobber of return value.
11760
11761 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11762
11763 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
11764 for is_neon_type instructions that have not already been categorized.
11765
11766 2019-07-02 Richard Biener <rguenther@suse.de>
11767
11768 PR tree-optimization/58483
11769 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
11770 for MEM_REF base hashing.
11771 (equal_mem_array_ref_p): Likewise for base comparison.
11772
11773 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11774
11775 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
11776 parameterized name.
11777 (signbit<mode>2): Use that name. Simplify.
11778
11779 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
11780
11781 PR middle-end/66726
11782 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
11783 Tune heuristic from PR71016 to allow MIN / MAX.
11784
11785 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11786
11787 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
11788 parameterized name.
11789 (abs<mode>2): Use that name. Simplify.
11790
11791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11792
11793 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
11794 parameterized name.
11795 (neg<mode>2): Use that name. Simplify.
11796
11797 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11798
11799 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
11800 name.
11801 (abs<mode>2): Use that name. Simplify.
11802
11803 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11804
11805 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
11806 name.
11807 (neg<mode>2): Use that name. Simplify.
11808
11809 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
11810
11811 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
11812 ("enabled" attribute): Handle sse_noavx isa attribute.
11813 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
11814 Use TARGET_SSE && SSE_REGNO_P in split condition.
11815 (*vec_dupv2sf): Ditto.
11816
11817 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11818
11819 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
11820 name.
11821 (floatsi<mode>2): Use that name. Simplify.
11822
11823 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11824
11825 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
11826 parameterized name.
11827 (extenddf<mode>2_vsx): Make this a parameterized name.
11828 (extenddf<mode>2): Use those names. Simplify.
11829
11830 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11831
11832 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
11833 name.
11834 (eh_return): Use that name. Simplify.
11835
11836 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11837
11838 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
11839 (doloop_end): Use that name. Simplify.
11840
11841 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11842
11843 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
11844 parameterized name.
11845 (indirect_jump): Use that name. Simplify.
11846
11847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11848
11849 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
11850 parameterized name.
11851 (abs<mode>2): Use that name. Simplify.
11852
11853 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11854
11855 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
11856 parameterized name.
11857 (fix_trunc<mode>si2): Use that name. Simplify.
11858
11859 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11860
11861 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
11862 (allocate_stack): Use that name. Simplify.
11863
11864 2019-07-01 Martin Sebor <msebor@redhat.com>
11865
11866 PR middle-end/90923
11867 * hash-map.h (hash_map::put): On insertion invoke element ctor.
11868 (hash_map::get_or_insert): Same. Reformat comment.
11869 * hash-set.h (hash_set::add): On insertion invoke element ctor.
11870 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11871 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11872 * hash-table.h (hash_table::operator=): Prevent copy assignment.
11873 (hash_table::hash_table (const hash_table&)): Use copy ctor
11874 instead of assignment to copy elements.
11875
11876 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
11877 John David Anglin <danglin@gcc.gnu.org>
11878
11879 PR target/90963
11880 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
11881 using saved frame pointer.
11882
11883 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
11884
11885 PR middle-end/64242
11886 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
11887 Add frame clobber and schedule blockage.
11888
11889 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
11890
11891 * doc/invoke.texi (Link Options): Further editorial changes to
11892 -flinker-output docs.
11893
11894 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11895
11896 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
11897 Load both operands of a PLUS into registers separately.
11898
11899 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
11900
11901 * config/s390/vector.md: Fix shift count operand printing.
11902
11903 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11904
11905 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
11906
11907 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11908
11909 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
11910 Use recog_data to test for an output operand.
11911
11912 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11913
11914 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
11915 exclude any others that are disparaged or that are bound to need
11916 a reload or spill.
11917 (ira_get_dup_out_num): Expand comment.
11918
11919 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11920
11921 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
11922 constraint string for each operand/alternative combo. Only handle
11923 '%' at the start of constraint strings, and look for it outside
11924 the main loop.
11925
11926 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11927
11928 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
11929 alternative_mask instead of HARD_REG_SET to represent a
11930 bitmask of alternatives.
11931 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11932 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
11933
11934 2019-07-01 Martin Liska <mliska@suse.cz>
11935
11936 * edit-context.c (test_applying_fixits_unreadable_file): Do not
11937 use () for a constructor call.
11938 (test_applying_fixits_line_out_of_range): Likewise.
11939 * ggc-page.c (alloc_page): Use (void *) for %p printf format
11940 argument.
11941 (free_page): Likewise.
11942
11943 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
11944
11945 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
11946 parameter names to match usage (no functional change).
11947 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
11948
11949 2019-07-01 Richard Biener <rguenther@suse.de>
11950
11951 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
11952 pass parameter.
11953 (pass_fre::execute): Honor it.
11954 * passes.def: Adjust pass_fre invocations to allow iterating,
11955 add non-iterating pass_fre before late threading/dom.
11956
11957 2019-07-01 Richard Biener <rguenther@suse.de>
11958
11959 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
11960 TARGET_MEM_REF handling to also handle address-taken ones.
11961
11962 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
11963
11964 * doc/sourcebuild.texi (Effective-Target Keywords, Other
11965 hardware attributes): Document avx512vp2intersect.
11966
11967 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11968
11969 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
11970 (abs<mode>2): New expander.
11971 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
11972 Use CODE_FOR_ssse3_absv8qi2.
11973 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
11974 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
11975
11976 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11977
11978 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
11979 to sse, sse_noavx and avx. Update all uses.
11980
11981 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11982
11983 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
11984 (*mmx_<plusminus_insn><mode>3): Ditto.
11985 (*mmx_mulv4hi3"): Ditto.
11986 (*mmx_smulv4hi3_highpart): Ditto.
11987 (*mmx_umulv4hi3_highpart): Ditto.
11988 (*mmx_pmaddwd): Ditto.
11989 (*sse2_umulv1siv1di3): Ditto.
11990 (*mmx_<code>v4hi3): Ditto.
11991 (*mmx_<code>v8qi3): Ditto.
11992 (mmx_ashr<mode>3): Ditto.
11993 ("mmx_<shift_insn><mode>3): Ditto.
11994 (*mmx_eq<mode>3): Ditto.
11995 (mmx_gt<mode>3): Ditto.
11996 (mmx_andnot<mode>3): Ditto.
11997 (*mmx_<code><mode>3): Ditto.
11998 (*mmx_pinsrw): Ditto.
11999 (*mmx_pextrw): Ditto.
12000 (mmx_pshufw_1): Ditto.
12001 (*mmx_uavgv8qi3): Ditto.
12002 (*mmx_uavgv4hi3): Ditto.
12003 ("mmx_psadbw): Ditto.
12004 * config/i386/sse.md (sse_cvtps2pi): Ditto.
12005 (sse_cvttps2pi): Ditto.
12006 (ssse3_pmaddubsw): Ditto.
12007 (*ssse3_pmulhrswv4hi3): Ditto.
12008 (ssse3_psign<mode>3): Ditto.
12009
12010 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
12011
12012 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
12013 adjustment for bit-fields to all aggregate types.
12014
12015 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
12016
12017 * config/rs6000/predicates.md (pcrel_address): Use
12018 SYMBOL_REF_LOCAL_P to determine if a label is local.
12019 (pcrel_external_address): New predicate.
12020 (non_prefixed_mem_operand): Delete, predicate not used.
12021 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
12022 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
12023 addressing.
12024 (SYMBOL_REF_PCREL_P): Likewise.
12025
12026 PR target/91009
12027 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
12028 alternative.
12029 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
12030 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
12031 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
12032
12033 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12034
12035 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
12036 override on extra_headers.
12037
12038 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12039
12040 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
12041 * config/darwin-driver.c (darwin_default_min_version): Remove newline
12042 from warning.
12043 (darwin_driver_init): Likewise.
12044
12045 2019-06-28 Jan Beulich <jbeulich@suse.com>
12046
12047 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12048 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
12049 Eliminate redundant alternative.
12050
12051 2019-06-28 Jan Beulich <jbeulich@suse.com>
12052
12053 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12054 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
12055 Use vector_operand.
12056
12057 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
12058
12059 * config/arc/arc.c (arc_rtx_costs): All short instructions are
12060 having a lower cost regardless of the speed option.
12061
12062 2019-06-28 Jan Beulich <jbeulich@suse.com>
12063
12064 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
12065 vector_operand plus, on both alternatives, "Bm" constraint.
12066
12067 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
12068
12069 * config/arm/arm.md: Remove redundant constraints from
12070 define_expand but leave reload_inm and reload_outm patterns
12071 untouched since they need special constraints to work.
12072 * config/arm/arm-fixed.md: Remove redundant constraints from
12073 define_expand.
12074 * config/arm/iwmmxt.md: Likewise.
12075 * config/arm/neon.md: Likewise.
12076 * config/arm/sync.md: Likewise.
12077 * config/arm/thumb1.md: Likewise.
12078 * config/arm/vec-common.md: Likewise.
12079
12080 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
12081
12082 * doc/install.texi: Document --disable-tm-clone-registry.
12083
12084 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12085
12086 PR c++/91024
12087 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
12088 statements.
12089
12090 PR tree-optimization/91010
12091 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
12092 return true. Otherwise, don't call operand_equal_p if offset1 or
12093 offset2 is NULL and just return false.
12094
12095 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12096
12097 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
12098 user-specified float mode choice for kernel mode code.
12099
12100 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12101
12102 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
12103 spec.
12104
12105 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12106
12107 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
12108 use longcall for 64b code.
12109
12110 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
12111
12112 * builtins.c (get_memory_rtx): Fix comment.
12113 * optabs.def (movmem_optab): Change to cpymem_optab.
12114 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
12115 (emit_block_move_hints): Change movmem to cpymem.
12116 * defaults.h: Change movmem to cpymem.
12117 * targhooks.c (get_move_ratio): Change movmem to cpymem.
12118 (default_use_by_pieces_infrastructure_p): Ditto.
12119 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
12120 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
12121 to cpymem.
12122 * config/aarch64/aarch64.h: Change movmem to cpymem.
12123 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
12124 * config/alpha/alpha.h: Change movmem to cpymem in comment.
12125 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
12126 movmem to cpymem.
12127 * config/arc/arc-protos.h: Change movmem to cpymem.
12128 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
12129 * config/arc/arc.h: Change movmem to cpymem in comment.
12130 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
12131 * config/arm/arm-protos.h: Change movmem to cpymem in names.
12132 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
12133 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
12134 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
12135 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
12136 * config/avr/avr-protos.h: Change movmem to cpymem.
12137 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
12138 avr_out_movmem): Change movmem to cpymem.
12139 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
12140 Change movmem to cpymem.
12141 * config/bfin/bfin-protos.h: Change movmem to cpymem.
12142 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
12143 Change movmem to cpymem.
12144 * config/bfin/bfin.h: Change movmem to cpymem in comment.
12145 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
12146 * config/c6x/c6x-protos.h: Change movmem to cpymem.
12147 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
12148 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
12149 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
12150 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
12151 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
12152 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
12153 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
12154 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
12155 expand_small_cpymem_or_setmem,
12156 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
12157 expand_set_or_cpymem_constant_prologue,
12158 ix86_expand_set_or_cpymem): Change movmem to cpymem.
12159 * config/i386/i386-protos.h: Change movmem to cpymem.
12160 * config/i386/i386.h: Change movmem to cpymem in comment.
12161 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
12162 (setmem<mode>): Change expansion function name.
12163 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
12164 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
12165 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
12166 * config/m32c/m32c-protos.h: Change movmem to cpymem.
12167 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
12168 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
12169 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
12170 to cpymem.
12171 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
12172 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
12173 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
12174 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
12175 Change movmem to cpymem.
12176 * config/mips/mips.h: Change movmem to cpymem.
12177 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
12178 * config/nds32/nds32-memory-manipulation.c
12179 (nds32_expand_movmemsi_loop_unknown_size,
12180 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
12181 nds32_expand_movmemsi_unroll,
12182 nds32_expand_movmemsi): Change movmem to cpymem.
12183 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
12184 * config/nds32/nds32-protos.h: Change movmem to cpymem.
12185 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12186 (pa_adjust_insn_length): Change call to compute_movmem_length.
12187 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12188 movmemdi, movmemdi_prereload,
12189 movmemdi_postreload): Change movmem to cpymem.
12190 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12191 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12192 * config/riscv/riscv.c: Change movmem to cpymem in comment.
12193 * config/riscv/riscv.h: Change movmem to cpymem.
12194 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12195 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12196 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12197 movmem to cpymem.
12198 * config/s390/s390-protos.h: Change movmem to cpymem.
12199 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12200 s390_expand_insv): Change movmem to cpymem.
12201 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12202 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12203 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12204 * config/sparc/sparc.h: Change movmem to cpymem in comment.
12205 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12206 for nonexistent function.
12207 * config/vax/vax.h: Change movmem to cpymem in comment.
12208 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12209 * config/visium/visium.h: Change movmem to cpymem in comment.
12210 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12211 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12212 * doc/md.texi: Change movmem to cpymem and update description to match.
12213 * doc/rtl.texi: Change movmem to cpymem.
12214 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12215 * doc/tm.texi: Regenerate.
12216
12217 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
12218
12219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12220 -fvariable-expansion-in-unroller by default.
12221 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12222 default for Power.
12223
12224 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
12225
12226 Revert
12227 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12228 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12229
12230 * config.gcc(rs6000-*-*): Define target_gtfiles.
12231
12232 2019-06-27 Jan Hubicka <jh@suse.cz>
12233
12234 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12235 (add_type_duplicate): When odr hash is not allocated, to nothing.
12236 (odr_based_tbaa_p): New function.
12237 (set_type_canonical_for_odr_type): New function.
12238 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12239 set_type_canonical_for_odr_type): New.
12240 * tree.c (gimple_canonical_types_compatible_p): ODR types with
12241 ODR based TBAA are not equivalent to non-ODR types.
12242
12243 2019-06-27 Martin Liska <mliska@suse.cz>
12244
12245 PR tree-optimization/90974
12246 PR rtl-optimization/90975
12247 PR rtl-optimization/90976
12248 PR target/91016
12249 PR tree-optimization/91017
12250 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12251 unused tmp.
12252 * lra.c (lra_set_insn_recog_data): Remove a leftover from
12253 initial commit of IRA.
12254 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12255 of op0 and op1.
12256 * tree-vect-loop.c (vect_create_epilog_for_reduction):
12257 Remove unused mode1.
12258 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12259 to new_stmt_info.
12260
12261 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12262
12263 PR target/90991
12264 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12265 instead of register_operand for operands[1], add m to its constraints
12266 if operands[2] uses "C" constraint. Ensure in condition that if
12267 operands[2] is not 0, then operands[1] is not a MEM. For last two
12268 alternatives, use unaligned loads instead of aligned if operands[1] is
12269 misaligned_operand.
12270
12271 2019-06-27 Martin Liska <mliska@suse.cz>
12272
12273 * asan.c (asan_emit_allocas_unpoison): Remove obviously
12274 dead assignments.
12275 * bt-load.c (move_btr_def): Likewise.
12276 * builtins.c (expand_builtin_apply_args_1): Likewise.
12277 (expand_builtin_apply): Likewise.
12278 * cfgexpand.c (expand_asm_stmt): Likewise.
12279 (construct_init_block): Likewise.
12280 * cfghooks.c (verify_flow_info): Likewise.
12281 * cfgloopmanip.c (remove_path): Likewise.
12282 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12283 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12284 * combine.c (simplify_if_then_else): Likewise.
12285 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12286 (choose_basereg): Likewise.
12287 (ix86_expand_prologue): Likewise.
12288 (ix86_preferred_output_reload_class): Likewise.
12289 * cselib.c (cselib_record_sets): Likewise.
12290 * df-scan.c (df_scan_alloc): Likewise.
12291 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12292 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12293 * emit-rtl.c (try_split): Likewise.
12294 * graphite-scop-detection.c (assign_parameter_index_in_region):
12295 Likewise.
12296 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12297 * ira-color.c (setup_profitable_hard_regs): Likewise.
12298 * ira.c (rtx_moveable_p): Likewise.
12299 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12300 * read-rtl.c (read_subst_mapping): Likewise.
12301 * regrename.c (scan_rtx): Likewise.
12302 * reorg.c (fill_slots_from_thread): Likewise.
12303 * tree-inline.c (tree_function_versioning): Likewise.
12304 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12305 * tree-ssa-sink.c (statement_sink_location): Likewise.
12306 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12307 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12308 (vect_create_epilog_for_reduction): Likewise.
12309 * tree.c (build_nonstandard_integer_type): Likewise.
12310
12311 2019-06-27 Richard Biener <rguenther@suse.de>
12312
12313 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12314
12315 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
12316
12317 PR tree-optimization/89772
12318 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12319 out-of-bound accesses checking.
12320
12321 2019-06-27 Martin Liska <mliska@suse.cz>
12322
12323 PR tree-optimization/91014
12324 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12325 when LHS is NULL_TREE.
12326
12327 2019-06-27 Martin Liska <mliska@suse.cz>
12328
12329 * symbol-summary.h (traverse): Pass
12330 argument a to the call of callback.
12331 (gt_ggc_mx): Mark arguments as unused.
12332 (gt_pch_nx): Likewise.
12333
12334 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
12335
12336 PR target/62147
12337 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12338 finiteness.
12339
12340 2019-06-26 Jeff Law <law@redhat.com>
12341
12342 PR tree-optimization/90883
12343 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12344 (delete_dead_or_redundant_assignment): Likewise.
12345
12346 PR tree-optimization/90883
12347 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12348 * tree-ssa-dse.c: Update various comments to distinguish between
12349 dead and redundant stores.
12350 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12351 (dse_optimize_redundant_stores): New function.
12352 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12353 Distinguish between dead and redundant calls in dump output. All
12354 callers updated.
12355 (delete_dead_or_redundant_assignment): Similarly for assignments.
12356 (dse_optimize_stmt): Handle _CHK variants. For statements which
12357 store 0 into multiple memory locations, try to prove a subsequent
12358 store is redundant.
12359
12360 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
12361
12362 PR target/89021
12363 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12364 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12365
12366 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12367
12368 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12369 (branch_islands): New extern.
12370 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12371 * config/rs6000/rs6000.c: .. here.
12372
12373 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12374
12375 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12376 (powerpc*-*-*) ... to here.
12377
12378 2019-06-26 Jeff Law <law@redhat.com>
12379
12380 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12381 memcpy, memmove and memset builtins.
12382 (maybe_trim_memstar_call): Likewise.
12383
12384 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12385
12386 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12387
12388 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12389
12390 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12391
12392 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12393
12394 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12395 declaration.
12396 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
12397 "static".
12398 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
12399 declaration.
12400
12401 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12402
12403 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
12404
12405 2019-06-26 Richard Biener <rguenther@suse.de>
12406
12407 PR ipa/90982
12408 * tree-inline.c (remap_ssa_name): Copy SSA range info.
12409
12410 2019-06-26 Richard Biener <rguenther@suse.de>
12411
12412 * lto-streamer.h (lto_bitmap_alloc): Remove.
12413 (lto_bitmap_free): Likewise.
12414 * lto-streamer.c (lto_bitmap_alloc): Remove.
12415 (lto_bitmap_free): Likewise.
12416 (lto_obstack): Likewise.
12417 (lto_obstack_initialized): Likewise.
12418 * lto-streamer-out.c (lto_output): Use own obstack for local
12419 bitmap, free it consistently.
12420
12421 2019-06-26 Jakub Jelinek <jakub@redhat.com>
12422
12423 PR target/90991
12424 * config/i386/sse.md
12425 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
12426 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
12427 insns if operands[2] is misaligned_operand.
12428
12429 2019-06-26 Li Jia He <helijia@linux.ibm.com>
12430
12431 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
12432 TARGET_POWERPC64.
12433 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
12434 to GPR.
12435
12436 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12437
12438 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
12439
12440 2019-06-26 Martin Liska <mliska@suse.cz>
12441
12442 PR tree-optimization/90973
12443 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
12444 epilogue_cost_vec instead of prologue_cost_vec for
12445 a epilogue cost.
12446
12447 2019-06-26 Martin Liska <mliska@suse.cz>
12448
12449 * bb-reorder.c (connect_better_edge_p): Add missing else
12450 statement in the middle of if-else statements.
12451
12452 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
12453 H.J. Lu <hongjiu.lu@intel.com>
12454 Olga Makhotina <olga.makhotina@intel.com>
12455
12456 * common/config/i386/i386-common.c
12457 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
12458 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
12459 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
12460 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
12461 (ix86_handle_option): Handle -mavx512vp2intersect.
12462 * config/i386/avx512vp2intersectintrin.h: New.
12463 * config/i386/avx512vp2intersectvlintrin.h: New.
12464 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
12465 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12466 AVX512VP2INTERSECT.
12467 * config/i386/i386-builtin-types.def: Add new types.
12468 * config/i386/i386-builtin.def: Add new builtins.
12469 * config/i386/i386-builtins.c: (enum processor_features): Add
12470 F_AVX512VP2INTERSECT.
12471 (static const _isa_names_table isa_names_table): Ditto.
12472 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12473 __AVX512VP2INTERSECT__.
12474 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
12475 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
12476 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
12477 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
12478 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
12479 * config/i386/i386-options.c (ix86_target_string): Add
12480 -mavx512vp2intersect.
12481 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
12482 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
12483 P2HImode and P2QImode.
12484 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
12485 number for P2QImode and P2HImode.
12486 (ix86_regmode_natural_size): New function.
12487 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
12488 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
12489 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
12490 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
12491 * config/i386/i386.opt: Add -mavx512vp2intersect.
12492 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
12493 avx512vp2intersectvlintrin.h.
12494 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
12495 (define_mode_iterator VI48_AVX512VP2VL): New.
12496 (avx512vp2intersect_2intersect<mode>,
12497 avx512vp2intersect_2intersectv16si): New define_insn patterns.
12498 * config.gcc: Add avx512vp2intersectvlintrin.h and
12499 avx512vp2intersectintrin.h to extra_headers.
12500 * doc/invoke.texi: Document -mavx512vp2intersect.
12501
12502 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
12503
12504 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
12505
12506 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12507
12508 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
12509 savres_routine_syms, savres_routine_name, morestack_ref,
12510 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12511 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12512 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12513 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12514 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12515 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12516 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12517 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12518 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12519 get_stack_clash_protection_probe_interval,
12520 get_stack_clash_protection_guard_size,
12521 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12522 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12523 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12524 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12525 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12526 gen_frame_mem_offset, rs6000_savres_routine_name,
12527 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12528 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12529 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12530 rs6000_global_entry_point_prologue_needed_p,
12531 rs6000_get_separate_components, rs6000_components_for_bb,
12532 rs6000_disqualify_components, rs6000_emit_prologue_components,
12533 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12534 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12535 rs6000_output_savres_externs, rs6000_output_function_prologue,
12536 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12537 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12538 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12539 rs6000_output_function_epilogue, gen_add3_const,
12540 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12541 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12542 to rs6000-logue.c.
12543 (machine_function): Moved to rs6000.h.
12544 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
12545 rs6000-internal.h.
12546 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
12547 savres_routine_syms, savres_routine_name, morestack_ref,
12548 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12549 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12550 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12551 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12552 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12553 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12554 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12555 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12556 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12557 get_stack_clash_protection_probe_interval,
12558 get_stack_clash_protection_guard_size,
12559 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12560 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12561 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12562 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12563 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12564 gen_frame_mem_offset, rs6000_savres_routine_name,
12565 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12566 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12567 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12568 rs6000_global_entry_point_prologue_needed_p,
12569 rs6000_get_separate_components, rs6000_components_for_bb,
12570 rs6000_disqualify_components, rs6000_emit_prologue_components,
12571 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12572 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12573 rs6000_output_savres_externs, rs6000_output_function_prologue,
12574 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12575 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12576 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12577 rs6000_output_function_epilogue, gen_add3_const,
12578 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12579 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12580 to here from rs6000.c.
12581 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
12582 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
12583 quad_address_offset_p) Moved to here from rs6000.c.
12584 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
12585 * config/config.gcc: Add new source file rs6000-logue.c to garbage
12586 collector.
12587
12588 2019-06-25 Martin Liska <mliska@suse.cz>
12589
12590 * hash-table.c (hashtab_chk_error): Move here from ...
12591 * hash-table.h (hashtab_chk_error): ... here.
12592
12593 2019-06-25 Martin Liska <mliska@suse.cz>
12594
12595 PR tree-optimization/90978
12596 * df-scan.c (df_update_entry_block_defs): Remove dead else
12597 branch.
12598 (df_update_exit_block_uses): Likewise.
12599
12600 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
12601 Andrew Stubbs <ams@codesourcery.com>
12602
12603 * config.gcc (thread_file): Set to gcn for AMD GCN.
12604 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
12605 (TARGET_EMUTLS_VAR_INIT): New hook.
12606
12607 2019-06-25 Martin Jambor <mjambor@suse.cz>
12608
12609 PR ipa/90939
12610 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
12611
12612 2019-06-25 Richard Biener <rguenther@suse.de>
12613
12614 PR tree-optimization/90930
12615 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
12616 into parallel form in the last pass instance.
12617
12618 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
12619
12620 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
12621 (arc_legitimize_pic_address): Simplify and cleanup the function.
12622 (SYMBOLIC_CONST): Remove.
12623 (prepare_pic_move): Likewise.
12624 (prepare_move_operands): Handle complex mov cases here.
12625 (arc_legitimize_address_0): Remove call to
12626 arc_legitimize_pic_address.
12627 (arc_legitimize_address): Remove call to
12628 arc_legitimize_tls_address.
12629 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
12630 (movhi_insn): Likewise.
12631
12632 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12633
12634 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
12635 PTRDIFF_TYPE.
12636 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
12637 format of "__intN" types for UINTMAX_TYPE.
12638 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
12639 format of "__intN" types for SIZETYPE.
12640 * tree.c (build_common_tree_nodes): Accept "__intN__"
12641 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
12642 * doc/invoke.texi: Document that __intN__ disables pedantic
12643 warnings.
12644
12645 2019-06-25 Jan Hubicka <jh@suse.cz>
12646
12647 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
12648 base2_alias_set is non-zero before doing TBAA based disambiguation.
12649
12650 2019-06-25 Martin Liska <mliska@suse.cz>
12651
12652 PR tree-optimization/90973
12653 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
12654 of prologue and epilogue.
12655
12656 2019-06-24 Jan Hubicka <jh@suse.cz>
12657
12658 * ipa-utils.h (type_with_linkage_p): Verify that type is
12659 CXX_ODR_P.
12660 (odr_type_p): Remove extra return.
12661 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
12662 hash STRING_FLAG only for arrays and integers.
12663 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
12664 Update analogously.
12665 * tree-streamer-out.c (pack_ts_type_common_value_fields):
12666 Likewise.
12667 * print-tree.c (print_node): Print cxx-odr-p
12668 and string-flag.
12669 * tree.c (need_assembler_name_p): Also check that type
12670 is CXX_ODR_TYPE_P
12671 (verify_type_variant): Update verification of SRING_FLAG;
12672 also check CXX_ODR_P.
12673 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
12674 (TYPE_STRING_FLAG): Use it.
12675 (TYPE_CXX_ODR_P): New macro.
12676 * dwarf2out.c (gen_array_type_die): First check that type
12677 is an array and then test string flag.
12678
12679 2019-06-24 Richard Biener <rguenther@suse.de>
12680
12681 PR tree-optimization/90972
12682 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
12683 in common code, dealing with STRING_CST properly.
12684
12685 2019-06-24 Richard Biener <rguenther@suse.de>
12686
12687 PR tree-optimization/90930
12688 PR tree-optimization/90316
12689 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
12690 decrement of limit.
12691
12692 2019-06-24 Martin Sebor <msebor@redhat.com>
12693
12694 * tree-pretty-print.h: Remove unnecessary punctuation characters
12695 from a diagnostic.
12696 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
12697
12698 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
12699
12700 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
12701 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
12702 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
12703
12704 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12705
12706 * config/rs6000/darwin.h: Handle GCC target pragma.
12707
12708 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12709
12710 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
12711
12712 2019-06-22 Jeff Law <law@redhat.com>
12713
12714 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12715
12716 2019-06-22 Jan Hubicka <jh@suse.cz>
12717
12718 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
12719 give up on bitfields; continue searching for different refs
12720 appearing later.
12721
12722 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12723
12724 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12725 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
12726 containing the offset as possible simd lane access. Look through
12727 widening conversion. Move the
12728 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
12729
12730 2019-06-21 Richard Biener <rguenther@suse.de>
12731
12732 PR tree-optimization/90930
12733 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
12734 flag on new stmts to avoid re-processing them.
12735
12736 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
12737
12738 PR c++/90875 - added -Wswitch-outside-range option
12739 * doc/invoke.texi (Wswitch-outside-range): Document.
12740
12741 2019-06-21 Jeff Law <law@redhat.com>
12742
12743 PR tree-optimization/90949
12744 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
12745 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
12746
12747 2019-06-21 Richard Biener <rguenther@suse.de>
12748
12749 PR debug/90914
12750 * dwarf2out.c (prune_unused_types_walk): Always consider
12751 function-local extern declarations as used.
12752
12753 2019-06-21 Richard Biener <rguenther@suse.de>
12754
12755 PR tree-optimization/90913
12756 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
12757 the scalar variant of if-conversion versioning.
12758
12759 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12760
12761 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
12762 create another "omp scan inscan exclusive" array if
12763 !ctx->scan_inclusive.
12764 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
12765 (lower_omp_scan): Likewise.
12766 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
12767 2-bit bitfield for simd_lane_access_p member.
12768 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
12769 aux == (void *)-4 as simd lane access.
12770 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
12771 comment with permutations to show the canonical permutation order.
12772 (vectorizable_scan_store): Handle exclusive scan.
12773 (vectorizable_store): Call vectorizable_scan_store even for
12774 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
12775
12776 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12777 "omp simd array" arrays with one byte elements.
12778
12779 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
12780
12781 * config/alpha/alpha.md (@unaligned_store<mode>):
12782 Rename from unaligned_store<mode>.
12783 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
12784 * config/alpha/sync.md (@load_locked_<mode>): Rename
12785 from load_locked_<mode>.
12786 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
12787 (@atomic_compare_and_swap<mode>_1): Rename
12788 from atomic_compare_and_swap<mode>_1.
12789 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
12790 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
12791 Use gen_reload_in_aligned and gen_unaligned_store.
12792 (emit_load_locked): Remove.
12793 (emit_store_conditional): Ditto.
12794 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
12795 (alpha_split_compare_and_swap): Ditto.
12796 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
12797 (alpha_split_compare_and_swap_12): Use gen_load_locked
12798 and gen_store_conditional.
12799 (alpha_split_atomic_exchange): Ditto.
12800 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
12801 (alpha_split_atomic_exchange_12): Use gen_load_locked
12802 and gen_store_conditional.
12803
12804 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
12805
12806 * config/aarch64/aarch64-errata.h: New file.
12807 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
12808 (CA53_ERR_843419_SPEC): Delete.
12809 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
12810 * config/aarch64/aarch64-linux.h: Likewise.
12811 * config/aarch64/aarch64-netbsd.h: Likewise.
12812 * config/aarch64/aarch64-freebsd.h: Likewise.
12813
12814 2019-06-20 Marek Polacek <polacek@redhat.com>
12815
12816 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
12817
12818 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
12819
12820 * config/rs6000/rs6000.md (isa attribute): Add support for
12821 for a future processor.
12822
12823 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
12824
12825 PR target/54855
12826 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
12827 standard scalar operation pattern for V2DF.
12828 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
12829 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
12830 (*ieee_<ieee_maxmin><mode>3): Likewise.
12831 (vec_setv2df_0): Likewise.
12832
12833 2019-06-20 Jan Hubicka <jh@suse.cz>
12834
12835 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
12836 parameter; it has no use in gimple memory model.
12837 (indirect_ref_may_alias_decl_p): Update.
12838
12839 2019-06-20 Martin Liska <mliska@suse.cz>
12840
12841 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
12842 to 10.
12843
12844 2019-06-20 Jakub Jelinek <jakub@redhat.com>
12845
12846 * tree-vect-stmts.c (enum scan_store_kind): New type.
12847 (scan_store_can_perm_p): Change last argument from int * to
12848 vec<enum scan_store_kind> *, record precisely which permutations
12849 need whole vector left shift or that plus VEC_COND_EXPR.
12850 (vectorizable_scan_store): Adjust caller, use whole vector left shift
12851 and additional VEC_COND_EXPR only for those iterations that need it.
12852
12853 2019-06-20 Alexandre Oliva <oliva@adacore.com>
12854
12855 * config.gcc: Fix ARM --with-fpu checking and error message.
12856
12857 2019-06-19 Marek Polacek <polacek@redhat.com>
12858
12859 PR c++/60364 - noreturn after first decl not diagnosed.
12860 * attribs.c (get_attribute_namespace): No longer static.
12861 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
12862 attributes.
12863 (attr_noreturn_exclusions): Make it extern.
12864 * attribs.h (get_attribute_namespace): Declare.
12865 * tree-inline.c (function_attribute_inlinable_p): Use
12866 get_attribute_name.
12867
12868 2019-06-19 Martin Sebor <msebor@redhat.com>
12869
12870 PR tree-optimization/90626
12871 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
12872
12873 PR tree-optimization/90626
12874 * tree-ssa-strlen.c (strxcmp_unequal): New function.
12875 (handle_builtin_string_cmp): Call it.
12876
12877 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
12878
12879 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
12880 and DARWIN_NOPIE_SPEC.
12881 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
12882 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
12883 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
12884 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
12885 (DARWIN_EXPORT_DYNAMIC): Delete.
12886 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
12887 and pie options processing to darwin.h.
12888 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
12889
12890 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
12891
12892 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
12893 in computing the number of options to be moved.
12894
12895 2019-06-19 Maya Rashish <coypu@sdf.org>
12896
12897 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
12898 (CLEAR_INSN_CACHE) Use it.
12899
12900 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
12901
12902 * config/i386/i386.md (cmpstrnsi): Remove dead code.
12903
12904 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
12905
12906 PR middle-end/84521
12907 * builtins.c (expand_builtin_setjmp_setup): Save
12908 hard_frame_pointer_rtx.
12909 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
12910 restore fp.
12911 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
12912 non-local goto.
12913 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
12914 elimination code.
12915 (remove_reg_equal_offset_note): Remove unused function.
12916 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
12917 code.
12918 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12919 (arc_builtin_setjmp_frame_value): Remove function.
12920 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12921 (avr_builtin_setjmp_frame_value): Remove function.
12922 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12923 (ix86_builtin_setjmp_frame_value): Remove function.
12924 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
12925 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12926 (sparc_builtin_setjmp_frame_value): Remove function.
12927 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12928 (vax_builtin_setjmp_frame_value): Remove function.
12929 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
12930 pointer if has_nonlocal_label.
12931
12932 2019-06-19 Jakub Jelinek <jakub@redhat.com>
12933
12934 * doc/md.texi: Document vec_shl_<mode> pattern.
12935 * optabs.def (vec_shl_optab): New optab.
12936 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
12937 argument, if == vec_shl_optab, check for left whole vector shift
12938 pattern rather than right shift.
12939 (expand_vec_perm_const): Add vec_shl_optab support.
12940 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
12941 in the comment.
12942 * tree-vect-generic.c (lower_vec_perm): Support permutations which
12943 can be handled by vec_shl_optab.
12944 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
12945 (check_scan_store): Use it.
12946 (vectorizable_scan_store): If target can't do normal permutations,
12947 try to use whole vector left shifts and if needed a VEC_COND_EXPR
12948 after it.
12949 * config/i386/sse.md (vec_shl_<mode>): New expander.
12950
12951 * omp-low.c (lower_rec_input_clauses): Handle references properly
12952 in inscan clauses.
12953 (lower_omp_scan): Likewise.
12954
12955 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12956
12957 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
12958 mem_mode is BLKmode.
12959
12960 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
12961
12962 PR target/90922
12963 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
12964 pointer adjustment for the case of no callee-saved registers and
12965 stack frame bigger than 128 bytes.
12966
12967 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
12968
12969 PR middle-end/90862
12970 * omp-low.c (check_omp_nesting_restrictions): Handle
12971 GF_OMP_TARGET_KIND_OACC_DECLARE.
12972
12973 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
12974
12975 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
12976 (@add<mode>3_carry): Rename from add<mode>3_carry.
12977 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
12978 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
12979 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
12980 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
12981 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
12982 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
12983 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
12984 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
12985 (cmpstrnsi): Use gen_cmp_1.
12986 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
12987 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
12988 (@umonitor_<mode>): Rename from umonitor_<mode>.
12989 * config/i386/i386-expand.c (ix86_expand_copysign):
12990 Use gen_copysign3_const and gen_copysign3_var.
12991 (ix86_expand_xorsign): Use gen_xorsign3_1.
12992 (ix86_expand_branch): Use gen_sub3_carry_ccc,
12993 gen_sub3_carry_ccgz and gen_cmp1.
12994 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
12995 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
12996 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
12997 (ix86_split_lshr): Ditto.
12998 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
12999
13000 2019-06-18 Jason Merrill <jason@redhat.com>
13001
13002 * tree.c (build_constructor): Add MEM_STAT_DECL.
13003
13004 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13005
13006 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
13007 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
13008 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
13009 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
13010 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
13011 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
13012 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
13013 Use CC_NZC instead of CC.
13014 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
13015 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
13016 (aarch64_print_operand): Handle E_CC_NZCmode.
13017 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
13018 of gen_set_clobber_cc.
13019
13020 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13021
13022 * config/aarch64/aarch64-sve.md: Tabify file.
13023
13024 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13025
13026 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
13027 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
13028 * config/aarch64/aarch64-sve.md: Use it.
13029
13030 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13031
13032 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
13033 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
13034 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
13035 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
13036 (aarch64_expand_sve_vec_cmp_int): Use it.
13037 (aarch64_expand_sve_vec_cmp_float): Likewise.
13038 * config/aarch64/aarch64-sve.md: Likewise throughout.
13039
13040 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13041 Kugan Vivekanandarajah <kuganv@linaro.org>
13042
13043 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
13044 (*cond_<optab><mode>_z): Fold into...
13045 (*cond_<optab><mode>_any): ...here. Also handle cases in which
13046 operand 4 can be tied to operand 0 (either inherently or via RA).
13047
13048 2019-06-18 Richard Biener <rguenther@suse.de>
13049
13050 PR debug/90900
13051 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
13052 as if optimized away.
13053
13054 2019-06-18 Tom de Vries <tdevries@suse.de>
13055
13056 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
13057 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
13058 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
13059 Rename to ...
13060 (define_insn "@set_softstack_<mode>"): ... this.
13061 (define_insn "omp_simt_enter_<mode>"): Rename to ...
13062 (define_insn "@omp_simt_enter_<mode>"): ... this.
13063 (define_insn "omp_simt_exit_<mode>"): Rename to ...
13064 (define_insn "@omp_simt_exit_<mode>"): ... this.
13065
13066 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13067
13068 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
13069 vf parameter. Restore the previous iv step of nscalars_step,
13070 but give it iv_type rather than compare_type. Tweak code order
13071 to match the comments.
13072 (vect_set_loop_condition_masked): Update accordingly.
13073 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
13074 for iv_precision. Tweak comment formatting.
13075
13076 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13077
13078 * config/darwin.c: Strip trailing whitespace.
13079
13080 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13081
13082 * config/darwin.c (darwin_emit_unwind_label): New default to false.
13083 (darwin_override_options): Set darwin_emit_unwind_label as needed.
13084
13085 2019-06-18 Martin Jambor <mjambor@suse.cz>
13086
13087 PR ipa/90889
13088 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
13089 caller does not have flag_ipa_cp set.
13090
13091 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13092
13093 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
13094 from "*fold_left_plus_<mode>", updated operands order.
13095 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
13096 * internal-fn.c (mask_fold_left_direct): New define.
13097 (expand_mask_fold_left_optab_fn): Likewise.
13098 (direct_mask_fold_left_optab_supported_p): Likewise.
13099 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
13100 * optabs.def (mask_fold_left_plus_optab): New optab.
13101 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
13102 masked internal_fn for a reduction ifn.
13103 (vectorize_fold_left_reduction): Add support for masking reductions.
13104
13105 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
13106
13107 PR middle-end/80791
13108 * target.def (predict_doloop_p): New hook.
13109 * targhooks.h (default_predict_doloop_p): New declaration.
13110 * targhooks.c (default_predict_doloop_p): New function.
13111 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
13112 * doc/tm.texi: Regenerate.
13113 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
13114 (TARGET_PREDICT_DOLOOP_P): New macro.
13115 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
13116
13117 2019-06-17 Jakub Jelinek <jakub@redhat.com>
13118
13119 * omp-low.c (struct omp_context): Add scan_inclusive field.
13120 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
13121 if inclusive scan.
13122 (struct omplow_simd_context): Add lastlane member.
13123 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
13124 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
13125 1 or 2 argument.
13126 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
13127 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
13128 (lower_omp_scan): New function.
13129 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
13130 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
13131 check 3rd argument if present rather than 2nd.
13132 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
13133 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
13134 2-bit bitfield.
13135 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13136 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
13137 than 2nd.
13138 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
13139 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
13140 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
13141 init.
13142 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
13143 IFN_GOMP_SIMD_LANE argument.
13144 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
13145 encoded ->aux value.
13146 * tree-vect-stmts.c: Include attribs.h.
13147 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
13148 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
13149 functions.
13150 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
13151 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
13152
13153 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
13154
13155 PR target/62055
13156 * config/i386/i386.md (*nabstf2_1): New insn pattern.
13157 (*nabs<mode>2_1): Ditto.
13158 (nabs sse-reg splitter): New splitter.
13159 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
13160
13161 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13162
13163 PR bootstrap/90873.
13164 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13165 TMR index check.
13166
13167 2019-06-17 Tom de Vries <tdevries@suse.de>
13168
13169 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
13170 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
13171 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
13172 ...
13173 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
13174 match_operand 0.
13175 (define_insn "omp_simt_enter_insn"): Rename to ...
13176 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
13177 match_operand 0, 1 and 2, as well as the unspec_volatile result.
13178 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
13179 gen_omp_simt_enter_si.
13180 (define_expand "omp_simt_exit"): New.
13181 (define_insn "omp_simt_exit"): Rename to ...
13182 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
13183 match_operand 0.
13184
13185 2019-06-17 Matthew Green <mrg@eterna.com.au>
13186 Maya Rashish <coypu@sdf.org>
13187
13188 * config.gcc (aarch64*-*-netbsd*): New target.
13189 * config/aarch64/aarch64-netbsd.h: New file.
13190 * config/aarch64/t-aarch64-netbsd: Likewise.
13191
13192 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13193
13194 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13195 the access path from base to first VIEW_CONVERT_EXPR or
13196 BIT_FIELD_REF.
13197
13198 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13199
13200 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13201 access path on BIT_FIELD_REFs.
13202
13203 2019-06-17 Martin Liska <mliska@suse.cz>
13204
13205 PR ipa/90874
13206 * ipa-utils.h (odr_type_p): Remove dead code.
13207
13208 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13209
13210 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13211 alternative Solaris 11.4 format.
13212 * configure: Regenerate.
13213
13214 2019-06-17 Tom de Vries <tdevries@suse.de>
13215
13216 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13217 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
13218 match_operand 0.
13219 (define_insn "call_value_insn"): Rename to ...
13220 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
13221 match_operand 0.
13222 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13223 DI.
13224
13225 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
13226
13227 PR middle-end/64242
13228 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
13229 frame clobbers and schedule block.
13230 (builtin_longjmp): Likewise.
13231
13232 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13233
13234 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13235 describe how to perform MSPABI compliant 64-bit shift.
13236 * config/msp430/msp430.md (ashldi3): New define_expand.
13237 (ashrdi3): New define_expand.
13238 (lshrdi3): New define_expand.
13239
13240 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13241
13242 * doc/sourcebuild.texi: Document new effective target keyword
13243 longlong64.
13244
13245 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13246
13247 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13248 indirect_refs_may_alias_p): Revert accidental commits.
13249
13250 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13251 at the end of structures.
13252
13253 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13254
13255 * config/darwin.c (machopic_indirect_call_target): Use renamed
13256 darwin_picsymbol_stubs to decide on output.
13257 (darwin_override_options): Handle darwin_picsymbol_stubs.
13258 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13259 (LD64_VERSION): Revise default.
13260 * config/darwin.opt: (mpic-symbol-stubs): New option.
13261 (darwin_picsymbol_stubs): New variable.
13262 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13263 rename to TARGET_MACHO_PICSYM_STUBS.
13264 * config/i386/i386.c (output_pic_addr_const): Likewise.
13265 * config/i386/i386.h Likewise.
13266 * config/rs6000/darwin.h: Likewise.
13267 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13268 darwin_picsymbol_stubs.
13269
13270 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13271
13272 * config/darwin.opt (prebind, noprebind, seglinkedit,
13273 noseglinkedit): Add RejectNegative.
13274
13275 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13276
13277 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13278 in my previous patch.
13279
13280 2019-06-16 Tom de Vries <tdevries@suse.de>
13281
13282 PR tree-optimization/89376
13283 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13284
13285 2019-06-15 Maya Rashish <coypu@sdf.org>
13286
13287 * doc/invoke.texi (Spec Files): Update location of the
13288 Fortran spec file.
13289
13290 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
13291
13292 * doc/extend.texi (Common Function Attributes): Clarify
13293 no_sanitize. Fix grammar.
13294
13295 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
13296
13297 * tree-ssa-alias.c (alias_stats): Add
13298 nonoverlapping_component_refs_p_may_alias,
13299 nonoverlapping_component_refs_p_no_alias,
13300 nonoverlapping_component_refs_of_decl_p_may_alias,
13301 nonoverlapping_component_refs_of_decl_p_no_alias.
13302 (dump_alias_stats): Dump them.
13303 (nonoverlapping_component_refs_of_decl_p): Add stats.
13304 (nonoverlapping_component_refs_p): Add stats; do not stop on first
13305 ARRAY_REF.
13306
13307 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
13308
13309 * config/i386/i386.md (and<mode>3): Generate zero-extends for
13310 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13311 only.
13312 (*anddi3_doubleword): Split before reload. Merge with
13313 anddi->zext pre-reload splitter.
13314 (*andndi3_doubleword): Split before reload.
13315 (*<code>di3_doubleword): Ditto.
13316 (*one_cmpldi2_doubleword): Ditto.
13317
13318 2019-06-15 Jakub Jelinek <jakub@redhat.com>
13319
13320 PR middle-end/90779
13321 * gimplify.c: Include omp-offload.h and context.h.
13322 (gimplify_bind_expr): Add "omp declare target" attributes
13323 to static block scope variables inside of target region or target
13324 functions.
13325
13326 2019-06-15 Tom de Vries <tdevries@suse.de>
13327
13328 PR tree-optimization/90009
13329 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13330 Return NULL if bb contains IFN_UNIQUE.
13331
13332 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
13333
13334 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13335 (un): New define_mode_attr.
13336 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13337 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
13338 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13339 merge into ...
13340 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
13341
13342 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
13343
13344 * config/darwin.opt: Add RejectNegative where needed, reorder
13345 and add minimal functional descriptions.
13346
13347 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13348
13349 PR rtl-optimization/90765
13350 * calls.c (update_stack_alignment_for_call): New function.
13351 (expand_call): Call update_stack_alignment_for_call when
13352 outgoing parameter is passed in the stack.
13353 (emit_library_call_value_1): Likewise.
13354 * function.c (locate_and_pad_parm): Don't update
13355 stack_alignment_needed and preferred_stack_boundary.
13356
13357 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13358
13359 PR target/90877
13360 * config/i386/i386-features.c
13361 (dimode_scalar_chain::compute_convert_gain): Replace
13362 mmxsse_to_integer with sse_to_integer.
13363 * config/i386/i386.c (ix86_register_move_cost): Verify that
13364 moves between MMX and non-MMX units require secondary memory.
13365 Correct costs of moves between SSE and integer units.
13366 * config/i386/i386.h (processor_costs): Rename cost of moving
13367 SSE register to integer to sse_to_integer. Rename cost of
13368
13369 2019-06-14 Matt Thomas <matt@3am-software.com>
13370 Matthew Green <mrg@eterna.com.au>
13371 Nick Hudson <skrll@netbsd.org>
13372 Maya Rashish <coypu@sdf.org>
13373 Richard Earnshaw <rearnsha@arm.com>
13374
13375 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13376 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13377 * config/arm/netbsd-eabi.h: New file.
13378 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13379 redefining.
13380 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13381 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13382 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13383 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13384
13385 2019-06-14 Richard Biener <rguenther@suse.de>
13386
13387 * tree-loop-distribution.c (classify_partition): Return
13388 whether a reduction appeared in all partitions and do not
13389 stop builtin detection because of this.
13390 (distribute_loop): Sort a non-builtin partition last if
13391 there's a reduction in all partitions and make sure the
13392 partition prevailing as last is not a builtin.
13393
13394 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
13395
13396 PR ipa/90401
13397 * ipa-prop.c (add_to_agg_contents_list): New function.
13398 (clobber_by_agg_contents_list_p): Likewise.
13399 (extract_mem_content): Likewise.
13400 (get_place_in_agg_contents_list): Delete.
13401 (determine_known_aggregate_parts): Renamed from
13402 determine_locally_known_aggregate_parts. New parameter
13403 aa_walk_budget_p.
13404
13405 2019-06-13 Martin Sebor <msebor@redhat.com>
13406
13407 PR tree-optimization/90662
13408 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
13409 to the same type.
13410
13411 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13412
13413 PR bootstrap/90873
13414 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
13415 dbase is not TARGET_MEM_REF.
13416
13417 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13418
13419 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
13420 Update all uses.
13421 (and<mode>3): Use gen_extend_insn instead of indirect functions.
13422 Do not generate DImode extends for 32bit targets.
13423 (and->zext post-reload splitter): Use gen_extend_insn
13424 instead of indirect functions.
13425 (anddi->zext pre-reload splitter): New.
13426 (*zext<mode>_doubleword_and): Remove.
13427 (*zext<mode>_doubleword): Ditto.
13428 (*zextsi_doubleword): Dittto.
13429
13430 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13431
13432 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
13433 Use gen_sub3_insn instead of indirect function.
13434 (ix86_expand_ashl_const): Use gen_add2_insn instead of
13435 indirect function.
13436 (ix86_adjust_counter): Ditto.
13437
13438 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
13439 Lijia He <helijia@linux.ibm.com>
13440
13441 PR tree-optimization/77820
13442 * tree-ssa-threadedge.c
13443 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
13444 function.
13445 (thread_across_edge): Add call to
13446 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
13447
13448 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
13449
13450 * config/darwin-driver.c (validate_macosx_version_min): New.
13451 (darwin_default_min_version): Cleanup and validate supplied version.
13452 (darwin_driver_init): Likewise and push cleaned version into opts.
13453
13454 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13455
13456 PR tree-optimization/90869
13457 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
13458 converts in MEM_REF referencing decl rather than view converts
13459 from decl type to MEM_REF type.
13460
13461 2019-06-13 Richard Biener <rguenther@suse.de>
13462
13463 PR tree-optimization/90856
13464 * tree-sra.c (build_ref_for_model): Only use
13465 build_reconstructed_reference when address-spaces are the same.
13466
13467 2019-06-13 Jakub Jelinek <jakub@redhat.com>
13468
13469 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
13470 wrap ei variable name in the declaration in ()s.
13471 (nvptx_single): Actually use mode_label variable. Formatting fix.
13472
13473 2019-06-13 Richard Biener <rguenther@suse.de>
13474
13475 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
13476 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
13477 also return the condition stmt.
13478 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
13479 loop we can version and version that, reusing the loop version
13480 created by if-conversion instead of versioning again.
13481
13482 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
13483
13484 * gimple-loop-versioning.cc (prune_loop_conditions): Use
13485 may_contain_p.
13486 * tree-vrp (value_range_base::may_contain_p): Call into
13487 value_inside_range.
13488 (value_inside_range): Make private inside value_range_base class.
13489 Take min/max from *this.
13490 (range_includes_p): Remove.
13491 * tree-vrp.h (value_range_base): Add value_inside_range.
13492 (range_includes_p): Remove.
13493 (range_includes_zero_p): Call may_contain_p.
13494 * vr-values.c (compare_range_with_value): Same.
13495
13496 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
13497
13498 * doc/extend.texi (ARC Function Attributes): Update info.
13499
13500 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
13501
13502 PR tree-optimization/89713
13503 * doc/invoke.texi (-ffinite-loops): Document new option.
13504 * common.opt (-ffinite-loops): New option.
13505 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
13506 IFN_GOACC_LOOP calls as necessary.
13507 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
13508 is finite.
13509 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
13510 IFN_GOACC_LOOP call is not used.
13511 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
13512
13513 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13514
13515 PR target/88838
13516 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
13517 compare_type is not with Pmode size, we will create an IV with
13518 Pmode size with truncated use (i.e. converted to the correct type).
13519 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
13520 (vect_iv_limit_for_full_masking): New. Factored out of
13521 vect_set_loop_condition_masked.
13522 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
13523 (vect_iv_limit_for_full_masking): Declare.
13524
13525 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13526
13527 PR target/88834
13528 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
13529 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
13530 (get_alias_ptr_type_for_ptr_address): Likewise.
13531 (add_iv_candidate_for_use): Add scaled index candidate if useful.
13532 * tree-ssa-address.c (preferred_mem_scale_factor): New.
13533 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
13534 allow_reg_index_p.
13535
13536 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13537
13538 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
13539
13540 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
13541
13542 * common/config/pru/pru-common.c: New file.
13543 * config.gcc: Add PRU target.
13544 * config/pru/alu-zext.md: New file.
13545 * config/pru/constraints.md: New file.
13546 * config/pru/predicates.md: New file.
13547 * config/pru/pru-opts.h: New file.
13548 * config/pru/pru-passes.c: New file.
13549 * config/pru/pru-pragma.c: New file.
13550 * config/pru/pru-protos.h: New file.
13551 * config/pru/pru.c: New file.
13552 * config/pru/pru.h: New file.
13553 * config/pru/pru.md: New file.
13554 * config/pru/pru.opt: New file.
13555 * config/pru/t-pru: New file.
13556 * doc/extend.texi: Document PRU pragmas.
13557 * doc/invoke.texi: Document PRU-specific options.
13558 * doc/md.texi: Document PRU asm constraints.
13559
13560 2019-06-12 Martin Sebor <msebor@redhat.com>
13561
13562 PR middle-end/90676
13563 * tree-pretty-print.c (dump_mem_ref): New function. Include
13564 MEM_REF type in output when different size than operand.
13565 (dump_generic_node): Move code to dump_mem_ref and call it.
13566
13567 2019-06-12 Martin Sebor <msebor@redhat.com>
13568
13569 PR tree-optimization/90662
13570 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
13571 to arrays.
13572
13573 2019-06-12 Tom de Vries <tdevries@suse.de>
13574
13575 PR tree-optimization/90009
13576 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
13577
13578 2019-06-12 Martin Liska <mliska@suse.cz>
13579
13580 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
13581 the created map.
13582 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
13583 * mem-stats.h (mem_alloc_description::mem_alloc_description):
13584 Do not sanitize created maps.
13585
13586 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
13587
13588 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
13589 value_range::singleton_p.
13590 * tree-vrp.c (value_range_constant_singleton): Remove.
13591 * tree-vrp.h (value_range_constant_singleton): Remove.
13592 * vr-values.c (vr_values::singleton): Use
13593 value_range::singleton_p.
13594
13595 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13596
13597 PR target/90811
13598 * cfgexpand.c (align_local_variable): Add really_expand argument,
13599 don't SET_DECL_ALIGN if it is false.
13600 (add_stack_var): Add really_expand argument, pass it through to
13601 align_local_variable.
13602 (expand_one_stack_var_1): Pass true as really_expand to
13603 align_local_variable.
13604 (expand_one_ssa_partition): Pass true as really_expand to
13605 add_stack_var.
13606 (expand_one_var): Pass really_expand through to add_stack_var.
13607
13608 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13609
13610 * config/arm/iterators.md (VABAL): New int iterator.
13611 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
13612 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
13613 UNSPEC_VABAL_U values.
13614
13615 2019-06-12 Martin Liska <mliska@suse.cz>
13616
13617 * value-prof.c (stream_out_histogram_value): Only first value
13618 can't be negative.
13619
13620 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13621
13622 PR c/90760
13623 * symtab.c (symtab_node::set_section): Allow being called on aliases
13624 as long as they aren't analyzed yet.
13625
13626 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
13627
13628 * config/mips/mips.c (mips_final_postscan_insn): Modify call
13629 to `mips_set_text_contents_type' to indicate whether a
13630 non-debug insn follows.
13631
13632 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
13633
13634 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
13635 enabling -mpcrel by default.
13636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
13637 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
13638 that the test against -mcpu=future is done first. Then test if
13639 -mprefixed-addr is on for -mpcrel.
13640 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
13641
13642 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13643
13644 PR target/90811
13645 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
13646 instead of and.u%d.
13647
13648 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13649
13650 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
13651
13652 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
13653
13654 PR c++/90449 - add -Winaccessible-base option.
13655 * doc/invoke.texi (Winaccessible-base): Document.
13656
13657 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13658
13659 PR tree-optimization/62041
13660 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
13661
13662 2019-06-11 Jason Merrill <jason@redhat.com>
13663
13664 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
13665 * tree.c (get_tree_code_name): Likewise.
13666 * print-tree.c (print_node): Only briefly print a node with an
13667 invalid code.
13668
13669 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13670
13671 PR bootstrap/90819
13672 * trans-mem.c (tm_memopt_compute_available): Add assertion
13673 that blocks is not empty. Formatting fix.
13674
13675 2019-06-11 Martin Liska <mliska@suse.cz>
13676
13677 PR c++/87847
13678 * hash-table.h: Extend create_gcc, add one parameter
13679 that is passed into hash_table::hash_table.
13680
13681 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
13682
13683 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
13684 New prototype.
13685 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
13686 Emit clobber also for non-sse operations.
13687 (ix86_split_fp_absneg_operator): New function.
13688 * config/i386/i386.md (SSEMODEF): New mode iterator.
13689 (ssevecmodef): New mode attribute.
13690 (<code>tf2): Use absneg code iterator.
13691 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
13692 Add three-operand AVX alternatives.
13693 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
13694 Use absneg code iterator and X87MODEF mode iterator.
13695 (absneg fp_reg non-sse splitter): Call absneg code iterator
13696 and X87MODEF mode iterator.
13697 (absneg general_reg non-sse splitter): Use absneg code iterator
13698 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
13699 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
13700 code iterator. Add three-operand AVX alternative.
13701 (absneg sse_reg splitter): Use absneg code iterator
13702 and SSEMODEF mode iterator. Handle AVX operands.
13703 (absneg fp_reg splitter): Use absneg code iterator
13704 and MODEF mode iterator.
13705 (absneg general_reg splitter): Merge splitters using MODEF mode
13706 iterator. Use absneg code iterator. Call
13707 ix86_split_fp_absneg_operator.
13708 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
13709 Do not enable for non-sse modes before reload.
13710 (CSGNMODE): Remove.
13711 (CSGNVMODE): Ditto.
13712 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
13713 ssevecmodef mode attribute instaed of CSGNVMODE.
13714 (copysign<mode>3_const): Ditto.
13715 (copysign<mode>3_var): Ditto.
13716 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
13717 Use absneg code iterator. Simplify code using std::swap.
13718 * config/i386/predicates.md (absneg_operator): Remove.
13719
13720 2019-06-10 Martin Sebor <msebor@redhat.com>
13721
13722 * gimple-fold.c (get_range_strlen): Update comment that didn't
13723 make it into r267503 or related commits.
13724
13725 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
13726
13727 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
13728 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
13729
13730 2019-06-10 Jakub Jelinek <jakub@redhat.com>
13731
13732 * tree.def (OMP_SCAN): New tree code.
13733 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
13734 OMP_CLAUSE_EXCLUSIVE.
13735 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
13736 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
13737 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
13738 OMP_CLAUSE_{IN,EX}CLUSIVE.
13739 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13740 * tree-nested.c (convert_nonlocal_reference_stmt,
13741 convert_local_reference_stmt, convert_gimple_call): Handle
13742 GIMPLE_OMP_SCAN.
13743 * tree-pretty-print.c (dump_omp_clause): Handle
13744 OMP_CLAUSE_{IN,EX}CLUSIVE.
13745 (dump_generic_node): Handle OMP_SCAN.
13746 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
13747 * gimple.h (gomp_scan): New type.
13748 (is_a_helper <gomp_scan *>::test,
13749 is_a_helper <const gomp_scan *>::test): New templates.
13750 (gimple_build_omp_scan): Declare.
13751 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
13752 gimple_omp_scan_set_clauses): New inline functions.
13753 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
13754 * gimple.c (gimple_build_omp_scan): New function.
13755 (gimple_copy): Handle GIMPLE_OMP_SCAN.
13756 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
13757 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
13758 GIMPLE_OMP_TASKGROUP.
13759 (dump_gimple_omp_scan): New function.
13760 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
13761 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
13762 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
13763 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
13764 (is_gimple_stmt): Handle OMP_SCAN.
13765 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
13766 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13767 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
13768 mentioned in nested #pragma omp scan. Handle
13769 OMP_CLAUSE_{IN,EX}CLUSIVE.
13770 (gimplify_expr): Handle OMP_SCAN.
13771 * omp-low.c (check_omp_nesting_restrictions): For parent context,
13772 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
13773 simd constructs.
13774 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
13775 GIMPLE_OMP_SCAN.
13776
13777 2019-06-10 Martin Liska <mliska@suse.cz>
13778
13779 * ipa-cp.c (ignore_edge_p): New function.
13780 (build_toporder_info): Use it.
13781 * ipa-inline.c (ignore_edge_p): New function.
13782 (inline_small_functions): Use it.
13783 * ipa-pure-const.c (ignore_edge_for_nothrow):
13784 Verify opt_for_fn for caller and callee.
13785 (ignore_edge_for_pure_const): Likewise.
13786 * ipa-reference.c (ignore_edge_p): Extend to check
13787 for opt_for_fn.
13788 * ipa-utils.c (searchc): Refactor.
13789 * ipa-utils.h: Fix coding style.
13790
13791 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13792
13793 * config/arc/arc.c (arc_rtx_costs): Update costs.
13794
13795 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13796
13797 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
13798 (arc_split_ior): Likewise.
13799 (arc_check_mov_const): Likewise.
13800 (arc_split_mov_const): Likewise.
13801 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
13802 (arc_rtx_costs): Replace check Crr with Cax constraint.
13803 (prepare_move_operands): Cleanup, remove unused code.
13804 (arc_split_ior): New function.
13805 (arc_check_ior_const): Likewise.
13806 (arc_split_mov_const): Likewise.
13807 (arc_check_mov_const): Likewise.
13808 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
13809 in define_insn_and_split pattern.
13810 (iorsi3): Likewise.
13811 (mulsi3_v2): Add new matching variant.
13812 (andsi3_i): Cleanup pattern.
13813 (rotrsi3_cnt1): Update pattern.
13814 (rotrsi3_cnt8): New pattern.
13815 (ashlsi2_cnt8): Likewise.
13816 (ashlsi2_cnt16): Likewise.
13817 * config/arc/constraints.md (C0p): Update constraint.
13818 (Crr): Remove it.
13819 (C0x): New pattern.
13820 (Cax): New pattern.
13821
13822 2019-06-10 Martin Liska <mliska@suse.cz>
13823
13824 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
13825 Update coding style.
13826 (sem_item_optimizer::dump_cong_classes):
13827 Print how many items are in a non-singular class. Improve
13828 coding style.
13829
13830 2019-06-10 Martin Liska <mliska@suse.cz>
13831
13832 * value-prof.c (dump_histogram_value): Change dump format.
13833 (gimple_mod_subtract_transform): Remove legacy comment.
13834
13835 2019-06-10 Martin Liska <mliska@suse.cz>
13836
13837 * value-prof.c (dump_histogram_value): Print histogram values
13838 only if present.
13839
13840 2019-06-10 Martin Liska <mliska@suse.cz>
13841
13842 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
13843 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
13844 * ipa-profile.c (ipa_profile_generate_summary):
13845 Use get_most_common_single_value.
13846 * tree-profile.c (gimple_init_gcov_profiler):
13847 Instrument with __gcov_one_value_profiler_v2
13848 and __gcov_indirect_call_profiler_v4.
13849 * value-prof.c (dump_histogram_value):
13850 Print all values for HIST_TYPE_SINGLE_VALUE.
13851 (stream_out_histogram_value): Update assert for
13852 N values.
13853 (stream_in_histogram_value): Set number of
13854 counters for HIST_TYPE_SINGLE_VALUE.
13855 (get_most_common_single_value): New.
13856 (gimple_divmod_fixed_value_transform):
13857 Use get_most_common_single_value.
13858 (gimple_ic_transform): Likewise.
13859 (gimple_stringops_transform): Likewise.
13860 (gimple_find_values_to_profile): Set number
13861 of counters for HIST_TYPE_SINGLE_VALUE.
13862 * value-prof.h (get_most_common_single_value): New.
13863
13864 2019-06-10 Martin Liska <mliska@suse.cz>
13865
13866 * hash-map.h: Pass default value to hash_table ctor.
13867 * hash-table.h: Add default value to call of a ctor.
13868
13869 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
13870
13871 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
13872 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
13873
13874 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
13875
13876 PR target/90751
13877 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
13878 Call pa_output_function_label.
13879 (TARGET_ASM_FUNCTION_PROLOGUE): define.
13880 * config/pa/pa-protos.h (pa_output_function_label): Declare.
13881 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
13882 to declaration.
13883 (pa_linux_output_function_prologue): Declare.
13884 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
13885 (pa_output_function_label): New.
13886 (pa_output_function_prologue): Revise to use pa_output_function_label.
13887 (pa_linux_output_function_prologue): New.
13888 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
13889
13890 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
13891
13892 * tree-vrp.h (value_range_base::intersect): New.
13893 (value_range::intersect_helper): Move from here...
13894 (value_range_base::intersect_helper): ...to here.
13895 * tree-vrp.c (value_range::intersect_helper): Rename to...
13896 (value_range_base::intersect_helper): ...this, and rewrite to
13897 return a value instead of modifying THIS in place.
13898 Also, move equivalence handling...
13899 (value_range::intersect): ...here, while calling intersect_helper.
13900 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
13901 calling intersect.
13902 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
13903 Same.
13904 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
13905
13906 2019-06-07 Jakub Jelinek <jakub@redhat.com>
13907
13908 * Makefile.in (genprogerr): Add condmd.
13909 (genprog): Remove it here.
13910
13911 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
13912
13913 * doc/invoke.texi (AMD GCN Options): Add gfx906.
13914
13915 2019-06-07 Richard Biener <rguenther@suse.de>
13916
13917 PR debug/90574
13918 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
13919 that appear after user labels.
13920
13921 2019-06-07 Martin Liska <mliska@suse.cz>
13922
13923 * cselib.c (cselib_init): Disable hash table
13924 sanitization.
13925 * hash-set.h: Pass new default argument to m_table.
13926 * hash-table.c: Add global variable with hash table
13927 sanitization limit.
13928 * hash-table.h (Allocator>::hash_table): Add new argument
13929 to ctor.
13930 (hashtab_chk_error): New.
13931 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
13932 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
13933 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
13934
13935 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
13936
13937 * common.opt (flto-odr-type-merging): Ignore.
13938 * invoke.texi (-flto-odr-type-merging): Remove.
13939 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
13940 (can_be_vtable_hashed_p): Remove.
13941 (hash_odr_vtable): Remove.
13942 (odr_vtable_hasher::hash): Remove.
13943 (types_same_for_odr): Remove.
13944 (types_odr_comparable): Remove.
13945 (odr_vtable_hasher::equal): Remove.
13946 (odr_vtable_hash_type, odr_vtable_hash): Remove.
13947 (add_type_duplicate): Do not synchronize vtable and name hashtables.
13948 (get_odr_type): Do not use vtable hash.
13949 (dump_odr_type): Remove commented out code.
13950 (build_type_inheritance_graph): Do not allocate vtable hash.
13951 (rebuild_type_inheritance_graph): Do not delete vtable hash.
13952 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
13953 (odr_type_p): Likewise.
13954 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
13955 test.
13956
13957 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
13958
13959 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
13960 immediately after same_types_for_tbaa_p returns -1 and continue
13961 looking for possible exact match; if matching types are arrays
13962 watch for partial overlaps.
13963 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
13964 (indirect_refs_may_alias_p): Do type based disambiguation first;
13965 update comment.
13966
13967 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
13968
13969 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
13970
13971 2019-06-07 Martin Liska <mliska@suse.cz>
13972
13973 * doc/invoke.texi: Remove param.
13974 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
13975 Remove.
13976 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
13977 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
13978 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
13979 * profile.c (instrument_values): Remove
13980 HIST_TYPE_INDIR_CALL_TOPN.
13981 * tree-profile.c (init_ic_make_global_vars):
13982 Always build __gcov_indirect_call only.
13983 (gimple_init_gcov_profiler): Remove usage
13984 of PARAM_INDIR_CALL_TOPN_PROFILE.
13985 (gimple_gen_ic_profiler): Likewise.
13986 * value-prof.c (dump_histogram_value): Likewise.
13987 (stream_in_histogram_value): Likewise.
13988 (gimple_indirect_call_to_profile): Likewise.
13989 (gimple_find_values_to_profile): Likewise.
13990 * value-prof.h (enum hist_type): Likewise.
13991
13992 2019-06-07 Martin Liska <mliska@suse.cz>
13993
13994 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
13995 function.
13996
13997 2019-06-07 Martin Liska <mliska@suse.cz>
13998
13999 PR tree-optimization/78902
14000 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
14001 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
14002 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14003 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14004 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
14005 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14006 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
14007 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
14008 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14009 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14010 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14011 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
14012 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
14013 New.
14014 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
14015 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
14016 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
14017 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14018 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14019 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
14020 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14021 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14022 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
14023 warn_unused_result attribute.
14024 (BUILT_IN_STRDUP): Likewise.
14025 (BUILT_IN_STRNDUP): Likewise.
14026 (BUILT_IN_ALLOCA): Likewise.
14027 (BUILT_IN_CALLOC): Likewise.
14028 (BUILT_IN_MALLOC): Likewise.
14029 (BUILT_IN_REALLOC): Likewise.
14030
14031 2019-06-06 Jim Wilson <jimw@sifive.com>
14032
14033 PR target/89955
14034 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
14035 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
14036 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
14037
14038 2019-06-06 Martin Sebor <msebor@redhat.com>
14039
14040 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
14041 (handle_builtin_malloc): Remove trailing spaces.
14042 (handle_builtin_memset): Same.
14043 (handle_builtin_memcmp): Same.
14044 (compute_string_length): Same.
14045 (determine_min_objsize): Same.
14046 (handle_builtin_string_cmp): Same.
14047 (handle_char_store): Same. Break up excessively long line.
14048
14049 2019-06-06 Martin Jambor <mjambor@suse.cz>
14050
14051 * tree-sra.c (build_reconstructed_reference): Drop the alignment
14052 check.
14053
14054 2019-06-06 Martin Jambor <mjambor@suse.cz>
14055
14056 * tree-sra.c (struct access): New field grp_same_access_path.
14057 (dump_access): Dump it.
14058 (build_reconstructed_reference): New function.
14059 (build_ref_for_model): Use it if possible.
14060 (path_comparable_for_same_access): New function.
14061 (same_access_path_p): Likewise.
14062 (sort_and_splice_var_accesses): Set the new flag.
14063 (analyze_access_subtree): Likewise.
14064 (propagate_subaccesses_across_link): Propagate zero value of the new
14065 flag down the access tree.
14066
14067 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
14068
14069 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
14070 * config/gcn/gcn.opt (gpu_type): Add gfx906.
14071 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
14072 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
14073 Add gfx906.
14074
14075 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14076
14077 PR tree-optimization/90332
14078 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
14079 Handle VALS containing two vectors.
14080 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
14081 to...
14082 (@aarch64_combinez<mode>): ... This.
14083 (*aarch64_combinez_be<mode>): Rename to...
14084 (@aarch64_combinez_be<mode>): ... This.
14085 (vec_init<mode><Vhalf>): New define_expand.
14086 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
14087
14088 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14089
14090 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
14091 library functions only when not optimizing for size.
14092 (ashlsi3): Likewise.
14093 (ashrhi3): Likewise.
14094 (ashrsi3): Likewise.
14095 (lshrhi3): Likewise.
14096 (lshrsi3): Likewise.
14097
14098 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
14099
14100 PR rtl-optimization/88751
14101 * ira.c (ira): Use the number of the actually referenced registers
14102 when calculating the threshold.
14103
14104 2019-06-06 Jakub Jelinek <jakub@redhat.com>
14105
14106 * configure: Regenerate.
14107
14108 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14109
14110 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
14111 register if it is in memory, so the shift can be emulated with a rotate
14112 instruction.
14113 (ashrhi3): Likewise.
14114 (lshrhi3): Likewise.
14115
14116 2019-06-06 Martin Liska <mliska@suse.cz>
14117
14118 PR tree-optimization/87954
14119 * match.pd: Simplify mult where both arguments are 0 or 1.
14120
14121 2019-06-06 Richard Biener <rguenther@suse.de>
14122
14123 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
14124 put equivalences on UNDEFINED ranges.
14125 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14126 Make sure to drop defs of stmts added during simplification
14127 to VARYING.
14128
14129 2019-06-06 Richard Biener <rguenther@suse.de>
14130
14131 * tree-ssa-structalias.c: Include tree-cfg.h.
14132 (make_heapvar): Do not make heap vars artificial.
14133 (find_func_aliases_for_builtin_call): Handle stack allocation
14134 functions.
14135 (find_func_aliases): Delay processing of simple enough returns
14136 in non-IPA mode.
14137 (set_uids_in_ptset): Adjust.
14138 (find_what_var_points_to): Likewise.
14139 (solve_constraints): Do not dump points-to sets here.
14140 (compute_points_to_sets): Post-process return statements,
14141 amending the escaped solution. Dump points-to sets afterwards.
14142 (ipa_pta_execute): Dump points-to sets.
14143
14144 2019-06-06 Martin Liska <mliska@suse.cz>
14145
14146 PR web/87933
14147 * doc/install.texi: Fix HTML headers and
14148 titles for 'Installing GCC' pages.
14149
14150 2019-06-06 Martin Liska <mliska@suse.cz>
14151
14152 * ipa-icf-gimple.h (dump_message_1): Remove.
14153 (dump_message): Likewise.
14154 (return_false_with_message_1): Print also file.
14155 (return_false_with_msg): Likewise.
14156 (return_with_result): Likewise.
14157 (return_with_debug): Likewise.
14158 * ipa-icf.c (sem_function::equals_private): Remove call
14159 to dump_message.
14160
14161 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14162
14163 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
14164 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
14165 memory operand for it.
14166 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
14167
14168 2019-06-05 Martin Sebor <msebor@redhat.com>
14169
14170 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
14171 Adjust quoting and hyphenation.
14172 * convert.c (convert_to_real_1): Same.
14173 * gcc.c (driver_wrong_lang_callback): Same.
14174 (driver::handle_unrecognized_options): Same.
14175 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
14176 * opts-common.c (cmdline_handle_error): Same.
14177 (read_cmdline_option): Same.
14178 * opts-global.c (complain_wrong_lang): Same.
14179 (print_ignored_options): Same.
14180 (handle_common_deferred_options): Same.
14181 * pretty-print.h: Same.
14182 * print-rtl.c (debug_bb_n_slim): Same.
14183 * sched-rgn.c (make_pass_sched_fusion): Same.
14184 * tree-cfg.c (verify_gimple_assign_unary): Same.
14185 (verify_gimple_label): Same.
14186 * tree-ssa-operands.c (verify_ssa_operands): Same.
14187 * varasm.c (do_assemble_alias): Same.
14188 (assemble_alias): Same.
14189
14190 2019-06-05 Richard Henderson <rth@twiddle.net>
14191
14192 * config/alpha/alpha.c (direct_return): Move down after
14193 struct machine_function definition; use saved frame_size;
14194 return bool.
14195 (struct machine_function): Add sa_mask, sa_size, frame_size.
14196 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14197 (alpha_compute_frame_layout): ... new function.
14198 (TARGET_COMPUTE_FRAME_LAYOUT): New.
14199 (alpha_initial_elimination_offset): Use saved sa_size.
14200 (alpha_vms_initial_elimination_offset): Likewise.
14201 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14202 (alpha_expand_prologue): Use saved frame data. Merge integer
14203 and fp register save loops.
14204 (alpha_expand_epilogue): Likewise.
14205 (alpha_start_function): Use saved frame data.
14206 * config/alpha/alpha-protos.h (direct_return): Update.
14207 (alpha_sa_size): Remove.
14208
14209 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
14210
14211 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14212 multiplication by a power-of-two value.
14213 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14214 and turn the modulo operation into a masking operation.
14215
14216 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14217
14218 PR debug/90733
14219 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14220 with VOIDmode inner operands.
14221
14222 2019-06-05 Richard Biener <rguenther@suse.de>
14223
14224 PR middle-end/90726
14225 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14226 turn an expression graph into a tree.
14227
14228 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14229
14230 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14231 member.
14232 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14233 treat it like explicit monotonic schedule modifier.
14234 (expand_omp_for): Initialize has_lastprivate_conditional.
14235 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14236 schedule modifier.
14237
14238 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14239 references, lookup in in hash map MEM_REF operand instead of the
14240 MEM_REF itself.
14241 (lower_omp_1): When looking for lastprivate conditional assignments,
14242 handle MEM_REFs with REFERENCE_TYPE operands.
14243
14244 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14245 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14246 and references a VLA. Handle references to non-VLAs if is_simd
14247 all privatization clauses like reductions.
14248 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14249 If omp_is_reference, use always omp simd arrays and set
14250 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14251 fails, emit reference initialization.
14252
14253 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14254
14255 PR target/89803
14256 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14257 _mm_mask_fpclass_sd_mask): New intrinsics.
14258 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14259 * config/i386/i386-builtin.def
14260 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14261 New builtins.
14262 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14263 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14264 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14265 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14266 case QI_FTYPE_V2SF_INT): Ditto.
14267 * config/i386/sse.md
14268 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14269 Extended to insnstructions with mask operands.
14270
14271 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14272
14273 * config/rs6000/constraints.md (define_register_constraint "wp"):
14274 Delete.
14275 (define_register_constraint "wq"): Delete.
14276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14277 (rs6000_init_hard_regno_mode_ok): Adjust.
14278 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14279 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14280 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14281 (define_mode_attr VSa): Delete.
14282 (define_mode_attr VSisa): New.
14283 (rest of file): Adjust.
14284 * doc/md.texi (Machine Constraints): Adjust.
14285
14286 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14287
14288 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14289 (define_attr "enabled"): Handle those new isa values.
14290
14291 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14292
14293 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14294 (define_mode_attr VSr5): Delete.
14295 (define_mode_attr VStype_sqrt): Delete.
14296 (define_mode_iterator VSX_SPDP): Delete.
14297 (define_mode_attr VS_spdp_res): Delete.
14298 (define_mode_attr VS_spdp_insn): Delete.
14299 (define_mode_attr VS_spdp_type): Delete.
14300 (*vsx_sqrt<mode>2): Adjust.
14301 (vsx_<VS_spdp_insn>): Delete, split to...
14302 (vsx_xscvdpsp): ... this. New. And...
14303 (vsx_xvcvspdp): ... this. New. And...
14304 (vsx_xvcvdpsp): ... this. New.
14305
14306 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14307
14308 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14309 and V2DF.
14310 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14311 (rest of file): Adjust.
14312
14313 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14314
14315 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14316 (vsx_extract_<mode>_var): Ditto.
14317
14318 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14319
14320 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14321 with just "wa".
14322
14323 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14324
14325 * config/rs6000/constraints.md (define_register_constraint "ww"):
14326 Delete.
14327 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14328 (rs6000_init_hard_regno_mode_ok): Adjust.
14329 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14330 RS6000_CONSTRAINT_ww.
14331 * config/rs6000/rs6000.md: Adjust.
14332 * config/rs6000/vsx.md: Adjust.
14333 * doc/md.texi (Machine Constraints): Adjust.
14334
14335 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14336
14337 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14338 (define_mode_attr sd): New.
14339 (define_mode_attr s): New.
14340 (define_mode_attr Ftrad): Delete.
14341 (define_mode_attr Fvsx): Delete.
14342 (define_mode_attr Fs): Delete.
14343 (rest of file): Use the new mode attributes.
14344 * config.rs6000/vsx.md: Use the new mode attributes.
14345
14346 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14347
14348 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14349 with just "wa".
14350
14351 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14352
14353 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14354 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14355 used with VSX_B, VSX_D, or VSX_F, with just "wa".
14356
14357 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
14358
14359 PR target/78263
14360 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14361 C++ with strict ANSI requirements.
14362
14363 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
14364
14365 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14366 computations when step is 1.
14367
14368 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14369
14370 * config/rs6000/constraints.md (define_register_constraint "wf"):
14371 Delete.
14372 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14373 (rs6000_init_hard_regno_mode_ok): Adjust.
14374 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14375 RS6000_CONSTRAINT_wf.
14376 * config/rs6000/rs6000.md: Adjust.
14377 * config/rs6000/vsx.md: Adjust.
14378 * doc/md.texi (Machine Constraints): Adjust.
14379
14380 2019-06-04 Andrew Pinski <apinski@marvell.com>
14381
14382 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14383 Fix ILP32 value.
14384
14385 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14386
14387 * config/rs6000/constraints.md (define_register_constraint "wd"):
14388 Delete.
14389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14390 (rs6000_init_hard_regno_mode_ok): Adjust.
14391 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14392 RS6000_CONSTRAINT_wd.
14393 * config/rs6000/rs6000.md: Adjust.
14394 * config/rs6000/vsx.md: Adjust.
14395 * doc/md.texi (Machine Constraints): Adjust.
14396
14397 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14398
14399 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
14400 (rest of file): Adjust.
14401
14402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14403
14404 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
14405 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
14406 (vsx_splat_<mode>_reg): Adjust.
14407
14408 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14409
14410 * config/rs6000/constraints.md (define_register_constraint "ws"):
14411 Delete.
14412 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14413 (rs6000_init_hard_regno_mode_ok): Adjust.
14414 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14415 RS6000_CONSTRAINT_ws.
14416 * config/rs6000/rs6000.md: Adjust.
14417 * config/rs6000/vsx.md: Adjust.
14418 * doc/md.texi (Machine Constraints): Adjust.
14419
14420 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14421
14422 * config/rs6000/constraints.md (define_register_constraint "wv"):
14423 Delete.
14424 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14425 (rs6000_init_hard_regno_mode_ok): Adjust.
14426 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14427 RS6000_CONSTRAINT_wv.
14428 * config/rs6000/rs6000.md: Adjust.
14429 * config/rs6000/vsx.md: Adjust.
14430 * doc/md.texi (Machine Constraints): Adjust.
14431
14432 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14433
14434 * config/rs6000/constraints.md (define_register_constraint "wi"):
14435 Delete.
14436 (define_register_constraint "wt"): Delete.
14437 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14438 (rs6000_init_hard_regno_mode_ok): Adjust.
14439 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14440 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
14441 * config/rs6000/rs6000.md: Adjust.
14442 * config/rs6000/vsx.md: Adjust.
14443 * doc/md.texi (Machine Constraints): Adjust.
14444
14445 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14446
14447 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
14448 const.
14449 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
14450 default_elf_asm_output_external.
14451
14452 2019-06-04 Martin Liska <mliska@suse.cz>
14453
14454 * ipa-icf.c (INCLUDE_LIST): Remove.
14455 (sem_item_optimizer::execute): Remove call to init_wpa.
14456 * ipa-icf.h (init_wpa): Remove.
14457
14458 2019-06-04 Jakub Jelinek <jakub@redhat.com>
14459
14460 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
14461 conditional on combined for simd.
14462 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
14463 member.
14464 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
14465 constructs, don't remove lastprivate_conditional_map, but instead set
14466 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
14467 to parent construct temporaries.
14468 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
14469 like !ctx->lastprivate_conditional_map.
14470 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
14471 use up->outer context instead of up.
14472 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
14473 gimple_omp_for_combined_p.
14474 (expand_omp_for_static_nochunk): Likewise.
14475 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
14476 probably moved over into expand_omp_for_generic rather than being copied
14477 there.
14478
14479 2019-06-04 Martin Liska <mliska@suse.cz>
14480
14481 * value-prof.c (dump_histogram_value): Fix typo.
14482 (gimple_mod_subtract_transform): Likewise.
14483
14484 2019-06-04 Richard Biener <rguenther@suse.de>
14485
14486 PR middle-end/90726
14487 * tree-chrec.c (chrec_contains_symbols): Add to visited.
14488 (tree_contains_chrecs): Likewise.
14489 (chrec_contains_symbols_defined_in_loop): Move here and avoid
14490 exponential behaivor from ...
14491 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14492 ... here.
14493 (expression_expensive_p): Avoid exponential behavior and compute
14494 expanded size, rejecting any expansion.
14495 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
14496 (idx_contains_abnormal_ssa_name_p): Likewise.
14497 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
14498 (contains_abnormal_ssa_name_p): Simplify and use
14499 walk_tree_without_duplicates.
14500
14501 2019-06-04 Richard Biener <rguenther@suse.de>
14502
14503 PR tree-optimization/90738
14504 Revert
14505 2019-06-03 Richard Biener <rguenther@suse.de>
14506
14507 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14508 full reference tree and record in ref->ref.
14509 (vn_reference_lookup_3): Pass in original ref to
14510 ao_ref_init_from_vn_reference.
14511 (vn_reference_lookup): Likewise.
14512 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14513 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14514 Handle non-decl bases in the original reference.
14515
14516 2019-06-04 Martin Liska <mliska@suse.cz>
14517
14518 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
14519 number of references.
14520 (sem_item_optimizer::do_congruence_step):
14521 (sem_item_optimizer::worklist_push): Dump how references
14522 a class has.
14523 (sem_item_optimizer::worklist_pop): Use heap.
14524 (sem_item_optimizer::process_cong_reduction): Likewise.
14525 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
14526
14527 2019-06-04 Martin Liska <mliska@suse.cz>
14528
14529 * ipa-icf.h (struct sem_usage_pair_hash): New.
14530 (sem_usage_pair_hash::hash): Likewise.
14531 (sem_usage_pair_hash::equal): Likewise.
14532 (struct sem_usage_hash): Likewise.
14533 * ipa-icf.c (sem_item::sem_item): Initialize
14534 referenced_by_count.
14535 (sem_item::add_reference): Register a reference
14536 in ref_map and not in target->usages.
14537 (sem_item::setup): Remove initialization of
14538 dead vectors.
14539 (sem_item::~sem_item): Remove usage of dead vectors.
14540 (sem_item::dump): Remove dump of references.
14541 (sem_item_optimizer::sem_item_optimizer): Initialize
14542 m_references.
14543 (sem_item_optimizer::read_section): Remove useless
14544 dump.
14545 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
14546 (sem_item_optimizer::build_graph): Pass m_references
14547 to ::add_reference.
14548 (sem_item_optimizer::verify_classes): Remove usage of dead
14549 vectors.
14550 (sem_item_optimizer::traverse_congruence_split): Return true
14551 when a class is split.
14552 (sem_item_optimizer::do_congruence_step_for_index): Use
14553 hash_map for look up of (sem_item *, index). That brings
14554 significant speed up.
14555 (sem_item_optimizer::do_congruence_step): Return true
14556 when a split is done.
14557 (congruence_class::is_class_used): Use referenced_by_count.
14558
14559 2019-06-04 Alan Modra <amodra@gmail.com>
14560
14561 PR target/90689
14562 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
14563 error.
14564
14565 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14566
14567 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
14568 * config/rs6000/rs6000.c (direct_move_p): Adjust.
14569 (rs6000_secondary_reload_simple_move): Adjust.
14570 (rs6000_opt_masks): Neuter the "mfpgpr" option.
14571 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
14572 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
14573 comment.
14574 (power6x): Adjust.
14575 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
14576 (floatunssi<mode>2_lfiwzx): Adjust.
14577 (fix_trunc<mode>si2_stfiwx): Adjust.
14578 (fixuns_trunc<mode>si2_stfiwx): Adjust.
14579 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
14580 (mfpgpr): Mark as deprecated.
14581 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
14582 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
14583 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
14584
14585 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14586
14587 * config/rs6000/constraints.md (define_register_constraint "wg"):
14588 Delete.
14589 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14590 RS6000_CONSTRAINT_wg.
14591 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14592 (rs6000_init_hard_regno_mode_ok): Adjust.
14593 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
14594 Delete "wg" alternatives.
14595 * doc/md.texi (Machine Constraints): Adjust.
14596
14597 2019-06-03 Alan Modra <amodra@gmail.com>
14598
14599 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
14600 (get_uncond_jump_length): Assert length less than INT_MAX and
14601 non-negative.
14602
14603 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14604
14605 PR middle-end/64242
14606 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
14607 block.
14608 (expand_builtin_nonlocal_goto): Likewise.
14609
14610 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14611
14612 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
14613 (aarch64_asm_output_external): Declare.
14614 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
14615 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14616 (aarch64_asm_output_alias): New.
14617 (aarch64_asm_output_external): New.
14618 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
14619 (ASM_OUTPUT_EXTERNAL): Define.
14620
14621 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
14622 * tree-vrp.h (value_range_base::nonzero_p): New.
14623 (value_range_base::set_nonnull): Rename to...
14624 (value_range_base::set_nonzero): ...this.
14625 (value_range_base::set_null): Rename to...
14626 (value_range_base::set_zero): ...this.
14627 (value_range::set_nonnull): Remove.
14628 (value_range::set_null): Remove.
14629 * tree-vrp.c (range_is_null): Remove.
14630 (range_is_nonnull): Remove.
14631 (extract_range_from_binary_expr): Use value_range_base::*zero_p
14632 instead of range_is_*null.
14633 (extract_range_from_unary_expr): Same.
14634 (value_range_base::set_nonnull): Rename to...
14635 (value_range_base::set_nonzero): ...this.
14636 (value_range::set_nonnull): Remove.
14637 (value_range_base::set_null): Rename to...
14638 (value_range_base::set_zero): ...this.
14639 (value_range::set_null): Remove.
14640 (extract_range_from_binary_expr): Rename set_*null uses to
14641 set_*zero.
14642 (extract_range_from_unary_expr): Same.
14643 (union_helper): Same.
14644 * vr-values.c (get_value_range): Use set_*zero instead of
14645 set_*null.
14646 (vr_values::extract_range_from_binary_expr): Same.
14647 (vr_values::extract_range_basic): Same.
14648
14649 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14650
14651 PR driver/90684
14652 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
14653
14654 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14655
14656 * config/aarch64/iterators.md (MAX_OPP): New code attr.
14657 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
14658 Rename to...
14659 (aarch64_<su>abd<mode>_3): ... This.
14660 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
14661
14662 2019-06-03 Richard Biener <rguenther@suse.de>
14663
14664 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14665 full reference tree and record in ref->ref.
14666 (vn_reference_lookup_3): Pass in original ref to
14667 ao_ref_init_from_vn_reference.
14668 (vn_reference_lookup): Likewise.
14669 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14670 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14671 Handle non-decl bases in the original reference.
14672
14673 2019-06-03 Martin Liska <mliska@suse.cz>
14674
14675 * doc/generic.texi: Remove Java Trees.
14676
14677 2019-06-03 Martin Liska <mliska@suse.cz>
14678
14679 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
14680 returns 0 when operands are equal.
14681
14682 2019-06-03 Richard Biener <rguenther@suse.de>
14683
14684 PR tree-optimization/90716
14685 * tree-loop-distribution.c (destroy_loop): Process blocks in
14686 correct order.
14687
14688 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14689
14690 PR target/88837
14691 * vector-builder.h (vector_builder::count_dups): New method.
14692 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
14693 Declare prototype.
14694 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
14695 (vec_init<mode><Vel>): New pattern.
14696 * config/aarch64/aarch64.c (emit_insr): New function.
14697 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
14698 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
14699 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
14700 (aarch64_sve_expand_vector_init): Define two overloaded functions.
14701
14702 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14703
14704 PR tree-optimization/90681
14705 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
14706 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
14707 special case for SLP, but fail on non-groupped loads.
14708
14709 2019-06-03 Martin Liska <mliska@suse.cz>
14710
14711 * cfg.c (debug): Use TDF_DETAILS for debug and
14712 print edge info only once.
14713
14714 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
14715
14716 PR fortran/90539
14717 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
14718
14719 2019-06-01 Martin Sebor <msebor@redhat.com>
14720
14721 PR middle-end/90694
14722 * tree-pretty-print.c (dump_generic_node): Add parentheses.
14723
14724 2019-05-31 Jan Hubicka <jh@suse.cz>
14725
14726 * alias.c: Include ipa-utils.h.
14727 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
14728 * ipa-devirt.c (prevailing_odr_type): New.
14729 * ipa-utils.h (previaling_odr_type): Declare.
14730
14731 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
14732 Hongtao Liu <hongtao.liu@intel.com>
14733
14734 PR target/89355
14735 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
14736 NOTE_INSN_DELETED_LABEL check.
14737
14738 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
14739 Robert Suchanek <robert.suchanek@mips.com>
14740
14741 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
14742 and 3rd operands of the fmadd/fmsub/maddv builtin.
14743
14744 2019-05-31 Jakub Jelinek <jakub@redhat.com>
14745
14746 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
14747 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
14748 on OMP_SIMD if not nested inside of worksharing loop that also has
14749 lastprivate conditional clause for the same decl.
14750 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
14751 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
14752 on simd.
14753 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
14754 on simd construct.
14755 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
14756 on simd construct.
14757 (lower_lastprivate_clauses): Likewise.
14758 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
14759 calling lower_rec_input_clauses.
14760 (lower_omp_for): Likewise.
14761 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
14762 clause on simd construct.
14763 * omp-expand.c (expand_omp_simd): Initialize cond_var if
14764 OMP_CLAUSE__CONDTEMP_ clause is present.
14765
14766 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
14767 ivar and lvar.
14768
14769 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
14770
14771 PR c/43673
14772 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
14773 TEX_D32, TEX_D64 or TEX_D128.
14774
14775 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14776
14777 * match.pd (~(vec?cst1:cst2)): New transformation.
14778
14779 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14780
14781 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
14782 ((size_t)(A /[ex] B) CMP C): New transformation.
14783
14784 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
14785
14786 * doc/md.texi: Document define_insn_and_rewrite.
14787 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
14788 * gensupport.c (queue_elem): Update comment.
14789 (replace_operands_with_dups): New function.
14790 (gen_rewrite_sequence): Likewise.
14791 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
14792 * read-rtl.c (apply_subst_iterator): Likewise.
14793 (add_condition_to_rtx, named_rtx_p): Likewise.
14794 (rtx_reader::read_rtx_operand): Likewise.
14795 * config/aarch64/aarch64-sve.md
14796 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
14797 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
14798 define_insn_and_rewrite.
14799 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
14800 Remove separate define_split.
14801
14802 2019-05-31 Jan Hubicka <jh@suse.cz>
14803
14804 * tree-ssa-alias.c (type_has_components_p): New function.
14805 (aliasing_component_refs_p): Use it.
14806
14807 2019-05-31 Martin Liska <mliska@suse.cz>
14808
14809 * gdbhooks.py: Add const_tree to TreePrinter.
14810
14811 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
14812
14813 PR debug/86964
14814 * common.opt (feliminate-unused-debug-symbols): Enable by default.
14815 * doc/invoke.texi (Debugging Options): Document new default of
14816 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
14817
14818 2019-05-31 Jakub Jelinek <jakub@redhat.com>
14819
14820 PR tree-optimization/90671
14821 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
14822 template_block used to be empty on the first call, don't use
14823 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
14824 seq with bb_seq and set it with set_bb_seq.
14825
14826 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
14827
14828 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
14829
14830 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14831 Michael Meissner <meissner@linux.ibm.com>
14832
14833 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
14834 (prefixed_mem_operand): Likewise.
14835 (non_prefixed_mem_operand): Likewise.
14836 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
14837 prototype.
14838 * config/rs6000/rs6000.c (print_operand_address): Handle
14839 PC-relative addresses.
14840 (mode_supports_prefixed_address_p): New function.
14841 (rs6000_prefixed_address): New function.
14842 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
14843 (SYMBOL_REF_PCREL_P): Likewise.
14844
14845 2019-05-30 Jakub Jelinek <jakub@redhat.com>
14846
14847 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
14848 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
14849 (gimplify_omp_for): If worksharing loop with lastprivate conditional
14850 is nested inside of parallel region, add _condtemp_ clause to both.
14851 * tree-nested.c (convert_nonlocal_omp_clauses,
14852 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
14853 assertion failure.
14854 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
14855 member.
14856 * omp-general.c (omp_extract_for_data): Compute it.
14857 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
14858 (lower_rec_input_clauses): Likewise.
14859 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
14860 clause is already present, just add one further one after it.
14861 (lower_lastprivate_clauses): Handle cond_ptr with array type.
14862 (lower_send_shared_vars): Clear _condtemp_ vars.
14863 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
14864 or section or taskgroup.
14865 * omp-expand.c (determine_parallel_type): Disallow combining only if
14866 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
14867 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
14868 (expand_omp_for_generic, expand_omp_for_static_nochunk,
14869 expand_omp_for_static_chunk, expand_omp_for): Use
14870 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
14871 determine if a special set of API routines are needed and if condtemp
14872 needs to be initialized, while always initialize cond_var if
14873 fd->lastprivate_conditional is non-zero.
14874
14875 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14876 Michael Meissner <meissner@linux.ibm.com>
14877
14878 * config/rs6000/constraints.md (eI): New constraint.
14879 * config/rs6000/predicates.md (cint34_operand): New predicate.
14880 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
14881 (SIGNED_34BIT_OFFSET_P): Likewise.
14882 * doc/md.texi (eI): Document constraint.
14883
14884 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
14885
14886 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
14887
14888 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14889 Michael Meissner <meissner@linux.ibm.com>
14890
14891 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
14892 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
14893 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
14894 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
14895 (OTHER_FUTURE_MASKS): Likewise.
14896 (POWERPC_MASKS): Likewise.
14897 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
14898 specified without -mprefixed-addr or -mcpu=future. Error if
14899 -mprefixed-addr is specified without -mcpu=future.
14900 (rs6000_opt_masks): Add entry for prefixed-addr.
14901 * rs6000.opt (mprefixed-addr): New option.
14902
14903 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
14904
14905 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
14906 cfun->is_thunk check.
14907
14908 2019-05-30 Jakub Jelinek <jakub@redhat.com>
14909
14910 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
14911 to length.
14912
14913 2019-05-30 Martin Liska <mliska@suse.cz>
14914
14915 * gdbinit.in: Fix 'ptc' command. Add trt
14916 that prints TREE_TYPE($).
14917
14918 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
14919 Alan Modra <amodra@gmail.com>
14920
14921 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
14922 calls here...
14923 (rs6000_indirect_call_template_1): ...and here.
14924 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
14925 plt16_ha, plt16_lo, mtctr indirect calls. Use
14926 rs6000_pltseq_enum.
14927 (rs6000_decl_ok_for_sibcall): New function.
14928 (rs6000_function_ok_for_sibcall): Refactor.
14929 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
14930 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
14931 when pcrel. Reorganize.
14932 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
14933 * rs6000.h (rs6000_pltseq_enum): New enum.
14934 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
14935 (*pltseq_tocsave): Use rs6000_pltseq_enum.
14936 (*pltseq_plt16_ha): Likewise.
14937 (*pltseq_plt16_lo): Likewise.
14938 (*pltseq_mtctr): Likewise.
14939 (*pltseq_plt_pcrel): New insn.
14940 (*call_local_aix): Handle @notoc calls.
14941 (*call_value_local_aix): Likewise.
14942 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
14943 (*call_value_nonlocal_aix): Likewise.
14944 (*call_indirect_pcrel): New insn.
14945 (*call_value_indirect_pcrel): Likewise.
14946
14947 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
14948
14949 * config/i386/sse.md (*save_multiple<mode>): Rename from
14950 save_multiple<mode>.
14951 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
14952 (*restore_multiple_and_return<mode>): Rename from
14953 restore_multiple_and_return<mode>.
14954 (*restore_multiple_leave_return<mode>): Rename from
14955 restore_multiple_leave_return<mode>.
14956
14957 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
14958
14959 * config.gcc (rx-*-linux*): New target.
14960 * config/rx/elf.opt: New file.
14961 * config/rx/linux.h: Likewise.
14962 * config/rx/t-linux: Likewise.
14963 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
14964 make it zero.
14965 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
14966 (ASM_APP_OFF): Likewise.
14967 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
14968 moved elsewhere.
14969
14970 2019-05-29 Jan Hubicka <jh@suse.cz>
14971
14972 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
14973 variants are pointer equivalent.
14974
14975 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14976
14977 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
14978 * config/aarch64/aarch64-sve2.md: New file.
14979 (<u>avg<mode>3_floor): New pattern.
14980 (<u>avg<mode>3_ceil): Likewise.
14981 (*<sur>h<addsub><mode>): Likewise.
14982 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
14983 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
14984
14985 2019-05-29 Jakub Jelinek <jakub@redhat.com>
14986
14987 PR bootstrap/90543
14988 * optc-save-gen.awk: In cl_optimization_print, use correct condition
14989 for var_opt_string printing. In cl_optimization_print_diff, print
14990 (null) instead of invoking undefined behavior if one of the
14991 var_opt_string pointers is NULL and use && instead of first || in the
14992 guarding condition. For var_target_other options, handle const char *
14993 target variables similarly to const char * optimize node variables.
14994
14995 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
14996
14997 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
14998 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
14999 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
15000 Add autib1716 and pacib1716 initialisation.
15001 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
15002 for autib1716 and pacib1716.
15003 * config/aarch64/aarch64-protos.h (aarch64_key_type,
15004 aarch64_post_cfi_startproc): Define.
15005 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
15006 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
15007 aarch64_handle_pac_ret_protection): Set default sign key to A.
15008 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
15009 aarch64_expand_prologue): Add check for b-key.
15010 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
15011 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
15012 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
15013 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
15014 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
15015 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
15016 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15017 * config/aarch64/aarch64.md (do_return): Add check for b-key.
15018 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
15019 pauth_hint_num_a with pauth_hint_num.
15020 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
15021 pauth_hint_num_a with pauth_hint_num.
15022 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
15023 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
15024 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15025 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
15026 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
15027 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
15028 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
15029 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15030 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
15031 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
15032 UNSPEC_AUTIA1716 respectively.
15033 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
15034 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
15035 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
15036 * doc/invoke.texi (-mbranch-protection): Add b-key type.
15037 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
15038 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
15039
15040 2019-05-29 Jakub Jelinek <jakub@redhat.com>
15041
15042 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
15043 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
15044 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
15045 explicit clause on combined parallel into implicit shared clause.
15046 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
15047 and firstprivate if the decl has one too from combined parallel to
15048 the worksharing construct.
15049
15050 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
15051 Michael Meissner <meissner@linux.ibm.com>
15052
15053 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
15054
15055 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
15056
15057 * rtl.h (LABEL_REF_P): New #define.
15058
15059 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
15060
15061 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
15062
15063 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15064
15065 * internal-fn.c: Marked mask_load_direct as vectorizable.
15066 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
15067 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
15068 combined even if masks different with allow_slp_p param.
15069 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
15070 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
15071 dissolve SLP-only vectorizable groups when SLP has been discarded.
15072 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
15073 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
15074 masks.
15075 (vect_build_slp_tree_1): Fixed comment typo.
15076 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
15077 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
15078 loads for SLP only.
15079 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
15080 vectorizable.
15081 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
15082
15083 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15084
15085 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
15086 Remove obsolete use_thunk reference.
15087 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
15088 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15089 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
15090 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
15091 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15092 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15093 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15094 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
15095 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
15096
15097 2019-05-28 Nathan Sidwell <nathan@acm.org>
15098
15099 * tree.h (IDENTIFIER_ANON_P): New.
15100 (anon_aggrname_format, anon_aggname_p): Don't declare.
15101 (make_anon_name): Declare.
15102 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
15103 (hash_tree): Likewise.
15104 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
15105 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
15106 (anon_cnt, make_anon_name): New.
15107
15108 2019-05-28 Martin Liska <mliska@suse.cz>
15109
15110 PR other/90315
15111 * opts-global.c (decode_options): Print help for all
15112 help_option_arguments.
15113 * opts.c (print_help): Add new argument.
15114 (common_handle_option): Remember all values into
15115 help_option_arguments.
15116 * opts.h (print_help): Add new argument.
15117
15118 2019-05-28 Martin Liska <mliska@suse.cz>
15119
15120 PR ipa/90555
15121 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
15122 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
15123 (func_checker::compare_bb): Call compare_loops.
15124
15125 2019-05-27 Jakub Jelinek <jakub@redhat.com>
15126
15127 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15128 on sections construct.
15129 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
15130 construct.
15131 (lower_omp_sections): Handle lastprivate conditional.
15132 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
15133 lastprivate_conditional_map.
15134 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
15135
15136 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
15137 critical, taskgroup and section regions when looking for a region
15138 with non-NULL lastprivate_conditional_map.
15139
15140 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15141
15142 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
15143 (*ix86_gen_sub3): Ditto.
15144 (*ix86_gen_sub3_carry): Ditto.
15145 (*ix86_gen_one_cmpl2): Ditto.
15146 (*ix86_gen_andsp): Ditto.
15147 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
15148 (gen_and2_insn): New static function.
15149 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
15150 Use gen_add3_insn instead of ix86_gen_add3.
15151 (ix86_expand_split_stack_prologue): Use gen_add2_insn
15152 instead of ix86_gen_add3.
15153 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
15154 Use gen_sub3_insn instead of ix86_gen_sub3.
15155 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
15156 instead of ix86_gen_add3.
15157 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
15158 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
15159 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
15160 * config/i386/i386-options.c (ix86_option_override_internal):
15161 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15162 ix86_gen_one_cmpl2 and ix86_gen_andsp.
15163
15164 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
15165
15166 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
15167 and DW_OP_GNU_const_index opcodes.
15168
15169 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15170
15171 * config/i386/i386.h (STACK_SIZE_MODE): Define.
15172
15173 2019-05-27 Richard Biener <rguenther@suse.de>
15174
15175 PR tree-optimization/90637
15176 * tree-ssa-sink.c (statement_sink_location): Honor the
15177 computed sink location for single-uses.
15178
15179 2019-05-27 Richard Biener <rguenther@suse.de>
15180
15181 PR middle-end/90610
15182 * match.pd (vec_perm): Avoid clobbering op0 when not generating
15183 a bit-insert.
15184
15185 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15186
15187 * config/i386/i386.md (@sub<mode>3_carry): Rename
15188 from sub<mode>3_carry.
15189 (@leave_<mode>): New expander.
15190 (*leave): Rename from leave.
15191 (*leave_rex64): Rename from leave_rex64.
15192 (@monitorx_<mode>): Rename from monitorx_<mode>.
15193 (@clzero_<mode>): Rename from clzero_<mode>.
15194 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15195 from sse3_monitor_<mode>.
15196 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15197 (*ix86_gen_leave): Ditto.
15198 (*ix86_gen_monitor): Ditto.
15199 (*ix86_gen_monitorx): Ditto.
15200 (*ix86_gen_clzero): Ditto.
15201 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15202 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15203 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15204 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15205 Use gen_sse3_monitor instead of ix86_gen_monitor.
15206 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15207 instead of ix86_gen_monitorx.
15208 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15209 instead of ix86_gen_clzero.
15210 * config/i386/i386-options.c (ix86_option_override_internal):
15211 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15212 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15213
15214 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15215
15216 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15217 Rename from tls_global_dynamic_64_<mode>.
15218 (@tls_local_dynamic_base_64_<mode>): Rename from
15219 tls_local_dynamic_base_64_<mode>.
15220 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15221 Remove indirect function.
15222 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15223 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15224 instead of ix86_gen_tls_global_dynamic_64.
15225 Use gen_tls_local_dynamic_base_64 instead of
15226 ix86_gen_tls_local_dynamic_base_64.
15227 * config/i386/i386-options.c (ix86_option_override_internal):
15228 Do not initialize ix86_gen_tls_global_dynamic_64 and
15229 ix86_gen_tls_local_dynamic_base_64.
15230
15231 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15232
15233 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15234 Rename from pro_epilogue_adjust_stack_<mode>_add.
15235 (@pro_epilogue_adjust_stack_sub_<mode>)
15236 Rename from pro_epilogue_adjust_stack_<mode>_sub.
15237 (@allocate_stack_worker_probe_<mode>):
15238 Rename from allocate_stack_worker_probe_<mode>.
15239 (allocate_stack): Use gen_allocate_stack_worker_probe.
15240 (probe_stack): Use gen_probe_stack_1.
15241 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15242 (@adjust_stack_and_probe_<mode>): Rename from
15243 adjust_stack_and_probe<mode>.
15244 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15245 (stack_protect_set): Use gen_stack_protect_set_1.
15246 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15247 (stack_protect_test): Use gen_stack_protect_test_1.
15248 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15249 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15250 Remove indirect function.
15251 (*ix86_gen_adjust_stack_and_probe): Ditto.
15252 (*ix86_gen_probe_stack_range): Ditto.
15253 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15254 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15255 (ix86_adjust_stack_and_probe_stack_clash): Use
15256 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15257 (ix86_adjust_stack_and_probe): Ditto.
15258 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15259 of ix86_gen_probe_stack_range.
15260 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15261 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15262 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15263 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
15264 CODE_FOR_stack_protect_test_{si,di}.
15265 * config/i386/i386-options.c (ix86_option_override_internal):
15266 Do not initialize ix86_gen_allocate_stack_worker,
15267 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15268
15269 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
15270
15271 * doc/invoke.texi (Link Options): Many editorial changes around
15272 -flinker-output.
15273
15274 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15275
15276 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15277 pre-Solaris 11 referene and most Studio compiler details.
15278
15279 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
15280
15281 PR target/90530
15282 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15283 DImode to SImode in floating-point registers on 64-bit target.
15284 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15285 register_operand in xmpyu patterns.
15286
15287 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15288
15289 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15290 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15291 OMP_CLAUSE__REDUCTEMP_.
15292 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15293 OMP_CLAUSE__CONDTEMP_.
15294 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15295 * tree-pretty-print.c (dump_omp_clause): Likewise.
15296 * tree-nested.c (convert_nonlocal_omp_clauses,
15297 convert_local_omp_clauses): Likewise.
15298 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15299 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
15300 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15301 on OMP_FOR.
15302 (gimplify_omp_for): Warn and disable conditional modifier from
15303 lastprivate on loop iterators.
15304 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15305 member.
15306 * omp-general.c (omp_extract_for_data): Initialize it.
15307 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15308 member.
15309 (delete_omp_context): Delete it.
15310 (lower_lastprivate_conditional_clauses): New function.
15311 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15312 handle lastprivate conditional clauses.
15313 (lower_reduction_clauses): Add CLIST argument, emit it into
15314 the critical section if any.
15315 (lower_omp_sections): Adjust lower_lastprivate_clauses and
15316 lower_reduction_clauses callers.
15317 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15318 to lower_lastprivate_clauses.
15319 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15320 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15321 clist into a critical section if not emitted there already by
15322 lower_reduction_clauses.
15323 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15324 callers.
15325 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15326 conditional variables.
15327 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15328 clause is present.
15329 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15330 expand_omp_for_static_chunk): Handle lastprivate conditional.
15331 (expand_omp_for): Handle fd.lastprivate_conditional like
15332 fd.have_reductemp.
15333
15334 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15335
15336 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15337 kernel does not exit cleanly.
15338 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15339
15340 2019-05-24 Jason Merrill <jason@redhat.com>
15341
15342 Revert:
15343 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15344
15345 2019-05-24 Richard Biener <rguenther@suse.de>
15346
15347 PR testsuite/90607
15348 * tree-loop-distribution.c (struct partition): Add location
15349 member.
15350 (partition_alloc): Initialize all fields.
15351 (generate_memset_builtin): Use the location recorded in the
15352 partition for the generated call.
15353 (generate_memcpy_builtin): Likewise.
15354 (classify_partition): Record the location of a single store
15355 as location for the partition.
15356
15357 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15358
15359 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15360 for lo-part.
15361
15362 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
15363
15364 PR target/90588
15365 * common/config/aarch64/aarch64-common.c
15366 (aarch64_rewrite_selected_cpu): Change local temporary variable
15367 type from unsigned long to uint64_t.
15368 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15369 aarch64_get_extension_string_for_isa_flags): Change declaration to
15370 match new definition by replacing unsigned long with uint64_t.
15371
15372 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15373
15374 PR target/90568
15375 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15376 gen_attr_type just once instead of 4-7 times. Formatting fixes.
15377 Handle stack_protect_test_<mode> codegen similarly to corresponding
15378 sub instruction.
15379
15380 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
15381
15382 * config/i386/darwin.h: Reject -mfentry*.
15383 * doc/sourcebuild.texi: Document mfentry target support.
15384
15385 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15386
15387 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15388 Rename to rs6000_global_entry_point_prologue_needed_p. Return
15389 false for PC-relative functions.
15390 (rs6000_output_function_prologue): Change called function name to
15391 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
15392 name,1" for PC-relative functions.
15393 (rs6000_elf_declare_function_name): Change called function name to
15394 rs6000_global_entry_point_prologue_needed_p.
15395
15396 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
15397
15398 PR target/90552
15399 * config/i386/i386.c (gen_rtx_cost):
15400 Use ix86_tune_cost instead of ix86_cost.
15401
15402 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15403 Michael Meissner <meissner@linux.ibm.com>
15404 Segher Boessenkool <segher@kernel.crashing.org>
15405
15406 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
15407 OPTION_MASK_PCREL.
15408 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
15409 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
15410 (rs6000_fndecl_pcrel_p): Likewise.
15411 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
15412 error if -mpcrel is requested without -mcpu=future.
15413 (rs6000_opt_masks): Add entry for pcrel.
15414 (rs6000_fndecl_pcrel_p): New function.
15415 (rs6000_pcrel_p): Likewise.
15416 * config/rs6000/rs6000.opt (mpcrel): New option.
15417 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
15418
15419 2019-05-23 Jan Hubicka <jh@suse.cz>
15420 Martin Liska <mliska@suse.cz>
15421
15422 PR tree-optimization/90576
15423 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
15424 poly_int_tree_p.
15425 (aliasing_component_refs_p): Fix three way size compare conditional;
15426 give up earlier in case we can not decide on equivalence.
15427
15428 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15429 Michael Meissner <meissner@linux.ibm.com>
15430 Segher Boessenkool <segher@kernel.crashing.org>
15431
15432 * config.gcc: Add future cpu.
15433 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
15434 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
15435 #define.
15436 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
15437 (RS6000_CPU): New instantiation for future cpu.
15438 * config/rs6000/rs6000-opts.h (enum processor_type): Add
15439 PROCESSOR_FUTURE.
15440 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
15441 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
15442 * config/rs6000/rs6000-tables.opt: Regenerate.
15443 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
15444 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
15445 (rs6000_machine_from_flags): Handle future cpu.
15446 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
15447 PROCESSOR_POWER9 for now.
15448 (rs6000_adjust_cost): Likewise.
15449 (rs6000_issue_rate): Likewise.
15450 (rs6000_register_move_cost): Likewise.
15451 (rs6000_opt_masks): Add entry for future.
15452 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
15453 (MASK_FUTURE): New #define.
15454 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
15455 * config/rs6000/rs6000.opt (mfuture): New target option.
15456 * doc/invoke.texi (mcpu): Add future cpu.
15457
15458 2019-05-23 Martin Liska <mliska@suse.cz>
15459
15460 PR c++/90587
15461 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
15462 operation points to a temporary (pointed via tree_to_wide_ref)
15463 that is out of scope after the &.
15464
15465 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
15466
15467 PR c++/90592
15468 * doc/extend.texi (Function Names): Add missing word.
15469
15470 2019-05-23 Richard Biener <rguenther@suse.de>
15471
15472 PR tree-optimization/88440
15473 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
15474 at -O[2s]+.
15475 * tree-loop-distribution.c (generate_memset_builtin): Fold the
15476 generated call.
15477 (generate_memcpy_builtin): Likewise.
15478 (distribute_loop): Pass in whether to only distribute patterns.
15479 (prepare_perfect_loop_nest): Also allow size optimization.
15480 (pass_loop_distribution::execute): When optimizing a loop
15481 nest for size allow pattern replacement.
15482
15483 2019-05-23 Jakub Jelinek <jakub@redhat.com>
15484
15485 PR target/90568
15486 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
15487 of xor.
15488
15489 2019-05-23 Martin Liska <mliska@suse.cz>
15490
15491 PR sanitizer/90570
15492 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
15493 expression similarly to gimplify_decl_expr.
15494
15495 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15496
15497 * cse.c (cse_dump_path): s/dump_file/f.
15498
15499 2019-05-22 David Malcolm <dmalcolm@redhat.com>
15500
15501 PR c++/90462
15502 * diagnostic-format-json.cc: Include "selftest.h".
15503 (json_from_expanded_location): Only add "file" key for non-NULL
15504 file strings.
15505 (json_from_location_range): Don't add "start" and "finish"
15506 children if they are UNKNOWN_LOCATION.
15507 (selftest::test_unknown_location): New selftest.
15508 (selftest::test_bad_endpoints): New selftest.
15509 (selftest::diagnostic_format_json_cc_tests): New function.
15510 * json.cc (json::object::get): New function.
15511 (selftest::test_object_get): New selftest.
15512 (selftest::json_cc_tests): Call it.
15513 * json.h (json::object::get): New decl.
15514 * selftest-run-tests.c (selftest::run_tests): Call
15515 selftest::diagnostic_format_json_cc_tests.
15516 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
15517 decl.
15518
15519 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15520 Andrew Stubbs <amd@codesourcery.com>
15521
15522 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
15523 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
15524 (kernel): Rename to...
15525 (main_kernel): ... this.
15526 (load_image): Load _init_array and _fini_array kernels.
15527 (run): Add argument for kernel to run.
15528 (main): Run init_array_kernel before main_kernel, and
15529 fini_array_kernel after.
15530 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
15531 amdgpu_hsa_kernel attribute on functions.
15532 (gcn_disable_constructors): Delete.
15533 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
15534 * config/gcn/crt0.c (size_t): Define.
15535 (_init_array, _fini_array): New.
15536 (__preinit_array_start, __preinit_array_end,
15537 __init_array_start, __init_array_end,
15538 __fini_array_start, __fini_array_end): Declare weak references.
15539
15540 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
15541
15542 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
15543
15544 2019-05-22 Jason Merrill <jason@redhat.com>
15545
15546 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15547
15548 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
15549
15550 PR target/88483
15551 * config/i386/i386-options.c (ix86_init_machine_status): Set
15552 stack_frame_required to true.
15553 * config/i386/i386.c (ix86_get_frame_size): New function.
15554 (ix86_frame_pointer_required): Replace get_frame_size with
15555 ix86_get_frame_size.
15556 (ix86_compute_frame_layout): Likewise.
15557 (ix86_find_max_used_stack_alignment): Changed to void. Set
15558 stack_frame_required.
15559 (ix86_finalize_stack_frame_flags): Always call
15560 ix86_find_max_used_stack_alignment. Replace get_frame_size with
15561 ix86_get_frame_size.
15562 * config/i386/i386.h (machine_function): Add stack_frame_required.
15563
15564 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
15565
15566 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
15567
15568 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
15569
15570 * common/config/aarch64/aarch64-common.c
15571 (struct aarch64_option_extension, struct processor_name_to_arch,
15572 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
15573 aarch64_contains_opt,
15574 aarch64_get_extension_string_for_isa_flags): Change type of
15575 variables storing flags to uint64_t.
15576 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
15577 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
15578 * config/aarch64/aarch64.c (struct processor,
15579 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
15580 aarch64_validate_march, aarch64_override_options,
15581 aarch64_option_print, aarch64_handle_attr_isa_flags,
15582 aarch64_declare_function_name, aarch64_start_file): Make flag
15583 variables uint64_t.
15584 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
15585 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
15586 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
15587 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
15588 * config/aarch64/driver-aarch64.c
15589 (struct aarch64_arch_extension, struct aarch64_core_data,
15590 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
15591 flag variables uint64_t.
15592 * doc/invoke.texi: Add documentation for new arguments.
15593
15594 2019-05-22 Richard Biener <rguenther@suse.de>
15595
15596 * alias.c (ao_ref_from_mem): Move stack-slot sharing
15597 rewrite ...
15598 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
15599
15600 2019-05-22 Martin Liska <mliska@suse.cz>
15601
15602 PR lto/90500
15603 * doc/extend.texi: Document the change.
15604
15605 2019-05-22 Richard Biener <rguenther@suse.de>
15606
15607 PR tree-optimization/90450
15608 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
15609 (mem_ref_hasher::equal): Check it.
15610 (mem_ref_alloc): Initialize it.
15611 (gather_mem_refs_stmt): Set it.
15612
15613 2019-05-22 Richard Biener <rguenther@suse.de>
15614
15615 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
15616 Add ABS_EXPR.
15617 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
15618 as ABSU_EXPR.
15619
15620 2019-05-22 Alan Modra <amodra@gmail.com>
15621
15622 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
15623 (ASM_CPU_SPEC): Conditionally add -many.
15624 * config/rs6000/rs6000.c (rs6000_machine): New static var.
15625 (rs6000_machine_from_flags, emit_asm_machine): New functions..
15626 (rs6000_file_start): ..extracted from here, and modified to
15627 test all ISA bits.
15628 (rs6000_output_function_prologue): Emit .machine as necessary.
15629
15630 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
15631
15632 PR middle-end/90553
15633 * ira-lives.c (process_bb_node_lives): Consider defs
15634 for a call insn to be die before the call, not after.
15635
15636 * function.c (assign_parm_setup_block): Raise alignment of
15637 stacked parameter only for STRICT_ALIGNMENT targets.
15638
15639 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15640
15641 * config/rs6000/constraints.md (define_register_constraint "wz"):
15642 Delete.
15643 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15644 RS6000_CONSTRAINT_wz.
15645 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15646 (rs6000_init_hard_regno_mode_ok): Adjust.
15647 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
15648 * doc/md.texi (Machine Constraints): Adjust.
15649
15650 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15651
15652 * config/rs6000/constraints.md (define_register_constraint "wl"):
15653 Delete.
15654 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15655 RS6000_CONSTRAINT_wl.
15656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15657 (rs6000_init_hard_regno_mode_ok): Adjust.
15658 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
15659 * doc/md.texi (Machine Constraints): Adjust.
15660
15661 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15662
15663 * config/rs6000/constraints.md (define_register_constraint "wm"):
15664 Delete.
15665 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15666 RS6000_CONSTRAINT_wm.
15667 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15668 (rs6000_init_hard_regno_mode_ok): Adjust.
15669 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
15670 * doc/md.texi (Machine Constraints): Adjust.
15671
15672 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15673
15674 * config/rs6000/constraints.md (define_register_constraint "wk"):
15675 Delete.
15676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15677 RS6000_CONSTRAINT_wk.
15678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15679 (rs6000_init_hard_regno_mode_ok): Adjust.
15680 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
15681 * doc/md.texi (Machine Constraints): Adjust.
15682
15683 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15684
15685 * config/rs6000/constraints.md (define_register_constraint "wj"):
15686 Delete.
15687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15688 RS6000_CONSTRAINT_wj.
15689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15690 (rs6000_init_hard_regno_mode_ok): Adjust.
15691 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
15692 (VS_64dm): Delete.
15693 * config/rs6000/vsx.md: Ditto.
15694 * doc/md.texi (Machine Constraints): Adjust.
15695
15696 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15697
15698 * config/rs6000/constraints.md (define_register_constraint "wh"):
15699 Delete.
15700 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15701 RS6000_CONSTRAINT_wh.
15702 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15703 (rs6000_init_hard_regno_mode_ok): Adjust.
15704 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
15705 * doc/md.texi (Machine Constraints): Adjust.
15706
15707 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15708
15709 PR target/90547
15710 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15711 Avoid calling gen_lowpart with CONST operand.
15712
15713 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
15714
15715 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
15716 field template_last_to_copy.
15717 (ssa_create_duplicates): Set it, and use it. Attempt to
15718 preserve more debug stmts.
15719
15720 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15721
15722 * config/i386/sse.md (VF1_AVX2): New mode iterator.
15723 (signbit<mode>2): New expander
15724
15725 2019-05-21 James Clarke <jrtc27@jrtc27.com>
15726
15727 PR bootstrap/87338
15728 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
15729 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
15730
15731 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15732
15733 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
15734 %ebx and %ecx bafore calling cpuid with leaf 1 or
15735 non-constant leaf argument.
15736
15737 2019-05-21 Alan Modra <amodra@gmail.com>
15738
15739 PR target/90545
15740 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
15741 power9 direct move cost.
15742
15743 2019-05-21 Richard Biener <rguenther@suse.de>
15744
15745 PR middle-end/90510
15746 * fold-const.c (fold_read_from_vector): New function.
15747 * fold-const.h (fold_read_from_vector): Declare.
15748 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
15749 single-element insert permutations. Canonicalize selector
15750 further and fix issue with last commit.
15751
15752 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15753
15754 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
15755 parameter with default value false to declaration.
15756 (split_edges_for_insertion): New inline function. Wrapper for
15757 split_critical_edges with for_edge_insertion_p = true.
15758 * tree-cfg.c (split_critical_edges): Don't split non-critical
15759 edges if for_edge_insertion_p is false. Fix whitespace.
15760 * tree-ssa-pre.c (pass_pre::execute): Call
15761 split_edges_for_insertion instead of split_critical_edges.
15762 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
15763 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
15764 (pass_data_sink_code): Update function name in the comment.
15765
15766 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15767
15768 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
15769 around is_value_included_in that knows how to handle BIT_AND_EXPR.
15770 (is_pred_expr_subset_of): Use the new function. Handle more cases where
15771 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
15772 positives.
15773
15774 2019-05-21 Martin Liska <mliska@suse.cz>
15775
15776 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
15777 an extra newline.
15778 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
15779 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
15780 vec_lvsr.
15781 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15782 Quote a C type.
15783 (rs6000_function_arg): Likewise.
15784 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
15785 (rs6000_expand_ternop_builtin): Use interval syntax.
15786 (get_element_number): Likewise.
15787 (altivec_expand_builtin): Likewise.
15788 (rs6000_get_function_versions_dispatcher): Quote target_clones.
15789
15790 2019-05-20 Jakub Jelinek <jakub@redhat.com>
15791
15792 PR c++/59813
15793 PR target/90418
15794 * function.h (struct function): Add calls_eh_return member.
15795 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
15796 gimplifying __builtin_eh_return call.
15797 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
15798 to cfun.
15799 (expand_call_inline): Or in src_cfun->calls_eh_return into
15800 dst_cfun->calls_eh_return.
15801 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
15802 cfun->calls_eh_return.
15803 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
15804 * lto-streamer-out.c (output_struct_function_base): Write
15805 calls_eh_return.
15806
15807 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
15808
15809 PR rtl-optimization/43147
15810 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
15811 IX86_BUILTIN_SHUFPD.
15812
15813 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
15814
15815 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
15816 (refs_may_alias_p_1): ... here; update stats.
15817 (refs_may_alias_p): Do not update stats here.
15818
15819 2019-05-20 Richard Biener <rguenther@suse.de>
15820
15821 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
15822 doesn't produce pointers.
15823 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
15824 the first operand points to.
15825
15826 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
15827
15828 * tree-ssa-alias.c (compare_sizes): New function.
15829 (sompare_type_sizes): New function
15830 (aliasing_component_refs_p): Use it.
15831 (indirect_ref_may_alias_decl_p): Likewise.
15832
15833 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15834
15835 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
15836
15837 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15838
15839 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
15840 (LIBLSAN_EARLY_SPEC): Likewise.
15841 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
15842
15843 2019-05-20 Martin Liska <mliska@suse.cz>
15844
15845 * config/i386/i386.c (ix86_libc_has_fast_function):
15846 Add ATTRIBUTE_UNUSED for the argument.
15847
15848 2019-05-20 Richard Biener <rguenther@suse.de>
15849
15850 * gimple-match-head.c: Include vec-perm-indices.h.
15851 * generic-match-head.c: Likewise.
15852 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
15853 is included.
15854 * fold-const.c (fold_vec_perm): Export.
15855 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
15856 (match.pd): ...here.
15857
15858 2019-05-20 Jakub Jelinek <jakub@redhat.com>
15859
15860 * cfgloop.h (struct loop): Add simdlen member.
15861 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
15862 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
15863 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
15864 as new argument to autovectorize_vector_sizes target hook. If
15865 loop->simdlen, pick up vector size where the vectorization factor
15866 is equal to loop->simd, and if there is none, fall back to the first
15867 successful one.
15868 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
15869 caller.
15870 * omp-low.c (omp_clause_aligned_alignment): Likewise.
15871 * omp-general.c (omp_max_vf): Likewise.
15872 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
15873 * tree-vect-slp.c (vect_slp_bb): Likewise.
15874 * target.def (autovectorize_vector_sizes): Add ALL argument and
15875 document it.
15876 * doc/tm.texi: Adjust documentation.
15877 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
15878 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
15879 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
15880 bool argument.
15881 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
15882 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
15883 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
15884 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
15885 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
15886 preferred vector size is not 512-bit or 256-bit, just put those
15887 unpreferred ones last.
15888
15889 2019-05-20 Martin Liska <mliska@suse.cz>
15890
15891 * targhooks.c (default_libc_has_fast_function): New function.
15892 * targhooks.h (default_libc_has_fast_function): Likewise.
15893
15894 2019-05-20 Martin Liska <mliska@suse.cz>
15895
15896 PR middle-end/90263
15897 * builtins.c (expand_builtin_memory_copy_args): When having a
15898 target with fast mempcpy implementation do now use memcpy.
15899 * config/i386/i386.c (ix86_libc_has_fast_function): New.
15900 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
15901 * doc/tm.texi: Likewise.
15902 * doc/tm.texi.in: Likewise.
15903 * target.def:
15904 * expr.c (emit_block_move_hints): Add 2 new arguments.
15905 * expr.h (emit_block_move_hints): Bail out when libcall
15906 to memcpy would be used.
15907
15908 2019-05-20 Martin Liska <mliska@suse.cz>
15909
15910 * profile-count.c: Add vertical spacing in order
15911 to separate functions.
15912 * profile-count.h: Likewise.
15913
15914 2019-05-20 Martin Liska <mliska@suse.cz>
15915
15916 * profile-count.h: Do not use full qualified
15917 names if possible.
15918 * profile-count.c (profile_count::to_frequency): Likewise.
15919
15920 2019-05-20 Martin Liska <mliska@suse.cz>
15921
15922 * profile-count.h (enum profile_quality): Use capital letters
15923 for enum value names. Use the adjusted names.
15924 * profile-count.c: Use the adjusted names.
15925
15926 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15927
15928 * config/rs6000/constraints.md (define_register_constraint "wH"):
15929 Delete.
15930 (define_register_constraint "wI"): Delete.
15931 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15932 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
15933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15934 (rs6000_init_hard_regno_mode_ok): Adjust.
15935 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
15936 resp. "d", or with "wa" as appropriate, all with "p8v".
15937 * config/rs6000/vsx.md: Ditto.
15938 * doc/md.texi (Machine Constraints): Adjust.
15939
15940 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15941
15942 * config/rs6000/constraints.md (define_register_constraint "wy"):
15943 Delete.
15944 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15945 RS6000_CONSTRAINT_wy.
15946 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15947 (rs6000_init_hard_regno_mode_ok): Adjust.
15948 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
15949 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
15950 (define_mode_attr Fisa): New.
15951 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
15952 * doc/md.texi (Machine Constraints): Adjust.
15953
15954 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15955
15956 * config/rs6000/constraints.md (define_register_constraint "wu"):
15957 Delete.
15958 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15959 RS6000_CONSTRAINT_wu.
15960 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15961 (rs6000_init_hard_regno_mode_ok): Adjust.
15962 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
15963 both with "p8v".
15964 (define_mode_attr Fa): Delete.
15965 * config/rs6000/vsx.md: Ditto.
15966 * doc/md.texi (Machine Constraints): Adjust.
15967
15968 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15969
15970 * config/rs6000/constraints.md (define_register_constraint "wJ"):
15971 Delete.
15972 (define_register_constraint "wK"): Delete.
15973 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15974 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
15975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15976 (rs6000_init_hard_regno_mode_ok): Adjust.
15977 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
15978 Replace "wK" constraint by "wH" with "p9v".
15979 * config/rs6000/vsx.md: Ditto.
15980 * doc/md.texi (Machine Constraints): Adjust.
15981
15982 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15983
15984 * config/rs6000/constraints.md (define_register_constraint "wb"):
15985 Delete.
15986 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15987 RS6000_CONSTRAINT_wb.
15988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15989 (rs6000_init_hard_regno_mode_ok): Adjust.
15990 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
15991 * config/rs6000/vsx.md: Ditto.
15992 * doc/md.texi (Machine Constraints): Adjust.
15993
15994 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15995
15996 * config/rs6000/constraints.md (define_register_constraint "wo"):
15997 Delete.
15998 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15999 RS6000_CONSTRAINT_wo.
16000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16001 (rs6000_init_hard_regno_mode_ok): Adjust.
16002 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
16003 * config/rs6000/altivec.md: Ditto.
16004 * doc/md.texi (Machine Constraints): Adjust.
16005
16006 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16007
16008 * config/darwin-c.c (darwin_register_objc_includes): Do not
16009 prepend the sysroot when building gnu-runtime header search
16010 paths.
16011
16012 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16013
16014 * config/darwin.c (darwin_file_end): Use switch_to_section ()
16015 instead of direct output of the asm.
16016
16017 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16018
16019 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
16020 argument to be type bool (was int before).
16021 (rs6000_emit_epilogue): Simplify some code. Declare some variables
16022 at first use. Use type bool for some variables. Fix a theoretical
16023 eh_return bug for svr4.
16024
16025 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16026
16027 * config/rs6000/rs6000.md (isa): New attribute.
16028 (enabled): New attribute.
16029
16030 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
16031
16032 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
16033 assemble_start_function and assemble_end_function.
16034
16035 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
16036
16037 PR middle-end/89433
16038 * omp-general.c (oacc_verify_routine_clauses): Change formal
16039 parameters. Add checking if already marked with an OpenACC
16040 'routine' directive. Adjust all users.
16041
16042 PR middle-end/89433
16043 * omp-general.c (oacc_build_routine_dims): Move some of its
16044 processing into...
16045 (oacc_verify_routine_clauses): ... this new function.
16046 * omp-general.h (oacc_verify_routine_clauses): New prototype.
16047
16048 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16049
16050 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
16051 formating of picbase labels to match other ports.
16052
16053 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16054
16055 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
16056 in the generated code.
16057
16058 2019-05-16 Martin Sebor <msebor@redhat.com>
16059
16060 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
16061 identifiers, keywords, operators, and types in diagnostics. Correct
16062 quoting, spelling, and sentence capitalization issues.
16063 (expand_builtin_atomic_is_lock_free): Same.
16064 (fold_builtin_next_arg): Same.
16065 * cfgexpand.c (expand_one_var): Same.
16066 (tree_conflicts_with_clobbers_p): Same.
16067 (expand_asm_stmt): Same.
16068 (verify_loop_structure): Same.
16069 * cgraphunit.c (process_function_and_variable_attributes): Same.
16070 * collect-utils.c (collect_execute): Same.
16071 * collect2.c (maybe_run_lto_and_relink): Same.
16072 (is_lto_object_file): Same.
16073 (scan_prog_file): Same.
16074 * convert.c (convert_to_real_1): Same.
16075 * dwarf2out.c (dwarf2out_begin_prologue): Same.
16076 * except.c (verify_eh_tree): Same.
16077 * gcc.c (execute): Same.
16078 (eval_spec_function): Same.
16079 (run_attempt): Same.
16080 (driver::set_up_specs): Same.
16081 (compare_debug_auxbase_opt_spec_function): Same.
16082 * gcov-tool.c (unlink_gcda_file): Same.
16083 (do_merge): Same.
16084 (do_rewrite): Same.
16085 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
16086 * gimplify.c (gimplify_asm_expr): Same.
16087 (gimplify_adjust_omp_clauses): Same.
16088 * hsa-gen.c (gen_hsa_addr_insns): Same.
16089 (gen_hsa_insns_for_load): Same.
16090 (gen_hsa_cmp_insn_from_gimple): Same.
16091 (gen_hsa_insns_for_operation_assignment): Same.
16092 (gen_get_level): Same.
16093 (gen_hsa_alloca): Same.
16094 (omp_simple_builtin::generate): Same.
16095 (gen_hsa_atomic_for_builtin): Same.
16096 (gen_hsa_insns_for_call): Same.
16097 * input.c (dump_location_info): Same.
16098 * ipa-devirt.c (compare_virtual_tables): Same.
16099 * ira.c (ira_setup_eliminable_regset): Same.
16100 * lra-assigns.c (lra_assign): Same.
16101 * lra-constraints.c (lra_constraints): Same.
16102 * lto-streamer-in.c (lto_input_mode_table): Same.
16103 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
16104 (merge_and_complain): Same.
16105 (compile_offload_image): Same.
16106 (compile_images_for_offload_targets): Same.
16107 (debug_objcopy): Same.
16108 (run_gcc): Same.
16109 (main): Same.
16110 * opts.c (print_specific_help): Same.
16111 (parse_no_sanitize_attribute): Same.
16112 (print_help): Same.
16113 (handle_param): Same.
16114 * plugin.c (add_new_plugin): Same.
16115 (parse_plugin_arg_opt): Same.
16116 (try_init_one_plugin): Same.
16117 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
16118 operators, and types in diagnostics. Correct quoting and spelling
16119 issues.
16120 * read-rtl-function.c (parse_edge_flag_token): Same.
16121 (function_reader::parse_enum_value): Same.
16122 * reg-stack.c (check_asm_stack_operands): Same.
16123 * regcprop.c (validate_value_data): Same.
16124 * sched-rgn.c (make_pass_sched_fusion): Same.
16125 * stmt.c (check_unique_operand_names): Same.
16126 * targhooks.c (default_target_option_pragma_parse): Same.
16127 * tlink.c (recompile_files): Same.
16128 * toplev.c (process_options): Same.
16129 (do_compile): Same.
16130 * trans-mem.c (diagnose_tm_1): Same.
16131 (ipa_tm_scan_irr_block): Same.
16132 (ipa_tm_diagnose_transaction): Same.
16133 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
16134 format a tree code name in a diagnostic.
16135 (verify_types_in_gimple_min_lval): Same.
16136 (verify_types_in_gimple_reference): Same.
16137 (verify_gimple_call): Same.
16138 (verify_gimple_assign_unary): Same.
16139 (verify_gimple_assign_binary): Same.
16140 (verify_gimple_assign_ternary): Same.
16141 (verify_gimple_assign_single): Same.
16142 (verify_gimple_switch): Same.
16143 (verify_gimple_label): Same.
16144 (verify_gimple_phi): Same.
16145 (verify_gimple_in_seq): Same.
16146 (verify_eh_throw_stmt_node): Same.
16147 (collect_subblocks): Same.
16148 (gimple_verify_flow_info): Same.
16149 (do_warn_unused_result): Same.
16150 * tree-inline.c (expand_call_inline): Same.
16151 * tree-into-ssa.c (update_ssa): Same.
16152 * tree.c (tree_int_cst_elt_check_failed): Same.
16153 (tree_vec_elt_check_failed): Same.
16154 (omp_clause_operand_check_failed): Same.
16155 (verify_type_variant): Same.
16156 (verify_type): Same.
16157 * value-prof.c (verify_histograms): Same.
16158 * varasm.c (assemble_start_function): Same.
16159
16160 2019-05-16 Martin Sebor <msebor@redhat.com>
16161
16162 * config/i386/i386-expand.c (get_element_number): Quote keywords
16163 and other internal names in diagnostics. Adjust other diagnostic
16164 formatting issues noted by -Wformat-diag.
16165 * config/i386/i386-features.c
16166 (ix86_mangle_function_version_assembler_name): Same.
16167 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
16168 * config/i386/i386.c (ix86_function_type_abi): Same.
16169 (ix86_function_ms_hook_prologue): Same.
16170 (classify_argument): Same.
16171 (ix86_expand_prologue): Same.
16172 (ix86_md_asm_adjust): Same.
16173 (ix86_memmodel_check): Same.
16174
16175 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16176
16177 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
16178 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
16179 and fpxx modes.
16180
16181 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
16182
16183 PR target/90497
16184 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
16185 intrinsics without SSE/SSE2/SSSE3.
16186 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16187 check.
16188 (*mmx_uavgv8qi3): Likewise.
16189
16190 2019-05-17 Richard Biener <rguenther@suse.de>
16191
16192 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16193 VEC_PERM_EXPR as __VEC_PERM with -gimple.
16194
16195 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
16196
16197 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16198 vec_sldw insn pattern.
16199
16200 2019-05-17 Richard Biener <rguenther@suse.de>
16201
16202 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16203
16204 2019-05-17 Martin Liska <mliska@suse.cz>
16205
16206 PR driver/90496
16207 * toplev.c (output_stack_usage): With LTO and sanitizer it
16208 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16209 has no file location.
16210
16211 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16212
16213 PR c++/90484
16214 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16215 sz0 is equal to sz1, instead return false in that case.
16216
16217 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16218 has non-constant expression, force sctx.lane and use two
16219 argument IFN_GOMP_SIMD_LANE instead of single argument.
16220 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16221 two argument IFN_GOMP_SIMD_LANE without lhs.
16222 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16223 member.
16224 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16225 Define.
16226 (LOOP_REQUIRES_VERSIONING): Or in
16227 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16228 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16229 simd_if_cond.
16230 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16231 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16232 from simd if clause if needed.
16233
16234 2019-05-16 Richard Biener <rguenther@suse.de>
16235
16236 * tree-affine.c (expr_to_aff_combination): New function split
16237 out from...
16238 (tree_to_aff_combination): ... here.
16239 (aff_combination_expand): Avoid building a GENERIC tree.
16240
16241 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
16242
16243 * cgraphunit.c (cgraph_node::expand_thunk): Remove
16244 assemble_start_function and assemble_end_function calls.
16245 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16246 assemble_start_function and assemble_end_function.
16247 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16248 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16249 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16250 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16251 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16252 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16253 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16254 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16255 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16256 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16257 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16258 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16259 Likewise.
16260 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16261 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16262 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16263 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16264 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16265 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16266 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16267 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16268 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16269 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16270 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16271 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16272 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16273 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16274 Likewise.
16275 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16276 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16277 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16278
16279 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
16280
16281 * tree-ssa-alias.c (alias_stats): Add
16282 aliasing_component_refs_p_may_alias and
16283 aliasing_component_refs_p_no_alias.
16284 (dump_alias_stats): Print aliasing_component_refs_p stats.
16285 (aliasing_component_refs_p): Update stats.
16286
16287 2019-05-16 Martin Liska <mliska@suse.cz>
16288
16289 PR lto/90500
16290 * multiple_target.c (expand_target_clones): Do not allow
16291 target_clones being used with a symbol that is an alias.
16292
16293 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
16294
16295 PR tree-optimization/90394
16296 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16297 positives rather than ICE for cases where (code2 == NE_EXPR
16298 && code1 == BIT_AND_EXPR).
16299
16300 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16301
16302 PR fortran/90329
16303 * tree-core.h (struct tree_decl_common): Document
16304 decl_nonshareable_flag for PARM_DECLs.
16305 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16306 * calls.c (expand_call): Don't try tail call if caller
16307 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16308 passed on the stack and callee needs to pass any arguments on the
16309 stack.
16310 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16311 else if instead of series of mutually exclusive ifs. Handle
16312 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16313 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16314
16315 * lto-streamer.h (LTO_major_version): Bump to 9.
16316
16317 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
16318
16319 PR tree-optimization/90106
16320 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16321 new parameter as new internal function call, also move it to new
16322 basic block.
16323 (use_internal_fn): Pass internal function call to
16324 shrink_wrap_one_built_in_call_with_conds.
16325
16326 2019-05-15 Jakub Jelinek <jakub@redhat.com>
16327
16328 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16329 max_vf to 1.
16330 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16331 safelen_int and set loop->dont_vectorize.
16332
16333 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16334
16335 PR target/89021
16336 * config/i386/i386-builtin.def: Enable MMX intrinsics with
16337 SSE/SSE2/SSSE3.
16338 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16339 Likewise.
16340 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16341 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16342 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16343 is defined.
16344
16345 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16346
16347 PR target/89021
16348 * config/i386/mmx.md (*vec_dupv2sf): Changed to
16349 define_insn_and_split to support SSE emulation.
16350 (*vec_extractv2sf_0): Likewise.
16351 (*vec_extractv2sf_1): Likewise.
16352 (*vec_extractv2si_0): Likewise.
16353 (*vec_extractv2si_1): Likewise.
16354 (*vec_extractv2si_zext_mem): Likewise.
16355 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16356 (vec_extractv2sf_1 splitter): Likewise.
16357 (vec_extractv2sfsf): Likewise.
16358 (vec_setv2si): Likewise.
16359 (vec_extractv2si_1 splitter): Likewise.
16360 (vec_extractv2sisi): Likewise.
16361 (vec_setv4hi): Likewise.
16362 (vec_extractv4hihi): Likewise.
16363 (vec_setv8qi): Likewise.
16364 (vec_extractv8qiqi): Likewise.
16365 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16366 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16367 (vec_extractv2sisi): Likewise.
16368 (vec_extractv4hihi): Likewise.
16369 (vec_extractv8qiqi): Likewise.
16370 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16371 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16372 (vec_initv2sisi): Likewise.
16373 (vec_initv4hihi): Likewise.
16374 (vec_initv8qiqi): Likewise.
16375 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
16376 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16377 (vec_setv4hi): Likewise.
16378 (vec_setv8qi): Likewise.
16379
16380 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16381
16382 PR target/89021
16383 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16384 TARGET_MMX_WITH_SSE.
16385 (MMXMODE:*mov<mode>_internal): Likewise.
16386 (MMXMODE:movmisalign<mode>): Likewise.
16387
16388 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
16389
16390 PR target/89021
16391 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16392 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16393 (sse2_cvtpd2pi): Ditto.
16394 (sse2_cvttpd2pi): Ditto.
16395 (*vec_concatv2sf_sse4_1): Ditto.
16396 (*vec_concatv2sf_sse): Ditto.
16397 (*vec_concatv2si_sse4_1): Ditto.
16398 (*vec_concatv2si): Ditto.
16399 (*vec_concatv4si_0): Ditto.
16400 (*vec_concatv2di_0): Ditto.
16401
16402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16403
16404 PR target/89021
16405 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
16406
16407 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16408
16409 PR target/89021
16410 * config/i386/sse.md (ssse3_palignrdi): Changed to
16411 define_insn_and_split to support SSE emulation.
16412
16413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16414
16415 PR target/89021
16416 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
16417
16418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16419
16420 PR target/89021
16421 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
16422 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16423 SSE emulation.
16424
16425 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16426
16427 PR target/89021
16428 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
16429 or TARGET_MMX_WITH_SSE.
16430 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
16431
16432 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16433
16434 PR target/89021
16435 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
16436
16437 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16438
16439 PR target/89021
16440 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
16441 Changed to define_insn_and_split to support SSE emulation.
16442
16443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16444
16445 PR target/89021
16446 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
16447 Changed to define_insn_and_split to support SSE emulation.
16448
16449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16450
16451 PR target/89021
16452 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
16453 (*mmx_<emms>): This.
16454 (mmx_<emms>): New expander.
16455
16456 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16457
16458 PR target/89021
16459 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
16460 support.
16461 (*sse2_umulv1siv1di3): Add SSE2 emulation.
16462
16463 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16464
16465 PR target/89021
16466 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
16467
16468 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16469
16470 PR target/89021
16471 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
16472
16473 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16474
16475 PR target/89021
16476 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
16477 TARGET_MMX_WITH_SSE.
16478 (*mmx_uavgv4hi3): Add SSE emulation.
16479
16480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16481
16482 PR target/89021
16483 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
16484 and TARGET_MMX_WITH_SSE.
16485 (*mmx_uavgv8qi3): Add SSE emulation.
16486
16487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16488
16489 PR target/89021
16490 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
16491 maskmovdqu for __MMX_WITH_SSE__.
16492
16493 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16494
16495 PR target/89021
16496 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
16497 TARGET_MMX and TARGET_MMX_WITH_SSE.
16498 (*mmx_umulv4hi3_highpart): Add SSE emulation.
16499
16500 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16501
16502 PR target/89021
16503 * config/i386/mmx.md (mmx_pmovmskb): Changed to
16504 define_insn_and_split to support SSE emulation.
16505
16506 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16507
16508 PR target/89021
16509 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
16510 and TARGET_MMX_WITH_SSE.
16511 (mmx_<code>v8qi3): Likewise.
16512 (smaxmin:<code>v4hi3): New.
16513 (umaxmin:<code>v8qi3): Likewise.
16514 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
16515 (umaxmin:*mmx_<code>v8qi3): Likewise.
16516
16517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16518
16519 PR target/89021
16520 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
16521 TARGET_MMX_WITH_SSE.
16522 (*mmx_pinsrw): Add SSE emulation.
16523
16524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16525
16526 PR target/89021
16527 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
16528
16529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16530
16531 PR target/89021
16532 * config/i386/sse.md (sse_cvtpi2ps): Changed to
16533 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16534 SSE emulation.
16535
16536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16537
16538 PR target/89021
16539 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
16540 (sse_cvttps2pi): Likewise.
16541
16542 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16543
16544 PR target/89021
16545 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
16546 TARGET_MMX_WITH_SSE.
16547 (mmx_pshufw_1): Add SSE emulation.
16548 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
16549 TARGET_MMX_WITH_SSE to support SSE emulation.
16550
16551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16552
16553 PR target/89021
16554 * config/i386/constraints.md (Yw): New constraint.
16555 * config/i386/mmx.md (*vec_dupv2si): Changed to
16556 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
16557 support SSE emulation.
16558
16559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16560
16561 PR target/89021
16562 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
16563 TARGET_MMX_WITH_SSE.
16564 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16565 support.
16566 (mmx_gt<mode>3): Likewise.
16567
16568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16569
16570 PR target/89021
16571 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
16572 TARGET_MMX_WITH_SSE. Add SSE support.
16573
16574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16575
16576 PR target/89021
16577 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
16578 TARGET_MMX_WITH_SSE.
16579 (any_logic:<code><mode>3): New.
16580 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
16581 Add SSE support.
16582
16583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16584
16585 PR target/89021
16586 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
16587 TARGET_MMX_WITH_SSE. Add SSE emulation.
16588 (mmx_<shift_insn><mode>3): Likewise.
16589 (ashr<mode>3): New.
16590 (<shift_insn><mode>3): Likewise.
16591
16592 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16593
16594 PR target/89021
16595 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
16596 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
16597
16598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16599
16600 PR target/89021
16601 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
16602 TARGET_MMX_WITH_SSE.
16603 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
16604 SSE support.
16605
16606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16607
16608 PR target/89021
16609 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
16610 TARGET_MMX_WITH_SSE.
16611 (mulv4hi3): New.
16612 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16613 support.
16614
16615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16616
16617 PR target/89021
16618 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
16619 (plusminus:mmx_<plusminus_insn><mode>3): Check
16620 TARGET_MMX_WITH_SSE.
16621 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
16622 (<plusminus_insn><mode>3): New.
16623 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
16624 (*mmx_<plusminus_insn><mode>3): Likewise.
16625
16626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16627
16628 PR target/89021
16629 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
16630 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
16631 prototype.
16632 * config/i386/mmx.m (mmx_punpckhbw): Changed to
16633 define_insn_and_split to support SSE emulation.
16634 (mmx_punpcklbw): Likewise.
16635 (mmx_punpckhwd): Likewise.
16636 (mmx_punpcklwd): Likewise.
16637 (mmx_punpckhdq): Likewise.
16638 (mmx_punpckldq): Likewise.
16639
16640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16641 Uros Bizjak <ubizjak@gmail.com>
16642
16643 PR target/89021
16644 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
16645 New function.
16646 (ix86_split_mmx_pack): Likewise.
16647 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
16648 New prototype.
16649 (ix86_split_mmx_pack): Likewise.
16650 * config/i386/i386.md (mmx_isa): New.
16651 (enabled): Also check mmx_isa.
16652 * config/i386/mmx.md (any_s_truncate): New code iterator.
16653 (s_trunsuffix): New code attr.
16654 (mmx_packsswb): Removed.
16655 (mmx_packssdw): Likewise.
16656 (mmx_packuswb): Likewise.
16657 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
16658 MMX packsswb/packuswb with SSE2.
16659 (mmx_packssdw): Likewise.
16660 * config/i386/predicates.md (register_mmxmem_operand): New.
16661
16662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16663
16664 PR target/89021
16665 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16666 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
16667 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
16668 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
16669 (ix86_vector_mode_supported_p): Likewise.
16670 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
16671
16672 2019-05-15 Martin Liska <mliska@suse.cz>
16673
16674 PR middle-end/90478
16675 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16676 Check for overflow.
16677
16678 2019-05-15 Richard Biener <rguenther@suse.de>
16679
16680 * tree-into-ssa.c (pass_build_ssa::execute): Run
16681 update_address_taken before going into SSA.
16682
16683 2019-05-15 Richard Biener <rguenther@suse.de>
16684
16685 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
16686 as __BIT_FIELD_REF with type with -gimple.
16687
16688 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
16689
16690 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
16691 semantically equivalent branches (left over after prior refactorings).
16692
16693 2019-05-15 Richard Biener <rguenther@suse.de>
16694
16695 PR tree-optimization/88828
16696 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
16697 bogus check.
16698
16699 2019-05-14 Richard Biener <rguenther@suse.de>
16700
16701 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
16702 as __VIEW_CONVERT with -gimple.
16703
16704 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16705
16706 PR target/82920
16707 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
16708 Darwin.
16709
16710 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16711
16712 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
16713 define_split to become a define_insn_and_split.
16714
16715 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16716
16717 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
16718 arguments.
16719 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
16720 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
16721 (sibcall_epilogue): Adjust.
16722 (epilogue): Adjust.
16723
16724 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16725
16726 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
16727 to unsupported ones.
16728 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
16729 * config.host: Likewise.
16730 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
16731 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
16732 __svr4__]: Remove "brand" fallback.
16733 [!KSTAT_DATA_STRING]: Remove.
16734 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
16735 to *-*-solaris2*.
16736 (comdat_group): Likewise.
16737 (set_have_as_tls): Likewise.
16738 (gcc_cv_target_dl_iterate_phdr): Likewise.
16739 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
16740 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
16741 * configure: Regenerate.
16742 * doc/install.texi: Simplify Solaris target triplets.
16743 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
16744 (Specific, *-*-solaris2*): Document Solaris 10 removal.
16745 Remove Solaris 10 references.
16746 Remove obsolete Solaris bug reference.
16747 (Specific, sparc-sun-solaris2.10): Remove.
16748
16749 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
16750
16751 * config/i386/i386.md (any_div): New code iterator.
16752 (paired_mod): New code attribute.
16753 (sgnprefix): Handle DIV and UDIV RTXes.
16754 (u): Ditto.
16755 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
16756 and udivmod<mode>4 patterns using any_div code iterator.
16757 (divmod splitters): Macroize splitters using any_div code iterator.
16758 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
16759 (*udivmodsi4_pow2_zext_2): Ditto.
16760 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
16761 and *udivmod<mode>4_noext patterns using any_div code iterator.
16762 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
16763 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
16764 patterns using any_div code iterator.
16765 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
16766 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
16767 patterns using any_div code iterator.
16768 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
16769 udivmodhiqi3 patterns using any_extend code iterator.
16770
16771 2019-05-14 Richard Biener <rguenther@suse.de>
16772 H.J. Lu <hongjiu.lu@intel.com>
16773
16774 PR tree-optimization/88828
16775 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
16776 permuting in a single non-constant element not extracted
16777 from a vector.
16778
16779 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16780
16781 * internal-fn.def (SIGNBIT): New.
16782 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
16783 defined.
16784 (signbitv4sf2): Likewise.
16785
16786 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
16787
16788 PR target/90357
16789 * config/mips/mips.c (mips_split_move): Skip forward SRC into
16790 next insn when the SRC reg is dead.
16791
16792 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
16793
16794 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
16795 (alloc_cand_and_find_basis): Ditto.
16796 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
16797 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
16798 (create_add_imm_cand, slsr_process_cast): Ditto.
16799 (slsr_process_copy, replace_mult_candidate): Ditto.
16800 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
16801 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
16802 (pass_strength_reduction::execute): Init the first NULL element.
16803
16804 2019-05-13 Nathan Sidwell <nathan@acm.org>
16805
16806 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
16807 (run_attempt): Reformat line break.
16808
16809 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
16810
16811 PR target/90418
16812 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
16813 data registers in sibcall epilogues.
16814 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
16815
16816 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
16817
16818 PR target/89221
16819 * configure.ac (--enable-frame-pointer):
16820 Disable by default for cygwin and mingw.
16821 * configure: Regenerate.
16822
16823 2019-05-13 Nathan Sidwell <nathan@acm.org>
16824
16825 * dwarf2out.c (breakout_comdat_types): Move comment to correct
16826 piece of code.
16827 (const_ok_for_output_1): Balance parens around #if/#else/#endif
16828 (gen_member_die): Move abstract origin check earlier. Only VARs
16829 can be static_inline_p. Simplify splicing control flow.
16830
16831 2019-05-13 Richard Biener <rguenther@suse.de>
16832
16833 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
16834 VIEW_CONVERT_EXPR.
16835 (vect_build_slp_tree_1): Likewise.
16836
16837 2019-05-13 Richard Biener <rguenther@suse.de>
16838
16839 PR tree-optimization/90402
16840 * tree-if-conv.c (tree_if_conversion): Value number only
16841 the loop body by making the latch an exit of the region
16842 as well.
16843 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
16844 processing PHIs.
16845 (do_rpo_vn): Deal with multiple edges into the entry block
16846 that are not backedges inside the region by skipping PHIs
16847 of the entry block.
16848
16849 2019-05-13 Richard Biener <rguenther@suse.de>
16850
16851 PR tree-optimization/90316
16852 * tree-ssa-pre.c (insert_aux): Fold into ...
16853 (insert): ... this function. Use a RPO walk to reduce the
16854 number of required iterations.
16855
16856 2019-05-13 Martin Liska <mliska@suse.cz>
16857
16858 PR tree-optimization/90416
16859 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
16860 string instead of passing the second part as va_arg argument.
16861
16862 2019-05-13 Martin Liska <mliska@suse.cz>
16863
16864 PR gcov-profile/90380
16865 * gcov.c (handle_cycle): Do not support zero cycle count,
16866 it should not be possible.
16867 (path_contains_zero_cycle_arc): New function.
16868 (circuit): Ignore zero cycle arc counts.
16869
16870 2019-05-13 Martin Liska <mliska@suse.cz>
16871
16872 PR gcov-profile/90380
16873 * gcov.c (enum loop_type): Remove the enum and
16874 the operator.
16875 (handle_cycle): Assert that we should not reach
16876 a negative count.
16877 (circuit): Use loop_found instead of a tri-state loop_type.
16878 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
16879 happen.
16880
16881 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16882
16883 PR target/82920
16884 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
16885 (ix86_output_indirect_branch_via_reg): Use output mechanism
16886 accounting for __USER_LABEL_PREFIX__.
16887 (ix86_output_indirect_branch_via_push): Likewise.
16888 (ix86_output_function_return): Likewise.
16889 (ix86_output_indirect_function_return): Likewise.
16890
16891 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
16892
16893 * doc/md.texi: Document use of code attributes in rtx patterns.
16894 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
16895 * read-rtl.c (find_code): Split out search loops into...
16896 (maybe_find_code): ...this new function.
16897 (check_code_iterator): Make the error message more informative.
16898 (check_code_attribute): New function.
16899 (rtx_reader::rtx_alloc_for_name): Likewise.
16900 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
16901 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
16902 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
16903 <max_opp> directly as an rtx code instead of via a match_operator.
16904 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
16905 (<su>abd<mode>_3): Update accordingly.
16906
16907 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16908
16909 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
16910 is given, print the state of the EH "save world" computation for
16911 Darwin.
16912
16913 2019-05-11 Jakub Jelinek <jakub@redhat.com>
16914
16915 PR c++/59813
16916 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
16917 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
16918
16919 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
16920
16921 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
16922 Use pinsrd for TARGET_SSE4_1.
16923 * config/i386/sse.md (movdi_to_sse): Ditto.
16924
16925 2019-05-10 Richard Biener <rguenther@suse.de>
16926
16927 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
16928 (do_rpo_vn): Initialize next_value_id.
16929
16930 2019-05-10 Martin Liska <mliska@suse.cz>
16931
16932 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
16933 Fix plural form.
16934
16935 2019-05-10 Jakub Jelinek <jakub@redhat.com>
16936
16937 PR tree-optimization/90385
16938 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
16939 arguments of the exit phis.
16940
16941 PR c++/90383
16942 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
16943 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
16944 id->do_not_fold.
16945 (copy_tree_body_r): Likewise.
16946 (copy_fn): Set id.do_not_fold to true.
16947
16948 2019-05-10 Martin Liska <mliska@suse.cz>
16949
16950 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
16951 Reapply changes from r269790.
16952
16953 2019-05-10 Martin Liska <mliska@suse.cz>
16954
16955 PR middle-end/90340
16956 * doc/invoke.texi: New params.
16957 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
16958 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
16959 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16960 Use it.
16961 * tree-switch-conversion.h (struct jump_table_cluster):
16962 Likewise.
16963
16964 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
16965
16966 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
16967
16968 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
16969
16970 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
16971
16972 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
16973
16974 PR rtl-optimization/88879
16975 * sel-sched.c (sel_target_adjust_priority): Remove assert.
16976
16977 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
16978
16979 PR target/90405
16980 * config/arm/arm.c (callee_saved_reg_p): Move before
16981 thumb_find_work_register.
16982 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
16983 thumb_find_work_register. Only call df_get_live_out once.
16984 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
16985 (thumb_find_work_register): Use
16986 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
16987 algorithms to locate a spare call clobbered reg.
16988
16989 2019-05-09 Martin Liska <mliska@suse.cz>
16990
16991 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
16992 and MAX_EXPR in GIMPLE FE format.
16993
16994 2019-05-09 Martin Liska <mliska@suse.cz>
16995
16996 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
16997 * gimple-pretty-print.c (dump_gimple_bb_header):
16998 Dump BB count.
16999 (pp_cfg_jump): Dump edge probability.
17000 * profile-count.c (profile_quality_as_string): Simplify
17001 with a static array.
17002 (parse_profile_quality): New function.
17003 (profile_count::dump): Simplify with a static array.
17004 (profile_count::from_gcov_type): Add new argument.
17005 * profile-count.h (parse_profile_quality): Likewise.
17006 * predict.h (set_hot_bb_threshold): New.
17007 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17008 New param.
17009 * predict.c (get_hot_bb_threshold): Set from the new param.
17010 (set_hot_bb_threshold): New.
17011
17012 2019-05-09 Richard Biener <rguenther@suse.de>
17013
17014 PR tree-optimization/90395
17015 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
17016 rewrite vector stores that throw internally.
17017
17018 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
17019
17020 * cif-code.def (CHKP): Remove.
17021
17022 PR target/89221
17023 * configure.ac (--enable-frame-pointer): Disable by default for
17024 GNU systems.
17025 * configure: Regenerate.
17026
17027 2019-05-09 Alan Modra <amodra@gmail.com>
17028
17029 PR target/89271
17030 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
17031 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
17032 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
17033 cost for general <-> vsx when direct moves are available.
17034 Cost union classes at minimal cost for any reg in the class.
17035 Correct calculation for moves between vsx, float, and altivec.
17036 Don't return a low cost for moves between special regs. Don't
17037 use hard coded register numbers.
17038 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
17039 (rs6000_ira_change_pseudo_allocno_class): New function.
17040 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
17041 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
17042 alternatives.
17043 (movsi_internal1): Don't disparage vector alternatives.
17044 (mov<mode>_internal): Likewise, excepting alternative that
17045 will be split.
17046 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
17047 we <- b alternative.
17048
17049 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17050
17051 PR c++/59813
17052 PR tree-optimization/89060
17053 * tree-ssa-live.h (live_vars_map): New typedef.
17054 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
17055 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
17056 (struct compute_live_vars_data): New type.
17057 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
17058 live_vars_at_stmt, destroy_live_vars): New functions.
17059 * tree-tailcall.c: Include tree-ssa-live.h.
17060 (live_vars, live_vars_vec): New global variables.
17061 (find_tail_calls): Perform variable life analysis before punting.
17062 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
17063 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
17064 member.
17065 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
17066 Perform variable life analysis to select variables that really need
17067 clobbers added.
17068 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
17069 instead set id->eh_landing_pad_dest and assert it is the same.
17070 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
17071
17072 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
17073 Richard Earnshaw <rearnsha@arm.com>
17074
17075 PR target/88167
17076 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
17077 function.
17078 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
17079 (thumb1_compute_save_core_reg_mask): Don't force a spare work
17080 register if both the epilogue and prologue can use call-clobbered
17081 regs.
17082 (thumb1_unexpanded_epilogue): Use
17083 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
17084 picking temporaries for restoring high regs to match that of the
17085 prologue where possible.
17086 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
17087 the list of work registers. Detect if the return address is still live
17088 at the end of the prologue and avoid using it for a work register if so.
17089 If the return address is not live, add LR to the list of pushable regs
17090 after the first pass.
17091
17092 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17093
17094 PR tree-optimization/90078
17095 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
17096 (INFTY): Increase the value for infinite cost.
17097 (struct comp_cost): Promote type of members to int64_t.
17098 (infinite_cost): Don't set complexity in initialization.
17099 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
17100 overflows to infinite_cost.
17101 (adjust_setup_cost): Promote type of parameter and cost computation
17102 to int64_t.
17103 (struct ainc_cost_data, struct iv_ca): Promote type of member to
17104 int64_t.
17105 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
17106 cost computation to int64_t.
17107 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
17108 int64_t's format specifier in dump.
17109
17110 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17111
17112 PR tree-optimization/90240
17113 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
17114 with respect to scaling factor pre-computed for each basic block.
17115 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
17116 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
17117 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
17118 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
17119 live range for array of loop's basic blocks. Cleanup aux field of
17120 loop's basic blocks.
17121
17122 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17123
17124 PR tree-optimization/90356
17125 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
17126
17127 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
17128
17129 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
17130 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
17131 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
17132 (ix86_handle_option): Handle -mavx512bf16.
17133 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
17134 to extra_headers.
17135 * config/i386/avx512bf16vlintrin.h: New.
17136 * config/i386/avx512bf16intrin.h: New.
17137 * config/i386/cpuid.h (bit_AVX512BF16): New.
17138 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
17139 * config/i386/i386-builtin-types.def: Add new types.
17140 * config/i386/i386-builtin.def: Add new builtins.
17141 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17142 __AVX512BF16__.
17143 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
17144 (ix86_option_override_internal): Handle BF16.
17145 (ix86_valid_target_attribute_inner_p): Ditto.
17146 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
17147 * config/i386/i386-builtin.c (enum processor_features): Add
17148 F_AVX512BF16.
17149 (static const _isa_names_table isa_names_table): Ditto.
17150 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
17151 (PTA_AVX512BF16): Ditto.
17152 * config/i386/i386.opt: Add -mavx512bf16.
17153 * config/i386/immintrin.h: Include avx512bf16intrin.h
17154 and avx512bf16vlintrin.h.
17155 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
17156 avx512f_cvtneps2bf16_<mode><mask_name>,
17157 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
17158 * config/i386/subst.md (mask_half): Add new subst.
17159 * doc/invoke.texi: Document -mavx512bf16.
17160
17161 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17162
17163 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
17164 Delete declaration.
17165 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
17166 (rs6000_debug_legitimize_reload_address): Delete.
17167 (rs6000_legitimize_reload_address_ptr): Delete.
17168 (rs6000_option_override_internal): Adjust.
17169 (mem_operand_gpr): Adjust comment.
17170 (legitimate_lo_sum_address_p): Ditto.
17171 (rs6000_legitimize_reload_address): Delete.
17172 (rs6000_debug_legitimize_reload_address): Delete.
17173 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
17174
17175 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
17176
17177 PR target/89765
17178 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17179 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
17180 to compute vector element selector for both constant and variable
17181 operands.
17182
17183 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17184
17185 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17186 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17187 ashrdi3_cvt using SWI48 mode iterator.
17188
17189 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17190
17191 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17192 (aarch64_<su>abd<mode>_3): Likewise.
17193 (*aarch64_<su>abd<mode>_3): New define_insn.
17194 (<sur>sad<vsi2qi>): New define_expand.
17195 * config/aarch64/iterators.md: Added MAX_OPP attribute.
17196 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17197 (build_vect_cond_expr): Likewise.
17198
17199 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17200
17201 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17202 clobbers outside of accessible_reg_set.
17203 * config/i386/i386.c (ix86_conditional_register_usage):
17204 Disable register sets by clearing corresponding bits in
17205 accessible_reg_set. Do not set corresponding bits in fixed_regs,
17206 call_used_regs and don't clear corresponding reg_names array members.
17207
17208 2019-05-07 Richard Biener <rguenther@suse.de>
17209
17210 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17211 not specified still compute a comp_vectype for invariant
17212 compares.
17213
17214 2019-05-07 Richard Biener <rguenther@suse.de>
17215
17216 PR tree-optimization/90316
17217 * tree-ssa-pre.c (translate_vuse_through_block): When
17218 same_valid is NULL do not bother to search for a virtual
17219 PHI continuation.
17220 (phi_translate_1): When operands changed we cannot keep
17221 the same value-number so do not bother to ask whether
17222 that's possible from translate_vuse_through_block.
17223
17224 2019-05-07 Martin Liska <mliska@suse.cz>
17225
17226 * bitmap.c (bitmap_register): Come up with
17227 alloc_descriptor_max_uid and assign it for
17228 a new bitmap.
17229 (register_overhead): Use get_descriptor as
17230 a descriptor.
17231 (release_overhead): New.
17232 (bitmap_elem_to_freelist): Call it.
17233 (bitmap_elt_clear_from): Likewise.
17234 (bitmap_obstack_free): Likewise.
17235 (bitmap_move): Sensitively release memory.
17236 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17237 (bitmap_initialize): Initialize alloc_descriptor to zero.
17238 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17239
17240 2019-05-07 Richard Biener <rguenther@suse.de>
17241
17242 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17243 we build a SLP node. Remove max_size and limiting.
17244 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17245
17246 2019-05-07 Richard Biener <rguenther@suse.de>
17247
17248 PR tree-optimization/90316
17249 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17250 limit by reference.
17251 (walk_non_aliased_vuses): Take walking limit argument.
17252 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17253 walking if it is reached instead of just counting.
17254 (get_continuation_for_phi): Likewise.
17255 (walk_non_aliased_vuses): Likewise, instead of leaving counter
17256 limiting to the callback.
17257 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17258 (vn_reference_lookup_3): Likewise.
17259 (vn_reference_lookup_pieces): Likewise.
17260 (vn_reference_lookup): Likewise.
17261 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17262 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17263 (avail_exprs_stack::lookup_avail_expr): Likewise.
17264
17265 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
17266
17267 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17268 for comparaible types in the second direction even if first one
17269 hits incomparable type.
17270
17271 2019-05-07 Richard Biener <rguenther@suse.de>
17272
17273 PR lto/90369
17274 * lto-wrapper.c (debug_objcopy): Use the original filename
17275 including archive offset for the filename used for -save-temps.
17276
17277 2019-05-07 Li Jia He <helijia@linux.ibm.com>
17278
17279 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17280 detection.
17281
17282 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
17283 Hongtao Liu <hongtao.liu@intel.com>
17284
17285 PR target/89750
17286 PR target/86444
17287 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17288 Modified, original implementation isn't correct.
17289
17290 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17291
17292 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17293 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17294 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17295 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17296 (FRAME_POINTER_REGNUM): Change numbering.
17297 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17298 (alt_reg_names): Adjust.
17299 (rs6000_conditional_register_usage): Don't mark hard register 64 as
17300 fixed.
17301 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17302 (DWARF_FRAME_REGISTERS): Delete.
17303 (DWARF2_FRAME_REG_OUT): Fix whitespace.
17304 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17305 Adjust.
17306 (REG_ALLOC_ORDER): Adjust.
17307 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17308 (REG_CLASS_CONTENTS): Adjust.
17309 (RETURN_ADDR_RTX): Change comment.
17310 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17311 instead of 67.
17312 (REGISTER_NAMES): Adjust.
17313 (ADDITIONAL_REGISTER_NAMES): Adjust.
17314 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17315
17316 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17317
17318 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17319 Delete.
17320 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17321 (DWARF_FRAME_REGISTERS): Adjust.
17322 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17323 Adjust.
17324 (REG_ALLOC_ORDER): Adjust.
17325 (enum reg_class): Delete SPR_REGS.
17326 (REG_CLASS_NAMES): Delete SPR_REGS.
17327 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
17328 (REGISTER_NAMES): Adjust.
17329 (ADDITIONAL_REGISTER_NAMES): Adjust.
17330 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17331 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17332 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17333 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17334 (htm_spr_regno): Delete.
17335 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17336 argument.
17337 (rs6000_dbx_register_number): Adjust.
17338
17339 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17340
17341 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17342
17343 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17344
17345 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17346 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17347
17348 2019-05-06 Jakub Jelinek <jakub@redhat.com>
17349
17350 PR tree-optimization/88709
17351 PR tree-optimization/90271
17352 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17353 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17354 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
17355 variable.
17356 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17357 of the store merging group is larger than
17358 PARAM_STORE_MERGING_MAX_SIZE parameter.
17359 (split_group): Add bzero_first argument. If set, always emit first
17360 the first store which must be = {} of the whole area and then for the
17361 rest of the stores consider all zero bytes as paddings.
17362 (imm_store_chain_info::output_merged_store): Check if first store
17363 is = {} of the whole area and if yes, determine which setting of
17364 bzero_first for split_group gives smaller number of stores. Adjust
17365 split_group callers.
17366 (lhs_valid_for_store_merging_p): Allow decls.
17367 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17368 no elts.
17369 (pass_store_merging::process_store): Likewise.
17370
17371 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
17372
17373 PR target/89424
17374 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17375 handling of V1TImode.
17376
17377 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
17378
17379 PR target/89221
17380 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17381 and enable_frame_pointer ...
17382 * configure.ac: ... here. Update help strings for
17383 --enable-frame-pointer.
17384 * configure: Regenerate.
17385 * config/i386/i386-options.c (ix86_option_override_internal): Remove
17386 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17387 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17388 (USE_X86_64_FRAME_POINTER): Ditto.
17389
17390 2019-05-06 Martin Liska <mliska@suse.cz>
17391
17392 * config.gcc: Append to target_gtfiles and fix indentation.
17393
17394 2019-05-06 Richard Biener <rguenther@suse.de>
17395
17396 PR tree-optimization/90358
17397 * tree-vect-stmts.c (get_group_load_store_type): Properly
17398 detect unused upper half of load.
17399 (vectorizable_load): Likewise.
17400
17401 2019-05-06 Richard Biener <rguenther@suse.de>
17402
17403 PR tree-optimization/88828
17404 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
17405 (simplify_vector_constructor): ...here. Handle constants in
17406 the constructor.
17407
17408 2019-05-06 Richard Biener <rguenther@suse.de>
17409
17410 PR tree-optimization/90328
17411 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
17412 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
17413 is valid in the loop nest before using it.
17414 (initialize_data_dependence_relation): Adjust.
17415 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
17416 loop as loop-nest to dr_may_alias_p.
17417
17418 2019-05-06 Richard Biener <rguenther@suse.de>
17419
17420 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
17421
17422 2019-05-06 Richard Biener <rguenther@suse.de>
17423
17424 PR tree-optimization/90316
17425 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
17426 compute target on demand.
17427 (get_continuation_for_phi): Remove code walking stmts to
17428 get to a target virtual operand which could end up being
17429 quadratic.
17430
17431 2019-05-06 Martin Liska <mliska@suse.cz>
17432
17433 PR sanitizer/90312
17434 * config/i386/i386-options.c (ix86_option_override_internal): Error only
17435 when -mabi is selected to a non-default version.
17436
17437 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
17438 Martin Liska <mliska@suse.cz>
17439
17440 * Makefile.in: Add lto-dump.texi.
17441 * cgraph.h: Add new functions get_visibility_string and
17442 get_symtab_type_string.
17443 * doc/gcc.texi: Include lto-dump section.
17444 * doc/lto-dump.texi: New file.
17445 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
17446 (parse_dump_option): Factor out this function.
17447 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
17448 (parse_dump_option): Export the function.
17449 * symtab.c (symtab_node::get_visibility_string): New function.
17450 (symtab_node::get_symtab_type_string): Likewise.
17451
17452 2019-05-06 Martin Liska <mliska@suse.cz>
17453
17454 * config/i386/i386-builtins.c: New file.
17455 * config/i386/i386-builtins.h: New file.
17456 * config/i386/i386-expand.c: New file.
17457 * config/i386/i386-expand.h: New file.
17458 * config/i386/i386-features.c: New file.
17459 * config/i386/i386-features.h: New file.
17460 * config/i386/i386-options.c: New file.
17461 * config/i386/i386-options.h: New file.
17462 * config.gcc: Add new files into extra_objs and
17463 target_gtfiles.
17464 * config/i386/i386.c: Split content of the file
17465 into newly introduced files.
17466 * config/i386/i386.h: Declare common variables
17467 and macros.
17468 * config/i386/t-i386: Define dependencies for new files.
17469
17470 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
17471
17472 PR target/89400
17473 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
17474 Restrict 'all' variant to 32-bit configurations.
17475 (unaligned_loadhiu): Likewise.
17476 (unaligned_storehi): Likewise.
17477 (unaligned_storesi): Likewise.
17478 (unaligned_loadhis): Disable when compiling for thumb1.
17479
17480 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
17481
17482 PR tree-optimization/90269
17483 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
17484 Ignore clobbers.
17485
17486 2019-05-03 Martin Liska <mliska@suse.cz>
17487
17488 * hash-map.h: Add is_empty function.
17489 * hash-set.h: Likewise.
17490 * hash-table.h: Likewise.
17491 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
17492 elements () == 0 (and similar usages).
17493 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
17494 * gimplify.c (gimplify_bind_expr): Likewise.
17495 (gimplify_switch_expr): Likewise.
17496 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
17497 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
17498 * postreload-gcse.c (dump_hash_table): Likewise.
17499 (gcse_after_reload_main): Likewise.
17500 * predict.c (combine_predictions_for_bb): Likewise.
17501 * tree-parloops.c (reduction_phi): Likewise.
17502 (separate_decls_in_region): Likewise.
17503 (transform_to_exit_first_loop): Likewise.
17504 (gen_parallel_loop): Likewise.
17505 (gather_scalar_reductions): Likewise.
17506 (try_create_reduction_list): Likewise.
17507 * var-tracking.c (dump_vars): Likewise.
17508 (emit_notes_for_changes): Likewise.
17509 (vt_emit_notes): Likewise.
17510
17511 2019-05-03 Richard Biener <rguenther@suse.de>
17512
17513 PR tree-optimization/90316
17514 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
17515 before running VN.
17516
17517 2019-05-03 Richard Biener <rguenther@suse.de>
17518
17519 * tree-vect-stmts.c (get_group_load_store_type): Avoid
17520 peeling for gaps by loading only lower halves of vectors
17521 if possible.
17522 (vectorizable_load): Likewise.
17523
17524 2019-05-03 Richard Biener <rguenther@suse.de>
17525
17526 PR middle-end/89518
17527 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
17528
17529 2019-05-03 Richard Biener <rguenther@suse.de>
17530
17531 PR middle-end/87314
17532 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
17533 Handle STRING_CST vs DECL or STRING_CST.
17534
17535 2019-05-03 Richard Biener <rguenther@suse.de>
17536
17537 PR tree-optimization/88963
17538 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
17539 vector loads feeding only BIT_FIELD_REFs to component
17540 loads. Rewrite stores fed by CONSTRUCTORs to component
17541 stores.
17542
17543 2019-05-03 Jakub Jelinek <jakub@redhat.com>
17544
17545 * opts.h (finish_options): Remove lang_mask argument.
17546 (print_help, help_option_argument): Declare.
17547 * opts.c (print_help): Remove forward declaration, no longer static.
17548 (finish_options): Remove lang_mask argument, don't call print_help
17549 here.
17550 * opts-global.c (decode_options): Adjust finish_option caller, call
17551 print_help here.
17552
17553 PR tree-optimization/90303
17554 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
17555 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
17556
17557 2019-05-03 Richard Biener <rguenther@suse.de>
17558
17559 PR tree-optimization/89698
17560 * gimple-fold.c (canonicalize_constructor_val): Early out
17561 for constants, handle unfolded INTEGER_CSTs as they appear in
17562 C++ virtual table ctors.
17563
17564 2019-05-03 Richard Biener <rguenther@suse.de>
17565
17566 * passes.c (execute_function_todo): Remove dead code.
17567
17568 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17569
17570 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
17571 the internal register number, for any "real" register.
17572
17573 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17574
17575 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
17576 correct numbers for TFHAR, TFIAR, TEXASR.
17577
17578 2019-05-02 Richard Biener <rguenther@suse.de>
17579
17580 PR tree-optimization/89653
17581 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
17582 update-address-taken before the pass.
17583 * passes.def (pass_tree_loop_init): Put comment before it.
17584
17585 2019-05-02 Richard Biener <rguenther@suse.de>
17586
17587 PR tree-optimization/89509
17588 * tree-ssa-structalias.c (compute_dependence_clique): Look
17589 at the first subvar when determining whether it is restrict.
17590
17591 2019-05-02 Richard Biener <rguenther@suse.de>
17592
17593 PR tree-optimization/90273
17594 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
17595 useless debug stmts.
17596
17597 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17598
17599 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
17600 ACLE branch.
17601 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
17602 SVE ACLE branch.
17603 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
17604 VEC_COND_EXPR be inserted to emulate a conditional internal function.
17605 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
17606 (vectorizable_reduction): Use the functions above to vectorize in a
17607 fully masked loop codes that don't have a conditional internal
17608 function.
17609
17610 2019-05-02 Martin Liska <mliska@suse.cz>
17611
17612 * cgraphclones.c: Call valid_attribute_p with 1 for
17613 target_clone.
17614 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
17615 it's for target attribute.
17616 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
17617 Add new boolean argument.
17618 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
17619 Likewise.
17620 (ix86_valid_target_attribute_tree): Pass target_clone_attr
17621 to ix86_valid_target_attribute_inner_p.
17622 (ix86_valid_target_attribute_p): Pass flags argument to
17623 ix86_valid_target_attribute_inner_p.
17624 (get_builtin_code_for_version): Use 0 as it's target attribute.
17625
17626 2019-05-02 Martin Liska <mliska@suse.cz>
17627
17628 * gcc.c (process_command): Add dummy file only
17629 if n_infiles == 0.
17630 * opts-global.c (decode_options): Pass lang_mask.
17631 * opts.c (print_help): New function.
17632 (finish_options): Print --help if help_option_argument
17633 is set.
17634 (common_handle_option): Factor out content of OPT__help_
17635 into print_help.
17636 * opts.h (finish_options): Add new argument.
17637
17638 2019-05-02 Martin Liska <mliska@suse.cz>
17639
17640 PR target/88809
17641 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
17642 With -minline-all-stringops use inline expansion using 4B loop.
17643 * doc/invoke.texi: Document the change of
17644 -minline-all-stringops.
17645
17646 2019-05-01 Jeff Law <law@redhat.com>
17647
17648 PR tree-optimization/88797
17649 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
17650 PHI feeds a conditional on the RHS of an assignment.
17651
17652 2019-04-30 Andrew Waterman <andrew@sifive.com>
17653 Jim Wilson <jimw@sifive.com>
17654
17655 * config/riscv/constraints.md (L): New.
17656 * config/riscv/predicates.md (lui_operand): New.
17657 (sfb_alu_operand): New.
17658 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
17659 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
17660 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
17661 * config/riscv/risc.md (type): Add sfb_alu.
17662 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
17663 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
17664 (branch_zero<mode>): Delete.
17665 (mov<mode>cc): New.
17666 (mov<GPR:mode><X:mode>cc): Likewise.
17667 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
17668
17669 2019-04-30 Nathan Sidwell <nathan@acm.org>
17670
17671 * tree.h (MARK_TS_EXP): New.
17672
17673 2019-04-30 Martin Liska <mliska@suse.cz>
17674
17675 * opts.c (enable_warning_as_error): Provide hints
17676 for unknown options.
17677
17678 2019-04-30 Martin Liska <mliska@suse.cz>
17679
17680 PR debug/90288
17681 * doc/invoke.texi: Add missing dash for gas-locview-support
17682 and gno-as-locview-support.
17683
17684 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17685
17686 PR target/89093
17687 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
17688 whitespace at the start of target attribute string.
17689
17690 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17691
17692 PR target/86538
17693 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
17694 Define __ARM_FEATURE_ATOMICS.
17695
17696 2019-04-30 Martin Liska <mliska@suse.cz>
17697
17698 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
17699 into built_in_function enum. Remove code for endp == 2 and
17700 use BUILT_IN_* constants.
17701 (gimple_fold_builtin): Call the function with fcode.
17702
17703 2019-04-30 Martin Liska <mliska@suse.cz>
17704
17705 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
17706 DECL_FUNCTION_CODE into ix86_builtins enum before
17707 the switch statement.
17708
17709 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17710
17711 PR tree-optimization/89475
17712 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
17713 calls.
17714
17715 2019-04-30 Martin Liska <mliska@suse.cz>
17716
17717 PR translation/90274
17718 * opts.c (print_filtered_help): Wrap string in _(...).
17719
17720 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
17721
17722 PR tree-optimization/90240
17723 Revert:
17724 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17725
17726 PR tree-optimization/90078
17727 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17728 checks for infinite_cost overflow.
17729
17730 2019-04-29 Jeff Law <law@redhat.com>
17731
17732 * passes.def: Move -Wrestrict pass after copy propagation.
17733
17734 2019-04-29 Maya Rashish <coypu@sdf.org>
17735
17736 * config.gcc (default_gnu_indirect_function): Default to yes
17737 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
17738 sparc*-*-netbsd*, x86_64-*-netbsd*.
17739
17740 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
17741
17742 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
17743 where cond2 is NE_EXPR.
17744 (is_value_included_in): Update comment.
17745
17746 2019-04-29 Richard Biener <rguenther@suse.de>
17747
17748 PR tree-optimization/90278
17749 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
17750 EH on comparison simplification.
17751
17752 2019-04-29 Jason Merrill <jason@redhat.com>
17753
17754 PR c++/82081 - tail call optimization breaks noexcept
17755 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
17756 nothrow function to a might-throw function into a tail call.
17757
17758 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
17759
17760 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
17761 (DDR_INNER_LOOP): Likewise.
17762 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
17763 (initialize_data_dependence_relation): Likewise.
17764 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
17765
17766 2019-04-29 Jakub Jelinek <jakub@redhat.com>
17767
17768 PR rtl-optimization/90257
17769 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
17770 return value.
17771
17772 Revert the revert:
17773 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
17774
17775 PR target/90178
17776 Revert:
17777 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
17778
17779 Revert the revert:
17780 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
17781
17782 Revert:
17783 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
17784
17785 * lra-spills.c (lra_final_code_change): Remove useless move insns.
17786
17787 2019-04-29 Richard Biener <rguenther@suse.de>
17788
17789 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
17790 rhs issue a reset.
17791
17792 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
17793
17794 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
17795 varasm.h, and netbsd-protos.h.
17796
17797 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
17798
17799 PR target/89261
17800 * config/i386/i386-protos.h (ix86_data_alignment): Change
17801 the second argument type to unsigned int.
17802 * config/i386/i386.c (ix86_data_alignment): Change "align"
17803 argument type to unsigned int.
17804
17805 2019-04-27 Martin Liska <mliska@suse.cz>
17806
17807 PR middle-end/90258
17808 * opt-suggestions.c (option_proposer::build_option_suggestions):
17809 When get_valid_option_values returns empty values, add the
17810 misspelling candidate.
17811
17812 2019-04-26 Jim Wilson <jimw@sifive.com>
17813
17814 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
17815 parameter.
17816 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
17817 Pass orig_mode to riscv_build_integer.
17818 (riscv_split_integer): Pass mode to riscv_move_integer.
17819 (riscv_legitimize_const_move): Likewise.
17820 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
17821 promoted_mode. Replace force_reg call with code to load constant into
17822 promoted reg and then subreg it for the store.
17823 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
17824 riscv_move_integer.
17825
17826 2018-04-26 Eugene Sharygin <eush@ispras.ru>
17827
17828 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
17829 corrupt codes.
17830
17831 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
17832
17833 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
17834 commentary about the encoding of precision.
17835
17836 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
17837
17838 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
17839 * config/i386/t-freebsd64: New file.
17840 * config.gcc: Add the t-freebsd64 for multilib support.
17841
17842 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
17843
17844 * doc/extend.texi (vector_size): Add missing comma after @xref.
17845
17846 2019-04-25 Jakub Jelinek <jakub@redhat.com>
17847
17848 * BASE-VER: Set to 10.0.0.
17849
17850 2019-04-25 Richard Biener <rguenther@suse.de>
17851
17852 PR middle-end/89765
17853 * gimplify.c (gimplify_expr): Avoid turning a lvalue
17854 VIEW_CONVERT_EXPR into one operating on an rvalue.
17855
17856 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
17857
17858 PR target/89929
17859 * config/i386/i386.c (feature_priority): Moved to file scope.
17860 (processor_features): Likewise.
17861 (processor_model): Likewise.
17862 (_arch_names_table): Likewise.
17863 (arch_names_table): Likewise.
17864 (_feature_list): Removed.
17865 (feature_list): Likewise.
17866 (_isa_names_table): Moved to file scope. Add priority.
17867 (isa_names_table): Likewise.
17868 (get_builtin_code_for_version): Replace feature_list with
17869 isa_names_table. Update error message for P_ZERO priority.
17870
17871 2019-04-25 Richard Biener <rguenther@suse.de>
17872
17873 * tree-pass.h (make_pass_phi_only_cprop): Remove.
17874 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
17875
17876 2019-04-24 Jeff Law <law@redhat.com>
17877
17878 PR tree-optimization/90037
17879 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
17880 * passes.def: Replace all instance of phi-only cprop with the
17881 lattice propagator. Move propagation pass from after erroneous
17882 path isolation to before erroneous path isolation.
17883 * tree-ssa-phionlycprop.c: Remove.
17884
17885 2019-04-24 Richard Biener <rguenther@suse.de>
17886
17887 PR middle-end/90213
17888 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
17889 by size and BITS_PER_UNIT on poly-wide-ints.
17890
17891 2019-04-25 Richard Biener <rguenther@suse.de>
17892
17893 PR middle-end/90194
17894 * match.pd: Add pattern to simplify view-conversion of an
17895 empty constructor.
17896
17897 2019-04-24 Clement Chigot <clement.chigot@atos.net>
17898
17899 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
17900 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
17901 for Go on 32 bit AIX.
17902 * config/rs6000/aix72.h: Likewise.
17903
17904 2019-04-24 Jakub Jelinek <jakub@redhat.com>
17905
17906 PR target/90193
17907 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
17908 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
17909
17910 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
17911
17912 PR target/89952
17913 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
17914 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
17915 for restored hard frame pointer.
17916 (s390_sched_dependencies_evaluation): Implement new target hook.
17917 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
17918
17919 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
17920
17921 * config/arc/arc-options.def: Fix typos and spelling mistakes.
17922 * config/arc/arc.c (arc_init): Cleanup warning message.
17923 (arc_override_options): Likewise.
17924
17925 2019-04-24 Jakub Jelinek <jakub@redhat.com>
17926
17927 PR target/90187
17928 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
17929 a register if both if_true and if_false are MEMs.
17930
17931 PR tree-optimization/90208
17932 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
17933 after labels of new_bb, not before them.
17934
17935 PR tree-optimization/90211
17936 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
17937 which are not SSA_NAMEs.
17938
17939 2018-04-23 Sudakshina Das <sudi.das@arm.com>
17940
17941 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
17942 AArch64.
17943 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
17944
17945 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
17946
17947 PR rtl-optimization/87979
17948 * modulo-sched.c (sms_schedule): Start ii value "mii" should
17949 not equal zero.
17950
17951 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
17952
17953 PR rtl-optimization/84032
17954 * modulo-sched.c (ps_insn_find_column): Change condition so that
17955 branch will always be the last insn in a row inside partial
17956 schedule.
17957
17958 2019-04-23 Richard Biener <rguenther@suse.de>
17959
17960 PR debug/90131
17961 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
17962 dest_single_pred_p argument.
17963 (remove_forwarder_block): Adjust.
17964 (remove_forwarder_block_with_phi): Likewise.
17965
17966 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17967 Bernd Edlinger <bernd.edlinger@hotmail.de>
17968 Jakub Jelinek <jakub@redhat.com>
17969
17970 PR target/89093
17971 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
17972 if used with general-regs-only.
17973 (arm_conditional_register_usage): Don't add non-general regs if
17974 general-regs-only.
17975 (arm_valid_target_attribute_rec): Handle general-regs-only.
17976 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
17977 general-regs-only.
17978 (TARGET_HARD_FLOAT_SUB): Define.
17979 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
17980 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
17981 (TARGET_REALLY_IWMMXT2): Likewise.
17982 * config/arm/arm.opt: Add -mgeneral-regs-only.
17983 * doc/extend.texi: Document ARM general-regs-only target.
17984 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
17985
17986 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17987
17988 PR tree-optimization/90078
17989 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17990 checks for infinite_cost overflow.
17991
17992 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17993
17994 PR tree-optimization/90021
17995 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
17996 and check univariate against it.
17997 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
17998 * tree-data-ref.c (add_other_self_distances): Pass new argument.
17999
18000 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
18001
18002 PR target/90178
18003 Revert:
18004 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
18005
18006 Revert the revert:
18007 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
18008
18009 Revert:
18010 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
18011
18012 * lra-spills.c (lra_final_code_change): Remove useless move insns.
18013
18014 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
18015
18016 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
18017 names using operand format, rather than hard-wired.
18018 (speculation_barrier): Likewise.
18019
18020 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
18021
18022 PR tree-optimization/88055
18023 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
18024 (gen_one_condition): Use it if !HONOR_NANS.
18025
18026 2019-04-19 Jakub Jelinek <jakub@redhat.com>
18027
18028 PR middle-end/90139
18029 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
18030 assign_temp instead of gen_reg_rtx.
18031
18032 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
18033
18034 PR translation/90118
18035 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18036 Add missing space before %<.
18037
18038 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
18039
18040 PR rtl-optimization/87871
18041 * ira-lives.c (make_object_dead): Don't add conflicts to
18042 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
18043
18044 2019-04-18 Martin Sebor <msebor@redhat.com>
18045
18046 PR middle-end/89797
18047 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
18048 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
18049 assuming type size fits in SHWI.
18050
18051 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
18052
18053 PR ipa/85051
18054 * ipa-inline.c (flatten_function): New parameter UPDATE.
18055 (ipa_inline, early_inliner): Use it.
18056
18057 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18058
18059 * fold-const.c (int_const_binop): Return early on failure.
18060
18061 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18062
18063 PR middle-end/85164
18064 * combine.c (force_int_to_mode): Cast the argument rather than
18065 the result of known_alignment.
18066 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
18067
18068 2019-04-18 Richard Biener <rguenther@suse.de>
18069
18070 PR debug/90131
18071 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
18072 out from ...
18073 (remove_forwarder_block): ... here.
18074 (remove_forwarder_block_with_phi): Also move debug stmts here.
18075
18076 2019-04-18 Jakub Jelinek <jakub@redhat.com>
18077
18078 PR translation/79183
18079 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
18080 inform where appropriate.
18081
18082 2019-04-18 Richard Biener <rguenther@suse.de>
18083
18084 * tree.c (get_qualified_type): Put found type variants at the
18085 head of the variant list.
18086
18087 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18088
18089 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
18090
18091 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
18092
18093 PR target/90125
18094 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
18095 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
18096 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
18097 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
18098 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
18099
18100 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
18101
18102 * ira-conflicts.c (print_allocno_conflicts): Always print something,
18103 even for allocno's with no conflicts.
18104 (print_conflicts): Print an extra newline.
18105
18106 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18107
18108 * auto-inc-dec.c (attempt_change): Set the alignment of the
18109 temporary memory to that of the original.
18110
18111 2019-04-17 Joao Moreira <jmoreira@suse.de>
18112
18113 * targhooks.c (default_print_patchable_function_entry): Emit
18114 __patchable_function_entries section with writable flags to allow
18115 relocation resolution.
18116
18117 2019-04-17 Jonny Grant <jg@jguk.org>
18118
18119 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
18120
18121 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18122
18123 PR middle-end/90095
18124 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
18125 on lowpart SUBREGs.
18126
18127 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
18128
18129 * config/arc/arc.c (arc_init): Format diagnostic string.
18130 (arc_override_options): Likewise.
18131 (check_if_valid_regno_const): Likewise.
18132 (arc_reorg): Likewise.
18133
18134 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18135
18136 PR target/17108
18137 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
18138 name.
18139 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
18140 name.
18141 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
18142 (*movdi_update1): Use Pmode.
18143 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
18144 (movdi_<mode>_update_stack): Rename to ...
18145 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
18146 use Pmode.
18147 (*movsi_update1): Use Pmode.
18148 (*movsi_update2): Use Pmode.
18149 (movsi_update): Rename to ...
18150 (movsi_<mode>_update): ... this. Use Pmode.
18151 (movsi_update_stack): Fix condition.
18152 (*movhi_update1): Use Pmode. Fix argument to
18153 avoiding_indexed_address_p.
18154 (*movhi_update2): Ditto.
18155 (*movhi_update3): Ditto.
18156 (*movhi_update4): Ditto.
18157 (*movqi_update1): Ditto.
18158 (*movqi_update2): Ditto.
18159 (*movqi_update3): Ditto.
18160 (*movsf_update1, *movdf_update1): Merge, rename to...
18161 (*mov<mode>_update1): This. Use Pmode. Fix argument to
18162 avoiding_indexed_address_p. Add "size" attribute.
18163 (*movsf_update2, *movdf_update2): Merge, rename to...
18164 (*mov<mode>_update2): This. Ditto.
18165 (*movsf_update3): Use Pmode. Fix argument to
18166 avoiding_indexed_address_p.
18167 (*movsf_update4): Ditto.
18168 (allocate_stack): Simplify condition. Adjust pattern names.
18169
18170 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18171
18172 PR target/89093
18173 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
18174 whitespace at the start of target attribute string.
18175
18176 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
18177
18178 PR target/84369
18179 * config/rs6000/power9.md: Add store forwarding bypass.
18180
18181 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
18182
18183 PR debug/89528
18184 * valtrack.c (dead_debug_insert_temp): Reset debug references
18185 to the return value of a call being removed.
18186
18187 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18188
18189 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18190 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18191 implement target hook.
18192 (arc_memory_move_cost): New function.
18193 (TARGET_REGISTER_MOVE_COST): Define.
18194 (TARGET_MEMORY_MOVE_COST): Likewise.
18195 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18196 (MEMORY_MOVE_COST): Likewise.
18197
18198 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18199
18200 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18201 (sibcall_value_insn): Likewise.
18202 * config/arc/constraints.md (Rs5): Remove.
18203
18204 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18205
18206 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18207 for last two fake registers.
18208 (arc_conditional_register_usage): Make sure fake frame and arg
18209 pointer regs are in general regs class.
18210 (FRAME_POINTER_MASK): Remove.
18211 (RETURN_ADDR_MASK): Remove.
18212 (arc_must_save_register): Use hard frame regnum.
18213 (frame_restore_reg): Use hard_frame_pointer_rtx.
18214 (arc_save_callee_saves): Likewise.
18215 (arc_restore_callee_saves): Likewise.
18216 (arc_save_callee_enter): Likewise.
18217 (arc_restore_callee_leave): Likewise.
18218 (arc_save_callee_milli): Likewise.
18219 (arc_eh_return_address_location): Likewise.
18220 (arc_check_multi): Use hard frame regnum.
18221 (arc_can_eliminate): Likewise.
18222 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18223 for register allocator.
18224 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18225 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18226 (FRAME_POINTER_REGNUM): Change it to a fake register.
18227 (HARD_FRAME_POINTER_REGNUM): Defined.
18228 (ARG_POINTER_REGNUM): Change it to a new fake register.
18229 (ELIMINABLE_REGS): Update.
18230 (REGISTER_NAMES): Update names.
18231 * config/arc/arc.md (LP_START): Remove.
18232 (LP_END): Likewise.
18233 (shift_si3_loop): Update pattern.
18234
18235 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18236
18237 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18238 to avoid delay slot scheduling.
18239 (arc_must_save_register): Don't save SP.
18240 * config/arc/arc.md (stack_tie): Remove.
18241 (UNSPEC_ARC_STKTIE): Likewise.
18242
18243 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
18244 Shiva Chen <shiva0217@gmail.com>
18245
18246 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18247 code gen with large shift amount.
18248
18249 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
18250
18251 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18252 subreg.
18253
18254 2019-04-16 Jakub Jelinek <jakub@redhat.com>
18255
18256 PR target/90096
18257 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18258 print -m64/-mx32/-m32 if it is true.
18259 (ix86_debug_options, ix86_function_specific_print): Pass true as
18260 ADD_ABI_P to ix86_target_string.
18261 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18262 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18263 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18264
18265 PR rtl-optimization/90082
18266 * dce.c (can_delete_call): New function.
18267 (deletable_insn_p, mark_insn): Use it.
18268
18269 PR tree-optimization/90090
18270 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18271 throw internally.
18272 (is_division_by_square): Likewise. Formatting fix.
18273
18274 2019-04-16 Richard Biener <rguenther@suse.de>
18275
18276 PR tree-optimization/56049
18277 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18278 equality check if alias-set zero will prevail.
18279
18280 2019-04-15 Jeff Law <law@redhat.com>
18281
18282 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18283 size and alignment as unsigned.
18284
18285 2019-04-15 Richard Biener <rguenther@suse.de>
18286
18287 PR debug/90074
18288 * tree-loop-distribution.c (destroy_loop): Preserve correct
18289 debug info.
18290
18291 2019-04-15 Richard Biener <rguenther@suse.de>
18292
18293 PR tree-optimization/90071
18294 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18295 abnormal operands from def stmts.
18296
18297 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
18298
18299 PR rtl-optimization/89794
18300 * combine.c (count_auto_inc): New function.
18301 (try_combine): Count how many auto_inc expressions there were in the
18302 original instructions. Ensure we have the same number in the new
18303 instructions. Remove the code that tried to ensure auto_inc side
18304 effects on i1 and i0 are not lost.
18305
18306 2019-04-15 Richard Biener <rguenther@suse.de>
18307
18308 PR ipa/88936
18309 * tree.h (auto_var_p): Declare.
18310 * tree.c (auto_var_p): New function, split out from ...
18311 (auto_var_in_fn_p): ... here.
18312 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18313 member.
18314 (new_var_info): Initialize it.
18315 (set_uids_in_ptset): Also set the shadow variable uid if required.
18316 (ipa_pta_execute): Postprocess points-to solutions assigning
18317 shadow variable uids for locals that may reach their containing
18318 function recursively.
18319 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18320 assert but instead check whether the points-to solution is
18321 a singleton.
18322
18323 2019-04-15 Martin Jambor <mjambor@suse.cz>
18324
18325 PR ipa/pr89693
18326 * cgraph.c (clone_of_p): Loop over clone chain for each step in
18327 the thunk chain.
18328
18329 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18330
18331 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18332
18333 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18334 Kito Cheng <kito.cheng@gmail.com>
18335 Shiva Chen <shiva0217@gmail.com>
18336
18337 * config/nds32/nds32-md-auxiliary.c
18338 (nds32_legitimize_pic_address): Use new PIC pattern.
18339 (nds32_legitimize_tls_address): Use new TLS pattern.
18340 (nds32_output_symrel): New.
18341 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18342 (nds32_alloc_relax_group_id): Ditto.
18343 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18344 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18345 relax_group_id.
18346 (nds32_group_tls_insn): Ditto.
18347 (nds32_group_float_insns): Ditto.
18348 * config/nds32/nds32.md (tls_le): New.
18349 (sym_got): Ditto.
18350
18351 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
18352
18353 * configure: Add nds32 target for dwarf2 debug_line checking.
18354 * configure.ac: Regenerated.
18355
18356 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
18357
18358 PR lto/89358
18359 * ipa-devirt.c (skip_in_fields_list_p): New.
18360 (odr_types_equivalent_p): Use it.
18361
18362 2019-04-13 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR target/89093
18365 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18366 instead of strncmp when checking for thumb and arm. Formatting fixes.
18367
18368 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
18369
18370 * doc/install.texi: Document --with-target-system-zlib.
18371
18372 2019-04-12 Martin Sebor <msebor@redhat.com>
18373
18374 PR c/88383
18375 PR c/89288
18376 PR c/89798
18377 PR c/89797
18378 * targhooks.c (default_vector_alignment): Avoid assuming
18379 argument fits in SHWI.
18380 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18381 a shift expression.
18382 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18383
18384 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18385
18386 PR rtl-optimization/89965
18387 * dce.c: Include rtl-iter.h.
18388 (struct check_argument_load_data): New type.
18389 (check_argument_load): New function.
18390 (find_call_stack_args): Check for loads from stack slots still tracked
18391 in sp_bytes and punt if any is found.
18392
18393 * config/mips/loongson-mmiintrin.h: Fix up #error message.
18394
18395 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
18396
18397 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
18398 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
18399
18400 2019-04-12 Martin Liska <mliska@suse.cz>
18401
18402 PR middle-end/89970
18403 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
18404 in error message.
18405 (separate_attrs): Handle multiple 'default's.
18406 (expand_target_clones): Rework error handling code.
18407
18408 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
18409
18410 PR target/87532
18411 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
18412 mode of vector rather than mode of destination for move instruction.
18413 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
18414 Use QI inner mode with V16QI vector mode.
18415
18416 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18417
18418 PR target/52726
18419 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
18420 "invalid %%t operand" in output_operand_lossage message.
18421
18422 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
18423
18424 * config/s390/predicates.md (permute_pattern_operand): New
18425 predicate.
18426 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
18427 operand for the permute pattern.
18428 ("*vec_perm<mode>"): New insn definition.
18429 ("bswap<mode>"): Generate the permute pattern operand in the
18430 expander and perform the operand reloads for pre arch13 level
18431 already.
18432 ("*bswap<mode>_emu"): Rename to ...
18433 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
18434 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
18435 Add the USE operand for the permute pattern.
18436 ("*vec_set_bswap_vec<mode>"): Likewise.
18437
18438 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18439
18440 PR c/89946
18441 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
18442 and gcc_unreachable if it fails, just call tree_to_uhwi which
18443 verifies that too. Test TREE_CHAIN instead of list_length > 1.
18444 Start warning message with a lower-case letter. Formatting fixes.
18445
18446 PR rtl-optimization/90026
18447 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
18448 successors, look for BARRIERs inside of the whole BB_FOOTER chain
18449 rather than just at the start of it. If e->src BB_FOOTER is not NULL
18450 in cfglayout mode, use emit_barrier_after_bb.
18451
18452 2018-04-11 Steve Ellcey <sellcey@marvell.com>
18453
18454 PR rtl-optimization/87763
18455 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
18456 New Instruction.
18457
18458 2019-04-11 Tom de Vries <tdevries@suse.de>
18459
18460 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
18461 max macro using statement expression.
18462
18463 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
18464
18465 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
18466 * xcoffout.c (xcoff_private_rodata_section_name): Define.
18467 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
18468 read_only_private_data_section using xcoff_private_rodata_section_name.
18469 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
18470
18471 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
18472
18473 PR target/90016
18474 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
18475
18476 2019-04-11 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR rtl-optimization/89965
18479 * dce.c (sp_based_mem_offset): New function.
18480 (find_call_stack_args): Use sp_based_mem_offset.
18481
18482 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
18483
18484 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
18485
18486 2019-04-11 Richard Biener <rguenther@suse.de>
18487
18488 PR tree-optimization/90020
18489 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
18490 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
18491 * tree-ssa-pre.c (compute_avail): Use it to not put
18492 possibly trapping references after a call that might not
18493 return into EXP_GEN.
18494 * gcse.c (compute_hash_table_work): Do not elide
18495 marking a block containing a call if the call might not
18496 return.
18497
18498 2019-04-11 Richard Biener <rguenther@suse.de>
18499
18500 PR tree-optimization/90018
18501 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
18502 Test both SLP and interleaving variants.
18503
18504 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
18505
18506 * config/s390/8561.md: New file.
18507 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18508 Add arch13 cpu model.
18509 * config/s390/s390-opts.h (enum processor_type): Likewise.
18510 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
18511 (s390_get_unit_mask): Likewise.
18512 (s390_is_fpd): Likewise.
18513 (s390_is_fxd): Likewise.
18514 * config/s390/s390.h (s390_tune_attr): Likewise.
18515 * config/s390/s390.md: Include arch13 pipeline description.
18516 * config/s390/s390.opt: Add arch13.
18517
18518 2018-04-10 Steve Ellcey <sellcey@marvell.com>
18519
18520 PR rtl-optimization/87763
18521 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
18522 New prototype.
18523 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
18524 New function.
18525 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
18526 New instruction.
18527 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
18528 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
18529 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
18530 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
18531
18532 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
18533
18534 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
18535 "Although" in -fipa-icf documentation.
18536
18537 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
18538 of using multiple -g options.
18539
18540 2019-04-10 Martin Liska <mliska@suse.cz>
18541
18542 PR gcov-profile/89959
18543 * doc/gcov.texi: Make documentation of -x option
18544 more precise.
18545
18546 2019-04-10 Richard Biener <rguenther@suse.de>
18547
18548 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
18549 member.
18550 (DR_GROUP_SAME_DR_STMT): Remove.
18551 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
18552 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
18553 replace with assert.
18554 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
18555 (vect_record_grouped_load_vectors): Remove unreachable code.
18556
18557 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
18558
18559 PR target/90016
18560 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
18561 obsolete reference to N.
18562
18563 2019-04-10 Jakub Jelinek <jakub@redhat.com>
18564
18565 PR middle-end/90025
18566 * expr.c (store_expr): Set properly size on the MEM passed to
18567 clear_storage.
18568
18569 PR c++/90010
18570 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
18571 with strlen in between hostsz-3 and hostsz-1 inclusive when no
18572 translation is needed, and when translation is needed, only append
18573 ... if the string length is hostsz or more bytes long. Avoid using
18574 strncpy or strcat.
18575
18576 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
18577
18578 PR target/90024
18579 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
18580 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
18581 into three.
18582 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
18583 differences directly.
18584 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
18585
18586 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18587
18588 PR translation/90011
18589 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18590 from diagnostics.
18591 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
18592 diagnostics.
18593 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18594 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
18595 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
18596 trailing space from -gsplit-dwarf diagnostics.
18597
18598 PR tree-optimization/89998
18599 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
18600 instead of integer_type_node if possible, don't add ranges if return
18601 type is not compatible with int.
18602 * gimple-fold.c (gimple_fold_builtin_sprintf,
18603 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
18604 integer_type_node.
18605
18606 2019-04-09 Martin Liska <mliska@suse.cz>
18607
18608 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
18609 * doc/install.texi: Document the new config.
18610
18611 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
18612
18613 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
18614 use gimple_expr_type for load and store calls. Skip over the
18615 condition argument in a conditional internal function.
18616 Protect use of TREE_INT_CST_LOW.
18617
18618 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18619
18620 PR target/90015
18621 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
18622 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
18623 trailing period from it too.
18624
18625 2019-04-08 wu yuan <wuyuan5@huawei.com>
18626
18627 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
18628 * config/aarch64/aarch64.md : Add "tsv110.md"
18629 * config/aarch64/tsv110.md: New file.
18630
18631 2019-04-08 Richard Biener <rguenther@suse.de>
18632
18633 PR tree-optimization/90006
18634 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18635 calls like lrint.
18636
18637 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
18638
18639 PR target/83033
18640 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
18641 construction.
18642 (fma_root_node): Likewise.
18643 (func_fma_steering): Likewise.
18644
18645 2019-04-08 Jakub Jelinek <jakub@redhat.com>
18646
18647 PR rtl-optimization/89865
18648 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
18649
18650 PR rtl-optimization/89865
18651 * config/i386/i386.md
18652 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
18653 numbers not to clash with the additional operands[4].
18654 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
18655 with extra register copy in the middle.
18656
18657 2019-04-08 Martin Liska <mliska@suse.cz>
18658
18659 PR gcov-profile/89961
18660 * doc/gcov.texi: Document data_file.
18661 * gcov.c (generate_results): Add data_info into JSON output.
18662
18663 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18664
18665 PR tree-optimization/89725
18666 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
18667 loop's chrec as invariant symbol.
18668 * tree-chrec.h (chrec_contains_symbols): New parameter.
18669 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
18670 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
18671 function of loops not in DDR's loop_nest.
18672 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
18673
18674 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
18675
18676 PR target/89623
18677 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
18678 Mask.
18679
18680 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
18681
18682 PR target/89945
18683 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18684 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
18685
18686 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
18687
18688 * sched-deps.c (sched_macro_fuse_insns): Check return value of
18689 targetm.fixed_condition_code_regs.
18690
18691 2019-04-05 Richard Biener <rguenther@suse.de>
18692
18693 PR debug/89892
18694 PR debug/89905
18695 * tree-cfgcleanup.c (remove_forwarder_block): Always move
18696 debug bind stmts but reset them if they are not valid at the
18697 destination.
18698
18699 2019-04-05 Martin Liska <mliska@suse.cz>
18700
18701 PR translation/89936
18702 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
18703 order to wrap keywords or arguments.
18704 * collect2.c (main): Likewise.
18705 (scan_prog_file): Likewise.
18706 (scan_libraries): Likewise.
18707 * common/config/riscv/riscv-common.c
18708 (riscv_subset_list::parsing_subset_version): Likewise.
18709 (riscv_subset_list::parse_std_ext): Likewise.
18710 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18711 Likewise.
18712 * config/arm/arm.c (arm_option_override): Likewise.
18713 * config/cris/cris.c (cris_print_operand): Likewise.
18714 * config/darwin-c.c (darwin_pragma_options): Likewise.
18715 (darwin_pragma_unused): Likewise.
18716 (darwin_pragma_ms_struct): Likewise.
18717 * config/ft32/ft32.c (ft32_print_operand): Likewise.
18718 * config/i386/i386.c (print_reg): Likewise.
18719 (ix86_print_operand): Likewise.
18720 * config/i386/xm-djgpp.h: Likewise.
18721 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
18722 * config/m32c/m32c.c (m32c_option_override): Likewise.
18723 * config/msp430/msp430.c (msp430_option_override): Likewise.
18724 * config/nds32/nds32.c (nds32_option_override): Likewise.
18725 * config/nvptx/mkoffload.c (main): Likewise.
18726 * config/rx/rx.c (rx_print_operand): Likewise.
18727 (valid_psw_flag): Likewise.
18728 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
18729 (vms_pragma_nomember_alignment): Likewise.
18730 (vms_pragma_extern_model): Likewise.
18731 * lto-wrapper.c (compile_offload_image): Likewise.
18732 * omp-offload.c (oacc_parse_default_dims): Likewise.
18733 * symtab.c (symtab_node::verify_base): Likewise.
18734 * tlink.c (recompile_files): Likewise.
18735 (start_tweaking): Likewise.
18736 * tree-profile.c (parse_profile_filter): Likewise.
18737
18738 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
18739
18740 PR tree-optimization/89956
18741 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
18742 multiple negates of the same value.
18743
18744 2019-04-04 Martin Sebor <msebor@redhat.com>
18745
18746 PR middle-end/89957
18747 PR middle-end/89911
18748 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
18749 have the same precision since the function crashes otherwise.
18750 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
18751 has non-zero arguments.
18752
18753 2019-04-04 Martin Sebor <msebor@redhat.com>
18754
18755 PR middle-end/89934
18756 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
18757 out if the number of arguments is less than expected.
18758
18759 2019-04-04 Jeff Law <law@redhat.com>
18760
18761 PR rtl-optimization/89399
18762 * ree.c (combine_set_extension): Use single_set rather than
18763 digging into PATTERN for items on the candidate list.
18764 (combine_reaching_defs): Likewise.
18765
18766 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
18767
18768 PR rtl-optimization/46590
18769 * loop-invariant.c (find_defs): Move df_remove_problem and
18770 df_process_deferred_rescans to move_invariants.
18771 Move df_live_add_problem and df_live_set_all_dirty calls
18772 to move_invariants.
18773 (move_invariants): Likewise.
18774 (move_loop_invariants): Likewise, making the df_live calls
18775 conditional on -O. Remove the problem again if we added it
18776 locally.
18777
18778 2019-04-03 qing zhao <qing.zhao@oracle.com>
18779
18780 PR tree-optimization/89730
18781 * ipa-inline.c (can_inline_edge_p): Delete the checking for
18782 -flive-patching=inline-only-static.
18783 (can_inline_edge_by_limits_p): Add the checking for
18784 -flive-patching=inline-only-static and grant always_inline
18785 even when -flive-patching=inline-only-static is specified.
18786
18787 2019-04-03 Jeff Law <law@redhat.com>
18788
18789 PR rtl-optimization/81025
18790 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
18791
18792 2019-04-03 Richard Biener <rguenther@suse.de>
18793
18794 PR tree-optimization/84101
18795 * tree-vect-stmts.c: Include explow.h for hard_function_value,
18796 regs.h for hard_regno_nregs.
18797 (cfun_returns): New helper.
18798 (vect_model_store_cost): When vectorizing a store to a decl
18799 we return and the function ABI returns in a multi-reg location
18800 account for the possible spilling that will happen.
18801
18802 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
18803
18804 * config/s390/s390.c (s390_legitimate_address_p): Reject long
18805 displacement addresses for vector mode operands.
18806
18807 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
18808
18809 * config/arc/arc.c (GMASK_LEN): Define.
18810 (arc_restore_callee_saves): Restore first blink when
18811 !optimize_size.
18812
18813 2019-04-03 Sudakshina Das <sudi.das@arm.com>
18814
18815 * doc/extend.texi: Add deprecated comment on sign-return-address
18816 function attribute and add mbranch-protection.
18817 * doc/invoke.texi: Add bti to the options for mbranch-protection.
18818
18819 2019-04-03 Richard Biener <rguenther@suse.de>
18820
18821 PR lto/89896
18822 * lto-wrapper.c (run_gcc): Avoid implicit rules making
18823 the all target phony.
18824
18825 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
18826
18827 PR target/89902
18828 PR target/89903
18829 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
18830 Return false for variable DImode shifts.
18831 (dimode_scalar_chain::compute_convert_gain): Do not handle
18832 register count operand in variable DImode shifts.
18833 (dimode_scalar_chain::make_vector_copies): Remove support to copy
18834 count argument of a variable shift instruction to a vector register.
18835 (dimode_scalar_chain::convert_reg): Remove support to convert
18836 count argument of a variable shift instruction.
18837
18838 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
18839
18840 PR rtl-optimization/84206
18841 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
18842 iterating over loop headers.
18843
18844 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
18845
18846 PR rtl-optimization/85876
18847 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
18848 beyond the original fence.
18849
18850 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
18851
18852 * config.gcc: Mark spu* targets as deprecated/obsolete.
18853
18854 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18855
18856 * config/s390/s390-builtin-types.def: New builtin function type
18857 definitions. Remove unused types.
18858 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
18859 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
18860 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
18861 overloaded builtins.
18862 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
18863 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
18864 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
18865 (vec_double, vec_signed, vec_unsigned): Define to use the new
18866 overloaded builtins.
18867 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
18868 Remove expanders.
18869
18870 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18871
18872 * config/s390/s390-builtin-types.def: New builtin function type
18873 definitions.
18874 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
18875 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
18876 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
18877 (s390_vstrszh, s390_vstrszf): New low-level builtins.
18878 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
18879 constant definitions.
18880 * config/s390/vecintrin.h (vec_search_string_cc)
18881 (vec_search_string_until_zero_cc): New builtin name definitions.
18882 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
18883 expanders.
18884 ("vec_vstrs<mode>"): New insn definition.
18885
18886 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18887
18888 * config/s390/s390-builtin-types.def: Add new builtin function
18889 types.
18890 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
18891 New overloaded builtins.
18892 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
18893 s390_vsrd.
18894 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
18895 (UNSPEC_VEC_SLDBYTE): ... this.
18896 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
18897 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
18898 definitions.
18899 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
18900 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
18901 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
18902
18903 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18904
18905 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
18906 New insn definition.
18907 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
18908 * config/s390/vector.md (V_HW_HSD): ... here.
18909
18910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18911
18912 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
18913 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
18914 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
18915 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
18916 New insn definitions.
18917
18918 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18919
18920 * config/s390/s390-builtin-types.def: Add new builtin function type.
18921 * config/s390/s390-builtins.def: Add overloaded builtin
18922 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
18923 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
18924 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
18925 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
18926 ("eltswap<mode>"): New expander.
18927 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
18928 insn definitions.
18929
18930 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18931
18932 * config/s390/s390-builtin-types.def: Add new builtin function types.
18933 * config/s390/s390-builtins.def: Add overloaded builtin
18934 s390_vec_revb. Add low-level builtins for vlbr and vstbr
18935 instructions.
18936 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
18937 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
18938 ("bswap<mode>"): New expander.
18939 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
18940
18941 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18942
18943 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
18944 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
18945 vector builtin version number in __VEC__.
18946
18947 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18948
18949 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
18950 iterators.
18951 (SFSI): New mode attribute.
18952 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
18953 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
18954 rename to ...
18955 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
18956 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
18957 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
18958 ("floatsi<mode>2"): Add wcefb instruction.
18959
18960 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18961
18962 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
18963 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
18964 mode iterators.
18965 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
18966 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
18967 support 32 bit fp-int conversions. Rename to ...
18968 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
18969 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
18970 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
18971 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
18972 ... to these.
18973
18974 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18975
18976 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
18977 if-then-else constructs if we can use the select instruction.
18978 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
18979
18980 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18981
18982 * config/s390/s390.md ("*popcountdi_arch13_cc")
18983 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
18984 definition.
18985 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
18986 Append _z196 to make it ...
18987 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
18988 ("popcounthi2_z196"): ... this.
18989 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
18990 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
18991
18992 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18993
18994 * config/s390/s390.c (s390_canonicalize_comparison): Convert
18995 certain compares for arch13 in order to make use of the condition
18996 code result produced by the new instructions.
18997 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
18998 nxrk, and nxgrk instruction patterns.
18999 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
19000 (inv_no): Add new code iterator together with some attributes.
19001 ("*andc_split_<mode>"): Disable splitter for arch13.
19002 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
19003 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
19004 ("*<ANDOR:bitops_name>c<GPR:mode>")
19005 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
19006 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
19007 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
19008 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
19009
19010 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19011
19012 * common/config/s390/s390-common.c (processor_flags_table): New
19013 entry for arch13.
19014 * config.gcc: Support arch13 with the --with-arch= configure flag.
19015 * config/s390/driver-native.c (s390_host_detect_local_cpu):
19016 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
19017 * config/s390/s390.c (s390_get_sched_attrmask)
19018 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
19019 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
19020 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
19021 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
19022 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
19023 definitions.
19024 * config/s390/s390.opt: Support arch13 as processor type in
19025 command line options.
19026
19027 2019-04-02 Martin Liska <mliska@suse.cz>
19028
19029 PR translation/89912
19030 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
19031 Fix param description of graphite-max-arrays-per-scop.
19032
19033 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
19034
19035 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
19036 (ASAN_CC1_SPEC): Use it in 64-bit mode.
19037 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
19038
19039 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19040
19041 PR rtl-optimization/85412
19042 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
19043 sel_sched_region_1, not after.
19044
19045 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19046
19047 PR rtl-optimization/86928
19048 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
19049 compute_live if necessary.
19050 (sel_redirect_edge_and_branch): Likewise.
19051
19052 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
19053
19054 PR rtl-optimization/89865
19055 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
19056 register if it is a part of small class.
19057
19058 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19059
19060 PR rtl-optimization/87273
19061 * sel-sched-ir.c (merge_fences): Remove assert.
19062
19063 2019-04-01 Richard Biener <rguenther@suse.de>
19064
19065 PR tree-optimization/46590
19066 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
19067 (dom_walker::m_reachability): Add in place of...
19068 (dom_walker::m_skip_unreachable_blocks): ...this.
19069 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
19070 Move complex initialization ...
19071 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
19072 lazily and initialize edge flags on each invocation.
19073 (dom_walker::bb_reachable): Use m_reachability.
19074
19075 2019-04-01 Martin Liska <mliska@suse.cz>
19076
19077 PR driver/89861
19078 * opt-suggestions.c (option_proposer::build_option_suggestions):
19079 Add variant without any argument in order to provide better
19080 hints.
19081
19082 2019-04-01 Richard Biener <rguenther@suse.de>
19083
19084 PR c/71598
19085 * gimple.c: Include langhooks.h.
19086 (gimple_get_alias_set): Treat enumeral types as the underlying
19087 integer type.
19088
19089 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19090 Eric Botcazou <ebotcazou@adacore.com>
19091
19092 PR rtl-optimization/89862
19093 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
19094 that operates on the full registers for WORD_REGISTER_OPERATIONS
19095 architectures.
19096
19097 2019-03-29 Jim Wilson <jimw@sifive.com>
19098
19099 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
19100 Clear MASK_RVC and then set if C subset supported.
19101
19102 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19103
19104 PR c/89872
19105 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
19106 non-addressable complit into its initializer if it is volatile.
19107
19108 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
19109
19110 * opts-common.c (integral_argument): Set errno properly in one case.
19111
19112 2019-03-29 Martin Liska <mliska@suse.cz>
19113
19114 * doc/invoke.texi: Remove -Wchkp from documentation.
19115
19116 2019-03-29 Martin Liska <mliska@suse.cz>
19117
19118 * dbgcnt.c (print_limit_reach): New function.
19119 (dbg_cnt): Use it.
19120
19121 2019-03-29 Martin Liska <mliska@suse.cz>
19122
19123 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
19124 (dbg_cnt_process_opt): Parse first tokens aas
19125 dbg_cnt_process_single_pair is also using strtok.
19126
19127 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19128
19129 PR rtl-optimization/87485
19130 * function.c (expand_function_end): Move stack_protect_epilogue
19131 before loading of return value into hard register(s).
19132
19133 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19134
19135 PR middle-end/89621
19136 * tree-inline.h (struct copy_body_data): Add
19137 dont_remap_vla_if_no_change flag.
19138 * tree-inline.c (remap_type_3, remap_type_2): New functions.
19139 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
19140 and remap_type_2 returns false.
19141 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
19142 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
19143 only from where it is copied to nested contexts.
19144
19145 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19146
19147 PR target/89865
19148 * config/i386/i386.md (RMW operation with LEA peephole):
19149 Use LEAMODE mode attribute instead of SWI mode iterator for
19150 LEA pattern.
19151
19152 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19153
19154 PR target/89848
19155 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
19156 Also process XEXP (src, 0) of a shift insn.
19157
19158 2019-03-28 David Malcolm <dmalcolm@redhat.com>
19159
19160 PR middle-end/89725
19161 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
19162 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
19163
19164 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19165
19166 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
19167 test.
19168 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
19169 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
19170 immediately after first one with df_analyze in between, but rather
19171 process all bbs, queueing ones that need second pass in a worklist,
19172 df_analyze, process queued debug insn changes and if second pass is
19173 needed, process bbs from worklist, df_analyze, process queued debug
19174 insns again.
19175
19176 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
19177 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
19178 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
19179
19180 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
19181
19182 PR c/79022
19183 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19184 definition.
19185
19186 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
19187
19188 PR target/85667
19189 * config/i386/i386.c (ix86_function_value_1): Call the newly added
19190 function for 32-bit MS_ABI.
19191 (function_value_ms_32): New function.
19192
19193 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
19194
19195 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19196 (movdi): Call gen_movdi_symbol_save_scc.
19197 (gen_movdi_symbol_save_scc): New insn and split.
19198
19199 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
19200
19201 PR rtl-optimization/89313
19202 * function.c (matching_constraint_num): New static function.
19203 (match_asm_constraints_1): Use it. Fixup white space and comment.
19204 Don't replace inputs with non-matching constraints which conflict
19205 with early clobber outputs.
19206
19207 2019-03-27 Jeff Law <law@redhat.com>
19208
19209 PR rtl-optimization/87761
19210 PR rtl-optimization/89826
19211 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19212 slightly later.
19213 (pass_cprop_hardreg::execute): Call df_analyze after adding the
19214 note problem to get REG_DEAD/REG_UNUSED notes updated.
19215
19216 2019-03-27 Richard Biener <rguenther@suse.de>
19217
19218 PR tree-optimization/89463
19219 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19220 queue edges to remove.
19221 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19222 dead stmts. Delay edge removal until PHIs are removed to
19223 make debug-stmt creation not confused by seemingly degenerate
19224 PHIs.
19225
19226 2019-03-27 Alan Modra <amodra@gmail.com>
19227
19228 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19229 throughout file.
19230 * config/rs6000/darwin.h: Likewise.
19231 * config/rs6000/rs6000.c: Likewise.
19232
19233 2019-03-27 Alan Modra <amodra@gmail.com>
19234
19235 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19236 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
19237
19238 2019-03-26 Andrew Waterman <andrew@sifive.com>
19239 Jim Wilson <jimw@sifive.com>
19240
19241 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19242 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19243 (generic_idivdi, generic_fmul_single, generic_fmul_double)
19244 (generic_fdiv, generic_fsqrt): Add check for generic tune.
19245 (generic_alu): Add auipc to type list.
19246 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19247 (riscv_microarchitecture): Declare.
19248 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19249 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19250 field.
19251 (riscv_microarchitecture): New.
19252 (sifive_7_tune_info): New.
19253 (riscv_cpu_info_table): Add microarchitecture value for rocket and
19254 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
19255 entries.
19256 (riscv_store_data_bypass_p): New.
19257 (riscv_option_override): Set riscv_microarchitecture from
19258 cpu->microarchitecture.
19259 * config/riscv/riscv.md: Include sifive-7.md.
19260 (type): Add auipc.
19261 (tune): New.
19262 (auipc<mode>): Change type to auipc.
19263 (restore_stack_nonlocal): New.
19264 * config/riscv/sifive-7.md: New.
19265 * doc/invoke.texi (RISC-V Options): Update mtune docs.
19266
19267 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
19268
19269 PR target/89827
19270 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19271 Also process XEXP (src, 0) of a shift insn.
19272
19273 2019-03-26 Richard Biener <rguenther@suse.de>
19274
19275 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19276 (copy_debug_stmt): Likewise.
19277 (expand_call_inline): Likewise.
19278 (copy_bb): Avoid redundant lookup & set of gimple_block.
19279 * gimple-low.c (lower_gimple_return): Likewise.
19280 (lower_builtin_setjmp): Likewise.
19281
19282 2019-03-26 Jakub Jelinek <jakub@redhat.com>
19283
19284 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19285 is constant 0, turn into static const data member initialized to false.
19286 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19287 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19288
19289 2019-03-26 Jason Merrill <jason@redhat.com>
19290 Jakub Jelinek <jakub@redhat.com>
19291
19292 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19293 method.
19294 (mem_alloc_description::release_object_overhead): Fix comment typos.
19295 * hash-table.h (hash_table::~hash_table): Call
19296 release_instance_overhead only if m_entries is non-NULL, otherwise
19297 call unregister_descriptor.
19298
19299 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
19300
19301 PR tree-optimization/81740
19302 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19303 In case of outer loop vectorization, check for backward dependence
19304 at the inner loop if outer loop dependence is reversed.
19305
19306 2019-03-26 Alan Modra <amodra@gmail.com>
19307
19308 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19309 rs6000_vector_mem init. Correct wI and wJ comment.
19310
19311 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
19312
19313 PR rtl-optimization/88347
19314 PR rtl-optimization/88423
19315 * sched-deps.c (sched_analyze_insn): Take into account that for
19316 tablejumps the barrier appears after a label and a jump_table_data.
19317
19318 2019-03-25 Martin Sebor <msebor@redhat.com>
19319
19320 PR c/89812
19321 * c-common.c (check_user_alignment): Rename local. Correct maximum
19322 alignment in diagnostic. Avoid assuming argument fits in SHWI,
19323 convert it to UHWI when it fits.
19324
19325 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
19326
19327 PR debug/86964
19328 * dwarf2out.c (premark_used_variables): New function.
19329 (prune_unused_types_walk): Do not mark not premarked external
19330 variables.
19331 (prune_unused_types): Call premark_used_variables.
19332
19333 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
19334
19335 PR rtl-optimization/89676
19336 * lra-constraints.c (curr_insn_transform): Do match reload for
19337 early clobbers when the match was successful only for different
19338 registers.
19339
19340 2019-03-25 Martin Sebor <msebor@redhat.com>
19341
19342 * doc/extend.texi (Common Type Attributes): Document vector_size.
19343 (Common Variable Attributes): Mention size constraint. Correct
19344 quoting and typos.
19345 (Vector Extensions): Use @dfn when defining bas type. Clarify
19346 base type and size constraints.
19347
19348 2019-03-25 Richard Biener <rguenther@suse.de>
19349
19350 PR tree-optimization/89789
19351 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19352 changes from non-undefined back to undefined.
19353
19354 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
19355
19356 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19357 heap string and a gc string, but since this variable is unknown to
19358 ggc the gc string might get reused and corrupted. Fixed by always
19359 using a heap string.
19360
19361 2019-03-25 Richard Biener <rguenther@suse.de>
19362
19363 PR tree-optimization/89779
19364 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19365 to remove IV defs, delay actual removal.
19366 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
19367 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19368 very end, properly also reset loop control IV information.
19369
19370 2019-03-25 Richard Biener <rguenther@suse.de>
19371
19372 PR tree-optimization/89802
19373 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19374 move EH data to folded stmt.
19375
19376 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19377
19378 * config/s390/s390-builtin-types.def: Remove few unused types and
19379 fix sort order for others.
19380
19381 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19382
19383 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19384 expected and found types with -mdebug during builtin matching.
19385
19386 2019-03-25 Richard Biener <rguenther@suse.de>
19387
19388 PR middle-end/89790
19389 * fold-const.c (operand_equal_p): Revert last change with
19390 updated comment.
19391
19392 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
19393
19394 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19395 notes for the result of the __tls_get_addr calls.
19396 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
19397
19398 2019-03-24 Jeff Law <law@redhat.com>
19399
19400 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
19401
19402 PR rtl-optimization/87761
19403 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
19404 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
19405 as needed.
19406 (pass_cprop_hardreg::execute): Add df note problem and defer insn
19407 rescans. Reprocess blocks as needed, calling df_analyze before
19408 reprocessing. Always call df_analyze before fixing up debug bind
19409 insns.
19410
19411 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
19412
19413 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
19414 big endian.
19415
19416 2019-03-22 Andrew Pinski <apinski@marvell.com>
19417
19418 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
19419 attrribute for uxtw.
19420
19421 2019-03-26 Jeff Law <law@redhat.com>
19422
19423 PR rtl-optimization/87761
19424 * config/mips/mips-protos.h (mips_split_move): Add new argument.
19425 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
19426 (mips_split_move): Accept new INSN argument. Try to forward SRC
19427 into the next instruction.
19428 (mips_split_move_insn): Pass INSN through to mips_split_move.
19429
19430 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
19431
19432 PR rtl-optimization/89676
19433 * lra-constraints.c (curr_insn_transform): Do match reload for
19434 early clobbers even if the match was successful.
19435
19436 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19437
19438 PR c++/87481
19439 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
19440
19441 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
19442
19443 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
19444
19445 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19446
19447 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
19448 <avx512>_fmsub_<mode>_mask3<round_name>,
19449 <avx512>_fnmadd_<mode>_mask3<round_name>,
19450 <avx512>_fnmsub_<mode>_mask3<round_name>,
19451 avx512f_vmfmadd_<mode>_mask3<round_name>,
19452 avx512f_vmfmsub_<mode>_mask3<round_name>,
19453 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19454 instead of register_operand and %v instead of v for match_operand 1.
19455 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
19456 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
19457 <round_nimm_predicate> instead of register_operand and %v instead of v
19458 for match_operand 1.
19459
19460 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
19461 <avx512>_fmadd_<mode>_mask3<round_name>,
19462 <avx512>_fmsub_<mode>_mask<round_name>,
19463 <avx512>_fmsub_<mode>_mask3<round_name>,
19464 <avx512>_fnmadd_<mode>_mask<round_name>,
19465 <avx512>_fnmadd_<mode>_mask3<round_name>,
19466 <avx512>_fnmsub_<mode>_mask<round_name>,
19467 <avx512>_fnmsub_<mode>_mask3<round_name>,
19468 <avx512>_fmaddsub_<mode>_mask<round_name>,
19469 <avx512>_fmaddsub_<mode>_mask3<round_name>,
19470 <avx512>_fmsubadd_<mode>_mask<round_name>,
19471 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
19472 <round_nimm_predicate> instead of nonimmediate_operand.
19473 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
19474 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
19475 Use register_operand instead of <round_nimm_predicate> for the
19476 operand that needs to match output.
19477 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
19478 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
19479 Likewise. Formatting fixes.
19480
19481 PR target/89784
19482 * config/i386/i386.c (enum ix86_builtins): Remove
19483 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
19484 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
19485 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
19486 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
19487 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
19488 __builtin_ia32_vfmsubss3_mask3): New builtins.
19489 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
19490 avx512f_vmfmadd_<mode>_mask3<round_name>,
19491 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
19492 *avx512f_vmfmsub_<mode>_mask<round_name>,
19493 avx512f_vmfmsub_<mode>_mask3<round_name>,
19494 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
19495 *avx512f_vmfnmadd_<mode>_mask<round_name>,
19496 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
19497 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
19498 *avx512f_vmfnmsub_<mode>_mask<round_name>,
19499 avx512f_vmfnmsub_<mode>_mask3<round_name>,
19500 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
19501 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
19502 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
19503 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
19504 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
19505 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
19506 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
19507 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
19508 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
19509 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
19510 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
19511 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
19512 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
19513 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
19514 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
19515 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
19516 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
19517 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
19518 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
19519 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
19520 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
19521 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
19522
19523 2019-03-21 Martin Sebor <msebor@redhat.com>
19524
19525 PR tree-optimization/89350
19526 * builtins.c (compute_objsize): Also ignore offsets whose upper
19527 bound is negative.
19528 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
19529 (builtin_memref::builtin_memref): Initialize new member.
19530 Allow EXPR to be null.
19531 (builtin_memref::extend_offset_range): Replace local with a member.
19532 Avoid assuming pointer offsets are unsigned.
19533 (builtin_memref::set_base_and_offset): Determine base object
19534 before computing offset range.
19535 (builtin_access::builtin_access): Handle memset.
19536 (builtin_access::generic_overlap): Replace local with a member.
19537 (builtin_access::strcat_overlap): Same.
19538 (builtin_access::overlap): Same.
19539 (maybe_diag_overlap): Same.
19540 (maybe_diag_access_bounds): Same.
19541 (wrestrict_dom_walker::check_call): Handle memset.
19542 (check_bounds_or_overlap): Same.
19543
19544 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
19545 Jakub Jelinek <jakub@redhat.com>
19546
19547 PR lto/89692
19548 * tree.c (fld_type_variant, fld_incomplete_type_of,
19549 fld_process_array_type): Call fld->pset.add and don't call
19550 add_tree_to_fld_list if it returns true.
19551 (free_lang_data_in_type): Similarly with self-recursive call. Purge
19552 non-marked types from TYPE_NEXT_VARIANT list.
19553 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
19554
19555 2019-03-21 Jakub Jelinek <jakub@redhat.com>
19556
19557 * hash-table.h (hash_table): Add Lazy template parameter defaulted
19558 to false, if true, don't alloc_entries during construction, but defer
19559 it to the first method that needs m_entries allocated.
19560 (hash_table::hash_table, hash_table::~hash_table,
19561 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
19562 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
19563 hash_table::clear_slot, hash_table::traverse_noresize,
19564 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
19565 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
19566 false.
19567 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
19568 NO_INSERT instead of find_with_hash.
19569 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
19570 hash_set::m_table): Add Lazy to template params of hash_table.
19571 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
19572 * attribs.c (test_attribute_exclusions): Likewise.
19573 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
19574 hash_set. Add tests for hash_set with Lazy = true.
19575
19576 2019-03-21 Richard Biener <rguenther@suse.de>
19577
19578 PR tree-optimization/89779
19579 * tree.c (tree_nop_conversion): Consolidate and fix defensive
19580 checks with respect to released SSA names now having error_mark_node
19581 type.
19582 * fold-const.c (operand_equal_p): Likewise.
19583
19584 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
19585
19586 PR target/89775
19587 * config/s390/s390.c (global_not_special_regno_p): Move to make it
19588 available to ...
19589 (s390_optimize_register_info): Use global_not_special_regno_p to
19590 check for global regs.
19591
19592 2019-03-20 Jakub Jelinek <jakub@redhat.com>
19593
19594 PR target/89752
19595 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
19596 update this_alternative nor this_alternative_set.
19597
19598 2019-03-19 Jim Wilson <jimw@sifive.com>
19599
19600 PR target/89411
19601 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
19602 align, size, offset. Use them to handle a BLKmode reference. Update
19603 comment.
19604 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
19605
19606 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19607
19608 PR rtl-optimization/89768
19609 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
19610 instead of GEN_INT.
19611 (unroll_loop_runtime_iterations): Likewise.
19612
19613 2019-03-19 Martin Sebor <msebor@redhat.com>
19614
19615 PR tree-optimization/89644
19616 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
19617 rather than endptr as an indicator of nul-termination.
19618
19619 PR tree-optimization/89644
19620 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
19621 arrays in determining sequence sizes in strncpy and stpncpy.
19622
19623 2019-03-19 Martin Liska <mliska@suse.cz>
19624
19625 PR middle-end/89737
19626 * predict.c (combine_predictions_for_bb): Empty likely_edges and
19627 unlikely_edges if there's an edge that belongs to both these sets.
19628
19629 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
19630
19631 PR target/89746
19632 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
19633 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
19634 go via a stack temporary.
19635
19636 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19637
19638 PR target/89378
19639 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
19640 instead of gen_rtx_SUBREG.
19641 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
19642
19643 2019-03-19 Richard Biener <rguenther@suse.de>
19644
19645 PR debug/88389
19646 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
19647
19648 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
19649
19650 PR lto/87809
19651 PR lto/89335
19652 * tree.c (free_lang_data_in_decl): Do not free context of C++
19653 destrutors.
19654
19655 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19656
19657 PR target/89506
19658 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
19659 subs for the first alternative except when operands[3] is 1.
19660
19661 PR target/89752
19662 * gimplify.c (gimplify_asm_expr): For output argument with
19663 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
19664 diagnose error.
19665
19666 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
19667
19668 PR rtl-optimization/89753
19669 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
19670 explicit unrolling factor even more robust.
19671
19672 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19673
19674 PR target/89726
19675 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
19676 compensation use x2 += 1 instead of x2 -= -1 and when honoring
19677 signed zeros, do another copysign after the compensation.
19678
19679 2019-03-18 Martin Sebor <msebor@redhat.com>
19680
19681 PR tree-optimization/89720
19682 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
19683 more conservatively, the same as anti-range.
19684
19685 2019-03-18 Richard Biener <rguenther@suse.de>
19686
19687 PR middle-end/88945
19688 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
19689 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
19690 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
19691 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
19692
19693 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
19694
19695 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
19696 Extend queue to 1024 entries.
19697 Add "consumed" field.
19698 (gomp_print_output): Remove print_index parameter.
19699 Add final parameter.
19700 Change limit to unsigned.
19701 Use consumed field to implement circular buffer.
19702 Detect interrupted print in final pass.
19703 Flush output at the end.
19704 (run): Update gomp_print_output usage.
19705 (main): Initialize kernargs->output_data.consumed.
19706
19707 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
19708
19709 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
19710 calculation of the minimum number of scalar iterations for
19711 fully-predicated loops.
19712
19713 2019-03-18 Martin Jambor <mjambor@suse.cz>
19714
19715 PR tree-optimization/89546
19716 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
19717 any propagation to its children took place.
19718
19719 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
19720
19721 PR target/89627
19722 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
19723 parameter, and make use of it.
19724 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
19725
19726 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19727
19728 * config/arc/arc.opt (mcode-density-frame): Get the inital value
19729 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
19730 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19731 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19732 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
19733 match what the ops is doing.
19734 (push_multi_fp_blink): Likewise.
19735 * config/arc/arc.c (arc_override_options): Enable enter/leave when
19736 compiling for size and elf target.
19737 (arc_save_callee_enter): Adjust note to match what enter/leave
19738 operation does.
19739
19740 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19741
19742 * config/arc/arc.md (tst_movb): Fix constraint.
19743
19744 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19745
19746 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
19747
19748 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19749
19750 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
19751 * config/arc/arc.c (arc_conditional_register_usage): Remove all
19752 reg_alloc_order references.
19753 (size_alloc_order): Define.
19754 (arc_adjust_reg_alloc_order): New function.
19755 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
19756 order.
19757 (ADJUST_REG_ALLOC_ORDER): Define.
19758 (HONOR_REG_ALLOC_ORDER): Likewise.
19759
19760 2019-03-18 Richard Biener <rguenther@suse.de>
19761
19762 PR target/87561
19763 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
19764 loads and stores a bit more.
19765
19766 2019-03-18 Richard Biener <rguenther@suse.de>
19767
19768 PR target/87561
19769 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
19770 load pessimization to stores as well.
19771
19772 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
19773
19774 PR middle-end/86979
19775 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
19776 successor, use NULL as its av set.
19777
19778 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
19779
19780 PR rtl-optimization/89721
19781 * lra-constraints (invariant_p): Return false if side_effects_p holds.
19782
19783 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
19784
19785 PR target/87532
19786 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19787 When handling vec_extract, use modular arithmetic to allow
19788 constant selectors greater than vector length.
19789 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
19790 V1TImode vectors to have constant selector values greater than 0.
19791 Use modular arithmetic to compute vector index.
19792 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
19793 index for in-memory vectors. Correct code generation for
19794 in-register vectors.
19795 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
19796 compute index.
19797
19798 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
19799
19800 PR c++/88534
19801 PR c++/88537
19802 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
19803 VAR_DECL args.
19804
19805 2019-03-15 Jakub Jelinek <jakub@redhat.com>
19806
19807 PR c++/89709
19808 * tree.c (inchash::add_expr): Strip any location wrappers.
19809 * fold-const.c (operand_equal_p): Move stripping of location wrapper
19810 after hash verification.
19811
19812 PR debug/89704
19813 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
19814 SIGN_EXTEND and ZERO_EXTEND.
19815
19816 2019-03-14 Jason Merrill <jason@redhat.com>
19817 Jakub Jelinek <jakub@redhat.com>
19818
19819 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
19820 than if is_empty (*slot).
19821 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
19822 existing elt and for elt removal.
19823 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
19824 of already removed elt.
19825
19826 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
19827
19828 PR target/89650
19829 * config/i386/i386.c (remove_partial_avx_dependency): Handle
19830 REG_EH_REGION note.
19831
19832 2019-03-14 Martin Liska <mliska@suse.cz>
19833
19834 PR other/89712
19835 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
19836
19837 2019-03-14 Richard Biener <rguenther@suse.de>
19838
19839 PR target/89711
19840 * config/i386/i386.c (make_resolver_func): Properly set
19841 DECL_CONTEXT on the RESULT_DECL.
19842 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
19843
19844 2019-03-14 Richard Biener <rguenther@suse.de>
19845
19846 * gimple-pretty-print.c: Include cfgloop.h.
19847 (dump_gimple_phi): Adjust.
19848 (dump_gimple_bb_header): Dump loop header for GIMPLE.
19849 (pp_cfg_jump): Adjust.
19850 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
19851 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
19852 (lower_phi_internal_fn): Remove.
19853 (verify_gimple_call): Remove IFN_PHI special-casing.
19854 (dump_function_to_file): Dump IL state.
19855 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
19856 done to deal with PHI nodes being present in non-SSA state.
19857
19858 2019-03-14 Jakub Jelinek <jakub@redhat.com>
19859
19860 PR ipa/89684
19861 * multiple_target.c (create_dispatcher_calls): Change
19862 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
19863 In the node->iterate_referring loop, push *ref rather than ref, call
19864 ref->remove_reference () and always pass 0 to iterate_referring.
19865
19866 PR rtl-optimization/89679
19867 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
19868 would contain a paradoxical SUBREG.
19869
19870 2019-03-14 Richard Biener <rguenther@suse.de>
19871
19872 PR tree-optimization/89710
19873 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
19874 safe_dyn_cast.
19875
19876 2019-03-14 Martin Liska <mliska@suse.cz>
19877
19878 * coverage.c (coverage_begin_function): Stream also
19879 end_column.
19880 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
19881 documentation about function declaration location.
19882 * gcov-dump.c (tag_function): Print whole range
19883 of function declaration.
19884 * gcov.c (struct function_info): Add end_column field.
19885 (function_info::function_info): Initialize it.
19886 (output_json_intermediate_file): Output {start,end}_column
19887 fields.
19888 (read_graph_file): Read end_column.
19889
19890 2019-03-14 Richard Biener <rguenther@suse.de>
19891
19892 PR middle-end/89698
19893 * fold-const.c (operand_equal_p): For INDIRECT_REF check
19894 that the access types are similar.
19895
19896 2019-03-14 Jakub Jelinek <jakub@redhat.com>
19897
19898 PR tree-optimization/89703
19899 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
19900 aren't compatible also with builtin_decl_explicit. Check pure
19901 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
19902 and BUILT_IN_STPNCPY{,_CHK}.
19903
19904 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
19905
19906 PR target/89523
19907 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
19908 addr32 prefix to VSIB address for X32.
19909 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
19910 "%M2" to opcode.
19911 (*avx512pf_gatherpf<mode>df_mask): Likewise.
19912 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
19913 (*avx512pf_scatterpf<mode>df_mask): Likewise.
19914 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
19915 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
19916 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
19917 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
19918 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
19919 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
19920 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
19921 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
19922 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
19923 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
19924 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
19925 (*avx512f_scatterdi<mode>): Likewise.
19926
19927 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
19928
19929 PR target/85860
19930 * lra-constraints.c (inherit_in_ebb): Update
19931 potential_reload_hard_regs along with live_hard_regs.
19932
19933 2019-03-13 Jakub Jelinek <jakub@redhat.com>
19934
19935 PR debug/89498
19936 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
19937 DWARF_OFFSET_SIZE.
19938 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
19939
19940 2019-03-13 Martin Sebor <msebor@redhat.com>
19941
19942 PR tree-optimization/89662
19943 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
19944 has a size.
19945
19946 2019-03-13 Richard Biener <rguenther@suse.de>
19947
19948 PR middle-end/89677
19949 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
19950 throw FP expressions at tree-affine.
19951
19952 2019-03-14 Richard Biener <rguenther@suse.de>
19953
19954 * tree-pretty-print.c (dump_generic_node): For -gimple properly
19955 dump negative integer constants using _Literal (type) -num.
19956
19957 2019-03-13 Jakub Jelinek <jakub@redhat.com>
19958
19959 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
19960 nonlocal_value member.
19961
19962 PR middle-end/88588
19963 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
19964 (ipa_simd_modify_function_body): Handle PHIs.
19965
19966 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19967
19968 * config/s390/s390.c (s390_option_override_internal): Use more
19969 aggressive inlining parameters.
19970
19971 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19972
19973 * config/s390/3906.md: New file.
19974 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
19975 (LONGRUNNING_THRESHOLD): Remove.
19976 (MAX_SCHED_MIX_SCORE): Decrease.
19977 (MAX_SCHED_MIX_DISTANCE): Decrease.
19978 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
19979 (struct s390_sched_state): New struct to hold scheduling state.
19980 (S390_SCHED_STATE_NORMAL): Remove.
19981 (S390_SCHED_STATE_CRACKED): Remove.
19982 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
19983 (s390_get_sched_attrmask): Use new attribute.
19984 (s390_get_unit_mask): Use new units.
19985 (s390_is_fpd): New function.
19986 (s390_is_fxd): New function.
19987 (s390_is_longrunning): New function.
19988 (s390_sched_score): Use new functions.
19989 (s390_sched_reorder): Likewise.
19990 (s390_sched_variable_issue): Rework and use new functions.
19991 (s390_sched_init): Use new functions.
19992 * config/s390/s390.h (s390_tune_attr): Add z14.
19993 * config/s390/s390.md: Add z14.
19994
19995 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19996
19997 * config/s390/2964.md: Update pipeline description.
19998 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
19999 (LONGRUNNING_THRESHOLD): Remove.
20000 (LATENCY_FACTOR): Remove.
20001 (s390_get_unit_mask): Add unit.
20002 (s390_sched_score): Use fxd/fpd.
20003 (s390_sched_variable_issue): Use fxd/fpd.
20004
20005 2019-03-12 Martin Liska <mliska@suse.cz>
20006
20007 * config/i386/i386.c: Reword an error message.
20008
20009 2019-03-12 Martin Jambor <mjambor@suse.cz>
20010
20011 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
20012 terminate with newline.
20013
20014 2019-03-12 Jakub Jelinek <jakub@redhat.com>
20015
20016 PR target/52726
20017 * config/s390/s390.md (tabort): Use %wd instead of
20018 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
20019 letters and periods.
20020 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
20021 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
20022 's with %< and %>.
20023
20024 PR middle-end/89663
20025 * builtins.c (expand_builtin_int_roundingfn,
20026 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
20027 gcc_unreachable if validate_arglist fails.
20028
20029 2019-03-12 Richard Biener <rguenther@suse.de>
20030
20031 PR tree-optimization/89664
20032 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
20033 free the occurance tree after the early out.
20034
20035 2019-03-11 Jakub Jelinek <jakub@redhat.com>
20036
20037 PR middle-end/89655
20038 PR bootstrap/89656
20039 * vr-values.c (vr_values::update_value_range): If
20040 old_vr->varying_p (), don't update it, make new_vr also VARYING
20041 and return false.
20042
20043 2019-03-11 Martin Liska <mliska@suse.cz>
20044
20045 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20046 Fix double string quoting.
20047
20048 2019-03-11 Martin Liska <mliska@suse.cz>
20049
20050 * collect-utils.c (collect_wait): Wrap apostrophes
20051 in gcc internal format with %'.
20052 * collect2.c (main): Likewise.
20053 (scan_prog_file): Likewise.
20054 (scan_libraries): Likewise.
20055 * config/i386/i386.c (ix86_expand_call): Likewise.
20056 (ix86_handle_interrupt_attribute): Likewise.
20057 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
20058 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20059 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
20060 * lto-wrapper.c (find_crtoffloadtable): Likewise.
20061 * symtab.c (symtab_node::verify_base): Likewise.
20062 * tree-cfg.c (verify_gimple_label): Likewise.
20063 * tree.c (verify_type_variant): Likewise.
20064
20065 2019-03-11 Martin Liska <mliska@suse.cz>
20066
20067 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
20068 in a string format message and fix GNU coding style.
20069 (expand_builtin_set_thread_pointer): Likewise.
20070 * common/config/aarch64/aarch64-common.c
20071 (aarch64_rewrite_selected_cpu): Likewise.
20072 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
20073 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
20074 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
20075 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20076 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
20077 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
20078 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
20079 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
20080 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
20081 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
20082 Likewise.
20083 * common/config/riscv/riscv-common.c
20084 (riscv_subset_list::parsing_subset_version): Likewise.
20085 (riscv_subset_list::parse_std_ext): Likewise.
20086 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20087 (riscv_subset_list::parse): Likewise.
20088 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
20089 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
20090 (aarch64_override_options_internal): Likewise.
20091 (aarch64_validate_mcpu): Likewise.
20092 (aarch64_validate_march): Likewise.
20093 (aarch64_validate_mtune): Likewise.
20094 (aarch64_override_options): Likewise.
20095 * config/alpha/alpha.c (alpha_option_override): Likewise.
20096 * config/arc/arc.c (arc_init): Likewise.
20097 (parse_mrgf_banked_regs_option): Likewise.
20098 (arc_override_options): Likewise.
20099 (arc_expand_builtin_aligned): Likewise.
20100 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
20101 (arm_expand_builtin): Likewise.
20102 * config/arm/arm.c (arm_option_check_internal): Likewise.
20103 (arm_configure_build_target): Likewise.
20104 (arm_option_override): Likewise.
20105 (arm_options_perform_arch_sanity_checks): Likewise.
20106 (arm_handle_cmse_nonsecure_entry): Likewise.
20107 (arm_handle_cmse_nonsecure_call): Likewise.
20108 (arm_tls_referenced_p): Likewise.
20109 (thumb1_expand_prologue): Likewise.
20110 * config/avr/avr.c (avr_option_override): Likewise.
20111 * config/bfin/bfin.c (bfin_option_override): Likewise.
20112 * config/c6x/c6x.c (c6x_option_override): Likewise.
20113 * config/cr16/cr16.c (cr16_override_options): Likewise.
20114 * config/cris/cris.c (cris_option_override): Likewise.
20115 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
20116 * config/darwin-c.c (macosx_version_as_macro): Likewise.
20117 * config/darwin.c (darwin_override_options): Likewise.
20118 * config/frv/frv.c (frv_expand_builtin): Likewise.
20119 * config/h8300/h8300.c (h8300_option_override): Likewise.
20120 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
20121 (ix86_option_override_internal): Likewise.
20122 (warn_once_call_ms2sysv_xlogues): Likewise.
20123 (ix86_expand_prologue): Likewise.
20124 (split_stack_prologue_scratch_regno): Likewise.
20125 (ix86_warn_parameter_passing_abi): Likewise.
20126 * config/ia64/ia64.c (fix_range): Likewise.
20127 * config/m68k/m68k.c (m68k_option_override): Likewise.
20128 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
20129 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
20130 (mips_set_compression_mode): Likewise.
20131 * config/mmix/mmix.c (mmix_option_override): Likewise.
20132 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
20133 * config/msp430/msp430.c (msp430_option_override): Likewise.
20134 * config/nds32/nds32.c (nds32_option_override): Likewise.
20135 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
20136 (nios2_option_override): Likewise.
20137 (nios2_expand_custom_builtin): Likewise.
20138 * config/nvptx/mkoffload.c (main): Likewise.
20139 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
20140 * config/pa/pa.c (fix_range): Likewise.
20141 (pa_option_override): Likewise.
20142 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
20143 (riscv_option_override): Likewise.
20144 * config/rl78/rl78.c (rl78_option_override): Likewise.
20145 * config/rs6000/aix61.h: Likewise.
20146 * config/rs6000/aix71.h: Likewise.
20147 * config/rs6000/aix72.h: Likewise.
20148 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
20149 * config/rs6000/freebsd64.h: Likewise.
20150 * config/rs6000/linux64.h: Likewise.
20151 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
20152 (rs6000_expand_zeroop_builtin): Likewise.
20153 (rs6000_expand_mtfsb_builtin): Likewise.
20154 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
20155 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
20156 (rs6000_invalid_builtin): Likewise.
20157 (rs6000_expand_split_stack_prologue): Likewise.
20158 * config/rs6000/rtems.h: Likewise.
20159 * config/rx/rx.c (valid_psw_flag): Likewise.
20160 (rx_expand_builtin): Likewise.
20161 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
20162 * config/s390/s390.c (s390_expand_builtin): Likewise.
20163 (s390_function_profiler): Likewise.
20164 (s390_option_override_internal): Likewise.
20165 (s390_option_override): Likewise.
20166 * config/sh/sh.c (sh_option_override): Likewise.
20167 (sh_builtin_saveregs): Likewise.
20168 (sh_fix_range): Likewise.
20169 * config/sh/vxworks.h: Likewise.
20170 * config/sparc/sparc.c (sparc_option_override): Likewise.
20171 * config/spu/spu.c (spu_option_override): Likewise.
20172 (fix_range): Likewise.
20173 * config/visium/visium.c (visium_option_override): Likewise.
20174 (visium_handle_interrupt_attr): Likewise.
20175 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
20176 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
20177 (dbg_cnt_process_opt): Likewise.
20178 * dwarf2out.c (output_dwarf_version): Likewise.
20179 * except.c (expand_eh_return): Likewise.
20180 * gcc.c (defined): Likewise.
20181 (driver_handle_option): Likewise.
20182 (process_command): Likewise.
20183 (compare_files): Likewise.
20184 (driver::prepare_infiles): Likewise.
20185 (driver::do_spec_on_infiles): Likewise.
20186 (driver::maybe_run_linker): Likewise.
20187 * omp-offload.c (oacc_parse_default_dims): Likewise.
20188 * opts-global.c (handle_common_deferred_options): Likewise.
20189 * opts.c (parse_sanitizer_options): Likewise.
20190 (common_handle_option): Likewise.
20191 (enable_warning_as_error): Likewise.
20192 * passes.c (enable_disable_pass): Likewise.
20193 * plugin.c (parse_plugin_arg_opt): Likewise.
20194 (default_plugin_dir_name): Likewise.
20195 * targhooks.c (default_expand_builtin_saveregs): Likewise.
20196 (default_pch_valid_p): Likewise.
20197 * toplev.c (init_asm_output): Likewise.
20198 (process_options): Likewise.
20199 (toplev::run_self_tests): Likewise.
20200 * tree-cfg.c (verify_gimple_call): Likewise.
20201 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20202 (tree_inlinable_function_p): Likewise.
20203 * var-tracking.c (vt_find_locations): Likewise.
20204
20205 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
20206
20207 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20208 only on the else branch.
20209
20210 2019-03-11 Martin Liska <mliska@suse.cz>
20211
20212 * gcov.c (output_intermediate_json_line): Print function
20213 name of each line.
20214 (output_json_intermediate_file): Add new argument.
20215 * doc/gcov.texi: Document the change.
20216
20217 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
20218
20219 PR rtl-optimization/89588
20220 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20221 explicit unrolling factor more robust.
20222
20223 2019-03-11 Richard Biener <rguenther@suse.de>
20224
20225 PR tree-optimization/89649
20226 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20227 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20228 on the prolog and epilog loops.
20229 (vect_loop_versioning): Return copy of loop.
20230 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20231 on the non-vectorized version of the loop.
20232
20233 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
20234
20235 PR target/68924
20236 * config/i386/sse.md (*vec_extractv2di_0_sse):
20237 Add (=r,x) alternative and corresponding splitter.
20238
20239 2019-03-10 Martin Jambor <mjambor@suse.cz>
20240
20241 PR tree-optimization/85762
20242 PR tree-optimization/87008
20243 PR tree-optimization/85459
20244 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20245 it points to if there is a type changing MEM_REF. Adjust all callers.
20246 (build_accesses_from_assign): Disable total scalarization if
20247 contains_vce_or_bfcref_p returns true through the new parameter, for
20248 both rhs and lhs.
20249
20250 2019-03-09 Jakub Jelinek <jakub@redhat.com>
20251
20252 PR c/88568
20253 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20254 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20255
20256 PR target/79645
20257 * common.opt (fdiagnostics-show-labels,
20258 fdiagnostics-show-line-numbers, fdiagnostics-format=,
20259 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20260 gas-locview-support, ginline-points, ginternal-reset-location-views):
20261 Terminate description text with a dot.
20262 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20263 * config/mcore/mcore.opt (m210, m340): Likewise.
20264 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20265 mnops=): Start description text with a capital letter.
20266 * config/arc/arc.opt (msize-level=): Likewise.
20267 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20268 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20269 mnewlib): Likewise.
20270 * config/ft32/ft32.opt (msim): Likewise.
20271 (mft32b, mcompress): Likewise. Terminate description text with a dot.
20272 (mnodiv, mnopm): Terminate description text with a dot.
20273 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20274 a colon.
20275 * config/i386/i386.opt (prefer_vector_width, instrument_return):
20276 Likewise.
20277 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20278 text.
20279
20280 PR rtl-optimization/89634
20281 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20282 are modified in BB_END (e->src) instruction.
20283
20284 2019-03-08 David Malcolm <dmalcolm@redhat.com>
20285
20286 PR target/79926
20287 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20288 messages more amenable to translation, and improve wording.
20289
20290 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
20291
20292 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20293 ud- and du-chains between phases.
20294
20295 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
20296
20297 PR debug/89631
20298 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20299 instead of POLY_INT_CST.
20300
20301 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
20302
20303 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20304 requirement.
20305
20306 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
20307
20308 PR target/68924
20309 PR target/78782
20310 PR target/87558
20311 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20312 (_mm_storeu_si64): Ditto.
20313
20314 2019-03-08 Martin Liska <mliska@suse.cz>
20315
20316 PR target/86952
20317 * config/i386/i386.c (ix86_option_override_internal): Disable
20318 jump tables when retpolines are used.
20319
20320 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
20321
20322 PR go/63560
20323 * ipa-split.c (execute_split_functions): Do not split
20324 'noinline' or 'section' function.
20325
20326 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20327
20328 PR target/79846
20329 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20330 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20331 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
20332
20333 PR ipa/80000
20334 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20335 from diagnostics. Formatting fixes.
20336
20337 PR target/85665
20338 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20339 warn_odr diagnostics.
20340
20341 PR other/80058
20342 * lra-constraints.c (process_alt_operands): Avoid one space before
20343 " at the end of line and another after " on another line in a string
20344 literal.
20345 * attribs.c (handle_dll_attribute): Likewise.
20346 * config/avr/avr-devices.c (avr_texinfo): Likewise.
20347
20348 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20349 warning_at or inform messages in G_() if there is no ?:.
20350
20351 PR tree-optimization/89550
20352 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20353 returned true. Formatting fixes.
20354 (expand_builtin_strnlen): Formatting fixes.
20355 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20356 if warning_at returned true.
20357 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20358
20359 2019-03-08 Richard Biener <rguenther@suse.de>
20360
20361 PR middle-end/89578
20362 * cfgloop.h (struct loop): Add owned_clique field.
20363 * cfgloopmanip.c (copy_loop_info): Copy it.
20364 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20365 cliques.
20366 * tree-inline.c (copy_loops): Remap owned_clique.
20367 * lto-streamer-in.c (input_cfg): Stream owned_clique.
20368 * lto-streamer-out.c (output_cfg): Likewise.
20369
20370 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20371
20372 PR target/80190
20373 * config/darwin.c: Include intl.h.
20374 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20375 composing the message out of two separate parts.
20376
20377 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20378
20379 PR target/80003
20380 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20381 doesn't start with a capital letter and doesn't end with a dot.
20382 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20383 with a capital letter.
20384 (ix86_mangle_function_version_assembler_name): Likewise.
20385 (ix86_generate_version_dispatcher_body): Likewise.
20386 (fold_builtin_cpu): Likewise.
20387 (get_builtin_code_for_version): Likewise. Remove extraneous space.
20388 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20389 translators, wrap full type name in %qs.
20390
20391 PR translation/79999
20392 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20393 depend clause with source (or sink) modifier.
20394 * omp-expand.c (expand_omp_ordered_sink): Likewise.
20395
20396 PR target/89602
20397 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
20398 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
20399 (avx512f_load<mode>_mask): New define_expand.
20400 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
20401 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
20402 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
20403 __builtin_ia32_movess_mask): New builtins.
20404 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
20405 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
20406 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
20407 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
20408
20409 2019-03-07 Martin Jambor <mjambor@suse.cz>
20410
20411 PR lto/87525
20412 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
20413 for extern inline functions.
20414
20415 2019-03-07 Martin Jambor <mjambor@suse.cz>
20416
20417 PR ipa/88235
20418 * cgraph.h (cgraph_node): New inline method former_thunk_p.
20419 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
20420 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
20421 have multiple callees. At the end check if declarations match as
20422 opposed to cgraph_nodes.
20423
20424 2019-03-07 Martin Liska <mliska@suse.cz>
20425
20426 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
20427 which is equivalent to searching for this in clones chain.
20428 * symtab.c (symtab_node::verify_base): Similarly compare ASM
20429 names with a neighbour and special case first node in a chain.
20430
20431 2019-01-25 Jason Merrill <jason@redhat.com>
20432
20433 PR c++/80916 - spurious "static but not defined" warning.
20434 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
20435 for an internal symbol with DECL_EXTERNAL.
20436
20437 2019-04-07 Richard Biener <rguenther@suse.de>
20438
20439 PR middle-end/89618
20440 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
20441 * tree-inline.c (copy_loops): Simplify.
20442
20443 2019-03-07 Martin Liska <mliska@suse.cz>
20444
20445 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
20446
20447 2019-03-07 Richard Biener <rguenther@suse.de>
20448
20449 PR tree-optimization/89595
20450 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
20451 stmt iterator as reference, take boolean output parameter to
20452 indicate whether the stmt was removed and thus the iterator
20453 already advanced.
20454 (dom_opt_dom_walker::before_dom_children): Re-iterate over
20455 stmts created by folding.
20456
20457 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20458
20459 PR c++/89585
20460 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
20461 at toplevel.
20462
20463 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
20464
20465 PR rtl-optimization/88845
20466 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
20467 LRA.
20468 * lra.c (remove_scratches_1): New function.
20469 (remove_scratches): Use it.
20470 (lra_emit_move): Likewise.
20471
20472 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
20473
20474 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
20475 unaligned_access variable.
20476 * config/arc/arc.c (arc_override_options): Set unaligned access
20477 default on for HS CPUs.
20478 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
20479
20480 2019-03-06 Martin Liska <mliska@suse.cz>
20481
20482 PR gcov-profile/89577
20483 * doc/gcov.texi: Prefer to use --coverage.
20484 * doc/sourcebuild.texi: Likewise.
20485
20486 2019-03-02 Jason Merrill <jason@redhat.com>
20487
20488 PR c++/86485 - -Wmaybe-unused with empty class ?:
20489 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
20490
20491 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20492
20493 PR target/89587
20494 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
20495 if_multiarch.
20496
20497 PR middle-end/89590
20498 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
20499 exactly one argument.
20500
20501 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20502 Richard Sandiford <richard.sandiford@arm.com>
20503
20504 PR tree-optimization/89570
20505 * match.pd (vec_cond into cond_op simplification): Don't use
20506 get_conditional_internal_fn, use as_internal_fn (cond_op).
20507
20508 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
20509
20510 PR target/89222
20511 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
20512 to decide when to split off a non-zero offset from a symbol.
20513 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
20514 in function symbols.
20515
20516 2019-03-05 Richard Biener <rguenther@suse.de>
20517
20518 PR tree-optimization/89594
20519 * tree-if-conv.c (pass_if_conversion::execute): Handle
20520 case where .LOOP_VECTORIZED_FUNCTION was removed.
20521
20522 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20523
20524 PR bootstrap/89560
20525 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
20526 instead alloca it only when needed with the needed size.
20527
20528 PR tree-optimization/89570
20529 * match.pd (vec_cond into cond_op simplification): Guard with
20530 vectorized_internal_fn_supported_p test and #if GIMPLE.
20531
20532 PR tree-optimization/89566
20533 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
20534 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
20535 Punt if get_user_idx_format succeeds, but idx_format argument is
20536 not provided or doesn't have pointer type, or if idx_args is above
20537 number of provided arguments.
20538
20539 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
20540
20541 PR tree-optimization/89437
20542 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
20543
20544 2019-03-04 Richard Biener <rguenther@suse.de>
20545
20546 PR middle-end/89572
20547 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
20548 safe_dyn_cast.
20549
20550 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
20551
20552 PR tree-optimization/89487
20553 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
20554 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
20555 (distribute_loop): Don't do runtime alias check if there is non-
20556 addressable data reference.
20557 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
20558 is a register variable.
20559
20560 2019-03-02 Jakub Jelinek <jakub@redhat.com>
20561
20562 PR target/89506
20563 * config/arm/arm.md (cmpsi2_addneg): Use
20564 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
20565 If operands[2] is 0 or INT_MIN, force use of subs.
20566 (*compare_scc splitter): Use gen_int_mode.
20567 (*negscc): Likewise.
20568 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
20569
20570 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
20571 Monk Chiang <sh.chiang04@gmail.com>
20572
20573 * common/config/riscv/riscv-common.c: Include sstream.
20574 (riscv_subset_list::to_string): New.
20575 (riscv_arch_str): Likewise.
20576 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
20577 * config.in: Regen.
20578 * config/riscv/riscv-protos.h (riscv_arch_str): New.
20579 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
20580 (riscv_emit_attribute): New.
20581 (riscv_file_start): Emit attribute if needed.
20582 (riscv_option_override): Init riscv_emit_attribute_p.
20583 * config/riscv/riscv.opt (mriscv-attribute): New option.
20584 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
20585 * configure: Regen.
20586 * doc/install.texi: Document --with-riscv-attribute.
20587 * doc/invoke.texi: Document -mriscv-attribute.
20588
20589 * common/config/riscv/riscv-common.c:
20590 Include config/riscv/riscv-protos.h.
20591 (INCLUDE_STRING): Defined.
20592 (RISCV_DONT_CARE_VERSION): Defined.
20593 (riscv_subset_t): Declare.
20594 (riscv_subset_t::riscv_subset_t): New.
20595 (riscv_subset_list): Declare.
20596 (riscv_subset_list::riscv_subset_list): New.
20597 (riscv_subset_list::~riscv_subset_list): Likewise.
20598 (riscv_subset_list::parsing_subset_version): Likewise.
20599 (riscv_subset_list::parse_std_ext): Likewise.
20600 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20601 (riscv_subset_list::add): Likewise.
20602 (riscv_subset_list::lookup): Likewise.
20603 (riscv_subset_list::xlen): Likewise.
20604 (riscv_subset_list::parse): Likewise.
20605 (riscv_supported_std_ext): Likewise.
20606 (current_subset_list): Likewise.
20607 (riscv_parse_arch_string): Using riscv_subset_list::parse to
20608 parse.
20609
20610 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
20611
20612 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20613 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
20614 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
20615
20616 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
20617
20618 PR rtl-optimization/85899
20619 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
20620 fallthru edges leading to the exit block.
20621
20622 2019-03-01 Tamar Christina <tamar.christina@arm.com>
20623
20624 PR target/89517
20625 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
20626 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
20627
20628 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
20629
20630 PR tree-optimization/89535
20631 * tree-vect-stmts.c (vectorizable_call): Record the vector types
20632 for each operand. Calculate the fallback choice for mask operands
20633 and pass it to vect_get_vec_def_for_operand.
20634
20635 2019-03-01 Richard Biener <rguenther@suse.de>
20636
20637 PR middle-end/89541
20638 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
20639 get virtual operands.
20640 (get_expr_operands): Handle CONST_DECL like other decls.
20641
20642 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20643
20644 PR middle-end/89503
20645 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
20646 on DECL_P and EXPR_P.
20647
20648 2019-03-01 Richard Biener <rguenther@suse.de>
20649
20650 PR middle-end/89497
20651 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
20652 argument, defaulted to zero.
20653 * passes.c (execute_function_todo): Pass down SSA update flags
20654 to cleanup_tree_cfg.
20655 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
20656 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
20657 form if requested.
20658 (cleanup_tree_cfg): Get and pass down SSA update flags.
20659
20660 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20661
20662 PR bootstrap/89539
20663 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
20664 early_lto_debug argument.
20665
20666 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
20667
20668 PR tree-optimization/89536
20669 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
20670 only whether bit #0 of the value is 0 instead of the entire value.
20671
20672 2019-02-28 Marek Polacek <polacek@redhat.com>
20673
20674 PR c++/87068 - missing diagnostic with fallthrough statement.
20675 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
20676 at the end of a seq, save its location to walk_stmt_info.
20677 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
20678 a switch.
20679
20680 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
20681
20682 PR lto/88585
20683 * tree.c (find_atomic_core_type): Move ahead in file.
20684 (check_base_type): Correctly compare alignments of atomic types.
20685
20686 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
20687
20688 PR target/89455
20689 * config/i386/i386.c (get_builtin_code_for_version): Identify
20690 Westmere from PCLMUL, instead of AES.
20691
20692 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20693
20694 PR target/89434
20695 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
20696 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
20697 -UINTVAL (...).
20698
20699 2019-02-28 Tamar Christina <tamar.christina@arm.com>
20700
20701 PR target/88530
20702 * config/aarch64/aarch64-option-extensions.def: Document it.
20703 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
20704 if empty hwcaps.
20705
20706 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20707
20708 PR c/89520
20709 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
20710 builtins if they don't have a single scalar floating point argument.
20711 Formatting fixes.
20712
20713 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
20714
20715 PR rtl-optimization/89490
20716 * varasm.c (get_block_for_section): Bail out for mergeable sections.
20717 (default_use_anchors_for_symbol_p, output_object_block): Assert the
20718 block section is not mergeable.
20719
20720 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20721
20722 PR target/70341
20723 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
20724 old define_insn to ...
20725 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
20726 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
20727 Rename old define_insn to ...
20728 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
20729 (thumb2_casesi_internal_pic): New define_expand. Rename old
20730 define_insn to ...
20731 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
20732 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
20733 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
20734
20735 2019-02-27 Richard Biener <rguenther@suse.de>
20736
20737 PR debug/88878
20738 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
20739
20740 2019-02-27 Richard Biener <rguenther@suse.de>
20741
20742 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
20743 building.
20744
20745 2019-02-27 Richard Biener <rguenther@suse.de>
20746
20747 PR debug/88878
20748 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
20749 parameter, prefix section name with .gnu.debuglto_ if true.
20750 (dwarf2out_finish): Pass false to output_comdat_type_unit.
20751 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
20752
20753 2019-02-27 Richard Biener <rguenther@suse.de>
20754
20755 PR debug/89514
20756 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
20757 rather than on use_debug_types, doing what output_die does.
20758 (value_format): Likewise.
20759
20760 2019-02-27 Martin Jambor <mjambor@suse.cz>
20761 Martin Sebor <msebor@redhat.com>
20762
20763 * doc/invoke.texi (Warning Options): Reword description of
20764 -Wno-absolute-value.
20765
20766 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20767
20768 PR tree-optimization/89280
20769 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
20770 builtin_setjmp_setup_bb): New functions.
20771 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
20772 When visiting __builtin_setjmp_setup block, queue in special
20773 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
20774 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
20775 from visited after the loop if they don't have any visited successor
20776 blocks.
20777
20778 2018-02-26 Steve Ellcey <sellcey@marvell.com>
20779
20780 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
20781 New function.
20782 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
20783
20784 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20785
20786 PR c++/89507
20787 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
20788 with types other than sizetype/ssizetype.
20789
20790 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
20791
20792 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
20793 (enum sparc_processor_type): ...this.
20794 (enum sparc_code_model_type): New enumeration type.
20795 (enum sparc_memory_model_type): Tweak comments.
20796 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
20797 (mtune): Likewise.
20798 (mcmodel): Use sparc_code_model enumeration and variable.
20799 (sparc_code_model): New enumeration.
20800 (mdebug): Add Undocumented marker.
20801 * config/sparc/sparc.h (enum cmodel): Delete.
20802 (sparc_cmodel): Likewise.
20803 (TARGET_CM_MEDLOW): Adjust to above renaming.
20804 (TARGET_CM_MEDMID): Likewise.
20805 (TARGET_CM_MEDANY): Likewise.
20806 (TARGET_CM_EMBMEDANY): Likewise.
20807 * config/sparc/sparc.c (sparc_cmodel): Delete.
20808 (sparc_option_override): Remove string/value mapping support for the
20809 code model. Move code and memory model support to after the handling
20810 of target flags. Do private machine setup last.
20811 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
20812 (sparc_legitimize_reload_address): Likewise.
20813 (sparc_output_mi_thunk): Likewise.
20814 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
20815
20816 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20817
20818 PR tree-optimization/89500
20819 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
20820 (handle_builtin_strlen): Remove noncst_bound variable. Always
20821 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
20822 cst if the first cst bytes starting at x are known to be non-zero,
20823 even if the string is not zero terminated. Don't try to modify
20824 *si for strnlen. Update strlen_to_stridx only for strlen or if
20825 we can prove strnlen returns the same value as strlen would.
20826
20827 2019-02-26 Martin Liska <mliska@suse.cz>
20828
20829 * alloc-pool.h (struct pool_usage): Remove extra
20830 print_dash_line.
20831 * bitmap.h (struct bitmap_usage): Likewise.
20832 * ggc-common.c (struct ggc_usage): Likewise.
20833 * mem-stats.h (struct mem_usage): Likewise.
20834 (mem_alloc_description::dump): Print dash lines
20835 here and repeat header at the end of a table report.
20836 It's then more readable.
20837 * tree-phinodes.c (phinodes_print_statistics): Make
20838 horizontal alignment.
20839 * tree-ssanames.c (ssanames_print_statistics): Likewise.
20840 * vec.c (struct vec_usage): Remove extra print_dash_line.
20841 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
20842
20843 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
20844
20845 * doc/extend.texi (__builtin_object_size):
20846 Use @pxref instead of @xref inside parenthesis.
20847 (__builtin_has_attribute): Add missing comma after @xref.
20848 (__builtin_object_size): Ditto.
20849 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
20850
20851 2019-02-26 Jeff Law <law@redhat.com>
20852
20853 PR rtl-optimization/87761
20854 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
20855 detect obviously dead insns and delete them.
20856
20857 2019-02-26 Richard Biener <rguenther@suse.de>
20858
20859 PR tree-optimization/89505
20860 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
20861 to handle restrict pointed-to vars with multiple subvars
20862 correctly.
20863
20864 2019-02-26 Richard Biener <rguenther@suse.de>
20865
20866 PR tree-optimization/89489
20867 * tree-parloops.c (create_loop_fn): Copy over last_clique.
20868
20869 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
20870
20871 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
20872 and move around comment.
20873 <BIT_AND_EXPR>: Likewise.
20874 <BIT_NOT_EXPR>: Add specific handling for boolean types.
20875
20876 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20877
20878 PR target/89474
20879 * config/i386/i386.c (remove_partial_avx_dependency): Call
20880 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
20881 after changing possibly many instructions to use that pseudo. Fix up
20882 insertion of v4sf_const0 setter at the start of bb.
20883
20884 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
20885
20886 PR c/80409
20887 * doc/extend.texi (Variadic Pointer Args): New section.
20888
20889 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
20890 Martin Sebor <msebor@gmail.com>
20891
20892 * common.opt (Wattribute-alias): Likewise.
20893 * doc/invoke.texi (Option Summary): List general form of
20894 -Wattribute-alias=. List positive form of -Wmissing-attributes.
20895 (-Wmissing-attributes): Invert entry, rewrite and correct default.
20896 Add cross-references.
20897 (-Wattribute-alias): Rewrite and correct default. Mention
20898 considered attributes (same as for -Wmissing-attributes).
20899
20900 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
20901
20902 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
20903 (_mm_cvtpd_ps): Likewise.
20904 (_mm_cvttpd_epi32): Likewise.
20905
20906 PR target/89338
20907 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
20908 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
20909
20910 PR target/89339
20911 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
20912
20913 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20914
20915 PR target/88530
20916 * common/config/aarch64/aarch64-common.c
20917 (struct aarch64_option_extension): Add is_synthetic.
20918 (all_extensions): Use it.
20919 (TARGET_OPTION_INIT_STRUCT): Define hook.
20920 (struct gcc_targetm_common): Moved to end.
20921 (all_extensions_by_on): New.
20922 (opt_ext_cmp, typedef opt_ext): New.
20923 (aarch64_option_init_struct): New.
20924 (aarch64_contains_opt): New.
20925 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
20926 * config/aarch64/aarch64-option-extensions.def
20927 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
20928 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
20929 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
20930 Set is_synthetic to false.
20931 (crypto): Set is_synthetic to true.
20932 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
20933 SYNTHETIC.
20934
20935 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20936
20937 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
20938 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
20939 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
20940 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
20941 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
20942 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
20943 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
20944 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
20945 Rename ...
20946 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
20947 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
20948 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
20949 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
20950 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
20951 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
20952 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
20953 vfmlsl_laneq_high_f16): ... To this.
20954 * config/arm/neon.md: Update comments.
20955
20956 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20957
20958 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
20959 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
20960 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
20961 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
20962 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
20963 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
20964 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
20965 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
20966 Rename ...
20967 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
20968 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
20969 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
20970 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
20971 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
20972 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
20973 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
20974 vfmlslq_laneq_high_f16): ... To this.
20975
20976 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
20977
20978 PR rtl-optimization/86096
20979 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
20980 comparing mw_order values.
20981
20982 2019-02-25 Jakub Jelinek <jakub@redhat.com>
20983
20984 PR target/89434
20985 * config/arm/arm.md (*subsi3_carryin_const): Use
20986 arm_neg_immediate_operand predicate instead of
20987 arm_not_immediate_operand, "L" constraint instead of "K" and
20988 print it using %n2 instead of %B2.
20989 (*subsi3_carryin_const0): New define_insn.
20990 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
20991 instead of arm_not_operand and "I" constraint instead of "K" and
20992 print it using %n3 instead of %B2. Instead of using match_dup 2 add
20993 another match_operand and in the condition check that it is negation
20994 of operands[2].
20995 (*subsi3_carryin_compare_const0): New define_ins.
20996 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
20997 *subsi3_carryin_const.
20998 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
20999 split into *subsi3_carryin_compare_const0 if the highpart is zero.
21000
21001 PR target/89438
21002 * config/arm.vfp.md (*negdf2_vfp): Use
21003 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
21004 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
21005
21006 2019-02-24 Jakub Jelinek <jakub@redhat.com>
21007
21008 PR rtl-optimization/89445
21009 * simplify-rtx.c (simplify_ternary_operation): Don't use
21010 simplify_merge_mask on operands that may trap.
21011 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
21012 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
21013 second operand is CONST_VECTOR, check if any element could be zero.
21014 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
21015 their operands can trap.
21016
21017 2019-02-23 Martin Sebor <msebor@redhat.com>
21018
21019 * gimple-ssa-sprintf.c (target_strtol): Rename...
21020 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
21021 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
21022 check for range error.
21023
21024 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
21025
21026 PR driver/69471
21027 * opts-common.c (prune_options): Also prune joined switches
21028 with Negative and RejectNegative.
21029 * config/i386/i386.opt (march=): Add Negative(march=).
21030 (mtune=): Add Negative(mtune=).
21031 * doc/options.texi: Document Negative used together with Joined
21032 and RejectNegative.
21033
21034 2019-02-22 Martin Sebor <msebor@redhat.com>
21035
21036 * doc/extend.texi (Other Builtins): Add
21037 __builtin_is_constant_evaluated.
21038
21039 2019-02-22 Richard Biener <rguenther@suse.de>
21040
21041 PR tree-optimization/87609
21042 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
21043
21044 2019-02-22 Jeff Law <law@redhat.com>
21045
21046 PR rtl-optimization/87761
21047 * config/mips/mips.md: Add new combiner pattern to recognize
21048 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
21049
21050 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
21051
21052 PR target/89324
21053 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
21054 destination register in peepholes generating patterns for ADDS/SUBS.
21055 (add<mode>3_compare0,
21056 *addsi3_compare0_uxtw, add<mode>3_compareC,
21057 add<mode>3_compareV_imm, add<mode>3_compareV,
21058 *adds_<optab><ALLX:mode>_<GPI:mode>,
21059 *subs_<optab><ALLX:mode>_<GPI:mode>,
21060 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
21061 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
21062 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
21063 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
21064 sub<mode>3_compare1): Allow stack pointer for source register.
21065 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
21066
21067 2019-02-22 Martin Sebor <msebor@redhat.com>
21068
21069 PR tree-optimization/88993
21070 PR tree-optimization/88853
21071 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
21072 New helper.
21073 (sprintf_dom_walker::call_info::is_string_func): New helper.
21074 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
21075 for formatted string functions.
21076 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
21077
21078 2019-02-22 Martin Sebor <msebor@redhat.com>
21079
21080 PR c/89425
21081 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
21082 unreachable subexpressions.
21083
21084 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
21085 Hongtao Liu <hongtao.liu@intel.com>
21086 Sunil K Pandey <sunil.k.pandey@intel.com>
21087
21088 PR target/87007
21089 * config/i386/i386-passes.def: Add
21090 pass_remove_partial_avx_dependency.
21091 * config/i386/i386-protos.h
21092 (make_pass_remove_partial_avx_dependency): New.
21093 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
21094 New function.
21095 (pass_data_remove_partial_avx_dependency): New.
21096 (pass_remove_partial_avx_dependency): Likewise.
21097 (make_pass_remove_partial_avx_dependency): Likewise.
21098 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
21099 (*extendsfdf2): Add avx_partial_xmm_update.
21100 (truncdfsf2): Likewise.
21101 (*float<SWI48:mode><MODEF:mode>2): Likewise.
21102 (SF/DF conversion splitters): Disabled for TARGET_AVX.
21103
21104 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
21105
21106 PR middle-end/85598
21107 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
21108 analysis for pass.
21109
21110 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
21111
21112 PR target/89444
21113 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
21114 (PTA_SKYLAKE): Add PTA_AES.
21115 (PTA_GOLDMONT): Likewise.
21116
21117 2019-02-22 Sudakshina Das <sudi.das@arm.com>
21118
21119 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
21120 instruction if enabled.
21121 (aarch64_override_options): Remove reference to return address key.
21122
21123 2019-02-22 Richard Biener <rguenther@suse.de>
21124
21125 PR tree-optimization/89440
21126 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21127 not necessary assert.
21128
21129 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
21130
21131 PR fortran/72741
21132 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
21133 (oacc_replace_fn_attrib_attr): ... this new function.
21134 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
21135 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
21136
21137 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21138
21139 * config/arm/arm-cpus.in (ares): Rename to...
21140 (neoverse-n1): ... This. Add ares as alias.
21141 * config/arm/arm-tables.opt: Regenerate.
21142 * config/arm/arm-tune.md: Likewise.
21143 * doc/invoke.txt (ARM Options): Document neoverse-n1.
21144
21145 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21146
21147 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
21148 * config/aarch64/aarch64-tune.md: Regenerate.
21149 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
21150
21151 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21152
21153 * config/aarch64/aarch64.c (ares_tunings): Rename to...
21154 (neoversen1_tunings): ... This.
21155 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
21156 (neoverse-n1): New CPU.
21157 * config/aarch64/aarch64-tune.md: Regenerate.
21158 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
21159
21160 2019-02-22 Richard Biener <rguenther@suse.de>
21161
21162 PR middle-end/87609
21163 * cfghooks.h (dependence_hash): New typedef.
21164 (struct copy_bb_data): New type.
21165 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
21166 (duplicate_block): Likewise.
21167 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
21168 (copy_bbs): Create and pass down copy_bb_data.
21169 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
21170 (rtl_duplicate_bb): Likewise.
21171 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
21172 remap dependence info.
21173
21174 2019-02-22 Richard Biener <rguenther@suse.de>
21175
21176 PR tree-optimization/87609
21177 * tree-core.h (tree_base): Document special clique values.
21178 * tree-inline.c (remap_dependence_clique): Do not use the
21179 special clique value of one.
21180 (maybe_set_dependence_info): Use clique one.
21181 (clear_dependence_clique): New callback.
21182 (compute_dependence_clique): Clear clique one from all refs
21183 before assigning it (again).
21184
21185 2019-02-21 Martin Sebor <msebor@redhat.com>
21186
21187 * doc/extend.texi (__clear_cache): Correct signature.
21188
21189 2019-02-21 Ian Lance Taylor <iant@golang.org>
21190
21191 PR go/89170
21192 * varasm.c (decode_addr_const): Call lookup_constant_def rather
21193 than output_constant_def.
21194 (add_constant_to_table): New static function.
21195 (output_constant_def): Call add_constant_to_table.
21196 (tree_output_constant_def): Likewise.
21197
21198 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21199
21200 PR c++/89285
21201 * builtins.c (fold_builtin_arith_overflow): If first two args are
21202 INTEGER_CSTs, set intres and ovfres to constants rather than calls
21203 to ifn.
21204
21205 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
21206
21207 PR target/87412
21208 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21209 error for -mindirect-branch/-mfunction-return with incompatible
21210 -fcf-protection.
21211
21212 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21213
21214 PR bootstrap/88714
21215 * constraints.md (q): Remove.
21216 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21217 instead of q.
21218
21219 2019-02-21 Martin Jambor <mjambor@suse.cz>
21220
21221 PR hsa/89302
21222 * omp-general.c (omp_extract_for_data): Removed a duplicate call
21223 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21224 (omp_adjust_for_condition): ...here. Added necessary parameters.
21225 * omp-general.h (omp_adjust_for_condition): Updated declaration.
21226 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21227 proper values to new parameters of omp_adjust_for_condition.
21228
21229 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21230
21231 PR middle-end/89412
21232 * expr.c (expand_assignment): If result is a MEM, use change_address
21233 instead of simplify_gen_subreg.
21234
21235 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21236 David Malcolm <dmalcolm@redhat.com>
21237
21238 PR middle-end/89091
21239 * fold-const.c (decode_field_reference): Return NULL_TREE if
21240 lang_hooks.types.type_for_size returns NULL. Check it before
21241 overwriting *exp_. Use return NULL_TREE instead of return 0.
21242
21243 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21244
21245 PR middle-end/88074
21246 PR middle-end/89415
21247 * toplev.c (do_compile): Double the emin/emax exponents to workaround
21248 buggy mpc_norm.
21249
21250 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
21251
21252 PR target/89397
21253 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21254 TARGET_SSE in addition to TARGET_SSE_MATH.
21255
21256 (ix86_excess_precision): Ditto.
21257 (ix86_float_exceptions_rounding_supported_p): Ditto.
21258 (use_rsqrt_p): Ditto.
21259 * config/i386/sse.md (rsqrt<mode>2): Ditto.
21260
21261 2019-02-20 David Malcolm <dmalcolm@redhat.com>
21262
21263 PR c/89410
21264 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21265 linenum_arith_t when determining if two adjacent line spans are
21266 close enough to merge.
21267 (diagnostic_show_locus): Use linenum_arith_t when iterating over
21268 lines within each line_span.
21269
21270 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
21271
21272 PR target/86487
21273 * lra-constraints.c(uses_hard_regs_p): Fix handling of
21274 paradoxical SUBREGS.
21275
21276 2019-02-20 Li Jia He <helijia@linux.ibm.com>
21277
21278 PR target/88100
21279 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21280 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21281 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21282 range checking it.
21283
21284 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
21285
21286 * config/gcn/gcn.c (print_operand): Fix typo.
21287
21288 2019-02-19 Richard Biener <rguenther@suse.de>
21289
21290 PR middle-end/88074
21291 * toplev.c (do_compile): Initialize mpfr's exponent range
21292 based on available float modes.
21293
21294 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
21295
21296 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21297 as long as the epilogue isn't completed.
21298
21299 2019-02-18 Martin Sebor <msebor@redhat.com>
21300
21301 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21302 __has_cpp_attribute, and __has_include.
21303
21304 2019-02-18 Martin Sebor <msebor@redhat.com>
21305
21306 * doc/invoke.texi (-Wreturn-type): Correct and expand.
21307
21308 2019-02-18 Martin Sebor <msebor@redhat.com>
21309
21310 PR middle-end/89294
21311 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21312 expression.
21313 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21314
21315 2019-02-18 Richard Biener <rguenther@suse.de>
21316
21317 PR tree-optimization/89296
21318 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21319 of no-warning flag to cases that might emit the bogus warning.
21320
21321 2019-02-18 Jakub Jelinek <jakub@redhat.com>
21322
21323 PR bootstrap/88714
21324 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21325 "q" constraint.
21326 * config/arm/vfp.md (*movdi_vfp): Likewise.
21327 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21328 "q" constraint for operands[0].
21329
21330 PR target/89369
21331 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21332 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21333 pattern in a temporary buffer.
21334 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
21335 than 64-operands[2].
21336
21337 PR target/89361
21338 * config/s390/s390.c (s390_indirect_branch_attrvalue,
21339 s390_indirect_branch_settings): Define unconditionally.
21340 (s390_set_current_function): Likewise, but guard the whole body except
21341 the s390_indirect_branch_settings call with
21342 #if S390_USE_TARGET_ATTRIBUTE.
21343 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21344
21345 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21346 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21347 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21348 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21349 HOST_WIDE_INT_1U instead of 1ULL.
21350 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21351 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21352 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21353 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21354 instead of 1UL.
21355 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21356 instead of 1ul.
21357
21358 2019-02-18 Martin Jambor <mjambor@suse.cz>
21359
21360 PR tree-optimization/89209
21361 * tree-sra.c (create_access_replacement): New optional parameter
21362 reg_tree. Use it as a type if non-NULL and access type is not of
21363 a register type.
21364 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21365 to create_access_replacement.
21366 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21367 Check lacc is non-NULL before attempting to re-create it on the RHS.
21368
21369 2019-02-18 Martin Liska <mliska@suse.cz>
21370
21371 PR ipa/89306
21372 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21373 by default.
21374 (symbol_table::free_edge): Recycle m_summary_id.
21375 * cgraph.h (get_summary_id): New.
21376 (symbol_table::release_symbol): Set m_summary_id to -1
21377 by default.
21378 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21379 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21380 function_summary to fast_function_summary.
21381 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21382 * ipa-pure-const.c (class funct_state_summary_t):
21383 Switch from function_summary to fast_function_summary.
21384 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21385 (class ipa_ref_opt_summary_t): Switch from function_summary
21386 to fast_function_summary.
21387 * symbol-summary.h (class function_summary_base): New class
21388 that is created from base of former function_summary.
21389 (function_summary_base::unregister_hooks): New.
21390 (class function_summary): Inherit from function_summary_base.
21391 (class call_summary_base): New class
21392 that is created from base of former call_summary.
21393 (class call_summary): Inherit from call_summary_base.
21394 (struct is_same): New.
21395 (class fast_function_summary): New summary class.
21396 (class fast_call_summary): New summary class.
21397 * vec.h (vec_safe_grow_cleared): New function.
21398
21399 2019-02-18 Martin Liska <mliska@suse.cz>
21400
21401 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
21402 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
21403 * doc/tm.texi: Document new target hook.
21404 * doc/tm.texi.in: Likewise.
21405 * target.def: Add new target macro.
21406 * gcc.c (find_fortran_preinclude_file): Do not search multilib
21407 suffixes.
21408
21409 2019-02-17 Alan Modra <amodra@gmail.com>
21410
21411 PR target/89271
21412 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
21413 output reg on add insn.
21414 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
21415
21416 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21417
21418 PR target/89372
21419 * config/i386/sse.md (ssedoublemode): Remove V4HI.
21420 (PMULHRSW): Likewise.
21421 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
21422 TARGET_AVX2.
21423 (ssse3_pmulhrswv4hi3): New expander.
21424
21425 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21426
21427 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
21428 MMX. Add isa attribute.
21429
21430 2019-02-16 Jakub Jelinek <jakub@redhat.com>
21431
21432 PR rtl-optimization/66152
21433 * builtins.h (c_readstr): Declare.
21434 * builtins.c (c_readstr): Remove forward declaration. Add
21435 null_terminated_p argument, if false, read all bytes from the
21436 string instead of stopping after '\0'.
21437 * expr.c (string_cst_read_str): New function.
21438 (store_expr): Use string_cst_read_str instead of
21439 builtin_strncpy_read_str. Try to store by pieces the whole
21440 exp_len first, and only if that fails, split it up into
21441 store by pieces followed by clear_storage. Formatting fix.
21442
21443 * config/i386/i386.md (*movqi_internal): Remove static from
21444 buf variable. Use output_asm_insn (buf, operands); return "";
21445 instead of return buf;.
21446 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
21447 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
21448 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
21449
21450 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21451
21452 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
21453 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
21454 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
21455 (CC1_SPEC): Likewise.
21456 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
21457
21458 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21459
21460 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
21461 the base address on 64-bit strict-alignment platforms.
21462
21463 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
21464
21465 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
21466
21467 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21468
21469 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
21470
21471 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
21472
21473 PR rtl-optimization/88308
21474 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
21475 on copied instruction.
21476
21477 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21478
21479 * final.c (insn_current_reference_address): Replace test on JUMP_P
21480 with test on jump_to_label_p.
21481 * config/visium/visium-passes.def: New file.
21482 * config/visium/t-visium (PASSES_EXTRA): Define.
21483 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
21484 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
21485 (TRAMPOLINE_ALIGNMENT): Define.
21486 * config/visium/visium.c (visium_option_override): Do not register
21487 the machine-specific reorg pass here.
21488 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
21489 for the GR6.
21490 (output_branch): Adjust threshold for long branch instruction.
21491 * config/visium/visium.md (cpu): Move around.
21492 (length): Adjust for the GR6.
21493
21494 2019-02-15 Richard Biener <rguenther@suse.de>
21495 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR tree-optimization/89278
21498 * tree-loop-distribution.c: Include tree-eh.h.
21499 (generate_memset_builtin, generate_memcpy_builtin): Call
21500 rewrite_to_non_trapping_overflow on builtin->size before passing it
21501 to force_gimple_operand_gsi.
21502
21503 2019-02-15 Jakub Jelinek <jakub@redhat.com>
21504
21505 PR other/89342
21506 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
21507 optimize_debug.
21508 * opth-gen.awk: Likewise.
21509
21510 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21511
21512 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
21513 Enable MMX, SSE and SSE2 by default.
21514 * config/i386/i386.c (ix86_option_override_internal): Do not
21515 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
21516
21517 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21518
21519 PR rtl-optimization/89354
21520 * combine.c (make_extraction): Punt if extraction_mode is narrower
21521 than len bits.
21522
21523 2019-02-14 Maya Rashish <coypu@sdf.org>
21524
21525 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
21526 * config/netbsd-d.c: New file.
21527 * config/t-netbsd: Add netbsd-d.o
21528
21529 2018-02-14 Steve Ellcey <sellcey@marvell.com>
21530
21531 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
21532 affects_type_identity to true for aarch64_vector_pcs.
21533 (aarch64_comp_type_attributes): New function.
21534 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
21535
21536 2019-02-14 Tamar Christina <tamar.christina@arm.com>
21537
21538 PR target/88850
21539 * config/arm/iterators.md (ANY64): Add V4HF.
21540
21541 2019-02-14 Martin Liska <mliska@suse.cz>
21542
21543 PR rtl-optimization/89242
21544 * dce.c (delete_unmarked_insns): Call free_dominance_info we
21545 process a transformation.
21546
21547 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21548
21549 PR tree-optimization/89314
21550 * fold-const.c (fold_binary_loc): Cast strlen argument to
21551 const char * before dereferencing it. Formatting fixes.
21552
21553 PR middle-end/89284
21554 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
21555
21556 2019-02-13 Ian Lance Taylor <iant@golang.org>
21557
21558 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
21559 and set current index for other optimizations.
21560
21561 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
21562
21563 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
21564 nonimmediate_operand as operand 2 predicate.
21565 (vec_set<VF2_512_256:mode>_0): Ditto.
21566 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
21567 (*vec_concatv2si): Remove alternative 2.
21568 (*vec_concatv4si_0): Use vm constraint for alternative 0.
21569 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
21570 (vec_concatv2di): Split alternatives 4,5,6 to ...
21571 (*vec_concatv2di_0) ... new pattern.
21572
21573 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
21574
21575 PR target/89190
21576 * config/arm/arm.c (ldm_stm_operation_p) Set
21577 addr_reg_in_reglist correctly for first register.
21578 (load_multiple_sequence): Remove dead base check.
21579 (gen_ldm_seq): Correctly set write_back for Thumb-1.
21580
21581 2019-02-13 Tamar Christina <tamar.christina@arm.com>
21582
21583 PR target/88847
21584 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
21585 Expose as @aarch64_pred_mov.
21586 * config/aarch64/aarch64.c (aarch64_classify_address):
21587 Use expand_insn which legitimizes operands.
21588
21589 2019-02-13 Martin Liska <mliska@suse.cz>
21590
21591 * builtins.h (expand_builtin_with_bounds): Remove declaration.
21592 * calls.c (struct arg_data): Remove special_slot, pointer_arg
21593 and pointer_offset fields.
21594 (initialize_argument_information): Remove usage of dead
21595 fields.
21596 * cgraph.h (struct cgraph_thunk_info): Remove
21597 add_pointer_bounds_args.
21598 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
21599 fields.
21600 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
21601 fields.
21602 * config/i386/i386.c (ix86_function_arg_advance): Remove
21603 unrelated comment.
21604 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
21605 (def_builtin): Remove usage of dead fields.
21606 (ix86_add_new_builtins): Likewise.
21607 * ipa-fnsummary.c (compute_fn_summary): Likewise.
21608 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21609 (sem_function::init): Likewise.
21610 (sem_variable::merge): Likewise.
21611 * ipa-visibility.c (function_and_variable_visibility): Likewise.
21612 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
21613 * lto-cgraph.c (lto_output_node): Likewise.
21614 (lto_output_varpool_node): Likewise.
21615 (input_node): Likewise.
21616 (input_varpool_node): Likewise.
21617 * lto-streamer-out.c (lto_output): Likewise.
21618 * tree-inline.c (expand_call_inline): Remove usage of
21619 assign_stmts.
21620 * tree-inline.h (struct copy_body_data): Likewise.
21621 * varpool.c (varpool_node::dump): Likewise.
21622
21623 2019-02-13 Jakub Jelinek <jakub@redhat.com>
21624
21625 PR middle-end/89303
21626 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
21627 into pt->vars_contains_escaped_heap instead of setting
21628 pt->vars_contains_escaped_heap to it.
21629
21630 PR middle-end/89281
21631 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
21632 INTVAL (size), compare it to GET_MODE_MASK instead of
21633 1 << GET_MODE_BITSIZE.
21634
21635 PR target/89290
21636 * config/i386/predicates.md (x86_64_immediate_operand): Allow
21637 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
21638 -mcmodel=large.
21639
21640 2019-02-13 Martin Liska <mliska@suse.cz>
21641
21642 PR lto/88858
21643 * cfgrtl.c (remove_barriers_from_footer): New function.
21644 (try_redirect_by_replacing_jump): Use it.
21645 (cfg_layout_redirect_edge_and_branch): Likewise.
21646
21647 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
21648
21649 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
21650 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
21651 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
21652 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
21653 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
21654 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
21655 New BU_CRYPTO_2.
21656 * config/rs6000/rs6000.c (builtin_function_type)
21657 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
21658 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
21659 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
21660 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
21661 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
21662
21663 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
21664
21665 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
21666 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
21667
21668 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
21669
21670 PR target/89229
21671 * config/i386/i386.md (*movoi_internal_avx): Revert revision
21672 268678 and revision 268657.
21673 (*movti_internal): Likewise.
21674
21675 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
21676
21677 PR target/89233
21678 * config/s390/s390.c (s390_decompose_address): Update comment.
21679 (s390_check_qrst_address): Reject invalid address forms after
21680 LRA.
21681
21682 2019-02-12 Martin Liska <mliska@suse.cz>
21683
21684 PR lto/88876
21685 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
21686 we need default values of funct_state for a function that
21687 is not optimized.
21688
21689 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
21690
21691 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
21692 the object to pick the size of stores on strict-alignment platforms.
21693
21694 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
21695 (*movdi_insn_sp32): Likewise.
21696 (*movdi_insn_sp64): Likewise.
21697
21698 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
21699
21700 PR lto/88677
21701 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
21702 types that needs constructiong.
21703 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
21704
21705 2019-02-12 Richard Biener <rguenther@suse.de>
21706
21707 PR tree-optimization/89253
21708 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
21709 duplicate the loop.
21710
21711 2019-02-11 David Malcolm <dmalcolm@redhat.com>
21712
21713 PR lto/88147
21714 * input.c (selftest::test_line_offset_overflow): New selftest.
21715 (selftest::input_c_tests): Call it.
21716
21717 2019-02-11 Martin Sebor <msebor@redhat.com>
21718
21719 PR tree-optimization/88771
21720 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
21721 when -Wstringop-overflow is set.
21722 (builtin_memref::builtin_memref): Adjust excessive upper bound
21723 only when lower bound is not excessive.
21724 (maybe_diag_overlap): Detect and diagnose excessive bounds via
21725 -Wstringop-ovefflow.
21726 (maybe_diag_offset_bounds): Rename...
21727 (maybe_diag_access_bounds): ...to this.
21728 (check_bounds_or_overlap): Adjust for name change above.
21729
21730 2019-02-11 Martin Sebor <msebor@redhat.com>
21731
21732 PR c++/87996
21733 * builtins.c (max_object_size): Move from here...
21734 * builtins.h (max_object_size): ...and here...
21735 * tree.c (max_object_size): ...to here...
21736 * tree.h (max_object_size): ...and here.
21737
21738 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
21739
21740 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
21741 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
21742 for correct semantics.
21743
21744 2019-02-11 Alan Modra <amodra@gmail.com>
21745
21746 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
21747 -mlongcall and -mpltseq.
21748 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
21749 (RS/6000 and PowerPC Options <-mpltseq>): Document.
21750 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
21751 * config/rs6000/sysv4.opt (mpltseq): New option.
21752 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
21753 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
21754 support is lacking. Don't allow -mpltseq with -mbss-plt.
21755 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
21756 -mpltseq given for ELFv1.
21757 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
21758 Only use UNSPEC_PLTSEQ for inline PLT calls.
21759 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
21760 use UNSPEC_PLTSEQ for inline PLT calls.
21761 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
21762 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
21763 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
21764 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
21765 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
21766 (pltseq_mtctr_<mode>): Likewise.
21767
21768 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21769
21770 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
21771 Solaris ld.
21772 * configure: Regenerate.
21773
21774 2019-02-11 Jakub Jelinek <jakub@redhat.com>
21775
21776 PR bootstrap/88714
21777 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
21778 instead of r.
21779
21780 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21781
21782 * function.c (assign_parm_setup_block): Use the stored
21783 size, not the passed size, when allocating stack-space,
21784 also for a parameter with alignment larger than
21785 MAX_SUPPORTED_STACK_ALIGNMENT.
21786
21787 2019-02-11 Martin Liska <mliska@suse.cz>
21788
21789 PR ipa/89009
21790 * ipa-cp.c (build_toporder_info): Remove usage of a param.
21791 * ipa-inline.c (inline_small_functions): Likewise.
21792 * ipa-pure-const.c (propagate_pure_const): Likewise.
21793 (propagate_nothrow): Likewise.
21794 * ipa-reference.c (propagate): Likewise.
21795 * ipa-utils.c (struct searchc_env): Remove unused field.
21796 (searchc): Always search across AVAIL_INTERPOSABLE.
21797 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
21798 the only called IPA pure const can properly not propagate
21799 across interposable boundary.
21800 * ipa-utils.h (ipa_reduced_postorder): Remove param.
21801
21802 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
21803
21804 * config/nds32/nds32.md (call_internal, call_value_internal,
21805 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
21806
21807 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21808
21809 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
21810 typo.
21811
21812 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
21813
21814 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
21815 in comments
21816
21817 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
21818
21819 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
21820
21821 2019-02-10 Jakub Jelinek <jakub@redhat.com>
21822
21823 PR tree-optimization/89268
21824 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
21825 if preds is non-NULL.
21826
21827 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21828
21829 PR lto/89272
21830 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
21831 polymorphic types.
21832
21833 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
21834
21835 * config/nds32/nds32.md (trap): New pattern.
21836
21837 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
21838
21839 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
21840 dwarf span.
21841
21842 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
21843
21844 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
21845 to split POST_INC.
21846
21847 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21848
21849 * ipa-visibility.c (localize_node): Also do not localize
21850 LDPR_PREVAILING_DEF_IRONLY_EXP.
21851
21852 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21853
21854 PR lto/87957
21855 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
21856 instead of type_with_linkage.
21857
21858 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21859
21860 PR ipa/88755
21861 * params.def (uninlined-function-insns, uninlined-function-time,
21862 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
21863 bound so we don't get overflows.
21864
21865 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
21866
21867 * config/rs6000/rs6000-string.c (expand_compare_loop,
21868 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
21869 memcmp/strncmp.
21870
21871 2019-02-09 Jakub Jelinek <jakub@redhat.com>
21872
21873 PR middle-end/89246
21874 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21875 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
21876 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
21877
21878 2019-02-09 Alan Modra <amodra@gmail.com>
21879
21880 PR target/88343
21881 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
21882 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
21883 setup.
21884
21885 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
21886
21887 PR middle-end/88560
21888 * lra-constraints.c (process_alt_operands): Don't increase reject
21889 for memory when offset memory is required.
21890
21891 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
21892
21893 * config/s390/vector.md: Implement vector copysign.
21894
21895 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
21896
21897 * expr.c (expand_constructor): Correct indentations.
21898
21899 2019-02-08 Richard Biener <rguenther@suse.de>
21900
21901 PR tree-optimization/89247
21902 * tree-if-conv.c: Include tree-cfgcleanup.h.
21903 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
21904 (tree_if_conversion): Pass through predicate vector.
21905 (pass_if_conversion::execute): Do CFG cleanup and SSA update
21906 inline, see if any if-converted loops we refrece in
21907 LOOP_VECTORIZED calls vanished and fixup.
21908 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
21909
21910 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
21911
21912 * config/s390/constraints.md (jdd): New constraint.
21913
21914 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
21915
21916 PR target/89229
21917 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
21918 upper 16 vector registers without TARGET_AVX512VL.
21919 (*movti_internal): Likewise.
21920
21921 2019-02-08 Jakub Jelinek <jakub@redhat.com>
21922
21923 PR rtl-optimization/89234
21924 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
21925 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
21926 (copy_reg_eh_region_note_backward): Likewise.
21927
21928 2019-02-08 Richard Biener <rguenther@suse.de>
21929
21930 PR middle-end/89223
21931 * tree-data-ref.c (initialize_matrix_A): Fail if constant
21932 doesn't fit in HWI.
21933 (analyze_subscript_affine_affine): Handle failure from
21934 initialize_matrix_A.
21935
21936 2019-02-08 Jakub Jelinek <jakub@redhat.com>
21937
21938 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
21939 cfun everywhere.
21940
21941 2019-02-07 David Malcolm <dmalcolm@redhat.com>
21942
21943 PR tree-optimization/86637
21944 PR tree-optimization/89235
21945 * tree-vect-loop.c (optimize_mask_stores): Add an
21946 auto_purge_vect_location sentinel to ensure that vect_location is
21947 purged on exit.
21948 * tree-vectorizer.c
21949 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
21950 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
21951 to ensure that vect_location is purged on exit.
21952 (pass_slp_vectorize::execute): Likewise, replacing the manual
21953 reset.
21954 * tree-vectorizer.h (class auto_purge_vect_location): New class.
21955
21956 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21957
21958 * config/aarch64/iterators.md (max_opp): New code_attr.
21959 (USMAX): New code iterator.
21960 * config/aarch64/predicates.md (aarch64_smin): New predicate.
21961 (aarch64_smax): Likewise.
21962 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
21963 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
21964 MINUS (MAX MIN).
21965
21966 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
21967
21968 PR target/89229
21969 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
21970 for TARGET_AVX512VL.
21971 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
21972
21973 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
21974
21975 * config/s390/s390-builtin-types.def: Add new types.
21976 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
21977 (s390_vec_xlw4): Make the memory operand into a const pointer.
21978 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
21979 float.
21980 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
21981 a new vector type with the alignment of the scalar memory operand.
21982
21983 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
21984 Jakub Jelinek <jakub@redhat.com>
21985
21986 PR bootstrap/88714
21987 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
21988 arm_count_ldrdstrd_insns): New declarations.
21989 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
21990 MINUS.
21991 (valid_operands_ldrd_strd): New function.
21992 (arm_count_ldrdstrd_insns): New function.
21993 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
21994 sets instead of single DImode set and define new insns to match this.
21995
21996 2019-02-07 Tamar Christina <tamar.christina@arm.com>
21997
21998 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
21999 Make it a C initializer.
22000
22001 2019-02-07 Tamar Christina <tamar.christina@arm.com>
22002
22003 PR/target 88850
22004 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
22005
22006 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22007
22008 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
22009 Use neon_dot<q> for type.
22010 (neon_<sup>dot_lane<vsi2qi>): Likewise.
22011
22012 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22013
22014 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
22015 Use neon_dot<q> for type.
22016 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
22017 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
22018
22019 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
22020
22021 PR rtl-optimization/89225
22022 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
22023 sizes check.
22024
22025 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
22026
22027 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
22028 after restoring registers saved to allocate the frame on Windows.
22029
22030 2019-02-06 Richard Biener <rguenther@suse.de>
22031
22032 PR tree-optimization/89182
22033 * graphite.h (cached_scalar_evolution_in_region): Declare.
22034 * graphite.c (struct seir_cache_key): New.
22035 (struct sese_scev_hash): Likewise.
22036 (seir_cache): New global.
22037 (cached_scalar_evolution_in_region): New function.
22038 (graphite_transform_loops): Allocate and release seir_cache.
22039 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
22040 cached_scalar_evolution_in_region.
22041 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22042 Simplify.
22043 (scop_detection::graphite_can_represent_expr: Use
22044 cached_scalar_evolution_in_region.
22045 (scop_detection::stmt_simple_for_scop_p): Likewise.
22046 (find_params_in_bb): Likewise.
22047 (gather_bbs::before_dom_children): Likewise.
22048 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
22049 (add_loop_constraints): Likewise.
22050
22051 2019-02-06 Jakub Jelinek <jakub@redhat.com>
22052
22053 PR middle-end/89210
22054 * fold-const-call.c (fold_const_vec_convert): Pass true as last
22055 operand to new_unary_operation only if both element types are integral
22056 and it isn't a widening conversion. Return NULL_TREE if
22057 new_unary_operation failed.
22058
22059 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
22060
22061 PR target/88856
22062 * config/s390/s390.md: Remove load and test FP splitter.
22063
22064 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22065
22066 PR target/89112
22067 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
22068 expand_compare_loop, expand_block_compare_gpr,
22069 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
22070 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
22071 #include "profile-count.h" and "predict.h" for types and functions
22072 needed to work with REG_BR_PROB notes.
22073
22074 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22075
22076 PR target/89112
22077 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
22078 for the long branch case.
22079
22080 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22081
22082 PR target/89188
22083 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
22084 can throw, non-call exceptions are enabled and we can't delete
22085 dead exceptions or alter cfg. Set must_clean if
22086 delete_insn_and_edges returns true, don't set it blindly for calls.
22087 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
22088
22089 PR rtl-optimization/89195
22090 * combine.c (make_extraction): For MEMs, don't extract bytes outside
22091 of the original MEM.
22092
22093 2019-02-05 Martin Liska <mliska@suse.cz>
22094
22095 PR gcov-profile/89000
22096 * gcov.c (function_summary): Remove argument.
22097 (file_summary): New function.
22098 (print_usage): Replace tabs with spaces.
22099 (generate_results): Use new function file_summary.
22100
22101 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22102
22103 PR target/89186
22104 * optabs.c (prepare_cmp_insn): Pass x and y to
22105 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
22106
22107 2019-02-05 Richard Biener <rguenther@suse.de>
22108
22109 PR middle-end/89150
22110 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
22111 (struct bitmap_element): Drop chain_prev so we properly recurse on
22112 the prev member, supporting tree views.
22113 (struct bitmap_head): GTY skip the obstack member.
22114
22115 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
22116
22117 PR c/88698
22118 * doc/extend.texi (Vector Extensions): Add an example of using vector
22119 types together with x86 intrinsics.
22120
22121 2019-02-04 Alan Modra <amodra@gmail.com>
22122
22123 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
22124 str[] size to 160, and comment.
22125
22126 2019-02-04 Alan Modra <amodra@gmail.com>
22127
22128 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
22129 (rs6000_pltseq_template): Guard output of TLS markers with
22130 TARGET_TLS_MARKERS.
22131 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
22132 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
22133 to use inline PLT sequences.
22134 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22135 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22136 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
22137
22138 2019-02-04 Martin Liska <mliska@suse.cz>
22139
22140 PR ipa/88985
22141 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
22142 out when ipa_fn_summaries does not contain entry for callee.
22143
22144 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
22145
22146 * config/sparc/sparc.h: Remove superfluous blank lines.
22147 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
22148 (got_register_rtx): ...this.
22149 (sparc_got): Adjust to above renaming.
22150 (sparc_tls_got): Likewise.
22151 (sparc_delegitimize_address): Likewise.
22152 (sparc_output_mi_thunk): Likewise.
22153 (sparc_init_pic_reg): Likewise.
22154 (save_local_or_in_reg_p): Fix test on the GOT register.
22155 (USE_HIDDEN_LINKONCE): Move around.
22156 (get_pc_thunk_name): Likewise.
22157 (gen_load_pcrel_sym): Likewise.
22158 (load_got_register): Likewise.
22159
22160 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
22161
22162 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
22163 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
22164
22165 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22166
22167 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
22168 into consideration.
22169
22170 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22171
22172 * config.gcc (with_nds32_lib, glibc):
22173 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
22174 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
22175 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
22176
22177 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
22178
22179 PR target/89071
22180 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
22181 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
22182 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
22183 (*rcpsf2_sse): Ditto.
22184 (*rsqrtsf2_sse): Ditto.
22185 (sse4_1_round<mode<2): Ditto.
22186
22187 2019-02-03 Richard Biener <rguenther@suse.de>
22188
22189 PR debug/87295
22190 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22191 orig.
22192
22193 2019-02-02 Jakub Jelinek <jakub@redhat.com>
22194
22195 PR middle-end/87887
22196 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22197 Punt with warning on aggregate return or argument types. Ignore
22198 type/mode checking for uniform arguments.
22199
22200 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
22201
22202 * combine.c (try_combine): Do not print "Can't combine" messages unless
22203 printing failed combination attempts.
22204
22205 2019-02-01 Martin Jambor <mjambor@suse.cz>
22206
22207 PR hsa/87863
22208 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22209 segment and global segment variables before making them static.
22210
22211 2019-02-01 Martin Jambor <mjambor@suse.cz>
22212
22213 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22214 missed optimization dump with dump_enabled_p.
22215
22216 2019-02-01 Richard Biener <rguenther@suse.de>
22217
22218 PR middle-end/88597
22219 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22220 the instantiate cache.
22221 (instantiate_scev_binary): Elide second operand procesing
22222 if equal to the first.
22223 * tree-chrec.c (chrec_contains_symbols): Add visited set.
22224 (chrec_contains_undetermined): Likewise.
22225 (tree_contains_chrecs): Likewise.
22226
22227 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
22228
22229 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22230
22231 2019-02-01 Jakub Jelinek <jakub@redhat.com>
22232
22233 PR tree-optimization/89143
22234 * wide-int-range.h (wide_int_range_absu): Declare.
22235 * wide-int-range.cc (wide_int_range_absu): New function.
22236 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22237
22238 PR tree-optimization/88107
22239 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22240 instead of assertion that eh_region_outermost is non-NULL, if it
22241 is NULL, set *ALL to true and return NULL.
22242 (move_sese_region_to_fn): Adjust caller, if all is set, call
22243 duplicate_eh_regions with NULL region.
22244
22245 2019-02-01 Richard Biener <rguenth@suse.de>
22246
22247 PR rtl-optimization/88593
22248 * mode-switching.c (optimize_mode_switching): Free dominators before
22249 calling cleanup_cfg.
22250
22251 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
22252
22253 PR tree-optimization/88932
22254 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22255
22256 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22257
22258 PR middle-end/89137
22259 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22260 bogus clang warning.
22261
22262 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
22263
22264 PR target/89071
22265 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22266 alternative to avoid partial SSE register stall for TARGET_AVX.
22267 (truncdfsf2): Ditto.
22268 (sse4_1_round<mode>2): Ditto.
22269
22270 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
22271
22272 PR tree-optimization/89008
22273 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22274 process anything of the form X * 0.
22275
22276 2019-01-31 Richard Biener <rguenther@suse.de>
22277
22278 PR tree-optimization/89135
22279 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22280 with abnormal preds.
22281
22282 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22283
22284 PR sanitizer/89124
22285 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22286 always_inline callees into no_sanitize_address callers.
22287
22288 2019-01-31 Richard Biener <rguenther@suse.de>
22289
22290 PR rtl-optimization/89115
22291 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22292
22293 2019-01-30 Martin Sebor <msebor@redhat.com>
22294
22295 PR other/89106
22296 * doc/extend.texi (cast to a union): Correct and expand.
22297
22298 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
22299
22300 PR rtl-optimization/87246
22301 * lra-constraints.c (simplify_operand_subreg): Reload memory
22302 in subreg if the address became invalid.
22303
22304 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
22305
22306 PR target/87064
22307 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22308 Disable for little-endian.
22309
22310 2019-01-30 Richard Biener <rguenther@suse.de>
22311
22312 PR rtl-optimization/89115
22313 * opts.c (default_options_optimization): Reduce
22314 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22315 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22316 to the default.
22317
22318 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
22319
22320 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22321 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
22322 type of vector element when vec_extract is implemented by direct
22323 move.
22324
22325 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
22326
22327 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22328
22329 2019-01-30 Richard Biener <rguenther@suse.de>
22330
22331 PR tree-optimization/89111
22332 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22333 canonicalization to appropriately sized access types.
22334
22335 2019-01-30 Jakub Jelinek <jakub@redhat.com>
22336
22337 PR c++/89105
22338 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22339 for arguments to functions that are TU-local and shouldn't be
22340 referenced by assembly.
22341
22342 2019-01-30 Ulrich Drepper <drepper@redhat.com>
22343
22344 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22345 after '='.
22346
22347 2019-01-29 Martin Sebor <msebor@redhat.com>
22348
22349 PR c/88956
22350 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22351
22352 2019-01-29 Jakub Jelinek <jakub@redhat.com>
22353
22354 PR c++/66676
22355 PR ipa/89104
22356 * omp-simd-clone.c (simd_clone_clauses_extract)
22357 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22358 OMP_CLAUSE_ALIGNED_ALIGNMENT.
22359
22360 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
22361
22362 * config.gcc: Force .init_array for ARC.
22363
22364 2019-01-29 Richard Biener <rguenther@suse.de>
22365
22366 PR debug/87295
22367 * dwarf2out.c (collect_skeleton_dies): New helper.
22368 (copy_decls_for_unworthy_types): Call it.
22369 (build_abbrev_table): Assert we do not try to replace
22370 DW_AT_signature refs with local refs.
22371
22372 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22373
22374 PR middle-end/89002
22375 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22376 for lastprivate/linear IV, push gimplify context around gimplify_assign
22377 and, if it needed any temporaries, pop it into a gimple bind around the
22378 sequence.
22379
22380 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22381
22382 * common.opt (-Wattribute-alias): Remove "no-" from name.
22383 Make -Wattribute-alias command line option and
22384 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22385
22386 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR target/89073
22389 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22390 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22391 x86 ISA options.
22392 (bmi2): Add missing @opindex.
22393 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22394 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
22395 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22396 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
22397 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
22398 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
22399 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
22400 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
22401 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
22402 xsavec, xsaveopt and xsaves options.
22403
22404 2019-01-28 Richard Biener <rguenther@suse.de>
22405
22406 PR debug/89076
22407 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
22408 support removal.
22409
22410 2019-01-28 Richard Biener <rguenther@suse.de>
22411
22412 PR tree-optimization/88739
22413 * tree-cfg.c (verify_types_in_gimple_reference): Verify
22414 BIT_FIELD_REFs only are applied to mode-precision operands
22415 when they are integral.
22416 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
22417 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
22418 BIT_FIELD_REFs of non-mode-precision integral operands.
22419
22420 2019-01-27 Jakub Jelinek <jakub@redhat.com>
22421
22422 PR target/87214
22423 * config/i386/sse.md
22424 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
22425 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
22426 first constants in pairs are multiples of 2. Formatting fixes.
22427 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
22428 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
22429 first constants in each quadruple are multiples of 4. Formatting fixes.
22430
22431 2019-01-26 Martin Jambor <mjambor@suse.cz>
22432
22433 PR ipa/88933
22434 * tree-inline.c: Include tree-cfgcleanup.h.
22435 (delete_unreachable_blocks_update_callgraph): Move...
22436 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
22437 ...here, make externally visible, make second argument bool, adjust
22438 all callers.
22439 * tree-cfgcleanup.c: Include cgraph.h.
22440 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
22441 Declare.
22442 * ipa-prop.c: Include tree-cfgcleanup.h.
22443 (ipcp_transform_function): Call
22444 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
22445
22446 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
22447
22448 PR rtl-optimization/88846
22449 * ira.c (process_set_for_memref_referenced_p): New.
22450 (memref_referenced_p): Add new param. Use
22451 process_set_for_memref_referenced_p. Add new switch cases.
22452 (memref_used_between_p): Pass new arg to memref_referenced_p.
22453
22454 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
22455
22456 PR target/88469
22457 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
22458 argument ABI_BREAK. Set to true if the calculated alignment has
22459 changed in gcc-9. Check bit-fields for their base type alignment.
22460 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
22461 (aarch64_function_arg_boundary): Likewise.
22462 (aarch64_gimplify_va_arg_expr): Likewise.
22463
22464 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22465
22466 PR middle-end/89037
22467 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
22468 instead of accessing TREE_INT_CST_ELT directly.
22469
22470 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
22471
22472 * doc/sourcebuild.texi (Environment attributes): Add fenv and
22473 fenv_exceptions description.
22474
22475 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
22476
22477 PR rtl-optimization/87763
22478 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
22479 Allow SUBREG when matching CC_NZmode compare.
22480
22481 2019-01-25 Richard Biener <rguenther@suse.de>
22482
22483 PR tree-optimization/89049
22484 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
22485 Look at the pattern stmt to determine if the stmt is vectorized.
22486
22487 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22488
22489 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
22490 (pred_mov<mode>): Handle all-register forms using both a new
22491 alternative and a split.
22492
22493 2019-01-25 Richard Biener <rguenther@suse.de>
22494
22495 PR tree-optimization/86865
22496 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22497 Reject non-do-while loops.
22498
22499 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
22500
22501 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
22502 * config/rs6000/constraints.md (Q constraint): Use REG_P.
22503 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
22504 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22505 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
22506 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22507 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
22508 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
22509 vlogical_operand, gpc_reg_operand, int_reg_operand,
22510 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
22511 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
22512 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
22513 (save_world_operation, restore_world_operation, lmw_operation,
22514 stmw_operation): Use MEM_P and REG_P.
22515 (tie_operand): Use MEM_P.
22516 (vrsave_operation, crsave_operation): Use REG_P.
22517 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
22518 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
22519 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
22520 (call_operand): Use HARD_REGISTER_P.
22521 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
22522 Use CONST_INT_P.
22523 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
22524 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
22525 quad_aligned_load_p, replace_swapped_aligned_store,
22526 recombine_lvx_pattern, replace_swapped_aligned_load,
22527 recombine_stvx_pattern): Use MEM_P.
22528 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
22529 Use MEM_P and SYMBOL_REF_P.
22530 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
22531 (insn_is_swappable_p): Use REG_P and MEM_P.
22532 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
22533 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
22534 Use CONST_INT_P.
22535 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
22536 Use CONST_DOUBLE_P.
22537 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
22538 CONST_WIDE_INT_P.
22539 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
22540 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
22541 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
22542 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
22543 reg_or_subregno:
22544 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22545 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
22546 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
22547 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
22548 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
22549 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
22550 rs6000_split_logical_di): Use CONST_INT_P.
22551 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
22552 REG_P and SYMBOL_REF_P.
22553 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
22554 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
22555 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
22556 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
22557 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
22558 (small_data_operand, print_operand_address): Use CONST_INT_P and
22559 SYMBOL_REF_P.
22560 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
22561 (rs6000_init_hard_regno_mode_ok, direct_move_p):
22562 Use HARD_REGISTER_NUM_P.
22563 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
22564 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
22565 SUBREG_P and SYMBOL_REF_P.
22566 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
22567 and HARD_REGISTER_NUM_P.
22568 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
22569 reg_or_subregno.
22570 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
22571 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
22572 MEM_P and REG_P.
22573 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
22574 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
22575 find_addr_reg): Use REG_P.
22576 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
22577 (rs6000_emit_le_vsx_move): Use SUBREG_P.
22578 (offsettable_ok_by_alignment, constant_pool_expr_p,
22579 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
22580 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
22581 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
22582 rs6000_assemble_integer, create_TOC_reference,
22583 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
22584 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
22585 (rs6000_split_vec_extract_var): Use reg_or_subregno.
22586 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22587 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22588 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22589 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22590 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
22591 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
22592 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
22593 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
22594 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
22595 and cbranch<mode>4): Use CONST_INT_P.
22596 (multiple define_splits): Use REG_P and SUBREG_P.
22597 (define_expands call, call_value): Use MEM_P.
22598 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
22599 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
22600 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
22601 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
22602 and HARD_REGISTER_NUM_P.
22603 (multiple define_splits): Use HARD_REGISTER_NUM_P.
22604
22605 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
22606
22607 PR rtl-optimization/88948
22608 * rtl.h (prepare_copy_insn): New prototype.
22609 * gcse.c (prepare_copy_insn): New function, split out from
22610 process_insert_insn.
22611 (process_insert_insn): Use prepare_copy_insn.
22612 * store-motion.c (replace_store_insn): Use prepare_copy_insn
22613 instead of gen_move_insn.
22614
22615 2019-01-24 Jakub Jelinek <jakub@redhat.com>
22616
22617 PR debug/89006
22618 * config/i386/i386.c (ix86_pic_register_p): Return true for
22619 UNSPEC_SET_GOT too.
22620
22621 PR tree-optimization/88964
22622 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
22623 punt if HONOR_SNANS (chrec).
22624
22625 PR middle-end/89015
22626 * tree-nested.c (convert_nonlocal_reference_stmt,
22627 convert_local_reference_stmt, convert_tramp_reference_stmt,
22628 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
22629 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
22630 or GIMPLE_OMP_TASK.
22631
22632 PR tree-optimization/89027
22633 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
22634 for "omp simd array" variables.
22635
22636 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
22637
22638 PR target/88469
22639 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
22640 force the alignment of m_val.
22641
22642 2019-01-24 Richard Biener <rguenther@suse.de>
22643
22644 PR lto/87187
22645 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
22646 When in "legacy" debug mode make sure to reset self-origins.
22647
22648 2019-01-24 Martin Liska <mliska@suse.cz>
22649
22650 PR gcov-profile/88994
22651 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
22652 result will be always smaller or equal to the original.
22653 * gcov.c (mangle_name): Fix else branch where we should
22654 also copy to PTR and shift the pointer.
22655
22656 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
22657
22658 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
22659 * vr-values.c (find_case_label_ranges): Fix a comment typo.
22660
22661 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
22662
22663 * common/config/i386/i386-common.c
22664 (OPTION_MASK_ISA_ENQCMD_SET,
22665 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
22666 (ix86_handle_option): Handle -menqcmd.
22667 * config.gcc (enqcmdintrin.h): New header file.
22668 * config/i386/cpuid.h (bit_ENQCMD): New bit.
22669 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22670 -menqcmd.
22671 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
22672 function type.
22673 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
22674 __builtin_ia32_enqcmds): New builtins.
22675 * config/i386/i386-c.c (__ENQCMD__): New macro.
22676 * config/i386/i386-option.c (ix86_target_string): Add
22677 -menqcmd.
22678 (ix86_valid_target_attribute_inner_p): Likewise.
22679 * config/i386/i386-expand.c
22680 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
22681 IX86_BUILTIN_ENQCMDS.
22682 * config/i386/i386.h (TARGET_ENQCMD): New.
22683 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
22684 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
22685 (movdir64b_<mode>): Parameterize to enable share expansion code
22686 with ENQCMD in function ix86_expand_builtin.
22687 * config/i386/i386.opt: Add -menqcmd.
22688 * config/i386/immintrin.h: Include enqcmdintrin.h.
22689 * config/i386/enqcmdintrin.h: New intrinsic file.
22690 * doc/invoke.texi: Add -menqcmd.
22691
22692 2019-01-23 Bin Cheng <bin.cheng@arm.com>
22693 Steve Ellcey <sellcey@marvell.com>
22694
22695 PR target/85711
22696 * recog.c (address_operand): Return false on wrong mode for address.
22697 (constrain_operands): Check for mode with 'p' constraint.
22698
22699 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
22700
22701 PR target/88998
22702 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
22703 Disparage MMX alternative.
22704 (sse2_cvtpd2pi): Ditto.
22705 (sse2_cvttpd2pi): Ditto.
22706
22707 2019-01-23 David Malcolm <dmalcolm@redhat.com>
22708
22709 PR driver/89014
22710 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
22711 use-after-free of the result of
22712 aarch64_get_extension_string_for_isa_flags.
22713
22714 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22715
22716 PR c/44715
22717 * doc/extend.texi: Document break and continue behavior in
22718 statement expressions.
22719
22720 2019-01-23 Richard Biener <rguenther@suse.de>
22721
22722 PR tree-optimization/89008
22723 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
22724 not leave another stray operand.
22725
22726 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22727
22728 * BASE-VER: Bump to 9.0.1.
22729
22730 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
22731
22732 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
22733 thunk that returns by reference, use the type of the return object
22734 of the thunk instead of that of the alias to build the dereference.
22735
22736 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
22737
22738 * config/arc/atomic.md: Add operand to DMB instruction.
22739
22740 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22741
22742 PR tree-optimization/88964
22743 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
22744 build_zero_cst instead of build_int_cst. Return false for loop
22745 invariants which honor signed zeros.
22746
22747 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
22748
22749 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
22750
22751 2019-01-22 Jakub Jelinek <jakub@redhat.com>
22752
22753 PR target/88965
22754 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
22755 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
22756 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
22757
22758 PR middle-end/88968
22759 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
22760 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
22761
22762 PR target/87064
22763 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
22764 Disable for little endian.
22765
22766 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22767
22768 PR target/88469
22769 * config/arm/arm.c (arm_needs_double_word_align): Check
22770 DECL_BIT_FIELD_TYPE.
22771
22772 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
22773 H.J. Lu <hongjiu.lu@intel.com>
22774
22775 PR target/88909
22776 * config/i386/i386-builtin.def: Add mask2 to all builtin
22777 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
22778 SPECIAL_ARGS.
22779 * config/i386/i386.c (BDESC): Add mask2 to the definition.
22780 (BDESC_FIRST): Likewise.
22781 (define_builtin): Add an argument for mask2. Updated to handle
22782 both ix86_isa_flags and ix86_isa_flags2.
22783 (define_builtin_const): Likewise.
22784 (define_builtin_pure): Likewise.
22785 (define_builtin2): Deleted.
22786 (define_builtin_const2): Likewise.
22787 (builtin_description): Add a member, mask2.
22788 (bdesc_*): Add mask2 to builtin initializations.
22789 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
22790 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
22791 support.
22792 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
22793
22794 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
22795
22796 PR target/88954
22797 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
22798 noplt attribute.
22799
22800 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22801
22802 PR target/88469
22803 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
22804 alignment is dominated by a bitfield with 64-bit aligned base type.
22805 (arm_function_arg): Emit a warning if the alignment has changed since
22806 earlier GCC releases.
22807 (arm_function_arg_boundary): Likewise.
22808 (arm_setup_incoming_varargs): Likewise.
22809
22810 2019-01-22 Richard Biener <rguenther@suse.de>
22811
22812 PR tree-optimization/88862
22813 * graphite-scop-detection.c
22814 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
22815
22816 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
22817
22818 * doc/extend.tex (AMD GCN Function Attributes): New section.
22819 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
22820 * doc/invoke.texi (AMD GCN Options): New section.
22821 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
22822
22823 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
22824
22825 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
22826 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
22827
22828 2019-01-22 Jakub Jelinek <jakub@redhat.com>
22829
22830 PR tree-optimization/88044
22831 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
22832 is false in the first iteration, but !every_iteration, return false
22833 instead of true with niter->niter zero.
22834
22835 PR rtl-optimization/88904
22836 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
22837 any nonequal registers before processing BB_END (b).
22838
22839 PR target/88905
22840 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
22841 GET_MODE (op0).
22842 (expand_binop_directly, expand_doubleword_clz,
22843 expand_doubleword_popcount, expand_ctz, expand_ffs,
22844 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
22845
22846 PR rtl-optimization/49429
22847 PR target/49454
22848 PR rtl-optimization/86334
22849 PR target/88906
22850 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
22851 addressable from here...
22852 (emit_block_op_via_libcall): ... to here.
22853
22854 2019-01-22 Richard Biener <rguenther@suse.de>
22855
22856 * tree-vect-loop.c (vect_analyze_loop_operations): Use
22857 auto_vec for cost vector to fix memleak.
22858 (vectorize_fold_left_reduction): Properly gather SLP defs.
22859 (vectorizable_comparison): Do not swap operands to properly
22860 gather SLP defs.
22861
22862 2019-01-22 Alan Modra <amodra@gmail.com>
22863
22864 PR target/88614
22865 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
22866 stays a reg. Allow a const_int.
22867 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
22868 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
22869 (IS_NOMARK_TLSGETADDR): Define.
22870 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
22871 (rs6000_output_tlsargs): New function.
22872 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
22873 __tls_get_addr call takes an arg.
22874 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
22875 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
22876 delete split..
22877 (call_value_nonlocal_sysv): ..or here, delete split.
22878 (tls_gdld_nomark): Delete.
22879 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
22880 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
22881 (call_value_nonlocal_sysv): Likewise.
22882 (call_value_nonlocal_sysv_secure): Likewise.
22883 (call_value_nonlocal_aix): Likewise.
22884 (call_value_indirect_aix): Likewise.
22885 (call_value_indirect_elfv2): Likewise.
22886 (call_value_local32, call_value_local64): Disable for no-mark tls.
22887 (call_value_local_aix): Likewise.
22888
22889 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
22890
22891 PR target/88938
22892 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
22893 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
22894
22895 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
22896
22897 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
22898 string contents as hash_map keys.
22899
22900 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22901
22902 PR c/88928
22903 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
22904 for rvalue context. Handle rvalues correctly. Use min_align_of_type
22905 instead of TYPE_ALIGN.
22906 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
22907 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
22908 pointer from TYPE_STUB_DECL.
22909
22910 2019-01-21 Richard Biener <rguenther@suse.de>
22911
22912 PR tree-optimization/88934
22913 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
22914 at the possibly non-constant operand.
22915 (vect_get_constant_vectors): Adjust.
22916
22917 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
22918
22919 PR target/71659
22920 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
22921 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
22922 instead of _X86INTRIN_H_INCLUDED.
22923 * onfig/i386/clwbintrin.h: Likewise.
22924 * config/i386/pkuintrin.h: Likewise.
22925 * config/i386/prfchwintrin.h: Likewise.
22926 * config/i386/rdseedintrin.h: Likewise.
22927 * config/i386/wbnoinvdintrin.h: Likewise.
22928 * config/i386/xsavecintrin.h: Likewise.
22929 * config/i386/xsavesintrin.h: Likewise.
22930 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
22931 * config/i386/xsaveintrin.h: Likewise.
22932 * config/i386/xsaveoptintrin.h: Likewise.
22933 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
22934 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
22935 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
22936 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
22937 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
22938 * config/i386/immintrin.h: Here.
22939
22940 2019-01-20 Martin Jambor <mjambor@suse.cz>
22941
22942 PR ipa/87615
22943 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
22944 with aa_walk_budget.
22945 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
22946 aa_walk_budget_p parameter.
22947 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
22948 walk. Updated all callers.
22949 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
22950 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
22951 unmodified_parm.
22952 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
22953 parameter info. Extract info from fbi. Pass fbi to recursive calls
22954 and to unmodified_parm.
22955 (phi_result_unknown_predicate): New parameter fbi, removed parameter
22956 info, updated call to will_be_nonconstant_expr_predicate.
22957 (param_change_prob): New parameter fbi, limit AA walking.
22958 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
22959 calls to various above functions.
22960 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
22961 parameter. Use it to limit AA walking.
22962 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
22963 fbi, limit AA walk.
22964 (detect_type_change): New parameter fbi, pass it on to
22965 detect_type_change_from_memory_writes.
22966 (detect_type_change_ssa): Likewise.
22967 (aa_overwalked): Removed.
22968 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
22969 accordingly, adjust to the neew AA limiting scheme.
22970 (parm_ref_data_preserved_p): Likewise.
22971 (ipa_compute_jump_functions_for_edge): Adjust call to
22972 get_dynamic_type.
22973 (ipa_analyze_call_uses): Likewise.
22974 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
22975 (ipa_analyze_node): Initialize aa_walk_budget.
22976 (ipcp_transform_function): Likewise.
22977 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
22978 to get_dynamic_type.
22979
22980 2019-01-19 Jakub Jelinek <jakub@redhat.com>
22981
22982 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
22983 outside of #if CHECKING_P code.
22984
22985 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
22986
22987 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
22988 New function, split out from...
22989 (loop_versioning::analyze_stride): ...here.
22990 (loop_versioning::find_per_loop_multiplication): Use gassign.
22991 (loop_versioning::analyze_term_using_scevs): Return a success code.
22992 (loop_versioning::analyze_arbitrary_term): New function.
22993 (loop_versioning::analyze_address_fragment): Use
22994 analyze_arbitrary_term if all else fails.
22995
22996 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
22997
22998 PR target/88892
22999 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
23000 operands.
23001
23002 2019-01-18 Richard Biener <rguenther@suse.de>
23003
23004 PR tree-optimization/88903
23005 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
23006 scalar stmts a SLP shift amount is composed of when detecting
23007 shifts by scalars.
23008
23009 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
23010
23011 PR target/88799
23012 * config/arm/arm-cpus.in (mp): New feature.
23013 (sec): New feature.
23014 (fgroup ARMv7ve): Add mp and sec features.
23015 (arch armv7-a): Add options to allow mp and sec extensions.
23016 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
23017 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
23018 extenstions to the base architecture.
23019 (cpu cortex-a8): Add sec extension to the base architecture.
23020 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
23021 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
23022 variants down to the base v7-a varaint.
23023 * config/arm/t-multilib (v7_a_arch_variants): New variable.
23024 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
23025 of permitted extensions for -march=armv7-a and for
23026 -mcpu=generic-armv7-a.
23027
23028 2019-01-18 Martin Liska <mliska@suse.cz>
23029
23030 * params.def: Fix comment.
23031 * tree-profile.c (gimple_init_gcov_profiler): Bump function
23032 name.
23033 (gimple_gen_ic_func_profiler): Likewise.
23034
23035 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23036
23037 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
23038 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
23039 and put in error checks for stack protector guard options.
23040 (aarch64_stack_protect_guard): New.
23041 (TARGET_STACK_PROTECT_GUARD): Define.
23042 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
23043 (reg_stack_protect_address<mode>): New.
23044 (stack_protect_set): Adjust for SSP_GLOBAL.
23045 (stack_protect_test): Likewise.
23046 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
23047 (-mstack-protector-guard): Likewise.
23048 (-mstack-protector-guard-offset): Likewise.
23049
23050 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23051
23052 PR tree-optimization/86214
23053 * tree-inline.h (struct copy_body_data): Add
23054 add_clobbers_to_eh_landing_pads member.
23055 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
23056 (copy_edges_for_bb): Call it if EH edge destination is <
23057 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
23058 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
23059 if flag_stack_reuse != SR_NONE and clear it afterwards.
23060
23061 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
23062
23063 PR target/85596
23064 * doc/install.texi (with-multilib-list): Document for aarch64.
23065
23066 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23067
23068 PR target/88734
23069 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
23070 (("..."))) with ("...").
23071
23072 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
23073
23074 * doc/extend.texi (Built-in Functions for Memory Model Aware
23075 Atomic Operations): Document atomic fetch and nand.
23076
23077 2019-01-18 Martin Liska <mliska@suse.cz>
23078 Richard Biener <rguenther@suse.de>
23079
23080 PR middle-end/88587
23081 * cgraph.h (create_version_clone_with_body): Add new argument
23082 with attributes.
23083 * cgraphclones.c (cgraph_node::create_version_clone): Add
23084 DECL_ATTRIBUTES to a newly created decl. And call
23085 valid_attribute_p so that proper cl_target_optimization_node
23086 is set for the newly created declaration.
23087 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
23088 for declaration.
23089 (expand_target_clones): Do not call valid_attribute_p, it must
23090 be already done.
23091 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
23092 vector types.
23093
23094 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23095
23096 PR target/88734
23097 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
23098 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
23099 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
23100
23101 2019-01-17 Martin Sebor <msebor@redhat.com>
23102
23103 PR middle-end/88273
23104 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
23105 Handle anti-ranges the same as no range at all.
23106
23107 2018-01-17 Steve Ellcey <sellcey@cavium.com>
23108
23109 * config/aarch64/aarch64.c (cgraph.h): New include.
23110 (intl.h): New include.
23111 (supported_simd_type): New function.
23112 (currently_supported_simd_type): Ditto.
23113 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
23114 (aarch64_simd_clone_adjust): Ditto.
23115 (aarch64_simd_clone_usable): Ditto.
23116 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
23117 (TARGET_SIMD_CLONE_ADJUST): Ditto.
23118 (TARGET_SIMD_CLONE_USABLE): Ditto.
23119 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
23120 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
23121 call.
23122
23123 2019-01-17 Martin Sebor <msebor@redhat.com>
23124
23125 PR tree-optimization/88800
23126 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
23127 NO_WARNING bit here. Avoid folding out-of-bounds calls.
23128 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
23129 redundant argument. Add new argument and issue diagnostics under
23130 its control. Detect out-of-bounds access even with warnings
23131 disabled.
23132 (check_bounds_or_overlap): Change return type. Add argument.
23133 (wrestrict_dom_walker::check_call): Adjust.
23134 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
23135 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
23136 check_bounds_or_overlap's return value.
23137 (handle_builtin_stxncpy): Same.
23138 (handle_builtin_strcat): Same.
23139
23140 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23141 Kwok Cheung Yeung <kcy@codesourcery.com>
23142 Julian Brown <julian@codesourcery.com>
23143 Tom de Vries <tom@codesourcery.com>
23144
23145 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
23146
23147 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23148
23149 * doc/sourcebuild.texi: Document dg-require-effective-target
23150 llvm_binutils and offload_gcn.
23151
23152 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23153 Kwok Cheung Yeung <kcy@codesourcery.com>
23154 Julian Brown <julian@codesourcery.com>
23155 Tom de Vries <tom@codesourcery.com>
23156
23157 * doc/sourcebuild.texi: Document dg-required-effective-target
23158 exceptions.
23159
23160 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23161 Kwok Cheung Yeung <kcy@codesourcery.com>
23162 Julian Brown <julian@codesourcery.com>
23163 Tom de Vries <tom@codesourcery.com>
23164 Jan Hubicka <hubicka@ucw.cz>
23165 Martin Jambor <mjambor@suse.cz>
23166
23167 * config.gcc: Add amdgcn*-*-amdhsa configuration.
23168 * configure.ac: Check for dlopen.
23169 * configure: Regenerate.
23170
23171 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23172 Kwok Cheung Yeung <kcy@codesourcery.com>
23173 Julian Brown <julian@codesourcery.com>
23174 Tom de Vries <tom@codesourcery.com>
23175 Jan Hubicka <hubicka@ucw.cz>
23176 Martin Jambor <mjambor@suse.cz>
23177
23178 * common/config/gcn/gcn-common.c: New file.
23179 * config/gcn/driver-gcn.c: New file.
23180 * config/gcn/gcn-builtins.def: New file.
23181 * config/gcn/gcn-hsa.h: New file.
23182 * config/gcn/gcn-modes.def: New file.
23183 * config/gcn/gcn-opts.h: New file.
23184 * config/gcn/gcn-passes.def: New file.
23185 * config/gcn/gcn-protos.h: New file.
23186 * config/gcn/gcn-run.c: New file.
23187 * config/gcn/gcn-tree.c: New file.
23188 * config/gcn/gcn.c: New file.
23189 * config/gcn/gcn.h: New file.
23190 * config/gcn/gcn.opt: New file.
23191 * config/gcn/t-gcn-hsa: New file.
23192
23193 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23194 Kwok Cheung Yeung <kcy@codesourcery.com>
23195 Julian Brown <julian@codesourcery.com>
23196 Tom de Vries <tom@codesourcery.com>
23197 Jan Hubicka <hubicka@ucw.cz>
23198 Martin Jambor <mjambor@suse.cz>
23199
23200 * config/gcn/constraints.md: New file.
23201 * config/gcn/gcn-valu.md: New file.
23202 * config/gcn/gcn.md: New file.
23203 * config/gcn/predicates.md: New file.
23204
23205 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
23206
23207 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23208 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23209 (stmt_uses_0_or_null_in_undefined_way): Likewise.
23210 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23211
23212 2019-01-17 Tamar Christina <tamar.christina@arm.com>
23213
23214 PR target/88851
23215 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23216 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23217 it and document registers.
23218
23219 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23220
23221 * config/aarch64/aarch64.c (ares_tunings): Define.
23222 * config/aarch64/aarch64-cores.def (ares): Use the above.
23223
23224 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23225
23226 PR target/88794
23227 Revert:
23228 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
23229
23230 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23231 (_mm512_fixupimm_round_pd): Update parameters and builtin.
23232 (_mm512_maskz_fixupimm_round_pd): Ditto.
23233 (_mm512_fixupimm_round_ps): Ditto.
23234 (_mm512_maskz_fixupimm_round_ps): Ditto.
23235 (_mm_fixupimm_round_sd): Ditto.
23236 (_mm_maskz_fixupimm_round_sd): Ditto.
23237 (_mm_fixupimm_round_ss): Ditto.
23238 (_mm_maskz_fixupimm_round_ss): Ditto.
23239 (_mm512_fixupimm_pd): Ditto.
23240 (_mm512_maskz_fixupimm_pd): Ditto.
23241 (_mm512_fixupimm_ps): Ditto.
23242 (_mm512_maskz_fixupimm_ps): Ditto.
23243 (_mm_fixupimm_sd): Ditto.
23244 (_mm_maskz_fixupimm_sd): Ditto.
23245 (_mm_fixupimm_ss): Ditto.
23246 (_mm_maskz_fixupimm_ss): Ditto.
23247 (_mm512_mask_fixupimm_round_pd): Update builtin.
23248 (_mm512_mask_fixupimm_round_ps): Ditto.
23249 (_mm_mask_fixupimm_round_sd): Ditto.
23250 (_mm_mask_fixupimm_round_ss): Ditto.
23251 (_mm512_mask_fixupimm_pd): Ditto.
23252 (_mm512_mask_fixupimm_ps): Ditto.
23253 (_mm_mask_fixupimm_sd): Ditto.
23254 (_mm_mask_fixupimm_ss): Ditto.
23255 * config/i386/avx512vlintrin.h:
23256 (_mm256_fixupimm_pd): Update parameters and builtin.
23257 (_mm256_maskz_fixupimm_pd): Ditto.
23258 (_mm256_fixupimm_ps): Ditto.
23259 (_mm256_maskz_fixupimm_ps): Ditto.
23260 (_mm_fixupimm_pd): Ditto.
23261 (_mm_maskz_fixupimm_pd): Ditto.
23262 (_mm_fixupimm_ps): Ditto.
23263 (_mm_maskz_fixupimm_ps): Ditto.
23264 (_mm256_mask_fixupimm_pd): Update builtin.
23265 (_mm256_mask_fixupimm_ps): Ditto.
23266 (_mm_mask_fixupimm_pd): Ditto.
23267 (_mm_mask_fixupimm_ps): Ditto.
23268 * config/i386/i386-builtin-types.def: Add new types and remove
23269 useless ones.
23270 * config/i386/i386-builtin.def: Update builtin definitions.
23271 * config/i386/i386.c: Handle new builtin types and remove useless ones.
23272 * config/i386/sse.md: Update VFIXUPIMM* patterns.
23273 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23274 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23275 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23276 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23277 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23278 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23279 * config/i386/subst.md:
23280 (round_saeonly_sd_mask_operand4): Add new subst_attr.
23281 (round_saeonly_sd_mask_op4): Ditto.
23282 (round_saeonly_expand_operand5): Ditto.
23283 (round_saeonly_expand): Update.
23284
23285 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23286
23287 PR target/88794
23288 Revert:
23289 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
23290
23291 * config/i386/sse.md: Combine VFIXUPIMM* patterns
23292 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23293 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23294 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23295 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23296 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23297 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23298
23299 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23300
23301 PR target/88794
23302 Revert:
23303 2018-12-15 Jakub Jelinek <jakub@redhat.com>
23304
23305 PR target/88489
23306 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23307 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23308 instead of UNSPEC_FIXUPIMM.
23309
23310 2019-01-17 Richard Biener <rguenther@suse.de>
23311
23312 PR lto/86736
23313 * dwarf2out.c (want_pubnames): Never generate pubnames sections
23314 and friends for the LTO part of debug info.
23315
23316 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23317
23318 PR tree-optimization/86214
23319 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23320 if x == y.
23321
23322 PR rtl-optimization/88870
23323 * dce.c (deletable_insn_p): Never delete const/pure calls that can
23324 throw if we can't alter the cfg or delete dead exceptions.
23325 (mark_insn): Don't call find_call_stack_args for such calls.
23326
23327 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
23328
23329 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23330 prototypes for vec_st.
23331 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23332 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23333 mainly on signed/unsigned long long and double.
23334
23335 2019-01-16 David Malcolm <dmalcolm@redhat.com>
23336
23337 PR target/88861
23338 * combine.c (delete_noop_moves): Convert to "bool" return,
23339 returning true if any edges are eliminated.
23340 (combine_instructions): Also return true if delete_noop_moves
23341 returns true.
23342
23343 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23344
23345 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23346 correct max nunits for endian swap.
23347 (aarch64_expand_fcmla_builtin): Correct subreg code.
23348 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23349 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23350 lane endianness.
23351
23352 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
23353
23354 * config/alpha/alpha.c (alpha_gimplify_va_arg):
23355 Handle split indirect COMPLEX_TYPE arguments.
23356
23357 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
23358
23359 PR target/86891
23360 * config/aarch64/aarch64-modes.def: Add comment about how the carry
23361 bit is set by add and compare.
23362 (CC_ADC): New CC_MODE.
23363 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23364 to cache the code and mode of X. Adjust the shape of a CC_Cmode
23365 comparison. Add detection for CC_ADCmode.
23366 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
23367 CC_ADCmode.
23368 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23369 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23370 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
23371 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
23372 to eliminate the need for zero-extending the operands.
23373 (add<mode>3_compareC_imm): Delete. Merge into ...
23374 (add<mode>3_compareC): ... this. Restructure the comparison to
23375 eliminate the need for zero-extending the operands.
23376 (add<mode>3_carryin): Use LTU for the overflow detection.
23377 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23378 Reexpress comparison for overflow.
23379 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23380 (add<mode>3_carryinC): Likewise.
23381 (add<mode>3_carryinV): Use LTU for carry between partials.
23382 * config/aarch64/predicates.md (aarch64_carry_operation): Update
23383 handling of CC_Cmode and add CC_ADCmode.
23384 (aarch64_borrow_operation): Likewise.
23385
23386 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23387
23388 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23389 Remove patternmode.
23390 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23391 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23392 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23393 Remove endianness conversion.
23394
23395 2019-01-16 Martin Liska <mliska@suse.cz>
23396
23397 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
23398 for GCC driver.
23399 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
23400 a new argument.
23401 * gcc.c (add_sysrooted_hdrs_prefix): New function.
23402 (path_prefix_reset): Move up in the source file.
23403 (find_fortran_preinclude_file): Make complex search for the
23404 fortran header files.
23405
23406 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
23407
23408 * godump.c (go_output_typedef): When outputting a typedef, refer
23409 to the underlying type by its name and not its structure.
23410
23411 2019-01-15 David Malcolm <dmalcolm@redhat.com>
23412
23413 PR c++/88795
23414 * tree.c (build_function_type): Assert that arg_types is not
23415 error_mark_node.
23416
23417 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
23418
23419 PR inline-asm/52813
23420 * doc/extend.texi: Document that listing the stack pointer in the
23421 clobber list of an asm is a deprecated feature.
23422 * common.opt (Wdeprecated): Moved from c-family/c.opt.
23423 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
23424 warning instead of an error for clobbers of the stack pointer.
23425 Add a note explaining why.
23426
23427 2019-01-15 Richard Biener <rguenther@suse.de>
23428
23429 PR debug/88046
23430 * dwarf2out.c (gen_member_die): Do not generate inheritance
23431 DIEs late.
23432
23433 2019-01-15 Richard Biener <rguenther@suse.de>
23434
23435 PR tree-optimization/88855
23436 * tree-if-conv.c (combine_blocks): Collect
23437 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
23438
23439 2019-01-15 Tom de Vries <tdevries@suse.de>
23440
23441 PR target/80547
23442 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
23443 lhs == NULL_TREE for gang-level reduction.
23444
23445 2019-01-15 Richard Biener <rguenther@suse.de>
23446 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23447
23448 PR ipa/88788
23449 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
23450 return true if SSA_NAME is already marked in visited bitmap.
23451 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
23452
23453 2019-01-15 Jakub Jelinek <jakub@redhat.com>
23454
23455 PR tree-optimization/88775
23456 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
23457 equal == 0 equality pointer comparisons some more if compared in
23458 integral types and either one points to an automatic var and the
23459 other to a global, or we can prove at least one points to the middle
23460 or both point to start or both point to end.
23461
23462 2019-01-14 Andi Kleen <ak@linux.intel.com>
23463
23464 * Makefile.in: Lower autofdo sampling rate by 10x.
23465 * Makefile.tpl: Dito.
23466
23467 2019-01-14 Tom Honermann <tom@honermann.net>
23468
23469 * defaults.h: Define CHAR8_TYPE.
23470
23471 2019-01-14 Martin Sebor <msebor@redhat.com>
23472
23473 PR target/88638
23474 * doc/extend.texi (Darwin Format Checks): Clarify.
23475
23476 2019-01-14 Richard Biener <rguenther@suse.de>
23477
23478 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
23479 whether we are in (simplify ...) or (match ...) context.
23480
23481 2019-01-14 Jakub Jelinek <jakub@redhat.com>
23482
23483 PR rtl-optimization/88796
23484 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
23485 * cfgexpand.c (stack_protect_prologue): Initialize
23486 crtl->stack_protect_guard_decl.
23487 * function.c (stack_protect_epilogue): Use it instead of calling
23488 targetm.stack_protect_guard again.
23489 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
23490 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
23491 crtl->stack_protect_guard_decl.
23492 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
23493 on the returned MEM_EXPR.
23494
23495 2019-01-12 Tom de Vries <tdevries@suse.de>
23496
23497 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
23498 vector length using -fopenacc-dim.
23499
23500 2019-01-12 Tom de Vries <tdevries@suse.de>
23501
23502 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
23503 lengths into account.
23504
23505 2019-01-12 Svante Signell <svante.signell@gmail.com>
23506
23507 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
23508 (TARGET_CAN_SPLIT_STACK): Define.
23509 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
23510
23511 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
23512
23513 * params.def (inline-unit-growth): Set to 40.
23514
23515 2019-01-12 Jakub Jelinek <jakub@redhat.com>
23516
23517 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
23518
23519 2019-01-12 Tom de Vries <tdevries@suse.de>
23520
23521 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
23522 region calling vector-partitionable routine, set default_vector_length
23523 to WARP_SIZE.
23524
23525 2019-01-12 Tom de Vries <tdevries@suse.de>
23526
23527 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
23528 variable default_vector_length.
23529
23530 2019-01-12 Tom de Vries <tdevries@suse.de>
23531
23532 PR middle-end/88703
23533 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
23534 from oacc_default_dims, as oacc_validate_dims would do it, and apply
23535 dimensions limits.
23536
23537 2019-01-12 Tom de Vries <tdevries@suse.de>
23538
23539 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
23540 (nvptx_goacc_validate_dims): Add used parameter.
23541 * doc/tm.texi: Regenerate.
23542 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
23543 argument to call to targetm.goacc.validate_dims.
23544 (default_goacc_validate_dims): Add used
23545 parameter.
23546 * target.def (validate_dims): Add used parameter in DEFHOOK.
23547 * targhooks.h (default_goacc_validate_dims): Add used parameter.
23548
23549 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23550
23551 PR middle-end/85956
23552 PR lto/88733
23553 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
23554 field.
23555 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
23556 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
23557 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
23558 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
23559
23560 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
23561
23562 PR rtl-optimization/87305
23563 * lra-assigns.c
23564 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
23565 for little endian pseudos used as paradoxical subreg.
23566
23567 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23568
23569 PR tree-optimization/88693
23570 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
23571 for STRING_CSTs that don't contain any NUL characters in the first
23572 TREE_STRING_LENGTH bytes.
23573
23574 2019-01-11 Alan Modra <amodra@gmail.com>
23575
23576 PR 88777
23577 PR 88614
23578 * genattrtab.c (min_fn): Don't translate values.
23579 (min_attr_value): Return INT_MAX when the value can't be calculated.
23580 Return minimum among any values that can be calculated.
23581 (max_attr_value): Adjust.
23582
23583 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23584
23585 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
23586
23587 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23588
23589 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23590 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
23591 (aarch64_return_call_with_max_clobbers): New function.
23592 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
23593 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
23594 argument.
23595 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
23596 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
23597 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
23598 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
23599 * cselib.c (cselib_process_insn): Add argument to
23600 targetm.hard_regno_call_part_clobbered call.
23601 * ira-conflicts.c (ira_build_conflicts): Ditto.
23602 * ira-costs.c (ira_tune_allocno_costs): Ditto.
23603 * lra-constraints.c (inherit_reload_reg): Ditto.
23604 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
23605 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
23606 argument. Call targetm.return_call_with_max_clobbers.
23607 Add argument to targetm.hard_regno_call_part_clobbered call.
23608 (calls_have_same_clobbers_p): New function.
23609 (process_bb_lives): Add call_insn and last_call_insn variables.
23610 Pass call_insn to check_pseudos_live_through_calls.
23611 Modify if stmt to check targetm.return_call_with_max_clobbers.
23612 Update setting of flush variable.
23613 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
23614 to false.
23615 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
23616 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
23617 targetm.hard_regno_call_part_clobbered call.
23618 * reginfo.c (choose_hard_reg_mode): Ditto.
23619 * regrename.c (check_new_reg_p): Ditto.
23620 * reload.c (find_equiv_reg): Ditto.
23621 * reload1.c (emit_reload_insns): Ditto.
23622 * sched-deps.c (deps_analyze_insn): Ditto.
23623 * sel-sched.c (init_regs_for_mode): Ditto.
23624 (mark_unavailable_hard_regs): Ditto.
23625 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
23626 * target.def (hard_regno_call_part_clobbered): Add insn argument.
23627 (return_call_with_max_clobbers): New target function.
23628 * doc/tm.texi: Regenerate.
23629 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
23630 * hooks.c (hook_bool_uint_mode_false): Change to
23631 hook_bool_insn_uint_mode_false.
23632 * hooks.h (hook_bool_uint_mode_false): Ditto.
23633
23634 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23635
23636 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23637 (aarch64_remove_extra_call_preserved_regs): New function.
23638 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
23639 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
23640 * doc/tm.texi: Regenerate.
23641 * final.c (get_call_reg_set_usage): Call new hook.
23642 * target.def (remove_extra_call_preserved_regs): New hook.
23643 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
23644 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
23645
23646 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23647
23648 PR bootstrap/88714
23649 * passes.c (finish_optimization_passes): Call print_combine_total_stats
23650 inside of pass_combine_1 dump rather than pass_profile_1.
23651
23652 2019-01-11 Tom de Vries <tdevries@suse.de>
23653
23654 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
23655 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
23656 (PTX_NUM_PER_WORKER_BARRIERS): Define.
23657 (nvptx_apply_dim_limits): Prevent vector_length 64 and
23658 num_workers 16.
23659
23660 2019-01-11 Tom de Vries <tdevries@suse.de>
23661
23662 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
23663
23664 2019-01-11 Jan Beulich <jbeulich@suse.com>
23665
23666 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
23667 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
23668 sse2_cvtsi2sd): Add {l}.
23669 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
23670 syntax.
23671
23672 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23673
23674 PR target/88785
23675 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
23676 define_expand.
23677 (*float<floatunssuffix>v2div2sf2): New define_insn.
23678 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
23679 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
23680 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
23681 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
23682 match_operands with "const0_operand" "C".
23683
23684 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23685
23686 * config/aarch64/aarch64-builtins.c
23687 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
23688 (aarch64_init_simd_builtins): ...Here
23689
23690 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
23691
23692 PR rtl-optimization/87305
23693 * lra-assigns.c
23694 (setup_live_pseudos_and_spill_after_risky_transforms): Check
23695 allocation for big endian pseudos used as paradoxical subregs and
23696 spill them if it is wrong.
23697 * lra-constraints.c (lra_constraints): Add a comment.
23698
23699 2019-01-10 Richard Biener <rguenther@suse.de>
23700
23701 PR tree-optimization/88792
23702 * tree-ssa-pre.c (get_representative_for): Do not return a
23703 value-number here.
23704
23705 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23706
23707 PR middle-end/84877
23708 PR bootstrap/88450
23709 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
23710 (assign_parm_setup_block): Do the argument slot realignment here
23711 instead.
23712
23713 2019-01-10 Stefan Agner <stefan@agner.ch>
23714
23715 PR target/88648
23716 * config/arm/arm.c (arm_option_override_internal): Force
23717 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
23718
23719 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23720
23721 PR c/88568
23722 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
23723 DECL_EXTERNAL.
23724
23725 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23726
23727 * config/arm/arm-builtins.c
23728 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
23729 (MAC_LANE_PAIR_QUALIFIERS): New.
23730 (arm_expand_builtin_args): Use it.
23731 (arm_expand_builtin_1): Likewise.
23732 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
23733 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
23734 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
23735 * config/arm/arm_neon.h:
23736 (vcadd_rot90_f16): New.
23737 (vcaddq_rot90_f16): New.
23738 (vcadd_rot270_f16): New.
23739 (vcaddq_rot270_f16): New.
23740 (vcmla_f16): New.
23741 (vcmlaq_f16): New.
23742 (vcmla_lane_f16): New.
23743 (vcmla_laneq_f16): New.
23744 (vcmlaq_lane_f16): New.
23745 (vcmlaq_laneq_f16): New.
23746 (vcmla_rot90_f16): New.
23747 (vcmlaq_rot90_f16): New.
23748 (vcmla_rot90_lane_f16): New.
23749 (vcmla_rot90_laneq_f16): New.
23750 (vcmlaq_rot90_lane_f16): New.
23751 (vcmlaq_rot90_laneq_f16): New.
23752 (vcmla_rot180_f16): New.
23753 (vcmlaq_rot180_f16): New.
23754 (vcmla_rot180_lane_f16): New.
23755 (vcmla_rot180_laneq_f16): New.
23756 (vcmlaq_rot180_lane_f16): New.
23757 (vcmlaq_rot180_laneq_f16): New.
23758 (vcmla_rot270_f16): New.
23759 (vcmlaq_rot270_f16): New.
23760 (vcmla_rot270_lane_f16): New.
23761 (vcmla_rot270_laneq_f16): New.
23762 (vcmlaq_rot270_lane_f16): New.
23763 (vcmlaq_rot270_laneq_f16): New.
23764 (vcadd_rot90_f32): New.
23765 (vcaddq_rot90_f32): New.
23766 (vcadd_rot270_f32): New.
23767 (vcaddq_rot270_f32): New.
23768 (vcmla_f32): New.
23769 (vcmlaq_f32): New.
23770 (vcmla_lane_f32): New.
23771 (vcmla_laneq_f32): New.
23772 (vcmlaq_lane_f32): New.
23773 (vcmlaq_laneq_f32): New.
23774 (vcmla_rot90_f32): New.
23775 (vcmlaq_rot90_f32): New.
23776 (vcmla_rot90_lane_f32): New.
23777 (vcmla_rot90_laneq_f32): New.
23778 (vcmlaq_rot90_lane_f32): New.
23779 (vcmlaq_rot90_laneq_f32): New.
23780 (vcmla_rot180_f32): New.
23781 (vcmlaq_rot180_f32): New.
23782 (vcmla_rot180_lane_f32): New.
23783 (vcmla_rot180_laneq_f32): New.
23784 (vcmlaq_rot180_lane_f32): New.
23785 (vcmlaq_rot180_laneq_f32): New.
23786 (vcmla_rot270_f32): New.
23787 (vcmlaq_rot270_f32): New.
23788 (vcmla_rot270_lane_f32): New.
23789 (vcmla_rot270_laneq_f32): New.
23790 (vcmlaq_rot270_lane_f32): New.
23791 (vcmlaq_rot270_laneq_f32): New.
23792 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
23793 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
23794 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
23795 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
23796 vcmlaq_lane270): New.
23797 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23798 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
23799 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
23800 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
23801 (arm_option_reconfigure_globals): Use them.
23802 * config/arm/iterators.md (VDF, VQ_HSF): New.
23803 (VCADD, VCMLA): New.
23804 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
23805 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
23806 New.
23807 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
23808 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
23809
23810 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23811
23812 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
23813 Add qualifier_lane_pair_index.
23814 (emit-rtl.h): Include.
23815 (TYPES_QUADOP_LANE_PAIR): New.
23816 (aarch64_simd_expand_args): Use it.
23817 (aarch64_simd_expand_builtin): Likewise.
23818 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
23819 New.
23820 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
23821 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
23822 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
23823 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
23824 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
23825 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
23826 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
23827 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
23828 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
23829 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
23830 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
23831 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
23832 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
23833 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
23834 Add __ARM_FEATURE_COMPLEX.
23835 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
23836 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
23837 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
23838 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
23839 fcmlaq_lane270): New.
23840 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23841 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
23842 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
23843 * config/aarch64/arm_neon.h:
23844 (vcadd_rot90_f16): New.
23845 (vcaddq_rot90_f16): New.
23846 (vcadd_rot270_f16): New.
23847 (vcaddq_rot270_f16): New.
23848 (vcmla_f16): New.
23849 (vcmlaq_f16): New.
23850 (vcmla_lane_f16): New.
23851 (vcmla_laneq_f16): New.
23852 (vcmlaq_lane_f16): New.
23853 (vcmlaq_rot90_lane_f16): New.
23854 (vcmla_rot90_laneq_f16): New.
23855 (vcmla_rot90_lane_f16): New.
23856 (vcmlaq_rot90_f16): New.
23857 (vcmla_rot90_f16): New.
23858 (vcmlaq_laneq_f16): New.
23859 (vcmla_rot180_laneq_f16): New.
23860 (vcmla_rot180_lane_f16): New.
23861 (vcmlaq_rot180_f16): New.
23862 (vcmla_rot180_f16): New.
23863 (vcmlaq_rot90_laneq_f16): New.
23864 (vcmlaq_rot270_laneq_f16): New.
23865 (vcmlaq_rot270_lane_f16): New.
23866 (vcmla_rot270_laneq_f16): New.
23867 (vcmlaq_rot270_f16): New.
23868 (vcmla_rot270_f16): New.
23869 (vcmlaq_rot180_laneq_f16): New.
23870 (vcmlaq_rot180_lane_f16): New.
23871 (vcmla_rot270_lane_f16): New.
23872 (vcadd_rot90_f32): New.
23873 (vcaddq_rot90_f32): New.
23874 (vcaddq_rot90_f64): New.
23875 (vcadd_rot270_f32): New.
23876 (vcaddq_rot270_f32): New.
23877 (vcaddq_rot270_f64): New.
23878 (vcmla_f32): New.
23879 (vcmlaq_f32): New.
23880 (vcmlaq_f64): New.
23881 (vcmla_lane_f32): New.
23882 (vcmla_laneq_f32): New.
23883 (vcmlaq_lane_f32): New.
23884 (vcmlaq_laneq_f32): New.
23885 (vcmla_rot90_f32): New.
23886 (vcmlaq_rot90_f32): New.
23887 (vcmlaq_rot90_f64): New.
23888 (vcmla_rot90_lane_f32): New.
23889 (vcmla_rot90_laneq_f32): New.
23890 (vcmlaq_rot90_lane_f32): New.
23891 (vcmlaq_rot90_laneq_f32): New.
23892 (vcmla_rot180_f32): New.
23893 (vcmlaq_rot180_f32): New.
23894 (vcmlaq_rot180_f64): New.
23895 (vcmla_rot180_lane_f32): New.
23896 (vcmla_rot180_laneq_f32): New.
23897 (vcmlaq_rot180_lane_f32): New.
23898 (vcmlaq_rot180_laneq_f32): New.
23899 (vcmla_rot270_f32): New.
23900 (vcmlaq_rot270_f32): New.
23901 (vcmlaq_rot270_f64): New.
23902 (vcmla_rot270_lane_f32): New.
23903 (vcmla_rot270_laneq_f32): New.
23904 (vcmlaq_rot270_lane_f32): New.
23905 (vcmlaq_rot270_laneq_f32): New.
23906 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
23907 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
23908 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
23909 (FCADD, FCMLA): New.
23910 (rot): New.
23911 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
23912
23913 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
23914
23915 PR other/16615
23916
23917 * config/pa/pa.c: Change "can not" to "cannot".
23918 * gimple-ssa-evrp-analyze.c: Likewise.
23919 * ipa-icf.c: Likewise.
23920 * ipa-polymorphic-call.c: Likewise.
23921 * ipa-pure-const.c: Likewise.
23922 * lra-constraints.c: Likewise.
23923 * lra-remat.c: Likewise.
23924 * reload1.c: Likewise.
23925 * reorg.c: Likewise.
23926 * tree-ssa-uninit.c: Likewise.
23927
23928 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
23929
23930 PR other/16615
23931
23932 * Makefile.in: Mechanically replace "can not" with "cannot".
23933 * alias.c: Likewise.
23934 * builtins.c: Likewise.
23935 * calls.c: Likewise.
23936 * cgraph.c: Likewise.
23937 * cgraph.h: Likewise.
23938 * cgraphclones.c: Likewise.
23939 * cgraphunit.c: Likewise.
23940 * combine-stack-adj.c: Likewise.
23941 * combine.c: Likewise.
23942 * common/config/i386/i386-common.c: Likewise.
23943 * config/aarch64/aarch64.c: Likewise.
23944 * config/alpha/sync.md: Likewise.
23945 * config/arc/arc.c: Likewise.
23946 * config/arc/predicates.md: Likewise.
23947 * config/arm/arm-c.c: Likewise.
23948 * config/arm/arm.c: Likewise.
23949 * config/arm/arm.h: Likewise.
23950 * config/arm/arm.md: Likewise.
23951 * config/arm/cortex-r4f.md: Likewise.
23952 * config/csky/csky.c: Likewise.
23953 * config/csky/csky.h: Likewise.
23954 * config/darwin-f.c: Likewise.
23955 * config/epiphany/epiphany.md: Likewise.
23956 * config/i386/i386.c: Likewise.
23957 * config/i386/sol2.h: Likewise.
23958 * config/m68k/m68k.c: Likewise.
23959 * config/mcore/mcore.h: Likewise.
23960 * config/microblaze/microblaze.md: Likewise.
23961 * config/mips/20kc.md: Likewise.
23962 * config/mips/sb1.md: Likewise.
23963 * config/nds32/nds32.c: Likewise.
23964 * config/nds32/predicates.md: Likewise.
23965 * config/pa/pa.c: Likewise.
23966 * config/rs6000/e300c2c3.md: Likewise.
23967 * config/rs6000/rs6000.c: Likewise.
23968 * config/s390/s390.h: Likewise.
23969 * config/sh/sh.c: Likewise.
23970 * config/sh/sh.md: Likewise.
23971 * config/spu/vmx2spu.h: Likewise.
23972 * cprop.c: Likewise.
23973 * dbxout.c: Likewise.
23974 * df-scan.c: Likewise.
23975 * doc/cfg.texi: Likewise.
23976 * doc/extend.texi: Likewise.
23977 * doc/fragments.texi: Likewise.
23978 * doc/gty.texi: Likewise.
23979 * doc/invoke.texi: Likewise.
23980 * doc/lto.texi: Likewise.
23981 * doc/md.texi: Likewise.
23982 * doc/objc.texi: Likewise.
23983 * doc/rtl.texi: Likewise.
23984 * doc/tm.texi: Likewise.
23985 * dse.c: Likewise.
23986 * emit-rtl.c: Likewise.
23987 * emit-rtl.h: Likewise.
23988 * except.c: Likewise.
23989 * expmed.c: Likewise.
23990 * expr.c: Likewise.
23991 * fold-const.c: Likewise.
23992 * genautomata.c: Likewise.
23993 * gimple-fold.c: Likewise.
23994 * hard-reg-set.h: Likewise.
23995 * ifcvt.c: Likewise.
23996 * ipa-comdats.c: Likewise.
23997 * ipa-cp.c: Likewise.
23998 * ipa-devirt.c: Likewise.
23999 * ipa-fnsummary.c: Likewise.
24000 * ipa-icf.c: Likewise.
24001 * ipa-inline-transform.c: Likewise.
24002 * ipa-inline.c: Likewise.
24003 * ipa-polymorphic-call.c: Likewise.
24004 * ipa-profile.c: Likewise.
24005 * ipa-prop.c: Likewise.
24006 * ipa-pure-const.c: Likewise.
24007 * ipa-reference.c: Likewise.
24008 * ipa-split.c: Likewise.
24009 * ipa-visibility.c: Likewise.
24010 * ipa.c: Likewise.
24011 * ira-build.c: Likewise.
24012 * ira-color.c: Likewise.
24013 * ira-conflicts.c: Likewise.
24014 * ira-costs.c: Likewise.
24015 * ira-int.h: Likewise.
24016 * ira-lives.c: Likewise.
24017 * ira.c: Likewise.
24018 * ira.h: Likewise.
24019 * loop-invariant.c: Likewise.
24020 * loop-unroll.c: Likewise.
24021 * lower-subreg.c: Likewise.
24022 * lra-assigns.c: Likewise.
24023 * lra-constraints.c: Likewise.
24024 * lra-eliminations.c: Likewise.
24025 * lra-lives.c: Likewise.
24026 * lra-remat.c: Likewise.
24027 * lra-spills.c: Likewise.
24028 * lra.c: Likewise.
24029 * lto-cgraph.c: Likewise.
24030 * lto-streamer-out.c: Likewise.
24031 * postreload-gcse.c: Likewise.
24032 * predict.c: Likewise.
24033 * profile-count.h: Likewise.
24034 * profile.c: Likewise.
24035 * recog.c: Likewise.
24036 * ree.c: Likewise.
24037 * reload.c: Likewise.
24038 * reload1.c: Likewise.
24039 * reorg.c: Likewise.
24040 * resource.c: Likewise.
24041 * rtl.def: Likewise.
24042 * rtl.h: Likewise.
24043 * rtlanal.c: Likewise.
24044 * sched-deps.c: Likewise.
24045 * sched-ebb.c: Likewise.
24046 * sched-rgn.c: Likewise.
24047 * sel-sched-ir.c: Likewise.
24048 * sel-sched.c: Likewise.
24049 * shrink-wrap.c: Likewise.
24050 * simplify-rtx.c: Likewise.
24051 * symtab.c: Likewise.
24052 * target.def: Likewise.
24053 * toplev.c: Likewise.
24054 * tree-call-cdce.c: Likewise.
24055 * tree-cfg.c: Likewise.
24056 * tree-complex.c: Likewise.
24057 * tree-core.h: Likewise.
24058 * tree-eh.c: Likewise.
24059 * tree-inline.c: Likewise.
24060 * tree-loop-distribution.c: Likewise.
24061 * tree-nrv.c: Likewise.
24062 * tree-profile.c: Likewise.
24063 * tree-sra.c: Likewise.
24064 * tree-ssa-alias.c: Likewise.
24065 * tree-ssa-dce.c: Likewise.
24066 * tree-ssa-dom.c: Likewise.
24067 * tree-ssa-forwprop.c: Likewise.
24068 * tree-ssa-loop-im.c: Likewise.
24069 * tree-ssa-loop-ivcanon.c: Likewise.
24070 * tree-ssa-loop-ivopts.c: Likewise.
24071 * tree-ssa-loop-niter.c: Likewise.
24072 * tree-ssa-phionlycprop.c: Likewise.
24073 * tree-ssa-phiopt.c: Likewise.
24074 * tree-ssa-propagate.c: Likewise.
24075 * tree-ssa-threadedge.c: Likewise.
24076 * tree-ssa-threadupdate.c: Likewise.
24077 * tree-ssa-uninit.c: Likewise.
24078 * tree-ssanames.c: Likewise.
24079 * tree-streamer-out.c: Likewise.
24080 * tree.c: Likewise.
24081 * tree.h: Likewise.
24082 * vr-values.c: Likewise.
24083
24084 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
24085
24086 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
24087 (ix86_split_xorsign): Ditto.
24088 * config/i386/i386.c (ix86_expand_xorsign): New function.
24089 (ix86_split_xorsign): Ditto.
24090 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
24091 (xorsign<mode>3): New expander.
24092 (xorsign<mode>3_1): New insn_and_split pattern.
24093 * config/i386/sse.md (xorsign<mode>3): New expander.
24094
24095 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24096
24097 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
24098 (*tablejump_sp64): Likewise.
24099 (*tablejump<P:mode>): ...this.
24100 (*call_address_sp32): Merge into...
24101 (*call_address_sp64): Likewise.
24102 (*call_address<P:mode>): ...this.
24103 (*call_symbolic_sp32): Merge into...
24104 (*call_symbolic_sp64): Likewise.
24105 (*call_symbolic<P:mode>): ...this.
24106 (call_value): Remove constraint and add predicate.
24107 (*call_value_address_sp32): Merge into...
24108 (*call_value_address_sp64): Likewise.
24109 (*call_value_address<P:mode>): ...this.
24110 (*call_value_symbolic_sp32): Merge into...
24111 (*call_value_symbolic_sp64): Likewise.
24112 (*call_value_symbolic<P:mode>): ...this.
24113 (*sibcall_symbolic_sp32): Merge into...
24114 (*sibcall_symbolic_sp64): Likewise.
24115 (*sibcall_symbolic<P:mode>): ...this.
24116 (sibcall_value): Remove constraint and add predicate.
24117 (*sibcall_value_symbolic_sp32): Merge into...
24118 (*sibcall_value_symbolic_sp64): Likewise.
24119 (*sibcall_value_symbolic<P:mode>): ...this.
24120 (window_save): Minor tweak.
24121 (*branch_sp32): Merge into...
24122 (*branch_sp64): Likewise.
24123 (*branch<P:mode>): ...this.
24124
24125 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24126 James Clarke <jrtc27@jrtc27.com>
24127
24128 PR target/84010
24129 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
24130 consistently in TLS address generation and adjust code to the renaming
24131 of patterns. Mark calls to __tls_get_addr as const.
24132 * config/sparc/sparc.md (tgd_hi22): Turn into...
24133 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
24134 (tgd_lo10): Turn into...
24135 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
24136 (tgd_add32): Merge into...
24137 (tgd_add64): Likewise.
24138 (tgd_add<P:mode>): ...this and use Pmode throughout.
24139 (tldm_hi22): Turn into...
24140 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
24141 (tldm_lo10): Turn into...
24142 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
24143 (tldm_add32): Merge into...
24144 (tldm_add64): Likewise.
24145 (tldm_add<P:mode>): ...this and use Pmode throughout.
24146 (tldm_call32): Merge into...
24147 (tldm_call64): Likewise.
24148 (tldm_call<P:mode>): ...this and use Pmode throughout.
24149 (tldo_hix22): Turn into...
24150 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
24151 (tldo_lox10): Turn into...
24152 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
24153 (tldo_add32): Merge into...
24154 (tldo_add64): Likewise.
24155 (tldo_add<P:mode>): ...this and use Pmode throughout.
24156 (tie_hi22): Turn into...
24157 (tie_hi22<P:mode>): ...this and use Pmode throughout.
24158 (tie_lo10): Turn into...
24159 (tie_lo10<P:mode>): ...this and use Pmode throughout.
24160 (tie_ld64): Use DImode throughout.
24161 (tie_add32): Merge into...
24162 (tie_add64): Likewise.
24163 (tie_add<P:mode>): ...this and use Pmode throughout.
24164 (tle_hix22_sp32): Merge into...
24165 (tle_hix22_sp64): Likewise.
24166 (tle_hix22<P:mode>): ...this and use Pmode throughout.
24167 (tle_lox22_sp32): Merge into...
24168 (tle_lox22_sp64): Likewise.
24169 (tle_lox22<P:mode>): ...this and use Pmode throughout.
24170 (*tldo_ldub_sp32): Merge into...
24171 (*tldo_ldub_sp64): Likewise.
24172 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
24173 (*tldo_ldub1_sp32): Merge into...
24174 (*tldo_ldub1_sp64): Likewise.
24175 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
24176 (*tldo_ldub2_sp32): Merge into...
24177 (*tldo_ldub2_sp64): Likewise.
24178 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
24179 (*tldo_ldsb1_sp32): Merge into...
24180 (*tldo_ldsb1_sp64): Likewise.
24181 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
24182 (*tldo_ldsb2_sp32): Merge into...
24183 (*tldo_ldsb2_sp64): Likewise.
24184 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
24185 (*tldo_ldub3_sp64): Use DImode throughout.
24186 (*tldo_ldsb3_sp64): Likewise.
24187 (*tldo_lduh_sp32): Merge into...
24188 (*tldo_lduh_sp64): Likewise.
24189 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24190 (*tldo_lduh1_sp32): Merge into...
24191 (*tldo_lduh1_sp64): Likewise.
24192 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24193 (*tldo_ldsh1_sp32): Merge into...
24194 (*tldo_ldsh1_sp64): Likewise.
24195 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24196 (*tldo_lduh2_sp64): Use DImode throughout.
24197 (*tldo_ldsh2_sp64): Likewise.
24198 (*tldo_lduw_sp32): Merge into...
24199 (*tldo_lduw_sp64): Likewise.
24200 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24201 (*tldo_lduw1_sp64): Use DImode throughout.
24202 (*tldo_ldsw1_sp64): Likewise.
24203 (*tldo_ldx_sp64): Likewise.
24204 (*tldo_stb_sp32): Merge into...
24205 (*tldo_stb_sp64): Likewise.
24206 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24207 (*tldo_sth_sp32): Merge into...
24208 (*tldo_sth_sp64): Likewise.
24209 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24210 (*tldo_stw_sp32): Merge into...
24211 (*tldo_stw_sp64): Likewise.
24212 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24213 (*tldo_stx_sp64): Use DImode throughout.
24214
24215 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24216
24217 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24218 check configure option to set BTI and Return Address Signing.
24219 * configure.ac: Add --enable-standard-branch-protection and
24220 --disable-standard-branch-protection.
24221 * configure: Regenerated.
24222 * doc/install.texi: Document the same.
24223
24224 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24225 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24226
24227 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24228 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24229 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24230 if bti is enabled.
24231 * config/aarch64/aarch64-bti-insert.c: New file.
24232 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24233 pass.
24234 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24235 new bti pass.
24236 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24237 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24238 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24239 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24240
24241 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24242
24243 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24244 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24245 Disable bti for -mbranch-protection=none.
24246 (aarch64_handle_standard_branch_protection): Enable bti for
24247 -mbranch-protection=standard.
24248 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24249 -mbranch-protection.
24250 (aarch64_bti_enabled): Check if bti is enabled.
24251 * config/aarch64/aarch64.opt: Declare target variable.
24252 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24253
24254 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24255
24256 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24257 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24258 (aarch64_expand_epilogue): Likewise.
24259 (aarch64_output_mi_thunk): Likewise.
24260 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24261 TAILCALL_ADDR_REGS to x16 and x17.
24262 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24263
24264 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24265
24266 * config/aarch64/aarch64-option-extensions.def: Define
24267 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24268 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24269 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24270 (AARCH64_FL_PREDRES): New.
24271 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24272 AARCH64_FL_PREDRES by default.
24273 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24274
24275 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24276
24277 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24278 ARMv8.5-A.
24279 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24280 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24281 * doc/invoke.texi: Document ARMv8.5-A.
24282
24283 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24284
24285 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24286 (xorsign<mode>3): Likewise.
24287
24288 2019-01-09 Jelinek <jakub@redhat.com>
24289
24290 PR middle-end/88758
24291 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24292 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24293
24294 PR rtl-optimization/88331
24295 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24296 not currently_expanding_to_rtl.
24297
24298 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24299
24300 * doc/invoke.texi (-Os): Remove trailing spaces.
24301 (-finline-functions): Remove reference to -O2.
24302
24303 2019-01-08 Jakub Jelinek <jakub@redhat.com>
24304
24305 PR rtl-optimization/79593
24306 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24307
24308 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24309 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
24310
24311 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
24312
24313 PR bootstrap/88721
24314 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24315 to -1 on entry.
24316
24317 PR debug/88723
24318 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24319 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24320
24321 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
24322
24323 PR target/88717
24324 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24325 ix86_avx_u128_mode_entry.
24326
24327 2019-01-08 Martin Liska <mliska@suse.cz>
24328
24329 PR tree-optimization/88753
24330 * tree-switch-conversion.c (switch_conversion::build_one_array):
24331 Come up with local variable constructor. Convert first to
24332 type of constructor values.
24333
24334 2019-01-08 Richard Biener <rguenther@suse.de>
24335
24336 PR tree-optimization/86554
24337 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24338 rpo_avail): Move earlier.
24339 (visit_nary_op): When value-numbering to expressions
24340 with different overflow behavior make sure there's an
24341 available expression on the path.
24342
24343 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
24344
24345 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24346 aarch64_parse_branch_protection,
24347 struct aarch64_branch_protect_type,
24348 aarch64_handle_no_branch_protection,
24349 aarch64_handle_standard_branch_protection,
24350 aarch64_validate_mbranch_protection,
24351 aarch64_handle_pac_ret_protection,
24352 aarch64_handle_attr_branch_protection,
24353 accepted_branch_protection_string,
24354 aarch64_pac_ret_subtypes,
24355 aarch64_branch_protect_types,
24356 aarch64_handle_pac_ret_leaf): Define.
24357 (aarch64_override_options_after_change_1, aarch64_override_options):
24358 Add check for accepted_branch_protection_string.
24359 (aarch64_option_save): Save accepted_branch_protection_string.
24360 (aarch64_option_restore): Save accepted_branch_protection_string.
24361 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24362 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24363 msign-return-address.
24364 * doc/invoke.texi: Add mbranch-protection.
24365
24366 2019-01-08 Alan Modra <amodra@gmail.com>
24367
24368 PR target/88614
24369 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24370 Delete "unknownp" parameter. Adjust callers. Handle
24371 CONST_INT, PLUS, MINUS, and MULT.
24372 (attr_value_aligned): Renamed from or_attr_value.
24373 (min_attr_value): Return INT_MIN for unhandled rtl case..
24374 (min_fn): ..and translate to INT_MAX here.
24375 (write_length_unit_log): Modify to cope without "unknown".
24376 (write_attr_value): Handle IF_THEN_ELSE.
24377
24378 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24379
24380 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24381 optimization for masked stores.
24382
24383 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24384
24385 PR middle-end/88567
24386 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24387 output vector directly to duplicate_and_interleave instead of
24388 going through a temporary. Postpone insertion of ctor_seq to
24389 the end of the loop.
24390
24391 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
24392
24393 PR target/86891
24394 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24395 unsigned_p. Handle signed and unsigned overflow correction as
24396 required.
24397 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
24398 prototype.
24399 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
24400 for operand 2.
24401 (add<mode>3_compareV_imm): Make this callable for expanding.
24402 (subv<GPI:mode>4): Use register_operand for operand 1. Use
24403 aarch64_plus_operand for operand 2.
24404 (subv<GPI:mode>_insn): New insn pattern.
24405 (subv<GPI:mode>_imm): Likewise.
24406 (negv<GPI:mode>3): New expand pattern.
24407 (negv<GPI:mode>_insn): New insn pattern.
24408 (negv<GPI:mode>_cmp_only): Likewise.
24409 (cmpv<GPI:mode>_insn): Likewise.
24410 (subvti4): Use register_operand for operand 1. Update call to
24411 aarch64_expand_subvti.
24412 (usubvti4): Likewise.
24413 (negvti3): New expand pattern.
24414 (negdi_carryout): New insn pattern.
24415 (negvdi_carryinV): New insn pattern.
24416 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
24417 version the named version.
24418 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
24419 operands.
24420 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
24421 patterns.
24422 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
24423 patterns.
24424 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
24425 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
24426 (sub<mode>3_carryinCV): Delete.
24427 (sub<GPI:mode>3_carryinV): New expand pattern.
24428 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
24429
24430 2019-01-07 Richard Biener <rguenther@suse.de>
24431
24432 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
24433 of tree_operand_hash.
24434
24435 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24436
24437 PR tree-optimization/88598
24438 * tree.h (single_nonzero_element): Declare.
24439 * tree.c (single_nonzero_element): New function.
24440 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
24441 if I is the only nonzero element of CST.
24442
24443 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24444
24445 PR tree-optimization/88598
24446 * tree.h (initializer_each_zero_or_onep): Declare.
24447 * tree.c (initializer_each_zero_or_onep): New function.
24448 (signed_or_unsigned_type_for): Handle float types too.
24449 (unsigned_type_for, signed_type_for): Update comments accordingly.
24450 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
24451 x & { 0 or -1, 0 or -1, ... }.
24452
24453 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
24454
24455 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
24456 with x86_64-pc-linux-gnu.
24457
24458 2019-01-07 Tom de Vries <tdevries@suse.de>
24459
24460 PR target/85486
24461 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
24462 function.
24463 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
24464 routines.
24465
24466 2019-01-07 Jakub Jelinek <jakub@redhat.com>
24467
24468 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
24469 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
24470 TARGET_AVX512F as condition.
24471
24472 PR debug/88723
24473 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
24474 const_not_ok_for_debug_p target hook.
24475 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
24476 on UNSPEC and subexpressions thereof if all subexpressions of the
24477 UNSPEC are CONSTANT_P.
24478
24479 PR tree-optimization/88676
24480 * tree-ssa-phiopt.c (two_value_replacement): New function.
24481 (tree_ssa_phiopt_worker): Call it.
24482
24483 PR sanitizer/88619
24484 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
24485 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
24486
24487 PR c++/85052
24488 * tree-vect-generic.c: Include insn-config.h and recog.h.
24489 (expand_vector_piecewise): Add defaulted ret_type argument,
24490 if non-NULL, use that in preference to type for the result type.
24491 (expand_vector_parallel): Formatting fix.
24492 (do_vec_conversion, do_vec_narrowing_conversion,
24493 expand_vector_conversion): New functions.
24494 (expand_vector_operations_1): Call expand_vector_conversion
24495 for VEC_CONVERT ifn calls.
24496 * internal-fn.def (VEC_CONVERT): New internal function.
24497 * internal-fn.c (expand_VEC_CONVERT): New function.
24498 * fold-const-call.c (fold_const_vec_convert): New function.
24499 (fold_const_call): Use it for CFN_VEC_CONVERT.
24500 * doc/extend.texi (__builtin_convertvector): Document.
24501
24502 2019-01-07 Tom de Vries <tdevries@suse.de>
24503
24504 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
24505 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
24506 vector_red_partition, vector_red_sym): New global variables.
24507 (nvptx_option_override): Initialize vector_red_sym.
24508 (nvptx_declare_function_name): Restore red_partition register.
24509 (nvptx_file_end): Emit code to declare the vector reduction variables.
24510 (nvptx_output_red_partition): New function.
24511 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
24512 large vector reductions.
24513 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
24514 (nvptx_init_builtins): Add VECTOR_ADDR.
24515 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
24516 Handle nvptx_expand_shared_addr.
24517 (nvptx_get_shared_red_addr): Add vector argument and handle large
24518 vectors.
24519 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
24520 large vectors.
24521 (nvptx_goacc_reduction_init): Likewise.
24522 (nvptx_goacc_reduction_fini): Likewise.
24523 (nvptx_goacc_reduction_teardown): Likewise.
24524 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
24525 init,fini,teardown}.
24526 (nvptx_init_axis_predicate): Initialize vector_red_partition.
24527 (nvptx_set_current_function): Init vector_red_partition.
24528 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
24529 (nvptx_red_partition): New insn.
24530 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
24531
24532 2019-01-07 Tom de Vries <tdevries@suse.de>
24533
24534 PR target/85381
24535 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
24536 empty loops.
24537
24538 2019-01-07 Tom de Vries <tdevries@suse.de>
24539
24540 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
24541 (nvptx_option_override): Init oacc_bcast_partition.
24542 (nvptx_init_oacc_workers): New function.
24543 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
24544 (nvptx_needs_shared_bcast): New function.
24545 (nvptx_find_par): Generalize to enable vectors to use shared-memory
24546 to propagate state.
24547 (nvptx_shared_propagate): Initialize vector bcast partition and
24548 synchronization state.
24549 (nvptx_single): Generalize to enable vectors to use shared-memory
24550 to propagate state.
24551 (nvptx_process_pars): Likewise.
24552 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
24553 * config/nvptx/nvptx.h (struct machine_function): Add
24554 bcast_partition and sync_bar members.
24555
24556 2019-01-07 Tom de Vries <tdevries@suse.de>
24557
24558 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
24559 (nvptx_apply_dim_limits): New function.
24560 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
24561 PTX_WARP_SIZE.
24562
24563 2019-01-07 Tom de Vries <tdevries@suse.de>
24564
24565 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
24566 as late as possible.
24567
24568 2019-01-07 Tom de Vries <tdevries@suse.de>
24569
24570 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
24571 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
24572 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
24573 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
24574 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
24575
24576 2019-01-07 Tom de Vries <tdevries@suse.de>
24577
24578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
24579
24580 2019-01-07 Tom de Vries <tdevries@suse.de>
24581
24582 * omp-offload.c (oacc_get_min_dim): New function.
24583 * omp-offload.h (oacc_get_min_dim): Declare.
24584
24585 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
24586
24587 PR target/88521
24588 * config/i386/i386.c (function_value_ms_64): Return small sturct in
24589 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
24590
24591 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24592
24593 PR tree-opt/86020
24594 Revert:
24595 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
24596
24597 * ipa-inline.c (edge_badness): Use inlined_time instead of
24598 inline_summaries->get.
24599
24600 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24601
24602 * opts.c (enable_fdo_optimizations): Enable
24603 version-loops-for-strides, loop-interchange, unrol-and-jam
24604 and tree-loop-distribution.
24605 * invoke.texi: Document newly enabled options.
24606
24607 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24608
24609 * doc/invoke.texi (max-inline-insns-small): New parameters.
24610 * ipa-inline.c (want_early_inline_function_p): simplify.
24611 (want_inline_small_function_p): Fix pasto from previous patch;
24612 use max-inline-insns-small bound.
24613 * params.def (max-inline-insns-small): New param.
24614 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
24615 variables correctly.
24616
24617 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24618
24619 * doc/invoke.texi: Document max-inline-insns-size,
24620 uninlined-function-insns, uninlined-function-time,
24621 uninlined-thunk-insns and uninlined-thunk-time.
24622 * params.def: Add max-inline-insns-size,
24623 uninlined-function-insns, uninlined-function-time,
24624 uninlined-thunk-insns and uninlined-thunk-time.
24625 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
24626 new parameters.
24627 * ipa-inline.c (can_inline_edge_by_limits_p,
24628 want_inline_small_function_p): Use new parameters.
24629
24630 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24631
24632 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
24633
24634 2019-01-05 Jakub Jelinek <jakub@redhat.com>
24635
24636 PR middle-end/82564
24637 PR target/88620
24638 * expr.c (expand_assignment): For calls returning VLA structures
24639 if to_rtx is not a MEM, force it into a stack temporary.
24640
24641 PR debug/88635
24642 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
24643 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
24644 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
24645 subexpressions of both operands.
24646 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
24647 subrtxes are CONSTANT_P.
24648 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
24649 2018-11-09 changes.
24650
24651 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
24652
24653 * params.def (hot-bb-count-ws-permille): Set to 990.
24654
24655 2019-01-04 Martin Sebor <msebor@redhat.com>
24656
24657 PR c/88546
24658 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
24659 leaf.
24660
24661 2019-01-04 Martin Sebor <msebor@redhat.com>
24662
24663 PR c/88363
24664 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
24665
24666 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24667
24668 * gdbinit.in: Turn off pagination for the skip commands, restore
24669 it to previous state afterwards.
24670
24671 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24672
24673 PR target/88594
24674 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
24675 of GET_MODE (opN) as modes of the libcall arguments.
24676
24677 2019-01-04 Jan Beulich <jbeulich@suse.com>
24678
24679 * config/i386/sse.md
24680 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
24681 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
24682 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24683 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24684 avx512f_vmcmp<mode>3<round_saeonly_name>,
24685 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
24686 avx512f_maskcmp<mode>3,
24687 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24688 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24689 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24690 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24691 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24692 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24693 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24694 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24695 <avx512>_testm<mode>3<mask_scalar_merge_name>,
24696 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
24697 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
24698 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
24699 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
24700 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
24701 avx512cd_maskb_vec_dup<mode>,
24702 avx512cd_maskw_vec_dup<mode>,
24703 avx512dq_fpclass<mode><mask_scalar_merge_name>,
24704 avx512dq_vmfpclass<mode>,
24705 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
24706 instead of =Yk.
24707
24708 2019-01-03 Martin Sebor <msebor@redhat.com>
24709
24710 PR tree-optimization/88659
24711 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
24712
24713 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24714
24715 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
24716 unaligned vsx and avoid lxvd2x/stxvd2x.
24717 (gen_lvx_v4si_move): New function.
24718
24719 2019-01-03 Tom de Vries <tdevries@suse.de>
24720
24721 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
24722 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
24723 function.
24724 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
24725
24726 2019-01-03 Tom de Vries <tdevries@suse.de>
24727
24728 * config/nvptx/nvptx.c (struct offload_attrs): New.
24729 (populate_offload_attrs): New function. Factor mask extraction out of
24730 nvptx_reorg. Add extraction of dimensions.
24731 (nvptx_reorg): Use populate_offload_attrs.
24732
24733 2019-01-03 Tom de Vries <tdevries@suse.de>
24734
24735 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
24736 cases for oacc_min_dims_p and routine_p. Add asserts for
24737 oacc_default_dims_p and offload_region_p.
24738
24739 2019-01-03 Tom de Vries <tdevries@suse.de>
24740
24741 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
24742 factored out of ...
24743 (nvptx_goacc_validate_dims): ... here.
24744
24745 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24746
24747 PR tree-optimization/85574
24748 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
24749 structure.
24750 (struct ssa_equip_hash_traits): Declare.
24751 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
24752
24753 2019-01-03 Jakub Jelinek <jakub@redhat.com>
24754
24755 PR debug/88644
24756 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
24757 change it to qualified_type.
24758
24759 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24760
24761 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
24762 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
24763
24764 2019-01-02 Martin Sebor <msebor@redhat.com>
24765 Jeff Law <law@redhat.com>
24766
24767 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
24768 (get_range_strlen_tree): Update appropriately.
24769 (get_range_strlen)
24770 * gimple-fold.h (get_range_strlen): Drop unused last argument.
24771
24772 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
24773 rather than set_range_info.
24774 * tree-ssa-strlen.c (set_strlen_range): Extracted from
24775 maybe_set_strlen_range. Handle potentially boundary crossing
24776 cases more conservatively.
24777 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
24778 Call set_strlen_range.
24779 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
24780
24781 PR middle-end/88663
24782 * gimple-fold.c (get_range_strlen): Update prototype to no longer
24783 need the flexp argument.
24784 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
24785 from calls to get_range_strlen. Update comments. Just update
24786 VAL for an unterminated const char array and let the reset of the
24787 code handle it normally. No longer try to set *flexp. Adjust
24788 return value.
24789 (get_range_strlen): Update for the new get_range_strlen API.
24790 (get_maxval_strlen): Similarly.
24791 (gimple_fold_builtin_strlen): Handle update meaning of return value
24792 from get_range_strlen.
24793 * gimple-ssa-sprintf.c (get_string_length): Update for the new
24794 get_range_strlen API.
24795
24796 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
24797
24798 PR lto/88130
24799 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
24800 false at WPA time when body was removed.
24801
24802 2019-01-02 Martin Liska <mliska@suse.cz>
24803
24804 PR tree-optimization/88650
24805 * predict.c (set_even_probabilities): Calculate probability
24806 remainer only when really used.
24807
24808 2019-01-02 Richard Biener <rguenther@suse.de>
24809
24810 PR middle-end/88651
24811 * tree-data-ref.c (analyze_subscript_affine_affine): Use
24812 widest_ints when mangling max_stmt_execution results.
24813
24814 2019-01-02 Richard Biener <rguenther@suse.de>
24815
24816 PR tree-optimization/88621
24817 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
24818 bitfields when canoncalizing.
24819
24820 2019-01-02 Richard Biener <rguenther@suse.de>
24821
24822 PR target/87545
24823 * config/i386/x86-tune-costs.h (intel_cost): Adjust
24824 cost of cheap SSE instruction.
24825
24826 2019-01-02 Richard Biener <rguenther@suse.de>
24827
24828 PR ipa/85574
24829 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
24830 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
24831 function.
24832 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
24833 set after UIDs before splitting them.
24834
24835 2019-01-01 Martin Sebor <msebor@redhat.com>
24836 Jeff Law <law@redhat.com>
24837
24838 * gimple-fold.c (get_range_strlen_tree): Record if the computed
24839 length is optimistic. If it is, then arrange to compute the
24840 conservative length as well.
24841
24842 * gimple-fold.h (get_range_strlen): Update prototype.
24843 * builtins.c (check_access): Update call to get_range_strlen to use
24844 c_strlen_data pointer. Change various variable accesses to instead
24845 pull data from the c_strlen_data structure.
24846 (check_strncat_sizes, expand_builtin_strncat): Likewise.
24847 * calls.c (maybe_warn_nonstring_arg): Likewise.
24848 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
24849 minimum length if maximum lengh is unknown.
24850 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
24851 that used c_strlen, it's no longer needed. Restructure slightly.
24852 (format_string): Set unlikely range appropriately.
24853 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
24854 formatting issues.
24855 (get_range_strlen): Accept c_strlen_data pointer for external
24856 call sites as well. Pass through to call to internal get_range_strlen.
24857 Adjust minlen, maxlen and maxbound as needed.
24858 (get_maxval_strlen): Update comments.
24859 (gimple_fold_builtin_strlen): Update call to get_range_strlen
24860 to use c_strlen_data pointer. Change variable accesses to instead
24861 use c_strlen_data data members.
24862
24863 * gimple-fold.c (get_range_strlen): Update prototype.
24864 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
24865 local variables. Use pdata to return information to caller.
24866 Update calls to get_range_strlen. Update pdata->maxbound.
24867 (get_range_strlen -- static version): Similarly.
24868 (get_range_strlen -- extern version): Update for internal
24869 get_range_strlen API change. Convert to external data format.
24870 (get_maxval_strlen): Similarly.
24871
24872 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
24873
24874 * coverage.c (get_coverage_counts): Use current_function_decl.
24875 * profile.c (read_thunk_profile): New function.
24876 (branch_prob): Add THUNK parameter.
24877 * tree-profile.c (tree_profiling): Handle thunks.
24878 * value-prof.c (init_node_map): Handle thunks.
24879 * value-prof.h (branch_prob): Upate prototype.
24880 (read_thunk_profile): Declare.
24881
24882 2019-01-01 Jakub Jelinek <jakub@redhat.com>
24883
24884 Update copyright years.
24885
24886 * gcc.c (process_command): Update copyright notice dates.
24887 * gcov-dump.c (print_version): Ditto.
24888 * gcov.c (print_version): Ditto.
24889 * gcov-tool.c (print_version): Ditto.
24890 * gengtype.c (create_file): Ditto.
24891 * doc/cpp.texi: Bump @copying's copyright year.
24892 * doc/cppinternals.texi: Ditto.
24893 * doc/gcc.texi: Ditto.
24894 * doc/gccint.texi: Ditto.
24895 * doc/gcov.texi: Ditto.
24896 * doc/install.texi: Ditto.
24897 * doc/invoke.texi: Ditto.
24898 \f
24899 Copyright (C) 2019 Free Software Foundation, Inc.
24900
24901 Copying and distribution of this file, with or without modification,
24902 are permitted in any medium without royalty provided the copyright
24903 notice and this notice are preserved.